humanos 1.0.1
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/README.md +246 -0
- package/dist/index.d.mts +3898 -0
- package/dist/index.d.ts +3898 -0
- package/dist/index.js +1526 -0
- package/dist/index.mjs +1437 -0
- package/generated/.openapi-generator/FILES +82 -0
- package/generated/.openapi-generator/VERSION +1 -0
- package/generated/.openapi-generator-ignore +23 -0
- package/generated/README.md +46 -0
- package/generated/api/credentials-api.ts +148 -0
- package/generated/api/requests-api.ts +577 -0
- package/generated/api/resource-api.ts +318 -0
- package/generated/api/user-api.ts +241 -0
- package/generated/api/webhooks-api.ts +352 -0
- package/generated/api.ts +21 -0
- package/generated/base.ts +86 -0
- package/generated/common.ts +150 -0
- package/generated/configuration.ts +110 -0
- package/generated/git_push.sh +57 -0
- package/generated/index.ts +18 -0
- package/generated/models/action-type.ts +33 -0
- package/generated/models/agent-detail-entity.ts +36 -0
- package/generated/models/cancel-request404-response.ts +42 -0
- package/generated/models/create-subject-dto.ts +45 -0
- package/generated/models/create-subject-entity.ts +59 -0
- package/generated/models/credential-dto.ts +57 -0
- package/generated/models/credential-entity.ts +64 -0
- package/generated/models/credential-event-user.ts +42 -0
- package/generated/models/credential-event.ts +94 -0
- package/generated/models/credential-full-entity.ts +82 -0
- package/generated/models/credential-status.ts +33 -0
- package/generated/models/credential-subject.ts +39 -0
- package/generated/models/delivery-action-type.ts +31 -0
- package/generated/models/generate-credential-entity.ts +42 -0
- package/generated/models/generate-request-dto.ts +106 -0
- package/generated/models/generate-request-entity.ts +48 -0
- package/generated/models/generate-subject-entity.ts +48 -0
- package/generated/models/generate400-response.ts +42 -0
- package/generated/models/get-credential-entity.ts +48 -0
- package/generated/models/get-credential404-response.ts +42 -0
- package/generated/models/get-request-detail404-response.ts +42 -0
- package/generated/models/get-subject400-response.ts +42 -0
- package/generated/models/get-subject404-response.ts +42 -0
- package/generated/models/group-entity.ts +63 -0
- package/generated/models/group-resource-entity.ts +64 -0
- package/generated/models/groups-entity.ts +39 -0
- package/generated/models/identity-dto.ts +132 -0
- package/generated/models/identity-event-decision.ts +48 -0
- package/generated/models/identity-event-identity.ts +84 -0
- package/generated/models/identity-event.ts +94 -0
- package/generated/models/identity-field-placement.ts +73 -0
- package/generated/models/identity-field-type.ts +38 -0
- package/generated/models/index.ts +64 -0
- package/generated/models/issuer-detail-entity.ts +36 -0
- package/generated/models/mandate-data-dto-type.ts +73 -0
- package/generated/models/mandate-data-dto-value.ts +24 -0
- package/generated/models/mandate-data-dto.ts +71 -0
- package/generated/models/mandate-data-type.ts +37 -0
- package/generated/models/otp-failed-event-otp-error.ts +36 -0
- package/generated/models/otp-failed-event-otp.ts +39 -0
- package/generated/models/otp-failed-event.ts +85 -0
- package/generated/models/request-detail-entity.ts +94 -0
- package/generated/models/request-entity.ts +94 -0
- package/generated/models/request-query.ts +100 -0
- package/generated/models/request-subject-entity.ts +48 -0
- package/generated/models/requests-entity.ts +39 -0
- package/generated/models/resource-entity.ts +94 -0
- package/generated/models/resource-query.ts +70 -0
- package/generated/models/resources-entity.ts +39 -0
- package/generated/models/signature-placement-item-dto.ts +72 -0
- package/generated/models/signature-placement.ts +56 -0
- package/generated/models/subject-contact-entity.ts +42 -0
- package/generated/models/subject-entity.ts +48 -0
- package/generated/models/subject-query.ts +42 -0
- package/generated/models/subject.ts +42 -0
- package/generated/models/success-entity.ts +30 -0
- package/generated/models/test-event.ts +82 -0
- package/generated/models/w3-cproof.ts +82 -0
- package/generated/models/w3-cverifiable-credential.ts +90 -0
- package/generated/models/webhook-call-event.ts +56 -0
- package/generated/models/webhook-event-type-credential.ts +30 -0
- package/generated/models/webhook-event-type-identity.ts +30 -0
- package/generated/models/webhook-event-type-otpfailed.ts +30 -0
- package/generated/models/webhook-event-type-test.ts +30 -0
- package/generated/models/webhook-event-type.ts +33 -0
- package/generated/package.json +33 -0
- package/generated/tsconfig.esm.json +7 -0
- package/generated/tsconfig.json +18 -0
- package/package.json +68 -0
|
@@ -0,0 +1,82 @@
|
|
|
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 W3CProof
|
|
21
|
+
*/
|
|
22
|
+
export interface W3CProof {
|
|
23
|
+
/**
|
|
24
|
+
* Type of the proof
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof W3CProof
|
|
27
|
+
*/
|
|
28
|
+
'type': string;
|
|
29
|
+
/**
|
|
30
|
+
* Cryptosuite of the proof
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof W3CProof
|
|
33
|
+
*/
|
|
34
|
+
'cryptosuite': string;
|
|
35
|
+
/**
|
|
36
|
+
* Proof purpose of the proof
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof W3CProof
|
|
39
|
+
*/
|
|
40
|
+
'proofPurpose': string;
|
|
41
|
+
/**
|
|
42
|
+
* Verification method of the proof
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof W3CProof
|
|
45
|
+
*/
|
|
46
|
+
'verificationMethod': string;
|
|
47
|
+
/**
|
|
48
|
+
* Resulting value of signing the w3cCredential
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof W3CProof
|
|
51
|
+
*/
|
|
52
|
+
'proofValue': string;
|
|
53
|
+
/**
|
|
54
|
+
* Action type of the proof Contacts can ACCEPT, REJECT or REVOKE a credential. Issuer always has actionType ActionTypeEnum.ISSUE.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof W3CProof
|
|
57
|
+
*/
|
|
58
|
+
'actionType': W3CProofActionTypeEnum;
|
|
59
|
+
/**
|
|
60
|
+
* Hash of the action type and the proofValue. Calculated by keccak256(toUtf8Bytes(proofValue.actionType))`
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof W3CProof
|
|
63
|
+
*/
|
|
64
|
+
'actionProof': string;
|
|
65
|
+
/**
|
|
66
|
+
* Created at date of the proof
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof W3CProof
|
|
69
|
+
*/
|
|
70
|
+
'createdAt': string;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export const W3CProofActionTypeEnum = {
|
|
74
|
+
Issue: 'ISSUE',
|
|
75
|
+
Accept: 'ACCEPT',
|
|
76
|
+
Reject: 'REJECT',
|
|
77
|
+
Revoke: 'REVOKE'
|
|
78
|
+
} as const;
|
|
79
|
+
|
|
80
|
+
export type W3CProofActionTypeEnum = typeof W3CProofActionTypeEnum[keyof typeof W3CProofActionTypeEnum];
|
|
81
|
+
|
|
82
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { CredentialSubject } from './credential-subject';
|
|
19
|
+
// May contain unused imports in some cases
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import type { W3CProof } from './w3-cproof';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface W3CVerifiableCredential
|
|
27
|
+
*/
|
|
28
|
+
export interface W3CVerifiableCredential {
|
|
29
|
+
/**
|
|
30
|
+
* JSON-LD context for the W3C Verifiable Credential
|
|
31
|
+
* @type {Array<string>}
|
|
32
|
+
* @memberof W3CVerifiableCredential
|
|
33
|
+
*/
|
|
34
|
+
'@context': Array<string>;
|
|
35
|
+
/**
|
|
36
|
+
* Unique identifier for the credential
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof W3CVerifiableCredential
|
|
39
|
+
*/
|
|
40
|
+
'id': string;
|
|
41
|
+
/**
|
|
42
|
+
* Scope of the credential
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof W3CVerifiableCredential
|
|
45
|
+
*/
|
|
46
|
+
'scope': string;
|
|
47
|
+
/**
|
|
48
|
+
* Type of the credential
|
|
49
|
+
* @type {Array<string>}
|
|
50
|
+
* @memberof W3CVerifiableCredential
|
|
51
|
+
*/
|
|
52
|
+
'type': Array<string>;
|
|
53
|
+
/**
|
|
54
|
+
* Issuer of the credential (DID)
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof W3CVerifiableCredential
|
|
57
|
+
*/
|
|
58
|
+
'issuer': string;
|
|
59
|
+
/**
|
|
60
|
+
* VC 1.1 issuance date (deprecated, use validFrom)
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof W3CVerifiableCredential
|
|
63
|
+
*/
|
|
64
|
+
'issuanceDate'?: string;
|
|
65
|
+
/**
|
|
66
|
+
* VC 2.0 valid from date
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof W3CVerifiableCredential
|
|
69
|
+
*/
|
|
70
|
+
'validFrom'?: string;
|
|
71
|
+
/**
|
|
72
|
+
* VC 2.0 valid until date
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof W3CVerifiableCredential
|
|
75
|
+
*/
|
|
76
|
+
'validUntil'?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Credential subject containing the actual credential data
|
|
79
|
+
* @type {Array<CredentialSubject>}
|
|
80
|
+
* @memberof W3CVerifiableCredential
|
|
81
|
+
*/
|
|
82
|
+
'credentialSubject': Array<CredentialSubject>;
|
|
83
|
+
/**
|
|
84
|
+
* Cryptographic proof(s) for the credential
|
|
85
|
+
* @type {Array<W3CProof>}
|
|
86
|
+
* @memberof W3CVerifiableCredential
|
|
87
|
+
*/
|
|
88
|
+
'proof'?: Array<W3CProof>;
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
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 { CredentialEvent } from './credential-event';
|
|
19
|
+
// May contain unused imports in some cases
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import type { CredentialEventUser } from './credential-event-user';
|
|
22
|
+
// May contain unused imports in some cases
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import type { CredentialFullEntity } from './credential-full-entity';
|
|
25
|
+
// May contain unused imports in some cases
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { DeliveryActionType } from './delivery-action-type';
|
|
28
|
+
// May contain unused imports in some cases
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import type { IdentityEvent } from './identity-event';
|
|
31
|
+
// May contain unused imports in some cases
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import type { IdentityEventDecision } from './identity-event-decision';
|
|
34
|
+
// May contain unused imports in some cases
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import type { IdentityEventIdentity } from './identity-event-identity';
|
|
37
|
+
// May contain unused imports in some cases
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
import type { OtpFailedEvent } from './otp-failed-event';
|
|
40
|
+
// May contain unused imports in some cases
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
import type { OtpFailedEventOtp } from './otp-failed-event-otp';
|
|
43
|
+
// May contain unused imports in some cases
|
|
44
|
+
// @ts-ignore
|
|
45
|
+
import type { TestEvent } from './test-event';
|
|
46
|
+
// May contain unused imports in some cases
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
import type { WebhookEventTypeTEST } from './webhook-event-type-test';
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @type WebhookCallEvent
|
|
52
|
+
* @export
|
|
53
|
+
*/
|
|
54
|
+
export type WebhookCallEvent = { eventType: 'credential' } & CredentialEvent | { eventType: 'identity' } & IdentityEvent | { eventType: 'otp.failed' } & OtpFailedEvent | { eventType: 'test' } & TestEvent;
|
|
55
|
+
|
|
56
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const WebhookEventTypeCREDENTIAL = {
|
|
24
|
+
Credential: 'credential'
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
27
|
+
export type WebhookEventTypeCREDENTIAL = typeof WebhookEventTypeCREDENTIAL[keyof typeof WebhookEventTypeCREDENTIAL];
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const WebhookEventTypeIDENTITY = {
|
|
24
|
+
Identity: 'identity'
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
27
|
+
export type WebhookEventTypeIDENTITY = typeof WebhookEventTypeIDENTITY[keyof typeof WebhookEventTypeIDENTITY];
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const WebhookEventTypeOTPFAILED = {
|
|
24
|
+
OtpFailed: 'otp.failed'
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
27
|
+
export type WebhookEventTypeOTPFAILED = typeof WebhookEventTypeOTPFAILED[keyof typeof WebhookEventTypeOTPFAILED];
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const WebhookEventTypeTEST = {
|
|
24
|
+
Test: 'test'
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
27
|
+
export type WebhookEventTypeTEST = typeof WebhookEventTypeTEST[keyof typeof WebhookEventTypeTEST];
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const WebhookEventType = {
|
|
24
|
+
Credential: 'credential',
|
|
25
|
+
Identity: 'identity',
|
|
26
|
+
OtpFailed: 'otp.failed',
|
|
27
|
+
Test: 'test'
|
|
28
|
+
} as const;
|
|
29
|
+
|
|
30
|
+
export type WebhookEventType = typeof WebhookEventType[keyof typeof WebhookEventType];
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "humanos-sdk-generated",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "OpenAPI client for humanos-sdk-generated",
|
|
5
|
+
"author": "OpenAPI-Generator Contributors",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"axios",
|
|
12
|
+
"typescript",
|
|
13
|
+
"openapi-client",
|
|
14
|
+
"openapi-generator",
|
|
15
|
+
"humanos-sdk-generated"
|
|
16
|
+
],
|
|
17
|
+
"license": "Unlicense",
|
|
18
|
+
"main": "./dist/index.js",
|
|
19
|
+
"typings": "./dist/index.d.ts",
|
|
20
|
+
"module": "./dist/esm/index.js",
|
|
21
|
+
"sideEffects": false,
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsc && tsc -p tsconfig.esm.json",
|
|
24
|
+
"prepare": "npm run build"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"axios": "^1.6.1"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@types/node": "12.11.5 - 12.20.42",
|
|
31
|
+
"typescript": "^4.0 || ^5.0"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"declaration": true,
|
|
4
|
+
"target": "ES6",
|
|
5
|
+
"module": "commonjs",
|
|
6
|
+
"noImplicitAny": true,
|
|
7
|
+
"outDir": "dist",
|
|
8
|
+
"rootDir": ".",
|
|
9
|
+
"moduleResolution": "node",
|
|
10
|
+
"typeRoots": [
|
|
11
|
+
"node_modules/@types"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"exclude": [
|
|
15
|
+
"dist",
|
|
16
|
+
"node_modules"
|
|
17
|
+
]
|
|
18
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "humanos",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Official Humanos API SDK for TypeScript/JavaScript with automatic request signing and webhook verification",
|
|
5
|
+
"author": "Humanos <tech@humanos.tech>",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"module": "dist/index.mjs",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.mjs",
|
|
13
|
+
"require": "./dist/index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"generated",
|
|
19
|
+
"README.md",
|
|
20
|
+
"LICENSE"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsup src/index.ts --format cjs,esm --dts --clean",
|
|
24
|
+
"build:generated": "cd generated && tsc",
|
|
25
|
+
"generate": "openapi-generator-cli generate --generator-key typescript-sdk",
|
|
26
|
+
"prepublishOnly": "npm run build"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"axios": "^1.0.0"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@types/node": "^20.0.0",
|
|
33
|
+
"tsup": "^8.5.1",
|
|
34
|
+
"typescript": "^5.0.0"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"axios": "^1.0.0"
|
|
38
|
+
},
|
|
39
|
+
"keywords": [
|
|
40
|
+
"humanos",
|
|
41
|
+
"api",
|
|
42
|
+
"sdk",
|
|
43
|
+
"verifiable-credentials",
|
|
44
|
+
"did",
|
|
45
|
+
"identity",
|
|
46
|
+
"kyc",
|
|
47
|
+
"authentication",
|
|
48
|
+
"credentials",
|
|
49
|
+
"typescript",
|
|
50
|
+
"javascript"
|
|
51
|
+
],
|
|
52
|
+
"license": "MIT",
|
|
53
|
+
"repository": {
|
|
54
|
+
"type": "git",
|
|
55
|
+
"url": "git+https://github.com/Humanos-App/humanos-sdks.git",
|
|
56
|
+
"directory": "typescript"
|
|
57
|
+
},
|
|
58
|
+
"bugs": {
|
|
59
|
+
"url": "https://github.com/Humanos-App/humanos-sdks/issues"
|
|
60
|
+
},
|
|
61
|
+
"homepage": "https://github.com/Humanos-App/humanos-sdks#readme",
|
|
62
|
+
"engines": {
|
|
63
|
+
"node": ">=16.0.0"
|
|
64
|
+
},
|
|
65
|
+
"publishConfig": {
|
|
66
|
+
"access": "public"
|
|
67
|
+
}
|
|
68
|
+
}
|