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,11 +26,13 @@ import type { CreateSubjectDto } from '../models';
26
26
  // @ts-ignore
27
27
  import type { CreateSubjectEntity } from '../models';
28
28
  // @ts-ignore
29
- import type { GetSubject400Response } from '../models';
29
+ import type { SubjectIssuerEntity } from '../models';
30
30
  // @ts-ignore
31
- import type { GetSubject404Response } from '../models';
31
+ import type { UserCreate400Response } from '../models';
32
32
  // @ts-ignore
33
- import type { SubjectEntity } from '../models';
33
+ import type { UserDetail400Response } from '../models';
34
+ // @ts-ignore
35
+ import type { UserDetail404Response } from '../models';
34
36
  /**
35
37
  * UserApi - axios parameter creator
36
38
  * @export
@@ -38,14 +40,15 @@ import type { SubjectEntity } from '../models';
38
40
  export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
39
41
  return {
40
42
  /**
41
- * 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.
43
+ * 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.
42
44
  * @summary Create User
43
45
  * @param {Array<CreateSubjectDto>} createSubjectDto Array of subjects to create. Each subject represents a user to be imported into Humanos
46
+ * @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
44
47
  * @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\&#39;s date.
45
48
  * @param {*} [options] Override http request option.
46
49
  * @throws {RequiredError}
47
50
  */
48
- create: async (createSubjectDto: Array<CreateSubjectDto>, aPIVersion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
51
+ create: async (createSubjectDto: Array<CreateSubjectDto>, idempotencyKey?: string, aPIVersion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
49
52
  // verify required parameter 'createSubjectDto' is not null or undefined
50
53
  assertParamExists('create', 'createSubjectDto', createSubjectDto)
51
54
  const localVarPath = `/user`;
@@ -64,6 +67,9 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
64
67
 
65
68
  localVarHeaderParameter['Content-Type'] = 'application/json';
66
69
 
70
+ if (idempotencyKey != null) {
71
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
72
+ }
67
73
  if (aPIVersion != null) {
68
74
  localVarHeaderParameter['API-Version'] = String(aPIVersion);
69
75
  }
@@ -78,16 +84,16 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
78
84
  };
79
85
  },
80
86
  /**
81
- * Retrieves detailed information about a user. Can and must be searched by only one of the following: contact, did, or internalId
87
+ * Retrieves detailed information about a user. Search by exactly one parameter: contact, id, or internalId. Only one must be provided.
82
88
  * @summary Get User
83
- * @param {string} [contact] Contact value (email or phone)
84
- * @param {string} [did] Public Decentralized Identifier (DID) of the user
89
+ * @param {string} [contact] Verified contact value (email or phone)
90
+ * @param {string} [id] Users VIA identifier
85
91
  * @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
86
92
  * @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.
87
93
  * @param {*} [options] Override http request option.
88
94
  * @throws {RequiredError}
89
95
  */
