@dynamic-labs/sdk-api-core 0.0.503 → 0.0.505
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 +28 -1
- package/src/apis/SDKApi.js +68 -0
- package/src/index.cjs +4 -0
- package/src/index.js +1 -0
- package/src/models/OauthInitAuthRequest.cjs +35 -0
- package/src/models/OauthInitAuthRequest.d.ts +33 -0
- package/src/models/OauthInitAuthRequest.js +29 -0
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -64,6 +64,7 @@ var MergeUserConflictResolutions = require('../models/MergeUserConflictResolutio
|
|
|
64
64
|
var NetworkConfigurationResponse = require('../models/NetworkConfigurationResponse.cjs');
|
|
65
65
|
require('../models/NextViewEnum.cjs');
|
|
66
66
|
var NonceResponse = require('../models/NonceResponse.cjs');
|
|
67
|
+
var OauthInitAuthRequest = require('../models/OauthInitAuthRequest.cjs');
|
|
67
68
|
var OauthProviderLoginUrl = require('../models/OauthProviderLoginUrl.cjs');
|
|
68
69
|
var OauthRequest = require('../models/OauthRequest.cjs');
|
|
69
70
|
var OauthResultRequest = require('../models/OauthResultRequest.cjs');
|
|
@@ -1829,6 +1830,73 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
1829
1830
|
return yield response.value();
|
|
1830
1831
|
});
|
|
1831
1832
|
}
|
|
1833
|
+
/**
|
|
1834
|
+
* This endpoint initializes a secure oauth authentication sequence by providing the state and current url path to the API.
|
|
1835
|
+
* Initialize oauth auth sequence
|
|
1836
|
+
*/
|
|
1837
|
+
initAuthRaw(requestParameters, initOverrides) {
|
|
1838
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1839
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1840
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling initAuth.');
|
|
1841
|
+
}
|
|
1842
|
+
if (requestParameters.providerType === null || requestParameters.providerType === undefined) {
|
|
1843
|
+
throw new runtime.RequiredError('providerType', 'Required parameter requestParameters.providerType was null or undefined when calling initAuth.');
|
|
1844
|
+
}
|
|
1845
|
+
if (requestParameters.oauthInitAuthRequest === null || requestParameters.oauthInitAuthRequest === undefined) {
|
|
1846
|
+
throw new runtime.RequiredError('oauthInitAuthRequest', 'Required parameter requestParameters.oauthInitAuthRequest was null or undefined when calling initAuth.');
|
|
1847
|
+
}
|
|
1848
|
+
const queryParameters = {};
|
|
1849
|
+
const headerParameters = {};
|
|
1850
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1851
|
+
const response = yield this.request({
|
|
1852
|
+
path: `/sdk/{environmentId}/providers/{providerType}/initAuth`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"providerType"}}`, encodeURIComponent(String(requestParameters.providerType))),
|
|
1853
|
+
method: 'POST',
|
|
1854
|
+
headers: headerParameters,
|
|
1855
|
+
query: queryParameters,
|
|
1856
|
+
body: OauthInitAuthRequest.OauthInitAuthRequestToJSON(requestParameters.oauthInitAuthRequest),
|
|
1857
|
+
}, initOverrides);
|
|
1858
|
+
return new runtime.VoidApiResponse(response);
|
|
1859
|
+
});
|
|
1860
|
+
}
|
|
1861
|
+
/**
|
|
1862
|
+
* This endpoint initializes a secure oauth authentication sequence by providing the state and current url path to the API.
|
|
1863
|
+
* Initialize oauth auth sequence
|
|
1864
|
+
*/
|
|
1865
|
+
initAuth(requestParameters, initOverrides) {
|
|
1866
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1867
|
+
yield this.initAuthRaw(requestParameters, initOverrides);
|
|
1868
|
+
});
|
|
1869
|
+
}
|
|
1870
|
+
/**
|
|
1871
|
+
* Options call for this endpoint
|
|
1872
|
+
*/
|
|
1873
|
+
initAuthOptionsRaw(requestParameters, initOverrides) {
|
|
1874
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1875
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1876
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling initAuthOptions.');
|
|
1877
|
+
}
|
|
1878
|
+
if (requestParameters.providerType === null || requestParameters.providerType === undefined) {
|
|
1879
|
+
throw new runtime.RequiredError('providerType', 'Required parameter requestParameters.providerType was null or undefined when calling initAuthOptions.');
|
|
1880
|
+
}
|
|
1881
|
+
const queryParameters = {};
|
|
1882
|
+
const headerParameters = {};
|
|
1883
|
+
const response = yield this.request({
|
|
1884
|
+
path: `/sdk/{environmentId}/providers/{providerType}/initAuth`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"providerType"}}`, encodeURIComponent(String(requestParameters.providerType))),
|
|
1885
|
+
method: 'OPTIONS',
|
|
1886
|
+
headers: headerParameters,
|
|
1887
|
+
query: queryParameters,
|
|
1888
|
+
}, initOverrides);
|
|
1889
|
+
return new runtime.VoidApiResponse(response);
|
|
1890
|
+
});
|
|
1891
|
+
}
|
|
1892
|
+
/**
|
|
1893
|
+
* Options call for this endpoint
|
|
1894
|
+
*/
|
|
1895
|
+
initAuthOptions(requestParameters, initOverrides) {
|
|
1896
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1897
|
+
yield this.initAuthOptionsRaw(requestParameters, initOverrides);
|
|
1898
|
+
});
|
|
1899
|
+
}
|
|
1832
1900
|
/**
|
|
1833
1901
|
* Initialize the email authentication process for a user\'s embedded wallet
|
|
1834
1902
|
* Initialize the email authentication process for a user\'s embedded wallet
|
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 { CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExportEmbeddedWalletResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, GetUserPasskeysResponse, HealthcheckResponse, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFARegenRecoveryCodesResponse, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, NetworkConfigurationResponse, NonceResponse, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RegisterSessionKeyRequest, SdkSettingsRequest, SdkUser, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SupportedOnrampsResponse, TelegramPostRequest, TokenBalance, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UserFields, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest } from '../models';
|
|
13
|
+
import { CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExportEmbeddedWalletResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, GetUserPasskeysResponse, HealthcheckResponse, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFARegenRecoveryCodesResponse, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, NetworkConfigurationResponse, NonceResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RegisterSessionKeyRequest, SdkSettingsRequest, SdkUser, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SupportedOnrampsResponse, TelegramPostRequest, TokenBalance, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UserFields, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest } from '../models';
|
|
14
14
|
export interface AuthMfaRecoveryRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
mFAAuthRecoveryDevicePostRequest: MFAAuthRecoveryDevicePostRequest;
|
|
@@ -202,6 +202,15 @@ export interface GetUserMfaDevicesRequest {
|
|
|
202
202
|
export interface GetUserPasskeysRequest {
|
|
203
203
|
environmentId: string;
|
|
204
204
|
}
|
|
205
|
+
export interface InitAuthRequest {
|
|
206
|
+
environmentId: string;
|
|
207
|
+
providerType: ProviderEnum;
|
|
208
|
+
oauthInitAuthRequest: OauthInitAuthRequest;
|
|
209
|
+
}
|
|
210
|
+
export interface InitAuthOptionsRequest {
|
|
211
|
+
environmentId: string;
|
|
212
|
+
providerType: ProviderEnum;
|
|
213
|
+
}
|
|
205
214
|
export interface InitEmailAuthOperationRequest {
|
|
206
215
|
environmentId: string;
|
|
207
216
|
initEmailAuthRequest: InitEmailAuthRequest;
|
|
@@ -937,6 +946,24 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
937
946
|
* Gets passkey data associated with a user
|
|
938
947
|
*/
|
|
939
948
|
getUserPasskeys(requestParameters: GetUserPasskeysRequest, initOverrides?: RequestInit): Promise<GetUserPasskeysResponse>;
|
|
949
|
+
/**
|
|
950
|
+
* This endpoint initializes a secure oauth authentication sequence by providing the state and current url path to the API.
|
|
951
|
+
* Initialize oauth auth sequence
|
|
952
|
+
*/
|
|
953
|
+
initAuthRaw(requestParameters: InitAuthRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
954
|
+
/**
|
|
955
|
+
* This endpoint initializes a secure oauth authentication sequence by providing the state and current url path to the API.
|
|
956
|
+
* Initialize oauth auth sequence
|
|
957
|
+
*/
|
|
958
|
+
initAuth(requestParameters: InitAuthRequest, initOverrides?: RequestInit): Promise<void>;
|
|
959
|
+
/**
|
|
960
|
+
* Options call for this endpoint
|
|
961
|
+
*/
|
|
962
|
+
initAuthOptionsRaw(requestParameters: InitAuthOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
963
|
+
/**
|
|
964
|
+
* Options call for this endpoint
|
|
965
|
+
*/
|
|
966
|
+
initAuthOptions(requestParameters: InitAuthOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
940
967
|
/**
|
|
941
968
|
* Initialize the email authentication process for a user\'s embedded wallet
|
|
942
969
|
* Initialize the email authentication process for a user\'s embedded wallet
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -60,6 +60,7 @@ import { MergeUserConflictResolutionsToJSON } from '../models/MergeUserConflictR
|
|
|
60
60
|
import { NetworkConfigurationResponseFromJSON } from '../models/NetworkConfigurationResponse.js';
|
|
61
61
|
import '../models/NextViewEnum.js';
|
|
62
62
|
import { NonceResponseFromJSON } from '../models/NonceResponse.js';
|
|
63
|
+
import { OauthInitAuthRequestToJSON } from '../models/OauthInitAuthRequest.js';
|
|
63
64
|
import { OauthProviderLoginUrlFromJSON } from '../models/OauthProviderLoginUrl.js';
|
|
64
65
|
import { OauthRequestToJSON } from '../models/OauthRequest.js';
|
|
65
66
|
import { OauthResultRequestToJSON } from '../models/OauthResultRequest.js';
|
|
@@ -1825,6 +1826,73 @@ class SDKApi extends BaseAPI {
|
|
|
1825
1826
|
return yield response.value();
|
|
1826
1827
|
});
|
|
1827
1828
|
}
|
|
1829
|
+
/**
|
|
1830
|
+
* This endpoint initializes a secure oauth authentication sequence by providing the state and current url path to the API.
|
|
1831
|
+
* Initialize oauth auth sequence
|
|
1832
|
+
*/
|
|
1833
|
+
initAuthRaw(requestParameters, initOverrides) {
|
|
1834
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1835
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1836
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling initAuth.');
|
|
1837
|
+
}
|
|
1838
|
+
if (requestParameters.providerType === null || requestParameters.providerType === undefined) {
|
|
1839
|
+
throw new RequiredError('providerType', 'Required parameter requestParameters.providerType was null or undefined when calling initAuth.');
|
|
1840
|
+
}
|
|
1841
|
+
if (requestParameters.oauthInitAuthRequest === null || requestParameters.oauthInitAuthRequest === undefined) {
|
|
1842
|
+
throw new RequiredError('oauthInitAuthRequest', 'Required parameter requestParameters.oauthInitAuthRequest was null or undefined when calling initAuth.');
|
|
1843
|
+
}
|
|
1844
|
+
const queryParameters = {};
|
|
1845
|
+
const headerParameters = {};
|
|
1846
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1847
|
+
const response = yield this.request({
|
|
1848
|
+
path: `/sdk/{environmentId}/providers/{providerType}/initAuth`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"providerType"}}`, encodeURIComponent(String(requestParameters.providerType))),
|
|
1849
|
+
method: 'POST',
|
|
1850
|
+
headers: headerParameters,
|
|
1851
|
+
query: queryParameters,
|
|
1852
|
+
body: OauthInitAuthRequestToJSON(requestParameters.oauthInitAuthRequest),
|
|
1853
|
+
}, initOverrides);
|
|
1854
|
+
return new VoidApiResponse(response);
|
|
1855
|
+
});
|
|
1856
|
+
}
|
|
1857
|
+
/**
|
|
1858
|
+
* This endpoint initializes a secure oauth authentication sequence by providing the state and current url path to the API.
|
|
1859
|
+
* Initialize oauth auth sequence
|
|
1860
|
+
*/
|
|
1861
|
+
initAuth(requestParameters, initOverrides) {
|
|
1862
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1863
|
+
yield this.initAuthRaw(requestParameters, initOverrides);
|
|
1864
|
+
});
|
|
1865
|
+
}
|
|
1866
|
+
/**
|
|
1867
|
+
* Options call for this endpoint
|
|
1868
|
+
*/
|
|
1869
|
+
initAuthOptionsRaw(requestParameters, initOverrides) {
|
|
1870
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1871
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1872
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling initAuthOptions.');
|
|
1873
|
+
}
|
|
1874
|
+
if (requestParameters.providerType === null || requestParameters.providerType === undefined) {
|
|
1875
|
+
throw new RequiredError('providerType', 'Required parameter requestParameters.providerType was null or undefined when calling initAuthOptions.');
|
|
1876
|
+
}
|
|
1877
|
+
const queryParameters = {};
|
|
1878
|
+
const headerParameters = {};
|
|
1879
|
+
const response = yield this.request({
|
|
1880
|
+
path: `/sdk/{environmentId}/providers/{providerType}/initAuth`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"providerType"}}`, encodeURIComponent(String(requestParameters.providerType))),
|
|
1881
|
+
method: 'OPTIONS',
|
|
1882
|
+
headers: headerParameters,
|
|
1883
|
+
query: queryParameters,
|
|
1884
|
+
}, initOverrides);
|
|
1885
|
+
return new VoidApiResponse(response);
|
|
1886
|
+
});
|
|
1887
|
+
}
|
|
1888
|
+
/**
|
|
1889
|
+
* Options call for this endpoint
|
|
1890
|
+
*/
|
|
1891
|
+
initAuthOptions(requestParameters, initOverrides) {
|
|
1892
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1893
|
+
yield this.initAuthOptionsRaw(requestParameters, initOverrides);
|
|
1894
|
+
});
|
|
1895
|
+
}
|
|
1828
1896
|
/**
|
|
1829
1897
|
* Initialize the email authentication process for a user\'s embedded wallet
|
|
1830
1898
|
* Initialize the email authentication process for a user\'s embedded wallet
|
package/src/index.cjs
CHANGED
|
@@ -105,6 +105,7 @@ var NextViewEnum = require('./models/NextViewEnum.cjs');
|
|
|
105
105
|
var NonceResponse = require('./models/NonceResponse.cjs');
|
|
106
106
|
var NotFound = require('./models/NotFound.cjs');
|
|
107
107
|
var OAuthAccount = require('./models/OAuthAccount.cjs');
|
|
108
|
+
var OauthInitAuthRequest = require('./models/OauthInitAuthRequest.cjs');
|
|
108
109
|
var OauthProviderLoginUrl = require('./models/OauthProviderLoginUrl.cjs');
|
|
109
110
|
var OauthProviderRequest = require('./models/OauthProviderRequest.cjs');
|
|
110
111
|
var OauthRequest = require('./models/OauthRequest.cjs');
|
|
@@ -599,6 +600,9 @@ exports.NotFoundToJSON = NotFound.NotFoundToJSON;
|
|
|
599
600
|
exports.OAuthAccountFromJSON = OAuthAccount.OAuthAccountFromJSON;
|
|
600
601
|
exports.OAuthAccountFromJSONTyped = OAuthAccount.OAuthAccountFromJSONTyped;
|
|
601
602
|
exports.OAuthAccountToJSON = OAuthAccount.OAuthAccountToJSON;
|
|
603
|
+
exports.OauthInitAuthRequestFromJSON = OauthInitAuthRequest.OauthInitAuthRequestFromJSON;
|
|
604
|
+
exports.OauthInitAuthRequestFromJSONTyped = OauthInitAuthRequest.OauthInitAuthRequestFromJSONTyped;
|
|
605
|
+
exports.OauthInitAuthRequestToJSON = OauthInitAuthRequest.OauthInitAuthRequestToJSON;
|
|
602
606
|
exports.OauthProviderLoginUrlFromJSON = OauthProviderLoginUrl.OauthProviderLoginUrlFromJSON;
|
|
603
607
|
exports.OauthProviderLoginUrlFromJSONTyped = OauthProviderLoginUrl.OauthProviderLoginUrlFromJSONTyped;
|
|
604
608
|
exports.OauthProviderLoginUrlToJSON = OauthProviderLoginUrl.OauthProviderLoginUrlToJSON;
|
package/src/index.js
CHANGED
|
@@ -101,6 +101,7 @@ export { NextViewEnum, NextViewEnumFromJSON, NextViewEnumFromJSONTyped, NextView
|
|
|
101
101
|
export { NonceResponseFromJSON, NonceResponseFromJSONTyped, NonceResponseToJSON } from './models/NonceResponse.js';
|
|
102
102
|
export { NotFoundFromJSON, NotFoundFromJSONTyped, NotFoundToJSON } from './models/NotFound.js';
|
|
103
103
|
export { OAuthAccountFromJSON, OAuthAccountFromJSONTyped, OAuthAccountToJSON } from './models/OAuthAccount.js';
|
|
104
|
+
export { OauthInitAuthRequestFromJSON, OauthInitAuthRequestFromJSONTyped, OauthInitAuthRequestToJSON } from './models/OauthInitAuthRequest.js';
|
|
104
105
|
export { OauthProviderLoginUrlFromJSON, OauthProviderLoginUrlFromJSONTyped, OauthProviderLoginUrlToJSON } from './models/OauthProviderLoginUrl.js';
|
|
105
106
|
export { OauthProviderRequestFromJSON, OauthProviderRequestFromJSONTyped, OauthProviderRequestToJSON } from './models/OauthProviderRequest.js';
|
|
106
107
|
export { OauthRequestFromJSON, OauthRequestFromJSONTyped, OauthRequestToJSON } from './models/OauthRequest.js';
|
|
@@ -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 OauthInitAuthRequestFromJSON(json) {
|
|
9
|
+
return OauthInitAuthRequestFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function OauthInitAuthRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'state': json['state'],
|
|
17
|
+
'redirectUrl': !runtime.exists(json, 'redirectUrl') ? undefined : json['redirectUrl'],
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function OauthInitAuthRequestToJSON(value) {
|
|
21
|
+
if (value === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'state': value.state,
|
|
29
|
+
'redirectUrl': value.redirectUrl,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.OauthInitAuthRequestFromJSON = OauthInitAuthRequestFromJSON;
|
|
34
|
+
exports.OauthInitAuthRequestFromJSONTyped = OauthInitAuthRequestFromJSONTyped;
|
|
35
|
+
exports.OauthInitAuthRequestToJSON = OauthInitAuthRequestToJSON;
|
|
@@ -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 OauthInitAuthRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface OauthInitAuthRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Temporary auth state for oauth2 access
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OauthInitAuthRequest
|
|
22
|
+
*/
|
|
23
|
+
state: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OauthInitAuthRequest
|
|
28
|
+
*/
|
|
29
|
+
redirectUrl?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function OauthInitAuthRequestFromJSON(json: any): OauthInitAuthRequest;
|
|
32
|
+
export declare function OauthInitAuthRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OauthInitAuthRequest;
|
|
33
|
+
export declare function OauthInitAuthRequestToJSON(value?: OauthInitAuthRequest | null): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function OauthInitAuthRequestFromJSON(json) {
|
|
5
|
+
return OauthInitAuthRequestFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function OauthInitAuthRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'state': json['state'],
|
|
13
|
+
'redirectUrl': !exists(json, 'redirectUrl') ? undefined : json['redirectUrl'],
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function OauthInitAuthRequestToJSON(value) {
|
|
17
|
+
if (value === undefined) {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
if (value === null) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
'state': value.state,
|
|
25
|
+
'redirectUrl': value.redirectUrl,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { OauthInitAuthRequestFromJSON, OauthInitAuthRequestFromJSONTyped, OauthInitAuthRequestToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -99,6 +99,7 @@ export * from './NextViewEnum';
|
|
|
99
99
|
export * from './NonceResponse';
|
|
100
100
|
export * from './NotFound';
|
|
101
101
|
export * from './OAuthAccount';
|
|
102
|
+
export * from './OauthInitAuthRequest';
|
|
102
103
|
export * from './OauthProviderLoginUrl';
|
|
103
104
|
export * from './OauthProviderRequest';
|
|
104
105
|
export * from './OauthRequest';
|