@trinsic/api 2.2.0-alpha1 → 2.3.0-alpha1
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/.openapi-generator/FILES +16 -0
- package/dist/apis/EnvironmentRedirectUrisApi.d.ts +109 -0
- package/dist/apis/EnvironmentRedirectUrisApi.js +145 -0
- package/dist/apis/NetworkApi.d.ts +9 -2
- package/dist/apis/NetworkApi.js +4 -0
- package/dist/apis/SessionsApi.d.ts +8 -8
- package/dist/apis/SessionsApi.js +10 -10
- package/dist/apis/VerificationProfilesApi.d.ts +117 -0
- package/dist/apis/VerificationProfilesApi.js +183 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/EnvironmentRedirectUrisApi.d.ts +109 -0
- package/dist/esm/apis/EnvironmentRedirectUrisApi.js +141 -0
- package/dist/esm/apis/NetworkApi.d.ts +9 -2
- package/dist/esm/apis/NetworkApi.js +4 -0
- package/dist/esm/apis/SessionsApi.d.ts +8 -8
- package/dist/esm/apis/SessionsApi.js +10 -10
- package/dist/esm/apis/VerificationProfilesApi.d.ts +117 -0
- package/dist/esm/apis/VerificationProfilesApi.js +179 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/AddRedirectUriResponse.d.ts +32 -0
- package/dist/esm/models/AddRedirectUriResponse.js +43 -0
- package/dist/esm/models/ContractField.d.ts +7 -0
- package/dist/esm/models/ContractField.js +4 -0
- package/dist/esm/models/ContractIdentifierField.d.ts +45 -0
- package/dist/esm/models/ContractIdentifierField.js +52 -0
- package/dist/esm/models/CreateVerificationProfileResponse.d.ts +32 -0
- package/dist/esm/models/CreateVerificationProfileResponse.js +43 -0
- package/dist/esm/models/EnvironmentRedirectUrisAddRequest.d.ts +32 -0
- package/dist/esm/models/EnvironmentRedirectUrisAddRequest.js +43 -0
- package/dist/esm/models/FaydaProviderOutput.d.ts +35 -0
- package/dist/esm/models/FaydaProviderOutput.js +41 -0
- package/dist/esm/models/Identifier.d.ts +44 -0
- package/dist/esm/models/Identifier.js +51 -0
- package/dist/esm/models/IdentityData.d.ts +14 -0
- package/dist/esm/models/IdentityData.js +8 -0
- package/dist/esm/models/ListEnvironmentRedirectUrisResponse.d.ts +39 -0
- package/dist/esm/models/ListEnvironmentRedirectUrisResponse.js +48 -0
- package/dist/esm/models/ListVerificationProfilesResponse.d.ts +39 -0
- package/dist/esm/models/ListVerificationProfilesResponse.js +48 -0
- package/dist/esm/models/MexicoCurpProviderOutput.d.ts +44 -0
- package/dist/esm/models/MexicoCurpProviderOutput.js +41 -0
- package/dist/esm/models/ProviderContract.d.ts +7 -0
- package/dist/esm/models/ProviderContract.js +3 -0
- package/dist/esm/models/ProviderOutput.d.ts +47 -0
- package/dist/esm/models/ProviderOutput.js +48 -0
- package/dist/esm/models/RedirectUriResponse.d.ts +38 -0
- package/dist/esm/models/RedirectUriResponse.js +47 -0
- package/dist/esm/models/SpidBillingInformation.d.ts +48 -0
- package/dist/esm/models/SpidBillingInformation.js +51 -0
- package/dist/esm/models/SpidInput.d.ts +11 -0
- package/dist/esm/models/SpidInput.js +2 -0
- package/dist/esm/models/SpidProviderOutput.d.ts +62 -0
- package/dist/esm/models/SpidProviderOutput.js +50 -0
- package/dist/esm/models/VerificationProfileResponse.d.ts +62 -0
- package/dist/esm/models/VerificationProfileResponse.js +63 -0
- package/dist/esm/models/index.d.ts +14 -0
- package/dist/esm/models/index.js +14 -0
- package/dist/models/AddRedirectUriResponse.d.ts +32 -0
- package/dist/models/AddRedirectUriResponse.js +50 -0
- package/dist/models/ContractField.d.ts +7 -0
- package/dist/models/ContractField.js +4 -0
- package/dist/models/ContractIdentifierField.d.ts +45 -0
- package/dist/models/ContractIdentifierField.js +59 -0
- package/dist/models/CreateVerificationProfileResponse.d.ts +32 -0
- package/dist/models/CreateVerificationProfileResponse.js +50 -0
- package/dist/models/EnvironmentRedirectUrisAddRequest.d.ts +32 -0
- package/dist/models/EnvironmentRedirectUrisAddRequest.js +50 -0
- package/dist/models/FaydaProviderOutput.d.ts +35 -0
- package/dist/models/FaydaProviderOutput.js +48 -0
- package/dist/models/Identifier.d.ts +44 -0
- package/dist/models/Identifier.js +58 -0
- package/dist/models/IdentityData.d.ts +14 -0
- package/dist/models/IdentityData.js +8 -0
- package/dist/models/ListEnvironmentRedirectUrisResponse.d.ts +39 -0
- package/dist/models/ListEnvironmentRedirectUrisResponse.js +55 -0
- package/dist/models/ListVerificationProfilesResponse.d.ts +39 -0
- package/dist/models/ListVerificationProfilesResponse.js +55 -0
- package/dist/models/MexicoCurpProviderOutput.d.ts +44 -0
- package/dist/models/MexicoCurpProviderOutput.js +48 -0
- package/dist/models/ProviderContract.d.ts +7 -0
- package/dist/models/ProviderContract.js +3 -0
- package/dist/models/ProviderOutput.d.ts +47 -0
- package/dist/models/ProviderOutput.js +55 -0
- package/dist/models/RedirectUriResponse.d.ts +38 -0
- package/dist/models/RedirectUriResponse.js +54 -0
- package/dist/models/SpidBillingInformation.d.ts +48 -0
- package/dist/models/SpidBillingInformation.js +58 -0
- package/dist/models/SpidInput.d.ts +11 -0
- package/dist/models/SpidInput.js +2 -0
- package/dist/models/SpidProviderOutput.d.ts +62 -0
- package/dist/models/SpidProviderOutput.js +57 -0
- package/dist/models/VerificationProfileResponse.d.ts +62 -0
- package/dist/models/VerificationProfileResponse.js +70 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/package.json +1 -1
- package/src/apis/EnvironmentRedirectUrisApi.ts +235 -0
- package/src/apis/NetworkApi.ts +9 -2
- package/src/apis/SessionsApi.ts +18 -18
- package/src/apis/VerificationProfilesApi.ts +294 -0
- package/src/apis/index.ts +2 -0
- package/src/models/AddRedirectUriResponse.ts +66 -0
- package/src/models/ContractField.ts +10 -0
- package/src/models/ContractIdentifierField.ts +94 -0
- package/src/models/CreateVerificationProfileResponse.ts +66 -0
- package/src/models/EnvironmentRedirectUrisAddRequest.ts +66 -0
- package/src/models/FaydaProviderOutput.ts +68 -0
- package/src/models/Identifier.ts +84 -0
- package/src/models/IdentityData.ts +31 -0
- package/src/models/ListEnvironmentRedirectUrisResponse.ts +83 -0
- package/src/models/ListVerificationProfilesResponse.ts +83 -0
- package/src/models/MexicoCurpProviderOutput.ts +77 -0
- package/src/models/ProviderContract.ts +15 -0
- package/src/models/ProviderOutput.ts +103 -0
- package/src/models/RedirectUriResponse.ts +75 -0
- package/src/models/SpidBillingInformation.ts +88 -0
- package/src/models/SpidInput.ts +13 -0
- package/src/models/SpidProviderOutput.ts +110 -0
- package/src/models/VerificationProfileResponse.ts +111 -0
- package/src/models/index.ts +14 -0
package/src/apis/NetworkApi.ts
CHANGED
|
@@ -71,9 +71,10 @@ export interface NetworkApiInterface {
|
|
|
71
71
|
listProviderContracts(verificationProfileId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProviderContractsResponse>;
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
74
|
+
* List all identity providers available for use
|
|
75
|
+
* @summary List Providers
|
|
75
76
|
* @param {string} verificationProfileId
|
|
76
|
-
* @param {string} [health]
|
|
77
|
+
* @param {string} [health] Filter providers by health status. Valid values: \"online\", \"offline\", \"all\". Defaults to \"all\".
|
|
77
78
|
* @param {*} [options] Override http request option.
|
|
78
79
|
* @throws {RequiredError}
|
|
79
80
|
* @memberof NetworkApiInterface
|
|
@@ -81,6 +82,8 @@ export interface NetworkApiInterface {
|
|
|
81
82
|
listProvidersRaw(requestParameters: ListProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>>;
|
|
82
83
|
|
|
83
84
|
/**
|
|
85
|
+
* List all identity providers available for use
|
|
86
|
+
* List Providers
|
|
84
87
|
*/
|
|
85
88
|
listProviders(verificationProfileId: string, health?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
|
|
86
89
|
|
|
@@ -151,6 +154,8 @@ export class NetworkApi extends runtime.BaseAPI implements NetworkApiInterface {
|
|
|
151
154
|
}
|
|
152
155
|
|
|
153
156
|
/**
|
|
157
|
+
* List all identity providers available for use
|
|
158
|
+
* List Providers
|
|
154
159
|
*/
|
|
155
160
|
async listProvidersRaw(requestParameters: ListProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>> {
|
|
156
161
|
if (requestParameters['verificationProfileId'] == null) {
|
|
@@ -187,6 +192,8 @@ export class NetworkApi extends runtime.BaseAPI implements NetworkApiInterface {
|
|
|
187
192
|
}
|
|
188
193
|
|
|
189
194
|
/**
|
|
195
|
+
* List all identity providers available for use
|
|
196
|
+
* List Providers
|
|
190
197
|
*/
|
|
191
198
|
async listProviders(verificationProfileId: string, health?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse> {
|
|
192
199
|
const response = await this.listProvidersRaw({ verificationProfileId: verificationProfileId, health: health }, initOverrides);
|
package/src/apis/SessionsApi.ts
CHANGED
|
@@ -111,12 +111,12 @@ export interface RedactSessionRequest {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
export interface RefreshStepContentOperationRequest {
|
|
114
|
-
|
|
114
|
+
sessionId: string;
|
|
115
115
|
refreshStepContentRequest?: RefreshStepContentRequest;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
export interface SubmitNativeChallengeResponseOperationRequest {
|
|
119
|
-
|
|
119
|
+
sessionId: string;
|
|
120
120
|
submitNativeChallengeResponseRequest?: SubmitNativeChallengeResponseRequest;
|
|
121
121
|
}
|
|
122
122
|
|
|
@@ -262,7 +262,7 @@ export interface SessionsApiInterface {
|
|
|
262
262
|
/**
|
|
263
263
|
* Refreshes the content of a Step for a Direct Provider Session.
|
|
264
264
|
* @summary Refresh Step Content
|
|
265
|
-
* @param {string}
|
|
265
|
+
* @param {string} sessionId
|
|
266
266
|
* @param {RefreshStepContentRequest} [refreshStepContentRequest]
|
|
267
267
|
* @param {*} [options] Override http request option.
|
|
268
268
|
* @throws {RequiredError}
|
|
@@ -274,12 +274,12 @@ export interface SessionsApiInterface {
|
|
|
274
274
|
* Refreshes the content of a Step for a Direct Provider Session.
|
|
275
275
|
* Refresh Step Content
|
|
276
276
|
*/
|
|
277
|
-
refreshStepContent(
|
|
277
|
+
refreshStepContent(sessionId: string, refreshStepContentRequest?: RefreshStepContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RefreshStepContentResponse>;
|
|
278
278
|
|
|
279
279
|
/**
|
|
280
280
|
* Submits the response from a Native Challenge (e.g., mDL exchange via DC API) and processes the results.
|
|
281
281
|
* @summary Submit Native Challenge Response
|
|
282
|
-
* @param {string}
|
|
282
|
+
* @param {string} sessionId
|
|
283
283
|
* @param {SubmitNativeChallengeResponseRequest} [submitNativeChallengeResponseRequest]
|
|
284
284
|
* @param {*} [options] Override http request option.
|
|
285
285
|
* @throws {RequiredError}
|
|
@@ -291,7 +291,7 @@ export interface SessionsApiInterface {
|
|
|
291
291
|
* Submits the response from a Native Challenge (e.g., mDL exchange via DC API) and processes the results.
|
|
292
292
|
* Submit Native Challenge Response
|
|
293
293
|
*/
|
|
294
|
-
submitNativeChallengeResponse(
|
|
294
|
+
submitNativeChallengeResponse(sessionId: string, submitNativeChallengeResponseRequest?: SubmitNativeChallengeResponseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubmitNativeChallengeResponseResponse>;
|
|
295
295
|
|
|
296
296
|
}
|
|
297
297
|
|
|
@@ -653,10 +653,10 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
|
|
|
653
653
|
* Refresh Step Content
|
|
654
654
|
*/
|
|
655
655
|
async refreshStepContentRaw(requestParameters: RefreshStepContentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RefreshStepContentResponse>> {
|
|
656
|
-
if (requestParameters['
|
|
656
|
+
if (requestParameters['sessionId'] == null) {
|
|
657
657
|
throw new runtime.RequiredError(
|
|
658
|
-
'
|
|
659
|
-
'Required parameter "
|
|
658
|
+
'sessionId',
|
|
659
|
+
'Required parameter "sessionId" was null or undefined when calling refreshStepContent().'
|
|
660
660
|
);
|
|
661
661
|
}
|
|
662
662
|
|
|
@@ -675,7 +675,7 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
|
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
677
|
const response = await this.request({
|
|
678
|
-
path: `/api/v1/sessions/{
|
|
678
|
+
path: `/api/v1/sessions/{sessionId}/step/refresh`.replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
|
|
679
679
|
method: 'POST',
|
|
680
680
|
headers: headerParameters,
|
|
681
681
|
query: queryParameters,
|
|
@@ -689,8 +689,8 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
|
|
|
689
689
|
* Refreshes the content of a Step for a Direct Provider Session.
|
|
690
690
|
* Refresh Step Content
|
|
691
691
|
*/
|
|
692
|
-
async refreshStepContent(
|
|
693
|
-
const response = await this.refreshStepContentRaw({
|
|
692
|
+
async refreshStepContent(sessionId: string, refreshStepContentRequest?: RefreshStepContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RefreshStepContentResponse> {
|
|
693
|
+
const response = await this.refreshStepContentRaw({ sessionId: sessionId, refreshStepContentRequest: refreshStepContentRequest }, initOverrides);
|
|
694
694
|
return await response.value();
|
|
695
695
|
}
|
|
696
696
|
|
|
@@ -699,10 +699,10 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
|
|
|
699
699
|
* Submit Native Challenge Response
|
|
700
700
|
*/
|
|
701
701
|
async submitNativeChallengeResponseRaw(requestParameters: SubmitNativeChallengeResponseOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubmitNativeChallengeResponseResponse>> {
|
|
702
|
-
if (requestParameters['
|
|
702
|
+
if (requestParameters['sessionId'] == null) {
|
|
703
703
|
throw new runtime.RequiredError(
|
|
704
|
-
'
|
|
705
|
-
'Required parameter "
|
|
704
|
+
'sessionId',
|
|
705
|
+
'Required parameter "sessionId" was null or undefined when calling submitNativeChallengeResponse().'
|
|
706
706
|
);
|
|
707
707
|
}
|
|
708
708
|
|
|
@@ -721,7 +721,7 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
|
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
723
|
const response = await this.request({
|
|
724
|
-
path: `/api/v1/sessions/{
|
|
724
|
+
path: `/api/v1/sessions/{sessionId}/native-challenge/submit`.replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
|
|
725
725
|
method: 'POST',
|
|
726
726
|
headers: headerParameters,
|
|
727
727
|
query: queryParameters,
|
|
@@ -735,8 +735,8 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
|
|
|
735
735
|
* Submits the response from a Native Challenge (e.g., mDL exchange via DC API) and processes the results.
|
|
736
736
|
* Submit Native Challenge Response
|
|
737
737
|
*/
|
|
738
|
-
async submitNativeChallengeResponse(
|
|
739
|
-
const response = await this.submitNativeChallengeResponseRaw({
|
|
738
|
+
async submitNativeChallengeResponse(sessionId: string, submitNativeChallengeResponseRequest?: SubmitNativeChallengeResponseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubmitNativeChallengeResponseResponse> {
|
|
739
|
+
const response = await this.submitNativeChallengeResponseRaw({ sessionId: sessionId, submitNativeChallengeResponseRequest: submitNativeChallengeResponseRequest }, initOverrides);
|
|
740
740
|
return await response.value();
|
|
741
741
|
}
|
|
742
742
|
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
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 * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
CreateVerificationProfileResponse,
|
|
19
|
+
ListVerificationProfilesResponse,
|
|
20
|
+
ProblemDetails,
|
|
21
|
+
VerificationProfileResponse,
|
|
22
|
+
} from '../models/index';
|
|
23
|
+
import {
|
|
24
|
+
CreateVerificationProfileResponseFromJSON,
|
|
25
|
+
CreateVerificationProfileResponseToJSON,
|
|
26
|
+
ListVerificationProfilesResponseFromJSON,
|
|
27
|
+
ListVerificationProfilesResponseToJSON,
|
|
28
|
+
ProblemDetailsFromJSON,
|
|
29
|
+
ProblemDetailsToJSON,
|
|
30
|
+
VerificationProfileResponseFromJSON,
|
|
31
|
+
VerificationProfileResponseToJSON,
|
|
32
|
+
} from '../models/index';
|
|
33
|
+
|
|
34
|
+
export interface CreateVerificationProfileRequest {
|
|
35
|
+
alias: string;
|
|
36
|
+
brandName: string;
|
|
37
|
+
primaryColor?: string;
|
|
38
|
+
providers?: Array<string>;
|
|
39
|
+
logo?: Blob;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface GetVerificationProfileByIdRequest {
|
|
43
|
+
id: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface ListVerificationProfilesRequest {
|
|
47
|
+
page?: number;
|
|
48
|
+
pageSize?: number;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* VerificationProfilesApi - interface
|
|
53
|
+
*
|
|
54
|
+
* @export
|
|
55
|
+
* @interface VerificationProfilesApiInterface
|
|
56
|
+
*/
|
|
57
|
+
export interface VerificationProfilesApiInterface {
|
|
58
|
+
/**
|
|
59
|
+
* Creates a new verification profile within your organization.
|
|
60
|
+
* @summary Create Verification Profile
|
|
61
|
+
* @param {string} alias An alias of the verification profile shown to developers and administrators.
|
|
62
|
+
* @param {string} brandName The brand name of the verification profile shown to end-users.
|
|
63
|
+
* @param {string} [primaryColor] The primary color of the verification profile. Must be a 6-character hex string prefixed with a \\\'#\\\' character. Example: #000000
|
|
64
|
+
* @param {Array<string>} [providers] The list of providers you\\\'d like to select for this profile. We will not currently enable any providers.
|
|
65
|
+
* @param {Blob} [logo] The logo of the verification profile.
|
|
66
|
+
* @param {*} [options] Override http request option.
|
|
67
|
+
* @throws {RequiredError}
|
|
68
|
+
* @memberof VerificationProfilesApiInterface
|
|
69
|
+
*/
|
|
70
|
+
createVerificationProfileRaw(requestParameters: CreateVerificationProfileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateVerificationProfileResponse>>;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Creates a new verification profile within your organization.
|
|
74
|
+
* Create Verification Profile
|
|
75
|
+
*/
|
|
76
|
+
createVerificationProfile(alias: string, brandName: string, primaryColor?: string, providers?: Array<string>, logo?: Blob, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateVerificationProfileResponse>;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Gets a specific verification profile by ID.
|
|
80
|
+
* @summary Get Verification Profile
|
|
81
|
+
* @param {string} id
|
|
82
|
+
* @param {*} [options] Override http request option.
|
|
83
|
+
* @throws {RequiredError}
|
|
84
|
+
* @memberof VerificationProfilesApiInterface
|
|
85
|
+
*/
|
|
86
|
+
getVerificationProfileByIdRaw(requestParameters: GetVerificationProfileByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VerificationProfileResponse>>;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Gets a specific verification profile by ID.
|
|
90
|
+
* Get Verification Profile
|
|
91
|
+
*/
|
|
92
|
+
getVerificationProfileById(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VerificationProfileResponse>;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* List the verification profiles for the current organization and environment.
|
|
96
|
+
* @summary List Verification Profiles
|
|
97
|
+
* @param {number} [page]
|
|
98
|
+
* @param {number} [pageSize] Size of the list to be returned. Accepted range from 1 to 100
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
* @memberof VerificationProfilesApiInterface
|
|
102
|
+
*/
|
|
103
|
+
listVerificationProfilesRaw(requestParameters: ListVerificationProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListVerificationProfilesResponse>>;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* List the verification profiles for the current organization and environment.
|
|
107
|
+
* List Verification Profiles
|
|
108
|
+
*/
|
|
109
|
+
listVerificationProfiles(page?: number, pageSize?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListVerificationProfilesResponse>;
|
|
110
|
+
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
*/
|
|
116
|
+
export class VerificationProfilesApi extends runtime.BaseAPI implements VerificationProfilesApiInterface {
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Creates a new verification profile within your organization.
|
|
120
|
+
* Create Verification Profile
|
|
121
|
+
*/
|
|
122
|
+
async createVerificationProfileRaw(requestParameters: CreateVerificationProfileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateVerificationProfileResponse>> {
|
|
123
|
+
if (requestParameters['alias'] == null) {
|
|
124
|
+
throw new runtime.RequiredError(
|
|
125
|
+
'alias',
|
|
126
|
+
'Required parameter "alias" was null or undefined when calling createVerificationProfile().'
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (requestParameters['brandName'] == null) {
|
|
131
|
+
throw new runtime.RequiredError(
|
|
132
|
+
'brandName',
|
|
133
|
+
'Required parameter "brandName" was null or undefined when calling createVerificationProfile().'
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
const queryParameters: any = {};
|
|
138
|
+
|
|
139
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
140
|
+
|
|
141
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
142
|
+
const token = this.configuration.accessToken;
|
|
143
|
+
const tokenString = await token("Bearer", []);
|
|
144
|
+
|
|
145
|
+
if (tokenString) {
|
|
146
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
const consumes: runtime.Consume[] = [
|
|
150
|
+
{ contentType: 'multipart/form-data' },
|
|
151
|
+
];
|
|
152
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
153
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
154
|
+
|
|
155
|
+
let formParams: { append(param: string, value: any): any };
|
|
156
|
+
let useForm = false;
|
|
157
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
158
|
+
useForm = canConsumeForm;
|
|
159
|
+
if (useForm) {
|
|
160
|
+
formParams = new FormData();
|
|
161
|
+
} else {
|
|
162
|
+
formParams = new URLSearchParams();
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
if (requestParameters['alias'] != null) {
|
|
166
|
+
formParams.append('Alias', requestParameters['alias'] as any);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
if (requestParameters['brandName'] != null) {
|
|
170
|
+
formParams.append('BrandName', requestParameters['brandName'] as any);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
if (requestParameters['primaryColor'] != null) {
|
|
174
|
+
formParams.append('PrimaryColor', requestParameters['primaryColor'] as any);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if (requestParameters['providers'] != null) {
|
|
178
|
+
requestParameters['providers'].forEach((element) => {
|
|
179
|
+
formParams.append('Providers', element as any);
|
|
180
|
+
})
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
if (requestParameters['logo'] != null) {
|
|
184
|
+
formParams.append('Logo', requestParameters['logo'] as any);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
const response = await this.request({
|
|
188
|
+
path: `/api/valpha/verification-profiles`,
|
|
189
|
+
method: 'POST',
|
|
190
|
+
headers: headerParameters,
|
|
191
|
+
query: queryParameters,
|
|
192
|
+
body: formParams,
|
|
193
|
+
}, initOverrides);
|
|
194
|
+
|
|
195
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CreateVerificationProfileResponseFromJSON(jsonValue));
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Creates a new verification profile within your organization.
|
|
200
|
+
* Create Verification Profile
|
|
201
|
+
*/
|
|
202
|
+
async createVerificationProfile(alias: string, brandName: string, primaryColor?: string, providers?: Array<string>, logo?: Blob, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateVerificationProfileResponse> {
|
|
203
|
+
const response = await this.createVerificationProfileRaw({ alias: alias, brandName: brandName, primaryColor: primaryColor, providers: providers, logo: logo }, initOverrides);
|
|
204
|
+
return await response.value();
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Gets a specific verification profile by ID.
|
|
209
|
+
* Get Verification Profile
|
|
210
|
+
*/
|
|
211
|
+
async getVerificationProfileByIdRaw(requestParameters: GetVerificationProfileByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VerificationProfileResponse>> {
|
|
212
|
+
if (requestParameters['id'] == null) {
|
|
213
|
+
throw new runtime.RequiredError(
|
|
214
|
+
'id',
|
|
215
|
+
'Required parameter "id" was null or undefined when calling getVerificationProfileById().'
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
const queryParameters: any = {};
|
|
220
|
+
|
|
221
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
222
|
+
|
|
223
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
224
|
+
const token = this.configuration.accessToken;
|
|
225
|
+
const tokenString = await token("Bearer", []);
|
|
226
|
+
|
|
227
|
+
if (tokenString) {
|
|
228
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
const response = await this.request({
|
|
232
|
+
path: `/api/valpha/verification-profiles/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
233
|
+
method: 'GET',
|
|
234
|
+
headers: headerParameters,
|
|
235
|
+
query: queryParameters,
|
|
236
|
+
}, initOverrides);
|
|
237
|
+
|
|
238
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VerificationProfileResponseFromJSON(jsonValue));
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Gets a specific verification profile by ID.
|
|
243
|
+
* Get Verification Profile
|
|
244
|
+
*/
|
|
245
|
+
async getVerificationProfileById(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VerificationProfileResponse> {
|
|
246
|
+
const response = await this.getVerificationProfileByIdRaw({ id: id }, initOverrides);
|
|
247
|
+
return await response.value();
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* List the verification profiles for the current organization and environment.
|
|
252
|
+
* List Verification Profiles
|
|
253
|
+
*/
|
|
254
|
+
async listVerificationProfilesRaw(requestParameters: ListVerificationProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListVerificationProfilesResponse>> {
|
|
255
|
+
const queryParameters: any = {};
|
|
256
|
+
|
|
257
|
+
if (requestParameters['page'] != null) {
|
|
258
|
+
queryParameters['page'] = requestParameters['page'];
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
if (requestParameters['pageSize'] != null) {
|
|
262
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
266
|
+
|
|
267
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
268
|
+
const token = this.configuration.accessToken;
|
|
269
|
+
const tokenString = await token("Bearer", []);
|
|
270
|
+
|
|
271
|
+
if (tokenString) {
|
|
272
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
const response = await this.request({
|
|
276
|
+
path: `/api/valpha/verification-profiles`,
|
|
277
|
+
method: 'GET',
|
|
278
|
+
headers: headerParameters,
|
|
279
|
+
query: queryParameters,
|
|
280
|
+
}, initOverrides);
|
|
281
|
+
|
|
282
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListVerificationProfilesResponseFromJSON(jsonValue));
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* List the verification profiles for the current organization and environment.
|
|
287
|
+
* List Verification Profiles
|
|
288
|
+
*/
|
|
289
|
+
async listVerificationProfiles(page?: number, pageSize?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListVerificationProfilesResponse> {
|
|
290
|
+
const response = await this.listVerificationProfilesRaw({ page: page, pageSize: pageSize }, initOverrides);
|
|
291
|
+
return await response.value();
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AddRedirectUriResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface AddRedirectUriResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AddRedirectUriResponse
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AddRedirectUriResponse interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfAddRedirectUriResponse(value: object): value is AddRedirectUriResponse {
|
|
34
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function AddRedirectUriResponseFromJSON(json: any): AddRedirectUriResponse {
|
|
39
|
+
return AddRedirectUriResponseFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function AddRedirectUriResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddRedirectUriResponse {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'id': json['id'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AddRedirectUriResponseToJSON(json: any): AddRedirectUriResponse {
|
|
53
|
+
return AddRedirectUriResponseToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AddRedirectUriResponseToJSONTyped(value?: AddRedirectUriResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'id': value['id'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -31,8 +31,15 @@ export interface ContractField {
|
|
|
31
31
|
* The name of the field as it appears in verification results.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof ContractField
|
|
34
|
+
* @deprecated
|
|
34
35
|
*/
|
|
35
36
|
name: string;
|
|
37
|
+
/**
|
|
38
|
+
* The scope of the field as it appears in verification results.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ContractField
|
|
41
|
+
*/
|
|
42
|
+
scope: string;
|
|
36
43
|
/**
|
|
37
44
|
* Indicates when this field will be present in verification results.
|
|
38
45
|
* @type {FieldAvailability}
|
|
@@ -48,6 +55,7 @@ export interface ContractField {
|
|
|
48
55
|
*/
|
|
49
56
|
export function instanceOfContractField(value: object): value is ContractField {
|
|
50
57
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
58
|
+
if (!('scope' in value) || value['scope'] === undefined) return false;
|
|
51
59
|
if (!('outputted' in value) || value['outputted'] === undefined) return false;
|
|
52
60
|
return true;
|
|
53
61
|
}
|
|
@@ -63,6 +71,7 @@ export function ContractFieldFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
63
71
|
return {
|
|
64
72
|
|
|
65
73
|
'name': json['name'],
|
|
74
|
+
'scope': json['scope'],
|
|
66
75
|
'outputted': FieldAvailabilityFromJSON(json['outputted']),
|
|
67
76
|
};
|
|
68
77
|
}
|
|
@@ -79,6 +88,7 @@ export function ContractFieldToJSONTyped(value?: ContractField | null, ignoreDis
|
|
|
79
88
|
return {
|
|
80
89
|
|
|
81
90
|
'name': value['name'],
|
|
91
|
+
'scope': value['scope'],
|
|
82
92
|
'outputted': FieldAvailabilityToJSON(value['outputted']),
|
|
83
93
|
};
|
|
84
94
|
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { FieldAvailability } from './FieldAvailability';
|
|
17
|
+
import {
|
|
18
|
+
FieldAvailabilityFromJSON,
|
|
19
|
+
FieldAvailabilityFromJSONTyped,
|
|
20
|
+
FieldAvailabilityToJSON,
|
|
21
|
+
FieldAvailabilityToJSONTyped,
|
|
22
|
+
} from './FieldAvailability';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Information about an identifier a Provider returns in verification results.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ContractIdentifierField
|
|
28
|
+
*/
|
|
29
|
+
export interface ContractIdentifierField {
|
|
30
|
+
/**
|
|
31
|
+
* The scope of the identifier as it appears in verification results.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ContractIdentifierField
|
|
34
|
+
*/
|
|
35
|
+
scope: string;
|
|
36
|
+
/**
|
|
37
|
+
* Indicates when this field will be present in verification results.
|
|
38
|
+
* @type {FieldAvailability}
|
|
39
|
+
* @memberof ContractIdentifierField
|
|
40
|
+
*/
|
|
41
|
+
outputted: FieldAvailability;
|
|
42
|
+
/**
|
|
43
|
+
* A human-readable description of the identifier, written by Trinsic.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ContractIdentifierField
|
|
46
|
+
*/
|
|
47
|
+
description: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the ContractIdentifierField interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfContractIdentifierField(value: object): value is ContractIdentifierField {
|
|
56
|
+
if (!('scope' in value) || value['scope'] === undefined) return false;
|
|
57
|
+
if (!('outputted' in value) || value['outputted'] === undefined) return false;
|
|
58
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ContractIdentifierFieldFromJSON(json: any): ContractIdentifierField {
|
|
63
|
+
return ContractIdentifierFieldFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ContractIdentifierFieldFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContractIdentifierField {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'scope': json['scope'],
|
|
73
|
+
'outputted': FieldAvailabilityFromJSON(json['outputted']),
|
|
74
|
+
'description': json['description'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ContractIdentifierFieldToJSON(json: any): ContractIdentifierField {
|
|
79
|
+
return ContractIdentifierFieldToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function ContractIdentifierFieldToJSONTyped(value?: ContractIdentifierField | null, ignoreDiscriminator: boolean = false): any {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'scope': value['scope'],
|
|
90
|
+
'outputted': FieldAvailabilityToJSON(value['outputted']),
|
|
91
|
+
'description': value['description'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|