90
- getSubject: async (contact?: string, did?: string, internalId?: string, aPIVersion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
96
+ detail: async (contact?: string, id?: string, internalId?: string, aPIVersion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
91
97
  const localVarPath = `/user`;
92
98
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
93
99
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -104,8 +110,8 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
104
110
  localVarQueryParameter['contact'] = contact;
105
111
  }
106
112
 
107
- if (did !== undefined) {
108
- localVarQueryParameter['did'] = did;
113
+ if (id !== undefined) {
114
+ localVarQueryParameter['id'] = id;
109
115
  }
110
116
 
111
117
  if (internalId !== undefined) {
@@ -137,33 +143,34 @@ export const UserApiFp = function(configuration?: Configuration) {
137
143
  const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
138
144
  return {
139
145
  /**
140
- * 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.
146
+ * 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.
141
147
  * @summary Create User
142
148
  * @param {Array<CreateSubjectDto>} createSubjectDto Array of subjects to create. Each subject represents a user to be imported into Humanos
149
+ * @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
143
150
  * @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.
144
151
  * @param {*} [options] Override http request option.
145
152
  * @throws {RequiredError}
146
153
  */
147
- async create(createSubjectDto: Array<CreateSubjectDto>, aPIVersion?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CreateSubjectEntity>>> {
148
- const localVarAxiosArgs = await localVarAxiosParamCreator.create(createSubjectDto, aPIVersion, options);
154
+ async create(createSubjectDto: Array<CreateSubjectDto>, idempotencyKey?: string, aPIVersion?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CreateSubjectEntity>>> {
155
+ const localVarAxiosArgs = await localVarAxiosParamCreator.create(createSubjectDto, idempotencyKey, aPIVersion, options);
149
156
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
150
157
  const localVarOperationServerBasePath = operationServerMap['UserApi.create']?.[localVarOperationServerIndex]?.url;
151
158
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
152
159
  },
153
160
  /**
154
- * Retrieves detailed information about a user. Can and must be searched by only one of the following: contact, did, or internalId
161
+ * Retrieves detailed information about a user. Search by exactly one parameter: contact, id, or internalId. Only one must be provided.
155
162
  * @summary Get User
156
- * @param {string} [contact] Contact value (email or phone)
157
- * @param {string} [did] Public Decentralized Identifier (DID) of the user
163
+ * @param {string} [contact] Verified contact value (email or phone)
164
+ * @param {string} [id] Users VIA identifier
158
165
  * @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
159
166
  * @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.
160
167
  * @param {*} [options] Override http request option.
161
168
  * @throws {RequiredError}
162
169
  */
163
- async getSubject(contact?: string, did?: string, internalId?: string, aPIVersion?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubjectEntity>> {
164
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSubject(contact, did, internalId, aPIVersion, options);
170
+ async detail(contact?: string, id?: string, internalId?: string, aPIVersion?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubjectIssuerEntity>> {
171
+ const localVarAxiosArgs = await localVarAxiosParamCreator.detail(contact, id, internalId, aPIVersion, options);
165
172
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
166
- const localVarOperationServerBasePath = operationServerMap['UserApi.getSubject']?.[localVarOperationServerIndex]?.url;
173
+ const localVarOperationServerBasePath = operationServerMap['UserApi.detail']?.[localVarOperationServerIndex]?.url;
167
174
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
168
175
  },
169
176
  }
@@ -177,28 +184,29 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
177
184
  const localVarFp = UserApiFp(configuration)
178
185
  return {
179
186
  /**
180
- * 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.
187
+ * 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.
181
188
  * @summary Create User
182
189
  * @param {Array<CreateSubjectDto>} createSubjectDto Array of subjects to create. Each subject represents a user to be imported into Humanos
190
+ * @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
183
191
  * @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.
184
192
  * @param {*} [options] Override http request option.
185
193
  * @throws {RequiredError}
186
194
  */
187
- create(createSubjectDto: Array<CreateSubjectDto>, aPIVersion?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<CreateSubjectEntity>> {
188
- return localVarFp.create(createSubjectDto, aPIVersion, options).then((request) => request(axios, basePath));
195
+ create(createSubjectDto: Array<CreateSubjectDto>, idempotencyKey?: string, aPIVersion?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<CreateSubjectEntity>> {
196
+ return localVarFp.create(createSubjectDto, idempotencyKey, aPIVersion, options).then((request) => request(axios, basePath));
189
197
  },
190
198
  /**
191
- * Retrieves detailed information about a user. Can and must be searched by only one of the following: contact, did, or internalId
199
+ * Retrieves detailed information about a user. Search by exactly one parameter: contact, id, or internalId. Only one must be provided.
192
200
  * @summary Get User
193
- * @param {string} [contact] Contact value (email or phone)
194
- * @param {string} [did] Public Decentralized Identifier (DID) of the user
201
+ * @param {string} [contact] Verified contact value (email or phone)
202
+ * @param {string} [id] Users VIA identifier
195
203
  * @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
196
204
  * @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.
197
205
  * @param {*} [options] Override http request option.
198
206
  * @throws {RequiredError}
199
207
  */
200
- getSubject(contact?: string, did?: string, internalId?: string, aPIVersion?: string, options?: RawAxiosRequestConfig): AxiosPromise<SubjectEntity> {
201
- return localVarFp.getSubject(contact, did, internalId, aPIVersion, options).then((request) => request(axios, basePath));
208
+ detail(contact?: string, id?: string, internalId?: string, aPIVersion?: string, options?: RawAxiosRequestConfig): AxiosPromise<SubjectIssuerEntity> {
209
+ return localVarFp.detail(contact, id, internalId, aPIVersion, options).then((request) => request(axios, basePath));
202
210
  },
203
211
  };
204
212
  };
@@ -211,31 +219,32 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
211
219
  */
212
220
  export class UserApi extends BaseAPI {
213
221
  /**
214
- * 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.
222
+ * 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.
215
223
  * @summary Create User
216
224
  * @param {Array<CreateSubjectDto>} createSubjectDto Array of subjects to create. Each subject represents a user to be imported into Humanos
225
+ * @param {string} [idempotencyKey] Optional key used to safely retry the same create/initiate request without duplicating side effects.
217
226
  * @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\&#39;s date.
218
227
  * @param {*} [options] Override http request option.
219
228
  * @throws {RequiredError}
220
229
  * @memberof UserApi
221
230
  */
222
- public create(createSubjectDto: Array<CreateSubjectDto>, aPIVersion?: string, options?: RawAxiosRequestConfig) {
223
- return UserApiFp(this.configuration).create(createSubjectDto, aPIVersion, options).then((request) => request(this.axios, this.basePath));
231
+ public create(createSubjectDto: Array<CreateSubjectDto>, idempotencyKey?: string, aPIVersion?: string, options?: RawAxiosRequestConfig) {
232
+ return UserApiFp(this.configuration).create(createSubjectDto, idempotencyKey, aPIVersion, options).then((request) => request(this.axios, this.basePath));
224
233
  }
225
234
 
226
235
  /**
227
- * Retrieves detailed information about a user. Can and must be searched by only one of the following: contact, did, or internalId
236
+ * Retrieves detailed information about a user. Search by exactly one parameter: contact, id, or internalId. Only one must be provided.
228
237
  * @summary Get User
229
- * @param {string} [contact] Contact value (email or phone)
230
- * @param {string} [did] Public Decentralized Identifier (DID) of the user
238
+ * @param {string} [contact] Verified contact value (email or phone)
239
+ * @param {string} [id] Users VIA identifier
231
240
  * @param {string} [internalId] Identifier to help you identify the user in your own system. We recommend using a unique value.
232
241
  * @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.
233
242
  * @param {*} [options] Override http request option.
234
243
  * @throws {RequiredError}
235
244
  * @memberof UserApi
236
245
  */
237
- public getSubject(contact?: string, did?: string, internalId?: string, aPIVersion?: string, options?: RawAxiosRequestConfig) {
238
- return UserApiFp(this.configuration).getSubject(contact, did, internalId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
246
+ public detail(contact?: string, id?: string, internalId?: string, aPIVersion?: string, options?: RawAxiosRequestConfig) {
247
+ return UserApiFp(this.configuration).detail(contact, id, internalId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
239
248
  }
240
249
  }
241
250
 
@@ -36,16 +36,17 @@ import type { TestEvent } from '../models';
36
36
  export const WebhooksApiAxiosParamCreator = function (configuration?: Configuration) {
37
37
  return {
38
38
  /**
39
- * Fired when a credential request is accepted or rejected by the subject.
39
+ * 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.
40
40
  * @summary Credential Event
41
41
  * @param {CredentialEvent} credentialEvent
42
+ * @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.
42
43
  * @param {*} [options] Override http request option.
43
44
  * @throws {RequiredError}
44
45
  */
45
- webhookCredential: async (credentialEvent: CredentialEvent, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
46
+ credential: async (credentialEvent: CredentialEvent, aPIVersion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
46
47
  // verify required parameter 'credentialEvent' is not null or undefined
47
- assertParamExists('webhookCredential', 'credentialEvent', credentialEvent)
48
- const localVarPath = `/credential`;
48
+ assertParamExists('credential', 'credentialEvent', credentialEvent)
49
+ const localVarPath = `/_webhooks/credential`;
49
50
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
51
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
51
52
  let baseOptions;
@@ -61,6 +62,9 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat
61
62
 
62
63
  localVarHeaderParameter['Content-Type'] = 'application/json';
63
64
 
65
+ if (aPIVersion != null) {
66
+ localVarHeaderParameter['API-Version'] = String(aPIVersion);
67
+ }
64
68
  setSearchParams(localVarUrlObj, localVarQueryParameter);
65
69
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
66
70
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -72,16 +76,17 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat
72
76
  };
73
77
  },
74
78
  /**
75
- * Fired when an identity verification (KYC) decision is reached.
79
+ * 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.
76
80
  * @summary Identity Event
77
81
  * @param {IdentityEvent} identityEvent
82
+ * @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.
78
83
  * @param {*} [options] Override http request option.
79
84
  * @throws {RequiredError}
80
85
  */
81
- webhookIdentity: async (identityEvent: IdentityEvent, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
86
+ identity: async (identityEvent: IdentityEvent, aPIVersion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
82
87
  // verify required parameter 'identityEvent' is not null or undefined
83
- assertParamExists('webhookIdentity', 'identityEvent', identityEvent)
84
- const localVarPath = `/identity`;
88
+ assertParamExists('identity', 'identityEvent', identityEvent)
89
+ const localVarPath = `/_webhooks/identity`;
85
90
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
86
91
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
87
92
  let baseOptions;
@@ -97,6 +102,9 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat
97
102
 
98
103
  localVarHeaderParameter['Content-Type'] = 'application/json';
99
104
 
105
+ if (aPIVersion != null) {
106
+ localVarHeaderParameter['API-Version'] = String(aPIVersion);
107
+ }
100
108
  setSearchParams(localVarUrlObj, localVarQueryParameter);
101
109
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
102
110
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -108,16 +116,17 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat
108
116
  };
109
117
  },
110
118
  /**
111
- * Fired when an OTP delivery to the subject fails.
119
+ * 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.
112
120
  * @summary OTP Failed Event
113
121
  * @param {OtpFailedEvent} otpFailedEvent
122
+ * @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\&#39;s date.
114
123
  * @param {*} [options] Override http request option.
115
124
  * @throws {RequiredError}
116
125
  */
117
- webhookOtpFailed: async (otpFailedEvent: OtpFailedEvent, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
126
+ otpFailed: async (otpFailedEvent: OtpFailedEvent, aPIVersion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
118
127
  // verify required parameter 'otpFailedEvent' is not null or undefined
119
- assertParamExists('webhookOtpFailed', 'otpFailedEvent', otpFailedEvent)
120
- const localVarPath = `/otp.failed`;
128
+ assertParamExists('otpFailed', 'otpFailedEvent', otpFailedEvent)
129
+ const localVarPath = `/_webhooks/otp-failed`;
121
130
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
122
131
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
123
132
  let baseOptions;
@@ -133,6 +142,9 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat
133
142
 
134
143
  localVarHeaderParameter['Content-Type'] = 'application/json';
135
144
 
145
+ if (aPIVersion != null) {
146
+ localVarHeaderParameter['API-Version'] = String(aPIVersion);
147
+ }
136
148
  setSearchParams(localVarUrlObj, localVarQueryParameter);
137
149
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
150
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -144,16 +156,17 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat
144
156
  };
145
157
  },
146
158
  /**
147
- * Fired when a webhook test is triggered from the dashboard.
159
+ * 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.
148
160
  * @summary Test Event
149
161
  * @param {TestEvent} testEvent
162
+ * @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.
150
163
  * @param {*} [options] Override http request option.
151
164
  * @throws {RequiredError}
152
165
  */
153
- webhookTest: async (testEvent: TestEvent, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
166
+ test: async (testEvent: TestEvent, aPIVersion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
154
167
  // verify required parameter 'testEvent' is not null or undefined
155
- assertParamExists('webhookTest', 'testEvent', testEvent)
156
- const localVarPath = `/test`;
168
+ assertParamExists('test', 'testEvent', testEvent)
169
+ const localVarPath = `/_webhooks/test`;
157
170
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
158
171
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
159
172
  let baseOptions;
@@ -169,6 +182,9 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat
169
182
 
170
183
  localVarHeaderParameter['Content-Type'] = 'application/json';
171
184
 
185
+ if (aPIVersion != null) {
186
+ localVarHeaderParameter['API-Version'] = String(aPIVersion);
187
+ }
172
188
  setSearchParams(localVarUrlObj, localVarQueryParameter);
173
189
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
174
190
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -190,55 +206,59 @@ export const WebhooksApiFp = function(configuration?: Configuration) {
190
206
  const localVarAxiosParamCreator = WebhooksApiAxiosParamCreator(configuration)
191
207
  return {
192
208
  /**
193
- * Fired when a credential request is accepted or rejected by the subject.
209
+ * 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.
194
210
  * @summary Credential Event
195
211
  * @param {CredentialEvent} credentialEvent
212
+ * @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.
196
213
  * @param {*} [options] Override http request option.
197
214
  * @throws {RequiredError}
198
215
  */
199
- async webhookCredential(credentialEvent: CredentialEvent, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
200
- const localVarAxiosArgs = await localVarAxiosParamCreator.webhookCredential(credentialEvent, options);
216
+ async credential(credentialEvent: CredentialEvent, aPIVersion?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
217
+ const localVarAxiosArgs = await localVarAxiosParamCreator.credential(credentialEvent, aPIVersion, options);
201
218
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
202
- const localVarOperationServerBasePath = operationServerMap['WebhooksApi.webhookCredential']?.[localVarOperationServerIndex]?.url;
219
+ const localVarOperationServerBasePath = operationServerMap['WebhooksApi.credential']?.[localVarOperationServerIndex]?.url;
203
220
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
204
221
  },
205
222
  /**
206
- * Fired when an identity verification (KYC) decision is reached.
223
+ * 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.
207
224
  * @summary Identity Event
208
225
  * @param {IdentityEvent} identityEvent
226
+ * @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\&#39;s date.
209
227
  * @param {*} [options] Override http request option.
210
228
  * @throws {RequiredError}
211
229
  */
212
- async webhookIdentity(identityEvent: IdentityEvent, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
213
- const localVarAxiosArgs = await localVarAxiosParamCreator.webhookIdentity(identityEvent, options);
230
+ async identity(identityEvent: IdentityEvent, aPIVersion?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
231
+ const localVarAxiosArgs = await localVarAxiosParamCreator.identity(identityEvent, aPIVersion, options);
214
232
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
215
- const localVarOperationServerBasePath = operationServerMap['WebhooksApi.webhookIdentity']?.[localVarOperationServerIndex]?.url;
233
+ const localVarOperationServerBasePath = operationServerMap['WebhooksApi.identity']?.[localVarOperationServerIndex]?.url;
216
234
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
217
235
  },
218
236
  /**
219
- * Fired when an OTP delivery to the subject fails.
237
+ * 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.
220
238
  * @summary OTP Failed Event
221
239
  * @param {OtpFailedEvent} otpFailedEvent
240
+ * @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\&#39;s date.
222
241
  * @param {*} [options] Override http request option.
223
242
  * @throws {RequiredError}
224
243
  */
225
- async webhookOtpFailed(otpFailedEvent: OtpFailedEvent, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
226
- const localVarAxiosArgs = await localVarAxiosParamCreator.webhookOtpFailed(otpFailedEvent, options);
244
+ async otpFailed(otpFailedEvent: OtpFailedEvent, aPIVersion?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
245
+ const localVarAxiosArgs = await localVarAxiosParamCreator.otpFailed(otpFailedEvent, aPIVersion, options);
227
246
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
228
- const localVarOperationServerBasePath = operationServerMap['WebhooksApi.webhookOtpFailed']?.[localVarOperationServerIndex]?.url;
247
+ const localVarOperationServerBasePath = operationServerMap['WebhooksApi.otpFailed']?.[localVarOperationServerIndex]?.url;
229
248
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
230
249
  },
231
250
  /**
232
- * Fired when a webhook test is triggered from the dashboard.
251
+ * 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.
233
252
  * @summary Test Event
234
253
  * @param {TestEvent} testEvent
254
+ * @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.
235
255
  * @param {*} [options] Override http request option.
236
256
  * @throws {RequiredError}
237
257
  */
238
- async webhookTest(testEvent: TestEvent, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
239
- const localVarAxiosArgs = await localVarAxiosParamCreator.webhookTest(testEvent, options);
258
+ async test(testEvent: TestEvent, aPIVersion?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
259
+ const localVarAxiosArgs = await localVarAxiosParamCreator.test(testEvent, aPIVersion, options);
240
260
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
241
- const localVarOperationServerBasePath = operationServerMap['WebhooksApi.webhookTest']?.[localVarOperationServerIndex]?.url;
261
+ const localVarOperationServerBasePath = operationServerMap['WebhooksApi.test']?.[localVarOperationServerIndex]?.url;
242
262
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
243
263
  },
244
264
  }
@@ -252,44 +272,48 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP
252
272
  const localVarFp = WebhooksApiFp(configuration)
253
273
  return {
254
274
  /**
255
- * Fired when a credential request is accepted or rejected by the subject.
275
+ * 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.
256
276
  * @summary Credential Event
257
277
  * @param {CredentialEvent} credentialEvent
278
+ * @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.
258
279
  * @param {*} [options] Override http request option.
259
280
  * @throws {RequiredError}
260
281
  */
261
- webhookCredential(credentialEvent: CredentialEvent, options?: RawAxiosRequestConfig): AxiosPromise<void> {
262
- return localVarFp.webhookCredential(credentialEvent, options).then((request) => request(axios, basePath));
282
+ credential(credentialEvent: CredentialEvent, aPIVersion?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
283
+ return localVarFp.credential(credentialEvent, aPIVersion, options).then((request) => request(axios, basePath));
263
284
  },
264
285
  /**
265
- * Fired when an identity verification (KYC) decision is reached.
286
+ * 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.
266
287
  * @summary Identity Event
267
288
  * @param {IdentityEvent} identityEvent
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.
268
290
  * @param {*} [options] Override http request option.
269
291
  * @throws {RequiredError}
270
292
  */
271
- webhookIdentity(identityEvent: IdentityEvent, options?: RawAxiosRequestConfig): AxiosPromise<void> {
272
- return localVarFp.webhookIdentity(identityEvent, options).then((request) => request(axios, basePath));
293
+ identity(identityEvent: IdentityEvent, aPIVersion?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
294
+ return localVarFp.identity(identityEvent, aPIVersion, options).then((request) => request(axios, basePath));
273
295
  },
274
296
  /**
275
- * Fired when an OTP delivery to the subject fails.
297
+ * 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.
276
298
  * @summary OTP Failed Event
277
299
  * @param {OtpFailedEvent} otpFailedEvent
300
+ * @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\&#39;s date.
278
301
  * @param {*} [options] Override http request option.
279
302
  * @throws {RequiredError}
280
303
  */
281
- webhookOtpFailed(otpFailedEvent: OtpFailedEvent, options?: RawAxiosRequestConfig): AxiosPromise<void> {
282
- return localVarFp.webhookOtpFailed(otpFailedEvent, options).then((request) => request(axios, basePath));
304
+ otpFailed(otpFailedEvent: OtpFailedEvent, aPIVersion?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
305
+ return localVarFp.otpFailed(otpFailedEvent, aPIVersion, options).then((request) => request(axios, basePath));
283
306
  },
284
307
  /**
285
- * Fired when a webhook test is triggered from the dashboard.
308
+ * 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.
286
309
  * @summary Test Event
287
310
  * @param {TestEvent} testEvent
311
+ * @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.
288
312
  * @param {*} [options] Override http request option.
289
313
  * @throws {RequiredError}
290
314
  */
291
- webhookTest(testEvent: TestEvent, options?: RawAxiosRequestConfig): AxiosPromise<void> {
292
- return localVarFp.webhookTest(testEvent, options).then((request) => request(axios, basePath));
315
+ test(testEvent: TestEvent, aPIVersion?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
316
+ return localVarFp.test(testEvent, aPIVersion, options).then((request) => request(axios, basePath));
293
317
  },
294
318
  };
295
319
  };
@@ -302,51 +326,55 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP
302
326
  */
303
327
  export class WebhooksApi extends BaseAPI {
304
328
  /**
305
- * Fired when a credential request is accepted or rejected by the subject.
329
+ * 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.
306
330
  * @summary Credential Event
307
331
  * @param {CredentialEvent} credentialEvent
332
+ * @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.
308
333
  * @param {*} [options] Override http request option.
309
334
  * @throws {RequiredError}
310
335
  * @memberof WebhooksApi
311
336
  */
312
- public webhookCredential(credentialEvent: CredentialEvent, options?: RawAxiosRequestConfig) {
313
- return WebhooksApiFp(this.configuration).webhookCredential(credentialEvent, options).then((request) => request(this.axios, this.basePath));
337
+ public credential(credentialEvent: CredentialEvent, aPIVersion?: string, options?: RawAxiosRequestConfig) {
338
+ return WebhooksApiFp(this.configuration).credential(credentialEvent, aPIVersion, options).then((request) => request(this.axios, this.basePath));
314
339
  }
315
340
 
316
341
  /**
317
- * Fired when an identity verification (KYC) decision is reached.
342
+ * 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.
318
343
  * @summary Identity Event
319
344
  * @param {IdentityEvent} identityEvent
345
+ * @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.
320
346
  * @param {*} [options] Override http request option.
321
347
  * @throws {RequiredError}
322
348
  * @memberof WebhooksApi
323
349
  */
324
- public webhookIdentity(identityEvent: IdentityEvent, options?: RawAxiosRequestConfig) {
325
- return WebhooksApiFp(this.configuration).webhookIdentity(identityEvent, options).then((request) => request(this.axios, this.basePath));
350
+ public identity(identityEvent: IdentityEvent, aPIVersion?: string, options?: RawAxiosRequestConfig) {
351
+ return WebhooksApiFp(this.configuration).identity(identityEvent, aPIVersion, options).then((request) => request(this.axios, this.basePath));
326
352
  }
327
353
 
328
354
  /**
329
- * Fired when an OTP delivery to the subject fails.
355
+ * 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.
330
356
  * @summary OTP Failed Event
331
357
  * @param {OtpFailedEvent} otpFailedEvent
358
+ * @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\&#39;s date.
332
359
  * @param {*} [options] Override http request option.
333
360
  * @throws {RequiredError}
334
361
  * @memberof WebhooksApi
335
362
  */
336
- public webhookOtpFailed(otpFailedEvent: OtpFailedEvent, options?: RawAxiosRequestConfig) {
337
- return WebhooksApiFp(this.configuration).webhookOtpFailed(otpFailedEvent, options).then((request) => request(this.axios, this.basePath));
363
+ public otpFailed(otpFailedEvent: OtpFailedEvent, aPIVersion?: string, options?: RawAxiosRequestConfig) {
364
+ return WebhooksApiFp(this.configuration).otpFailed(otpFailedEvent, aPIVersion, options).then((request) => request(this.axios, this.basePath));
338
365
  }
339
366
 
340
367
  /**
341
- * Fired when a webhook test is triggered from the dashboard.
368
+ * 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.
342
369
  * @summary Test Event
343
370
  * @param {TestEvent} testEvent
371
+ * @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.
344
372
  * @param {*} [options] Override http request option.
345
373
  * @throws {RequiredError}
346
374
  * @memberof WebhooksApi
347
375
  */
348
- public webhookTest(testEvent: TestEvent, options?: RawAxiosRequestConfig) {
349
- return WebhooksApiFp(this.configuration).webhookTest(testEvent, options).then((request) => request(this.axios, this.basePath));
376
+ public test(testEvent: TestEvent, aPIVersion?: string, options?: RawAxiosRequestConfig) {
377
+ return WebhooksApiFp(this.configuration).test(testEvent, aPIVersion, options).then((request) => request(this.axios, this.basePath));
350
378
  }
351
379
  }
352
380
 
package/generated/api.ts CHANGED
@@ -14,8 +14,12 @@
14
14
 
15
15
 
16
16
 
17
+ export * from './api/actions-api';
18
+ export * from './api/activity-api';
19
+ export * from './api/approval-api';
17
20
  export * from './api/credentials-api';
21
+ export * from './api/didapi';
18
22
  export * from './api/requests-api';
19
- export * from './api/resource-api';
20
23
  export * from './api/user-api';
24
+ export * from './api/webhooks-api';
21
25
 
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Humanos API
5
+ * Humanos API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface ActionDto
21
+ */
22
+ export interface ActionDto {
23
+ /**
24
+ * The unique identifier of the action
25
+ * @type {string}
26
+ * @memberof ActionDto
27
+ */
28
+ 'id': string;
29
+ /**
30
+ * Issuer-pinned values for the action\'s declared userParams
31
+ * @type {object}
32
+ * @memberof ActionDto
33
+ */
34
+ 'userParams': object;
35
+ }
36
+