@truvity/sdk 0.28.3 → 0.28.5
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/api/resources/apiKeys/client/Client.d.ts +1 -0
- package/api/resources/apiKeys/client/Client.d.ts.map +1 -1
- package/api/resources/apiKeys/client/Client.js +16 -8
- package/api/resources/apiKeys/client/Client.js.map +1 -1
- package/api/resources/apiKeys/client/requests/ApiKeyCreateRequest.d.ts +8 -8
- package/api/resources/apiKeys/client/requests/ApiKeyCreateRequest.js.map +1 -1
- package/api/resources/apiKeys/client/requests/ApiKeyDeleteRequest.d.ts +8 -8
- package/api/resources/apiKeys/client/requests/ApiKeyDeleteRequest.js.map +1 -1
- package/api/resources/apiKeys/client/requests/ApiKeyRestoreRequest.d.ts +8 -8
- package/api/resources/apiKeys/client/requests/ApiKeyRestoreRequest.js.map +1 -1
- package/api/resources/apiKeys/client/requests/ApiKeyUpdateRequest.d.ts +8 -8
- package/api/resources/apiKeys/client/requests/ApiKeyUpdateRequest.js.map +1 -1
- package/api/resources/credentials/client/Client.d.ts +2 -0
- package/api/resources/credentials/client/Client.d.ts.map +1 -1
- package/api/resources/credentials/client/Client.js +26 -10
- package/api/resources/credentials/client/Client.js.map +1 -1
- package/api/resources/credentials/client/requests/CredentialDeleteRequest.d.ts +8 -8
- package/api/resources/credentials/client/requests/CredentialDeleteRequest.js.map +1 -1
- package/api/resources/credentials/client/requests/CredentialInput.d.ts +8 -8
- package/api/resources/credentials/client/requests/CredentialInput.js.map +1 -1
- package/api/resources/credentials/client/requests/CredentialRestoreRequest.d.ts +8 -8
- package/api/resources/credentials/client/requests/CredentialRestoreRequest.js.map +1 -1
- package/api/resources/credentials/client/requests/CredentialUploadRequest.d.ts +8 -8
- package/api/resources/credentials/client/requests/CredentialUploadRequest.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 +3 -0
- package/api/resources/didcommMessages/client/Client.d.ts.map +1 -1
- package/api/resources/didcommMessages/client/Client.js +31 -7
- package/api/resources/didcommMessages/client/Client.js.map +1 -1
- package/api/resources/didcommMessages/client/requests/DidCommMessageSendInput.d.ts +8 -8
- package/api/resources/didcommMessages/client/requests/DidCommMessageSendInput.js.map +1 -1
- package/api/resources/didcommMessages/client/requests/DidcommMessageDeleteRequest.d.ts +8 -8
- package/api/resources/didcommMessages/client/requests/DidcommMessageDeleteRequest.js.map +1 -1
- package/api/resources/didcommMessages/client/requests/DidcommMessageRestoreRequest.d.ts +8 -8
- package/api/resources/didcommMessages/client/requests/DidcommMessageRestoreRequest.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 +2 -0
- package/api/resources/drafts/client/Client.d.ts.map +1 -1
- package/api/resources/drafts/client/Client.js +26 -10
- package/api/resources/drafts/client/Client.js.map +1 -1
- package/api/resources/drafts/client/requests/DraftCreateRequest.d.ts +8 -8
- package/api/resources/drafts/client/requests/DraftCreateRequest.js.map +1 -1
- package/api/resources/drafts/client/requests/DraftDeleteRequest.d.ts +8 -8
- package/api/resources/drafts/client/requests/DraftDeleteRequest.js.map +1 -1
- package/api/resources/drafts/client/requests/DraftRestoreRequest.d.ts +8 -8
- package/api/resources/drafts/client/requests/DraftRestoreRequest.js.map +1 -1
- package/api/resources/drafts/client/requests/DraftUpdateRequest.d.ts +8 -8
- package/api/resources/drafts/client/requests/DraftUpdateRequest.js.map +1 -1
- package/api/resources/files/client/Client.d.ts +2 -0
- package/api/resources/files/client/Client.d.ts.map +1 -1
- package/api/resources/files/client/Client.js +26 -10
- package/api/resources/files/client/Client.js.map +1 -1
- package/api/resources/files/client/requests/FileCreateRequest.d.ts +8 -8
- package/api/resources/files/client/requests/FileCreateRequest.js.map +1 -1
- package/api/resources/files/client/requests/FileDeleteRequest.d.ts +8 -8
- package/api/resources/files/client/requests/FileDeleteRequest.js.map +1 -1
- package/api/resources/files/client/requests/FileRestoreRequest.d.ts +8 -8
- package/api/resources/files/client/requests/FileRestoreRequest.js.map +1 -1
- package/api/resources/files/client/requests/FileUpdateRequest.d.ts +8 -8
- package/api/resources/files/client/requests/FileUpdateRequest.js.map +1 -1
- package/api/resources/files/client/requests/FileUploadRequest.d.ts +8 -8
- package/api/resources/files/client/requests/FileUploadRequest.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/keys/client/Client.d.ts +4 -4
- package/api/resources/keys/client/Client.d.ts.map +1 -1
- package/api/resources/keys/client/Client.js +44 -16
- package/api/resources/keys/client/Client.js.map +1 -1
- package/api/resources/keys/client/requests/KeyDeleteRequest.d.ts +8 -8
- package/api/resources/keys/client/requests/KeyDeleteRequest.js.map +1 -1
- package/api/resources/keys/client/requests/KeyGenerateInput.d.ts +8 -8
- package/api/resources/keys/client/requests/KeyGenerateInput.js.map +1 -1
- package/api/resources/keys/client/requests/KeyImportSecretInput.d.ts +8 -8
- package/api/resources/keys/client/requests/KeyImportSecretInput.js.map +1 -1
- package/api/resources/keys/client/requests/KeyInput.d.ts +8 -8
- package/api/resources/keys/client/requests/KeyInput.js.map +1 -1
- package/api/resources/keys/client/requests/KeyRestoreRequest.d.ts +8 -8
- package/api/resources/keys/client/requests/KeyRestoreRequest.js.map +1 -1
- package/api/resources/presentations/client/Client.d.ts +3 -0
- package/api/resources/presentations/client/Client.d.ts.map +1 -1
- package/api/resources/presentations/client/Client.js +36 -12
- package/api/resources/presentations/client/Client.js.map +1 -1
- package/api/resources/presentations/client/requests/PresentationDeleteRequest.d.ts +8 -8
- package/api/resources/presentations/client/requests/PresentationDeleteRequest.js.map +1 -1
- package/api/resources/presentations/client/requests/PresentationInput.d.ts +8 -8
- package/api/resources/presentations/client/requests/PresentationInput.js.map +1 -1
- package/api/resources/presentations/client/requests/PresentationRestoreRequest.d.ts +8 -8
- package/api/resources/presentations/client/requests/PresentationRestoreRequest.js.map +1 -1
- package/api/resources/presentations/client/requests/PresentationUploadRequest.d.ts +8 -8
- package/api/resources/presentations/client/requests/PresentationUploadRequest.js.map +1 -1
- package/api/types/DraftSchema.d.ts +17 -16
- package/api/types/DraftSchema.d.ts.map +1 -1
- package/api/types/DraftSchema.js.map +1 -1
- package/api/types/EqualKeyTypeValue.d.ts +1 -2
- package/api/types/EqualKeyTypeValue.d.ts.map +1 -1
- package/api/types/EqualKeyTypeValue.js +0 -1
- package/api/types/EqualKeyTypeValue.js.map +1 -1
- package/api/types/InKeyTypeValuesItem.d.ts +6 -8
- package/api/types/InKeyTypeValuesItem.d.ts.map +1 -1
- package/api/types/InKeyTypeValuesItem.js +0 -1
- package/api/types/InKeyTypeValuesItem.js.map +1 -1
- package/api/types/KeyGenerate.d.ts +5 -6
- package/api/types/KeyGenerate.d.ts.map +1 -1
- package/api/types/KeyGenerate.js.map +1 -1
- package/api/types/KeyGenerateType.d.ts +6 -8
- package/api/types/KeyGenerateType.d.ts.map +1 -1
- package/api/types/KeyGenerateType.js +0 -1
- package/api/types/KeyGenerateType.js.map +1 -1
- package/api/types/KeyPublic.d.ts +5 -6
- package/api/types/KeyPublic.d.ts.map +1 -1
- package/api/types/KeyPublic.js.map +1 -1
- package/api/types/KeyPublicType.d.ts +6 -8
- package/api/types/KeyPublicType.d.ts.map +1 -1
- package/api/types/KeyPublicType.js +0 -1
- package/api/types/KeyPublicType.js.map +1 -1
- package/api/types/NotEqualKeyTypeValue.d.ts +1 -2
- package/api/types/NotEqualKeyTypeValue.d.ts.map +1 -1
- package/api/types/NotEqualKeyTypeValue.js +0 -1
- package/api/types/NotEqualKeyTypeValue.js.map +1 -1
- package/api/types/NotInKeyTypeValuesItem.d.ts +6 -8
- package/api/types/NotInKeyTypeValuesItem.d.ts.map +1 -1
- package/api/types/NotInKeyTypeValuesItem.js +0 -1
- package/api/types/NotInKeyTypeValuesItem.js.map +1 -1
- package/api/types/ProblemMethodNotAllowedAlive.d.ts +1 -1
- package/api/types/ProblemMethodNotAllowedAlive.js.map +1 -1
- package/api/types/ProblemMethodNotAllowedDeleted.d.ts +1 -1
- package/api/types/ProblemMethodNotAllowedDeleted.js.map +1 -1
- package/api/types/ProblemPreconditionFailedBlob.d.ts +1 -1
- package/api/types/ProblemPreconditionFailedBlob.js.map +1 -1
- package/api/types/ProblemResourceNotFound.d.ts +1 -1
- package/api/types/ProblemResourceNotFound.js.map +1 -1
- package/documents/credential/baseVerifiableCredential.d.ts +1 -1
- package/documents/credential/baseVerifiableCredential.d.ts.map +1 -1
- package/documents/credential/baseVerifiableCredential.js +27 -4
- package/documents/credential/baseVerifiableCredential.js.map +1 -1
- package/documents/credential/document.d.ts +1 -1
- package/documents/credential/document.d.ts.map +1 -1
- package/documents/credential/document.js +2 -2
- package/documents/credential/document.js.map +1 -1
- package/documents/credential/document.spec.d.ts +1 -1
- package/documents/credential/document.spec.d.ts.map +1 -1
- package/documents/credential/document.spec.js +4 -3
- package/documents/credential/document.spec.js.map +1 -1
- package/documents/credential/draft.d.ts +2 -1
- package/documents/credential/draft.d.ts.map +1 -1
- package/documents/credential/draft.js +4 -3
- package/documents/credential/draft.js.map +1 -1
- package/documents/credential/flavor.d.ts.map +1 -1
- package/documents/credential/flavor.js +1 -0
- package/documents/credential/flavor.js.map +1 -1
- package/documents/credential/flavor.spec.js +5 -3
- package/documents/credential/flavor.spec.js.map +1 -1
- package/documents/credential/issued.d.ts +2 -1
- package/documents/credential/issued.d.ts.map +1 -1
- package/documents/credential/issued.js +4 -3
- package/documents/credential/issued.js.map +1 -1
- package/documents/credential/unknown.d.ts +6 -1
- package/documents/credential/unknown.d.ts.map +1 -1
- package/documents/credential/unknown.js +10 -2
- package/documents/credential/unknown.js.map +1 -1
- package/documents/credential.d.ts +7 -1
- package/documents/credential.d.ts.map +1 -1
- package/documents/credential.js +19 -8
- package/documents/credential.js.map +1 -1
- package/documents/models.d.ts +1 -1
- package/documents/models.d.ts.map +1 -1
- package/documents/models.js +2 -25
- package/documents/models.js.map +1 -1
- package/documents/presentation/issued.d.ts +1 -1
- package/documents/presentation/issued.d.ts.map +1 -1
- package/documents/presentation/issued.js +2 -2
- package/documents/presentation/issued.js.map +1 -1
- package/documents/presentation.d.ts +7 -1
- package/documents/presentation.d.ts.map +1 -1
- package/documents/presentation.js +10 -2
- package/documents/presentation.js.map +1 -1
- package/documents/types.d.ts +1 -0
- package/documents/types.d.ts.map +1 -1
- package/documents/types.js.map +1 -1
- package/package.json +1 -1
- package/reference.md +0 -4
- package/serialization/types/EqualKeyTypeValue.d.ts +1 -1
- package/serialization/types/EqualKeyTypeValue.d.ts.map +1 -1
- package/serialization/types/EqualKeyTypeValue.js +1 -1
- package/serialization/types/EqualKeyTypeValue.js.map +1 -1
- package/serialization/types/InKeyTypeValuesItem.d.ts +1 -1
- package/serialization/types/InKeyTypeValuesItem.d.ts.map +1 -1
- package/serialization/types/InKeyTypeValuesItem.js +1 -1
- package/serialization/types/InKeyTypeValuesItem.js.map +1 -1
- package/serialization/types/KeyGenerateType.d.ts +1 -1
- package/serialization/types/KeyGenerateType.d.ts.map +1 -1
- package/serialization/types/KeyGenerateType.js +1 -1
- package/serialization/types/KeyGenerateType.js.map +1 -1
- package/serialization/types/KeyPublicType.d.ts +1 -1
- package/serialization/types/KeyPublicType.d.ts.map +1 -1
- package/serialization/types/KeyPublicType.js +1 -1
- package/serialization/types/KeyPublicType.js.map +1 -1
- package/serialization/types/NotEqualKeyTypeValue.d.ts +1 -1
- package/serialization/types/NotEqualKeyTypeValue.d.ts.map +1 -1
- package/serialization/types/NotEqualKeyTypeValue.js +1 -1
- package/serialization/types/NotEqualKeyTypeValue.js.map +1 -1
- package/serialization/types/NotInKeyTypeValuesItem.d.ts +1 -1
- package/serialization/types/NotInKeyTypeValuesItem.d.ts.map +1 -1
- package/serialization/types/NotInKeyTypeValuesItem.js +1 -1
- package/serialization/types/NotInKeyTypeValuesItem.js.map +1 -1
- package/documents/credential/index.d.ts +0 -7
- package/documents/credential/index.d.ts.map +0 -1
- package/documents/credential/index.js +0 -23
- package/documents/credential/index.js.map +0 -1
|
@@ -15,17 +15,17 @@ export interface FileRestoreRequest {
|
|
|
15
15
|
* to ensure idempotent behavior by sending the same (or a similar) response
|
|
16
16
|
* without executing the request a second time.
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
18
|
+
* Clients should be careful as any subsequent requests with the same key may
|
|
19
|
+
* return the same response without further check. Thus, it is recommended to
|
|
20
|
+
* use a UUID version 4 (random) or any other random string with enough
|
|
21
|
+
* entropy to avoid collisions.
|
|
22
22
|
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
23
|
+
* Keys expire after 24 hours. Clients are responsible to stay within this
|
|
24
|
+
* limit, if they require idempotent behavior.
|
|
25
25
|
*
|
|
26
|
-
*
|
|
26
|
+
* See [API Guideline Rule #181][api-230] for further details.
|
|
27
27
|
*
|
|
28
|
-
*
|
|
28
|
+
* [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.
|
|
29
29
|
*/
|
|
30
30
|
idempotencyKey?: string;
|
|
31
31
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileRestoreRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/files/client/requests/FileRestoreRequest.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 * ifMatch: \"If-Match\"\n * }\n */\nexport interface FileRestoreRequest {\n /**\n * From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).\n * The **Idempotency-Key** is a free identifier created by the client to\n * identify a request. It is used by the service to identify repeated request\n * to ensure idempotent behavior by sending the same (or a similar) response\n * without executing the request a second time.\n *\n *
|
|
1
|
+
{"version":3,"file":"FileRestoreRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/files/client/requests/FileRestoreRequest.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 * ifMatch: \"If-Match\"\n * }\n */\nexport interface FileRestoreRequest {\n /**\n * From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).\n * The **Idempotency-Key** is a free identifier created by the client to\n * identify a request. It is used by the service to identify repeated request\n * to ensure idempotent behavior by sending the same (or a similar) response\n * without executing the request a second time.\n *\n * Clients should be careful as any subsequent requests with the same key may\n * return the same response without further check. Thus, it is recommended to\n * use a UUID version 4 (random) or any other random string with enough\n * entropy to avoid collisions.\n *\n * Keys expire after 24 hours. Clients are responsible to stay within this\n * limit, if they require idempotent behavior.\n *\n * See [API Guideline Rule #181][api-230] for further details.\n *\n * [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.\n */\n idempotencyKey?: string;\n /**\n * From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).\n * The **If-Match** header field is used to declare a list of identifiers that\n * are required to match the current resource version identifier in at least\n * one position as a pre-condition for executing the request on the server\n * side. This behavior is used to validate and reject optimistic updates, by\n * checking if the resource version a consumer has based his changes on is\n * outdated on arrival of the change request to prevent lost updates.\n *\n * If the pre-condition fails the server will respond with status code **412**\n * (Precondition Failed). See [RFC 9110 Section 13.1.1][rfc-9110-13.1.1] as\n * well as [API Guideline Rule #182][api-182] for further details.\n *\n * [rfc-9110-13.1.1]: https://tools.ietf.org/html/rfc9110#section-13.1.1\n *\n * [api-182]: <https://opensource.zalando.com/restful-api-guidelines/#182>.\n */\n ifMatch: string;\n}\n"]}
|
|
@@ -24,17 +24,17 @@ export interface FileUpdateRequest {
|
|
|
24
24
|
* to ensure idempotent behavior by sending the same (or a similar) response
|
|
25
25
|
* without executing the request a second time.
|
|
26
26
|
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
27
|
+
* Clients should be careful as any subsequent requests with the same key may
|
|
28
|
+
* return the same response without further check. Thus, it is recommended to
|
|
29
|
+
* use a UUID version 4 (random) or any other random string with enough
|
|
30
|
+
* entropy to avoid collisions.
|
|
31
31
|
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
32
|
+
* Keys expire after 24 hours. Clients are responsible to stay within this
|
|
33
|
+
* limit, if they require idempotent behavior.
|
|
34
34
|
*
|
|
35
|
-
*
|
|
35
|
+
* See [API Guideline Rule #181][api-230] for further details.
|
|
36
36
|
*
|
|
37
|
-
*
|
|
37
|
+
* [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.
|
|
38
38
|
*/
|
|
39
39
|
idempotencyKey?: string;
|
|
40
40
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUpdateRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/files/client/requests/FileUpdateRequest.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 * ifMatch: \"If-Match\",\n * body: {\n * data: {}\n * }\n * }\n */\nexport interface FileUpdateRequest {\n /**\n * The primary and unique identifier of the resource (inside tenant)\n * according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).\n */\n blobId?: string;\n /**\n * From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).\n * The **Idempotency-Key** is a free identifier created by the client to\n * identify a request. It is used by the service to identify repeated request\n * to ensure idempotent behavior by sending the same (or a similar) response\n * without executing the request a second time.\n *\n *
|
|
1
|
+
{"version":3,"file":"FileUpdateRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/files/client/requests/FileUpdateRequest.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 * ifMatch: \"If-Match\",\n * body: {\n * data: {}\n * }\n * }\n */\nexport interface FileUpdateRequest {\n /**\n * The primary and unique identifier of the resource (inside tenant)\n * according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).\n */\n blobId?: string;\n /**\n * From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).\n * The **Idempotency-Key** is a free identifier created by the client to\n * identify a request. It is used by the service to identify repeated request\n * to ensure idempotent behavior by sending the same (or a similar) response\n * without executing the request a second time.\n *\n * Clients should be careful as any subsequent requests with the same key may\n * return the same response without further check. Thus, it is recommended to\n * use a UUID version 4 (random) or any other random string with enough\n * entropy to avoid collisions.\n *\n * Keys expire after 24 hours. Clients are responsible to stay within this\n * limit, if they require idempotent behavior.\n *\n * See [API Guideline Rule #181][api-230] for further details.\n *\n * [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.\n */\n idempotencyKey?: string;\n /**\n * From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).\n * The **If-Match** header field is used to declare a list of identifiers that\n * are required to match the current resource version identifier in at least\n * one position as a pre-condition for executing the request on the server\n * side. This behavior is used to validate and reject optimistic updates, by\n * checking if the resource version a consumer has based his changes on is\n * outdated on arrival of the change request to prevent lost updates.\n *\n * If the pre-condition fails the server will respond with status code **412**\n * (Precondition Failed). See [RFC 9110 Section 13.1.1][rfc-9110-13.1.1] as\n * well as [API Guideline Rule #182][api-182] for further details.\n *\n * [rfc-9110-13.1.1]: https://tools.ietf.org/html/rfc9110#section-13.1.1\n *\n * [api-182]: <https://opensource.zalando.com/restful-api-guidelines/#182>.\n */\n ifMatch: string;\n body: Truvity.FileInput;\n}\n"]}
|
|
@@ -13,17 +13,17 @@ export interface FileUploadRequest {
|
|
|
13
13
|
* to ensure idempotent behavior by sending the same (or a similar) response
|
|
14
14
|
* without executing the request a second time.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
16
|
+
* Clients should be careful as any subsequent requests with the same key may
|
|
17
|
+
* return the same response without further check. Thus, it is recommended to
|
|
18
|
+
* use a UUID version 4 (random) or any other random string with enough
|
|
19
|
+
* entropy to avoid collisions.
|
|
20
20
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
21
|
+
* Keys expire after 24 hours. Clients are responsible to stay within this
|
|
22
|
+
* limit, if they require idempotent behavior.
|
|
23
23
|
*
|
|
24
|
-
*
|
|
24
|
+
* See [API Guideline Rule #181][api-230] for further details.
|
|
25
25
|
*
|
|
26
|
-
*
|
|
26
|
+
* [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.
|
|
27
27
|
*/
|
|
28
28
|
idempotencyKey?: string;
|
|
29
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUploadRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/files/client/requests/FileUploadRequest.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 */\nexport interface FileUploadRequest {\n /**\n * From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).\n * The **Idempotency-Key** is a free identifier created by the client to\n * identify a request. It is used by the service to identify repeated request\n * to ensure idempotent behavior by sending the same (or a similar) response\n * without executing the request a second time.\n *\n *
|
|
1
|
+
{"version":3,"file":"FileUploadRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/files/client/requests/FileUploadRequest.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 */\nexport interface FileUploadRequest {\n /**\n * From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).\n * The **Idempotency-Key** is a free identifier created by the client to\n * identify a request. It is used by the service to identify repeated request\n * to ensure idempotent behavior by sending the same (or a similar) response\n * without executing the request a second time.\n *\n * Clients should be careful as any subsequent requests with the same key may\n * return the same response without further check. Thus, it is recommended to\n * use a UUID version 4 (random) or any other random string with enough\n * entropy to avoid collisions.\n *\n * Keys expire after 24 hours. Clients are responsible to stay within this\n * limit, if they require idempotent behavior.\n *\n * See [API Guideline Rule #181][api-230] for further details.\n *\n * [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.\n */\n idempotencyKey?: string;\n}\n"]}
|
|
@@ -75,7 +75,7 @@ class Gdpr {
|
|
|
75
75
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
76
76
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'support-requests'),
|
|
77
77
|
method: 'POST',
|
|
78
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.
|
|
78
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
79
79
|
contentType: 'application/json',
|
|
80
80
|
requestType: 'json',
|
|
81
81
|
body: serializers.SupportRequest.jsonOrThrow(request, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Client.js","sourceRoot":"","sources":["../../../../../src/api/resources/gdpr/client/Client.ts"],"names":[],"mappings":";AAAA;;GAEG;;;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mB,CACjC,WAAW,CAAC,0BAA0B,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,EAAE;4BACtE,sBAAsB,EAAE,aAAa;4BACrC,6BAA6B,EAAE,IAAI;4BACnC,2BAA2B,EAAE,IAAI;4BACjC,iBAAiB,EAAE,CAAC,UAAU,CAAC;yBAClC,CAAC,CACL,CAAC;oBACN;wBACI,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC;4BAC1B,UAAU,EAAE,SAAS,CAAC,KAAK,CAAC,UAAU;4BACtC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,IAAI;yBAC7B,CAAC,CAAC;iBACV;aACJ;YAED,QAAQ,SAAS,CAAC,KAAK,CAAC,MAAM,EAAE;gBAC5B,KAAK,UAAU;oBACX,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC;wBAC1B,UAAU,EAAE,SAAS,CAAC,KAAK,CAAC,UAAU;wBACtC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,OAAO;qBAChC,CAAC,CAAC;gBACP,KAAK,SAAS;oBACV,MAAM,IAAI,MAAM,CAAC,mBAAmB,EAAE,CAAC;gBAC3C,KAAK,SAAS;oBACV,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC;wBAC1B,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,YAAY;qBACxC,CAAC,CAAC;aACV;;KACJ;IAEe,8BAA8B;;YAC1C,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;YAClE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;QACxC,CAAC;KAAA;CACJ;AArHD,oBAqHC","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\nimport * as environments from '../../../../environments';\nimport * as core from '../../../../core';\nimport * as Truvity from '../../../index';\nimport * as serializers from '../../../../serialization/index';\nimport urlJoin from 'url-join';\nimport * as errors from '../../../../errors/index';\n\nexport declare namespace Gdpr {\n interface Options {\n environment?: core.Supplier<environments.TruvityEnvironment | string>;\n apiKey?: core.Supplier<string | undefined>;\n fetcher?: core.FetchFunction;\n }\n\n interface RequestOptions {\n /** The maximum time to wait for a response in seconds. */\n timeoutInSeconds?: number;\n /** The number of times to retry the request. Defaults to 2. */\n maxRetries?: number;\n /** A hook to abort the request. */\n abortSignal?: AbortSignal;\n }\n}\n\n/**\n * The Truvity's Admin Panel API.\n */\nexport class Gdpr {\n constructor(protected readonly _options: Gdpr.Options = {}) {}\n\n /**\n * Create a request to support.\n *\n * @param {Truvity.SupportRequest} request\n * @param {Gdpr.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.UnauthorizedError}\n * @throws {@link Truvity.ForbiddenError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.gdpr.supportRequestCreate({\n * message: \"message\",\n * type: Truvity.SupportRequestType.DataDump\n * })\n */\n public async supportRequestCreate(\n request: Truvity.SupportRequest,\n requestOptions?: Gdpr.RequestOptions,\n ): Promise<void> {\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.environment)) ?? environments.TruvityEnvironment.Default,\n 'support-requests',\n ),\n method: 'POST',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': 'v0.28.
|
|
1
|
+
{"version":3,"file":"Client.js","sourceRoot":"","sources":["../../../../../src/api/resources/gdpr/client/Client.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uEAAyD;AACzD,uDAAyC;AACzC,wDAA0C;AAC1C,6EAA+D;AAC/D,wDAA+B;AAC/B,iEAAmD;AAmBnD;;GAEG;AACH,MAAa,IAAI;IACb,YAA+B,WAAyB,EAAE;QAA3B,aAAQ,GAAR,QAAQ,C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,CACL,CAAC;oBACN;wBACI,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC;4BAC1B,UAAU,EAAE,SAAS,CAAC,KAAK,CAAC,UAAU;4BACtC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,IAAI;yBAC7B,CAAC,CAAC;iBACV;aACJ;YAED,QAAQ,SAAS,CAAC,KAAK,CAAC,MAAM,EAAE;gBAC5B,KAAK,UAAU;oBACX,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC;wBAC1B,UAAU,EAAE,SAAS,CAAC,KAAK,CAAC,UAAU;wBACtC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,OAAO;qBAChC,CAAC,CAAC;gBACP,KAAK,SAAS;oBACV,MAAM,IAAI,MAAM,CAAC,mBAAmB,EAAE,CAAC;gBAC3C,KAAK,SAAS;oBACV,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC;wBAC1B,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,YAAY;qBACxC,CAAC,CAAC;aACV;;KACJ;IAEe,8BAA8B;;YAC1C,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;YAClE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;QACxC,CAAC;KAAA;CACJ;AArHD,oBAqHC","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\nimport * as environments from '../../../../environments';\nimport * as core from '../../../../core';\nimport * as Truvity from '../../../index';\nimport * as serializers from '../../../../serialization/index';\nimport urlJoin from 'url-join';\nimport * as errors from '../../../../errors/index';\n\nexport declare namespace Gdpr {\n interface Options {\n environment?: core.Supplier<environments.TruvityEnvironment | string>;\n apiKey?: core.Supplier<string | undefined>;\n fetcher?: core.FetchFunction;\n }\n\n interface RequestOptions {\n /** The maximum time to wait for a response in seconds. */\n timeoutInSeconds?: number;\n /** The number of times to retry the request. Defaults to 2. */\n maxRetries?: number;\n /** A hook to abort the request. */\n abortSignal?: AbortSignal;\n }\n}\n\n/**\n * The Truvity's Admin Panel API.\n */\nexport class Gdpr {\n constructor(protected readonly _options: Gdpr.Options = {}) {}\n\n /**\n * Create a request to support.\n *\n * @param {Truvity.SupportRequest} request\n * @param {Gdpr.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.UnauthorizedError}\n * @throws {@link Truvity.ForbiddenError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.gdpr.supportRequestCreate({\n * message: \"message\",\n * type: Truvity.SupportRequestType.DataDump\n * })\n */\n public async supportRequestCreate(\n request: Truvity.SupportRequest,\n requestOptions?: Gdpr.RequestOptions,\n ): Promise<void> {\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.environment)) ?? environments.TruvityEnvironment.Default,\n 'support-requests',\n ),\n method: 'POST',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': 'v0.28.5',\n 'X-Fern-Runtime': core.RUNTIME.type,\n 'X-Fern-Runtime-Version': core.RUNTIME.version,\n ...(await this._getCustomAuthorizationHeaders()),\n },\n contentType: 'application/json',\n requestType: 'json',\n body: serializers.SupportRequest.jsonOrThrow(request, {\n unrecognizedObjectKeys: 'strip',\n omitUndefined: true,\n }),\n timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n });\n if (_response.ok) {\n return;\n }\n\n if (_response.error.reason === 'status-code') {\n switch (_response.error.statusCode) {\n case 400:\n throw new Truvity.BadRequestError(\n serializers.BadRequestProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 401:\n throw new Truvity.UnauthorizedError(\n serializers.UnauthorizedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 403:\n throw new Truvity.ForbiddenError(\n serializers.ForbiddenProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 500:\n throw new Truvity.InternalServerError(\n serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n });\n }\n }\n\n switch (_response.error.reason) {\n case 'non-json':\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.rawBody,\n });\n case 'timeout':\n throw new errors.TruvityTimeoutError();\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n });\n }\n }\n\n protected async _getCustomAuthorizationHeaders() {\n const apiKeyValue = await core.Supplier.get(this._options.apiKey);\n return { 'X-API-KEY': apiKeyValue };\n }\n}\n"]}
|
|
@@ -97,8 +97,6 @@ export declare class Keys {
|
|
|
97
97
|
* jwx jwx generate --type EC --curve P-256
|
|
98
98
|
* # P384
|
|
99
99
|
* jwx jwx generate --type EC --curve P-384
|
|
100
|
-
* # SECP256K1
|
|
101
|
-
* jwx jwx generate --type EC --curve secp256k1
|
|
102
100
|
* ```
|
|
103
101
|
*
|
|
104
102
|
* How to generate public key from private key by `jwx` (input format - JWK, output format - JWK)
|
|
@@ -116,8 +114,6 @@ export declare class Keys {
|
|
|
116
114
|
* openssl ecparam -name prime256v1 -noout -genkey | openssl pkcs8 -nocrypt -topk8
|
|
117
115
|
* # P384
|
|
118
116
|
* openssl ecparam -name secp384r1 -noout -genkey | openssl pkcs8 -nocrypt -topk8
|
|
119
|
-
* # SECP256K1
|
|
120
|
-
* openssl ecparam -name secp256k1 -noout -genkey | openssl pkcs8 -nocrypt -topk8
|
|
121
117
|
* ```
|
|
122
118
|
*
|
|
123
119
|
* How to transform existing private key to PKCS8 format by OpenSSL (input format PEM, output format - PEM PCKS#8)
|
|
@@ -248,6 +244,7 @@ export declare class Keys {
|
|
|
248
244
|
* @throws {@link Truvity.UnauthorizedError}
|
|
249
245
|
* @throws {@link Truvity.ForbiddenError}
|
|
250
246
|
* @throws {@link Truvity.NotFoundError}
|
|
247
|
+
* @throws {@link Truvity.MethodNotAllowedError}
|
|
251
248
|
* @throws {@link Truvity.TooManyRequestsError}
|
|
252
249
|
* @throws {@link Truvity.InternalServerError}
|
|
253
250
|
*/
|
|
@@ -258,6 +255,7 @@ export declare class Keys {
|
|
|
258
255
|
* @throws {@link Truvity.UnauthorizedError}
|
|
259
256
|
* @throws {@link Truvity.ForbiddenError}
|
|
260
257
|
* @throws {@link Truvity.NotFoundError}
|
|
258
|
+
* @throws {@link Truvity.MethodNotAllowedError}
|
|
261
259
|
* @throws {@link Truvity.TooManyRequestsError}
|
|
262
260
|
* @throws {@link Truvity.InternalServerError}
|
|
263
261
|
*/
|
|
@@ -268,6 +266,7 @@ export declare class Keys {
|
|
|
268
266
|
* @throws {@link Truvity.UnauthorizedError}
|
|
269
267
|
* @throws {@link Truvity.ForbiddenError}
|
|
270
268
|
* @throws {@link Truvity.NotFoundError}
|
|
269
|
+
* @throws {@link Truvity.MethodNotAllowedError}
|
|
271
270
|
* @throws {@link Truvity.TooManyRequestsError}
|
|
272
271
|
* @throws {@link Truvity.InternalServerError}
|
|
273
272
|
*/
|
|
@@ -283,6 +282,7 @@ export declare class Keys {
|
|
|
283
282
|
* @throws {@link Truvity.BadRequestError}
|
|
284
283
|
* @throws {@link Truvity.UnauthorizedError}
|
|
285
284
|
* @throws {@link Truvity.ForbiddenError}
|
|
285
|
+
* @throws {@link Truvity.NotFoundError}
|
|
286
286
|
* @throws {@link Truvity.MethodNotAllowedError}
|
|
287
287
|
* @throws {@link Truvity.PreconditionFailedError}
|
|
288
288
|
* @throws {@link Truvity.TooManyRequestsError}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../../../src/api/resources/keys/client/Client.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAI1C,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC1B,UAAU,OAAO;QACb,WAAW,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,kBAAkB,GAAG,MAAM,CAAC,CAAC;QACtE,MAAM,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;QAC3C,OAAO,CAAC,EAAE,IAAI,CAAC,aAAa,CAAC;KAChC;IAED,UAAU,cAAc;QACpB,0DAA0D;QAC1D,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,+DAA+D;QAC/D,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,mCAAmC;QACnC,WAAW,CAAC,EAAE,WAAW,CAAC;KAC7B;CACJ;AAED;;GAEG;AACH,qBAAa,IAAI;IACD,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO;gBAAtB,QAAQ,GAAE,IAAI,CAAC,OAAY;IAE1D;;;;;;;;;;;;;;;;;OAiBG;IACU,WAAW,CACpB,OAAO,EAAE,OAAO,CAAC,gBAAgB,EACjC,cAAc,CAAC,EAAE,IA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AC,cAAc,GACrC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC;IA6H3B;;;;;;;;;OASG;IACU,gBAAgB,CACzB,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,OAAO,CAAC,uBAAuB,EACxC,cAAc,CAAC,EAAE,IAAI,CAAC,cAAc,GACrC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC;IA6H3B;;;;;;;;;;;;;;;;;;;;;OAqBG;IACU,UAAU,CACnB,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,OAAO,CAAC,iBAAiB,EAClC,cAAc,CAAC,EAAE,IAAI,CAAC,cAAc,GACrC,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC;IAkIrC;;;;;;;;;;;;;;;;OAgBG;IACU,UAAU,CACnB,EAAE,EAAE,MAAM,EACV,OAAO,GAAE,OAAO,CAAC,iBAAsB,EACvC,cAAc,CAAC,EAAE,IAAI,CAAC,cAAc,GACrC,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC;IA+GjC;;;;;;;;;;;;;;;;;OAiBG;IACU,WAAW,CACpB,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,OAAO,CAAC,kBAAuB,EACxC,cAAc,CAAC,EAAE,IAAI,CAAC,cAAc,GACrC,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC;cA+GrB,8BAA8B;;;CAIjD"}
|
|
@@ -88,7 +88,7 @@ class Keys {
|
|
|
88
88
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
89
89
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'keys/generate'),
|
|
90
90
|
method: 'POST',
|
|
91
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.
|
|
91
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
|
92
92
|
contentType: 'application/json',
|
|
93
93
|
requestType: 'json',
|
|
94
94
|
body: serializers.KeyGenerateInput.jsonOrThrow(_body, {
|
|
@@ -224,8 +224,6 @@ class Keys {
|
|
|
224
224
|
* jwx jwx generate --type EC --curve P-256
|
|
225
225
|
* # P384
|
|
226
226
|
* jwx jwx generate --type EC --curve P-384
|
|
227
|
-
* # SECP256K1
|
|
228
|
-
* jwx jwx generate --type EC --curve secp256k1
|
|
229
227
|
* ```
|
|
230
228
|
*
|
|
231
229
|
* How to generate public key from private key by `jwx` (input format - JWK, output format - JWK)
|
|
@@ -243,8 +241,6 @@ class Keys {
|
|
|
243
241
|
* openssl ecparam -name prime256v1 -noout -genkey | openssl pkcs8 -nocrypt -topk8
|
|
244
242
|
* # P384
|
|
245
243
|
* openssl ecparam -name secp384r1 -noout -genkey | openssl pkcs8 -nocrypt -topk8
|
|
246
|
-
* # SECP256K1
|
|
247
|
-
* openssl ecparam -name secp256k1 -noout -genkey | openssl pkcs8 -nocrypt -topk8
|
|
248
244
|
* ```
|
|
249
245
|
*
|
|
250
246
|
* How to transform existing private key to PKCS8 format by OpenSSL (input format PEM, output format - PEM PCKS#8)
|
|
@@ -293,7 +289,7 @@ class Keys {
|
|
|
293
289
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
294
290
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'keys/import'),
|
|
295
291
|
method: 'POST',
|
|
296
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.
|
|
292
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
|
297
293
|
contentType: 'application/json',
|
|
298
294
|
requestType: 'json',
|
|
299
295
|
body: serializers.KeyImportSecretInput.jsonOrThrow(_body, {
|
|
@@ -400,7 +396,7 @@ class Keys {
|
|
|
400
396
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
401
397
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'keys/search'),
|
|
402
398
|
method: 'POST',
|
|
403
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.
|
|
399
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
404
400
|
contentType: 'application/json',
|
|
405
401
|
requestType: 'json',
|
|
406
402
|
body: serializers.KeySearchRequest.jsonOrThrow(request, {
|
|
@@ -509,7 +505,7 @@ class Keys {
|
|
|
509
505
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
510
506
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `keys/${encodeURIComponent(id)}`),
|
|
511
507
|
method: 'GET',
|
|
512
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.
|
|
508
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
|
513
509
|
contentType: 'application/json',
|
|
514
510
|
requestType: 'json',
|
|
515
511
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -619,7 +615,7 @@ class Keys {
|
|
|
619
615
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
620
616
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `keys/${encodeURIComponent(id)}`),
|
|
621
617
|
method: 'DELETE',
|
|
622
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.
|
|
618
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.5', '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())),
|
|
623
619
|
contentType: 'application/json',
|
|
624
620
|
requestType: 'json',
|
|
625
621
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -739,7 +735,7 @@ class Keys {
|
|
|
739
735
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
740
736
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `keys/${encodeURIComponent(id)}`),
|
|
741
737
|
method: 'PATCH',
|
|
742
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.
|
|
738
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.5', '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())),
|
|
743
739
|
contentType: 'application/json',
|
|
744
740
|
requestType: 'json',
|
|
745
741
|
body: serializers.KeyInput.jsonOrThrow(_body, { unrecognizedObjectKeys: 'strip', omitUndefined: true }),
|
|
@@ -848,6 +844,7 @@ class Keys {
|
|
|
848
844
|
* @throws {@link Truvity.UnauthorizedError}
|
|
849
845
|
* @throws {@link Truvity.ForbiddenError}
|
|
850
846
|
* @throws {@link Truvity.NotFoundError}
|
|
847
|
+
* @throws {@link Truvity.MethodNotAllowedError}
|
|
851
848
|
* @throws {@link Truvity.TooManyRequestsError}
|
|
852
849
|
* @throws {@link Truvity.InternalServerError}
|
|
853
850
|
*/
|
|
@@ -862,7 +859,7 @@ class Keys {
|
|
|
862
859
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
863
860
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `keys/${encodeURIComponent(id)}/credentials/sign`),
|
|
864
861
|
method: 'POST',
|
|
865
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.
|
|
862
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
866
863
|
contentType: 'application/json',
|
|
867
864
|
queryParameters: _queryParams,
|
|
868
865
|
requestType: 'json',
|
|
@@ -908,6 +905,13 @@ class Keys {
|
|
|
908
905
|
allowUnrecognizedEnumValues: true,
|
|
909
906
|
breadcrumbsPrefix: ['response'],
|
|
910
907
|
}));
|
|
908
|
+
case 405:
|
|
909
|
+
throw new Truvity.MethodNotAllowedError(serializers.MethodNotAllowedProblems.parseOrThrow(_response.error.body, {
|
|
910
|
+
unrecognizedObjectKeys: 'passthrough',
|
|
911
|
+
allowUnrecognizedUnionMembers: true,
|
|
912
|
+
allowUnrecognizedEnumValues: true,
|
|
913
|
+
breadcrumbsPrefix: ['response'],
|
|
914
|
+
}));
|
|
911
915
|
case 429:
|
|
912
916
|
throw new Truvity.TooManyRequestsError(serializers.TooManyRequestsProblems.parseOrThrow(_response.error.body, {
|
|
913
917
|
unrecognizedObjectKeys: 'passthrough',
|
|
@@ -950,6 +954,7 @@ class Keys {
|
|
|
950
954
|
* @throws {@link Truvity.UnauthorizedError}
|
|
951
955
|
* @throws {@link Truvity.ForbiddenError}
|
|
952
956
|
* @throws {@link Truvity.NotFoundError}
|
|
957
|
+
* @throws {@link Truvity.MethodNotAllowedError}
|
|
953
958
|
* @throws {@link Truvity.TooManyRequestsError}
|
|
954
959
|
* @throws {@link Truvity.InternalServerError}
|
|
955
960
|
*/
|
|
@@ -964,7 +969,7 @@ class Keys {
|
|
|
964
969
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
965
970
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `keys/${encodeURIComponent(id)}/didcomm-messages/sign`),
|
|
966
971
|
method: 'POST',
|
|
967
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.
|
|
972
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
968
973
|
contentType: 'application/json',
|
|
969
974
|
queryParameters: _queryParams,
|
|
970
975
|
requestType: 'json',
|
|
@@ -1010,6 +1015,13 @@ class Keys {
|
|
|
1010
1015
|
allowUnrecognizedEnumValues: true,
|
|
1011
1016
|
breadcrumbsPrefix: ['response'],
|
|
1012
1017
|
}));
|
|
1018
|
+
case 405:
|
|
1019
|
+
throw new Truvity.MethodNotAllowedError(serializers.MethodNotAllowedProblems.parseOrThrow(_response.error.body, {
|
|
1020
|
+
unrecognizedObjectKeys: 'passthrough',
|
|
1021
|
+
allowUnrecognizedUnionMembers: true,
|
|
1022
|
+
allowUnrecognizedEnumValues: true,
|
|
1023
|
+
breadcrumbsPrefix: ['response'],
|
|
1024
|
+
}));
|
|
1013
1025
|
case 429:
|
|
1014
1026
|
throw new Truvity.TooManyRequestsError(serializers.TooManyRequestsProblems.parseOrThrow(_response.error.body, {
|
|
1015
1027
|
unrecognizedObjectKeys: 'passthrough',
|
|
@@ -1052,6 +1064,7 @@ class Keys {
|
|
|
1052
1064
|
* @throws {@link Truvity.UnauthorizedError}
|
|
1053
1065
|
* @throws {@link Truvity.ForbiddenError}
|
|
1054
1066
|
* @throws {@link Truvity.NotFoundError}
|
|
1067
|
+
* @throws {@link Truvity.MethodNotAllowedError}
|
|
1055
1068
|
* @throws {@link Truvity.TooManyRequestsError}
|
|
1056
1069
|
* @throws {@link Truvity.InternalServerError}
|
|
1057
1070
|
*/
|
|
@@ -1066,7 +1079,7 @@ class Keys {
|
|
|
1066
1079
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1067
1080
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `keys/${encodeURIComponent(id)}/presentations/sign`),
|
|
1068
1081
|
method: 'POST',
|
|
1069
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.
|
|
1082
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1070
1083
|
contentType: 'application/json',
|
|
1071
1084
|
queryParameters: _queryParams,
|
|
1072
1085
|
requestType: 'json',
|
|
@@ -1112,6 +1125,13 @@ class Keys {
|
|
|
1112
1125
|
allowUnrecognizedEnumValues: true,
|
|
1113
1126
|
breadcrumbsPrefix: ['response'],
|
|
1114
1127
|
}));
|
|
1128
|
+
case 405:
|
|
1129
|
+
throw new Truvity.MethodNotAllowedError(serializers.MethodNotAllowedProblems.parseOrThrow(_response.error.body, {
|
|
1130
|
+
unrecognizedObjectKeys: 'passthrough',
|
|
1131
|
+
allowUnrecognizedUnionMembers: true,
|
|
1132
|
+
allowUnrecognizedEnumValues: true,
|
|
1133
|
+
breadcrumbsPrefix: ['response'],
|
|
1134
|
+
}));
|
|
1115
1135
|
case 429:
|
|
1116
1136
|
throw new Truvity.TooManyRequestsError(serializers.TooManyRequestsProblems.parseOrThrow(_response.error.body, {
|
|
1117
1137
|
unrecognizedObjectKeys: 'passthrough',
|
|
@@ -1159,6 +1179,7 @@ class Keys {
|
|
|
1159
1179
|
* @throws {@link Truvity.BadRequestError}
|
|
1160
1180
|
* @throws {@link Truvity.UnauthorizedError}
|
|
1161
1181
|
* @throws {@link Truvity.ForbiddenError}
|
|
1182
|
+
* @throws {@link Truvity.NotFoundError}
|
|
1162
1183
|
* @throws {@link Truvity.MethodNotAllowedError}
|
|
1163
1184
|
* @throws {@link Truvity.PreconditionFailedError}
|
|
1164
1185
|
* @throws {@link Truvity.TooManyRequestsError}
|
|
@@ -1176,7 +1197,7 @@ class Keys {
|
|
|
1176
1197
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1177
1198
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `keys/${encodeURIComponent(id)}/restore`),
|
|
1178
1199
|
method: 'POST',
|
|
1179
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.
|
|
1200
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.5', '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())),
|
|
1180
1201
|
contentType: 'application/json',
|
|
1181
1202
|
requestType: 'json',
|
|
1182
1203
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1214,6 +1235,13 @@ class Keys {
|
|
|
1214
1235
|
allowUnrecognizedEnumValues: true,
|
|
1215
1236
|
breadcrumbsPrefix: ['response'],
|
|
1216
1237
|
}));
|
|
1238
|
+
case 404:
|
|
1239
|
+
throw new Truvity.NotFoundError(serializers.NotFoundProblems.parseOrThrow(_response.error.body, {
|
|
1240
|
+
unrecognizedObjectKeys: 'passthrough',
|
|
1241
|
+
allowUnrecognizedUnionMembers: true,
|
|
1242
|
+
allowUnrecognizedEnumValues: true,
|
|
1243
|
+
breadcrumbsPrefix: ['response'],
|
|
1244
|
+
}));
|
|
1217
1245
|
case 405:
|
|
1218
1246
|
throw new Truvity.MethodNotAllowedError(serializers.MethodNotAllowedProblems.parseOrThrow(_response.error.body, {
|
|
1219
1247
|
unrecognizedObjectKeys: 'passthrough',
|
|
@@ -1288,7 +1316,7 @@ class Keys {
|
|
|
1288
1316
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1289
1317
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `keys/${encodeURIComponent(id)}/revisions`),
|
|
1290
1318
|
method: 'GET',
|
|
1291
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.
|
|
1319
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
|
1292
1320
|
contentType: 'application/json',
|
|
1293
1321
|
requestType: 'json',
|
|
1294
1322
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1394,7 +1422,7 @@ class Keys {
|
|
|
1394
1422
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1395
1423
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `keys/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}`),
|
|
1396
1424
|
method: 'GET',
|
|
1397
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.
|
|
1425
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
|
1398
1426
|
contentType: 'application/json',
|
|
1399
1427
|
requestType: 'json',
|
|
1400
1428
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|