repository
stringclasses 528
values | commit
stringlengths 40
40
| commitDate
timestamp[s] | path
stringlengths 11
149
| repoStars
int64 5
94.9k
| repoLastFetched
stringclasses 528
values | content
stringlengths 48
736k
| license
stringclasses 14
values | language
stringclasses 7
values |
---|---|---|---|---|---|---|---|---|
materials-data-facility/scythe | 49dc9642ac9c3f380f493ac4a5c1578230f613f0 | 2023-01-09T19:28:00 | scythe/schemas/electron_microscopy.json | 14 | 2024-05-29T09:40:56.951854Z | {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"definitions": {
"EDS_type": {
"additionalProperties": false,
"properties": {
"azimuth_angle": {
"$ref": "#/definitions/single_value_number_type",
"description": "The rotational angle around the optic axis between the EDS detector and the primary (alpha) tilt axis. If zero, the detector is parallel to the primary tilt axis"
},
"detector_type": {
"$ref": "#/definitions/single_value_string_type",
"description": "The specific type of EDS detector, as reported by the acquisition software"
},
"dispersion_per_channel": {
"$ref": "#/definitions/single_value_number_type",
"description": "The energy range covered by an individual pixel (channel) in the EDS detector (analagous to \"pixel_width\" but in the energy dimension)"
},
"elevation_angle": {
"$ref": "#/definitions/single_value_number_type",
"description": "The vertical angle between a reference plane normal to the optic axis and the EDS detector. If zero, the detector is perpendicular to the optic axis"
},
"energy_resolution_MnKa": {
"$ref": "#/definitions/single_value_number_type",
"description": "The full width at half maximum (FWHM) of the manganese K alpha (Mn Ka) peak. This value is used as a first approximation of the energy resolution of the detector."
},
"incidence_angle": {
"$ref": "#/definitions/single_value_number_type",
"description": "The beam incidence angle relative to the sample normal"
},
"live_time": {
"$ref": "#/definitions/single_value_number_type",
"description": "The actual time during which pulses are measured in the detector (will be necessarily less then \"real_time\"), limited due to physical limitions of pulse processing"
},
"real_time": {
"$ref": "#/definitions/single_value_number_type",
"description": "The actual data collection duration in which the sample was exposed. Will be greater than \"live_time\" due to pulse-pilup rejections within the pulse processing circuitry of the EDS dector."
},
"solid_angle": {
"$ref": "#/definitions/single_value_number_type",
"description": "The effective size of the detector, which is the ratio of the area of the face of the detector to the square of the radial distance to the beam impact point (see Goldstein et al., 3rd Ed., pp. 127)"
},
"stage_tilt": {
"$ref": "#/definitions/single_value_number_type",
"description": "The tilt angle of the SEM stage (on its primary tilt axis, if more than one available -- see \"General_EM.stage_position.tilt_alpha/beta\" for more detail)"
}
},
"type": "object"
},
"EELS_type": {
"additionalProperties": false,
"properties": {
"aperture_size": {
"$ref": "#/definitions/single_value_number_type",
"description": "The physical diameter of the EELS aperature (partly controls the collection angle)"
},
"collection_angle": {
"$ref": "#/definitions/single_value_number_type",
"description": "The collection semi-angle indicating the limit of angular spread of scattered electrons; typically expressed in milliradians"
},
"dispersion_per_channel": {
"$ref": "#/definitions/single_value_number_type",
"description": "The energy range covered by an individual pixel (channel) in the EELS detector (analagous to \"pixel_width\" but in the energy dimension)"
},
"drift_tube_enabled": {
"$ref": "#/definitions/single_value_boolean_type",
"description": "Whether the drift tube was enabled during EELS acquisition"
},
"drift_tube_energy": {
"$ref": "#/definitions/single_value_number_type",
"description": "The energy applied to the the EELS drift tube (some manufactures express this as a voltage, others as an energy)"
},
"drift_tube_voltage": {
"$ref": "#/definitions/single_value_number_type",
"description": "The voltage applied to the the EELS drift tube (some manufactures express this as a voltage, others as an energy)"
},
"energy_loss_offset": {
"$ref": "#/definitions/single_value_number_type",
"description": "The offset energy of the collected EELS data"
},
"filter_slit_inserted": {
"$ref": "#/definitions/single_value_boolean_type",
"description": "Whether the EELS filter slit was inserted during EELS acquisition"
},
"filter_slit_width": {
"$ref": "#/definitions/single_value_number_type",
"description": "The width (in energy) of the EELS filter slit"
},
"integration_time": {
"$ref": "#/definitions/single_value_number_type",
"description": "The total duration of time the EELS signal was integrated to produce the final data"
},
"number_of_samples": {
"$ref": "#/definitions/single_value_integer_type",
"description": "The number of frames or spectra integrated during the acquisition"
},
"prism_shift_enabled": {
"$ref": "#/definitions/single_value_boolean_type",
"description": "Whether the EELS prism shift was enabled during EELS acquisition"
},
"prism_shift_energy": {
"$ref": "#/definitions/single_value_number_type",
"description": "The energy applied to the the EELS prism shift lenses to shift the collected specturm in the energy dimension (some manufactures express this as a voltage, others as an energy)"
},
"prism_shift_voltage": {
"$ref": "#/definitions/single_value_number_type",
"description": "The voltage applied to the the EELS prism shift lenses to shift the collected specturm in the energy dimension (some manufactures express this as a voltage, others as an energy)"
},
"spectrometer_mode": {
"$ref": "#/definitions/single_value_string_type",
"description": "The mode of operation for the EELS spectrometer, as reported by the acquisition software"
},
"spectrometer_name": {
"$ref": "#/definitions/single_value_string_type",
"description": "The name of the EELS spectrometer, as reported by the acquisition software"
},
"total_energy_loss": {
"$ref": "#/definitions/single_value_number_type",
"description": "The total calculated energy loss, as reported by the acquisition software (note, this value is known to sometimes be incorrect)"
}
},
"type": "object"
},
"General_EM_type": {
"additionalProperties": false,
"properties": {
"accelerating_voltage": {
"$ref": "#/definitions/single_value_number_type",
"description": "The voltage used to accelerate electrons in the microscope"
},
"acquisition_mode": {
"$ref": "#/definitions/single_value_string_type",
"description": "The \"mode\" of the instrument as recorded by the acquisition software"
},
"acquisition_software_name": {
"$ref": "#/definitions/single_value_string_type",
"description": "The name of the software used to acquire this data"
},
"acquisition_software_version": {
"$ref": "#/definitions/single_value_string_type",
"description": "The version of the software used to acquire this data"
},
"beam_current": {
"$ref": "#/definitions/single_value_number_type",
"description": "The current of the electron beam during data collection"
},
"beam_energy": {
"$ref": "#/definitions/single_value_number_type",
"description": "The energy of the electron beam"
},
"convergence_angle": {
"$ref": "#/definitions/single_value_number_type",
"description": "The pre-specimen convergence semi-angle that defines the angle of incidence of the electron beam"
},
"detector_name": {
"$ref": "#/definitions/single_value_string_type",
"description": "The name of the detector used to collect this data"
},
"dwell_time": {
"$ref": "#/definitions/single_value_number_type",
"description": "The amount of time the beam dwelled on a given pixel (in scanning mode)"
},
"elements": {
"$ref": "#/definitions/single_value_string_array_type",
"description": "A list of element periodic abbreviations representing elements found in the sample data"
},
"emission_current": {
"$ref": "#/definitions/single_value_number_type",
"description": "The current of the electron beam at its emission point"
},
"exposure_time": {
"$ref": "#/definitions/single_value_number_type",
"description": "The amount of time the camera or detector was exposed to the siganl"
},
"frame_time": {
"$ref": "#/definitions/single_value_number_type",
"description": "The total amount of time the beam exposed the sample during a data collection (the sum of all pixels' dwell times)"
},
"magnification_actual": {
"$ref": "#/definitions/single_value_string_or_number_type",
"description": "The actual calibrated magnification of the collected data. Preference is a number, but string values are accepted"
},
"magnification_indicated": {
"$ref": "#/definitions/single_value_string_or_number_type",
"description": "The magnification indicated by the acquisition software in this collected data. Preference is a number, but string values are accepted"
},
"microscope_name": {
"$ref": "#/definitions/single_value_string_type",
"description": "The name of the microscope used to collect this data"
},
"probe_area": {
"$ref": "#/definitions/single_value_number_type",
"description": "The area (size) of the electron beam probe at the sample"
},
"stage_position": {
"$ref": "#/definitions/stage_position_type",
"description": "The absolute positions (in multiple axes) of the hardware stage"
}
},
"type": "object"
},
"General_type": {
"additionalProperties": false,
"properties": {
"authors": {
"$ref": "#/definitions/single_value_string_type",
"description": "The authors of the data, in Latex format: Surname1, Name1 and Surname2, Name2, etc."
},
"axis_calibration": {
"$ref": "#/definitions/axis_calibration_type",
"description": "Information about the calibration of each axis found in the data"
},
"data_dimensions": {
"$ref": "#/definitions/data_dimensions_type",
"description": "The size (extent) of each dimension as an array, matching the order found in \"axis_calibration\""
},
"date": {
"$ref": "#/definitions/date_type",
"description": "The acquisition or creation date in ISO 8601 date format, e.g. \u20182018-01-28\u2019"
},
"doi": {
"$ref": "#/definitions/single_value_string_type",
"description": "Digital object identifier of the data, e.g. doi:10.5281/zenodo.58841"
},
"notes": {
"$ref": "#/definitions/single_value_string_type",
"description": "Notes about the data"
},
"original_filename": {
"$ref": "#/definitions/single_value_string_type",
"description": "If the data was loaded from a file this key stores the name of the original file"
},
"time": {
"$ref": "#/definitions/time_type",
"description": "The acquisition or creation time in ISO 8601 time format, e.g. \u201813:29:10\u2019"
},
"time_zone": {
"$ref": "#/definitions/single_value_string_type",
"description": "The time zone in either tzdata form, e.g. \u201cUTC\u201d, \u201cAmerica/New_York\u201d, etc., or a time offset, e.g. \u201c+03:00\u201d or \u201c-05:00\u201d"
},
"title": {
"$ref": "#/definitions/single_value_string_type",
"description": "A title for the signal, e.g. \u201cSample overview\u201d"
}
},
"type": "object"
},
"SEM_type": {
"additionalProperties": false,
"properties": {
"chamber_pressure": {
"$ref": "#/definitions/single_value_number_type",
"description": "The pressure of the sample chamber when the data was acquired"
},
"horizontal_field_width": {
"$ref": "#/definitions/single_value_number_type",
"description": "The physical extent (a length) of the imaging frame width"
},
"magnification_mode": {
"$ref": "#/definitions/single_value_string_or_integer_type",
"description": "The magnification mode of the SEM specific to a given manufacturer, sometimes indicated by a word or a number"
},
"pixel_height": {
"$ref": "#/definitions/single_value_number_type",
"description": "The physical height represented by an individual pixel in the SEM scan"
},
"pixel_width": {
"$ref": "#/definitions/single_value_number_type",
"description": "The physical width represented by an individual pixel in the SEM scan"
},
"spot_size": {
"$ref": "#/definitions/single_value_integer_type",
"description": "A manufacturer-specific relative indicator of beam current and physical diameter of the electron beam impinging on the sample"
},
"vertical_field_width": {
"$ref": "#/definitions/single_value_number_type",
"description": "The physical extent (a length) of the imaging frame height"
},
"working_distance": {
"$ref": "#/definitions/single_value_number_type",
"description": "The length between the final SEM lens and the beam's focus plane; controls the focus of the resulting image/scan"
}
},
"type": "object"
},
"TEM_type": {
"additionalProperties": false,
"properties": {
"acquisition_device": {
"$ref": "#/definitions/single_value_string_type",
"description": "The TEM device used to acquire the signal, as reported by the acquisition software"
},
"acquisition_format": {
"$ref": "#/definitions/single_value_string_type",
"description": "The format of the data (image, spectrum, etc.) as reported by the acquisition software"
},
"acquisition_mode": {
"$ref": "#/definitions/single_value_string_type",
"description": "The TEM mode used to acquire the signal, as reported by the acquisition software"
},
"acquisition_signal": {
"$ref": "#/definitions/single_value_string_type",
"description": "The type of signal collected (EELS, EDS, etc.), as reported by the acquisition software"
},
"camera_length": {
"$ref": "#/definitions/single_value_number_type",
"description": "The effective length between the sample and the back focal plane (controlled by projector lenses)"
},
"defocus": {
"$ref": "#/definitions/single_value_number_type",
"description": "The focus shift (a length) of the objective lens from the focal point of the examined object used to acquire the data"
},
"extractor_voltage": {
"$ref": "#/definitions/single_value_number_type",
"description": "The voltage used to extract electrons from the electron gun"
},
"illumination_mode": {
"$ref": "#/definitions/single_value_string_type",
"description": "The mode of illumination (STEM, TEM, NanoProbe, etc.) as reported by the acquisition software"
},
"imaging_mode": {
"$ref": "#/definitions/single_value_string_type",
"description": "The mode of imaging (regular imaging, diffraction, etc.) as reported by the acquisition software"
},
"operation_mode": {
"$ref": "#/definitions/single_value_string_type",
"description": "The operation mode of the microscope during data collection, as reported by the acquisition software (possible modes are specific to individual microscopes)"
},
"spherical_aberration_coefficient": {
"$ref": "#/definitions/single_value_number_type",
"description": "The spherical aberation coefficient (Cs) for the objective lens; a length describing the degree to which off-axis electrons cause blur in the image plane"
},
"spot_size": {
"$ref": "#/definitions/single_value_integer_type",
"description": "A manufacturer-specific indication of the strength of the first condenser lens, which generally determines the diameter and current of the electron beam impinging on the sample"
}
},
"type": "object"
},
"axis-type": {
"additionalProperties": false,
"properties": {
"name": {
"oneOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"offset": {
"type": "number"
},
"scale": {
"type": "number"
},
"size": {
"type": "integer"
},
"units": {
"oneOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"type": "object"
},
"axis_calibration_type": {
"additionalProperties": false,
"patternProperties": {
"^(axis-)\\d*$": {
"$ref": "#/definitions/axis-type"
}
},
"type": "object"
},
"data_dimensions_type": {
"items": {
"type": "integer"
},
"type": "array"
},
"date_type": {
"additionalProperties": false,
"properties": {
"value": {
"format": "date",
"type": "string"
}
},
"type": "object"
},
"electron_microscopy_type": {
"additionalProperties": false,
"properties": {
"EDS": {
"$ref": "#/definitions/EDS_type",
"description": "Metadata values specific to X-ray Energy Dispersive Spectroscopy (EDS)"
},
"EELS": {
"$ref": "#/definitions/EELS_type",
"description": "Metadata values specific to Electron Energy Loss Spectroscopy (EELS)"
},
"General": {
"$ref": "#/definitions/General_type",
"description": "Metadata about the file itself, not directly related to electron microscopy"
},
"General_EM": {
"$ref": "#/definitions/General_EM_type",
"description": "Metadata values that are generic to all forms of electron microscopy"
},
"SEM": {
"$ref": "#/definitions/SEM_type",
"description": "Metadata values specific to scanning electron microscopy (SEM)"
},
"TEM": {
"$ref": "#/definitions/TEM_type",
"description": "Metadata values specific to transmission electron microscopy (TEM)"
},
"raw_metadata": {
"$ref": "#/definitions/raw_metadata_type",
"description": "The superset of all metadata (in its original format) as extracted using HyperSpy"
}
},
"type": "object"
},
"raw_metadata_type": {
"additionalProperties": true,
"properties": {},
"type": "object"
},
"single_value_boolean_type": {
"additionalProperties": false,
"properties": {
"value": {
"type": "boolean"
}
},
"required": [
"value"
],
"type": "object"
},
"single_value_integer_type": {
"additionalProperties": false,
"properties": {
"units": {
"type": "string"
},
"value": {
"type": "integer"
}
},
"required": [
"value"
],
"type": "object"
},
"single_value_number_type": {
"additionalProperties": false,
"properties": {
"units": {
"type": "string"
},
"value": {
"type": "number"
}
},
"required": [
"value"
],
"type": "object"
},
"single_value_string_array_type": {
"additionalProperties": false,
"properties": {
"value": {
"items": {
"enum": [
"Ac",
"Ag",
"Al",
"Am",
"Ar",
"As",
"At",
"Au",
"B",
"Ba",
"Be",
"Bh",
"Bi",
"Bk",
"Br",
"C",
"Ca",
"Cd",
"Ce",
"Cf",
"Cl",
"Cm",
"Cn",
"Co",
"Cr",
"Cs",
"Cu",
"Db",
"Ds",
"Dy",
"Er",
"Es",
"Eu",
"F",
"Fe",
"Fl",
"Fm",
"Fr",
"Ga",
"Gd",
"Ge",
"H",
"He",
"Hf",
"Hg",
"Ho",
"Hs",
"I",
"In",
"Ir",
"K",
"Kr",
"La",
"Li",
"Lr",
"Lu",
"Lv",
"Mc",
"Md",
"Mg",
"Mn",
"Mo",
"Mt",
"N",
"Na",
"Nb",
"Nd",
"Ne",
"Nh",
"Ni",
"No",
"Np",
"O",
"Og",
"Os",
"P",
"Pa",
"Pb",
"Pd",
"Pm",
"Po",
"Pr",
"Pt",
"Pu",
"Ra",
"Rb",
"Re",
"Rf",
"Rg",
"Rh",
"Rn",
"Ru",
"S",
"Sb",
"Sc",
"Se",
"Sg",
"Si",
"Sm",
"Sn",
"Sr",
"Ta",
"Tb",
"Tc",
"Te",
"Th",
"Ti",
"Tl",
"Tm",
"Ts",
"U",
"V",
"W",
"Xe",
"Y",
"Yb",
"Zn",
"Zr"
]
},
"type": "array"
}
},
"type": "object"
},
"single_value_string_or_integer_type": {
"additionalProperties": false,
"properties": {
"value": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
}
},
"required": [
"value"
],
"type": "object"
},
"single_value_string_or_number_type": {
"additionalProperties": false,
"properties": {
"units": {
"type": "string"
},
"value": {
"oneOf": [
{
"type": "number"
},
{
"type": "string"
}
]
}
},
"required": [
"value"
],
"type": "object"
},
"single_value_string_type": {
"additionalProperties": false,
"properties": {
"value": {
"type": "string"
}
},
"required": [
"value"
],
"type": "object"
},
"stage_position_type": {
"additionalProperties": false,
"properties": {
"rotation": {
"$ref": "#/definitions/single_value_number_type"
},
"tilt_alpha": {
"$ref": "#/definitions/single_value_number_type"
},
"tilt_beta": {
"$ref": "#/definitions/single_value_number_type"
},
"x": {
"$ref": "#/definitions/single_value_number_type"
},
"y": {
"$ref": "#/definitions/single_value_number_type"
},
"z": {
"$ref": "#/definitions/single_value_number_type"
}
},
"type": "object"
},
"time_type": {
"additionalProperties": false,
"properties": {
"value": {
"format": "time",
"type": "string"
}
},
"type": "object"
}
},
"properties": {
"electron_microscopy": {
"$ref": "#/definitions/electron_microscopy_type"
}
},
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | abedc507fdd2d5553e2b4ae6af1d0a4e1c8393e9 | 2024-04-10T01:57:41 | json-schemas/signature-payloads/generic-signature-payload.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/signature-payloads/generic-signature-payload.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"delegatedGrantId": {
"type": "string"
},
"descriptorCid": {
"type": "string"
},
"permissionsGrantId": {
"type": "string"
},
"protocolRole": {
"$comment": "Used in the Records interface to authorize role-authorized actions for protocol records",
"type": "string"
}
},
"required": [
"descriptorCid"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 26d1944f51538b0dba0df08bfe31685a8b29ac29 | 2024-04-24T00:08:42 | json-schemas/interface-methods/records-query.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-query.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization-delegated-grant.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"dateSort": {
"enum": [
"createdAscending",
"createdDescending",
"publishedAscending",
"publishedDescending"
],
"type": "string"
},
"filter": {
"$ref": "https://identity.foundation/dwn/json-schemas/records-filter.json"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time"
},
"method": {
"enum": [
"Query"
],
"type": "string"
},
"pagination": {
"additionalProperties": false,
"properties": {
"cursor": {
"$ref": "https://identity.foundation/dwn/json-schemas/pagination-cursor.json"
},
"limit": {
"minimum": 1,
"type": "number"
}
},
"type": "object"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"filter"
],
"type": "object"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | fb08183ba91d906d6249e306e5e1f1b55c9ee2a9 | 2023-10-27T23:18:16 | json-schemas/interface-methods/records-delete.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-delete.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Delete"
],
"type": "string"
},
"recordId": {
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"recordId"
],
"type": "object"
}
},
"required": [
"authorization",
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | e5b0df0b69c3a62630e64e6be9167d5865bd97a8 | 2023-10-31T22:19:18 | json-schemas/interface-methods/records-filter.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-filter.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"dependencies": {
"datePublished": {
"oneOf": [
{
"properties": {
"published": {
"enum": [
true
]
}
},
"required": [
"published"
]
},
{
"not": {
"required": [
"published"
]
}
}
]
}
},
"minProperties": 1,
"properties": {
"attester": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"contextId": {
"type": "string"
},
"dataCid": {
"type": "string"
},
"dataFormat": {
"type": "string"
},
"dataSize": {
"$ref": "https://identity.foundation/dwn/json-schemas/number-range-filter.json"
},
"dateCreated": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
}
},
"type": "object"
},
"datePublished": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
}
},
"type": "object"
},
"dateUpdated": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
}
},
"type": "object"
},
"parentId": {
"type": "string"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"type": "string"
},
"published": {
"type": "boolean"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"recordId": {
"type": "string"
},
"schema": {
"type": "string"
}
},
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | e15bc83f755e31c397cc8583533f1f4fca0df79c | 2023-09-06T23:06:10 | json-schemas/permissions/permissions-definitions.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/permissions/defs.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"conditions": {
"additionalProperties": false,
"properties": {
"publication": {
"enum": [
"Required",
"Prohibited"
],
"type": "string"
}
},
"type": "object"
},
"grantedBy": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"grantedFor": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"grantedTo": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"scope": {
"oneOf": [
{
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/definitions/protocols-query-scope"
},
{
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/definitions/records-read-scope"
},
{
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/definitions/records-delete-scope"
},
{
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/definitions/records-write-scope"
}
]
}
},
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | abedc507fdd2d5553e2b4ae6af1d0a4e1c8393e9 | 2024-04-10T01:57:41 | json-schemas/interface-methods/string-range-filter.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/string-range-filter.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"dependencies": {
"gt": {
"not": {
"required": [
"gte"
]
}
},
"gte": {
"not": {
"required": [
"gt"
]
}
},
"lt": {
"not": {
"required": [
"lte"
]
}
},
"lte": {
"not": {
"required": [
"lt"
]
}
}
},
"minProperties": 1,
"properties": {
"gt": {
"type": "string"
},
"gte": {
"type": "string"
},
"lt": {
"type": "string"
},
"lte": {
"type": "string"
}
},
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | abedc507fdd2d5553e2b4ae6af1d0a4e1c8393e9 | 2024-04-10T01:57:41 | json-schemas/interface-methods/records-read.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-read.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization-delegated-grant.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"filter": {
"$ref": "https://identity.foundation/dwn/json-schemas/records-filter.json"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Read"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"filter"
],
"type": "object"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 30ba7d56d1c2b795c28862081bfc34c9a42e634c | 2024-01-17T02:42:26 | json-schemas/interface-methods/events-get.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/events-get.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"cursor": {
"$ref": "https://identity.foundation/dwn/json-schemas/pagination-cursor.json"
},
"interface": {
"enum": [
"Events"
],
"type": "string"
},
"messageTimestamp": {
"type": "string"
},
"method": {
"enum": [
"Get"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp"
],
"type": "object"
}
},
"required": [
"authorization",
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 26d1944f51538b0dba0df08bfe31685a8b29ac29 | 2024-04-24T00:08:42 | json-schemas/signature-payloads/generic-signature-payload.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/signature-payloads/generic-signature-payload.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"delegatedGrantId": {
"type": "string"
},
"descriptorCid": {
"type": "string"
},
"permissionGrantId": {
"type": "string"
},
"protocolRole": {
"$comment": "Used in the Records interface to authorize role-authorized actions for protocol records",
"type": "string"
}
},
"required": [
"descriptorCid"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 26d1944f51538b0dba0df08bfe31685a8b29ac29 | 2024-04-24T00:08:42 | json-schemas/interface-methods/records-delete.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-delete.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization-delegated-grant.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time"
},
"method": {
"enum": [
"Delete"
],
"type": "string"
},
"recordId": {
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"recordId"
],
"type": "object"
}
},
"required": [
"authorization",
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 22560ec0651a14c550edd9b11b914f57ef39b7a3 | 2024-04-08T21:02:08 | json-schemas/interface-methods/string-range-filter.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/string-range-filter.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"dependencies": {
"gt": {
"not": {
"required": [
"gte"
]
}
},
"gte": {
"not": {
"required": [
"gt"
]
}
},
"lt": {
"not": {
"required": [
"lte"
]
}
},
"lte": {
"not": {
"required": [
"lt"
]
}
}
},
"minProperties": 1,
"properties": {
"gt": {
"type": "string"
},
"gte": {
"type": "string"
},
"lt": {
"type": "string"
},
"lte": {
"type": "string"
}
},
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 1362e6ef05c81be7e943ae9c0e60e11369ca69e0 | 2023-08-04T18:33:10 | json-schemas/interface-methods/records-write-unidentified.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$comment": "rule defining `protocol` and `contextId` relationship",
"$id": "https://identity.foundation/dwn/json-schemas/records-write-unidentified.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"anyOf": [
{
"properties": {
"descriptor": {
"required": [
"protocol",
"protocolPath",
"schema"
],
"type": "object"
}
},
"required": [
"contextId"
]
},
{
"allOf": [
{
"not": {
"required": [
"contextId"
]
}
},
{
"properties": {
"descriptor": {
"not": {
"required": [
"protocol"
]
},
"type": "object"
}
}
},
{
"properties": {
"descriptor": {
"not": {
"required": [
"protocolPath"
]
},
"type": "object"
}
}
}
]
}
],
"properties": {
"attestation": {
"$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json"
},
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json"
},
"contextId": {
"type": "string"
},
"descriptor": {
"additionalProperties": false,
"allOf": [
{
"$comment": "rule defining `published` and `datePublished` relationship",
"anyOf": [
{
"properties": {
"published": {
"enum": [
true
],
"type": "boolean"
}
},
"required": [
"published",
"datePublished"
]
},
{
"not": {
"required": [
"datePublished"
]
},
"properties": {
"published": {
"enum": [
false
],
"type": "boolean"
}
}
},
{
"allOf": [
{
"not": {
"required": [
"published"
]
}
},
{
"not": {
"required": [
"datePublished"
]
}
}
]
}
]
}
],
"dependencies": {
"parentId": [
"protocol"
]
},
"properties": {
"dataCid": {
"type": "string"
},
"dataFormat": {
"type": "string"
},
"dataSize": {
"type": "number"
},
"dateCreated": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"datePublished": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Write"
],
"type": "string"
},
"parentId": {
"type": "string"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"pattern": "^[a-zA-Z]+(/[a-zA-Z]+)*$",
"type": "string"
},
"published": {
"type": "boolean"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"schema": {
"type": "string"
}
},
"required": [
"interface",
"method",
"dataCid",
"dataSize",
"dateCreated",
"messageTimestamp",
"dataFormat"
],
"type": "object"
},
"encryption": {
"additionalProperties": false,
"properties": {
"algorithm": {
"enum": [
"A256CTR"
],
"type": "string"
},
"initializationVector": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"keyEncryption": {
"items": {
"additionalProperties": false,
"properties": {
"algorithm": {
"enum": [
"ECIES-ES256K"
],
"type": "string"
},
"derivationScheme": {
"enum": [
"dataFormats",
"protocolContext",
"protocolPath",
"schemas"
],
"type": "string"
},
"derivedPublicKey": {
"$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json"
},
"encryptedKey": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"ephemeralPublicKey": {
"$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json"
},
"initializationVector": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"messageAuthenticationCode": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"rootKeyId": {
"type": "string"
}
},
"required": [
"rootKeyId",
"derivationScheme",
"algorithm",
"encryptedKey",
"initializationVector",
"ephemeralPublicKey",
"messageAuthenticationCode"
],
"type": "object"
},
"minItems": 1,
"type": "array"
}
},
"required": [
"algorithm",
"initializationVector",
"keyEncryption"
],
"type": "object"
},
"recordId": {
"type": "string"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | abedc507fdd2d5553e2b4ae6af1d0a4e1c8393e9 | 2024-04-10T01:57:41 | json-schemas/interface-methods/messages-get.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/messages-get.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"interface": {
"enum": [
"Messages"
],
"type": "string"
},
"messageCids": {
"items": {
"type": "string"
},
"minItems": 1,
"type": "array"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Get"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp"
],
"type": "object"
}
},
"required": [
"authorization",
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 26d1944f51538b0dba0df08bfe31685a8b29ac29 | 2024-04-24T00:08:42 | json-schemas/permissions/permissions-definitions.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$defs": {
"conditions": {
"additionalProperties": false,
"properties": {
"publication": {
"enum": [
"Required",
"Prohibited"
],
"type": "string"
}
},
"type": "object"
},
"scope": {
"oneOf": [
{
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/protocols-query-scope"
},
{
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-read-scope"
},
{
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-delete-scope"
},
{
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-write-scope"
},
{
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-query-scope"
},
{
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-subscribe-scope"
}
]
}
},
"$id": "https://identity.foundation/dwn/json-schemas/permissions/defs.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | abedc507fdd2d5553e2b4ae6af1d0a4e1c8393e9 | 2024-04-10T01:57:41 | json-schemas/interface-methods/events-get.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/events-get.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"cursor": {
"$ref": "https://identity.foundation/dwn/json-schemas/pagination-cursor.json"
},
"interface": {
"enum": [
"Events"
],
"type": "string"
},
"messageTimestamp": {
"type": "string"
},
"method": {
"enum": [
"Get"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp"
],
"type": "object"
}
},
"required": [
"authorization",
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 26d1944f51538b0dba0df08bfe31685a8b29ac29 | 2024-04-24T00:08:42 | json-schemas/interface-methods/events-query.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/events-query.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"cursor": {
"$ref": "https://identity.foundation/dwn/json-schemas/pagination-cursor.json"
},
"filters": {
"items": {
"$ref": "https://identity.foundation/dwn/json-schemas/events-filter.json"
},
"minItems": 1,
"type": "array"
},
"interface": {
"enum": [
"Events"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time"
},
"method": {
"enum": [
"Query"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"filters"
],
"type": "object"
}
},
"required": [
"authorization",
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 6c01ea2f49a6f78193c74ad951c81fa6ed908a69 | 2023-11-18T00:07:12 | json-schemas/interface-methods/records-write-unidentified.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$comment": "rule defining `protocol` and `contextId` relationship",
"$id": "https://identity.foundation/dwn/json-schemas/records-write-unidentified.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"anyOf": [
{
"properties": {
"descriptor": {
"required": [
"protocol",
"protocolPath"
],
"type": "object"
}
},
"required": [
"contextId"
]
},
{
"allOf": [
{
"not": {
"required": [
"contextId"
]
}
},
{
"properties": {
"descriptor": {
"not": {
"required": [
"protocol"
]
},
"type": "object"
}
}
},
{
"properties": {
"descriptor": {
"not": {
"required": [
"protocolPath"
]
},
"type": "object"
}
}
}
]
}
],
"properties": {
"attestation": {
"$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json"
},
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization-owner.json"
},
"contextId": {
"type": "string"
},
"descriptor": {
"additionalProperties": false,
"allOf": [
{
"$comment": "rule defining `published` and `datePublished` relationship",
"anyOf": [
{
"properties": {
"published": {
"enum": [
true
],
"type": "boolean"
}
},
"required": [
"published",
"datePublished"
]
},
{
"not": {
"required": [
"datePublished"
]
},
"properties": {
"published": {
"enum": [
false
],
"type": "boolean"
}
}
},
{
"allOf": [
{
"not": {
"required": [
"published"
]
}
},
{
"not": {
"required": [
"datePublished"
]
}
}
]
}
]
}
],
"dependencies": {
"parentId": [
"protocol"
]
},
"properties": {
"dataCid": {
"type": "string"
},
"dataFormat": {
"type": "string"
},
"dataSize": {
"type": "number"
},
"dateCreated": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"datePublished": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Write"
],
"type": "string"
},
"parentId": {
"type": "string"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"pattern": "^[a-zA-Z]+(/[a-zA-Z]+)*$",
"type": "string"
},
"published": {
"type": "boolean"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"schema": {
"type": "string"
}
},
"required": [
"interface",
"method",
"dataCid",
"dataSize",
"dateCreated",
"messageTimestamp",
"dataFormat"
],
"type": "object"
},
"encryption": {
"additionalProperties": false,
"properties": {
"algorithm": {
"enum": [
"A256CTR"
],
"type": "string"
},
"initializationVector": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"keyEncryption": {
"items": {
"additionalProperties": false,
"properties": {
"algorithm": {
"enum": [
"ECIES-ES256K"
],
"type": "string"
},
"derivationScheme": {
"enum": [
"dataFormats",
"protocolContext",
"protocolPath",
"schemas"
],
"type": "string"
},
"derivedPublicKey": {
"$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json"
},
"encryptedKey": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"ephemeralPublicKey": {
"$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json"
},
"initializationVector": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"messageAuthenticationCode": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"rootKeyId": {
"type": "string"
}
},
"required": [
"rootKeyId",
"derivationScheme",
"algorithm",
"encryptedKey",
"initializationVector",
"ephemeralPublicKey",
"messageAuthenticationCode"
],
"type": "object"
},
"minItems": 1,
"type": "array"
}
},
"required": [
"algorithm",
"initializationVector",
"keyEncryption"
],
"type": "object"
},
"recordId": {
"type": "string"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | abedc507fdd2d5553e2b4ae6af1d0a4e1c8393e9 | 2024-04-10T01:57:41 | json-schemas/signature-payloads/records-write-signature-payload.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/signature-payloads/records-write-signature-payload.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"attestationCid": {
"type": "string"
},
"contextId": {
"type": "string"
},
"delegatedGrantId": {
"type": "string"
},
"descriptorCid": {
"type": "string"
},
"encryptionCid": {
"type": "string"
},
"permissionsGrantId": {
"type": "string"
},
"protocolRole": {
"type": "string"
},
"recordId": {
"type": "string"
}
},
"required": [
"descriptorCid",
"recordId"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 3f8b4052748113e4298679d1892408aedf493f17 | 2023-11-14T18:12:40 | json-schemas/interface-methods/records-query.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-query.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization-delegated-grant.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"dateSort": {
"enum": [
"createdAscending",
"createdDescending",
"publishedAscending",
"publishedDescending"
],
"type": "string"
},
"filter": {
"$ref": "https://identity.foundation/dwn/json-schemas/records-filter.json"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Query"
],
"type": "string"
},
"pagination": {
"additionalProperties": false,
"properties": {
"cursor": {
"type": "string"
},
"limit": {
"minimum": 1,
"type": "number"
}
},
"type": "object"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"filter"
],
"type": "object"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 0e3bc291e532b2e7afb1bbc1e17e901508dd1f76 | 2023-09-08T18:06:16 | json-schemas/interface-methods/records-read.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-read.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"filter": {
"$ref": "https://identity.foundation/dwn/json-schemas/records-filter.json"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"type": "string"
},
"method": {
"enum": [
"Read"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"filter"
],
"type": "object"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 26d1944f51538b0dba0df08bfe31685a8b29ac29 | 2024-04-24T00:08:42 | json-schemas/interface-methods/events-filter.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/events-filter.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"dependencies": {
"datePublished": {
"oneOf": [
{
"properties": {
"published": {
"enum": [
true
]
}
},
"required": [
"published"
]
},
{
"not": {
"required": [
"published"
]
}
}
]
}
},
"minProperties": 1,
"properties": {
"contextId": {
"type": "string"
},
"dataFormat": {
"type": "string"
},
"dataSize": {
"$ref": "https://identity.foundation/dwn/json-schemas/number-range-filter.json"
},
"dateCreated": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time"
}
},
"type": "object"
},
"datePublished": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time"
}
},
"type": "object"
},
"dateUpdated": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time"
}
},
"type": "object"
},
"interface": {
"enum": [
"Permissions",
"Protocols",
"Records"
],
"type": "string"
},
"method": {
"enum": [
"Configure",
"Delete",
"Grant",
"Revoke",
"Write"
],
"type": "string"
},
"parentId": {
"type": "string"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"type": "string"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/did"
},
"recordId": {
"type": "string"
},
"schema": {
"type": "string"
}
},
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 26d1944f51538b0dba0df08bfe31685a8b29ac29 | 2024-04-24T00:08:42 | json-schemas/permissions/scopes.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$defs": {
"protocols-query-scope": {
"properties": {
"interface": {
"const": "Protocols"
},
"method": {
"const": "Query"
}
},
"type": "object"
},
"records-delete-scope": {
"properties": {
"interface": {
"const": "Records"
},
"method": {
"const": "Delete"
},
"protocol": {
"type": "string"
},
"schema": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
},
"records-query-scope": {
"properties": {
"interface": {
"const": "Records"
},
"method": {
"const": "Query"
},
"protocol": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
},
"records-read-scope": {
"properties": {
"contextId": {
"type": "string"
},
"interface": {
"const": "Records"
},
"method": {
"const": "Read"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"type": "string"
},
"schema": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
},
"records-subscribe-scope": {
"properties": {
"interface": {
"const": "Records"
},
"method": {
"const": "Subscribe"
},
"protocol": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
},
"records-write-scope": {
"properties": {
"contextId": {
"type": "string"
},
"interface": {
"const": "Records"
},
"method": {
"const": "Write"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"type": "string"
},
"schema": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
}
},
"$id": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 3a053b5f4bd69a1e844485642dfe4c6f1df48d21 | 2023-11-20T17:57:17 | json-schemas/interface-methods/records-filter.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-filter.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"dependencies": {
"datePublished": {
"oneOf": [
{
"properties": {
"published": {
"enum": [
true
]
}
},
"required": [
"published"
]
},
{
"not": {
"required": [
"published"
]
}
}
]
}
},
"minProperties": 1,
"properties": {
"attester": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"author": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"contextId": {
"type": "string"
},
"dataCid": {
"type": "string"
},
"dataFormat": {
"type": "string"
},
"dataSize": {
"$ref": "https://identity.foundation/dwn/json-schemas/number-range-filter.json"
},
"dateCreated": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
}
},
"type": "object"
},
"datePublished": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
}
},
"type": "object"
},
"dateUpdated": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
}
},
"type": "object"
},
"parentId": {
"type": "string"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"type": "string"
},
"published": {
"type": "boolean"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"recordId": {
"type": "string"
},
"schema": {
"type": "string"
}
},
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 26d1944f51538b0dba0df08bfe31685a8b29ac29 | 2024-04-24T00:08:42 | json-schemas/interface-methods/records-read.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-read.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization-delegated-grant.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"filter": {
"$ref": "https://identity.foundation/dwn/json-schemas/records-filter.json"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time"
},
"method": {
"enum": [
"Read"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"filter"
],
"type": "object"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | bb57d77305011342446e19437ab617eafb2d2fd8 | 2023-06-27T01:54:55 | json-schemas/interface-methods/records-query.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-query.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"dateCreated": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"dateSort": {
"enum": [
"createdAscending",
"createdDescending",
"publishedAscending",
"publishedDescending"
],
"type": "string"
},
"filter": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"attester": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"contextId": {
"type": "string"
},
"dataFormat": {
"type": "string"
},
"dateCreated": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
}
},
"type": "object"
},
"parentId": {
"type": "string"
},
"protocol": {
"type": "string"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"recordId": {
"type": "string"
},
"schema": {
"type": "string"
}
},
"type": "object"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"method": {
"enum": [
"Query"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"dateCreated",
"filter"
],
"type": "object"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 90484e1a840ee416ec67ea846f78d9b6f169cb91 | 2023-10-04T00:13:55 | json-schemas/interface-methods/records-write-unidentified.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$comment": "rule defining `protocol` and `contextId` relationship",
"$id": "https://identity.foundation/dwn/json-schemas/records-write-unidentified.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"anyOf": [
{
"properties": {
"descriptor": {
"required": [
"protocol",
"protocolPath",
"schema"
],
"type": "object"
}
},
"required": [
"contextId"
]
},
{
"allOf": [
{
"not": {
"required": [
"contextId"
]
}
},
{
"properties": {
"descriptor": {
"not": {
"required": [
"protocol"
]
},
"type": "object"
}
}
},
{
"properties": {
"descriptor": {
"not": {
"required": [
"protocolPath"
]
},
"type": "object"
}
}
}
]
}
],
"properties": {
"attestation": {
"$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json"
},
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization-owner.json"
},
"contextId": {
"type": "string"
},
"descriptor": {
"additionalProperties": false,
"allOf": [
{
"$comment": "rule defining `published` and `datePublished` relationship",
"anyOf": [
{
"properties": {
"published": {
"enum": [
true
],
"type": "boolean"
}
},
"required": [
"published",
"datePublished"
]
},
{
"not": {
"required": [
"datePublished"
]
},
"properties": {
"published": {
"enum": [
false
],
"type": "boolean"
}
}
},
{
"allOf": [
{
"not": {
"required": [
"published"
]
}
},
{
"not": {
"required": [
"datePublished"
]
}
}
]
}
]
}
],
"dependencies": {
"parentId": [
"protocol"
]
},
"properties": {
"dataCid": {
"type": "string"
},
"dataFormat": {
"type": "string"
},
"dataSize": {
"type": "number"
},
"dateCreated": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"datePublished": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Write"
],
"type": "string"
},
"parentId": {
"type": "string"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"pattern": "^[a-zA-Z]+(/[a-zA-Z]+)*$",
"type": "string"
},
"published": {
"type": "boolean"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"schema": {
"type": "string"
}
},
"required": [
"interface",
"method",
"dataCid",
"dataSize",
"dateCreated",
"messageTimestamp",
"dataFormat"
],
"type": "object"
},
"encryption": {
"additionalProperties": false,
"properties": {
"algorithm": {
"enum": [
"A256CTR"
],
"type": "string"
},
"initializationVector": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"keyEncryption": {
"items": {
"additionalProperties": false,
"properties": {
"algorithm": {
"enum": [
"ECIES-ES256K"
],
"type": "string"
},
"derivationScheme": {
"enum": [
"dataFormats",
"protocolContext",
"protocolPath",
"schemas"
],
"type": "string"
},
"derivedPublicKey": {
"$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json"
},
"encryptedKey": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"ephemeralPublicKey": {
"$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json"
},
"initializationVector": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"messageAuthenticationCode": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"rootKeyId": {
"type": "string"
}
},
"required": [
"rootKeyId",
"derivationScheme",
"algorithm",
"encryptedKey",
"initializationVector",
"ephemeralPublicKey",
"messageAuthenticationCode"
],
"type": "object"
},
"minItems": 1,
"type": "array"
}
},
"required": [
"algorithm",
"initializationVector",
"keyEncryption"
],
"type": "object"
},
"recordId": {
"type": "string"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | abedc507fdd2d5553e2b4ae6af1d0a4e1c8393e9 | 2024-04-10T01:57:41 | json-schemas/interface-methods/events-subscribe.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/events-subscribe.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"filters": {
"items": {
"$ref": "https://identity.foundation/dwn/json-schemas/events-filter.json"
},
"type": "array"
},
"interface": {
"enum": [
"Events"
],
"type": "string"
},
"messageTimestamp": {
"type": "string"
},
"method": {
"enum": [
"Subscribe"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"filters"
],
"type": "object"
}
},
"required": [
"descriptor",
"authorization"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 13eb608bde2f03b4a120720c4f1bb793b4f1f3fa | 2023-09-28T17:43:52 | json-schemas/interface-methods/protocols-query.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/protocols-query.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"filter": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"protocol": {
"type": "string"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
}
},
"type": "object"
},
"interface": {
"enum": [
"Protocols"
],
"type": "string"
},
"messageTimestamp": {
"type": "string"
},
"method": {
"enum": [
"Query"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp"
],
"type": "object"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 13eb608bde2f03b4a120720c4f1bb793b4f1f3fa | 2023-09-28T17:43:52 | json-schemas/interface-methods/records-query.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-query.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"dateSort": {
"enum": [
"createdAscending",
"createdDescending",
"publishedAscending",
"publishedDescending"
],
"type": "string"
},
"filter": {
"$ref": "https://identity.foundation/dwn/json-schemas/records-filter.json"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Query"
],
"type": "string"
},
"pagination": {
"additionalProperties": false,
"properties": {
"limit": {
"minimum": 1,
"type": "number"
},
"messageCid": {
"type": "string"
}
},
"type": "object"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"filter"
],
"type": "object"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 26d1944f51538b0dba0df08bfe31685a8b29ac29 | 2024-04-24T00:08:42 | json-schemas/permissions/permission-grant-data.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/permission-grant-data.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"conditions": {
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/conditions"
},
"dateExpires": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time"
},
"delegated": {
"type": "boolean"
},
"description": {
"type": "string"
},
"requestId": {
"type": "string"
},
"scope": {
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/scope"
}
},
"required": [
"dateExpires",
"scope"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | a08dcbe1b02f1129eb862da818a4cdbba91e734d | 2023-07-03T22:36:57 | json-schemas/interface-methods/protocols-configure.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/protocols-configure.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"definition": {
"$ref": "https://identity.foundation/dwn/json-schemas/protocol-definition.json"
},
"interface": {
"enum": [
"Protocols"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Configure"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"definition"
],
"type": "object"
}
},
"required": [
"authorization",
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | abedc507fdd2d5553e2b4ae6af1d0a4e1c8393e9 | 2024-04-10T01:57:41 | json-schemas/interface-methods/records-query.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-query.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization-delegated-grant.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"dateSort": {
"enum": [
"createdAscending",
"createdDescending",
"publishedAscending",
"publishedDescending"
],
"type": "string"
},
"filter": {
"$ref": "https://identity.foundation/dwn/json-schemas/records-filter.json"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Query"
],
"type": "string"
},
"pagination": {
"additionalProperties": false,
"properties": {
"cursor": {
"$ref": "https://identity.foundation/dwn/json-schemas/pagination-cursor.json"
},
"limit": {
"minimum": 1,
"type": "number"
}
},
"type": "object"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"filter"
],
"type": "object"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | bb57d77305011342446e19437ab617eafb2d2fd8 | 2023-06-27T01:54:55 | json-schemas/interface-methods/messages-get.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/messages-get.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"interface": {
"enum": [
"Messages"
],
"type": "string"
},
"messageCids": {
"items": {
"type": "string"
},
"minItems": 1,
"type": "array"
},
"method": {
"enum": [
"Get"
],
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
}
},
"required": [
"authorization",
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | abedc507fdd2d5553e2b4ae6af1d0a4e1c8393e9 | 2024-04-10T01:57:41 | json-schemas/interface-methods/pagination-cursor.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/pagination-cursor.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"minProperties": 1,
"properties": {
"messageCid": {
"type": "string"
},
"value": {
"type": [
"string",
"number"
]
}
},
"required": [
"messageCid",
"value"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 26d1944f51538b0dba0df08bfe31685a8b29ac29 | 2024-04-24T00:08:42 | json-schemas/interface-methods/protocols-query.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/protocols-query.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"filter": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"protocol": {
"type": "string"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/did"
}
},
"type": "object"
},
"interface": {
"enum": [
"Protocols"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time"
},
"method": {
"enum": [
"Query"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp"
],
"type": "object"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 13eb608bde2f03b4a120720c4f1bb793b4f1f3fa | 2023-09-28T17:43:52 | json-schemas/interface-methods/messages-get.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/messages-get.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"interface": {
"enum": [
"Messages"
],
"type": "string"
},
"messageCids": {
"items": {
"type": "string"
},
"minItems": 1,
"type": "array"
},
"messageTimestamp": {
"type": "string"
},
"method": {
"enum": [
"Get"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp"
],
"type": "object"
}
},
"required": [
"authorization",
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 641888e1cbcb0f29ebe99d600c4b86c92b279d5f | 2023-11-30T19:53:48 | json-schemas/interface-methods/events-get.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/events-get.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"cursor": {
"type": "string"
},
"interface": {
"enum": [
"Events"
],
"type": "string"
},
"messageTimestamp": {
"type": "string"
},
"method": {
"enum": [
"Get"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp"
],
"type": "object"
}
},
"required": [
"authorization",
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 8f6e01e77c91d8932136b7a0666d31b83676e76b | 2024-01-24T23:48:13 | json-schemas/permissions/permissions-definitions.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/permissions/defs.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"conditions": {
"additionalProperties": false,
"properties": {
"publication": {
"enum": [
"Required",
"Prohibited"
],
"type": "string"
}
},
"type": "object"
},
"grantedBy": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"grantedFor": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"grantedTo": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"scope": {
"oneOf": [
{
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/definitions/protocols-query-scope"
},
{
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/definitions/records-read-scope"
},
{
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/definitions/records-delete-scope"
},
{
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/definitions/records-write-scope"
},
{
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/definitions/records-query-scope"
},
{
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/definitions/records-subscribe-scope"
}
]
}
},
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | bb57d77305011342446e19437ab617eafb2d2fd8 | 2023-06-27T01:54:55 | json-schemas/interface-methods/protocols-query.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/protocols-query.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"dateCreated": {
"type": "string"
},
"filter": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"protocol": {
"type": "string"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
}
},
"type": "object"
},
"interface": {
"enum": [
"Protocols"
],
"type": "string"
},
"method": {
"enum": [
"Query"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"dateCreated"
],
"type": "object"
}
},
"required": [
"authorization",
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | abedc507fdd2d5553e2b4ae6af1d0a4e1c8393e9 | 2024-04-10T01:57:41 | json-schemas/permissions/permission-grant-data.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/permission-grant-data.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"conditions": {
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/definitions/conditions"
},
"dateExpires": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"delegated": {
"type": "boolean"
},
"description": {
"type": "string"
},
"requestId": {
"type": "string"
},
"scope": {
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/definitions/scope"
}
},
"required": [
"dateExpires",
"scope"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 26d1944f51538b0dba0df08bfe31685a8b29ac29 | 2024-04-24T00:08:42 | json-schemas/definitions.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$defs": {
"base64url": {
"pattern": "^[A-Za-z0-9_-]+$",
"type": "string"
},
"date-time": {
"pattern": "^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$",
"type": "string"
},
"did": {
"pattern": "^did:([a-z0-9]+):((?:(?:[a-zA-Z0-9._-]|(?:%[0-9a-fA-F]{2}))*:)*((?:[a-zA-Z0-9._-]|(?:%[0-9a-fA-F]{2}))+))((;[a-zA-Z0-9_.:%-]+=[a-zA-Z0-9_.:%-]*)*)(/[^#?]*)?([?][^#]*)?(#.*)?$",
"type": "string"
},
"uuid": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
"type": "string"
}
},
"$id": "https://identity.foundation/dwn/json-schemas/defs.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | fb08183ba91d906d6249e306e5e1f1b55c9ee2a9 | 2023-10-27T23:18:16 | json-schemas/interface-methods/protocols-query.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/protocols-query.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"filter": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"protocol": {
"type": "string"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
}
},
"type": "object"
},
"interface": {
"enum": [
"Protocols"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Query"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp"
],
"type": "object"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | abedc507fdd2d5553e2b4ae6af1d0a4e1c8393e9 | 2024-04-10T01:57:41 | json-schemas/interface-methods/records-delete.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-delete.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization-delegated-grant.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Delete"
],
"type": "string"
},
"recordId": {
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"recordId"
],
"type": "object"
}
},
"required": [
"authorization",
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | abedc507fdd2d5553e2b4ae6af1d0a4e1c8393e9 | 2024-04-10T01:57:41 | json-schemas/interface-methods/records-subscribe.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-subscribe.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization-delegated-grant.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"filter": {
"$ref": "https://identity.foundation/dwn/json-schemas/records-filter.json"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Subscribe"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"filter"
],
"type": "object"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 22560ec0651a14c550edd9b11b914f57ef39b7a3 | 2024-04-08T21:02:08 | json-schemas/interface-methods/records-write-unidentified.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$comment": "rule defining `protocol` and `contextId` relationship",
"$id": "https://identity.foundation/dwn/json-schemas/records-write-unidentified.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"anyOf": [
{
"properties": {
"descriptor": {
"required": [
"protocol",
"protocolPath"
],
"type": "object"
}
},
"required": [
"contextId"
]
},
{
"allOf": [
{
"not": {
"required": [
"contextId"
]
}
},
{
"properties": {
"descriptor": {
"not": {
"required": [
"protocol"
]
},
"type": "object"
}
}
},
{
"properties": {
"descriptor": {
"not": {
"required": [
"protocolPath"
]
},
"type": "object"
}
}
}
]
}
],
"properties": {
"attestation": {
"$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json"
},
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization-owner.json"
},
"contextId": {
"pattern": "^[a-zA-Z0-9]+(/[a-zA-Z0-9]+)*$",
"type": "string"
},
"descriptor": {
"additionalProperties": false,
"allOf": [
{
"$comment": "rule defining `published` and `datePublished` relationship",
"anyOf": [
{
"properties": {
"published": {
"enum": [
true
],
"type": "boolean"
}
},
"required": [
"published",
"datePublished"
]
},
{
"not": {
"required": [
"datePublished"
]
},
"properties": {
"published": {
"enum": [
false
],
"type": "boolean"
}
}
},
{
"allOf": [
{
"not": {
"required": [
"published"
]
}
},
{
"not": {
"required": [
"datePublished"
]
}
}
]
}
]
}
],
"dependencies": {
"parentId": [
"protocol"
]
},
"properties": {
"dataCid": {
"type": "string"
},
"dataFormat": {
"type": "string"
},
"dataSize": {
"type": "number"
},
"dateCreated": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"datePublished": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Write"
],
"type": "string"
},
"parentId": {
"type": "string"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"pattern": "^[a-zA-Z]+(/[a-zA-Z]+)*$",
"type": "string"
},
"published": {
"type": "boolean"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"schema": {
"type": "string"
},
"tags": {
"additionalProperties": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"items": {
"type": "string"
},
"maxItems": 10,
"minItems": 1,
"type": "array"
},
{
"items": {
"type": "number"
},
"maxItems": 10,
"minItems": 1,
"type": "array"
}
]
},
"maxProperties": 10,
"minProperties": 1,
"type": "object"
}
},
"required": [
"interface",
"method",
"dataCid",
"dataSize",
"dateCreated",
"messageTimestamp",
"dataFormat"
],
"type": "object"
},
"encryption": {
"additionalProperties": false,
"properties": {
"algorithm": {
"enum": [
"A256CTR"
],
"type": "string"
},
"initializationVector": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"keyEncryption": {
"items": {
"additionalProperties": false,
"properties": {
"algorithm": {
"enum": [
"ECIES-ES256K"
],
"type": "string"
},
"derivationScheme": {
"enum": [
"dataFormats",
"protocolContext",
"protocolPath",
"schemas"
],
"type": "string"
},
"derivedPublicKey": {
"$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json"
},
"encryptedKey": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"ephemeralPublicKey": {
"$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json"
},
"initializationVector": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"messageAuthenticationCode": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"rootKeyId": {
"type": "string"
}
},
"required": [
"rootKeyId",
"derivationScheme",
"algorithm",
"encryptedKey",
"initializationVector",
"ephemeralPublicKey",
"messageAuthenticationCode"
],
"type": "object"
},
"minItems": 1,
"type": "array"
}
},
"required": [
"algorithm",
"initializationVector",
"keyEncryption"
],
"type": "object"
},
"recordId": {
"type": "string"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | bb57d77305011342446e19437ab617eafb2d2fd8 | 2023-06-27T01:54:55 | json-schemas/interface-methods/protocols-configure.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/protocols-configure.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"dateModified": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"definition": {
"$ref": "https://identity.foundation/dwn/json-schemas/protocol-definition.json"
},
"interface": {
"enum": [
"Protocols"
],
"type": "string"
},
"method": {
"enum": [
"Configure"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"dateModified",
"definition"
],
"type": "object"
}
},
"required": [
"authorization",
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | a08dcbe1b02f1129eb862da818a4cdbba91e734d | 2023-07-03T22:36:57 | json-schemas/interface-methods/records-query.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-query.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"dateSort": {
"enum": [
"createdAscending",
"createdDescending",
"publishedAscending",
"publishedDescending"
],
"type": "string"
},
"filter": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"attester": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"contextId": {
"type": "string"
},
"dataFormat": {
"type": "string"
},
"dateCreated": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
}
},
"type": "object"
},
"parentId": {
"type": "string"
},
"protocol": {
"type": "string"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"recordId": {
"type": "string"
},
"schema": {
"type": "string"
}
},
"type": "object"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Query"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"filter"
],
"type": "object"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 0e3bc291e532b2e7afb1bbc1e17e901508dd1f76 | 2023-09-08T18:06:16 | json-schemas/interface-methods/records-query.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-query.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"dateSort": {
"enum": [
"createdAscending",
"createdDescending",
"publishedAscending",
"publishedDescending"
],
"type": "string"
},
"filter": {
"$ref": "https://identity.foundation/dwn/json-schemas/records-filter.json"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Query"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"filter"
],
"type": "object"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 22560ec0651a14c550edd9b11b914f57ef39b7a3 | 2024-04-08T21:02:08 | json-schemas/interface-methods/records-filter.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-filter.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"dependencies": {
"datePublished": {
"oneOf": [
{
"properties": {
"published": {
"enum": [
true
]
}
},
"required": [
"published"
]
},
{
"not": {
"required": [
"published"
]
}
}
]
}
},
"minProperties": 1,
"properties": {
"attester": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"author": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"contextId": {
"type": "string"
},
"dataCid": {
"type": "string"
},
"dataFormat": {
"type": "string"
},
"dataSize": {
"$ref": "https://identity.foundation/dwn/json-schemas/number-range-filter.json"
},
"dateCreated": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
}
},
"type": "object"
},
"datePublished": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
}
},
"type": "object"
},
"dateUpdated": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
}
},
"type": "object"
},
"parentId": {
"type": "string"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"type": "string"
},
"published": {
"type": "boolean"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"recordId": {
"type": "string"
},
"schema": {
"type": "string"
},
"tags": {
"additionalProperties": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"startsWith": {
"type": "string"
}
},
"type": "object"
},
{
"$ref": "https://identity.foundation/dwn/json-schemas/string-range-filter.json"
},
{
"$ref": "https://identity.foundation/dwn/json-schemas/number-range-filter.json"
}
]
},
"minProperties": 1,
"type": "object"
}
},
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 6c381a2e72f1d94b61c563daa313c83936c31640 | 2023-08-31T20:15:42 | json-schemas/permissions/scopes.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"protocols-query-scope": {
"properties": {
"interface": {
"const": "Protocols"
},
"method": {
"const": "Query"
}
},
"type": "object"
},
"records-delete-scope": {
"properties": {
"interface": {
"const": "Records"
},
"method": {
"const": "Delete"
},
"schema": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
},
"records-read-scope": {
"properties": {
"contextId": {
"type": "string"
},
"interface": {
"const": "Records"
},
"method": {
"const": "Read"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"type": "string"
},
"schema": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
},
"records-write-scope": {
"properties": {
"contextId": {
"type": "string"
},
"interface": {
"const": "Records"
},
"method": {
"const": "Write"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"type": "string"
},
"schema": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
}
},
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 26d1944f51538b0dba0df08bfe31685a8b29ac29 | 2024-04-24T00:08:42 | json-schemas/interface-methods/messages-get.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/messages-get.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"interface": {
"enum": [
"Messages"
],
"type": "string"
},
"messageCids": {
"items": {
"type": "string"
},
"minItems": 1,
"type": "array"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time"
},
"method": {
"enum": [
"Get"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp"
],
"type": "object"
}
},
"required": [
"authorization",
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 13eb608bde2f03b4a120720c4f1bb793b4f1f3fa | 2023-09-28T17:43:52 | json-schemas/interface-methods/records-delete.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-delete.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"type": "string"
},
"method": {
"enum": [
"Delete"
],
"type": "string"
},
"recordId": {
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"recordId"
],
"type": "object"
}
},
"required": [
"authorization",
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | bb57d77305011342446e19437ab617eafb2d2fd8 | 2023-06-27T01:54:55 | json-schemas/interface-methods/records-delete.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-delete.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"dateModified": {
"type": "string"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"method": {
"enum": [
"Delete"
],
"type": "string"
},
"recordId": {
"type": "string"
}
},
"required": [
"interface",
"method",
"dateModified",
"recordId"
],
"type": "object"
}
},
"required": [
"authorization",
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 8f6e01e77c91d8932136b7a0666d31b83676e76b | 2024-01-24T23:48:13 | json-schemas/permissions/scopes.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"protocols-query-scope": {
"properties": {
"interface": {
"const": "Protocols"
},
"method": {
"const": "Query"
}
},
"type": "object"
},
"records-delete-scope": {
"properties": {
"interface": {
"const": "Records"
},
"method": {
"const": "Delete"
},
"protocol": {
"type": "string"
},
"schema": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
},
"records-query-scope": {
"properties": {
"interface": {
"const": "Records"
},
"method": {
"const": "Query"
},
"protocol": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
},
"records-read-scope": {
"properties": {
"contextId": {
"type": "string"
},
"interface": {
"const": "Records"
},
"method": {
"const": "Read"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"type": "string"
},
"schema": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
},
"records-subscribe-scope": {
"properties": {
"interface": {
"const": "Records"
},
"method": {
"const": "Subscribe"
},
"protocol": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
},
"records-write-scope": {
"properties": {
"contextId": {
"type": "string"
},
"interface": {
"const": "Records"
},
"method": {
"const": "Write"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"type": "string"
},
"schema": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
}
},
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | c4b13dc8b03342363207883631b10d868ce6f960 | 2023-09-18T18:08:48 | json-schemas/interface-methods/records-query.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-query.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"dateSort": {
"enum": [
"createdAscending",
"createdDescending",
"publishedAscending",
"publishedDescending"
],
"type": "string"
},
"filter": {
"$ref": "https://identity.foundation/dwn/json-schemas/records-filter.json"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Query"
],
"type": "string"
},
"pagination": {
"additionalProperties": false,
"properties": {
"limit": {
"minimum": 1,
"type": "number"
},
"messageCid": {
"type": "string"
}
},
"type": "object"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"filter"
],
"type": "object"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 13eb608bde2f03b4a120720c4f1bb793b4f1f3fa | 2023-09-28T17:43:52 | json-schemas/interface-methods/protocols-configure.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/protocols-configure.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"definition": {
"$ref": "https://identity.foundation/dwn/json-schemas/protocol-definition.json"
},
"interface": {
"enum": [
"Protocols"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Configure"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"definition"
],
"type": "object"
}
},
"required": [
"authorization",
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 0e3bc291e532b2e7afb1bbc1e17e901508dd1f76 | 2023-09-08T18:06:16 | json-schemas/interface-methods/records-filter.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-filter.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"minProperties": 1,
"properties": {
"attester": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"contextId": {
"type": "string"
},
"dataFormat": {
"type": "string"
},
"dateCreated": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
}
},
"type": "object"
},
"parentId": {
"type": "string"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"type": "string"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"recordId": {
"type": "string"
},
"schema": {
"type": "string"
}
},
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 04f821d88d7a42183844aae49e16f21a83b92c71 | 2023-10-05T18:21:56 | json-schemas/signature-payloads/generic-signature-payload.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/signature-payloads/generic-signature-payload.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"descriptorCid": {
"type": "string"
},
"permissionsGrantId": {
"type": "string"
},
"protocolRole": {
"$comment": "Used in the Records interface to authorize role-authorized actions for protocol records",
"type": "string"
}
},
"required": [
"descriptorCid"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 26d1944f51538b0dba0df08bfe31685a8b29ac29 | 2024-04-24T00:08:42 | json-schemas/interface-methods/records-subscribe.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-subscribe.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization-delegated-grant.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"filter": {
"$ref": "https://identity.foundation/dwn/json-schemas/records-filter.json"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time"
},
"method": {
"enum": [
"Subscribe"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"filter"
],
"type": "object"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 30ba7d56d1c2b795c28862081bfc34c9a42e634c | 2024-01-17T02:42:26 | json-schemas/interface-methods/events-query.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/events-query.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"cursor": {
"$ref": "https://identity.foundation/dwn/json-schemas/pagination-cursor.json"
},
"filters": {
"items": {
"$ref": "https://identity.foundation/dwn/json-schemas/events-filter.json"
},
"minItems": 1,
"type": "array"
},
"interface": {
"enum": [
"Events"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Query"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"filters"
],
"type": "object"
}
},
"required": [
"authorization",
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | a08dcbe1b02f1129eb862da818a4cdbba91e734d | 2023-07-03T22:36:57 | json-schemas/interface-methods/messages-get.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/messages-get.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"interface": {
"enum": [
"Messages"
],
"type": "string"
},
"messageCids": {
"items": {
"type": "string"
},
"minItems": 1,
"type": "array"
},
"messageTimestamp": {
"type": "string"
},
"method": {
"enum": [
"Get"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp"
],
"type": "object"
}
},
"required": [
"authorization",
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 1a4fa52fc8fa823fc238dd54834f35639428e102 | 2023-08-01T19:45:25 | json-schemas/interface-methods/records-query.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-query.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"dateSort": {
"enum": [
"createdAscending",
"createdDescending",
"publishedAscending",
"publishedDescending"
],
"type": "string"
},
"filter": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"attester": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"contextId": {
"type": "string"
},
"dataFormat": {
"type": "string"
},
"dateCreated": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
}
},
"type": "object"
},
"parentId": {
"type": "string"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"type": "string"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"recordId": {
"type": "string"
},
"schema": {
"type": "string"
}
},
"type": "object"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Query"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"filter"
],
"type": "object"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 30ba7d56d1c2b795c28862081bfc34c9a42e634c | 2024-01-17T02:42:26 | json-schemas/interface-methods/records-query.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-query.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization-delegated-grant.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"dateSort": {
"enum": [
"createdAscending",
"createdDescending",
"publishedAscending",
"publishedDescending"
],
"type": "string"
},
"filter": {
"$ref": "https://identity.foundation/dwn/json-schemas/records-filter.json"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Query"
],
"type": "string"
},
"pagination": {
"additionalProperties": false,
"properties": {
"cursor": {
"$ref": "https://identity.foundation/dwn/json-schemas/pagination-cursor.json"
},
"limit": {
"minimum": 1,
"type": "number"
}
},
"type": "object"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"filter"
],
"type": "object"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | bb57d77305011342446e19437ab617eafb2d2fd8 | 2023-06-27T01:54:55 | json-schemas/interface-methods/records-read.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-read.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"date": {
"type": "string"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"method": {
"enum": [
"Read"
],
"type": "string"
},
"recordId": {
"type": "string"
}
},
"required": [
"interface",
"method",
"date",
"recordId"
],
"type": "object"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | abedc507fdd2d5553e2b4ae6af1d0a4e1c8393e9 | 2024-04-10T01:57:41 | json-schemas/interface-methods/records-filter.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-filter.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"dependencies": {
"datePublished": {
"oneOf": [
{
"properties": {
"published": {
"enum": [
true
]
}
},
"required": [
"published"
]
},
{
"not": {
"required": [
"published"
]
}
}
]
}
},
"minProperties": 1,
"properties": {
"attester": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"author": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"contextId": {
"type": "string"
},
"dataCid": {
"type": "string"
},
"dataFormat": {
"type": "string"
},
"dataSize": {
"$ref": "https://identity.foundation/dwn/json-schemas/number-range-filter.json"
},
"dateCreated": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
}
},
"type": "object"
},
"datePublished": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
}
},
"type": "object"
},
"dateUpdated": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
}
},
"type": "object"
},
"parentId": {
"type": "string"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"type": "string"
},
"published": {
"type": "boolean"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"recordId": {
"type": "string"
},
"schema": {
"type": "string"
},
"tags": {
"additionalProperties": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"startsWith": {
"type": "string"
}
},
"type": "object"
},
{
"$ref": "https://identity.foundation/dwn/json-schemas/string-range-filter.json"
},
{
"$ref": "https://identity.foundation/dwn/json-schemas/number-range-filter.json"
}
]
},
"minProperties": 1,
"type": "object"
}
},
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 641888e1cbcb0f29ebe99d600c4b86c92b279d5f | 2023-11-30T19:53:48 | json-schemas/interface-methods/events-filter.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/events-filter.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"dependencies": {
"datePublished": {
"oneOf": [
{
"properties": {
"published": {
"enum": [
true
]
}
},
"required": [
"published"
]
},
{
"not": {
"required": [
"published"
]
}
}
]
}
},
"minProperties": 1,
"properties": {
"contextId": {
"type": "string"
},
"dataFormat": {
"type": "string"
},
"dataSize": {
"$ref": "https://identity.foundation/dwn/json-schemas/number-range-filter.json"
},
"dateCreated": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
}
},
"type": "object"
},
"datePublished": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
}
},
"type": "object"
},
"dateUpdated": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
}
},
"type": "object"
},
"interface": {
"enum": [
"Permissions",
"Protocols",
"Records"
],
"type": "string"
},
"method": {
"enum": [
"Configure",
"Delete",
"Grant",
"Revoke",
"Write"
],
"type": "string"
},
"parentId": {
"type": "string"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"type": "string"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"recordId": {
"type": "string"
},
"schema": {
"type": "string"
}
},
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 45e8e0927fa60e9f8e6dfddfe725ad4045eb2e8b | 2023-11-06T23:16:55 | json-schemas/interface-methods/records-query.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-query.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization-delegated-grant.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"dateSort": {
"enum": [
"createdAscending",
"createdDescending",
"publishedAscending",
"publishedDescending"
],
"type": "string"
},
"filter": {
"$ref": "https://identity.foundation/dwn/json-schemas/records-filter.json"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Query"
],
"type": "string"
},
"pagination": {
"additionalProperties": false,
"properties": {
"limit": {
"minimum": 1,
"type": "number"
},
"messageCid": {
"type": "string"
}
},
"type": "object"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"filter"
],
"type": "object"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | abedc507fdd2d5553e2b4ae6af1d0a4e1c8393e9 | 2024-04-10T01:57:41 | json-schemas/interface-methods/protocols-configure.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/protocols-configure.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"definition": {
"$ref": "https://identity.foundation/dwn/json-schemas/protocol-definition.json"
},
"interface": {
"enum": [
"Protocols"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Configure"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"definition"
],
"type": "object"
}
},
"required": [
"authorization",
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | cb808282386bbd6d4a58f3d1d25443c59ec30c1d | 2023-10-19T18:37:23 | json-schemas/interface-methods/records-filter.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-filter.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"minProperties": 1,
"properties": {
"attester": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"contextId": {
"type": "string"
},
"dataFormat": {
"type": "string"
},
"dataSize": {
"$ref": "https://identity.foundation/dwn/json-schemas/number-range-filter.json"
},
"dateCreated": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
}
},
"type": "object"
},
"parentId": {
"type": "string"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"type": "string"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"recordId": {
"type": "string"
},
"schema": {
"type": "string"
}
},
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | abedc507fdd2d5553e2b4ae6af1d0a4e1c8393e9 | 2024-04-10T01:57:41 | json-schemas/interface-methods/number-range-filter.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/number-range-filter.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"dependencies": {
"gt": {
"not": {
"required": [
"gte"
]
}
},
"gte": {
"not": {
"required": [
"gt"
]
}
},
"lt": {
"not": {
"required": [
"lte"
]
}
},
"lte": {
"not": {
"required": [
"lt"
]
}
}
},
"minProperties": 1,
"properties": {
"gt": {
"type": "number"
},
"gte": {
"type": "number"
},
"lt": {
"type": "number"
},
"lte": {
"type": "number"
}
},
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 641888e1cbcb0f29ebe99d600c4b86c92b279d5f | 2023-11-30T19:53:48 | json-schemas/interface-methods/events-query.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/events-query.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"cursor": {
"type": "string"
},
"filters": {
"items": {
"$ref": "https://identity.foundation/dwn/json-schemas/events-filter.json"
},
"minItems": 1,
"type": "array"
},
"interface": {
"enum": [
"Events"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Query"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"filters"
],
"type": "object"
}
},
"required": [
"authorization",
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 30ba7d56d1c2b795c28862081bfc34c9a42e634c | 2024-01-17T02:42:26 | json-schemas/interface-methods/pagination-cursor.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/pagination-cursor.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"minProperties": 1,
"properties": {
"messageCid": {
"type": "string"
},
"value": {
"type": [
"string",
"number"
]
}
},
"required": [
"messageCid",
"value"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 26d1944f51538b0dba0df08bfe31685a8b29ac29 | 2024-04-24T00:08:42 | json-schemas/signature-payloads/records-write-signature-payload.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/signature-payloads/records-write-signature-payload.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"attestationCid": {
"type": "string"
},
"contextId": {
"type": "string"
},
"delegatedGrantId": {
"type": "string"
},
"descriptorCid": {
"type": "string"
},
"encryptionCid": {
"type": "string"
},
"permissionGrantId": {
"type": "string"
},
"protocolRole": {
"type": "string"
},
"recordId": {
"type": "string"
}
},
"required": [
"descriptorCid",
"recordId"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | abedc507fdd2d5553e2b4ae6af1d0a4e1c8393e9 | 2024-04-10T01:57:41 | json-schemas/permissions/permissions-definitions.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/permissions/defs.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"definitions": {
"conditions": {
"additionalProperties": false,
"properties": {
"publication": {
"enum": [
"Required",
"Prohibited"
],
"type": "string"
}
},
"type": "object"
},
"grantedBy": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"grantedFor": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"grantedTo": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"scope": {
"oneOf": [
{
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/definitions/protocols-query-scope"
},
{
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/definitions/records-read-scope"
},
{
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/definitions/records-delete-scope"
},
{
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/definitions/records-write-scope"
},
{
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/definitions/records-query-scope"
},
{
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/definitions/records-subscribe-scope"
}
]
}
},
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | abedc507fdd2d5553e2b4ae6af1d0a4e1c8393e9 | 2024-04-10T01:57:41 | json-schemas/interface-methods/protocols-query.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/protocols-query.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"filter": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"protocol": {
"type": "string"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
}
},
"type": "object"
},
"interface": {
"enum": [
"Protocols"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Query"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp"
],
"type": "object"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | abedc507fdd2d5553e2b4ae6af1d0a4e1c8393e9 | 2024-04-10T01:57:41 | json-schemas/permissions/permission-revocation-data.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/permission-revoke-data.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"description": {
"type": "string"
}
},
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 2799f63026d804d06584fc16aec8b3aefc84a279 | 2023-10-31T22:09:39 | json-schemas/signature-payloads/records-write-signature-payload.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/signature-payloads/records-write-signature-payload.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"attestationCid": {
"type": "string"
},
"contextId": {
"type": "string"
},
"delegatedGrantId": {
"type": "string"
},
"descriptorCid": {
"type": "string"
},
"encryptionCid": {
"type": "string"
},
"permissionsGrantId": {
"type": "string"
},
"protocolRole": {
"type": "string"
},
"recordId": {
"type": "string"
}
},
"required": [
"descriptorCid",
"recordId"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 26d1944f51538b0dba0df08bfe31685a8b29ac29 | 2024-04-24T00:08:42 | json-schemas/interface-methods/records-filter.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-filter.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"dependencies": {
"datePublished": {
"oneOf": [
{
"properties": {
"published": {
"enum": [
true
]
}
},
"required": [
"published"
]
},
{
"not": {
"required": [
"published"
]
}
}
]
}
},
"minProperties": 1,
"properties": {
"attester": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/did"
},
"author": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/did"
},
"contextId": {
"type": "string"
},
"dataCid": {
"type": "string"
},
"dataFormat": {
"type": "string"
},
"dataSize": {
"$ref": "https://identity.foundation/dwn/json-schemas/number-range-filter.json"
},
"dateCreated": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time"
}
},
"type": "object"
},
"datePublished": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time"
}
},
"type": "object"
},
"dateUpdated": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time"
}
},
"type": "object"
},
"parentId": {
"type": "string"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"type": "string"
},
"published": {
"type": "boolean"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/did"
},
"recordId": {
"type": "string"
},
"schema": {
"type": "string"
},
"tags": {
"additionalProperties": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"startsWith": {
"type": "string"
}
},
"type": "object"
},
{
"$ref": "https://identity.foundation/dwn/json-schemas/string-range-filter.json"
},
{
"$ref": "https://identity.foundation/dwn/json-schemas/number-range-filter.json"
}
]
},
"minProperties": 1,
"type": "object"
}
},
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 13eb608bde2f03b4a120720c4f1bb793b4f1f3fa | 2023-09-28T17:43:52 | json-schemas/interface-methods/records-write-unidentified.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$comment": "rule defining `protocol` and `contextId` relationship",
"$id": "https://identity.foundation/dwn/json-schemas/records-write-unidentified.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"anyOf": [
{
"properties": {
"descriptor": {
"required": [
"protocol",
"protocolPath",
"schema"
],
"type": "object"
}
},
"required": [
"contextId"
]
},
{
"allOf": [
{
"not": {
"required": [
"contextId"
]
}
},
{
"properties": {
"descriptor": {
"not": {
"required": [
"protocol"
]
},
"type": "object"
}
}
},
{
"properties": {
"descriptor": {
"not": {
"required": [
"protocolPath"
]
},
"type": "object"
}
}
}
]
}
],
"properties": {
"attestation": {
"$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json"
},
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization.json"
},
"contextId": {
"type": "string"
},
"descriptor": {
"additionalProperties": false,
"allOf": [
{
"$comment": "rule defining `published` and `datePublished` relationship",
"anyOf": [
{
"properties": {
"published": {
"enum": [
true
],
"type": "boolean"
}
},
"required": [
"published",
"datePublished"
]
},
{
"not": {
"required": [
"datePublished"
]
},
"properties": {
"published": {
"enum": [
false
],
"type": "boolean"
}
}
},
{
"allOf": [
{
"not": {
"required": [
"published"
]
}
},
{
"not": {
"required": [
"datePublished"
]
}
}
]
}
]
}
],
"dependencies": {
"parentId": [
"protocol"
]
},
"properties": {
"dataCid": {
"type": "string"
},
"dataFormat": {
"type": "string"
},
"dataSize": {
"type": "number"
},
"dateCreated": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"datePublished": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Write"
],
"type": "string"
},
"parentId": {
"type": "string"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"pattern": "^[a-zA-Z]+(/[a-zA-Z]+)*$",
"type": "string"
},
"published": {
"type": "boolean"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"schema": {
"type": "string"
}
},
"required": [
"interface",
"method",
"dataCid",
"dataSize",
"dateCreated",
"messageTimestamp",
"dataFormat"
],
"type": "object"
},
"encryption": {
"additionalProperties": false,
"properties": {
"algorithm": {
"enum": [
"A256CTR"
],
"type": "string"
},
"initializationVector": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"keyEncryption": {
"items": {
"additionalProperties": false,
"properties": {
"algorithm": {
"enum": [
"ECIES-ES256K"
],
"type": "string"
},
"derivationScheme": {
"enum": [
"dataFormats",
"protocolContext",
"protocolPath",
"schemas"
],
"type": "string"
},
"derivedPublicKey": {
"$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json"
},
"encryptedKey": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"ephemeralPublicKey": {
"$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json"
},
"initializationVector": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"messageAuthenticationCode": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"rootKeyId": {
"type": "string"
}
},
"required": [
"rootKeyId",
"derivationScheme",
"algorithm",
"encryptedKey",
"initializationVector",
"ephemeralPublicKey",
"messageAuthenticationCode"
],
"type": "object"
},
"minItems": 1,
"type": "array"
}
},
"required": [
"algorithm",
"initializationVector",
"keyEncryption"
],
"type": "object"
},
"recordId": {
"type": "string"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | abedc507fdd2d5553e2b4ae6af1d0a4e1c8393e9 | 2024-04-10T01:57:41 | json-schemas/interface-methods/records-write-unidentified.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$comment": "rule defining `protocol` and `contextId` relationship",
"$id": "https://identity.foundation/dwn/json-schemas/records-write-unidentified.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"anyOf": [
{
"properties": {
"descriptor": {
"required": [
"protocol",
"protocolPath"
],
"type": "object"
}
},
"required": [
"contextId"
]
},
{
"allOf": [
{
"not": {
"required": [
"contextId"
]
}
},
{
"properties": {
"descriptor": {
"not": {
"required": [
"protocol"
]
},
"type": "object"
}
}
},
{
"properties": {
"descriptor": {
"not": {
"required": [
"protocolPath"
]
},
"type": "object"
}
}
}
]
}
],
"properties": {
"attestation": {
"$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json"
},
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization-owner.json"
},
"contextId": {
"pattern": "^[a-zA-Z0-9]+(/[a-zA-Z0-9]+)*$",
"type": "string"
},
"descriptor": {
"additionalProperties": false,
"allOf": [
{
"$comment": "rule defining `published` and `datePublished` relationship",
"anyOf": [
{
"properties": {
"published": {
"enum": [
true
],
"type": "boolean"
}
},
"required": [
"published",
"datePublished"
]
},
{
"not": {
"required": [
"datePublished"
]
},
"properties": {
"published": {
"enum": [
false
],
"type": "boolean"
}
}
},
{
"allOf": [
{
"not": {
"required": [
"published"
]
}
},
{
"not": {
"required": [
"datePublished"
]
}
}
]
}
]
}
],
"dependencies": {
"parentId": [
"protocol"
]
},
"properties": {
"dataCid": {
"type": "string"
},
"dataFormat": {
"type": "string"
},
"dataSize": {
"type": "number"
},
"dateCreated": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"datePublished": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Write"
],
"type": "string"
},
"parentId": {
"type": "string"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"pattern": "^[a-zA-Z]+(/[a-zA-Z]+)*$",
"type": "string"
},
"published": {
"type": "boolean"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"schema": {
"type": "string"
},
"tags": {
"additionalProperties": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"items": {
"type": "string"
},
"maxItems": 10,
"minItems": 1,
"type": "array"
},
{
"items": {
"type": "number"
},
"maxItems": 10,
"minItems": 1,
"type": "array"
}
]
},
"maxProperties": 10,
"minProperties": 1,
"type": "object"
}
},
"required": [
"interface",
"method",
"dataCid",
"dataSize",
"dateCreated",
"messageTimestamp",
"dataFormat"
],
"type": "object"
},
"encryption": {
"additionalProperties": false,
"properties": {
"algorithm": {
"enum": [
"A256CTR"
],
"type": "string"
},
"initializationVector": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"keyEncryption": {
"items": {
"additionalProperties": false,
"properties": {
"algorithm": {
"enum": [
"ECIES-ES256K"
],
"type": "string"
},
"derivationScheme": {
"enum": [
"dataFormats",
"protocolContext",
"protocolPath",
"schemas"
],
"type": "string"
},
"derivedPublicKey": {
"$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json"
},
"encryptedKey": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"ephemeralPublicKey": {
"$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json"
},
"initializationVector": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"messageAuthenticationCode": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"rootKeyId": {
"type": "string"
}
},
"required": [
"rootKeyId",
"derivationScheme",
"algorithm",
"encryptedKey",
"initializationVector",
"ephemeralPublicKey",
"messageAuthenticationCode"
],
"type": "object"
},
"minItems": 1,
"type": "array"
}
},
"required": [
"algorithm",
"initializationVector",
"keyEncryption"
],
"type": "object"
},
"recordId": {
"type": "string"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | e762e0f585e8c61828a27251ee6b444583ed39a5 | 2024-02-09T18:06:08 | json-schemas/interface-methods/records-write-unidentified.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$comment": "rule defining `protocol` and `contextId` relationship",
"$id": "https://identity.foundation/dwn/json-schemas/records-write-unidentified.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"anyOf": [
{
"properties": {
"descriptor": {
"required": [
"protocol",
"protocolPath"
],
"type": "object"
}
},
"required": [
"contextId"
]
},
{
"allOf": [
{
"not": {
"required": [
"contextId"
]
}
},
{
"properties": {
"descriptor": {
"not": {
"required": [
"protocol"
]
},
"type": "object"
}
}
},
{
"properties": {
"descriptor": {
"not": {
"required": [
"protocolPath"
]
},
"type": "object"
}
}
}
]
}
],
"properties": {
"attestation": {
"$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json"
},
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization-owner.json"
},
"contextId": {
"pattern": "^[a-zA-Z0-9]+(/[a-zA-Z0-9]+)*$",
"type": "string"
},
"descriptor": {
"additionalProperties": false,
"allOf": [
{
"$comment": "rule defining `published` and `datePublished` relationship",
"anyOf": [
{
"properties": {
"published": {
"enum": [
true
],
"type": "boolean"
}
},
"required": [
"published",
"datePublished"
]
},
{
"not": {
"required": [
"datePublished"
]
},
"properties": {
"published": {
"enum": [
false
],
"type": "boolean"
}
}
},
{
"allOf": [
{
"not": {
"required": [
"published"
]
}
},
{
"not": {
"required": [
"datePublished"
]
}
}
]
}
]
}
],
"dependencies": {
"parentId": [
"protocol"
]
},
"properties": {
"dataCid": {
"type": "string"
},
"dataFormat": {
"type": "string"
},
"dataSize": {
"type": "number"
},
"dateCreated": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"datePublished": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Write"
],
"type": "string"
},
"parentId": {
"type": "string"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"pattern": "^[a-zA-Z]+(/[a-zA-Z]+)*$",
"type": "string"
},
"published": {
"type": "boolean"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"schema": {
"type": "string"
}
},
"required": [
"interface",
"method",
"dataCid",
"dataSize",
"dateCreated",
"messageTimestamp",
"dataFormat"
],
"type": "object"
},
"encryption": {
"additionalProperties": false,
"properties": {
"algorithm": {
"enum": [
"A256CTR"
],
"type": "string"
},
"initializationVector": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"keyEncryption": {
"items": {
"additionalProperties": false,
"properties": {
"algorithm": {
"enum": [
"ECIES-ES256K"
],
"type": "string"
},
"derivationScheme": {
"enum": [
"dataFormats",
"protocolContext",
"protocolPath",
"schemas"
],
"type": "string"
},
"derivedPublicKey": {
"$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json"
},
"encryptedKey": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"ephemeralPublicKey": {
"$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json"
},
"initializationVector": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"messageAuthenticationCode": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/base64url"
},
"rootKeyId": {
"type": "string"
}
},
"required": [
"rootKeyId",
"derivationScheme",
"algorithm",
"encryptedKey",
"initializationVector",
"ephemeralPublicKey",
"messageAuthenticationCode"
],
"type": "object"
},
"minItems": 1,
"type": "array"
}
},
"required": [
"algorithm",
"initializationVector",
"keyEncryption"
],
"type": "object"
},
"recordId": {
"type": "string"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | fb08183ba91d906d6249e306e5e1f1b55c9ee2a9 | 2023-10-27T23:18:16 | json-schemas/interface-methods/records-read.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-read.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"filter": {
"$ref": "https://identity.foundation/dwn/json-schemas/records-filter.json"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Read"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"filter"
],
"type": "object"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | abedc507fdd2d5553e2b4ae6af1d0a4e1c8393e9 | 2024-04-10T01:57:41 | json-schemas/permissions/scopes.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"definitions": {
"protocols-query-scope": {
"properties": {
"interface": {
"const": "Protocols"
},
"method": {
"const": "Query"
}
},
"type": "object"
},
"records-delete-scope": {
"properties": {
"interface": {
"const": "Records"
},
"method": {
"const": "Delete"
},
"protocol": {
"type": "string"
},
"schema": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
},
"records-query-scope": {
"properties": {
"interface": {
"const": "Records"
},
"method": {
"const": "Query"
},
"protocol": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
},
"records-read-scope": {
"properties": {
"contextId": {
"type": "string"
},
"interface": {
"const": "Records"
},
"method": {
"const": "Read"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"type": "string"
},
"schema": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
},
"records-subscribe-scope": {
"properties": {
"interface": {
"const": "Records"
},
"method": {
"const": "Subscribe"
},
"protocol": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
},
"records-write-scope": {
"properties": {
"contextId": {
"type": "string"
},
"interface": {
"const": "Records"
},
"method": {
"const": "Write"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"type": "string"
},
"schema": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
}
},
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | a08dcbe1b02f1129eb862da818a4cdbba91e734d | 2023-07-03T22:36:57 | json-schemas/interface-methods/records-read.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-read.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"type": "string"
},
"method": {
"enum": [
"Read"
],
"type": "string"
},
"recordId": {
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"recordId"
],
"type": "object"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 8f6e01e77c91d8932136b7a0666d31b83676e76b | 2024-01-24T23:48:13 | json-schemas/interface-methods/records-subscribe.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/records-subscribe.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization-delegated-grant.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"filter": {
"$ref": "https://identity.foundation/dwn/json-schemas/records-filter.json"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Subscribe"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"filter"
],
"type": "object"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 26d1944f51538b0dba0df08bfe31685a8b29ac29 | 2024-04-24T00:08:42 | json-schemas/permissions/permission-request-data.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/permission-request-data.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"conditions": {
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/conditions"
},
"delegated": {
"type": "boolean"
},
"description": {
"type": "string"
},
"scope": {
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/scope"
}
},
"required": [
"delegated",
"scope"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 1362e6ef05c81be7e943ae9c0e60e11369ca69e0 | 2023-08-04T18:33:10 | json-schemas/permissions/scopes.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"protocols-query-scope": {
"properties": {
"interface": {
"const": "Protocols"
},
"method": {
"const": "Query"
}
},
"type": "object"
},
"records-delete-scope": {
"properties": {
"interface": {
"const": "Records"
},
"method": {
"const": "Delete"
},
"schema": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
},
"records-read-scope": {
"properties": {
"interface": {
"const": "Records"
},
"method": {
"const": "Read"
},
"schema": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
},
"records-write-scope": {
"properties": {
"interface": {
"const": "Records"
},
"method": {
"const": "Write"
},
"schema": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
}
},
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | a2f0dbe33b15b9ea48abc05f0aef81fe131f3d7b | 2024-01-19T03:32:26 | json-schemas/interface-methods/events-subscribe.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/events-subscribe.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"filters": {
"items": {
"$ref": "https://identity.foundation/dwn/json-schemas/events-filter.json"
},
"type": "array"
},
"interface": {
"enum": [
"Events"
],
"type": "string"
},
"messageTimestamp": {
"type": "string"
},
"method": {
"enum": [
"Subscribe"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"filters"
],
"type": "object"
}
},
"required": [
"descriptor",
"authorization"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | abedc507fdd2d5553e2b4ae6af1d0a4e1c8393e9 | 2024-04-10T01:57:41 | json-schemas/definitions.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/defs.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"definitions": {
"base64url": {
"pattern": "^[A-Za-z0-9_-]+$",
"type": "string"
},
"date-time": {
"pattern": "^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$",
"type": "string"
},
"did": {
"pattern": "^did:([a-z0-9]+):((?:(?:[a-zA-Z0-9._-]|(?:%[0-9a-fA-F]{2}))*:)*((?:[a-zA-Z0-9._-]|(?:%[0-9a-fA-F]{2}))+))((;[a-zA-Z0-9_.:%-]+=[a-zA-Z0-9_.:%-]*)*)(/[^#?]*)?([?][^#]*)?(#.*)?$",
"type": "string"
},
"uuid": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
"type": "string"
}
},
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | a08dcbe1b02f1129eb862da818a4cdbba91e734d | 2023-07-03T22:36:57 | json-schemas/interface-methods/protocols-query.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/protocols-query.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"filter": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"protocol": {
"type": "string"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
}
},
"type": "object"
},
"interface": {
"enum": [
"Protocols"
],
"type": "string"
},
"messageTimestamp": {
"type": "string"
},
"method": {
"enum": [
"Query"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp"
],
"type": "object"
}
},
"required": [
"authorization",
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | e5d01076a119599ec0a0bab6ef19ec3bc89a08fe | 2023-09-05T22:48:24 | json-schemas/permissions/permissions-definitions.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/permissions/defs.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"conditions": {
"additionalProperties": false,
"properties": {
"publication": {
"enum": [
"Required",
"Prohibited"
],
"type": "string"
}
},
"type": "object"
},
"grantedBy": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"grantedFor": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"grantedTo": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"scope": {
"additionalProperties": false,
"properties": {
"interface": {
"type": "string"
},
"method": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
}
},
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | abedc507fdd2d5553e2b4ae6af1d0a4e1c8393e9 | 2024-04-10T01:57:41 | json-schemas/interface-methods/events-query.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/events-query.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization.json"
},
"descriptor": {
"additionalProperties": false,
"properties": {
"cursor": {
"$ref": "https://identity.foundation/dwn/json-schemas/pagination-cursor.json"
},
"filters": {
"items": {
"$ref": "https://identity.foundation/dwn/json-schemas/events-filter.json"
},
"minItems": 1,
"type": "array"
},
"interface": {
"enum": [
"Events"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"method": {
"enum": [
"Query"
],
"type": "string"
}
},
"required": [
"interface",
"method",
"messageTimestamp",
"filters"
],
"type": "object"
}
},
"required": [
"authorization",
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 45e8e0927fa60e9f8e6dfddfe725ad4045eb2e8b | 2023-11-06T23:16:55 | json-schemas/signature-payloads/generic-signature-payload.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/signature-payloads/generic-signature-payload.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"delegatedGrantId": {
"type": "string"
},
"descriptorCid": {
"type": "string"
},
"permissionsGrantId": {
"type": "string"
},
"protocolRole": {
"$comment": "Used in the Records interface to authorize role-authorized actions for protocol records",
"type": "string"
}
},
"required": [
"descriptorCid"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | cb808282386bbd6d4a58f3d1d25443c59ec30c1d | 2023-10-19T18:37:23 | json-schemas/interface-methods/number-range-filter.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/number-range-filter.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"dependencies": {
"gt": {
"not": {
"required": [
"gte"
]
}
},
"gte": {
"not": {
"required": [
"gt"
]
}
},
"lt": {
"not": {
"required": [
"lte"
]
}
},
"lte": {
"not": {
"required": [
"lt"
]
}
}
},
"minProperties": 1,
"properties": {
"gt": {
"type": "number"
},
"gte": {
"type": "number"
},
"lt": {
"type": "number"
},
"lte": {
"type": "number"
}
},
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 41d355093ab9ef2fb409a8ba2ebe98db81a1fb0b | 2023-12-08T21:25:35 | json-schemas/permissions/scopes.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"protocols-query-scope": {
"properties": {
"interface": {
"const": "Protocols"
},
"method": {
"const": "Query"
}
},
"type": "object"
},
"records-delete-scope": {
"properties": {
"interface": {
"const": "Records"
},
"method": {
"const": "Delete"
},
"protocol": {
"type": "string"
},
"schema": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
},
"records-query-scope": {
"properties": {
"interface": {
"const": "Records"
},
"method": {
"const": "Query"
},
"protocol": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
},
"records-read-scope": {
"properties": {
"contextId": {
"type": "string"
},
"interface": {
"const": "Records"
},
"method": {
"const": "Read"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"type": "string"
},
"schema": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
},
"records-write-scope": {
"properties": {
"contextId": {
"type": "string"
},
"interface": {
"const": "Records"
},
"method": {
"const": "Write"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"type": "string"
},
"schema": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
}
},
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 26d1944f51538b0dba0df08bfe31685a8b29ac29 | 2024-04-24T00:08:42 | json-schemas/interface-methods/records-write-unidentified.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$comment": "rule defining `protocol` and `contextId` relationship",
"$id": "https://identity.foundation/dwn/json-schemas/records-write-unidentified.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"anyOf": [
{
"properties": {
"descriptor": {
"required": [
"protocol",
"protocolPath"
],
"type": "object"
}
},
"required": [
"contextId"
]
},
{
"allOf": [
{
"not": {
"required": [
"contextId"
]
}
},
{
"properties": {
"descriptor": {
"not": {
"required": [
"protocol"
]
},
"type": "object"
}
}
},
{
"properties": {
"descriptor": {
"not": {
"required": [
"protocolPath"
]
},
"type": "object"
}
}
}
]
}
],
"properties": {
"attestation": {
"$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json"
},
"authorization": {
"$ref": "https://identity.foundation/dwn/json-schemas/authorization-owner.json"
},
"contextId": {
"pattern": "^[a-zA-Z0-9]+(/[a-zA-Z0-9]+)*$",
"type": "string"
},
"descriptor": {
"additionalProperties": false,
"allOf": [
{
"$comment": "rule defining `published` and `datePublished` relationship",
"anyOf": [
{
"properties": {
"published": {
"enum": [
true
],
"type": "boolean"
}
},
"required": [
"published",
"datePublished"
]
},
{
"not": {
"required": [
"datePublished"
]
},
"properties": {
"published": {
"enum": [
false
],
"type": "boolean"
}
}
},
{
"allOf": [
{
"not": {
"required": [
"published"
]
}
},
{
"not": {
"required": [
"datePublished"
]
}
}
]
}
]
}
],
"dependencies": {
"parentId": [
"protocol"
]
},
"properties": {
"dataCid": {
"type": "string"
},
"dataFormat": {
"type": "string"
},
"dataSize": {
"type": "number"
},
"dateCreated": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time"
},
"datePublished": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time"
},
"interface": {
"enum": [
"Records"
],
"type": "string"
},
"messageTimestamp": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time"
},
"method": {
"enum": [
"Write"
],
"type": "string"
},
"parentId": {
"type": "string"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"pattern": "^[a-zA-Z]+(/[a-zA-Z]+)*$",
"type": "string"
},
"published": {
"type": "boolean"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/did"
},
"schema": {
"type": "string"
},
"tags": {
"additionalProperties": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"items": {
"type": "string"
},
"maxItems": 10,
"minItems": 1,
"type": "array"
},
{
"items": {
"type": "number"
},
"maxItems": 10,
"minItems": 1,
"type": "array"
}
]
},
"maxProperties": 10,
"minProperties": 1,
"type": "object"
}
},
"required": [
"interface",
"method",
"dataCid",
"dataSize",
"dateCreated",
"messageTimestamp",
"dataFormat"
],
"type": "object"
},
"encryption": {
"additionalProperties": false,
"properties": {
"algorithm": {
"enum": [
"A256CTR"
],
"type": "string"
},
"initializationVector": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url"
},
"keyEncryption": {
"items": {
"additionalProperties": false,
"properties": {
"algorithm": {
"enum": [
"ECIES-ES256K"
],
"type": "string"
},
"derivationScheme": {
"enum": [
"dataFormats",
"protocolContext",
"protocolPath",
"schemas"
],
"type": "string"
},
"derivedPublicKey": {
"$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json"
},
"encryptedKey": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url"
},
"ephemeralPublicKey": {
"$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json"
},
"initializationVector": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url"
},
"messageAuthenticationCode": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url"
},
"rootKeyId": {
"type": "string"
}
},
"required": [
"rootKeyId",
"derivationScheme",
"algorithm",
"encryptedKey",
"initializationVector",
"ephemeralPublicKey",
"messageAuthenticationCode"
],
"type": "object"
},
"minItems": 1,
"type": "array"
}
},
"required": [
"algorithm",
"initializationVector",
"keyEncryption"
],
"type": "object"
},
"recordId": {
"type": "string"
}
},
"required": [
"descriptor"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | 1362e6ef05c81be7e943ae9c0e60e11369ca69e0 | 2023-08-04T18:33:10 | json-schemas/permissions/permissions-definitions.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/permissions/defs.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"conditions": {
"additionalProperties": false,
"properties": {
"publication": {
"type": "boolean"
}
},
"type": "object"
},
"grantedBy": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"grantedFor": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"grantedTo": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"scope": {
"additionalProperties": false,
"properties": {
"interface": {
"type": "string"
},
"method": {
"type": "string"
}
},
"required": [
"interface",
"method"
],
"type": "object"
}
},
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | abedc507fdd2d5553e2b4ae6af1d0a4e1c8393e9 | 2024-04-10T01:57:41 | json-schemas/permissions/permission-request-data.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/permission-request-data.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"conditions": {
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/definitions/conditions"
},
"delegated": {
"type": "boolean"
},
"description": {
"type": "string"
},
"scope": {
"$ref": "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/definitions/scope"
}
},
"required": [
"delegated",
"scope"
],
"type": "object"
} | Apache-2.0 | en |
TBD54566975/dwn-sdk-js | abedc507fdd2d5553e2b4ae6af1d0a4e1c8393e9 | 2024-04-10T01:57:41 | json-schemas/interface-methods/events-filter.json | 323 | 2024-05-27T06:10:09.270032Z | {
"$id": "https://identity.foundation/dwn/json-schemas/events-filter.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"dependencies": {
"datePublished": {
"oneOf": [
{
"properties": {
"published": {
"enum": [
true
]
}
},
"required": [
"published"
]
},
{
"not": {
"required": [
"published"
]
}
}
]
}
},
"minProperties": 1,
"properties": {
"contextId": {
"type": "string"
},
"dataFormat": {
"type": "string"
},
"dataSize": {
"$ref": "https://identity.foundation/dwn/json-schemas/number-range-filter.json"
},
"dateCreated": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
}
},
"type": "object"
},
"datePublished": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
}
},
"type": "object"
},
"dateUpdated": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"from": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
},
"to": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time"
}
},
"type": "object"
},
"interface": {
"enum": [
"Permissions",
"Protocols",
"Records"
],
"type": "string"
},
"method": {
"enum": [
"Configure",
"Delete",
"Grant",
"Revoke",
"Write"
],
"type": "string"
},
"parentId": {
"type": "string"
},
"protocol": {
"type": "string"
},
"protocolPath": {
"type": "string"
},
"recipient": {
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/did"
},
"recordId": {
"type": "string"
},
"schema": {
"type": "string"
}
},
"type": "object"
} | Apache-2.0 | en |
Subsets and Splits