@3sixty/auditable-item-graph-models 0.0.0-stage → 0.20.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +26 -2
- package/dist/es/compiled/validators.js +1885 -0
- package/dist/es/compiled/validators.js.map +1 -0
- package/dist/es/dataTypes/auditableItemGraphDataTypes.js +103 -0
- package/dist/es/dataTypes/auditableItemGraphDataTypes.js.map +1 -0
- package/dist/es/index.js +43 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphAlias.js +2 -0
- package/dist/es/models/IAuditableItemGraphAlias.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphAuditedElement.js +4 -0
- package/dist/es/models/IAuditableItemGraphAuditedElement.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphChangeset.js +2 -0
- package/dist/es/models/IAuditableItemGraphChangeset.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphChangesetList.js +2 -0
- package/dist/es/models/IAuditableItemGraphChangesetList.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphComponent.js +2 -0
- package/dist/es/models/IAuditableItemGraphComponent.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphEdge.js +2 -0
- package/dist/es/models/IAuditableItemGraphEdge.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphListPatch.js +2 -0
- package/dist/es/models/IAuditableItemGraphListPatch.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphPartialVertex.js +2 -0
- package/dist/es/models/IAuditableItemGraphPartialVertex.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphPatchOperation.js +2 -0
- package/dist/es/models/IAuditableItemGraphPatchOperation.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphResource.js +2 -0
- package/dist/es/models/IAuditableItemGraphResource.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphVertex.js +2 -0
- package/dist/es/models/IAuditableItemGraphVertex.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphVertexList.js +2 -0
- package/dist/es/models/IAuditableItemGraphVertexList.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphVertexVersionList.js +2 -0
- package/dist/es/models/IAuditableItemGraphVertexVersionList.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphChangesetGetRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphChangesetGetRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphChangesetGetResponse.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphChangesetGetResponse.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphChangesetListRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphChangesetListRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphChangesetListResponse.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphChangesetListResponse.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphCreateRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphCreateRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphGetRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphGetRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphGetResponse.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphGetResponse.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphListRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphListRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphListResponse.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphListResponse.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphRemoveProofRequest.js +4 -0
- package/dist/es/models/api/IAuditableItemGraphRemoveProofRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphUpdatePartialRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphUpdatePartialRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphUpdateRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphUpdateRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphVersionGetRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphVersionGetRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphVersionGetResponse.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphVersionGetResponse.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphVersionListRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphVersionListRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphVersionListResponse.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphVersionListResponse.js.map +1 -0
- package/dist/es/models/auditableItemGraphAuditMode.js +17 -0
- package/dist/es/models/auditableItemGraphAuditMode.js.map +1 -0
- package/dist/es/models/auditableItemGraphContexts.js +33 -0
- package/dist/es/models/auditableItemGraphContexts.js.map +1 -0
- package/dist/es/models/auditableItemGraphMetricIds.js +69 -0
- package/dist/es/models/auditableItemGraphMetricIds.js.map +1 -0
- package/dist/es/models/auditableItemGraphMetrics.js +82 -0
- package/dist/es/models/auditableItemGraphMetrics.js.map +1 -0
- package/dist/es/models/auditableItemGraphTopics.js +17 -0
- package/dist/es/models/auditableItemGraphTopics.js.map +1 -0
- package/dist/es/models/auditableItemGraphTypes.js +57 -0
- package/dist/es/models/auditableItemGraphTypes.js.map +1 -0
- package/dist/es/models/eventBus/IAuditableItemGraphEventBusVertexCreated.js +4 -0
- package/dist/es/models/eventBus/IAuditableItemGraphEventBusVertexCreated.js.map +1 -0
- package/dist/es/models/eventBus/IAuditableItemGraphEventBusVertexUpdated.js +2 -0
- package/dist/es/models/eventBus/IAuditableItemGraphEventBusVertexUpdated.js.map +1 -0
- package/dist/es/models/verifyDepth.js +21 -0
- package/dist/es/models/verifyDepth.js.map +1 -0
- package/dist/es/schemas/AuditableItemGraphAlias.json +58 -0
- package/dist/es/schemas/AuditableItemGraphAuditMode.json +16 -0
- package/dist/es/schemas/AuditableItemGraphAuditedElement.json +25 -0
- package/dist/es/schemas/AuditableItemGraphChangeset.json +66 -0
- package/dist/es/schemas/AuditableItemGraphChangesetList.json +52 -0
- package/dist/es/schemas/AuditableItemGraphEdge.json +62 -0
- package/dist/es/schemas/AuditableItemGraphListPatch.json +33 -0
- package/dist/es/schemas/AuditableItemGraphPartialVertex.json +115 -0
- package/dist/es/schemas/AuditableItemGraphPatchOperation.json +72 -0
- package/dist/es/schemas/AuditableItemGraphResource.json +45 -0
- package/dist/es/schemas/AuditableItemGraphVertex.json +100 -0
- package/dist/es/schemas/AuditableItemGraphVertexList.json +52 -0
- package/dist/es/schemas/AuditableItemGraphVertexVersionList.json +64 -0
- package/dist/types/compiled/validators.d.ts +53 -0
- package/dist/types/dataTypes/auditableItemGraphDataTypes.d.ts +9 -0
- package/dist/types/index.d.ts +40 -0
- package/dist/types/models/IAuditableItemGraphAlias.d.ts +36 -0
- package/dist/types/models/IAuditableItemGraphAuditedElement.d.ts +24 -0
- package/dist/types/models/IAuditableItemGraphChangeset.d.ts +57 -0
- package/dist/types/models/IAuditableItemGraphChangesetList.d.ts +27 -0
- package/dist/types/models/IAuditableItemGraphComponent.d.ts +143 -0
- package/dist/types/models/IAuditableItemGraphEdge.d.ts +36 -0
- package/dist/types/models/IAuditableItemGraphListPatch.d.ts +18 -0
- package/dist/types/models/IAuditableItemGraphPartialVertex.d.ts +45 -0
- package/dist/types/models/IAuditableItemGraphPatchOperation.d.ts +36 -0
- package/dist/types/models/IAuditableItemGraphResource.d.ts +22 -0
- package/dist/types/models/IAuditableItemGraphVertex.d.ts +73 -0
- package/dist/types/models/IAuditableItemGraphVertexList.d.ts +27 -0
- package/dist/types/models/IAuditableItemGraphVertexVersionList.d.ts +29 -0
- package/dist/types/models/api/IAuditableItemGraphChangesetGetRequest.d.ts +35 -0
- package/dist/types/models/api/IAuditableItemGraphChangesetGetResponse.d.ts +17 -0
- package/dist/types/models/api/IAuditableItemGraphChangesetListRequest.d.ts +39 -0
- package/dist/types/models/api/IAuditableItemGraphChangesetListResponse.d.ts +18 -0
- package/dist/types/models/api/IAuditableItemGraphCreateRequest.d.ts +10 -0
- package/dist/types/models/api/IAuditableItemGraphGetRequest.d.ts +35 -0
- package/dist/types/models/api/IAuditableItemGraphGetResponse.d.ts +17 -0
- package/dist/types/models/api/IAuditableItemGraphListRequest.d.ts +60 -0
- package/dist/types/models/api/IAuditableItemGraphListResponse.d.ts +18 -0
- package/dist/types/models/api/IAuditableItemGraphRemoveProofRequest.d.ts +14 -0
- package/dist/types/models/api/IAuditableItemGraphUpdatePartialRequest.d.ts +20 -0
- package/dist/types/models/api/IAuditableItemGraphUpdateRequest.d.ts +19 -0
- package/dist/types/models/api/IAuditableItemGraphVersionGetRequest.d.ts +25 -0
- package/dist/types/models/api/IAuditableItemGraphVersionGetResponse.d.ts +17 -0
- package/dist/types/models/api/IAuditableItemGraphVersionListRequest.d.ts +34 -0
- package/dist/types/models/api/IAuditableItemGraphVersionListResponse.d.ts +17 -0
- package/dist/types/models/auditableItemGraphAuditMode.d.ts +17 -0
- package/dist/types/models/auditableItemGraphContexts.d.ts +33 -0
- package/dist/types/models/auditableItemGraphMetricIds.d.ts +69 -0
- package/dist/types/models/auditableItemGraphMetrics.d.ts +5 -0
- package/dist/types/models/auditableItemGraphTopics.d.ts +17 -0
- package/dist/types/models/auditableItemGraphTypes.d.ts +57 -0
- package/dist/types/models/eventBus/IAuditableItemGraphEventBusVertexCreated.d.ts +9 -0
- package/dist/types/models/eventBus/IAuditableItemGraphEventBusVertexUpdated.d.ts +14 -0
- package/dist/types/models/verifyDepth.d.ts +21 -0
- package/docs/changelog.md +9 -0
- package/docs/examples.md +22 -0
- package/docs/reference/classes/AuditableItemGraphDataTypes.md +25 -0
- package/docs/reference/index.md +71 -0
- package/docs/reference/interfaces/IAuditableItemGraphAlias.md +95 -0
- package/docs/reference/interfaces/IAuditableItemGraphAuditedElement.md +41 -0
- package/docs/reference/interfaces/IAuditableItemGraphChangeset.md +76 -0
- package/docs/reference/interfaces/IAuditableItemGraphChangesetGetRequest.md +49 -0
- package/docs/reference/interfaces/IAuditableItemGraphChangesetGetResponse.md +23 -0
- package/docs/reference/interfaces/IAuditableItemGraphChangesetList.md +27 -0
- package/docs/reference/interfaces/IAuditableItemGraphChangesetListRequest.md +55 -0
- package/docs/reference/interfaces/IAuditableItemGraphChangesetListResponse.md +27 -0
- package/docs/reference/interfaces/IAuditableItemGraphComponent.md +393 -0
- package/docs/reference/interfaces/IAuditableItemGraphCreateRequest.md +11 -0
- package/docs/reference/interfaces/IAuditableItemGraphEdge.md +95 -0
- package/docs/reference/interfaces/IAuditableItemGraphEventBusVertexCreated.md +11 -0
- package/docs/reference/interfaces/IAuditableItemGraphEventBusVertexUpdated.md +19 -0
- package/docs/reference/interfaces/IAuditableItemGraphGetRequest.md +49 -0
- package/docs/reference/interfaces/IAuditableItemGraphGetResponse.md +23 -0
- package/docs/reference/interfaces/IAuditableItemGraphListPatch.md +25 -0
- package/docs/reference/interfaces/IAuditableItemGraphListRequest.md +84 -0
- package/docs/reference/interfaces/IAuditableItemGraphListResponse.md +27 -0
- package/docs/reference/interfaces/IAuditableItemGraphPartialVertex.md +164 -0
- package/docs/reference/interfaces/IAuditableItemGraphPatchOperation.md +51 -0
- package/docs/reference/interfaces/IAuditableItemGraphRemoveProofRequest.md +17 -0
- package/docs/reference/interfaces/IAuditableItemGraphResource.md +79 -0
- package/docs/reference/interfaces/IAuditableItemGraphUpdatePartialRequest.md +26 -0
- package/docs/reference/interfaces/IAuditableItemGraphUpdateRequest.md +25 -0
- package/docs/reference/interfaces/IAuditableItemGraphVersionGetRequest.md +35 -0
- package/docs/reference/interfaces/IAuditableItemGraphVersionGetResponse.md +23 -0
- package/docs/reference/interfaces/IAuditableItemGraphVersionListRequest.md +49 -0
- package/docs/reference/interfaces/IAuditableItemGraphVersionListResponse.md +23 -0
- package/docs/reference/interfaces/IAuditableItemGraphVertex.md +139 -0
- package/docs/reference/interfaces/IAuditableItemGraphVertexList.md +27 -0
- package/docs/reference/interfaces/IAuditableItemGraphVertexVersionList.md +35 -0
- package/docs/reference/type-aliases/AuditableItemGraphAuditMode.md +5 -0
- package/docs/reference/type-aliases/AuditableItemGraphContexts.md +5 -0
- package/docs/reference/type-aliases/AuditableItemGraphMetricIds.md +5 -0
- package/docs/reference/type-aliases/AuditableItemGraphTopics.md +5 -0
- package/docs/reference/type-aliases/AuditableItemGraphTypes.md +5 -0
- package/docs/reference/type-aliases/VerifyDepth.md +5 -0
- package/docs/reference/variables/AuditableItemGraphAuditMode.md +19 -0
- package/docs/reference/variables/AuditableItemGraphContexts.md +43 -0
- package/docs/reference/variables/AuditableItemGraphMetricIds.md +97 -0
- package/docs/reference/variables/AuditableItemGraphMetrics.md +5 -0
- package/docs/reference/variables/AuditableItemGraphTopics.md +19 -0
- package/docs/reference/variables/AuditableItemGraphTypes.md +79 -0
- package/docs/reference/variables/CompiledAuditableItemGraphAlias.md +5 -0
- package/docs/reference/variables/CompiledAuditableItemGraphAuditMode.md +5 -0
- package/docs/reference/variables/CompiledAuditableItemGraphAuditedElement.md +5 -0
- package/docs/reference/variables/CompiledAuditableItemGraphChangeset.md +5 -0
- package/docs/reference/variables/CompiledAuditableItemGraphChangesetList.md +5 -0
- package/docs/reference/variables/CompiledAuditableItemGraphEdge.md +5 -0
- package/docs/reference/variables/CompiledAuditableItemGraphListPatch.md +5 -0
- package/docs/reference/variables/CompiledAuditableItemGraphPartialVertex.md +5 -0
- package/docs/reference/variables/CompiledAuditableItemGraphPatchOperation.md +5 -0
- package/docs/reference/variables/CompiledAuditableItemGraphResource.md +5 -0
- package/docs/reference/variables/CompiledAuditableItemGraphVertex.md +5 -0
- package/docs/reference/variables/CompiledAuditableItemGraphVertexList.md +5 -0
- package/docs/reference/variables/CompiledAuditableItemGraphVertexVersionList.md +5 -0
- package/docs/reference/variables/VerifyDepth.md +25 -0
- package/locales/en.json +3 -0
- package/package.json +57 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphChangeset.js","sources":["../../../src/models/IAuditableItemGraphChangeset.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement } from \"@3sixty/data-json-ld\";\nimport type { IImmutableProofVerification } from \"@3sixty/immutable-proof-models\";\nimport type { AuditableItemGraphContexts } from \"./auditableItemGraphContexts.js\";\nimport type { AuditableItemGraphTypes } from \"./auditableItemGraphTypes.js\";\nimport type { IAuditableItemGraphPatchOperation } from \"./IAuditableItemGraphPatchOperation.js\";\n\n/**\n * Interface describing a set of changes to the vertex.\n */\nexport interface IAuditableItemGraphChangeset {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\"?: [\n\t\ttypeof AuditableItemGraphContexts.Context,\n\t\ttypeof AuditableItemGraphContexts.ContextCommon,\n\t\t...IJsonLdContextDefinitionElement[]\n\t];\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: typeof AuditableItemGraphTypes.Changeset;\n\n\t/**\n\t * The id of the changeset.\n\t */\n\tid: string;\n\n\t/**\n\t * The date/time of when the changeset was created.\n\t * @json-ld namespace:sch\n\t */\n\tdateCreated: string;\n\n\t/**\n\t * The user identity that created the changes.\n\t * @json-ld namespace:twin-common\n\t */\n\tuserIdentity?: string;\n\n\t/**\n\t * The patches in the changeset.\n\t * @json-ld container:set\n\t */\n\tpatches: IAuditableItemGraphPatchOperation[];\n\n\t/**\n\t * The immutable proof id which contains the signature for this changeset.\n\t * @json-ld type:sch:identifier\n\t */\n\tproofId?: string;\n\n\t/**\n\t * The verification for the changeset.\n\t * @json-ld id\n\t */\n\tverification?: IImmutableProofVerification;\n\n\t/**\n\t * The version number of the vertex after this changeset was applied.\n\t * Maps to https://schema.org/version.\n\t * @json-ld namespace:sch\n\t */\n\tversion?: number;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphChangesetList.js","sources":["../../../src/models/IAuditableItemGraphChangesetList.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement } from \"@3sixty/data-json-ld\";\nimport type { SchemaOrgContexts, SchemaOrgTypes } from \"@3sixty/standards-schema-org\";\nimport type { AuditableItemGraphContexts } from \"./auditableItemGraphContexts.js\";\nimport type { AuditableItemGraphTypes } from \"./auditableItemGraphTypes.js\";\nimport type { IAuditableItemGraphChangeset } from \"./IAuditableItemGraphChangeset.js\";\n\n/**\n * Interface describing an auditable item graph changeset list.\n */\nexport interface IAuditableItemGraphChangesetList {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\": [\n\t\ttypeof SchemaOrgContexts.Context,\n\t\ttypeof AuditableItemGraphContexts.Context,\n\t\t...IJsonLdContextDefinitionElement[]\n\t];\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: [typeof SchemaOrgTypes.ItemList, typeof AuditableItemGraphTypes.ChangesetList];\n\n\t/**\n\t * The list of changesets.\n\t * @json-ld namespace:sch\n\t */\n\t[SchemaOrgTypes.ItemListElement]: IAuditableItemGraphChangeset[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphComponent.js","sources":["../../../src/models/IAuditableItemGraphComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@3sixty/core\";\nimport type { EntityCondition, SortDirection } from \"@3sixty/entity\";\nimport type { IAuditableItemGraphChangeset } from \"./IAuditableItemGraphChangeset.js\";\nimport type { IAuditableItemGraphChangesetList } from \"./IAuditableItemGraphChangesetList.js\";\nimport type { IAuditableItemGraphPartialVertex } from \"./IAuditableItemGraphPartialVertex.js\";\nimport type { IAuditableItemGraphVertex } from \"./IAuditableItemGraphVertex.js\";\nimport type { IAuditableItemGraphVertexList } from \"./IAuditableItemGraphVertexList.js\";\nimport type { IAuditableItemGraphVertexVersionList } from \"./IAuditableItemGraphVertexVersionList.js\";\nimport type { VerifyDepth } from \"./verifyDepth.js\";\n\n/**\n * Interface describing an auditable item graph contract.\n */\nexport interface IAuditableItemGraphComponent extends IComponent {\n\t/**\n\t * Create a new graph vertex.\n\t * @param vertex The vertex to create.\n\t * @param vertex.auditMode How the mutations of the vertex are recorded, defaults to audited.\n\t * @param vertex.annotationObject The annotation object for the vertex as JSON-LD.\n\t * @param vertex.aliases Alternative aliases that can be used to identify the vertex.\n\t * @param vertex.resources The resources attached to the vertex.\n\t * @param vertex.edges The edges connected to the vertex.\n\t * @returns The id of the new graph item.\n\t */\n\tcreate(vertex: Omit<IAuditableItemGraphVertex, \"id\">): Promise<string>;\n\n\t/**\n\t * Update a graph vertex (PUT - full replacement of vertex state).\n\t * Concurrent updates for the same vertex are serialized via `Mutex` on the vertex id.\n\t * Multi-replica deployments are not coordinated.\n\t * @param vertex The vertex to update.\n\t * @param vertex.id The id of the vertex to update.\n\t * @param vertex.auditMode How the mutations of the vertex are recorded, when absent the current mode is kept.\n\t * @param vertex.annotationObject The annotation object for the vertex as JSON-LD.\n\t * @param vertex.aliases Alternative aliases that can be used to identify the vertex.\n\t * @param vertex.resources The resources attached to the vertex.\n\t * @param vertex.edges The edges connected to the vertex.\n\t * @returns A promise that resolves when the vertex has been updated.\n\t * @throws GeneralError If a bypass vertex is being switched back to audited.\n\t */\n\tupdate(vertex: IAuditableItemGraphVertex): Promise<void>;\n\n\t/**\n\t * Partially update a graph vertex (PATCH); only properties that are not undefined are applied.\n\t * Sub-lists use explicit `{ add, remove }` patch objects. Serialized with `update()` via `Mutex`\n\t * on the same vertex id.\n\t * @param partial The partial vertex update (must include `id`).\n\t * @returns A promise that resolves when the partial update has been applied.\n\t * @throws GeneralError If a bypass vertex is being switched back to audited.\n\t */\n\tupdatePartial(partial: IAuditableItemGraphPartialVertex): Promise<void>;\n\n\t/**\n\t * Get a graph vertex.\n\t * @param id The id of the vertex to get.\n\t * @param options Additional options for the get operation.\n\t * @param options.includeDeleted Whether to include deleted aliases, resource, edges, defaults to false.\n\t * @param options.verifySignatureDepth How many signatures to verify, defaults to \"none\".\n\t * @returns The vertex if found.\n\t * @throws NotFoundError if the vertex is not found.\n\t */\n\tget(\n\t\tid: string,\n\t\toptions?: {\n\t\t\tincludeDeleted?: boolean;\n\t\t\tverifySignatureDepth?: VerifyDepth;\n\t\t}\n\t): Promise<IAuditableItemGraphVertex>;\n\n\t/**\n\t * Get a graph vertex changeset list.\n\t * @param id The id of the vertex to get.\n\t * @param cursor The optional cursor to get next chunk.\n\t * @param limit Limit the number of entities to return.\n\t * @param options Additional options for the get operation.\n\t * @param options.verifySignatureDepth How many signatures to verify, defaults to \"none\".\n\t * @returns The changeset if found, always empty for a bypass vertex.\n\t * @throws NotFoundError if the vertex is not found.\n\t */\n\tgetChangesets(\n\t\tid: string,\n\t\tcursor?: string,\n\t\tlimit?: number,\n\t\toptions?: {\n\t\t\tverifySignatureDepth?: VerifyDepth;\n\t\t}\n\t): Promise<{\n\t\tchangesets: IAuditableItemGraphChangesetList;\n\t\tcursor?: string;\n\t}>;\n\n\t/**\n\t * Get a graph vertex changeset.\n\t * @param id The id of the vertex to get.\n\t * @param options Additional options for the get operation.\n\t * @param options.verifySignatureDepth How many signatures to verify, defaults to \"none\".\n\t * @returns The changeset if found.\n\t * @throws NotFoundError if the vertex or changeset is not found, a bypass vertex never has changesets.\n\t */\n\tgetChangeset(\n\t\tid: string,\n\t\toptions?: { verifySignatureDepth?: VerifyDepth }\n\t): Promise<IAuditableItemGraphChangeset>;\n\n\t/**\n\t * Get a graph vertex at a specific version.\n\t * @param id The id of the vertex.\n\t * @param version The version number to retrieve.\n\t * @returns The vertex reconstructed at that version.\n\t * @throws NotFoundError if the vertex or version is not found, a bypass vertex never has versions.\n\t */\n\tgetVersion(id: string, version: number): Promise<IAuditableItemGraphVertex>;\n\n\t/**\n\t * Get all versions of a graph vertex.\n\t * @param id The id of the vertex.\n\t * @param options Additional options for the operation.\n\t * @param options.after Only return versions created after this ISO 8601 timestamp (exclusive).\n\t * @param options.before Only return versions created before this ISO 8601 timestamp (exclusive).\n\t * @returns The list of vertex versions, a bypass vertex returns a single baseline entry for its\n\t * current state when that falls within the requested range.\n\t * @throws NotFoundError if the vertex is not found.\n\t */\n\tgetVersions(\n\t\tid: string,\n\t\toptions?: {\n\t\t\tafter?: string;\n\t\t\tbefore?: string;\n\t\t}\n\t): Promise<IAuditableItemGraphVertexVersionList>;\n\n\t/**\n\t * Remove the proof for an item.\n\t * @param id The id of the vertex to remove the proof from.\n\t * @returns A promise that resolves when the proof has been removed from all changesets.\n\t * @throws NotFoundError if the vertex is not found.\n\t */\n\tremoveProof(id: string): Promise<void>;\n\n\t/**\n\t * Query the graph for vertices.\n\t * @param options The query options.\n\t * @param options.id The optional id to look for.\n\t * @param options.idMode Look in id, alias or both, defaults to both.\n\t * @param options.idExact Find only exact matches, default to false meaning partial matching.\n\t * @param options.resourceTypes Include vertices with specific resource types.\n\t * @param conditions Conditions to use in the query.\n\t * @param orderBy The order for the results, defaults to dateCreated.\n\t * @param orderByDirection The direction for the order, defaults to descending.\n\t * @param properties The properties to return, if not provided defaults to id, dateCreated, aliases and object.\n\t * @param cursor The cursor to request the next chunk of entities.\n\t * @param limit The maximum number of entities to return, a page can contain fewer so follow\n\t * the cursor until it is absent to read them all.\n\t * @returns The entities, which can be partial if a limited keys list was provided.\n\t */\n\tquery(\n\t\toptions?: {\n\t\t\tid?: string;\n\t\t\tidMode?: \"id\" | \"alias\" | \"both\";\n\t\t\tidExact?: boolean;\n\t\t\tresourceTypes?: string[];\n\t\t},\n\t\tconditions?: EntityCondition<IAuditableItemGraphVertex>,\n\t\torderBy?: keyof Pick<IAuditableItemGraphVertex, \"dateCreated\" | \"dateModified\">,\n\t\torderByDirection?: SortDirection,\n\t\tproperties?: (keyof IAuditableItemGraphVertex)[],\n\t\tcursor?: string,\n\t\tlimit?: number\n\t): Promise<{\n\t\tentries: IAuditableItemGraphVertexList;\n\t\tcursor?: string;\n\t}>;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphEdge.js","sources":["../../../src/models/IAuditableItemGraphEdge.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from \"@3sixty/data-json-ld\";\nimport type { AuditableItemGraphContexts } from \"./auditableItemGraphContexts.js\";\nimport type { AuditableItemGraphTypes } from \"./auditableItemGraphTypes.js\";\nimport type { IAuditableItemGraphAuditedElement } from \"./IAuditableItemGraphAuditedElement.js\";\n\n/**\n * Interface describing an edge between two vertices in an auditable item graph.\n */\nexport interface IAuditableItemGraphEdge extends IAuditableItemGraphAuditedElement {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\"?:\n\t\t| typeof AuditableItemGraphContexts.Context\n\t\t| [typeof AuditableItemGraphContexts.Context, ...IJsonLdContextDefinitionElement[]];\n\n\t/**\n\t * The id of the element.\n\t */\n\tid?: string;\n\n\t/**\n\t * The target vertex id the edge connects to.\n\t * @json-ld type:@id\n\t */\n\ttargetId: string;\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: typeof AuditableItemGraphTypes.Edge;\n\n\t/**\n\t * The JSON-LD annotation object for the edge.\n\t * @json-ld namespace:twin-common\n\t */\n\tannotationObject?: IJsonLdNodeObject;\n\n\t/**\n\t * The relationships between the two vertices.\n\t * @json-ld container:set\n\t */\n\tedgeRelationships: string[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphListPatch.js","sources":["../../../src/models/IAuditableItemGraphListPatch.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IAuditableItemGraphAlias } from \"./IAuditableItemGraphAlias.js\";\nimport type { IAuditableItemGraphEdge } from \"./IAuditableItemGraphEdge.js\";\nimport type { IAuditableItemGraphResource } from \"./IAuditableItemGraphResource.js\";\n\n/**\n * PATCH operations for a sub-list on a vertex.\n */\nexport interface IAuditableItemGraphListPatch<\n\tTItem = IAuditableItemGraphEdge | IAuditableItemGraphAlias | IAuditableItemGraphResource\n> {\n\t/**\n\t * Items to add or update in the active set.\n\t * @json-ld container:set\n\t */\n\tadd?: TItem[];\n\n\t/**\n\t * Identifiers of items to remove from the active set (soft-delete).\n\t * @json-ld container:set\n\t */\n\tremove?: string[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphPartialVertex.js","sources":["../../../src/models/IAuditableItemGraphPartialVertex.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement } from \"@3sixty/data-json-ld\";\nimport type { AuditableItemGraphContexts } from \"./auditableItemGraphContexts.js\";\nimport type { AuditableItemGraphTypes } from \"./auditableItemGraphTypes.js\";\nimport type { IAuditableItemGraphAlias } from \"./IAuditableItemGraphAlias.js\";\nimport type { IAuditableItemGraphEdge } from \"./IAuditableItemGraphEdge.js\";\nimport type { IAuditableItemGraphListPatch } from \"./IAuditableItemGraphListPatch.js\";\nimport type { IAuditableItemGraphResource } from \"./IAuditableItemGraphResource.js\";\nimport type { IAuditableItemGraphVertex } from \"./IAuditableItemGraphVertex.js\";\n\n/**\n * Partial vertex payload for updatePartial.\n * Sub-lists use explicit `{ add, remove }` patches; bare arrays are not supported.\n */\nexport interface IAuditableItemGraphPartialVertex extends Omit<\n\tIAuditableItemGraphVertex,\n\t\"type\" | \"aliases\" | \"edges\" | \"resources\"\n> {\n\t/**\n\t * The id of the vertex to update.\n\t */\n\tid: string;\n\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\": [\n\t\ttypeof AuditableItemGraphContexts.Context,\n\t\ttypeof AuditableItemGraphContexts.ContextCommon,\n\t\t...IJsonLdContextDefinitionElement[]\n\t];\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype?: typeof AuditableItemGraphTypes.Vertex;\n\n\t/**\n\t * Patch operations for aliases.\n\t * @json-ld id\n\t */\n\taliasPatches?: IAuditableItemGraphListPatch<IAuditableItemGraphAlias>;\n\n\t/**\n\t * Patch operations for resources.\n\t * @json-ld id\n\t */\n\tresourcePatches?: IAuditableItemGraphListPatch<IAuditableItemGraphResource>;\n\n\t/**\n\t * Patch operations for edges.\n\t * @json-ld id\n\t */\n\tedgePatches?: IAuditableItemGraphListPatch<IAuditableItemGraphEdge>;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphPatchOperation.js","sources":["../../../src/models/IAuditableItemGraphPatchOperation.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement } from \"@3sixty/data-json-ld\";\nimport type { AuditableItemGraphContexts } from \"./auditableItemGraphContexts.js\";\nimport type { AuditableItemGraphTypes } from \"./auditableItemGraphTypes.js\";\n\n/**\n * The patch operation for JSON diffs.\n */\nexport interface IAuditableItemGraphPatchOperation {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\"?:\n\t\t| typeof AuditableItemGraphContexts.Context\n\t\t| [typeof AuditableItemGraphContexts.Context, ...IJsonLdContextDefinitionElement[]];\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: typeof AuditableItemGraphTypes.PatchOperation;\n\n\t/**\n\t * The operation that was performed on the item.\n\t * @json-ld type:sch:Text\n\t */\n\tpatchOperation: \"add\" | \"remove\" | \"replace\" | \"move\" | \"copy\" | \"test\";\n\n\t/**\n\t * The path to the object that was changed.\n\t * @json-ld type:sch:Text\n\t */\n\tpatchPath: string;\n\n\t/**\n\t * The path the value was copied or moved from.\n\t * @json-ld type:sch:Text\n\t */\n\tpatchFrom?: string;\n\n\t/**\n\t * The value to add.\n\t * @json-ld type:json\n\t */\n\tpatchValue?: unknown;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphResource.js","sources":["../../../src/models/IAuditableItemGraphResource.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from \"@3sixty/data-json-ld\";\nimport type { AuditableItemGraphContexts } from \"./auditableItemGraphContexts.js\";\nimport type { AuditableItemGraphTypes } from \"./auditableItemGraphTypes.js\";\nimport type { IAuditableItemGraphAuditedElement } from \"./IAuditableItemGraphAuditedElement.js\";\n\n/**\n * Interface describing an auditable item graph vertex resource.\n */\nexport interface IAuditableItemGraphResource extends IAuditableItemGraphAuditedElement {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\"?:\n\t\t| typeof AuditableItemGraphContexts.Context\n\t\t| [typeof AuditableItemGraphContexts.Context, ...IJsonLdContextDefinitionElement[]];\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: typeof AuditableItemGraphTypes.Resource;\n\n\t/**\n\t * The JSON-LD object for the resource.\n\t * @json-ld type:json\n\t */\n\tresourceObject?: IJsonLdNodeObject;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphVertex.js","sources":["../../../src/models/IAuditableItemGraphVertex.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from \"@3sixty/data-json-ld\";\nimport type { AuditableItemGraphAuditMode } from \"./auditableItemGraphAuditMode.js\";\nimport type { AuditableItemGraphContexts } from \"./auditableItemGraphContexts.js\";\nimport type { AuditableItemGraphTypes } from \"./auditableItemGraphTypes.js\";\nimport type { IAuditableItemGraphAlias } from \"./IAuditableItemGraphAlias.js\";\nimport type { IAuditableItemGraphAuditedElement } from \"./IAuditableItemGraphAuditedElement.js\";\nimport type { IAuditableItemGraphEdge } from \"./IAuditableItemGraphEdge.js\";\nimport type { IAuditableItemGraphResource } from \"./IAuditableItemGraphResource.js\";\n\n/**\n * Interface describing an auditable item graph vertex.\n */\nexport interface IAuditableItemGraphVertex extends Omit<\n\tIAuditableItemGraphAuditedElement,\n\t\"deleted\"\n> {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\": [\n\t\ttypeof AuditableItemGraphContexts.Context,\n\t\ttypeof AuditableItemGraphContexts.ContextCommon,\n\t\t...IJsonLdContextDefinitionElement[]\n\t];\n\n\t/**\n\t * The id of the element.\n\t */\n\tid: string;\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: typeof AuditableItemGraphTypes.Vertex;\n\n\t/**\n\t * The identity of the organization which controls the vertex.\n\t * @json-ld namespace:twin-common\n\t */\n\torganizationIdentity?: string;\n\n\t/**\n\t * How the mutations of the vertex are recorded, when absent the vertex behaves as audited.\n\t * Once a vertex is set to bypass it can not be returned to audited.\n\t * @json-ld type:sch:Text\n\t */\n\tauditMode?: AuditableItemGraphAuditMode;\n\n\t/**\n\t * The JSON-LD annotation object for the vertex.\n\t * @json-ld namespace:twin-common\n\t */\n\tannotationObject?: IJsonLdNodeObject;\n\n\t/**\n\t * Alternative aliases that can be used to identify the vertex.\n\t * @json-ld container:set\n\t */\n\taliases?: IAuditableItemGraphAlias[];\n\n\t/**\n\t * The resources attached to the vertex.\n\t * @json-ld container:set\n\t */\n\tresources?: IAuditableItemGraphResource[];\n\n\t/**\n\t * Edges connected to the vertex.\n\t * @json-ld container:set\n\t */\n\tedges?: IAuditableItemGraphEdge[];\n\n\t/**\n\t * Is the vertex verified, will only be populated when verification is requested.\n\t * Always undefined when the vertex is in bypass mode.\n\t * @json-ld namespace:twin-common\n\t */\n\tverified?: boolean;\n\n\t/**\n\t * The version of the vertex, populated only when getting a specific version.\n\t * Always undefined when the vertex is in bypass mode.\n\t * Maps to https://schema.org/version.\n\t * @json-ld namespace:sch\n\t */\n\tversion?: number;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphVertexList.js","sources":["../../../src/models/IAuditableItemGraphVertexList.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement } from \"@3sixty/data-json-ld\";\nimport type { SchemaOrgContexts, SchemaOrgTypes } from \"@3sixty/standards-schema-org\";\nimport type { AuditableItemGraphContexts } from \"./auditableItemGraphContexts.js\";\nimport type { AuditableItemGraphTypes } from \"./auditableItemGraphTypes.js\";\nimport type { IAuditableItemGraphVertex } from \"./IAuditableItemGraphVertex.js\";\n\n/**\n * Interface describing an auditable item graph vertex list.\n */\nexport interface IAuditableItemGraphVertexList {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\": [\n\t\ttypeof SchemaOrgContexts.Context,\n\t\ttypeof AuditableItemGraphContexts.Context,\n\t\t...IJsonLdContextDefinitionElement[]\n\t];\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: [typeof SchemaOrgTypes.ItemList, typeof AuditableItemGraphTypes.VertexList];\n\n\t/**\n\t * The list of vertices.\n\t * @json-ld namespace:sch\n\t */\n\t[SchemaOrgTypes.ItemListElement]: IAuditableItemGraphVertex[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphVertexVersionList.js","sources":["../../../src/models/IAuditableItemGraphVertexVersionList.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement } from \"@3sixty/data-json-ld\";\nimport type { SchemaOrgContexts, SchemaOrgTypes } from \"@3sixty/standards-schema-org\";\nimport type { AuditableItemGraphContexts } from \"./auditableItemGraphContexts.js\";\nimport type { AuditableItemGraphTypes } from \"./auditableItemGraphTypes.js\";\n\n/**\n * Interface describing a list of auditable item graph vertex version numbers.\n */\nexport interface IAuditableItemGraphVertexVersionList {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\": [\n\t\ttypeof SchemaOrgContexts.Context,\n\t\ttypeof AuditableItemGraphContexts.Context,\n\t\t...IJsonLdContextDefinitionElement[]\n\t];\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: [typeof SchemaOrgTypes.ItemList, typeof AuditableItemGraphTypes.VertexVersionList];\n\n\t/**\n\t * The list of versions.\n\t * @json-ld namespace:sch\n\t */\n\t[SchemaOrgTypes.ItemListElement]: { version: number; dateCreated: string }[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphChangesetGetRequest.js","sources":["../../../../src/models/api/IAuditableItemGraphChangesetGetRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, MimeTypes } from \"@3sixty/web\";\nimport type { VerifyDepth } from \"../verifyDepth.js\";\n\n/**\n * Get an auditable item graph vertex changeset.\n */\nexport interface IAuditableItemGraphChangesetGetRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.Accept]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;\n\t};\n\n\t/**\n\t * The parameters from the path.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The id of the vertex to get the changeset from.\n\t\t */\n\t\tid: string;\n\n\t\t/**\n\t\t * The id of the changeset to get.\n\t\t */\n\t\tchangesetId: string;\n\t};\n\n\t/**\n\t * The query parameters.\n\t */\n\tquery?: {\n\t\t/**\n\t\t * How many signatures to verify, none, current or all, defaults to \"none\".\n\t\t */\n\t\tverifySignatureDepth?: VerifyDepth;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphChangesetGetResponse.js","sources":["../../../../src/models/api/IAuditableItemGraphChangesetGetResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, MimeTypes } from \"@3sixty/web\";\nimport type { IAuditableItemGraphChangeset } from \"../IAuditableItemGraphChangeset.js\";\n\n/**\n * Response to getting an auditable item graph vertex changeset.\n */\nexport interface IAuditableItemGraphChangesetGetResponse {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.ContentType]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;\n\t};\n\n\t/**\n\t * The response body.\n\t */\n\tbody: IAuditableItemGraphChangeset;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphChangesetListRequest.js","sources":["../../../../src/models/api/IAuditableItemGraphChangesetListRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, MimeTypes } from \"@3sixty/web\";\nimport type { VerifyDepth } from \"../verifyDepth.js\";\n\n/**\n * Get an auditable item graph changeset.\n */\nexport interface IAuditableItemGraphChangesetListRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.Accept]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;\n\t};\n\n\t/**\n\t * The parameters from the path.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The id of the changeset to get.\n\t\t */\n\t\tid: string;\n\t};\n\n\t/**\n\t * The query parameters.\n\t */\n\tquery?: {\n\t\t/**\n\t\t * The optional cursor to get next chunk.\n\t\t */\n\t\tcursor?: string;\n\n\t\t/**\n\t\t * Limit the number of entities to return.\n\t\t */\n\t\tlimit?: string;\n\n\t\t/**\n\t\t * How many signatures to verify, none, current or all, defaults to \"none\".\n\t\t */\n\t\tverifySignatureDepth?: VerifyDepth;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphChangesetListResponse.js","sources":["../../../../src/models/api/IAuditableItemGraphChangesetListResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, MimeTypes } from \"@3sixty/web\";\nimport type { IAuditableItemGraphChangesetList } from \"../IAuditableItemGraphChangesetList.js\";\n\n/**\n * Response to getting an auditable item graph changeset list.\n */\nexport interface IAuditableItemGraphChangesetListResponse {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.ContentType]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;\n\t\t[HeaderTypes.Link]?: string | string[];\n\t};\n\n\t/**\n\t * The response body.\n\t */\n\tbody: IAuditableItemGraphChangesetList;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphCreateRequest.js","sources":["../../../../src/models/api/IAuditableItemGraphCreateRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IAuditableItemGraphVertex } from \"../IAuditableItemGraphVertex.js\";\n\n/**\n * Create an auditable item graph vertex.\n */\nexport interface IAuditableItemGraphCreateRequest {\n\t/**\n\t * The data to be used in the vertex.\n\t */\n\tbody: Omit<IAuditableItemGraphVertex, \"id\">;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphGetRequest.js","sources":["../../../../src/models/api/IAuditableItemGraphGetRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, MimeTypes } from \"@3sixty/web\";\nimport type { VerifyDepth } from \"../verifyDepth.js\";\n\n/**\n * Get an auditable item graph vertex.\n */\nexport interface IAuditableItemGraphGetRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.Accept]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;\n\t};\n\n\t/**\n\t * The parameters from the path.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The id of the vertex to get.\n\t\t */\n\t\tid: string;\n\t};\n\n\t/**\n\t * The query parameters.\n\t */\n\tquery?: {\n\t\t/**\n\t\t * Whether to include deleted aliases, resource, edges, defaults to false.\n\t\t */\n\t\tincludeDeleted?: string;\n\n\t\t/**\n\t\t * How many signatures to verify, none, current or all, defaults to \"none\".\n\t\t */\n\t\tverifySignatureDepth?: VerifyDepth;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphGetResponse.js","sources":["../../../../src/models/api/IAuditableItemGraphGetResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, MimeTypes } from \"@3sixty/web\";\nimport type { IAuditableItemGraphVertex } from \"../IAuditableItemGraphVertex.js\";\n\n/**\n * Response to getting an auditable item graph vertex.\n */\nexport interface IAuditableItemGraphGetResponse {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.ContentType]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;\n\t};\n\n\t/**\n\t * The response body.\n\t */\n\tbody: IAuditableItemGraphVertex;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphListRequest.js","sources":["../../../../src/models/api/IAuditableItemGraphListRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { SortDirection } from \"@3sixty/entity\";\nimport type { HeaderTypes, MimeTypes } from \"@3sixty/web\";\nimport type { IAuditableItemGraphVertex } from \"../IAuditableItemGraphVertex.js\";\n\n/**\n * Get the a list of the vertices with matching ids or aliases.\n */\nexport interface IAuditableItemGraphListRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.Accept]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;\n\t};\n\n\t/**\n\t * The query parameters.\n\t */\n\tquery?: {\n\t\t/**\n\t\t * The id or alias to try and find.\n\t\t */\n\t\tid?: string;\n\n\t\t/**\n\t\t * Which field to look in with the id, defaults to both.\n\t\t */\n\t\tidMode?: \"id\" | \"alias\" | \"both\";\n\n\t\t/**\n\t\t * Find only exact matches, default to false meaning partial matching.\n\t\t */\n\t\tidExact?: string;\n\n\t\t/**\n\t\t * Include vertices with specific resource types, comma separated.\n\t\t */\n\t\tresourceTypes?: string;\n\n\t\t/**\n\t\t * The conditions to filter the streams, JSON stringified `EntityCondition<IAuditableItemGraphVertex>`.\n\t\t */\n\t\tconditions?: string;\n\n\t\t/**\n\t\t * The order for the results, default to dateCreated.\n\t\t */\n\t\torderBy?: keyof Pick<IAuditableItemGraphVertex, \"dateCreated\" | \"dateModified\">;\n\n\t\t/**\n\t\t * The direction for the order, defaults to desc.\n\t\t */\n\t\torderByDirection?: SortDirection;\n\n\t\t/**\n\t\t * The properties to return as a comma separated list, defaults to \"id,dateCreated,aliases,annotationObject\".\n\t\t */\n\t\tproperties?: string;\n\n\t\t/**\n\t\t * The optional cursor to get next chunk.\n\t\t */\n\t\tcursor?: string;\n\n\t\t/**\n\t\t * The maximum number of entities to return, a page can contain fewer so follow the cursor\n\t\t * until it is absent to read them all.\n\t\t */\n\t\tlimit?: string;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphListResponse.js","sources":["../../../../src/models/api/IAuditableItemGraphListResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, MimeTypes } from \"@3sixty/web\";\nimport type { IAuditableItemGraphVertexList } from \"../IAuditableItemGraphVertexList.js\";\n\n/**\n * The response to getting the a list of the vertices with matching ids or aliases.\n */\nexport interface IAuditableItemGraphListResponse {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.ContentType]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;\n\t\t[HeaderTypes.Link]?: string | string[];\n\t};\n\n\t/**\n\t * The response payload.\n\t */\n\tbody: IAuditableItemGraphVertexList;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphRemoveProofRequest.js","sources":["../../../../src/models/api/IAuditableItemGraphRemoveProofRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Remove the notarization proof from all changesets of a graph vertex.\n */\nexport interface IAuditableItemGraphRemoveProofRequest {\n\t/**\n\t * The parameters from the path.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The id of the vertex whose proof should be removed.\n\t\t */\n\t\tid: string;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphUpdatePartialRequest.js","sources":["../../../../src/models/api/IAuditableItemGraphUpdatePartialRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IAuditableItemGraphPartialVertex } from \"../IAuditableItemGraphPartialVertex.js\";\n\n/**\n * Partially update an auditable item graph vertex (PATCH - explicit list patches).\n */\nexport interface IAuditableItemGraphUpdatePartialRequest {\n\t/**\n\t * The path parameters.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The id of the vertex to update.\n\t\t */\n\t\tid: string;\n\t};\n\n\t/**\n\t * Partial vertex data; only defined properties are applied.\n\t * Sub-lists use `{ add, remove }` patch objects.\n\t */\n\tbody: Omit<IAuditableItemGraphPartialVertex, \"id\">;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphUpdateRequest.js","sources":["../../../../src/models/api/IAuditableItemGraphUpdateRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IAuditableItemGraphVertex } from \"../IAuditableItemGraphVertex.js\";\n\n/**\n * Update an auditable item graph vertex (PUT - full replacement of vertex state).\n */\nexport interface IAuditableItemGraphUpdateRequest {\n\t/**\n\t * The path parameters.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The id of the vertex to update.\n\t\t */\n\t\tid: string;\n\t};\n\n\t/**\n\t * The full vertex payload. Replaces annotation and active sub-lists; omitted collections are cleared.\n\t */\n\tbody: Omit<IAuditableItemGraphVertex, \"id\">;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphVersionGetRequest.js","sources":["../../../../src/models/api/IAuditableItemGraphVersionGetRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, MimeTypes } from \"@3sixty/web\";\n\n/**\n * Get an auditable item graph vertex at a specific version.\n */\nexport interface IAuditableItemGraphVersionGetRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.Accept]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;\n\t};\n\n\t/**\n\t * The parameters from the path.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The id of the vertex.\n\t\t */\n\t\tid: string;\n\n\t\t/**\n\t\t * The version number to get.\n\t\t */\n\t\tversion: string;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphVersionGetResponse.js","sources":["../../../../src/models/api/IAuditableItemGraphVersionGetResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, MimeTypes } from \"@3sixty/web\";\nimport type { IAuditableItemGraphVertex } from \"../IAuditableItemGraphVertex.js\";\n\n/**\n * Response to getting an auditable item graph vertex at a specific version.\n */\nexport interface IAuditableItemGraphVersionGetResponse {\n\t/**\n\t * The headers.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.ContentType]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;\n\t};\n\n\t/**\n\t * The response body.\n\t */\n\tbody: IAuditableItemGraphVertex;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphVersionListRequest.js","sources":["../../../../src/models/api/IAuditableItemGraphVersionListRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, MimeTypes } from \"@3sixty/web\";\n\n/**\n * Get all versions of an auditable item graph vertex.\n */\nexport interface IAuditableItemGraphVersionListRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.Accept]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;\n\t};\n\n\t/**\n\t * The parameters from the path.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The id of the vertex.\n\t\t */\n\t\tid: string;\n\t};\n\n\t/**\n\t * The query parameters.\n\t */\n\tquery?: {\n\t\t/**\n\t\t * Only return versions created after this ISO 8601 timestamp (exclusive).\n\t\t */\n\t\tafter?: string;\n\n\t\t/**\n\t\t * Only return versions created before this ISO 8601 timestamp (exclusive).\n\t\t */\n\t\tbefore?: string;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphVersionListResponse.js","sources":["../../../../src/models/api/IAuditableItemGraphVersionListResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, MimeTypes } from \"@3sixty/web\";\nimport type { IAuditableItemGraphVertexVersionList } from \"../IAuditableItemGraphVertexVersionList.js\";\n\n/**\n * Response to getting all versions of an auditable item graph vertex.\n */\nexport interface IAuditableItemGraphVersionListResponse {\n\t/**\n\t * The headers.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.ContentType]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;\n\t};\n\n\t/**\n\t * The response body.\n\t */\n\tbody: IAuditableItemGraphVertexVersionList;\n}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Copyright 2026 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* How the mutations of a vertex are recorded.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const AuditableItemGraphAuditMode = {
|
|
8
|
+
/**
|
|
9
|
+
* Every mutation appends a new version entry and maintains a full audit trail.
|
|
10
|
+
*/
|
|
11
|
+
Audited: "audited",
|
|
12
|
+
/**
|
|
13
|
+
* Mutations overwrite the stored state in place, with no version chain or audit entries.
|
|
14
|
+
*/
|
|
15
|
+
Bypass: "bypass"
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=auditableItemGraphAuditMode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditableItemGraphAuditMode.js","sources":["../../../src/models/auditableItemGraphAuditMode.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,2BAA2B,GAAG;IAC1C;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,MAAM,EAAE,QAAQ;CACP,CAAC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * How the mutations of a vertex are recorded.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const AuditableItemGraphAuditMode = {\n\t/**\n\t * Every mutation appends a new version entry and maintains a full audit trail.\n\t */\n\tAudited: \"audited\",\n\n\t/**\n\t * Mutations overwrite the stored state in place, with no version chain or audit entries.\n\t */\n\tBypass: \"bypass\"\n} as const;\n\n/**\n * How the mutations of a vertex are recorded.\n */\nexport type AuditableItemGraphAuditMode =\n\t(typeof AuditableItemGraphAuditMode)[keyof typeof AuditableItemGraphAuditMode];\n"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* The contexts of auditable item graph data.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const AuditableItemGraphContexts = {
|
|
8
|
+
/**
|
|
9
|
+
* The canonical RDF namespace URI for Auditable Item Graph.
|
|
10
|
+
*/
|
|
11
|
+
Namespace: "https://schema.3sixty.global/aig/",
|
|
12
|
+
/**
|
|
13
|
+
* The value to use in context for Auditable Item Graph.
|
|
14
|
+
*/
|
|
15
|
+
Context: "https://schema.3sixty.global/aig/",
|
|
16
|
+
/**
|
|
17
|
+
* The JSON-LD Context URL for Auditable Item Graph.
|
|
18
|
+
*/
|
|
19
|
+
JsonLdContext: "https://schema.3sixty.global/aig/types.jsonld",
|
|
20
|
+
/**
|
|
21
|
+
* The canonical RDF namespace URI for TWIN Common.
|
|
22
|
+
*/
|
|
23
|
+
NamespaceCommon: "https://schema.3sixty.global/common/",
|
|
24
|
+
/**
|
|
25
|
+
* The value to use in JSON-LD context for TWIN Common.
|
|
26
|
+
*/
|
|
27
|
+
ContextCommon: "https://schema.3sixty.global/common/",
|
|
28
|
+
/**
|
|
29
|
+
* The JSON-LD Context URL for TWIN Common.
|
|
30
|
+
*/
|
|
31
|
+
JsonLdContextCommon: "https://schema.3sixty.global/common/types.jsonld"
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=auditableItemGraphContexts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditableItemGraphContexts.js","sources":["../../../src/models/auditableItemGraphContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACzC;;OAEG;IACH,SAAS,EAAE,mCAAmC;IAE9C;;OAEG;IACH,OAAO,EAAE,mCAAmC;IAE5C;;OAEG;IACH,aAAa,EAAE,+CAA+C;IAE9D;;OAEG;IACH,eAAe,EAAE,sCAAsC;IAEvD;;OAEG;IACH,aAAa,EAAE,sCAAsC;IAErD;;OAEG;IACH,mBAAmB,EAAE,kDAAkD;CAC9D,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The contexts of auditable item graph data.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const AuditableItemGraphContexts = {\n\t/**\n\t * The canonical RDF namespace URI for Auditable Item Graph.\n\t */\n\tNamespace: \"https://schema.3sixty.global/aig/\",\n\n\t/**\n\t * The value to use in context for Auditable Item Graph.\n\t */\n\tContext: \"https://schema.3sixty.global/aig/\",\n\n\t/**\n\t * The JSON-LD Context URL for Auditable Item Graph.\n\t */\n\tJsonLdContext: \"https://schema.3sixty.global/aig/types.jsonld\",\n\n\t/**\n\t * The canonical RDF namespace URI for TWIN Common.\n\t */\n\tNamespaceCommon: \"https://schema.3sixty.global/common/\",\n\n\t/**\n\t * The value to use in JSON-LD context for TWIN Common.\n\t */\n\tContextCommon: \"https://schema.3sixty.global/common/\",\n\n\t/**\n\t * The JSON-LD Context URL for TWIN Common.\n\t */\n\tJsonLdContextCommon: \"https://schema.3sixty.global/common/types.jsonld\"\n} as const;\n\n/**\n * The contexts of auditable item graph data.\n */\nexport type AuditableItemGraphContexts =\n\t(typeof AuditableItemGraphContexts)[keyof typeof AuditableItemGraphContexts];\n"]}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* Metric IDs for the auditable item graph service.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const AuditableItemGraphMetricIds = {
|
|
8
|
+
/**
|
|
9
|
+
* Number of vertices created.
|
|
10
|
+
*/
|
|
11
|
+
VerticesCreated: "aig_vertices_created",
|
|
12
|
+
/**
|
|
13
|
+
* Number of vertices updated.
|
|
14
|
+
*/
|
|
15
|
+
VerticesUpdated: "aig_vertices_updated",
|
|
16
|
+
/**
|
|
17
|
+
* Number of changesets created.
|
|
18
|
+
*/
|
|
19
|
+
ChangesetsCreated: "aig_changesets_created",
|
|
20
|
+
/**
|
|
21
|
+
* Number of aliases added.
|
|
22
|
+
*/
|
|
23
|
+
AliasesAdded: "aig_aliases_added",
|
|
24
|
+
/**
|
|
25
|
+
* Number of aliases modified.
|
|
26
|
+
*/
|
|
27
|
+
AliasesModified: "aig_aliases_modified",
|
|
28
|
+
/**
|
|
29
|
+
* Number of aliases deleted.
|
|
30
|
+
*/
|
|
31
|
+
AliasesDeleted: "aig_aliases_deleted",
|
|
32
|
+
/**
|
|
33
|
+
* Number of resources added.
|
|
34
|
+
*/
|
|
35
|
+
ResourcesAdded: "aig_resources_added",
|
|
36
|
+
/**
|
|
37
|
+
* Number of resources modified.
|
|
38
|
+
*/
|
|
39
|
+
ResourcesModified: "aig_resources_modified",
|
|
40
|
+
/**
|
|
41
|
+
* Number of resources deleted.
|
|
42
|
+
*/
|
|
43
|
+
ResourcesDeleted: "aig_resources_deleted",
|
|
44
|
+
/**
|
|
45
|
+
* Number of edges added.
|
|
46
|
+
*/
|
|
47
|
+
EdgesAdded: "aig_edges_added",
|
|
48
|
+
/**
|
|
49
|
+
* Number of edges modified.
|
|
50
|
+
*/
|
|
51
|
+
EdgesModified: "aig_edges_modified",
|
|
52
|
+
/**
|
|
53
|
+
* Number of edges deleted.
|
|
54
|
+
*/
|
|
55
|
+
EdgesDeleted: "aig_edges_deleted",
|
|
56
|
+
/**
|
|
57
|
+
* Number of queries executed.
|
|
58
|
+
*/
|
|
59
|
+
QueriesExecuted: "aig_queries_executed",
|
|
60
|
+
/**
|
|
61
|
+
* Number of verifications succeeded.
|
|
62
|
+
*/
|
|
63
|
+
VerificationsSucceeded: "aig_verifications_succeeded",
|
|
64
|
+
/**
|
|
65
|
+
* Number of verifications failed.
|
|
66
|
+
*/
|
|
67
|
+
VerificationsFailed: "aig_verifications_failed"
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=auditableItemGraphMetricIds.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditableItemGraphMetricIds.js","sources":["../../../src/models/auditableItemGraphMetricIds.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,2BAA2B,GAAG;IAC1C;;OAEG;IACH,eAAe,EAAE,sBAAsB;IAEvC;;OAEG;IACH,eAAe,EAAE,sBAAsB;IAEvC;;OAEG;IACH,iBAAiB,EAAE,wBAAwB;IAE3C;;OAEG;IACH,YAAY,EAAE,mBAAmB;IAEjC;;OAEG;IACH,eAAe,EAAE,sBAAsB;IAEvC;;OAEG;IACH,cAAc,EAAE,qBAAqB;IAErC;;OAEG;IACH,cAAc,EAAE,qBAAqB;IAErC;;OAEG;IACH,iBAAiB,EAAE,wBAAwB;IAE3C;;OAEG;IACH,gBAAgB,EAAE,uBAAuB;IAEzC;;OAEG;IACH,UAAU,EAAE,iBAAiB;IAE7B;;OAEG;IACH,aAAa,EAAE,oBAAoB;IAEnC;;OAEG;IACH,YAAY,EAAE,mBAAmB;IAEjC;;OAEG;IACH,eAAe,EAAE,sBAAsB;IAEvC;;OAEG;IACH,sBAAsB,EAAE,6BAA6B;IAErD;;OAEG;IACH,mBAAmB,EAAE,0BAA0B;CACtC,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Metric IDs for the auditable item graph service.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const AuditableItemGraphMetricIds = {\n\t/**\n\t * Number of vertices created.\n\t */\n\tVerticesCreated: \"aig_vertices_created\",\n\n\t/**\n\t * Number of vertices updated.\n\t */\n\tVerticesUpdated: \"aig_vertices_updated\",\n\n\t/**\n\t * Number of changesets created.\n\t */\n\tChangesetsCreated: \"aig_changesets_created\",\n\n\t/**\n\t * Number of aliases added.\n\t */\n\tAliasesAdded: \"aig_aliases_added\",\n\n\t/**\n\t * Number of aliases modified.\n\t */\n\tAliasesModified: \"aig_aliases_modified\",\n\n\t/**\n\t * Number of aliases deleted.\n\t */\n\tAliasesDeleted: \"aig_aliases_deleted\",\n\n\t/**\n\t * Number of resources added.\n\t */\n\tResourcesAdded: \"aig_resources_added\",\n\n\t/**\n\t * Number of resources modified.\n\t */\n\tResourcesModified: \"aig_resources_modified\",\n\n\t/**\n\t * Number of resources deleted.\n\t */\n\tResourcesDeleted: \"aig_resources_deleted\",\n\n\t/**\n\t * Number of edges added.\n\t */\n\tEdgesAdded: \"aig_edges_added\",\n\n\t/**\n\t * Number of edges modified.\n\t */\n\tEdgesModified: \"aig_edges_modified\",\n\n\t/**\n\t * Number of edges deleted.\n\t */\n\tEdgesDeleted: \"aig_edges_deleted\",\n\n\t/**\n\t * Number of queries executed.\n\t */\n\tQueriesExecuted: \"aig_queries_executed\",\n\n\t/**\n\t * Number of verifications succeeded.\n\t */\n\tVerificationsSucceeded: \"aig_verifications_succeeded\",\n\n\t/**\n\t * Number of verifications failed.\n\t */\n\tVerificationsFailed: \"aig_verifications_failed\"\n} as const;\n\n/**\n * Metric IDs for the auditable item graph service.\n */\nexport type AuditableItemGraphMetricIds =\n\t(typeof AuditableItemGraphMetricIds)[keyof typeof AuditableItemGraphMetricIds];\n"]}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
import { MetricType } from "@3sixty/telemetry-models";
|
|
4
|
+
import { AuditableItemGraphMetricIds } from "./auditableItemGraphMetricIds.js";
|
|
5
|
+
/**
|
|
6
|
+
* Metrics registered by the auditable item graph service.
|
|
7
|
+
*/
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
9
|
+
export const AuditableItemGraphMetrics = [
|
|
10
|
+
{
|
|
11
|
+
id: AuditableItemGraphMetricIds.VerticesCreated,
|
|
12
|
+
label: "Vertices created",
|
|
13
|
+
type: MetricType.Counter
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
id: AuditableItemGraphMetricIds.VerticesUpdated,
|
|
17
|
+
label: "Vertices updated",
|
|
18
|
+
type: MetricType.Counter
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: AuditableItemGraphMetricIds.ChangesetsCreated,
|
|
22
|
+
label: "Changesets created",
|
|
23
|
+
type: MetricType.Counter
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: AuditableItemGraphMetricIds.AliasesAdded,
|
|
27
|
+
label: "Aliases added",
|
|
28
|
+
type: MetricType.Counter
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: AuditableItemGraphMetricIds.AliasesModified,
|
|
32
|
+
label: "Aliases modified",
|
|
33
|
+
type: MetricType.Counter
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: AuditableItemGraphMetricIds.AliasesDeleted,
|
|
37
|
+
label: "Aliases deleted",
|
|
38
|
+
type: MetricType.Counter
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
id: AuditableItemGraphMetricIds.ResourcesAdded,
|
|
42
|
+
label: "Resources added",
|
|
43
|
+
type: MetricType.Counter
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: AuditableItemGraphMetricIds.ResourcesModified,
|
|
47
|
+
label: "Resources modified",
|
|
48
|
+
type: MetricType.Counter
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: AuditableItemGraphMetricIds.ResourcesDeleted,
|
|
52
|
+
label: "Resources deleted",
|
|
53
|
+
type: MetricType.Counter
|
|
54
|
+
},
|
|
55
|
+
{ id: AuditableItemGraphMetricIds.EdgesAdded, label: "Edges added", type: MetricType.Counter },
|
|
56
|
+
{
|
|
57
|
+
id: AuditableItemGraphMetricIds.EdgesModified,
|
|
58
|
+
label: "Edges modified",
|
|
59
|
+
type: MetricType.Counter
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: AuditableItemGraphMetricIds.EdgesDeleted,
|
|
63
|
+
label: "Edges deleted",
|
|
64
|
+
type: MetricType.Counter
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
id: AuditableItemGraphMetricIds.QueriesExecuted,
|
|
68
|
+
label: "Queries executed",
|
|
69
|
+
type: MetricType.Counter
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: AuditableItemGraphMetricIds.VerificationsSucceeded,
|
|
73
|
+
label: "Verifications succeeded",
|
|
74
|
+
type: MetricType.Counter
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: AuditableItemGraphMetricIds.VerificationsFailed,
|
|
78
|
+
label: "Verifications failed",
|
|
79
|
+
type: MetricType.Counter
|
|
80
|
+
}
|
|
81
|
+
];
|
|
82
|
+
//# sourceMappingURL=auditableItemGraphMetrics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditableItemGraphMetrics.js","sources":["../../../src/models/auditableItemGraphMetrics.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAyB,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAE/E;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,yBAAyB,GAAuB;IAC5D;QACC,EAAE,EAAE,2BAA2B,CAAC,eAAe;QAC/C,KAAK,EAAE,kBAAkB;QACzB,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,2BAA2B,CAAC,eAAe;QAC/C,KAAK,EAAE,kBAAkB;QACzB,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,2BAA2B,CAAC,iBAAiB;QACjD,KAAK,EAAE,oBAAoB;QAC3B,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,2BAA2B,CAAC,YAAY;QAC5C,KAAK,EAAE,eAAe;QACtB,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,2BAA2B,CAAC,eAAe;QAC/C,KAAK,EAAE,kBAAkB;QACzB,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,2BAA2B,CAAC,cAAc;QAC9C,KAAK,EAAE,iBAAiB;QACxB,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,2BAA2B,CAAC,cAAc;QAC9C,KAAK,EAAE,iBAAiB;QACxB,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,2BAA2B,CAAC,iBAAiB;QACjD,KAAK,EAAE,oBAAoB;QAC3B,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,2BAA2B,CAAC,gBAAgB;QAChD,KAAK,EAAE,mBAAmB;QAC1B,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD,EAAE,EAAE,EAAE,2BAA2B,CAAC,UAAU,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,CAAC,OAAO,EAAE;IAC9F;QACC,EAAE,EAAE,2BAA2B,CAAC,aAAa;QAC7C,KAAK,EAAE,gBAAgB;QACvB,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,2BAA2B,CAAC,YAAY;QAC5C,KAAK,EAAE,eAAe;QACtB,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,2BAA2B,CAAC,eAAe;QAC/C,KAAK,EAAE,kBAAkB;QACzB,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,2BAA2B,CAAC,sBAAsB;QACtD,KAAK,EAAE,yBAAyB;QAChC,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,2BAA2B,CAAC,mBAAmB;QACnD,KAAK,EAAE,sBAAsB;QAC7B,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;CACD,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { type ITelemetryMetric, MetricType } from \"@3sixty/telemetry-models\";\nimport { AuditableItemGraphMetricIds } from \"./auditableItemGraphMetricIds.js\";\n\n/**\n * Metrics registered by the auditable item graph service.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const AuditableItemGraphMetrics: ITelemetryMetric[] = [\n\t{\n\t\tid: AuditableItemGraphMetricIds.VerticesCreated,\n\t\tlabel: \"Vertices created\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: AuditableItemGraphMetricIds.VerticesUpdated,\n\t\tlabel: \"Vertices updated\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: AuditableItemGraphMetricIds.ChangesetsCreated,\n\t\tlabel: \"Changesets created\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: AuditableItemGraphMetricIds.AliasesAdded,\n\t\tlabel: \"Aliases added\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: AuditableItemGraphMetricIds.AliasesModified,\n\t\tlabel: \"Aliases modified\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: AuditableItemGraphMetricIds.AliasesDeleted,\n\t\tlabel: \"Aliases deleted\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: AuditableItemGraphMetricIds.ResourcesAdded,\n\t\tlabel: \"Resources added\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: AuditableItemGraphMetricIds.ResourcesModified,\n\t\tlabel: \"Resources modified\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: AuditableItemGraphMetricIds.ResourcesDeleted,\n\t\tlabel: \"Resources deleted\",\n\t\ttype: MetricType.Counter\n\t},\n\t{ id: AuditableItemGraphMetricIds.EdgesAdded, label: \"Edges added\", type: MetricType.Counter },\n\t{\n\t\tid: AuditableItemGraphMetricIds.EdgesModified,\n\t\tlabel: \"Edges modified\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: AuditableItemGraphMetricIds.EdgesDeleted,\n\t\tlabel: \"Edges deleted\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: AuditableItemGraphMetricIds.QueriesExecuted,\n\t\tlabel: \"Queries executed\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: AuditableItemGraphMetricIds.VerificationsSucceeded,\n\t\tlabel: \"Verifications succeeded\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: AuditableItemGraphMetricIds.VerificationsFailed,\n\t\tlabel: \"Verifications failed\",\n\t\ttype: MetricType.Counter\n\t}\n];\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* The topics for auditable item graph event bus notifications.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const AuditableItemGraphTopics = {
|
|
8
|
+
/**
|
|
9
|
+
* A vertex was created.
|
|
10
|
+
*/
|
|
11
|
+
VertexCreated: "auditable-item-graph:vertex-created",
|
|
12
|
+
/**
|
|
13
|
+
* A vertex was updated.
|
|
14
|
+
*/
|
|
15
|
+
VertexUpdated: "auditable-item-graph:vertex-updated"
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=auditableItemGraphTopics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditableItemGraphTopics.js","sources":["../../../src/models/auditableItemGraphTopics.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACvC;;OAEG;IACH,aAAa,EAAE,qCAAqC;IAEpD;;OAEG;IACH,aAAa,EAAE,qCAAqC;CAC3C,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The topics for auditable item graph event bus notifications.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const AuditableItemGraphTopics = {\n\t/**\n\t * A vertex was created.\n\t */\n\tVertexCreated: \"auditable-item-graph:vertex-created\",\n\n\t/**\n\t * A vertex was updated.\n\t */\n\tVertexUpdated: \"auditable-item-graph:vertex-updated\"\n} as const;\n\n/**\n * The topics for auditable item graph event bus notifications.\n */\nexport type AuditableItemGraphTopics =\n\t(typeof AuditableItemGraphTopics)[keyof typeof AuditableItemGraphTopics];\n"]}
|