humanos 1.0.4 → 1.0.5

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.
@@ -169,16 +169,16 @@ export const RequestsApiAxiosParamCreator = function (configuration?: Configurat
169
169
  * @param {number} [pageIndex] Page number
170
170
  * @param {number} [pageSize] Number of items per page
171
171
  * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
172
+ * @param {string} [dateFrom] Filter from date (will be converted to start of day in UTC)
173
+ * @param {string} [dateTo] Filter to date (will be converted to end of day in UTC). Requires dateFrom.
172
174
  * @param {string} [subject] Filter by subject (nested object with contact, id, or internalId).
173
175
  * @param {string} [internalId] Identifier to help you identify the request in your own system. We recommend using a unique value.
174
176
  * @param {Array<ListSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
175
- * @param {string} [dateFrom] Filter from date (will be converted to start of day)
176
- * @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
177
177
  * @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.
178
178
  * @param {*} [options] Override http request option.
179
179
  * @throws {RequiredError}
180
180
  */
181
- list: async (pageIndex?: number, pageSize?: number, search?: string, subject?: string, internalId?: string, securityLevel?: Array<ListSecurityLevelEnum>, dateFrom?: string, dateTo?: string, aPIVersion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
181
+ list: async (pageIndex?: number, pageSize?: number, search?: string, dateFrom?: string, dateTo?: string, subject?: string, internalId?: string, securityLevel?: Array<ListSecurityLevelEnum>, aPIVersion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
182
182
  const localVarPath = `/request`;
183
183
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
184
184
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -203,18 +203,6 @@ export const RequestsApiAxiosParamCreator = function (configuration?: Configurat
203
203
  localVarQueryParameter['search'] = search;
204
204
  }
205
205
 
206
- if (subject !== undefined) {
207
- localVarQueryParameter['subject'] = subject;
208
- }
209
-
210
- if (internalId !== undefined) {
211
- localVarQueryParameter['internalId'] = internalId;
212
- }
213
-
214
- if (securityLevel) {
215
- localVarQueryParameter['securityLevel'] = securityLevel;
216
- }
217
-
218
206
  if (dateFrom !== undefined) {
219
207
  localVarQueryParameter['dateFrom'] = (dateFrom as any instanceof Date) ?
220
208
  (dateFrom as any).toISOString() :
@@ -227,6 +215,18 @@ export const RequestsApiAxiosParamCreator = function (configuration?: Configurat
227
215
  dateTo;
228
216
  }
229
217
 
218
+ if (subject !== undefined) {
219
+ localVarQueryParameter['subject'] = subject;
220
+ }
221
+
222
+ if (internalId !== undefined) {
223
+ localVarQueryParameter['internalId'] = internalId;
224
+ }
225
+
226
+ if (securityLevel) {
227
+ localVarQueryParameter['securityLevel'] = securityLevel;
228
+ }
229
+
230
230
 
231
231
 
232
232
  if (aPIVersion != null) {
@@ -357,17 +357,17 @@ export const RequestsApiFp = function(configuration?: Configuration) {
357
357
  * @param {number} [pageIndex] Page number
358
358
  * @param {number} [pageSize] Number of items per page
359
359
  * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
360
+ * @param {string} [dateFrom] Filter from date (will be converted to start of day in UTC)
361
+ * @param {string} [dateTo] Filter to date (will be converted to end of day in UTC). Requires dateFrom.
360
362
  * @param {string} [subject] Filter by subject (nested object with contact, id, or internalId).
361
363
  * @param {string} [internalId] Identifier to help you identify the request in your own system. We recommend using a unique value.
362
364
  * @param {Array<ListSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
363
- * @param {string} [dateFrom] Filter from date (will be converted to start of day)
364
- * @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
365
365
  * @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.
366
366
  * @param {*} [options] Override http request option.
367
367
  * @throws {RequiredError}
368
368
  */
369
- async list(pageIndex?: number, pageSize?: number, search?: string, subject?: string, internalId?: string, securityLevel?: Array<ListSecurityLevelEnum>, dateFrom?: string, dateTo?: string, aPIVersion?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestsEntity>> {
370
- const localVarAxiosArgs = await localVarAxiosParamCreator.list(pageIndex, pageSize, search, subject, internalId, securityLevel, dateFrom, dateTo, aPIVersion, options);
369
+ async list(pageIndex?: number, pageSize?: number, search?: string, dateFrom?: string, dateTo?: string, subject?: string, internalId?: string, securityLevel?: Array<ListSecurityLevelEnum>, aPIVersion?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestsEntity>> {
370
+ const localVarAxiosArgs = await localVarAxiosParamCreator.list(pageIndex, pageSize, search, dateFrom, dateTo, subject, internalId, securityLevel, aPIVersion, options);
371
371
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
372
372
  const localVarOperationServerBasePath = operationServerMap['RequestsApi.list']?.[localVarOperationServerIndex]?.url;
373
373
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -440,17 +440,17 @@ export const RequestsApiFactory = function (configuration?: Configuration, baseP
440
440
  * @param {number} [pageIndex] Page number
441
441
  * @param {number} [pageSize] Number of items per page
442
442
  * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
443
+ * @param {string} [dateFrom] Filter from date (will be converted to start of day in UTC)
444
+ * @param {string} [dateTo] Filter to date (will be converted to end of day in UTC). Requires dateFrom.
443
445
  * @param {string} [subject] Filter by subject (nested object with contact, id, or internalId).
444
446
  * @param {string} [internalId] Identifier to help you identify the request in your own system. We recommend using a unique value.
445
447
  * @param {Array<ListSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
446
- * @param {string} [dateFrom] Filter from date (will be converted to start of day)
447
- * @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
448
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
449
  * @param {*} [options] Override http request option.
450
450
  * @throws {RequiredError}
451
451
  */
452
- list(pageIndex?: number, pageSize?: number, search?: string, subject?: string, internalId?: string, securityLevel?: Array<ListSecurityLevelEnum>, dateFrom?: string, dateTo?: string, aPIVersion?: string, options?: RawAxiosRequestConfig): AxiosPromise<RequestsEntity> {
453
- return localVarFp.list(pageIndex, pageSize, search, subject, internalId, securityLevel, dateFrom, dateTo, aPIVersion, options).then((request) => request(axios, basePath));
452
+ list(pageIndex?: number, pageSize?: number, search?: string, dateFrom?: string, dateTo?: string, subject?: string, internalId?: string, securityLevel?: Array<ListSecurityLevelEnum>, aPIVersion?: string, options?: RawAxiosRequestConfig): AxiosPromise<RequestsEntity> {
453
+ return localVarFp.list(pageIndex, pageSize, search, dateFrom, dateTo, subject, internalId, securityLevel, aPIVersion, options).then((request) => request(axios, basePath));
454
454
  },
455
455
  /**
456
456
  * 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
@@ -523,18 +523,18 @@ export class RequestsApi extends BaseAPI {
523
523
  * @param {number} [pageIndex] Page number
524
524
  * @param {number} [pageSize] Number of items per page
525
525
  * @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
526
+ * @param {string} [dateFrom] Filter from date (will be converted to start of day in UTC)
527
+ * @param {string} [dateTo] Filter to date (will be converted to end of day in UTC). Requires dateFrom.
526
528
  * @param {string} [subject] Filter by subject (nested object with contact, id, or internalId).
527
529
  * @param {string} [internalId] Identifier to help you identify the request in your own system. We recommend using a unique value.
528
530
  * @param {Array<ListSecurityLevelEnum>} [securityLevel] Filter by security level. Can be a single value or array
529
- * @param {string} [dateFrom] Filter from date (will be converted to start of day)
530
- * @param {string} [dateTo] Filter to date (will be converted to end of day). Requires dateFrom.
531
531
  * @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.
532
532
  * @param {*} [options] Override http request option.
533
533
  * @throws {RequiredError}
534
534
  * @memberof RequestsApi
535
535
  */
536
- public list(pageIndex?: number, pageSize?: number, search?: string, subject?: string, internalId?: string, securityLevel?: Array<ListSecurityLevelEnum>, dateFrom?: string, dateTo?: string, aPIVersion?: string, options?: RawAxiosRequestConfig) {
537
- return RequestsApiFp(this.configuration).list(pageIndex, pageSize, search, subject, internalId, securityLevel, dateFrom, dateTo, aPIVersion, options).then((request) => request(this.axios, this.basePath));
536
+ public list(pageIndex?: number, pageSize?: number, search?: string, dateFrom?: string, dateTo?: string, subject?: string, internalId?: string, securityLevel?: Array<ListSecurityLevelEnum>, aPIVersion?: string, options?: RawAxiosRequestConfig) {
537
+ return RequestsApiFp(this.configuration).list(pageIndex, pageSize, search, dateFrom, dateTo, subject, internalId, securityLevel, aPIVersion, options).then((request) => request(this.axios, this.basePath));
538
538
  }
539
539
 
540
540
  /**
@@ -32,6 +32,18 @@ export interface ActivityQuery {
32
32
  * @memberof ActivityQuery
33
33
  */
34
34
  'pageSize'?: number;
35
+ /**
36
+ * Filter from date (will be converted to start of day in UTC)
37
+ * @type {string}
38
+ * @memberof ActivityQuery
39
+ */
40
+ 'dateFrom'?: string;
41
+ /**
42
+ * Filter to date (will be converted to end of day in UTC). Requires dateFrom.
43
+ * @type {string}
44
+ * @memberof ActivityQuery
45
+ */
46
+ 'dateTo'?: string;
35
47
  /**
36
48
  * Filter by one or more activity event types. Repeat the query parameter to pass multiple values, e.g. ?type=VP_VERIFIED&type=VP_VERIFICATION_DENIED.
37
49
  * @type {Array<string>}
@@ -62,18 +74,6 @@ export interface ActivityQuery {
62
74
  * @memberof ActivityQuery
63
75
  */
64
76
  'subjectDid'?: string;
65
- /**
66
- * Filter from date (will be converted to start of day).
67
- * @type {string}
68
- * @memberof ActivityQuery
69
- */
70
- 'dateFrom'?: string;
71
- /**
72
- * Filter to date (will be converted to end of day). Requires dateFrom.
73
- * @type {string}
74
- * @memberof ActivityQuery
75
- */
76
- 'dateTo'?: string;
77
77
  }
78
78
 
79
79
  export const ActivityQueryTypeEnum = {
@@ -0,0 +1,27 @@
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
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { CONSENT } from './consent';
19
+
20
+ /**
21
+ * @type CredentialDtoData
22
+ * Data associated with the credential
23
+ * @export
24
+ */
25
+ export type CredentialDtoData = CONSENT | string;
26
+
27
+
@@ -18,7 +18,7 @@
18
18
  import type { ActionDto } from './action-dto';
19
19
  // May contain unused imports in some cases
20
20
  // @ts-ignore
21
- import type { CredentialDtoDataInner } from './credential-dto-data-inner';
21
+ import type { CredentialDtoData } from './credential-dto-data';
22
22
  // May contain unused imports in some cases
23
23
  // @ts-ignore
24
24
  import type { CredentialPlacementDto } from './credential-placement-dto';
@@ -72,11 +72,11 @@ export interface CredentialDto {
72
72
  */
73
73
  'internalId'?: string;
74
74
  /**
75
- * Data associated with the credential
76
- * @type {Array<CredentialDtoDataInner>}
75
+ *
76
+ * @type {CredentialDtoData}
77
77
  * @memberof CredentialDto
78
78
  */
79
- 'data'?: Array<CredentialDtoDataInner>;
79
+ 'data'?: CredentialDtoData;
80
80
  /**
81
81
  * Predefined signature placements for document credentials
82
82
  * @type {Array<CredentialPlacementDto>}
@@ -14,7 +14,7 @@ export * from './create-presentation-dto';
14
14
  export * from './create-subject-dto';
15
15
  export * from './create-subject-entity';
16
16
  export * from './credential-dto';
17
- export * from './credential-dto-data-inner';
17
+ export * from './credential-dto-data';
18
18
  export * from './credential-entity';
19
19
  export * from './credential-event';
20
20
  export * from './credential-event-decision';
@@ -39,35 +39,35 @@ export interface RequestQuery {
39
39
  */
40
40
  'search'?: string;
41
41
  /**
42
- * Filter by subject (nested object with contact, id, or internalId).
42
+ * Filter from date (will be converted to start of day in UTC)
43
43
  * @type {string}
44
44
  * @memberof RequestQuery
45
45
  */
46
- 'subject'?: string;
46
+ 'dateFrom'?: string;
47
47
  /**
48
- * Identifier to help you identify the request in your own system. We recommend using a unique value.
48
+ * Filter to date (will be converted to end of day in UTC). Requires dateFrom.
49
49
  * @type {string}
50
50
  * @memberof RequestQuery
51
51
  */
52
- 'internalId'?: string;
52
+ 'dateTo'?: string;
53
53
  /**
54
- * Filter by security level. Can be a single value or array
55
- * @type {Array<string>}
54
+ * Filter by subject (nested object with contact, id, or internalId).
55
+ * @type {string}
56
56
  * @memberof RequestQuery
57
57
  */
58
- 'securityLevel'?: Array<RequestQuerySecurityLevelEnum>;
58
+ 'subject'?: string;
59
59
  /**
60
- * Filter from date (will be converted to start of day)
60
+ * Identifier to help you identify the request in your own system. We recommend using a unique value.
61
61
  * @type {string}
62
62
  * @memberof RequestQuery
63
63
  */
64
- 'dateFrom'?: string;
64
+ 'internalId'?: string;
65
65
  /**
66
- * Filter to date (will be converted to end of day). Requires dateFrom.
67
- * @type {string}
66
+ * Filter by security level. Can be a single value or array
67
+ * @type {Array<string>}
68
68
  * @memberof RequestQuery
69
69
  */
70
- 'dateTo'?: string;
70
+ 'securityLevel'?: Array<RequestQuerySecurityLevelEnum>;
71
71
  }
72
72
 
73
73
  export const RequestQuerySecurityLevelEnum = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "humanos",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Official Humanos API SDK for TypeScript/JavaScript with automatic request signing and webhook verification",
5
5
  "author": "Humanos <tech@humanos.tech>",
6
6
  "main": "dist/index.js",