@dynamic-labs/sdk-api 0.0.274 → 0.0.276
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/package.json +1 -1
- package/src/apis/SDKApi.cjs +68 -0
- package/src/apis/SDKApi.d.ts +26 -1
- package/src/apis/SDKApi.js +68 -0
- package/src/index.cjs +8 -0
- package/src/index.js +2 -0
- package/src/models/OauthResultRequest.cjs +43 -0
- package/src/models/OauthResultRequest.d.ts +27 -0
- package/src/models/OauthResultRequest.js +37 -0
- package/src/models/OauthResultResponse.cjs +35 -0
- package/src/models/OauthResultResponse.d.ts +33 -0
- package/src/models/OauthResultResponse.js +29 -0
- package/src/models/UnprocessableEntityErrorCode.cjs +1 -0
- package/src/models/UnprocessableEntityErrorCode.d.ts +2 -1
- package/src/models/UnprocessableEntityErrorCode.js +1 -0
- package/src/models/index.d.ts +2 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -33,6 +33,8 @@ require('../models/NextViewEnum.cjs');
|
|
|
33
33
|
var NonceResponse = require('../models/NonceResponse.cjs');
|
|
34
34
|
var OauthProviderLoginUrl = require('../models/OauthProviderLoginUrl.cjs');
|
|
35
35
|
var OauthRequest = require('../models/OauthRequest.cjs');
|
|
36
|
+
var OauthResultRequest = require('../models/OauthResultRequest.cjs');
|
|
37
|
+
var OauthResultResponse = require('../models/OauthResultResponse.cjs');
|
|
36
38
|
require('../models/WhenToImplementEnum.cjs');
|
|
37
39
|
var PrefetchRequest = require('../models/PrefetchRequest.cjs');
|
|
38
40
|
require('../models/SignInProviderEnum.cjs');
|
|
@@ -777,6 +779,72 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
777
779
|
yield this.oauthRedirectOptionsRaw(requestParameters, initOverrides);
|
|
778
780
|
});
|
|
779
781
|
}
|
|
782
|
+
/**
|
|
783
|
+
* Returns the authorization code or error retuned by oauth provider
|
|
784
|
+
*/
|
|
785
|
+
oauthResultRaw(requestParameters, initOverrides) {
|
|
786
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
787
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
788
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling oauthResult.');
|
|
789
|
+
}
|
|
790
|
+
if (requestParameters.providerType === null || requestParameters.providerType === undefined) {
|
|
791
|
+
throw new runtime.RequiredError('providerType', 'Required parameter requestParameters.providerType was null or undefined when calling oauthResult.');
|
|
792
|
+
}
|
|
793
|
+
if (requestParameters.oauthResultRequest === null || requestParameters.oauthResultRequest === undefined) {
|
|
794
|
+
throw new runtime.RequiredError('oauthResultRequest', 'Required parameter requestParameters.oauthResultRequest was null or undefined when calling oauthResult.');
|
|
795
|
+
}
|
|
796
|
+
const queryParameters = {};
|
|
797
|
+
const headerParameters = {};
|
|
798
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
799
|
+
const response = yield this.request({
|
|
800
|
+
path: `/sdk/{environmentId}/providers/{providerType}/oauthResult`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"providerType"}}`, encodeURIComponent(String(requestParameters.providerType))),
|
|
801
|
+
method: 'POST',
|
|
802
|
+
headers: headerParameters,
|
|
803
|
+
query: queryParameters,
|
|
804
|
+
body: OauthResultRequest.OauthResultRequestToJSON(requestParameters.oauthResultRequest),
|
|
805
|
+
}, initOverrides);
|
|
806
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OauthResultResponse.OauthResultResponseFromJSON(jsonValue));
|
|
807
|
+
});
|
|
808
|
+
}
|
|
809
|
+
/**
|
|
810
|
+
* Returns the authorization code or error retuned by oauth provider
|
|
811
|
+
*/
|
|
812
|
+
oauthResult(requestParameters, initOverrides) {
|
|
813
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
814
|
+
const response = yield this.oauthResultRaw(requestParameters, initOverrides);
|
|
815
|
+
return yield response.value();
|
|
816
|
+
});
|
|
817
|
+
}
|
|
818
|
+
/**
|
|
819
|
+
* Options call for this endpoint
|
|
820
|
+
*/
|
|
821
|
+
oauthResultOptionsRaw(requestParameters, initOverrides) {
|
|
822
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
823
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
824
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling oauthResultOptions.');
|
|
825
|
+
}
|
|
826
|
+
if (requestParameters.providerType === null || requestParameters.providerType === undefined) {
|
|
827
|
+
throw new runtime.RequiredError('providerType', 'Required parameter requestParameters.providerType was null or undefined when calling oauthResultOptions.');
|
|
828
|
+
}
|
|
829
|
+
const queryParameters = {};
|
|
830
|
+
const headerParameters = {};
|
|
831
|
+
const response = yield this.request({
|
|
832
|
+
path: `/sdk/{environmentId}/providers/{providerType}/oauthResult`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"providerType"}}`, encodeURIComponent(String(requestParameters.providerType))),
|
|
833
|
+
method: 'OPTIONS',
|
|
834
|
+
headers: headerParameters,
|
|
835
|
+
query: queryParameters,
|
|
836
|
+
}, initOverrides);
|
|
837
|
+
return new runtime.VoidApiResponse(response);
|
|
838
|
+
});
|
|
839
|
+
}
|
|
840
|
+
/**
|
|
841
|
+
* Options call for this endpoint
|
|
842
|
+
*/
|
|
843
|
+
oauthResultOptions(requestParameters, initOverrides) {
|
|
844
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
845
|
+
yield this.oauthResultOptionsRaw(requestParameters, initOverrides);
|
|
846
|
+
});
|
|
847
|
+
}
|
|
780
848
|
/**
|
|
781
849
|
* Standard OAuth SignIn callback to exchange temproary code for oauth access and return a valid Dynamic JWT and user
|
|
782
850
|
* Oauth provider SignIn endpoint
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { ConnectRequest, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, JwksResponse, NetworkConfigurationResponse, NonceResponse, OauthProviderLoginUrl, OauthRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, SdkSettingsRequest, SupportedOnrampsResponse, UpdateSelfResponse, UserFields, VerifyRequest, VerifyResponse, VerifyUnlinkRequest } from '../models';
|
|
13
|
+
import { ConnectRequest, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, JwksResponse, NetworkConfigurationResponse, NonceResponse, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, SdkSettingsRequest, SupportedOnrampsResponse, UpdateSelfResponse, UserFields, VerifyRequest, VerifyResponse, VerifyUnlinkRequest } from '../models';
|
|
14
14
|
export interface CreateEmailVerificationRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
emailVerificationCreateRequest: EmailVerificationCreateRequest;
|
|
@@ -99,6 +99,15 @@ export interface OauthRedirectOptionsRequest {
|
|
|
99
99
|
environmentId: string;
|
|
100
100
|
providerType: ProviderEnum;
|
|
101
101
|
}
|
|
102
|
+
export interface OauthResultOperationRequest {
|
|
103
|
+
environmentId: string;
|
|
104
|
+
providerType: ProviderEnum;
|
|
105
|
+
oauthResultRequest: OauthResultRequest;
|
|
106
|
+
}
|
|
107
|
+
export interface OauthResultOptionsRequest {
|
|
108
|
+
environmentId: string;
|
|
109
|
+
providerType: ProviderEnum;
|
|
110
|
+
}
|
|
102
111
|
export interface OauthSignInRequest {
|
|
103
112
|
environmentId: string;
|
|
104
113
|
providerType: ProviderEnum;
|
|
@@ -404,6 +413,22 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
404
413
|
* Options call for this endpoint
|
|
405
414
|
*/
|
|
406
415
|
oauthRedirectOptions(requestParameters: OauthRedirectOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
416
|
+
/**
|
|
417
|
+
* Returns the authorization code or error retuned by oauth provider
|
|
418
|
+
*/
|
|
419
|
+
oauthResultRaw(requestParameters: OauthResultOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<OauthResultResponse>>;
|
|
420
|
+
/**
|
|
421
|
+
* Returns the authorization code or error retuned by oauth provider
|
|
422
|
+
*/
|
|
423
|
+
oauthResult(requestParameters: OauthResultOperationRequest, initOverrides?: RequestInit): Promise<OauthResultResponse>;
|
|
424
|
+
/**
|
|
425
|
+
* Options call for this endpoint
|
|
426
|
+
*/
|
|
427
|
+
oauthResultOptionsRaw(requestParameters: OauthResultOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
428
|
+
/**
|
|
429
|
+
* Options call for this endpoint
|
|
430
|
+
*/
|
|
431
|
+
oauthResultOptions(requestParameters: OauthResultOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
407
432
|
/**
|
|
408
433
|
* Standard OAuth SignIn callback to exchange temproary code for oauth access and return a valid Dynamic JWT and user
|
|
409
434
|
* Oauth provider SignIn endpoint
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -29,6 +29,8 @@ import '../models/NextViewEnum.js';
|
|
|
29
29
|
import { NonceResponseFromJSON } from '../models/NonceResponse.js';
|
|
30
30
|
import { OauthProviderLoginUrlFromJSON } from '../models/OauthProviderLoginUrl.js';
|
|
31
31
|
import { OauthRequestToJSON } from '../models/OauthRequest.js';
|
|
32
|
+
import { OauthResultRequestToJSON } from '../models/OauthResultRequest.js';
|
|
33
|
+
import { OauthResultResponseFromJSON } from '../models/OauthResultResponse.js';
|
|
32
34
|
import '../models/WhenToImplementEnum.js';
|
|
33
35
|
import { PrefetchRequestToJSON } from '../models/PrefetchRequest.js';
|
|
34
36
|
import '../models/SignInProviderEnum.js';
|
|
@@ -773,6 +775,72 @@ class SDKApi extends BaseAPI {
|
|
|
773
775
|
yield this.oauthRedirectOptionsRaw(requestParameters, initOverrides);
|
|
774
776
|
});
|
|
775
777
|
}
|
|
778
|
+
/**
|
|
779
|
+
* Returns the authorization code or error retuned by oauth provider
|
|
780
|
+
*/
|
|
781
|
+
oauthResultRaw(requestParameters, initOverrides) {
|
|
782
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
783
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
784
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling oauthResult.');
|
|
785
|
+
}
|
|
786
|
+
if (requestParameters.providerType === null || requestParameters.providerType === undefined) {
|
|
787
|
+
throw new RequiredError('providerType', 'Required parameter requestParameters.providerType was null or undefined when calling oauthResult.');
|
|
788
|
+
}
|
|
789
|
+
if (requestParameters.oauthResultRequest === null || requestParameters.oauthResultRequest === undefined) {
|
|
790
|
+
throw new RequiredError('oauthResultRequest', 'Required parameter requestParameters.oauthResultRequest was null or undefined when calling oauthResult.');
|
|
791
|
+
}
|
|
792
|
+
const queryParameters = {};
|
|
793
|
+
const headerParameters = {};
|
|
794
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
795
|
+
const response = yield this.request({
|
|
796
|
+
path: `/sdk/{environmentId}/providers/{providerType}/oauthResult`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"providerType"}}`, encodeURIComponent(String(requestParameters.providerType))),
|
|
797
|
+
method: 'POST',
|
|
798
|
+
headers: headerParameters,
|
|
799
|
+
query: queryParameters,
|
|
800
|
+
body: OauthResultRequestToJSON(requestParameters.oauthResultRequest),
|
|
801
|
+
}, initOverrides);
|
|
802
|
+
return new JSONApiResponse(response, (jsonValue) => OauthResultResponseFromJSON(jsonValue));
|
|
803
|
+
});
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
* Returns the authorization code or error retuned by oauth provider
|
|
807
|
+
*/
|
|
808
|
+
oauthResult(requestParameters, initOverrides) {
|
|
809
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
810
|
+
const response = yield this.oauthResultRaw(requestParameters, initOverrides);
|
|
811
|
+
return yield response.value();
|
|
812
|
+
});
|
|
813
|
+
}
|
|
814
|
+
/**
|
|
815
|
+
* Options call for this endpoint
|
|
816
|
+
*/
|
|
817
|
+
oauthResultOptionsRaw(requestParameters, initOverrides) {
|
|
818
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
819
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
820
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling oauthResultOptions.');
|
|
821
|
+
}
|
|
822
|
+
if (requestParameters.providerType === null || requestParameters.providerType === undefined) {
|
|
823
|
+
throw new RequiredError('providerType', 'Required parameter requestParameters.providerType was null or undefined when calling oauthResultOptions.');
|
|
824
|
+
}
|
|
825
|
+
const queryParameters = {};
|
|
826
|
+
const headerParameters = {};
|
|
827
|
+
const response = yield this.request({
|
|
828
|
+
path: `/sdk/{environmentId}/providers/{providerType}/oauthResult`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"providerType"}}`, encodeURIComponent(String(requestParameters.providerType))),
|
|
829
|
+
method: 'OPTIONS',
|
|
830
|
+
headers: headerParameters,
|
|
831
|
+
query: queryParameters,
|
|
832
|
+
}, initOverrides);
|
|
833
|
+
return new VoidApiResponse(response);
|
|
834
|
+
});
|
|
835
|
+
}
|
|
836
|
+
/**
|
|
837
|
+
* Options call for this endpoint
|
|
838
|
+
*/
|
|
839
|
+
oauthResultOptions(requestParameters, initOverrides) {
|
|
840
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
841
|
+
yield this.oauthResultOptionsRaw(requestParameters, initOverrides);
|
|
842
|
+
});
|
|
843
|
+
}
|
|
776
844
|
/**
|
|
777
845
|
* Standard OAuth SignIn callback to exchange temproary code for oauth access and return a valid Dynamic JWT and user
|
|
778
846
|
* Oauth provider SignIn endpoint
|
package/src/index.cjs
CHANGED
|
@@ -108,6 +108,8 @@ var NonceResponse = require('./models/NonceResponse.cjs');
|
|
|
108
108
|
var OauthProviderLoginUrl = require('./models/OauthProviderLoginUrl.cjs');
|
|
109
109
|
var OauthProviderRequest = require('./models/OauthProviderRequest.cjs');
|
|
110
110
|
var OauthRequest = require('./models/OauthRequest.cjs');
|
|
111
|
+
var OauthResultRequest = require('./models/OauthResultRequest.cjs');
|
|
112
|
+
var OauthResultResponse = require('./models/OauthResultResponse.cjs');
|
|
111
113
|
var OnrampConfiguration = require('./models/OnrampConfiguration.cjs');
|
|
112
114
|
var Organization = require('./models/Organization.cjs');
|
|
113
115
|
var OrganizationFields = require('./models/OrganizationFields.cjs');
|
|
@@ -542,6 +544,12 @@ exports.OauthProviderRequestToJSON = OauthProviderRequest.OauthProviderRequestTo
|
|
|
542
544
|
exports.OauthRequestFromJSON = OauthRequest.OauthRequestFromJSON;
|
|
543
545
|
exports.OauthRequestFromJSONTyped = OauthRequest.OauthRequestFromJSONTyped;
|
|
544
546
|
exports.OauthRequestToJSON = OauthRequest.OauthRequestToJSON;
|
|
547
|
+
exports.OauthResultRequestFromJSON = OauthResultRequest.OauthResultRequestFromJSON;
|
|
548
|
+
exports.OauthResultRequestFromJSONTyped = OauthResultRequest.OauthResultRequestFromJSONTyped;
|
|
549
|
+
exports.OauthResultRequestToJSON = OauthResultRequest.OauthResultRequestToJSON;
|
|
550
|
+
exports.OauthResultResponseFromJSON = OauthResultResponse.OauthResultResponseFromJSON;
|
|
551
|
+
exports.OauthResultResponseFromJSONTyped = OauthResultResponse.OauthResultResponseFromJSONTyped;
|
|
552
|
+
exports.OauthResultResponseToJSON = OauthResultResponse.OauthResultResponseToJSON;
|
|
545
553
|
exports.OnrampConfigurationFromJSON = OnrampConfiguration.OnrampConfigurationFromJSON;
|
|
546
554
|
exports.OnrampConfigurationFromJSONTyped = OnrampConfiguration.OnrampConfigurationFromJSONTyped;
|
|
547
555
|
exports.OnrampConfigurationToJSON = OnrampConfiguration.OnrampConfigurationToJSON;
|
package/src/index.js
CHANGED
|
@@ -104,6 +104,8 @@ export { NonceResponseFromJSON, NonceResponseFromJSONTyped, NonceResponseToJSON
|
|
|
104
104
|
export { OauthProviderLoginUrlFromJSON, OauthProviderLoginUrlFromJSONTyped, OauthProviderLoginUrlToJSON } from './models/OauthProviderLoginUrl.js';
|
|
105
105
|
export { OauthProviderRequestFromJSON, OauthProviderRequestFromJSONTyped, OauthProviderRequestToJSON } from './models/OauthProviderRequest.js';
|
|
106
106
|
export { OauthRequestFromJSON, OauthRequestFromJSONTyped, OauthRequestToJSON } from './models/OauthRequest.js';
|
|
107
|
+
export { OauthResultRequestFromJSON, OauthResultRequestFromJSONTyped, OauthResultRequestToJSON } from './models/OauthResultRequest.js';
|
|
108
|
+
export { OauthResultResponseFromJSON, OauthResultResponseFromJSONTyped, OauthResultResponseToJSON } from './models/OauthResultResponse.js';
|
|
107
109
|
export { OnrampConfigurationFromJSON, OnrampConfigurationFromJSONTyped, OnrampConfigurationToJSON } from './models/OnrampConfiguration.js';
|
|
108
110
|
export { OrganizationFromJSON, OrganizationFromJSONTyped, OrganizationToJSON } from './models/Organization.js';
|
|
109
111
|
export { OrganizationFieldsFromJSON, OrganizationFieldsFromJSONTyped, OrganizationFieldsToJSON } from './models/OrganizationFields.js';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
function OauthResultRequestFromJSON(json) {
|
|
19
|
+
return OauthResultRequestFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function OauthResultRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'state': json['state'],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function OauthResultRequestToJSON(value) {
|
|
30
|
+
if (value === undefined) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
if (value === null) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'state': value.state,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
exports.OauthResultRequestFromJSON = OauthResultRequestFromJSON;
|
|
42
|
+
exports.OauthResultRequestFromJSONTyped = OauthResultRequestFromJSONTyped;
|
|
43
|
+
exports.OauthResultRequestToJSON = OauthResultRequestToJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OauthResultRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface OauthResultRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Temporary auth state for oauth2 access
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OauthResultRequest
|
|
22
|
+
*/
|
|
23
|
+
state: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function OauthResultRequestFromJSON(json: any): OauthResultRequest;
|
|
26
|
+
export declare function OauthResultRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OauthResultRequest;
|
|
27
|
+
export declare function OauthResultRequestToJSON(value?: OauthResultRequest | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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
|
+
function OauthResultRequestFromJSON(json) {
|
|
15
|
+
return OauthResultRequestFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function OauthResultRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'state': json['state'],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function OauthResultRequestToJSON(value) {
|
|
26
|
+
if (value === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (value === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'state': value.state,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { OauthResultRequestFromJSON, OauthResultRequestFromJSONTyped, OauthResultRequestToJSON };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function OauthResultResponseFromJSON(json) {
|
|
9
|
+
return OauthResultResponseFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function OauthResultResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'code': !runtime.exists(json, 'code') ? undefined : json['code'],
|
|
17
|
+
'error': !runtime.exists(json, 'error') ? undefined : json['error'],
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function OauthResultResponseToJSON(value) {
|
|
21
|
+
if (value === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'code': value.code,
|
|
29
|
+
'error': value.error,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.OauthResultResponseFromJSON = OauthResultResponseFromJSON;
|
|
34
|
+
exports.OauthResultResponseFromJSONTyped = OauthResultResponseFromJSONTyped;
|
|
35
|
+
exports.OauthResultResponseToJSON = OauthResultResponseToJSON;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OauthResultResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface OauthResultResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Valid oauth code
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OauthResultResponse
|
|
22
|
+
*/
|
|
23
|
+
code?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Error return from oauth provider when user denies access
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OauthResultResponse
|
|
28
|
+
*/
|
|
29
|
+
error?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function OauthResultResponseFromJSON(json: any): OauthResultResponse;
|
|
32
|
+
export declare function OauthResultResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OauthResultResponse;
|
|
33
|
+
export declare function OauthResultResponseToJSON(value?: OauthResultResponse | null): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function OauthResultResponseFromJSON(json) {
|
|
5
|
+
return OauthResultResponseFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function OauthResultResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'code': !exists(json, 'code') ? undefined : json['code'],
|
|
13
|
+
'error': !exists(json, 'error') ? undefined : json['error'],
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function OauthResultResponseToJSON(value) {
|
|
17
|
+
if (value === undefined) {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
if (value === null) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
'code': value.code,
|
|
25
|
+
'error': value.error,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { OauthResultResponseFromJSON, OauthResultResponseFromJSONTyped, OauthResultResponseToJSON };
|
|
@@ -55,6 +55,7 @@ exports.UnprocessableEntityErrorCode = void 0;
|
|
|
55
55
|
UnprocessableEntityErrorCode["EmailTiedToEmbeddedWallet"] = "email_tied_to_embedded_wallet";
|
|
56
56
|
UnprocessableEntityErrorCode["InvalidInvite"] = "invalid_invite";
|
|
57
57
|
UnprocessableEntityErrorCode["SocialAccountAlreadyExists"] = "social_account_already_exists";
|
|
58
|
+
UnprocessableEntityErrorCode["InvalidEmailAddress"] = "invalid_email_address";
|
|
58
59
|
})(exports.UnprocessableEntityErrorCode || (exports.UnprocessableEntityErrorCode = {}));
|
|
59
60
|
function UnprocessableEntityErrorCodeFromJSON(json) {
|
|
60
61
|
return UnprocessableEntityErrorCodeFromJSONTyped(json);
|
|
@@ -47,7 +47,8 @@ export declare enum UnprocessableEntityErrorCode {
|
|
|
47
47
|
OtherVerifyFailure = "other_verify_failure",
|
|
48
48
|
EmailTiedToEmbeddedWallet = "email_tied_to_embedded_wallet",
|
|
49
49
|
InvalidInvite = "invalid_invite",
|
|
50
|
-
SocialAccountAlreadyExists = "social_account_already_exists"
|
|
50
|
+
SocialAccountAlreadyExists = "social_account_already_exists",
|
|
51
|
+
InvalidEmailAddress = "invalid_email_address"
|
|
51
52
|
}
|
|
52
53
|
export declare function UnprocessableEntityErrorCodeFromJSON(json: any): UnprocessableEntityErrorCode;
|
|
53
54
|
export declare function UnprocessableEntityErrorCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnprocessableEntityErrorCode;
|
|
@@ -51,6 +51,7 @@ var UnprocessableEntityErrorCode;
|
|
|
51
51
|
UnprocessableEntityErrorCode["EmailTiedToEmbeddedWallet"] = "email_tied_to_embedded_wallet";
|
|
52
52
|
UnprocessableEntityErrorCode["InvalidInvite"] = "invalid_invite";
|
|
53
53
|
UnprocessableEntityErrorCode["SocialAccountAlreadyExists"] = "social_account_already_exists";
|
|
54
|
+
UnprocessableEntityErrorCode["InvalidEmailAddress"] = "invalid_email_address";
|
|
54
55
|
})(UnprocessableEntityErrorCode || (UnprocessableEntityErrorCode = {}));
|
|
55
56
|
function UnprocessableEntityErrorCodeFromJSON(json) {
|
|
56
57
|
return UnprocessableEntityErrorCodeFromJSONTyped(json);
|
package/src/models/index.d.ts
CHANGED
|
@@ -83,6 +83,8 @@ export * from './NonceResponse';
|
|
|
83
83
|
export * from './OauthProviderLoginUrl';
|
|
84
84
|
export * from './OauthProviderRequest';
|
|
85
85
|
export * from './OauthRequest';
|
|
86
|
+
export * from './OauthResultRequest';
|
|
87
|
+
export * from './OauthResultResponse';
|
|
86
88
|
export * from './OnrampConfiguration';
|
|
87
89
|
export * from './Organization';
|
|
88
90
|
export * from './OrganizationFields';
|