humanos 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/README.md +310 -114
  2. package/dist/index.d.mts +3558 -1753
  3. package/dist/index.d.ts +3558 -1753
  4. package/dist/index.js +1621 -499
  5. package/dist/index.mjs +1578 -478
  6. package/generated/.openapi-generator/FILES +59 -33
  7. package/generated/api/actions-api.ts +273 -0
  8. package/generated/api/activity-api.ts +225 -0
  9. package/generated/api/{resource-api.ts → approval-api.ts} +65 -61
  10. package/generated/api/credentials-api.ts +365 -25
  11. package/generated/api/didapi.ts +138 -0
  12. package/generated/api/requests-api.ts +124 -134
  13. package/generated/api/user-api.ts +45 -36
  14. package/generated/api/webhooks-api.ts +84 -56
  15. package/generated/api.ts +5 -1
  16. package/generated/models/action-dto.ts +36 -0
  17. package/generated/models/action-entity.ts +57 -0
  18. package/generated/models/action-list-entity.ts +39 -0
  19. package/generated/models/action-query.ts +48 -0
  20. package/generated/models/action-ref-dto.ts +36 -0
  21. package/generated/models/action-version-detail-entity.ts +72 -0
  22. package/generated/models/action-version-list-entity.ts +39 -0
  23. package/generated/models/action-version-summary-entity.ts +48 -0
  24. package/generated/models/activities-entity.ts +39 -0
  25. package/generated/models/activity-entity.ts +90 -0
  26. package/generated/models/activity-query.ts +96 -0
  27. package/generated/models/consent.ts +36 -0
  28. package/generated/models/constraints-dto.ts +36 -0
  29. package/generated/models/{agent-detail-entity.ts → contact-entity.ts} +8 -8
  30. package/generated/models/create-presentation-dto.ts +30 -0
  31. package/generated/models/create-presentation400-response.ts +42 -0
  32. package/generated/models/create-presentation403-response.ts +42 -0
  33. package/generated/models/create-presentation404-response.ts +42 -0
  34. package/generated/models/create-subject-dto.ts +10 -4
  35. package/generated/models/create-subject-entity.ts +4 -4
  36. package/generated/models/{cancel-request404-response.ts → create400-response.ts} +5 -5
  37. package/generated/models/credential-dto-data-inner.ts +26 -0
  38. package/generated/models/credential-dto.ts +52 -6
  39. package/generated/models/credential-entity.ts +33 -7
  40. package/generated/models/{credential-subject.ts → credential-event-decision.ts} +13 -11
  41. package/generated/models/credential-event-user.ts +1 -1
  42. package/generated/models/credential-event.ts +15 -19
  43. package/generated/models/credential-placement-dto.ts +85 -0
  44. package/generated/models/credential-status.ts +5 -3
  45. package/generated/models/credentials-detail404-response.ts +42 -0
  46. package/generated/models/credentials-evidence404-response.ts +42 -0
  47. package/generated/models/credentials-issue-vp400-response.ts +42 -0
  48. package/generated/models/credentials-issue-vp403-response.ts +42 -0
  49. package/generated/models/credentials-issue-vp404-response.ts +42 -0
  50. package/generated/models/credentials-revoke400-response.ts +42 -0
  51. package/generated/models/credentials-revoke409-response.ts +42 -0
  52. package/generated/models/did-document-entity.ts +63 -0
  53. package/generated/models/evidence.ts +44 -0
  54. package/generated/models/generate-credential-entity.ts +2 -2
  55. package/generated/models/generate-request-dto.ts +18 -15
  56. package/generated/models/generate-request-entity.ts +6 -6
  57. package/generated/models/generate-subject-entity.ts +3 -3
  58. package/generated/models/get-evidence404-response.ts +42 -0
  59. package/generated/models/group-entity.ts +3 -3
  60. package/generated/models/groups-entity.ts +1 -1
  61. package/generated/models/identity-dto.ts +27 -27
  62. package/generated/models/identity-event-decision.ts +13 -1
  63. package/generated/models/{create-subject-user-entity.ts → identity-event-user.ts} +12 -12
  64. package/generated/models/identity-event.ts +14 -18
  65. package/generated/models/{identity-event-identity.ts → identity-payload.ts} +12 -12
  66. package/generated/models/index.ts +55 -32
  67. package/generated/models/{action-type.ts → json-value.ts} +6 -12
  68. package/generated/models/{mandate-data-dto-value.ts → organization-data-entity.ts} +9 -3
  69. package/generated/models/{issuer-detail-entity.ts → otp-error.ts} +8 -8
  70. package/generated/models/otp-failed-event-otp.ts +3 -3
  71. package/generated/models/otp-failed-event.ts +11 -15
  72. package/generated/models/partial-subject-entity.ts +42 -0
  73. package/generated/models/presentation-receipt-entity.ts +42 -0
  74. package/generated/models/presentation-response-entity.ts +39 -0
  75. package/generated/models/receipt-entity.ts +36 -0
  76. package/generated/models/request-credential-entity.ts +72 -0
  77. package/generated/models/request-detail-entity.ts +26 -20
  78. package/generated/models/request-detail-subject-entity.ts +87 -0
  79. package/generated/models/request-entity.ts +14 -8
  80. package/generated/models/request-query.ts +3 -21
  81. package/generated/models/request-subject-entity.ts +21 -6
  82. package/generated/models/requests-create400-response.ts +42 -0
  83. package/generated/models/requests-detail404-response.ts +42 -0
  84. package/generated/models/requests-entity.ts +1 -1
  85. package/generated/models/requests-resend-otp403-response.ts +42 -0
  86. package/generated/models/resend-otp403-response.ts +42 -0
  87. package/generated/models/resource-entity.ts +11 -3
  88. package/generated/models/{group-resource-entity.ts → resource-minimal-entity.ts} +13 -11
  89. package/generated/models/resource-query.ts +3 -1
  90. package/generated/models/resources-entity.ts +1 -1
  91. package/generated/models/revoke-credential-dto.ts +30 -0
  92. package/generated/models/revoke-credential-entity.ts +63 -0
  93. package/generated/models/revoke-credential400-response.ts +42 -0
  94. package/generated/models/revoke-credential409-response.ts +42 -0
  95. package/generated/models/revoke-receipt-entity.ts +42 -0
  96. package/generated/models/schema-entity.ts +57 -0
  97. package/generated/models/schema-list-entity.ts +39 -0
  98. package/generated/models/schema-query.ts +48 -0
  99. package/generated/models/schema-response-entity.ts +45 -0
  100. package/generated/models/schema-version-detail-entity.ts +72 -0
  101. package/generated/models/schema-version-list-entity.ts +39 -0
  102. package/generated/models/schema-version-response-entity.ts +54 -0
  103. package/generated/models/schema-version-summary-entity.ts +48 -0
  104. package/generated/models/subject-contact-entity.ts +7 -7
  105. package/generated/models/subject-issuer-entity.ts +69 -0
  106. package/generated/models/subject-query.ts +4 -4
  107. package/generated/models/test-event.ts +11 -15
  108. package/generated/models/user-create400-response.ts +42 -0
  109. package/generated/models/user-detail400-response.ts +42 -0
  110. package/generated/models/user-detail404-response.ts +42 -0
  111. package/generated/models/verification-method-entity.ts +48 -0
  112. package/generated/models/verify-allow-response-entity.ts +61 -0
  113. package/generated/models/verify-deny-response-entity.ts +79 -0
  114. package/generated/models/verify-evaluation-entity.ts +51 -0
  115. package/generated/models/verify-presentation-dto.ts +36 -0
  116. package/generated/models/verify-receipt-entity.ts +42 -0
  117. package/generated/models/w3-cverifiable-credential-credential-subject-mandate-action.ts +44 -0
  118. package/generated/models/w3-cverifiable-credential-credential-subject-mandate-constraint-constraint-schema.ts +44 -0
  119. package/generated/models/w3-cverifiable-credential-credential-subject-mandate-constraint.ts +41 -0
  120. package/generated/models/w3-cverifiable-credential-credential-subject-mandate-context.ts +32 -0
  121. package/generated/models/{mandate-data-type.ts → w3-cverifiable-credential-credential-subject-mandate-grantor.ts} +3 -16
  122. package/generated/models/w3-cverifiable-credential-credential-subject-mandate.ts +65 -0
  123. package/generated/models/w3-cverifiable-credential-credential-subject.ts +41 -0
  124. package/generated/models/w3-cverifiable-credential-evidences-inner.ts +42 -0
  125. package/generated/models/w3-cverifiable-credential-proofs-inner.ts +62 -0
  126. package/generated/models/w3-cverifiable-credential-valid-from.ts +24 -0
  127. package/generated/models/w3-cverifiable-credential-valid-until.ts +24 -0
  128. package/generated/models/w3-cverifiable-credential.ts +24 -25
  129. package/generated/models/webhook-call-event.ts +6 -12
  130. package/package.json +1 -1
  131. package/generated/models/credential-full-entity.ts +0 -82
  132. package/generated/models/get-credential-entity.ts +0 -48
  133. package/generated/models/identity-field-placement.ts +0 -73
  134. package/generated/models/identity-field-type.ts +0 -38
  135. package/generated/models/mandate-data-dto-type.ts +0 -73
  136. package/generated/models/mandate-data-dto.ts +0 -71
  137. package/generated/models/signature-placement-item-dto.ts +0 -72
  138. package/generated/models/signature-placement.ts +0 -56
  139. package/generated/models/subject-entity.ts +0 -48
  140. package/generated/models/w3-cproof.ts +0 -82
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  // src/client.ts
2
2
  import axios from "axios";
3
3
 
4
- // generated/api/credentials-api.ts
4
+ // generated/api/actions-api.ts
5
5
  import globalAxios2 from "axios";
6
6
 
7
7
  // generated/base.ts
