@truvity/sdk 0.27.9-rc.1 → 0.27.22
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/.dockerignore +5 -0
- package/.idea/aws.xml +17 -0
- package/.idea/codeStyles/Project.xml +47 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/sdk-typescript-internal.iml +9 -0
- package/.idea/vcs.xml +6 -0
- package/Client.d.ts +6 -0
- package/Client.js +24 -14
- package/Dockerfile +11 -0
- package/Makefile +40 -4
- package/README.md +87 -0
- package/api/errors/index.d.ts +1 -1
- package/api/errors/index.js +1 -1
- package/api/resources/apiKeys/client/Client.d.ts +181 -0
- package/api/resources/apiKeys/client/Client.js +841 -0
- package/api/resources/apiKeys/client/index.d.ts +1 -0
- package/api/resources/apiKeys/client/index.js +17 -0
- package/api/resources/apiKeys/client/requests/ApiKeyCreateRequest.d.ts +69 -0
- package/api/resources/apiKeys/client/requests/ApiKeyDeleteRequest.d.ts +97 -0
- package/api/resources/apiKeys/client/requests/ApiKeyHistoryRequest.d.ts +57 -0
- package/api/resources/apiKeys/client/requests/ApiKeyHistoryRequest.js +5 -0
- package/api/resources/apiKeys/client/requests/ApiKeyLatestRequest.d.ts +57 -0
- package/api/resources/apiKeys/client/requests/ApiKeyLatestRequest.js +5 -0
- package/api/resources/apiKeys/client/requests/ApiKeyRestoreRequest.d.ts +97 -0
- package/api/resources/apiKeys/client/requests/ApiKeyRestoreRequest.js +5 -0
- package/api/resources/apiKeys/client/requests/ApiKeyRevisionRequest.d.ts +57 -0
- package/api/resources/apiKeys/client/requests/ApiKeyRevisionRequest.js +5 -0
- package/api/resources/apiKeys/client/requests/ApiKeySearch.d.ts +32 -0
- package/api/resources/apiKeys/client/requests/ApiKeySearch.js +5 -0
- package/api/resources/apiKeys/client/requests/ApiKeyUpdateRequest.d.ts +115 -0
- package/api/resources/apiKeys/client/requests/ApiKeyUpdateRequest.js +5 -0
- package/api/resources/apiKeys/client/requests/index.d.ts +8 -0
- package/api/resources/apiKeys/client/requests/index.js +2 -0
- package/api/resources/apiKeys/index.d.ts +1 -0
- package/api/resources/apiKeys/index.js +17 -0
- package/api/resources/gdpr/client/Client.d.ts +41 -0
- package/api/resources/gdpr/client/Client.js +142 -0
- package/api/resources/gdpr/client/index.d.ts +1 -0
- package/api/resources/gdpr/client/index.js +17 -0
- package/api/resources/gdpr/client/requests/SupportRequest.d.ts +45 -0
- package/api/resources/gdpr/client/requests/SupportRequest.js +5 -0
- package/api/resources/gdpr/client/requests/index.d.ts +1 -0
- package/api/resources/gdpr/client/requests/index.js +2 -0
- package/api/resources/gdpr/index.d.ts +1 -0
- package/api/resources/gdpr/index.js +17 -0
- package/api/resources/index.d.ts +4 -0
- package/api/resources/index.js +5 -1
- package/api/resources/keys/client/Client.d.ts +9 -0
- package/api/resources/keys/client/Client.js +86 -0
- package/api/resources/keys/client/requests/DidcommMessageSignRequest.d.ts +48 -0
- package/api/resources/keys/client/requests/DidcommMessageSignRequest.js +5 -0
- package/api/resources/keys/client/requests/index.d.ts +1 -0
- package/api/types/ApiKey.d.ts +11 -0
- package/api/types/ApiKey.js +5 -0
- package/api/types/ApiKeyCreateOutput.d.ts +10 -0
- package/api/types/ApiKeyCreateOutput.js +5 -0
- package/api/types/ApiKeyField.d.ts +17 -0
- package/api/types/ApiKeyField.js +16 -0
- package/api/types/ApiKeyFilter.d.ts +18 -0
- package/api/types/ApiKeyFilter.js +5 -0
- package/api/types/ApiKeyFilterData.d.ts +8 -0
- package/api/types/ApiKeyFilterData.js +5 -0
- package/api/types/ApiKeyFull.d.ts +9 -0
- package/api/types/ApiKeyFull.js +5 -0
- package/api/types/ApiKeyInput.d.ts +13 -0
- package/api/types/ApiKeyInput.js +5 -0
- package/api/types/{DraftInputData.d.ts → ApiKeyList.d.ts} +2 -1
- package/api/types/ApiKeyList.js +5 -0
- package/api/types/ApiKeyResource.d.ts +10 -0
- package/api/types/ApiKeyResource.js +5 -0
- package/api/types/ApiKeySecret.d.ts +10 -0
- package/api/types/ApiKeySecret.js +5 -0
- package/api/types/ApiKeySort.d.ts +11 -0
- package/api/types/ApiKeySort.js +5 -0
- package/api/types/Draft.d.ts +10 -0
- package/api/types/Draft.js +5 -0
- package/api/types/DraftFilterData.d.ts +2 -0
- package/api/types/DraftFind.d.ts +4 -0
- package/api/types/DraftInput.d.ts +1 -1
- package/api/types/SubjectId.d.ts +7 -0
- package/api/types/SubjectId.js +5 -0
- package/api/types/SupportRequestType.d.ts +13 -0
- package/api/types/SupportRequestType.js +12 -0
- package/api/types/index.d.ts +14 -1
- package/api/types/index.js +14 -1
- package/dist/Client.d.ts +6 -0
- package/dist/Client.js +24 -14
- package/dist/api/errors/index.d.ts +1 -1
- package/dist/api/errors/index.js +1 -1
- package/dist/api/resources/apiKeys/client/Client.d.ts +181 -0
- package/dist/api/resources/apiKeys/client/Client.js +841 -0
- package/dist/api/resources/apiKeys/client/index.d.ts +1 -0
- package/dist/api/resources/apiKeys/client/index.js +17 -0
- package/dist/api/resources/apiKeys/client/requests/ApiKeyCreateRequest.d.ts +69 -0
- package/dist/api/resources/apiKeys/client/requests/ApiKeyCreateRequest.js +5 -0
- package/dist/api/resources/apiKeys/client/requests/ApiKeyDeleteRequest.d.ts +97 -0
- package/dist/api/resources/apiKeys/client/requests/ApiKeyDeleteRequest.js +5 -0
- package/dist/api/resources/apiKeys/client/requests/ApiKeyHistoryRequest.d.ts +57 -0
- package/dist/api/resources/apiKeys/client/requests/ApiKeyHistoryRequest.js +5 -0
- package/dist/api/resources/apiKeys/client/requests/ApiKeyLatestRequest.d.ts +57 -0
- package/dist/api/resources/apiKeys/client/requests/ApiKeyLatestRequest.js +5 -0
- package/dist/api/resources/apiKeys/client/requests/ApiKeyRestoreRequest.d.ts +97 -0
- package/dist/api/resources/apiKeys/client/requests/ApiKeyRestoreRequest.js +5 -0
- package/dist/api/resources/apiKeys/client/requests/ApiKeyRevisionRequest.d.ts +57 -0
- package/dist/api/resources/apiKeys/client/requests/ApiKeyRevisionRequest.js +5 -0
- package/dist/api/resources/apiKeys/client/requests/ApiKeySearch.d.ts +32 -0
- package/dist/api/resources/apiKeys/client/requests/ApiKeySearch.js +5 -0
- package/dist/api/resources/apiKeys/client/requests/ApiKeyUpdateRequest.d.ts +115 -0
- package/dist/api/resources/apiKeys/client/requests/ApiKeyUpdateRequest.js +5 -0
- package/dist/api/resources/apiKeys/client/requests/index.d.ts +8 -0
- package/dist/api/resources/apiKeys/client/requests/index.js +2 -0
- package/dist/api/resources/apiKeys/index.d.ts +1 -0
- package/dist/api/resources/apiKeys/index.js +17 -0
- package/dist/api/resources/gdpr/client/Client.d.ts +41 -0
- package/dist/api/resources/gdpr/client/Client.js +142 -0
- package/dist/api/resources/gdpr/client/index.d.ts +1 -0
- package/dist/api/resources/gdpr/client/index.js +17 -0
- package/dist/api/resources/gdpr/client/requests/SupportRequest.d.ts +45 -0
- package/dist/api/resources/gdpr/client/requests/SupportRequest.js +5 -0
- package/dist/api/resources/gdpr/client/requests/index.d.ts +1 -0
- package/dist/api/resources/gdpr/client/requests/index.js +2 -0
- package/dist/api/resources/gdpr/index.d.ts +1 -0
- package/dist/api/resources/gdpr/index.js +17 -0
- package/dist/api/resources/index.d.ts +4 -0
- package/dist/api/resources/index.js +5 -1
- package/dist/api/resources/keys/client/Client.d.ts +9 -0
- package/dist/api/resources/keys/client/Client.js +86 -0
- package/dist/api/resources/keys/client/requests/DidcommMessageSignRequest.d.ts +48 -0
- package/dist/api/resources/keys/client/requests/DidcommMessageSignRequest.js +5 -0
- package/dist/api/resources/keys/client/requests/index.d.ts +1 -0
- package/dist/api/types/ApiKey.d.ts +11 -0
- package/dist/api/types/ApiKey.js +5 -0
- package/dist/api/types/ApiKeyCreateOutput.d.ts +10 -0
- package/dist/api/types/ApiKeyCreateOutput.js +5 -0
- package/dist/api/types/ApiKeyField.d.ts +17 -0
- package/dist/api/types/ApiKeyField.js +16 -0
- package/dist/api/types/ApiKeyFilter.d.ts +18 -0
- package/dist/api/types/ApiKeyFilter.js +5 -0
- package/dist/api/types/ApiKeyFilterData.d.ts +8 -0
- package/dist/api/types/ApiKeyFilterData.js +5 -0
- package/dist/api/types/ApiKeyFull.d.ts +9 -0
- package/dist/api/types/ApiKeyFull.js +5 -0
- package/dist/api/types/ApiKeyInput.d.ts +13 -0
- package/dist/api/types/ApiKeyInput.js +5 -0
- package/dist/api/types/{DraftInputData.d.ts → ApiKeyList.d.ts} +2 -1
- package/dist/api/types/ApiKeyList.js +5 -0
- package/dist/api/types/ApiKeyResource.d.ts +10 -0
- package/dist/api/types/ApiKeyResource.js +5 -0
- package/dist/api/types/ApiKeySecret.d.ts +10 -0
- package/dist/api/types/ApiKeySecret.js +5 -0
- package/dist/api/types/ApiKeySort.d.ts +11 -0
- package/dist/api/types/ApiKeySort.js +5 -0
- package/dist/api/types/Draft.d.ts +10 -0
- package/dist/api/types/Draft.js +5 -0
- package/dist/api/types/DraftFilterData.d.ts +2 -0
- package/dist/api/types/DraftFind.d.ts +4 -0
- package/dist/api/types/DraftInput.d.ts +1 -1
- package/dist/api/types/SubjectId.d.ts +7 -0
- package/dist/api/types/SubjectId.js +5 -0
- package/dist/api/types/SupportRequestType.d.ts +13 -0
- package/dist/api/types/SupportRequestType.js +12 -0
- package/dist/api/types/index.d.ts +14 -1
- package/dist/api/types/index.js +14 -1
- package/dist/documents/credential/draft.d.ts +3 -3
- package/dist/documents/credential/flavor.js +9 -0
- package/dist/documents/credential/flavor.spec.js +6 -0
- package/dist/documents/credential.d.ts +9 -2
- package/dist/documents/credential.js +81 -25
- package/dist/documents/types.d.ts +6 -1
- package/dist/serialization/resources/apiKeys/client/index.d.ts +1 -0
- package/dist/serialization/resources/apiKeys/client/index.js +17 -0
- package/dist/serialization/resources/apiKeys/client/requests/ApiKeySearch.d.ts +15 -0
- package/dist/serialization/resources/apiKeys/client/requests/ApiKeySearch.js +36 -0
- package/dist/serialization/resources/apiKeys/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/apiKeys/client/requests/index.js +5 -0
- package/dist/serialization/resources/apiKeys/index.d.ts +1 -0
- package/dist/serialization/resources/apiKeys/index.js +17 -0
- package/dist/serialization/resources/gdpr/client/index.d.ts +1 -0
- package/dist/serialization/resources/gdpr/client/index.js +17 -0
- package/dist/serialization/resources/gdpr/client/requests/SupportRequest.d.ts +14 -0
- package/dist/serialization/resources/gdpr/client/requests/SupportRequest.js +35 -0
- package/dist/serialization/resources/gdpr/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/gdpr/client/requests/index.js +5 -0
- package/dist/serialization/resources/gdpr/index.d.ts +1 -0
- package/dist/serialization/resources/gdpr/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +5 -1
- package/dist/serialization/resources/index.js +6 -2
- package/dist/serialization/resources/keys/client/didcommMessageSign.d.ts +9 -0
- package/dist/serialization/resources/keys/client/didcommMessageSign.js +31 -0
- package/dist/serialization/resources/keys/client/index.d.ts +1 -0
- package/dist/serialization/resources/keys/client/index.js +14 -0
- package/dist/serialization/types/ApiKey.d.ts +15 -0
- package/dist/serialization/types/ApiKey.js +36 -0
- package/dist/serialization/types/ApiKeyCreateOutput.d.ts +14 -0
- package/dist/serialization/types/ApiKeyCreateOutput.js +37 -0
- package/dist/serialization/types/ApiKeyField.d.ts +10 -0
- package/dist/serialization/types/ApiKeyField.js +40 -0
- package/dist/serialization/types/ApiKeyFilter.d.ts +28 -0
- package/dist/serialization/types/ApiKeyFilter.js +49 -0
- package/dist/serialization/types/ApiKeyFilterData.d.ts +15 -0
- package/dist/serialization/types/ApiKeyFilterData.js +36 -0
- package/dist/serialization/types/ApiKeyFull.d.ts +13 -0
- package/dist/serialization/types/ApiKeyFull.js +33 -0
- package/dist/serialization/types/ApiKeyInput.d.ts +15 -0
- package/dist/serialization/types/ApiKeyInput.js +36 -0
- package/dist/serialization/types/ApiKeyList.d.ts +13 -0
- package/dist/serialization/types/ApiKeyList.js +34 -0
- package/dist/serialization/types/ApiKeyResource.d.ts +14 -0
- package/dist/serialization/types/ApiKeyResource.js +37 -0
- package/dist/serialization/types/ApiKeySecret.d.ts +12 -0
- package/dist/serialization/types/ApiKeySecret.js +33 -0
- package/dist/serialization/types/ApiKeySort.d.ts +15 -0
- package/dist/serialization/types/ApiKeySort.js +36 -0
- package/dist/serialization/types/Draft.d.ts +14 -0
- package/dist/serialization/types/{DraftInputData.js → Draft.js} +7 -3
- package/dist/serialization/types/DraftFilterData.d.ts +3 -0
- package/dist/serialization/types/DraftFilterData.js +3 -0
- package/dist/serialization/types/DraftFind.d.ts +3 -0
- package/dist/serialization/types/DraftFind.js +3 -0
- package/dist/serialization/types/DraftInput.d.ts +2 -2
- package/dist/serialization/types/DraftInput.js +2 -2
- package/dist/serialization/types/SubjectId.d.ts +10 -0
- package/dist/serialization/types/SubjectId.js +31 -0
- package/dist/serialization/types/SupportRequestType.d.ts +10 -0
- package/dist/serialization/types/SupportRequestType.js +31 -0
- package/dist/serialization/types/index.d.ts +14 -1
- package/dist/serialization/types/index.js +14 -1
- package/documents/credential/draft.d.ts +3 -3
- package/documents/credential/flavor.js +9 -0
- package/documents/credential/flavor.spec.js +6 -0
- package/documents/credential.d.ts +9 -2
- package/documents/credential.js +81 -25
- package/documents/types.d.ts +6 -1
- package/jest.config.js +25 -0
- package/package.json +9 -3
- package/publish.sh +11 -2
- package/sdk.yaml +689 -14
- package/serialization/resources/apiKeys/client/index.d.ts +1 -0
- package/serialization/resources/apiKeys/client/index.js +17 -0
- package/serialization/resources/apiKeys/client/requests/ApiKeySearch.d.ts +15 -0
- package/serialization/resources/apiKeys/client/requests/ApiKeySearch.js +36 -0
- package/serialization/resources/apiKeys/client/requests/index.d.ts +1 -0
- package/serialization/resources/apiKeys/client/requests/index.js +5 -0
- package/serialization/resources/apiKeys/index.d.ts +1 -0
- package/serialization/resources/apiKeys/index.js +17 -0
- package/serialization/resources/gdpr/client/index.d.ts +1 -0
- package/serialization/resources/gdpr/client/index.js +17 -0
- package/serialization/resources/gdpr/client/requests/SupportRequest.d.ts +14 -0
- package/serialization/resources/gdpr/client/requests/SupportRequest.js +35 -0
- package/serialization/resources/gdpr/client/requests/index.d.ts +1 -0
- package/serialization/resources/gdpr/client/requests/index.js +5 -0
- package/serialization/resources/gdpr/index.d.ts +1 -0
- package/serialization/resources/gdpr/index.js +17 -0
- package/serialization/resources/index.d.ts +5 -1
- package/serialization/resources/index.js +6 -2
- package/serialization/resources/keys/client/didcommMessageSign.d.ts +9 -0
- package/serialization/resources/keys/client/didcommMessageSign.js +31 -0
- package/serialization/resources/keys/client/index.d.ts +1 -0
- package/serialization/resources/keys/client/index.js +14 -0
- package/serialization/types/ApiKey.d.ts +15 -0
- package/serialization/types/ApiKey.js +36 -0
- package/serialization/types/ApiKeyCreateOutput.d.ts +14 -0
- package/serialization/types/ApiKeyCreateOutput.js +37 -0
- package/serialization/types/ApiKeyField.d.ts +10 -0
- package/serialization/types/ApiKeyField.js +40 -0
- package/serialization/types/ApiKeyFilter.d.ts +28 -0
- package/serialization/types/ApiKeyFilter.js +49 -0
- package/serialization/types/ApiKeyFilterData.d.ts +15 -0
- package/serialization/types/ApiKeyFilterData.js +36 -0
- package/serialization/types/ApiKeyFull.d.ts +13 -0
- package/serialization/types/ApiKeyFull.js +33 -0
- package/serialization/types/ApiKeyInput.d.ts +15 -0
- package/serialization/types/ApiKeyInput.js +36 -0
- package/serialization/types/ApiKeyList.d.ts +13 -0
- package/serialization/types/ApiKeyList.js +34 -0
- package/serialization/types/ApiKeyResource.d.ts +14 -0
- package/serialization/types/ApiKeyResource.js +37 -0
- package/serialization/types/ApiKeySecret.d.ts +12 -0
- package/serialization/types/ApiKeySecret.js +33 -0
- package/serialization/types/ApiKeySort.d.ts +15 -0
- package/serialization/types/ApiKeySort.js +36 -0
- package/serialization/types/Draft.d.ts +14 -0
- package/serialization/types/{DraftInputData.js → Draft.js} +7 -3
- package/serialization/types/DraftFilterData.d.ts +3 -0
- package/serialization/types/DraftFilterData.js +3 -0
- package/serialization/types/DraftFind.d.ts +3 -0
- package/serialization/types/DraftFind.js +3 -0
- package/serialization/types/DraftInput.d.ts +2 -2
- package/serialization/types/DraftInput.js +2 -2
- package/serialization/types/SubjectId.d.ts +10 -0
- package/serialization/types/SubjectId.js +31 -0
- package/serialization/types/SupportRequestType.d.ts +10 -0
- package/serialization/types/SupportRequestType.js +31 -0
- package/serialization/types/index.d.ts +14 -1
- package/serialization/types/index.js +14 -1
- package/tsconfig.base.json +11 -0
- package/tsconfig.sdk.json +15 -0
- package/variables.mk +5 -0
- package/dist/serialization/types/DraftInputData.d.ts +0 -13
- package/serialization/types/DraftInputData.d.ts +0 -13
- /package/api/{types/DraftInputData.js → resources/apiKeys/client/requests/ApiKeyCreateRequest.js} +0 -0
- /package/{dist/api/types/DraftInputData.js → api/resources/apiKeys/client/requests/ApiKeyDeleteRequest.js} +0 -0
package/.dockerignore
ADDED
package/.idea/aws.xml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="accountSettings">
|
|
4
|
+
<option name="activeProfile" value="profile:default" />
|
|
5
|
+
<option name="activeRegion" value="eu-west-1" />
|
|
6
|
+
<option name="recentlyUsedProfiles">
|
|
7
|
+
<list>
|
|
8
|
+
<option value="profile:default" />
|
|
9
|
+
</list>
|
|
10
|
+
</option>
|
|
11
|
+
<option name="recentlyUsedRegions">
|
|
12
|
+
<list>
|
|
13
|
+
<option value="eu-west-1" />
|
|
14
|
+
</list>
|
|
15
|
+
</option>
|
|
16
|
+
</component>
|
|
17
|
+
</project>
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<component name="ProjectCodeStyleConfiguration">
|
|
2
|
+
<code_scheme name="Project" version="173">
|
|
3
|
+
<HTMLCodeStyleSettings>
|
|
4
|
+
<option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
|
|
5
|
+
</HTMLCodeStyleSettings>
|
|
6
|
+
<JSCodeStyleSettings version="0">
|
|
7
|
+
<option name="FORCE_SEMICOLON_STYLE" value="true" />
|
|
8
|
+
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
|
|
9
|
+
<option name="FORCE_QUOTE_STYlE" value="true" />
|
|
10
|
+
<option name="ENFORCE_TRAILING_COMMA" value="Remove" />
|
|
11
|
+
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
|
|
12
|
+
<option name="SPACES_WITHIN_IMPORTS" value="true" />
|
|
13
|
+
</JSCodeStyleSettings>
|
|
14
|
+
<TypeScriptCodeStyleSettings version="0">
|
|
15
|
+
<option name="FORCE_SEMICOLON_STYLE" value="true" />
|
|
16
|
+
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
|
|
17
|
+
<option name="FORCE_QUOTE_STYlE" value="true" />
|
|
18
|
+
<option name="ENFORCE_TRAILING_COMMA" value="Remove" />
|
|
19
|
+
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
|
|
20
|
+
<option name="SPACES_WITHIN_IMPORTS" value="true" />
|
|
21
|
+
<option name="USE_PATH_MAPPING" value="DIFFERENT_PATHS" />
|
|
22
|
+
</TypeScriptCodeStyleSettings>
|
|
23
|
+
<VueCodeStyleSettings>
|
|
24
|
+
<option name="INTERPOLATION_NEW_LINE_AFTER_START_DELIMITER" value="false" />
|
|
25
|
+
<option name="INTERPOLATION_NEW_LINE_BEFORE_END_DELIMITER" value="false" />
|
|
26
|
+
</VueCodeStyleSettings>
|
|
27
|
+
<codeStyleSettings language="HTML">
|
|
28
|
+
<option name="SOFT_MARGINS" value="120" />
|
|
29
|
+
<indentOptions>
|
|
30
|
+
<option name="CONTINUATION_INDENT_SIZE" value="4" />
|
|
31
|
+
</indentOptions>
|
|
32
|
+
</codeStyleSettings>
|
|
33
|
+
<codeStyleSettings language="JavaScript">
|
|
34
|
+
<option name="SOFT_MARGINS" value="120" />
|
|
35
|
+
</codeStyleSettings>
|
|
36
|
+
<codeStyleSettings language="TypeScript">
|
|
37
|
+
<option name="SOFT_MARGINS" value="120" />
|
|
38
|
+
</codeStyleSettings>
|
|
39
|
+
<codeStyleSettings language="Vue">
|
|
40
|
+
<option name="SOFT_MARGINS" value="120" />
|
|
41
|
+
<indentOptions>
|
|
42
|
+
<option name="INDENT_SIZE" value="4" />
|
|
43
|
+
<option name="TAB_SIZE" value="4" />
|
|
44
|
+
</indentOptions>
|
|
45
|
+
</codeStyleSettings>
|
|
46
|
+
</code_scheme>
|
|
47
|
+
</component>
|
package/.idea/misc.xml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="openjdk-17" project-jdk-type="JavaSDK">
|
|
4
|
+
<output url="file://$PROJECT_DIR$/out" />
|
|
5
|
+
</component>
|
|
6
|
+
</project>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectModuleManager">
|
|
4
|
+
<modules>
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/sdk-typescript-internal.iml" filepath="$PROJECT_DIR$/.idea/sdk-typescript-internal.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="JAVA_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
4
|
+
<exclude-output />
|
|
5
|
+
<content url="file://$MODULE_DIR$" />
|
|
6
|
+
<orderEntry type="inheritedJdk" />
|
|
7
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
8
|
+
</component>
|
|
9
|
+
</module>
|
package/.idea/vcs.xml
ADDED
package/Client.d.ts
CHANGED
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "./environments";
|
|
5
5
|
import * as core from "./core";
|
|
6
|
+
import { ApiKeys } from "./api/resources/apiKeys/client/Client";
|
|
6
7
|
import { Credentials } from "./api/resources/credentials/client/Client";
|
|
7
8
|
import { DidcommMessages } from "./api/resources/didcommMessages/client/Client";
|
|
8
9
|
import { Drafts } from "./api/resources/drafts/client/Client";
|
|
9
10
|
import { Files } from "./api/resources/files/client/Client";
|
|
10
11
|
import { Keys } from "./api/resources/keys/client/Client";
|
|
11
12
|
import { Presentations } from "./api/resources/presentations/client/Client";
|
|
13
|
+
import { Gdpr } from "./api/resources/gdpr/client/Client";
|
|
12
14
|
import { Desk } from "./api/resources/desk/client/Client";
|
|
13
15
|
export declare namespace TruvityClient {
|
|
14
16
|
interface Options {
|
|
@@ -24,6 +26,8 @@ export declare namespace TruvityClient {
|
|
|
24
26
|
export declare class TruvityClient {
|
|
25
27
|
protected readonly _options: TruvityClient.Options;
|
|
26
28
|
constructor(_options: TruvityClient.Options);
|
|
29
|
+
protected _apiKeys: ApiKeys | undefined;
|
|
30
|
+
get apiKeys(): ApiKeys;
|
|
27
31
|
protected _credentials: Credentials | undefined;
|
|
28
32
|
get credentials(): Credentials;
|
|
29
33
|
protected _didcommMessages: DidcommMessages | undefined;
|
|
@@ -36,6 +40,8 @@ export declare class TruvityClient {
|
|
|
36
40
|
get keys(): Keys;
|
|
37
41
|
protected _presentations: Presentations | undefined;
|
|
38
42
|
get presentations(): Presentations;
|
|
43
|
+
protected _gdpr: Gdpr | undefined;
|
|
44
|
+
get gdpr(): Gdpr;
|
|
39
45
|
protected _desk: Desk | undefined;
|
|
40
46
|
get desk(): Desk;
|
|
41
47
|
}
|
package/Client.js
CHANGED
|
@@ -4,44 +4,54 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.TruvityClient = void 0;
|
|
7
|
-
const Client_1 = require("./api/resources/
|
|
8
|
-
const Client_2 = require("./api/resources/
|
|
9
|
-
const Client_3 = require("./api/resources/
|
|
10
|
-
const Client_4 = require("./api/resources/
|
|
11
|
-
const Client_5 = require("./api/resources/
|
|
12
|
-
const Client_6 = require("./api/resources/
|
|
13
|
-
const Client_7 = require("./api/resources/
|
|
7
|
+
const Client_1 = require("./api/resources/apiKeys/client/Client");
|
|
8
|
+
const Client_2 = require("./api/resources/credentials/client/Client");
|
|
9
|
+
const Client_3 = require("./api/resources/didcommMessages/client/Client");
|
|
10
|
+
const Client_4 = require("./api/resources/drafts/client/Client");
|
|
11
|
+
const Client_5 = require("./api/resources/files/client/Client");
|
|
12
|
+
const Client_6 = require("./api/resources/keys/client/Client");
|
|
13
|
+
const Client_7 = require("./api/resources/presentations/client/Client");
|
|
14
|
+
const Client_8 = require("./api/resources/gdpr/client/Client");
|
|
15
|
+
const Client_9 = require("./api/resources/desk/client/Client");
|
|
14
16
|
class TruvityClient {
|
|
15
17
|
constructor(_options) {
|
|
16
18
|
this._options = _options;
|
|
17
19
|
}
|
|
20
|
+
get apiKeys() {
|
|
21
|
+
var _a;
|
|
22
|
+
return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new Client_1.ApiKeys(this._options)));
|
|
23
|
+
}
|
|
18
24
|
get credentials() {
|
|
19
25
|
var _a;
|
|
20
|
-
return ((_a = this._credentials) !== null && _a !== void 0 ? _a : (this._credentials = new
|
|
26
|
+
return ((_a = this._credentials) !== null && _a !== void 0 ? _a : (this._credentials = new Client_2.Credentials(this._options)));
|
|
21
27
|
}
|
|
22
28
|
get didcommMessages() {
|
|
23
29
|
var _a;
|
|
24
|
-
return ((_a = this._didcommMessages) !== null && _a !== void 0 ? _a : (this._didcommMessages = new
|
|
30
|
+
return ((_a = this._didcommMessages) !== null && _a !== void 0 ? _a : (this._didcommMessages = new Client_3.DidcommMessages(this._options)));
|
|
25
31
|
}
|
|
26
32
|
get drafts() {
|
|
27
33
|
var _a;
|
|
28
|
-
return ((_a = this._drafts) !== null && _a !== void 0 ? _a : (this._drafts = new
|
|
34
|
+
return ((_a = this._drafts) !== null && _a !== void 0 ? _a : (this._drafts = new Client_4.Drafts(this._options)));
|
|
29
35
|
}
|
|
30
36
|
get files() {
|
|
31
37
|
var _a;
|
|
32
|
-
return ((_a = this._files) !== null && _a !== void 0 ? _a : (this._files = new
|
|
38
|
+
return ((_a = this._files) !== null && _a !== void 0 ? _a : (this._files = new Client_5.Files(this._options)));
|
|
33
39
|
}
|
|
34
40
|
get keys() {
|
|
35
41
|
var _a;
|
|
36
|
-
return ((_a = this._keys) !== null && _a !== void 0 ? _a : (this._keys = new
|
|
42
|
+
return ((_a = this._keys) !== null && _a !== void 0 ? _a : (this._keys = new Client_6.Keys(this._options)));
|
|
37
43
|
}
|
|
38
44
|
get presentations() {
|
|
39
45
|
var _a;
|
|
40
|
-
return ((_a = this._presentations) !== null && _a !== void 0 ? _a : (this._presentations = new
|
|
46
|
+
return ((_a = this._presentations) !== null && _a !== void 0 ? _a : (this._presentations = new Client_7.Presentations(this._options)));
|
|
47
|
+
}
|
|
48
|
+
get gdpr() {
|
|
49
|
+
var _a;
|
|
50
|
+
return ((_a = this._gdpr) !== null && _a !== void 0 ? _a : (this._gdpr = new Client_8.Gdpr(this._options)));
|
|
41
51
|
}
|
|
42
52
|
get desk() {
|
|
43
53
|
var _a;
|
|
44
|
-
return ((_a = this._desk) !== null && _a !== void 0 ? _a : (this._desk = new
|
|
54
|
+
return ((_a = this._desk) !== null && _a !== void 0 ? _a : (this._desk = new Client_9.Desk(this._options)));
|
|
45
55
|
}
|
|
46
56
|
}
|
|
47
57
|
exports.TruvityClient = TruvityClient;
|
package/Dockerfile
ADDED
package/Makefile
CHANGED
|
@@ -1,15 +1,51 @@
|
|
|
1
|
-
.
|
|
1
|
+
include variables.mk
|
|
2
|
+
|
|
3
|
+
.PHONY: prepare typecheck compile build test publish
|
|
2
4
|
|
|
3
5
|
prepare:
|
|
4
6
|
yarn
|
|
5
7
|
|
|
6
|
-
|
|
8
|
+
typecheck:
|
|
7
9
|
yarn build
|
|
8
10
|
|
|
11
|
+
compile:
|
|
12
|
+
yarn build --project tsconfig.sdk.json
|
|
13
|
+
|
|
14
|
+
build: typecheck
|
|
15
|
+
|
|
16
|
+
image:
|
|
17
|
+
docker build -t $(E2E_TESTS_IMAGE_NAME) .
|
|
18
|
+
|
|
19
|
+
push-image/version:
|
|
20
|
+
docker tag $(E2E_TESTS_IMAGE_NAME) $(FULL_IMAGE_NAME):$(VERSION)
|
|
21
|
+
docker push $(FULL_IMAGE_NAME):$(VERSION)
|
|
22
|
+
|
|
23
|
+
ifneq ($(filter $(STABILITY),$(STABILITY_LATEST)),)
|
|
24
|
+
push-image/latest:
|
|
25
|
+
docker tag $(E2E_TESTS_IMAGE_NAME) $(FULL_IMAGE_NAME):latest
|
|
26
|
+
docker push $(FULL_IMAGE_NAME):latest
|
|
27
|
+
else
|
|
28
|
+
push-image/latest:
|
|
29
|
+
$(info skipping latest tag for unstable versions)
|
|
30
|
+
endif
|
|
31
|
+
|
|
32
|
+
push-image: push-image/version push-image/latest
|
|
33
|
+
|
|
9
34
|
test:
|
|
10
|
-
yarn test
|
|
35
|
+
yarn test --selectProjects other
|
|
36
|
+
|
|
37
|
+
ifdef GITHUB_TOKEN
|
|
38
|
+
truectl/stand:
|
|
39
|
+
$(info skipping stand token generation in CI)
|
|
40
|
+
else
|
|
41
|
+
truectl/stand:
|
|
42
|
+
$(TRUECTL) stand token > tests/e2e/.truvity-installation.json
|
|
43
|
+
endif
|
|
44
|
+
|
|
45
|
+
test/e2e: truectl/stand
|
|
46
|
+
yarn test --selectProjects e2e
|
|
11
47
|
|
|
12
|
-
publish:
|
|
48
|
+
publish: compile
|
|
13
49
|
@echo 'Version: $(VERSION), release name: $(RELEASE_NAME)'
|
|
14
50
|
./publish.sh preview $(VERSION)
|
|
15
51
|
|
package/README.md
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# sdk-typescript-internal
|
|
2
|
+
|
|
3
|
+
<!-- TOC -->
|
|
4
|
+
|
|
5
|
+
- [sdk-typescript-internal](#sdk-typescript-internal)
|
|
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
|
+
|
|
11
|
+
<!-- /TOC -->
|
|
12
|
+
|
|
13
|
+
## Release Management
|
|
14
|
+
|
|
15
|
+
Any manual changes to the sdk-typescript-internal are to be made trough `patches`. The release tag for the sdk-typescript-internal will be:
|
|
16
|
+
|
|
17
|
+
`v<major openapi>.<minor openapi>.<patch sdk>`
|
|
18
|
+
|
|
19
|
+
Here’s an example in chronological order of how it will work:
|
|
20
|
+
|
|
21
|
+
1. New OAPI spec release:
|
|
22
|
+
- truvity/api — 1.0.0
|
|
23
|
+
- truvity/sdk-typescript-internal — 1.0.0
|
|
24
|
+
2. We created a patch for SDK (eg. fixed security vulnerability in one of the dependency):
|
|
25
|
+
- truvity/api — 1.0.0
|
|
26
|
+
- truvity/sdk-typescript-internal — 1.0.1
|
|
27
|
+
3. We created a patch for OAPI spec (eg. fixed typo in the description):
|
|
28
|
+
- truvity/api — 1.0.1
|
|
29
|
+
- truvity/sdk-typescript-internal — 1.0.2
|
|
30
|
+
4. We added a new feature to the OAPI spec (eg. new set of API calls):
|
|
31
|
+
- truvity/api — 1.1.0
|
|
32
|
+
- truvity/sdk-typescript-internal — 1.1.0
|
|
33
|
+
5. We added a new feature to the SDK (eg. a set of helpers to work with JSON-LD)
|
|
34
|
+
- truvity/api — 1.1.0
|
|
35
|
+
- truvity/sdk-typescript-internal — 1.1.1
|
|
36
|
+
6. We made a breaking change in the OAPI spec (eg. removed a set of API calls):
|
|
37
|
+
- truvity/api — 2.0.0
|
|
38
|
+
- truvity/sdk-typescript-internal — 2.0.0
|
|
39
|
+
7. We made a breaking change in the SDK:
|
|
40
|
+
- truvity/api — 2.0.0
|
|
41
|
+
- truvity/sdk-typescript-internal — 2.0.1 — we should avoid this, but if it happens it’s still will be a patch.
|
|
42
|
+
|
|
43
|
+
### Work in Progress
|
|
44
|
+
|
|
45
|
+
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))
|
|
46
|
+
|
|
47
|
+
### Stable Releases
|
|
48
|
+
|
|
49
|
+
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:
|
|
50
|
+
|
|
51
|
+
1. go to `master` branch and make sure you have the latest local version:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
git checkout master
|
|
55
|
+
git pull
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
2. check `openapi` version in `sdk.yaml` either via command
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
cat sdk.yaml | yq -r .info.version
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
or by checking directly the version mentioned in the `sdk.yaml`
|
|
65
|
+
|
|
66
|
+
```yaml
|
|
67
|
+
---
|
|
68
|
+
openapi: 3.0.3
|
|
69
|
+
info:
|
|
70
|
+
title: truvity
|
|
71
|
+
description: Truvity Platform API.
|
|
72
|
+
version: 0.27.16-devel+7ecda6c08f04
|
|
73
|
+
...
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
3. Use the major and minor version from there in your new tag, along with the calculated patch version from git. For example:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
git tag v0.27.19
|
|
80
|
+
git push --tags
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
**_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`
|
|
84
|
+
|
|
85
|
+
## Updating the `package.json` packages
|
|
86
|
+
|
|
87
|
+
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.
|
package/api/errors/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from "./BadRequestError";
|
|
2
2
|
export * from "./UnauthorizedError";
|
|
3
3
|
export * from "./ForbiddenError";
|
|
4
|
-
export * from "./NotFoundError";
|
|
5
4
|
export * from "./UnsupportedMediaTypeError";
|
|
6
5
|
export * from "./InternalServerError";
|
|
6
|
+
export * from "./NotFoundError";
|
|
7
7
|
export * from "./MethodNotAllowedError";
|
|
8
8
|
export * from "./PreconditionFailedError";
|
package/api/errors/index.js
CHANGED
|
@@ -17,8 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./BadRequestError"), exports);
|
|
18
18
|
__exportStar(require("./UnauthorizedError"), exports);
|
|
19
19
|
__exportStar(require("./ForbiddenError"), exports);
|
|
20
|
-
__exportStar(require("./NotFoundError"), exports);
|
|
21
20
|
__exportStar(require("./UnsupportedMediaTypeError"), exports);
|
|
22
21
|
__exportStar(require("./InternalServerError"), exports);
|
|
22
|
+
__exportStar(require("./NotFoundError"), exports);
|
|
23
23
|
__exportStar(require("./MethodNotAllowedError"), exports);
|
|
24
24
|
__exportStar(require("./PreconditionFailedError"), exports);
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import * as Truvity from "../../../index";
|
|
7
|
+
export declare namespace ApiKeys {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.TruvityEnvironment | string>;
|
|
10
|
+
apiKey: core.Supplier<string>;
|
|
11
|
+
fetcher?: core.FetchFunction;
|
|
12
|
+
}
|
|
13
|
+
interface RequestOptions {
|
|
14
|
+
timeoutInSeconds?: number;
|
|
15
|
+
maxRetries?: number;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The API to manage Truvity API's keys.
|
|
20
|
+
*/
|
|
21
|
+
export declare class ApiKeys {
|
|
22
|
+
protected readonly _options: ApiKeys.Options;
|
|
23
|
+
constructor(_options: ApiKeys.Options);
|
|
24
|
+
/**
|
|
25
|
+
* Create api-key's resource.
|
|
26
|
+
* @throws {@link Truvity.BadRequestError}
|
|
27
|
+
* @throws {@link Truvity.UnauthorizedError}
|
|
28
|
+
* @throws {@link Truvity.ForbiddenError}
|
|
29
|
+
* @throws {@link Truvity.UnsupportedMediaTypeError}
|
|
30
|
+
* @throws {@link Truvity.InternalServerError}
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* await truvity.apiKeys.apiKeyCreate({
|
|
34
|
+
* body: {}
|
|
35
|
+
* })
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* await truvity.apiKeys.apiKeyCreate({
|
|
39
|
+
* idempotencyKey: "string",
|
|
40
|
+
* body: {}
|
|
41
|
+
* })
|
|
42
|
+
*/
|
|
43
|
+
apiKeyCreate(request: Truvity.ApiKeyCreateRequest, requestOptions?: ApiKeys.RequestOptions): Promise<Truvity.ApiKeyCreateOutput>;
|
|
44
|
+
/**
|
|
45
|
+
* Take a look at [GET with body payload](https://opensource.zalando.com/restful-api-guidelines/#get-with-body)
|
|
46
|
+
*
|
|
47
|
+
* - no resources created: Returns all api-keys matching the query passed as request input payload.
|
|
48
|
+
* @throws {@link Truvity.BadRequestError}
|
|
49
|
+
* @throws {@link Truvity.UnauthorizedError}
|
|
50
|
+
* @throws {@link Truvity.ForbiddenError}
|
|
51
|
+
* @throws {@link Truvity.UnsupportedMediaTypeError}
|
|
52
|
+
* @throws {@link Truvity.InternalServerError}
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* await truvity.apiKeys.apiKeySearch()
|
|
56
|
+
*/
|
|
57
|
+
apiKeySearch(request?: Truvity.ApiKeySearch, requestOptions?: ApiKeys.RequestOptions): Promise<Truvity.ApiKeyList>;
|
|
58
|
+
/**
|
|
59
|
+
* Read the latest revision of the api-key's resource.
|
|
60
|
+
* @throws {@link Truvity.BadRequestError}
|
|
61
|
+
* @throws {@link Truvity.UnauthorizedError}
|
|
62
|
+
* @throws {@link Truvity.ForbiddenError}
|
|
63
|
+
* @throws {@link Truvity.NotFoundError}
|
|
64
|
+
* @throws {@link Truvity.InternalServerError}
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* await truvity.apiKeys.apiKeyLatest("id")
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* await truvity.apiKeys.apiKeyLatest("string", {
|
|
71
|
+
* ifNoneMatch: "string"
|
|
72
|
+
* })
|
|
73
|
+
*/
|
|
74
|
+
apiKeyLatest(id: Truvity.ResourceId, request?: Truvity.ApiKeyLatestRequest, requestOptions?: ApiKeys.RequestOptions): Promise<Truvity.ApiKeyResource>;
|
|
75
|
+
/**
|
|
76
|
+
* Delete api-key's resource.
|
|
77
|
+
* @throws {@link Truvity.BadRequestError}
|
|
78
|
+
* @throws {@link Truvity.UnauthorizedError}
|
|
79
|
+
* @throws {@link Truvity.ForbiddenError}
|
|
80
|
+
* @throws {@link Truvity.NotFoundError}
|
|
81
|
+
* @throws {@link Truvity.MethodNotAllowedError}
|
|
82
|
+
* @throws {@link Truvity.PreconditionFailedError}
|
|
83
|
+
* @throws {@link Truvity.InternalServerError}
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* await truvity.apiKeys.apiKeyDelete("id", {
|
|
87
|
+
* ifMatch: "If-Match"
|
|
88
|
+
* })
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* await truvity.apiKeys.apiKeyDelete("string", {
|
|
92
|
+
* idempotencyKey: "string",
|
|
93
|
+
* ifMatch: "string"
|
|
94
|
+
* })
|
|
95
|
+
*/
|
|
96
|
+
apiKeyDelete(id: Truvity.ResourceId, request: Truvity.ApiKeyDeleteRequest, requestOptions?: ApiKeys.RequestOptions): Promise<void>;
|
|
97
|
+
/**
|
|
98
|
+
* Update api-key's resource.
|
|
99
|
+
* @throws {@link Truvity.BadRequestError}
|
|
100
|
+
* @throws {@link Truvity.UnauthorizedError}
|
|
101
|
+
* @throws {@link Truvity.ForbiddenError}
|
|
102
|
+
* @throws {@link Truvity.NotFoundError}
|
|
103
|
+
* @throws {@link Truvity.MethodNotAllowedError}
|
|
104
|
+
* @throws {@link Truvity.PreconditionFailedError}
|
|
105
|
+
* @throws {@link Truvity.UnsupportedMediaTypeError}
|
|
106
|
+
* @throws {@link Truvity.InternalServerError}
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* await truvity.apiKeys.apiKeyUpdate("id", {
|
|
110
|
+
* ifMatch: "If-Match",
|
|
111
|
+
* body: {}
|
|
112
|
+
* })
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* await truvity.apiKeys.apiKeyUpdate("string", {
|
|
116
|
+
* idempotencyKey: "string",
|
|
117
|
+
* ifMatch: "string",
|
|
118
|
+
* body: {}
|
|
119
|
+
* })
|
|
120
|
+
*/
|
|
121
|
+
apiKeyUpdate(id: Truvity.ResourceId, request: Truvity.ApiKeyUpdateRequest, requestOptions?: ApiKeys.RequestOptions): Promise<Truvity.ApiKeyResource>;
|
|
122
|
+
/**
|
|
123
|
+
* Restore api-key's resource.
|
|
124
|
+
* @throws {@link Truvity.BadRequestError}
|
|
125
|
+
* @throws {@link Truvity.UnauthorizedError}
|
|
126
|
+
* @throws {@link Truvity.ForbiddenError}
|
|
127
|
+
* @throws {@link Truvity.NotFoundError}
|
|
128
|
+
* @throws {@link Truvity.MethodNotAllowedError}
|
|
129
|
+
* @throws {@link Truvity.PreconditionFailedError}
|
|
130
|
+
* @throws {@link Truvity.InternalServerError}
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* await truvity.apiKeys.apiKeyRestore("id", {
|
|
134
|
+
* ifMatch: "If-Match"
|
|
135
|
+
* })
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* await truvity.apiKeys.apiKeyRestore("string", {
|
|
139
|
+
* idempotencyKey: "string",
|
|
140
|
+
* ifMatch: "string"
|
|
141
|
+
* })
|
|
142
|
+
*/
|
|
143
|
+
apiKeyRestore(id: Truvity.ResourceId, request: Truvity.ApiKeyRestoreRequest, requestOptions?: ApiKeys.RequestOptions): Promise<Truvity.ApiKeyResource>;
|
|
144
|
+
/**
|
|
145
|
+
* History of the api-keys' resources.
|
|
146
|
+
* @throws {@link Truvity.BadRequestError}
|
|
147
|
+
* @throws {@link Truvity.UnauthorizedError}
|
|
148
|
+
* @throws {@link Truvity.ForbiddenError}
|
|
149
|
+
* @throws {@link Truvity.NotFoundError}
|
|
150
|
+
* @throws {@link Truvity.InternalServerError}
|
|
151
|
+
*
|
|
152
|
+
* @example
|
|
153
|
+
* await truvity.apiKeys.apiKeyHistory("id")
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* await truvity.apiKeys.apiKeyHistory("string", {
|
|
157
|
+
* ifNoneMatch: "string"
|
|
158
|
+
* })
|
|
159
|
+
*/
|
|
160
|
+
apiKeyHistory(id: Truvity.ResourceId, request?: Truvity.ApiKeyHistoryRequest, requestOptions?: ApiKeys.RequestOptions): Promise<Truvity.ApiKeyList>;
|
|
161
|
+
/**
|
|
162
|
+
* Read the specific version of the api-key's resource.
|
|
163
|
+
* @throws {@link Truvity.BadRequestError}
|
|
164
|
+
* @throws {@link Truvity.UnauthorizedError}
|
|
165
|
+
* @throws {@link Truvity.ForbiddenError}
|
|
166
|
+
* @throws {@link Truvity.NotFoundError}
|
|
167
|
+
* @throws {@link Truvity.InternalServerError}
|
|
168
|
+
*
|
|
169
|
+
* @example
|
|
170
|
+
* await truvity.apiKeys.apiKeyRevision("id", 1)
|
|
171
|
+
*
|
|
172
|
+
* @example
|
|
173
|
+
* await truvity.apiKeys.apiKeyRevision("string", 1, {
|
|
174
|
+
* ifNoneMatch: "string"
|
|
175
|
+
* })
|
|
176
|
+
*/
|
|
177
|
+
apiKeyRevision(id: Truvity.ResourceId, revision: Truvity.Revision, request?: Truvity.ApiKeyRevisionRequest, requestOptions?: ApiKeys.RequestOptions): Promise<Truvity.ApiKeyResource>;
|
|
178
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
179
|
+
"X-API-KEY": string;
|
|
180
|
+
}>;
|
|
181
|
+
}
|