@twin.org/attestation-models 0.9.2-next.3 → 0.9.2-next.4
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 +2 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/attestationSpanAttributes.js +13 -0
- package/dist/es/models/attestationSpanAttributes.js.map +1 -0
- package/dist/es/models/attestationSpanNames.js +25 -0
- package/dist/es/models/attestationSpanNames.js.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/models/attestationSpanAttributes.d.ts +13 -0
- package/dist/types/models/attestationSpanNames.d.ts +25 -0
- package/docs/changelog.md +7 -0
- package/docs/reference/index.md +4 -0
- package/docs/reference/type-aliases/AttestationSpanAttributes.md +5 -0
- package/docs/reference/type-aliases/AttestationSpanNames.md +5 -0
- package/docs/reference/variables/AttestationSpanAttributes.md +13 -0
- package/docs/reference/variables/AttestationSpanNames.md +31 -0
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
|
@@ -10,6 +10,8 @@ export * from "./models/api/IAttestationTransferRequest.js";
|
|
|
10
10
|
export * from "./models/attestationContexts.js";
|
|
11
11
|
export * from "./models/attestationMetricIds.js";
|
|
12
12
|
export * from "./models/attestationMetrics.js";
|
|
13
|
+
export * from "./models/attestationSpanAttributes.js";
|
|
14
|
+
export * from "./models/attestationSpanNames.js";
|
|
13
15
|
export * from "./models/attestationTypes.js";
|
|
14
16
|
export * from "./models/IAttestationComponent.js";
|
|
15
17
|
export * from "./models/IAttestationConnector.js";
|
package/dist/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,qCAAqC,CAAC;AACpD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAClD,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./dataTypes/attestationDataTypes.js\";\nexport * from \"./factories/attestationConnectorFactory.js\";\nexport * from \"./models/api/IAttestationCreateRequest.js\";\nexport * from \"./models/api/IAttestationDestroyRequest.js\";\nexport * from \"./models/api/IAttestationGetRequest.js\";\nexport * from \"./models/api/IAttestationGetResponse.js\";\nexport * from \"./models/api/IAttestationTransferRequest.js\";\nexport * from \"./models/attestationContexts.js\";\nexport * from \"./models/attestationMetricIds.js\";\nexport * from \"./models/attestationMetrics.js\";\nexport * from \"./models/attestationTypes.js\";\nexport * from \"./models/IAttestationComponent.js\";\nexport * from \"./models/IAttestationConnector.js\";\nexport * from \"./models/IAttestationInformation.js\";\nexport * from \"./models/IAttestationJwtProof.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,qCAAqC,CAAC;AACpD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAClD,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./dataTypes/attestationDataTypes.js\";\nexport * from \"./factories/attestationConnectorFactory.js\";\nexport * from \"./models/api/IAttestationCreateRequest.js\";\nexport * from \"./models/api/IAttestationDestroyRequest.js\";\nexport * from \"./models/api/IAttestationGetRequest.js\";\nexport * from \"./models/api/IAttestationGetResponse.js\";\nexport * from \"./models/api/IAttestationTransferRequest.js\";\nexport * from \"./models/attestationContexts.js\";\nexport * from \"./models/attestationMetricIds.js\";\nexport * from \"./models/attestationMetrics.js\";\nexport * from \"./models/attestationSpanAttributes.js\";\nexport * from \"./models/attestationSpanNames.js\";\nexport * from \"./models/attestationTypes.js\";\nexport * from \"./models/IAttestationComponent.js\";\nexport * from \"./models/IAttestationConnector.js\";\nexport * from \"./models/IAttestationInformation.js\";\nexport * from \"./models/IAttestationJwtProof.js\";\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright 2026 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* The span attribute keys for the attestation domain.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const AttestationSpanAttributes = {
|
|
8
|
+
/**
|
|
9
|
+
* The id of the attestation the operation is for.
|
|
10
|
+
*/
|
|
11
|
+
Id: "attestation.id"
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=attestationSpanAttributes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attestationSpanAttributes.js","sourceRoot":"","sources":["../../../src/models/attestationSpanAttributes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACxC;;OAEG;IACH,EAAE,EAAE,gBAAgB;CACX,CAAC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The span attribute keys for the attestation domain.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const AttestationSpanAttributes = {\n\t/**\n\t * The id of the attestation the operation is for.\n\t */\n\tId: \"attestation.id\"\n} as const;\n\n/**\n * Union type of all attestation span attribute key string values.\n */\nexport type AttestationSpanAttributes =\n\t(typeof AttestationSpanAttributes)[keyof typeof AttestationSpanAttributes];\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Copyright 2026 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* The span names for the attestation domain.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const AttestationSpanNames = {
|
|
8
|
+
/**
|
|
9
|
+
* Create an attestation.
|
|
10
|
+
*/
|
|
11
|
+
Create: "attestation/create",
|
|
12
|
+
/**
|
|
13
|
+
* Get an attestation.
|
|
14
|
+
*/
|
|
15
|
+
Get: "attestation/get",
|
|
16
|
+
/**
|
|
17
|
+
* Transfer an attestation.
|
|
18
|
+
*/
|
|
19
|
+
Transfer: "attestation/transfer",
|
|
20
|
+
/**
|
|
21
|
+
* Destroy an attestation.
|
|
22
|
+
*/
|
|
23
|
+
Destroy: "attestation/destroy"
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=attestationSpanNames.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attestationSpanNames.js","sourceRoot":"","sources":["../../../src/models/attestationSpanNames.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC;;OAEG;IACH,MAAM,EAAE,oBAAoB;IAE5B;;OAEG;IACH,GAAG,EAAE,iBAAiB;IAEtB;;OAEG;IACH,QAAQ,EAAE,sBAAsB;IAEhC;;OAEG;IACH,OAAO,EAAE,qBAAqB;CACrB,CAAC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The span names for the attestation domain.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const AttestationSpanNames = {\n\t/**\n\t * Create an attestation.\n\t */\n\tCreate: \"attestation/create\",\n\n\t/**\n\t * Get an attestation.\n\t */\n\tGet: \"attestation/get\",\n\n\t/**\n\t * Transfer an attestation.\n\t */\n\tTransfer: \"attestation/transfer\",\n\n\t/**\n\t * Destroy an attestation.\n\t */\n\tDestroy: \"attestation/destroy\"\n} as const;\n\n/**\n * Union type of all attestation span name string values.\n */\nexport type AttestationSpanNames = (typeof AttestationSpanNames)[keyof typeof AttestationSpanNames];\n"]}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export * from "./models/api/IAttestationTransferRequest.js";
|
|
|
8
8
|
export * from "./models/attestationContexts.js";
|
|
9
9
|
export * from "./models/attestationMetricIds.js";
|
|
10
10
|
export * from "./models/attestationMetrics.js";
|
|
11
|
+
export * from "./models/attestationSpanAttributes.js";
|
|
12
|
+
export * from "./models/attestationSpanNames.js";
|
|
11
13
|
export * from "./models/attestationTypes.js";
|
|
12
14
|
export * from "./models/IAttestationComponent.js";
|
|
13
15
|
export * from "./models/IAttestationConnector.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The span attribute keys for the attestation domain.
|
|
3
|
+
*/
|
|
4
|
+
export declare const AttestationSpanAttributes: {
|
|
5
|
+
/**
|
|
6
|
+
* The id of the attestation the operation is for.
|
|
7
|
+
*/
|
|
8
|
+
readonly Id: "attestation.id";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Union type of all attestation span attribute key string values.
|
|
12
|
+
*/
|
|
13
|
+
export type AttestationSpanAttributes = (typeof AttestationSpanAttributes)[keyof typeof AttestationSpanAttributes];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The span names for the attestation domain.
|
|
3
|
+
*/
|
|
4
|
+
export declare const AttestationSpanNames: {
|
|
5
|
+
/**
|
|
6
|
+
* Create an attestation.
|
|
7
|
+
*/
|
|
8
|
+
readonly Create: "attestation/create";
|
|
9
|
+
/**
|
|
10
|
+
* Get an attestation.
|
|
11
|
+
*/
|
|
12
|
+
readonly Get: "attestation/get";
|
|
13
|
+
/**
|
|
14
|
+
* Transfer an attestation.
|
|
15
|
+
*/
|
|
16
|
+
readonly Transfer: "attestation/transfer";
|
|
17
|
+
/**
|
|
18
|
+
* Destroy an attestation.
|
|
19
|
+
*/
|
|
20
|
+
readonly Destroy: "attestation/destroy";
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Union type of all attestation span name string values.
|
|
24
|
+
*/
|
|
25
|
+
export type AttestationSpanNames = (typeof AttestationSpanNames)[keyof typeof AttestationSpanNames];
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.9.2-next.4](https://github.com/iotaledger/twin-attestation/compare/attestation-models-v0.9.2-next.3...attestation-models-v0.9.2-next.4) (2026-08-23)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* tracing ([#72](https://github.com/iotaledger/twin-attestation/issues/72)) ([e3eaad4](https://github.com/iotaledger/twin-attestation/commit/e3eaad437f5c388f915ef95389b28ff34684b019))
|
|
9
|
+
|
|
3
10
|
## [0.9.2-next.3](https://github.com/iotaledger/twin-attestation/compare/attestation-models-v0.9.2-next.2...attestation-models-v0.9.2-next.3) (2026-08-07)
|
|
4
11
|
|
|
5
12
|
|
package/docs/reference/index.md
CHANGED
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
|
|
21
21
|
- [AttestationContexts](type-aliases/AttestationContexts.md)
|
|
22
22
|
- [AttestationMetricIds](type-aliases/AttestationMetricIds.md)
|
|
23
|
+
- [AttestationSpanAttributes](type-aliases/AttestationSpanAttributes.md)
|
|
24
|
+
- [AttestationSpanNames](type-aliases/AttestationSpanNames.md)
|
|
23
25
|
- [AttestationTypes](type-aliases/AttestationTypes.md)
|
|
24
26
|
|
|
25
27
|
## Variables
|
|
@@ -28,4 +30,6 @@
|
|
|
28
30
|
- [AttestationContexts](variables/AttestationContexts.md)
|
|
29
31
|
- [AttestationMetricIds](variables/AttestationMetricIds.md)
|
|
30
32
|
- [AttestationMetrics](variables/AttestationMetrics.md)
|
|
33
|
+
- [AttestationSpanAttributes](variables/AttestationSpanAttributes.md)
|
|
34
|
+
- [AttestationSpanNames](variables/AttestationSpanNames.md)
|
|
31
35
|
- [AttestationTypes](variables/AttestationTypes.md)
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Type Alias: AttestationSpanAttributes
|
|
2
|
+
|
|
3
|
+
> **AttestationSpanAttributes** = *typeof* [`AttestationSpanAttributes`](../variables/AttestationSpanAttributes.md)\[keyof *typeof* [`AttestationSpanAttributes`](../variables/AttestationSpanAttributes.md)\]
|
|
4
|
+
|
|
5
|
+
Union type of all attestation span attribute key string values.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Type Alias: AttestationSpanNames
|
|
2
|
+
|
|
3
|
+
> **AttestationSpanNames** = *typeof* [`AttestationSpanNames`](../variables/AttestationSpanNames.md)\[keyof *typeof* [`AttestationSpanNames`](../variables/AttestationSpanNames.md)\]
|
|
4
|
+
|
|
5
|
+
Union type of all attestation span name string values.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Variable: AttestationSpanAttributes
|
|
2
|
+
|
|
3
|
+
> `const` **AttestationSpanAttributes**: `object`
|
|
4
|
+
|
|
5
|
+
The span attribute keys for the attestation domain.
|
|
6
|
+
|
|
7
|
+
## Type Declaration
|
|
8
|
+
|
|
9
|
+
### Id {#id}
|
|
10
|
+
|
|
11
|
+
> `readonly` **Id**: `"attestation.id"` = `"attestation.id"`
|
|
12
|
+
|
|
13
|
+
The id of the attestation the operation is for.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Variable: AttestationSpanNames
|
|
2
|
+
|
|
3
|
+
> `const` **AttestationSpanNames**: `object`
|
|
4
|
+
|
|
5
|
+
The span names for the attestation domain.
|
|
6
|
+
|
|
7
|
+
## Type Declaration
|
|
8
|
+
|
|
9
|
+
### Create {#create}
|
|
10
|
+
|
|
11
|
+
> `readonly` **Create**: `"attestation/create"` = `"attestation/create"`
|
|
12
|
+
|
|
13
|
+
Create an attestation.
|
|
14
|
+
|
|
15
|
+
### Get {#get}
|
|
16
|
+
|
|
17
|
+
> `readonly` **Get**: `"attestation/get"` = `"attestation/get"`
|
|
18
|
+
|
|
19
|
+
Get an attestation.
|
|
20
|
+
|
|
21
|
+
### Transfer {#transfer}
|
|
22
|
+
|
|
23
|
+
> `readonly` **Transfer**: `"attestation/transfer"` = `"attestation/transfer"`
|
|
24
|
+
|
|
25
|
+
Transfer an attestation.
|
|
26
|
+
|
|
27
|
+
### Destroy {#destroy}
|
|
28
|
+
|
|
29
|
+
> `readonly` **Destroy**: `"attestation/destroy"` = `"attestation/destroy"`
|
|
30
|
+
|
|
31
|
+
Destroy an attestation.
|