@truvity/sdk 0.28.1 → 0.28.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -79
- package/api/resources/apiKeys/client/Client.d.ts +7 -7
- package/api/resources/apiKeys/client/Client.js +15 -15
- package/api/resources/apiKeys/client/Client.js.map +1 -1
- package/api/resources/credentials/client/Client.d.ts +3 -3
- package/api/resources/credentials/client/Client.js +13 -13
- package/api/resources/credentials/client/Client.js.map +1 -1
- package/api/resources/desk/client/Client.js +2 -2
- package/api/resources/desk/client/Client.js.map +1 -1
- package/api/resources/didcommMessages/client/Client.d.ts +7 -7
- package/api/resources/didcommMessages/client/Client.js +14 -14
- package/api/resources/didcommMessages/client/Client.js.map +1 -1
- package/api/resources/dids/client/Client.js +1 -1
- package/api/resources/dids/client/Client.js.map +1 -1
- package/api/resources/drafts/client/Client.d.ts +3 -3
- package/api/resources/drafts/client/Client.js +13 -13
- package/api/resources/drafts/client/Client.js.map +1 -1
- package/api/resources/drafts/client/requests/DraftExport.d.ts +2 -2
- package/api/resources/drafts/client/requests/DraftExport.d.ts.map +1 -1
- package/api/resources/drafts/client/requests/DraftExport.js.map +1 -1
- package/api/resources/drafts/client/requests/DraftIssue.d.ts +5 -4
- package/api/resources/drafts/client/requests/DraftIssue.d.ts.map +1 -1
- package/api/resources/drafts/client/requests/DraftIssue.js.map +1 -1
- package/api/resources/drafts/index.d.ts +1 -0
- package/api/resources/drafts/index.d.ts.map +1 -1
- package/api/resources/drafts/index.js +1 -0
- package/api/resources/drafts/index.js.map +1 -1
- package/api/resources/drafts/types/DraftIssueDidMethod.d.ts +12 -0
- package/api/resources/drafts/types/DraftIssueDidMethod.d.ts.map +1 -0
- package/api/resources/drafts/types/DraftIssueDidMethod.js +11 -0
- package/api/resources/drafts/types/DraftIssueDidMethod.js.map +1 -0
- package/api/resources/drafts/types/index.d.ts +2 -0
- package/api/resources/drafts/types/index.d.ts.map +1 -0
- package/api/resources/drafts/types/index.js +18 -0
- package/api/resources/drafts/types/index.js.map +1 -0
- package/api/resources/files/client/Client.d.ts +1 -1
- package/api/resources/files/client/Client.js +11 -11
- package/api/resources/files/client/Client.js.map +1 -1
- package/api/resources/gdpr/client/Client.js +1 -1
- package/api/resources/gdpr/client/Client.js.map +1 -1
- package/api/resources/index.d.ts +6 -3
- package/api/resources/index.d.ts.map +1 -1
- package/api/resources/index.js +7 -4
- package/api/resources/index.js.map +1 -1
- package/api/resources/keys/client/Client.d.ts +4 -4
- package/api/resources/keys/client/Client.js +16 -16
- package/api/resources/keys/client/Client.js.map +1 -1
- package/api/resources/keys/client/requests/CredentialSignRequest.d.ts +3 -2
- package/api/resources/keys/client/requests/CredentialSignRequest.d.ts.map +1 -1
- package/api/resources/keys/client/requests/CredentialSignRequest.js.map +1 -1
- package/api/resources/keys/client/requests/DidCommMessageSignRequest.d.ts +3 -2
- package/api/resources/keys/client/requests/DidCommMessageSignRequest.d.ts.map +1 -1
- package/api/resources/keys/client/requests/DidCommMessageSignRequest.js.map +1 -1
- package/api/resources/keys/client/requests/PresentationSignRequest.d.ts +3 -2
- package/api/resources/keys/client/requests/PresentationSignRequest.d.ts.map +1 -1
- package/api/resources/keys/client/requests/PresentationSignRequest.js.map +1 -1
- package/api/resources/keys/index.d.ts +1 -0
- package/api/resources/keys/index.d.ts.map +1 -1
- package/api/resources/keys/index.js +1 -0
- package/api/resources/keys/index.js.map +1 -1
- package/api/resources/keys/types/CredentialSignRequestDidMethod.d.ts +12 -0
- package/api/resources/keys/types/CredentialSignRequestDidMethod.d.ts.map +1 -0
- package/api/resources/keys/types/CredentialSignRequestDidMethod.js +11 -0
- package/api/resources/keys/types/CredentialSignRequestDidMethod.js.map +1 -0
- package/api/resources/keys/types/DidCommMessageSignRequestDidMethod.d.ts +12 -0
- package/api/resources/keys/types/DidCommMessageSignRequestDidMethod.d.ts.map +1 -0
- package/api/resources/keys/types/DidCommMessageSignRequestDidMethod.js +11 -0
- package/api/resources/keys/types/DidCommMessageSignRequestDidMethod.js.map +1 -0
- package/api/resources/keys/types/PresentationSignRequestDidMethod.d.ts +12 -0
- package/api/resources/keys/types/PresentationSignRequestDidMethod.d.ts.map +1 -0
- package/api/resources/keys/types/PresentationSignRequestDidMethod.js +11 -0
- package/api/resources/keys/types/PresentationSignRequestDidMethod.js.map +1 -0
- package/api/resources/keys/types/index.d.ts +4 -0
- package/api/resources/keys/types/index.d.ts.map +1 -0
- package/api/resources/keys/types/index.js +20 -0
- package/api/resources/keys/types/index.js.map +1 -0
- package/api/resources/presentations/client/Client.d.ts +6 -6
- package/api/resources/presentations/client/Client.js +18 -18
- package/api/resources/presentations/client/Client.js.map +1 -1
- package/api/resources/presentations/client/requests/PresentationIssue.d.ts +2 -1
- package/api/resources/presentations/client/requests/PresentationIssue.d.ts.map +1 -1
- package/api/resources/presentations/client/requests/PresentationIssue.js.map +1 -1
- package/api/resources/presentations/index.d.ts +1 -0
- package/api/resources/presentations/index.d.ts.map +1 -1
- package/api/resources/presentations/index.js +1 -0
- package/api/resources/presentations/index.js.map +1 -1
- package/api/resources/presentations/types/PresentationIssueDidMethod.d.ts +12 -0
- package/api/resources/presentations/types/PresentationIssueDidMethod.d.ts.map +1 -0
- package/api/resources/presentations/types/PresentationIssueDidMethod.js +11 -0
- package/api/resources/presentations/types/PresentationIssueDidMethod.js.map +1 -0
- package/api/resources/presentations/types/index.d.ts +2 -0
- package/api/resources/presentations/types/index.d.ts.map +1 -0
- package/api/resources/presentations/types/index.js +18 -0
- package/api/resources/presentations/types/index.js.map +1 -0
- package/api/types/Credential.d.ts +2 -2
- package/api/types/Credential.d.ts.map +1 -1
- package/api/types/Credential.js.map +1 -1
- package/api/types/Credential11.d.ts +1 -1
- package/api/types/Credential11.d.ts.map +1 -1
- package/api/types/Credential11.js.map +1 -1
- package/api/types/Draft.d.ts +5 -1
- package/api/types/Draft.d.ts.map +1 -1
- package/api/types/Draft.js.map +1 -1
- package/api/types/DraftCreate.d.ts +3 -0
- package/api/types/DraftCreate.d.ts.map +1 -1
- package/api/types/DraftCreate.js.map +1 -1
- package/api/types/DraftFieldBooleanValue.d.ts +1 -1
- package/api/types/DraftFieldBooleanValue.d.ts.map +1 -1
- package/api/types/DraftFieldBooleanValue.js.map +1 -1
- package/api/types/DraftFieldDateTimeValue.d.ts +1 -1
- package/api/types/DraftFieldDateTimeValue.d.ts.map +1 -1
- package/api/types/DraftFieldDateTimeValue.js.map +1 -1
- package/api/types/DraftFieldDateValue.d.ts +1 -1
- package/api/types/DraftFieldDateValue.d.ts.map +1 -1
- package/api/types/DraftFieldDateValue.js.map +1 -1
- package/api/types/DraftFieldFileValue.d.ts +1 -1
- package/api/types/DraftFieldFileValue.d.ts.map +1 -1
- package/api/types/DraftFieldFileValue.js.map +1 -1
- package/api/types/DraftFieldLinkValue.d.ts +1 -1
- package/api/types/DraftFieldLinkValue.d.ts.map +1 -1
- package/api/types/DraftFieldLinkValue.js.map +1 -1
- package/api/types/DraftFieldNumberValue.d.ts +1 -1
- package/api/types/DraftFieldNumberValue.d.ts.map +1 -1
- package/api/types/DraftFieldNumberValue.js.map +1 -1
- package/api/types/DraftFieldStringValue.d.ts +1 -1
- package/api/types/DraftFieldStringValue.d.ts.map +1 -1
- package/api/types/DraftFieldStringValue.js.map +1 -1
- package/api/types/DraftFieldStructValue.d.ts +2 -1
- package/api/types/DraftFieldStructValue.d.ts.map +1 -1
- package/api/types/DraftFieldStructValue.js.map +1 -1
- package/api/types/DraftFieldStructValueFieldsItem.d.ts +1 -1
- package/api/types/DraftFieldStructValueFieldsItem.js.map +1 -1
- package/api/types/DraftMeta.d.ts +3 -3
- package/api/types/DraftMeta.d.ts.map +1 -1
- package/api/types/DraftMeta.js.map +1 -1
- package/api/types/DraftSchema.d.ts +1 -0
- package/api/types/DraftSchema.d.ts.map +1 -1
- package/api/types/DraftSchema.js.map +1 -1
- package/api/types/DraftSchemaFieldsItem.d.ts +1 -1
- package/api/types/DraftSchemaFieldsItem.js.map +1 -1
- package/api/types/EqualKeyType.d.ts +2 -1
- package/api/types/EqualKeyType.d.ts.map +1 -1
- package/api/types/EqualKeyType.js.map +1 -1
- package/api/types/EqualKeyTypeValue.d.ts +14 -0
- package/api/types/EqualKeyTypeValue.d.ts.map +1 -0
- package/api/types/EqualKeyTypeValue.js +13 -0
- package/api/types/EqualKeyTypeValue.js.map +1 -0
- package/api/types/InKeyType.d.ts +2 -1
- package/api/types/InKeyType.d.ts.map +1 -1
- package/api/types/InKeyType.js.map +1 -1
- package/api/types/InKeyTypeValuesItem.d.ts +33 -0
- package/api/types/InKeyTypeValuesItem.d.ts.map +1 -0
- package/api/types/InKeyTypeValuesItem.js +13 -0
- package/api/types/InKeyTypeValuesItem.js.map +1 -0
- package/api/types/KeyGenerate.d.ts +3 -2
- package/api/types/KeyGenerate.d.ts.map +1 -1
- package/api/types/KeyGenerate.js.map +1 -1
- package/api/types/KeyGenerateType.d.ts +33 -0
- package/api/types/KeyGenerateType.d.ts.map +1 -0
- package/api/types/KeyGenerateType.js +13 -0
- package/api/types/KeyGenerateType.js.map +1 -0
- package/api/types/KeyPublic.d.ts +2 -1
- package/api/types/KeyPublic.d.ts.map +1 -1
- package/api/types/KeyPublic.js.map +1 -1
- package/api/types/KeyPublicType.d.ts +33 -0
- package/api/types/KeyPublicType.d.ts.map +1 -0
- package/api/types/KeyPublicType.js +13 -0
- package/api/types/KeyPublicType.js.map +1 -0
- package/api/types/NotEqualKeyType.d.ts +2 -1
- package/api/types/NotEqualKeyType.d.ts.map +1 -1
- package/api/types/NotEqualKeyType.js.map +1 -1
- package/api/types/NotEqualKeyTypeValue.d.ts +14 -0
- package/api/types/NotEqualKeyTypeValue.d.ts.map +1 -0
- package/api/types/NotEqualKeyTypeValue.js +13 -0
- package/api/types/NotEqualKeyTypeValue.js.map +1 -0
- package/api/types/NotInKeyType.d.ts +2 -1
- package/api/types/NotInKeyType.d.ts.map +1 -1
- package/api/types/NotInKeyType.js.map +1 -1
- package/api/types/NotInKeyTypeValuesItem.d.ts +33 -0
- package/api/types/NotInKeyTypeValuesItem.d.ts.map +1 -0
- package/api/types/NotInKeyTypeValuesItem.js +13 -0
- package/api/types/NotInKeyTypeValuesItem.js.map +1 -0
- package/api/types/index.d.ts +6 -0
- package/api/types/index.d.ts.map +1 -1
- package/api/types/index.js +6 -0
- package/api/types/index.js.map +1 -1
- package/package.json +4 -22
- package/reference.md +34 -34
- package/serialization/resources/drafts/client/requests/DraftIssue.d.ts +2 -1
- package/serialization/resources/drafts/client/requests/DraftIssue.d.ts.map +1 -1
- package/serialization/resources/drafts/client/requests/DraftIssue.js +2 -1
- package/serialization/resources/drafts/client/requests/DraftIssue.js.map +1 -1
- package/serialization/resources/drafts/index.d.ts +1 -0
- package/serialization/resources/drafts/index.d.ts.map +1 -1
- package/serialization/resources/drafts/index.js +1 -0
- package/serialization/resources/drafts/index.js.map +1 -1
- package/serialization/resources/drafts/types/DraftIssueDidMethod.d.ts +11 -0
- package/serialization/resources/drafts/types/DraftIssueDidMethod.d.ts.map +1 -0
- package/serialization/resources/drafts/types/DraftIssueDidMethod.js +32 -0
- package/serialization/resources/drafts/types/DraftIssueDidMethod.js.map +1 -0
- package/serialization/resources/drafts/types/index.d.ts +2 -0
- package/serialization/resources/drafts/types/index.d.ts.map +1 -0
- package/serialization/resources/drafts/types/index.js +18 -0
- package/serialization/resources/drafts/types/index.js.map +1 -0
- package/serialization/resources/index.d.ts +6 -3
- package/serialization/resources/index.d.ts.map +1 -1
- package/serialization/resources/index.js +7 -4
- package/serialization/resources/index.js.map +1 -1
- package/serialization/resources/keys/index.d.ts +1 -0
- package/serialization/resources/keys/index.d.ts.map +1 -1
- package/serialization/resources/keys/index.js +1 -0
- package/serialization/resources/keys/index.js.map +1 -1
- package/serialization/resources/keys/types/CredentialSignRequestDidMethod.d.ts +11 -0
- package/serialization/resources/keys/types/CredentialSignRequestDidMethod.d.ts.map +1 -0
- package/serialization/resources/keys/types/CredentialSignRequestDidMethod.js +32 -0
- package/serialization/resources/keys/types/CredentialSignRequestDidMethod.js.map +1 -0
- package/serialization/resources/keys/types/DidCommMessageSignRequestDidMethod.d.ts +11 -0
- package/serialization/resources/keys/types/DidCommMessageSignRequestDidMethod.d.ts.map +1 -0
- package/serialization/resources/keys/types/DidCommMessageSignRequestDidMethod.js +32 -0
- package/serialization/resources/keys/types/DidCommMessageSignRequestDidMethod.js.map +1 -0
- package/serialization/resources/keys/types/PresentationSignRequestDidMethod.d.ts +11 -0
- package/serialization/resources/keys/types/PresentationSignRequestDidMethod.d.ts.map +1 -0
- package/serialization/resources/keys/types/PresentationSignRequestDidMethod.js +32 -0
- package/serialization/resources/keys/types/PresentationSignRequestDidMethod.js.map +1 -0
- package/serialization/resources/keys/types/index.d.ts +4 -0
- package/serialization/resources/keys/types/index.d.ts.map +1 -0
- package/serialization/resources/keys/types/index.js +20 -0
- package/serialization/resources/keys/types/index.js.map +1 -0
- package/serialization/resources/presentations/client/requests/PresentationIssue.d.ts +2 -1
- package/serialization/resources/presentations/client/requests/PresentationIssue.d.ts.map +1 -1
- package/serialization/resources/presentations/client/requests/PresentationIssue.js +2 -1
- package/serialization/resources/presentations/client/requests/PresentationIssue.js.map +1 -1
- package/serialization/resources/presentations/index.d.ts +1 -0
- package/serialization/resources/presentations/index.d.ts.map +1 -1
- package/serialization/resources/presentations/index.js +1 -0
- package/serialization/resources/presentations/index.js.map +1 -1
- package/serialization/resources/presentations/types/PresentationIssueDidMethod.d.ts +11 -0
- package/serialization/resources/presentations/types/PresentationIssueDidMethod.d.ts.map +1 -0
- package/serialization/resources/presentations/types/PresentationIssueDidMethod.js +32 -0
- package/serialization/resources/presentations/types/PresentationIssueDidMethod.js.map +1 -0
- package/serialization/resources/presentations/types/index.d.ts +2 -0
- package/serialization/resources/presentations/types/index.d.ts.map +1 -0
- package/serialization/resources/presentations/types/index.js +18 -0
- package/serialization/resources/presentations/types/index.js.map +1 -0
- package/serialization/types/EqualKeyType.d.ts +2 -1
- package/serialization/types/EqualKeyType.d.ts.map +1 -1
- package/serialization/types/EqualKeyType.js +2 -1
- package/serialization/types/EqualKeyType.js.map +1 -1
- package/serialization/types/EqualKeyTypeValue.d.ts +11 -0
- package/serialization/types/EqualKeyTypeValue.d.ts.map +1 -0
- package/serialization/types/EqualKeyTypeValue.js +32 -0
- package/serialization/types/EqualKeyTypeValue.js.map +1 -0
- package/serialization/types/InKeyType.d.ts +2 -1
- package/serialization/types/InKeyType.d.ts.map +1 -1
- package/serialization/types/InKeyType.js +2 -1
- package/serialization/types/InKeyType.js.map +1 -1
- package/serialization/types/InKeyTypeValuesItem.d.ts +11 -0
- package/serialization/types/InKeyTypeValuesItem.d.ts.map +1 -0
- package/serialization/types/InKeyTypeValuesItem.js +32 -0
- package/serialization/types/InKeyTypeValuesItem.js.map +1 -0
- package/serialization/types/KeyGenerate.d.ts +2 -1
- package/serialization/types/KeyGenerate.d.ts.map +1 -1
- package/serialization/types/KeyGenerate.js +2 -1
- package/serialization/types/KeyGenerate.js.map +1 -1
- package/serialization/types/KeyGenerateType.d.ts +11 -0
- package/serialization/types/KeyGenerateType.d.ts.map +1 -0
- package/serialization/types/KeyGenerateType.js +32 -0
- package/serialization/types/KeyGenerateType.js.map +1 -0
- package/serialization/types/KeyPublic.d.ts +2 -1
- package/serialization/types/KeyPublic.d.ts.map +1 -1
- package/serialization/types/KeyPublic.js +2 -1
- package/serialization/types/KeyPublic.js.map +1 -1
- package/serialization/types/KeyPublicType.d.ts +11 -0
- package/serialization/types/KeyPublicType.d.ts.map +1 -0
- package/serialization/types/KeyPublicType.js +32 -0
- package/serialization/types/KeyPublicType.js.map +1 -0
- package/serialization/types/NotEqualKeyType.d.ts +2 -1
- package/serialization/types/NotEqualKeyType.d.ts.map +1 -1
- package/serialization/types/NotEqualKeyType.js +2 -1
- package/serialization/types/NotEqualKeyType.js.map +1 -1
- package/serialization/types/NotEqualKeyTypeValue.d.ts +11 -0
- package/serialization/types/NotEqualKeyTypeValue.d.ts.map +1 -0
- package/serialization/types/NotEqualKeyTypeValue.js +32 -0
- package/serialization/types/NotEqualKeyTypeValue.js.map +1 -0
- package/serialization/types/NotInKeyType.d.ts +2 -1
- package/serialization/types/NotInKeyType.d.ts.map +1 -1
- package/serialization/types/NotInKeyType.js +2 -1
- package/serialization/types/NotInKeyType.js.map +1 -1
- package/serialization/types/NotInKeyTypeValuesItem.d.ts +11 -0
- package/serialization/types/NotInKeyTypeValuesItem.d.ts.map +1 -0
- package/serialization/types/NotInKeyTypeValuesItem.js +32 -0
- package/serialization/types/NotInKeyTypeValuesItem.js.map +1 -0
- package/serialization/types/index.d.ts +6 -0
- package/serialization/types/index.d.ts.map +1 -1
- package/serialization/types/index.js +6 -0
- package/serialization/types/index.js.map +1 -1
- package/devbox.lock +0 -118
- package/jest.config.ts +0 -38
- package/yarn.lock.checksum +0 -1
package/README.md
CHANGED
|
@@ -1,92 +1,26 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Truvity TypeScript SDK
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Overview
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
- [Release Management](#release-management)
|
|
7
|
-
- [Work in Progress](#work-in-progress)
|
|
8
|
-
- [Stable Releases](#stable-releases)
|
|
9
|
-
- [Updating the `package.json` packages](#updating-the-packagejson-packages)
|
|
10
|
-
- [User Defined Types usage](#user-defined-types-usage)
|
|
5
|
+
The Truvity TypeScript SDK is designed to work with SSI through the Truvity API with minimal complexity.
|
|
11
6
|
|
|
12
|
-
|
|
7
|
+
## Getting started
|
|
13
8
|
|
|
14
|
-
|
|
9
|
+
### Prerequisites
|
|
15
10
|
|
|
16
|
-
|
|
11
|
+
- Node.js version 16.16 or later. Download it from the official [Node.js website](https://nodejs.org/).
|
|
12
|
+
- Valid Truvity API credentials
|
|
17
13
|
|
|
18
|
-
|
|
14
|
+
### Installation
|
|
19
15
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
1. New OAPI spec release:
|
|
23
|
-
- truvity/api — 1.0.0
|
|
24
|
-
- truvity/sdk-typescript-internal — 1.0.0
|
|
25
|
-
2. We created a patch for SDK (eg. fixed security vulnerability in one of the dependency):
|
|
26
|
-
- truvity/api — 1.0.0
|
|
27
|
-
- truvity/sdk-typescript-internal — 1.0.1
|
|
28
|
-
3. We created a patch for OAPI spec (eg. fixed typo in the description):
|
|
29
|
-
- truvity/api — 1.0.1
|
|
30
|
-
- truvity/sdk-typescript-internal — 1.0.2
|
|
31
|
-
4. We added a new feature to the OAPI spec (eg. new set of API calls):
|
|
32
|
-
- truvity/api — 1.1.0
|
|
33
|
-
- truvity/sdk-typescript-internal — 1.1.0
|
|
34
|
-
5. We added a new feature to the SDK (eg. a set of helpers to work with JSON-LD)
|
|
35
|
-
- truvity/api — 1.1.0
|
|
36
|
-
- truvity/sdk-typescript-internal — 1.1.1
|
|
37
|
-
6. We made a breaking change in the OAPI spec (eg. removed a set of API calls):
|
|
38
|
-
- truvity/api — 2.0.0
|
|
39
|
-
- truvity/sdk-typescript-internal — 2.0.0
|
|
40
|
-
7. We made a breaking change in the SDK:
|
|
41
|
-
- truvity/api — 2.0.0
|
|
42
|
-
- truvity/sdk-typescript-internal — 2.0.1 — we should avoid this, but if it happens it’s still will be a patch.
|
|
43
|
-
|
|
44
|
-
### Work in Progress
|
|
45
|
-
|
|
46
|
-
To use changes in other repositories, you can use the autogenerated message available in your PR ([example](https://github.com/truvity/sdk-typescript-internal/pull/62#issuecomment-2206722741)) or in the `cd/publish` job ([example](https://github.com/truvity/sdk-typescript-internal/actions/runs/9790645034/job/27032815426#step:7:5683))
|
|
47
|
-
|
|
48
|
-
### Stable Releases
|
|
49
|
-
|
|
50
|
-
After you merge your PR branch onto master, you will need to generate a new release tag. To do so, you'll need to follow the next steps:
|
|
51
|
-
|
|
52
|
-
1. go to `master` branch and make sure you have the latest local version:
|
|
53
|
-
|
|
54
|
-
```bash
|
|
55
|
-
git checkout master
|
|
56
|
-
git pull
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
2. check `openapi` version in `sdk.yaml` either via command
|
|
16
|
+
Use the `npm` command to install the Truvity SDK:
|
|
60
17
|
|
|
61
18
|
```bash
|
|
62
|
-
|
|
19
|
+
npm install @truvity/sdk
|
|
63
20
|
```
|
|
64
21
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
```yaml
|
|
68
|
-
---
|
|
69
|
-
openapi: 3.0.3
|
|
70
|
-
info:
|
|
71
|
-
title: truvity
|
|
72
|
-
description: Truvity Platform API.
|
|
73
|
-
version: 0.27.16-devel+7ecda6c08f04
|
|
74
|
-
...
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
3. Use the major and minor version from there in your new tag, along with the calculated patch version from git. For example:
|
|
78
|
-
|
|
79
|
-
```bash
|
|
80
|
-
git tag v0.27.19
|
|
81
|
-
git push --tags
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
**_NOTE_:** When issuing a pre-release, you need to format the tag as per [these instructions](https://github.com/truvity/engineering/blob/master/teams/devops/rollout-process/README.md#for-sdk). In this case, the tag should be: `v<major openapi>.<minor openapi>.<patch sdk>-rc.x`
|
|
85
|
-
|
|
86
|
-
## Updating the `package.json` packages
|
|
87
|
-
|
|
88
|
-
Whenever you update the list of packages used in the `package.json`, you need to update also the [api-bundle.ts](https://github.com/truvity/api/blob/771bc724750214ec311c4057ae69c07f5b546561/api-bundle.ts#L32) TypeScript configuration from `api` repo, in order to avoid Fern overriding the these changes during the next SDK generation.
|
|
22
|
+
Package link on [npm](https://www.npmjs.com/package/@truvity/sdk).
|
|
89
23
|
|
|
90
|
-
##
|
|
24
|
+
## Documentation
|
|
91
25
|
|
|
92
|
-
|
|
26
|
+
Read full Truvity SDK and API documentation at [https://docs.truvity.cloud/sdk](https://docs.truvity.cloud/sdk).
|
|
@@ -45,7 +45,7 @@ export declare class ApiKeys {
|
|
|
45
45
|
*/
|
|
46
46
|
apiKeyCreate(request: Truvity.ApiKeyCreateRequest, requestOptions?: ApiKeys.RequestOptions): Promise<Truvity.ResourceApiKeyFull>;
|
|
47
47
|
/**
|
|
48
|
-
* Search for
|
|
48
|
+
* Search for API Keys with extended filters capabilities.
|
|
49
49
|
*
|
|
50
50
|
* @param {Truvity.ApiKeySearchRequest} request
|
|
51
51
|
* @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -62,7 +62,7 @@ export declare class ApiKeys {
|
|
|
62
62
|
*/
|
|
63
63
|
apiKeySearch(request?: Truvity.ApiKeySearchRequest, requestOptions?: ApiKeys.RequestOptions): Promise<Truvity.ListApiKey>;
|
|
64
64
|
/**
|
|
65
|
-
* Get the latest version of
|
|
65
|
+
* Get the latest version of API Key.
|
|
66
66
|
*
|
|
67
67
|
* @param {string} id - The ID of the resource.
|
|
68
68
|
* @param {Truvity.ApiKeyLatestRequest} request
|
|
@@ -80,7 +80,7 @@ export declare class ApiKeys {
|
|
|
80
80
|
*/
|
|
81
81
|
apiKeyLatest(id: string, request?: Truvity.ApiKeyLatestRequest, requestOptions?: ApiKeys.RequestOptions): Promise<Truvity.ResourceApiKey>;
|
|
82
82
|
/**
|
|
83
|
-
* Delete
|
|
83
|
+
* Delete API Key's resource.
|
|
84
84
|
*
|
|
85
85
|
* @param {string} id - The primary and unique identifier of the resource (inside tenant)
|
|
86
86
|
* according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).
|
|
@@ -103,7 +103,7 @@ export declare class ApiKeys {
|
|
|
103
103
|
*/
|
|
104
104
|
apiKeyDelete(id: string, request: Truvity.ApiKeyDeleteRequest, requestOptions?: ApiKeys.RequestOptions): Promise<void>;
|
|
105
105
|
/**
|
|
106
|
-
* Update
|
|
106
|
+
* Update API Key's resource.
|
|
107
107
|
*
|
|
108
108
|
* @param {string} id - The primary and unique identifier of the resource (inside tenant)
|
|
109
109
|
* according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).
|
|
@@ -128,7 +128,7 @@ export declare class ApiKeys {
|
|
|
128
128
|
*/
|
|
129
129
|
apiKeyUpdate(id: string, request: Truvity.ApiKeyUpdateRequest, requestOptions?: ApiKeys.RequestOptions): Promise<Truvity.ResourceApiKey>;
|
|
130
130
|
/**
|
|
131
|
-
* Restore
|
|
131
|
+
* Restore API Key's resource.
|
|
132
132
|
*
|
|
133
133
|
* @param {string} id - The primary and unique identifier of the resource (inside tenant)
|
|
134
134
|
* according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).
|
|
@@ -150,7 +150,7 @@ export declare class ApiKeys {
|
|
|
150
150
|
*/
|
|
151
151
|
apiKeyRestore(id: string, request: Truvity.ApiKeyRestoreRequest, requestOptions?: ApiKeys.RequestOptions): Promise<Truvity.ResourceApiKey>;
|
|
152
152
|
/**
|
|
153
|
-
* History of the
|
|
153
|
+
* History of the API Key's resources.
|
|
154
154
|
*
|
|
155
155
|
* @param {string} id - The ID of the resource.
|
|
156
156
|
* @param {Truvity.ApiKeyHistoryRequest} request
|
|
@@ -168,7 +168,7 @@ export declare class ApiKeys {
|
|
|
168
168
|
*/
|
|
169
169
|
apiKeyHistory(id: string, request?: Truvity.ApiKeyHistoryRequest, requestOptions?: ApiKeys.RequestOptions): Promise<Truvity.ListApiKey>;
|
|
170
170
|
/**
|
|
171
|
-
* Read the specific version of the
|
|
171
|
+
* Read the specific version of the API Key's resource.
|
|
172
172
|
*
|
|
173
173
|
* @param {string} id - The ID of the resource.
|
|
174
174
|
* @param {number} revision - The revision of the resource.
|
|
@@ -77,7 +77,7 @@ class ApiKeys {
|
|
|
77
77
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
78
78
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'api-keys'),
|
|
79
79
|
method: 'POST',
|
|
80
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '
|
|
80
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
|
81
81
|
contentType: 'application/json',
|
|
82
82
|
requestType: 'json',
|
|
83
83
|
body: serializers.ApiKeyInput.jsonOrThrow(_body, { unrecognizedObjectKeys: 'strip', omitUndefined: true }),
|
|
@@ -160,7 +160,7 @@ class ApiKeys {
|
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
162
|
/**
|
|
163
|
-
* Search for
|
|
163
|
+
* Search for API Keys with extended filters capabilities.
|
|
164
164
|
*
|
|
165
165
|
* @param {Truvity.ApiKeySearchRequest} request
|
|
166
166
|
* @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -181,7 +181,7 @@ class ApiKeys {
|
|
|
181
181
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
182
182
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, 'api-keys/search'),
|
|
183
183
|
method: 'POST',
|
|
184
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '
|
|
184
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
185
185
|
contentType: 'application/json',
|
|
186
186
|
requestType: 'json',
|
|
187
187
|
body: serializers.ApiKeySearchRequest.jsonOrThrow(request, {
|
|
@@ -267,7 +267,7 @@ class ApiKeys {
|
|
|
267
267
|
});
|
|
268
268
|
}
|
|
269
269
|
/**
|
|
270
|
-
* Get the latest version of
|
|
270
|
+
* Get the latest version of API Key.
|
|
271
271
|
*
|
|
272
272
|
* @param {string} id - The ID of the resource.
|
|
273
273
|
* @param {Truvity.ApiKeyLatestRequest} request
|
|
@@ -290,7 +290,7 @@ class ApiKeys {
|
|
|
290
290
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
291
291
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}`),
|
|
292
292
|
method: 'GET',
|
|
293
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '
|
|
293
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
|
294
294
|
contentType: 'application/json',
|
|
295
295
|
requestType: 'json',
|
|
296
296
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -372,7 +372,7 @@ class ApiKeys {
|
|
|
372
372
|
});
|
|
373
373
|
}
|
|
374
374
|
/**
|
|
375
|
-
* Delete
|
|
375
|
+
* Delete API Key's resource.
|
|
376
376
|
*
|
|
377
377
|
* @param {string} id - The primary and unique identifier of the resource (inside tenant)
|
|
378
378
|
* according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).
|
|
@@ -400,7 +400,7 @@ class ApiKeys {
|
|
|
400
400
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
401
401
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}`),
|
|
402
402
|
method: 'DELETE',
|
|
403
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '
|
|
403
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())),
|
|
404
404
|
contentType: 'application/json',
|
|
405
405
|
requestType: 'json',
|
|
406
406
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -491,7 +491,7 @@ class ApiKeys {
|
|
|
491
491
|
});
|
|
492
492
|
}
|
|
493
493
|
/**
|
|
494
|
-
* Update
|
|
494
|
+
* Update API Key's resource.
|
|
495
495
|
*
|
|
496
496
|
* @param {string} id - The primary and unique identifier of the resource (inside tenant)
|
|
497
497
|
* according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).
|
|
@@ -521,7 +521,7 @@ class ApiKeys {
|
|
|
521
521
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
522
522
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}`),
|
|
523
523
|
method: 'PATCH',
|
|
524
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '
|
|
524
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())),
|
|
525
525
|
contentType: 'application/json',
|
|
526
526
|
requestType: 'json',
|
|
527
527
|
body: serializers.ApiKeyInput.jsonOrThrow(_body, { unrecognizedObjectKeys: 'strip', omitUndefined: true }),
|
|
@@ -625,7 +625,7 @@ class ApiKeys {
|
|
|
625
625
|
});
|
|
626
626
|
}
|
|
627
627
|
/**
|
|
628
|
-
* Restore
|
|
628
|
+
* Restore API Key's resource.
|
|
629
629
|
*
|
|
630
630
|
* @param {string} id - The primary and unique identifier of the resource (inside tenant)
|
|
631
631
|
* according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).
|
|
@@ -652,7 +652,7 @@ class ApiKeys {
|
|
|
652
652
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
653
653
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}/restore`),
|
|
654
654
|
method: 'POST',
|
|
655
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '
|
|
655
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())),
|
|
656
656
|
contentType: 'application/json',
|
|
657
657
|
requestType: 'json',
|
|
658
658
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -741,7 +741,7 @@ class ApiKeys {
|
|
|
741
741
|
});
|
|
742
742
|
}
|
|
743
743
|
/**
|
|
744
|
-
* History of the
|
|
744
|
+
* History of the API Key's resources.
|
|
745
745
|
*
|
|
746
746
|
* @param {string} id - The ID of the resource.
|
|
747
747
|
* @param {Truvity.ApiKeyHistoryRequest} request
|
|
@@ -764,7 +764,7 @@ class ApiKeys {
|
|
|
764
764
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
765
765
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}/revisions`),
|
|
766
766
|
method: 'GET',
|
|
767
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '
|
|
767
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
|
768
768
|
contentType: 'application/json',
|
|
769
769
|
requestType: 'json',
|
|
770
770
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -846,7 +846,7 @@ class ApiKeys {
|
|
|
846
846
|
});
|
|
847
847
|
}
|
|
848
848
|
/**
|
|
849
|
-
* Read the specific version of the
|
|
849
|
+
* Read the specific version of the API Key's resource.
|
|
850
850
|
*
|
|
851
851
|
* @param {string} id - The ID of the resource.
|
|
852
852
|
* @param {number} revision - The revision of the resource.
|
|
@@ -870,7 +870,7 @@ class ApiKeys {
|
|
|
870
870
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
871
871
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}`),
|
|
872
872
|
method: 'GET',
|
|
873
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '
|
|
873
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': 'v0.28.3', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
|
874
874
|
contentType: 'application/json',
|
|
875
875
|
requestType: 'json',
|
|
876
876
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|