humanos 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/README.md +310 -114
  2. package/dist/index.d.mts +3319 -1514
  3. package/dist/index.d.ts +3319 -1514
  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 +8 -2
  35. package/generated/models/create-subject-entity.ts +3 -3
  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 +26 -26
  62. package/generated/models/identity-event-decision.ts +13 -1
  63. package/generated/models/identity-event-user.ts +42 -0
  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/{subject.ts → partial-subject-entity.ts} +9 -9
  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
@@ -26,26 +26,26 @@ import type { GroupsEntity } from '../models';
26
26
  // @ts-ignore
27
27
  import type { ResourcesEntity } from '../models';
28
28
  /**
29
- * ResourceApi - axios parameter creator
29
+ * ApprovalApi - axios parameter creator
30
30
  * @export
31
31
  */
32
- export const ResourceApiAxiosParamCreator = function (configuration?: Configuration) {
32
+ export const ApprovalApiAxiosParamCreator = function (configuration?: Configuration) {
33
33
  return {
34
34
  /**
35
- * 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.
36
- * @summary Get Groups
35
+ * Retrieve a paginated list of your approvals. Approvals can be documents, consents, forms.
36
+ * @summary Get Approvals
37
37
  * @param {number} [pageIndex] Page number
38
38
  * @param {number} [pageSize] Number of items per page
39
39
  * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
40
40
  * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
41
- * @param {Array<GetGroupsTypesEnum>} [types] Filter by resource types. Can be a single value or array
41
+ * @param {Array<ListTypesEnum>} [types] Filter by resource types. Can be a single value or array
42
42
  * @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
43
43
  * @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.
44
44
  * @param {*} [options] Override http request option.
45
45
  * @throws {RequiredError}
46
46
  */
47
- getGroups: async (pageIndex?: number, pageSize?: number, search?: string, active?: boolean, types?: Array<GetGroupsTypesEnum>, internalId?: string, aPIVersion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
48
- const localVarPath = `/resource/group`;
47
+ list: async (pageIndex?: number, pageSize?: number, search?: string, active?: boolean, types?: Array<ListTypesEnum>, internalId?: string, aPIVersion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
48
+ const localVarPath = `/approvals`;
49
49
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
50
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
51
51
  let baseOptions;
@@ -96,20 +96,20 @@ export const ResourceApiAxiosParamCreator = function (configuration?: Configurat
96
96
  };
97
97
  },
98
98
  /**
99
- * Retrieve a paginated list of resources for your organization. Resources can be documents, consents, forms.
100
- * @summary Get Resources
99
+ * Retrieve a paginated list of your workflows, including their approvals. Workflows allow to pack approvals together and easily request them.
100
+ * @summary List Workflows
101
101
  * @param {number} [pageIndex] Page number
102
102
  * @param {number} [pageSize] Number of items per page
103
103
  * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
104
104
  * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
105
- * @param {Array<GetResourcesTypesEnum>} [types] Filter by resource types. Can be a single value or array
105
+ * @param {Array<WorkflowsTypesEnum>} [types] Filter by resource types. Can be a single value or array
106
106
  * @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
107
107
  * @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.
108
108
  * @param {*} [options] Override http request option.
109
109
  * @throws {RequiredError}
110
110
  */
111
- getResources: async (pageIndex?: number, pageSize?: number, search?: string, active?: boolean, types?: Array<GetResourcesTypesEnum>, internalId?: string, aPIVersion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
112
- const localVarPath = `/resource`;
111
+ workflows: async (pageIndex?: number, pageSize?: number, search?: string, active?: boolean, types?: Array<WorkflowsTypesEnum>, internalId?: string, aPIVersion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
112
+ const localVarPath = `/approvals/workflow`;
113
113
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
114
114
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
115
115
  let baseOptions;
@@ -163,156 +163,160 @@ export const ResourceApiAxiosParamCreator = function (configuration?: Configurat
163
163
  };
164
164
 
165
165
  /**
166
- * ResourceApi - functional programming interface
166
+ * ApprovalApi - functional programming interface
167
167
  * @export
168
168
  */
169
- export const ResourceApiFp = function(configuration?: Configuration) {
170
- const localVarAxiosParamCreator = ResourceApiAxiosParamCreator(configuration)
169
+ export const ApprovalApiFp = function(configuration?: Configuration) {
170
+ const localVarAxiosParamCreator = ApprovalApiAxiosParamCreator(configuration)
171
171
  return {
172
172
  /**
173
- * 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.
174
- * @summary Get Groups
173
+ * Retrieve a paginated list of your approvals. Approvals can be documents, consents, forms.
174
+ * @summary Get Approvals
175
175
  * @param {number} [pageIndex] Page number
176
176
  * @param {number} [pageSize] Number of items per page
177
177
  * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
178
178
  * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
179
- * @param {Array<GetGroupsTypesEnum>} [types] Filter by resource types. Can be a single value or array
179
+ * @param {Array<ListTypesEnum>} [types] Filter by resource types. Can be a single value or array
180
180
  * @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
181
181
  * @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.
182
182
  * @param {*} [options] Override http request option.
183
183
  * @throws {RequiredError}
184
184
  */
185
- async getGroups(pageIndex?: number, pageSize?: number, search?: string, active?: boolean, types?: Array<GetGroupsTypesEnum>, internalId?: string, aPIVersion?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupsEntity>> {
186
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGroups(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options);
185
+ async list(pageIndex?: number, pageSize?: number, search?: string, active?: boolean, types?: Array<ListTypesEnum>, internalId?: string, aPIVersion?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResourcesEntity>> {
186
+ const localVarAxiosArgs = await localVarAxiosParamCreator.list(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options);
187
187
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
188
- const localVarOperationServerBasePath = operationServerMap['ResourceApi.getGroups']?.[localVarOperationServerIndex]?.url;
188
+ const localVarOperationServerBasePath = operationServerMap['ApprovalApi.list']?.[localVarOperationServerIndex]?.url;
189
189
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
190
190
  },
191
191
  /**
192
- * Retrieve a paginated list of resources for your organization. Resources can be documents, consents, forms.
193
- * @summary Get Resources
192
+ * Retrieve a paginated list of your workflows, including their approvals. Workflows allow to pack approvals together and easily request them.
193
+ * @summary List Workflows
194
194
  * @param {number} [pageIndex] Page number
195
195
  * @param {number} [pageSize] Number of items per page
196
196
  * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
197
197
  * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
198
- * @param {Array<GetResourcesTypesEnum>} [types] Filter by resource types. Can be a single value or array
198
+ * @param {Array<WorkflowsTypesEnum>} [types] Filter by resource types. Can be a single value or array
199
199
  * @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
200
200
  * @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.
201
201
  * @param {*} [options] Override http request option.
202
202
  * @throws {RequiredError}
203
203
  */
204
- async getResources(pageIndex?: number, pageSize?: number, search?: string, active?: boolean, types?: Array<GetResourcesTypesEnum>, internalId?: string, aPIVersion?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResourcesEntity>> {
205
- const localVarAxiosArgs = await localVarAxiosParamCreator.getResources(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options);
204
+ async workflows(pageIndex?: number, pageSize?: number, search?: string, active?: boolean, types?: Array<WorkflowsTypesEnum>, internalId?: string, aPIVersion?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupsEntity>> {
205
+ const localVarAxiosArgs = await localVarAxiosParamCreator.workflows(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options);
206
206
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
207
- const localVarOperationServerBasePath = operationServerMap['ResourceApi.getResources']?.[localVarOperationServerIndex]?.url;
207
+ const localVarOperationServerBasePath = operationServerMap['ApprovalApi.workflows']?.[localVarOperationServerIndex]?.url;
208
208
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
209
209
  },
210
210
  }
211
211
  };
212
212
 
213
213
  /**
214
- * ResourceApi - factory interface
214
+ * ApprovalApi - factory interface
215
215
  * @export
216
216
  */
217
- export const ResourceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
218
- const localVarFp = ResourceApiFp(configuration)
217
+ export const ApprovalApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
218
+ const localVarFp = ApprovalApiFp(configuration)
219
219
  return {
220
220
  /**
221
- * 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.
222
- * @summary Get Groups
221
+ * Retrieve a paginated list of your approvals. Approvals can be documents, consents, forms.
222
+ * @summary Get Approvals
223
223
  * @param {number} [pageIndex] Page number
224
224
  * @param {number} [pageSize] Number of items per page
225
225
  * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
226
226
  * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
227
- * @param {Array<GetGroupsTypesEnum>} [types] Filter by resource types. Can be a single value or array
227
+ * @param {Array<ListTypesEnum>} [types] Filter by resource types. Can be a single value or array
228
228
  * @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
229
229
  * @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.
230
230
  * @param {*} [options] Override http request option.
231
231
  * @throws {RequiredError}
232
232
  */
233
- getGroups(pageIndex?: number, pageSize?: number, search?: string, active?: boolean, types?: Array<GetGroupsTypesEnum>, internalId?: string, aPIVersion?: string, options?: RawAxiosRequestConfig): AxiosPromise<GroupsEntity> {
234
- return localVarFp.getGroups(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options).then((request) => request(axios, basePath));
233
+ list(pageIndex?: number, pageSize?: number, search?: string, active?: boolean, types?: Array<ListTypesEnum>, internalId?: string, aPIVersion?: string, options?: RawAxiosRequestConfig): AxiosPromise<ResourcesEntity> {
234
+ return localVarFp.list(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options).then((request) => request(axios, basePath));
235
235
  },
236
236
  /**
237
- * Retrieve a paginated list of resources for your organization. Resources can be documents, consents, forms.
238
- * @summary Get Resources
237
+ * Retrieve a paginated list of your workflows, including their approvals. Workflows allow to pack approvals together and easily request them.
238
+ * @summary List Workflows
239
239
  * @param {number} [pageIndex] Page number
240
240
  * @param {number} [pageSize] Number of items per page
241
241
  * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
242
242
  * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
243
- * @param {Array<GetResourcesTypesEnum>} [types] Filter by resource types. Can be a single value or array
243
+ * @param {Array<WorkflowsTypesEnum>} [types] Filter by resource types. Can be a single value or array
244
244
  * @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
245
245
  * @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.
246
246
  * @param {*} [options] Override http request option.
247
247
  * @throws {RequiredError}
248
248
  */
249
- getResources(pageIndex?: number, pageSize?: number, search?: string, active?: boolean, types?: Array<GetResourcesTypesEnum>, internalId?: string, aPIVersion?: string, options?: RawAxiosRequestConfig): AxiosPromise<ResourcesEntity> {
250
- return localVarFp.getResources(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options).then((request) => request(axios, basePath));
249
+ workflows(pageIndex?: number, pageSize?: number, search?: string, active?: boolean, types?: Array<WorkflowsTypesEnum>, internalId?: string, aPIVersion?: string, options?: RawAxiosRequestConfig): AxiosPromise<GroupsEntity> {
250
+ return localVarFp.workflows(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options).then((request) => request(axios, basePath));
251
251
  },
252
252
  };
253
253
  };
254
254
 
255
255
  /**
256
- * ResourceApi - object-oriented interface
256
+ * ApprovalApi - object-oriented interface
257
257
  * @export
258
- * @class ResourceApi
258
+ * @class ApprovalApi
259
259
  * @extends {BaseAPI}
260
260
  */
261
- export class ResourceApi extends BaseAPI {
261
+ export class ApprovalApi extends BaseAPI {
262
262
  /**
263
- * 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.
264
- * @summary Get Groups
263
+ * Retrieve a paginated list of your approvals. Approvals can be documents, consents, forms.
264
+ * @summary Get Approvals
265
265
  * @param {number} [pageIndex] Page number
266
266
  * @param {number} [pageSize] Number of items per page
267
267
  * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
268
268
  * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
269
- * @param {Array<GetGroupsTypesEnum>} [types] Filter by resource types. Can be a single value or array
269
+ * @param {Array<ListTypesEnum>} [types] Filter by resource types. Can be a single value or array
270
270
  * @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
271
271
  * @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.
272
272
  * @param {*} [options] Override http request option.
273
273
  * @throws {RequiredError}
274
- * @memberof ResourceApi
274
+ * @memberof ApprovalApi
275
275
  */
276
- public getGroups(pageIndex?: number, pageSize?: number, search?: string, active?: boolean, types?: Array<GetGroupsTypesEnum>, internalId?: string, aPIVersion?: string, options?: RawAxiosRequestConfig) {
277
- return ResourceApiFp(this.configuration).getGroups(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
276
+ public list(pageIndex?: number, pageSize?: number, search?: string, active?: boolean, types?: Array<ListTypesEnum>, internalId?: string, aPIVersion?: string, options?: RawAxiosRequestConfig) {
277
+ return ApprovalApiFp(this.configuration).list(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
278
278
  }
279
279
 
280
280
  /**
281
- * Retrieve a paginated list of resources for your organization. Resources can be documents, consents, forms.
282
- * @summary Get Resources
281
+ * Retrieve a paginated list of your workflows, including their approvals. Workflows allow to pack approvals together and easily request them.
282
+ * @summary List Workflows
283
283
  * @param {number} [pageIndex] Page number
284
284
  * @param {number} [pageSize] Number of items per page
285
285
  * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
286
286
  * @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
287
- * @param {Array<GetResourcesTypesEnum>} [types] Filter by resource types. Can be a single value or array
287
+ * @param {Array<WorkflowsTypesEnum>} [types] Filter by resource types. Can be a single value or array
288
288
  * @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
289
289
  * @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\&#39;s date.
290
290
  * @param {*} [options] Override http request option.
291
291
  * @throws {RequiredError}
292
- * @memberof ResourceApi
292
+ * @memberof ApprovalApi
293
293
  */
294
- public getResources(pageIndex?: number, pageSize?: number, search?: string, active?: boolean, types?: Array<GetResourcesTypesEnum>, internalId?: string, aPIVersion?: string, options?: RawAxiosRequestConfig) {
295
- return ResourceApiFp(this.configuration).getResources(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
294
+ public workflows(pageIndex?: number, pageSize?: number, search?: string, active?: boolean, types?: Array<WorkflowsTypesEnum>, internalId?: string, aPIVersion?: string, options?: RawAxiosRequestConfig) {
295
+ return ApprovalApiFp(this.configuration).workflows(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
296
296
  }
297
297
  }
298
298
 
299
299
  /**
300
300
  * @export
301
301
  */
302
- export const GetGroupsTypesEnum = {
302
+ export const ListTypesEnum = {
303
303
  Consent: 'CONSENT',
304
304
  Form: 'FORM',
305
305
  Document: 'DOCUMENT',
306
- Json: 'JSON'
306
+ Json: 'JSON',
307
+ Payment: 'PAYMENT',
308
+ Policy: 'POLICY'
307
309
  } as const;
308
- export type GetGroupsTypesEnum = typeof GetGroupsTypesEnum[keyof typeof GetGroupsTypesEnum];
310
+ export type ListTypesEnum = typeof ListTypesEnum[keyof typeof ListTypesEnum];
309
311
  /**
310
312
  * @export
311
313
  */
312
- export const GetResourcesTypesEnum = {
314
+ export const WorkflowsTypesEnum = {
313
315
  Consent: 'CONSENT',
314
316
  Form: 'FORM',
315
317
  Document: 'DOCUMENT',
316
- Json: 'JSON'
318
+ Json: 'JSON',
319
+ Payment: 'PAYMENT',
320
+ Policy: 'POLICY'
317
321
  } as const;
318
- export type GetResourcesTypesEnum = typeof GetResourcesTypesEnum[keyof typeof GetResourcesTypesEnum];
322
+ export type WorkflowsTypesEnum = typeof WorkflowsTypesEnum[keyof typeof WorkflowsTypesEnum];