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.
Files changed (148) hide show
  1. package/dist/index.d.mts +346 -231
  2. package/dist/index.d.ts +346 -231
  3. package/dist/index.js +65 -60
  4. package/dist/index.mjs +64 -60
  5. package/generated/.openapi-generator/FILES +5 -2
  6. package/generated/api/actions-api.ts +1 -1
  7. package/generated/api/activity-api.ts +28 -28
  8. package/generated/api/approval-api.ts +1 -3
  9. package/generated/api/credentials-api.ts +5 -5
  10. package/generated/api/didapi.ts +1 -1
  11. package/generated/api/requests-api.ts +32 -32
  12. package/generated/api/user-api.ts +1 -1
  13. package/generated/api/webhooks-api.ts +5 -5
  14. package/generated/api.ts +1 -1
  15. package/generated/base.ts +1 -1
  16. package/generated/common.ts +1 -1
  17. package/generated/configuration.ts +1 -1
  18. package/generated/index.ts +1 -1
  19. package/generated/models/action-dto.ts +1 -1
  20. package/generated/models/action-entity.ts +1 -1
  21. package/generated/models/action-list-entity.ts +1 -1
  22. package/generated/models/action-query.ts +1 -1
  23. package/generated/models/action-version-detail-entity.ts +1 -1
  24. package/generated/models/action-version-list-entity.ts +1 -1
  25. package/generated/models/action-version-summary-entity.ts +1 -1
  26. package/generated/models/activities-entity.ts +1 -1
  27. package/generated/models/activity-entity.ts +1 -1
  28. package/generated/models/activity-query.ts +13 -13
  29. package/generated/models/consent.ts +1 -1
  30. package/generated/models/contact-entity.ts +1 -1
  31. package/generated/models/create-presentation-dto.ts +1 -1
  32. package/generated/models/create-subject-dto.ts +1 -1
  33. package/generated/models/create-subject-entity.ts +1 -1
  34. package/generated/models/{credential-dto-data-inner.ts → credential-dto-data.ts} +4 -3
  35. package/generated/models/credential-dto.ts +5 -5
  36. package/generated/models/credential-entity.ts +1 -1
  37. package/generated/models/credential-event-decision.ts +1 -1
  38. package/generated/models/credential-event-user.ts +1 -1
  39. package/generated/models/credential-event.ts +1 -1
  40. package/generated/models/credential-placement-dto.ts +1 -1
  41. package/generated/models/credential-status.ts +1 -1
  42. package/generated/models/credentials-detail404-response.ts +1 -1
  43. package/generated/models/credentials-evidence404-response.ts +1 -1
  44. package/generated/models/credentials-issue-vp400-response.ts +1 -1
  45. package/generated/models/credentials-issue-vp403-response.ts +1 -1
  46. package/generated/models/credentials-issue-vp404-response.ts +1 -1
  47. package/generated/models/credentials-revoke400-response.ts +1 -1
  48. package/generated/models/credentials-revoke409-response.ts +1 -1
  49. package/generated/models/delivery-action-type.ts +1 -1
  50. package/generated/models/did-document-entity.ts +1 -1
  51. package/generated/models/evidence.ts +1 -1
  52. package/generated/models/generate-credential-entity.ts +1 -1
  53. package/generated/models/generate-request-dto.ts +16 -28
  54. package/generated/models/generate-request-entity.ts +1 -1
  55. package/generated/models/{otp-failed-event-otp-error.ts → generate-request-iframe-dto.ts} +6 -12
  56. package/generated/models/generate-request-user-dto.ts +64 -0
  57. package/generated/models/generate-subject-entity.ts +3 -3
  58. package/generated/models/group-entity.ts +1 -1
  59. package/generated/models/groups-entity.ts +1 -1
  60. package/generated/models/identity-dto.ts +1 -1
  61. package/generated/models/identity-event-decision.ts +1 -19
  62. package/generated/models/identity-event-user.ts +1 -1
  63. package/generated/models/identity-event.ts +4 -4
  64. package/generated/models/{w3-cverifiable-credential-valid-from.ts → identity-webhook-issue-date.ts} +3 -3
  65. package/generated/models/identity-webhook.ts +117 -0
  66. package/generated/models/index.ts +5 -2
  67. package/generated/models/organization-data-entity.ts +1 -1
  68. package/generated/models/otp-error.ts +1 -1
  69. package/generated/models/otp-failed-event-otp.ts +1 -1
  70. package/generated/models/otp-failed-event.ts +1 -1
  71. package/generated/models/partial-subject-entity.ts +1 -1
  72. package/generated/models/presentation-response-entity.ts +8 -2
  73. package/generated/models/receipt-entity.ts +1 -1
  74. package/generated/models/request-credential-entity.ts +1 -1
  75. package/generated/models/request-detail-entity.ts +1 -1
  76. package/generated/models/request-detail-subject-entity.ts +7 -1
  77. package/generated/models/request-entity.ts +1 -1
  78. package/generated/models/request-query.ts +13 -13
  79. package/generated/models/request-subject-entity.ts +7 -1
  80. package/generated/models/requests-create400-response.ts +1 -1
  81. package/generated/models/requests-detail404-response.ts +1 -1
  82. package/generated/models/requests-entity.ts +1 -1
  83. package/generated/models/requests-resend-otp403-response.ts +1 -1
  84. package/generated/models/resource-entity.ts +1 -2
  85. package/generated/models/resource-minimal-entity.ts +1 -2
  86. package/generated/models/resource-query.ts +1 -2
  87. package/generated/models/resources-entity.ts +1 -1
  88. package/generated/models/revoke-credential-dto.ts +1 -1
  89. package/generated/models/revoke-credential-entity.ts +1 -1
  90. package/generated/models/subject-issuer-entity.ts +1 -1
  91. package/generated/models/subject-query.ts +1 -1
  92. package/generated/models/success-entity.ts +1 -1
  93. package/generated/models/test-event.ts +1 -1
  94. package/generated/models/user-create400-response.ts +1 -1
  95. package/generated/models/user-detail400-response.ts +1 -1
  96. package/generated/models/user-detail404-response.ts +1 -1
  97. package/generated/models/verification-method-entity.ts +1 -1
  98. package/generated/models/verify-allow-response-entity.ts +1 -1
  99. package/generated/models/verify-deny-response-entity.ts +1 -1
  100. package/generated/models/verify-evaluation-entity.ts +1 -1
  101. package/generated/models/verify-presentation-dto.ts +8 -2
  102. package/generated/models/w3-cverifiable-credential-credential-subject-mandate-action.ts +1 -1
  103. package/generated/models/w3-cverifiable-credential-credential-subject-mandate-context.ts +1 -1
  104. package/generated/models/w3-cverifiable-credential-credential-subject-mandate-grantor.ts +1 -1
  105. package/generated/models/w3-cverifiable-credential-credential-subject-mandate.ts +1 -1
  106. package/generated/models/w3-cverifiable-credential-credential-subject.ts +1 -1
  107. package/generated/models/w3-cverifiable-credential-proofs-inner.ts +1 -1
  108. package/generated/models/w3-cverifiable-credential.ts +1 -1
  109. package/generated/models/webhook-call-event.ts +2 -2
  110. package/package.json +1 -1
  111. package/generated/models/action-ref-dto.ts +0 -36
  112. package/generated/models/constraints-dto.ts +0 -36
  113. package/generated/models/create-presentation400-response.ts +0 -42
  114. package/generated/models/create-presentation403-response.ts +0 -42
  115. package/generated/models/create-presentation404-response.ts +0 -42
  116. package/generated/models/create400-response.ts +0 -42
  117. package/generated/models/generate400-response.ts +0 -42
  118. package/generated/models/get-credential404-response.ts +0 -42
  119. package/generated/models/get-evidence404-response.ts +0 -42
  120. package/generated/models/get-request-detail404-response.ts +0 -42
  121. package/generated/models/get-subject400-response.ts +0 -42
  122. package/generated/models/get-subject404-response.ts +0 -42
  123. package/generated/models/identity-payload.ts +0 -84
  124. package/generated/models/json-value.ts +0 -27
  125. package/generated/models/presentation-receipt-entity.ts +0 -42
  126. package/generated/models/resend-otp403-response.ts +0 -42
  127. package/generated/models/revoke-credential400-response.ts +0 -42
  128. package/generated/models/revoke-credential409-response.ts +0 -42
  129. package/generated/models/revoke-receipt-entity.ts +0 -42
  130. package/generated/models/schema-entity.ts +0 -57
  131. package/generated/models/schema-list-entity.ts +0 -39
  132. package/generated/models/schema-query.ts +0 -48
  133. package/generated/models/schema-response-entity.ts +0 -45
  134. package/generated/models/schema-version-detail-entity.ts +0 -72
  135. package/generated/models/schema-version-list-entity.ts +0 -39
  136. package/generated/models/schema-version-response-entity.ts +0 -54
  137. package/generated/models/schema-version-summary-entity.ts +0 -48
  138. package/generated/models/subject-contact-entity.ts +0 -42
  139. package/generated/models/verify-receipt-entity.ts +0 -42
  140. package/generated/models/w3-cverifiable-credential-credential-subject-mandate-constraint-constraint-schema.ts +0 -44
  141. package/generated/models/w3-cverifiable-credential-credential-subject-mandate-constraint.ts +0 -41
  142. package/generated/models/w3-cverifiable-credential-evidences-inner.ts +0 -42
  143. package/generated/models/w3-cverifiable-credential-valid-until.ts +0 -24
  144. package/generated/models/webhook-event-type-credential.ts +0 -30
  145. package/generated/models/webhook-event-type-identity.ts +0 -30
  146. package/generated/models/webhook-event-type-otpfailed.ts +0 -30
  147. package/generated/models/webhook-event-type-test.ts +0 -30
  148. 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&#x3D;VP_VERIFIED&amp;type&#x3D;VP_VERIFICATION_DENIED.
