@twin.org/identity-models 0.9.2-next.9 → 0.9.2

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/dist/es/index.js CHANGED
@@ -54,6 +54,8 @@ export * from "./models/IIdentityResolverComponent.js";
54
54
  export * from "./models/IIdentityResolverConnector.js";
55
55
  export * from "./models/identityMetricIds.js";
56
56
  export * from "./models/identityMetrics.js";
57
+ export * from "./models/identitySpanAttributes.js";
58
+ export * from "./models/identitySpanNames.js";
57
59
  export * from "./types/did.js";
58
60
  export * from "./utils/documentHelper.js";
59
61
  export * from "./utils/verificationHelper.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,yCAAyC,CAAC;AACxD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,iDAAiD,CAAC;AAChE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,iDAAiD,CAAC;AAChE,cAAc,kDAAkD,CAAC;AACjE,cAAc,sDAAsD,CAAC;AACrE,cAAc,uDAAuD,CAAC;AACtE,cAAc,sDAAsD,CAAC;AACrE,cAAc,uDAAuD,CAAC;AACtE,cAAc,iDAAiD,CAAC;AAChE,cAAc,wDAAwD,CAAC;AACvE,cAAc,yDAAyD,CAAC;AACxE,cAAc,wDAAwD,CAAC;AACvE,cAAc,qEAAqE,CAAC;AACpF,cAAc,sEAAsE,CAAC;AACrF,cAAc,qEAAqE,CAAC;AACpF,cAAc,uEAAuE,CAAC;AACtF,cAAc,6EAA6E,CAAC;AAC5F,cAAc,qEAAqE,CAAC;AACpF,cAAc,sEAAsE,CAAC;AACrF,cAAc,uEAAuE,CAAC;AACtF,cAAc,wEAAwE,CAAC;AACvF,cAAc,+EAA+E,CAAC;AAC9F,cAAc,uEAAuE,CAAC;AACtF,cAAc,wEAAwE,CAAC;AACvF,cAAc,mEAAmE,CAAC;AAClF,cAAc,oEAAoE,CAAC;AACnF,cAAc,mEAAmE,CAAC;AAClF,cAAc,yDAAyD,CAAC;AACxE,cAAc,0DAA0D,CAAC;AACzE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,uDAAuD,CAAC;AACtE,cAAc,0DAA0D,CAAC;AACzE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,oDAAoD,CAAC;AACnE,cAAc,qDAAqD,CAAC;AACpE,cAAc,qDAAqD,CAAC;AACpE,cAAc,sDAAsD,CAAC;AACrE,cAAc,uDAAuD,CAAC;AACtE,cAAc,kDAAkD,CAAC;AACjE,cAAc,mDAAmD,CAAC;AAClE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./contextIdHandlers/didContextIdHandler.js\";\nexport * from \"./factories/identityConnectorFactory.js\";\nexport * from \"./factories/identityProfileConnectorFactory.js\";\nexport * from \"./factories/identityResolverConnectorFactory.js\";\nexport * from \"./models/api/identity/IIdentityAlsoKnownAsCreateRequest.js\";\nexport * from \"./models/api/identity/IIdentityAlsoKnownAsRemoveRequest.js\";\nexport * from \"./models/api/identity/IIdentityCreateRequest.js\";\nexport * from \"./models/api/identity/IIdentityCreateResponse.js\";\nexport * from \"./models/api/identity/IIdentityProofCreateRequest.js\";\nexport * from \"./models/api/identity/IIdentityProofCreateResponse.js\";\nexport * from \"./models/api/identity/IIdentityProofVerifyRequest.js\";\nexport * from \"./models/api/identity/IIdentityProofVerifyResponse.js\";\nexport * from \"./models/api/identity/IIdentityRemoveRequest.js\";\nexport * from \"./models/api/identity/IIdentityServiceCreateRequest.js\";\nexport * from \"./models/api/identity/IIdentityServiceCreateResponse.js\";\nexport * from \"./models/api/identity/IIdentityServiceRemoveRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerifiableCredentialCreateRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerifiableCredentialCreateResponse.js\";\nexport * from \"./models/api/identity/IIdentityVerifiableCredentialRevokeRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerifiableCredentialUnrevokeRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerifiableCredentialVerifyDocumentRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerifiableCredentialVerifyRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerifiableCredentialVerifyResponse.js\";\nexport * from \"./models/api/identity/IIdentityVerifiablePresentationCreateRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerifiablePresentationCreateResponse.js\";\nexport * from \"./models/api/identity/IIdentityVerifiablePresentationVerifyDocumentRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerifiablePresentationVerifyRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerifiablePresentationVerifyResponse.js\";\nexport * from \"./models/api/identity/IIdentityVerificationMethodCreateRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerificationMethodCreateResponse.js\";\nexport * from \"./models/api/identity/IIdentityVerificationMethodRemoveRequest.js\";\nexport * from \"./models/api/profile/IIdentityProfileAdminGetRequest.js\";\nexport * from \"./models/api/profile/IIdentityProfileAdminListRequest.js\";\nexport * from \"./models/api/profile/IIdentityProfileAdminListResponse.js\";\nexport * from \"./models/api/profile/IIdentityProfileAdminRemoveRequest.js\";\nexport * from \"./models/api/profile/IIdentityProfileAdminUpdateRequest.js\";\nexport * from \"./models/api/profile/IIdentityProfileCreateRequest.js\";\nexport * from \"./models/api/profile/IIdentityProfileGetPublicRequest.js\";\nexport * from \"./models/api/profile/IIdentityProfileGetPublicResponse.js\";\nexport * from \"./models/api/profile/IIdentityProfileGetRequest.js\";\nexport * from \"./models/api/profile/IIdentityProfileGetResponse.js\";\nexport * from \"./models/api/profile/IIdentityProfileListRequest.js\";\nexport * from \"./models/api/profile/IIdentityProfileListResponse.js\";\nexport * from \"./models/api/profile/IIdentityProfileUpdateRequest.js\";\nexport * from \"./models/api/resolver/IIdentityResolveRequest.js\";\nexport * from \"./models/api/resolver/IIdentityResolveResponse.js\";\nexport * from \"./models/IIdentityComponent.js\";\nexport * from \"./models/IIdentityConnector.js\";\nexport * from \"./models/IIdentityProfileComponent.js\";\nexport * from \"./models/IIdentityProfileConnector.js\";\nexport * from \"./models/IIdentityResolverComponent.js\";\nexport * from \"./models/IIdentityResolverConnector.js\";\nexport * from \"./models/identityMetricIds.js\";\nexport * from \"./models/identityMetrics.js\";\nexport * from \"./types/did.js\";\nexport * from \"./utils/documentHelper.js\";\nexport * from \"./utils/verificationHelper.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,yCAAyC,CAAC;AACxD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,iDAAiD,CAAC;AAChE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,iDAAiD,CAAC;AAChE,cAAc,kDAAkD,CAAC;AACjE,cAAc,sDAAsD,CAAC;AACrE,cAAc,uDAAuD,CAAC;AACtE,cAAc,sDAAsD,CAAC;AACrE,cAAc,uDAAuD,CAAC;AACtE,cAAc,iDAAiD,CAAC;AAChE,cAAc,wDAAwD,CAAC;AACvE,cAAc,yDAAyD,CAAC;AACxE,cAAc,wDAAwD,CAAC;AACvE,cAAc,qEAAqE,CAAC;AACpF,cAAc,sEAAsE,CAAC;AACrF,cAAc,qEAAqE,CAAC;AACpF,cAAc,uEAAuE,CAAC;AACtF,cAAc,6EAA6E,CAAC;AAC5F,cAAc,qEAAqE,CAAC;AACpF,cAAc,sEAAsE,CAAC;AACrF,cAAc,uEAAuE,CAAC;AACtF,cAAc,wEAAwE,CAAC;AACvF,cAAc,+EAA+E,CAAC;AAC9F,cAAc,uEAAuE,CAAC;AACtF,cAAc,wEAAwE,CAAC;AACvF,cAAc,mEAAmE,CAAC;AAClF,cAAc,oEAAoE,CAAC;AACnF,cAAc,mEAAmE,CAAC;AAClF,cAAc,yDAAyD,CAAC;AACxE,cAAc,0DAA0D,CAAC;AACzE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,uDAAuD,CAAC;AACtE,cAAc,0DAA0D,CAAC;AACzE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,oDAAoD,CAAC;AACnE,cAAc,qDAAqD,CAAC;AACpE,cAAc,qDAAqD,CAAC;AACpE,cAAc,sDAAsD,CAAC;AACrE,cAAc,uDAAuD,CAAC;AACtE,cAAc,kDAAkD,CAAC;AACjE,cAAc,mDAAmD,CAAC;AAClE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./contextIdHandlers/didContextIdHandler.js\";\nexport * from \"./factories/identityConnectorFactory.js\";\nexport * from \"./factories/identityProfileConnectorFactory.js\";\nexport * from \"./factories/identityResolverConnectorFactory.js\";\nexport * from \"./models/api/identity/IIdentityAlsoKnownAsCreateRequest.js\";\nexport * from \"./models/api/identity/IIdentityAlsoKnownAsRemoveRequest.js\";\nexport * from \"./models/api/identity/IIdentityCreateRequest.js\";\nexport * from \"./models/api/identity/IIdentityCreateResponse.js\";\nexport * from \"./models/api/identity/IIdentityProofCreateRequest.js\";\nexport * from \"./models/api/identity/IIdentityProofCreateResponse.js\";\nexport * from \"./models/api/identity/IIdentityProofVerifyRequest.js\";\nexport * from \"./models/api/identity/IIdentityProofVerifyResponse.js\";\nexport * from \"./models/api/identity/IIdentityRemoveRequest.js\";\nexport * from \"./models/api/identity/IIdentityServiceCreateRequest.js\";\nexport * from \"./models/api/identity/IIdentityServiceCreateResponse.js\";\nexport * from \"./models/api/identity/IIdentityServiceRemoveRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerifiableCredentialCreateRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerifiableCredentialCreateResponse.js\";\nexport * from \"./models/api/identity/IIdentityVerifiableCredentialRevokeRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerifiableCredentialUnrevokeRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerifiableCredentialVerifyDocumentRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerifiableCredentialVerifyRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerifiableCredentialVerifyResponse.js\";\nexport * from \"./models/api/identity/IIdentityVerifiablePresentationCreateRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerifiablePresentationCreateResponse.js\";\nexport * from \"./models/api/identity/IIdentityVerifiablePresentationVerifyDocumentRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerifiablePresentationVerifyRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerifiablePresentationVerifyResponse.js\";\nexport * from \"./models/api/identity/IIdentityVerificationMethodCreateRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerificationMethodCreateResponse.js\";\nexport * from \"./models/api/identity/IIdentityVerificationMethodRemoveRequest.js\";\nexport * from \"./models/api/profile/IIdentityProfileAdminGetRequest.js\";\nexport * from \"./models/api/profile/IIdentityProfileAdminListRequest.js\";\nexport * from \"./models/api/profile/IIdentityProfileAdminListResponse.js\";\nexport * from \"./models/api/profile/IIdentityProfileAdminRemoveRequest.js\";\nexport * from \"./models/api/profile/IIdentityProfileAdminUpdateRequest.js\";\nexport * from \"./models/api/profile/IIdentityProfileCreateRequest.js\";\nexport * from \"./models/api/profile/IIdentityProfileGetPublicRequest.js\";\nexport * from \"./models/api/profile/IIdentityProfileGetPublicResponse.js\";\nexport * from \"./models/api/profile/IIdentityProfileGetRequest.js\";\nexport * from \"./models/api/profile/IIdentityProfileGetResponse.js\";\nexport * from \"./models/api/profile/IIdentityProfileListRequest.js\";\nexport * from \"./models/api/profile/IIdentityProfileListResponse.js\";\nexport * from \"./models/api/profile/IIdentityProfileUpdateRequest.js\";\nexport * from \"./models/api/resolver/IIdentityResolveRequest.js\";\nexport * from \"./models/api/resolver/IIdentityResolveResponse.js\";\nexport * from \"./models/IIdentityComponent.js\";\nexport * from \"./models/IIdentityConnector.js\";\nexport * from \"./models/IIdentityProfileComponent.js\";\nexport * from \"./models/IIdentityProfileConnector.js\";\nexport * from \"./models/IIdentityResolverComponent.js\";\nexport * from \"./models/IIdentityResolverConnector.js\";\nexport * from \"./models/identityMetricIds.js\";\nexport * from \"./models/identityMetrics.js\";\nexport * from \"./models/identitySpanAttributes.js\";\nexport * from \"./models/identitySpanNames.js\";\nexport * from \"./types/did.js\";\nexport * from \"./utils/documentHelper.js\";\nexport * from \"./utils/verificationHelper.js\";\n"]}
