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.
Files changed (89) hide show
  1. package/README.md +246 -0
  2. package/dist/index.d.mts +3898 -0
  3. package/dist/index.d.ts +3898 -0
  4. package/dist/index.js +1526 -0
  5. package/dist/index.mjs +1437 -0
  6. package/generated/.openapi-generator/FILES +82 -0
  7. package/generated/.openapi-generator/VERSION +1 -0
  8. package/generated/.openapi-generator-ignore +23 -0
  9. package/generated/README.md +46 -0
  10. package/generated/api/credentials-api.ts +148 -0
  11. package/generated/api/requests-api.ts +577 -0
  12. package/generated/api/resource-api.ts +318 -0
  13. package/generated/api/user-api.ts +241 -0
  14. package/generated/api/webhooks-api.ts +352 -0
  15. package/generated/api.ts +21 -0
  16. package/generated/base.ts +86 -0
  17. package/generated/common.ts +150 -0
  18. package/generated/configuration.ts +110 -0
  19. package/generated/git_push.sh +57 -0
  20. package/generated/index.ts +18 -0
  21. package/generated/models/action-type.ts +33 -0
  22. package/generated/models/agent-detail-entity.ts +36 -0
  23. package/generated/models/cancel-request404-response.ts +42 -0
  24. package/generated/models/create-subject-dto.ts +45 -0
  25. package/generated/models/create-subject-entity.ts +59 -0
  26. package/generated/models/credential-dto.ts +57 -0
  27. package/generated/models/credential-entity.ts +64 -0
  28. package/generated/models/credential-event-user.ts +42 -0
  29. package/generated/models/credential-event.ts +94 -0
  30. package/generated/models/credential-full-entity.ts +82 -0
  31. package/generated/models/credential-status.ts +33 -0
  32. package/generated/models/credential-subject.ts +39 -0
  33. package/generated/models/delivery-action-type.ts +31 -0
  34. package/generated/models/generate-credential-entity.ts +42 -0
  35. package/generated/models/generate-request-dto.ts +106 -0
  36. package/generated/models/generate-request-entity.ts +48 -0
  37. package/generated/models/generate-subject-entity.ts +48 -0
  38. package/generated/models/generate400-response.ts +42 -0
  39. package/generated/models/get-credential-entity.ts +48 -0
  40. package/generated/models/get-credential404-response.ts +42 -0
  41. package/generated/models/get-request-detail404-response.ts +42 -0
  42. package/generated/models/get-subject400-response.ts +42 -0
  43. package/generated/models/get-subject404-response.ts +42 -0
  44. package/generated/models/group-entity.ts +63 -0
  45. package/generated/models/group-resource-entity.ts +64 -0
  46. package/generated/models/groups-entity.ts +39 -0
  47. package/generated/models/identity-dto.ts +132 -0
  48. package/generated/models/identity-event-decision.ts +48 -0
  49. package/generated/models/identity-event-identity.ts +84 -0
  50. package/generated/models/identity-event.ts +94 -0
  51. package/generated/models/identity-field-placement.ts +73 -0
  52. package/generated/models/identity-field-type.ts +38 -0
  53. package/generated/models/index.ts +64 -0
  54. package/generated/models/issuer-detail-entity.ts +36 -0
  55. package/generated/models/mandate-data-dto-type.ts +73 -0
  56. package/generated/models/mandate-data-dto-value.ts +24 -0
  57. package/generated/models/mandate-data-dto.ts +71 -0
  58. package/generated/models/mandate-data-type.ts +37 -0
  59. package/generated/models/otp-failed-event-otp-error.ts +36 -0
  60. package/generated/models/otp-failed-event-otp.ts +39 -0
  61. package/generated/models/otp-failed-event.ts +85 -0
  62. package/generated/models/request-detail-entity.ts +94 -0
  63. package/generated/models/request-entity.ts +94 -0
  64. package/generated/models/request-query.ts +100 -0
  65. package/generated/models/request-subject-entity.ts +48 -0
  66. package/generated/models/requests-entity.ts +39 -0
  67. package/generated/models/resource-entity.ts +94 -0
  68. package/generated/models/resource-query.ts +70 -0
  69. package/generated/models/resources-entity.ts +39 -0
  70. package/generated/models/signature-placement-item-dto.ts +72 -0
  71. package/generated/models/signature-placement.ts +56 -0
  72. package/generated/models/subject-contact-entity.ts +42 -0
  73. package/generated/models/subject-entity.ts +48 -0
  74. package/generated/models/subject-query.ts +42 -0
  75. package/generated/models/subject.ts +42 -0
  76. package/generated/models/success-entity.ts +30 -0
  77. package/generated/models/test-event.ts +82 -0
  78. package/generated/models/w3-cproof.ts +82 -0
  79. package/generated/models/w3-cverifiable-credential.ts +90 -0
  80. package/generated/models/webhook-call-event.ts +56 -0
  81. package/generated/models/webhook-event-type-credential.ts +30 -0
  82. package/generated/models/webhook-event-type-identity.ts +30 -0
  83. package/generated/models/webhook-event-type-otpfailed.ts +30 -0
  84. package/generated/models/webhook-event-type-test.ts +30 -0
  85. package/generated/models/webhook-event-type.ts +33 -0
  86. package/generated/package.json +33 -0
  87. package/generated/tsconfig.esm.json +7 -0
  88. package/generated/tsconfig.json +18 -0
  89. package/package.json +68 -0