287
289
  * @param {string} [entityType] Filter by the broad entity class the event was emitted against (e.g. \&quot;credential\&quot;, \&quot;request\&quot;, \&quot;veriff\&quot;).
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\&#39;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, dateFrom, dateTo, aPIVersion, options = {}) => {
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&#x3D;VP_VERIFIED&amp;type&#x3D;VP_VERIFICATION_DENIED.
356
358
  * @param {string} [entityType] Filter by the broad entity class the event was emitted against (e.g. \&quot;credential\&quot;, \&quot;request\&quot;, \&quot;veriff\&quot;).
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\&#39;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, dateFrom, dateTo, aPIVersion, options) {
367
- const localVarAxiosArgs = await localVarAxiosParamCreator.list(pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid, dateFrom, dateTo, aPIVersion, options);
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&#x3D;VP_VERIFIED&amp;type&#x3D;VP_VERIFICATION_DENIED.
383
385
  * @param {string} [entityType] Filter by the broad entity class the event was emitted against (e.g. \&quot;credential\&quot;, \&quot;request\&quot;, \&quot;veriff\&quot;).
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\&#39;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, dateFrom, dateTo, aPIVersion, options) {
394
- return localVarFp.list(pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid, dateFrom, dateTo, aPIVersion, options).then((request) => request(axios2, basePath));
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&#x3D;VP_VERIFIED&amp;type&#x3D;VP_VERIFICATION_DENIED.
405
407
  * @param {string} [entityType] Filter by the broad entity class the event was emitted against (e.g. \&quot;credential\&quot;, \&quot;request\&quot;, \&quot;veriff\&quot;).
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\&#39;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, dateFrom, dateTo, aPIVersion, options) {
417
- return ActivityApiFp(this.configuration).list(pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid, dateFrom, dateTo, aPIVersion, options).then((request) => request(this.axios, this.basePath));
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\&#39;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\&#39;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\&#39;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\&#39;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\&#39;s date.
1245
1243
  * @param {*} [options] Override http request option.