@@ -64,45 +64,775 @@ var serializeDataIfNeeded = function(value, requestOptions, configuration) {
64
64
  var toPathString = function(url) {
65
65
  return url.pathname + url.search + url.hash;
66
66
  };
67
- var createRequestFunction = function(axiosArgs, globalAxios6, BASE_PATH2, configuration) {
68
- return (axios2 = globalAxios6, basePath = BASE_PATH2) => {
67
+ var createRequestFunction = function(axiosArgs, globalAxios10, BASE_PATH2, configuration) {
68
+ return (axios2 = globalAxios10, basePath = BASE_PATH2) => {
69
69
  const axiosRequestArgs = { ...axiosArgs.options, url: (axios2.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url };
70
70
  return axios2.request(axiosRequestArgs);
71
71
  };
72
72
  };
73
73
 
74
+ // generated/api/actions-api.ts
75
+ var ActionsApiAxiosParamCreator = function(configuration) {
76
+ return {
77
+ /**
78
+ * Retrieve actions for the authenticated organization. Only published versions are ever exposed here; drafts are hidden from public clients.
79
+ * @summary Get Actions
80
+ * @param {number} [pageIndex] Page number
81
+ * @param {number} [pageSize] Number of items per page
82
+ * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
83
+ * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
84
+ * @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.
85
+ * @param {*} [options] Override http request option.
86
+ * @throws {RequiredError}
87
+ */
88
+ list: async (pageIndex, pageSize, search, active, aPIVersion, options = {}) => {
89
+ const localVarPath = `/actions`;
90
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
91
+ let baseOptions;
92
+ if (configuration) {
93
+ baseOptions = configuration.baseOptions;
94
+ }
95
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
96
+ const localVarHeaderParameter = {};
97
+ const localVarQueryParameter = {};
98
+ if (pageIndex !== void 0) {
99
+ localVarQueryParameter["pageIndex"] = pageIndex;
100
+ }
101
+ if (pageSize !== void 0) {
102
+ localVarQueryParameter["pageSize"] = pageSize;
103
+ }
104
+ if (search !== void 0) {
105
+ localVarQueryParameter["search"] = search;
106
+ }
107
+ if (active !== void 0) {
108
+ localVarQueryParameter["active"] = active;
109
+ }
110
+ if (aPIVersion != null) {
111
+ localVarHeaderParameter["API-Version"] = String(aPIVersion);
112
+ }
113
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
114
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
115
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
116
+ return {
117
+ url: toPathString(localVarUrlObj),
118
+ options: localVarRequestOptions
119
+ };
120
+ },
121
+ /**
122
+ * Retrieve published versions of an action. Drafts are hidden from public clients.
123
+ * @summary Get Versions
124
+ * @param {string} id
125
+ * @param {number} [pageIndex] Page number
126
+ * @param {number} [pageSize] Number of items per page
127
+ * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
128
+ * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
129
+ * @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.
130
+ * @param {*} [options] Override http request option.
131
+ * @throws {RequiredError}
132
+ */
133
+ versions: async (id, pageIndex, pageSize, search, active, aPIVersion, options = {}) => {
134
+ assertParamExists("versions", "id", id);
135
+ const localVarPath = `/actions/version/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
136
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
137
+ let baseOptions;
138
+ if (configuration) {
139
+ baseOptions = configuration.baseOptions;
140
+ }
141
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
142
+ const localVarHeaderParameter = {};
143
+ const localVarQueryParameter = {};
144
+ if (pageIndex !== void 0) {
145
+ localVarQueryParameter["pageIndex"] = pageIndex;
146
+ }
147
+ if (pageSize !== void 0) {
148
+ localVarQueryParameter["pageSize"] = pageSize;
149
+ }
150
+ if (search !== void 0) {
151
+ localVarQueryParameter["search"] = search;
152
+ }
153
+ if (active !== void 0) {
154
+ localVarQueryParameter["active"] = active;
155
+ }
156
+ if (aPIVersion != null) {
157
+ localVarHeaderParameter["API-Version"] = String(aPIVersion);
158
+ }
159
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
160
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
161
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
162
+ return {
163
+ url: toPathString(localVarUrlObj),
164
+ options: localVarRequestOptions
165
+ };
166
+ }
167
+ };
168
+ };
169
+ var ActionsApiFp = function(configuration) {
170
+ const localVarAxiosParamCreator = ActionsApiAxiosParamCreator(configuration);
171
+ return {
172
+ /**
173
+ * Retrieve actions for the authenticated organization. Only published versions are ever exposed here; drafts are hidden from public clients.
174
+ * @summary Get Actions
175
+ * @param {number} [pageIndex] Page number
176
+ * @param {number} [pageSize] Number of items per page
177
+ * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
178
+ * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
179
+ * @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.
180
+ * @param {*} [options] Override http request option.
181
+ * @throws {RequiredError}
182
+ */
183
+ async list(pageIndex, pageSize, search, active, aPIVersion, options) {
184
+ const localVarAxiosArgs = await localVarAxiosParamCreator.list(pageIndex, pageSize, search, active, aPIVersion, options);
185
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
186
+ const localVarOperationServerBasePath = operationServerMap["ActionsApi.list"]?.[localVarOperationServerIndex]?.url;
187
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
188
+ },
189
+ /**
190
+ * Retrieve published versions of an action. Drafts are hidden from public clients.
191
+ * @summary Get Versions
192
+ * @param {string} id
193
+ * @param {number} [pageIndex] Page number
194
+ * @param {number} [pageSize] Number of items per page
195
+ * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
196
+ * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
197
+ * @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.
198
+ * @param {*} [options] Override http request option.
199
+ * @throws {RequiredError}
200
+ */
201
+ async versions(id, pageIndex, pageSize, search, active, aPIVersion, options) {
202
+ const localVarAxiosArgs = await localVarAxiosParamCreator.versions(id, pageIndex, pageSize, search, active, aPIVersion, options);
203
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
204
+ const localVarOperationServerBasePath = operationServerMap["ActionsApi.versions"]?.[localVarOperationServerIndex]?.url;
205
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
206
+ }
207
+ };
208
+ };
209
+ var ActionsApiFactory = function(configuration, basePath, axios2) {
210
+ const localVarFp = ActionsApiFp(configuration);
211
+ return {
212
+ /**
213
+ * Retrieve actions for the authenticated organization. Only published versions are ever exposed here; drafts are hidden from public clients.
214
+ * @summary Get Actions
215
+ * @param {number} [pageIndex] Page number
216
+ * @param {number} [pageSize] Number of items per page
217
+ * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
218
+ * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
219
+ * @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.
220
+ * @param {*} [options] Override http request option.
221
+ * @throws {RequiredError}
222
+ */
223
+ list(pageIndex, pageSize, search, active, aPIVersion, options) {
224
+ return localVarFp.list(pageIndex, pageSize, search, active, aPIVersion, options).then((request) => request(axios2, basePath));
225
+ },
226
+ /**
227
+ * Retrieve published versions of an action. Drafts are hidden from public clients.
228
+ * @summary Get Versions
229
+ * @param {string} id
230
+ * @param {number} [pageIndex] Page number
231
+ * @param {number} [pageSize] Number of items per page
232
+ * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
233
+ * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
234
+ * @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.
235
+ * @param {*} [options] Override http request option.
236
+ * @throws {RequiredError}
237
+ */
238
+ versions(id, pageIndex, pageSize, search, active, aPIVersion, options) {
239
+ return localVarFp.versions(id, pageIndex, pageSize, search, active, aPIVersion, options).then((request) => request(axios2, basePath));
240
+ }
241
+ };
242
+ };
243
+ var ActionsApi = class extends BaseAPI {
244
+ /**
245
+ * Retrieve actions for the authenticated organization. Only published versions are ever exposed here; drafts are hidden from public clients.
246
+ * @summary Get Actions
247
+ * @param {number} [pageIndex] Page number
248
+ * @param {number} [pageSize] Number of items per page
249
+ * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
250
+ * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
251
+ * @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.
252
+ * @param {*} [options] Override http request option.
253
+ * @throws {RequiredError}
254
+ * @memberof ActionsApi
255
+ */
256
+ list(pageIndex, pageSize, search, active, aPIVersion, options) {
257
+ return ActionsApiFp(this.configuration).list(pageIndex, pageSize, search, active, aPIVersion, options).then((request) => request(this.axios, this.basePath));
258
+ }
259
+ /**
260
+ * Retrieve published versions of an action. Drafts are hidden from public clients.
261
+ * @summary Get Versions
262
+ * @param {string} id
263
+ * @param {number} [pageIndex] Page number
264
+ * @param {number} [pageSize] Number of items per page
265
+ * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
266
+ * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
267
+ * @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.
268
+ * @param {*} [options] Override http request option.
269
+ * @throws {RequiredError}
270
+ * @memberof ActionsApi
271
+ */
272
+ versions(id, pageIndex, pageSize, search, active, aPIVersion, options) {
273
+ return ActionsApiFp(this.configuration).versions(id, pageIndex, pageSize, search, active, aPIVersion, options).then((request) => request(this.axios, this.basePath));
274
+ }
275
+ };
276
+
277
+ // generated/api/activity-api.ts
278
+ import globalAxios3 from "axios";
279
+ var ActivityApiAxiosParamCreator = function(configuration) {
280
+ return {
281
+ /**
282
+ * Retrieve a paginated list of activity events for your organization. Events are returned in descending chronological order (most recent first). Filter by event type, entity, actor / subject DID, or date range. Payload schemas vary by event `type` — see the `ActivityEventPayloads` type in `@humanos/lib` for the per-type fields.
283
+ * @summary List Activity Events
284
+ * @param {number} [pageIndex] Page number
285
+ * @param {number} [pageSize] Number of items per page
286
+ * @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
+ * @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
+ * @param {string} [entityId] Filter by a specific entity id (must be a valid MongoDB ObjectId).
289
+ * @param {string} [actorDid] Filter by the DID of the actor that triggered the event.
290
+ * @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
+ * @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
+ * @param {*} [options] Override http request option.
295
+ * @throws {RequiredError}
296
+ */
297
+ list: async (pageIndex, pageSize, type, entityType, entityId, actorDid, subjectDid, dateFrom, dateTo, aPIVersion, options = {}) => {
298
+ const localVarPath = `/activity`;
299
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
300
+ let baseOptions;
301
+ if (configuration) {
302
+ baseOptions = configuration.baseOptions;
303
+ }
304
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
305
+ const localVarHeaderParameter = {};
306
+ const localVarQueryParameter = {};
307
+ if (pageIndex !== void 0) {
308
+ localVarQueryParameter["pageIndex"] = pageIndex;
309
+ }
310
+ if (pageSize !== void 0) {
311
+ localVarQueryParameter["pageSize"] = pageSize;
312
+ }
313
+ if (type) {
314
+ localVarQueryParameter["type"] = type;
315
+ }
316
+ if (entityType !== void 0) {
317
+ localVarQueryParameter["entityType"] = entityType;
318
+ }
319
+ if (entityId !== void 0) {
320
+ localVarQueryParameter["entityId"] = entityId;
321
+ }
322
+ if (actorDid !== void 0) {
323
+ localVarQueryParameter["actorDid"] = actorDid;
324
+ }
325
+ if (subjectDid !== void 0) {
326
+ localVarQueryParameter["subjectDid"] = subjectDid;
327
+ }
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
+ if (aPIVersion != null) {
335
+ localVarHeaderParameter["API-Version"] = String(aPIVersion);
336
+ }
337
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
338
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
339
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
340
+ return {
341
+ url: toPathString(localVarUrlObj),
342
+ options: localVarRequestOptions
343
+ };
344
+ }
345
+ };
346
+ };
347
+ var ActivityApiFp = function(configuration) {
348
+ const localVarAxiosParamCreator = ActivityApiAxiosParamCreator(configuration);
349
+ return {
350
+ /**
351
+ * Retrieve a paginated list of activity events for your organization. Events are returned in descending chronological order (most recent first). Filter by event type, entity, actor / subject DID, or date range. Payload schemas vary by event `type` — see the `ActivityEventPayloads` type in `@humanos/lib` for the per-type fields.
352
+ * @summary List Activity Events
353
+ * @param {number} [pageIndex] Page number
354
+ * @param {number} [pageSize] Number of items per page
355
+ * @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
+ * @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
+ * @param {string} [entityId] Filter by a specific entity id (must be a valid MongoDB ObjectId).
358
+ * @param {string} [actorDid] Filter by the DID of the actor that triggered the event.
359
+ * @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
+ * @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
+ * @param {*} [options] Override http request option.
364
+ * @throws {RequiredError}
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);
368
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
369
+ const localVarOperationServerBasePath = operationServerMap["ActivityApi.list"]?.[localVarOperationServerIndex]?.url;
370
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
371
+ }
372
+ };
373
+ };
374
+ var ActivityApiFactory = function(configuration, basePath, axios2) {
375
+ const localVarFp = ActivityApiFp(configuration);
376
+ return {
377
+ /**
378
+ * Retrieve a paginated list of activity events for your organization. Events are returned in descending chronological order (most recent first). Filter by event type, entity, actor / subject DID, or date range. Payload schemas vary by event `type` — see the `ActivityEventPayloads` type in `@humanos/lib` for the per-type fields.
379
+ * @summary List Activity Events
380
+ * @param {number} [pageIndex] Page number
381
+ * @param {number} [pageSize] Number of items per page
382
+ * @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
+ * @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
+ * @param {string} [entityId] Filter by a specific entity id (must be a valid MongoDB ObjectId).
385
+ * @param {string} [actorDid] Filter by the DID of the actor that triggered the event.
386
+ * @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
+ * @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
+ * @param {*} [options] Override http request option.
391
+ * @throws {RequiredError}
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));
395
+ }
396
+ };
397
+ };
398
+ var ActivityApi = class extends BaseAPI {
399
+ /**
400
+ * Retrieve a paginated list of activity events for your organization. Events are returned in descending chronological order (most recent first). Filter by event type, entity, actor / subject DID, or date range. Payload schemas vary by event `type` — see the `ActivityEventPayloads` type in `@humanos/lib` for the per-type fields.
401
+ * @summary List Activity Events
402
+ * @param {number} [pageIndex] Page number
403
+ * @param {number} [pageSize] Number of items per page
404
+ * @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
+ * @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
+ * @param {string} [entityId] Filter by a specific entity id (must be a valid MongoDB ObjectId).
407
+ * @param {string} [actorDid] Filter by the DID of the actor that triggered the event.
408
+ * @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
+ * @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
+ * @param {*} [options] Override http request option.
413
+ * @throws {RequiredError}
414
+ * @memberof ActivityApi
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));
418
+ }
419
+ };
420
+ var ListTypeEnum = {
421
+ RequestCreated: "REQUEST_CREATED",
422
+ RequestCanceled: "REQUEST_CANCELED",
423
+ VpCreated: "VP_CREATED",
424
+ VpDenied: "VP_DENIED",
425
+ VpVerified: "VP_VERIFIED",
426
+ VpVerificationDenied: "VP_VERIFICATION_DENIED",
427
+ UserDecisionAccepted: "USER_DECISION_ACCEPTED",
428
+ UserDecisionRejected: "USER_DECISION_REJECTED",
429
+ MandateIssued: "MANDATE_ISSUED",
430
+ MandateRevoked: "MANDATE_REVOKED",
431
+ KycAccepted: "KYC_ACCEPTED",
432
+ KycRejected: "KYC_REJECTED"
433
+ };
434
+
435
+ // generated/api/approval-api.ts
436
+ import globalAxios4 from "axios";
437
+ var ApprovalApiAxiosParamCreator = function(configuration) {
438
+ return {
439
+ /**
440
+ * Retrieve a paginated list of your approvals. Approvals can be documents, consents, forms.
441
+ * @summary Get Approvals
442
+ * @param {number} [pageIndex] Page number
443
+ * @param {number} [pageSize] Number of items per page
444
+ * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
445
+ * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
446
+ * @param {Array<ListTypesEnum>} [types] Filter by resource types. Can be a single value or array
447
+ * @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
448
+ * @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\&#39;s date.
449
+ * @param {*} [options] Override http request option.
450
+ * @throws {RequiredError}
451
+ */
452
+ list: async (pageIndex, pageSize, search, active, types, internalId, aPIVersion, options = {}) => {
453
+ const localVarPath = `/approvals`;
454
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
455
+ let baseOptions;
456
+ if (configuration) {
457
+ baseOptions = configuration.baseOptions;
458
+ }
459
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
460
+ const localVarHeaderParameter = {};
461
+ const localVarQueryParameter = {};
462
+ if (pageIndex !== void 0) {
463
+ localVarQueryParameter["pageIndex"] = pageIndex;
464
+ }
465
+ if (pageSize !== void 0) {
466
+ localVarQueryParameter["pageSize"] = pageSize;
467
+ }
468
+ if (search !== void 0) {
469
+ localVarQueryParameter["search"] = search;
470
+ }
471
+ if (active !== void 0) {
472
+ localVarQueryParameter["active"] = active;
473
+ }
474
+ if (types) {
475
+ localVarQueryParameter["types"] = types;
476
+ }
477
+ if (internalId !== void 0) {
478
+ localVarQueryParameter["internalId"] = internalId;
479
+ }
480
+ if (aPIVersion != null) {
481
+ localVarHeaderParameter["API-Version"] = String(aPIVersion);
482
+ }
483
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
484
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
485
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
486
+ return {
487
+ url: toPathString(localVarUrlObj),
488
+ options: localVarRequestOptions
489
+ };
490
+ },
491
+ /**
492
+ * Retrieve a paginated list of your workflows, including their approvals. Workflows allow to pack approvals together and easily request them.
493
+ * @summary List Workflows
494
+ * @param {number} [pageIndex] Page number
495
+ * @param {number} [pageSize] Number of items per page
496
+ * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
497
+ * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
498
+ * @param {Array<WorkflowsTypesEnum>} [types] Filter by resource types. Can be a single value or array
499
+ * @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
500
+ * @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.
501
+ * @param {*} [options] Override http request option.
502
+ * @throws {RequiredError}
503
+ */
504
+ workflows: async (pageIndex, pageSize, search, active, types, internalId, aPIVersion, options = {}) => {
505
+ const localVarPath = `/approvals/workflow`;
506
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
507
+ let baseOptions;
508
+ if (configuration) {
509
+ baseOptions = configuration.baseOptions;
510
+ }
511
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
512
+ const localVarHeaderParameter = {};
513
+ const localVarQueryParameter = {};
514
+ if (pageIndex !== void 0) {
515
+ localVarQueryParameter["pageIndex"] = pageIndex;
516
+ }
517
+ if (pageSize !== void 0) {
518
+ localVarQueryParameter["pageSize"] = pageSize;
519
+ }
520
+ if (search !== void 0) {
521
+ localVarQueryParameter["search"] = search;
522
+ }
523
+ if (active !== void 0) {
524
+ localVarQueryParameter["active"] = active;
525
+ }
526
+ if (types) {
527
+ localVarQueryParameter["types"] = types;
528
+ }
529
+ if (internalId !== void 0) {
530
+ localVarQueryParameter["internalId"] = internalId;
531
+ }
532
+ if (aPIVersion != null) {
533
+ localVarHeaderParameter["API-Version"] = String(aPIVersion);
534
+ }
535
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
536
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
537
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
538
+ return {
539
+ url: toPathString(localVarUrlObj),
540
+ options: localVarRequestOptions
541
+ };
542
+ }
543
+ };
544
+ };
545
+ var ApprovalApiFp = function(configuration) {
546
+ const localVarAxiosParamCreator = ApprovalApiAxiosParamCreator(configuration);
547
+ return {
548
+ /**
549
+ * Retrieve a paginated list of your approvals. Approvals can be documents, consents, forms.
550
+ * @summary Get Approvals
551
+ * @param {number} [pageIndex] Page number
552
+ * @param {number} [pageSize] Number of items per page
553
+ * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
554
+ * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
555
+ * @param {Array<ListTypesEnum>} [types] Filter by resource types. Can be a single value or array
556
+ * @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
557
+ * @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.
558
+ * @param {*} [options] Override http request option.
559
+ * @throws {RequiredError}
560
+ */
561
+ async list(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options) {
562
+ const localVarAxiosArgs = await localVarAxiosParamCreator.list(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options);
563
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
564
+ const localVarOperationServerBasePath = operationServerMap["ApprovalApi.list"]?.[localVarOperationServerIndex]?.url;
565
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios4, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
566
+ },
567
+ /**
568
+ * Retrieve a paginated list of your workflows, including their approvals. Workflows allow to pack approvals together and easily request them.
569
+ * @summary List Workflows
570
+ * @param {number} [pageIndex] Page number
571
+ * @param {number} [pageSize] Number of items per page
572
+ * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
573
+ * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
574
+ * @param {Array<WorkflowsTypesEnum>} [types] Filter by resource types. Can be a single value or array
575
+ * @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
576
+ * @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.
577
+ * @param {*} [options] Override http request option.
578
+ * @throws {RequiredError}
579
+ */
580
+ async workflows(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options) {
581
+ const localVarAxiosArgs = await localVarAxiosParamCreator.workflows(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options);
582
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
583
+ const localVarOperationServerBasePath = operationServerMap["ApprovalApi.workflows"]?.[localVarOperationServerIndex]?.url;
584
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios4, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
585
+ }
586
+ };
587
+ };
588
+ var ApprovalApiFactory = function(configuration, basePath, axios2) {
589
+ const localVarFp = ApprovalApiFp(configuration);
590
+ return {
591
+ /**
592
+ * Retrieve a paginated list of your approvals. Approvals can be documents, consents, forms.
593
+ * @summary Get Approvals
594
+ * @param {number} [pageIndex] Page number
595
+ * @param {number} [pageSize] Number of items per page
596
+ * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
597
+ * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
598
+ * @param {Array<ListTypesEnum>} [types] Filter by resource types. Can be a single value or array
599
+ * @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
600
+ * @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.
601
+ * @param {*} [options] Override http request option.
602
+ * @throws {RequiredError}
603
+ */
604
+ list(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options) {
605
+ return localVarFp.list(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options).then((request) => request(axios2, basePath));
606
+ },
607
+ /**
608
+ * Retrieve a paginated list of your workflows, including their approvals. Workflows allow to pack approvals together and easily request them.
609
+ * @summary List Workflows
610
+ * @param {number} [pageIndex] Page number
611
+ * @param {number} [pageSize] Number of items per page
612
+ * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
613
+ * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
614
+ * @param {Array<WorkflowsTypesEnum>} [types] Filter by resource types. Can be a single value or array
615
+ * @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
616
+ * @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.
617
+ * @param {*} [options] Override http request option.
618
+ * @throws {RequiredError}
619
+ */
620
+ workflows(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options) {
621
+ return localVarFp.workflows(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options).then((request) => request(axios2, basePath));
622
+ }
623
+ };
624
+ };
625
+ var ApprovalApi = class extends BaseAPI {
626
+ /**
627
+ * Retrieve a paginated list of your approvals. Approvals can be documents, consents, forms.
628
+ * @summary Get Approvals
629
+ * @param {number} [pageIndex] Page number
630
+ * @param {number} [pageSize] Number of items per page
631
+ * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
632
+ * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
633
+ * @param {Array<ListTypesEnum>} [types] Filter by resource types. Can be a single value or array
634
+ * @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
635
+ * @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.
636
+ * @param {*} [options] Override http request option.
637
+ * @throws {RequiredError}
638
+ * @memberof ApprovalApi
639
+ */
640
+ list(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options) {
641
+ return ApprovalApiFp(this.configuration).list(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
642
+ }
643
+ /**
644
+ * Retrieve a paginated list of your workflows, including their approvals. Workflows allow to pack approvals together and easily request them.
645
+ * @summary List Workflows
646
+ * @param {number} [pageIndex] Page number
647
+ * @param {number} [pageSize] Number of items per page
648
+ * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
649
+ * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
650
+ * @param {Array<WorkflowsTypesEnum>} [types] Filter by resource types. Can be a single value or array
651
+ * @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
652
+ * @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.
653
+ * @param {*} [options] Override http request option.
654
+ * @throws {RequiredError}
655
+ * @memberof ApprovalApi
656
+ */
657
+ workflows(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options) {
658
+ return ApprovalApiFp(this.configuration).workflows(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
659
+ }
660
+ };
661
+ var ListTypesEnum = {
662
+ Consent: "CONSENT",
663
+ Form: "FORM",
664
+ Document: "DOCUMENT",
665
+ Json: "JSON",
666
+ Payment: "PAYMENT",
667
+ Policy: "POLICY"
668
+ };
669
+ var WorkflowsTypesEnum = {
670
+ Consent: "CONSENT",
671
+ Form: "FORM",
672
+ Document: "DOCUMENT",
673
+ Json: "JSON",
674
+ Payment: "PAYMENT",
675
+ Policy: "POLICY"
676
+ };
677
+
74
678
  // generated/api/credentials-api.ts
679
+ import globalAxios5 from "axios";
75
680
  var CredentialsApiAxiosParamCreator = function(configuration) {
76
681
  return {
77
682
  /**
78
- * Retrieve a specific credential by its ID Returns the W3C Verifiable Credential data structure including cryptographic proofs Optionally includes the PDF content for document type credentials
79
- * @summary Get Credential
80
- * @param {string} credentialId Unique identifier of the credential. Must be a valid MongoDB ObjectId.
81
- * @param {boolean} [includePdf] Whether to include the PDF content for document type credentials
683
+ * Retrieve a credential by its identifier, including the full W3C Verifiable Credential, and the latest status of all grantor decisions.
684
+ * @summary Get Credential
685
+ * @param {string} credentialId Identifier of the credential
686
+ * @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\&#39;s date.
687
+ * @param {*} [options] Override http request option.
688
+ * @throws {RequiredError}
689
+ */
690
+ detail: async (credentialId, aPIVersion, options = {}) => {
691
+ assertParamExists("detail", "credentialId", credentialId);
692
+ const localVarPath = `/credential/{credentialId}`.replace(`{${"credentialId"}}`, encodeURIComponent(String(credentialId)));
693
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
694
+ let baseOptions;
695
+ if (configuration) {
696
+ baseOptions = configuration.baseOptions;
697
+ }
698
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
699
+ const localVarHeaderParameter = {};
700
+ const localVarQueryParameter = {};
701
+ if (aPIVersion != null) {
702
+ localVarHeaderParameter["API-Version"] = String(aPIVersion);
703
+ }
704
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
705
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
706
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
707
+ return {
708
+ url: toPathString(localVarUrlObj),
709
+ options: localVarRequestOptions
710
+ };
711
+ },
712
+ /**
713
+ *
714
+ * @summary Get evidence
715
+ * @param {string} evidenceId Unique identifier of the evidence file
716
+ * @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.
717
+ * @param {*} [options] Override http request option.
718
+ * @throws {RequiredError}
719
+ */
720
+ evidence: async (evidenceId, aPIVersion, options = {}) => {
721
+ assertParamExists("evidence", "evidenceId", evidenceId);
722
+ const localVarPath = `/credential/evidence/{evidenceId}`.replace(`{${"evidenceId"}}`, encodeURIComponent(String(evidenceId)));
723
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
724
+ let baseOptions;
725
+ if (configuration) {
726
+ baseOptions = configuration.baseOptions;
727
+ }
728
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
729
+ const localVarHeaderParameter = {};
730
+ const localVarQueryParameter = {};
731
+ if (aPIVersion != null) {
732
+ localVarHeaderParameter["API-Version"] = String(aPIVersion);
733
+ }
734
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
735
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
736
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
737
+ return {
738
+ url: toPathString(localVarUrlObj),
739
+ options: localVarRequestOptions
740
+ };
741
+ },
742
+ /**
743
+ * Build and sign a W3C Verifiable Presentation for a stored credential. The API key must belong to the credential owner.
744
+ * @summary Issue VP
745
+ * @param {string} vcId DID of the credential to present.
746
+ * @param {CreatePresentationDto} createPresentationDto
82
747
  * @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.
83
748
  * @param {*} [options] Override http request option.
84
749
  * @throws {RequiredError}
85
750
  */
86
- getCredential: async (credentialId, includePdf, aPIVersion, options = {}) => {
87
- assertParamExists("getCredential", "credentialId", credentialId);
88
- const localVarPath = `/credential/{credentialId}`.replace(`{${"credentialId"}}`, encodeURIComponent(String(credentialId)));
751
+ issueVP: async (vcId, createPresentationDto, aPIVersion, options = {}) => {
752
+ assertParamExists("issueVP", "vcId", vcId);
753
+ assertParamExists("issueVP", "createPresentationDto", createPresentationDto);
754
+ const localVarPath = `/credential/vp/{vcId}`.replace(`{${"vcId"}}`, encodeURIComponent(String(vcId)));
89
755
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
90
756
  let baseOptions;
91
757
  if (configuration) {
92
758
  baseOptions = configuration.baseOptions;
93
759
  }
94
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
760
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
761
+ const localVarHeaderParameter = {};
762
+ const localVarQueryParameter = {};
763
+ localVarHeaderParameter["Content-Type"] = "application/json";
764
+ if (aPIVersion != null) {
765
+ localVarHeaderParameter["API-Version"] = String(aPIVersion);
766
+ }
767
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
768
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
769
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
770
+ localVarRequestOptions.data = serializeDataIfNeeded(createPresentationDto, localVarRequestOptions, configuration);
771
+ return {
772
+ url: toPathString(localVarUrlObj),
773
+ options: localVarRequestOptions
774
+ };
775
+ },
776
+ /**
777
+ * Permanently revoke an active credential. Flips status to REVOKED, records revokedAt and revocationReason, Issues a MANDATE_REVOKED receipt, and emits a MANDATE_REVOKED activity event. Subsequent /vp and /verify calls for this credential are denied with reason credential_revoked.
778
+ * @summary Revoke Credential
779
+ * @param {string} credentialId URN of the credential to revoke
780
+ * @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.
781
+ * @param {RevokeCredentialDto} [revokeCredentialDto]
782
+ * @param {*} [options] Override http request option.
783
+ * @throws {RequiredError}
784
+ */
785
+ revoke: async (credentialId, aPIVersion, revokeCredentialDto, options = {}) => {
786
+ assertParamExists("revoke", "credentialId", credentialId);
787
+ const localVarPath = `/credential/revoke/{credentialId}`.replace(`{${"credentialId"}}`, encodeURIComponent(String(credentialId)));
788
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
789
+ let baseOptions;
790
+ if (configuration) {
791
+ baseOptions = configuration.baseOptions;
792
+ }
793
+ const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
95
794
  const localVarHeaderParameter = {};
96
795
  const localVarQueryParameter = {};
97
- if (includePdf !== void 0) {
98
- localVarQueryParameter["includePdf"] = includePdf;
796
+ localVarHeaderParameter["Content-Type"] = "application/json";
797
+ if (aPIVersion != null) {
798
+ localVarHeaderParameter["API-Version"] = String(aPIVersion);
799
+ }
800
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
801
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
802
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
803
+ localVarRequestOptions.data = serializeDataIfNeeded(revokeCredentialDto, localVarRequestOptions, configuration);
804
+ return {
805
+ url: toPathString(localVarUrlObj),
806
+ options: localVarRequestOptions
807
+ };
808
+ },
809
+ /**
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.
811
+ * @summary Verify VP
812
+ * @param {VerifyPresentationDto} verifyPresentationDto
813
+ * @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.
814
+ * @param {*} [options] Override http request option.
815
+ * @throws {RequiredError}
816
+ */
817
+ verify: async (verifyPresentationDto, aPIVersion, options = {}) => {
818
+ assertParamExists("verify", "verifyPresentationDto", verifyPresentationDto);
819
+ const localVarPath = `/credential/verify`;
820
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
821
+ let baseOptions;
822
+ if (configuration) {
823
+ baseOptions = configuration.baseOptions;
99
824
  }
825
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
826
+ const localVarHeaderParameter = {};
827
+ const localVarQueryParameter = {};
828
+ localVarHeaderParameter["Content-Type"] = "application/json";
100
829
  if (aPIVersion != null) {
101
830
  localVarHeaderParameter["API-Version"] = String(aPIVersion);
102
831
  }
103
832
  setSearchParams(localVarUrlObj, localVarQueryParameter);
104
833
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
105
834
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
835
+ localVarRequestOptions.data = serializeDataIfNeeded(verifyPresentationDto, localVarRequestOptions, configuration);
106
836
  return {
107
837
  url: toPathString(localVarUrlObj),
108
838
  options: localVarRequestOptions
@@ -114,19 +844,76 @@ var CredentialsApiFp = function(configuration) {
114
844
  const localVarAxiosParamCreator = CredentialsApiAxiosParamCreator(configuration);
115
845
  return {
116
846
  /**
117
- * Retrieve a specific credential by its ID Returns the W3C Verifiable Credential data structure including cryptographic proofs Optionally includes the PDF content for document type credentials
847
+ * Retrieve a credential by its identifier, including the full W3C Verifiable Credential, and the latest status of all grantor decisions.
118
848
  * @summary Get Credential
119
- * @param {string} credentialId Unique identifier of the credential. Must be a valid MongoDB ObjectId.
120
- * @param {boolean} [includePdf] Whether to include the PDF content for document type credentials
849
+ * @param {string} credentialId Identifier of the credential
121
850
  * @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.
122
851
  * @param {*} [options] Override http request option.
123
852
  * @throws {RequiredError}
124
853
  */
125
- async getCredential(credentialId, includePdf, aPIVersion, options) {
126
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCredential(credentialId, includePdf, aPIVersion, options);
854
+ async detail(credentialId, aPIVersion, options) {
855
+ const localVarAxiosArgs = await localVarAxiosParamCreator.detail(credentialId, aPIVersion, options);
127
856
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
128
- const localVarOperationServerBasePath = operationServerMap["CredentialsApi.getCredential"]?.[localVarOperationServerIndex]?.url;
129
- return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
857
+ const localVarOperationServerBasePath = operationServerMap["CredentialsApi.detail"]?.[localVarOperationServerIndex]?.url;
858
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios5, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
859
+ },
860
+ /**
861
+ *
862
+ * @summary Get evidence
863
+ * @param {string} evidenceId Unique identifier of the evidence file
864
+ * @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.
865
+ * @param {*} [options] Override http request option.
866
+ * @throws {RequiredError}
867
+ */
868
+ async evidence(evidenceId, aPIVersion, options) {
869
+ const localVarAxiosArgs = await localVarAxiosParamCreator.evidence(evidenceId, aPIVersion, options);
870
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
871
+ const localVarOperationServerBasePath = operationServerMap["CredentialsApi.evidence"]?.[localVarOperationServerIndex]?.url;
872
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios5, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
873
+ },
874
+ /**
875
+ * Build and sign a W3C Verifiable Presentation for a stored credential. The API key must belong to the credential owner.
876
+ * @summary Issue VP
877
+ * @param {string} vcId DID of the credential to present.
878
+ * @param {CreatePresentationDto} createPresentationDto
879
+ * @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.
880
+ * @param {*} [options] Override http request option.
881
+ * @throws {RequiredError}
882
+ */
883
+ async issueVP(vcId, createPresentationDto, aPIVersion, options) {
884
+ const localVarAxiosArgs = await localVarAxiosParamCreator.issueVP(vcId, createPresentationDto, aPIVersion, options);
885
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
886
+ const localVarOperationServerBasePath = operationServerMap["CredentialsApi.issueVP"]?.[localVarOperationServerIndex]?.url;
887
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios5, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
888
+ },
889
+ /**
890
+ * Permanently revoke an active credential. Flips status to REVOKED, records revokedAt and revocationReason, Issues a MANDATE_REVOKED receipt, and emits a MANDATE_REVOKED activity event. Subsequent /vp and /verify calls for this credential are denied with reason credential_revoked.
891
+ * @summary Revoke Credential
892
+ * @param {string} credentialId URN of the credential to revoke
893
+ * @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.
894
+ * @param {RevokeCredentialDto} [revokeCredentialDto]
895
+ * @param {*} [options] Override http request option.
896
+ * @throws {RequiredError}
897
+ */
898
+ async revoke(credentialId, aPIVersion, revokeCredentialDto, options) {
899
+ const localVarAxiosArgs = await localVarAxiosParamCreator.revoke(credentialId, aPIVersion, revokeCredentialDto, options);
900
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
901
+ const localVarOperationServerBasePath = operationServerMap["CredentialsApi.revoke"]?.[localVarOperationServerIndex]?.url;
902
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios5, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
903
+ },
904
+ /**
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.
906
+ * @summary Verify VP
907
+ * @param {VerifyPresentationDto} verifyPresentationDto
908
+ * @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.
909
+ * @param {*} [options] Override http request option.
910
+ * @throws {RequiredError}
911
+ */
912
+ async verify(verifyPresentationDto, aPIVersion, options) {
913
+ const localVarAxiosArgs = await localVarAxiosParamCreator.verify(verifyPresentationDto, aPIVersion, options);
914
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
915
+ const localVarOperationServerBasePath = operationServerMap["CredentialsApi.verify"]?.[localVarOperationServerIndex]?.url;
916
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios5, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
130
917
  }
131
918
  };
132
919
  };
@@ -134,49 +921,229 @@ var CredentialsApiFactory = function(configuration, basePath, axios2) {
134
921
  const localVarFp = CredentialsApiFp(configuration);
135
922
  return {
136
923
  /**
137
- * Retrieve a specific credential by its ID Returns the W3C Verifiable Credential data structure including cryptographic proofs Optionally includes the PDF content for document type credentials
924
+ * Retrieve a credential by its identifier, including the full W3C Verifiable Credential, and the latest status of all grantor decisions.
138
925
  * @summary Get Credential
139
- * @param {string} credentialId Unique identifier of the credential. Must be a valid MongoDB ObjectId.
140
- * @param {boolean} [includePdf] Whether to include the PDF content for document type credentials
926
+ * @param {string} credentialId Identifier of the credential
927
+ * @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.
928
+ * @param {*} [options] Override http request option.
929
+ * @throws {RequiredError}
930
+ */
931
+ detail(credentialId, aPIVersion, options) {
932
+ return localVarFp.detail(credentialId, aPIVersion, options).then((request) => request(axios2, basePath));
933
+ },
934
+ /**
935
+ *
936
+ * @summary Get evidence
937
+ * @param {string} evidenceId Unique identifier of the evidence file
938
+ * @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.
939
+ * @param {*} [options] Override http request option.
940
+ * @throws {RequiredError}
941
+ */
942
+ evidence(evidenceId, aPIVersion, options) {
943
+ return localVarFp.evidence(evidenceId, aPIVersion, options).then((request) => request(axios2, basePath));
944
+ },
945
+ /**
946
+ * Build and sign a W3C Verifiable Presentation for a stored credential. The API key must belong to the credential owner.
947
+ * @summary Issue VP
948
+ * @param {string} vcId DID of the credential to present.
949
+ * @param {CreatePresentationDto} createPresentationDto
950
+ * @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.
951
+ * @param {*} [options] Override http request option.
952
+ * @throws {RequiredError}
953
+ */
954
+ issueVP(vcId, createPresentationDto, aPIVersion, options) {
955
+ return localVarFp.issueVP(vcId, createPresentationDto, aPIVersion, options).then((request) => request(axios2, basePath));
956
+ },
957
+ /**
958
+ * Permanently revoke an active credential. Flips status to REVOKED, records revokedAt and revocationReason, Issues a MANDATE_REVOKED receipt, and emits a MANDATE_REVOKED activity event. Subsequent /vp and /verify calls for this credential are denied with reason credential_revoked.
959
+ * @summary Revoke Credential
960
+ * @param {string} credentialId URN of the credential to revoke
961
+ * @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.
962
+ * @param {RevokeCredentialDto} [revokeCredentialDto]
963
+ * @param {*} [options] Override http request option.
964
+ * @throws {RequiredError}
965
+ */
966
+ revoke(credentialId, aPIVersion, revokeCredentialDto, options) {
967
+ return localVarFp.revoke(credentialId, aPIVersion, revokeCredentialDto, options).then((request) => request(axios2, basePath));
968
+ },
969
+ /**
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.
971
+ * @summary Verify VP
972
+ * @param {VerifyPresentationDto} verifyPresentationDto
141
973
  * @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.
142
974
  * @param {*} [options] Override http request option.
143
975
  * @throws {RequiredError}
144
976
  */
145
- getCredential(credentialId, includePdf, aPIVersion, options) {
146
- return localVarFp.getCredential(credentialId, includePdf, aPIVersion, options).then((request) => request(axios2, basePath));
977
+ verify(verifyPresentationDto, aPIVersion, options) {
978
+ return localVarFp.verify(verifyPresentationDto, aPIVersion, options).then((request) => request(axios2, basePath));
147
979
  }
148
980
  };
149
981
  };
150
982
  var CredentialsApi = class extends BaseAPI {
151
983
  /**
152
- * Retrieve a specific credential by its ID Returns the W3C Verifiable Credential data structure including cryptographic proofs Optionally includes the PDF content for document type credentials
984
+ * Retrieve a credential by its identifier, including the full W3C Verifiable Credential, and the latest status of all grantor decisions.
153
985
  * @summary Get Credential
154
- * @param {string} credentialId Unique identifier of the credential. Must be a valid MongoDB ObjectId.
155
- * @param {boolean} [includePdf] Whether to include the PDF content for document type credentials
986
+ * @param {string} credentialId Identifier of the credential
156
987
  * @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.
157
988
  * @param {*} [options] Override http request option.
158
989
  * @throws {RequiredError}
159
990
  * @memberof CredentialsApi
160
991
  */
161
- getCredential(credentialId, includePdf, aPIVersion, options) {
162
- return CredentialsApiFp(this.configuration).getCredential(credentialId, includePdf, aPIVersion, options).then((request) => request(this.axios, this.basePath));
992
+ detail(credentialId, aPIVersion, options) {
993
+ return CredentialsApiFp(this.configuration).detail(credentialId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
994
+ }
995
+ /**
996
+ *
997
+ * @summary Get evidence
998
+ * @param {string} evidenceId Unique identifier of the evidence file
999
+ * @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.
1000
+ * @param {*} [options] Override http request option.
1001
+ * @throws {RequiredError}
1002
+ * @memberof CredentialsApi
1003
+ */
1004
+ evidence(evidenceId, aPIVersion, options) {
1005
+ return CredentialsApiFp(this.configuration).evidence(evidenceId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
1006
+ }
1007
+ /**
1008
+ * Build and sign a W3C Verifiable Presentation for a stored credential. The API key must belong to the credential owner.
1009
+ * @summary Issue VP
1010
+ * @param {string} vcId DID of the credential to present.
1011
+ * @param {CreatePresentationDto} createPresentationDto
1012
+ * @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.
1013
+ * @param {*} [options] Override http request option.
1014
+ * @throws {RequiredError}
1015
+ * @memberof CredentialsApi
1016
+ */
1017
+ issueVP(vcId, createPresentationDto, aPIVersion, options) {
1018
+ return CredentialsApiFp(this.configuration).issueVP(vcId, createPresentationDto, aPIVersion, options).then((request) => request(this.axios, this.basePath));
1019
+ }
1020
+ /**
1021
+ * Permanently revoke an active credential. Flips status to REVOKED, records revokedAt and revocationReason, Issues a MANDATE_REVOKED receipt, and emits a MANDATE_REVOKED activity event. Subsequent /vp and /verify calls for this credential are denied with reason credential_revoked.
1022
+ * @summary Revoke Credential
1023
+ * @param {string} credentialId URN of the credential to revoke
1024
+ * @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.
1025
+ * @param {RevokeCredentialDto} [revokeCredentialDto]
1026
+ * @param {*} [options] Override http request option.
1027
+ * @throws {RequiredError}
1028
+ * @memberof CredentialsApi
1029
+ */
1030
+ revoke(credentialId, aPIVersion, revokeCredentialDto, options) {
1031
+ return CredentialsApiFp(this.configuration).revoke(credentialId, aPIVersion, revokeCredentialDto, options).then((request) => request(this.axios, this.basePath));
1032
+ }
1033
+ /**
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.
1035
+ * @summary Verify VP
1036
+ * @param {VerifyPresentationDto} verifyPresentationDto
1037
+ * @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\&#39;s date.
1038
+ * @param {*} [options] Override http request option.
1039
+ * @throws {RequiredError}
1040
+ * @memberof CredentialsApi
1041
+ */
1042
+ verify(verifyPresentationDto, aPIVersion, options) {
1043
+ return CredentialsApiFp(this.configuration).verify(verifyPresentationDto, aPIVersion, options).then((request) => request(this.axios, this.basePath));
1044
+ }
1045
+ };
1046
+
1047
+ // generated/api/didapi.ts
1048
+ import globalAxios6 from "axios";
1049
+ var DIDApiAxiosParamCreator = function(configuration) {
1050
+ return {
1051
+ /**
1052
+ * Resolve a DID string to a W3C DID 1.1 Document.
1053
+ * @summary Resolve DID
1054
+ * @param {string} did The DID string to resolve
1055
+ * @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.
1056
+ * @param {*} [options] Override http request option.
1057
+ * @throws {RequiredError}
1058
+ */
1059
+ resolve: async (did, aPIVersion, options = {}) => {
1060
+ assertParamExists("resolve", "did", did);
1061
+ const localVarPath = `/did/resolve/{did}`.replace(`{${"did"}}`, encodeURIComponent(String(did)));
1062
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1063
+ let baseOptions;
1064
+ if (configuration) {
1065
+ baseOptions = configuration.baseOptions;
1066
+ }
1067
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1068
+ const localVarHeaderParameter = {};
1069
+ const localVarQueryParameter = {};
1070
+ if (aPIVersion != null) {
1071
+ localVarHeaderParameter["API-Version"] = String(aPIVersion);
1072
+ }
1073
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1074
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1075
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1076
+ return {
1077
+ url: toPathString(localVarUrlObj),
1078
+ options: localVarRequestOptions
1079
+ };
1080
+ }
1081
+ };
1082
+ };
1083
+ var DIDApiFp = function(configuration) {
1084
+ const localVarAxiosParamCreator = DIDApiAxiosParamCreator(configuration);
1085
+ return {
1086
+ /**
1087
+ * Resolve a DID string to a W3C DID 1.1 Document.
1088
+ * @summary Resolve DID
1089
+ * @param {string} did The DID string to resolve
1090
+ * @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.
1091
+ * @param {*} [options] Override http request option.
1092
+ * @throws {RequiredError}
1093
+ */
1094
+ async resolve(did, aPIVersion, options) {
1095
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resolve(did, aPIVersion, options);
1096
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1097
+ const localVarOperationServerBasePath = operationServerMap["DIDApi.resolve"]?.[localVarOperationServerIndex]?.url;
1098
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
1099
+ }
1100
+ };
1101
+ };
1102
+ var DIDApiFactory = function(configuration, basePath, axios2) {
1103
+ const localVarFp = DIDApiFp(configuration);
1104
+ return {
1105
+ /**
1106
+ * Resolve a DID string to a W3C DID 1.1 Document.
1107
+ * @summary Resolve DID
1108
+ * @param {string} did The DID string to resolve
1109
+ * @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\&#39;s date.
1110
+ * @param {*} [options] Override http request option.
1111
+ * @throws {RequiredError}
1112
+ */
1113
+ resolve(did, aPIVersion, options) {
1114
+ return localVarFp.resolve(did, aPIVersion, options).then((request) => request(axios2, basePath));
1115
+ }
1116
+ };
1117
+ };
1118
+ var DIDApi = class extends BaseAPI {
1119
+ /**
1120
+ * Resolve a DID string to a W3C DID 1.1 Document.
1121
+ * @summary Resolve DID
1122
+ * @param {string} did The DID string to resolve
1123
+ * @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.
1124
+ * @param {*} [options] Override http request option.
1125
+ * @throws {RequiredError}
1126
+ * @memberof DIDApi
1127
+ */
1128
+ resolve(did, aPIVersion, options) {
1129
+ return DIDApiFp(this.configuration).resolve(did, aPIVersion, options).then((request) => request(this.axios, this.basePath));
163
1130
  }
164
1131
  };
165
1132
 
166
1133
  // generated/api/requests-api.ts
167
- import globalAxios3 from "axios";
1134
+ import globalAxios7 from "axios";
168
1135
  var RequestsApiAxiosParamCreator = function(configuration) {
169
1136
  return {
170
1137
  /**
171
- * This action will cancel a credential request, by setting the canceledAt timestamp on the request. This operation is irreversible, and will prevent the request from being processed further by the subjects
172
- * @summary Cancel
1138
+ * This action will cancel a credential request. Once a request is canceled, it cannot be undone and will prevent the request from being completed by any subjects. A request can be canceled if it contains credentials in draft status.
1139
+ * @summary Cancel Request
173
1140
  * @param {string} requestId Unique identifier of the credential request to cancel. Must be a valid MongoDB ObjectId.
174
1141
  * @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.
175
1142
  * @param {*} [options] Override http request option.
176
1143
  * @throws {RequiredError}
177
1144
  */
178
- cancelRequest: async (requestId, aPIVersion, options = {}) => {
179
- assertParamExists("cancelRequest", "requestId", requestId);
1145
+ cancel: async (requestId, aPIVersion, options = {}) => {
1146
+ assertParamExists("cancel", "requestId", requestId);
180
1147
  const localVarPath = `/request/{requestId}`.replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
181
1148
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
182
1149
  let baseOptions;
@@ -198,15 +1165,16 @@ var RequestsApiAxiosParamCreator = function(configuration) {
198
1165
  };
199
1166
  },
200
1167
  /**
201
- * Create a new credential request for one or more subjects (users). This endpoint will: - Create credentials from resources or inline JSON data - Associate credentials with subjects - Generate and send OTPs for approval via email or SMS Request details: - Resources can be specified via group IDs, resource IDs, or as inline JSON credentials - Maximum 30 credentials per request - Maximum 20 contacts per request - OTPs are automatically sent to all subjects after creation
202
- * @summary Create
203
- * @param {GenerateRequestDto} generateRequestDto Request body containing contacts (subjects), security level, and resources to create credentials from. Resources can be specified via groupIds, resourcesIds, or inline credentials array.
1168
+ * Create a new request for one or more subjects (users). This endpoint will: - Create credentials from resources (via group IDs, resource IDs) or inline JSON data - Associate those credentials with subjects - Generate and send OTPs via email or SMS
1169
+ * @summary Create Request
1170
+ * @param {GenerateRequestDto} generateRequestDto Request body containing contacts (subjects), security level, and credentials to generate Resources can be specified via groupIds, resourcesIds, or inline credentials array.
1171
+ * @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
204
1172
  * @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.
205
1173
  * @param {*} [options] Override http request option.
206
1174
  * @throws {RequiredError}
207
1175
  */
208
- generate: async (generateRequestDto, aPIVersion, options = {}) => {
209
- assertParamExists("generate", "generateRequestDto", generateRequestDto);
1176
+ create: async (generateRequestDto, idempotencyKey, aPIVersion, options = {}) => {
1177
+ assertParamExists("create", "generateRequestDto", generateRequestDto);
210
1178
  const localVarPath = `/request`;
211
1179
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
212
1180
  let baseOptions;
@@ -217,6 +1185,9 @@ var RequestsApiAxiosParamCreator = function(configuration) {
217
1185
  const localVarHeaderParameter = {};
218
1186
  const localVarQueryParameter = {};
219
1187
  localVarHeaderParameter["Content-Type"] = "application/json";
1188
+ if (idempotencyKey != null) {
1189
+ localVarHeaderParameter["Idempotency-Key"] = String(idempotencyKey);
1190
+ }
220
1191
  if (aPIVersion != null) {
221
1192
  localVarHeaderParameter["API-Version"] = String(aPIVersion);
222
1193
  }
@@ -230,15 +1201,15 @@ var RequestsApiAxiosParamCreator = function(configuration) {
230
1201
  };
231
1202
  },
232
1203
  /**
233
- * Retrieve detailed information about a specific credential request This includes complete W3C Verifiable Credential data for each credential, subject information, agent details (if applicable), and issuer information The credentials are returned in W3C-compliant format and can be cryptographically verified
1204
+ * Retrieve detailed information about a specific credential request Just like the list requests endpoint, this endpoint includes information about the request, credentials, subjects (users) and chosen security level However, this endpoint includes the full W3C Verifiable Credential data for each credential, and the latest status of all grantor decisions
234
1205
  * @summary Get Detail
235
1206
  * @param {string} requestId Unique identifier of the credential request. Must be a valid MongoDB ObjectId.
236
1207
  * @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.
237
1208
  * @param {*} [options] Override http request option.
238
1209
  * @throws {RequiredError}
239
1210
  */
240
- getRequestDetail: async (requestId, aPIVersion, options = {}) => {
241
- assertParamExists("getRequestDetail", "requestId", requestId);
1211
+ detail: async (requestId, aPIVersion, options = {}) => {
1212
+ assertParamExists("detail", "requestId", requestId);
242
1213
  const localVarPath = `/request/{requestId}`.replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
243
1214
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
244
1215
  let baseOptions;
@@ -260,24 +1231,21 @@ var RequestsApiAxiosParamCreator = function(configuration) {
260
1231
  };
261
1232
  },
262
1233
  /**
263
- * Retrieve a paginated list of credential requests for your organization Each request includes information about the credentials, subjects (users), security level, and creation date. One exact search query must be provided
264
- * @summary Get
1234
+ * Retrieve a paginated list of your credential requests Each request includes information about the request, credentials, subjects (users) and chosen security level
1235
+ * @summary List Requests
265
1236
  * @param {number} [pageIndex] Page number
266
1237
  * @param {number} [pageSize] Number of items per page
267
1238
  * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
268
- * @param {string} [contact] Contact value (email or phone)
269
- * @param {string} [did] Public Decentralized Identifier (DID) of the user
270
- * @param {string} [subjectInternalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
271
- * @param {string} [internalId] Filter by internal ID.
272
- * @param {string} [credentialInternalId] Filter by credential internal ID.
273
- * @param {Array<GetRequestsSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
1239
+ * @param {string} [subject] Filter by subject (nested object with contact, id, or internalId).
1240
+ * @param {string} [internalId] Identifier to help you identify the request in your own system. We recommend using a unique value.
1241
+ * @param {Array<ListSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
274
1242
  * @param {string} [dateFrom] Filter from date (will be converted to start of day)
275
1243
  * @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
276
1244
  * @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.
277
1245
  * @param {*} [options] Override http request option.
278
1246
  * @throws {RequiredError}
279
1247
  */
280
- getRequests: async (pageIndex, pageSize, search, contact, did, subjectInternalId, internalId, credentialInternalId, securityLevel, dateFrom, dateTo, aPIVersion, options = {}) => {
1248
+ list: async (pageIndex, pageSize, search, subject, internalId, securityLevel, dateFrom, dateTo, aPIVersion, options = {}) => {
281
1249
  const localVarPath = `/request`;
282
1250
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
283
1251
  let baseOptions;
@@ -296,21 +1264,12 @@ var RequestsApiAxiosParamCreator = function(configuration) {
296
1264
  if (search !== void 0) {
297
1265
  localVarQueryParameter["search"] = search;
298
1266
  }
299
- if (contact !== void 0) {
300
- localVarQueryParameter["contact"] = contact;
301
- }
302
- if (did !== void 0) {
303
- localVarQueryParameter["did"] = did;
304
- }
305
- if (subjectInternalId !== void 0) {
306
- localVarQueryParameter["subjectInternalId"] = subjectInternalId;
1267
+ if (subject !== void 0) {
1268
+ localVarQueryParameter["subject"] = subject;
307
1269
  }
308
1270
  if (internalId !== void 0) {
309
1271
  localVarQueryParameter["internalId"] = internalId;
310
1272
  }
311
- if (credentialInternalId !== void 0) {
312
- localVarQueryParameter["credentialInternalId"] = credentialInternalId;
313
- }
314
1273
  if (securityLevel) {
315
1274
  localVarQueryParameter["securityLevel"] = securityLevel;
316
1275
  }
@@ -332,17 +1291,18 @@ var RequestsApiAxiosParamCreator = function(configuration) {
332
1291
  };
333
1292
  },
334
1293
  /**
335
- * 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 One exact search query must be provided 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
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
336
1295
  * @summary Resend OTP
337
1296
  * @param {string} requestId Unique identifier of the request.
338
- * @param {string} [contact] Contact value (email or phone)
339
- * @param {string} [did] Public Decentralized Identifier (DID) of the user
1297
+ * @param {string} [contact] Verified contact value (email or phone)
1298
+ * @param {string} [id] Users VIA identifier
340
1299
  * @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
1300
+ * @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
341
1301
  * @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.
342
1302
  * @param {*} [options] Override http request option.
343
1303
  * @throws {RequiredError}
344
1304
  */
345
- resendOtp: async (requestId, contact, did, internalId, aPIVersion, options = {}) => {
1305
+ resendOtp: async (requestId, contact, id, internalId, idempotencyKey, aPIVersion, options = {}) => {
346
1306
  assertParamExists("resendOtp", "requestId", requestId);
347
1307
  const localVarPath = `/request/resend/{requestId}`.replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
348
1308
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -356,12 +1316,15 @@ var RequestsApiAxiosParamCreator = function(configuration) {
356
1316
  if (contact !== void 0) {
357
1317
  localVarQueryParameter["contact"] = contact;
358
1318
  }
359
- if (did !== void 0) {
360
- localVarQueryParameter["did"] = did;
1319
+ if (id !== void 0) {
1320
+ localVarQueryParameter["id"] = id;
361
1321
  }
362
1322
  if (internalId !== void 0) {
363
1323
  localVarQueryParameter["internalId"] = internalId;
364
1324
  }
1325
+ if (idempotencyKey != null) {
1326
+ localVarHeaderParameter["Idempotency-Key"] = String(idempotencyKey);
1327
+ }
365
1328
  if (aPIVersion != null) {
366
1329
  localVarHeaderParameter["API-Version"] = String(aPIVersion);
367
1330
  }
@@ -379,87 +1342,86 @@ var RequestsApiFp = function(configuration) {
379
1342
  const localVarAxiosParamCreator = RequestsApiAxiosParamCreator(configuration);
380
1343
  return {
381
1344
  /**
382
- * This action will cancel a credential request, by setting the canceledAt timestamp on the request. This operation is irreversible, and will prevent the request from being processed further by the subjects
383
- * @summary Cancel
1345
+ * This action will cancel a credential request. Once a request is canceled, it cannot be undone and will prevent the request from being completed by any subjects. A request can be canceled if it contains credentials in draft status.
1346
+ * @summary Cancel Request
384
1347
  * @param {string} requestId Unique identifier of the credential request to cancel. Must be a valid MongoDB ObjectId.
385
1348
  * @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.
386
1349
  * @param {*} [options] Override http request option.
387
1350
  * @throws {RequiredError}
388
1351
  */
389
- async cancelRequest(requestId, aPIVersion, options) {
390
- const localVarAxiosArgs = await localVarAxiosParamCreator.cancelRequest(requestId, aPIVersion, options);
1352
+ async cancel(requestId, aPIVersion, options) {
1353
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancel(requestId, aPIVersion, options);
391
1354
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
392
- const localVarOperationServerBasePath = operationServerMap["RequestsApi.cancelRequest"]?.[localVarOperationServerIndex]?.url;
393
- return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
1355
+ const localVarOperationServerBasePath = operationServerMap["RequestsApi.cancel"]?.[localVarOperationServerIndex]?.url;
1356
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios7, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
394
1357
  },
395
1358
  /**
396
- * Create a new credential request for one or more subjects (users). This endpoint will: - Create credentials from resources or inline JSON data - Associate credentials with subjects - Generate and send OTPs for approval via email or SMS Request details: - Resources can be specified via group IDs, resource IDs, or as inline JSON credentials - Maximum 30 credentials per request - Maximum 20 contacts per request - OTPs are automatically sent to all subjects after creation
397
- * @summary Create
398
- * @param {GenerateRequestDto} generateRequestDto Request body containing contacts (subjects), security level, and resources to create credentials from. Resources can be specified via groupIds, resourcesIds, or inline credentials array.
1359
+ * Create a new request for one or more subjects (users). This endpoint will: - Create credentials from resources (via group IDs, resource IDs) or inline JSON data - Associate those credentials with subjects - Generate and send OTPs via email or SMS
1360
+ * @summary Create Request
1361
+ * @param {GenerateRequestDto} generateRequestDto Request body containing contacts (subjects), security level, and credentials to generate Resources can be specified via groupIds, resourcesIds, or inline credentials array.
1362
+ * @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
399
1363
  * @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.
400
1364
  * @param {*} [options] Override http request option.
401
1365
  * @throws {RequiredError}
402
1366
  */
403
- async generate(generateRequestDto, aPIVersion, options) {
404
- const localVarAxiosArgs = await localVarAxiosParamCreator.generate(generateRequestDto, aPIVersion, options);
1367
+ async create(generateRequestDto, idempotencyKey, aPIVersion, options) {
1368
+ const localVarAxiosArgs = await localVarAxiosParamCreator.create(generateRequestDto, idempotencyKey, aPIVersion, options);
405
1369
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
406
- const localVarOperationServerBasePath = operationServerMap["RequestsApi.generate"]?.[localVarOperationServerIndex]?.url;
407
- return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
1370
+ const localVarOperationServerBasePath = operationServerMap["RequestsApi.create"]?.[localVarOperationServerIndex]?.url;
1371
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios7, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
408
1372
  },
409
1373
  /**
410
- * Retrieve detailed information about a specific credential request This includes complete W3C Verifiable Credential data for each credential, subject information, agent details (if applicable), and issuer information The credentials are returned in W3C-compliant format and can be cryptographically verified
1374
+ * Retrieve detailed information about a specific credential request Just like the list requests endpoint, this endpoint includes information about the request, credentials, subjects (users) and chosen security level However, this endpoint includes the full W3C Verifiable Credential data for each credential, and the latest status of all grantor decisions
411
1375
  * @summary Get Detail
412
1376
  * @param {string} requestId Unique identifier of the credential request. Must be a valid MongoDB ObjectId.
413
1377
  * @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.
414
1378
  * @param {*} [options] Override http request option.
415
1379
  * @throws {RequiredError}
416
1380
  */
417
- async getRequestDetail(requestId, aPIVersion, options) {
418
- const localVarAxiosArgs = await localVarAxiosParamCreator.getRequestDetail(requestId, aPIVersion, options);
1381
+ async detail(requestId, aPIVersion, options) {
1382
+ const localVarAxiosArgs = await localVarAxiosParamCreator.detail(requestId, aPIVersion, options);
419
1383
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
420
- const localVarOperationServerBasePath = operationServerMap["RequestsApi.getRequestDetail"]?.[localVarOperationServerIndex]?.url;
421
- return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
1384
+ const localVarOperationServerBasePath = operationServerMap["RequestsApi.detail"]?.[localVarOperationServerIndex]?.url;
1385
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios7, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
422
1386
  },
423
1387
  /**
424
- * Retrieve a paginated list of credential requests for your organization Each request includes information about the credentials, subjects (users), security level, and creation date. One exact search query must be provided
425
- * @summary Get
1388
+ * Retrieve a paginated list of your credential requests Each request includes information about the request, credentials, subjects (users) and chosen security level
1389
+ * @summary List Requests
426
1390
  * @param {number} [pageIndex] Page number
427
1391
  * @param {number} [pageSize] Number of items per page
428
1392
  * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
429
- * @param {string} [contact] Contact value (email or phone)
430
- * @param {string} [did] Public Decentralized Identifier (DID) of the user
431
- * @param {string} [subjectInternalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
432
- * @param {string} [internalId] Filter by internal ID.
433
- * @param {string} [credentialInternalId] Filter by credential internal ID.
434
- * @param {Array<GetRequestsSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
1393
+ * @param {string} [subject] Filter by subject (nested object with contact, id, or internalId).
1394
+ * @param {string} [internalId] Identifier to help you identify the request in your own system. We recommend using a unique value.
1395
+ * @param {Array<ListSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
435
1396
  * @param {string} [dateFrom] Filter from date (will be converted to start of day)
436
1397
  * @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
437
1398
  * @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.
438
1399
  * @param {*} [options] Override http request option.
439
1400
  * @throws {RequiredError}
440
1401
  */
441
- async getRequests(pageIndex, pageSize, search, contact, did, subjectInternalId, internalId, credentialInternalId, securityLevel, dateFrom, dateTo, aPIVersion, options) {
442
- const localVarAxiosArgs = await localVarAxiosParamCreator.getRequests(pageIndex, pageSize, search, contact, did, subjectInternalId, internalId, credentialInternalId, securityLevel, dateFrom, dateTo, aPIVersion, options);
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);
443
1404
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
444
- const localVarOperationServerBasePath = operationServerMap["RequestsApi.getRequests"]?.[localVarOperationServerIndex]?.url;
445
- return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
1405
+ const localVarOperationServerBasePath = operationServerMap["RequestsApi.list"]?.[localVarOperationServerIndex]?.url;
1406
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios7, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
446
1407
  },
447
1408
  /**
448
- * 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 One exact search query must be provided 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
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
449
1410
  * @summary Resend OTP
450
1411
  * @param {string} requestId Unique identifier of the request.
451
- * @param {string} [contact] Contact value (email or phone)
452
- * @param {string} [did] Public Decentralized Identifier (DID) of the user
1412
+ * @param {string} [contact] Verified contact value (email or phone)
1413
+ * @param {string} [id] Users VIA identifier
453
1414
  * @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
1415
+ * @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
454
1416
  * @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.
455
1417
  * @param {*} [options] Override http request option.
456
1418
  * @throws {RequiredError}
457
1419
  */
458
- async resendOtp(requestId, contact, did, internalId, aPIVersion, options) {
459
- const localVarAxiosArgs = await localVarAxiosParamCreator.resendOtp(requestId, contact, did, internalId, aPIVersion, options);
1420
+ async resendOtp(requestId, contact, id, internalId, idempotencyKey, aPIVersion, options) {
1421
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resendOtp(requestId, contact, id, internalId, idempotencyKey, aPIVersion, options);
460
1422
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
461
1423
  const localVarOperationServerBasePath = operationServerMap["RequestsApi.resendOtp"]?.[localVarOperationServerIndex]?.url;
462
- return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
1424
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios7, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
463
1425
  }
464
1426
  };
465
1427
  };
@@ -467,102 +1429,102 @@ var RequestsApiFactory = function(configuration, basePath, axios2) {
467
1429
  const localVarFp = RequestsApiFp(configuration);
468
1430
  return {
469
1431
  /**
470
- * This action will cancel a credential request, by setting the canceledAt timestamp on the request. This operation is irreversible, and will prevent the request from being processed further by the subjects
471
- * @summary Cancel
1432
+ * This action will cancel a credential request. Once a request is canceled, it cannot be undone and will prevent the request from being completed by any subjects. A request can be canceled if it contains credentials in draft status.
1433
+ * @summary Cancel Request
472
1434
  * @param {string} requestId Unique identifier of the credential request to cancel. Must be a valid MongoDB ObjectId.
473
1435
  * @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.
474
1436
  * @param {*} [options] Override http request option.
475
1437
  * @throws {RequiredError}
476
1438
  */
477
- cancelRequest(requestId, aPIVersion, options) {
478
- return localVarFp.cancelRequest(requestId, aPIVersion, options).then((request) => request(axios2, basePath));
1439
+ cancel(requestId, aPIVersion, options) {
1440
+ return localVarFp.cancel(requestId, aPIVersion, options).then((request) => request(axios2, basePath));
479
1441
  },
480
1442
  /**
481
- * Create a new credential request for one or more subjects (users). This endpoint will: - Create credentials from resources or inline JSON data - Associate credentials with subjects - Generate and send OTPs for approval via email or SMS Request details: - Resources can be specified via group IDs, resource IDs, or as inline JSON credentials - Maximum 30 credentials per request - Maximum 20 contacts per request - OTPs are automatically sent to all subjects after creation
482
- * @summary Create
483
- * @param {GenerateRequestDto} generateRequestDto Request body containing contacts (subjects), security level, and resources to create credentials from. Resources can be specified via groupIds, resourcesIds, or inline credentials array.
1443
+ * Create a new request for one or more subjects (users). This endpoint will: - Create credentials from resources (via group IDs, resource IDs) or inline JSON data - Associate those credentials with subjects - Generate and send OTPs via email or SMS
1444
+ * @summary Create Request
1445
+ * @param {GenerateRequestDto} generateRequestDto Request body containing contacts (subjects), security level, and credentials to generate Resources can be specified via groupIds, resourcesIds, or inline credentials array.
1446
+ * @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
484
1447
  * @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.
485
1448
  * @param {*} [options] Override http request option.
486
1449
  * @throws {RequiredError}
487
1450
  */
488
- generate(generateRequestDto, aPIVersion, options) {
489
- return localVarFp.generate(generateRequestDto, aPIVersion, options).then((request) => request(axios2, basePath));
1451
+ create(generateRequestDto, idempotencyKey, aPIVersion, options) {
1452
+ return localVarFp.create(generateRequestDto, idempotencyKey, aPIVersion, options).then((request) => request(axios2, basePath));
490
1453
  },
491
1454
  /**
492
- * Retrieve detailed information about a specific credential request This includes complete W3C Verifiable Credential data for each credential, subject information, agent details (if applicable), and issuer information The credentials are returned in W3C-compliant format and can be cryptographically verified
1455
+ * Retrieve detailed information about a specific credential request Just like the list requests endpoint, this endpoint includes information about the request, credentials, subjects (users) and chosen security level However, this endpoint includes the full W3C Verifiable Credential data for each credential, and the latest status of all grantor decisions
493
1456
  * @summary Get Detail
494
1457
  * @param {string} requestId Unique identifier of the credential request. Must be a valid MongoDB ObjectId.
495
1458
  * @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\&#39;s date.
496
1459
  * @param {*} [options] Override http request option.
497
1460
  * @throws {RequiredError}
498
1461
  */
499
- getRequestDetail(requestId, aPIVersion, options) {
500
- return localVarFp.getRequestDetail(requestId, aPIVersion, options).then((request) => request(axios2, basePath));
1462
+ detail(requestId, aPIVersion, options) {
1463
+ return localVarFp.detail(requestId, aPIVersion, options).then((request) => request(axios2, basePath));
501
1464
  },
502
1465
  /**
503
- * Retrieve a paginated list of credential requests for your organization Each request includes information about the credentials, subjects (users), security level, and creation date. One exact search query must be provided
504
- * @summary Get
1466
+ * Retrieve a paginated list of your credential requests Each request includes information about the request, credentials, subjects (users) and chosen security level
1467
+ * @summary List Requests
505
1468
  * @param {number} [pageIndex] Page number
506
1469
  * @param {number} [pageSize] Number of items per page
507
1470
  * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
508
- * @param {string} [contact] Contact value (email or phone)
509
- * @param {string} [did] Public Decentralized Identifier (DID) of the user
510
- * @param {string} [subjectInternalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
511
- * @param {string} [internalId] Filter by internal ID.
512
- * @param {string} [credentialInternalId] Filter by credential internal ID.
513
- * @param {Array<GetRequestsSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
1471
+ * @param {string} [subject] Filter by subject (nested object with contact, id, or internalId).
1472
+ * @param {string} [internalId] Identifier to help you identify the request in your own system. We recommend using a unique value.
1473
+ * @param {Array<ListSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
514
1474
  * @param {string} [dateFrom] Filter from date (will be converted to start of day)
515
1475
  * @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
516
1476
  * @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.
517
1477
  * @param {*} [options] Override http request option.
518
1478
  * @throws {RequiredError}
519
1479
  */
520
- getRequests(pageIndex, pageSize, search, contact, did, subjectInternalId, internalId, credentialInternalId, securityLevel, dateFrom, dateTo, aPIVersion, options) {
521
- return localVarFp.getRequests(pageIndex, pageSize, search, contact, did, subjectInternalId, internalId, credentialInternalId, securityLevel, dateFrom, dateTo, aPIVersion, options).then((request) => request(axios2, basePath));
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));
522
1482
  },
523
1483
  /**
524
- * 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 One exact search query must be provided 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
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
525
1485
  * @summary Resend OTP
526
1486
  * @param {string} requestId Unique identifier of the request.
527
- * @param {string} [contact] Contact value (email or phone)
528
- * @param {string} [did] Public Decentralized Identifier (DID) of the user
1487
+ * @param {string} [contact] Verified contact value (email or phone)
1488
+ * @param {string} [id] Users VIA identifier
529
1489
  * @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
1490
+ * @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
530
1491
  * @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.
531
1492
  * @param {*} [options] Override http request option.
532
1493
  * @throws {RequiredError}
533
1494
  */
534
- resendOtp(requestId, contact, did, internalId, aPIVersion, options) {
535
- return localVarFp.resendOtp(requestId, contact, did, internalId, aPIVersion, options).then((request) => request(axios2, basePath));
1495
+ resendOtp(requestId, contact, id, internalId, idempotencyKey, aPIVersion, options) {
1496
+ return localVarFp.resendOtp(requestId, contact, id, internalId, idempotencyKey, aPIVersion, options).then((request) => request(axios2, basePath));
536
1497
  }
537
1498
  };
538
1499
  };
539
1500
  var RequestsApi = class extends BaseAPI {
540
1501
  /**
541
- * This action will cancel a credential request, by setting the canceledAt timestamp on the request. This operation is irreversible, and will prevent the request from being processed further by the subjects
542
- * @summary Cancel
1502
+ * This action will cancel a credential request. Once a request is canceled, it cannot be undone and will prevent the request from being completed by any subjects. A request can be canceled if it contains credentials in draft status.
1503
+ * @summary Cancel Request
543
1504
  * @param {string} requestId Unique identifier of the credential request to cancel. Must be a valid MongoDB ObjectId.
544
1505
  * @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.
545
1506
  * @param {*} [options] Override http request option.
546
1507
  * @throws {RequiredError}
547
1508
  * @memberof RequestsApi
548
1509
  */
549
- cancelRequest(requestId, aPIVersion, options) {
550
- return RequestsApiFp(this.configuration).cancelRequest(requestId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
1510
+ cancel(requestId, aPIVersion, options) {
1511
+ return RequestsApiFp(this.configuration).cancel(requestId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
551
1512
  }
552
1513
  /**
553
- * Create a new credential request for one or more subjects (users). This endpoint will: - Create credentials from resources or inline JSON data - Associate credentials with subjects - Generate and send OTPs for approval via email or SMS Request details: - Resources can be specified via group IDs, resource IDs, or as inline JSON credentials - Maximum 30 credentials per request - Maximum 20 contacts per request - OTPs are automatically sent to all subjects after creation
554
- * @summary Create
555
- * @param {GenerateRequestDto} generateRequestDto Request body containing contacts (subjects), security level, and resources to create credentials from. Resources can be specified via groupIds, resourcesIds, or inline credentials array.
1514
+ * Create a new request for one or more subjects (users). This endpoint will: - Create credentials from resources (via group IDs, resource IDs) or inline JSON data - Associate those credentials with subjects - Generate and send OTPs via email or SMS
1515
+ * @summary Create Request
1516
+ * @param {GenerateRequestDto} generateRequestDto Request body containing contacts (subjects), security level, and credentials to generate Resources can be specified via groupIds, resourcesIds, or inline credentials array.
1517
+ * @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
556
1518
  * @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.
557
1519
  * @param {*} [options] Override http request option.
558
1520
  * @throws {RequiredError}
559
1521
  * @memberof RequestsApi
560
1522
  */
561
- generate(generateRequestDto, aPIVersion, options) {
562
- return RequestsApiFp(this.configuration).generate(generateRequestDto, aPIVersion, options).then((request) => request(this.axios, this.basePath));
1523
+ create(generateRequestDto, idempotencyKey, aPIVersion, options) {
1524
+ return RequestsApiFp(this.configuration).create(generateRequestDto, idempotencyKey, aPIVersion, options).then((request) => request(this.axios, this.basePath));
563
1525
  }
564
1526
  /**
565
- * Retrieve detailed information about a specific credential request This includes complete W3C Verifiable Credential data for each credential, subject information, agent details (if applicable), and issuer information The credentials are returned in W3C-compliant format and can be cryptographically verified
1527
+ * Retrieve detailed information about a specific credential request Just like the list requests endpoint, this endpoint includes information about the request, credentials, subjects (users) and chosen security level However, this endpoint includes the full W3C Verifiable Credential data for each credential, and the latest status of all grantor decisions
566
1528
  * @summary Get Detail
567
1529
  * @param {string} requestId Unique identifier of the credential request. Must be a valid MongoDB ObjectId.
568
1530
  * @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.
@@ -570,21 +1532,18 @@ var RequestsApi = class extends BaseAPI {
570
1532
  * @throws {RequiredError}
571
1533
  * @memberof RequestsApi
572
1534
  */
573
- getRequestDetail(requestId, aPIVersion, options) {
574
- return RequestsApiFp(this.configuration).getRequestDetail(requestId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
1535
+ detail(requestId, aPIVersion, options) {
1536
+ return RequestsApiFp(this.configuration).detail(requestId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
575
1537
  }
576
1538
  /**
577
- * Retrieve a paginated list of credential requests for your organization Each request includes information about the credentials, subjects (users), security level, and creation date. One exact search query must be provided
578
- * @summary Get
1539
+ * Retrieve a paginated list of your credential requests Each request includes information about the request, credentials, subjects (users) and chosen security level
1540
+ * @summary List Requests
579
1541
  * @param {number} [pageIndex] Page number
580
1542
  * @param {number} [pageSize] Number of items per page
581
1543
  * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
582
- * @param {string} [contact] Contact value (email or phone)
583
- * @param {string} [did] Public Decentralized Identifier (DID) of the user
584
- * @param {string} [subjectInternalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
585
- * @param {string} [internalId] Filter by internal ID.
586
- * @param {string} [credentialInternalId] Filter by credential internal ID.
587
- * @param {Array<GetRequestsSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
1544
+ * @param {string} [subject] Filter by subject (nested object with contact, id, or internalId).
1545
+ * @param {string} [internalId] Identifier to help you identify the request in your own system. We recommend using a unique value.
1546
+ * @param {Array<ListSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
588
1547
  * @param {string} [dateFrom] Filter from date (will be converted to start of day)
589
1548
  * @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
590
1549
  * @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.
@@ -592,76 +1551,60 @@ var RequestsApi = class extends BaseAPI {
592
1551
  * @throws {RequiredError}
593
1552
  * @memberof RequestsApi
594
1553
  */
595
- getRequests(pageIndex, pageSize, search, contact, did, subjectInternalId, internalId, credentialInternalId, securityLevel, dateFrom, dateTo, aPIVersion, options) {
596
- return RequestsApiFp(this.configuration).getRequests(pageIndex, pageSize, search, contact, did, subjectInternalId, internalId, credentialInternalId, securityLevel, dateFrom, dateTo, aPIVersion, options).then((request) => request(this.axios, this.basePath));
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));
597
1556
  }
598
1557
  /**
599
- * 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 One exact search query must be provided 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
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
600
1559
  * @summary Resend OTP
601
1560
  * @param {string} requestId Unique identifier of the request.
602
- * @param {string} [contact] Contact value (email or phone)
603
- * @param {string} [did] Public Decentralized Identifier (DID) of the user
1561
+ * @param {string} [contact] Verified contact value (email or phone)
1562
+ * @param {string} [id] Users VIA identifier
604
1563
  * @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
1564
+ * @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
605
1565
  * @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.
606
1566
  * @param {*} [options] Override http request option.
607
1567
  * @throws {RequiredError}
608
1568
  * @memberof RequestsApi
609
1569
  */
610
- resendOtp(requestId, contact, did, internalId, aPIVersion, options) {
611
- return RequestsApiFp(this.configuration).resendOtp(requestId, contact, did, internalId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
1570
+ resendOtp(requestId, contact, id, internalId, idempotencyKey, aPIVersion, options) {
1571
+ return RequestsApiFp(this.configuration).resendOtp(requestId, contact, id, internalId, idempotencyKey, aPIVersion, options).then((request) => request(this.axios, this.basePath));
612
1572
  }
613
1573
  };
614
- var GetRequestsSecurityLevelEnum = {
1574
+ var ListSecurityLevelEnum = {
615
1575
  Contact: "CONTACT",
616
1576
  OrganizationKyc: "ORGANIZATION_KYC",
617
1577
  HumanosKyc: "HUMANOS_KYC",
618
1578
  HumanosRevalidation: "HUMANOS_REVALIDATION"
619
1579
  };
620
1580
 
621
- // generated/api/resource-api.ts
622
- import globalAxios4 from "axios";
623
- var ResourceApiAxiosParamCreator = function(configuration) {
1581
+ // generated/api/user-api.ts
1582
+ import globalAxios8 from "axios";
1583
+ var UserApiAxiosParamCreator = function(configuration) {
624
1584
  return {
625
1585
  /**
626
- * Retrieve information about the existing groups, including its resources, and the total number of pages. Resource groups allow to pack resources together and easily request them.
627
- * @summary Get Groups
628
- * @param {number} [pageIndex] Page number
629
- * @param {number} [pageSize] Number of items per page
630
- * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
631
- * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
632
- * @param {Array<GetGroupsTypesEnum>} [types] Filter by resource types. Can be a single value or array
633
- * @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
1586
+ * This endpoint allows organizations to import their existing users information into Humanos, for better management and control. - Multiple users can be created in a call. - A user is identified by a Humanos verified contact (email or phone), if doesn\'t exist will be created. - Optionally, additional identity information (KYC) to allow mapping users within your own system. - Optionally, additional contact emails or phone numbers can be provided to allow mapping users within your own system. - Optionally, an internal ID can be provided to allow mapping users within your own system.
1587
+ * @summary Create User
1588
+ * @param {Array<CreateSubjectDto>} createSubjectDto Array of subjects to create. Each subject represents a user to be imported into Humanos
1589
+ * @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
634
1590
  * @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.
635
1591
  * @param {*} [options] Override http request option.
636
1592
  * @throws {RequiredError}
637
- */
638
- getGroups: async (pageIndex, pageSize, search, active, types, internalId, aPIVersion, options = {}) => {
639
- const localVarPath = `/resource/group`;
640
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
641
- let baseOptions;
642
- if (configuration) {
643
- baseOptions = configuration.baseOptions;
644
- }
645
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
646
- const localVarHeaderParameter = {};
647
- const localVarQueryParameter = {};
648
- if (pageIndex !== void 0) {
649
- localVarQueryParameter["pageIndex"] = pageIndex;
650
- }
651
- if (pageSize !== void 0) {
652
- localVarQueryParameter["pageSize"] = pageSize;
653
- }
654
- if (search !== void 0) {
655
- localVarQueryParameter["search"] = search;
656
- }
657
- if (active !== void 0) {
658
- localVarQueryParameter["active"] = active;
659
- }
660
- if (types) {
661
- localVarQueryParameter["types"] = types;
1593
+ */
1594
+ create: async (createSubjectDto, idempotencyKey, aPIVersion, options = {}) => {
1595
+ assertParamExists("create", "createSubjectDto", createSubjectDto);
1596
+ const localVarPath = `/user`;
1597
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1598
+ let baseOptions;
1599
+ if (configuration) {
1600
+ baseOptions = configuration.baseOptions;
662
1601
  }
663
- if (internalId !== void 0) {
664
- localVarQueryParameter["internalId"] = internalId;
1602
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1603
+ const localVarHeaderParameter = {};
1604
+ const localVarQueryParameter = {};
1605
+ localVarHeaderParameter["Content-Type"] = "application/json";
1606
+ if (idempotencyKey != null) {
1607
+ localVarHeaderParameter["Idempotency-Key"] = String(idempotencyKey);
665
1608
  }
666
1609
  if (aPIVersion != null) {
667
1610
  localVarHeaderParameter["API-Version"] = String(aPIVersion);
@@ -669,26 +1612,24 @@ var ResourceApiAxiosParamCreator = function(configuration) {
669
1612
  setSearchParams(localVarUrlObj, localVarQueryParameter);
670
1613
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
671
1614
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1615
+ localVarRequestOptions.data = serializeDataIfNeeded(createSubjectDto, localVarRequestOptions, configuration);
672
1616
  return {
673
1617
  url: toPathString(localVarUrlObj),
674
1618
  options: localVarRequestOptions
675
1619
  };
676
1620
  },
677
1621
  /**
678
- * Retrieve a paginated list of resources for your organization. Resources can be documents, consents, forms.
679
- * @summary Get Resources
680
- * @param {number} [pageIndex] Page number
681
- * @param {number} [pageSize] Number of items per page
682
- * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
683
- * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
684
- * @param {Array<GetResourcesTypesEnum>} [types] Filter by resource types. Can be a single value or array
685
- * @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
1622
+ * Retrieves detailed information about a user. Search by exactly one parameter: contact, id, or internalId. Only one must be provided.
1623
+ * @summary Get User
1624
+ * @param {string} [contact] Verified contact value (email or phone)
1625
+ * @param {string} [id] Users VIA identifier
1626
+ * @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
686
1627
  * @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.
687
1628
  * @param {*} [options] Override http request option.
688
1629
  * @throws {RequiredError}
689
1630
  */
690
- getResources: async (pageIndex, pageSize, search, active, types, internalId, aPIVersion, options = {}) => {
691
- const localVarPath = `/resource`;
1631
+ detail: async (contact, id, internalId, aPIVersion, options = {}) => {
1632
+ const localVarPath = `/user`;
692
1633
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
693
1634
  let baseOptions;
694
1635
  if (configuration) {
@@ -697,20 +1638,11 @@ var ResourceApiAxiosParamCreator = function(configuration) {
697
1638
  const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
698
1639
  const localVarHeaderParameter = {};
699
1640
  const localVarQueryParameter = {};
700
- if (pageIndex !== void 0) {
701
- localVarQueryParameter["pageIndex"] = pageIndex;
702
- }
703
- if (pageSize !== void 0) {
704
- localVarQueryParameter["pageSize"] = pageSize;
705
- }
706
- if (search !== void 0) {
707
- localVarQueryParameter["search"] = search;
708
- }
709
- if (active !== void 0) {
710
- localVarQueryParameter["active"] = active;
1641
+ if (contact !== void 0) {
1642
+ localVarQueryParameter["contact"] = contact;
711
1643
  }
712
- if (types) {
713
- localVarQueryParameter["types"] = types;
1644
+ if (id !== void 0) {
1645
+ localVarQueryParameter["id"] = id;
714
1646
  }
715
1647
  if (internalId !== void 0) {
716
1648
  localVarQueryParameter["internalId"] = internalId;
@@ -728,150 +1660,117 @@ var ResourceApiAxiosParamCreator = function(configuration) {
728
1660
  }
729
1661
  };
730
1662
  };
731
- var ResourceApiFp = function(configuration) {
732
- const localVarAxiosParamCreator = ResourceApiAxiosParamCreator(configuration);
1663
+ var UserApiFp = function(configuration) {
1664
+ const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration);
733
1665
  return {
734
1666
  /**
735
- * Retrieve information about the existing groups, including its resources, and the total number of pages. Resource groups allow to pack resources together and easily request them.
736
- * @summary Get Groups
737
- * @param {number} [pageIndex] Page number
738
- * @param {number} [pageSize] Number of items per page
739
- * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
740
- * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
741
- * @param {Array<GetGroupsTypesEnum>} [types] Filter by resource types. Can be a single value or array
742
- * @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
1667
+ * This endpoint allows organizations to import their existing users information into Humanos, for better management and control. - Multiple users can be created in a call. - A user is identified by a Humanos verified contact (email or phone), if doesn\'t exist will be created. - Optionally, additional identity information (KYC) to allow mapping users within your own system. - Optionally, additional contact emails or phone numbers can be provided to allow mapping users within your own system. - Optionally, an internal ID can be provided to allow mapping users within your own system.
1668
+ * @summary Create User
1669
+ * @param {Array<CreateSubjectDto>} createSubjectDto Array of subjects to create. Each subject represents a user to be imported into Humanos
1670
+ * @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
743
1671
  * @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.
744
1672
  * @param {*} [options] Override http request option.
745
1673
  * @throws {RequiredError}
746
1674
  */
747
- async getGroups(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options) {
748
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGroups(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options);
1675
+ async create(createSubjectDto, idempotencyKey, aPIVersion, options) {
1676
+ const localVarAxiosArgs = await localVarAxiosParamCreator.create(createSubjectDto, idempotencyKey, aPIVersion, options);
749
1677
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
750
- const localVarOperationServerBasePath = operationServerMap["ResourceApi.getGroups"]?.[localVarOperationServerIndex]?.url;
751
- return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios4, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
1678
+ const localVarOperationServerBasePath = operationServerMap["UserApi.create"]?.[localVarOperationServerIndex]?.url;
1679
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios8, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
752
1680
  },
753
1681
  /**
754
- * Retrieve a paginated list of resources for your organization. Resources can be documents, consents, forms.
755
- * @summary Get Resources
756
- * @param {number} [pageIndex] Page number
757
- * @param {number} [pageSize] Number of items per page
758
- * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
759
- * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
760
- * @param {Array<GetResourcesTypesEnum>} [types] Filter by resource types. Can be a single value or array
761
- * @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
1682
+ * Retrieves detailed information about a user. Search by exactly one parameter: contact, id, or internalId. Only one must be provided.
1683
+ * @summary Get User
1684
+ * @param {string} [contact] Verified contact value (email or phone)
1685
+ * @param {string} [id] Users VIA identifier
1686
+ * @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
762
1687
  * @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.
763
1688
  * @param {*} [options] Override http request option.
764
1689
  * @throws {RequiredError}
765
1690
  */
766
- async getResources(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options) {
767
- const localVarAxiosArgs = await localVarAxiosParamCreator.getResources(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options);
1691
+ async detail(contact, id, internalId, aPIVersion, options) {
1692
+ const localVarAxiosArgs = await localVarAxiosParamCreator.detail(contact, id, internalId, aPIVersion, options);
768
1693
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
769
- const localVarOperationServerBasePath = operationServerMap["ResourceApi.getResources"]?.[localVarOperationServerIndex]?.url;
770
- return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios4, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
1694
+ const localVarOperationServerBasePath = operationServerMap["UserApi.detail"]?.[localVarOperationServerIndex]?.url;
1695
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios8, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
771
1696
  }
772
1697
  };
773
1698
  };
774
- var ResourceApiFactory = function(configuration, basePath, axios2) {
775
- const localVarFp = ResourceApiFp(configuration);
1699
+ var UserApiFactory = function(configuration, basePath, axios2) {
1700
+ const localVarFp = UserApiFp(configuration);
776
1701
  return {
777
1702
  /**
778
- * Retrieve information about the existing groups, including its resources, and the total number of pages. Resource groups allow to pack resources together and easily request them.
779
- * @summary Get Groups
780
- * @param {number} [pageIndex] Page number
781
- * @param {number} [pageSize] Number of items per page
782
- * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
783
- * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
784
- * @param {Array<GetGroupsTypesEnum>} [types] Filter by resource types. Can be a single value or array
785
- * @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
1703
+ * This endpoint allows organizations to import their existing users information into Humanos, for better management and control. - Multiple users can be created in a call. - A user is identified by a Humanos verified contact (email or phone), if doesn\'t exist will be created. - Optionally, additional identity information (KYC) to allow mapping users within your own system. - Optionally, additional contact emails or phone numbers can be provided to allow mapping users within your own system. - Optionally, an internal ID can be provided to allow mapping users within your own system.
1704
+ * @summary Create User
1705
+ * @param {Array<CreateSubjectDto>} createSubjectDto Array of subjects to create. Each subject represents a user to be imported into Humanos
1706
+ * @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
786
1707
  * @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.
787
1708
  * @param {*} [options] Override http request option.
788
1709
  * @throws {RequiredError}
789
1710
  */
790
- getGroups(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options) {
791
- return localVarFp.getGroups(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options).then((request) => request(axios2, basePath));
1711
+ create(createSubjectDto, idempotencyKey, aPIVersion, options) {
1712
+ return localVarFp.create(createSubjectDto, idempotencyKey, aPIVersion, options).then((request) => request(axios2, basePath));
792
1713
  },
793
1714
  /**
794
- * Retrieve a paginated list of resources for your organization. Resources can be documents, consents, forms.
795
- * @summary Get Resources
796
- * @param {number} [pageIndex] Page number
797
- * @param {number} [pageSize] Number of items per page
798
- * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
799
- * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
800
- * @param {Array<GetResourcesTypesEnum>} [types] Filter by resource types. Can be a single value or array
801
- * @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
1715
+ * Retrieves detailed information about a user. Search by exactly one parameter: contact, id, or internalId. Only one must be provided.
1716
+ * @summary Get User
1717
+ * @param {string} [contact] Verified contact value (email or phone)
1718
+ * @param {string} [id] Users VIA identifier
1719
+ * @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
802
1720
  * @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.
803
1721
  * @param {*} [options] Override http request option.
804
1722
  * @throws {RequiredError}
805
1723
  */
806
- getResources(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options) {
807
- return localVarFp.getResources(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options).then((request) => request(axios2, basePath));
1724
+ detail(contact, id, internalId, aPIVersion, options) {
1725
+ return localVarFp.detail(contact, id, internalId, aPIVersion, options).then((request) => request(axios2, basePath));
808
1726
  }
809
1727
  };
810
1728
  };
811
- var ResourceApi = class extends BaseAPI {
1729
+ var UserApi = class extends BaseAPI {
812
1730
  /**
813
- * Retrieve information about the existing groups, including its resources, and the total number of pages. Resource groups allow to pack resources together and easily request them.
814
- * @summary Get Groups
815
- * @param {number} [pageIndex] Page number
816
- * @param {number} [pageSize] Number of items per page
817
- * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
818
- * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
819
- * @param {Array<GetGroupsTypesEnum>} [types] Filter by resource types. Can be a single value or array
820
- * @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
1731
+ * This endpoint allows organizations to import their existing users information into Humanos, for better management and control. - Multiple users can be created in a call. - A user is identified by a Humanos verified contact (email or phone), if doesn\'t exist will be created. - Optionally, additional identity information (KYC) to allow mapping users within your own system. - Optionally, additional contact emails or phone numbers can be provided to allow mapping users within your own system. - Optionally, an internal ID can be provided to allow mapping users within your own system.
1732
+ * @summary Create User
1733
+ * @param {Array<CreateSubjectDto>} createSubjectDto Array of subjects to create. Each subject represents a user to be imported into Humanos
1734
+ * @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
821
1735
  * @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.
822
1736
  * @param {*} [options] Override http request option.
823
1737
  * @throws {RequiredError}
824
- * @memberof ResourceApi
1738
+ * @memberof UserApi
825
1739
  */
826
- getGroups(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options) {
827
- return ResourceApiFp(this.configuration).getGroups(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
1740
+ create(createSubjectDto, idempotencyKey, aPIVersion, options) {
1741
+ return UserApiFp(this.configuration).create(createSubjectDto, idempotencyKey, aPIVersion, options).then((request) => request(this.axios, this.basePath));
828
1742
  }
829
1743
  /**
830
- * Retrieve a paginated list of resources for your organization. Resources can be documents, consents, forms.
831
- * @summary Get Resources
832
- * @param {number} [pageIndex] Page number
833
- * @param {number} [pageSize] Number of items per page
834
- * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
835
- * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
836
- * @param {Array<GetResourcesTypesEnum>} [types] Filter by resource types. Can be a single value or array
837
- * @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
1744
+ * Retrieves detailed information about a user. Search by exactly one parameter: contact, id, or internalId. Only one must be provided.
1745
+ * @summary Get User
1746
+ * @param {string} [contact] Verified contact value (email or phone)
1747
+ * @param {string} [id] Users VIA identifier
1748
+ * @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
838
1749
  * @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.
839
1750
  * @param {*} [options] Override http request option.
840
1751
  * @throws {RequiredError}
841
- * @memberof ResourceApi
1752
+ * @memberof UserApi
842
1753
  */
843
- getResources(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options) {
844
- return ResourceApiFp(this.configuration).getResources(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
1754
+ detail(contact, id, internalId, aPIVersion, options) {
1755
+ return UserApiFp(this.configuration).detail(contact, id, internalId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
845
1756
  }
846
1757
  };
847
- var GetGroupsTypesEnum = {
848
- Consent: "CONSENT",
849
- Form: "FORM",
850
- Document: "DOCUMENT",
851
- Json: "JSON"
852
- };
853
- var GetResourcesTypesEnum = {
854
- Consent: "CONSENT",
855
- Form: "FORM",
856
- Document: "DOCUMENT",
857
- Json: "JSON"
858
- };
859
1758
 
860
- // generated/api/user-api.ts
861
- import globalAxios5 from "axios";
862
- var UserApiAxiosParamCreator = function(configuration) {
1759
+ // generated/api/webhooks-api.ts
1760
+ import globalAxios9 from "axios";
1761
+ var WebhooksApiAxiosParamCreator = function(configuration) {
863
1762
  return {
864
1763
  /**
865
- * This endpoint allows organizations to import their existing users information into Humanos, for better management and control. - Multiple users can be created in a call. - A user can be created with just a contact (email or phone). - Optionally, additional identity information (KYC) can be included. - Optionally, organizations can attach an internal Id to allow mapping users within their database.
866
- * @summary Create User
867
- * @param {Array<CreateSubjectDto>} createSubjectDto Array of subjects to create. Each subject represents a user to be imported into Humanos
1764
+ * Fired when a credential request is accepted or rejected by the subject. **Inbound webhook callback** Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
1765
+ * @summary Credential Event
1766
+ * @param {CredentialEvent} credentialEvent
868
1767
  * @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.
869
1768
  * @param {*} [options] Override http request option.
870
1769
  * @throws {RequiredError}
871
1770
  */
872
- create: async (createSubjectDto, aPIVersion, options = {}) => {
873
- assertParamExists("create", "createSubjectDto", createSubjectDto);
874
- const localVarPath = `/user`;
1771
+ credential: async (credentialEvent, aPIVersion, options = {}) => {
1772
+ assertParamExists("credential", "credentialEvent", credentialEvent);
1773
+ const localVarPath = `/_webhooks/credential`;
875
1774
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
876
1775
  let baseOptions;
877
1776
  if (configuration) {
@@ -887,47 +1786,103 @@ var UserApiAxiosParamCreator = function(configuration) {
887
1786
  setSearchParams(localVarUrlObj, localVarQueryParameter);
888
1787
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
889
1788
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
890
- localVarRequestOptions.data = serializeDataIfNeeded(createSubjectDto, localVarRequestOptions, configuration);
1789
+ localVarRequestOptions.data = serializeDataIfNeeded(credentialEvent, localVarRequestOptions, configuration);
891
1790
  return {
892
1791
  url: toPathString(localVarUrlObj),
893
1792
  options: localVarRequestOptions
894
1793
  };
895
1794
  },
896
1795
  /**
897
- * Retrieves detailed information about a user. Can and must be searched by only one of the following: contact, did, or internalId
898
- * @summary Get User
899
- * @param {string} [contact] Contact value (email or phone)
900
- * @param {string} [did] Public Decentralized Identifier (DID) of the user
901
- * @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
1796
+ * Fired when an identity verification (KYC) decision is reached. **Inbound webhook callback** Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
1797
+ * @summary Identity Event
1798
+ * @param {IdentityEvent} identityEvent
902
1799
  * @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.
903
1800
  * @param {*} [options] Override http request option.
904
1801
  * @throws {RequiredError}
905
1802
  */
906
- getSubject: async (contact, did, internalId, aPIVersion, options = {}) => {
907
- const localVarPath = `/user`;
1803
+ identity: async (identityEvent, aPIVersion, options = {}) => {
1804
+ assertParamExists("identity", "identityEvent", identityEvent);
1805
+ const localVarPath = `/_webhooks/identity`;
908
1806
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
909
1807
  let baseOptions;
910
1808
  if (configuration) {
911
1809
  baseOptions = configuration.baseOptions;
912
1810
  }
913
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1811
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
914
1812
  const localVarHeaderParameter = {};
915
1813
  const localVarQueryParameter = {};
916
- if (contact !== void 0) {
917
- localVarQueryParameter["contact"] = contact;
1814
+ localVarHeaderParameter["Content-Type"] = "application/json";
1815
+ if (aPIVersion != null) {
1816
+ localVarHeaderParameter["API-Version"] = String(aPIVersion);
1817
+ }
1818
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1819
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1820
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1821
+ localVarRequestOptions.data = serializeDataIfNeeded(identityEvent, localVarRequestOptions, configuration);
1822
+ return {
1823
+ url: toPathString(localVarUrlObj),
1824
+ options: localVarRequestOptions
1825
+ };
1826
+ },
1827
+ /**
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.
1829
+ * @summary OTP Failed Event
1830
+ * @param {OtpFailedEvent} otpFailedEvent
1831
+ * @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.
1832
+ * @param {*} [options] Override http request option.
1833
+ * @throws {RequiredError}
1834
+ */
1835
+ otpFailed: async (otpFailedEvent, aPIVersion, options = {}) => {
1836
+ assertParamExists("otpFailed", "otpFailedEvent", otpFailedEvent);
1837
+ const localVarPath = `/_webhooks/otp-failed`;
1838
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1839
+ let baseOptions;
1840
+ if (configuration) {
1841
+ baseOptions = configuration.baseOptions;
918
1842
  }
919
- if (did !== void 0) {
920
- localVarQueryParameter["did"] = did;
1843
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1844
+ const localVarHeaderParameter = {};
1845
+ const localVarQueryParameter = {};
1846
+ localVarHeaderParameter["Content-Type"] = "application/json";
1847
+ if (aPIVersion != null) {
1848
+ localVarHeaderParameter["API-Version"] = String(aPIVersion);
921
1849
  }
922
- if (internalId !== void 0) {
923
- localVarQueryParameter["internalId"] = internalId;
1850
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1851
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1852
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1853
+ localVarRequestOptions.data = serializeDataIfNeeded(otpFailedEvent, localVarRequestOptions, configuration);
1854
+ return {
1855
+ url: toPathString(localVarUrlObj),
1856
+ options: localVarRequestOptions
1857
+ };
1858
+ },
1859
+ /**
1860
+ * Fired when a webhook test is triggered from the dashboard. **Inbound webhook callback** — Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
1861
+ * @summary Test Event
1862
+ * @param {TestEvent} testEvent
1863
+ * @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.
1864
+ * @param {*} [options] Override http request option.
1865
+ * @throws {RequiredError}
1866
+ */
1867
+ test: async (testEvent, aPIVersion, options = {}) => {
1868
+ assertParamExists("test", "testEvent", testEvent);
1869
+ const localVarPath = `/_webhooks/test`;
1870
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1871
+ let baseOptions;
1872
+ if (configuration) {
1873
+ baseOptions = configuration.baseOptions;
924
1874
  }
1875
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1876
+ const localVarHeaderParameter = {};
1877
+ const localVarQueryParameter = {};
1878
+ localVarHeaderParameter["Content-Type"] = "application/json";
925
1879
  if (aPIVersion != null) {
926
1880
  localVarHeaderParameter["API-Version"] = String(aPIVersion);
927
1881
  }
928
1882
  setSearchParams(localVarUrlObj, localVarQueryParameter);
929
1883
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
930
1884
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1885
+ localVarRequestOptions.data = serializeDataIfNeeded(testEvent, localVarRequestOptions, configuration);
931
1886
  return {
932
1887
  url: toPathString(localVarUrlObj),
933
1888
  options: localVarRequestOptions
@@ -935,96 +1890,164 @@ var UserApiAxiosParamCreator = function(configuration) {
935
1890
  }
936
1891
  };
937
1892
  };
938
- var UserApiFp = function(configuration) {
939
- const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration);
1893
+ var WebhooksApiFp = function(configuration) {
1894
+ const localVarAxiosParamCreator = WebhooksApiAxiosParamCreator(configuration);
940
1895
  return {
941
1896
  /**
942
- * This endpoint allows organizations to import their existing users information into Humanos, for better management and control. - Multiple users can be created in a call. - A user can be created with just a contact (email or phone). - Optionally, additional identity information (KYC) can be included. - Optionally, organizations can attach an internal Id to allow mapping users within their database.
943
- * @summary Create User
944
- * @param {Array<CreateSubjectDto>} createSubjectDto Array of subjects to create. Each subject represents a user to be imported into Humanos
1897
+ * Fired when a credential request is accepted or rejected by the subject. **Inbound webhook callback** Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
1898
+ * @summary Credential Event
1899
+ * @param {CredentialEvent} credentialEvent
945
1900
  * @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.
946
1901
  * @param {*} [options] Override http request option.
947
1902
  * @throws {RequiredError}
948
1903
  */
949
- async create(createSubjectDto, aPIVersion, options) {
950
- const localVarAxiosArgs = await localVarAxiosParamCreator.create(createSubjectDto, aPIVersion, options);
1904
+ async credential(credentialEvent, aPIVersion, options) {
1905
+ const localVarAxiosArgs = await localVarAxiosParamCreator.credential(credentialEvent, aPIVersion, options);
951
1906
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
952
- const localVarOperationServerBasePath = operationServerMap["UserApi.create"]?.[localVarOperationServerIndex]?.url;
953
- return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios5, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
1907
+ const localVarOperationServerBasePath = operationServerMap["WebhooksApi.credential"]?.[localVarOperationServerIndex]?.url;
1908
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios9, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
954
1909
  },
955
1910
  /**
956
- * Retrieves detailed information about a user. Can and must be searched by only one of the following: contact, did, or internalId
957
- * @summary Get User
958
- * @param {string} [contact] Contact value (email or phone)
959
- * @param {string} [did] Public Decentralized Identifier (DID) of the user
960
- * @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
1911
+ * Fired when an identity verification (KYC) decision is reached. **Inbound webhook callback** Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
1912
+ * @summary Identity Event
1913
+ * @param {IdentityEvent} identityEvent
961
1914
  * @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.
962
1915
  * @param {*} [options] Override http request option.
963
1916
  * @throws {RequiredError}
964
1917
  */
965
- async getSubject(contact, did, internalId, aPIVersion, options) {
966
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSubject(contact, did, internalId, aPIVersion, options);
1918
+ async identity(identityEvent, aPIVersion, options) {
1919
+ const localVarAxiosArgs = await localVarAxiosParamCreator.identity(identityEvent, aPIVersion, options);
967
1920
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
968
- const localVarOperationServerBasePath = operationServerMap["UserApi.getSubject"]?.[localVarOperationServerIndex]?.url;
969
- return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios5, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
1921
+ const localVarOperationServerBasePath = operationServerMap["WebhooksApi.identity"]?.[localVarOperationServerIndex]?.url;
1922
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios9, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
1923
+ },
1924
+ /**
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.
1926
+ * @summary OTP Failed Event
1927
+ * @param {OtpFailedEvent} otpFailedEvent
1928
+ * @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.
1929
+ * @param {*} [options] Override http request option.
1930
+ * @throws {RequiredError}
1931
+ */
1932
+ async otpFailed(otpFailedEvent, aPIVersion, options) {
1933
+ const localVarAxiosArgs = await localVarAxiosParamCreator.otpFailed(otpFailedEvent, aPIVersion, options);
1934
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1935
+ const localVarOperationServerBasePath = operationServerMap["WebhooksApi.otpFailed"]?.[localVarOperationServerIndex]?.url;
1936
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios9, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
1937
+ },
1938
+ /**
1939
+ * Fired when a webhook test is triggered from the dashboard. **Inbound webhook callback** — Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
1940
+ * @summary Test Event
1941
+ * @param {TestEvent} testEvent
1942
+ * @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.
1943
+ * @param {*} [options] Override http request option.
1944
+ * @throws {RequiredError}
1945
+ */
1946
+ async test(testEvent, aPIVersion, options) {
1947
+ const localVarAxiosArgs = await localVarAxiosParamCreator.test(testEvent, aPIVersion, options);
1948
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1949
+ const localVarOperationServerBasePath = operationServerMap["WebhooksApi.test"]?.[localVarOperationServerIndex]?.url;
1950
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios9, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
970
1951
  }
971
1952
  };
972
1953
  };
973
- var UserApiFactory = function(configuration, basePath, axios2) {
974
- const localVarFp = UserApiFp(configuration);
1954
+ var WebhooksApiFactory = function(configuration, basePath, axios2) {
1955
+ const localVarFp = WebhooksApiFp(configuration);
975
1956
  return {
976
1957
  /**
977
- * This endpoint allows organizations to import their existing users information into Humanos, for better management and control. - Multiple users can be created in a call. - A user can be created with just a contact (email or phone). - Optionally, additional identity information (KYC) can be included. - Optionally, organizations can attach an internal Id to allow mapping users within their database.
978
- * @summary Create User
979
- * @param {Array<CreateSubjectDto>} createSubjectDto Array of subjects to create. Each subject represents a user to be imported into Humanos
1958
+ * Fired when a credential request is accepted or rejected by the subject. **Inbound webhook callback** Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
1959
+ * @summary Credential Event
1960
+ * @param {CredentialEvent} credentialEvent
980
1961
  * @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.
981
1962
  * @param {*} [options] Override http request option.
982
1963
  * @throws {RequiredError}
983
1964
  */
984
- create(createSubjectDto, aPIVersion, options) {
985
- return localVarFp.create(createSubjectDto, aPIVersion, options).then((request) => request(axios2, basePath));
1965
+ credential(credentialEvent, aPIVersion, options) {
1966
+ return localVarFp.credential(credentialEvent, aPIVersion, options).then((request) => request(axios2, basePath));
986
1967
  },
987
1968
  /**
988
- * Retrieves detailed information about a user. Can and must be searched by only one of the following: contact, did, or internalId
989
- * @summary Get User
990
- * @param {string} [contact] Contact value (email or phone)
991
- * @param {string} [did] Public Decentralized Identifier (DID) of the user
992
- * @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
1969
+ * Fired when an identity verification (KYC) decision is reached. **Inbound webhook callback** Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
1970
+ * @summary Identity Event
1971
+ * @param {IdentityEvent} identityEvent
1972
+ * @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.
1973
+ * @param {*} [options] Override http request option.
1974
+ * @throws {RequiredError}
1975
+ */
1976
+ identity(identityEvent, aPIVersion, options) {
1977
+ return localVarFp.identity(identityEvent, aPIVersion, options).then((request) => request(axios2, basePath));
1978
+ },
1979
+ /**
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.
1981
+ * @summary OTP Failed Event
1982
+ * @param {OtpFailedEvent} otpFailedEvent
1983
+ * @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.
1984
+ * @param {*} [options] Override http request option.
1985
+ * @throws {RequiredError}
1986
+ */
1987
+ otpFailed(otpFailedEvent, aPIVersion, options) {
1988
+ return localVarFp.otpFailed(otpFailedEvent, aPIVersion, options).then((request) => request(axios2, basePath));
1989
+ },
1990
+ /**
1991
+ * Fired when a webhook test is triggered from the dashboard. **Inbound webhook callback** — Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
1992
+ * @summary Test Event
1993
+ * @param {TestEvent} testEvent
993
1994
  * @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.
994
1995
  * @param {*} [options] Override http request option.
995
1996
  * @throws {RequiredError}
996
1997
  */
997
- getSubject(contact, did, internalId, aPIVersion, options) {
998
- return localVarFp.getSubject(contact, did, internalId, aPIVersion, options).then((request) => request(axios2, basePath));
1998
+ test(testEvent, aPIVersion, options) {
1999
+ return localVarFp.test(testEvent, aPIVersion, options).then((request) => request(axios2, basePath));
999
2000
  }
1000
2001
  };
1001
2002
  };
1002
- var UserApi = class extends BaseAPI {
2003
+ var WebhooksApi = class extends BaseAPI {
1003
2004
  /**
1004
- * This endpoint allows organizations to import their existing users information into Humanos, for better management and control. - Multiple users can be created in a call. - A user can be created with just a contact (email or phone). - Optionally, additional identity information (KYC) can be included. - Optionally, organizations can attach an internal Id to allow mapping users within their database.
1005
- * @summary Create User
1006
- * @param {Array<CreateSubjectDto>} createSubjectDto Array of subjects to create. Each subject represents a user to be imported into Humanos
2005
+ * Fired when a credential request is accepted or rejected by the subject. **Inbound webhook callback** Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
2006
+ * @summary Credential Event
2007
+ * @param {CredentialEvent} credentialEvent
1007
2008
  * @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.
1008
2009
  * @param {*} [options] Override http request option.
1009
2010
  * @throws {RequiredError}
1010
- * @memberof UserApi
2011
+ * @memberof WebhooksApi
1011
2012
  */
1012
- create(createSubjectDto, aPIVersion, options) {
1013
- return UserApiFp(this.configuration).create(createSubjectDto, aPIVersion, options).then((request) => request(this.axios, this.basePath));
2013
+ credential(credentialEvent, aPIVersion, options) {
2014
+ return WebhooksApiFp(this.configuration).credential(credentialEvent, aPIVersion, options).then((request) => request(this.axios, this.basePath));
1014
2015
  }
1015
2016
  /**
1016
- * Retrieves detailed information about a user. Can and must be searched by only one of the following: contact, did, or internalId
1017
- * @summary Get User
1018
- * @param {string} [contact] Contact value (email or phone)
1019
- * @param {string} [did] Public Decentralized Identifier (DID) of the user
1020
- * @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
2017
+ * Fired when an identity verification (KYC) decision is reached. **Inbound webhook callback** Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
2018
+ * @summary Identity Event
2019
+ * @param {IdentityEvent} identityEvent
1021
2020
  * @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.
1022
2021
  * @param {*} [options] Override http request option.
1023
2022
  * @throws {RequiredError}
1024
- * @memberof UserApi
2023
+ * @memberof WebhooksApi
2024
+ */
2025
+ identity(identityEvent, aPIVersion, options) {
2026
+ return WebhooksApiFp(this.configuration).identity(identityEvent, aPIVersion, options).then((request) => request(this.axios, this.basePath));
2027
+ }
2028
+ /**
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.
2030
+ * @summary OTP Failed Event
2031
+ * @param {OtpFailedEvent} otpFailedEvent
2032
+ * @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.
2033
+ * @param {*} [options] Override http request option.
2034
+ * @throws {RequiredError}
2035
+ * @memberof WebhooksApi
1025
2036
  */
1026
- getSubject(contact, did, internalId, aPIVersion, options) {
1027
- return UserApiFp(this.configuration).getSubject(contact, did, internalId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
2037
+ otpFailed(otpFailedEvent, aPIVersion, options) {
2038
+ return WebhooksApiFp(this.configuration).otpFailed(otpFailedEvent, aPIVersion, options).then((request) => request(this.axios, this.basePath));
2039
+ }
2040
+ /**
2041
+ * Fired when a webhook test is triggered from the dashboard. **Inbound webhook callback** — Humanos POSTs this payload to your registered webhook URL. This is not an endpoint you call; it is documented as a path so SDK code generators emit a typed payload model.
2042
+ * @summary Test Event
2043
+ * @param {TestEvent} testEvent
2044
+ * @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.
2045
+ * @param {*} [options] Override http request option.
2046
+ * @throws {RequiredError}
2047
+ * @memberof WebhooksApi
2048
+ */
2049
+ test(testEvent, aPIVersion, options) {
2050
+ return WebhooksApiFp(this.configuration).test(testEvent, aPIVersion, options).then((request) => request(this.axios, this.basePath));
1028
2051
  }
1029
2052
  };
1030
2053
 
@@ -1056,12 +2079,36 @@ var Configuration = class {
1056
2079
  }
1057
2080
  };
1058
2081
 
1059
- // generated/models/action-type.ts
1060
- var ActionType = {
1061
- Issue: "ISSUE",
1062
- Accept: "ACCEPT",
1063
- Reject: "REJECT",
1064
- Revoke: "REVOKE"
2082
+ // generated/models/activity-entity.ts
2083
+ var ActivityEntityTypeEnum = {
2084
+ RequestCreated: "REQUEST_CREATED",
2085
+ RequestCanceled: "REQUEST_CANCELED",
2086
+ VpCreated: "VP_CREATED",
2087
+ VpDenied: "VP_DENIED",
2088
+ VpVerified: "VP_VERIFIED",
2089
+ VpVerificationDenied: "VP_VERIFICATION_DENIED",
2090
+ UserDecisionAccepted: "USER_DECISION_ACCEPTED",
2091
+ UserDecisionRejected: "USER_DECISION_REJECTED",
2092
+ MandateIssued: "MANDATE_ISSUED",
2093
+ MandateRevoked: "MANDATE_REVOKED",
2094
+ KycAccepted: "KYC_ACCEPTED",
2095
+ KycRejected: "KYC_REJECTED"
2096
+ };
2097
+
2098
+ // generated/models/activity-query.ts
2099
+ var ActivityQueryTypeEnum = {
2100
+ RequestCreated: "REQUEST_CREATED",
2101
+ RequestCanceled: "REQUEST_CANCELED",
2102
+ VpCreated: "VP_CREATED",
2103
+ VpDenied: "VP_DENIED",
2104
+ VpVerified: "VP_VERIFIED",
2105
+ VpVerificationDenied: "VP_VERIFICATION_DENIED",
2106
+ UserDecisionAccepted: "USER_DECISION_ACCEPTED",
2107
+ UserDecisionRejected: "USER_DECISION_REJECTED",
2108
+ MandateIssued: "MANDATE_ISSUED",
2109
+ MandateRevoked: "MANDATE_REVOKED",
2110
+ KycAccepted: "KYC_ACCEPTED",
2111
+ KycRejected: "KYC_REJECTED"
1065
2112
  };
1066
2113
 
1067
2114
  // generated/models/create-subject-entity.ts
@@ -1076,28 +2123,48 @@ var CreateSubjectEntityStatusEnum = {
1076
2123
  NUMBER_410: 410
1077
2124
  };
1078
2125
 
2126
+ // generated/models/credential-dto.ts
2127
+ var CredentialDtoTypeEnum = {
2128
+ Document: "DOCUMENT",
2129
+ Consent: "CONSENT",
2130
+ Json: "JSON",
2131
+ Policy: "POLICY"
2132
+ };
2133
+
1079
2134
  // generated/models/credential-entity.ts
1080
2135
  var CredentialEntityStatusEnum = {
1081
- Pending: "PENDING",
1082
- Approved: "APPROVED",
2136
+ Draft: "DRAFT",
2137
+ Active: "ACTIVE",
1083
2138
  Rejected: "REJECTED",
1084
- Revoked: "REVOKED"
2139
+ Canceled: "CANCELED",
2140
+ Revoked: "REVOKED",
2141
+ Expired: "EXPIRED"
1085
2142
  };
1086
2143
 
1087
- // generated/models/credential-full-entity.ts
1088
- var CredentialFullEntityStatusEnum = {
1089
- Pending: "PENDING",
1090
- Approved: "APPROVED",
1091
- Rejected: "REJECTED",
1092
- Revoked: "REVOKED"
2144
+ // generated/models/credential-event.ts
2145
+ var CredentialEventEventTypeEnum = {
2146
+ Credential: "credential"
2147
+ };
2148
+
2149
+ // generated/models/credential-placement-dto.ts
2150
+ var CredentialPlacementDtoTypeEnum = {
2151
+ Signature: "SIGNATURE",
2152
+ Initials: "INITIALS",
2153
+ IdentityField: "IDENTITY_FIELD",
2154
+ OpenText: "OPEN_TEXT",
2155
+ Numeric: "NUMERIC",
2156
+ Date: "DATE",
2157
+ Checkbox: "CHECKBOX"
1093
2158
  };
1094
2159
 
1095
2160
  // generated/models/credential-status.ts
1096
2161
  var CredentialStatus = {
1097
- Pending: "PENDING",
1098
- Approved: "APPROVED",
2162
+ Draft: "DRAFT",
2163
+ Active: "ACTIVE",
1099
2164
  Rejected: "REJECTED",
1100
- Revoked: "REVOKED"
2165
+ Canceled: "CANCELED",
2166
+ Revoked: "REVOKED",
2167
+ Expired: "EXPIRED"
1101
2168
  };
1102
2169
 
1103
2170
  // generated/models/delivery-action-type.ts
@@ -1114,49 +2181,24 @@ var GenerateRequestDtoSecurityLevelEnum = {
1114
2181
  HumanosRevalidation: "HUMANOS_REVALIDATION"
1115
2182
  };
1116
2183
 
1117
- // generated/models/group-resource-entity.ts
1118
- var GroupResourceEntityTypeEnum = {
1119
- Consent: "CONSENT",
1120
- Form: "FORM",
1121
- Document: "DOCUMENT",
1122
- Json: "JSON"
1123
- };
1124
-
1125
- // generated/models/identity-field-type.ts
1126
- var IdentityFieldType = {
1127
- FullName: "FULL_NAME",
1128
- Birth: "BIRTH",
1129
- HealthNumber: "HEALTH_NUMBER",
1130
- TaxNumber: "TAX_NUMBER",
1131
- DocId: "DOC_ID",
1132
- CountryAlpha3: "COUNTRY_ALPHA3",
1133
- SocialSecurityNumber: "SOCIAL_SECURITY_NUMBER",
1134
- Email: "EMAIL",
1135
- Phone: "PHONE"
2184
+ // generated/models/identity-event.ts
2185
+ var IdentityEventEventTypeEnum = {
2186
+ Identity: "identity"
1136
2187
  };
1137
2188
 
1138
- // generated/models/mandate-data-dto.ts
1139
- var MandateDataDtoTypeEnum = {
1140
- String: "string",
1141
- Number: "number",
1142
- Boolean: "boolean",
1143
- Object: "object",
1144
- Array: "array",
1145
- Date: "date",
1146
- Pdf: "pdf",
1147
- Url: "url"
2189
+ // generated/models/otp-failed-event.ts
2190
+ var OtpFailedEventEventTypeEnum = {
2191
+ OtpFailed: "otp.failed"
1148
2192
  };
1149
2193
 
1150
- // generated/models/mandate-data-type.ts
1151
- var MandateDataType = {
1152
- String: "string",
1153
- Number: "number",
1154
- Boolean: "boolean",
1155
- Object: "object",
1156
- Array: "array",
1157
- Date: "date",
1158
- Pdf: "pdf",
1159
- Url: "url"
2194
+ // generated/models/request-credential-entity.ts
2195
+ var RequestCredentialEntityStatusEnum = {
2196
+ Draft: "DRAFT",
2197
+ Active: "ACTIVE",
2198
+ Rejected: "REJECTED",
2199
+ Canceled: "CANCELED",
2200
+ Revoked: "REVOKED",
2201
+ Expired: "EXPIRED"
1160
2202
  };
1161
2203
 
1162
2204
  // generated/models/request-detail-entity.ts
@@ -1167,6 +2209,13 @@ var RequestDetailEntitySecurityLevelEnum = {
1167
2209
  HumanosRevalidation: "HUMANOS_REVALIDATION"
1168
2210
  };
1169
2211
 
2212
+ // generated/models/request-detail-subject-entity.ts
2213
+ var RequestDetailSubjectEntityIdentityStatusEnum = {
2214
+ None: "NONE",
2215
+ Kyc: "KYC",
2216
+ Humanos: "HUMANOS"
2217
+ };
2218
+
1170
2219
  // generated/models/request-entity.ts
1171
2220
  var RequestEntitySecurityLevelEnum = {
1172
2221
  Contact: "CONTACT",
@@ -1183,12 +2232,31 @@ var RequestQuerySecurityLevelEnum = {
1183
2232
  HumanosRevalidation: "HUMANOS_REVALIDATION"
1184
2233
  };
1185
2234
 
2235
+ // generated/models/request-subject-entity.ts
2236
+ var RequestSubjectEntityIdentityStatusEnum = {
2237
+ None: "NONE",
2238
+ Kyc: "KYC",
2239
+ Humanos: "HUMANOS"
2240
+ };
2241
+
1186
2242
  // generated/models/resource-entity.ts
1187
2243
  var ResourceEntityTypeEnum = {
1188
2244
  Consent: "CONSENT",
1189
2245
  Form: "FORM",
1190
2246
  Document: "DOCUMENT",
1191
- Json: "JSON"
2247
+ Json: "JSON",
2248
+ Payment: "PAYMENT",
2249
+ Policy: "POLICY"
2250
+ };
2251
+
2252
+ // generated/models/resource-minimal-entity.ts
2253
+ var ResourceMinimalEntityTypeEnum = {
2254
+ Consent: "CONSENT",
2255
+ Form: "FORM",
2256
+ Document: "DOCUMENT",
2257
+ Json: "JSON",
2258
+ Payment: "PAYMENT",
2259
+ Policy: "POLICY"
1192
2260
  };
1193
2261
 
1194
2262
  // generated/models/resource-query.ts
@@ -1196,43 +2264,48 @@ var ResourceQueryTypesEnum = {
1196
2264
  Consent: "CONSENT",
1197
2265
  Form: "FORM",
1198
2266
  Document: "DOCUMENT",
1199
- Json: "JSON"
2267
+ Json: "JSON",
2268
+ Payment: "PAYMENT",
2269
+ Policy: "POLICY"
1200
2270
  };
1201
2271
 
1202
- // generated/models/w3-cproof.ts
1203
- var W3CProofActionTypeEnum = {
1204
- Issue: "ISSUE",
1205
- Accept: "ACCEPT",
1206
- Reject: "REJECT",
1207
- Revoke: "REVOKE"
2272
+ // generated/models/revoke-credential-entity.ts
2273
+ var RevokeCredentialEntityStatusEnum = {
2274
+ Draft: "DRAFT",
2275
+ Active: "ACTIVE",
2276
+ Rejected: "REJECTED",
2277
+ Canceled: "CANCELED",
2278
+ Revoked: "REVOKED",
2279
+ Expired: "EXPIRED"
1208
2280
  };
1209
2281
 
1210
- // generated/models/webhook-event-type.ts
1211
- var WebhookEventType = {
1212
- Credential: "credential",
1213
- Identity: "identity",
1214
- OtpFailed: "otp.failed",
1215
- Test: "test"
2282
+ // generated/models/subject-issuer-entity.ts
2283
+ var SubjectIssuerEntityIdentityStatusEnum = {
2284
+ None: "NONE",
2285
+ Kyc: "KYC",
2286
+ Humanos: "HUMANOS"
1216
2287
  };
1217
2288
 
1218
- // generated/models/webhook-event-type-credential.ts
1219
- var WebhookEventTypeCREDENTIAL = {
1220
- Credential: "credential"
2289
+ // generated/models/test-event.ts
2290
+ var TestEventEventTypeEnum = {
2291
+ Test: "test"
1221
2292
  };
1222
2293
 
1223
- // generated/models/webhook-event-type-identity.ts
1224
- var WebhookEventTypeIDENTITY = {
1225
- Identity: "identity"
2294
+ // generated/models/verify-allow-response-entity.ts
2295
+ var VerifyAllowResponseEntityDecisionEnum = {
2296
+ Allow: "allow"
1226
2297
  };
1227
2298
 
1228
- // generated/models/webhook-event-type-otpfailed.ts
1229
- var WebhookEventTypeOTPFAILED = {
1230
- OtpFailed: "otp.failed"
2299
+ // generated/models/verify-deny-response-entity.ts
2300
+ var VerifyDenyResponseEntityDecisionEnum = {
2301
+ Deny: "deny"
1231
2302
  };
1232
2303
 
1233
- // generated/models/webhook-event-type-test.ts
1234
- var WebhookEventTypeTEST = {
1235
- Test: "test"
2304
+ // generated/models/verify-evaluation-entity.ts
2305
+ var VerifyEvaluationEntityResultEnum = {
2306
+ Pass: "pass",
2307
+ Fail: "fail",
2308
+ Error: "error"
1236
2309
  };
1237
2310
 
1238
2311
  // src/signature.ts
@@ -1289,9 +2362,14 @@ var HumanosClient = class {
1289
2362
  basePath,
1290
2363
  accessToken: apiKey
1291
2364
  });
2365
+ this.actions = new ActionsApi(this.config, basePath, this.axios);
2366
+ this.activity = new ActivityApi(this.config, basePath, this.axios);
2367
+ this.approval = new ApprovalApi(this.config, basePath, this.axios);
2368
+ this.credentials = new CredentialsApi(this.config, basePath, this.axios);
2369
+ this.did = new DIDApi(this.config, basePath, this.axios);
1292
2370
  this.requests = new RequestsApi(this.config, basePath, this.axios);
1293
- this.resources = new ResourceApi(this.config, basePath, this.axios);
1294
2371
  this.users = new UserApi(this.config, basePath, this.axios);
2372
+ this.webhooks = new WebhooksApi(this.config, basePath, this.axios);
1295
2373
  }
1296
2374
  };
1297
2375
  function createHumanosClient(config) {
@@ -1382,50 +2460,72 @@ function createWebhookHandler(config, handler) {
1382
2460
  }
1383
2461
  export {
1384
2462
  API_VERSION,
1385
- ActionType,
2463
+ ActionsApi,
2464
+ ActionsApiAxiosParamCreator,
2465
+ ActionsApiFactory,
2466
+ ActionsApiFp,
2467
+ ActivityApi,
2468
+ ActivityApiAxiosParamCreator,
2469
+ ActivityApiFactory,
2470
+ ActivityApiFp,
2471
+ ActivityEntityTypeEnum,
2472
+ ActivityQueryTypeEnum,
2473
+ ApprovalApi,
2474
+ ApprovalApiAxiosParamCreator,
2475
+ ApprovalApiFactory,
2476
+ ApprovalApiFp,
1386
2477
  Configuration,
1387
2478
  CreateSubjectEntityStatusEnum,
2479
+ CredentialDtoTypeEnum,
1388
2480
  CredentialEntityStatusEnum,
1389
- CredentialFullEntityStatusEnum,
2481
+ CredentialEventEventTypeEnum,
2482
+ CredentialPlacementDtoTypeEnum,
1390
2483
  CredentialStatus,
1391
2484
  CredentialsApi,
1392
2485
  CredentialsApiAxiosParamCreator,
1393
2486
  CredentialsApiFactory,
1394
2487
  CredentialsApiFp,
2488
+ DIDApi,
2489
+ DIDApiAxiosParamCreator,
2490
+ DIDApiFactory,
2491
+ DIDApiFp,
1395
2492
  DeliveryActionType,
1396
2493
  GenerateRequestDtoSecurityLevelEnum,
1397
- GetGroupsTypesEnum,
1398
- GetRequestsSecurityLevelEnum,
1399
- GetResourcesTypesEnum,
1400
- GroupResourceEntityTypeEnum,
1401
2494
  HumanosClient,
1402
- IdentityFieldType,
1403
- MandateDataDtoTypeEnum,
1404
- MandateDataType,
2495
+ IdentityEventEventTypeEnum,
2496
+ ListSecurityLevelEnum,
2497
+ ListTypeEnum,
2498
+ ListTypesEnum,
2499
+ OtpFailedEventEventTypeEnum,
2500
+ RequestCredentialEntityStatusEnum,
1405
2501
  RequestDetailEntitySecurityLevelEnum,
2502
+ RequestDetailSubjectEntityIdentityStatusEnum,
1406
2503
  RequestEntitySecurityLevelEnum,
1407
2504
  RequestQuerySecurityLevelEnum,
2505
+ RequestSubjectEntityIdentityStatusEnum,
1408
2506
  RequestsApi,
1409
2507
  RequestsApiAxiosParamCreator,
1410
2508
  RequestsApiFactory,
1411
2509
  RequestsApiFp,
1412
- ResourceApi,
1413
- ResourceApiAxiosParamCreator,
1414
- ResourceApiFactory,
1415
- ResourceApiFp,
1416
2510
  ResourceEntityTypeEnum,
2511
+ ResourceMinimalEntityTypeEnum,
1417
2512
  ResourceQueryTypesEnum,
2513
+ RevokeCredentialEntityStatusEnum,
1418
2514
  SDK_LANGUAGE,
2515
+ SubjectIssuerEntityIdentityStatusEnum,
2516
+ TestEventEventTypeEnum,
1419
2517
  UserApi,
1420
2518
  UserApiAxiosParamCreator,
1421
2519
  UserApiFactory,
1422
2520
  UserApiFp,
1423
- W3CProofActionTypeEnum,
1424
- WebhookEventType,
1425
- WebhookEventTypeCREDENTIAL,
1426
- WebhookEventTypeIDENTITY,
1427
- WebhookEventTypeOTPFAILED,
1428
- WebhookEventTypeTEST,
2521
+ VerifyAllowResponseEntityDecisionEnum,
2522
+ VerifyDenyResponseEntityDecisionEnum,
2523
+ VerifyEvaluationEntityResultEnum,
2524
+ WebhooksApi,
2525
+ WebhooksApiAxiosParamCreator,
2526
+ WebhooksApiFactory,
2527
+ WebhooksApiFp,
2528
+ WorkflowsTypesEnum,
1429
2529
  applySignatureInterceptor,
1430
2530
  createHumanosClient,
1431
2531
  createSignatureInterceptor,