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
package/dist/index.mjs
CHANGED
|
@@ -283,18 +283,18 @@ var ActivityApiAxiosParamCreator = function(configuration) {
|
|
|
283
283
|
* @summary List Activity Events
|
|
284
284
|
* @param {number} [pageIndex] Page number
|
|
285
285
|
* @param {number} [pageSize] Number of items per page
|
|
286
|
+
* @param {string} [dateFrom] Filter from date (will be converted to start of day in UTC)
|
|
287
|
+
* @param {string} [dateTo] Filter to date (will be converted to end of day in UTC). Requires dateFrom.
|
|
286
288
|
* @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.
|
|
287
289
|
* @param {string} [entityType] Filter by the broad entity class the event was emitted against (e.g. \"credential\", \"request\", \"veriff\").
|
|
288
290
|
* @param {string} [entityId] Filter by a specific entity id (must be a valid MongoDB ObjectId).
|
|
289
291
|
* @param {string} [actorDid] Filter by the DID of the actor that triggered the event.
|
|
290
292
|
* @param {string} [subjectDid] Filter by the DID of the subject affected by the event.
|
|
291
|
-
* @param {string} [dateFrom] Filter from date (will be converted to start of day).
|
|
292
|
-
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
293
293
|
* @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
294
|
* @param {*} [options] Override http request option.
|
|
295
295
|
* @throws {RequiredError}
|
|
296
296
|
*/
|
|
297
|
-
list: async (pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid,
|
|
297
|
+
list: async (pageIndex, pageSize, dateFrom, dateTo, type, entityType, entityId, actorDid, subjectDid, aPIVersion, options = {}) => {
|
|
298
298
|
const localVarPath = `/activity`;
|
|
299
299
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
300
300
|
let baseOptions;
|
|
@@ -310,6 +310,12 @@ var ActivityApiAxiosParamCreator = function(configuration) {
|
|
|
310
310
|
if (pageSize !== void 0) {
|
|
311
311
|
localVarQueryParameter["pageSize"] = pageSize;
|
|
312
312
|
}
|
|
313
|
+
if (dateFrom !== void 0) {
|
|
314
|
+
localVarQueryParameter["dateFrom"] = dateFrom instanceof Date ? dateFrom.toISOString() : dateFrom;
|
|
315
|
+
}
|
|
316
|
+
if (dateTo !== void 0) {
|
|
317
|
+
localVarQueryParameter["dateTo"] = dateTo instanceof Date ? dateTo.toISOString() : dateTo;
|
|
318
|
+
}
|
|
313
319
|
if (type) {
|
|
314
320
|
localVarQueryParameter["type"] = type;
|
|
315
321
|
}
|
|
@@ -325,12 +331,6 @@ var ActivityApiAxiosParamCreator = function(configuration) {
|
|
|
325
331
|
if (subjectDid !== void 0) {
|
|
326
332
|
localVarQueryParameter["subjectDid"] = subjectDid;
|
|
327
333
|
}
|
|
328
|
-
if (dateFrom !== void 0) {
|
|
329
|
-
localVarQueryParameter["dateFrom"] = dateFrom instanceof Date ? dateFrom.toISOString() : dateFrom;
|
|
330
|
-
}
|
|
331
|
-
if (dateTo !== void 0) {
|
|
332
|
-
localVarQueryParameter["dateTo"] = dateTo instanceof Date ? dateTo.toISOString() : dateTo;
|
|
333
|
-
}
|
|
334
334
|
if (aPIVersion != null) {
|
|
335
335
|
localVarHeaderParameter["API-Version"] = String(aPIVersion);
|
|
336
336
|
}
|
|
@@ -352,19 +352,19 @@ var ActivityApiFp = function(configuration) {
|
|
|
352
352
|
* @summary List Activity Events
|
|
353
353
|
* @param {number} [pageIndex] Page number
|
|
354
354
|
* @param {number} [pageSize] Number of items per page
|
|
355
|
+
* @param {string} [dateFrom] Filter from date (will be converted to start of day in UTC)
|
|
356
|
+
* @param {string} [dateTo] Filter to date (will be converted to end of day in UTC). Requires dateFrom.
|
|
355
357
|
* @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.
|
|
356
358
|
* @param {string} [entityType] Filter by the broad entity class the event was emitted against (e.g. \"credential\", \"request\", \"veriff\").
|
|
357
359
|
* @param {string} [entityId] Filter by a specific entity id (must be a valid MongoDB ObjectId).
|
|
358
360
|
* @param {string} [actorDid] Filter by the DID of the actor that triggered the event.
|
|
359
361
|
* @param {string} [subjectDid] Filter by the DID of the subject affected by the event.
|
|
360
|
-
* @param {string} [dateFrom] Filter from date (will be converted to start of day).
|
|
361
|
-
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
362
362
|
* @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.
|
|
363
363
|
* @param {*} [options] Override http request option.
|
|
364
364
|
* @throws {RequiredError}
|
|
365
365
|
*/
|
|
366
|
-
async list(pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid,
|
|
367
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.list(pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid,
|
|
366
|
+
async list(pageIndex, pageSize, dateFrom, dateTo, type, entityType, entityId, actorDid, subjectDid, aPIVersion, options) {
|
|
367
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.list(pageIndex, pageSize, dateFrom, dateTo, type, entityType, entityId, actorDid, subjectDid, aPIVersion, options);
|
|
368
368
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
369
369
|
const localVarOperationServerBasePath = operationServerMap["ActivityApi.list"]?.[localVarOperationServerIndex]?.url;
|
|
370
370
|
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
@@ -379,19 +379,19 @@ var ActivityApiFactory = function(configuration, basePath, axios2) {
|
|
|
379
379
|
* @summary List Activity Events
|
|
380
380
|
* @param {number} [pageIndex] Page number
|
|
381
381
|
* @param {number} [pageSize] Number of items per page
|
|
382
|
+
* @param {string} [dateFrom] Filter from date (will be converted to start of day in UTC)
|
|
383
|
+
* @param {string} [dateTo] Filter to date (will be converted to end of day in UTC). Requires dateFrom.
|
|
382
384
|
* @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.
|
|
383
385
|
* @param {string} [entityType] Filter by the broad entity class the event was emitted against (e.g. \"credential\", \"request\", \"veriff\").
|
|
384
386
|
* @param {string} [entityId] Filter by a specific entity id (must be a valid MongoDB ObjectId).
|
|
385
387
|
* @param {string} [actorDid] Filter by the DID of the actor that triggered the event.
|
|
386
388
|
* @param {string} [subjectDid] Filter by the DID of the subject affected by the event.
|
|
387
|
-
* @param {string} [dateFrom] Filter from date (will be converted to start of day).
|
|
388
|
-
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
389
389
|
* @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.
|
|
390
390
|
* @param {*} [options] Override http request option.
|
|
391
391
|
* @throws {RequiredError}
|
|
392
392
|
*/
|
|
393
|
-
list(pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid,
|
|
394
|
-
return localVarFp.list(pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid,
|
|
393
|
+
list(pageIndex, pageSize, dateFrom, dateTo, type, entityType, entityId, actorDid, subjectDid, aPIVersion, options) {
|
|
394
|
+
return localVarFp.list(pageIndex, pageSize, dateFrom, dateTo, type, entityType, entityId, actorDid, subjectDid, aPIVersion, options).then((request) => request(axios2, basePath));
|
|
395
395
|
}
|
|
396
396
|
};
|
|
397
397
|
};
|
|
@@ -401,20 +401,20 @@ var ActivityApi = class extends BaseAPI {
|
|
|
401
401
|
* @summary List Activity Events
|
|
402
402
|
* @param {number} [pageIndex] Page number
|
|
403
403
|
* @param {number} [pageSize] Number of items per page
|
|
404
|
+
* @param {string} [dateFrom] Filter from date (will be converted to start of day in UTC)
|
|
405
|
+
* @param {string} [dateTo] Filter to date (will be converted to end of day in UTC). Requires dateFrom.
|
|
404
406
|
* @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.
|
|
405
407
|
* @param {string} [entityType] Filter by the broad entity class the event was emitted against (e.g. \"credential\", \"request\", \"veriff\").
|
|
406
408
|
* @param {string} [entityId] Filter by a specific entity id (must be a valid MongoDB ObjectId).
|
|
407
409
|
* @param {string} [actorDid] Filter by the DID of the actor that triggered the event.
|
|
408
410
|
* @param {string} [subjectDid] Filter by the DID of the subject affected by the event.
|
|
409
|
-
* @param {string} [dateFrom] Filter from date (will be converted to start of day).
|
|
410
|
-
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
411
411
|
* @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.
|
|
412
412
|
* @param {*} [options] Override http request option.
|
|
413
413
|
* @throws {RequiredError}
|
|
414
414
|
* @memberof ActivityApi
|
|
415
415
|
*/
|
|
416
|
-
list(pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid,
|
|
417
|
-
return ActivityApiFp(this.configuration).list(pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid,
|
|
416
|
+
list(pageIndex, pageSize, dateFrom, dateTo, type, entityType, entityId, actorDid, subjectDid, aPIVersion, options) {
|
|
417
|
+
return ActivityApiFp(this.configuration).list(pageIndex, pageSize, dateFrom, dateTo, type, entityType, entityId, actorDid, subjectDid, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
418
418
|
}
|
|
419
419
|
};
|
|
420
420
|
var ListTypeEnum = {
|
|
@@ -663,7 +663,6 @@ var ListTypesEnum = {
|
|
|
663
663
|
Form: "FORM",
|
|
664
664
|
Document: "DOCUMENT",
|
|
665
665
|
Json: "JSON",
|
|
666
|
-
Payment: "PAYMENT",
|
|
667
666
|
Policy: "POLICY"
|
|
668
667
|
};
|
|
669
668
|
var WorkflowsTypesEnum = {
|
|
@@ -671,7 +670,6 @@ var WorkflowsTypesEnum = {
|
|
|
671
670
|
Form: "FORM",
|
|
672
671
|
Document: "DOCUMENT",
|
|
673
672
|
Json: "JSON",
|
|
674
|
-
Payment: "PAYMENT",
|
|
675
673
|
Policy: "POLICY"
|
|
676
674
|
};
|
|
677
675
|
|
|
@@ -807,7 +805,7 @@ var CredentialsApiAxiosParamCreator = function(configuration) {
|
|
|
807
805
|
};
|
|
808
806
|
},
|
|
809
807
|
/**
|
|
810
|
-
* 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.
|
|
808
|
+
* 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.
|
|
811
809
|
* @summary Verify VP
|
|
812
810
|
* @param {VerifyPresentationDto} verifyPresentationDto
|
|
813
811
|
* @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.
|
|
@@ -902,7 +900,7 @@ var CredentialsApiFp = function(configuration) {
|
|
|
902
900
|
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios5, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
903
901
|
},
|
|
904
902
|
/**
|
|
905
|
-
* 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.
|
|
903
|
+
* 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.
|
|
906
904
|
* @summary Verify VP
|
|
907
905
|
* @param {VerifyPresentationDto} verifyPresentationDto
|
|
908
906
|
* @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.
|
|
@@ -967,7 +965,7 @@ var CredentialsApiFactory = function(configuration, basePath, axios2) {
|
|
|
967
965
|
return localVarFp.revoke(credentialId, aPIVersion, revokeCredentialDto, options).then((request) => request(axios2, basePath));
|
|
968
966
|
},
|
|
969
967
|
/**
|
|
970
|
-
* 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.
|
|
968
|
+
* 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.
|
|
971
969
|
* @summary Verify VP
|
|
972
970
|
* @param {VerifyPresentationDto} verifyPresentationDto
|
|
973
971
|
* @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.
|
|
@@ -1031,7 +1029,7 @@ var CredentialsApi = class extends BaseAPI {
|
|
|
1031
1029
|
return CredentialsApiFp(this.configuration).revoke(credentialId, aPIVersion, revokeCredentialDto, options).then((request) => request(this.axios, this.basePath));
|
|
1032
1030
|
}
|
|
1033
1031
|
/**
|
|
1034
|
-
* 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.
|
|
1032
|
+
* 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.
|
|
1035
1033
|
* @summary Verify VP
|
|
1036
1034
|
* @param {VerifyPresentationDto} verifyPresentationDto
|
|
1037
1035
|
* @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.
|
|
@@ -1236,16 +1234,16 @@ var RequestsApiAxiosParamCreator = function(configuration) {
|
|
|
1236
1234
|
* @param {number} [pageIndex] Page number
|
|
1237
1235
|
* @param {number} [pageSize] Number of items per page
|
|
1238
1236
|
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
1237
|
+
* @param {string} [dateFrom] Filter from date (will be converted to start of day in UTC)
|
|
1238
|
+
* @param {string} [dateTo] Filter to date (will be converted to end of day in UTC). Requires dateFrom.
|
|
1239
1239
|
* @param {string} [subject] Filter by subject (nested object with contact, id, or internalId).
|
|
1240
1240
|
* @param {string} [internalId] Identifier to help you identify the request in your own system. We recommend using a unique value.
|
|
1241
1241
|
* @param {Array<ListSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
|
|
1242
|
-
* @param {string} [dateFrom] Filter from date (will be converted to start of day)
|
|
1243
|
-
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
1244
1242
|
* @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.
|
|
1245
1243
|
* @param {*} [options] Override http request option.
|
|
1246
1244
|
* @throws {RequiredError}
|
|
1247
1245
|
*/
|
|
1248
|
-
list: async (pageIndex, pageSize, search,
|
|
1246
|
+
list: async (pageIndex, pageSize, search, dateFrom, dateTo, subject, internalId, securityLevel, aPIVersion, options = {}) => {
|
|
1249
1247
|
const localVarPath = `/request`;
|
|
1250
1248
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1251
1249
|
let baseOptions;
|
|
@@ -1264,6 +1262,12 @@ var RequestsApiAxiosParamCreator = function(configuration) {
|
|
|
1264
1262
|
if (search !== void 0) {
|
|
1265
1263
|
localVarQueryParameter["search"] = search;
|
|
1266
1264
|
}
|
|
1265
|
+
if (dateFrom !== void 0) {
|
|
1266
|
+
localVarQueryParameter["dateFrom"] = dateFrom instanceof Date ? dateFrom.toISOString() : dateFrom;
|
|
1267
|
+
}
|
|
1268
|
+
if (dateTo !== void 0) {
|
|
1269
|
+
localVarQueryParameter["dateTo"] = dateTo instanceof Date ? dateTo.toISOString() : dateTo;
|
|
1270
|
+
}
|
|
1267
1271
|
if (subject !== void 0) {
|
|
1268
1272
|
localVarQueryParameter["subject"] = subject;
|
|
1269
1273
|
}
|
|
@@ -1273,12 +1277,6 @@ var RequestsApiAxiosParamCreator = function(configuration) {
|
|
|
1273
1277
|
if (securityLevel) {
|
|
1274
1278
|
localVarQueryParameter["securityLevel"] = securityLevel;
|
|
1275
1279
|
}
|
|
1276
|
-
if (dateFrom !== void 0) {
|
|
1277
|
-
localVarQueryParameter["dateFrom"] = dateFrom instanceof Date ? dateFrom.toISOString() : dateFrom;
|
|
1278
|
-
}
|
|
1279
|
-
if (dateTo !== void 0) {
|
|
1280
|
-
localVarQueryParameter["dateTo"] = dateTo instanceof Date ? dateTo.toISOString() : dateTo;
|
|
1281
|
-
}
|
|
1282
1280
|
if (aPIVersion != null) {
|
|
1283
1281
|
localVarHeaderParameter["API-Version"] = String(aPIVersion);
|
|
1284
1282
|
}
|
|
@@ -1291,7 +1289,7 @@ var RequestsApiAxiosParamCreator = function(configuration) {
|
|
|
1291
1289
|
};
|
|
1292
1290
|
},
|
|
1293
1291
|
/**
|
|
1294
|
-
* Resend a One-Time Password (OTP) to a subject for credential approval, via email or SMS
|
|
1292
|
+
* 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
|
|
1295
1293
|
* @summary Resend OTP
|
|
1296
1294
|
* @param {string} requestId Unique identifier of the request.
|
|
1297
1295
|
* @param {string} [contact] Verified contact value (email or phone)
|
|
@@ -1390,23 +1388,23 @@ var RequestsApiFp = function(configuration) {
|
|
|
1390
1388
|
* @param {number} [pageIndex] Page number
|
|
1391
1389
|
* @param {number} [pageSize] Number of items per page
|
|
1392
1390
|
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
1391
|
+
* @param {string} [dateFrom] Filter from date (will be converted to start of day in UTC)
|
|
1392
|
+
* @param {string} [dateTo] Filter to date (will be converted to end of day in UTC). Requires dateFrom.
|
|
1393
1393
|
* @param {string} [subject] Filter by subject (nested object with contact, id, or internalId).
|
|
1394
1394
|
* @param {string} [internalId] Identifier to help you identify the request in your own system. We recommend using a unique value.
|
|
1395
1395
|
* @param {Array<ListSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
|
|
1396
|
-
* @param {string} [dateFrom] Filter from date (will be converted to start of day)
|
|
1397
|
-
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
1398
1396
|
* @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.
|
|
1399
1397
|
* @param {*} [options] Override http request option.
|
|
1400
1398
|
* @throws {RequiredError}
|
|
1401
1399
|
*/
|
|
1402
|
-
async list(pageIndex, pageSize, search,
|
|
1403
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.list(pageIndex, pageSize, search,
|
|
1400
|
+
async list(pageIndex, pageSize, search, dateFrom, dateTo, subject, internalId, securityLevel, aPIVersion, options) {
|
|
1401
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.list(pageIndex, pageSize, search, dateFrom, dateTo, subject, internalId, securityLevel, aPIVersion, options);
|
|
1404
1402
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1405
1403
|
const localVarOperationServerBasePath = operationServerMap["RequestsApi.list"]?.[localVarOperationServerIndex]?.url;
|
|
1406
1404
|
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios7, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1407
1405
|
},
|
|
1408
1406
|
/**
|
|
1409
|
-
* Resend a One-Time Password (OTP) to a subject for credential approval, via email or SMS
|
|
1407
|
+
* 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
|
|
1410
1408
|
* @summary Resend OTP
|
|
1411
1409
|
* @param {string} requestId Unique identifier of the request.
|
|
1412
1410
|
* @param {string} [contact] Verified contact value (email or phone)
|
|
@@ -1468,20 +1466,20 @@ var RequestsApiFactory = function(configuration, basePath, axios2) {
|
|
|
1468
1466
|
* @param {number} [pageIndex] Page number
|
|
1469
1467
|
* @param {number} [pageSize] Number of items per page
|
|
1470
1468
|
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
1469
|
+
* @param {string} [dateFrom] Filter from date (will be converted to start of day in UTC)
|
|
1470
|
+
* @param {string} [dateTo] Filter to date (will be converted to end of day in UTC). Requires dateFrom.
|
|
1471
1471
|
* @param {string} [subject] Filter by subject (nested object with contact, id, or internalId).
|
|
1472
1472
|
* @param {string} [internalId] Identifier to help you identify the request in your own system. We recommend using a unique value.
|
|
1473
1473
|
* @param {Array<ListSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
|
|
1474
|
-
* @param {string} [dateFrom] Filter from date (will be converted to start of day)
|
|
1475
|
-
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
1476
1474
|
* @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.
|
|
1477
1475
|
* @param {*} [options] Override http request option.
|
|
1478
1476
|
* @throws {RequiredError}
|
|
1479
1477
|
*/
|
|
1480
|
-
list(pageIndex, pageSize, search,
|
|
1481
|
-
return localVarFp.list(pageIndex, pageSize, search,
|
|
1478
|
+
list(pageIndex, pageSize, search, dateFrom, dateTo, subject, internalId, securityLevel, aPIVersion, options) {
|
|
1479
|
+
return localVarFp.list(pageIndex, pageSize, search, dateFrom, dateTo, subject, internalId, securityLevel, aPIVersion, options).then((request) => request(axios2, basePath));
|
|
1482
1480
|
},
|
|
1483
1481
|
/**
|
|
1484
|
-
* Resend a One-Time Password (OTP) to a subject for credential approval, via email or SMS
|
|
1482
|
+
* 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
|
|
1485
1483
|
* @summary Resend OTP
|
|
1486
1484
|
* @param {string} requestId Unique identifier of the request.
|
|
1487
1485
|
* @param {string} [contact] Verified contact value (email or phone)
|
|
@@ -1541,21 +1539,21 @@ var RequestsApi = class extends BaseAPI {
|
|
|
1541
1539
|
* @param {number} [pageIndex] Page number
|
|
1542
1540
|
* @param {number} [pageSize] Number of items per page
|
|
1543
1541
|
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
1542
|
+
* @param {string} [dateFrom] Filter from date (will be converted to start of day in UTC)
|
|
1543
|
+
* @param {string} [dateTo] Filter to date (will be converted to end of day in UTC). Requires dateFrom.
|
|
1544
1544
|
* @param {string} [subject] Filter by subject (nested object with contact, id, or internalId).
|
|
1545
1545
|
* @param {string} [internalId] Identifier to help you identify the request in your own system. We recommend using a unique value.
|
|
1546
1546
|
* @param {Array<ListSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
|
|
1547
|
-
* @param {string} [dateFrom] Filter from date (will be converted to start of day)
|
|
1548
|
-
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
1549
1547
|
* @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.
|
|
1550
1548
|
* @param {*} [options] Override http request option.
|
|
1551
1549
|
* @throws {RequiredError}
|
|
1552
1550
|
* @memberof RequestsApi
|
|
1553
1551
|
*/
|
|
1554
|
-
list(pageIndex, pageSize, search,
|
|
1555
|
-
return RequestsApiFp(this.configuration).list(pageIndex, pageSize, search,
|
|
1552
|
+
list(pageIndex, pageSize, search, dateFrom, dateTo, subject, internalId, securityLevel, aPIVersion, options) {
|
|
1553
|
+
return RequestsApiFp(this.configuration).list(pageIndex, pageSize, search, dateFrom, dateTo, subject, internalId, securityLevel, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
1556
1554
|
}
|
|
1557
1555
|
/**
|
|
1558
|
-
* Resend a One-Time Password (OTP) to a subject for credential approval, via email or SMS
|
|
1556
|
+
* 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
|
|
1559
1557
|
* @summary Resend OTP
|
|
1560
1558
|
* @param {string} requestId Unique identifier of the request.
|
|
1561
1559
|
* @param {string} [contact] Verified contact value (email or phone)
|
|
@@ -1825,7 +1823,7 @@ var WebhooksApiAxiosParamCreator = function(configuration) {
|
|
|
1825
1823
|
};
|
|
1826
1824
|
},
|
|
1827
1825
|
/**
|
|
1828
|
-
* Fired when an OTP delivery to the
|
|
1826
|
+
* 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.
|
|
1829
1827
|
* @summary OTP Failed Event
|
|
1830
1828
|
* @param {OtpFailedEvent} otpFailedEvent
|
|
1831
1829
|
* @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.
|
|
@@ -1922,7 +1920,7 @@ var WebhooksApiFp = function(configuration) {
|
|
|
1922
1920
|
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios9, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1923
1921
|
},
|
|
1924
1922
|
/**
|
|
1925
|
-
* Fired when an OTP delivery to the
|
|
1923
|
+
* 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.
|
|
1926
1924
|
* @summary OTP Failed Event
|
|
1927
1925
|
* @param {OtpFailedEvent} otpFailedEvent
|
|
1928
1926
|
* @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.
|
|
@@ -1977,7 +1975,7 @@ var WebhooksApiFactory = function(configuration, basePath, axios2) {
|
|
|
1977
1975
|
return localVarFp.identity(identityEvent, aPIVersion, options).then((request) => request(axios2, basePath));
|
|
1978
1976
|
},
|
|
1979
1977
|
/**
|
|
1980
|
-
* Fired when an OTP delivery to the
|
|
1978
|
+
* 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.
|
|
1981
1979
|
* @summary OTP Failed Event
|
|
1982
1980
|
* @param {OtpFailedEvent} otpFailedEvent
|
|
1983
1981
|
* @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.
|
|
@@ -2026,7 +2024,7 @@ var WebhooksApi = class extends BaseAPI {
|
|
|
2026
2024
|
return WebhooksApiFp(this.configuration).identity(identityEvent, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
2027
2025
|
}
|
|
2028
2026
|
/**
|
|
2029
|
-
* Fired when an OTP delivery to the
|
|
2027
|
+
* 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.
|
|
2030
2028
|
* @summary OTP Failed Event
|
|
2031
2029
|
* @param {OtpFailedEvent} otpFailedEvent
|
|
2032
2030
|
* @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.
|
|
@@ -2181,6 +2179,14 @@ var GenerateRequestDtoSecurityLevelEnum = {
|
|
|
2181
2179
|
HumanosRevalidation: "HUMANOS_REVALIDATION"
|
|
2182
2180
|
};
|
|
2183
2181
|
|
|
2182
|
+
// generated/models/generate-request-user-dto.ts
|
|
2183
|
+
var GenerateRequestUserDtoLanguageEnum = {
|
|
2184
|
+
Eng: "ENG",
|
|
2185
|
+
Prt: "PRT",
|
|
2186
|
+
Spa: "SPA",
|
|
2187
|
+
Fra: "FRA"
|
|
2188
|
+
};
|
|
2189
|
+
|
|
2184
2190
|
// generated/models/identity-event.ts
|
|
2185
2191
|
var IdentityEventEventTypeEnum = {
|
|
2186
2192
|
Identity: "identity"
|
|
@@ -2245,7 +2251,6 @@ var ResourceEntityTypeEnum = {
|
|
|
2245
2251
|
Form: "FORM",
|
|
2246
2252
|
Document: "DOCUMENT",
|
|
2247
2253
|
Json: "JSON",
|
|
2248
|
-
Payment: "PAYMENT",
|
|
2249
2254
|
Policy: "POLICY"
|
|
2250
2255
|
};
|
|
2251
2256
|
|
|
@@ -2255,7 +2260,6 @@ var ResourceMinimalEntityTypeEnum = {
|
|
|
2255
2260
|
Form: "FORM",
|
|
2256
2261
|
Document: "DOCUMENT",
|
|
2257
2262
|
Json: "JSON",
|
|
2258
|
-
Payment: "PAYMENT",
|
|
2259
2263
|
Policy: "POLICY"
|
|
2260
2264
|
};
|
|
2261
2265
|
|
|
@@ -2265,7 +2269,6 @@ var ResourceQueryTypesEnum = {
|
|
|
2265
2269
|
Form: "FORM",
|
|
2266
2270
|
Document: "DOCUMENT",
|
|
2267
2271
|
Json: "JSON",
|
|
2268
|
-
Payment: "PAYMENT",
|
|
2269
2272
|
Policy: "POLICY"
|
|
2270
2273
|
};
|
|
2271
2274
|
|
|
@@ -2342,7 +2345,7 @@ function applySignatureInterceptor(axiosInstance, signatureSecret) {
|
|
|
2342
2345
|
}
|
|
2343
2346
|
|
|
2344
2347
|
// src/client.ts
|
|
2345
|
-
var API_VERSION = "2026-
|
|
2348
|
+
var API_VERSION = "2026-06-22";
|
|
2346
2349
|
var SDK_LANGUAGE = "typescript";
|
|
2347
2350
|
var HumanosClient = class {
|
|
2348
2351
|
constructor(clientConfig) {
|
|
@@ -2491,6 +2494,7 @@ export {
|
|
|
2491
2494
|
DIDApiFp,
|
|
2492
2495
|
DeliveryActionType,
|
|
2493
2496
|
GenerateRequestDtoSecurityLevelEnum,
|
|
2497
|
+
GenerateRequestUserDtoLanguageEnum,
|
|
2494
2498
|
HumanosClient,
|
|
2495
2499
|
IdentityEventEventTypeEnum,
|
|
2496
2500
|
ListSecurityLevelEnum,
|
|
@@ -30,7 +30,7 @@ models/contact-entity.ts
|
|
|
30
30
|
models/create-presentation-dto.ts
|
|
31
31
|
models/create-subject-dto.ts
|
|
32
32
|
models/create-subject-entity.ts
|
|
33
|
-
models/credential-dto-data
|
|
33
|
+
models/credential-dto-data.ts
|
|
34
34
|
models/credential-dto.ts
|
|
35
35
|
models/credential-entity.ts
|
|
36
36
|
models/credential-event-decision.ts
|
|
@@ -51,6 +51,8 @@ models/evidence.ts
|
|
|
51
51
|
models/generate-credential-entity.ts
|
|
52
52
|
models/generate-request-dto.ts
|
|
53
53
|
models/generate-request-entity.ts
|
|
54
|
+
models/generate-request-iframe-dto.ts
|
|
55
|
+
models/generate-request-user-dto.ts
|
|
54
56
|
models/generate-subject-entity.ts
|
|
55
57
|
models/group-entity.ts
|
|
56
58
|
models/groups-entity.ts
|
|
@@ -58,7 +60,8 @@ models/identity-dto.ts
|
|
|
58
60
|
models/identity-event-decision.ts
|
|
59
61
|
models/identity-event-user.ts
|
|
60
62
|
models/identity-event.ts
|
|
61
|
-
models/identity-
|
|
63
|
+
models/identity-webhook-issue-date.ts
|
|
64
|
+
models/identity-webhook.ts
|
|
62
65
|
models/index.ts
|
|
63
66
|
models/organization-data-entity.ts
|
|
64
67
|
models/otp-error.ts
|
|
@@ -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
|
*
|
|
@@ -34,18 +34,18 @@ export const ActivityApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
34
34
|
* @summary List Activity Events
|
|
35
35
|
* @param {number} [pageIndex] Page number
|
|
36
36
|
* @param {number} [pageSize] Number of items per page
|
|
37
|
+
* @param {string} [dateFrom] Filter from date (will be converted to start of day in UTC)
|
|
38
|
+
* @param {string} [dateTo] Filter to date (will be converted to end of day in UTC). Requires dateFrom.
|
|
37
39
|
* @param {Array<ListTypeEnum>} [type] Filter by one or more activity event types. Repeat the query parameter to pass multiple values, e.g. ?type=VP_VERIFIED&type=VP_VERIFICATION_DENIED.
|
|
38
40
|
* @param {string} [entityType] Filter by the broad entity class the event was emitted against (e.g. \"credential\", \"request\", \"veriff\").
|
|
39
41
|
* @param {string} [entityId] Filter by a specific entity id (must be a valid MongoDB ObjectId).
|
|
40
42
|
* @param {string} [actorDid] Filter by the DID of the actor that triggered the event.
|
|
41
43
|
* @param {string} [subjectDid] Filter by the DID of the subject affected by the event.
|
|
42
|
-
* @param {string} [dateFrom] Filter from date (will be converted to start of day).
|
|
43
|
-
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
44
44
|
* @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\'s date.
|
|
45
45
|
* @param {*} [options] Override http request option.
|
|
46
46
|
* @throws {RequiredError}
|
|
47
47
|
*/
|
|
48
|
-
list: async (pageIndex?: number, pageSize?: number, type?: Array<ListTypeEnum>, entityType?: string, entityId?: string, actorDid?: string, subjectDid?: string,
|
|
48
|
+
list: async (pageIndex?: number, pageSize?: number, dateFrom?: string, dateTo?: string, type?: Array<ListTypeEnum>, entityType?: string, entityId?: string, actorDid?: string, subjectDid?: string, aPIVersion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
49
49
|
const localVarPath = `/activity`;
|
|
50
50
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
51
51
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -66,6 +66,18 @@ export const ActivityApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
66
66
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
if (dateFrom !== undefined) {
|
|
70
|
+
localVarQueryParameter['dateFrom'] = (dateFrom as any instanceof Date) ?
|
|
71
|
+
(dateFrom as any).toISOString() :
|
|
72
|
+
dateFrom;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (dateTo !== undefined) {
|
|
76
|
+
localVarQueryParameter['dateTo'] = (dateTo as any instanceof Date) ?
|
|
77
|
+
(dateTo as any).toISOString() :
|
|
78
|
+
dateTo;
|
|
79
|
+
}
|
|
80
|
+
|
|
69
81
|
if (type) {
|
|
70
82
|
localVarQueryParameter['type'] = type;
|
|
71
83
|
}
|
|
@@ -86,18 +98,6 @@ export const ActivityApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
86
98
|
localVarQueryParameter['subjectDid'] = subjectDid;
|
|
87
99
|
}
|
|
88
100
|
|
|
89
|
-
if (dateFrom !== undefined) {
|
|
90
|
-
localVarQueryParameter['dateFrom'] = (dateFrom as any instanceof Date) ?
|
|
91
|
-
(dateFrom as any).toISOString() :
|
|
92
|
-
dateFrom;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
if (dateTo !== undefined) {
|
|
96
|
-
localVarQueryParameter['dateTo'] = (dateTo as any instanceof Date) ?
|
|
97
|
-
(dateTo as any).toISOString() :
|
|
98
|
-
dateTo;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
if (aPIVersion != null) {
|
|
@@ -127,19 +127,19 @@ export const ActivityApiFp = function(configuration?: Configuration) {
|
|
|
127
127
|
* @summary List Activity Events
|
|
128
128
|
* @param {number} [pageIndex] Page number
|
|
129
129
|
* @param {number} [pageSize] Number of items per page
|
|
130
|
+
* @param {string} [dateFrom] Filter from date (will be converted to start of day in UTC)
|
|
131
|
+
* @param {string} [dateTo] Filter to date (will be converted to end of day in UTC). Requires dateFrom.
|
|
130
132
|
* @param {Array<ListTypeEnum>} [type] Filter by one or more activity event types. Repeat the query parameter to pass multiple values, e.g. ?type=VP_VERIFIED&type=VP_VERIFICATION_DENIED.
|
|
131
133
|
* @param {string} [entityType] Filter by the broad entity class the event was emitted against (e.g. \"credential\", \"request\", \"veriff\").
|
|
132
134
|
* @param {string} [entityId] Filter by a specific entity id (must be a valid MongoDB ObjectId).
|
|
133
135
|
* @param {string} [actorDid] Filter by the DID of the actor that triggered the event.
|
|
134
136
|
* @param {string} [subjectDid] Filter by the DID of the subject affected by the event.
|
|
135
|
-
* @param {string} [dateFrom] Filter from date (will be converted to start of day).
|
|
136
|
-
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
137
137
|
* @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\'s date.
|
|
138
138
|
* @param {*} [options] Override http request option.
|
|
139
139
|
* @throws {RequiredError}
|
|
140
140
|
*/
|
|
141
|
-
async list(pageIndex?: number, pageSize?: number, type?: Array<ListTypeEnum>, entityType?: string, entityId?: string, actorDid?: string, subjectDid?: string,
|
|
142
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.list(pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid,
|
|
141
|
+
async list(pageIndex?: number, pageSize?: number, dateFrom?: string, dateTo?: string, type?: Array<ListTypeEnum>, entityType?: string, entityId?: string, actorDid?: string, subjectDid?: string, aPIVersion?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivitiesEntity>> {
|
|
142
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.list(pageIndex, pageSize, dateFrom, dateTo, type, entityType, entityId, actorDid, subjectDid, aPIVersion, options);
|
|
143
143
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
144
144
|
const localVarOperationServerBasePath = operationServerMap['ActivityApi.list']?.[localVarOperationServerIndex]?.url;
|
|
145
145
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -159,19 +159,19 @@ export const ActivityApiFactory = function (configuration?: Configuration, baseP
|
|
|
159
159
|
* @summary List Activity Events
|
|
160
160
|
* @param {number} [pageIndex] Page number
|
|
161
161
|
* @param {number} [pageSize] Number of items per page
|
|
162
|
+
* @param {string} [dateFrom] Filter from date (will be converted to start of day in UTC)
|
|
163
|
+
* @param {string} [dateTo] Filter to date (will be converted to end of day in UTC). Requires dateFrom.
|
|
162
164
|
* @param {Array<ListTypeEnum>} [type] Filter by one or more activity event types. Repeat the query parameter to pass multiple values, e.g. ?type=VP_VERIFIED&type=VP_VERIFICATION_DENIED.
|
|
163
165
|
* @param {string} [entityType] Filter by the broad entity class the event was emitted against (e.g. \"credential\", \"request\", \"veriff\").
|
|
164
166
|
* @param {string} [entityId] Filter by a specific entity id (must be a valid MongoDB ObjectId).
|
|
165
167
|
* @param {string} [actorDid] Filter by the DID of the actor that triggered the event.
|
|
166
168
|
* @param {string} [subjectDid] Filter by the DID of the subject affected by the event.
|
|
167
|
-
* @param {string} [dateFrom] Filter from date (will be converted to start of day).
|
|
168
|
-
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
169
169
|
* @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\'s date.
|
|
170
170
|
* @param {*} [options] Override http request option.
|
|
171
171
|
* @throws {RequiredError}
|
|
172
172
|
*/
|
|
173
|
-
list(pageIndex?: number, pageSize?: number, type?: Array<ListTypeEnum>, entityType?: string, entityId?: string, actorDid?: string, subjectDid?: string,
|
|
174
|
-
return localVarFp.list(pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid,
|
|
173
|
+
list(pageIndex?: number, pageSize?: number, dateFrom?: string, dateTo?: string, type?: Array<ListTypeEnum>, entityType?: string, entityId?: string, actorDid?: string, subjectDid?: string, aPIVersion?: string, options?: RawAxiosRequestConfig): AxiosPromise<ActivitiesEntity> {
|
|
174
|
+
return localVarFp.list(pageIndex, pageSize, dateFrom, dateTo, type, entityType, entityId, actorDid, subjectDid, aPIVersion, options).then((request) => request(axios, basePath));
|
|
175
175
|
},
|
|
176
176
|
};
|
|
177
177
|
};
|
|
@@ -188,20 +188,20 @@ export class ActivityApi extends BaseAPI {
|
|
|
188
188
|
* @summary List Activity Events
|
|
189
189
|
* @param {number} [pageIndex] Page number
|
|
190
190
|
* @param {number} [pageSize] Number of items per page
|
|
191
|
+
* @param {string} [dateFrom] Filter from date (will be converted to start of day in UTC)
|
|
192
|
+
* @param {string} [dateTo] Filter to date (will be converted to end of day in UTC). Requires dateFrom.
|
|
191
193
|
* @param {Array<ListTypeEnum>} [type] Filter by one or more activity event types. Repeat the query parameter to pass multiple values, e.g. ?type=VP_VERIFIED&type=VP_VERIFICATION_DENIED.
|
|
192
194
|
* @param {string} [entityType] Filter by the broad entity class the event was emitted against (e.g. \"credential\", \"request\", \"veriff\").
|
|
193
195
|
* @param {string} [entityId] Filter by a specific entity id (must be a valid MongoDB ObjectId).
|
|
194
196
|
* @param {string} [actorDid] Filter by the DID of the actor that triggered the event.
|
|
195
197
|
* @param {string} [subjectDid] Filter by the DID of the subject affected by the event.
|
|
196
|
-
* @param {string} [dateFrom] Filter from date (will be converted to start of day).
|
|
197
|
-
* @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
|
|
198
198
|
* @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\'s date.
|
|
199
199
|
* @param {*} [options] Override http request option.
|
|
200
200
|
* @throws {RequiredError}
|
|
201
201
|
* @memberof ActivityApi
|
|
202
202
|
*/
|
|
203
|
-
public list(pageIndex?: number, pageSize?: number, type?: Array<ListTypeEnum>, entityType?: string, entityId?: string, actorDid?: string, subjectDid?: string,
|
|
204
|
-
return ActivityApiFp(this.configuration).list(pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid,
|
|
203
|
+
public list(pageIndex?: number, pageSize?: number, dateFrom?: string, dateTo?: string, type?: Array<ListTypeEnum>, entityType?: string, entityId?: string, actorDid?: string, subjectDid?: string, aPIVersion?: string, options?: RawAxiosRequestConfig) {
|
|
204
|
+
return ActivityApiFp(this.configuration).list(pageIndex, pageSize, dateFrom, dateTo, type, entityType, entityId, actorDid, subjectDid, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
|
|
@@ -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
|
*
|
|
@@ -304,7 +304,6 @@ export const ListTypesEnum = {
|
|
|
304
304
|
Form: 'FORM',
|
|
305
305
|
Document: 'DOCUMENT',
|
|
306
306
|
Json: 'JSON',
|
|
307
|
-
Payment: 'PAYMENT',
|
|
308
307
|
Policy: 'POLICY'
|
|
309
308
|
} as const;
|
|
310
309
|
export type ListTypesEnum = typeof ListTypesEnum[keyof typeof ListTypesEnum];
|
|
@@ -316,7 +315,6 @@ export const WorkflowsTypesEnum = {
|
|
|
316
315
|
Form: 'FORM',
|
|
317
316
|
Document: 'DOCUMENT',
|
|
318
317
|
Json: 'JSON',
|
|
319
|
-
Payment: 'PAYMENT',
|
|
320
318
|
Policy: 'POLICY'
|
|
321
319
|
} as const;
|
|
322
320
|
export type WorkflowsTypesEnum = typeof WorkflowsTypesEnum[keyof typeof WorkflowsTypesEnum];
|