@@ -0,0 +1,21 @@
1
+ // Copyright 2026 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ /**
4
+ * The span attribute keys for the identity domain.
5
+ */
6
+ // eslint-disable-next-line @typescript-eslint/naming-convention
7
+ export const IdentitySpanAttributes = {
8
+ /**
9
+ * The id of the identity document the operation is for.
10
+ */
11
+ Id: "identity.id",
12
+ /**
13
+ * The id of the verification method the operation is for.
14
+ */
15
+ VerificationMethodId: "identity.verification-method-id",
16
+ /**
17
+ * The id of the service the operation is for.
18
+ */
19
+ ServiceId: "identity.service-id"
20
+ };
21
+ //# sourceMappingURL=identitySpanAttributes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identitySpanAttributes.js","sourceRoot":"","sources":["../../../src/models/identitySpanAttributes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACrC;;OAEG;IACH,EAAE,EAAE,aAAa;IAEjB;;OAEG;IACH,oBAAoB,EAAE,iCAAiC;IAEvD;;OAEG;IACH,SAAS,EAAE,qBAAqB;CACvB,CAAC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The span attribute keys for the identity domain.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const IdentitySpanAttributes = {\n\t/**\n\t * The id of the identity document the operation is for.\n\t */\n\tId: \"identity.id\",\n\n\t/**\n\t * The id of the verification method the operation is for.\n\t */\n\tVerificationMethodId: \"identity.verification-method-id\",\n\n\t/**\n\t * The id of the service the operation is for.\n\t */\n\tServiceId: \"identity.service-id\"\n} as const;\n\n/**\n * Union type of all identity span attribute key string values.\n */\nexport type IdentitySpanAttributes =\n\t(typeof IdentitySpanAttributes)[keyof typeof IdentitySpanAttributes];\n"]}
@@ -0,0 +1,73 @@
1
+ // Copyright 2026 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ /**
4
+ * The span names for the identity domain.
5
+ */
6
+ // eslint-disable-next-line @typescript-eslint/naming-convention
7
+ export const IdentitySpanNames = {
8
+ /**
9
+ * Create an identity.
10
+ */
11
+ Create: "identity/create",
12
+ /**
13
+ * Remove an identity.
14
+ */
15
+ Remove: "identity/remove",
16
+ /**
17
+ * Create a verification method.
18
+ */
19
+ VerificationMethodCreate: "identity/verification-method-create",
20
+ /**
21
+ * Remove a verification method.
22
+ */
23
+ VerificationMethodRemove: "identity/verification-method-remove",
24
+ /**
25
+ * Create a service.
26
+ */
27
+ ServiceCreate: "identity/service-create",
28
+ /**
29
+ * Remove a service.
30
+ */
31
+ ServiceRemove: "identity/service-remove",
32
+ /**
33
+ * Add an also known as alias.
34
+ */
35
+ AlsoKnownAsAdd: "identity/also-known-as-add",
36
+ /**
37
+ * Remove an also known as alias.
38
+ */
39
+ AlsoKnownAsRemove: "identity/also-known-as-remove",
40
+ /**
41
+ * Create a verifiable credential.
42
+ */
43
+ VerifiableCredentialCreate: "identity/verifiable-credential-create",
44
+ /**
45
+ * Verify a verifiable credential.
46
+ */
47
+ VerifiableCredentialVerify: "identity/verifiable-credential-verify",
48
+ /**
49
+ * Revoke a verifiable credential.
50
+ */
51
+ VerifiableCredentialRevoke: "identity/verifiable-credential-revoke",
52
+ /**
53
+ * Unrevoke a verifiable credential.
54
+ */
55
+ VerifiableCredentialUnrevoke: "identity/verifiable-credential-unrevoke",
56
+ /**
57
+ * Create a verifiable presentation.
58
+ */
59
+ VerifiablePresentationCreate: "identity/verifiable-presentation-create",
60
+ /**
61
+ * Verify a verifiable presentation.
62
+ */
63
+ VerifiablePresentationVerify: "identity/verifiable-presentation-verify",
64
+ /**
65
+ * Create a proof.
66
+ */
67
+ ProofCreate: "identity/proof-create",
68
+ /**
69
+ * Verify a proof.
70
+ */
71
+ ProofVerify: "identity/proof-verify"
72
+ };
73
+ //# sourceMappingURL=identitySpanNames.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identitySpanNames.js","sourceRoot":"","sources":["../../../src/models/identitySpanNames.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAChC;;OAEG;IACH,MAAM,EAAE,iBAAiB;IAEzB;;OAEG;IACH,MAAM,EAAE,iBAAiB;IAEzB;;OAEG;IACH,wBAAwB,EAAE,qCAAqC;IAE/D;;OAEG;IACH,wBAAwB,EAAE,qCAAqC;IAE/D;;OAEG;IACH,aAAa,EAAE,yBAAyB;IAExC;;OAEG;IACH,aAAa,EAAE,yBAAyB;IAExC;;OAEG;IACH,cAAc,EAAE,4BAA4B;IAE5C;;OAEG;IACH,iBAAiB,EAAE,+BAA+B;IAElD;;OAEG;IACH,0BAA0B,EAAE,uCAAuC;IAEnE;;OAEG;IACH,0BAA0B,EAAE,uCAAuC;IAEnE;;OAEG;IACH,0BAA0B,EAAE,uCAAuC;IAEnE;;OAEG;IACH,4BAA4B,EAAE,yCAAyC;IAEvE;;OAEG;IACH,4BAA4B,EAAE,yCAAyC;IAEvE;;OAEG;IACH,4BAA4B,EAAE,yCAAyC;IAEvE;;OAEG;IACH,WAAW,EAAE,uBAAuB;IAEpC;;OAEG;IACH,WAAW,EAAE,uBAAuB;CAC3B,CAAC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The span names for the identity domain.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const IdentitySpanNames = {\n\t/**\n\t * Create an identity.\n\t */\n\tCreate: \"identity/create\",\n\n\t/**\n\t * Remove an identity.\n\t */\n\tRemove: \"identity/remove\",\n\n\t/**\n\t * Create a verification method.\n\t */\n\tVerificationMethodCreate: \"identity/verification-method-create\",\n\n\t/**\n\t * Remove a verification method.\n\t */\n\tVerificationMethodRemove: \"identity/verification-method-remove\",\n\n\t/**\n\t * Create a service.\n\t */\n\tServiceCreate: \"identity/service-create\",\n\n\t/**\n\t * Remove a service.\n\t */\n\tServiceRemove: \"identity/service-remove\",\n\n\t/**\n\t * Add an also known as alias.\n\t */\n\tAlsoKnownAsAdd: \"identity/also-known-as-add\",\n\n\t/**\n\t * Remove an also known as alias.\n\t */\n\tAlsoKnownAsRemove: \"identity/also-known-as-remove\",\n\n\t/**\n\t * Create a verifiable credential.\n\t */\n\tVerifiableCredentialCreate: \"identity/verifiable-credential-create\",\n\n\t/**\n\t * Verify a verifiable credential.\n\t */\n\tVerifiableCredentialVerify: \"identity/verifiable-credential-verify\",\n\n\t/**\n\t * Revoke a verifiable credential.\n\t */\n\tVerifiableCredentialRevoke: \"identity/verifiable-credential-revoke\",\n\n\t/**\n\t * Unrevoke a verifiable credential.\n\t */\n\tVerifiableCredentialUnrevoke: \"identity/verifiable-credential-unrevoke\",\n\n\t/**\n\t * Create a verifiable presentation.\n\t */\n\tVerifiablePresentationCreate: \"identity/verifiable-presentation-create\",\n\n\t/**\n\t * Verify a verifiable presentation.\n\t */\n\tVerifiablePresentationVerify: \"identity/verifiable-presentation-verify\",\n\n\t/**\n\t * Create a proof.\n\t */\n\tProofCreate: \"identity/proof-create\",\n\n\t/**\n\t * Verify a proof.\n\t */\n\tProofVerify: \"identity/proof-verify\"\n} as const;\n\n/**\n * Union type of all identity span name string values.\n */\nexport type IdentitySpanNames = (typeof IdentitySpanNames)[keyof typeof IdentitySpanNames];\n"]}
@@ -52,6 +52,8 @@ export * from "./models/IIdentityResolverComponent.js";
52
52
  export * from "./models/IIdentityResolverConnector.js";
