humanos 1.0.5 → 1.0.7
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 +551 -323
- package/dist/index.d.ts +551 -323
- package/dist/index.js +33 -31
- package/dist/index.mjs +32 -31
- package/generated/.openapi-generator/FILES +13 -7
- package/generated/api/approval-api.ts +0 -2
- package/generated/api/credentials-api.ts +15 -15
- package/generated/api/requests-api.ts +8 -4
- package/generated/api/webhooks-api.ts +4 -4
- package/generated/models/create-presentation-dto.ts +1 -1
- package/generated/models/create-subject-entity.ts +3 -6
- package/generated/models/credential-entity.ts +2 -2
- package/generated/models/{w3-cverifiable-credential-proofs-inner.ts → credential-proof.ts} +20 -8
- package/generated/models/generate-request-dto.ts +15 -27
- package/generated/models/generate-request-iframe-cookie-dto.ts +36 -0
- package/generated/models/generate-request-iframe-dto.ts +39 -0
- package/generated/models/generate-request-user-dto.ts +64 -0
- package/generated/models/generate-subject-entity.ts +2 -2
- package/generated/models/identity-event-decision.ts +0 -18
- package/generated/models/identity-event.ts +3 -3
- package/generated/models/{w3-cverifiable-credential-valid-from.ts → identity-webhook-issue-date.ts} +2 -2
- package/generated/models/identity-webhook.ts +117 -0
- package/generated/models/index.ts +13 -7
- package/generated/models/{w3-cverifiable-credential-evidences-inner.ts → mandate-action.ts} +7 -5
- package/generated/models/{w3-cverifiable-credential-credential-subject-mandate-context.ts → mandate-context.ts} +3 -3
- package/generated/models/{w3-cverifiable-credential-valid-until.ts → mandate-grantor.ts} +2 -2
- package/generated/models/mandate.ts +65 -0
- package/generated/models/presentation-entity.ts +45 -0
- package/generated/models/request-detail-subject-entity.ts +6 -0
- package/generated/models/request-subject-entity.ts +6 -0
- package/generated/models/{generate400-response.ts → requests-create402-response.ts} +5 -5
- package/generated/models/{create400-response.ts → requests-create409-response.ts} +5 -5
- package/generated/models/resource-entity.ts +0 -1
- package/generated/models/resource-minimal-entity.ts +0 -1
- package/generated/models/resource-query.ts +0 -1
- package/generated/models/revoke-credential-entity.ts +0 -9
- package/generated/models/verify-presentation-dto.ts +8 -2
- package/generated/models/w3-cverifiable-credential-credential-subject.ts +3 -3
- package/generated/models/w3-cverifiable-credential.ts +5 -5
- package/generated/models/webhook-call-event.ts +1 -1
- package/package.json +1 -1
- package/generated/models/action-ref-dto.ts +0 -36
- package/generated/models/constraints-dto.ts +0 -36
- package/generated/models/create-presentation400-response.ts +0 -42
- package/generated/models/create-presentation403-response.ts +0 -42
- package/generated/models/create-presentation404-response.ts +0 -42
- package/generated/models/credential-dto-data-inner.ts +0 -26
- package/generated/models/get-credential404-response.ts +0 -42
- package/generated/models/get-evidence404-response.ts +0 -42
- package/generated/models/get-request-detail404-response.ts +0 -42
- package/generated/models/get-subject400-response.ts +0 -42
- package/generated/models/get-subject404-response.ts +0 -42
- package/generated/models/identity-payload.ts +0 -84
- package/generated/models/json-value.ts +0 -27
- package/generated/models/otp-failed-event-otp-error.ts +0 -36
- package/generated/models/presentation-receipt-entity.ts +0 -42
- package/generated/models/presentation-response-entity.ts +0 -39
- package/generated/models/resend-otp403-response.ts +0 -42
- package/generated/models/revoke-credential400-response.ts +0 -42
- package/generated/models/revoke-credential409-response.ts +0 -42
- package/generated/models/revoke-receipt-entity.ts +0 -42
- package/generated/models/schema-entity.ts +0 -57
- package/generated/models/schema-list-entity.ts +0 -39
- package/generated/models/schema-query.ts +0 -48
- package/generated/models/schema-response-entity.ts +0 -45
- package/generated/models/schema-version-detail-entity.ts +0 -72
- package/generated/models/schema-version-list-entity.ts +0 -39
- package/generated/models/schema-version-response-entity.ts +0 -54
- package/generated/models/schema-version-summary-entity.ts +0 -48
- package/generated/models/subject-contact-entity.ts +0 -42
- package/generated/models/verify-receipt-entity.ts +0 -42
- package/generated/models/w3-cverifiable-credential-credential-subject-mandate-action.ts +0 -44
- package/generated/models/w3-cverifiable-credential-credential-subject-mandate-constraint-constraint-schema.ts +0 -44
- package/generated/models/w3-cverifiable-credential-credential-subject-mandate-constraint.ts +0 -41
- package/generated/models/w3-cverifiable-credential-credential-subject-mandate-grantor.ts +0 -24
- package/generated/models/w3-cverifiable-credential-credential-subject-mandate.ts +0 -65
- package/generated/models/webhook-event-type-credential.ts +0 -30
- package/generated/models/webhook-event-type-identity.ts +0 -30
- package/generated/models/webhook-event-type-otpfailed.ts +0 -30
- package/generated/models/webhook-event-type-test.ts +0 -30
- package/generated/models/webhook-event-type.ts +0 -33
|
@@ -0,0 +1,117 @@
|
|
|
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 { IdentityWebhookIssueDate } from './identity-webhook-issue-date';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface IdentityWebhook
|
|
24
|
+
*/
|
|
25
|
+
export interface IdentityWebhook {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof IdentityWebhook
|
|
30
|
+
*/
|
|
31
|
+
'nationality'?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof IdentityWebhook
|
|
36
|
+
*/
|
|
37
|
+
'placeOfBirth'?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {Array<string>}
|
|
41
|
+
* @memberof IdentityWebhook
|
|
42
|
+
*/
|
|
43
|
+
'addresses'?: Array<string>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof IdentityWebhook
|
|
48
|
+
*/
|
|
49
|
+
'height'?: number;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof IdentityWebhook
|
|
54
|
+
*/
|
|
55
|
+
'weight'?: number;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof IdentityWebhook
|
|
60
|
+
*/
|
|
61
|
+
'documentType'?: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {IdentityWebhookIssueDate}
|
|
65
|
+
* @memberof IdentityWebhook
|
|
66
|
+
*/
|
|
67
|
+
'issueDate'?: IdentityWebhookIssueDate;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {IdentityWebhookIssueDate}
|
|
71
|
+
* @memberof IdentityWebhook
|
|
72
|
+
*/
|
|
73
|
+
'expiresAt'?: IdentityWebhookIssueDate;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof IdentityWebhook
|
|
78
|
+
*/
|
|
79
|
+
'placeOfIssue'?: string;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof IdentityWebhook
|
|
84
|
+
*/
|
|
85
|
+
'fullName': string;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof IdentityWebhook
|
|
90
|
+
*/
|
|
91
|
+
'gender'?: string;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof IdentityWebhook
|
|
96
|
+
*/
|
|
97
|
+
'birth': string;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof IdentityWebhook
|
|
102
|
+
*/
|
|
103
|
+
'docId': string;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof IdentityWebhook
|
|
108
|
+
*/
|
|
109
|
+
'fullDocId': string;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof IdentityWebhook
|
|
114
|
+
*/
|
|
115
|
+
'countryAlpha3': string;
|
|
116
|
+
}
|
|
117
|
+
|
|
@@ -20,6 +20,7 @@ export * from './credential-event';
|
|
|
20
20
|
export * from './credential-event-decision';
|
|
21
21
|
export * from './credential-event-user';
|
|
22
22
|
export * from './credential-placement-dto';
|
|
23
|
+
export * from './credential-proof';
|
|
23
24
|
export * from './credential-status';
|
|
24
25
|
export * from './credentials-detail404-response';
|
|
25
26
|
export * from './credentials-evidence404-response';
|
|
@@ -34,6 +35,9 @@ export * from './evidence';
|
|
|
34
35
|
export * from './generate-credential-entity';
|
|
35
36
|
export * from './generate-request-dto';
|
|
36
37
|
export * from './generate-request-entity';
|
|
38
|
+
export * from './generate-request-iframe-cookie-dto';
|
|
39
|
+
export * from './generate-request-iframe-dto';
|
|
40
|
+
export * from './generate-request-user-dto';
|
|
37
41
|
export * from './generate-subject-entity';
|
|
38
42
|
export * from './group-entity';
|
|
39
43
|
export * from './groups-entity';
|
|
@@ -41,13 +45,18 @@ export * from './identity-dto';
|
|
|
41
45
|
export * from './identity-event';
|
|
42
46
|
export * from './identity-event-decision';
|
|
43
47
|
export * from './identity-event-user';
|
|
44
|
-
export * from './identity-
|
|
48
|
+
export * from './identity-webhook';
|
|
49
|
+
export * from './identity-webhook-issue-date';
|
|
50
|
+
export * from './mandate';
|
|
51
|
+
export * from './mandate-action';
|
|
52
|
+
export * from './mandate-context';
|
|
53
|
+
export * from './mandate-grantor';
|
|
45
54
|
export * from './organization-data-entity';
|
|
46
55
|
export * from './otp-error';
|
|
47
56
|
export * from './otp-failed-event';
|
|
48
57
|
export * from './otp-failed-event-otp';
|
|
49
58
|
export * from './partial-subject-entity';
|
|
50
|
-
export * from './presentation-
|
|
59
|
+
export * from './presentation-entity';
|
|
51
60
|
export * from './receipt-entity';
|
|
52
61
|
export * from './request-credential-entity';
|
|
53
62
|
export * from './request-detail-entity';
|
|
@@ -56,6 +65,8 @@ export * from './request-entity';
|
|
|
56
65
|
export * from './request-query';
|
|
57
66
|
export * from './request-subject-entity';
|
|
58
67
|
export * from './requests-create400-response';
|
|
68
|
+
export * from './requests-create402-response';
|
|
69
|
+
export * from './requests-create409-response';
|
|
59
70
|
export * from './requests-detail404-response';
|
|
60
71
|
export * from './requests-entity';
|
|
61
72
|
export * from './requests-resend-otp403-response';
|
|
@@ -79,9 +90,4 @@ export * from './verify-evaluation-entity';
|
|
|
79
90
|
export * from './verify-presentation-dto';
|
|
80
91
|
export * from './w3-cverifiable-credential';
|
|
81
92
|
export * from './w3-cverifiable-credential-credential-subject';
|
|
82
|
-
export * from './w3-cverifiable-credential-credential-subject-mandate';
|
|
83
|
-
export * from './w3-cverifiable-credential-credential-subject-mandate-action';
|
|
84
|
-
export * from './w3-cverifiable-credential-credential-subject-mandate-context';
|
|
85
|
-
export * from './w3-cverifiable-credential-credential-subject-mandate-grantor';
|
|
86
|
-
export * from './w3-cverifiable-credential-proofs-inner';
|
|
87
93
|
export * from './webhook-call-event';
|
|
@@ -17,25 +17,27 @@
|
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
19
19
|
* @export
|
|
20
|
-
* @interface
|
|
20
|
+
* @interface MandateAction
|
|
21
21
|
*/
|
|
22
|
-
export interface
|
|
22
|
+
export interface MandateAction {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
|
|
23
25
|
/**
|
|
24
26
|
*
|
|
25
27
|
* @type {string}
|
|
26
|
-
* @memberof
|
|
28
|
+
* @memberof MandateAction
|
|
27
29
|
*/
|
|
28
30
|
'id': string;
|
|
29
31
|
/**
|
|
30
32
|
*
|
|
31
33
|
* @type {string}
|
|
32
|
-
* @memberof
|
|
34
|
+
* @memberof MandateAction
|
|
33
35
|
*/
|
|
34
36
|
'digestSRI': string;
|
|
35
37
|
/**
|
|
36
38
|
*
|
|
37
39
|
* @type {string}
|
|
38
|
-
* @memberof
|
|
40
|
+
* @memberof MandateAction
|
|
39
41
|
*/
|
|
40
42
|
'location': string;
|
|
41
43
|
}
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
19
19
|
* @export
|
|
20
|
-
* @interface
|
|
20
|
+
* @interface MandateContext
|
|
21
21
|
*/
|
|
22
|
-
export interface
|
|
22
|
+
export interface MandateContext {
|
|
23
23
|
[key: string]: any;
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {Array<string>}
|
|
28
|
-
* @memberof
|
|
28
|
+
* @memberof MandateContext
|
|
29
29
|
*/
|
|
30
30
|
'authorizedDIDs': Array<string>;
|
|
31
31
|
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 { MandateAction } from './mandate-action';
|
|
19
|
+
// May contain unused imports in some cases
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import type { MandateContext } from './mandate-context';
|
|
22
|
+
// May contain unused imports in some cases
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import type { MandateGrantor } from './mandate-grantor';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface Mandate
|
|
30
|
+
*/
|
|
31
|
+
export interface Mandate {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {MandateGrantor}
|
|
37
|
+
* @memberof Mandate
|
|
38
|
+
*/
|
|
39
|
+
'grantor': MandateGrantor;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof Mandate
|
|
44
|
+
*/
|
|
45
|
+
'scope': string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {MandateContext}
|
|
49
|
+
* @memberof Mandate
|
|
50
|
+
*/
|
|
51
|
+
'context': MandateContext;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {MandateAction}
|
|
55
|
+
* @memberof Mandate
|
|
56
|
+
*/
|
|
57
|
+
'action'?: MandateAction;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {{ [key: string]: any; }}
|
|
61
|
+
* @memberof Mandate
|
|
62
|
+
*/
|
|
63
|
+
'userParams'?: { [key: string]: any; };
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { ReceiptEntity } from './receipt-entity';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface PresentationEntity
|
|
24
|
+
*/
|
|
25
|
+
export interface PresentationEntity {
|
|
26
|
+
/**
|
|
27
|
+
* Signed W3C Verifiable Presentation (@context, type, holder, verifiableCredential, proof), exactly as returned by POST /credential/vp/:vcId — do not re-serialize or modify it. Provide this or `presentationEncoded` (at least one is required; `presentationEncoded` overrides and is recommended, since a base64 string avoids JSON formatting changes that can break the signature).
|
|
28
|
+
* @type {object}
|
|
29
|
+
* @memberof PresentationEntity
|
|
30
|
+
*/
|
|
31
|
+
'presentation': object;
|
|
32
|
+
/**
|
|
33
|
+
* Base64-encoded JSON of the signed Verifiable Presentation above. Pass it back to POST /credential/verify as `presentationEncoded` (recommended) to avoid signature failures caused by JSON re-serialization in some HTTP clients.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof PresentationEntity
|
|
36
|
+
*/
|
|
37
|
+
'presentationEncoded': string;
|
|
38
|
+
/**
|
|
39
|
+
* VP_CREATED receipt issued for this presentation
|
|
40
|
+
* @type {ReceiptEntity}
|
|
41
|
+
* @memberof PresentationEntity
|
|
42
|
+
*/
|
|
43
|
+
'receipt': ReceiptEntity;
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -74,6 +74,12 @@ export interface RequestDetailSubjectEntity {
|
|
|
74
74
|
* @memberof RequestDetailSubjectEntity
|
|
75
75
|
*/
|
|
76
76
|
'kyc'?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Secondary contact (email or phone) used for two-factor authentication in this request. Present when the request was created with a secondary contact for 2FA.
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof RequestDetailSubjectEntity
|
|
81
|
+
*/
|
|
82
|
+
'secondaryContact'?: string;
|
|
77
83
|
}
|
|
78
84
|
|
|
79
85
|
export const RequestDetailSubjectEntityIdentityStatusEnum = {
|
|
@@ -50,6 +50,12 @@ export interface RequestSubjectEntity {
|
|
|
50
50
|
* @memberof RequestSubjectEntity
|
|
51
51
|
*/
|
|
52
52
|
'kyc'?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Secondary contact (email or phone) used for two-factor authentication in this request. Present when the request was created with a secondary contact for 2FA.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof RequestSubjectEntity
|
|
57
|
+
*/
|
|
58
|
+
'secondaryContact'?: string;
|
|
53
59
|
}
|
|
54
60
|
|
|
55
61
|
export const RequestSubjectEntityIdentityStatusEnum = {
|
|
@@ -17,25 +17,25 @@
|
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
19
19
|
* @export
|
|
20
|
-
* @interface
|
|
20
|
+
* @interface RequestsCreate402Response
|
|
21
21
|
*/
|
|
22
|
-
export interface
|
|
22
|
+
export interface RequestsCreate402Response {
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
25
25
|
* @type {number}
|
|
26
|
-
* @memberof
|
|
26
|
+
* @memberof RequestsCreate402Response
|
|
27
27
|
*/
|
|
28
28
|
'statusCode'?: number;
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
31
|
* @type {string}
|
|
32
|
-
* @memberof
|
|
32
|
+
* @memberof RequestsCreate402Response
|
|
33
33
|
*/
|
|
34
34
|
'message'?: string;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
* @type {string}
|
|
38
|
-
* @memberof
|
|
38
|
+
* @memberof RequestsCreate402Response
|
|
39
39
|
*/
|
|
40
40
|
'error'?: string;
|
|
41
41
|
}
|
|
@@ -17,25 +17,25 @@
|
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
19
19
|
* @export
|
|
20
|
-
* @interface
|
|
20
|
+
* @interface RequestsCreate409Response
|
|
21
21
|
*/
|
|
22
|
-
export interface
|
|
22
|
+
export interface RequestsCreate409Response {
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
25
25
|
* @type {number}
|
|
26
|
-
* @memberof
|
|
26
|
+
* @memberof RequestsCreate409Response
|
|
27
27
|
*/
|
|
28
28
|
'statusCode'?: number;
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
31
|
* @type {string}
|
|
32
|
-
* @memberof
|
|
32
|
+
* @memberof RequestsCreate409Response
|
|
33
33
|
*/
|
|
34
34
|
'message'?: string;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
* @type {string}
|
|
38
|
-
* @memberof
|
|
38
|
+
* @memberof RequestsCreate409Response
|
|
39
39
|
*/
|
|
40
40
|
'error'?: string;
|
|
41
41
|
}
|
|
@@ -13,9 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
// May contain unused imports in some cases
|
|
17
|
-
// @ts-ignore
|
|
18
|
-
import type { ReceiptEntity } from './receipt-entity';
|
|
19
16
|
|
|
20
17
|
/**
|
|
21
18
|
*
|
|
@@ -41,12 +38,6 @@ export interface RevokeCredentialEntity {
|
|
|
41
38
|
* @memberof RevokeCredentialEntity
|
|
42
39
|
*/
|
|
43
40
|
'revokedAt': string;
|
|
44
|
-
/**
|
|
45
|
-
* MANDATE_REVOKED receipt issued for this revocation
|
|
46
|
-
* @type {ReceiptEntity}
|
|
47
|
-
* @memberof RevokeCredentialEntity
|
|
48
|
-
*/
|
|
49
|
-
'receipt': ReceiptEntity;
|
|
50
41
|
}
|
|
51
42
|
|
|
52
43
|
export const RevokeCredentialEntityStatusEnum = {
|
|
@@ -21,11 +21,17 @@
|
|
|
21
21
|
*/
|
|
22
22
|
export interface VerifyPresentationDto {
|
|
23
23
|
/**
|
|
24
|
-
* Signed W3C Verifiable Presentation
|
|
24
|
+
* Signed W3C Verifiable Presentation (@context, type, holder, verifiableCredential, proof), exactly as returned by POST /credential/vp/:vcId — do not re-serialize or modify it. Provide this or `presentationEncoded` (at least one is required; `presentationEncoded` overrides and is recommended, since a base64 string avoids JSON formatting changes that can break the signature).
|
|
25
25
|
* @type {object}
|
|
26
26
|
* @memberof VerifyPresentationDto
|
|
27
27
|
*/
|
|
28
|
-
'presentation'
|
|
28
|
+
'presentation'?: object;
|
|
29
|
+
/**
|
|
30
|
+
* Base64-encoded JSON of the signed Verifiable Presentation above. Pass it back to POST /credential/verify as `presentationEncoded` (recommended) to avoid signature failures caused by JSON re-serialization in some HTTP clients.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof VerifyPresentationDto
|
|
33
|
+
*/
|
|
34
|
+
'presentationEncoded'?: string;
|
|
29
35
|
/**
|
|
30
36
|
* Params the agent intends to supply when invoking the action. Validated against the action\'s declared `executionParams` shape and exposed to CEL rules as `executionParams.<field>`.
|
|
31
37
|
* @type {object}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
// May contain unused imports in some cases
|
|
17
17
|
// @ts-ignore
|
|
18
|
-
import type {
|
|
18
|
+
import type { Mandate } from './mandate';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
*
|
|
@@ -33,9 +33,9 @@ export interface W3CVerifiableCredentialCredentialSubject {
|
|
|
33
33
|
'id': string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
|
-
* @type {
|
|
36
|
+
* @type {Mandate}
|
|
37
37
|
* @memberof W3CVerifiableCredentialCredentialSubject
|
|
38
38
|
*/
|
|
39
|
-
'mandate':
|
|
39
|
+
'mandate': Mandate;
|
|
40
40
|
}
|
|
41
41
|
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
|
|
16
16
|
// May contain unused imports in some cases
|
|
17
17
|
// @ts-ignore
|
|
18
|
-
import type {
|
|
18
|
+
import type { CredentialProof } from './credential-proof';
|
|
19
19
|
// May contain unused imports in some cases
|
|
20
20
|
// @ts-ignore
|
|
21
|
-
import type {
|
|
21
|
+
import type { Evidence } from './evidence';
|
|
22
22
|
// May contain unused imports in some cases
|
|
23
23
|
// @ts-ignore
|
|
24
|
-
import type {
|
|
24
|
+
import type { W3CVerifiableCredentialCredentialSubject } from './w3-cverifiable-credential-credential-subject';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
@@ -81,9 +81,9 @@ export interface W3CVerifiableCredential {
|
|
|
81
81
|
'evidences': Array<Evidence>;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
|
-
* @type {Array<
|
|
84
|
+
* @type {Array<CredentialProof>}
|
|
85
85
|
* @memberof W3CVerifiableCredential
|
|
86
86
|
*/
|
|
87
|
-
'proofs'
|
|
87
|
+
'proofs'?: Array<CredentialProof>;
|
|
88
88
|
}
|
|
89
89
|
|
|
@@ -30,7 +30,7 @@ import type { IdentityEventDecision } from './identity-event-decision';
|
|
|
30
30
|
import type { IdentityEventUser } from './identity-event-user';
|
|
31
31
|
// May contain unused imports in some cases
|
|
32
32
|
// @ts-ignore
|
|
33
|
-
import type {
|
|
33
|
+
import type { IdentityWebhook } from './identity-webhook';
|
|
34
34
|
// May contain unused imports in some cases
|
|
35
35
|
// @ts-ignore
|
|
36
36
|
import type { OtpFailedEvent } from './otp-failed-event';
|
package/package.json
CHANGED
|
@@ -1,36 +0,0 @@
|
|
|
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 ActionRefDto
|
|
21
|
-
*/
|
|
22
|
-
export interface ActionRefDto {
|
|
23
|
-
/**
|
|
24
|
-
* The identifier of a public action version
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof ActionRefDto
|
|
27
|
-
*/
|
|
28
|
-
'actionUrn': string;
|
|
29
|
-
/**
|
|
30
|
-
* Issuer-pinned values for the action\'s declared userParams
|
|
31
|
-
* @type {object}
|
|
32
|
-
* @memberof ActionRefDto
|
|
33
|
-
*/
|
|
34
|
-
'userParams': object;
|
|
35
|
-
}
|
|
36
|
-
|
|
@@ -1,36 +0,0 @@
|
|
|
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 ConstraintsDto
|
|
21
|
-
*/
|
|
22
|
-
export interface ConstraintsDto {
|
|
23
|
-
/**
|
|
24
|
-
* The identifier of a public schema version
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof ConstraintsDto
|
|
27
|
-
*/
|
|
28
|
-
'schemaUrn': string;
|
|
29
|
-
/**
|
|
30
|
-
* The constraints for the credential
|
|
31
|
-
* @type {object}
|
|
32
|
-
* @memberof ConstraintsDto
|
|
33
|
-
*/
|
|
34
|
-
'constants': object;
|
|
35
|
-
}
|
|
36
|
-
|