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
package/dist/index.js
CHANGED
|
@@ -31,50 +31,72 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
var index_exports = {};
|
|
32
32
|
__export(index_exports, {
|
|
33
33
|
API_VERSION: () => API_VERSION,
|
|
34
|
-
|
|
34
|
+
ActionsApi: () => ActionsApi,
|
|
35
|
+
ActionsApiAxiosParamCreator: () => ActionsApiAxiosParamCreator,
|
|
36
|
+
ActionsApiFactory: () => ActionsApiFactory,
|
|
37
|
+
ActionsApiFp: () => ActionsApiFp,
|
|
38
|
+
ActivityApi: () => ActivityApi,
|
|
39
|
+
ActivityApiAxiosParamCreator: () => ActivityApiAxiosParamCreator,
|
|
40
|
+
ActivityApiFactory: () => ActivityApiFactory,
|
|
41
|
+
ActivityApiFp: () => ActivityApiFp,
|
|
42
|
+
ActivityEntityTypeEnum: () => ActivityEntityTypeEnum,
|
|
43
|
+
ActivityQueryTypeEnum: () => ActivityQueryTypeEnum,
|
|
44
|
+
ApprovalApi: () => ApprovalApi,
|
|
45
|
+
ApprovalApiAxiosParamCreator: () => ApprovalApiAxiosParamCreator,
|
|
46
|
+
ApprovalApiFactory: () => ApprovalApiFactory,
|
|
47
|
+
ApprovalApiFp: () => ApprovalApiFp,
|
|
35
48
|
Configuration: () => Configuration,
|
|
36
49
|
CreateSubjectEntityStatusEnum: () => CreateSubjectEntityStatusEnum,
|
|
50
|
+
CredentialDtoTypeEnum: () => CredentialDtoTypeEnum,
|
|
37
51
|
CredentialEntityStatusEnum: () => CredentialEntityStatusEnum,
|
|
38
|
-
|
|
52
|
+
CredentialEventEventTypeEnum: () => CredentialEventEventTypeEnum,
|
|
53
|
+
CredentialPlacementDtoTypeEnum: () => CredentialPlacementDtoTypeEnum,
|
|
39
54
|
CredentialStatus: () => CredentialStatus,
|
|
40
55
|
CredentialsApi: () => CredentialsApi,
|
|
41
56
|
CredentialsApiAxiosParamCreator: () => CredentialsApiAxiosParamCreator,
|
|
42
57
|
CredentialsApiFactory: () => CredentialsApiFactory,
|
|
43
58
|
CredentialsApiFp: () => CredentialsApiFp,
|
|
59
|
+
DIDApi: () => DIDApi,
|
|
60
|
+
DIDApiAxiosParamCreator: () => DIDApiAxiosParamCreator,
|
|
61
|
+
DIDApiFactory: () => DIDApiFactory,
|
|
62
|
+
DIDApiFp: () => DIDApiFp,
|
|
44
63
|
DeliveryActionType: () => DeliveryActionType,
|
|
45
64
|
GenerateRequestDtoSecurityLevelEnum: () => GenerateRequestDtoSecurityLevelEnum,
|
|
46
|
-
GetGroupsTypesEnum: () => GetGroupsTypesEnum,
|
|
47
|
-
GetRequestsSecurityLevelEnum: () => GetRequestsSecurityLevelEnum,
|
|
48
|
-
GetResourcesTypesEnum: () => GetResourcesTypesEnum,
|
|
49
|
-
GroupResourceEntityTypeEnum: () => GroupResourceEntityTypeEnum,
|
|
50
65
|
HumanosClient: () => HumanosClient,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
66
|
+
IdentityEventEventTypeEnum: () => IdentityEventEventTypeEnum,
|
|
67
|
+
ListSecurityLevelEnum: () => ListSecurityLevelEnum,
|
|
68
|
+
ListTypeEnum: () => ListTypeEnum,
|
|
69
|
+
ListTypesEnum: () => ListTypesEnum,
|
|
70
|
+
OtpFailedEventEventTypeEnum: () => OtpFailedEventEventTypeEnum,
|
|
71
|
+
RequestCredentialEntityStatusEnum: () => RequestCredentialEntityStatusEnum,
|
|
54
72
|
RequestDetailEntitySecurityLevelEnum: () => RequestDetailEntitySecurityLevelEnum,
|
|
73
|
+
RequestDetailSubjectEntityIdentityStatusEnum: () => RequestDetailSubjectEntityIdentityStatusEnum,
|
|
55
74
|
RequestEntitySecurityLevelEnum: () => RequestEntitySecurityLevelEnum,
|
|
56
75
|
RequestQuerySecurityLevelEnum: () => RequestQuerySecurityLevelEnum,
|
|
76
|
+
RequestSubjectEntityIdentityStatusEnum: () => RequestSubjectEntityIdentityStatusEnum,
|
|
57
77
|
RequestsApi: () => RequestsApi,
|
|
58
78
|
RequestsApiAxiosParamCreator: () => RequestsApiAxiosParamCreator,
|
|
59
79
|
RequestsApiFactory: () => RequestsApiFactory,
|
|
60
80
|
RequestsApiFp: () => RequestsApiFp,
|
|
61
|
-
ResourceApi: () => ResourceApi,
|
|
62
|
-
ResourceApiAxiosParamCreator: () => ResourceApiAxiosParamCreator,
|
|
63
|
-
ResourceApiFactory: () => ResourceApiFactory,
|
|
64
|
-
ResourceApiFp: () => ResourceApiFp,
|
|
65
81
|
ResourceEntityTypeEnum: () => ResourceEntityTypeEnum,
|
|
82
|
+
ResourceMinimalEntityTypeEnum: () => ResourceMinimalEntityTypeEnum,
|
|
66
83
|
ResourceQueryTypesEnum: () => ResourceQueryTypesEnum,
|
|
84
|
+
RevokeCredentialEntityStatusEnum: () => RevokeCredentialEntityStatusEnum,
|
|
67
85
|
SDK_LANGUAGE: () => SDK_LANGUAGE,
|
|
86
|
+
SubjectIssuerEntityIdentityStatusEnum: () => SubjectIssuerEntityIdentityStatusEnum,
|
|
87
|
+
TestEventEventTypeEnum: () => TestEventEventTypeEnum,
|
|
68
88
|
UserApi: () => UserApi,
|
|
69
89
|
UserApiAxiosParamCreator: () => UserApiAxiosParamCreator,
|
|
70
90
|
UserApiFactory: () => UserApiFactory,
|
|
71
91
|
UserApiFp: () => UserApiFp,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
92
|
+
VerifyAllowResponseEntityDecisionEnum: () => VerifyAllowResponseEntityDecisionEnum,
|
|
93
|
+
VerifyDenyResponseEntityDecisionEnum: () => VerifyDenyResponseEntityDecisionEnum,
|
|
94
|
+
VerifyEvaluationEntityResultEnum: () => VerifyEvaluationEntityResultEnum,
|
|
95
|
+
WebhooksApi: () => WebhooksApi,
|
|
96
|
+
WebhooksApiAxiosParamCreator: () => WebhooksApiAxiosParamCreator,
|
|
97
|
+
WebhooksApiFactory: () => WebhooksApiFactory,
|
|
98
|
+
WebhooksApiFp: () => WebhooksApiFp,
|
|
99
|
+
WorkflowsTypesEnum: () => WorkflowsTypesEnum,
|
|
78
100
|
applySignatureInterceptor: () => applySignatureInterceptor,
|
|
79
101
|
createHumanosClient: () => createHumanosClient,
|
|
80
102
|
createSignatureInterceptor: () => createSignatureInterceptor,
|
|
@@ -87,9 +109,9 @@ __export(index_exports, {
|
|
|
87
109
|
module.exports = __toCommonJS(index_exports);
|
|
88
110
|
|
|
89
111
|
// src/client.ts
|
|
90
|
-
var
|
|
112
|
+
var import_axios10 = __toESM(require("axios"));
|
|
91
113
|
|
|
92
|
-
// generated/api/
|
|
114
|
+
// generated/api/actions-api.ts
|
|
93
115
|
var import_axios2 = __toESM(require("axios"));
|
|
94
116
|
|
|
95
117
|
// generated/base.ts
|
|
@@ -152,45 +174,775 @@ var serializeDataIfNeeded = function(value, requestOptions, configuration) {
|
|
|
152
174
|
var toPathString = function(url) {
|
|
153
175
|
return url.pathname + url.search + url.hash;
|
|
154
176
|
};
|
|
155
|
-
var createRequestFunction = function(axiosArgs,
|
|
156
|
-
return (axios2 =
|
|
177
|
+
var createRequestFunction = function(axiosArgs, globalAxios10, BASE_PATH2, configuration) {
|
|
178
|
+
return (axios2 = globalAxios10, basePath = BASE_PATH2) => {
|
|
157
179
|
const axiosRequestArgs = { ...axiosArgs.options, url: (axios2.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
158
180
|
return axios2.request(axiosRequestArgs);
|
|
159
181
|
};
|
|
160
182
|
};
|
|
161
183
|
|
|
184
|
+
// generated/api/actions-api.ts
|
|
185
|
+
var ActionsApiAxiosParamCreator = function(configuration) {
|
|
186
|
+
return {
|
|
187
|
+
/**
|
|
188
|
+
* Retrieve actions for the authenticated organization. Only published versions are ever exposed here; drafts are hidden from public clients.
|
|
189
|
+
* @summary Get Actions
|
|
190
|
+
* @param {number} [pageIndex] Page number
|
|
191
|
+
* @param {number} [pageSize] Number of items per page
|
|
192
|
+
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
193
|
+
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
194
|
+
* @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.
|
|
195
|
+
* @param {*} [options] Override http request option.
|
|
196
|
+
* @throws {RequiredError}
|
|
197
|
+
*/
|
|
198
|
+
list: async (pageIndex, pageSize, search, active, aPIVersion, options = {}) => {
|
|
199
|
+
const localVarPath = `/actions`;
|
|
200
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
201
|
+
let baseOptions;
|
|
202
|
+
if (configuration) {
|
|
203
|
+
baseOptions = configuration.baseOptions;
|
|
204
|
+
}
|
|
205
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
206
|
+
const localVarHeaderParameter = {};
|
|
207
|
+
const localVarQueryParameter = {};
|
|
208
|
+
if (pageIndex !== void 0) {
|
|
209
|
+
localVarQueryParameter["pageIndex"] = pageIndex;
|
|
210
|
+
}
|
|
211
|
+
if (pageSize !== void 0) {
|
|
212
|
+
localVarQueryParameter["pageSize"] = pageSize;
|
|
213
|
+
}
|
|
214
|
+
if (search !== void 0) {
|
|
215
|
+
localVarQueryParameter["search"] = search;
|
|
216
|
+
}
|
|
217
|
+
if (active !== void 0) {
|
|
218
|
+
localVarQueryParameter["active"] = active;
|
|
219
|
+
}
|
|
220
|
+
if (aPIVersion != null) {
|
|
221
|
+
localVarHeaderParameter["API-Version"] = String(aPIVersion);
|
|
222
|
+
}
|
|
223
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
224
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
225
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
226
|
+
return {
|
|
227
|
+
url: toPathString(localVarUrlObj),
|
|
228
|
+
options: localVarRequestOptions
|
|
229
|
+
};
|
|
230
|
+
},
|
|
231
|
+
/**
|
|
232
|
+
* Retrieve published versions of an action. Drafts are hidden from public clients.
|
|
233
|
+
* @summary Get Versions
|
|
234
|
+
* @param {string} id
|
|
235
|
+
* @param {number} [pageIndex] Page number
|
|
236
|
+
* @param {number} [pageSize] Number of items per page
|
|
237
|
+
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
238
|
+
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
239
|
+
* @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.
|
|
240
|
+
* @param {*} [options] Override http request option.
|
|
241
|
+
* @throws {RequiredError}
|
|
242
|
+
*/
|
|
243
|
+
versions: async (id, pageIndex, pageSize, search, active, aPIVersion, options = {}) => {
|
|
244
|
+
assertParamExists("versions", "id", id);
|
|
245
|
+
const localVarPath = `/actions/version/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
246
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
247
|
+
let baseOptions;
|
|
248
|
+
if (configuration) {
|
|
249
|
+
baseOptions = configuration.baseOptions;
|
|
250
|
+
}
|
|
251
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
252
|
+
const localVarHeaderParameter = {};
|
|
253
|
+
const localVarQueryParameter = {};
|
|
254
|
+
if (pageIndex !== void 0) {
|
|
255
|
+
localVarQueryParameter["pageIndex"] = pageIndex;
|
|
256
|
+
}
|
|
257
|
+
if (pageSize !== void 0) {
|
|
258
|
+
localVarQueryParameter["pageSize"] = pageSize;
|
|
259
|
+
}
|
|
260
|
+
if (search !== void 0) {
|
|
261
|
+
localVarQueryParameter["search"] = search;
|
|
262
|
+
}
|
|
263
|
+
if (active !== void 0) {
|
|
264
|
+
localVarQueryParameter["active"] = active;
|
|
265
|
+
}
|
|
266
|
+
if (aPIVersion != null) {
|
|
267
|
+
localVarHeaderParameter["API-Version"] = String(aPIVersion);
|
|
268
|
+
}
|
|
269
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
270
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
271
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
272
|
+
return {
|
|
273
|
+
url: toPathString(localVarUrlObj),
|
|
274
|
+
options: localVarRequestOptions
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
var ActionsApiFp = function(configuration) {
|
|
280
|
+
const localVarAxiosParamCreator = ActionsApiAxiosParamCreator(configuration);
|
|
281
|
+
return {
|
|
282
|
+
/**
|
|
283
|
+
* Retrieve actions for the authenticated organization. Only published versions are ever exposed here; drafts are hidden from public clients.
|
|
284
|
+
* @summary Get Actions
|
|
285
|
+
* @param {number} [pageIndex] Page number
|
|
286
|
+
* @param {number} [pageSize] Number of items per page
|
|
287
|
+
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
288
|
+
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
289
|
+
* @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.
|
|
290
|
+
* @param {*} [options] Override http request option.
|
|
291
|
+
* @throws {RequiredError}
|
|
292
|
+
*/
|
|
293
|
+
async list(pageIndex, pageSize, search, active, aPIVersion, options) {
|
|
294
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.list(pageIndex, pageSize, search, active, aPIVersion, options);
|
|
295
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
296
|
+
const localVarOperationServerBasePath = operationServerMap["ActionsApi.list"]?.[localVarOperationServerIndex]?.url;
|
|
297
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
298
|
+
},
|
|
299
|
+
/**
|
|
300
|
+
* Retrieve published versions of an action. Drafts are hidden from public clients.
|
|
301
|
+
* @summary Get Versions
|
|
302
|
+
* @param {string} id
|
|
303
|
+
* @param {number} [pageIndex] Page number
|
|
304
|
+
* @param {number} [pageSize] Number of items per page
|
|
305
|
+
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
306
|
+
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
307
|
+
* @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.
|
|
308
|
+
* @param {*} [options] Override http request option.
|
|
309
|
+
* @throws {RequiredError}
|
|
310
|
+
*/
|
|
311
|
+
async versions(id, pageIndex, pageSize, search, active, aPIVersion, options) {
|
|
312
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.versions(id, pageIndex, pageSize, search, active, aPIVersion, options);
|
|
313
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
314
|
+
const localVarOperationServerBasePath = operationServerMap["ActionsApi.versions"]?.[localVarOperationServerIndex]?.url;
|
|
315
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
var ActionsApiFactory = function(configuration, basePath, axios2) {
|
|
320
|
+
const localVarFp = ActionsApiFp(configuration);
|
|
321
|
+
return {
|
|
322
|
+
/**
|
|
323
|
+
* Retrieve actions for the authenticated organization. Only published versions are ever exposed here; drafts are hidden from public clients.
|
|
324
|
+
* @summary Get Actions
|
|
325
|
+
* @param {number} [pageIndex] Page number
|
|
326
|
+
* @param {number} [pageSize] Number of items per page
|
|
327
|
+
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
328
|
+
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
329
|
+
* @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.
|
|
330
|
+
* @param {*} [options] Override http request option.
|
|
331
|
+
* @throws {RequiredError}
|
|
332
|
+
*/
|
|
333
|
+
list(pageIndex, pageSize, search, active, aPIVersion, options) {
|
|
334
|
+
return localVarFp.list(pageIndex, pageSize, search, active, aPIVersion, options).then((request) => request(axios2, basePath));
|
|
335
|
+
},
|
|
336
|
+
/**
|
|
337
|
+
* Retrieve published versions of an action. Drafts are hidden from public clients.
|
|
338
|
+
* @summary Get Versions
|
|
339
|
+
* @param {string} id
|
|
340
|
+
* @param {number} [pageIndex] Page number
|
|
341
|
+
* @param {number} [pageSize] Number of items per page
|
|
342
|
+
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
343
|
+
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
344
|
+
* @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.
|
|
345
|
+
* @param {*} [options] Override http request option.
|
|
346
|
+
* @throws {RequiredError}
|
|
347
|
+
*/
|
|
348
|
+
versions(id, pageIndex, pageSize, search, active, aPIVersion, options) {
|
|
349
|
+
return localVarFp.versions(id, pageIndex, pageSize, search, active, aPIVersion, options).then((request) => request(axios2, basePath));
|
|
350
|
+
}
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
var ActionsApi = class extends BaseAPI {
|
|
354
|
+
/**
|
|
355
|
+
* Retrieve actions for the authenticated organization. Only published versions are ever exposed here; drafts are hidden from public clients.
|
|
356
|
+
* @summary Get Actions
|
|
357
|
+
* @param {number} [pageIndex] Page number
|
|
358
|
+
* @param {number} [pageSize] Number of items per page
|
|
359
|
+
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
360
|
+
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
361
|
+
* @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.
|
|
362
|
+
* @param {*} [options] Override http request option.
|
|
363
|
+
* @throws {RequiredError}
|
|
364
|
+
* @memberof ActionsApi
|
|
365
|
+
*/
|
|
366
|
+
list(pageIndex, pageSize, search, active, aPIVersion, options) {
|
|
367
|
+
return ActionsApiFp(this.configuration).list(pageIndex, pageSize, search, active, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* Retrieve published versions of an action. Drafts are hidden from public clients.
|
|
371
|
+
* @summary Get Versions
|
|
372
|
+
* @param {string} id
|
|
373
|
+
* @param {number} [pageIndex] Page number
|
|
374
|
+
* @param {number} [pageSize] Number of items per page
|
|
375
|
+
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
376
|
+
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
377
|
+
* @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.
|
|
378
|
+
* @param {*} [options] Override http request option.
|
|
379
|
+
* @throws {RequiredError}
|
|
380
|
+
* @memberof ActionsApi
|
|
381
|
+
*/
|
|
382
|
+
versions(id, pageIndex, pageSize, search, active, aPIVersion, options) {
|
|
383
|
+
return ActionsApiFp(this.configuration).versions(id, pageIndex, pageSize, search, active, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
// generated/api/activity-api.ts
|
|
388
|
+
var import_axios3 = __toESM(require("axios"));
|
|
389
|
+
var ActivityApiAxiosParamCreator = function(configuration) {
|
|
390
|
+
return {
|
|
391
|
+
/**
|
|
392
|
+
* 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.
|
|
393
|
+
* @summary List Activity Events
|
|
394
|
+
* @param {number} [pageIndex] Page number
|
|
395
|
+
* @param {number} [pageSize] Number of items per page
|
|
396
|
+
* @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.
|
|
397
|
+
* @param {string} [entityType] Filter by the broad entity class the event was emitted against (e.g. \"credential\", \"request\", \"veriff\").
|
|
398
|
+
* @param {string} [entityId] Filter by a specific entity id (must be a valid MongoDB ObjectId).
|
|
399
|
+
* @param {string} [actorDid] Filter by the DID of the actor that triggered the event.
|
|
400
|
+
* @param {string} [subjectDid] Filter by the DID of the subject affected by the event.
|
|
401
|
+
* @param {string} [dateFrom] Filter from date (will be converted to start of day).
|
|
402
|
+
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
403
|
+
* @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.
|
|
404
|
+
* @param {*} [options] Override http request option.
|
|
405
|
+
* @throws {RequiredError}
|
|
406
|
+
*/
|
|
407
|
+
list: async (pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid, dateFrom, dateTo, aPIVersion, options = {}) => {
|
|
408
|
+
const localVarPath = `/activity`;
|
|
409
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
410
|
+
let baseOptions;
|
|
411
|
+
if (configuration) {
|
|
412
|
+
baseOptions = configuration.baseOptions;
|
|
413
|
+
}
|
|
414
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
415
|
+
const localVarHeaderParameter = {};
|
|
416
|
+
const localVarQueryParameter = {};
|
|
417
|
+
if (pageIndex !== void 0) {
|
|
418
|
+
localVarQueryParameter["pageIndex"] = pageIndex;
|
|
419
|
+
}
|
|
420
|
+
if (pageSize !== void 0) {
|
|
421
|
+
localVarQueryParameter["pageSize"] = pageSize;
|
|
422
|
+
}
|
|
423
|
+
if (type) {
|
|
424
|
+
localVarQueryParameter["type"] = type;
|
|
425
|
+
}
|
|
426
|
+
if (entityType !== void 0) {
|
|
427
|
+
localVarQueryParameter["entityType"] = entityType;
|
|
428
|
+
}
|
|
429
|
+
if (entityId !== void 0) {
|
|
430
|
+
localVarQueryParameter["entityId"] = entityId;
|
|
431
|
+
}
|
|
432
|
+
if (actorDid !== void 0) {
|
|
433
|
+
localVarQueryParameter["actorDid"] = actorDid;
|
|
434
|
+
}
|
|
435
|
+
if (subjectDid !== void 0) {
|
|
436
|
+
localVarQueryParameter["subjectDid"] = subjectDid;
|
|
437
|
+
}
|
|
438
|
+
if (dateFrom !== void 0) {
|
|
439
|
+
localVarQueryParameter["dateFrom"] = dateFrom instanceof Date ? dateFrom.toISOString() : dateFrom;
|
|
440
|
+
}
|
|
441
|
+
if (dateTo !== void 0) {
|
|
442
|
+
localVarQueryParameter["dateTo"] = dateTo instanceof Date ? dateTo.toISOString() : dateTo;
|
|
443
|
+
}
|
|
444
|
+
if (aPIVersion != null) {
|
|
445
|
+
localVarHeaderParameter["API-Version"] = String(aPIVersion);
|
|
446
|
+
}
|
|
447
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
448
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
449
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
450
|
+
return {
|
|
451
|
+
url: toPathString(localVarUrlObj),
|
|
452
|
+
options: localVarRequestOptions
|
|
453
|
+
};
|
|
454
|
+
}
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
var ActivityApiFp = function(configuration) {
|
|
458
|
+
const localVarAxiosParamCreator = ActivityApiAxiosParamCreator(configuration);
|
|
459
|
+
return {
|
|
460
|
+
/**
|
|
461
|
+
* 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.
|
|
462
|
+
* @summary List Activity Events
|
|
463
|
+
* @param {number} [pageIndex] Page number
|
|
464
|
+
* @param {number} [pageSize] Number of items per page
|
|
465
|
+
* @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.
|
|
466
|
+
* @param {string} [entityType] Filter by the broad entity class the event was emitted against (e.g. \"credential\", \"request\", \"veriff\").
|
|
467
|
+
* @param {string} [entityId] Filter by a specific entity id (must be a valid MongoDB ObjectId).
|
|
468
|
+
* @param {string} [actorDid] Filter by the DID of the actor that triggered the event.
|
|
469
|
+
* @param {string} [subjectDid] Filter by the DID of the subject affected by the event.
|
|
470
|
+
* @param {string} [dateFrom] Filter from date (will be converted to start of day).
|
|
471
|
+
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
472
|
+
* @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.
|
|
473
|
+
* @param {*} [options] Override http request option.
|
|
474
|
+
* @throws {RequiredError}
|
|
475
|
+
*/
|
|
476
|
+
async list(pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid, dateFrom, dateTo, aPIVersion, options) {
|
|
477
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.list(pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid, dateFrom, dateTo, aPIVersion, options);
|
|
478
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
479
|
+
const localVarOperationServerBasePath = operationServerMap["ActivityApi.list"]?.[localVarOperationServerIndex]?.url;
|
|
480
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios3.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
481
|
+
}
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
var ActivityApiFactory = function(configuration, basePath, axios2) {
|
|
485
|
+
const localVarFp = ActivityApiFp(configuration);
|
|
486
|
+
return {
|
|
487
|
+
/**
|
|
488
|
+
* 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.
|
|
489
|
+
* @summary List Activity Events
|
|
490
|
+
* @param {number} [pageIndex] Page number
|
|
491
|
+
* @param {number} [pageSize] Number of items per page
|
|
492
|
+
* @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.
|
|
493
|
+
* @param {string} [entityType] Filter by the broad entity class the event was emitted against (e.g. \"credential\", \"request\", \"veriff\").
|
|
494
|
+
* @param {string} [entityId] Filter by a specific entity id (must be a valid MongoDB ObjectId).
|
|
495
|
+
* @param {string} [actorDid] Filter by the DID of the actor that triggered the event.
|
|
496
|
+
* @param {string} [subjectDid] Filter by the DID of the subject affected by the event.
|
|
497
|
+
* @param {string} [dateFrom] Filter from date (will be converted to start of day).
|
|
498
|
+
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
499
|
+
* @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.
|
|
500
|
+
* @param {*} [options] Override http request option.
|
|
501
|
+
* @throws {RequiredError}
|
|
502
|
+
*/
|
|
503
|
+
list(pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid, dateFrom, dateTo, aPIVersion, options) {
|
|
504
|
+
return localVarFp.list(pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid, dateFrom, dateTo, aPIVersion, options).then((request) => request(axios2, basePath));
|
|
505
|
+
}
|
|
506
|
+
};
|
|
507
|
+
};
|
|
508
|
+
var ActivityApi = class extends BaseAPI {
|
|
509
|
+
/**
|
|
510
|
+
* 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.
|
|
511
|
+
* @summary List Activity Events
|
|
512
|
+
* @param {number} [pageIndex] Page number
|
|
513
|
+
* @param {number} [pageSize] Number of items per page
|
|
514
|
+
* @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.
|
|
515
|
+
* @param {string} [entityType] Filter by the broad entity class the event was emitted against (e.g. \"credential\", \"request\", \"veriff\").
|
|
516
|
+
* @param {string} [entityId] Filter by a specific entity id (must be a valid MongoDB ObjectId).
|
|
517
|
+
* @param {string} [actorDid] Filter by the DID of the actor that triggered the event.
|
|
518
|
+
* @param {string} [subjectDid] Filter by the DID of the subject affected by the event.
|
|
519
|
+
* @param {string} [dateFrom] Filter from date (will be converted to start of day).
|
|
520
|
+
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
521
|
+
* @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.
|
|
522
|
+
* @param {*} [options] Override http request option.
|
|
523
|
+
* @throws {RequiredError}
|
|
524
|
+
* @memberof ActivityApi
|
|
525
|
+
*/
|
|
526
|
+
list(pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid, dateFrom, dateTo, aPIVersion, options) {
|
|
527
|
+
return ActivityApiFp(this.configuration).list(pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid, dateFrom, dateTo, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
528
|
+
}
|
|
529
|
+
};
|
|
530
|
+
var ListTypeEnum = {
|
|
531
|
+
RequestCreated: "REQUEST_CREATED",
|
|
532
|
+
RequestCanceled: "REQUEST_CANCELED",
|
|
533
|
+
VpCreated: "VP_CREATED",
|
|
534
|
+
VpDenied: "VP_DENIED",
|
|
535
|
+
VpVerified: "VP_VERIFIED",
|
|
536
|
+
VpVerificationDenied: "VP_VERIFICATION_DENIED",
|
|
537
|
+
UserDecisionAccepted: "USER_DECISION_ACCEPTED",
|
|
538
|
+
UserDecisionRejected: "USER_DECISION_REJECTED",
|
|
539
|
+
MandateIssued: "MANDATE_ISSUED",
|
|
540
|
+
MandateRevoked: "MANDATE_REVOKED",
|
|
541
|
+
KycAccepted: "KYC_ACCEPTED",
|
|
542
|
+
KycRejected: "KYC_REJECTED"
|
|
543
|
+
};
|
|
544
|
+
|
|
545
|
+
// generated/api/approval-api.ts
|
|
546
|
+
var import_axios4 = __toESM(require("axios"));
|
|
547
|
+
var ApprovalApiAxiosParamCreator = function(configuration) {
|
|
548
|
+
return {
|
|
549
|
+
/**
|
|
550
|
+
* Retrieve a paginated list of your approvals. Approvals can be documents, consents, forms.
|
|
551
|
+
* @summary Get Approvals
|
|
552
|
+
* @param {number} [pageIndex] Page number
|
|
553
|
+
* @param {number} [pageSize] Number of items per page
|
|
554
|
+
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
555
|
+
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
556
|
+
* @param {Array<ListTypesEnum>} [types] Filter by resource types. Can be a single value or array
|
|
557
|
+
* @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
|
|
558
|
+
* @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.
|
|
559
|
+
* @param {*} [options] Override http request option.
|
|
560
|
+
* @throws {RequiredError}
|
|
561
|
+
*/
|
|
562
|
+
list: async (pageIndex, pageSize, search, active, types, internalId, aPIVersion, options = {}) => {
|
|
563
|
+
const localVarPath = `/approvals`;
|
|
564
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
565
|
+
let baseOptions;
|
|
566
|
+
if (configuration) {
|
|
567
|
+
baseOptions = configuration.baseOptions;
|
|
568
|
+
}
|
|
569
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
570
|
+
const localVarHeaderParameter = {};
|
|
571
|
+
const localVarQueryParameter = {};
|
|
572
|
+
if (pageIndex !== void 0) {
|
|
573
|
+
localVarQueryParameter["pageIndex"] = pageIndex;
|
|
574
|
+
}
|
|
575
|
+
if (pageSize !== void 0) {
|
|
576
|
+
localVarQueryParameter["pageSize"] = pageSize;
|
|
577
|
+
}
|
|
578
|
+
if (search !== void 0) {
|
|
579
|
+
localVarQueryParameter["search"] = search;
|
|
580
|
+
}
|
|
581
|
+
if (active !== void 0) {
|
|
582
|
+
localVarQueryParameter["active"] = active;
|
|
583
|
+
}
|
|
584
|
+
if (types) {
|
|
585
|
+
localVarQueryParameter["types"] = types;
|
|
586
|
+
}
|
|
587
|
+
if (internalId !== void 0) {
|
|
588
|
+
localVarQueryParameter["internalId"] = internalId;
|
|
589
|
+
}
|
|
590
|
+
if (aPIVersion != null) {
|
|
591
|
+
localVarHeaderParameter["API-Version"] = String(aPIVersion);
|
|
592
|
+
}
|
|
593
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
594
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
595
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
596
|
+
return {
|
|
597
|
+
url: toPathString(localVarUrlObj),
|
|
598
|
+
options: localVarRequestOptions
|
|
599
|
+
};
|
|
600
|
+
},
|
|
601
|
+
/**
|
|
602
|
+
* Retrieve a paginated list of your workflows, including their approvals. Workflows allow to pack approvals together and easily request them.
|
|
603
|
+
* @summary List Workflows
|
|
604
|
+
* @param {number} [pageIndex] Page number
|
|
605
|
+
* @param {number} [pageSize] Number of items per page
|
|
606
|
+
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
607
|
+
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
608
|
+
* @param {Array<WorkflowsTypesEnum>} [types] Filter by resource types. Can be a single value or array
|
|
609
|
+
* @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
|
|
610
|
+
* @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.
|
|
611
|
+
* @param {*} [options] Override http request option.
|
|
612
|
+
* @throws {RequiredError}
|
|
613
|
+
*/
|
|
614
|
+
workflows: async (pageIndex, pageSize, search, active, types, internalId, aPIVersion, options = {}) => {
|
|
615
|
+
const localVarPath = `/approvals/workflow`;
|
|
616
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
617
|
+
let baseOptions;
|
|
618
|
+
if (configuration) {
|
|
619
|
+
baseOptions = configuration.baseOptions;
|
|
620
|
+
}
|
|
621
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
622
|
+
const localVarHeaderParameter = {};
|
|
623
|
+
const localVarQueryParameter = {};
|
|
624
|
+
if (pageIndex !== void 0) {
|
|
625
|
+
localVarQueryParameter["pageIndex"] = pageIndex;
|
|
626
|
+
}
|
|
627
|
+
if (pageSize !== void 0) {
|
|
628
|
+
localVarQueryParameter["pageSize"] = pageSize;
|
|
629
|
+
}
|
|
630
|
+
if (search !== void 0) {
|
|
631
|
+
localVarQueryParameter["search"] = search;
|
|
632
|
+
}
|
|
633
|
+
if (active !== void 0) {
|
|
634
|
+
localVarQueryParameter["active"] = active;
|
|
635
|
+
}
|
|
636
|
+
if (types) {
|
|
637
|
+
localVarQueryParameter["types"] = types;
|
|
638
|
+
}
|
|
639
|
+
if (internalId !== void 0) {
|
|
640
|
+
localVarQueryParameter["internalId"] = internalId;
|
|
641
|
+
}
|
|
642
|
+
if (aPIVersion != null) {
|
|
643
|
+
localVarHeaderParameter["API-Version"] = String(aPIVersion);
|
|
644
|
+
}
|
|
645
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
646
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
647
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
648
|
+
return {
|
|
649
|
+
url: toPathString(localVarUrlObj),
|
|
650
|
+
options: localVarRequestOptions
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
};
|
|
654
|
+
};
|
|
655
|
+
var ApprovalApiFp = function(configuration) {
|
|
656
|
+
const localVarAxiosParamCreator = ApprovalApiAxiosParamCreator(configuration);
|
|
657
|
+
return {
|
|
658
|
+
/**
|
|
659
|
+
* Retrieve a paginated list of your approvals. Approvals can be documents, consents, forms.
|
|
660
|
+
* @summary Get Approvals
|
|
661
|
+
* @param {number} [pageIndex] Page number
|
|
662
|
+
* @param {number} [pageSize] Number of items per page
|
|
663
|
+
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
664
|
+
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
665
|
+
* @param {Array<ListTypesEnum>} [types] Filter by resource types. Can be a single value or array
|
|
666
|
+
* @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
|
|
667
|
+
* @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.
|
|
668
|
+
* @param {*} [options] Override http request option.
|
|
669
|
+
* @throws {RequiredError}
|
|
670
|
+
*/
|
|
671
|
+
async list(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options) {
|
|
672
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.list(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options);
|
|
673
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
674
|
+
const localVarOperationServerBasePath = operationServerMap["ApprovalApi.list"]?.[localVarOperationServerIndex]?.url;
|
|
675
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios4.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
676
|
+
},
|
|
677
|
+
/**
|
|
678
|
+
* Retrieve a paginated list of your workflows, including their approvals. Workflows allow to pack approvals together and easily request them.
|
|
679
|
+
* @summary List Workflows
|
|
680
|
+
* @param {number} [pageIndex] Page number
|
|
681
|
+
* @param {number} [pageSize] Number of items per page
|
|
682
|
+
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
683
|
+
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
684
|
+
* @param {Array<WorkflowsTypesEnum>} [types] Filter by resource types. Can be a single value or array
|
|
685
|
+
* @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
|
|
686
|
+
* @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.
|
|
687
|
+
* @param {*} [options] Override http request option.
|
|
688
|
+
* @throws {RequiredError}
|
|
689
|
+
*/
|
|
690
|
+
async workflows(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options) {
|
|
691
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.workflows(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options);
|
|
692
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
693
|
+
const localVarOperationServerBasePath = operationServerMap["ApprovalApi.workflows"]?.[localVarOperationServerIndex]?.url;
|
|
694
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios4.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
695
|
+
}
|
|
696
|
+
};
|
|
697
|
+
};
|
|
698
|
+
var ApprovalApiFactory = function(configuration, basePath, axios2) {
|
|
699
|
+
const localVarFp = ApprovalApiFp(configuration);
|
|
700
|
+
return {
|
|
701
|
+
/**
|
|
702
|
+
* Retrieve a paginated list of your approvals. Approvals can be documents, consents, forms.
|
|
703
|
+
* @summary Get Approvals
|
|
704
|
+
* @param {number} [pageIndex] Page number
|
|
705
|
+
* @param {number} [pageSize] Number of items per page
|
|
706
|
+
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
707
|
+
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
708
|
+
* @param {Array<ListTypesEnum>} [types] Filter by resource types. Can be a single value or array
|
|
709
|
+
* @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
|
|
710
|
+
* @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.
|
|
711
|
+
* @param {*} [options] Override http request option.
|
|
712
|
+
* @throws {RequiredError}
|
|
713
|
+
*/
|
|
714
|
+
list(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options) {
|
|
715
|
+
return localVarFp.list(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options).then((request) => request(axios2, basePath));
|
|
716
|
+
},
|
|
717
|
+
/**
|
|
718
|
+
* Retrieve a paginated list of your workflows, including their approvals. Workflows allow to pack approvals together and easily request them.
|
|
719
|
+
* @summary List Workflows
|
|
720
|
+
* @param {number} [pageIndex] Page number
|
|
721
|
+
* @param {number} [pageSize] Number of items per page
|
|
722
|
+
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
723
|
+
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
724
|
+
* @param {Array<WorkflowsTypesEnum>} [types] Filter by resource types. Can be a single value or array
|
|
725
|
+
* @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
|
|
726
|
+
* @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.
|
|
727
|
+
* @param {*} [options] Override http request option.
|
|
728
|
+
* @throws {RequiredError}
|
|
729
|
+
*/
|
|
730
|
+
workflows(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options) {
|
|
731
|
+
return localVarFp.workflows(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options).then((request) => request(axios2, basePath));
|
|
732
|
+
}
|
|
733
|
+
};
|
|
734
|
+
};
|
|
735
|
+
var ApprovalApi = class extends BaseAPI {
|
|
736
|
+
/**
|
|
737
|
+
* Retrieve a paginated list of your approvals. Approvals can be documents, consents, forms.
|
|
738
|
+
* @summary Get Approvals
|
|
739
|
+
* @param {number} [pageIndex] Page number
|
|
740
|
+
* @param {number} [pageSize] Number of items per page
|
|
741
|
+
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
742
|
+
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
743
|
+
* @param {Array<ListTypesEnum>} [types] Filter by resource types. Can be a single value or array
|
|
744
|
+
* @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
|
|
745
|
+
* @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.
|
|
746
|
+
* @param {*} [options] Override http request option.
|
|
747
|
+
* @throws {RequiredError}
|
|
748
|
+
* @memberof ApprovalApi
|
|
749
|
+
*/
|
|
750
|
+
list(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options) {
|
|
751
|
+
return ApprovalApiFp(this.configuration).list(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
752
|
+
}
|
|
753
|
+
/**
|
|
754
|
+
* Retrieve a paginated list of your workflows, including their approvals. Workflows allow to pack approvals together and easily request them.
|
|
755
|
+
* @summary List Workflows
|
|
756
|
+
* @param {number} [pageIndex] Page number
|
|
757
|
+
* @param {number} [pageSize] Number of items per page
|
|
758
|
+
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
759
|
+
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
760
|
+
* @param {Array<WorkflowsTypesEnum>} [types] Filter by resource types. Can be a single value or array
|
|
761
|
+
* @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
|
|
762
|
+
* @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.
|
|
763
|
+
* @param {*} [options] Override http request option.
|
|
764
|
+
* @throws {RequiredError}
|
|
765
|
+
* @memberof ApprovalApi
|
|
766
|
+
*/
|
|
767
|
+
workflows(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options) {
|
|
768
|
+
return ApprovalApiFp(this.configuration).workflows(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
769
|
+
}
|
|
770
|
+
};
|
|
771
|
+
var ListTypesEnum = {
|
|
772
|
+
Consent: "CONSENT",
|
|
773
|
+
Form: "FORM",
|
|
774
|
+
Document: "DOCUMENT",
|
|
775
|
+
Json: "JSON",
|
|
776
|
+
Payment: "PAYMENT",
|
|
777
|
+
Policy: "POLICY"
|
|
778
|
+
};
|
|
779
|
+
var WorkflowsTypesEnum = {
|
|
780
|
+
Consent: "CONSENT",
|
|
781
|
+
Form: "FORM",
|
|
782
|
+
Document: "DOCUMENT",
|
|
783
|
+
Json: "JSON",
|
|
784
|
+
Payment: "PAYMENT",
|
|
785
|
+
Policy: "POLICY"
|
|
786
|
+
};
|
|
787
|
+
|
|
162
788
|
// generated/api/credentials-api.ts
|
|
789
|
+
var import_axios5 = __toESM(require("axios"));
|
|
163
790
|
var CredentialsApiAxiosParamCreator = function(configuration) {
|
|
164
791
|
return {
|
|
165
792
|
/**
|
|
166
|
-
* Retrieve a
|
|
167
|
-
* @summary Get Credential
|
|
168
|
-
* @param {string} credentialId
|
|
169
|
-
* @param {
|
|
793
|
+
* Retrieve a credential by its identifier, including the full W3C Verifiable Credential, and the latest status of all grantor decisions.
|
|
794
|
+
* @summary Get Credential
|
|
795
|
+
* @param {string} credentialId Identifier of the credential
|
|
796
|
+
* @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.
|
|
797
|
+
* @param {*} [options] Override http request option.
|
|
798
|
+
* @throws {RequiredError}
|
|
799
|
+
*/
|
|
800
|
+
detail: async (credentialId, aPIVersion, options = {}) => {
|
|
801
|
+
assertParamExists("detail", "credentialId", credentialId);
|
|
802
|
+
const localVarPath = `/credential/{credentialId}`.replace(`{${"credentialId"}}`, encodeURIComponent(String(credentialId)));
|
|
803
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
804
|
+
let baseOptions;
|
|
805
|
+
if (configuration) {
|
|
806
|
+
baseOptions = configuration.baseOptions;
|
|
807
|
+
}
|
|
808
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
809
|
+
const localVarHeaderParameter = {};
|
|
810
|
+
const localVarQueryParameter = {};
|
|
811
|
+
if (aPIVersion != null) {
|
|
812
|
+
localVarHeaderParameter["API-Version"] = String(aPIVersion);
|
|
813
|
+
}
|
|
814
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
815
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
816
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
817
|
+
return {
|
|
818
|
+
url: toPathString(localVarUrlObj),
|
|
819
|
+
options: localVarRequestOptions
|
|
820
|
+
};
|
|
821
|
+
},
|
|
822
|
+
/**
|
|
823
|
+
*
|
|
824
|
+
* @summary Get evidence
|
|
825
|
+
* @param {string} evidenceId Unique identifier of the evidence file
|
|
826
|
+
* @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.
|
|
827
|
+
* @param {*} [options] Override http request option.
|
|
828
|
+
* @throws {RequiredError}
|
|
829
|
+
*/
|
|
830
|
+
evidence: async (evidenceId, aPIVersion, options = {}) => {
|
|
831
|
+
assertParamExists("evidence", "evidenceId", evidenceId);
|
|
832
|
+
const localVarPath = `/credential/evidence/{evidenceId}`.replace(`{${"evidenceId"}}`, encodeURIComponent(String(evidenceId)));
|
|
833
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
834
|
+
let baseOptions;
|
|
835
|
+
if (configuration) {
|
|
836
|
+
baseOptions = configuration.baseOptions;
|
|
837
|
+
}
|
|
838
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
839
|
+
const localVarHeaderParameter = {};
|
|
840
|
+
const localVarQueryParameter = {};
|
|
841
|
+
if (aPIVersion != null) {
|
|
842
|
+
localVarHeaderParameter["API-Version"] = String(aPIVersion);
|
|
843
|
+
}
|
|
844
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
845
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
846
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
847
|
+
return {
|
|
848
|
+
url: toPathString(localVarUrlObj),
|
|
849
|
+
options: localVarRequestOptions
|
|
850
|
+
};
|
|
851
|
+
},
|
|
852
|
+
/**
|
|
853
|
+
* Build and sign a W3C Verifiable Presentation for a stored credential. The API key must belong to the credential owner.
|
|
854
|
+
* @summary Issue VP
|
|
855
|
+
* @param {string} vcId DID of the credential to present.
|
|
856
|
+
* @param {CreatePresentationDto} createPresentationDto
|
|
170
857
|
* @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.
|
|
171
858
|
* @param {*} [options] Override http request option.
|
|
172
859
|
* @throws {RequiredError}
|
|
173
860
|
*/
|
|
174
|
-
|
|
175
|
-
assertParamExists("
|
|
176
|
-
|
|
861
|
+
issueVP: async (vcId, createPresentationDto, aPIVersion, options = {}) => {
|
|
862
|
+
assertParamExists("issueVP", "vcId", vcId);
|
|
863
|
+
assertParamExists("issueVP", "createPresentationDto", createPresentationDto);
|
|
864
|
+
const localVarPath = `/credential/vp/{vcId}`.replace(`{${"vcId"}}`, encodeURIComponent(String(vcId)));
|
|
177
865
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
178
866
|
let baseOptions;
|
|
179
867
|
if (configuration) {
|
|
180
868
|
baseOptions = configuration.baseOptions;
|
|
181
869
|
}
|
|
182
|
-
const localVarRequestOptions = { method: "
|
|
870
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
871
|
+
const localVarHeaderParameter = {};
|
|
872
|
+
const localVarQueryParameter = {};
|
|
873
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
874
|
+
if (aPIVersion != null) {
|
|
875
|
+
localVarHeaderParameter["API-Version"] = String(aPIVersion);
|
|
876
|
+
}
|
|
877
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
878
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
879
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
880
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPresentationDto, localVarRequestOptions, configuration);
|
|
881
|
+
return {
|
|
882
|
+
url: toPathString(localVarUrlObj),
|
|
883
|
+
options: localVarRequestOptions
|
|
884
|
+
};
|
|
885
|
+
},
|
|
886
|
+
/**
|
|
887
|
+
* Permanently revoke an active credential. Flips status to REVOKED, records revokedAt and revocationReason, Issues a MANDATE_REVOKED receipt, and emits a MANDATE_REVOKED activity event. Subsequent /vp and /verify calls for this credential are denied with reason credential_revoked.
|
|
888
|
+
* @summary Revoke Credential
|
|
889
|
+
* @param {string} credentialId URN of the credential to revoke
|
|
890
|
+
* @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.
|
|
891
|
+
* @param {RevokeCredentialDto} [revokeCredentialDto]
|
|
892
|
+
* @param {*} [options] Override http request option.
|
|
893
|
+
* @throws {RequiredError}
|
|
894
|
+
*/
|
|
895
|
+
revoke: async (credentialId, aPIVersion, revokeCredentialDto, options = {}) => {
|
|
896
|
+
assertParamExists("revoke", "credentialId", credentialId);
|
|
897
|
+
const localVarPath = `/credential/revoke/{credentialId}`.replace(`{${"credentialId"}}`, encodeURIComponent(String(credentialId)));
|
|
898
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
899
|
+
let baseOptions;
|
|
900
|
+
if (configuration) {
|
|
901
|
+
baseOptions = configuration.baseOptions;
|
|
902
|
+
}
|
|
903
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
183
904
|
const localVarHeaderParameter = {};
|
|
184
905
|
const localVarQueryParameter = {};
|
|
185
|
-
|
|
186
|
-
|
|
906
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
907
|
+
if (aPIVersion != null) {
|
|
908
|
+
localVarHeaderParameter["API-Version"] = String(aPIVersion);
|
|
909
|
+
}
|
|
910
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
911
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
912
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
913
|
+
localVarRequestOptions.data = serializeDataIfNeeded(revokeCredentialDto, localVarRequestOptions, configuration);
|
|
914
|
+
return {
|
|
915
|
+
url: toPathString(localVarUrlObj),
|
|
916
|
+
options: localVarRequestOptions
|
|
917
|
+
};
|
|
918
|
+
},
|
|
919
|
+
/**
|
|
920
|
+
* Evaluate a VP against runtime context. On allow, returns 200 with the signed receipt. On deny, returns 403 with the reason, evaluations, and receipt in the error body. If the mandate has no constraint schema, only signatures, verifier access, and validity are checked.
|
|
921
|
+
* @summary Verify VP
|
|
922
|
+
* @param {VerifyPresentationDto} verifyPresentationDto
|
|
923
|
+
* @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.
|
|
924
|
+
* @param {*} [options] Override http request option.
|
|
925
|
+
* @throws {RequiredError}
|
|
926
|
+
*/
|
|
927
|
+
verify: async (verifyPresentationDto, aPIVersion, options = {}) => {
|
|
928
|
+
assertParamExists("verify", "verifyPresentationDto", verifyPresentationDto);
|
|
929
|
+
const localVarPath = `/credential/verify`;
|
|
930
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
931
|
+
let baseOptions;
|
|
932
|
+
if (configuration) {
|
|
933
|
+
baseOptions = configuration.baseOptions;
|
|
187
934
|
}
|
|
935
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
936
|
+
const localVarHeaderParameter = {};
|
|
937
|
+
const localVarQueryParameter = {};
|
|
938
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
188
939
|
if (aPIVersion != null) {
|
|
189
940
|
localVarHeaderParameter["API-Version"] = String(aPIVersion);
|
|
190
941
|
}
|
|
191
942
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
192
943
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
193
944
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
945
|
+
localVarRequestOptions.data = serializeDataIfNeeded(verifyPresentationDto, localVarRequestOptions, configuration);
|
|
194
946
|
return {
|
|
195
947
|
url: toPathString(localVarUrlObj),
|
|
196
948
|
options: localVarRequestOptions
|
|
@@ -202,19 +954,76 @@ var CredentialsApiFp = function(configuration) {
|
|
|
202
954
|
const localVarAxiosParamCreator = CredentialsApiAxiosParamCreator(configuration);
|
|
203
955
|
return {
|
|
204
956
|
/**
|
|
205
|
-
* Retrieve a
|
|
957
|
+
* Retrieve a credential by its identifier, including the full W3C Verifiable Credential, and the latest status of all grantor decisions.
|
|
206
958
|
* @summary Get Credential
|
|
207
|
-
* @param {string} credentialId
|
|
208
|
-
* @param {boolean} [includePdf] Whether to include the PDF content for document type credentials
|
|
959
|
+
* @param {string} credentialId Identifier of the credential
|
|
209
960
|
* @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.
|
|
210
961
|
* @param {*} [options] Override http request option.
|
|
211
962
|
* @throws {RequiredError}
|
|
212
963
|
*/
|
|
213
|
-
async
|
|
214
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
964
|
+
async detail(credentialId, aPIVersion, options) {
|
|
965
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.detail(credentialId, aPIVersion, options);
|
|
215
966
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
216
|
-
const localVarOperationServerBasePath = operationServerMap["CredentialsApi.
|
|
217
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
967
|
+
const localVarOperationServerBasePath = operationServerMap["CredentialsApi.detail"]?.[localVarOperationServerIndex]?.url;
|
|
968
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios5.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
969
|
+
},
|
|
970
|
+
/**
|
|
971
|
+
*
|
|
972
|
+
* @summary Get evidence
|
|
973
|
+
* @param {string} evidenceId Unique identifier of the evidence file
|
|
974
|
+
* @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.
|
|
975
|
+
* @param {*} [options] Override http request option.
|
|
976
|
+
* @throws {RequiredError}
|
|
977
|
+
*/
|
|
978
|
+
async evidence(evidenceId, aPIVersion, options) {
|
|
979
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.evidence(evidenceId, aPIVersion, options);
|
|
980
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
981
|
+
const localVarOperationServerBasePath = operationServerMap["CredentialsApi.evidence"]?.[localVarOperationServerIndex]?.url;
|
|
982
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios5.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
983
|
+
},
|
|
984
|
+
/**
|
|
985
|
+
* Build and sign a W3C Verifiable Presentation for a stored credential. The API key must belong to the credential owner.
|
|
986
|
+
* @summary Issue VP
|
|
987
|
+
* @param {string} vcId DID of the credential to present.
|
|
988
|
+
* @param {CreatePresentationDto} createPresentationDto
|
|
989
|
+
* @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.
|
|
990
|
+
* @param {*} [options] Override http request option.
|
|
991
|
+
* @throws {RequiredError}
|
|
992
|
+
*/
|
|
993
|
+
async issueVP(vcId, createPresentationDto, aPIVersion, options) {
|
|
994
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.issueVP(vcId, createPresentationDto, aPIVersion, options);
|
|
995
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
996
|
+
const localVarOperationServerBasePath = operationServerMap["CredentialsApi.issueVP"]?.[localVarOperationServerIndex]?.url;
|
|
997
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios5.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
998
|
+
},
|
|
999
|
+
/**
|
|
1000
|
+
* Permanently revoke an active credential. Flips status to REVOKED, records revokedAt and revocationReason, Issues a MANDATE_REVOKED receipt, and emits a MANDATE_REVOKED activity event. Subsequent /vp and /verify calls for this credential are denied with reason credential_revoked.
|
|
1001
|
+
* @summary Revoke Credential
|
|
1002
|
+
* @param {string} credentialId URN of the credential to revoke
|
|
1003
|
+
* @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.
|
|
1004
|
+
* @param {RevokeCredentialDto} [revokeCredentialDto]
|
|
1005
|
+
* @param {*} [options] Override http request option.
|
|
1006
|
+
* @throws {RequiredError}
|
|
1007
|
+
*/
|
|
1008
|
+
async revoke(credentialId, aPIVersion, revokeCredentialDto, options) {
|
|
1009
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.revoke(credentialId, aPIVersion, revokeCredentialDto, options);
|
|
1010
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1011
|
+
const localVarOperationServerBasePath = operationServerMap["CredentialsApi.revoke"]?.[localVarOperationServerIndex]?.url;
|
|
1012
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios5.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1013
|
+
},
|
|
1014
|
+
/**
|
|
1015
|
+
* Evaluate a VP against runtime context. On allow, returns 200 with the signed receipt. On deny, returns 403 with the reason, evaluations, and receipt in the error body. If the mandate has no constraint schema, only signatures, verifier access, and validity are checked.
|
|
1016
|
+
* @summary Verify VP
|
|
1017
|
+
* @param {VerifyPresentationDto} verifyPresentationDto
|
|
1018
|
+
* @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.
|
|
1019
|
+
* @param {*} [options] Override http request option.
|
|
1020
|
+
* @throws {RequiredError}
|
|
1021
|
+
*/
|
|
1022
|
+
async verify(verifyPresentationDto, aPIVersion, options) {
|
|
1023
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.verify(verifyPresentationDto, aPIVersion, options);
|
|
1024
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1025
|
+
const localVarOperationServerBasePath = operationServerMap["CredentialsApi.verify"]?.[localVarOperationServerIndex]?.url;
|
|
1026
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios5.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
218
1027
|
}
|
|
219
1028
|
};
|
|
220
1029
|
};
|
|
@@ -222,49 +1031,229 @@ var CredentialsApiFactory = function(configuration, basePath, axios2) {
|
|
|
222
1031
|
const localVarFp = CredentialsApiFp(configuration);
|
|
223
1032
|
return {
|
|
224
1033
|
/**
|
|
225
|
-
* Retrieve a
|
|
1034
|
+
* Retrieve a credential by its identifier, including the full W3C Verifiable Credential, and the latest status of all grantor decisions.
|
|
226
1035
|
* @summary Get Credential
|
|
227
|
-
* @param {string} credentialId
|
|
228
|
-
* @param {
|
|
1036
|
+
* @param {string} credentialId Identifier of the credential
|
|
1037
|
+
* @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.
|
|
1038
|
+
* @param {*} [options] Override http request option.
|
|
1039
|
+
* @throws {RequiredError}
|
|
1040
|
+
*/
|
|
1041
|
+
detail(credentialId, aPIVersion, options) {
|
|
1042
|
+
return localVarFp.detail(credentialId, aPIVersion, options).then((request) => request(axios2, basePath));
|
|
1043
|
+
},
|
|
1044
|
+
/**
|
|
1045
|
+
*
|
|
1046
|
+
* @summary Get evidence
|
|
1047
|
+
* @param {string} evidenceId Unique identifier of the evidence file
|
|
1048
|
+
* @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.
|
|
1049
|
+
* @param {*} [options] Override http request option.
|
|
1050
|
+
* @throws {RequiredError}
|
|
1051
|
+
*/
|
|
1052
|
+
evidence(evidenceId, aPIVersion, options) {
|
|
1053
|
+
return localVarFp.evidence(evidenceId, aPIVersion, options).then((request) => request(axios2, basePath));
|
|
1054
|
+
},
|
|
1055
|
+
/**
|
|
1056
|
+
* Build and sign a W3C Verifiable Presentation for a stored credential. The API key must belong to the credential owner.
|
|
1057
|
+
* @summary Issue VP
|
|
1058
|
+
* @param {string} vcId DID of the credential to present.
|
|
1059
|
+
* @param {CreatePresentationDto} createPresentationDto
|
|
1060
|
+
* @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.
|
|
1061
|
+
* @param {*} [options] Override http request option.
|
|
1062
|
+
* @throws {RequiredError}
|
|
1063
|
+
*/
|
|
1064
|
+
issueVP(vcId, createPresentationDto, aPIVersion, options) {
|
|
1065
|
+
return localVarFp.issueVP(vcId, createPresentationDto, aPIVersion, options).then((request) => request(axios2, basePath));
|
|
1066
|
+
},
|
|
1067
|
+
/**
|
|
1068
|
+
* Permanently revoke an active credential. Flips status to REVOKED, records revokedAt and revocationReason, Issues a MANDATE_REVOKED receipt, and emits a MANDATE_REVOKED activity event. Subsequent /vp and /verify calls for this credential are denied with reason credential_revoked.
|
|
1069
|
+
* @summary Revoke Credential
|
|
1070
|
+
* @param {string} credentialId URN of the credential to revoke
|
|
1071
|
+
* @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.
|
|
1072
|
+
* @param {RevokeCredentialDto} [revokeCredentialDto]
|
|
1073
|
+
* @param {*} [options] Override http request option.
|
|
1074
|
+
* @throws {RequiredError}
|
|
1075
|
+
*/
|
|
1076
|
+
revoke(credentialId, aPIVersion, revokeCredentialDto, options) {
|
|
1077
|
+
return localVarFp.revoke(credentialId, aPIVersion, revokeCredentialDto, options).then((request) => request(axios2, basePath));
|
|
1078
|
+
},
|
|
1079
|
+
/**
|
|
1080
|
+
* Evaluate a VP against runtime context. On allow, returns 200 with the signed receipt. On deny, returns 403 with the reason, evaluations, and receipt in the error body. If the mandate has no constraint schema, only signatures, verifier access, and validity are checked.
|
|
1081
|
+
* @summary Verify VP
|
|
1082
|
+
* @param {VerifyPresentationDto} verifyPresentationDto
|
|
229
1083
|
* @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.
|
|
230
1084
|
* @param {*} [options] Override http request option.
|
|
231
1085
|
* @throws {RequiredError}
|
|
232
1086
|
*/
|
|
233
|
-
|
|
234
|
-
return localVarFp.
|
|
1087
|
+
verify(verifyPresentationDto, aPIVersion, options) {
|
|
1088
|
+
return localVarFp.verify(verifyPresentationDto, aPIVersion, options).then((request) => request(axios2, basePath));
|
|
235
1089
|
}
|
|
236
1090
|
};
|
|
237
1091
|
};
|
|
238
1092
|
var CredentialsApi = class extends BaseAPI {
|
|
239
1093
|
/**
|
|
240
|
-
* Retrieve a
|
|
1094
|
+
* Retrieve a credential by its identifier, including the full W3C Verifiable Credential, and the latest status of all grantor decisions.
|
|
241
1095
|
* @summary Get Credential
|
|
242
|
-
* @param {string} credentialId
|
|
243
|
-
* @param {
|
|
1096
|
+
* @param {string} credentialId Identifier of the credential
|
|
1097
|
+
* @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.
|
|
1098
|
+
* @param {*} [options] Override http request option.
|
|
1099
|
+
* @throws {RequiredError}
|
|
1100
|
+
* @memberof CredentialsApi
|
|
1101
|
+
*/
|
|
1102
|
+
detail(credentialId, aPIVersion, options) {
|
|
1103
|
+
return CredentialsApiFp(this.configuration).detail(credentialId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
1104
|
+
}
|
|
1105
|
+
/**
|
|
1106
|
+
*
|
|
1107
|
+
* @summary Get evidence
|
|
1108
|
+
* @param {string} evidenceId Unique identifier of the evidence file
|
|
1109
|
+
* @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.
|
|
1110
|
+
* @param {*} [options] Override http request option.
|
|
1111
|
+
* @throws {RequiredError}
|
|
1112
|
+
* @memberof CredentialsApi
|
|
1113
|
+
*/
|
|
1114
|
+
evidence(evidenceId, aPIVersion, options) {
|
|
1115
|
+
return CredentialsApiFp(this.configuration).evidence(evidenceId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
1116
|
+
}
|
|
1117
|
+
/**
|
|
1118
|
+
* Build and sign a W3C Verifiable Presentation for a stored credential. The API key must belong to the credential owner.
|
|
1119
|
+
* @summary Issue VP
|
|
1120
|
+
* @param {string} vcId DID of the credential to present.
|
|
1121
|
+
* @param {CreatePresentationDto} createPresentationDto
|
|
1122
|
+
* @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.
|
|
1123
|
+
* @param {*} [options] Override http request option.
|
|
1124
|
+
* @throws {RequiredError}
|
|
1125
|
+
* @memberof CredentialsApi
|
|
1126
|
+
*/
|
|
1127
|
+
issueVP(vcId, createPresentationDto, aPIVersion, options) {
|
|
1128
|
+
return CredentialsApiFp(this.configuration).issueVP(vcId, createPresentationDto, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
1129
|
+
}
|
|
1130
|
+
/**
|
|
1131
|
+
* Permanently revoke an active credential. Flips status to REVOKED, records revokedAt and revocationReason, Issues a MANDATE_REVOKED receipt, and emits a MANDATE_REVOKED activity event. Subsequent /vp and /verify calls for this credential are denied with reason credential_revoked.
|
|
1132
|
+
* @summary Revoke Credential
|
|
1133
|
+
* @param {string} credentialId URN of the credential to revoke
|
|
1134
|
+
* @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.
|
|
1135
|
+
* @param {RevokeCredentialDto} [revokeCredentialDto]
|
|
1136
|
+
* @param {*} [options] Override http request option.
|
|
1137
|
+
* @throws {RequiredError}
|
|
1138
|
+
* @memberof CredentialsApi
|
|
1139
|
+
*/
|
|
1140
|
+
revoke(credentialId, aPIVersion, revokeCredentialDto, options) {
|
|
1141
|
+
return CredentialsApiFp(this.configuration).revoke(credentialId, aPIVersion, revokeCredentialDto, options).then((request) => request(this.axios, this.basePath));
|
|
1142
|
+
}
|
|
1143
|
+
/**
|
|
1144
|
+
* Evaluate a VP against runtime context. On allow, returns 200 with the signed receipt. On deny, returns 403 with the reason, evaluations, and receipt in the error body. If the mandate has no constraint schema, only signatures, verifier access, and validity are checked.
|
|
1145
|
+
* @summary Verify VP
|
|
1146
|
+
* @param {VerifyPresentationDto} verifyPresentationDto
|
|
244
1147
|
* @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.
|
|
245
1148
|
* @param {*} [options] Override http request option.
|
|
246
1149
|
* @throws {RequiredError}
|
|
247
1150
|
* @memberof CredentialsApi
|
|
248
1151
|
*/
|
|
249
|
-
|
|
250
|
-
return CredentialsApiFp(this.configuration).
|
|
1152
|
+
verify(verifyPresentationDto, aPIVersion, options) {
|
|
1153
|
+
return CredentialsApiFp(this.configuration).verify(verifyPresentationDto, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
1154
|
+
}
|
|
1155
|
+
};
|
|
1156
|
+
|
|
1157
|
+
// generated/api/didapi.ts
|
|
1158
|
+
var import_axios6 = __toESM(require("axios"));
|
|
1159
|
+
var DIDApiAxiosParamCreator = function(configuration) {
|
|
1160
|
+
return {
|
|
1161
|
+
/**
|
|
1162
|
+
* Resolve a DID string to a W3C DID 1.1 Document.
|
|
1163
|
+
* @summary Resolve DID
|
|
1164
|
+
* @param {string} did The DID string to resolve
|
|
1165
|
+
* @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.
|
|
1166
|
+
* @param {*} [options] Override http request option.
|
|
1167
|
+
* @throws {RequiredError}
|
|
1168
|
+
*/
|
|
1169
|
+
resolve: async (did, aPIVersion, options = {}) => {
|
|
1170
|
+
assertParamExists("resolve", "did", did);
|
|
1171
|
+
const localVarPath = `/did/resolve/{did}`.replace(`{${"did"}}`, encodeURIComponent(String(did)));
|
|
1172
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1173
|
+
let baseOptions;
|
|
1174
|
+
if (configuration) {
|
|
1175
|
+
baseOptions = configuration.baseOptions;
|
|
1176
|
+
}
|
|
1177
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1178
|
+
const localVarHeaderParameter = {};
|
|
1179
|
+
const localVarQueryParameter = {};
|
|
1180
|
+
if (aPIVersion != null) {
|
|
1181
|
+
localVarHeaderParameter["API-Version"] = String(aPIVersion);
|
|
1182
|
+
}
|
|
1183
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1184
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1185
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1186
|
+
return {
|
|
1187
|
+
url: toPathString(localVarUrlObj),
|
|
1188
|
+
options: localVarRequestOptions
|
|
1189
|
+
};
|
|
1190
|
+
}
|
|
1191
|
+
};
|
|
1192
|
+
};
|
|
1193
|
+
var DIDApiFp = function(configuration) {
|
|
1194
|
+
const localVarAxiosParamCreator = DIDApiAxiosParamCreator(configuration);
|
|
1195
|
+
return {
|
|
1196
|
+
/**
|
|
1197
|
+
* Resolve a DID string to a W3C DID 1.1 Document.
|
|
1198
|
+
* @summary Resolve DID
|
|
1199
|
+
* @param {string} did The DID string to resolve
|
|
1200
|
+
* @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.
|
|
1201
|
+
* @param {*} [options] Override http request option.
|
|
1202
|
+
* @throws {RequiredError}
|
|
1203
|
+
*/
|
|
1204
|
+
async resolve(did, aPIVersion, options) {
|
|
1205
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resolve(did, aPIVersion, options);
|
|
1206
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1207
|
+
const localVarOperationServerBasePath = operationServerMap["DIDApi.resolve"]?.[localVarOperationServerIndex]?.url;
|
|
1208
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios6.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1209
|
+
}
|
|
1210
|
+
};
|
|
1211
|
+
};
|
|
1212
|
+
var DIDApiFactory = function(configuration, basePath, axios2) {
|
|
1213
|
+
const localVarFp = DIDApiFp(configuration);
|
|
1214
|
+
return {
|
|
1215
|
+
/**
|
|
1216
|
+
* Resolve a DID string to a W3C DID 1.1 Document.
|
|
1217
|
+
* @summary Resolve DID
|
|
1218
|
+
* @param {string} did The DID string to resolve
|
|
1219
|
+
* @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.
|
|
1220
|
+
* @param {*} [options] Override http request option.
|
|
1221
|
+
* @throws {RequiredError}
|
|
1222
|
+
*/
|
|
1223
|
+
resolve(did, aPIVersion, options) {
|
|
1224
|
+
return localVarFp.resolve(did, aPIVersion, options).then((request) => request(axios2, basePath));
|
|
1225
|
+
}
|
|
1226
|
+
};
|
|
1227
|
+
};
|
|
1228
|
+
var DIDApi = class extends BaseAPI {
|
|
1229
|
+
/**
|
|
1230
|
+
* Resolve a DID string to a W3C DID 1.1 Document.
|
|
1231
|
+
* @summary Resolve DID
|
|
1232
|
+
* @param {string} did The DID string to resolve
|
|
1233
|
+
* @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.
|
|
1234
|
+
* @param {*} [options] Override http request option.
|
|
1235
|
+
* @throws {RequiredError}
|
|
1236
|
+
* @memberof DIDApi
|
|
1237
|
+
*/
|
|
1238
|
+
resolve(did, aPIVersion, options) {
|
|
1239
|
+
return DIDApiFp(this.configuration).resolve(did, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
251
1240
|
}
|
|
252
1241
|
};
|
|
253
1242
|
|
|
254
1243
|
// generated/api/requests-api.ts
|
|
255
|
-
var
|
|
1244
|
+
var import_axios7 = __toESM(require("axios"));
|
|
256
1245
|
var RequestsApiAxiosParamCreator = function(configuration) {
|
|
257
1246
|
return {
|
|
258
1247
|
/**
|
|
259
|
-
* This action will cancel a credential request
|
|
260
|
-
* @summary Cancel
|
|
1248
|
+
* This action will cancel a credential request. Once a request is canceled, it cannot be undone and will prevent the request from being completed by any subjects. A request can be canceled if it contains credentials in draft status.
|
|
1249
|
+
* @summary Cancel Request
|
|
261
1250
|
* @param {string} requestId Unique identifier of the credential request to cancel. Must be a valid MongoDB ObjectId.
|
|
262
1251
|
* @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.
|
|
263
1252
|
* @param {*} [options] Override http request option.
|
|
264
1253
|
* @throws {RequiredError}
|
|
265
1254
|
*/
|
|
266
|
-
|
|
267
|
-
assertParamExists("
|
|
1255
|
+
cancel: async (requestId, aPIVersion, options = {}) => {
|
|
1256
|
+
assertParamExists("cancel", "requestId", requestId);
|
|
268
1257
|
const localVarPath = `/request/{requestId}`.replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
|
|
269
1258
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
270
1259
|
let baseOptions;
|
|
@@ -286,15 +1275,16 @@ var RequestsApiAxiosParamCreator = function(configuration) {
|
|
|
286
1275
|
};
|
|
287
1276
|
},
|
|
288
1277
|
/**
|
|
289
|
-
* Create a new
|
|
290
|
-
* @summary Create
|
|
291
|
-
* @param {GenerateRequestDto} generateRequestDto Request body containing contacts (subjects), security level, and
|
|
1278
|
+
* Create a new request for one or more subjects (users). This endpoint will: - Create credentials from resources (via group IDs, resource IDs) or inline JSON data - Associate those credentials with subjects - Generate and send OTPs via email or SMS
|
|
1279
|
+
* @summary Create Request
|
|
1280
|
+
* @param {GenerateRequestDto} generateRequestDto Request body containing contacts (subjects), security level, and credentials to generate Resources can be specified via groupIds, resourcesIds, or inline credentials array.
|
|
1281
|
+
* @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
|
|
292
1282
|
* @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.
|
|
293
1283
|
* @param {*} [options] Override http request option.
|
|
294
1284
|
* @throws {RequiredError}
|
|
295
1285
|
*/
|
|
296
|
-
|
|
297
|
-
assertParamExists("
|
|
1286
|
+
create: async (generateRequestDto, idempotencyKey, aPIVersion, options = {}) => {
|
|
1287
|
+
assertParamExists("create", "generateRequestDto", generateRequestDto);
|
|
298
1288
|
const localVarPath = `/request`;
|
|
299
1289
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
300
1290
|
let baseOptions;
|
|
@@ -305,6 +1295,9 @@ var RequestsApiAxiosParamCreator = function(configuration) {
|
|
|
305
1295
|
const localVarHeaderParameter = {};
|
|
306
1296
|
const localVarQueryParameter = {};
|
|
307
1297
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1298
|
+
if (idempotencyKey != null) {
|
|
1299
|
+
localVarHeaderParameter["Idempotency-Key"] = String(idempotencyKey);
|
|
1300
|
+
}
|
|
308
1301
|
if (aPIVersion != null) {
|
|
309
1302
|
localVarHeaderParameter["API-Version"] = String(aPIVersion);
|
|
310
1303
|
}
|
|
@@ -318,15 +1311,15 @@ var RequestsApiAxiosParamCreator = function(configuration) {
|
|
|
318
1311
|
};
|
|
319
1312
|
},
|
|
320
1313
|
/**
|
|
321
|
-
* Retrieve detailed information about a specific credential request
|
|
1314
|
+
* Retrieve detailed information about a specific credential request Just like the list requests endpoint, this endpoint includes information about the request, credentials, subjects (users) and chosen security level However, this endpoint includes the full W3C Verifiable Credential data for each credential, and the latest status of all grantor decisions
|
|
322
1315
|
* @summary Get Detail
|
|
323
1316
|
* @param {string} requestId Unique identifier of the credential request. Must be a valid MongoDB ObjectId.
|
|
324
1317
|
* @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.
|
|
325
1318
|
* @param {*} [options] Override http request option.
|
|
326
1319
|
* @throws {RequiredError}
|
|
327
1320
|
*/
|
|
328
|
-
|
|
329
|
-
assertParamExists("
|
|
1321
|
+
detail: async (requestId, aPIVersion, options = {}) => {
|
|
1322
|
+
assertParamExists("detail", "requestId", requestId);
|
|
330
1323
|
const localVarPath = `/request/{requestId}`.replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
|
|
331
1324
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
332
1325
|
let baseOptions;
|
|
@@ -348,24 +1341,21 @@ var RequestsApiAxiosParamCreator = function(configuration) {
|
|
|
348
1341
|
};
|
|
349
1342
|
},
|
|
350
1343
|
/**
|
|
351
|
-
* Retrieve a paginated list of credential requests
|
|
352
|
-
* @summary
|
|
1344
|
+
* Retrieve a paginated list of your credential requests Each request includes information about the request, credentials, subjects (users) and chosen security level
|
|
1345
|
+
* @summary List Requests
|
|
353
1346
|
* @param {number} [pageIndex] Page number
|
|
354
1347
|
* @param {number} [pageSize] Number of items per page
|
|
355
1348
|
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
356
|
-
* @param {string} [
|
|
357
|
-
* @param {string} [
|
|
358
|
-
* @param {
|
|
359
|
-
* @param {string} [internalId] Filter by internal ID.
|
|
360
|
-
* @param {string} [credentialInternalId] Filter by credential internal ID.
|
|
361
|
-
* @param {Array<GetRequestsSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
|
|
1349
|
+
* @param {string} [subject] Filter by subject (nested object with contact, id, or internalId).
|
|
1350
|
+
* @param {string} [internalId] Identifier to help you identify the request in your own system. We recommend using a unique value.
|
|
1351
|
+
* @param {Array<ListSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
|
|
362
1352
|
* @param {string} [dateFrom] Filter from date (will be converted to start of day)
|
|
363
1353
|
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
364
1354
|
* @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.
|
|
365
1355
|
* @param {*} [options] Override http request option.
|
|
366
1356
|
* @throws {RequiredError}
|
|
367
1357
|
*/
|
|
368
|
-
|
|
1358
|
+
list: async (pageIndex, pageSize, search, subject, internalId, securityLevel, dateFrom, dateTo, aPIVersion, options = {}) => {
|
|
369
1359
|
const localVarPath = `/request`;
|
|
370
1360
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
371
1361
|
let baseOptions;
|
|
@@ -384,21 +1374,12 @@ var RequestsApiAxiosParamCreator = function(configuration) {
|
|
|
384
1374
|
if (search !== void 0) {
|
|
385
1375
|
localVarQueryParameter["search"] = search;
|
|
386
1376
|
}
|
|
387
|
-
if (
|
|
388
|
-
localVarQueryParameter["
|
|
389
|
-
}
|
|
390
|
-
if (did !== void 0) {
|
|
391
|
-
localVarQueryParameter["did"] = did;
|
|
392
|
-
}
|
|
393
|
-
if (subjectInternalId !== void 0) {
|
|
394
|
-
localVarQueryParameter["subjectInternalId"] = subjectInternalId;
|
|
1377
|
+
if (subject !== void 0) {
|
|
1378
|
+
localVarQueryParameter["subject"] = subject;
|
|
395
1379
|
}
|
|
396
1380
|
if (internalId !== void 0) {
|
|
397
1381
|
localVarQueryParameter["internalId"] = internalId;
|
|
398
1382
|
}
|
|
399
|
-
if (credentialInternalId !== void 0) {
|
|
400
|
-
localVarQueryParameter["credentialInternalId"] = credentialInternalId;
|
|
401
|
-
}
|
|
402
1383
|
if (securityLevel) {
|
|
403
1384
|
localVarQueryParameter["securityLevel"] = securityLevel;
|
|
404
1385
|
}
|
|
@@ -420,17 +1401,18 @@ var RequestsApiAxiosParamCreator = function(configuration) {
|
|
|
420
1401
|
};
|
|
421
1402
|
},
|
|
422
1403
|
/**
|
|
423
|
-
* Resend a One-Time Password (OTP) to a subject for credential approval,
|
|
1404
|
+
* Resend a One-Time Password (OTP) to a subject for credential approval, via email or SMS (depending on their contact type) with a code and a signing URL. The endpoint validates: - The request is not canceled - Maximum attempts have not been reached, only successful OTP sends count towards resend limits - Sufficient time has passed since the last successful resend - Billing restrictions apply
|
|
424
1405
|
* @summary Resend OTP
|
|
425
1406
|
* @param {string} requestId Unique identifier of the request.
|
|
426
|
-
* @param {string} [contact]
|
|
427
|
-
* @param {string} [
|
|
1407
|
+
* @param {string} [contact] Verified contact value (email or phone)
|
|
1408
|
+
* @param {string} [id] Users VIA identifier
|
|
428
1409
|
* @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
|
|
1410
|
+
* @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
|
|
429
1411
|
* @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.
|
|
430
1412
|
* @param {*} [options] Override http request option.
|
|
431
1413
|
* @throws {RequiredError}
|
|
432
1414
|
*/
|
|
433
|
-
resendOtp: async (requestId, contact,
|
|
1415
|
+
resendOtp: async (requestId, contact, id, internalId, idempotencyKey, aPIVersion, options = {}) => {
|
|
434
1416
|
assertParamExists("resendOtp", "requestId", requestId);
|
|
435
1417
|
const localVarPath = `/request/resend/{requestId}`.replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
|
|
436
1418
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -444,12 +1426,15 @@ var RequestsApiAxiosParamCreator = function(configuration) {
|
|
|
444
1426
|
if (contact !== void 0) {
|
|
445
1427
|
localVarQueryParameter["contact"] = contact;
|
|
446
1428
|
}
|
|
447
|
-
if (
|
|
448
|
-
localVarQueryParameter["
|
|
1429
|
+
if (id !== void 0) {
|
|
1430
|
+
localVarQueryParameter["id"] = id;
|
|
449
1431
|
}
|
|
450
1432
|
if (internalId !== void 0) {
|
|
451
1433
|
localVarQueryParameter["internalId"] = internalId;
|
|
452
1434
|
}
|
|
1435
|
+
if (idempotencyKey != null) {
|
|
1436
|
+
localVarHeaderParameter["Idempotency-Key"] = String(idempotencyKey);
|
|
1437
|
+
}
|
|
453
1438
|
if (aPIVersion != null) {
|
|
454
1439
|
localVarHeaderParameter["API-Version"] = String(aPIVersion);
|
|
455
1440
|
}
|
|
@@ -467,87 +1452,86 @@ var RequestsApiFp = function(configuration) {
|
|
|
467
1452
|
const localVarAxiosParamCreator = RequestsApiAxiosParamCreator(configuration);
|
|
468
1453
|
return {
|
|
469
1454
|
/**
|
|
470
|
-
* This action will cancel a credential request
|
|
471
|
-
* @summary Cancel
|
|
1455
|
+
* This action will cancel a credential request. Once a request is canceled, it cannot be undone and will prevent the request from being completed by any subjects. A request can be canceled if it contains credentials in draft status.
|
|
1456
|
+
* @summary Cancel Request
|
|
472
1457
|
* @param {string} requestId Unique identifier of the credential request to cancel. Must be a valid MongoDB ObjectId.
|
|
473
1458
|
* @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.
|
|
474
1459
|
* @param {*} [options] Override http request option.
|
|
475
1460
|
* @throws {RequiredError}
|
|
476
1461
|
*/
|
|
477
|
-
async
|
|
478
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1462
|
+
async cancel(requestId, aPIVersion, options) {
|
|
1463
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancel(requestId, aPIVersion, options);
|
|
479
1464
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
480
|
-
const localVarOperationServerBasePath = operationServerMap["RequestsApi.
|
|
481
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1465
|
+
const localVarOperationServerBasePath = operationServerMap["RequestsApi.cancel"]?.[localVarOperationServerIndex]?.url;
|
|
1466
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios7.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
482
1467
|
},
|
|
483
1468
|
/**
|
|
484
|
-
* Create a new
|
|
485
|
-
* @summary Create
|
|
486
|
-
* @param {GenerateRequestDto} generateRequestDto Request body containing contacts (subjects), security level, and
|
|
1469
|
+
* Create a new request for one or more subjects (users). This endpoint will: - Create credentials from resources (via group IDs, resource IDs) or inline JSON data - Associate those credentials with subjects - Generate and send OTPs via email or SMS
|
|
1470
|
+
* @summary Create Request
|
|
1471
|
+
* @param {GenerateRequestDto} generateRequestDto Request body containing contacts (subjects), security level, and credentials to generate Resources can be specified via groupIds, resourcesIds, or inline credentials array.
|
|
1472
|
+
* @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
|
|
487
1473
|
* @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.
|
|
488
1474
|
* @param {*} [options] Override http request option.
|
|
489
1475
|
* @throws {RequiredError}
|
|
490
1476
|
*/
|
|
491
|
-
async
|
|
492
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1477
|
+
async create(generateRequestDto, idempotencyKey, aPIVersion, options) {
|
|
1478
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.create(generateRequestDto, idempotencyKey, aPIVersion, options);
|
|
493
1479
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
494
|
-
const localVarOperationServerBasePath = operationServerMap["RequestsApi.
|
|
495
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1480
|
+
const localVarOperationServerBasePath = operationServerMap["RequestsApi.create"]?.[localVarOperationServerIndex]?.url;
|
|
1481
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios7.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
496
1482
|
},
|
|
497
1483
|
/**
|
|
498
|
-
* Retrieve detailed information about a specific credential request
|
|
1484
|
+
* Retrieve detailed information about a specific credential request Just like the list requests endpoint, this endpoint includes information about the request, credentials, subjects (users) and chosen security level However, this endpoint includes the full W3C Verifiable Credential data for each credential, and the latest status of all grantor decisions
|
|
499
1485
|
* @summary Get Detail
|
|
500
1486
|
* @param {string} requestId Unique identifier of the credential request. Must be a valid MongoDB ObjectId.
|
|
501
1487
|
* @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.
|
|
502
1488
|
* @param {*} [options] Override http request option.
|
|
503
1489
|
* @throws {RequiredError}
|
|
504
1490
|
*/
|
|
505
|
-
async
|
|
506
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1491
|
+
async detail(requestId, aPIVersion, options) {
|
|
1492
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.detail(requestId, aPIVersion, options);
|
|
507
1493
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
508
|
-
const localVarOperationServerBasePath = operationServerMap["RequestsApi.
|
|
509
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1494
|
+
const localVarOperationServerBasePath = operationServerMap["RequestsApi.detail"]?.[localVarOperationServerIndex]?.url;
|
|
1495
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios7.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
510
1496
|
},
|
|
511
1497
|
/**
|
|
512
|
-
* Retrieve a paginated list of credential requests
|
|
513
|
-
* @summary
|
|
1498
|
+
* Retrieve a paginated list of your credential requests Each request includes information about the request, credentials, subjects (users) and chosen security level
|
|
1499
|
+
* @summary List Requests
|
|
514
1500
|
* @param {number} [pageIndex] Page number
|
|
515
1501
|
* @param {number} [pageSize] Number of items per page
|
|
516
1502
|
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
517
|
-
* @param {string} [
|
|
518
|
-
* @param {string} [
|
|
519
|
-
* @param {
|
|
520
|
-
* @param {string} [internalId] Filter by internal ID.
|
|
521
|
-
* @param {string} [credentialInternalId] Filter by credential internal ID.
|
|
522
|
-
* @param {Array<GetRequestsSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
|
|
1503
|
+
* @param {string} [subject] Filter by subject (nested object with contact, id, or internalId).
|
|
1504
|
+
* @param {string} [internalId] Identifier to help you identify the request in your own system. We recommend using a unique value.
|
|
1505
|
+
* @param {Array<ListSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
|
|
523
1506
|
* @param {string} [dateFrom] Filter from date (will be converted to start of day)
|
|
524
1507
|
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
525
1508
|
* @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.
|
|
526
1509
|
* @param {*} [options] Override http request option.
|
|
527
1510
|
* @throws {RequiredError}
|
|
528
1511
|
*/
|
|
529
|
-
async
|
|
530
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1512
|
+
async list(pageIndex, pageSize, search, subject, internalId, securityLevel, dateFrom, dateTo, aPIVersion, options) {
|
|
1513
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.list(pageIndex, pageSize, search, subject, internalId, securityLevel, dateFrom, dateTo, aPIVersion, options);
|
|
531
1514
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
532
|
-
const localVarOperationServerBasePath = operationServerMap["RequestsApi.
|
|
533
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1515
|
+
const localVarOperationServerBasePath = operationServerMap["RequestsApi.list"]?.[localVarOperationServerIndex]?.url;
|
|
1516
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios7.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
534
1517
|
},
|
|
535
1518
|
/**
|
|
536
|
-
* Resend a One-Time Password (OTP) to a subject for credential approval,
|
|
1519
|
+
* Resend a One-Time Password (OTP) to a subject for credential approval, via email or SMS (depending on their contact type) with a code and a signing URL. The endpoint validates: - The request is not canceled - Maximum attempts have not been reached, only successful OTP sends count towards resend limits - Sufficient time has passed since the last successful resend - Billing restrictions apply
|
|
537
1520
|
* @summary Resend OTP
|
|
538
1521
|
* @param {string} requestId Unique identifier of the request.
|
|
539
|
-
* @param {string} [contact]
|
|
540
|
-
* @param {string} [
|
|
1522
|
+
* @param {string} [contact] Verified contact value (email or phone)
|
|
1523
|
+
* @param {string} [id] Users VIA identifier
|
|
541
1524
|
* @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
|
|
1525
|
+
* @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
|
|
542
1526
|
* @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.
|
|
543
1527
|
* @param {*} [options] Override http request option.
|
|
544
1528
|
* @throws {RequiredError}
|
|
545
1529
|
*/
|
|
546
|
-
async resendOtp(requestId, contact,
|
|
547
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.resendOtp(requestId, contact,
|
|
1530
|
+
async resendOtp(requestId, contact, id, internalId, idempotencyKey, aPIVersion, options) {
|
|
1531
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resendOtp(requestId, contact, id, internalId, idempotencyKey, aPIVersion, options);
|
|
548
1532
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
549
1533
|
const localVarOperationServerBasePath = operationServerMap["RequestsApi.resendOtp"]?.[localVarOperationServerIndex]?.url;
|
|
550
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1534
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios7.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
551
1535
|
}
|
|
552
1536
|
};
|
|
553
1537
|
};
|
|
@@ -555,102 +1539,102 @@ var RequestsApiFactory = function(configuration, basePath, axios2) {
|
|
|
555
1539
|
const localVarFp = RequestsApiFp(configuration);
|
|
556
1540
|
return {
|
|
557
1541
|
/**
|
|
558
|
-
* This action will cancel a credential request
|
|
559
|
-
* @summary Cancel
|
|
1542
|
+
* This action will cancel a credential request. Once a request is canceled, it cannot be undone and will prevent the request from being completed by any subjects. A request can be canceled if it contains credentials in draft status.
|
|
1543
|
+
* @summary Cancel Request
|
|
560
1544
|
* @param {string} requestId Unique identifier of the credential request to cancel. Must be a valid MongoDB ObjectId.
|
|
561
1545
|
* @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.
|
|
562
1546
|
* @param {*} [options] Override http request option.
|
|
563
1547
|
* @throws {RequiredError}
|
|
564
1548
|
*/
|
|
565
|
-
|
|
566
|
-
return localVarFp.
|
|
1549
|
+
cancel(requestId, aPIVersion, options) {
|
|
1550
|
+
return localVarFp.cancel(requestId, aPIVersion, options).then((request) => request(axios2, basePath));
|
|
567
1551
|
},
|
|
568
1552
|
/**
|
|
569
|
-
* Create a new
|
|
570
|
-
* @summary Create
|
|
571
|
-
* @param {GenerateRequestDto} generateRequestDto Request body containing contacts (subjects), security level, and
|
|
1553
|
+
* Create a new request for one or more subjects (users). This endpoint will: - Create credentials from resources (via group IDs, resource IDs) or inline JSON data - Associate those credentials with subjects - Generate and send OTPs via email or SMS
|
|
1554
|
+
* @summary Create Request
|
|
1555
|
+
* @param {GenerateRequestDto} generateRequestDto Request body containing contacts (subjects), security level, and credentials to generate Resources can be specified via groupIds, resourcesIds, or inline credentials array.
|
|
1556
|
+
* @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
|
|
572
1557
|
* @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.
|
|
573
1558
|
* @param {*} [options] Override http request option.
|
|
574
1559
|
* @throws {RequiredError}
|
|
575
1560
|
*/
|
|
576
|
-
|
|
577
|
-
return localVarFp.
|
|
1561
|
+
create(generateRequestDto, idempotencyKey, aPIVersion, options) {
|
|
1562
|
+
return localVarFp.create(generateRequestDto, idempotencyKey, aPIVersion, options).then((request) => request(axios2, basePath));
|
|
578
1563
|
},
|
|
579
1564
|
/**
|
|
580
|
-
* Retrieve detailed information about a specific credential request
|
|
1565
|
+
* Retrieve detailed information about a specific credential request Just like the list requests endpoint, this endpoint includes information about the request, credentials, subjects (users) and chosen security level However, this endpoint includes the full W3C Verifiable Credential data for each credential, and the latest status of all grantor decisions
|
|
581
1566
|
* @summary Get Detail
|
|
582
1567
|
* @param {string} requestId Unique identifier of the credential request. Must be a valid MongoDB ObjectId.
|
|
583
1568
|
* @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.
|
|
584
1569
|
* @param {*} [options] Override http request option.
|
|
585
1570
|
* @throws {RequiredError}
|
|
586
1571
|
*/
|
|
587
|
-
|
|
588
|
-
return localVarFp.
|
|
1572
|
+
detail(requestId, aPIVersion, options) {
|
|
1573
|
+
return localVarFp.detail(requestId, aPIVersion, options).then((request) => request(axios2, basePath));
|
|
589
1574
|
},
|
|
590
1575
|
/**
|
|
591
|
-
* Retrieve a paginated list of credential requests
|
|
592
|
-
* @summary
|
|
1576
|
+
* Retrieve a paginated list of your credential requests Each request includes information about the request, credentials, subjects (users) and chosen security level
|
|
1577
|
+
* @summary List Requests
|
|
593
1578
|
* @param {number} [pageIndex] Page number
|
|
594
1579
|
* @param {number} [pageSize] Number of items per page
|
|
595
1580
|
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
596
|
-
* @param {string} [
|
|
597
|
-
* @param {string} [
|
|
598
|
-
* @param {
|
|
599
|
-
* @param {string} [internalId] Filter by internal ID.
|
|
600
|
-
* @param {string} [credentialInternalId] Filter by credential internal ID.
|
|
601
|
-
* @param {Array<GetRequestsSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
|
|
1581
|
+
* @param {string} [subject] Filter by subject (nested object with contact, id, or internalId).
|
|
1582
|
+
* @param {string} [internalId] Identifier to help you identify the request in your own system. We recommend using a unique value.
|
|
1583
|
+
* @param {Array<ListSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
|
|
602
1584
|
* @param {string} [dateFrom] Filter from date (will be converted to start of day)
|
|
603
1585
|
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
604
1586
|
* @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.
|
|
605
1587
|
* @param {*} [options] Override http request option.
|
|
606
1588
|
* @throws {RequiredError}
|
|
607
1589
|
*/
|
|
608
|
-
|
|
609
|
-
return localVarFp.
|
|
1590
|
+
list(pageIndex, pageSize, search, subject, internalId, securityLevel, dateFrom, dateTo, aPIVersion, options) {
|
|
1591
|
+
return localVarFp.list(pageIndex, pageSize, search, subject, internalId, securityLevel, dateFrom, dateTo, aPIVersion, options).then((request) => request(axios2, basePath));
|
|
610
1592
|
},
|
|
611
1593
|
/**
|
|
612
|
-
* Resend a One-Time Password (OTP) to a subject for credential approval,
|
|
1594
|
+
* Resend a One-Time Password (OTP) to a subject for credential approval, via email or SMS (depending on their contact type) with a code and a signing URL. The endpoint validates: - The request is not canceled - Maximum attempts have not been reached, only successful OTP sends count towards resend limits - Sufficient time has passed since the last successful resend - Billing restrictions apply
|
|
613
1595
|
* @summary Resend OTP
|
|
614
1596
|
* @param {string} requestId Unique identifier of the request.
|
|
615
|
-
* @param {string} [contact]
|
|
616
|
-
* @param {string} [
|
|
1597
|
+
* @param {string} [contact] Verified contact value (email or phone)
|
|
1598
|
+
* @param {string} [id] Users VIA identifier
|
|
617
1599
|
* @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
|
|
1600
|
+
* @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
|
|
618
1601
|
* @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.
|
|
619
1602
|
* @param {*} [options] Override http request option.
|
|
620
1603
|
* @throws {RequiredError}
|
|
621
1604
|
*/
|
|
622
|
-
resendOtp(requestId, contact,
|
|
623
|
-
return localVarFp.resendOtp(requestId, contact,
|
|
1605
|
+
resendOtp(requestId, contact, id, internalId, idempotencyKey, aPIVersion, options) {
|
|
1606
|
+
return localVarFp.resendOtp(requestId, contact, id, internalId, idempotencyKey, aPIVersion, options).then((request) => request(axios2, basePath));
|
|
624
1607
|
}
|
|
625
1608
|
};
|
|
626
1609
|
};
|
|
627
1610
|
var RequestsApi = class extends BaseAPI {
|
|
628
1611
|
/**
|
|
629
|
-
* This action will cancel a credential request
|
|
630
|
-
* @summary Cancel
|
|
1612
|
+
* This action will cancel a credential request. Once a request is canceled, it cannot be undone and will prevent the request from being completed by any subjects. A request can be canceled if it contains credentials in draft status.
|
|
1613
|
+
* @summary Cancel Request
|
|
631
1614
|
* @param {string} requestId Unique identifier of the credential request to cancel. Must be a valid MongoDB ObjectId.
|
|
632
1615
|
* @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.
|
|
633
1616
|
* @param {*} [options] Override http request option.
|
|
634
1617
|
* @throws {RequiredError}
|
|
635
1618
|
* @memberof RequestsApi
|
|
636
1619
|
*/
|
|
637
|
-
|
|
638
|
-
return RequestsApiFp(this.configuration).
|
|
1620
|
+
cancel(requestId, aPIVersion, options) {
|
|
1621
|
+
return RequestsApiFp(this.configuration).cancel(requestId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
639
1622
|
}
|
|
640
1623
|
/**
|
|
641
|
-
* Create a new
|
|
642
|
-
* @summary Create
|
|
643
|
-
* @param {GenerateRequestDto} generateRequestDto Request body containing contacts (subjects), security level, and
|
|
1624
|
+
* Create a new request for one or more subjects (users). This endpoint will: - Create credentials from resources (via group IDs, resource IDs) or inline JSON data - Associate those credentials with subjects - Generate and send OTPs via email or SMS
|
|
1625
|
+
* @summary Create Request
|
|
1626
|
+
* @param {GenerateRequestDto} generateRequestDto Request body containing contacts (subjects), security level, and credentials to generate Resources can be specified via groupIds, resourcesIds, or inline credentials array.
|
|
1627
|
+
* @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
|
|
644
1628
|
* @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.
|
|
645
1629
|
* @param {*} [options] Override http request option.
|
|
646
1630
|
* @throws {RequiredError}
|
|
647
1631
|
* @memberof RequestsApi
|
|
648
1632
|
*/
|
|
649
|
-
|
|
650
|
-
return RequestsApiFp(this.configuration).
|
|
1633
|
+
create(generateRequestDto, idempotencyKey, aPIVersion, options) {
|
|
1634
|
+
return RequestsApiFp(this.configuration).create(generateRequestDto, idempotencyKey, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
651
1635
|
}
|
|
652
1636
|
/**
|
|
653
|
-
* Retrieve detailed information about a specific credential request
|
|
1637
|
+
* Retrieve detailed information about a specific credential request Just like the list requests endpoint, this endpoint includes information about the request, credentials, subjects (users) and chosen security level However, this endpoint includes the full W3C Verifiable Credential data for each credential, and the latest status of all grantor decisions
|
|
654
1638
|
* @summary Get Detail
|
|
655
1639
|
* @param {string} requestId Unique identifier of the credential request. Must be a valid MongoDB ObjectId.
|
|
656
1640
|
* @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.
|
|
@@ -658,21 +1642,18 @@ var RequestsApi = class extends BaseAPI {
|
|
|
658
1642
|
* @throws {RequiredError}
|
|
659
1643
|
* @memberof RequestsApi
|
|
660
1644
|
*/
|
|
661
|
-
|
|
662
|
-
return RequestsApiFp(this.configuration).
|
|
1645
|
+
detail(requestId, aPIVersion, options) {
|
|
1646
|
+
return RequestsApiFp(this.configuration).detail(requestId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
663
1647
|
}
|
|
664
1648
|
/**
|
|
665
|
-
* Retrieve a paginated list of credential requests
|
|
666
|
-
* @summary
|
|
1649
|
+
* Retrieve a paginated list of your credential requests Each request includes information about the request, credentials, subjects (users) and chosen security level
|
|
1650
|
+
* @summary List Requests
|
|
667
1651
|
* @param {number} [pageIndex] Page number
|
|
668
1652
|
* @param {number} [pageSize] Number of items per page
|
|
669
1653
|
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
670
|
-
* @param {string} [
|
|
671
|
-
* @param {string} [
|
|
672
|
-
* @param {
|
|
673
|
-
* @param {string} [internalId] Filter by internal ID.
|
|
674
|
-
* @param {string} [credentialInternalId] Filter by credential internal ID.
|
|
675
|
-
* @param {Array<GetRequestsSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
|
|
1654
|
+
* @param {string} [subject] Filter by subject (nested object with contact, id, or internalId).
|
|
1655
|
+
* @param {string} [internalId] Identifier to help you identify the request in your own system. We recommend using a unique value.
|
|
1656
|
+
* @param {Array<ListSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
|
|
676
1657
|
* @param {string} [dateFrom] Filter from date (will be converted to start of day)
|
|
677
1658
|
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
678
1659
|
* @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.
|
|
@@ -680,76 +1661,60 @@ var RequestsApi = class extends BaseAPI {
|
|
|
680
1661
|
* @throws {RequiredError}
|
|
681
1662
|
* @memberof RequestsApi
|
|
682
1663
|
*/
|
|
683
|
-
|
|
684
|
-
return RequestsApiFp(this.configuration).
|
|
1664
|
+
list(pageIndex, pageSize, search, subject, internalId, securityLevel, dateFrom, dateTo, aPIVersion, options) {
|
|
1665
|
+
return RequestsApiFp(this.configuration).list(pageIndex, pageSize, search, subject, internalId, securityLevel, dateFrom, dateTo, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
685
1666
|
}
|
|
686
1667
|
/**
|
|
687
|
-
* Resend a One-Time Password (OTP) to a subject for credential approval,
|
|
1668
|
+
* Resend a One-Time Password (OTP) to a subject for credential approval, via email or SMS (depending on their contact type) with a code and a signing URL. The endpoint validates: - The request is not canceled - Maximum attempts have not been reached, only successful OTP sends count towards resend limits - Sufficient time has passed since the last successful resend - Billing restrictions apply
|
|
688
1669
|
* @summary Resend OTP
|
|
689
1670
|
* @param {string} requestId Unique identifier of the request.
|
|
690
|
-
* @param {string} [contact]
|
|
691
|
-
* @param {string} [
|
|
1671
|
+
* @param {string} [contact] Verified contact value (email or phone)
|
|
1672
|
+
* @param {string} [id] Users VIA identifier
|
|
692
1673
|
* @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
|
|
1674
|
+
* @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
|
|
693
1675
|
* @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.
|
|
694
1676
|
* @param {*} [options] Override http request option.
|
|
695
1677
|
* @throws {RequiredError}
|
|
696
1678
|
* @memberof RequestsApi
|
|
697
1679
|
*/
|
|
698
|
-
resendOtp(requestId, contact,
|
|
699
|
-
return RequestsApiFp(this.configuration).resendOtp(requestId, contact,
|
|
1680
|
+
resendOtp(requestId, contact, id, internalId, idempotencyKey, aPIVersion, options) {
|
|
1681
|
+
return RequestsApiFp(this.configuration).resendOtp(requestId, contact, id, internalId, idempotencyKey, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
700
1682
|
}
|
|
701
1683
|
};
|
|
702
|
-
var
|
|
1684
|
+
var ListSecurityLevelEnum = {
|
|
703
1685
|
Contact: "CONTACT",
|
|
704
1686
|
OrganizationKyc: "ORGANIZATION_KYC",
|
|
705
1687
|
HumanosKyc: "HUMANOS_KYC",
|
|
706
1688
|
HumanosRevalidation: "HUMANOS_REVALIDATION"
|
|
707
1689
|
};
|
|
708
1690
|
|
|
709
|
-
// generated/api/
|
|
710
|
-
var
|
|
711
|
-
var
|
|
1691
|
+
// generated/api/user-api.ts
|
|
1692
|
+
var import_axios8 = __toESM(require("axios"));
|
|
1693
|
+
var UserApiAxiosParamCreator = function(configuration) {
|
|
712
1694
|
return {
|
|
713
1695
|
/**
|
|
714
|
-
*
|
|
715
|
-
* @summary
|
|
716
|
-
* @param {
|
|
717
|
-
* @param {
|
|
718
|
-
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
719
|
-
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
720
|
-
* @param {Array<GetGroupsTypesEnum>} [types] Filter by resource types. Can be a single value or array
|
|
721
|
-
* @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
|
|
1696
|
+
* This endpoint allows organizations to import their existing users information into Humanos, for better management and control. - Multiple users can be created in a call. - A user is identified by a Humanos verified contact (email or phone), if doesn\'t exist will be created. - Optionally, additional identity information (KYC) to allow mapping users within your own system. - Optionally, additional contact emails or phone numbers can be provided to allow mapping users within your own system. - Optionally, an internal ID can be provided to allow mapping users within your own system.
|
|
1697
|
+
* @summary Create User
|
|
1698
|
+
* @param {Array<CreateSubjectDto>} createSubjectDto Array of subjects to create. Each subject represents a user to be imported into Humanos
|
|
1699
|
+
* @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
|
|
722
1700
|
* @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.
|
|
723
1701
|
* @param {*} [options] Override http request option.
|
|
724
1702
|
* @throws {RequiredError}
|
|
725
|
-
*/
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
const
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
734
|
-
const localVarHeaderParameter = {};
|
|
735
|
-
const localVarQueryParameter = {};
|
|
736
|
-
if (pageIndex !== void 0) {
|
|
737
|
-
localVarQueryParameter["pageIndex"] = pageIndex;
|
|
738
|
-
}
|
|
739
|
-
if (pageSize !== void 0) {
|
|
740
|
-
localVarQueryParameter["pageSize"] = pageSize;
|
|
741
|
-
}
|
|
742
|
-
if (search !== void 0) {
|
|
743
|
-
localVarQueryParameter["search"] = search;
|
|
744
|
-
}
|
|
745
|
-
if (active !== void 0) {
|
|
746
|
-
localVarQueryParameter["active"] = active;
|
|
747
|
-
}
|
|
748
|
-
if (types) {
|
|
749
|
-
localVarQueryParameter["types"] = types;
|
|
1703
|
+
*/
|
|
1704
|
+
create: async (createSubjectDto, idempotencyKey, aPIVersion, options = {}) => {
|
|
1705
|
+
assertParamExists("create", "createSubjectDto", createSubjectDto);
|
|
1706
|
+
const localVarPath = `/user`;
|
|
1707
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1708
|
+
let baseOptions;
|
|
1709
|
+
if (configuration) {
|
|
1710
|
+
baseOptions = configuration.baseOptions;
|
|
750
1711
|
}
|
|
751
|
-
|
|
752
|
-
|
|
1712
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1713
|
+
const localVarHeaderParameter = {};
|
|
1714
|
+
const localVarQueryParameter = {};
|
|
1715
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1716
|
+
if (idempotencyKey != null) {
|
|
1717
|
+
localVarHeaderParameter["Idempotency-Key"] = String(idempotencyKey);
|
|
753
1718
|
}
|
|
754
1719
|
if (aPIVersion != null) {
|
|
755
1720
|
localVarHeaderParameter["API-Version"] = String(aPIVersion);
|
|
@@ -757,26 +1722,24 @@ var ResourceApiAxiosParamCreator = function(configuration) {
|
|
|
757
1722
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
758
1723
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
759
1724
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1725
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createSubjectDto, localVarRequestOptions, configuration);
|
|
760
1726
|
return {
|
|
761
1727
|
url: toPathString(localVarUrlObj),
|
|
762
1728
|
options: localVarRequestOptions
|
|
763
1729
|
};
|
|
764
1730
|
},
|
|
765
1731
|
/**
|
|
766
|
-
*
|
|
767
|
-
* @summary Get
|
|
768
|
-
* @param {
|
|
769
|
-
* @param {
|
|
770
|
-
* @param {string} [
|
|
771
|
-
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
772
|
-
* @param {Array<GetResourcesTypesEnum>} [types] Filter by resource types. Can be a single value or array
|
|
773
|
-
* @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
|
|
1732
|
+
* Retrieves detailed information about a user. Search by exactly one parameter: contact, id, or internalId. Only one must be provided.
|
|
1733
|
+
* @summary Get User
|
|
1734
|
+
* @param {string} [contact] Verified contact value (email or phone)
|
|
1735
|
+
* @param {string} [id] Users VIA identifier
|
|
1736
|
+
* @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
|
|
774
1737
|
* @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.
|
|
775
1738
|
* @param {*} [options] Override http request option.
|
|
776
1739
|
* @throws {RequiredError}
|
|
777
1740
|
*/
|
|
778
|
-
|
|
779
|
-
const localVarPath = `/
|
|
1741
|
+
detail: async (contact, id, internalId, aPIVersion, options = {}) => {
|
|
1742
|
+
const localVarPath = `/user`;
|
|
780
1743
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
781
1744
|
let baseOptions;
|
|
782
1745
|
if (configuration) {
|
|
@@ -785,20 +1748,11 @@ var ResourceApiAxiosParamCreator = function(configuration) {
|
|
|
785
1748
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
786
1749
|
const localVarHeaderParameter = {};
|
|
787
1750
|
const localVarQueryParameter = {};
|
|
788
|
-
if (
|
|
789
|
-
localVarQueryParameter["
|
|
790
|
-
}
|
|
791
|
-
if (pageSize !== void 0) {
|
|
792
|
-
localVarQueryParameter["pageSize"] = pageSize;
|
|
793
|
-
}
|
|
794
|
-
if (search !== void 0) {
|
|
795
|
-
localVarQueryParameter["search"] = search;
|
|
796
|
-
}
|
|
797
|
-
if (active !== void 0) {
|
|
798
|
-
localVarQueryParameter["active"] = active;
|
|
1751
|
+
if (contact !== void 0) {
|
|
1752
|
+
localVarQueryParameter["contact"] = contact;
|
|
799
1753
|
}
|
|
800
|
-
if (
|
|
801
|
-
localVarQueryParameter["
|
|
1754
|
+
if (id !== void 0) {
|
|
1755
|
+
localVarQueryParameter["id"] = id;
|
|
802
1756
|
}
|
|
803
1757
|
if (internalId !== void 0) {
|
|
804
1758
|
localVarQueryParameter["internalId"] = internalId;
|
|
@@ -816,150 +1770,117 @@ var ResourceApiAxiosParamCreator = function(configuration) {
|
|
|
816
1770
|
}
|
|
817
1771
|
};
|
|
818
1772
|
};
|
|
819
|
-
var
|
|
820
|
-
const localVarAxiosParamCreator =
|
|
1773
|
+
var UserApiFp = function(configuration) {
|
|
1774
|
+
const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration);
|
|
821
1775
|
return {
|
|
822
1776
|
/**
|
|
823
|
-
*
|
|
824
|
-
* @summary
|
|
825
|
-
* @param {
|
|
826
|
-
* @param {
|
|
827
|
-
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
828
|
-
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
829
|
-
* @param {Array<GetGroupsTypesEnum>} [types] Filter by resource types. Can be a single value or array
|
|
830
|
-
* @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
|
|
1777
|
+
* This endpoint allows organizations to import their existing users information into Humanos, for better management and control. - Multiple users can be created in a call. - A user is identified by a Humanos verified contact (email or phone), if doesn\'t exist will be created. - Optionally, additional identity information (KYC) to allow mapping users within your own system. - Optionally, additional contact emails or phone numbers can be provided to allow mapping users within your own system. - Optionally, an internal ID can be provided to allow mapping users within your own system.
|
|
1778
|
+
* @summary Create User
|
|
1779
|
+
* @param {Array<CreateSubjectDto>} createSubjectDto Array of subjects to create. Each subject represents a user to be imported into Humanos
|
|
1780
|
+
* @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
|
|
831
1781
|
* @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.
|
|
832
1782
|
* @param {*} [options] Override http request option.
|
|
833
1783
|
* @throws {RequiredError}
|
|
834
1784
|
*/
|
|
835
|
-
async
|
|
836
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1785
|
+
async create(createSubjectDto, idempotencyKey, aPIVersion, options) {
|
|
1786
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.create(createSubjectDto, idempotencyKey, aPIVersion, options);
|
|
837
1787
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
838
|
-
const localVarOperationServerBasePath = operationServerMap["
|
|
839
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1788
|
+
const localVarOperationServerBasePath = operationServerMap["UserApi.create"]?.[localVarOperationServerIndex]?.url;
|
|
1789
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios8.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
840
1790
|
},
|
|
841
1791
|
/**
|
|
842
|
-
*
|
|
843
|
-
* @summary Get
|
|
844
|
-
* @param {
|
|
845
|
-
* @param {
|
|
846
|
-
* @param {string} [
|
|
847
|
-
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
848
|
-
* @param {Array<GetResourcesTypesEnum>} [types] Filter by resource types. Can be a single value or array
|
|
849
|
-
* @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
|
|
1792
|
+
* Retrieves detailed information about a user. Search by exactly one parameter: contact, id, or internalId. Only one must be provided.
|
|
1793
|
+
* @summary Get User
|
|
1794
|
+
* @param {string} [contact] Verified contact value (email or phone)
|
|
1795
|
+
* @param {string} [id] Users VIA identifier
|
|
1796
|
+
* @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
|
|
850
1797
|
* @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.
|
|
851
1798
|
* @param {*} [options] Override http request option.
|
|
852
1799
|
* @throws {RequiredError}
|
|
853
1800
|
*/
|
|
854
|
-
async
|
|
855
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1801
|
+
async detail(contact, id, internalId, aPIVersion, options) {
|
|
1802
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.detail(contact, id, internalId, aPIVersion, options);
|
|
856
1803
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
857
|
-
const localVarOperationServerBasePath = operationServerMap["
|
|
858
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1804
|
+
const localVarOperationServerBasePath = operationServerMap["UserApi.detail"]?.[localVarOperationServerIndex]?.url;
|
|
1805
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios8.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
859
1806
|
}
|
|
860
1807
|
};
|
|
861
1808
|
};
|
|
862
|
-
var
|
|
863
|
-
const localVarFp =
|
|
1809
|
+
var UserApiFactory = function(configuration, basePath, axios2) {
|
|
1810
|
+
const localVarFp = UserApiFp(configuration);
|
|
864
1811
|
return {
|
|
865
1812
|
/**
|
|
866
|
-
*
|
|
867
|
-
* @summary
|
|
868
|
-
* @param {
|
|
869
|
-
* @param {
|
|
870
|
-
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
871
|
-
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
872
|
-
* @param {Array<GetGroupsTypesEnum>} [types] Filter by resource types. Can be a single value or array
|
|
873
|
-
* @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
|
|
1813
|
+
* This endpoint allows organizations to import their existing users information into Humanos, for better management and control. - Multiple users can be created in a call. - A user is identified by a Humanos verified contact (email or phone), if doesn\'t exist will be created. - Optionally, additional identity information (KYC) to allow mapping users within your own system. - Optionally, additional contact emails or phone numbers can be provided to allow mapping users within your own system. - Optionally, an internal ID can be provided to allow mapping users within your own system.
|
|
1814
|
+
* @summary Create User
|
|
1815
|
+
* @param {Array<CreateSubjectDto>} createSubjectDto Array of subjects to create. Each subject represents a user to be imported into Humanos
|
|
1816
|
+
* @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
|
|
874
1817
|
* @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.
|
|
875
1818
|
* @param {*} [options] Override http request option.
|
|
876
1819
|
* @throws {RequiredError}
|
|
877
1820
|
*/
|
|
878
|
-
|
|
879
|
-
return localVarFp.
|
|
1821
|
+
create(createSubjectDto, idempotencyKey, aPIVersion, options) {
|
|
1822
|
+
return localVarFp.create(createSubjectDto, idempotencyKey, aPIVersion, options).then((request) => request(axios2, basePath));
|
|
880
1823
|
},
|
|
881
1824
|
/**
|
|
882
|
-
*
|
|
883
|
-
* @summary Get
|
|
884
|
-
* @param {
|
|
885
|
-
* @param {
|
|
886
|
-
* @param {string} [
|
|
887
|
-
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
888
|
-
* @param {Array<GetResourcesTypesEnum>} [types] Filter by resource types. Can be a single value or array
|
|
889
|
-
* @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
|
|
1825
|
+
* Retrieves detailed information about a user. Search by exactly one parameter: contact, id, or internalId. Only one must be provided.
|
|
1826
|
+
* @summary Get User
|
|
1827
|
+
* @param {string} [contact] Verified contact value (email or phone)
|
|
1828
|
+
* @param {string} [id] Users VIA identifier
|
|
1829
|
+
* @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
|
|
890
1830
|
* @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.
|
|
891
1831
|
* @param {*} [options] Override http request option.
|
|
892
1832
|
* @throws {RequiredError}
|
|
893
1833
|
*/
|
|
894
|
-
|
|
895
|
-
return localVarFp.
|
|
1834
|
+
detail(contact, id, internalId, aPIVersion, options) {
|
|
1835
|
+
return localVarFp.detail(contact, id, internalId, aPIVersion, options).then((request) => request(axios2, basePath));
|
|
896
1836
|
}
|
|
897
1837
|
};
|
|
898
1838
|
};
|
|
899
|
-
var
|
|
1839
|
+
var UserApi = class extends BaseAPI {
|
|
900
1840
|
/**
|
|
901
|
-
*
|
|
902
|
-
* @summary
|
|
903
|
-
* @param {
|
|
904
|
-
* @param {
|
|
905
|
-
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
906
|
-
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
907
|
-
* @param {Array<GetGroupsTypesEnum>} [types] Filter by resource types. Can be a single value or array
|
|
908
|
-
* @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
|
|
1841
|
+
* This endpoint allows organizations to import their existing users information into Humanos, for better management and control. - Multiple users can be created in a call. - A user is identified by a Humanos verified contact (email or phone), if doesn\'t exist will be created. - Optionally, additional identity information (KYC) to allow mapping users within your own system. - Optionally, additional contact emails or phone numbers can be provided to allow mapping users within your own system. - Optionally, an internal ID can be provided to allow mapping users within your own system.
|
|
1842
|
+
* @summary Create User
|
|
1843
|
+
* @param {Array<CreateSubjectDto>} createSubjectDto Array of subjects to create. Each subject represents a user to be imported into Humanos
|
|
1844
|
+
* @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
|
|
909
1845
|
* @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.
|
|
910
1846
|
* @param {*} [options] Override http request option.
|
|
911
1847
|
* @throws {RequiredError}
|
|
912
|
-
* @memberof
|
|
1848
|
+
* @memberof UserApi
|
|
913
1849
|
*/
|
|
914
|
-
|
|
915
|
-
return
|
|
1850
|
+
create(createSubjectDto, idempotencyKey, aPIVersion, options) {
|
|
1851
|
+
return UserApiFp(this.configuration).create(createSubjectDto, idempotencyKey, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
916
1852
|
}
|
|
917
1853
|
/**
|
|
918
|
-
*
|
|
919
|
-
* @summary Get
|
|
920
|
-
* @param {
|
|
921
|
-
* @param {
|
|
922
|
-
* @param {string} [
|
|
923
|
-
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
924
|
-
* @param {Array<GetResourcesTypesEnum>} [types] Filter by resource types. Can be a single value or array
|
|
925
|
-
* @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
|
|
1854
|
+
* Retrieves detailed information about a user. Search by exactly one parameter: contact, id, or internalId. Only one must be provided.
|
|
1855
|
+
* @summary Get User
|
|
1856
|
+
* @param {string} [contact] Verified contact value (email or phone)
|
|
1857
|
+
* @param {string} [id] Users VIA identifier
|
|
1858
|
+
* @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
|
|
926
1859
|
* @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.
|
|
927
1860
|
* @param {*} [options] Override http request option.
|
|
928
1861
|
* @throws {RequiredError}
|
|
929
|
-
* @memberof
|
|
1862
|
+
* @memberof UserApi
|
|
930
1863
|
*/
|
|
931
|
-
|
|
932
|
-
return
|
|
1864
|
+
detail(contact, id, internalId, aPIVersion, options) {
|
|
1865
|
+
return UserApiFp(this.configuration).detail(contact, id, internalId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
933
1866
|
}
|
|
934
1867
|
};
|
|
935
|
-
var GetGroupsTypesEnum = {
|
|
936
|
-
Consent: "CONSENT",
|
|
937
|
-
Form: "FORM",
|
|
938
|
-
Document: "DOCUMENT",
|
|
939
|
-
Json: "JSON"
|
|
940
|
-
};
|
|
941
|
-
var GetResourcesTypesEnum = {
|
|
942
|
-
Consent: "CONSENT",
|
|
943
|
-
Form: "FORM",
|
|
944
|
-
Document: "DOCUMENT",
|
|
945
|
-
Json: "JSON"
|
|
946
|
-
};
|
|
947
1868
|
|
|
948
|
-
// generated/api/
|
|
949
|
-
var
|
|
950
|
-
var
|
|
1869
|
+
// generated/api/webhooks-api.ts
|
|
1870
|
+
var import_axios9 = __toESM(require("axios"));
|
|
1871
|
+
var WebhooksApiAxiosParamCreator = function(configuration) {
|
|
951
1872
|
return {
|
|
952
1873
|
/**
|
|
953
|
-
*
|
|
954
|
-
* @summary
|
|
955
|
-
* @param {
|
|
1874
|
+
* Fired when a credential request is accepted or rejected by the subject. **Inbound webhook callback** — Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
|
|
1875
|
+
* @summary Credential Event
|
|
1876
|
+
* @param {CredentialEvent} credentialEvent
|
|
956
1877
|
* @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.
|
|
957
1878
|
* @param {*} [options] Override http request option.
|
|
958
1879
|
* @throws {RequiredError}
|
|
959
1880
|
*/
|
|
960
|
-
|
|
961
|
-
assertParamExists("
|
|
962
|
-
const localVarPath = `/
|
|
1881
|
+
credential: async (credentialEvent, aPIVersion, options = {}) => {
|
|
1882
|
+
assertParamExists("credential", "credentialEvent", credentialEvent);
|
|
1883
|
+
const localVarPath = `/_webhooks/credential`;
|
|
963
1884
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
964
1885
|
let baseOptions;
|
|
965
1886
|
if (configuration) {
|
|
@@ -975,47 +1896,103 @@ var UserApiAxiosParamCreator = function(configuration) {
|
|
|
975
1896
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
976
1897
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
977
1898
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
978
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
1899
|
+
localVarRequestOptions.data = serializeDataIfNeeded(credentialEvent, localVarRequestOptions, configuration);
|
|
979
1900
|
return {
|
|
980
1901
|
url: toPathString(localVarUrlObj),
|
|
981
1902
|
options: localVarRequestOptions
|
|
982
1903
|
};
|
|
983
1904
|
},
|
|
984
1905
|
/**
|
|
985
|
-
*
|
|
986
|
-
* @summary
|
|
987
|
-
* @param {
|
|
988
|
-
* @param {string} [did] Public Decentralized Identifier (DID) of the user
|
|
989
|
-
* @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
|
|
1906
|
+
* Fired when an identity verification (KYC) decision is reached. **Inbound webhook callback** — Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
|
|
1907
|
+
* @summary Identity Event
|
|
1908
|
+
* @param {IdentityEvent} identityEvent
|
|
990
1909
|
* @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.
|
|
991
1910
|
* @param {*} [options] Override http request option.
|
|
992
1911
|
* @throws {RequiredError}
|
|
993
1912
|
*/
|
|
994
|
-
|
|
995
|
-
|
|
1913
|
+
identity: async (identityEvent, aPIVersion, options = {}) => {
|
|
1914
|
+
assertParamExists("identity", "identityEvent", identityEvent);
|
|
1915
|
+
const localVarPath = `/_webhooks/identity`;
|
|
996
1916
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
997
1917
|
let baseOptions;
|
|
998
1918
|
if (configuration) {
|
|
999
1919
|
baseOptions = configuration.baseOptions;
|
|
1000
1920
|
}
|
|
1001
|
-
const localVarRequestOptions = { method: "
|
|
1921
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1002
1922
|
const localVarHeaderParameter = {};
|
|
1003
1923
|
const localVarQueryParameter = {};
|
|
1004
|
-
|
|
1005
|
-
|
|
1924
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1925
|
+
if (aPIVersion != null) {
|
|
1926
|
+
localVarHeaderParameter["API-Version"] = String(aPIVersion);
|
|
1927
|
+
}
|
|
1928
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1929
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1930
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1931
|
+
localVarRequestOptions.data = serializeDataIfNeeded(identityEvent, localVarRequestOptions, configuration);
|
|
1932
|
+
return {
|
|
1933
|
+
url: toPathString(localVarUrlObj),
|
|
1934
|
+
options: localVarRequestOptions
|
|
1935
|
+
};
|
|
1936
|
+
},
|
|
1937
|
+
/**
|
|
1938
|
+
* Fired when an OTP delivery to the subject fails. **Inbound webhook callback** — Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
|
|
1939
|
+
* @summary OTP Failed Event
|
|
1940
|
+
* @param {OtpFailedEvent} otpFailedEvent
|
|
1941
|
+
* @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.
|
|
1942
|
+
* @param {*} [options] Override http request option.
|
|
1943
|
+
* @throws {RequiredError}
|
|
1944
|
+
*/
|
|
1945
|
+
otpFailed: async (otpFailedEvent, aPIVersion, options = {}) => {
|
|
1946
|
+
assertParamExists("otpFailed", "otpFailedEvent", otpFailedEvent);
|
|
1947
|
+
const localVarPath = `/_webhooks/otp-failed`;
|
|
1948
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1949
|
+
let baseOptions;
|
|
1950
|
+
if (configuration) {
|
|
1951
|
+
baseOptions = configuration.baseOptions;
|
|
1006
1952
|
}
|
|
1007
|
-
|
|
1008
|
-
|
|
1953
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1954
|
+
const localVarHeaderParameter = {};
|
|
1955
|
+
const localVarQueryParameter = {};
|
|
1956
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1957
|
+
if (aPIVersion != null) {
|
|
1958
|
+
localVarHeaderParameter["API-Version"] = String(aPIVersion);
|
|
1009
1959
|
}
|
|
1010
|
-
|
|
1011
|
-
|
|
1960
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1961
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1962
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1963
|
+
localVarRequestOptions.data = serializeDataIfNeeded(otpFailedEvent, localVarRequestOptions, configuration);
|
|
1964
|
+
return {
|
|
1965
|
+
url: toPathString(localVarUrlObj),
|
|
1966
|
+
options: localVarRequestOptions
|
|
1967
|
+
};
|
|
1968
|
+
},
|
|
1969
|
+
/**
|
|
1970
|
+
* Fired when a webhook test is triggered from the dashboard. **Inbound webhook callback** — Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
|
|
1971
|
+
* @summary Test Event
|
|
1972
|
+
* @param {TestEvent} testEvent
|
|
1973
|
+
* @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.
|
|
1974
|
+
* @param {*} [options] Override http request option.
|
|
1975
|
+
* @throws {RequiredError}
|
|
1976
|
+
*/
|
|
1977
|
+
test: async (testEvent, aPIVersion, options = {}) => {
|
|
1978
|
+
assertParamExists("test", "testEvent", testEvent);
|
|
1979
|
+
const localVarPath = `/_webhooks/test`;
|
|
1980
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1981
|
+
let baseOptions;
|
|
1982
|
+
if (configuration) {
|
|
1983
|
+
baseOptions = configuration.baseOptions;
|
|
1012
1984
|
}
|
|
1985
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1986
|
+
const localVarHeaderParameter = {};
|
|
1987
|
+
const localVarQueryParameter = {};
|
|
1988
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1013
1989
|
if (aPIVersion != null) {
|
|
1014
1990
|
localVarHeaderParameter["API-Version"] = String(aPIVersion);
|
|
1015
1991
|
}
|
|
1016
1992
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1017
1993
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1018
1994
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1995
|
+
localVarRequestOptions.data = serializeDataIfNeeded(testEvent, localVarRequestOptions, configuration);
|
|
1019
1996
|
return {
|
|
1020
1997
|
url: toPathString(localVarUrlObj),
|
|
1021
1998
|
options: localVarRequestOptions
|
|
@@ -1023,96 +2000,164 @@ var UserApiAxiosParamCreator = function(configuration) {
|
|
|
1023
2000
|
}
|
|
1024
2001
|
};
|
|
1025
2002
|
};
|
|
1026
|
-
var
|
|
1027
|
-
const localVarAxiosParamCreator =
|
|
2003
|
+
var WebhooksApiFp = function(configuration) {
|
|
2004
|
+
const localVarAxiosParamCreator = WebhooksApiAxiosParamCreator(configuration);
|
|
1028
2005
|
return {
|
|
1029
2006
|
/**
|
|
1030
|
-
*
|
|
1031
|
-
* @summary
|
|
1032
|
-
* @param {
|
|
2007
|
+
* Fired when a credential request is accepted or rejected by the subject. **Inbound webhook callback** — Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
|
|
2008
|
+
* @summary Credential Event
|
|
2009
|
+
* @param {CredentialEvent} credentialEvent
|
|
1033
2010
|
* @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.
|
|
1034
2011
|
* @param {*} [options] Override http request option.
|
|
1035
2012
|
* @throws {RequiredError}
|
|
1036
2013
|
*/
|
|
1037
|
-
async
|
|
1038
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2014
|
+
async credential(credentialEvent, aPIVersion, options) {
|
|
2015
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.credential(credentialEvent, aPIVersion, options);
|
|
1039
2016
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1040
|
-
const localVarOperationServerBasePath = operationServerMap["
|
|
1041
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2017
|
+
const localVarOperationServerBasePath = operationServerMap["WebhooksApi.credential"]?.[localVarOperationServerIndex]?.url;
|
|
2018
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios9.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1042
2019
|
},
|
|
1043
2020
|
/**
|
|
1044
|
-
*
|
|
1045
|
-
* @summary
|
|
1046
|
-
* @param {
|
|
1047
|
-
* @param {string} [did] Public Decentralized Identifier (DID) of the user
|
|
1048
|
-
* @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
|
|
2021
|
+
* Fired when an identity verification (KYC) decision is reached. **Inbound webhook callback** — Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
|
|
2022
|
+
* @summary Identity Event
|
|
2023
|
+
* @param {IdentityEvent} identityEvent
|
|
1049
2024
|
* @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.
|
|
1050
2025
|
* @param {*} [options] Override http request option.
|
|
1051
2026
|
* @throws {RequiredError}
|
|
1052
2027
|
*/
|
|
1053
|
-
async
|
|
1054
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2028
|
+
async identity(identityEvent, aPIVersion, options) {
|
|
2029
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.identity(identityEvent, aPIVersion, options);
|
|
1055
2030
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1056
|
-
const localVarOperationServerBasePath = operationServerMap["
|
|
1057
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2031
|
+
const localVarOperationServerBasePath = operationServerMap["WebhooksApi.identity"]?.[localVarOperationServerIndex]?.url;
|
|
2032
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios9.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
2033
|
+
},
|
|
2034
|
+
/**
|
|
2035
|
+
* Fired when an OTP delivery to the subject fails. **Inbound webhook callback** — Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
|
|
2036
|
+
* @summary OTP Failed Event
|
|
2037
|
+
* @param {OtpFailedEvent} otpFailedEvent
|
|
2038
|
+
* @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.
|
|
2039
|
+
* @param {*} [options] Override http request option.
|
|
2040
|
+
* @throws {RequiredError}
|
|
2041
|
+
*/
|
|
2042
|
+
async otpFailed(otpFailedEvent, aPIVersion, options) {
|
|
2043
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.otpFailed(otpFailedEvent, aPIVersion, options);
|
|
2044
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2045
|
+
const localVarOperationServerBasePath = operationServerMap["WebhooksApi.otpFailed"]?.[localVarOperationServerIndex]?.url;
|
|
2046
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios9.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
2047
|
+
},
|
|
2048
|
+
/**
|
|
2049
|
+
* Fired when a webhook test is triggered from the dashboard. **Inbound webhook callback** — Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
|
|
2050
|
+
* @summary Test Event
|
|
2051
|
+
* @param {TestEvent} testEvent
|
|
2052
|
+
* @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.
|
|
2053
|
+
* @param {*} [options] Override http request option.
|
|
2054
|
+
* @throws {RequiredError}
|
|
2055
|
+
*/
|
|
2056
|
+
async test(testEvent, aPIVersion, options) {
|
|
2057
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.test(testEvent, aPIVersion, options);
|
|
2058
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2059
|
+
const localVarOperationServerBasePath = operationServerMap["WebhooksApi.test"]?.[localVarOperationServerIndex]?.url;
|
|
2060
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios9.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1058
2061
|
}
|
|
1059
2062
|
};
|
|
1060
2063
|
};
|
|
1061
|
-
var
|
|
1062
|
-
const localVarFp =
|
|
2064
|
+
var WebhooksApiFactory = function(configuration, basePath, axios2) {
|
|
2065
|
+
const localVarFp = WebhooksApiFp(configuration);
|
|
1063
2066
|
return {
|
|
1064
2067
|
/**
|
|
1065
|
-
*
|
|
1066
|
-
* @summary
|
|
1067
|
-
* @param {
|
|
2068
|
+
* Fired when a credential request is accepted or rejected by the subject. **Inbound webhook callback** — Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
|
|
2069
|
+
* @summary Credential Event
|
|
2070
|
+
* @param {CredentialEvent} credentialEvent
|
|
1068
2071
|
* @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.
|
|
1069
2072
|
* @param {*} [options] Override http request option.
|
|
1070
2073
|
* @throws {RequiredError}
|
|
1071
2074
|
*/
|
|
1072
|
-
|
|
1073
|
-
return localVarFp.
|
|
2075
|
+
credential(credentialEvent, aPIVersion, options) {
|
|
2076
|
+
return localVarFp.credential(credentialEvent, aPIVersion, options).then((request) => request(axios2, basePath));
|
|
1074
2077
|
},
|
|
1075
2078
|
/**
|
|
1076
|
-
*
|
|
1077
|
-
* @summary
|
|
1078
|
-
* @param {
|
|
1079
|
-
* @param {string} [
|
|
1080
|
-
* @param {
|
|
2079
|
+
* Fired when an identity verification (KYC) decision is reached. **Inbound webhook callback** — Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
|
|
2080
|
+
* @summary Identity Event
|
|
2081
|
+
* @param {IdentityEvent} identityEvent
|
|
2082
|
+
* @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.
|
|
2083
|
+
* @param {*} [options] Override http request option.
|
|
2084
|
+
* @throws {RequiredError}
|
|
2085
|
+
*/
|
|
2086
|
+
identity(identityEvent, aPIVersion, options) {
|
|
2087
|
+
return localVarFp.identity(identityEvent, aPIVersion, options).then((request) => request(axios2, basePath));
|
|
2088
|
+
},
|
|
2089
|
+
/**
|
|
2090
|
+
* Fired when an OTP delivery to the subject fails. **Inbound webhook callback** — Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
|
|
2091
|
+
* @summary OTP Failed Event
|
|
2092
|
+
* @param {OtpFailedEvent} otpFailedEvent
|
|
2093
|
+
* @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.
|
|
2094
|
+
* @param {*} [options] Override http request option.
|
|
2095
|
+
* @throws {RequiredError}
|
|
2096
|
+
*/
|
|
2097
|
+
otpFailed(otpFailedEvent, aPIVersion, options) {
|
|
2098
|
+
return localVarFp.otpFailed(otpFailedEvent, aPIVersion, options).then((request) => request(axios2, basePath));
|
|
2099
|
+
},
|
|
2100
|
+
/**
|
|
2101
|
+
* Fired when a webhook test is triggered from the dashboard. **Inbound webhook callback** — Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
|
|
2102
|
+
* @summary Test Event
|
|
2103
|
+
* @param {TestEvent} testEvent
|
|
1081
2104
|
* @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.
|
|
1082
2105
|
* @param {*} [options] Override http request option.
|
|
1083
2106
|
* @throws {RequiredError}
|
|
1084
2107
|
*/
|
|
1085
|
-
|
|
1086
|
-
return localVarFp.
|
|
2108
|
+
test(testEvent, aPIVersion, options) {
|
|
2109
|
+
return localVarFp.test(testEvent, aPIVersion, options).then((request) => request(axios2, basePath));
|
|
1087
2110
|
}
|
|
1088
2111
|
};
|
|
1089
2112
|
};
|
|
1090
|
-
var
|
|
2113
|
+
var WebhooksApi = class extends BaseAPI {
|
|
1091
2114
|
/**
|
|
1092
|
-
*
|
|
1093
|
-
* @summary
|
|
1094
|
-
* @param {
|
|
2115
|
+
* Fired when a credential request is accepted or rejected by the subject. **Inbound webhook callback** — Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
|
|
2116
|
+
* @summary Credential Event
|
|
2117
|
+
* @param {CredentialEvent} credentialEvent
|
|
1095
2118
|
* @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.
|
|
1096
2119
|
* @param {*} [options] Override http request option.
|
|
1097
2120
|
* @throws {RequiredError}
|
|
1098
|
-
* @memberof
|
|
2121
|
+
* @memberof WebhooksApi
|
|
1099
2122
|
*/
|
|
1100
|
-
|
|
1101
|
-
return
|
|
2123
|
+
credential(credentialEvent, aPIVersion, options) {
|
|
2124
|
+
return WebhooksApiFp(this.configuration).credential(credentialEvent, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
1102
2125
|
}
|
|
1103
2126
|
/**
|
|
1104
|
-
*
|
|
1105
|
-
* @summary
|
|
1106
|
-
* @param {
|
|
1107
|
-
* @param {string} [did] Public Decentralized Identifier (DID) of the user
|
|
1108
|
-
* @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
|
|
2127
|
+
* Fired when an identity verification (KYC) decision is reached. **Inbound webhook callback** — Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
|
|
2128
|
+
* @summary Identity Event
|
|
2129
|
+
* @param {IdentityEvent} identityEvent
|
|
1109
2130
|
* @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.
|
|
1110
2131
|
* @param {*} [options] Override http request option.
|
|
1111
2132
|
* @throws {RequiredError}
|
|
1112
|
-
* @memberof
|
|
2133
|
+
* @memberof WebhooksApi
|
|
2134
|
+
*/
|
|
2135
|
+
identity(identityEvent, aPIVersion, options) {
|
|
2136
|
+
return WebhooksApiFp(this.configuration).identity(identityEvent, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
2137
|
+
}
|
|
2138
|
+
/**
|
|
2139
|
+
* Fired when an OTP delivery to the subject fails. **Inbound webhook callback** — Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
|
|
2140
|
+
* @summary OTP Failed Event
|
|
2141
|
+
* @param {OtpFailedEvent} otpFailedEvent
|
|
2142
|
+
* @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.
|
|
2143
|
+
* @param {*} [options] Override http request option.
|
|
2144
|
+
* @throws {RequiredError}
|
|
2145
|
+
* @memberof WebhooksApi
|
|
1113
2146
|
*/
|
|
1114
|
-
|
|
1115
|
-
return
|
|
2147
|
+
otpFailed(otpFailedEvent, aPIVersion, options) {
|
|
2148
|
+
return WebhooksApiFp(this.configuration).otpFailed(otpFailedEvent, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
2149
|
+
}
|
|
2150
|
+
/**
|
|
2151
|
+
* Fired when a webhook test is triggered from the dashboard. **Inbound webhook callback** — Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
|
|
2152
|
+
* @summary Test Event
|
|
2153
|
+
* @param {TestEvent} testEvent
|
|
2154
|
+
* @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.
|
|
2155
|
+
* @param {*} [options] Override http request option.
|
|
2156
|
+
* @throws {RequiredError}
|
|
2157
|
+
* @memberof WebhooksApi
|
|
2158
|
+
*/
|
|
2159
|
+
test(testEvent, aPIVersion, options) {
|
|
2160
|
+
return WebhooksApiFp(this.configuration).test(testEvent, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
1116
2161
|
}
|
|
1117
2162
|
};
|
|
1118
2163
|
|
|
@@ -1144,12 +2189,36 @@ var Configuration = class {
|
|
|
1144
2189
|
}
|
|
1145
2190
|
};
|
|
1146
2191
|
|
|
1147
|
-
// generated/models/
|
|
1148
|
-
var
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
2192
|
+
// generated/models/activity-entity.ts
|
|
2193
|
+
var ActivityEntityTypeEnum = {
|
|
2194
|
+
RequestCreated: "REQUEST_CREATED",
|
|
2195
|
+
RequestCanceled: "REQUEST_CANCELED",
|
|
2196
|
+
VpCreated: "VP_CREATED",
|
|
2197
|
+
VpDenied: "VP_DENIED",
|
|
2198
|
+
VpVerified: "VP_VERIFIED",
|
|
2199
|
+
VpVerificationDenied: "VP_VERIFICATION_DENIED",
|
|
2200
|
+
UserDecisionAccepted: "USER_DECISION_ACCEPTED",
|
|
2201
|
+
UserDecisionRejected: "USER_DECISION_REJECTED",
|
|
2202
|
+
MandateIssued: "MANDATE_ISSUED",
|
|
2203
|
+
MandateRevoked: "MANDATE_REVOKED",
|
|
2204
|
+
KycAccepted: "KYC_ACCEPTED",
|
|
2205
|
+
KycRejected: "KYC_REJECTED"
|
|
2206
|
+
};
|
|
2207
|
+
|
|
2208
|
+
// generated/models/activity-query.ts
|
|
2209
|
+
var ActivityQueryTypeEnum = {
|
|
2210
|
+
RequestCreated: "REQUEST_CREATED",
|
|
2211
|
+
RequestCanceled: "REQUEST_CANCELED",
|
|
2212
|
+
VpCreated: "VP_CREATED",
|
|
2213
|
+
VpDenied: "VP_DENIED",
|
|
2214
|
+
VpVerified: "VP_VERIFIED",
|
|
2215
|
+
VpVerificationDenied: "VP_VERIFICATION_DENIED",
|
|
2216
|
+
UserDecisionAccepted: "USER_DECISION_ACCEPTED",
|
|
2217
|
+
UserDecisionRejected: "USER_DECISION_REJECTED",
|
|
2218
|
+
MandateIssued: "MANDATE_ISSUED",
|
|
2219
|
+
MandateRevoked: "MANDATE_REVOKED",
|
|
2220
|
+
KycAccepted: "KYC_ACCEPTED",
|
|
2221
|
+
KycRejected: "KYC_REJECTED"
|
|
1153
2222
|
};
|
|
1154
2223
|
|
|
1155
2224
|
// generated/models/create-subject-entity.ts
|
|
@@ -1164,28 +2233,48 @@ var CreateSubjectEntityStatusEnum = {
|
|
|
1164
2233
|
NUMBER_410: 410
|
|
1165
2234
|
};
|
|
1166
2235
|
|
|
2236
|
+
// generated/models/credential-dto.ts
|
|
2237
|
+
var CredentialDtoTypeEnum = {
|
|
2238
|
+
Document: "DOCUMENT",
|
|
2239
|
+
Consent: "CONSENT",
|
|
2240
|
+
Json: "JSON",
|
|
2241
|
+
Policy: "POLICY"
|
|
2242
|
+
};
|
|
2243
|
+
|
|
1167
2244
|
// generated/models/credential-entity.ts
|
|
1168
2245
|
var CredentialEntityStatusEnum = {
|
|
1169
|
-
|
|
1170
|
-
|
|
2246
|
+
Draft: "DRAFT",
|
|
2247
|
+
Active: "ACTIVE",
|
|
1171
2248
|
Rejected: "REJECTED",
|
|
1172
|
-
|
|
2249
|
+
Canceled: "CANCELED",
|
|
2250
|
+
Revoked: "REVOKED",
|
|
2251
|
+
Expired: "EXPIRED"
|
|
1173
2252
|
};
|
|
1174
2253
|
|
|
1175
|
-
// generated/models/credential-
|
|
1176
|
-
var
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
2254
|
+
// generated/models/credential-event.ts
|
|
2255
|
+
var CredentialEventEventTypeEnum = {
|
|
2256
|
+
Credential: "credential"
|
|
2257
|
+
};
|
|
2258
|
+
|
|
2259
|
+
// generated/models/credential-placement-dto.ts
|
|
2260
|
+
var CredentialPlacementDtoTypeEnum = {
|
|
2261
|
+
Signature: "SIGNATURE",
|
|
2262
|
+
Initials: "INITIALS",
|
|
2263
|
+
IdentityField: "IDENTITY_FIELD",
|
|
2264
|
+
OpenText: "OPEN_TEXT",
|
|
2265
|
+
Numeric: "NUMERIC",
|
|
2266
|
+
Date: "DATE",
|
|
2267
|
+
Checkbox: "CHECKBOX"
|
|
1181
2268
|
};
|
|
1182
2269
|
|
|
1183
2270
|
// generated/models/credential-status.ts
|
|
1184
2271
|
var CredentialStatus = {
|
|
1185
|
-
|
|
1186
|
-
|
|
2272
|
+
Draft: "DRAFT",
|
|
2273
|
+
Active: "ACTIVE",
|
|
1187
2274
|
Rejected: "REJECTED",
|
|
1188
|
-
|
|
2275
|
+
Canceled: "CANCELED",
|
|
2276
|
+
Revoked: "REVOKED",
|
|
2277
|
+
Expired: "EXPIRED"
|
|
1189
2278
|
};
|
|
1190
2279
|
|
|
1191
2280
|
// generated/models/delivery-action-type.ts
|
|
@@ -1202,49 +2291,24 @@ var GenerateRequestDtoSecurityLevelEnum = {
|
|
|
1202
2291
|
HumanosRevalidation: "HUMANOS_REVALIDATION"
|
|
1203
2292
|
};
|
|
1204
2293
|
|
|
1205
|
-
// generated/models/
|
|
1206
|
-
var
|
|
1207
|
-
|
|
1208
|
-
Form: "FORM",
|
|
1209
|
-
Document: "DOCUMENT",
|
|
1210
|
-
Json: "JSON"
|
|
1211
|
-
};
|
|
1212
|
-
|
|
1213
|
-
// generated/models/identity-field-type.ts
|
|
1214
|
-
var IdentityFieldType = {
|
|
1215
|
-
FullName: "FULL_NAME",
|
|
1216
|
-
Birth: "BIRTH",
|
|
1217
|
-
HealthNumber: "HEALTH_NUMBER",
|
|
1218
|
-
TaxNumber: "TAX_NUMBER",
|
|
1219
|
-
DocId: "DOC_ID",
|
|
1220
|
-
CountryAlpha3: "COUNTRY_ALPHA3",
|
|
1221
|
-
SocialSecurityNumber: "SOCIAL_SECURITY_NUMBER",
|
|
1222
|
-
Email: "EMAIL",
|
|
1223
|
-
Phone: "PHONE"
|
|
2294
|
+
// generated/models/identity-event.ts
|
|
2295
|
+
var IdentityEventEventTypeEnum = {
|
|
2296
|
+
Identity: "identity"
|
|
1224
2297
|
};
|
|
1225
2298
|
|
|
1226
|
-
// generated/models/
|
|
1227
|
-
var
|
|
1228
|
-
|
|
1229
|
-
Number: "number",
|
|
1230
|
-
Boolean: "boolean",
|
|
1231
|
-
Object: "object",
|
|
1232
|
-
Array: "array",
|
|
1233
|
-
Date: "date",
|
|
1234
|
-
Pdf: "pdf",
|
|
1235
|
-
Url: "url"
|
|
2299
|
+
// generated/models/otp-failed-event.ts
|
|
2300
|
+
var OtpFailedEventEventTypeEnum = {
|
|
2301
|
+
OtpFailed: "otp.failed"
|
|
1236
2302
|
};
|
|
1237
2303
|
|
|
1238
|
-
// generated/models/
|
|
1239
|
-
var
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
Pdf: "pdf",
|
|
1247
|
-
Url: "url"
|
|
2304
|
+
// generated/models/request-credential-entity.ts
|
|
2305
|
+
var RequestCredentialEntityStatusEnum = {
|
|
2306
|
+
Draft: "DRAFT",
|
|
2307
|
+
Active: "ACTIVE",
|
|
2308
|
+
Rejected: "REJECTED",
|
|
2309
|
+
Canceled: "CANCELED",
|
|
2310
|
+
Revoked: "REVOKED",
|
|
2311
|
+
Expired: "EXPIRED"
|
|
1248
2312
|
};
|
|
1249
2313
|
|
|
1250
2314
|
// generated/models/request-detail-entity.ts
|
|
@@ -1255,6 +2319,13 @@ var RequestDetailEntitySecurityLevelEnum = {
|
|
|
1255
2319
|
HumanosRevalidation: "HUMANOS_REVALIDATION"
|
|
1256
2320
|
};
|
|
1257
2321
|
|
|
2322
|
+
// generated/models/request-detail-subject-entity.ts
|
|
2323
|
+
var RequestDetailSubjectEntityIdentityStatusEnum = {
|
|
2324
|
+
None: "NONE",
|
|
2325
|
+
Kyc: "KYC",
|
|
2326
|
+
Humanos: "HUMANOS"
|
|
2327
|
+
};
|
|
2328
|
+
|
|
1258
2329
|
// generated/models/request-entity.ts
|
|
1259
2330
|
var RequestEntitySecurityLevelEnum = {
|
|
1260
2331
|
Contact: "CONTACT",
|
|
@@ -1271,12 +2342,31 @@ var RequestQuerySecurityLevelEnum = {
|
|
|
1271
2342
|
HumanosRevalidation: "HUMANOS_REVALIDATION"
|
|
1272
2343
|
};
|
|
1273
2344
|
|
|
2345
|
+
// generated/models/request-subject-entity.ts
|
|
2346
|
+
var RequestSubjectEntityIdentityStatusEnum = {
|
|
2347
|
+
None: "NONE",
|
|
2348
|
+
Kyc: "KYC",
|
|
2349
|
+
Humanos: "HUMANOS"
|
|
2350
|
+
};
|
|
2351
|
+
|
|
1274
2352
|
// generated/models/resource-entity.ts
|
|
1275
2353
|
var ResourceEntityTypeEnum = {
|
|
1276
2354
|
Consent: "CONSENT",
|
|
1277
2355
|
Form: "FORM",
|
|
1278
2356
|
Document: "DOCUMENT",
|
|
1279
|
-
Json: "JSON"
|
|
2357
|
+
Json: "JSON",
|
|
2358
|
+
Payment: "PAYMENT",
|
|
2359
|
+
Policy: "POLICY"
|
|
2360
|
+
};
|
|
2361
|
+
|
|
2362
|
+
// generated/models/resource-minimal-entity.ts
|
|
2363
|
+
var ResourceMinimalEntityTypeEnum = {
|
|
2364
|
+
Consent: "CONSENT",
|
|
2365
|
+
Form: "FORM",
|
|
2366
|
+
Document: "DOCUMENT",
|
|
2367
|
+
Json: "JSON",
|
|
2368
|
+
Payment: "PAYMENT",
|
|
2369
|
+
Policy: "POLICY"
|
|
1280
2370
|
};
|
|
1281
2371
|
|
|
1282
2372
|
// generated/models/resource-query.ts
|
|
@@ -1284,43 +2374,48 @@ var ResourceQueryTypesEnum = {
|
|
|
1284
2374
|
Consent: "CONSENT",
|
|
1285
2375
|
Form: "FORM",
|
|
1286
2376
|
Document: "DOCUMENT",
|
|
1287
|
-
Json: "JSON"
|
|
2377
|
+
Json: "JSON",
|
|
2378
|
+
Payment: "PAYMENT",
|
|
2379
|
+
Policy: "POLICY"
|
|
1288
2380
|
};
|
|
1289
2381
|
|
|
1290
|
-
// generated/models/
|
|
1291
|
-
var
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
2382
|
+
// generated/models/revoke-credential-entity.ts
|
|
2383
|
+
var RevokeCredentialEntityStatusEnum = {
|
|
2384
|
+
Draft: "DRAFT",
|
|
2385
|
+
Active: "ACTIVE",
|
|
2386
|
+
Rejected: "REJECTED",
|
|
2387
|
+
Canceled: "CANCELED",
|
|
2388
|
+
Revoked: "REVOKED",
|
|
2389
|
+
Expired: "EXPIRED"
|
|
1296
2390
|
};
|
|
1297
2391
|
|
|
1298
|
-
// generated/models/
|
|
1299
|
-
var
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
Test: "test"
|
|
2392
|
+
// generated/models/subject-issuer-entity.ts
|
|
2393
|
+
var SubjectIssuerEntityIdentityStatusEnum = {
|
|
2394
|
+
None: "NONE",
|
|
2395
|
+
Kyc: "KYC",
|
|
2396
|
+
Humanos: "HUMANOS"
|
|
1304
2397
|
};
|
|
1305
2398
|
|
|
1306
|
-
// generated/models/
|
|
1307
|
-
var
|
|
1308
|
-
|
|
2399
|
+
// generated/models/test-event.ts
|
|
2400
|
+
var TestEventEventTypeEnum = {
|
|
2401
|
+
Test: "test"
|
|
1309
2402
|
};
|
|
1310
2403
|
|
|
1311
|
-
// generated/models/
|
|
1312
|
-
var
|
|
1313
|
-
|
|
2404
|
+
// generated/models/verify-allow-response-entity.ts
|
|
2405
|
+
var VerifyAllowResponseEntityDecisionEnum = {
|
|
2406
|
+
Allow: "allow"
|
|
1314
2407
|
};
|
|
1315
2408
|
|
|
1316
|
-
// generated/models/
|
|
1317
|
-
var
|
|
1318
|
-
|
|
2409
|
+
// generated/models/verify-deny-response-entity.ts
|
|
2410
|
+
var VerifyDenyResponseEntityDecisionEnum = {
|
|
2411
|
+
Deny: "deny"
|
|
1319
2412
|
};
|
|
1320
2413
|
|
|
1321
|
-
// generated/models/
|
|
1322
|
-
var
|
|
1323
|
-
|
|
2414
|
+
// generated/models/verify-evaluation-entity.ts
|
|
2415
|
+
var VerifyEvaluationEntityResultEnum = {
|
|
2416
|
+
Pass: "pass",
|
|
2417
|
+
Fail: "fail",
|
|
2418
|
+
Error: "error"
|
|
1324
2419
|
};
|
|
1325
2420
|
|
|
1326
2421
|
// src/signature.ts
|
|
@@ -1362,7 +2457,7 @@ var SDK_LANGUAGE = "typescript";
|
|
|
1362
2457
|
var HumanosClient = class {
|
|
1363
2458
|
constructor(clientConfig) {
|
|
1364
2459
|
const { basePath, apiKey, signatureSecret, axiosConfig } = clientConfig;
|
|
1365
|
-
this.axios =
|
|
2460
|
+
this.axios = import_axios10.default.create({
|
|
1366
2461
|
baseURL: basePath,
|
|
1367
2462
|
headers: {
|
|
1368
2463
|
Authorization: `Bearer ${apiKey}`,
|
|
@@ -1377,9 +2472,14 @@ var HumanosClient = class {
|
|
|
1377
2472
|
basePath,
|
|
1378
2473
|
accessToken: apiKey
|
|
1379
2474
|
});
|
|
2475
|
+
this.actions = new ActionsApi(this.config, basePath, this.axios);
|
|
2476
|
+
this.activity = new ActivityApi(this.config, basePath, this.axios);
|
|
2477
|
+
this.approval = new ApprovalApi(this.config, basePath, this.axios);
|
|
2478
|
+
this.credentials = new CredentialsApi(this.config, basePath, this.axios);
|
|
2479
|
+
this.did = new DIDApi(this.config, basePath, this.axios);
|
|
1380
2480
|
this.requests = new RequestsApi(this.config, basePath, this.axios);
|
|
1381
|
-
this.resources = new ResourceApi(this.config, basePath, this.axios);
|
|
1382
2481
|
this.users = new UserApi(this.config, basePath, this.axios);
|
|
2482
|
+
this.webhooks = new WebhooksApi(this.config, basePath, this.axios);
|
|
1383
2483
|
}
|
|
1384
2484
|
};
|
|
1385
2485
|
function createHumanosClient(config) {
|
|
@@ -1471,50 +2571,72 @@ function createWebhookHandler(config, handler) {
|
|
|
1471
2571
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1472
2572
|
0 && (module.exports = {
|
|
1473
2573
|
API_VERSION,
|
|
1474
|
-
|
|
2574
|
+
ActionsApi,
|
|
2575
|
+
ActionsApiAxiosParamCreator,
|
|
2576
|
+
ActionsApiFactory,
|
|
2577
|
+
ActionsApiFp,
|
|
2578
|
+
ActivityApi,
|
|
2579
|
+
ActivityApiAxiosParamCreator,
|
|
2580
|
+
ActivityApiFactory,
|
|
2581
|
+
ActivityApiFp,
|
|
2582
|
+
ActivityEntityTypeEnum,
|
|
2583
|
+
ActivityQueryTypeEnum,
|
|
2584
|
+
ApprovalApi,
|
|
2585
|
+
ApprovalApiAxiosParamCreator,
|
|
2586
|
+
ApprovalApiFactory,
|
|
2587
|
+
ApprovalApiFp,
|
|
1475
2588
|
Configuration,
|
|
1476
2589
|
CreateSubjectEntityStatusEnum,
|
|
2590
|
+
CredentialDtoTypeEnum,
|
|
1477
2591
|
CredentialEntityStatusEnum,
|
|
1478
|
-
|
|
2592
|
+
CredentialEventEventTypeEnum,
|
|
2593
|
+
CredentialPlacementDtoTypeEnum,
|
|
1479
2594
|
CredentialStatus,
|
|
1480
2595
|
CredentialsApi,
|
|
1481
2596
|
CredentialsApiAxiosParamCreator,
|
|
1482
2597
|
CredentialsApiFactory,
|
|
1483
2598
|
CredentialsApiFp,
|
|
2599
|
+
DIDApi,
|
|
2600
|
+
DIDApiAxiosParamCreator,
|
|
2601
|
+
DIDApiFactory,
|
|
2602
|
+
DIDApiFp,
|
|
1484
2603
|
DeliveryActionType,
|
|
1485
2604
|
GenerateRequestDtoSecurityLevelEnum,
|
|
1486
|
-
GetGroupsTypesEnum,
|
|
1487
|
-
GetRequestsSecurityLevelEnum,
|
|
1488
|
-
GetResourcesTypesEnum,
|
|
1489
|
-
GroupResourceEntityTypeEnum,
|
|
1490
2605
|
HumanosClient,
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
2606
|
+
IdentityEventEventTypeEnum,
|
|
2607
|
+
ListSecurityLevelEnum,
|
|
2608
|
+
ListTypeEnum,
|
|
2609
|
+
ListTypesEnum,
|
|
2610
|
+
OtpFailedEventEventTypeEnum,
|
|
2611
|
+
RequestCredentialEntityStatusEnum,
|
|
1494
2612
|
RequestDetailEntitySecurityLevelEnum,
|
|
2613
|
+
RequestDetailSubjectEntityIdentityStatusEnum,
|
|
1495
2614
|
RequestEntitySecurityLevelEnum,
|
|
1496
2615
|
RequestQuerySecurityLevelEnum,
|
|
2616
|
+
RequestSubjectEntityIdentityStatusEnum,
|
|
1497
2617
|
RequestsApi,
|
|
1498
2618
|
RequestsApiAxiosParamCreator,
|
|
1499
2619
|
RequestsApiFactory,
|
|
1500
2620
|
RequestsApiFp,
|
|
1501
|
-
ResourceApi,
|
|
1502
|
-
ResourceApiAxiosParamCreator,
|
|
1503
|
-
ResourceApiFactory,
|
|
1504
|
-
ResourceApiFp,
|
|
1505
2621
|
ResourceEntityTypeEnum,
|
|
2622
|
+
ResourceMinimalEntityTypeEnum,
|
|
1506
2623
|
ResourceQueryTypesEnum,
|
|
2624
|
+
RevokeCredentialEntityStatusEnum,
|
|
1507
2625
|
SDK_LANGUAGE,
|
|
2626
|
+
SubjectIssuerEntityIdentityStatusEnum,
|
|
2627
|
+
TestEventEventTypeEnum,
|
|
1508
2628
|
UserApi,
|
|
1509
2629
|
UserApiAxiosParamCreator,
|
|
1510
2630
|
UserApiFactory,
|
|
1511
2631
|
UserApiFp,
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
2632
|
+
VerifyAllowResponseEntityDecisionEnum,
|
|
2633
|
+
VerifyDenyResponseEntityDecisionEnum,
|
|
2634
|
+
VerifyEvaluationEntityResultEnum,
|
|
2635
|
+
WebhooksApi,
|
|
2636
|
+
WebhooksApiAxiosParamCreator,
|
|
2637
|
+
WebhooksApiFactory,
|
|
2638
|
+
WebhooksApiFp,
|
|
2639
|
+
WorkflowsTypesEnum,
|
|
1518
2640
|
applySignatureInterceptor,
|
|
1519
2641
|
createHumanosClient,
|
|
1520
2642
|
createSignatureInterceptor,
|