@dynamic-labs/sdk-api 0.0.503 → 0.0.504
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
|
@@ -80,6 +80,7 @@ var MergeUserConflictResolutions = require('../models/MergeUserConflictResolutio
|
|
|
80
80
|
var NetworkConfigurationResponse = require('../models/NetworkConfigurationResponse.cjs');
|
|
81
81
|
require('../models/NextViewEnum.cjs');
|
|
82
82
|
var NonceResponse = require('../models/NonceResponse.cjs');
|
|
83
|
+
var OauthInitAuthRequest = require('../models/OauthInitAuthRequest.cjs');
|
|
83
84
|
var OauthProviderLoginUrl = require('../models/OauthProviderLoginUrl.cjs');
|
|
84
85
|
var OauthRequest = require('../models/OauthRequest.cjs');
|
|
85
86
|
var OauthResultRequest = require('../models/OauthResultRequest.cjs');
|
|
@@ -1896,6 +1897,73 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
1896
1897
|
return yield response.value();
|
|
1897
1898
|
});
|
|
1898
1899
|
}
|
|
1900
|
+
/**
|
|
1901
|
+
* This endpoint initializes a secure oauth authentication sequence by providing the state and current url path to the API.
|
|
1902
|
+
* Initialize oauth auth sequence
|
|
1903
|
+
*/
|
|
1904
|
+
initAuthRaw(requestParameters, initOverrides) {
|
|
1905
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1906
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1907
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling initAuth.');
|
|
1908
|
+
}
|
|
1909
|
+
if (requestParameters.providerType === null || requestParameters.providerType === undefined) {
|
|
1910
|
+
throw new runtime.RequiredError('providerType', 'Required parameter requestParameters.providerType was null or undefined when calling initAuth.');
|
|
1911
|
+
}
|
|
1912
|
+
if (requestParameters.oauthInitAuthRequest === null || requestParameters.oauthInitAuthRequest === undefined) {
|
|
1913
|
+
throw new runtime.RequiredError('oauthInitAuthRequest', 'Required parameter requestParameters.oauthInitAuthRequest was null or undefined when calling initAuth.');
|
|
1914
|
+
}
|
|
1915
|
+
const queryParameters = {};
|
|
1916
|
+
const headerParameters = {};
|
|
1917
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1918
|
+
const response = yield this.request({
|
|
1919
|
+
path: `/sdk/{environmentId}/providers/{providerType}/initAuth`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"providerType"}}`, encodeURIComponent(String(requestParameters.providerType))),
|
|
1920
|
+
method: 'POST',
|
|
1921
|
+
headers: headerParameters,
|
|
1922
|
+
query: queryParameters,
|
|
1923
|
+
body: OauthInitAuthRequest.OauthInitAuthRequestToJSON(requestParameters.oauthInitAuthRequest),
|
|
1924
|
+
}, initOverrides);
|
|
1925
|
+
return new runtime.VoidApiResponse(response);
|
|
1926
|
+
});
|
|
1927
|
+
}
|
|
1928
|
+
/**
|
|
1929
|
+
* This endpoint initializes a secure oauth authentication sequence by providing the state and current url path to the API.
|
|
1930
|
+
* Initialize oauth auth sequence
|
|
1931
|
+
*/
|
|
1932
|
+
initAuth(requestParameters, initOverrides) {
|
|
1933
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1934
|
+
yield this.initAuthRaw(requestParameters, initOverrides);
|
|
1935
|
+
});
|
|
1936
|
+
}
|
|
1937
|
+
/**
|
|
1938
|
+
* Options call for this endpoint
|
|
1939
|
+
*/
|
|
1940
|
+
initAuthOptionsRaw(requestParameters, initOverrides) {
|
|
1941
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1942
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1943
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling initAuthOptions.');
|
|
1944
|
+
}
|
|
1945
|
+
if (requestParameters.providerType === null || requestParameters.providerType === undefined) {
|
|
1946
|
+
throw new runtime.RequiredError('providerType', 'Required parameter requestParameters.providerType was null or undefined when calling initAuthOptions.');
|
|
1947
|
+
}
|
|
1948
|
+
const queryParameters = {};
|
|
1949
|
+
const headerParameters = {};
|
|
1950
|
+
const response = yield this.request({
|
|
1951
|
+
path: `/sdk/{environmentId}/providers/{providerType}/initAuth`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"providerType"}}`, encodeURIComponent(String(requestParameters.providerType))),
|
|
1952
|
+
method: 'OPTIONS',
|
|
1953
|
+
headers: headerParameters,
|
|
1954
|
+
query: queryParameters,
|
|
1955
|
+
}, initOverrides);
|
|
1956
|
+
return new runtime.VoidApiResponse(response);
|
|
1957
|
+
});
|
|
1958
|
+
}
|
|
1959
|
+
/**
|
|
1960
|
+
* Options call for this endpoint
|
|
1961
|
+
*/
|
|
1962
|
+
initAuthOptions(requestParameters, initOverrides) {
|
|
1963
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1964
|
+
yield this.initAuthOptionsRaw(requestParameters, initOverrides);
|
|
1965
|
+
});
|
|
1966
|
+
}
|
|
1899
1967
|
/**
|
|
1900
1968
|
* Initialize the email authentication process for a user\'s embedded wallet
|
|
1901
1969
|
* 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, Currency, 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, Currency, 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;
|
|
@@ -953,6 +962,24 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
953
962
|
* Gets passkey data associated with a user
|
|
954
963
|
*/
|
|
955
964
|
getUserPasskeys(requestParameters: GetUserPasskeysRequest, initOverrides?: RequestInit): Promise<GetUserPasskeysResponse>;
|
|
965
|
+
/**
|
|
966
|
+
* This endpoint initializes a secure oauth authentication sequence by providing the state and current url path to the API.
|
|
967
|
+
* Initialize oauth auth sequence
|
|
968
|
+
*/
|
|
969
|
+
initAuthRaw(requestParameters: InitAuthRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
970
|
+
/**
|
|
971
|
+
* This endpoint initializes a secure oauth authentication sequence by providing the state and current url path to the API.
|
|
972
|
+
* Initialize oauth auth sequence
|
|
973
|
+
*/
|
|
974
|
+
initAuth(requestParameters: InitAuthRequest, initOverrides?: RequestInit): Promise<void>;
|
|
975
|
+
/**
|
|
976
|
+
* Options call for this endpoint
|
|
977
|
+
*/
|
|
978
|
+
initAuthOptionsRaw(requestParameters: InitAuthOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
979
|
+
/**
|
|
980
|
+
* Options call for this endpoint
|
|
981
|
+
*/
|
|
982
|
+
initAuthOptions(requestParameters: InitAuthOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
956
983
|
/**
|
|
957
984
|
* Initialize the email authentication process for a user\'s embedded wallet
|
|
958
985
|
* Initialize the email authentication process for a user\'s embedded wallet
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -76,6 +76,7 @@ import { MergeUserConflictResolutionsToJSON } from '../models/MergeUserConflictR
|
|
|
76
76
|
import { NetworkConfigurationResponseFromJSON } from '../models/NetworkConfigurationResponse.js';
|
|
77
77
|
import '../models/NextViewEnum.js';
|
|
78
78
|
import { NonceResponseFromJSON } from '../models/NonceResponse.js';
|
|
79
|
+
import { OauthInitAuthRequestToJSON } from '../models/OauthInitAuthRequest.js';
|
|
79
80
|
import { OauthProviderLoginUrlFromJSON } from '../models/OauthProviderLoginUrl.js';
|
|
80
81
|
import { OauthRequestToJSON } from '../models/OauthRequest.js';
|
|
81
82
|
import { OauthResultRequestToJSON } from '../models/OauthResultRequest.js';
|
|
@@ -1892,6 +1893,73 @@ class SDKApi extends BaseAPI {
|
|
|
1892
1893
|
return yield response.value();
|
|
1893
1894
|
});
|
|
1894
1895
|
}
|
|
1896
|
+
/**
|
|
1897
|
+
* This endpoint initializes a secure oauth authentication sequence by providing the state and current url path to the API.
|
|
1898
|
+
* Initialize oauth auth sequence
|
|
1899
|
+
*/
|
|
1900
|
+
initAuthRaw(requestParameters, initOverrides) {
|
|
1901
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1902
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1903
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling initAuth.');
|
|
1904
|
+
}
|
|
1905
|
+
if (requestParameters.providerType === null || requestParameters.providerType === undefined) {
|
|
1906
|
+
throw new RequiredError('providerType', 'Required parameter requestParameters.providerType was null or undefined when calling initAuth.');
|
|
1907
|
+
}
|
|
1908
|
+
if (requestParameters.oauthInitAuthRequest === null || requestParameters.oauthInitAuthRequest === undefined) {
|
|
1909
|
+
throw new RequiredError('oauthInitAuthRequest', 'Required parameter requestParameters.oauthInitAuthRequest was null or undefined when calling initAuth.');
|
|
1910
|
+
}
|
|
1911
|
+
const queryParameters = {};
|
|
1912
|
+
const headerParameters = {};
|
|
1913
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1914
|
+
const response = yield this.request({
|
|
1915
|
+
path: `/sdk/{environmentId}/providers/{providerType}/initAuth`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"providerType"}}`, encodeURIComponent(String(requestParameters.providerType))),
|
|
1916
|
+
method: 'POST',
|
|
1917
|
+
headers: headerParameters,
|
|
1918
|
+
query: queryParameters,
|
|
1919
|
+
body: OauthInitAuthRequestToJSON(requestParameters.oauthInitAuthRequest),
|
|
1920
|
+
}, initOverrides);
|
|
1921
|
+
return new VoidApiResponse(response);
|
|
1922
|
+
});
|
|
1923
|
+
}
|
|
1924
|
+
/**
|
|
1925
|
+
* This endpoint initializes a secure oauth authentication sequence by providing the state and current url path to the API.
|
|
1926
|
+
* Initialize oauth auth sequence
|
|
1927
|
+
*/
|
|
1928
|
+
initAuth(requestParameters, initOverrides) {
|
|
1929
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1930
|
+
yield this.initAuthRaw(requestParameters, initOverrides);
|
|
1931
|
+
});
|
|
1932
|
+
}
|
|
1933
|
+
/**
|
|
1934
|
+
* Options call for this endpoint
|
|
1935
|
+
*/
|
|
1936
|
+
initAuthOptionsRaw(requestParameters, initOverrides) {
|
|
1937
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1938
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1939
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling initAuthOptions.');
|
|
1940
|
+
}
|
|
1941
|
+
if (requestParameters.providerType === null || requestParameters.providerType === undefined) {
|
|
1942
|
+
throw new RequiredError('providerType', 'Required parameter requestParameters.providerType was null or undefined when calling initAuthOptions.');
|
|
1943
|
+
}
|
|
1944
|
+
const queryParameters = {};
|
|
1945
|
+
const headerParameters = {};
|
|
1946
|
+
const response = yield this.request({
|
|
1947
|
+
path: `/sdk/{environmentId}/providers/{providerType}/initAuth`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"providerType"}}`, encodeURIComponent(String(requestParameters.providerType))),
|
|
1948
|
+
method: 'OPTIONS',
|
|
1949
|
+
headers: headerParameters,
|
|
1950
|
+
query: queryParameters,
|
|
1951
|
+
}, initOverrides);
|
|
1952
|
+
return new VoidApiResponse(response);
|
|
1953
|
+
});
|
|
1954
|
+
}
|
|
1955
|
+
/**
|
|
1956
|
+
* Options call for this endpoint
|
|
1957
|
+
*/
|
|
1958
|
+
initAuthOptions(requestParameters, initOverrides) {
|
|
1959
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1960
|
+
yield this.initAuthOptionsRaw(requestParameters, initOverrides);
|
|
1961
|
+
});
|
|
1962
|
+
}
|
|
1895
1963
|
/**
|
|
1896
1964
|
* Initialize the email authentication process for a user\'s embedded wallet
|
|
1897
1965
|
* Initialize the email authentication process for a user\'s embedded wallet
|
package/src/index.cjs
CHANGED
|
@@ -204,6 +204,7 @@ var NextViewEnum = require('./models/NextViewEnum.cjs');
|
|
|
204
204
|
var NonceResponse = require('./models/NonceResponse.cjs');
|
|
205
205
|
var NotFound = require('./models/NotFound.cjs');
|
|
206
206
|
var OAuthAccount = require('./models/OAuthAccount.cjs');
|
|
207
|
+
var OauthInitAuthRequest = require('./models/OauthInitAuthRequest.cjs');
|
|
207
208
|
var OauthProviderLoginUrl = require('./models/OauthProviderLoginUrl.cjs');
|
|
208
209
|
var OauthProviderRequest = require('./models/OauthProviderRequest.cjs');
|
|
209
210
|
var OauthRequest = require('./models/OauthRequest.cjs');
|
|
@@ -1043,6 +1044,9 @@ exports.NotFoundToJSON = NotFound.NotFoundToJSON;
|
|
|
1043
1044
|
exports.OAuthAccountFromJSON = OAuthAccount.OAuthAccountFromJSON;
|
|
1044
1045
|
exports.OAuthAccountFromJSONTyped = OAuthAccount.OAuthAccountFromJSONTyped;
|
|
1045
1046
|
exports.OAuthAccountToJSON = OAuthAccount.OAuthAccountToJSON;
|
|
1047
|
+
exports.OauthInitAuthRequestFromJSON = OauthInitAuthRequest.OauthInitAuthRequestFromJSON;
|
|
1048
|
+
exports.OauthInitAuthRequestFromJSONTyped = OauthInitAuthRequest.OauthInitAuthRequestFromJSONTyped;
|
|
1049
|
+
exports.OauthInitAuthRequestToJSON = OauthInitAuthRequest.OauthInitAuthRequestToJSON;
|
|
1046
1050
|
exports.OauthProviderLoginUrlFromJSON = OauthProviderLoginUrl.OauthProviderLoginUrlFromJSON;
|
|
1047
1051
|
exports.OauthProviderLoginUrlFromJSONTyped = OauthProviderLoginUrl.OauthProviderLoginUrlFromJSONTyped;
|
|
1048
1052
|
exports.OauthProviderLoginUrlToJSON = OauthProviderLoginUrl.OauthProviderLoginUrlToJSON;
|
package/src/index.js
CHANGED
|
@@ -200,6 +200,7 @@ export { NextViewEnum, NextViewEnumFromJSON, NextViewEnumFromJSONTyped, NextView
|
|
|
200
200
|
export { NonceResponseFromJSON, NonceResponseFromJSONTyped, NonceResponseToJSON } from './models/NonceResponse.js';
|
|
201
201
|
export { NotFoundFromJSON, NotFoundFromJSONTyped, NotFoundToJSON } from './models/NotFound.js';
|
|
202
202
|
export { OAuthAccountFromJSON, OAuthAccountFromJSONTyped, OAuthAccountToJSON } from './models/OAuthAccount.js';
|
|
203
|
+
export { OauthInitAuthRequestFromJSON, OauthInitAuthRequestFromJSONTyped, OauthInitAuthRequestToJSON } from './models/OauthInitAuthRequest.js';
|
|
203
204
|
export { OauthProviderLoginUrlFromJSON, OauthProviderLoginUrlFromJSONTyped, OauthProviderLoginUrlToJSON } from './models/OauthProviderLoginUrl.js';
|
|
204
205
|
export { OauthProviderRequestFromJSON, OauthProviderRequestFromJSONTyped, OauthProviderRequestToJSON } from './models/OauthProviderRequest.js';
|
|
205
206
|
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
|
@@ -171,6 +171,7 @@ export * from './NextViewEnum';
|
|
|
171
171
|
export * from './NonceResponse';
|
|
172
172
|
export * from './NotFound';
|
|
173
173
|
export * from './OAuthAccount';
|
|
174
|
+
export * from './OauthInitAuthRequest';
|
|
174
175
|
export * from './OauthProviderLoginUrl';
|
|
175
176
|
export * from './OauthProviderRequest';
|
|
176
177
|
export * from './OauthRequest';
|