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,110 @@
|
|
|
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
|
+
export interface ConfigurationParameters {
|
|
17
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
18
|
+
username?: string;
|
|
19
|
+
password?: string;
|
|
20
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
21
|
+
basePath?: string;
|
|
22
|
+
serverIndex?: number;
|
|
23
|
+
baseOptions?: any;
|
|
24
|
+
formDataCtor?: new () => any;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export class Configuration {
|
|
28
|
+
/**
|
|
29
|
+
* parameter for apiKey security
|
|
30
|
+
* @param name security name
|
|
31
|
+
* @memberof Configuration
|
|
32
|
+
*/
|
|
33
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
34
|
+
/**
|
|
35
|
+
* parameter for basic security
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof Configuration
|
|
39
|
+
*/
|
|
40
|
+
username?: string;
|
|
41
|
+
/**
|
|
42
|
+
* parameter for basic security
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof Configuration
|
|
46
|
+
*/
|
|
47
|
+
password?: string;
|
|
48
|
+
/**
|
|
49
|
+
* parameter for oauth2 security
|
|
50
|
+
* @param name security name
|
|
51
|
+
* @param scopes oauth2 scope
|
|
52
|
+
* @memberof Configuration
|
|
53
|
+
*/
|
|
54
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
55
|
+
/**
|
|
56
|
+
* override base path
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof Configuration
|
|
60
|
+
*/
|
|
61
|
+
basePath?: string;
|
|
62
|
+
/**
|
|
63
|
+
* override server index
|
|
64
|
+
*
|
|
65
|
+
* @type {number}
|
|
66
|
+
* @memberof Configuration
|
|
67
|
+
*/
|
|
68
|
+
serverIndex?: number;
|
|
69
|
+
/**
|
|
70
|
+
* base options for axios calls
|
|
71
|
+
*
|
|
72
|
+
* @type {any}
|
|
73
|
+
* @memberof Configuration
|
|
74
|
+
*/
|
|
75
|
+
baseOptions?: any;
|
|
76
|
+
/**
|
|
77
|
+
* The FormData constructor that will be used to create multipart form data
|
|
78
|
+
* requests. You can inject this here so that execution environments that
|
|
79
|
+
* do not support the FormData class can still run the generated client.
|
|
80
|
+
*
|
|
81
|
+
* @type {new () => FormData}
|
|
82
|
+
*/
|
|
83
|
+
formDataCtor?: new () => any;
|
|
84
|
+
|
|
85
|
+
constructor(param: ConfigurationParameters = {}) {
|
|
86
|
+
this.apiKey = param.apiKey;
|
|
87
|
+
this.username = param.username;
|
|
88
|
+
this.password = param.password;
|
|
89
|
+
this.accessToken = param.accessToken;
|
|
90
|
+
this.basePath = param.basePath;
|
|
91
|
+
this.serverIndex = param.serverIndex;
|
|
92
|
+
this.baseOptions = param.baseOptions;
|
|
93
|
+
this.formDataCtor = param.formDataCtor;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Check if the given MIME is a JSON MIME.
|
|
98
|
+
* JSON MIME examples:
|
|
99
|
+
* application/json
|
|
100
|
+
* application/json; charset=UTF8
|
|
101
|
+
* APPLICATION/JSON
|
|
102
|
+
* application/vnd.company+json
|
|
103
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
104
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
105
|
+
*/
|
|
106
|
+
public isJsonMime(mime: string): boolean {
|
|
107
|
+
const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
108
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
3
|
+
#
|
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
|
5
|
+
|
|
6
|
+
git_user_id=$1
|
|
7
|
+
git_repo_id=$2
|
|
8
|
+
release_note=$3
|
|
9
|
+
git_host=$4
|
|
10
|
+
|
|
11
|
+
if [ "$git_host" = "" ]; then
|
|
12
|
+
git_host="github.com"
|
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
|
17
|
+
git_user_id="GIT_USER_ID"
|
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
|
22
|
+
git_repo_id="GIT_REPO_ID"
|
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
if [ "$release_note" = "" ]; then
|
|
27
|
+
release_note="Minor update"
|
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
# Initialize the local directory as a Git repository
|
|
32
|
+
git init
|
|
33
|
+
|
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
|
35
|
+
git add .
|
|
36
|
+
|
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
38
|
+
git commit -m "$release_note"
|
|
39
|
+
|
|
40
|
+
# Sets the new remote
|
|
41
|
+
git_remote=$(git remote)
|
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
43
|
+
|
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
47
|
+
else
|
|
48
|
+
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
git pull origin master
|
|
54
|
+
|
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
export * from "./api";
|
|
17
|
+
export * from "./configuration";
|
|
18
|
+
export * from "./models";
|
|
@@ -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 ActionType = {
|
|
24
|
+
Issue: 'ISSUE',
|
|
25
|
+
Accept: 'ACCEPT',
|
|
26
|
+
Reject: 'REJECT',
|
|
27
|
+
Revoke: 'REVOKE'
|
|
28
|
+
} as const;
|
|
29
|
+
|
|
30
|
+
export type ActionType = typeof ActionType[keyof typeof ActionType];
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
@@ -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 AgentDetailEntity
|
|
21
|
+
*/
|
|
22
|
+
export interface AgentDetailEntity {
|
|
23
|
+
/**
|
|
24
|
+
* Name of the agent
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof AgentDetailEntity
|
|
27
|
+
*/
|
|
28
|
+
'name'?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Public Decentralized Identifier (DID) of the agent
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof AgentDetailEntity
|
|
33
|
+
*/
|
|
34
|
+
'did': string;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
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 CancelRequest404Response
|
|
21
|
+
*/
|
|
22
|
+
export interface CancelRequest404Response {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof CancelRequest404Response
|
|
27
|
+
*/
|
|
28
|
+
'statusCode'?: number;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CancelRequest404Response
|
|
33
|
+
*/
|
|
34
|
+
'message'?: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CancelRequest404Response
|
|
39
|
+
*/
|
|
40
|
+
'error'?: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
@@ -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 { IdentityDto } from './identity-dto';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface CreateSubjectDto
|
|
24
|
+
*/
|
|
25
|
+
export interface CreateSubjectDto {
|
|
26
|
+
/**
|
|
27
|
+
* Contact value (email or phone)
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof CreateSubjectDto
|
|
30
|
+
*/
|
|
31
|
+
'contact': string;
|
|
32
|
+
/**
|
|
33
|
+
* Identifier to help you identify the user in your own system. We recommend using a unique value.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof CreateSubjectDto
|
|
36
|
+
*/
|
|
37
|
+
'internalId'?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Identity information to be assigned to the user
|
|
40
|
+
* @type {IdentityDto}
|
|
41
|
+
* @memberof CreateSubjectDto
|
|
42
|
+
*/
|
|
43
|
+
'identity'?: IdentityDto;
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -0,0 +1,59 @@
|
|
|
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 { Subject } from './subject';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface CreateSubjectEntity
|
|
24
|
+
*/
|
|
25
|
+
export interface CreateSubjectEntity {
|
|
26
|
+
/**
|
|
27
|
+
* HTTP status code indicating the result of the operation for this specific subject: - 200: Success - 201: Success, but nothing was updated - 400: Invalid body payload. Information will be at the message field - 402: Invalid identity due to invalid countryAlpha3 - 407: This call contained this contact more than once - 408: This call contained this identity more than once - 409: Duplicate Identity - 410: Duplicate Identity. This user already has an identity with this countryAlpha3
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof CreateSubjectEntity
|
|
30
|
+
*/
|
|
31
|
+
'status': CreateSubjectEntityStatusEnum;
|
|
32
|
+
/**
|
|
33
|
+
* Success or error message
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof CreateSubjectEntity
|
|
36
|
+
*/
|
|
37
|
+
'message': string;
|
|
38
|
+
/**
|
|
39
|
+
* User information. Will just contain the contact if the operation fails
|
|
40
|
+
* @type {Subject}
|
|
41
|
+
* @memberof CreateSubjectEntity
|
|
42
|
+
*/
|
|
43
|
+
'user': Subject;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export const CreateSubjectEntityStatusEnum = {
|
|
47
|
+
NUMBER_200: 200,
|
|
48
|
+
NUMBER_201: 201,
|
|
49
|
+
NUMBER_400: 400,
|
|
50
|
+
NUMBER_402: 402,
|
|
51
|
+
NUMBER_407: 407,
|
|
52
|
+
NUMBER_408: 408,
|
|
53
|
+
NUMBER_409: 409,
|
|
54
|
+
NUMBER_410: 410
|
|
55
|
+
} as const;
|
|
56
|
+
|
|
57
|
+
export type CreateSubjectEntityStatusEnum = typeof CreateSubjectEntityStatusEnum[keyof typeof CreateSubjectEntityStatusEnum];
|
|
58
|
+
|
|
59
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { MandateDataDto } from './mandate-data-dto';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface CredentialDto
|
|
24
|
+
*/
|
|
25
|
+
export interface CredentialDto {
|
|
26
|
+
/**
|
|
27
|
+
* The scope of a credential is used to identify the context of the credential
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof CredentialDto
|
|
30
|
+
*/
|
|
31
|
+
'scope': string;
|
|
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\" }
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof CredentialDto
|
|
36
|
+
*/
|
|
37
|
+
'type': string;
|
|
38
|
+
/**
|
|
39
|
+
* Name of the credential
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof CredentialDto
|
|
42
|
+
*/
|
|
43
|
+
'name': string;
|
|
44
|
+
/**
|
|
45
|
+
* Identifier to help you identify the credential in your own system. We recommend using a unique value.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof CredentialDto
|
|
48
|
+
*/
|
|
49
|
+
'internalId'?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Data associated with the credential
|
|
52
|
+
* @type {Array<MandateDataDto>}
|
|
53
|
+
* @memberof CredentialDto
|
|
54
|
+
*/
|
|
55
|
+
'data': Array<MandateDataDto>;
|
|
56
|
+
}
|
|
57
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
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 CredentialEntity
|
|
21
|
+
*/
|
|
22
|
+
export interface CredentialEntity {
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier for the created credential
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CredentialEntity
|
|
27
|
+
*/
|
|
28
|
+
'id': string;
|
|
29
|
+
/**
|
|
30
|
+
* Name of the credential
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CredentialEntity
|
|
33
|
+
*/
|
|
34
|
+
'name'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Identifier to help you identify the credential in your own system. We recommend using a unique value.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CredentialEntity
|
|
39
|
+
*/
|
|
40
|
+
'internalId'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Type of resource for this credential (e.g., DOCUMENT, CONSENT, FORM)
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CredentialEntity
|
|
45
|
+
*/
|
|
46
|
+
'resourceType': string;
|
|
47
|
+
/**
|
|
48
|
+
* Status of the credential
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof CredentialEntity
|
|
51
|
+
*/
|
|
52
|
+
'status': CredentialEntityStatusEnum;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export const CredentialEntityStatusEnum = {
|
|
56
|
+
Pending: 'PENDING',
|
|
57
|
+
Approved: 'APPROVED',
|
|
58
|
+
Rejected: 'REJECTED',
|
|
59
|
+
Revoked: 'REVOKED'
|
|
60
|
+
} as const;
|
|
61
|
+
|
|
62
|
+
export type CredentialEntityStatusEnum = typeof CredentialEntityStatusEnum[keyof typeof CredentialEntityStatusEnum];
|
|
63
|
+
|
|
64
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
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 CredentialEventUser
|
|
21
|
+
*/
|
|
22
|
+
export interface CredentialEventUser {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CredentialEventUser
|
|
27
|
+
*/
|
|
28
|
+
'contact': string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CredentialEventUser
|
|
33
|
+
*/
|
|
34
|
+
'did': string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CredentialEventUser
|
|
39
|
+
*/
|
|
40
|
+
'internalId'?: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
@@ -0,0 +1,94 @@
|
|
|
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 { CredentialEventUser } from './credential-event-user';
|
|
19
|
+
// May contain unused imports in some cases
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import type { CredentialFullEntity } from './credential-full-entity';
|
|
22
|
+
// May contain unused imports in some cases
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import type { DeliveryActionType } from './delivery-action-type';
|
|
25
|
+
// May contain unused imports in some cases
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { WebhookEventTypeCREDENTIAL } from './webhook-event-type-credential';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface CredentialEvent
|
|
33
|
+
*/
|
|
34
|
+
export interface CredentialEvent {
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {WebhookEventTypeCREDENTIAL}
|
|
40
|
+
* @memberof CredentialEvent
|
|
41
|
+
*/
|
|
42
|
+
'eventType': WebhookEventTypeCREDENTIAL;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CredentialEvent
|
|
47
|
+
*/
|
|
48
|
+
'requestId': string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof CredentialEvent
|
|
53
|
+
*/
|
|
54
|
+
'internalId'?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof CredentialEvent
|
|
59
|
+
*/
|
|
60
|
+
'issuerDid': string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {CredentialEventUser}
|
|
64
|
+
* @memberof CredentialEvent
|
|
65
|
+
*/
|
|
66
|
+
'user': CredentialEventUser;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof CredentialEvent
|
|
71
|
+
*/
|
|
72
|
+
'decisionDate': string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof CredentialEvent
|
|
77
|
+
*/
|
|
78
|
+
'api_version'?: string;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {DeliveryActionType}
|
|
82
|
+
* @memberof CredentialEvent
|
|
83
|
+
*/
|
|
84
|
+
'action': DeliveryActionType;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {CredentialFullEntity}
|
|
88
|
+
* @memberof CredentialEvent
|
|
89
|
+
*/
|
|
90
|
+
'credential': CredentialFullEntity;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|