53
53
  export * from "./models/identityMetricIds.js";
54
54
  export * from "./models/identityMetrics.js";
55
+ export * from "./models/identitySpanAttributes.js";
56
+ export * from "./models/identitySpanNames.js";
55
57
  export * from "./types/did.js";
56
58
  export * from "./utils/documentHelper.js";
57
59
  export * from "./utils/verificationHelper.js";
@@ -0,0 +1,21 @@
1
+ /**
2
+ * The span attribute keys for the identity domain.
3
+ */
4
+ export declare const IdentitySpanAttributes: {
5
+ /**
6
+ * The id of the identity document the operation is for.
7
+ */
8
+ readonly Id: "identity.id";
9
+ /**
10
+ * The id of the verification method the operation is for.
11
+ */
12
+ readonly VerificationMethodId: "identity.verification-method-id";
13
+ /**
14
+ * The id of the service the operation is for.
15
+ */
16
+ readonly ServiceId: "identity.service-id";
17
+ };
18
+ /**
19
+ * Union type of all identity span attribute key string values.
20
+ */
21
+ export type IdentitySpanAttributes = (typeof IdentitySpanAttributes)[keyof typeof IdentitySpanAttributes];
@@ -0,0 +1,73 @@
1
+ /**
2
+ * The span names for the identity domain.
3
+ */
4
+ export declare const IdentitySpanNames: {
5
+ /**
6
+ * Create an identity.
7
+ */
8
+ readonly Create: "identity/create";
9
+ /**
10
+ * Remove an identity.
11
+ */
12
+ readonly Remove: "identity/remove";
13
+ /**
14
+ * Create a verification method.
15
+ */
16
+ readonly VerificationMethodCreate: "identity/verification-method-create";
17
+ /**
18
+ * Remove a verification method.
19
+ */
20
+ readonly VerificationMethodRemove: "identity/verification-method-remove";
21
+ /**
22
+ * Create a service.
23
+ */
24
+ readonly ServiceCreate: "identity/service-create";
25
+ /**
26
+ * Remove a service.
27
+ */
28
+ readonly ServiceRemove: "identity/service-remove";
29
+ /**
30
+ * Add an also known as alias.
31
+ */
32
+ readonly AlsoKnownAsAdd: "identity/also-known-as-add";
33
+ /**
34
+ * Remove an also known as alias.
35
+ */
36
+ readonly AlsoKnownAsRemove: "identity/also-known-as-remove";
37
+ /**
38
+ * Create a verifiable credential.
39
+ */
40
+ readonly VerifiableCredentialCreate: "identity/verifiable-credential-create";
41
+ /**
42
+ * Verify a verifiable credential.
43
+ */
44
+ readonly VerifiableCredentialVerify: "identity/verifiable-credential-verify";
45
+ /**
46
+ * Revoke a verifiable credential.
47
+ */
48
+ readonly VerifiableCredentialRevoke: "identity/verifiable-credential-revoke";
49
+ /**
50
+ * Unrevoke a verifiable credential.
51
+ */
52
+ readonly VerifiableCredentialUnrevoke: "identity/verifiable-credential-unrevoke";
53
+ /**
54
+ * Create a verifiable presentation.
55
+ */
56
+ readonly VerifiablePresentationCreate: "identity/verifiable-presentation-create";
57
+ /**
58
+ * Verify a verifiable presentation.
59
+ */
60
+ readonly VerifiablePresentationVerify: "identity/verifiable-presentation-verify";
61
+ /**
62
+ * Create a proof.
63
+ */
64
+ readonly ProofCreate: "identity/proof-create";
65
+ /**
66
+ * Verify a proof.
67
+ */
68
+ readonly ProofVerify: "identity/proof-verify";
69
+ };
70
+ /**
71
+ * Union type of all identity span name string values.
72
+ */
73
+ export type IdentitySpanNames = (typeof IdentitySpanNames)[keyof typeof IdentitySpanNames];
package/docs/changelog.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.9.2](https://github.com/iotaledger/twin-identity/compare/identity-models-v0.9.2...identity-models-v0.9.2) (2026-08-24)
4
+
5
+
6
+ ### Features
7
+
8
+ * release to production ([dabf4c5](https://github.com/iotaledger/twin-identity/commit/dabf4c5bb19e04c09bfbc8533f23dc9d42b35e4c))
9
+ * release to production ([8450ad7](https://github.com/iotaledger/twin-identity/commit/8450ad727e0c4d665f2ce483e41798c2ff5b7d55))
10
+ * release to production ([#161](https://github.com/iotaledger/twin-identity/issues/161)) ([ad151fa](https://github.com/iotaledger/twin-identity/commit/ad151facfcaadc1d183d935a6db525379d48002f))
11
+ * release to production ([#179](https://github.com/iotaledger/twin-identity/issues/179)) ([062816b](https://github.com/iotaledger/twin-identity/commit/062816b110776b7e60f89b04142d42c6f24890a8))
12
+ * release to production ([#210](https://github.com/iotaledger/twin-identity/issues/210)) ([aec2d45](https://github.com/iotaledger/twin-identity/commit/aec2d45ed55b8bf96638dee835f54629170943ad))
13
+
14
+ ## [0.9.2-next.10](https://github.com/iotaledger/twin-identity/compare/identity-models-v0.9.2-next.9...identity-models-v0.9.2-next.10) (2026-08-20)
15
+
16
+
17
+ ### Features
18
+
19
+ * tracing ([#205](https://github.com/iotaledger/twin-identity/issues/205)) ([add81ab](https://github.com/iotaledger/twin-identity/commit/add81ab4a258078c34ef0c57681d1675c81f8e2c))
20
+
3
21
  ## [0.9.2-next.9](https://github.com/iotaledger/twin-identity/compare/identity-models-v0.9.2-next.8...identity-models-v0.9.2-next.9) (2026-08-14)
4
22
 
5
23
 
@@ -61,6 +61,8 @@
61
61
  ## Type Aliases
62
62
 
63
63
  - [IdentityMetricIds](type-aliases/IdentityMetricIds.md)
64
+ - [IdentitySpanAttributes](type-aliases/IdentitySpanAttributes.md)
65
+ - [IdentitySpanNames](type-aliases/IdentitySpanNames.md)
64
66
 
65
67
  ## Variables
66
68
 
@@ -69,3 +71,5 @@
69
71
  - [IdentityResolverConnectorFactory](variables/IdentityResolverConnectorFactory.md)
70
72
  - [IdentityMetricIds](variables/IdentityMetricIds.md)
71
73
  - [IdentityMetrics](variables/IdentityMetrics.md)
74
+ - [IdentitySpanAttributes](variables/IdentitySpanAttributes.md)
75
+ - [IdentitySpanNames](variables/IdentitySpanNames.md)
@@ -0,0 +1,5 @@
1
+ # Type Alias: IdentitySpanAttributes
2
+
3
+ > **IdentitySpanAttributes** = *typeof* [`IdentitySpanAttributes`](../variables/IdentitySpanAttributes.md)\[keyof *typeof* [`IdentitySpanAttributes`](../variables/IdentitySpanAttributes.md)\]
4
+
5
+ Union type of all identity span attribute key string values.
@@ -0,0 +1,5 @@
1
+ # Type Alias: IdentitySpanNames
2
+
3
+ > **IdentitySpanNames** = *typeof* [`IdentitySpanNames`](../variables/IdentitySpanNames.md)\[keyof *typeof* [`IdentitySpanNames`](../variables/IdentitySpanNames.md)\]
4
+
5
+ Union type of all identity span name string values.
@@ -0,0 +1,25 @@
1
+ # Variable: IdentitySpanAttributes
2
+
3
+ > `const` **IdentitySpanAttributes**: `object`
4
+
5
+ The span attribute keys for the identity domain.
6
+
7
+ ## Type Declaration
8
+
9
+ ### Id {#id}
10
+
11
+ > `readonly` **Id**: `"identity.id"` = `"identity.id"`
12
+
13
+ The id of the identity document the operation is for.
14
+
15
+ ### VerificationMethodId {#verificationmethodid}
16
+
17
+ > `readonly` **VerificationMethodId**: `"identity.verification-method-id"` = `"identity.verification-method-id"`
18
+
19
+ The id of the verification method the operation is for.
20
+
21
+ ### ServiceId {#serviceid}
22
+
23
+ > `readonly` **ServiceId**: `"identity.service-id"` = `"identity.service-id"`
24
+
25
+ The id of the service the operation is for.
@@ -0,0 +1,103 @@
1
+ # Variable: IdentitySpanNames
2
+
3
+ > `const` **IdentitySpanNames**: `object`
4
+
5
+ The span names for the identity domain.
6
+
7
+ ## Type Declaration
8
+
9
+ ### Create {#create}
10
+
11
+ > `readonly` **Create**: `"identity/create"` = `"identity/create"`
12
+
13
+ Create an identity.
14
+
15
+ ### Remove {#remove}
16
+
17
+ > `readonly` **Remove**: `"identity/remove"` = `"identity/remove"`
18
+
19
+ Remove an identity.
20
+
21
+ ### VerificationMethodCreate {#verificationmethodcreate}
22
+
23
+ > `readonly` **VerificationMethodCreate**: `"identity/verification-method-create"` = `"identity/verification-method-create"`
24
+
25
+ Create a verification method.
26
+
27
+ ### VerificationMethodRemove {#verificationmethodremove}
28
+
29
+ > `readonly` **VerificationMethodRemove**: `"identity/verification-method-remove"` = `"identity/verification-method-remove"`
30
+
31
+ Remove a verification method.
32
+
33
+ ### ServiceCreate {#servicecreate}
34
+
35
+ > `readonly` **ServiceCreate**: `"identity/service-create"` = `"identity/service-create"`
36
+
37
+ Create a service.
38
+
39
+ ### ServiceRemove {#serviceremove}
40
+
41
+ > `readonly` **ServiceRemove**: `"identity/service-remove"` = `"identity/service-remove"`
42
+
43
+ Remove a service.
44
+
45
+ ### AlsoKnownAsAdd {#alsoknownasadd}
46
+
47
+ > `readonly` **AlsoKnownAsAdd**: `"identity/also-known-as-add"` = `"identity/also-known-as-add"`
48
+
49
+ Add an also known as alias.
50
+
51
+ ### AlsoKnownAsRemove {#alsoknownasremove}
52
+
53
+ > `readonly` **AlsoKnownAsRemove**: `"identity/also-known-as-remove"` = `"identity/also-known-as-remove"`
54
+
55
+ Remove an also known as alias.
56
+
57
+ ### VerifiableCredentialCreate {#verifiablecredentialcreate}
58
+
59
+ > `readonly` **VerifiableCredentialCreate**: `"identity/verifiable-credential-create"` = `"identity/verifiable-credential-create"`
60
+
61
+ Create a verifiable credential.
62
+
63
+ ### VerifiableCredentialVerify {#verifiablecredentialverify}
64
+
65
+ > `readonly` **VerifiableCredentialVerify**: `"identity/verifiable-credential-verify"` = `"identity/verifiable-credential-verify"`
66
+
67
+ Verify a verifiable credential.
68
+
69
+ ### VerifiableCredentialRevoke {#verifiablecredentialrevoke}
70
+
71
+ > `readonly` **VerifiableCredentialRevoke**: `"identity/verifiable-credential-revoke"` = `"identity/verifiable-credential-revoke"`
72
+
73
+ Revoke a verifiable credential.
74
+
75
+ ### VerifiableCredentialUnrevoke {#verifiablecredentialunrevoke}
76
+
77
+ > `readonly` **VerifiableCredentialUnrevoke**: `"identity/verifiable-credential-unrevoke"` = `"identity/verifiable-credential-unrevoke"`
78
+
79
+ Unrevoke a verifiable credential.
80
+
81
+ ### VerifiablePresentationCreate {#verifiablepresentationcreate}
82
+
83
+ > `readonly` **VerifiablePresentationCreate**: `"identity/verifiable-presentation-create"` = `"identity/verifiable-presentation-create"`
84
+
85
+ Create a verifiable presentation.
86
+
87
+ ### VerifiablePresentationVerify {#verifiablepresentationverify}
88
+
89
+ > `readonly` **VerifiablePresentationVerify**: `"identity/verifiable-presentation-verify"` = `"identity/verifiable-presentation-verify"`
90
+
91
+ Verify a verifiable presentation.
92
+
93
+ ### ProofCreate {#proofcreate}
94
+
95
+ > `readonly` **ProofCreate**: `"identity/proof-create"` = `"identity/proof-create"`
96
+
97
+ Create a proof.
98
+
99
+ ### ProofVerify {#proofverify}
100
+
101
+ > `readonly` **ProofVerify**: `"identity/proof-verify"` = `"identity/proof-verify"`
102
+
103
+ Verify a proof.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/identity-models",
3
- "version": "0.9.2-next.9",
3
+ "version": "0.9.2",
4
4
  "description": "Shared identity models and contracts for consistent data structures across services, connectors, and clients.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,15 +14,15 @@
14
14
  "node": ">=24.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@twin.org/context": "next",
18
- "@twin.org/core": "next",
19
- "@twin.org/data-core": "next",
20
- "@twin.org/data-json-ld": "next",
21
- "@twin.org/entity": "next",
22
- "@twin.org/nameof": "next",
23
- "@twin.org/standards-w3c-did": "next",
24
- "@twin.org/telemetry-models": "next",
25
- "@twin.org/web": "next"
17
+ "@twin.org/context": "^0.9.2",
18
+ "@twin.org/core": "^0.9.2",
19
+ "@twin.org/data-core": "^0.9.2",
20
+ "@twin.org/data-json-ld": "^0.9.2",
21
+ "@twin.org/entity": "^0.9.2",
22
+ "@twin.org/nameof": "^0.9.2",
23
+ "@twin.org/standards-w3c-did": "^0.9.2",
24
+ "@twin.org/telemetry-models": "^0.9.2",
25
+ "@twin.org/web": "^0.9.2"
26
26
  },
27
27
  "main": "./dist/es/index.js",
28
28
  "types": "./dist/types/index.d.ts",