humanos 1.0.4 → 1.0.6
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/dist/index.d.mts +346 -231
- package/dist/index.d.ts +346 -231
- package/dist/index.js +65 -60
- package/dist/index.mjs +64 -60
- package/generated/.openapi-generator/FILES +5 -2
- package/generated/api/actions-api.ts +1 -1
- package/generated/api/activity-api.ts +28 -28
- package/generated/api/approval-api.ts +1 -3
- package/generated/api/credentials-api.ts +5 -5
- package/generated/api/didapi.ts +1 -1
- package/generated/api/requests-api.ts +32 -32
- package/generated/api/user-api.ts +1 -1
- package/generated/api/webhooks-api.ts +5 -5
- package/generated/api.ts +1 -1
- package/generated/base.ts +1 -1
- package/generated/common.ts +1 -1
- package/generated/configuration.ts +1 -1
- package/generated/index.ts +1 -1
- package/generated/models/action-dto.ts +1 -1
- package/generated/models/action-entity.ts +1 -1
- package/generated/models/action-list-entity.ts +1 -1
- package/generated/models/action-query.ts +1 -1
- package/generated/models/action-version-detail-entity.ts +1 -1
- package/generated/models/action-version-list-entity.ts +1 -1
- package/generated/models/action-version-summary-entity.ts +1 -1
- package/generated/models/activities-entity.ts +1 -1
- package/generated/models/activity-entity.ts +1 -1
- package/generated/models/activity-query.ts +13 -13
- package/generated/models/consent.ts +1 -1
- package/generated/models/contact-entity.ts +1 -1
- package/generated/models/create-presentation-dto.ts +1 -1
- package/generated/models/create-subject-dto.ts +1 -1
- package/generated/models/create-subject-entity.ts +1 -1
- package/generated/models/{credential-dto-data-inner.ts → credential-dto-data.ts} +4 -3
- package/generated/models/credential-dto.ts +5 -5
- package/generated/models/credential-entity.ts +1 -1
- package/generated/models/credential-event-decision.ts +1 -1
- package/generated/models/credential-event-user.ts +1 -1
- package/generated/models/credential-event.ts +1 -1
- package/generated/models/credential-placement-dto.ts +1 -1
- package/generated/models/credential-status.ts +1 -1
- package/generated/models/credentials-detail404-response.ts +1 -1
- package/generated/models/credentials-evidence404-response.ts +1 -1
- package/generated/models/credentials-issue-vp400-response.ts +1 -1
- package/generated/models/credentials-issue-vp403-response.ts +1 -1
- package/generated/models/credentials-issue-vp404-response.ts +1 -1
- package/generated/models/credentials-revoke400-response.ts +1 -1
- package/generated/models/credentials-revoke409-response.ts +1 -1
- package/generated/models/delivery-action-type.ts +1 -1
- package/generated/models/did-document-entity.ts +1 -1
- package/generated/models/evidence.ts +1 -1
- package/generated/models/generate-credential-entity.ts +1 -1
- package/generated/models/generate-request-dto.ts +16 -28
- package/generated/models/generate-request-entity.ts +1 -1
- package/generated/models/{otp-failed-event-otp-error.ts → generate-request-iframe-dto.ts} +6 -12
- package/generated/models/generate-request-user-dto.ts +64 -0
- package/generated/models/generate-subject-entity.ts +3 -3
- package/generated/models/group-entity.ts +1 -1
- package/generated/models/groups-entity.ts +1 -1
- package/generated/models/identity-dto.ts +1 -1
- package/generated/models/identity-event-decision.ts +1 -19
- package/generated/models/identity-event-user.ts +1 -1
- package/generated/models/identity-event.ts +4 -4
- package/generated/models/{w3-cverifiable-credential-valid-from.ts → identity-webhook-issue-date.ts} +3 -3
- package/generated/models/identity-webhook.ts +117 -0
- package/generated/models/index.ts +5 -2
- package/generated/models/organization-data-entity.ts +1 -1
- package/generated/models/otp-error.ts +1 -1
- package/generated/models/otp-failed-event-otp.ts +1 -1
- package/generated/models/otp-failed-event.ts +1 -1
- package/generated/models/partial-subject-entity.ts +1 -1
- package/generated/models/presentation-response-entity.ts +8 -2
- package/generated/models/receipt-entity.ts +1 -1
- package/generated/models/request-credential-entity.ts +1 -1
- package/generated/models/request-detail-entity.ts +1 -1
- package/generated/models/request-detail-subject-entity.ts +7 -1
- package/generated/models/request-entity.ts +1 -1
- package/generated/models/request-query.ts +13 -13
- package/generated/models/request-subject-entity.ts +7 -1
- package/generated/models/requests-create400-response.ts +1 -1
- package/generated/models/requests-detail404-response.ts +1 -1
- package/generated/models/requests-entity.ts +1 -1
- package/generated/models/requests-resend-otp403-response.ts +1 -1
- package/generated/models/resource-entity.ts +1 -2
- package/generated/models/resource-minimal-entity.ts +1 -2
- package/generated/models/resource-query.ts +1 -2
- package/generated/models/resources-entity.ts +1 -1
- package/generated/models/revoke-credential-dto.ts +1 -1
- package/generated/models/revoke-credential-entity.ts +1 -1
- package/generated/models/subject-issuer-entity.ts +1 -1
- package/generated/models/subject-query.ts +1 -1
- package/generated/models/success-entity.ts +1 -1
- package/generated/models/test-event.ts +1 -1
- package/generated/models/user-create400-response.ts +1 -1
- package/generated/models/user-detail400-response.ts +1 -1
- package/generated/models/user-detail404-response.ts +1 -1
- package/generated/models/verification-method-entity.ts +1 -1
- package/generated/models/verify-allow-response-entity.ts +1 -1
- package/generated/models/verify-deny-response-entity.ts +1 -1
- package/generated/models/verify-evaluation-entity.ts +1 -1
- package/generated/models/verify-presentation-dto.ts +8 -2
- package/generated/models/w3-cverifiable-credential-credential-subject-mandate-action.ts +1 -1
- package/generated/models/w3-cverifiable-credential-credential-subject-mandate-context.ts +1 -1
- package/generated/models/w3-cverifiable-credential-credential-subject-mandate-grantor.ts +1 -1
- package/generated/models/w3-cverifiable-credential-credential-subject-mandate.ts +1 -1
- package/generated/models/w3-cverifiable-credential-credential-subject.ts +1 -1
- package/generated/models/w3-cverifiable-credential-proofs-inner.ts +1 -1
- package/generated/models/w3-cverifiable-credential.ts +1 -1
- package/generated/models/webhook-call-event.ts +2 -2
- package/package.json +1 -1
- package/generated/models/action-ref-dto.ts +0 -36
- package/generated/models/constraints-dto.ts +0 -36
- package/generated/models/create-presentation400-response.ts +0 -42
- package/generated/models/create-presentation403-response.ts +0 -42
- package/generated/models/create-presentation404-response.ts +0 -42
- package/generated/models/create400-response.ts +0 -42
- package/generated/models/generate400-response.ts +0 -42
- package/generated/models/get-credential404-response.ts +0 -42
- package/generated/models/get-evidence404-response.ts +0 -42
- package/generated/models/get-request-detail404-response.ts +0 -42
- package/generated/models/get-subject400-response.ts +0 -42
- package/generated/models/get-subject404-response.ts +0 -42
- package/generated/models/identity-payload.ts +0 -84
- package/generated/models/json-value.ts +0 -27
- package/generated/models/presentation-receipt-entity.ts +0 -42
- package/generated/models/resend-otp403-response.ts +0 -42
- package/generated/models/revoke-credential400-response.ts +0 -42
- package/generated/models/revoke-credential409-response.ts +0 -42
- package/generated/models/revoke-receipt-entity.ts +0 -42
- package/generated/models/schema-entity.ts +0 -57
- package/generated/models/schema-list-entity.ts +0 -39
- package/generated/models/schema-query.ts +0 -48
- package/generated/models/schema-response-entity.ts +0 -45
- package/generated/models/schema-version-detail-entity.ts +0 -72
- package/generated/models/schema-version-list-entity.ts +0 -39
- package/generated/models/schema-version-response-entity.ts +0 -54
- package/generated/models/schema-version-summary-entity.ts +0 -48
- package/generated/models/subject-contact-entity.ts +0 -42
- package/generated/models/verify-receipt-entity.ts +0 -42
- package/generated/models/w3-cverifiable-credential-credential-subject-mandate-constraint-constraint-schema.ts +0 -44
- package/generated/models/w3-cverifiable-credential-credential-subject-mandate-constraint.ts +0 -41
- package/generated/models/w3-cverifiable-credential-evidences-inner.ts +0 -42
- package/generated/models/w3-cverifiable-credential-valid-until.ts +0 -24
- package/generated/models/webhook-event-type-credential.ts +0 -30
- package/generated/models/webhook-event-type-identity.ts +0 -30
- package/generated/models/webhook-event-type-otpfailed.ts +0 -30
- package/generated/models/webhook-event-type-test.ts +0 -30
- package/generated/models/webhook-event-type.ts +0 -33
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Humanos API
|
|
5
|
-
* Humanos API
|
|
5
|
+
* Humanos App Backend API
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
*
|
|
@@ -220,7 +220,7 @@ export const CredentialsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
220
220
|
};
|
|
221
221
|
},
|
|
222
222
|
/**
|
|
223
|
-
* 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.
|
|
223
|
+
* 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. Supply the presentation exactly as returned by POST /credential/vp/:vcId — do not re-serialize or modify it. Pass it as either `presentation` (the signed VP object) or `presentationEncoded` (its base64 string); at least one is required (400 otherwise), and if both are sent `presentationEncoded` wins. `presentationEncoded` is the recommended field: being an opaque string it is immune to JSON re-serialization / formatting changes (e.g. some HTTP clients reformatting date strings) that would otherwise break the signature.
|
|
224
224
|
* @summary Verify VP
|
|
225
225
|
* @param {VerifyPresentationDto} verifyPresentationDto
|
|
226
226
|
* @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.
|
|
@@ -328,7 +328,7 @@ export const CredentialsApiFp = function(configuration?: Configuration) {
|
|
|
328
328
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
329
329
|
},
|
|
330
330
|
/**
|
|
331
|
-
* 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.
|
|
331
|
+
* 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. Supply the presentation exactly as returned by POST /credential/vp/:vcId — do not re-serialize or modify it. Pass it as either `presentation` (the signed VP object) or `presentationEncoded` (its base64 string); at least one is required (400 otherwise), and if both are sent `presentationEncoded` wins. `presentationEncoded` is the recommended field: being an opaque string it is immune to JSON re-serialization / formatting changes (e.g. some HTTP clients reformatting date strings) that would otherwise break the signature.
|
|
332
332
|
* @summary Verify VP
|
|
333
333
|
* @param {VerifyPresentationDto} verifyPresentationDto
|
|
334
334
|
* @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.
|
|
@@ -398,7 +398,7 @@ export const CredentialsApiFactory = function (configuration?: Configuration, ba
|
|
|
398
398
|
return localVarFp.revoke(credentialId, aPIVersion, revokeCredentialDto, options).then((request) => request(axios, basePath));
|
|
399
399
|
},
|
|
400
400
|
/**
|
|
401
|
-
* 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.
|
|
401
|
+
* 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. Supply the presentation exactly as returned by POST /credential/vp/:vcId — do not re-serialize or modify it. Pass it as either `presentation` (the signed VP object) or `presentationEncoded` (its base64 string); at least one is required (400 otherwise), and if both are sent `presentationEncoded` wins. `presentationEncoded` is the recommended field: being an opaque string it is immune to JSON re-serialization / formatting changes (e.g. some HTTP clients reformatting date strings) that would otherwise break the signature.
|
|
402
402
|
* @summary Verify VP
|
|
403
403
|
* @param {VerifyPresentationDto} verifyPresentationDto
|
|
404
404
|
* @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,7 +473,7 @@ export class CredentialsApi extends BaseAPI {
|
|
|
473
473
|
}
|
|
474
474
|
|
|
475
475
|
/**
|
|
476
|
-
* 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.
|
|
476
|
+
* 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. Supply the presentation exactly as returned by POST /credential/vp/:vcId — do not re-serialize or modify it. Pass it as either `presentation` (the signed VP object) or `presentationEncoded` (its base64 string); at least one is required (400 otherwise), and if both are sent `presentationEncoded` wins. `presentationEncoded` is the recommended field: being an opaque string it is immune to JSON re-serialization / formatting changes (e.g. some HTTP clients reformatting date strings) that would otherwise break the signature.
|
|
477
477
|
* @summary Verify VP
|
|
478
478
|
* @param {VerifyPresentationDto} verifyPresentationDto
|
|
479
479
|
* @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.
|
package/generated/api/didapi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Humanos API
|
|
5
|
-
* Humanos API
|
|
5
|
+
* Humanos App Backend API
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
*
|
|
@@ -169,16 +169,16 @@ export const RequestsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
169
169
|
* @param {number} [pageIndex] Page number
|
|
170
170
|
* @param {number} [pageSize] Number of items per page
|
|
171
171
|
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
172
|
+
* @param {string} [dateFrom] Filter from date (will be converted to start of day in UTC)
|
|
173
|
+
* @param {string} [dateTo] Filter to date (will be converted to end of day in UTC). Requires dateFrom.
|
|
172
174
|
* @param {string} [subject] Filter by subject (nested object with contact, id, or internalId).
|
|
173
175
|
* @param {string} [internalId] Identifier to help you identify the request in your own system. We recommend using a unique value.
|
|
174
176
|
* @param {Array<ListSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
|
|
175
|
-
* @param {string} [dateFrom] Filter from date (will be converted to start of day)
|
|
176
|
-
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
177
177
|
* @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.
|
|
178
178
|
* @param {*} [options] Override http request option.
|
|
179
179
|
* @throws {RequiredError}
|
|
180
180
|
*/
|
|
181
|
-
list: async (pageIndex?: number, pageSize?: number, search?: string,
|
|
181
|
+
list: async (pageIndex?: number, pageSize?: number, search?: string, dateFrom?: string, dateTo?: string, subject?: string, internalId?: string, securityLevel?: Array<ListSecurityLevelEnum>, aPIVersion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
182
182
|
const localVarPath = `/request`;
|
|
183
183
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
184
184
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -203,18 +203,6 @@ export const RequestsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
203
203
|
localVarQueryParameter['search'] = search;
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
if (subject !== undefined) {
|
|
207
|
-
localVarQueryParameter['subject'] = subject;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
if (internalId !== undefined) {
|
|
211
|
-
localVarQueryParameter['internalId'] = internalId;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
if (securityLevel) {
|
|
215
|
-
localVarQueryParameter['securityLevel'] = securityLevel;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
206
|
if (dateFrom !== undefined) {
|
|
219
207
|
localVarQueryParameter['dateFrom'] = (dateFrom as any instanceof Date) ?
|
|
220
208
|
(dateFrom as any).toISOString() :
|
|
@@ -227,6 +215,18 @@ export const RequestsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
227
215
|
dateTo;
|
|
228
216
|
}
|
|
229
217
|
|
|
218
|
+
if (subject !== undefined) {
|
|
219
|
+
localVarQueryParameter['subject'] = subject;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
if (internalId !== undefined) {
|
|
223
|
+
localVarQueryParameter['internalId'] = internalId;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
if (securityLevel) {
|
|
227
|
+
localVarQueryParameter['securityLevel'] = securityLevel;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
230
|
|
|
231
231
|
|
|
232
232
|
if (aPIVersion != null) {
|
|
@@ -242,7 +242,7 @@ export const RequestsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
242
242
|
};
|
|
243
243
|
},
|
|
244
244
|
/**
|
|
245
|
-
* Resend a One-Time Password (OTP) to a subject for credential approval, via email or SMS
|
|
245
|
+
* Resend a One-Time Password (OTP) to a subject for credential approval, via email or SMS. 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
|
|
246
246
|
* @summary Resend OTP
|
|
247
247
|
* @param {string} requestId Unique identifier of the request.
|
|
248
248
|
* @param {string} [contact] Verified contact value (email or phone)
|
|
@@ -357,23 +357,23 @@ export const RequestsApiFp = function(configuration?: Configuration) {
|
|
|
357
357
|
* @param {number} [pageIndex] Page number
|
|
358
358
|
* @param {number} [pageSize] Number of items per page
|
|
359
359
|
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
360
|
+
* @param {string} [dateFrom] Filter from date (will be converted to start of day in UTC)
|
|
361
|
+
* @param {string} [dateTo] Filter to date (will be converted to end of day in UTC). Requires dateFrom.
|
|
360
362
|
* @param {string} [subject] Filter by subject (nested object with contact, id, or internalId).
|
|
361
363
|
* @param {string} [internalId] Identifier to help you identify the request in your own system. We recommend using a unique value.
|
|
362
364
|
* @param {Array<ListSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
|
|
363
|
-
* @param {string} [dateFrom] Filter from date (will be converted to start of day)
|
|
364
|
-
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
365
365
|
* @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.
|
|
366
366
|
* @param {*} [options] Override http request option.
|
|
367
367
|
* @throws {RequiredError}
|
|
368
368
|
*/
|
|
369
|
-
async list(pageIndex?: number, pageSize?: number, search?: string,
|
|
370
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.list(pageIndex, pageSize, search,
|
|
369
|
+
async list(pageIndex?: number, pageSize?: number, search?: string, dateFrom?: string, dateTo?: string, subject?: string, internalId?: string, securityLevel?: Array<ListSecurityLevelEnum>, aPIVersion?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestsEntity>> {
|
|
370
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.list(pageIndex, pageSize, search, dateFrom, dateTo, subject, internalId, securityLevel, aPIVersion, options);
|
|
371
371
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
372
372
|
const localVarOperationServerBasePath = operationServerMap['RequestsApi.list']?.[localVarOperationServerIndex]?.url;
|
|
373
373
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
374
374
|
},
|
|
375
375
|
/**
|
|
376
|
-
* Resend a One-Time Password (OTP) to a subject for credential approval, via email or SMS
|
|
376
|
+
* Resend a One-Time Password (OTP) to a subject for credential approval, via email or SMS. 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
|
|
377
377
|
* @summary Resend OTP
|
|
378
378
|
* @param {string} requestId Unique identifier of the request.
|
|
379
379
|
* @param {string} [contact] Verified contact value (email or phone)
|
|
@@ -440,20 +440,20 @@ export const RequestsApiFactory = function (configuration?: Configuration, baseP
|
|
|
440
440
|
* @param {number} [pageIndex] Page number
|
|
441
441
|
* @param {number} [pageSize] Number of items per page
|
|
442
442
|
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
443
|
+
* @param {string} [dateFrom] Filter from date (will be converted to start of day in UTC)
|
|
444
|
+
* @param {string} [dateTo] Filter to date (will be converted to end of day in UTC). Requires dateFrom.
|
|
443
445
|
* @param {string} [subject] Filter by subject (nested object with contact, id, or internalId).
|
|
444
446
|
* @param {string} [internalId] Identifier to help you identify the request in your own system. We recommend using a unique value.
|
|
445
447
|
* @param {Array<ListSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
|
|
446
|
-
* @param {string} [dateFrom] Filter from date (will be converted to start of day)
|
|
447
|
-
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
448
448
|
* @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.
|
|
449
449
|
* @param {*} [options] Override http request option.
|
|
450
450
|
* @throws {RequiredError}
|
|
451
451
|
*/
|
|
452
|
-
list(pageIndex?: number, pageSize?: number, search?: string,
|
|
453
|
-
return localVarFp.list(pageIndex, pageSize, search,
|
|
452
|
+
list(pageIndex?: number, pageSize?: number, search?: string, dateFrom?: string, dateTo?: string, subject?: string, internalId?: string, securityLevel?: Array<ListSecurityLevelEnum>, aPIVersion?: string, options?: RawAxiosRequestConfig): AxiosPromise<RequestsEntity> {
|
|
453
|
+
return localVarFp.list(pageIndex, pageSize, search, dateFrom, dateTo, subject, internalId, securityLevel, aPIVersion, options).then((request) => request(axios, basePath));
|
|
454
454
|
},
|
|
455
455
|
/**
|
|
456
|
-
* Resend a One-Time Password (OTP) to a subject for credential approval, via email or SMS
|
|
456
|
+
* Resend a One-Time Password (OTP) to a subject for credential approval, via email or SMS. 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
|
|
457
457
|
* @summary Resend OTP
|
|
458
458
|
* @param {string} requestId Unique identifier of the request.
|
|
459
459
|
* @param {string} [contact] Verified contact value (email or phone)
|
|
@@ -523,22 +523,22 @@ export class RequestsApi extends BaseAPI {
|
|
|
523
523
|
* @param {number} [pageIndex] Page number
|
|
524
524
|
* @param {number} [pageSize] Number of items per page
|
|
525
525
|
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
526
|
+
* @param {string} [dateFrom] Filter from date (will be converted to start of day in UTC)
|
|
527
|
+
* @param {string} [dateTo] Filter to date (will be converted to end of day in UTC). Requires dateFrom.
|
|
526
528
|
* @param {string} [subject] Filter by subject (nested object with contact, id, or internalId).
|
|
527
529
|
* @param {string} [internalId] Identifier to help you identify the request in your own system. We recommend using a unique value.
|
|
528
530
|
* @param {Array<ListSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
|
|
529
|
-
* @param {string} [dateFrom] Filter from date (will be converted to start of day)
|
|
530
|
-
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
531
531
|
* @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.
|
|
532
532
|
* @param {*} [options] Override http request option.
|
|
533
533
|
* @throws {RequiredError}
|
|
534
534
|
* @memberof RequestsApi
|
|
535
535
|
*/
|
|
536
|
-
public list(pageIndex?: number, pageSize?: number, search?: string,
|
|
537
|
-
return RequestsApiFp(this.configuration).list(pageIndex, pageSize, search,
|
|
536
|
+
public list(pageIndex?: number, pageSize?: number, search?: string, dateFrom?: string, dateTo?: string, subject?: string, internalId?: string, securityLevel?: Array<ListSecurityLevelEnum>, aPIVersion?: string, options?: RawAxiosRequestConfig) {
|
|
537
|
+
return RequestsApiFp(this.configuration).list(pageIndex, pageSize, search, dateFrom, dateTo, subject, internalId, securityLevel, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
538
538
|
}
|
|
539
539
|
|
|
540
540
|
/**
|
|
541
|
-
* Resend a One-Time Password (OTP) to a subject for credential approval, via email or SMS
|
|
541
|
+
* Resend a One-Time Password (OTP) to a subject for credential approval, via email or SMS. 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
|
|
542
542
|
* @summary Resend OTP
|
|
543
543
|
* @param {string} requestId Unique identifier of the request.
|
|
544
544
|
* @param {string} [contact] Verified contact value (email or phone)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Humanos API
|
|
5
|
-
* Humanos API
|
|
5
|
+
* Humanos App Backend API
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
*
|
|
@@ -116,7 +116,7 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
116
116
|
};
|
|
117
117
|
},
|
|
118
118
|
/**
|
|
119
|
-
* Fired when an OTP delivery to the
|
|
119
|
+
* Fired when an OTP **SMS** could not be delivered: every eligible SMS provider was tried (synchronously or via carrier delivery reports) and none succeeded. Email OTP failures do not emit this event. Carrier delivery reports are asynchronous and occasionally corrected to \"delivered\" afterwards, so treat this event as *Humanos stopped retrying*, not as a guarantee the SMS never arrived. The safe reaction is to `PATCH` the `otp.resendEndpoint` URL exactly as delivered — a resend issues a fresh code and invalidates the old one, so it is harmless even if the original message did arrive late. **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.
|
|
120
120
|
* @summary OTP Failed Event
|
|
121
121
|
* @param {OtpFailedEvent} otpFailedEvent
|
|
122
122
|
* @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.
|
|
@@ -234,7 +234,7 @@ export const WebhooksApiFp = function(configuration?: Configuration) {
|
|
|
234
234
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
235
235
|
},
|
|
236
236
|
/**
|
|
237
|
-
* Fired when an OTP delivery to the
|
|
237
|
+
* Fired when an OTP **SMS** could not be delivered: every eligible SMS provider was tried (synchronously or via carrier delivery reports) and none succeeded. Email OTP failures do not emit this event. Carrier delivery reports are asynchronous and occasionally corrected to \"delivered\" afterwards, so treat this event as *Humanos stopped retrying*, not as a guarantee the SMS never arrived. The safe reaction is to `PATCH` the `otp.resendEndpoint` URL exactly as delivered — a resend issues a fresh code and invalidates the old one, so it is harmless even if the original message did arrive late. **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.
|
|
238
238
|
* @summary OTP Failed Event
|
|
239
239
|
* @param {OtpFailedEvent} otpFailedEvent
|
|
240
240
|
* @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.
|
|
@@ -294,7 +294,7 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP
|
|
|
294
294
|
return localVarFp.identity(identityEvent, aPIVersion, options).then((request) => request(axios, basePath));
|
|
295
295
|
},
|
|
296
296
|
/**
|
|
297
|
-
* Fired when an OTP delivery to the
|
|
297
|
+
* Fired when an OTP **SMS** could not be delivered: every eligible SMS provider was tried (synchronously or via carrier delivery reports) and none succeeded. Email OTP failures do not emit this event. Carrier delivery reports are asynchronous and occasionally corrected to \"delivered\" afterwards, so treat this event as *Humanos stopped retrying*, not as a guarantee the SMS never arrived. The safe reaction is to `PATCH` the `otp.resendEndpoint` URL exactly as delivered — a resend issues a fresh code and invalidates the old one, so it is harmless even if the original message did arrive late. **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.
|
|
298
298
|
* @summary OTP Failed Event
|
|
299
299
|
* @param {OtpFailedEvent} otpFailedEvent
|
|
300
300
|
* @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.
|
|
@@ -352,7 +352,7 @@ export class WebhooksApi extends BaseAPI {
|
|
|
352
352
|
}
|
|
353
353
|
|
|
354
354
|
/**
|
|
355
|
-
* Fired when an OTP delivery to the
|
|
355
|
+
* Fired when an OTP **SMS** could not be delivered: every eligible SMS provider was tried (synchronously or via carrier delivery reports) and none succeeded. Email OTP failures do not emit this event. Carrier delivery reports are asynchronous and occasionally corrected to \"delivered\" afterwards, so treat this event as *Humanos stopped retrying*, not as a guarantee the SMS never arrived. The safe reaction is to `PATCH` the `otp.resendEndpoint` URL exactly as delivered — a resend issues a fresh code and invalidates the old one, so it is harmless even if the original message did arrive late. **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.
|
|
356
356
|
* @summary OTP Failed Event
|
|
357
357
|
* @param {OtpFailedEvent} otpFailedEvent
|
|
358
358
|
* @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.
|
package/generated/api.ts
CHANGED
package/generated/base.ts
CHANGED
package/generated/common.ts
CHANGED
package/generated/index.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Humanos API
|
|
5
|
-
* Humanos API
|
|
5
|
+
* Humanos App Backend API
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
*
|
|
@@ -32,6 +32,18 @@ export interface ActivityQuery {
|
|
|
32
32
|
* @memberof ActivityQuery
|
|
33
33
|
*/
|
|
34
34
|
'pageSize'?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Filter from date (will be converted to start of day in UTC)
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ActivityQuery
|
|
39
|
+
*/
|
|
40
|
+
'dateFrom'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Filter to date (will be converted to end of day in UTC). Requires dateFrom.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof ActivityQuery
|
|
45
|
+
*/
|
|
46
|
+
'dateTo'?: string;
|
|
35
47
|
/**
|
|
36
48
|
* 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.
|
|
37
49
|
* @type {Array<string>}
|
|
@@ -62,18 +74,6 @@ export interface ActivityQuery {
|
|
|
62
74
|
* @memberof ActivityQuery
|
|
63
75
|
*/
|
|
64
76
|
'subjectDid'?: string;
|
|
65
|
-
/**
|
|
66
|
-
* Filter from date (will be converted to start of day).
|
|
67
|
-
* @type {string}
|
|
68
|
-
* @memberof ActivityQuery
|
|
69
|
-
*/
|
|
70
|
-
'dateFrom'?: string;
|
|
71
|
-
/**
|
|
72
|
-
* Filter to date (will be converted to end of day). Requires dateFrom.
|
|
73
|
-
* @type {string}
|
|
74
|
-
* @memberof ActivityQuery
|
|
75
|
-
*/
|
|
76
|
-
'dateTo'?: string;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
export const ActivityQueryTypeEnum = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Humanos API
|
|
5
|
-
* Humanos API
|
|
5
|
+
* Humanos App Backend API
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
*
|
|
@@ -18,9 +18,10 @@
|
|
|
18
18
|
import type { CONSENT } from './consent';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* @type
|
|
21
|
+
* @type CredentialDtoData
|
|
22
|
+
* Data associated with the credential
|
|
22
23
|
* @export
|
|
23
24
|
*/
|
|
24
|
-
export type
|
|
25
|
+
export type CredentialDtoData = CONSENT | string;
|
|
25
26
|
|
|
26
27
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Humanos API
|
|
5
|
-
* Humanos API
|
|
5
|
+
* Humanos App Backend API
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
*
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
import type { ActionDto } from './action-dto';
|
|
19
19
|
// May contain unused imports in some cases
|
|
20
20
|
// @ts-ignore
|
|
21
|
-
import type {
|
|
21
|
+
import type { CredentialDtoData } from './credential-dto-data';
|
|
22
22
|
// May contain unused imports in some cases
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import type { CredentialPlacementDto } from './credential-placement-dto';
|
|
@@ -72,11 +72,11 @@ export interface CredentialDto {
|
|
|
72
72
|
*/
|
|
73
73
|
'internalId'?: string;
|
|
74
74
|
/**
|
|
75
|
-
*
|
|
76
|
-
* @type {
|
|
75
|
+
*
|
|
76
|
+
* @type {CredentialDtoData}
|
|
77
77
|
* @memberof CredentialDto
|
|
78
78
|
*/
|
|
79
|
-
'data'?:
|
|
79
|
+
'data'?: CredentialDtoData;
|
|
80
80
|
/**
|
|
81
81
|
* Predefined signature placements for document credentials
|
|
82
82
|
* @type {Array<CredentialPlacementDto>}
|