humanos 1.0.1 → 1.0.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 +310 -114
- package/dist/index.d.mts +3319 -1514
- package/dist/index.d.ts +3319 -1514
- package/dist/index.js +1621 -499
- package/dist/index.mjs +1578 -478
- package/generated/.openapi-generator/FILES +59 -33
- package/generated/api/actions-api.ts +273 -0
- package/generated/api/activity-api.ts +225 -0
- package/generated/api/{resource-api.ts → approval-api.ts} +65 -61
- package/generated/api/credentials-api.ts +365 -25
- package/generated/api/didapi.ts +138 -0
- package/generated/api/requests-api.ts +124 -134
- package/generated/api/user-api.ts +45 -36
- package/generated/api/webhooks-api.ts +84 -56
- package/generated/api.ts +5 -1
- package/generated/models/action-dto.ts +36 -0
- package/generated/models/action-entity.ts +57 -0
- package/generated/models/action-list-entity.ts +39 -0
- package/generated/models/action-query.ts +48 -0
- package/generated/models/action-ref-dto.ts +36 -0
- package/generated/models/action-version-detail-entity.ts +72 -0
- package/generated/models/action-version-list-entity.ts +39 -0
- package/generated/models/action-version-summary-entity.ts +48 -0
- package/generated/models/activities-entity.ts +39 -0
- package/generated/models/activity-entity.ts +90 -0
- package/generated/models/activity-query.ts +96 -0
- package/generated/models/consent.ts +36 -0
- package/generated/models/constraints-dto.ts +36 -0
- package/generated/models/{agent-detail-entity.ts → contact-entity.ts} +8 -8
- package/generated/models/create-presentation-dto.ts +30 -0
- package/generated/models/create-presentation400-response.ts +42 -0
- package/generated/models/create-presentation403-response.ts +42 -0
- package/generated/models/create-presentation404-response.ts +42 -0
- package/generated/models/create-subject-dto.ts +8 -2
- package/generated/models/create-subject-entity.ts +3 -3
- package/generated/models/{cancel-request404-response.ts → create400-response.ts} +5 -5
- package/generated/models/credential-dto-data-inner.ts +26 -0
- package/generated/models/credential-dto.ts +52 -6
- package/generated/models/credential-entity.ts +33 -7
- package/generated/models/{credential-subject.ts → credential-event-decision.ts} +13 -11
- package/generated/models/credential-event-user.ts +1 -1
- package/generated/models/credential-event.ts +15 -19
- package/generated/models/credential-placement-dto.ts +85 -0
- package/generated/models/credential-status.ts +5 -3
- package/generated/models/credentials-detail404-response.ts +42 -0
- package/generated/models/credentials-evidence404-response.ts +42 -0
- package/generated/models/credentials-issue-vp400-response.ts +42 -0
- package/generated/models/credentials-issue-vp403-response.ts +42 -0
- package/generated/models/credentials-issue-vp404-response.ts +42 -0
- package/generated/models/credentials-revoke400-response.ts +42 -0
- package/generated/models/credentials-revoke409-response.ts +42 -0
- package/generated/models/did-document-entity.ts +63 -0
- package/generated/models/evidence.ts +44 -0
- package/generated/models/generate-credential-entity.ts +2 -2
- package/generated/models/generate-request-dto.ts +18 -15
- package/generated/models/generate-request-entity.ts +6 -6
- package/generated/models/generate-subject-entity.ts +3 -3
- package/generated/models/get-evidence404-response.ts +42 -0
- package/generated/models/group-entity.ts +3 -3
- package/generated/models/groups-entity.ts +1 -1
- package/generated/models/identity-dto.ts +26 -26
- package/generated/models/identity-event-decision.ts +13 -1
- package/generated/models/identity-event-user.ts +42 -0
- package/generated/models/identity-event.ts +14 -18
- package/generated/models/{identity-event-identity.ts → identity-payload.ts} +12 -12
- package/generated/models/index.ts +55 -32
- package/generated/models/{action-type.ts → json-value.ts} +6 -12
- package/generated/models/{mandate-data-dto-value.ts → organization-data-entity.ts} +9 -3
- package/generated/models/{issuer-detail-entity.ts → otp-error.ts} +8 -8
- package/generated/models/otp-failed-event-otp.ts +3 -3
- package/generated/models/otp-failed-event.ts +11 -15
- package/generated/models/{subject.ts → partial-subject-entity.ts} +9 -9
- package/generated/models/presentation-receipt-entity.ts +42 -0
- package/generated/models/presentation-response-entity.ts +39 -0
- package/generated/models/receipt-entity.ts +36 -0
- package/generated/models/request-credential-entity.ts +72 -0
- package/generated/models/request-detail-entity.ts +26 -20
- package/generated/models/request-detail-subject-entity.ts +87 -0
- package/generated/models/request-entity.ts +14 -8
- package/generated/models/request-query.ts +3 -21
- package/generated/models/request-subject-entity.ts +21 -6
- package/generated/models/requests-create400-response.ts +42 -0
- package/generated/models/requests-detail404-response.ts +42 -0
- package/generated/models/requests-entity.ts +1 -1
- package/generated/models/requests-resend-otp403-response.ts +42 -0
- package/generated/models/resend-otp403-response.ts +42 -0
- package/generated/models/resource-entity.ts +11 -3
- package/generated/models/{group-resource-entity.ts → resource-minimal-entity.ts} +13 -11
- package/generated/models/resource-query.ts +3 -1
- package/generated/models/resources-entity.ts +1 -1
- package/generated/models/revoke-credential-dto.ts +30 -0
- package/generated/models/revoke-credential-entity.ts +63 -0
- package/generated/models/revoke-credential400-response.ts +42 -0
- package/generated/models/revoke-credential409-response.ts +42 -0
- package/generated/models/revoke-receipt-entity.ts +42 -0
- package/generated/models/schema-entity.ts +57 -0
- package/generated/models/schema-list-entity.ts +39 -0
- package/generated/models/schema-query.ts +48 -0
- package/generated/models/schema-response-entity.ts +45 -0
- package/generated/models/schema-version-detail-entity.ts +72 -0
- package/generated/models/schema-version-list-entity.ts +39 -0
- package/generated/models/schema-version-response-entity.ts +54 -0
- package/generated/models/schema-version-summary-entity.ts +48 -0
- package/generated/models/subject-contact-entity.ts +7 -7
- package/generated/models/subject-issuer-entity.ts +69 -0
- package/generated/models/subject-query.ts +4 -4
- package/generated/models/test-event.ts +11 -15
- package/generated/models/user-create400-response.ts +42 -0
- package/generated/models/user-detail400-response.ts +42 -0
- package/generated/models/user-detail404-response.ts +42 -0
- package/generated/models/verification-method-entity.ts +48 -0
- package/generated/models/verify-allow-response-entity.ts +61 -0
- package/generated/models/verify-deny-response-entity.ts +79 -0
- package/generated/models/verify-evaluation-entity.ts +51 -0
- package/generated/models/verify-presentation-dto.ts +36 -0
- package/generated/models/verify-receipt-entity.ts +42 -0
- package/generated/models/w3-cverifiable-credential-credential-subject-mandate-action.ts +44 -0
- package/generated/models/w3-cverifiable-credential-credential-subject-mandate-constraint-constraint-schema.ts +44 -0
- package/generated/models/w3-cverifiable-credential-credential-subject-mandate-constraint.ts +41 -0
- package/generated/models/w3-cverifiable-credential-credential-subject-mandate-context.ts +32 -0
- package/generated/models/{mandate-data-type.ts → w3-cverifiable-credential-credential-subject-mandate-grantor.ts} +3 -16
- package/generated/models/w3-cverifiable-credential-credential-subject-mandate.ts +65 -0
- package/generated/models/w3-cverifiable-credential-credential-subject.ts +41 -0
- package/generated/models/w3-cverifiable-credential-evidences-inner.ts +42 -0
- package/generated/models/w3-cverifiable-credential-proofs-inner.ts +62 -0
- package/generated/models/w3-cverifiable-credential-valid-from.ts +24 -0
- package/generated/models/w3-cverifiable-credential-valid-until.ts +24 -0
- package/generated/models/w3-cverifiable-credential.ts +24 -25
- package/generated/models/webhook-call-event.ts +6 -12
- package/package.json +1 -1
- package/generated/models/credential-full-entity.ts +0 -82
- package/generated/models/get-credential-entity.ts +0 -48
- package/generated/models/identity-field-placement.ts +0 -73
- package/generated/models/identity-field-type.ts +0 -38
- package/generated/models/mandate-data-dto-type.ts +0 -73
- package/generated/models/mandate-data-dto.ts +0 -71
- package/generated/models/signature-placement-item-dto.ts +0 -72
- package/generated/models/signature-placement.ts +0 -56
- package/generated/models/subject-entity.ts +0 -48
- package/generated/models/w3-cproof.ts +0 -82
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
.npmignore
|
|
3
3
|
README.md
|
|
4
4
|
api.ts
|
|
5
|
+
api/actions-api.ts
|
|
6
|
+
api/activity-api.ts
|
|
7
|
+
api/approval-api.ts
|
|
5
8
|
api/credentials-api.ts
|
|
9
|
+
api/didapi.ts
|
|
6
10
|
api/requests-api.ts
|
|
7
|
-
api/resource-api.ts
|
|
8
11
|
api/user-api.ts
|
|
9
12
|
api/webhooks-api.ts
|
|
10
13
|
base.ts
|
|
@@ -12,71 +15,94 @@ common.ts
|
|
|
12
15
|
configuration.ts
|
|
13
16
|
git_push.sh
|
|
14
17
|
index.ts
|
|
15
|
-
models/action-
|
|
16
|
-
models/
|
|
17
|
-
models/
|
|
18
|
+
models/action-dto.ts
|
|
19
|
+
models/action-entity.ts
|
|
20
|
+
models/action-list-entity.ts
|
|
21
|
+
models/action-query.ts
|
|
22
|
+
models/action-version-detail-entity.ts
|
|
23
|
+
models/action-version-list-entity.ts
|
|
24
|
+
models/action-version-summary-entity.ts
|
|
25
|
+
models/activities-entity.ts
|
|
26
|
+
models/activity-entity.ts
|
|
27
|
+
models/activity-query.ts
|
|
28
|
+
models/consent.ts
|
|
29
|
+
models/contact-entity.ts
|
|
30
|
+
models/create-presentation-dto.ts
|
|
18
31
|
models/create-subject-dto.ts
|
|
19
32
|
models/create-subject-entity.ts
|
|
33
|
+
models/credential-dto-data-inner.ts
|
|
20
34
|
models/credential-dto.ts
|
|
21
35
|
models/credential-entity.ts
|
|
36
|
+
models/credential-event-decision.ts
|
|
22
37
|
models/credential-event-user.ts
|
|
23
38
|
models/credential-event.ts
|
|
24
|
-
models/credential-
|
|
39
|
+
models/credential-placement-dto.ts
|
|
25
40
|
models/credential-status.ts
|
|
26
|
-
models/
|
|
41
|
+
models/credentials-detail404-response.ts
|
|
42
|
+
models/credentials-evidence404-response.ts
|
|
43
|
+
models/credentials-issue-vp400-response.ts
|
|
44
|
+
models/credentials-issue-vp403-response.ts
|
|
45
|
+
models/credentials-issue-vp404-response.ts
|
|
46
|
+
models/credentials-revoke400-response.ts
|
|
47
|
+
models/credentials-revoke409-response.ts
|
|
27
48
|
models/delivery-action-type.ts
|
|
49
|
+
models/did-document-entity.ts
|
|
50
|
+
models/evidence.ts
|
|
28
51
|
models/generate-credential-entity.ts
|
|
29
52
|
models/generate-request-dto.ts
|
|
30
53
|
models/generate-request-entity.ts
|
|
31
54
|
models/generate-subject-entity.ts
|
|
32
|
-
models/generate400-response.ts
|
|
33
|
-
models/get-credential-entity.ts
|
|
34
|
-
models/get-credential404-response.ts
|
|
35
|
-
models/get-request-detail404-response.ts
|
|
36
|
-
models/get-subject400-response.ts
|
|
37
|
-
models/get-subject404-response.ts
|
|
38
55
|
models/group-entity.ts
|
|
39
|
-
models/group-resource-entity.ts
|
|
40
56
|
models/groups-entity.ts
|
|
41
57
|
models/identity-dto.ts
|
|
42
58
|
models/identity-event-decision.ts
|
|
43
|
-
models/identity-event-
|
|
59
|
+
models/identity-event-user.ts
|
|
44
60
|
models/identity-event.ts
|
|
45
|
-
models/identity-
|
|
46
|
-
models/identity-field-type.ts
|
|
61
|
+
models/identity-payload.ts
|
|
47
62
|
models/index.ts
|
|
48
|
-
models/
|
|
49
|
-
models/
|
|
50
|
-
models/mandate-data-dto-value.ts
|
|
51
|
-
models/mandate-data-dto.ts
|
|
52
|
-
models/mandate-data-type.ts
|
|
53
|
-
models/otp-failed-event-otp-error.ts
|
|
63
|
+
models/organization-data-entity.ts
|
|
64
|
+
models/otp-error.ts
|
|
54
65
|
models/otp-failed-event-otp.ts
|
|
55
66
|
models/otp-failed-event.ts
|
|
67
|
+
models/partial-subject-entity.ts
|
|
68
|
+
models/presentation-response-entity.ts
|
|
69
|
+
models/receipt-entity.ts
|
|
70
|
+
models/request-credential-entity.ts
|
|
56
71
|
models/request-detail-entity.ts
|
|
72
|
+
models/request-detail-subject-entity.ts
|
|
57
73
|
models/request-entity.ts
|
|
58
74
|
models/request-query.ts
|
|
59
75
|
models/request-subject-entity.ts
|
|
76
|
+
models/requests-create400-response.ts
|
|
77
|
+
models/requests-detail404-response.ts
|
|
60
78
|
models/requests-entity.ts
|
|
79
|
+
models/requests-resend-otp403-response.ts
|
|
61
80
|
models/resource-entity.ts
|
|
81
|
+
models/resource-minimal-entity.ts
|
|
62
82
|
models/resource-query.ts
|
|
63
83
|
models/resources-entity.ts
|
|
64
|
-
models/
|
|
65
|
-
models/
|
|
66
|
-
models/subject-
|
|
67
|
-
models/subject-entity.ts
|
|
84
|
+
models/revoke-credential-dto.ts
|
|
85
|
+
models/revoke-credential-entity.ts
|
|
86
|
+
models/subject-issuer-entity.ts
|
|
68
87
|
models/subject-query.ts
|
|
69
|
-
models/subject.ts
|
|
70
88
|
models/success-entity.ts
|
|
71
89
|
models/test-event.ts
|
|
72
|
-
models/
|
|
90
|
+
models/user-create400-response.ts
|
|
91
|
+
models/user-detail400-response.ts
|
|
92
|
+
models/user-detail404-response.ts
|
|
93
|
+
models/verification-method-entity.ts
|
|
94
|
+
models/verify-allow-response-entity.ts
|
|
95
|
+
models/verify-deny-response-entity.ts
|
|
96
|
+
models/verify-evaluation-entity.ts
|
|
97
|
+
models/verify-presentation-dto.ts
|
|
98
|
+
models/w3-cverifiable-credential-credential-subject-mandate-action.ts
|
|
99
|
+
models/w3-cverifiable-credential-credential-subject-mandate-context.ts
|
|
100
|
+
models/w3-cverifiable-credential-credential-subject-mandate-grantor.ts
|
|
101
|
+
models/w3-cverifiable-credential-credential-subject-mandate.ts
|
|
102
|
+
models/w3-cverifiable-credential-credential-subject.ts
|
|
103
|
+
models/w3-cverifiable-credential-proofs-inner.ts
|
|
73
104
|
models/w3-cverifiable-credential.ts
|
|
74
105
|
models/webhook-call-event.ts
|
|
75
|
-
models/webhook-event-type-credential.ts
|
|
76
|
-
models/webhook-event-type-identity.ts
|
|
77
|
-
models/webhook-event-type-otpfailed.ts
|
|
78
|
-
models/webhook-event-type-test.ts
|
|
79
|
-
models/webhook-event-type.ts
|
|
80
106
|
package.json
|
|
81
107
|
tsconfig.esm.json
|
|
82
108
|
tsconfig.json
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Humanos API
|
|
5
|
+
* Humanos API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { ActionListEntity } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { ActionVersionListEntity } from '../models';
|
|
28
|
+
/**
|
|
29
|
+
* ActionsApi - axios parameter creator
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
export const ActionsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
35
|
+
* Retrieve actions for the authenticated organization. Only published versions are ever exposed here; drafts are hidden from public clients.
|
|
36
|
+
* @summary Get Actions
|
|
37
|
+
* @param {number} [pageIndex] Page number
|
|
38
|
+
* @param {number} [pageSize] Number of items per page
|
|
39
|
+
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
40
|
+
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
41
|
+
* @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\'s date.
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
list: async (pageIndex?: number, pageSize?: number, search?: string, active?: boolean, aPIVersion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46
|
+
const localVarPath = `/actions`;
|
|
47
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
48
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
49
|
+
let baseOptions;
|
|
50
|
+
if (configuration) {
|
|
51
|
+
baseOptions = configuration.baseOptions;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
55
|
+
const localVarHeaderParameter = {} as any;
|
|
56
|
+
const localVarQueryParameter = {} as any;
|
|
57
|
+
|
|
58
|
+
if (pageIndex !== undefined) {
|
|
59
|
+
localVarQueryParameter['pageIndex'] = pageIndex;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
if (pageSize !== undefined) {
|
|
63
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if (search !== undefined) {
|
|
67
|
+
localVarQueryParameter['search'] = search;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (active !== undefined) {
|
|
71
|
+
localVarQueryParameter['active'] = active;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
if (aPIVersion != null) {
|
|
77
|
+
localVarHeaderParameter['API-Version'] = String(aPIVersion);
|
|
78
|
+
}
|
|
79
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
80
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
81
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
url: toPathString(localVarUrlObj),
|
|
85
|
+
options: localVarRequestOptions,
|
|
86
|
+
};
|
|
87
|
+
},
|
|
88
|
+
/**
|
|
89
|
+
* Retrieve published versions of an action. Drafts are hidden from public clients.
|
|
90
|
+
* @summary Get Versions
|
|
91
|
+
* @param {string} id
|
|
92
|
+
* @param {number} [pageIndex] Page number
|
|
93
|
+
* @param {number} [pageSize] Number of items per page
|
|
94
|
+
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
95
|
+
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
96
|
+
* @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\'s date.
|
|
97
|
+
* @param {*} [options] Override http request option.
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
*/
|
|
100
|
+
versions: async (id: string, pageIndex?: number, pageSize?: number, search?: string, active?: boolean, aPIVersion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
101
|
+
// verify required parameter 'id' is not null or undefined
|
|
102
|
+
assertParamExists('versions', 'id', id)
|
|
103
|
+
const localVarPath = `/actions/version/{id}`
|
|
104
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
105
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
106
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
107
|
+
let baseOptions;
|
|
108
|
+
if (configuration) {
|
|
109
|
+
baseOptions = configuration.baseOptions;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
113
|
+
const localVarHeaderParameter = {} as any;
|
|
114
|
+
const localVarQueryParameter = {} as any;
|
|
115
|
+
|
|
116
|
+
if (pageIndex !== undefined) {
|
|
117
|
+
localVarQueryParameter['pageIndex'] = pageIndex;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
if (pageSize !== undefined) {
|
|
121
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
if (search !== undefined) {
|
|
125
|
+
localVarQueryParameter['search'] = search;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
if (active !== undefined) {
|
|
129
|
+
localVarQueryParameter['active'] = active;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
if (aPIVersion != null) {
|
|
135
|
+
localVarHeaderParameter['API-Version'] = String(aPIVersion);
|
|
136
|
+
}
|
|
137
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
138
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
139
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
140
|
+
|
|
141
|
+
return {
|
|
142
|
+
url: toPathString(localVarUrlObj),
|
|
143
|
+
options: localVarRequestOptions,
|
|
144
|
+
};
|
|
145
|
+
},
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* ActionsApi - functional programming interface
|
|
151
|
+
* @export
|
|
152
|
+
*/
|
|
153
|
+
export const ActionsApiFp = function(configuration?: Configuration) {
|
|
154
|
+
const localVarAxiosParamCreator = ActionsApiAxiosParamCreator(configuration)
|
|
155
|
+
return {
|
|
156
|
+
/**
|
|
157
|
+
* Retrieve actions for the authenticated organization. Only published versions are ever exposed here; drafts are hidden from public clients.
|
|
158
|
+
* @summary Get Actions
|
|
159
|
+
* @param {number} [pageIndex] Page number
|
|
160
|
+
* @param {number} [pageSize] Number of items per page
|
|
161
|
+
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
162
|
+
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
163
|
+
* @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\'s date.
|
|
164
|
+
* @param {*} [options] Override http request option.
|
|
165
|
+
* @throws {RequiredError}
|
|
166
|
+
*/
|
|
167
|
+
async list(pageIndex?: number, pageSize?: number, search?: string, active?: boolean, aPIVersion?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActionListEntity>> {
|
|
168
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.list(pageIndex, pageSize, search, active, aPIVersion, options);
|
|
169
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
170
|
+
const localVarOperationServerBasePath = operationServerMap['ActionsApi.list']?.[localVarOperationServerIndex]?.url;
|
|
171
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
172
|
+
},
|
|
173
|
+
/**
|
|
174
|
+
* Retrieve published versions of an action. Drafts are hidden from public clients.
|
|
175
|
+
* @summary Get Versions
|
|
176
|
+
* @param {string} id
|
|
177
|
+
* @param {number} [pageIndex] Page number
|
|
178
|
+
* @param {number} [pageSize] Number of items per page
|
|
179
|
+
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
180
|
+
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
181
|
+
* @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\'s date.
|
|
182
|
+
* @param {*} [options] Override http request option.
|
|
183
|
+
* @throws {RequiredError}
|
|
184
|
+
*/
|
|
185
|
+
async versions(id: string, pageIndex?: number, pageSize?: number, search?: string, active?: boolean, aPIVersion?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActionVersionListEntity>> {
|
|
186
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.versions(id, pageIndex, pageSize, search, active, aPIVersion, options);
|
|
187
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
188
|
+
const localVarOperationServerBasePath = operationServerMap['ActionsApi.versions']?.[localVarOperationServerIndex]?.url;
|
|
189
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
190
|
+
},
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* ActionsApi - factory interface
|
|
196
|
+
* @export
|
|
197
|
+
*/
|
|
198
|
+
export const ActionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
199
|
+
const localVarFp = ActionsApiFp(configuration)
|
|
200
|
+
return {
|
|
201
|
+
/**
|
|
202
|
+
* Retrieve actions for the authenticated organization. Only published versions are ever exposed here; drafts are hidden from public clients.
|
|
203
|
+
* @summary Get Actions
|
|
204
|
+
* @param {number} [pageIndex] Page number
|
|
205
|
+
* @param {number} [pageSize] Number of items per page
|
|
206
|
+
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
207
|
+
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
208
|
+
* @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\'s date.
|
|
209
|
+
* @param {*} [options] Override http request option.
|
|
210
|
+
* @throws {RequiredError}
|
|
211
|
+
*/
|
|
212
|
+
list(pageIndex?: number, pageSize?: number, search?: string, active?: boolean, aPIVersion?: string, options?: RawAxiosRequestConfig): AxiosPromise<ActionListEntity> {
|
|
213
|
+
return localVarFp.list(pageIndex, pageSize, search, active, aPIVersion, options).then((request) => request(axios, basePath));
|
|
214
|
+
},
|
|
215
|
+
/**
|
|
216
|
+
* Retrieve published versions of an action. Drafts are hidden from public clients.
|
|
217
|
+
* @summary Get Versions
|
|
218
|
+
* @param {string} id
|
|
219
|
+
* @param {number} [pageIndex] Page number
|
|
220
|
+
* @param {number} [pageSize] Number of items per page
|
|
221
|
+
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
222
|
+
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
223
|
+
* @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\'s date.
|
|
224
|
+
* @param {*} [options] Override http request option.
|
|
225
|
+
* @throws {RequiredError}
|
|
226
|
+
*/
|
|
227
|
+
versions(id: string, pageIndex?: number, pageSize?: number, search?: string, active?: boolean, aPIVersion?: string, options?: RawAxiosRequestConfig): AxiosPromise<ActionVersionListEntity> {
|
|
228
|
+
return localVarFp.versions(id, pageIndex, pageSize, search, active, aPIVersion, options).then((request) => request(axios, basePath));
|
|
229
|
+
},
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* ActionsApi - object-oriented interface
|
|
235
|
+
* @export
|
|
236
|
+
* @class ActionsApi
|
|
237
|
+
* @extends {BaseAPI}
|
|
238
|
+
*/
|
|
239
|
+
export class ActionsApi extends BaseAPI {
|
|
240
|
+
/**
|
|
241
|
+
* Retrieve actions for the authenticated organization. Only published versions are ever exposed here; drafts are hidden from public clients.
|
|
242
|
+
* @summary Get Actions
|
|
243
|
+
* @param {number} [pageIndex] Page number
|
|
244
|
+
* @param {number} [pageSize] Number of items per page
|
|
245
|
+
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
246
|
+
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
247
|
+
* @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\'s date.
|
|
248
|
+
* @param {*} [options] Override http request option.
|
|
249
|
+
* @throws {RequiredError}
|
|
250
|
+
* @memberof ActionsApi
|
|
251
|
+
*/
|
|
252
|
+
public list(pageIndex?: number, pageSize?: number, search?: string, active?: boolean, aPIVersion?: string, options?: RawAxiosRequestConfig) {
|
|
253
|
+
return ActionsApiFp(this.configuration).list(pageIndex, pageSize, search, active, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Retrieve published versions of an action. Drafts are hidden from public clients.
|
|
258
|
+
* @summary Get Versions
|
|
259
|
+
* @param {string} id
|
|
260
|
+
* @param {number} [pageIndex] Page number
|
|
261
|
+
* @param {number} [pageSize] Number of items per page
|
|
262
|
+
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
263
|
+
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
264
|
+
* @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\'s date.
|
|
265
|
+
* @param {*} [options] Override http request option.
|
|
266
|
+
* @throws {RequiredError}
|
|
267
|
+
* @memberof ActionsApi
|
|
268
|
+
*/
|
|
269
|
+
public versions(id: string, pageIndex?: number, pageSize?: number, search?: string, active?: boolean, aPIVersion?: string, options?: RawAxiosRequestConfig) {
|
|
270
|
+
return ActionsApiFp(this.configuration).versions(id, pageIndex, pageSize, search, active, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Humanos API
|
|
5
|
+
* Humanos API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { ActivitiesEntity } from '../models';
|
|
26
|
+
/**
|
|
27
|
+
* ActivityApi - axios parameter creator
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
export const ActivityApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
31
|
+
return {
|
|
32
|
+
/**
|
|
33
|
+
* Retrieve a paginated list of activity events for your organization. Events are returned in descending chronological order (most recent first). Filter by event type, entity, actor / subject DID, or date range. Payload schemas vary by event `type` — see the `ActivityEventPayloads` type in `@humanos/lib` for the per-type fields.
|
|
34
|
+
* @summary List Activity Events
|
|
35
|
+
* @param {number} [pageIndex] Page number
|
|
36
|
+
* @param {number} [pageSize] Number of items per page
|
|
37
|
+
* @param {Array<ListTypeEnum>} [type] Filter by one or more activity event types. Repeat the query parameter to pass multiple values, e.g. ?type=VP_VERIFIED&type=VP_VERIFICATION_DENIED.
|
|
38
|
+
* @param {string} [entityType] Filter by the broad entity class the event was emitted against (e.g. \"credential\", \"request\", \"veriff\").
|
|
39
|
+
* @param {string} [entityId] Filter by a specific entity id (must be a valid MongoDB ObjectId).
|
|
40
|
+
* @param {string} [actorDid] Filter by the DID of the actor that triggered the event.
|
|
41
|
+
* @param {string} [subjectDid] Filter by the DID of the subject affected by the event.
|
|
42
|
+
* @param {string} [dateFrom] Filter from date (will be converted to start of day).
|
|
43
|
+
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
44
|
+
* @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\'s date.
|
|
45
|
+
* @param {*} [options] Override http request option.
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
*/
|
|
48
|
+
list: async (pageIndex?: number, pageSize?: number, type?: Array<ListTypeEnum>, entityType?: string, entityId?: string, actorDid?: string, subjectDid?: string, dateFrom?: string, dateTo?: string, aPIVersion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
49
|
+
const localVarPath = `/activity`;
|
|
50
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
51
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
52
|
+
let baseOptions;
|
|
53
|
+
if (configuration) {
|
|
54
|
+
baseOptions = configuration.baseOptions;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
58
|
+
const localVarHeaderParameter = {} as any;
|
|
59
|
+
const localVarQueryParameter = {} as any;
|
|
60
|
+
|
|
61
|
+
if (pageIndex !== undefined) {
|
|
62
|
+
localVarQueryParameter['pageIndex'] = pageIndex;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (pageSize !== undefined) {
|
|
66
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (type) {
|
|
70
|
+
localVarQueryParameter['type'] = type;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if (entityType !== undefined) {
|
|
74
|
+
localVarQueryParameter['entityType'] = entityType;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (entityId !== undefined) {
|
|
78
|
+
localVarQueryParameter['entityId'] = entityId;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if (actorDid !== undefined) {
|
|
82
|
+
localVarQueryParameter['actorDid'] = actorDid;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if (subjectDid !== undefined) {
|
|
86
|
+
localVarQueryParameter['subjectDid'] = subjectDid;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if (dateFrom !== undefined) {
|
|
90
|
+
localVarQueryParameter['dateFrom'] = (dateFrom as any instanceof Date) ?
|
|
91
|
+
(dateFrom as any).toISOString() :
|
|
92
|
+
dateFrom;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
if (dateTo !== undefined) {
|
|
96
|
+
localVarQueryParameter['dateTo'] = (dateTo as any instanceof Date) ?
|
|
97
|
+
(dateTo as any).toISOString() :
|
|
98
|
+
dateTo;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
if (aPIVersion != null) {
|
|
104
|
+
localVarHeaderParameter['API-Version'] = String(aPIVersion);
|
|
105
|
+
}
|
|
106
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
107
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
108
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
109
|
+
|
|
110
|
+
return {
|
|
111
|
+
url: toPathString(localVarUrlObj),
|
|
112
|
+
options: localVarRequestOptions,
|
|
113
|
+
};
|
|
114
|
+
},
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* ActivityApi - functional programming interface
|
|
120
|
+
* @export
|
|
121
|
+
*/
|
|
122
|
+
export const ActivityApiFp = function(configuration?: Configuration) {
|
|
123
|
+
const localVarAxiosParamCreator = ActivityApiAxiosParamCreator(configuration)
|
|
124
|
+
return {
|
|
125
|
+
/**
|
|
126
|
+
* Retrieve a paginated list of activity events for your organization. Events are returned in descending chronological order (most recent first). Filter by event type, entity, actor / subject DID, or date range. Payload schemas vary by event `type` — see the `ActivityEventPayloads` type in `@humanos/lib` for the per-type fields.
|
|
127
|
+
* @summary List Activity Events
|
|
128
|
+
* @param {number} [pageIndex] Page number
|
|
129
|
+
* @param {number} [pageSize] Number of items per page
|
|
130
|
+
* @param {Array<ListTypeEnum>} [type] Filter by one or more activity event types. Repeat the query parameter to pass multiple values, e.g. ?type=VP_VERIFIED&type=VP_VERIFICATION_DENIED.
|
|
131
|
+
* @param {string} [entityType] Filter by the broad entity class the event was emitted against (e.g. \"credential\", \"request\", \"veriff\").
|
|
132
|
+
* @param {string} [entityId] Filter by a specific entity id (must be a valid MongoDB ObjectId).
|
|
133
|
+
* @param {string} [actorDid] Filter by the DID of the actor that triggered the event.
|
|
134
|
+
* @param {string} [subjectDid] Filter by the DID of the subject affected by the event.
|
|
135
|
+
* @param {string} [dateFrom] Filter from date (will be converted to start of day).
|
|
136
|
+
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
137
|
+
* @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\'s date.
|
|
138
|
+
* @param {*} [options] Override http request option.
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
*/
|
|
141
|
+
async list(pageIndex?: number, pageSize?: number, type?: Array<ListTypeEnum>, entityType?: string, entityId?: string, actorDid?: string, subjectDid?: string, dateFrom?: string, dateTo?: string, aPIVersion?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivitiesEntity>> {
|
|
142
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.list(pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid, dateFrom, dateTo, aPIVersion, options);
|
|
143
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
144
|
+
const localVarOperationServerBasePath = operationServerMap['ActivityApi.list']?.[localVarOperationServerIndex]?.url;
|
|
145
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
146
|
+
},
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* ActivityApi - factory interface
|
|
152
|
+
* @export
|
|
153
|
+
*/
|
|
154
|
+
export const ActivityApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
155
|
+
const localVarFp = ActivityApiFp(configuration)
|
|
156
|
+
return {
|
|
157
|
+
/**
|
|
158
|
+
* Retrieve a paginated list of activity events for your organization. Events are returned in descending chronological order (most recent first). Filter by event type, entity, actor / subject DID, or date range. Payload schemas vary by event `type` — see the `ActivityEventPayloads` type in `@humanos/lib` for the per-type fields.
|
|
159
|
+
* @summary List Activity Events
|
|
160
|
+
* @param {number} [pageIndex] Page number
|
|
161
|
+
* @param {number} [pageSize] Number of items per page
|
|
162
|
+
* @param {Array<ListTypeEnum>} [type] Filter by one or more activity event types. Repeat the query parameter to pass multiple values, e.g. ?type=VP_VERIFIED&type=VP_VERIFICATION_DENIED.
|
|
163
|
+
* @param {string} [entityType] Filter by the broad entity class the event was emitted against (e.g. \"credential\", \"request\", \"veriff\").
|
|
164
|
+
* @param {string} [entityId] Filter by a specific entity id (must be a valid MongoDB ObjectId).
|
|
165
|
+
* @param {string} [actorDid] Filter by the DID of the actor that triggered the event.
|
|
166
|
+
* @param {string} [subjectDid] Filter by the DID of the subject affected by the event.
|
|
167
|
+
* @param {string} [dateFrom] Filter from date (will be converted to start of day).
|
|
168
|
+
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
169
|
+
* @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\'s date.
|
|
170
|
+
* @param {*} [options] Override http request option.
|
|
171
|
+
* @throws {RequiredError}
|
|
172
|
+
*/
|
|
173
|
+
list(pageIndex?: number, pageSize?: number, type?: Array<ListTypeEnum>, entityType?: string, entityId?: string, actorDid?: string, subjectDid?: string, dateFrom?: string, dateTo?: string, aPIVersion?: string, options?: RawAxiosRequestConfig): AxiosPromise<ActivitiesEntity> {
|
|
174
|
+
return localVarFp.list(pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid, dateFrom, dateTo, aPIVersion, options).then((request) => request(axios, basePath));
|
|
175
|
+
},
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* ActivityApi - object-oriented interface
|
|
181
|
+
* @export
|
|
182
|
+
* @class ActivityApi
|
|
183
|
+
* @extends {BaseAPI}
|
|
184
|
+
*/
|
|
185
|
+
export class ActivityApi extends BaseAPI {
|
|
186
|
+
/**
|
|
187
|
+
* Retrieve a paginated list of activity events for your organization. Events are returned in descending chronological order (most recent first). Filter by event type, entity, actor / subject DID, or date range. Payload schemas vary by event `type` — see the `ActivityEventPayloads` type in `@humanos/lib` for the per-type fields.
|
|
188
|
+
* @summary List Activity Events
|
|
189
|
+
* @param {number} [pageIndex] Page number
|
|
190
|
+
* @param {number} [pageSize] Number of items per page
|
|
191
|
+
* @param {Array<ListTypeEnum>} [type] Filter by one or more activity event types. Repeat the query parameter to pass multiple values, e.g. ?type=VP_VERIFIED&type=VP_VERIFICATION_DENIED.
|
|
192
|
+
* @param {string} [entityType] Filter by the broad entity class the event was emitted against (e.g. \"credential\", \"request\", \"veriff\").
|
|
193
|
+
* @param {string} [entityId] Filter by a specific entity id (must be a valid MongoDB ObjectId).
|
|
194
|
+
* @param {string} [actorDid] Filter by the DID of the actor that triggered the event.
|
|
195
|
+
* @param {string} [subjectDid] Filter by the DID of the subject affected by the event.
|
|
196
|
+
* @param {string} [dateFrom] Filter from date (will be converted to start of day).
|
|
197
|
+
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
198
|
+
* @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\'s date.
|
|
199
|
+
* @param {*} [options] Override http request option.
|
|
200
|
+
* @throws {RequiredError}
|
|
201
|
+
* @memberof ActivityApi
|
|
202
|
+
*/
|
|
203
|
+
public list(pageIndex?: number, pageSize?: number, type?: Array<ListTypeEnum>, entityType?: string, entityId?: string, actorDid?: string, subjectDid?: string, dateFrom?: string, dateTo?: string, aPIVersion?: string, options?: RawAxiosRequestConfig) {
|
|
204
|
+
return ActivityApiFp(this.configuration).list(pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid, dateFrom, dateTo, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @export
|
|
210
|
+
*/
|
|
211
|
+
export const ListTypeEnum = {
|
|
212
|
+
RequestCreated: 'REQUEST_CREATED',
|
|
213
|
+
RequestCanceled: 'REQUEST_CANCELED',
|
|
214
|
+
VpCreated: 'VP_CREATED',
|
|
215
|
+
VpDenied: 'VP_DENIED',
|
|
216
|
+
VpVerified: 'VP_VERIFIED',
|
|
217
|
+
VpVerificationDenied: 'VP_VERIFICATION_DENIED',
|
|
218
|
+
UserDecisionAccepted: 'USER_DECISION_ACCEPTED',
|
|
219
|
+
UserDecisionRejected: 'USER_DECISION_REJECTED',
|
|
220
|
+
MandateIssued: 'MANDATE_ISSUED',
|
|
221
|
+
MandateRevoked: 'MANDATE_REVOKED',
|
|
222
|
+
KycAccepted: 'KYC_ACCEPTED',
|
|
223
|
+
KycRejected: 'KYC_REJECTED'
|
|
224
|
+
} as const;
|
|
225
|
+
export type ListTypeEnum = typeof ListTypeEnum[keyof typeof ListTypeEnum];
|