@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiKeyDeleteRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/apiKeys/client/requests/ApiKeyDeleteRequest.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 ApiKeyDeleteRequest {\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":"ApiKeyDeleteRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/apiKeys/client/requests/ApiKeyDeleteRequest.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 ApiKeyDeleteRequest {\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"]}
|
|
@@ -15,17 +15,17 @@ export interface ApiKeyRestoreRequest {
|
|
|
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":"ApiKeyRestoreRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/apiKeys/client/requests/ApiKeyRestoreRequest.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 ApiKeyRestoreRequest {\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":"ApiKeyRestoreRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/apiKeys/client/requests/ApiKeyRestoreRequest.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 ApiKeyRestoreRequest {\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"]}
|
|
@@ -17,17 +17,17 @@ export interface ApiKeyUpdateRequest {
|
|
|
17
17
|
* to ensure idempotent behavior by sending the same (or a similar) response
|
|
18
18
|
* without executing the request a second time.
|
|
19
19
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
20
|
+
* Clients should be careful as any subsequent requests with the same key may
|
|
21
|
+
* return the same response without further check. Thus, it is recommended to
|
|
22
|
+
* use a UUID version 4 (random) or any other random string with enough
|
|
23
|
+
* entropy to avoid collisions.
|
|
24
24
|
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
25
|
+
* Keys expire after 24 hours. Clients are responsible to stay within this
|
|
26
|
+
* limit, if they require idempotent behavior.
|
|
27
27
|
*
|
|
28
|
-
*
|
|
28
|
+
* See [API Guideline Rule #181][api-230] for further details.
|
|
29
29
|
*
|
|
30
|
-
*
|
|
30
|
+
* [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.
|
|
31
31
|
*/
|
|
32
32
|
idempotencyKey?: string;
|
|
33
33
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiKeyUpdateRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/apiKeys/client/requests/ApiKeyUpdateRequest.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 * }\n */\nexport interface ApiKeyUpdateRequest {\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":"ApiKeyUpdateRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/apiKeys/client/requests/ApiKeyUpdateRequest.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 * }\n */\nexport interface ApiKeyUpdateRequest {\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.ApiKeyInput;\n}\n"]}
|
|
@@ -141,6 +141,7 @@ export declare class Credentials {
|
|
|
141
141
|
* @throws {@link Truvity.BadRequestError}
|
|
142
142
|
* @throws {@link Truvity.UnauthorizedError}
|
|
143
143
|
* @throws {@link Truvity.ForbiddenError}
|
|
144
|
+
* @throws {@link Truvity.NotFoundError}
|
|
144
145
|
* @throws {@link Truvity.MethodNotAllowedError}
|
|
145
146
|
* @throws {@link Truvity.PreconditionFailedError}
|
|
146
147
|
* @throws {@link Truvity.TooManyRequestsError}
|
|
@@ -197,6 +198,7 @@ export declare class Credentials {
|
|
|
197
198
|
* @throws {@link Truvity.BadRequestError}
|
|
198
199
|
* @throws {@link Truvity.UnauthorizedError}
|
|
199
200
|
* @throws {@link Truvity.ForbiddenError}
|
|
201
|
+
* @throws {@link Truvity.NotFoundError}
|
|
200
202
|
* @throws {@link Truvity.TooManyRequestsError}
|
|
201
203
|
* @throws {@link Truvity.InternalServerError}
|
|
202
204
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../../../src/api/resources/credentials/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,WAAW,C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;;;;;;;;;;;;;OAmBG;IACU,kBAAkB,CAC3B,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,OAAO,CAAC,yBAA8B,EAC/C,cAAc,CAAC,EAAE,WAAW,CAAC,cAAc,GAC5C,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC;IA+GtC;;;;;;;;OAQG;IACU,kBAAkB,CAC3B,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,OAAO,CAAC,yBAA8B,EAC/C,cAAc,CAAC,EAAE,WAAW,CAAC,cAAc,GAC5C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC;IA2G3B;;;;;;;;;;;;;;OAcG;IACU,gBAAgB,CACzB,EAAE,EAAE,MAAM,EACV,cAAc,CAAC,EAAE,WAAW,CAAC,cAAc,GAC5C,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC;cAoGpB,8BAA8B;;;CAIjD"}
|
|
@@ -98,7 +98,7 @@ class Credentials {
|
|
|
98
98
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
99
99
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'credentials/import'),
|
|
100
100
|
method: 'POST',
|
|
101
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.
|
|
101
|
+
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())),
|
|
102
102
|
contentType: 'application/json',
|
|
103
103
|
queryParameters: _queryParams,
|
|
104
104
|
requestType: 'json',
|
|
@@ -213,7 +213,7 @@ class Credentials {
|
|
|
213
213
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
214
214
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'credentials/search'),
|
|
215
215
|
method: 'POST',
|
|
216
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.
|
|
216
|
+
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())),
|
|
217
217
|
contentType: 'application/json',
|
|
218
218
|
requestType: 'json',
|
|
219
219
|
body: serializers.CredentialSearchRequest.jsonOrThrow(request, {
|
|
@@ -320,7 +320,7 @@ class Credentials {
|
|
|
320
320
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
321
321
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'credentials/upload'),
|
|
322
322
|
method: 'POST',
|
|
323
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.
|
|
323
|
+
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())),
|
|
324
324
|
contentType: 'application/json',
|
|
325
325
|
requestType: 'json',
|
|
326
326
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -420,7 +420,7 @@ class Credentials {
|
|
|
420
420
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
421
421
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `credentials/${encodeURIComponent(id)}`),
|
|
422
422
|
method: 'GET',
|
|
423
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.
|
|
423
|
+
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())),
|
|
424
424
|
contentType: 'application/json',
|
|
425
425
|
requestType: 'json',
|
|
426
426
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -530,7 +530,7 @@ class Credentials {
|
|
|
530
530
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
531
531
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `credentials/${encodeURIComponent(id)}`),
|
|
532
532
|
method: 'DELETE',
|
|
533
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.
|
|
533
|
+
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())),
|
|
534
534
|
contentType: 'application/json',
|
|
535
535
|
requestType: 'json',
|
|
536
536
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -631,6 +631,7 @@ class Credentials {
|
|
|
631
631
|
* @throws {@link Truvity.BadRequestError}
|
|
632
632
|
* @throws {@link Truvity.UnauthorizedError}
|
|
633
633
|
* @throws {@link Truvity.ForbiddenError}
|
|
634
|
+
* @throws {@link Truvity.NotFoundError}
|
|
634
635
|
* @throws {@link Truvity.MethodNotAllowedError}
|
|
635
636
|
* @throws {@link Truvity.PreconditionFailedError}
|
|
636
637
|
* @throws {@link Truvity.TooManyRequestsError}
|
|
@@ -649,7 +650,7 @@ class Credentials {
|
|
|
649
650
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
650
651
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `credentials/${encodeURIComponent(id)}/restore`),
|
|
651
652
|
method: 'POST',
|
|
652
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.
|
|
653
|
+
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())),
|
|
653
654
|
contentType: 'application/json',
|
|
654
655
|
requestType: 'json',
|
|
655
656
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -687,6 +688,13 @@ class Credentials {
|
|
|
687
688
|
allowUnrecognizedEnumValues: true,
|
|
688
689
|
breadcrumbsPrefix: ['response'],
|
|
689
690
|
}));
|
|
691
|
+
case 404:
|
|
692
|
+
throw new Truvity.NotFoundError(serializers.NotFoundProblems.parseOrThrow(_response.error.body, {
|
|
693
|
+
unrecognizedObjectKeys: 'passthrough',
|
|
694
|
+
allowUnrecognizedUnionMembers: true,
|
|
695
|
+
allowUnrecognizedEnumValues: true,
|
|
696
|
+
breadcrumbsPrefix: ['response'],
|
|
697
|
+
}));
|
|
690
698
|
case 405:
|
|
691
699
|
throw new Truvity.MethodNotAllowedError(serializers.MethodNotAllowedProblems.parseOrThrow(_response.error.body, {
|
|
692
700
|
unrecognizedObjectKeys: 'passthrough',
|
|
@@ -761,7 +769,7 @@ class Credentials {
|
|
|
761
769
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
762
770
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `credentials/${encodeURIComponent(id)}/revisions`),
|
|
763
771
|
method: 'GET',
|
|
764
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.
|
|
772
|
+
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())),
|
|
765
773
|
contentType: 'application/json',
|
|
766
774
|
requestType: 'json',
|
|
767
775
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -869,7 +877,7 @@ class Credentials {
|
|
|
869
877
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
870
878
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `credentials/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}`),
|
|
871
879
|
method: 'GET',
|
|
872
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.
|
|
880
|
+
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())),
|
|
873
881
|
contentType: 'application/json',
|
|
874
882
|
requestType: 'json',
|
|
875
883
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -955,6 +963,7 @@ class Credentials {
|
|
|
955
963
|
* @throws {@link Truvity.BadRequestError}
|
|
956
964
|
* @throws {@link Truvity.UnauthorizedError}
|
|
957
965
|
* @throws {@link Truvity.ForbiddenError}
|
|
966
|
+
* @throws {@link Truvity.NotFoundError}
|
|
958
967
|
* @throws {@link Truvity.TooManyRequestsError}
|
|
959
968
|
* @throws {@link Truvity.InternalServerError}
|
|
960
969
|
*/
|
|
@@ -965,7 +974,7 @@ class Credentials {
|
|
|
965
974
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
966
975
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `credentials/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}/download`),
|
|
967
976
|
method: 'GET',
|
|
968
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.
|
|
977
|
+
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())),
|
|
969
978
|
contentType: 'application/json',
|
|
970
979
|
requestType: 'json',
|
|
971
980
|
responseType: 'streaming',
|
|
@@ -999,6 +1008,13 @@ class Credentials {
|
|
|
999
1008
|
allowUnrecognizedEnumValues: true,
|
|
1000
1009
|
breadcrumbsPrefix: ['response'],
|
|
1001
1010
|
}));
|
|
1011
|
+
case 404:
|
|
1012
|
+
throw new Truvity.NotFoundError(serializers.NotFoundProblems.parseOrThrow(_response.error.body, {
|
|
1013
|
+
unrecognizedObjectKeys: 'passthrough',
|
|
1014
|
+
allowUnrecognizedUnionMembers: true,
|
|
1015
|
+
allowUnrecognizedEnumValues: true,
|
|
1016
|
+
breadcrumbsPrefix: ['response'],
|
|
1017
|
+
}));
|
|
1002
1018
|
case 429:
|
|
1003
1019
|
throw new Truvity.TooManyRequestsError(serializers.TooManyRequestsProblems.parseOrThrow(_response.error.body, {
|
|
1004
1020
|
unrecognizedObjectKeys: 'passthrough',
|
|
@@ -1056,7 +1072,7 @@ class Credentials {
|
|
|
1056
1072
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1057
1073
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `credentials/${encodeURIComponent(id)}/verify`),
|
|
1058
1074
|
method: 'GET',
|
|
1059
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.
|
|
1075
|
+
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())),
|
|
1060
1076
|
contentType: 'application/json',
|
|
1061
1077
|
requestType: 'json',
|
|
1062
1078
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|