humanos 1.0.1 → 1.0.2

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.
package/dist/index.d.mts CHANGED
@@ -364,11 +364,11 @@ interface IdentityDto {
364
364
  */
365
365
  interface CreateSubjectDto {
366
366
  /**
367
- * Contact value (email or phone)
368
- * @type {string}
367
+ * Array of contacts (emails or phone numbers) for the user
368
+ * @type {Array<string>}
369
369
  * @memberof CreateSubjectDto
370
370
  */
371
- 'contact': string;
371
+ 'contacts': Array<string>;
372
372
  /**
373
373
  * Identifier to help you identify the user in your own system. We recommend using a unique value.
374
374
  * @type {string}
@@ -397,27 +397,27 @@ interface CreateSubjectDto {
397
397
  /**
398
398
  *
399
399
  * @export
400
- * @interface Subject
400
+ * @interface CreateSubjectUserEntity
401
401
  */
402
- interface Subject {
402
+ interface CreateSubjectUserEntity {
403
403
  /**
404
- * Contact value (email or phone)
405
- * @type {string}
406
- * @memberof Subject
404
+ * Contacts (emails or phone numbers) for the user
405
+ * @type {Array<string>}
406
+ * @memberof CreateSubjectUserEntity
407
407
  */
408
- 'contact': string;
408
+ 'contacts': Array<string>;
409
409
  /**
410
- * Public Decentralized Identifier (DID) of the user
410
+ * Internal ID of the user
411
411
  * @type {string}
412
- * @memberof Subject
412
+ * @memberof CreateSubjectUserEntity
413
413
  */
414
- 'did'?: string;
414
+ 'internalId'?: string;
415
415
  /**
416
- * Identifier to help you identify the user in your own system. We recommend using a unique value.
416
+ * DID of the user (null if creation failed)
417
417
  * @type {string}
418
- * @memberof Subject
418
+ * @memberof CreateSubjectUserEntity
419
419
  */
420
- 'internalId'?: string;
420
+ 'did'?: string;
421
421
  }
422
422
 
423
423
  /**
@@ -451,11 +451,11 @@ interface CreateSubjectEntity {
451
451
  */
452
452
  'message': string;
453
453
  /**
454
- * User information. Will just contain the contact if the operation fails
455
- * @type {Subject}
454
+ * User information. Will just contain the contacts if the operation fails
455
+ * @type {CreateSubjectUserEntity}
456
456
  * @memberof CreateSubjectEntity
457
457
  */
458
- 'user': Subject;
458
+ 'user': CreateSubjectUserEntity;
459
459
  }
460
460
  declare const CreateSubjectEntityStatusEnum: {
461
461
  readonly NUMBER_200: 200;
@@ -3895,4 +3895,4 @@ declare function processWebhook<T = unknown>(rawBody: string, headers: WebhookHe
3895
3895
  */
3896
3896
  declare function createWebhookHandler<T = unknown>(config: WebhookConfig, handler: (payload: T) => void | Promise<void>): (req: any, res: any) => Promise<void>;
3897
3897
 
3898
- export { API_VERSION, ActionType, type AgentDetailEntity, type CancelRequest404Response, Configuration, type ConfigurationParameters, type CreateSubjectDto, type CreateSubjectEntity, CreateSubjectEntityStatusEnum, type CredentialDto, type CredentialEntity, CredentialEntityStatusEnum, type CredentialEvent, type CredentialEventUser, type CredentialFullEntity, CredentialFullEntityStatusEnum, CredentialStatus, type CredentialSubject, CredentialsApi, CredentialsApiAxiosParamCreator, CredentialsApiFactory, CredentialsApiFp, DeliveryActionType, type EncryptedPayload, type Generate400Response, type GenerateCredentialEntity, type GenerateRequestDto, GenerateRequestDtoSecurityLevelEnum, type GenerateRequestEntity, type GenerateSubjectEntity, type GetCredential404Response, type GetCredentialEntity, GetGroupsTypesEnum, type GetRequestDetail404Response, GetRequestsSecurityLevelEnum, GetResourcesTypesEnum, type GetSubject400Response, type GetSubject404Response, type GroupEntity, type GroupResourceEntity, GroupResourceEntityTypeEnum, type GroupsEntity, HumanosClient, type HumanosClientConfig, type IdentityDto, type IdentityEvent, type IdentityEventDecision, type IdentityEventIdentity, type IdentityFieldPlacement, IdentityFieldType, type IssuerDetailEntity, type MandateDataDto, type MandateDataDtoType, MandateDataDtoTypeEnum, type MandateDataDtoValue, MandateDataType, type OtpFailedEvent, type OtpFailedEventOtp, type OtpFailedEventOtpError, type RequestDetailEntity, RequestDetailEntitySecurityLevelEnum, type RequestEntity, RequestEntitySecurityLevelEnum, type RequestQuery, RequestQuerySecurityLevelEnum, type RequestSubjectEntity, RequestsApi, RequestsApiAxiosParamCreator, RequestsApiFactory, RequestsApiFp, type RequestsEntity, ResourceApi, ResourceApiAxiosParamCreator, ResourceApiFactory, ResourceApiFp, type ResourceEntity, ResourceEntityTypeEnum, type ResourceQuery, ResourceQueryTypesEnum, type ResourcesEntity, SDK_LANGUAGE, type SignaturePlacement, type SignaturePlacementItemDto, type Subject, type SubjectContactEntity, type SubjectEntity, type SubjectQuery, type SuccessEntity, type TestEvent, UserApi, UserApiAxiosParamCreator, UserApiFactory, UserApiFp, type W3CProof, W3CProofActionTypeEnum, type W3CVerifiableCredential, type WebhookCallEvent, type WebhookConfig, WebhookEventType, WebhookEventTypeCREDENTIAL, WebhookEventTypeIDENTITY, WebhookEventTypeOTPFAILED, WebhookEventTypeTEST, type WebhookHeaders, applySignatureInterceptor, createHumanosClient, createSignatureInterceptor, createWebhookHandler, decryptWebhookPayload, generateSignature, processWebhook, verifyWebhookSignature };
3898
+ export { API_VERSION, ActionType, type AgentDetailEntity, type CancelRequest404Response, Configuration, type ConfigurationParameters, type CreateSubjectDto, type CreateSubjectEntity, CreateSubjectEntityStatusEnum, type CreateSubjectUserEntity, type CredentialDto, type CredentialEntity, CredentialEntityStatusEnum, type CredentialEvent, type CredentialEventUser, type CredentialFullEntity, CredentialFullEntityStatusEnum, CredentialStatus, type CredentialSubject, CredentialsApi, CredentialsApiAxiosParamCreator, CredentialsApiFactory, CredentialsApiFp, DeliveryActionType, type EncryptedPayload, type Generate400Response, type GenerateCredentialEntity, type GenerateRequestDto, GenerateRequestDtoSecurityLevelEnum, type GenerateRequestEntity, type GenerateSubjectEntity, type GetCredential404Response, type GetCredentialEntity, GetGroupsTypesEnum, type GetRequestDetail404Response, GetRequestsSecurityLevelEnum, GetResourcesTypesEnum, type GetSubject400Response, type GetSubject404Response, type GroupEntity, type GroupResourceEntity, GroupResourceEntityTypeEnum, type GroupsEntity, HumanosClient, type HumanosClientConfig, type IdentityDto, type IdentityEvent, type IdentityEventDecision, type IdentityEventIdentity, type IdentityFieldPlacement, IdentityFieldType, type IssuerDetailEntity, type MandateDataDto, type MandateDataDtoType, MandateDataDtoTypeEnum, type MandateDataDtoValue, MandateDataType, type OtpFailedEvent, type OtpFailedEventOtp, type OtpFailedEventOtpError, type RequestDetailEntity, RequestDetailEntitySecurityLevelEnum, type RequestEntity, RequestEntitySecurityLevelEnum, type RequestQuery, RequestQuerySecurityLevelEnum, type RequestSubjectEntity, RequestsApi, RequestsApiAxiosParamCreator, RequestsApiFactory, RequestsApiFp, type RequestsEntity, ResourceApi, ResourceApiAxiosParamCreator, ResourceApiFactory, ResourceApiFp, type ResourceEntity, ResourceEntityTypeEnum, type ResourceQuery, ResourceQueryTypesEnum, type ResourcesEntity, SDK_LANGUAGE, type SignaturePlacement, type SignaturePlacementItemDto, type SubjectContactEntity, type SubjectEntity, type SubjectQuery, type SuccessEntity, type TestEvent, UserApi, UserApiAxiosParamCreator, UserApiFactory, UserApiFp, type W3CProof, W3CProofActionTypeEnum, type W3CVerifiableCredential, type WebhookCallEvent, type WebhookConfig, WebhookEventType, WebhookEventTypeCREDENTIAL, WebhookEventTypeIDENTITY, WebhookEventTypeOTPFAILED, WebhookEventTypeTEST, type WebhookHeaders, applySignatureInterceptor, createHumanosClient, createSignatureInterceptor, createWebhookHandler, decryptWebhookPayload, generateSignature, processWebhook, verifyWebhookSignature };
package/dist/index.d.ts CHANGED
@@ -364,11 +364,11 @@ interface IdentityDto {
364
364
  */
365
365
  interface CreateSubjectDto {
366
366
  /**
367
- * Contact value (email or phone)
368
- * @type {string}
367
+ * Array of contacts (emails or phone numbers) for the user
368
+ * @type {Array<string>}
369
369
  * @memberof CreateSubjectDto
370
370
  */
371
- 'contact': string;
371
+ 'contacts': Array<string>;
372
372
  /**
373
373
  * Identifier to help you identify the user in your own system. We recommend using a unique value.
374
374
  * @type {string}
@@ -397,27 +397,27 @@ interface CreateSubjectDto {
397
397
  /**
398
398
  *
399
399
  * @export
400
- * @interface Subject
400
+ * @interface CreateSubjectUserEntity
401
401
  */
402
- interface Subject {
402
+ interface CreateSubjectUserEntity {
403
403
  /**
404
- * Contact value (email or phone)
405
- * @type {string}
406
- * @memberof Subject
404
+ * Contacts (emails or phone numbers) for the user
405
+ * @type {Array<string>}
406
+ * @memberof CreateSubjectUserEntity
407
407
  */
408
- 'contact': string;
408
+ 'contacts': Array<string>;
409
409
  /**
410
- * Public Decentralized Identifier (DID) of the user
410
+ * Internal ID of the user
411
411
  * @type {string}
412
- * @memberof Subject
412
+ * @memberof CreateSubjectUserEntity
413
413
  */
414
- 'did'?: string;
414
+ 'internalId'?: string;
415
415
  /**
416
- * Identifier to help you identify the user in your own system. We recommend using a unique value.
416
+ * DID of the user (null if creation failed)
417
417
  * @type {string}
418
- * @memberof Subject
418
+ * @memberof CreateSubjectUserEntity
419
419
  */
420
- 'internalId'?: string;
420
+ 'did'?: string;
421
421
  }
422
422
 
423
423
  /**
@@ -451,11 +451,11 @@ interface CreateSubjectEntity {
451
451
  */
452
452
  'message': string;
453
453
  /**
454
- * User information. Will just contain the contact if the operation fails
455
- * @type {Subject}
454
+ * User information. Will just contain the contacts if the operation fails
455
+ * @type {CreateSubjectUserEntity}
456
456
  * @memberof CreateSubjectEntity
457
457
  */
458
- 'user': Subject;
458
+ 'user': CreateSubjectUserEntity;
459
459
  }
460
460
  declare const CreateSubjectEntityStatusEnum: {
461
461
  readonly NUMBER_200: 200;
@@ -3895,4 +3895,4 @@ declare function processWebhook<T = unknown>(rawBody: string, headers: WebhookHe
3895
3895
  */
3896
3896
  declare function createWebhookHandler<T = unknown>(config: WebhookConfig, handler: (payload: T) => void | Promise<void>): (req: any, res: any) => Promise<void>;
3897
3897
 
3898
- export { API_VERSION, ActionType, type AgentDetailEntity, type CancelRequest404Response, Configuration, type ConfigurationParameters, type CreateSubjectDto, type CreateSubjectEntity, CreateSubjectEntityStatusEnum, type CredentialDto, type CredentialEntity, CredentialEntityStatusEnum, type CredentialEvent, type CredentialEventUser, type CredentialFullEntity, CredentialFullEntityStatusEnum, CredentialStatus, type CredentialSubject, CredentialsApi, CredentialsApiAxiosParamCreator, CredentialsApiFactory, CredentialsApiFp, DeliveryActionType, type EncryptedPayload, type Generate400Response, type GenerateCredentialEntity, type GenerateRequestDto, GenerateRequestDtoSecurityLevelEnum, type GenerateRequestEntity, type GenerateSubjectEntity, type GetCredential404Response, type GetCredentialEntity, GetGroupsTypesEnum, type GetRequestDetail404Response, GetRequestsSecurityLevelEnum, GetResourcesTypesEnum, type GetSubject400Response, type GetSubject404Response, type GroupEntity, type GroupResourceEntity, GroupResourceEntityTypeEnum, type GroupsEntity, HumanosClient, type HumanosClientConfig, type IdentityDto, type IdentityEvent, type IdentityEventDecision, type IdentityEventIdentity, type IdentityFieldPlacement, IdentityFieldType, type IssuerDetailEntity, type MandateDataDto, type MandateDataDtoType, MandateDataDtoTypeEnum, type MandateDataDtoValue, MandateDataType, type OtpFailedEvent, type OtpFailedEventOtp, type OtpFailedEventOtpError, type RequestDetailEntity, RequestDetailEntitySecurityLevelEnum, type RequestEntity, RequestEntitySecurityLevelEnum, type RequestQuery, RequestQuerySecurityLevelEnum, type RequestSubjectEntity, RequestsApi, RequestsApiAxiosParamCreator, RequestsApiFactory, RequestsApiFp, type RequestsEntity, ResourceApi, ResourceApiAxiosParamCreator, ResourceApiFactory, ResourceApiFp, type ResourceEntity, ResourceEntityTypeEnum, type ResourceQuery, ResourceQueryTypesEnum, type ResourcesEntity, SDK_LANGUAGE, type SignaturePlacement, type SignaturePlacementItemDto, type Subject, type SubjectContactEntity, type SubjectEntity, type SubjectQuery, type SuccessEntity, type TestEvent, UserApi, UserApiAxiosParamCreator, UserApiFactory, UserApiFp, type W3CProof, W3CProofActionTypeEnum, type W3CVerifiableCredential, type WebhookCallEvent, type WebhookConfig, WebhookEventType, WebhookEventTypeCREDENTIAL, WebhookEventTypeIDENTITY, WebhookEventTypeOTPFAILED, WebhookEventTypeTEST, type WebhookHeaders, applySignatureInterceptor, createHumanosClient, createSignatureInterceptor, createWebhookHandler, decryptWebhookPayload, generateSignature, processWebhook, verifyWebhookSignature };
3898
+ export { API_VERSION, ActionType, type AgentDetailEntity, type CancelRequest404Response, Configuration, type ConfigurationParameters, type CreateSubjectDto, type CreateSubjectEntity, CreateSubjectEntityStatusEnum, type CreateSubjectUserEntity, type CredentialDto, type CredentialEntity, CredentialEntityStatusEnum, type CredentialEvent, type CredentialEventUser, type CredentialFullEntity, CredentialFullEntityStatusEnum, CredentialStatus, type CredentialSubject, CredentialsApi, CredentialsApiAxiosParamCreator, CredentialsApiFactory, CredentialsApiFp, DeliveryActionType, type EncryptedPayload, type Generate400Response, type GenerateCredentialEntity, type GenerateRequestDto, GenerateRequestDtoSecurityLevelEnum, type GenerateRequestEntity, type GenerateSubjectEntity, type GetCredential404Response, type GetCredentialEntity, GetGroupsTypesEnum, type GetRequestDetail404Response, GetRequestsSecurityLevelEnum, GetResourcesTypesEnum, type GetSubject400Response, type GetSubject404Response, type GroupEntity, type GroupResourceEntity, GroupResourceEntityTypeEnum, type GroupsEntity, HumanosClient, type HumanosClientConfig, type IdentityDto, type IdentityEvent, type IdentityEventDecision, type IdentityEventIdentity, type IdentityFieldPlacement, IdentityFieldType, type IssuerDetailEntity, type MandateDataDto, type MandateDataDtoType, MandateDataDtoTypeEnum, type MandateDataDtoValue, MandateDataType, type OtpFailedEvent, type OtpFailedEventOtp, type OtpFailedEventOtpError, type RequestDetailEntity, RequestDetailEntitySecurityLevelEnum, type RequestEntity, RequestEntitySecurityLevelEnum, type RequestQuery, RequestQuerySecurityLevelEnum, type RequestSubjectEntity, RequestsApi, RequestsApiAxiosParamCreator, RequestsApiFactory, RequestsApiFp, type RequestsEntity, ResourceApi, ResourceApiAxiosParamCreator, ResourceApiFactory, ResourceApiFp, type ResourceEntity, ResourceEntityTypeEnum, type ResourceQuery, ResourceQueryTypesEnum, type ResourcesEntity, SDK_LANGUAGE, type SignaturePlacement, type SignaturePlacementItemDto, type SubjectContactEntity, type SubjectEntity, type SubjectQuery, type SuccessEntity, type TestEvent, UserApi, UserApiAxiosParamCreator, UserApiFactory, UserApiFp, type W3CProof, W3CProofActionTypeEnum, type W3CVerifiableCredential, type WebhookCallEvent, type WebhookConfig, WebhookEventType, WebhookEventTypeCREDENTIAL, WebhookEventTypeIDENTITY, WebhookEventTypeOTPFAILED, WebhookEventTypeTEST, type WebhookHeaders, applySignatureInterceptor, createHumanosClient, createSignatureInterceptor, createWebhookHandler, decryptWebhookPayload, generateSignature, processWebhook, verifyWebhookSignature };
@@ -17,6 +17,7 @@ models/agent-detail-entity.ts
17
17
  models/cancel-request404-response.ts
18
18
  models/create-subject-dto.ts
19
19
  models/create-subject-entity.ts
20
+ models/create-subject-user-entity.ts
20
21
  models/credential-dto.ts
21
22
  models/credential-entity.ts
22
23
  models/credential-event-user.ts
@@ -66,7 +67,6 @@ models/signature-placement.ts
66
67
  models/subject-contact-entity.ts
67
68
  models/subject-entity.ts
68
69
  models/subject-query.ts
69
- models/subject.ts
70
70
  models/success-entity.ts
71
71
  models/test-event.ts
72
72
  models/w3-cproof.ts
@@ -24,11 +24,11 @@ import type { IdentityDto } from './identity-dto';
24
24
  */
25
25
  export interface CreateSubjectDto {
26
26
  /**
27
- * Contact value (email or phone)
28
- * @type {string}
27
+ * Array of contacts (emails or phone numbers) for the user
28
+ * @type {Array<string>}
29
29
  * @memberof CreateSubjectDto
30
30
  */
31
- 'contact': string;
31
+ 'contacts': Array<string>;
32
32
  /**
33
33
  * Identifier to help you identify the user in your own system. We recommend using a unique value.
34
34
  * @type {string}
@@ -15,7 +15,7 @@
15
15
 
16
16
  // May contain unused imports in some cases
17
17
  // @ts-ignore
18
- import type { Subject } from './subject';
18
+ import type { CreateSubjectUserEntity } from './create-subject-user-entity';
19
19
 
20
20
  /**
21
21
  *
@@ -36,11 +36,11 @@ export interface CreateSubjectEntity {
36
36
  */
37
37
  'message': string;
38
38
  /**
39
- * User information. Will just contain the contact if the operation fails
40
- * @type {Subject}
39
+ * User information. Will just contain the contacts if the operation fails
40
+ * @type {CreateSubjectUserEntity}
41
41
  * @memberof CreateSubjectEntity
42
42
  */
43
- 'user': Subject;
43
+ 'user': CreateSubjectUserEntity;
44
44
  }
45
45
 
46
46
  export const CreateSubjectEntityStatusEnum = {
@@ -17,26 +17,26 @@
17
17
  /**
18
18
  *
19
19
  * @export
20
- * @interface Subject
20
+ * @interface CreateSubjectUserEntity
21
21
  */
22
- export interface Subject {
22
+ export interface CreateSubjectUserEntity {
23
23
  /**
24
- * Contact value (email or phone)
25
- * @type {string}
26
- * @memberof Subject
24
+ * Contacts (emails or phone numbers) for the user
25
+ * @type {Array<string>}
26
+ * @memberof CreateSubjectUserEntity
27
27
  */
28
- 'contact': string;
28
+ 'contacts': Array<string>;
29
29
  /**
30
- * Public Decentralized Identifier (DID) of the user
30
+ * Internal ID of the user
31
31
  * @type {string}
32
- * @memberof Subject
32
+ * @memberof CreateSubjectUserEntity
33
33
  */
34
- 'did'?: string;
34
+ 'internalId'?: string;
35
35
  /**
36
- * Identifier to help you identify the user in your own system. We recommend using a unique value.
36
+ * DID of the user (null if creation failed)
37
37
  * @type {string}
38
- * @memberof Subject
38
+ * @memberof CreateSubjectUserEntity
39
39
  */
40
- 'internalId'?: string;
40
+ 'did'?: string;
41
41
  }
42
42
 
@@ -30,7 +30,7 @@ export interface CredentialDto {
30
30
  */
31
31
  'scope': string;
32
32
  /**
33
- * The type of the credential, can help categorize credentials. General methods should use the type JSON - Type JSON is recommended for general use. - Type DOCUMENT should include the following unhidden fields: { label: \"display name\", type: \"pdf\" } - Type CONSENT should include the following unhidden fields: { label: \"display name\", type: \"url\" }, { label: \"text\", type: \"string\" }
33
+ * The type of the credential, can help categorize credentials. General methods should use the type JSON - Type JSON is recommended for general use. - Type DOCUMENT should include the following unhidden fields: { label: \"display name\", type: \"pdf\" } - Type CONSENT should include the following unhidden fields: { label: \"display name\", type: \"url\" }, { label: \"text\", type: \"string\" }
34
34
  * @type {string}
35
35
  * @memberof CredentialDto
36
36
  */
@@ -39,7 +39,7 @@ export interface IdentityDto {
39
39
  */
40
40
  'docId': string;
41
41
  /**
42
- * Full document ID (extended version). Must start with docId and contain additional characters.
42
+ * Full document ID (extended version). Must start with docId and contain additional characters.
43
43
  * @type {string}
44
44
  * @memberof IdentityDto
45
45
  */
@@ -3,6 +3,7 @@ export * from './agent-detail-entity';
3
3
  export * from './cancel-request404-response';
4
4
  export * from './create-subject-dto';
5
5
  export * from './create-subject-entity';
6
+ export * from './create-subject-user-entity';
6
7
  export * from './credential-dto';
7
8
  export * from './credential-entity';
8
9
  export * from './credential-event';
@@ -48,7 +49,6 @@ export * from './resource-query';
48
49
  export * from './resources-entity';
49
50
  export * from './signature-placement';
50
51
  export * from './signature-placement-item-dto';
51
- export * from './subject';
52
52
  export * from './subject-contact-entity';
53
53
  export * from './subject-entity';
54
54
  export * from './subject-query';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "humanos",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
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",