@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
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Truvity from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* Create or update api-key's resource.
|
|
7
|
+
* If `labels` or `annotations` are omitted in an create request, the default empty object (`{}`) will be used.
|
|
8
|
+
* If `labels` or `annotations` are omitted in an update request, the current values remain untouched. Providing specific values updates the resoruce accordingly, while an empty object (`{}`) for either field clears its stored data.
|
|
9
|
+
*/
|
|
10
|
+
export interface ApiKeyInput {
|
|
11
|
+
annotations?: Truvity.Annotations;
|
|
12
|
+
labels?: Truvity.Labels;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Truvity from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* The api-key's resource (with general for all resources' fields).
|
|
7
|
+
*/
|
|
8
|
+
export interface ApiKeyResource extends Truvity.Resource {
|
|
9
|
+
data: Truvity.ApiKey;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Truvity from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* The Draft resource representation that used for Create/Update operations.
|
|
7
|
+
*/
|
|
8
|
+
export interface Draft extends Truvity.DraftShow {
|
|
9
|
+
meta?: Truvity.DraftMeta;
|
|
10
|
+
}
|
|
@@ -6,5 +6,9 @@ import * as Truvity from "../index";
|
|
|
6
6
|
* The fields that will be used only in the Filter request.
|
|
7
7
|
*/
|
|
8
8
|
export interface DraftFind {
|
|
9
|
+
/** A list of linked credentials. */
|
|
10
|
+
linkedCredentials?: Truvity.Uri[];
|
|
11
|
+
/** A list of linked drafts. */
|
|
12
|
+
linkedDrafts?: Truvity.Uri[];
|
|
9
13
|
meta?: Truvity.DraftMeta;
|
|
10
14
|
}
|
|
@@ -8,7 +8,7 @@ import * as Truvity from "../index";
|
|
|
8
8
|
* If `labels` or `annotations` are omitted in an update request, the current values remain untouched. Providing specific values updates the resoruce accordingly, while an empty object (`{}`) for either field clears its stored data.
|
|
9
9
|
*/
|
|
10
10
|
export interface DraftInput {
|
|
11
|
-
data: Truvity.
|
|
11
|
+
data: Truvity.Draft;
|
|
12
12
|
annotations?: Truvity.Annotations;
|
|
13
13
|
labels?: Truvity.Labels;
|
|
14
14
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Support request type.
|
|
6
|
+
*/
|
|
7
|
+
export declare type SupportRequestType = "DATA_DUMP" | "DELETION" | "OTHER" | "RECTIFICATION";
|
|
8
|
+
export declare const SupportRequestType: {
|
|
9
|
+
readonly DataDump: "DATA_DUMP";
|
|
10
|
+
readonly Deletion: "DELETION";
|
|
11
|
+
readonly Other: "OTHER";
|
|
12
|
+
readonly Rectification: "RECTIFICATION";
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.SupportRequestType = void 0;
|
|
7
|
+
exports.SupportRequestType = {
|
|
8
|
+
DataDump: "DATA_DUMP",
|
|
9
|
+
Deletion: "DELETION",
|
|
10
|
+
Other: "OTHER",
|
|
11
|
+
Rectification: "RECTIFICATION",
|
|
12
|
+
};
|
|
@@ -3,6 +3,17 @@ export * from "./NotFoundErrorBody";
|
|
|
3
3
|
export * from "./AnnotationKey";
|
|
4
4
|
export * from "./AnnotationValue";
|
|
5
5
|
export * from "./Annotations";
|
|
6
|
+
export * from "./ApiKey";
|
|
7
|
+
export * from "./ApiKeyCreateOutput";
|
|
8
|
+
export * from "./ApiKeyField";
|
|
9
|
+
export * from "./ApiKeyFilterData";
|
|
10
|
+
export * from "./ApiKeyFilter";
|
|
11
|
+
export * from "./ApiKeyFull";
|
|
12
|
+
export * from "./ApiKeyInput";
|
|
13
|
+
export * from "./ApiKeyList";
|
|
14
|
+
export * from "./ApiKeyResource";
|
|
15
|
+
export * from "./ApiKeySecret";
|
|
16
|
+
export * from "./ApiKeySort";
|
|
6
17
|
export * from "./BlobId";
|
|
7
18
|
export * from "./ContentType";
|
|
8
19
|
export * from "./Credential";
|
|
@@ -43,6 +54,7 @@ export * from "./DidcommMessageSend";
|
|
|
43
54
|
export * from "./DidcommMessageShow";
|
|
44
55
|
export * from "./DidcommMessageSort";
|
|
45
56
|
export * from "./Download";
|
|
57
|
+
export * from "./Draft";
|
|
46
58
|
export * from "./DraftBaseFieldValue";
|
|
47
59
|
export * from "./DraftEnumValue";
|
|
48
60
|
export * from "./DraftField";
|
|
@@ -70,7 +82,6 @@ export * from "./DraftFilterDataMeta";
|
|
|
70
82
|
export * from "./DraftFilterData";
|
|
71
83
|
export * from "./DraftFilter";
|
|
72
84
|
export * from "./DraftFind";
|
|
73
|
-
export * from "./DraftInputData";
|
|
74
85
|
export * from "./DraftInput";
|
|
75
86
|
export * from "./DraftIssueAndExport";
|
|
76
87
|
export * from "./DraftList";
|
|
@@ -203,6 +214,8 @@ export * from "./ResourceVersion";
|
|
|
203
214
|
export * from "./Revision";
|
|
204
215
|
export * from "./Service";
|
|
205
216
|
export * from "./SortOrder";
|
|
217
|
+
export * from "./SubjectId";
|
|
218
|
+
export * from "./SupportRequestType";
|
|
206
219
|
export * from "./Timestamp";
|
|
207
220
|
export * from "./Uri";
|
|
208
221
|
export * from "./UriReference";
|
package/dist/api/types/index.js
CHANGED
|
@@ -19,6 +19,17 @@ __exportStar(require("./NotFoundErrorBody"), exports);
|
|
|
19
19
|
__exportStar(require("./AnnotationKey"), exports);
|
|
20
20
|
__exportStar(require("./AnnotationValue"), exports);
|
|
21
21
|
__exportStar(require("./Annotations"), exports);
|
|
22
|
+
__exportStar(require("./ApiKey"), exports);
|
|
23
|
+
__exportStar(require("./ApiKeyCreateOutput"), exports);
|
|
24
|
+
__exportStar(require("./ApiKeyField"), exports);
|
|
25
|
+
__exportStar(require("./ApiKeyFilterData"), exports);
|
|
26
|
+
__exportStar(require("./ApiKeyFilter"), exports);
|
|
27
|
+
__exportStar(require("./ApiKeyFull"), exports);
|
|
28
|
+
__exportStar(require("./ApiKeyInput"), exports);
|
|
29
|
+
__exportStar(require("./ApiKeyList"), exports);
|
|
30
|
+
__exportStar(require("./ApiKeyResource"), exports);
|
|
31
|
+
__exportStar(require("./ApiKeySecret"), exports);
|
|
32
|
+
__exportStar(require("./ApiKeySort"), exports);
|
|
22
33
|
__exportStar(require("./BlobId"), exports);
|
|
23
34
|
__exportStar(require("./ContentType"), exports);
|
|
24
35
|
__exportStar(require("./Credential"), exports);
|
|
@@ -59,6 +70,7 @@ __exportStar(require("./DidcommMessageSend"), exports);
|
|
|
59
70
|
__exportStar(require("./DidcommMessageShow"), exports);
|
|
60
71
|
__exportStar(require("./DidcommMessageSort"), exports);
|
|
61
72
|
__exportStar(require("./Download"), exports);
|
|
73
|
+
__exportStar(require("./Draft"), exports);
|
|
62
74
|
__exportStar(require("./DraftBaseFieldValue"), exports);
|
|
63
75
|
__exportStar(require("./DraftEnumValue"), exports);
|
|
64
76
|
__exportStar(require("./DraftField"), exports);
|
|
@@ -86,7 +98,6 @@ __exportStar(require("./DraftFilterDataMeta"), exports);
|
|
|
86
98
|
__exportStar(require("./DraftFilterData"), exports);
|
|
87
99
|
__exportStar(require("./DraftFilter"), exports);
|
|
88
100
|
__exportStar(require("./DraftFind"), exports);
|
|
89
|
-
__exportStar(require("./DraftInputData"), exports);
|
|
90
101
|
__exportStar(require("./DraftInput"), exports);
|
|
91
102
|
__exportStar(require("./DraftIssueAndExport"), exports);
|
|
92
103
|
__exportStar(require("./DraftList"), exports);
|
|
@@ -219,6 +230,8 @@ __exportStar(require("./ResourceVersion"), exports);
|
|
|
219
230
|
__exportStar(require("./Revision"), exports);
|
|
220
231
|
__exportStar(require("./Service"), exports);
|
|
221
232
|
__exportStar(require("./SortOrder"), exports);
|
|
233
|
+
__exportStar(require("./SubjectId"), exports);
|
|
234
|
+
__exportStar(require("./SupportRequestType"), exports);
|
|
222
235
|
__exportStar(require("./Timestamp"), exports);
|
|
223
236
|
__exportStar(require("./Uri"), exports);
|
|
224
237
|
__exportStar(require("./UriReference"), exports);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type { ApiClient, Claims, UpdatePayload, ReadDraftClaims,
|
|
1
|
+
import type { ApiClient, Claims, UpdatePayload, ReadDraftClaims, CredentialDescriptor, UserUpdateClaims, DraftDataDescriptor, DraftMetadata } from "../types";
|
|
2
2
|
import { CredentialFlavor } from "./flavor";
|
|
3
3
|
import { CredentialDocument } from "./document";
|
|
4
4
|
import { VerifiableCredential } from "./issued";
|
|
5
5
|
export declare type UpdatePayloadWithClaims<T extends Claims> = UpdatePayload & {
|
|
6
6
|
claims?: UserUpdateClaims<T>;
|
|
7
|
-
metadata?:
|
|
7
|
+
metadata?: DraftMetadata;
|
|
8
8
|
};
|
|
9
9
|
export declare class DraftCredential<T extends Claims> extends CredentialDocument<T> {
|
|
10
10
|
private draftData;
|
|
11
11
|
descriptor: CredentialDescriptor;
|
|
12
12
|
constructor(client: ApiClient, flavor: CredentialFlavor<T>, draftData: DraftDataDescriptor, descriptor: CredentialDescriptor);
|
|
13
13
|
getClaims(): Promise<ReadDraftClaims<T>>;
|
|
14
|
-
getMetaData(): Promise<
|
|
14
|
+
getMetaData(): Promise<DraftMetadata>;
|
|
15
15
|
update(request: UpdatePayloadWithClaims<T>): Promise<DraftCredential<T>>;
|
|
16
16
|
issue(privateKeyId: string): Promise<VerifiableCredential<T>>;
|
|
17
17
|
}
|
|
@@ -57,7 +57,16 @@ class CredentialFlavor {
|
|
|
57
57
|
getMetadata(blob) {
|
|
58
58
|
return __awaiter(this, void 0, void 0, function* () {
|
|
59
59
|
const credential = this.blobToJson(blob);
|
|
60
|
+
if (!credential.id)
|
|
61
|
+
throw new Error(`Issued credential is missing the 'id' information`);
|
|
62
|
+
if (!credential.issuer)
|
|
63
|
+
throw new Error(`Issued credential is missing the 'issuer' information`);
|
|
64
|
+
if (!credential.issuanceDate)
|
|
65
|
+
throw new Error(`Issued credential is missing the 'issuanceDate' information`);
|
|
60
66
|
return {
|
|
67
|
+
id: credential.id,
|
|
68
|
+
issuer: credential.issuer,
|
|
69
|
+
issuanceDate: new Date(credential.issuanceDate),
|
|
61
70
|
subject: credential.credentialSubject.id,
|
|
62
71
|
expirationDate: credential.expirationDate ? new Date(credential.expirationDate) : undefined,
|
|
63
72
|
};
|
|
@@ -62,6 +62,9 @@ TestCredentialSubject = __decorate([
|
|
|
62
62
|
const jsonToBlob = (input) => Buffer.from(JSON.stringify(input), "utf8");
|
|
63
63
|
const testBlobJson = {
|
|
64
64
|
credentialSubject: { type: "TestCredentialSubject" },
|
|
65
|
+
id: "id",
|
|
66
|
+
issuer: "issuer",
|
|
67
|
+
issuanceDate: new Date().toISOString(),
|
|
65
68
|
};
|
|
66
69
|
const testBlob = jsonToBlob(testBlobJson);
|
|
67
70
|
describe("CredentialFlavor", () => {
|
|
@@ -77,6 +80,9 @@ describe("CredentialFlavor", () => {
|
|
|
77
80
|
expect(metadata).toEqual({
|
|
78
81
|
subject: undefined,
|
|
79
82
|
expirationDate: undefined,
|
|
83
|
+
id: testBlobJson.id,
|
|
84
|
+
issuanceDate: new Date(testBlobJson.issuanceDate),
|
|
85
|
+
issuer: testBlobJson.issuer,
|
|
80
86
|
});
|
|
81
87
|
}));
|
|
82
88
|
});
|
|
@@ -2,7 +2,7 @@ import type { ApiClient, Claims, Ctor, UpdatePayload, CredentialBlob } from "./t
|
|
|
2
2
|
import { CredentialFlavor } from "./credential/flavor";
|
|
3
3
|
import { DraftCredential } from "./credential/draft";
|
|
4
4
|
import { VerifiableCredential } from "./credential/issued";
|
|
5
|
-
import { DraftShowSchema } from "../api";
|
|
5
|
+
import { DraftResource, DraftShowSchema, CredentialResource } from "../api";
|
|
6
6
|
export declare type CredentialEnvelope<T extends Claims> = {
|
|
7
7
|
isVerifiable: false;
|
|
8
8
|
credential: DraftCredential<T>;
|
|
@@ -18,11 +18,18 @@ export declare class VcDecorator<T extends Claims> {
|
|
|
18
18
|
readonly flavor: CredentialFlavor<T>;
|
|
19
19
|
constructor(client: ApiClient, claimsModel: Ctor<T>);
|
|
20
20
|
protected createCredentialFlavor(claimsModel: Ctor<T>): CredentialFlavor<T>;
|
|
21
|
+
getIri(): string;
|
|
22
|
+
getCredentialTerm(): string;
|
|
23
|
+
canMap(input: DraftResource | CredentialResource): boolean;
|
|
24
|
+
map(input: CredentialResource): Promise<VerifiableCredential<T>>;
|
|
25
|
+
map(input: DraftResource): Promise<DraftCredential<T>>;
|
|
21
26
|
private importBlob;
|
|
22
27
|
private convertClaimDescriptorToDraftBaseFieldValue;
|
|
23
28
|
private mapClaimToApi;
|
|
24
29
|
protected getDraftSchema(): DraftShowSchema | undefined;
|
|
25
30
|
create(request?: UpdatePayload): Promise<DraftCredential<T>>;
|
|
31
|
+
loadAsDraft(id: string, revision?: number): Promise<DraftCredential<T>>;
|
|
32
|
+
loadAsCredential(id: string, revision?: number): Promise<VerifiableCredential<T>>;
|
|
26
33
|
load(id: string, revision?: number): Promise<LoadedCredential<T>>;
|
|
27
|
-
import(blob: CredentialBlob, request?: UpdatePayload): Promise<
|
|
34
|
+
import(blob: CredentialBlob, request?: UpdatePayload): Promise<VerifiableCredential<T>>;
|
|
28
35
|
}
|
|
@@ -29,6 +29,58 @@ class VcDecorator {
|
|
|
29
29
|
createCredentialFlavor(claimsModel) {
|
|
30
30
|
return new flavor_1.CredentialFlavor(claimsModel);
|
|
31
31
|
}
|
|
32
|
+
getIri() {
|
|
33
|
+
const vcContextMetadata = (0, decorators_1.getContextJsonLdMetadata)(this.claimsModel);
|
|
34
|
+
if (!vcContextMetadata)
|
|
35
|
+
throw new Error(`Can't find IRI information. Make sure you have defined the claims model with the @VcContext decorator`);
|
|
36
|
+
return `${vcContextMetadata.namespace}#${vcContextMetadata.name}`;
|
|
37
|
+
}
|
|
38
|
+
getCredentialTerm() {
|
|
39
|
+
const vcContextMetadata = (0, decorators_1.getContextJsonLdMetadata)(this.claimsModel);
|
|
40
|
+
if (!vcContextMetadata)
|
|
41
|
+
throw new Error(`Can't find credential term information. Make sure you have defined the claims model with the @VcContext decorator`);
|
|
42
|
+
return `${vcContextMetadata.name}Credential`;
|
|
43
|
+
}
|
|
44
|
+
canMap(input) {
|
|
45
|
+
var _a;
|
|
46
|
+
if ("type" in input.data) {
|
|
47
|
+
// CredentialResource
|
|
48
|
+
if (input.data.type.includes(this.getCredentialTerm())) {
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
// DraftResource
|
|
54
|
+
const vcContextMetadata = (0, decorators_1.getContextJsonLdMetadata)(this.claimsModel);
|
|
55
|
+
if (!vcContextMetadata)
|
|
56
|
+
throw new Error(`Can't find IRI information. Make sure you have defined the claims model with the @VcContext decorator`);
|
|
57
|
+
if (((_a = input.data.schema) === null || _a === void 0 ? void 0 : _a.vocabName) === vcContextMetadata.name &&
|
|
58
|
+
input.data.schema.vocabNamespace === vcContextMetadata.namespace) {
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
map(input) {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
if ("type" in input.data) {
|
|
67
|
+
// CredentialResource
|
|
68
|
+
if (!this.canMap(input)) {
|
|
69
|
+
throw new Error(`The received CredentialResource is incompatible with the current VcDecorator instance claims model`);
|
|
70
|
+
}
|
|
71
|
+
const response = yield this.client.credentials.credentialDownload(input.id, input.revision);
|
|
72
|
+
const blob = yield (0, streamUtils_1.buffer)(response);
|
|
73
|
+
return new issued_1.VerifiableCredential(this.client, this.flavor, blob, input);
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
// DraftResource
|
|
77
|
+
if (!this.canMap(input)) {
|
|
78
|
+
throw new Error(`The received DraftResource is incompatible with the current VcDecorator instance claims model`);
|
|
79
|
+
}
|
|
80
|
+
return new draft_1.DraftCredential(this.client, this.flavor, input.data, input);
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
32
84
|
importBlob(blob, request) {
|
|
33
85
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
86
|
const { blobId, uploadUri } = yield this.client.credentials.credentialUpload();
|
|
@@ -136,54 +188,58 @@ class VcDecorator {
|
|
|
136
188
|
return new draft_1.DraftCredential(this.client, this.flavor, data, { id, etag, revision });
|
|
137
189
|
});
|
|
138
190
|
}
|
|
191
|
+
loadAsDraft(id, revision) {
|
|
192
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
193
|
+
const draftResource = revision
|
|
194
|
+
? yield this.client.drafts.draftRevision(id, revision)
|
|
195
|
+
: yield this.client.drafts.draftLatest(id);
|
|
196
|
+
const draftCredential = yield this.map(draftResource);
|
|
197
|
+
return draftCredential;
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
loadAsCredential(id, revision) {
|
|
201
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
202
|
+
const credentialResource = revision
|
|
203
|
+
? yield this.client.credentials.credentialRevision(id, revision)
|
|
204
|
+
: yield this.client.credentials.credentialLatest(id);
|
|
205
|
+
const verifiableCredential = yield this.map(credentialResource);
|
|
206
|
+
return verifiableCredential;
|
|
207
|
+
});
|
|
208
|
+
}
|
|
139
209
|
load(id, revision) {
|
|
140
210
|
return __awaiter(this, void 0, void 0, function* () {
|
|
141
|
-
let
|
|
142
|
-
let
|
|
211
|
+
let verifiableCredential;
|
|
212
|
+
let draftCredential;
|
|
143
213
|
try {
|
|
144
|
-
|
|
145
|
-
? yield this.client.credentials.credentialRevision(id, revision)
|
|
146
|
-
: yield this.client.credentials.credentialLatest(id);
|
|
147
|
-
credential = {
|
|
148
|
-
id: credentialResource.id,
|
|
149
|
-
etag: credentialResource.etag,
|
|
150
|
-
revision: credentialResource.revision,
|
|
151
|
-
};
|
|
214
|
+
verifiableCredential = yield this.loadAsCredential(id, revision);
|
|
152
215
|
}
|
|
153
216
|
catch (error) {
|
|
154
217
|
if (error instanceof api_1.NotFoundError) {
|
|
155
|
-
|
|
156
|
-
? yield this.client.drafts.draftRevision(id, revision)
|
|
157
|
-
: yield this.client.drafts.draftLatest(id);
|
|
158
|
-
credential = {
|
|
159
|
-
id: draftResource.id,
|
|
160
|
-
etag: draftResource.etag,
|
|
161
|
-
revision: draftResource.revision,
|
|
162
|
-
};
|
|
218
|
+
draftCredential = yield this.loadAsDraft(id, revision);
|
|
163
219
|
}
|
|
164
220
|
else
|
|
165
221
|
throw error;
|
|
166
222
|
}
|
|
167
|
-
if (!
|
|
168
|
-
|
|
169
|
-
|
|
223
|
+
if (!draftCredential) {
|
|
224
|
+
if (!verifiableCredential)
|
|
225
|
+
throw new Error(`Resource with id '${id}' could not be found.`);
|
|
170
226
|
return {
|
|
171
227
|
isVerifiable: true,
|
|
172
|
-
credential:
|
|
228
|
+
credential: verifiableCredential,
|
|
173
229
|
};
|
|
174
230
|
}
|
|
175
231
|
else {
|
|
176
232
|
return {
|
|
177
233
|
isVerifiable: false,
|
|
178
|
-
credential:
|
|
234
|
+
credential: draftCredential,
|
|
179
235
|
};
|
|
180
236
|
}
|
|
181
237
|
});
|
|
182
238
|
}
|
|
183
239
|
import(blob, request) {
|
|
184
240
|
return __awaiter(this, void 0, void 0, function* () {
|
|
185
|
-
const
|
|
186
|
-
return this.
|
|
241
|
+
const credential = yield this.importBlob(blob, request);
|
|
242
|
+
return new issued_1.VerifiableCredential(this.client, this.flavor, blob, credential);
|
|
187
243
|
});
|
|
188
244
|
}
|
|
189
245
|
}
|
|
@@ -6,10 +6,15 @@ export declare type CredentialBlob = Buffer;
|
|
|
6
6
|
export declare type FileBlob = Buffer;
|
|
7
7
|
export declare type Did = string;
|
|
8
8
|
export declare type Claims = Record<string, any>;
|
|
9
|
-
export declare type
|
|
9
|
+
export declare type DraftMetadata = {
|
|
10
10
|
subject?: string;
|
|
11
11
|
expirationDate?: Date;
|
|
12
12
|
};
|
|
13
|
+
export declare type CredentialMetadata = DraftMetadata & {
|
|
14
|
+
id: string;
|
|
15
|
+
issuer: string;
|
|
16
|
+
issuanceDate: Date;
|
|
17
|
+
};
|
|
13
18
|
export declare type ValueWithId = {
|
|
14
19
|
id: string;
|
|
15
20
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../index";
|
|
5
|
+
import * as Truvity from "../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../core";
|
|
7
|
+
import { ApiKeyFilter } from "../../../../types/ApiKeyFilter";
|
|
8
|
+
import { ApiKeySort } from "../../../../types/ApiKeySort";
|
|
9
|
+
export declare const ApiKeySearch: core.serialization.Schema<serializers.ApiKeySearch.Raw, Truvity.ApiKeySearch>;
|
|
10
|
+
export declare namespace ApiKeySearch {
|
|
11
|
+
interface Raw {
|
|
12
|
+
filter?: ApiKeyFilter.Raw[] | null;
|
|
13
|
+
sort?: ApiKeySort.Raw[] | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ApiKeySearch = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
|
31
|
+
const ApiKeyFilter_1 = require("../../../../types/ApiKeyFilter");
|
|
32
|
+
const ApiKeySort_1 = require("../../../../types/ApiKeySort");
|
|
33
|
+
exports.ApiKeySearch = core.serialization.object({
|
|
34
|
+
filter: core.serialization.list(ApiKeyFilter_1.ApiKeyFilter).optional(),
|
|
35
|
+
sort: core.serialization.list(ApiKeySort_1.ApiKeySort).optional(),
|
|
36
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ApiKeySearch } from "./ApiKeySearch";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApiKeySearch = void 0;
|
|
4
|
+
var ApiKeySearch_1 = require("./ApiKeySearch");
|
|
5
|
+
Object.defineProperty(exports, "ApiKeySearch", { enumerable: true, get: function () { return ApiKeySearch_1.ApiKeySearch; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|