@truvity/sdk 0.28.1 → 0.28.3
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/README.md +13 -79
- package/api/resources/apiKeys/client/Client.d.ts +7 -7
- package/api/resources/apiKeys/client/Client.js +15 -15
- package/api/resources/apiKeys/client/Client.js.map +1 -1
- package/api/resources/credentials/client/Client.d.ts +3 -3
- package/api/resources/credentials/client/Client.js +13 -13
- package/api/resources/credentials/client/Client.js.map +1 -1
- package/api/resources/desk/client/Client.js +2 -2
- package/api/resources/desk/client/Client.js.map +1 -1
- package/api/resources/didcommMessages/client/Client.d.ts +7 -7
- package/api/resources/didcommMessages/client/Client.js +14 -14
- package/api/resources/didcommMessages/client/Client.js.map +1 -1
- package/api/resources/dids/client/Client.js +1 -1
- package/api/resources/dids/client/Client.js.map +1 -1
- package/api/resources/drafts/client/Client.d.ts +3 -3
- package/api/resources/drafts/client/Client.js +13 -13
- package/api/resources/drafts/client/Client.js.map +1 -1
- package/api/resources/drafts/client/requests/DraftExport.d.ts +2 -2
- package/api/resources/drafts/client/requests/DraftExport.d.ts.map +1 -1
- package/api/resources/drafts/client/requests/DraftExport.js.map +1 -1
- package/api/resources/drafts/client/requests/DraftIssue.d.ts +5 -4
- package/api/resources/drafts/client/requests/DraftIssue.d.ts.map +1 -1
- package/api/resources/drafts/client/requests/DraftIssue.js.map +1 -1
- package/api/resources/drafts/index.d.ts +1 -0
- package/api/resources/drafts/index.d.ts.map +1 -1
- package/api/resources/drafts/index.js +1 -0
- package/api/resources/drafts/index.js.map +1 -1
- package/api/resources/drafts/types/DraftIssueDidMethod.d.ts +12 -0
- package/api/resources/drafts/types/DraftIssueDidMethod.d.ts.map +1 -0
- package/api/resources/drafts/types/DraftIssueDidMethod.js +11 -0
- package/api/resources/drafts/types/DraftIssueDidMethod.js.map +1 -0
- package/api/resources/drafts/types/index.d.ts +2 -0
- package/api/resources/drafts/types/index.d.ts.map +1 -0
- package/api/resources/drafts/types/index.js +18 -0
- package/api/resources/drafts/types/index.js.map +1 -0
- package/api/resources/files/client/Client.d.ts +1 -1
- package/api/resources/files/client/Client.js +11 -11
- package/api/resources/files/client/Client.js.map +1 -1
- package/api/resources/gdpr/client/Client.js +1 -1
- package/api/resources/gdpr/client/Client.js.map +1 -1
- package/api/resources/index.d.ts +6 -3
- package/api/resources/index.d.ts.map +1 -1
- package/api/resources/index.js +7 -4
- package/api/resources/index.js.map +1 -1
- package/api/resources/keys/client/Client.d.ts +4 -4
- package/api/resources/keys/client/Client.js +16 -16
- package/api/resources/keys/client/Client.js.map +1 -1
- package/api/resources/keys/client/requests/CredentialSignRequest.d.ts +3 -2
- package/api/resources/keys/client/requests/CredentialSignRequest.d.ts.map +1 -1
- package/api/resources/keys/client/requests/CredentialSignRequest.js.map +1 -1
- package/api/resources/keys/client/requests/DidCommMessageSignRequest.d.ts +3 -2
- package/api/resources/keys/client/requests/DidCommMessageSignRequest.d.ts.map +1 -1
- package/api/resources/keys/client/requests/DidCommMessageSignRequest.js.map +1 -1
- package/api/resources/keys/client/requests/PresentationSignRequest.d.ts +3 -2
- package/api/resources/keys/client/requests/PresentationSignRequest.d.ts.map +1 -1
- package/api/resources/keys/client/requests/PresentationSignRequest.js.map +1 -1
- package/api/resources/keys/index.d.ts +1 -0
- package/api/resources/keys/index.d.ts.map +1 -1
- package/api/resources/keys/index.js +1 -0
- package/api/resources/keys/index.js.map +1 -1
- package/api/resources/keys/types/CredentialSignRequestDidMethod.d.ts +12 -0
- package/api/resources/keys/types/CredentialSignRequestDidMethod.d.ts.map +1 -0
- package/api/resources/keys/types/CredentialSignRequestDidMethod.js +11 -0
- package/api/resources/keys/types/CredentialSignRequestDidMethod.js.map +1 -0
- package/api/resources/keys/types/DidCommMessageSignRequestDidMethod.d.ts +12 -0
- package/api/resources/keys/types/DidCommMessageSignRequestDidMethod.d.ts.map +1 -0
- package/api/resources/keys/types/DidCommMessageSignRequestDidMethod.js +11 -0
- package/api/resources/keys/types/DidCommMessageSignRequestDidMethod.js.map +1 -0
- package/api/resources/keys/types/PresentationSignRequestDidMethod.d.ts +12 -0
- package/api/resources/keys/types/PresentationSignRequestDidMethod.d.ts.map +1 -0
- package/api/resources/keys/types/PresentationSignRequestDidMethod.js +11 -0
- package/api/resources/keys/types/PresentationSignRequestDidMethod.js.map +1 -0
- package/api/resources/keys/types/index.d.ts +4 -0
- package/api/resources/keys/types/index.d.ts.map +1 -0
- package/api/resources/keys/types/index.js +20 -0
- package/api/resources/keys/types/index.js.map +1 -0
- package/api/resources/presentations/client/Client.d.ts +6 -6
- package/api/resources/presentations/client/Client.js +18 -18
- package/api/resources/presentations/client/Client.js.map +1 -1
- package/api/resources/presentations/client/requests/PresentationIssue.d.ts +2 -1
- package/api/resources/presentations/client/requests/PresentationIssue.d.ts.map +1 -1
- package/api/resources/presentations/client/requests/PresentationIssue.js.map +1 -1
- package/api/resources/presentations/index.d.ts +1 -0
- package/api/resources/presentations/index.d.ts.map +1 -1
- package/api/resources/presentations/index.js +1 -0
- package/api/resources/presentations/index.js.map +1 -1
- package/api/resources/presentations/types/PresentationIssueDidMethod.d.ts +12 -0
- package/api/resources/presentations/types/PresentationIssueDidMethod.d.ts.map +1 -0
- package/api/resources/presentations/types/PresentationIssueDidMethod.js +11 -0
- package/api/resources/presentations/types/PresentationIssueDidMethod.js.map +1 -0
- package/api/resources/presentations/types/index.d.ts +2 -0
- package/api/resources/presentations/types/index.d.ts.map +1 -0
- package/api/resources/presentations/types/index.js +18 -0
- package/api/resources/presentations/types/index.js.map +1 -0
- package/api/types/Credential.d.ts +2 -2
- package/api/types/Credential.d.ts.map +1 -1
- package/api/types/Credential.js.map +1 -1
- package/api/types/Credential11.d.ts +1 -1
- package/api/types/Credential11.d.ts.map +1 -1
- package/api/types/Credential11.js.map +1 -1
- package/api/types/Draft.d.ts +5 -1
- package/api/types/Draft.d.ts.map +1 -1
- package/api/types/Draft.js.map +1 -1
- package/api/types/DraftCreate.d.ts +3 -0
- package/api/types/DraftCreate.d.ts.map +1 -1
- package/api/types/DraftCreate.js.map +1 -1
- package/api/types/DraftFieldBooleanValue.d.ts +1 -1
- package/api/types/DraftFieldBooleanValue.d.ts.map +1 -1
- package/api/types/DraftFieldBooleanValue.js.map +1 -1
- package/api/types/DraftFieldDateTimeValue.d.ts +1 -1
- package/api/types/DraftFieldDateTimeValue.d.ts.map +1 -1
- package/api/types/DraftFieldDateTimeValue.js.map +1 -1
- package/api/types/DraftFieldDateValue.d.ts +1 -1
- package/api/types/DraftFieldDateValue.d.ts.map +1 -1
- package/api/types/DraftFieldDateValue.js.map +1 -1
- package/api/types/DraftFieldFileValue.d.ts +1 -1
- package/api/types/DraftFieldFileValue.d.ts.map +1 -1
- package/api/types/DraftFieldFileValue.js.map +1 -1
- package/api/types/DraftFieldLinkValue.d.ts +1 -1
- package/api/types/DraftFieldLinkValue.d.ts.map +1 -1
- package/api/types/DraftFieldLinkValue.js.map +1 -1
- package/api/types/DraftFieldNumberValue.d.ts +1 -1
- package/api/types/DraftFieldNumberValue.d.ts.map +1 -1
- package/api/types/DraftFieldNumberValue.js.map +1 -1
- package/api/types/DraftFieldStringValue.d.ts +1 -1
- package/api/types/DraftFieldStringValue.d.ts.map +1 -1
- package/api/types/DraftFieldStringValue.js.map +1 -1
- package/api/types/DraftFieldStructValue.d.ts +2 -1
- package/api/types/DraftFieldStructValue.d.ts.map +1 -1
- package/api/types/DraftFieldStructValue.js.map +1 -1
- package/api/types/DraftFieldStructValueFieldsItem.d.ts +1 -1
- package/api/types/DraftFieldStructValueFieldsItem.js.map +1 -1
- package/api/types/DraftMeta.d.ts +3 -3
- package/api/types/DraftMeta.d.ts.map +1 -1
- package/api/types/DraftMeta.js.map +1 -1
- package/api/types/DraftSchema.d.ts +1 -0
- package/api/types/DraftSchema.d.ts.map +1 -1
- package/api/types/DraftSchema.js.map +1 -1
- package/api/types/DraftSchemaFieldsItem.d.ts +1 -1
- package/api/types/DraftSchemaFieldsItem.js.map +1 -1
- package/api/types/EqualKeyType.d.ts +2 -1
- package/api/types/EqualKeyType.d.ts.map +1 -1
- package/api/types/EqualKeyType.js.map +1 -1
- package/api/types/EqualKeyTypeValue.d.ts +14 -0
- package/api/types/EqualKeyTypeValue.d.ts.map +1 -0
- package/api/types/EqualKeyTypeValue.js +13 -0
- package/api/types/EqualKeyTypeValue.js.map +1 -0
- package/api/types/InKeyType.d.ts +2 -1
- package/api/types/InKeyType.d.ts.map +1 -1
- package/api/types/InKeyType.js.map +1 -1
- package/api/types/InKeyTypeValuesItem.d.ts +33 -0
- package/api/types/InKeyTypeValuesItem.d.ts.map +1 -0
- package/api/types/InKeyTypeValuesItem.js +13 -0
- package/api/types/InKeyTypeValuesItem.js.map +1 -0
- package/api/types/KeyGenerate.d.ts +3 -2
- package/api/types/KeyGenerate.d.ts.map +1 -1
- package/api/types/KeyGenerate.js.map +1 -1
- package/api/types/KeyGenerateType.d.ts +33 -0
- package/api/types/KeyGenerateType.d.ts.map +1 -0
- package/api/types/KeyGenerateType.js +13 -0
- package/api/types/KeyGenerateType.js.map +1 -0
- package/api/types/KeyPublic.d.ts +2 -1
- package/api/types/KeyPublic.d.ts.map +1 -1
- package/api/types/KeyPublic.js.map +1 -1
- package/api/types/KeyPublicType.d.ts +33 -0
- package/api/types/KeyPublicType.d.ts.map +1 -0
- package/api/types/KeyPublicType.js +13 -0
- package/api/types/KeyPublicType.js.map +1 -0
- package/api/types/NotEqualKeyType.d.ts +2 -1
- package/api/types/NotEqualKeyType.d.ts.map +1 -1
- package/api/types/NotEqualKeyType.js.map +1 -1
- package/api/types/NotEqualKeyTypeValue.d.ts +14 -0
- package/api/types/NotEqualKeyTypeValue.d.ts.map +1 -0
- package/api/types/NotEqualKeyTypeValue.js +13 -0
- package/api/types/NotEqualKeyTypeValue.js.map +1 -0
- package/api/types/NotInKeyType.d.ts +2 -1
- package/api/types/NotInKeyType.d.ts.map +1 -1
- package/api/types/NotInKeyType.js.map +1 -1
- package/api/types/NotInKeyTypeValuesItem.d.ts +33 -0
- package/api/types/NotInKeyTypeValuesItem.d.ts.map +1 -0
- package/api/types/NotInKeyTypeValuesItem.js +13 -0
- package/api/types/NotInKeyTypeValuesItem.js.map +1 -0
- package/api/types/index.d.ts +6 -0
- package/api/types/index.d.ts.map +1 -1
- package/api/types/index.js +6 -0
- package/api/types/index.js.map +1 -1
- package/package.json +4 -22
- package/reference.md +34 -34
- package/serialization/resources/drafts/client/requests/DraftIssue.d.ts +2 -1
- package/serialization/resources/drafts/client/requests/DraftIssue.d.ts.map +1 -1
- package/serialization/resources/drafts/client/requests/DraftIssue.js +2 -1
- package/serialization/resources/drafts/client/requests/DraftIssue.js.map +1 -1
- package/serialization/resources/drafts/index.d.ts +1 -0
- package/serialization/resources/drafts/index.d.ts.map +1 -1
- package/serialization/resources/drafts/index.js +1 -0
- package/serialization/resources/drafts/index.js.map +1 -1
- package/serialization/resources/drafts/types/DraftIssueDidMethod.d.ts +11 -0
- package/serialization/resources/drafts/types/DraftIssueDidMethod.d.ts.map +1 -0
- package/serialization/resources/drafts/types/DraftIssueDidMethod.js +32 -0
- package/serialization/resources/drafts/types/DraftIssueDidMethod.js.map +1 -0
- package/serialization/resources/drafts/types/index.d.ts +2 -0
- package/serialization/resources/drafts/types/index.d.ts.map +1 -0
- package/serialization/resources/drafts/types/index.js +18 -0
- package/serialization/resources/drafts/types/index.js.map +1 -0
- package/serialization/resources/index.d.ts +6 -3
- package/serialization/resources/index.d.ts.map +1 -1
- package/serialization/resources/index.js +7 -4
- package/serialization/resources/index.js.map +1 -1
- package/serialization/resources/keys/index.d.ts +1 -0
- package/serialization/resources/keys/index.d.ts.map +1 -1
- package/serialization/resources/keys/index.js +1 -0
- package/serialization/resources/keys/index.js.map +1 -1
- package/serialization/resources/keys/types/CredentialSignRequestDidMethod.d.ts +11 -0
- package/serialization/resources/keys/types/CredentialSignRequestDidMethod.d.ts.map +1 -0
- package/serialization/resources/keys/types/CredentialSignRequestDidMethod.js +32 -0
- package/serialization/resources/keys/types/CredentialSignRequestDidMethod.js.map +1 -0
- package/serialization/resources/keys/types/DidCommMessageSignRequestDidMethod.d.ts +11 -0
- package/serialization/resources/keys/types/DidCommMessageSignRequestDidMethod.d.ts.map +1 -0
- package/serialization/resources/keys/types/DidCommMessageSignRequestDidMethod.js +32 -0
- package/serialization/resources/keys/types/DidCommMessageSignRequestDidMethod.js.map +1 -0
- package/serialization/resources/keys/types/PresentationSignRequestDidMethod.d.ts +11 -0
- package/serialization/resources/keys/types/PresentationSignRequestDidMethod.d.ts.map +1 -0
- package/serialization/resources/keys/types/PresentationSignRequestDidMethod.js +32 -0
- package/serialization/resources/keys/types/PresentationSignRequestDidMethod.js.map +1 -0
- package/serialization/resources/keys/types/index.d.ts +4 -0
- package/serialization/resources/keys/types/index.d.ts.map +1 -0
- package/serialization/resources/keys/types/index.js +20 -0
- package/serialization/resources/keys/types/index.js.map +1 -0
- package/serialization/resources/presentations/client/requests/PresentationIssue.d.ts +2 -1
- package/serialization/resources/presentations/client/requests/PresentationIssue.d.ts.map +1 -1
- package/serialization/resources/presentations/client/requests/PresentationIssue.js +2 -1
- package/serialization/resources/presentations/client/requests/PresentationIssue.js.map +1 -1
- package/serialization/resources/presentations/index.d.ts +1 -0
- package/serialization/resources/presentations/index.d.ts.map +1 -1
- package/serialization/resources/presentations/index.js +1 -0
- package/serialization/resources/presentations/index.js.map +1 -1
- package/serialization/resources/presentations/types/PresentationIssueDidMethod.d.ts +11 -0
- package/serialization/resources/presentations/types/PresentationIssueDidMethod.d.ts.map +1 -0
- package/serialization/resources/presentations/types/PresentationIssueDidMethod.js +32 -0
- package/serialization/resources/presentations/types/PresentationIssueDidMethod.js.map +1 -0
- package/serialization/resources/presentations/types/index.d.ts +2 -0
- package/serialization/resources/presentations/types/index.d.ts.map +1 -0
- package/serialization/resources/presentations/types/index.js +18 -0
- package/serialization/resources/presentations/types/index.js.map +1 -0
- package/serialization/types/EqualKeyType.d.ts +2 -1
- package/serialization/types/EqualKeyType.d.ts.map +1 -1
- package/serialization/types/EqualKeyType.js +2 -1
- package/serialization/types/EqualKeyType.js.map +1 -1
- package/serialization/types/EqualKeyTypeValue.d.ts +11 -0
- package/serialization/types/EqualKeyTypeValue.d.ts.map +1 -0
- package/serialization/types/EqualKeyTypeValue.js +32 -0
- package/serialization/types/EqualKeyTypeValue.js.map +1 -0
- package/serialization/types/InKeyType.d.ts +2 -1
- package/serialization/types/InKeyType.d.ts.map +1 -1
- package/serialization/types/InKeyType.js +2 -1
- package/serialization/types/InKeyType.js.map +1 -1
- package/serialization/types/InKeyTypeValuesItem.d.ts +11 -0
- package/serialization/types/InKeyTypeValuesItem.d.ts.map +1 -0
- package/serialization/types/InKeyTypeValuesItem.js +32 -0
- package/serialization/types/InKeyTypeValuesItem.js.map +1 -0
- package/serialization/types/KeyGenerate.d.ts +2 -1
- package/serialization/types/KeyGenerate.d.ts.map +1 -1
- package/serialization/types/KeyGenerate.js +2 -1
- package/serialization/types/KeyGenerate.js.map +1 -1
- package/serialization/types/KeyGenerateType.d.ts +11 -0
- package/serialization/types/KeyGenerateType.d.ts.map +1 -0
- package/serialization/types/KeyGenerateType.js +32 -0
- package/serialization/types/KeyGenerateType.js.map +1 -0
- package/serialization/types/KeyPublic.d.ts +2 -1
- package/serialization/types/KeyPublic.d.ts.map +1 -1
- package/serialization/types/KeyPublic.js +2 -1
- package/serialization/types/KeyPublic.js.map +1 -1
- package/serialization/types/KeyPublicType.d.ts +11 -0
- package/serialization/types/KeyPublicType.d.ts.map +1 -0
- package/serialization/types/KeyPublicType.js +32 -0
- package/serialization/types/KeyPublicType.js.map +1 -0
- package/serialization/types/NotEqualKeyType.d.ts +2 -1
- package/serialization/types/NotEqualKeyType.d.ts.map +1 -1
- package/serialization/types/NotEqualKeyType.js +2 -1
- package/serialization/types/NotEqualKeyType.js.map +1 -1
- package/serialization/types/NotEqualKeyTypeValue.d.ts +11 -0
- package/serialization/types/NotEqualKeyTypeValue.d.ts.map +1 -0
- package/serialization/types/NotEqualKeyTypeValue.js +32 -0
- package/serialization/types/NotEqualKeyTypeValue.js.map +1 -0
- package/serialization/types/NotInKeyType.d.ts +2 -1
- package/serialization/types/NotInKeyType.d.ts.map +1 -1
- package/serialization/types/NotInKeyType.js +2 -1
- package/serialization/types/NotInKeyType.js.map +1 -1
- package/serialization/types/NotInKeyTypeValuesItem.d.ts +11 -0
- package/serialization/types/NotInKeyTypeValuesItem.d.ts.map +1 -0
- package/serialization/types/NotInKeyTypeValuesItem.js +32 -0
- package/serialization/types/NotInKeyTypeValuesItem.js.map +1 -0
- package/serialization/types/index.d.ts +6 -0
- package/serialization/types/index.d.ts.map +1 -1
- package/serialization/types/index.js +6 -0
- package/serialization/types/index.js.map +1 -1
- package/devbox.lock +0 -118
- package/jest.config.ts +0 -38
- package/yarn.lock.checksum +0 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Truvity from '../../../../index';
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {
|
|
7
|
-
* didMethod:
|
|
8
|
+
* didMethod: Truvity.CredentialSignRequestDidMethod.Key,
|
|
8
9
|
* body: "string"
|
|
9
10
|
* }
|
|
10
11
|
*/
|
|
@@ -12,7 +13,7 @@ export interface CredentialSignRequest {
|
|
|
12
13
|
/**
|
|
13
14
|
* All supported DID methods. Default is "web".
|
|
14
15
|
*/
|
|
15
|
-
didMethod?:
|
|
16
|
+
didMethod?: Truvity.CredentialSignRequestDidMethod;
|
|
16
17
|
/**
|
|
17
18
|
* The unsigned credential to sign.
|
|
18
19
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialSignRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/keys/client/requests/CredentialSignRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,SAAS,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"CredentialSignRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/keys/client/requests/CredentialSignRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAE7C;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,8BAA8B,CAAC;IACnD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialSignRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/keys/client/requests/CredentialSignRequest.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * @example\n * {\n * didMethod:
|
|
1
|
+
{"version":3,"file":"CredentialSignRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/keys/client/requests/CredentialSignRequest.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\nimport * as Truvity from '../../../../index';\n\n/**\n * @example\n * {\n * didMethod: Truvity.CredentialSignRequestDidMethod.Key,\n * body: \"string\"\n * }\n */\nexport interface CredentialSignRequest {\n /**\n * All supported DID methods. Default is \"web\".\n */\n didMethod?: Truvity.CredentialSignRequestDidMethod;\n /**\n * The unsigned credential to sign.\n */\n body: string;\n}\n"]}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Truvity from '../../../../index';
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {
|
|
7
|
-
* didMethod:
|
|
8
|
+
* didMethod: Truvity.DidCommMessageSignRequestDidMethod.Key,
|
|
8
9
|
* body: "string"
|
|
9
10
|
* }
|
|
10
11
|
*/
|
|
@@ -12,7 +13,7 @@ export interface DidCommMessageSignRequest {
|
|
|
12
13
|
/**
|
|
13
14
|
* All supported DID methods. Default is "web".
|
|
14
15
|
*/
|
|
15
|
-
didMethod?:
|
|
16
|
+
didMethod?: Truvity.DidCommMessageSignRequestDidMethod;
|
|
16
17
|
/**
|
|
17
18
|
* The DIDCOMMMessage to sign.
|
|
18
19
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommMessageSignRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/keys/client/requests/DidCommMessageSignRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;GAMG;AACH,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,SAAS,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"DidCommMessageSignRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/keys/client/requests/DidCommMessageSignRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAE7C;;;;;;GAMG;AACH,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,kCAAkC,CAAC;IACvD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommMessageSignRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/keys/client/requests/DidCommMessageSignRequest.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * @example\n * {\n * didMethod:
|
|
1
|
+
{"version":3,"file":"DidCommMessageSignRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/keys/client/requests/DidCommMessageSignRequest.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\nimport * as Truvity from '../../../../index';\n\n/**\n * @example\n * {\n * didMethod: Truvity.DidCommMessageSignRequestDidMethod.Key,\n * body: \"string\"\n * }\n */\nexport interface DidCommMessageSignRequest {\n /**\n * All supported DID methods. Default is \"web\".\n */\n didMethod?: Truvity.DidCommMessageSignRequestDidMethod;\n /**\n * The DIDCOMMMessage to sign.\n */\n body: string;\n}\n"]}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Truvity from '../../../../index';
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {
|
|
7
|
-
* didMethod:
|
|
8
|
+
* didMethod: Truvity.PresentationSignRequestDidMethod.Key,
|
|
8
9
|
* body: "string"
|
|
9
10
|
* }
|
|
10
11
|
*/
|
|
@@ -12,7 +13,7 @@ export interface PresentationSignRequest {
|
|
|
12
13
|
/**
|
|
13
14
|
* All supported DID methods. Default is "web".
|
|
14
15
|
*/
|
|
15
|
-
didMethod?:
|
|
16
|
+
didMethod?: Truvity.PresentationSignRequestDidMethod;
|
|
16
17
|
/**
|
|
17
18
|
* The unsigned presentation to sign.
|
|
18
19
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PresentationSignRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/keys/client/requests/PresentationSignRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;GAMG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,SAAS,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"PresentationSignRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/keys/client/requests/PresentationSignRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAE7C;;;;;;GAMG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,gCAAgC,CAAC;IACrD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PresentationSignRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/keys/client/requests/PresentationSignRequest.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * @example\n * {\n * didMethod:
|
|
1
|
+
{"version":3,"file":"PresentationSignRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/keys/client/requests/PresentationSignRequest.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\nimport * as Truvity from '../../../../index';\n\n/**\n * @example\n * {\n * didMethod: Truvity.PresentationSignRequestDidMethod.Key,\n * body: \"string\"\n * }\n */\nexport interface PresentationSignRequest {\n /**\n * All supported DID methods. Default is \"web\".\n */\n didMethod?: Truvity.PresentationSignRequestDidMethod;\n /**\n * The unsigned presentation to sign.\n */\n body: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/resources/keys/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/resources/keys/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
|
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
17
18
|
__exportStar(require("./client"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/resources/keys/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB","sourcesContent":["export * from './client';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/resources/keys/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB","sourcesContent":["export * from './types';\nexport * from './client';\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* All supported DID methods. Default is "web".
|
|
6
|
+
*/
|
|
7
|
+
export declare type CredentialSignRequestDidMethod = 'key' | 'web';
|
|
8
|
+
export declare const CredentialSignRequestDidMethod: {
|
|
9
|
+
readonly Key: "key";
|
|
10
|
+
readonly Web: "web";
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=CredentialSignRequestDidMethod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialSignRequestDidMethod.d.ts","sourceRoot":"","sources":["../../../../../src/api/resources/keys/types/CredentialSignRequestDidMethod.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,oBAAY,8BAA8B,GAAG,KAAK,GAAG,KAAK,CAAC;AAE3D,eAAO,MAAM,8BAA8B;;;CAGjC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.CredentialSignRequestDidMethod = void 0;
|
|
7
|
+
exports.CredentialSignRequestDidMethod = {
|
|
8
|
+
Key: 'key',
|
|
9
|
+
Web: 'web',
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=CredentialSignRequestDidMethod.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialSignRequestDidMethod.js","sourceRoot":"","sources":["../../../../../src/api/resources/keys/types/CredentialSignRequestDidMethod.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAOU,QAAA,8BAA8B,GAAG;IAC1C,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACJ,CAAC","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * All supported DID methods. Default is \"web\".\n */\nexport type CredentialSignRequestDidMethod = 'key' | 'web';\n\nexport const CredentialSignRequestDidMethod = {\n Key: 'key',\n Web: 'web',\n} as const;\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* All supported DID methods. Default is "web".
|
|
6
|
+
*/
|
|
7
|
+
export declare type DidCommMessageSignRequestDidMethod = 'key' | 'web';
|
|
8
|
+
export declare const DidCommMessageSignRequestDidMethod: {
|
|
9
|
+
readonly Key: "key";
|
|
10
|
+
readonly Web: "web";
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=DidCommMessageSignRequestDidMethod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DidCommMessageSignRequestDidMethod.d.ts","sourceRoot":"","sources":["../../../../../src/api/resources/keys/types/DidCommMessageSignRequestDidMethod.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,oBAAY,kCAAkC,GAAG,KAAK,GAAG,KAAK,CAAC;AAE/D,eAAO,MAAM,kCAAkC;;;CAGrC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.DidCommMessageSignRequestDidMethod = void 0;
|
|
7
|
+
exports.DidCommMessageSignRequestDidMethod = {
|
|
8
|
+
Key: 'key',
|
|
9
|
+
Web: 'web',
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=DidCommMessageSignRequestDidMethod.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DidCommMessageSignRequestDidMethod.js","sourceRoot":"","sources":["../../../../../src/api/resources/keys/types/DidCommMessageSignRequestDidMethod.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAOU,QAAA,kCAAkC,GAAG;IAC9C,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACJ,CAAC","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * All supported DID methods. Default is \"web\".\n */\nexport type DidCommMessageSignRequestDidMethod = 'key' | 'web';\n\nexport const DidCommMessageSignRequestDidMethod = {\n Key: 'key',\n Web: 'web',\n} as const;\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* All supported DID methods. Default is "web".
|
|
6
|
+
*/
|
|
7
|
+
export declare type PresentationSignRequestDidMethod = 'key' | 'web';
|
|
8
|
+
export declare const PresentationSignRequestDidMethod: {
|
|
9
|
+
readonly Key: "key";
|
|
10
|
+
readonly Web: "web";
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=PresentationSignRequestDidMethod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PresentationSignRequestDidMethod.d.ts","sourceRoot":"","sources":["../../../../../src/api/resources/keys/types/PresentationSignRequestDidMethod.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,oBAAY,gCAAgC,GAAG,KAAK,GAAG,KAAK,CAAC;AAE7D,eAAO,MAAM,gCAAgC;;;CAGnC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.PresentationSignRequestDidMethod = void 0;
|
|
7
|
+
exports.PresentationSignRequestDidMethod = {
|
|
8
|
+
Key: 'key',
|
|
9
|
+
Web: 'web',
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=PresentationSignRequestDidMethod.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PresentationSignRequestDidMethod.js","sourceRoot":"","sources":["../../../../../src/api/resources/keys/types/PresentationSignRequestDidMethod.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAOU,QAAA,gCAAgC,GAAG;IAC5C,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACJ,CAAC","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * All supported DID methods. Default is \"web\".\n */\nexport type PresentationSignRequestDidMethod = 'key' | 'web';\n\nexport const PresentationSignRequestDidMethod = {\n Key: 'key',\n Web: 'web',\n} as const;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/resources/keys/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./CredentialSignRequestDidMethod"), exports);
|
|
18
|
+
__exportStar(require("./DidCommMessageSignRequestDidMethod"), exports);
|
|
19
|
+
__exportStar(require("./PresentationSignRequestDidMethod"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/resources/keys/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AACjD,uEAAqD;AACrD,qEAAmD","sourcesContent":["export * from './CredentialSignRequestDidMethod';\nexport * from './DidCommMessageSignRequestDidMethod';\nexport * from './PresentationSignRequestDidMethod';\n"]}
|
|
@@ -37,7 +37,7 @@ export declare class Presentations {
|
|
|
37
37
|
*/
|
|
38
38
|
presentationExport(request: Truvity.PresentationExport, requestOptions?: Presentations.RequestOptions): Promise<stream.Readable>;
|
|
39
39
|
/**
|
|
40
|
-
* Import a
|
|
40
|
+
* Import a Verifiable Presentation.
|
|
41
41
|
*
|
|
42
42
|
* @param {Truvity.PresentationInput} request
|
|
43
43
|
* @param {Presentations.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -59,9 +59,9 @@ export declare class Presentations {
|
|
|
59
59
|
/**
|
|
60
60
|
* It's a handy call that wraps the following:
|
|
61
61
|
*
|
|
62
|
-
* 1. [Exporting](#tag/presentations/operation/PresentationExport) an unsigned JSON-LD representation of a
|
|
63
|
-
* 2. [Signing](#tag/keys/operation/PresentationSign) the created unsigned
|
|
64
|
-
* 3. [Importing](#tag/presentations/operation/PresentationImport) the signed
|
|
62
|
+
* 1. [Exporting](#tag/presentations/operation/PresentationExport) an unsigned JSON-LD representation of a Verifiable Presentation.
|
|
63
|
+
* 2. [Signing](#tag/keys/operation/PresentationSign) the created unsigned Presentation.
|
|
64
|
+
* 3. [Importing](#tag/presentations/operation/PresentationImport) the signed Presentation.
|
|
65
65
|
*
|
|
66
66
|
* @param {Truvity.PresentationIssue} request
|
|
67
67
|
* @param {Presentations.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -80,7 +80,7 @@ export declare class Presentations {
|
|
|
80
80
|
*/
|
|
81
81
|
presentationIssue(request: Truvity.PresentationIssue, requestOptions?: Presentations.RequestOptions): Promise<Truvity.ResourcePresentation>;
|
|
82
82
|
/**
|
|
83
|
-
* Search for
|
|
83
|
+
* Search for Presentations with extended filters capabilities.
|
|
84
84
|
*
|
|
85
85
|
* @param {Truvity.PresentationSearchRequest} request
|
|
86
86
|
* @param {Presentations.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -222,7 +222,7 @@ export declare class Presentations {
|
|
|
222
222
|
*/
|
|
223
223
|
presentationDownload(id: string, revision: number, request?: Truvity.PresentationDownloadRequest, requestOptions?: Presentations.RequestOptions): Promise<stream.Readable>;
|
|
224
224
|
/**
|
|
225
|
-
* Verify a
|
|
225
|
+
* Verify a Verifiable Presentation.
|
|
226
226
|
*
|
|
227
227
|
* @param {string} id - The ID of the resource.
|
|
228
228
|
* @param {Presentations.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -77,7 +77,7 @@ class Presentations {
|
|
|
77
77
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
78
78
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'presentations/export'),
|
|
79
79
|
method: 'POST',
|
|
80
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '
|
|
80
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
81
81
|
contentType: 'application/json',
|
|
82
82
|
requestType: 'json',
|
|
83
83
|
body: Object.assign(Object.assign({}, serializers.PresentationExport.jsonOrThrow(request, {
|
|
@@ -152,7 +152,7 @@ class Presentations {
|
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
154
|
/**
|
|
155
|
-
* Import a
|
|
155
|
+
* Import a Verifiable Presentation.
|
|
156
156
|
*
|
|
157
157
|
* @param {Truvity.PresentationInput} request
|
|
158
158
|
* @param {Presentations.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -179,7 +179,7 @@ class Presentations {
|
|
|
179
179
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
180
180
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'presentations/import'),
|
|
181
181
|
method: 'POST',
|
|
182
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '
|
|
182
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
|
183
183
|
contentType: 'application/json',
|
|
184
184
|
queryParameters: _queryParams,
|
|
185
185
|
requestType: 'json',
|
|
@@ -275,9 +275,9 @@ class Presentations {
|
|
|
275
275
|
/**
|
|
276
276
|
* It's a handy call that wraps the following:
|
|
277
277
|
*
|
|
278
|
-
* 1. [Exporting](#tag/presentations/operation/PresentationExport) an unsigned JSON-LD representation of a
|
|
279
|
-
* 2. [Signing](#tag/keys/operation/PresentationSign) the created unsigned
|
|
280
|
-
* 3. [Importing](#tag/presentations/operation/PresentationImport) the signed
|
|
278
|
+
* 1. [Exporting](#tag/presentations/operation/PresentationExport) an unsigned JSON-LD representation of a Verifiable Presentation.
|
|
279
|
+
* 2. [Signing](#tag/keys/operation/PresentationSign) the created unsigned Presentation.
|
|
280
|
+
* 3. [Importing](#tag/presentations/operation/PresentationImport) the signed Presentation.
|
|
281
281
|
*
|
|
282
282
|
* @param {Truvity.PresentationIssue} request
|
|
283
283
|
* @param {Presentations.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -300,7 +300,7 @@ class Presentations {
|
|
|
300
300
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
301
301
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'presentations/issue'),
|
|
302
302
|
method: 'POST',
|
|
303
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '
|
|
303
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
304
304
|
contentType: 'application/json',
|
|
305
305
|
requestType: 'json',
|
|
306
306
|
body: Object.assign(Object.assign({}, serializers.PresentationIssue.jsonOrThrow(request, {
|
|
@@ -379,7 +379,7 @@ class Presentations {
|
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
381
|
/**
|
|
382
|
-
* Search for
|
|
382
|
+
* Search for Presentations with extended filters capabilities.
|
|
383
383
|
*
|
|
384
384
|
* @param {Truvity.PresentationSearchRequest} request
|
|
385
385
|
* @param {Presentations.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -400,7 +400,7 @@ class Presentations {
|
|
|
400
400
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
401
401
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'presentations/search'),
|
|
402
402
|
method: 'POST',
|
|
403
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '
|
|
403
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
404
404
|
contentType: 'application/json',
|
|
405
405
|
requestType: 'json',
|
|
406
406
|
body: serializers.PresentationSearchRequest.jsonOrThrow(request, {
|
|
@@ -507,7 +507,7 @@ class Presentations {
|
|
|
507
507
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
508
508
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'presentations/upload'),
|
|
509
509
|
method: 'POST',
|
|
510
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '
|
|
510
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
|
511
511
|
contentType: 'application/json',
|
|
512
512
|
requestType: 'json',
|
|
513
513
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -605,7 +605,7 @@ class Presentations {
|
|
|
605
605
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
606
606
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `presentations/${encodeURIComponent(id)}`),
|
|
607
607
|
method: 'GET',
|
|
608
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '
|
|
608
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
|
609
609
|
contentType: 'application/json',
|
|
610
610
|
requestType: 'json',
|
|
611
611
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -715,7 +715,7 @@ class Presentations {
|
|
|
715
715
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
716
716
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `presentations/${encodeURIComponent(id)}`),
|
|
717
717
|
method: 'DELETE',
|
|
718
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '
|
|
718
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())),
|
|
719
719
|
contentType: 'application/json',
|
|
720
720
|
requestType: 'json',
|
|
721
721
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -833,7 +833,7 @@ class Presentations {
|
|
|
833
833
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
834
834
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `presentations/${encodeURIComponent(id)}/restore`),
|
|
835
835
|
method: 'POST',
|
|
836
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '
|
|
836
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())),
|
|
837
837
|
contentType: 'application/json',
|
|
838
838
|
requestType: 'json',
|
|
839
839
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -945,7 +945,7 @@ class Presentations {
|
|
|
945
945
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
946
946
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `presentations/${encodeURIComponent(id)}/revisions`),
|
|
947
947
|
method: 'GET',
|
|
948
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '
|
|
948
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
|
949
949
|
contentType: 'application/json',
|
|
950
950
|
requestType: 'json',
|
|
951
951
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1051,7 +1051,7 @@ class Presentations {
|
|
|
1051
1051
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1052
1052
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `presentations/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}`),
|
|
1053
1053
|
method: 'GET',
|
|
1054
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '
|
|
1054
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
|
1055
1055
|
contentType: 'application/json',
|
|
1056
1056
|
requestType: 'json',
|
|
1057
1057
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1147,7 +1147,7 @@ class Presentations {
|
|
|
1147
1147
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1148
1148
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `presentations/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}/download`),
|
|
1149
1149
|
method: 'GET',
|
|
1150
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '
|
|
1150
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
|
1151
1151
|
contentType: 'application/json',
|
|
1152
1152
|
requestType: 'json',
|
|
1153
1153
|
responseType: 'streaming',
|
|
@@ -1218,7 +1218,7 @@ class Presentations {
|
|
|
1218
1218
|
});
|
|
1219
1219
|
}
|
|
1220
1220
|
/**
|
|
1221
|
-
* Verify a
|
|
1221
|
+
* Verify a Verifiable Presentation.
|
|
1222
1222
|
*
|
|
1223
1223
|
* @param {string} id - The ID of the resource.
|
|
1224
1224
|
* @param {Presentations.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1238,7 +1238,7 @@ class Presentations {
|
|
|
1238
1238
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1239
1239
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `presentations/${encodeURIComponent(id)}/verify`),
|
|
1240
1240
|
method: 'GET',
|
|
1241
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '
|
|
1241
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1242
1242
|
contentType: 'application/json',
|
|
1243
1243
|
requestType: 'json',
|
|
1244
1244
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|