1246
1244
  * @throws {RequiredError}
1247
1245
  */
1248
- list: async (pageIndex, pageSize, search, subject, internalId, securityLevel, dateFrom, dateTo, aPIVersion, options = {}) => {
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 (depending on their contact type) with a code and a signing URL. The endpoint validates: - The request is not canceled - Maximum attempts have not been reached, only successful OTP sends count towards resend limits - Sufficient time has passed since the last successful resend - Billing restrictions apply
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\&#39;s date.
1399
1397
  * @param {*} [options] Override http request option.
1400
1398
  * @throws {RequiredError}
1401
1399
  */
1402
- async list(pageIndex, pageSize, search, subject, internalId, securityLevel, dateFrom, dateTo, aPIVersion, options) {
1403
- const localVarAxiosArgs = await localVarAxiosParamCreator.list(pageIndex, pageSize, search, subject, internalId, securityLevel, dateFrom, dateTo, aPIVersion, options);
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 (depending on their contact type) with a code and a signing URL. The endpoint validates: - The request is not canceled - Maximum attempts have not been reached, only successful OTP sends count towards resend limits - Sufficient time has passed since the last successful resend - Billing restrictions apply
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\&#39;s date.
1477
1475
  * @param {*} [options] Override http request option.
1478
1476
  * @throws {RequiredError}
1479
1477
  */
1480
- list(pageIndex, pageSize, search, subject, internalId, securityLevel, dateFrom, dateTo, aPIVersion, options) {
1481
- return localVarFp.list(pageIndex, pageSize, search, subject, internalId, securityLevel, dateFrom, dateTo, aPIVersion, options).then((request) => request(axios2, basePath));
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 (depending on their contact type) with a code and a signing URL. The endpoint validates: - The request is not canceled - Maximum attempts have not been reached, only successful OTP sends count towards resend limits - Sufficient time has passed since the last successful resend - Billing restrictions apply
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\&#39;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, subject, internalId, securityLevel, dateFrom, dateTo, aPIVersion, options) {
1555
- return RequestsApiFp(this.configuration).list(pageIndex, pageSize, search, subject, internalId, securityLevel, dateFrom, dateTo, aPIVersion, options).then((request) => request(this.axios, this.basePath));
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 (depending on their contact type) with a code and a signing URL. The endpoint validates: - The request is not canceled - Maximum attempts have not been reached, only successful OTP sends count towards resend limits - Sufficient time has passed since the last successful resend - Billing restrictions apply
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 subject fails. **Inbound webhook callback** — Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
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\&#39;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 subject fails. **Inbound webhook callback** — Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
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\&#39;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 subject fails. **Inbound webhook callback** — Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
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\&#39;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 subject fails. **Inbound webhook callback** — Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
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\&#39;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-05-20";
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-inner.ts
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-payload.ts
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
  *
@@ -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&#x3D;VP_VERIFIED&amp;type&#x3D;VP_VERIFICATION_DENIED.
38
40
  * @param {string} [entityType] Filter by the broad entity class the event was emitted against (e.g. \&quot;credential\&quot;, \&quot;request\&quot;, \&quot;veriff\&quot;).
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\&#39;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, dateFrom?: string, dateTo?: string, aPIVersion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
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&#x3D;VP_VERIFIED&amp;type&#x3D;VP_VERIFICATION_DENIED.
131
133
  * @param {string} [entityType] Filter by the broad entity class the event was emitted against (e.g. \&quot;credential\&quot;, \&quot;request\&quot;, \&quot;veriff\&quot;).
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\&#39;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, dateFrom?: string, dateTo?: string, aPIVersion?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivitiesEntity>> {
142
- const localVarAxiosArgs = await localVarAxiosParamCreator.list(pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid, dateFrom, dateTo, aPIVersion, options);
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&#x3D;VP_VERIFIED&amp;type&#x3D;VP_VERIFICATION_DENIED.
163
165
  * @param {string} [entityType] Filter by the broad entity class the event was emitted against (e.g. \&quot;credential\&quot;, \&quot;request\&quot;, \&quot;veriff\&quot;).
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\&#39;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, dateFrom?: string, dateTo?: string, aPIVersion?: string, options?: RawAxiosRequestConfig): AxiosPromise<ActivitiesEntity> {
174
- return localVarFp.list(pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid, dateFrom, dateTo, aPIVersion, options).then((request) => request(axios, basePath));
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&#x3D;VP_VERIFIED&amp;type&#x3D;VP_VERIFICATION_DENIED.
192
194
  * @param {string} [entityType] Filter by the broad entity class the event was emitted against (e.g. \&quot;credential\&quot;, \&quot;request\&quot;, \&quot;veriff\&quot;).
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\&#39;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, dateFrom?: string, dateTo?: string, aPIVersion?: string, options?: RawAxiosRequestConfig) {
204
- return ActivityApiFp(this.configuration).list(pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid, dateFrom, dateTo, aPIVersion, options).then((request) => request(this.axios, this.basePath));
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];