@@ -0,0 +1,82 @@
1
+ .gitignore
2
+ .npmignore
3
+ README.md
4
+ api.ts
5
+ api/credentials-api.ts
6
+ api/requests-api.ts
7
+ api/resource-api.ts
8
+ api/user-api.ts
9
+ api/webhooks-api.ts
10
+ base.ts
11
+ common.ts
12
+ configuration.ts
13
+ git_push.sh
14
+ index.ts
15
+ models/action-type.ts
16
+ models/agent-detail-entity.ts
17
+ models/cancel-request404-response.ts
18
+ models/create-subject-dto.ts
19
+ models/create-subject-entity.ts
20
+ models/credential-dto.ts
21
+ models/credential-entity.ts
22
+ models/credential-event-user.ts
23
+ models/credential-event.ts
24
+ models/credential-full-entity.ts
25
+ models/credential-status.ts
26
+ models/credential-subject.ts
27
+ models/delivery-action-type.ts
28
+ models/generate-credential-entity.ts
29
+ models/generate-request-dto.ts
30
+ models/generate-request-entity.ts
31
+ models/generate-subject-entity.ts
32
+ models/generate400-response.ts
33
+ models/get-credential-entity.ts
34
+ models/get-credential404-response.ts
35
+ models/get-request-detail404-response.ts
36
+ models/get-subject400-response.ts
37
+ models/get-subject404-response.ts
38
+ models/group-entity.ts
39
+ models/group-resource-entity.ts
40
+ models/groups-entity.ts
41
+ models/identity-dto.ts
42
+ models/identity-event-decision.ts
43
+ models/identity-event-identity.ts
44
+ models/identity-event.ts
45
+ models/identity-field-placement.ts
46
+ models/identity-field-type.ts
47
+ models/index.ts
48
+ models/issuer-detail-entity.ts
49
+ models/mandate-data-dto-type.ts
50
+ models/mandate-data-dto-value.ts
51
+ models/mandate-data-dto.ts
52
+ models/mandate-data-type.ts
53
+ models/otp-failed-event-otp-error.ts
54
+ models/otp-failed-event-otp.ts
55
+ models/otp-failed-event.ts
56
+ models/request-detail-entity.ts
57
+ models/request-entity.ts
58
+ models/request-query.ts
59
+ models/request-subject-entity.ts
60
+ models/requests-entity.ts
61
+ models/resource-entity.ts
62
+ models/resource-query.ts
63
+ models/resources-entity.ts
64
+ models/signature-placement-item-dto.ts
65
+ models/signature-placement.ts
66
+ models/subject-contact-entity.ts
67
+ models/subject-entity.ts
68
+ models/subject-query.ts
69
+ models/subject.ts
70
+ models/success-entity.ts
71
+ models/test-event.ts
72
+ models/w3-cproof.ts
73
+ models/w3-cverifiable-credential.ts
74
+ models/webhook-call-event.ts
75
+ models/webhook-event-type-credential.ts
76
+ models/webhook-event-type-identity.ts
77
+ models/webhook-event-type-otpfailed.ts
78
+ models/webhook-event-type-test.ts
79
+ models/webhook-event-type.ts
80
+ package.json
81
+ tsconfig.esm.json
82
+ tsconfig.json
@@ -0,0 +1 @@
1
+ 7.10.0
@@ -0,0 +1,23 @@
1
+ # OpenAPI Generator Ignore
2
+ # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3
+
4
+ # Use this file to prevent files from being overwritten by the generator.
5
+ # The patterns follow closely to .gitignore or .dockerignore.
6
+
7
+ # As an example, the C# client generator defines ApiClient.cs.
8
+ # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9
+ #ApiClient.cs
10
+
11
+ # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
+ #foo/*/qux
13
+ # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
+
15
+ # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
+ #foo/**/qux
17
+ # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
+
19
+ # You can also negate patterns with an exclamation (!).
20
+ # For example, you can ignore all files in a docs folder with the file extension .md:
21
+ #docs/*.md
22
+ # Then explicitly reverse the ignore rule for a single file:
23
+ #!docs/README.md
@@ -0,0 +1,46 @@
1
+ ## humanos-sdk-generated@1.0.0
2
+
3
+ This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
+
5
+ Environment
6
+ * Node.js
7
+ * Webpack
8
+ * Browserify
9
+
10
+ Language level
11
+ * ES5 - you must have a Promises/A+ library installed
12
+ * ES6
13
+
14
+ Module system
15
+ * CommonJS
16
+ * ES6 module system
17
+
18
+ It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))
19
+
20
+ ### Building
21
+
22
+ To build and compile the typescript sources to javascript use:
23
+ ```
24
+ npm install
25
+ npm run build
26
+ ```
27
+
28
+ ### Publishing
29
+
30
+ First build the package then run `npm publish`
31
+
32
+ ### Consuming
33
+
34
+ navigate to the folder of your consuming project and run one of the following commands.
35
+
36
+ _published:_
37
+
38
+ ```
39
+ npm install humanos-sdk-generated@1.0.0 --save
40
+ ```
41
+
42
+ _unPublished (not recommended):_
43
+
44
+ ```
45
+ npm install PATH_TO_GENERATED_PACKAGE --save
46
+ ```
@@ -0,0 +1,148 @@
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
+ import type { Configuration } from '../configuration';
17
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
+ import globalAxios from 'axios';
19
+ // Some imports not used depending on template conditions
20
+ // @ts-ignore
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
22
+ // @ts-ignore
23
+ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
+ // @ts-ignore
25
+ import type { GetCredential404Response } from '../models';
26
+ // @ts-ignore
27
+ import type { GetCredentialEntity } from '../models';
28
+ /**
29
+ * CredentialsApi - axios parameter creator
30
+ * @export
31
+ */
32
+ export const CredentialsApiAxiosParamCreator = function (configuration?: Configuration) {
33
+ return {
34
+ /**
35
+ * Retrieve a specific credential by its ID Returns the W3C Verifiable Credential data structure including cryptographic proofs Optionally includes the PDF content for document type credentials
36
+ * @summary Get Credential
37
+ * @param {string} credentialId Unique identifier of the credential. Must be a valid MongoDB ObjectId.
38
+ * @param {boolean} [includePdf] Whether to include the PDF content for document type credentials
39
+ * @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\'s date.
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ getCredential: async (credentialId: string, includePdf?: boolean, aPIVersion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
44
+ // verify required parameter 'credentialId' is not null or undefined
45
+ assertParamExists('getCredential', 'credentialId', credentialId)
46
+ const localVarPath = `/credential/{credentialId}`
47
+ .replace(`{${"credentialId"}}`, encodeURIComponent(String(credentialId)));
48
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
49
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
50
+ let baseOptions;
51
+ if (configuration) {
52
+ baseOptions = configuration.baseOptions;
53
+ }
54
+
55
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
56
+ const localVarHeaderParameter = {} as any;
57
+ const localVarQueryParameter = {} as any;
58
+
59
+ if (includePdf !== undefined) {
60
+ localVarQueryParameter['includePdf'] = includePdf;
61
+ }
62
+
63
+
64
+
65
+ if (aPIVersion != null) {
66
+ localVarHeaderParameter['API-Version'] = String(aPIVersion);
67
+ }
68
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
69
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
70
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
71
+
72
+ return {
73
+ url: toPathString(localVarUrlObj),
74
+ options: localVarRequestOptions,
75
+ };
76
+ },
77
+ }
78
+ };
79
+
80
+ /**
81
+ * CredentialsApi - functional programming interface
82
+ * @export
83
+ */
84
+ export const CredentialsApiFp = function(configuration?: Configuration) {
85
+ const localVarAxiosParamCreator = CredentialsApiAxiosParamCreator(configuration)
86
+ return {
87
+ /**
88
+ * Retrieve a specific credential by its ID Returns the W3C Verifiable Credential data structure including cryptographic proofs Optionally includes the PDF content for document type credentials
89
+ * @summary Get Credential
90
+ * @param {string} credentialId Unique identifier of the credential. Must be a valid MongoDB ObjectId.
91
+ * @param {boolean} [includePdf] Whether to include the PDF content for document type credentials
92
+ * @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\&#39;s date.
93
+ * @param {*} [options] Override http request option.
94
+ * @throws {RequiredError}
95
+ */
96
+ async getCredential(credentialId: string, includePdf?: boolean, aPIVersion?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCredentialEntity>> {
97
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCredential(credentialId, includePdf, aPIVersion, options);
98
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
99
+ const localVarOperationServerBasePath = operationServerMap['CredentialsApi.getCredential']?.[localVarOperationServerIndex]?.url;
100
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
101
+ },
102
+ }
103
+ };
104
+
105
+ /**
106
+ * CredentialsApi - factory interface
107
+ * @export
108
+ */
109
+ export const CredentialsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
110
+ const localVarFp = CredentialsApiFp(configuration)
111
+ return {
112
+ /**
113
+ * Retrieve a specific credential by its ID Returns the W3C Verifiable Credential data structure including cryptographic proofs Optionally includes the PDF content for document type credentials
114
+ * @summary Get Credential
115
+ * @param {string} credentialId Unique identifier of the credential. Must be a valid MongoDB ObjectId.
116
+ * @param {boolean} [includePdf] Whether to include the PDF content for document type credentials
117
+ * @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\&#39;s date.
118
+ * @param {*} [options] Override http request option.
119
+ * @throws {RequiredError}
120
+ */
121
+ getCredential(credentialId: string, includePdf?: boolean, aPIVersion?: string, options?: RawAxiosRequestConfig): AxiosPromise<GetCredentialEntity> {
122
+ return localVarFp.getCredential(credentialId, includePdf, aPIVersion, options).then((request) => request(axios, basePath));
123
+ },
124
+ };
125
+ };
126
+
127
+ /**
128
+ * CredentialsApi - object-oriented interface
129
+ * @export
130
+ * @class CredentialsApi
131
+ * @extends {BaseAPI}
132
+ */
133
+ export class CredentialsApi extends BaseAPI {
134
+ /**
135
+ * Retrieve a specific credential by its ID Returns the W3C Verifiable Credential data structure including cryptographic proofs Optionally includes the PDF content for document type credentials
136
+ * @summary Get Credential
137
+ * @param {string} credentialId Unique identifier of the credential. Must be a valid MongoDB ObjectId.
138
+ * @param {boolean} [includePdf] Whether to include the PDF content for document type credentials
139
+ * @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\&#39;s date.
140
+ * @param {*} [options] Override http request option.
141
+ * @throws {RequiredError}
142
+ * @memberof CredentialsApi
143
+ */
144
+ public getCredential(credentialId: string, includePdf?: boolean, aPIVersion?: string, options?: RawAxiosRequestConfig) {
145
+ return CredentialsApiFp(this.configuration).getCredential(credentialId, includePdf, aPIVersion, options).then((request) => request(this.axios, this.basePath));
146
+ }
147
+ }
148
+