@dynamic-labs/sdk-api-core 0.0.465 → 0.0.467
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 +61 -0
- package/src/apis/SDKApi.d.ts +22 -0
- package/src/apis/SDKApi.js +61 -0
- package/src/index.cjs +4 -0
- package/src/index.js +1 -0
- package/src/models/ExternalAuth.d.ts +5 -5
- package/src/models/TooManyRequests.cjs +33 -0
- package/src/models/TooManyRequests.d.ts +27 -0
- package/src/models/TooManyRequests.js +27 -0
- package/src/models/UnprocessableEntityErrorCode.cjs +1 -0
- package/src/models/UnprocessableEntityErrorCode.d.ts +1 -0
- package/src/models/UnprocessableEntityErrorCode.js +1 -0
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -3216,6 +3216,67 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
3216
3216
|
yield this.selectUserWalletOptionsRaw(requestParameters, initOverrides);
|
|
3217
3217
|
});
|
|
3218
3218
|
}
|
|
3219
|
+
/**
|
|
3220
|
+
* Check that session is valid
|
|
3221
|
+
*/
|
|
3222
|
+
sessionCheckRaw(requestParameters, initOverrides) {
|
|
3223
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3224
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3225
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sessionCheck.');
|
|
3226
|
+
}
|
|
3227
|
+
const queryParameters = {};
|
|
3228
|
+
const headerParameters = {};
|
|
3229
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3230
|
+
const token = this.configuration.accessToken;
|
|
3231
|
+
const tokenString = yield token("bearerAuth", []);
|
|
3232
|
+
if (tokenString) {
|
|
3233
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3234
|
+
}
|
|
3235
|
+
}
|
|
3236
|
+
const response = yield this.request({
|
|
3237
|
+
path: `/sdk/{environmentId}/session`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
3238
|
+
method: 'GET',
|
|
3239
|
+
headers: headerParameters,
|
|
3240
|
+
query: queryParameters,
|
|
3241
|
+
}, initOverrides);
|
|
3242
|
+
return new runtime.VoidApiResponse(response);
|
|
3243
|
+
});
|
|
3244
|
+
}
|
|
3245
|
+
/**
|
|
3246
|
+
* Check that session is valid
|
|
3247
|
+
*/
|
|
3248
|
+
sessionCheck(requestParameters, initOverrides) {
|
|
3249
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3250
|
+
yield this.sessionCheckRaw(requestParameters, initOverrides);
|
|
3251
|
+
});
|
|
3252
|
+
}
|
|
3253
|
+
/**
|
|
3254
|
+
* Options call for this endpoint
|
|
3255
|
+
*/
|
|
3256
|
+
sessionCheckOptionsRaw(requestParameters, initOverrides) {
|
|
3257
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3258
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3259
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sessionCheckOptions.');
|
|
3260
|
+
}
|
|
3261
|
+
const queryParameters = {};
|
|
3262
|
+
const headerParameters = {};
|
|
3263
|
+
const response = yield this.request({
|
|
3264
|
+
path: `/sdk/{environmentId}/session`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
3265
|
+
method: 'OPTIONS',
|
|
3266
|
+
headers: headerParameters,
|
|
3267
|
+
query: queryParameters,
|
|
3268
|
+
}, initOverrides);
|
|
3269
|
+
return new runtime.VoidApiResponse(response);
|
|
3270
|
+
});
|
|
3271
|
+
}
|
|
3272
|
+
/**
|
|
3273
|
+
* Options call for this endpoint
|
|
3274
|
+
*/
|
|
3275
|
+
sessionCheckOptions(requestParameters, initOverrides) {
|
|
3276
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3277
|
+
yield this.sessionCheckOptionsRaw(requestParameters, initOverrides);
|
|
3278
|
+
});
|
|
3279
|
+
}
|
|
3219
3280
|
/**
|
|
3220
3281
|
* Options call for this endpoint
|
|
3221
3282
|
*/
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -368,6 +368,12 @@ export interface SelectUserWalletRequest {
|
|
|
368
368
|
export interface SelectUserWalletOptionsRequest {
|
|
369
369
|
environmentId: string;
|
|
370
370
|
}
|
|
371
|
+
export interface SessionCheckRequest {
|
|
372
|
+
environmentId: string;
|
|
373
|
+
}
|
|
374
|
+
export interface SessionCheckOptionsRequest {
|
|
375
|
+
environmentId: string;
|
|
376
|
+
}
|
|
371
377
|
export interface SessionKeyOptionsRequest {
|
|
372
378
|
environmentId: string;
|
|
373
379
|
}
|
|
@@ -1259,6 +1265,22 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1259
1265
|
* Options call for this endpoint
|
|
1260
1266
|
*/
|
|
1261
1267
|
selectUserWalletOptions(requestParameters: SelectUserWalletOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1268
|
+
/**
|
|
1269
|
+
* Check that session is valid
|
|
1270
|
+
*/
|
|
1271
|
+
sessionCheckRaw(requestParameters: SessionCheckRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1272
|
+
/**
|
|
1273
|
+
* Check that session is valid
|
|
1274
|
+
*/
|
|
1275
|
+
sessionCheck(requestParameters: SessionCheckRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1276
|
+
/**
|
|
1277
|
+
* Options call for this endpoint
|
|
1278
|
+
*/
|
|
1279
|
+
sessionCheckOptionsRaw(requestParameters: SessionCheckOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1280
|
+
/**
|
|
1281
|
+
* Options call for this endpoint
|
|
1282
|
+
*/
|
|
1283
|
+
sessionCheckOptions(requestParameters: SessionCheckOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1262
1284
|
/**
|
|
1263
1285
|
* Options call for this endpoint
|
|
1264
1286
|
*/
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -3212,6 +3212,67 @@ class SDKApi extends BaseAPI {
|
|
|
3212
3212
|
yield this.selectUserWalletOptionsRaw(requestParameters, initOverrides);
|
|
3213
3213
|
});
|
|
3214
3214
|
}
|
|
3215
|
+
/**
|
|
3216
|
+
* Check that session is valid
|
|
3217
|
+
*/
|
|
3218
|
+
sessionCheckRaw(requestParameters, initOverrides) {
|
|
3219
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3220
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3221
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sessionCheck.');
|
|
3222
|
+
}
|
|
3223
|
+
const queryParameters = {};
|
|
3224
|
+
const headerParameters = {};
|
|
3225
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3226
|
+
const token = this.configuration.accessToken;
|
|
3227
|
+
const tokenString = yield token("bearerAuth", []);
|
|
3228
|
+
if (tokenString) {
|
|
3229
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3230
|
+
}
|
|
3231
|
+
}
|
|
3232
|
+
const response = yield this.request({
|
|
3233
|
+
path: `/sdk/{environmentId}/session`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
3234
|
+
method: 'GET',
|
|
3235
|
+
headers: headerParameters,
|
|
3236
|
+
query: queryParameters,
|
|
3237
|
+
}, initOverrides);
|
|
3238
|
+
return new VoidApiResponse(response);
|
|
3239
|
+
});
|
|
3240
|
+
}
|
|
3241
|
+
/**
|
|
3242
|
+
* Check that session is valid
|
|
3243
|
+
*/
|
|
3244
|
+
sessionCheck(requestParameters, initOverrides) {
|
|
3245
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3246
|
+
yield this.sessionCheckRaw(requestParameters, initOverrides);
|
|
3247
|
+
});
|
|
3248
|
+
}
|
|
3249
|
+
/**
|
|
3250
|
+
* Options call for this endpoint
|
|
3251
|
+
*/
|
|
3252
|
+
sessionCheckOptionsRaw(requestParameters, initOverrides) {
|
|
3253
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3254
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3255
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sessionCheckOptions.');
|
|
3256
|
+
}
|
|
3257
|
+
const queryParameters = {};
|
|
3258
|
+
const headerParameters = {};
|
|
3259
|
+
const response = yield this.request({
|
|
3260
|
+
path: `/sdk/{environmentId}/session`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
3261
|
+
method: 'OPTIONS',
|
|
3262
|
+
headers: headerParameters,
|
|
3263
|
+
query: queryParameters,
|
|
3264
|
+
}, initOverrides);
|
|
3265
|
+
return new VoidApiResponse(response);
|
|
3266
|
+
});
|
|
3267
|
+
}
|
|
3268
|
+
/**
|
|
3269
|
+
* Options call for this endpoint
|
|
3270
|
+
*/
|
|
3271
|
+
sessionCheckOptions(requestParameters, initOverrides) {
|
|
3272
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3273
|
+
yield this.sessionCheckOptionsRaw(requestParameters, initOverrides);
|
|
3274
|
+
});
|
|
3275
|
+
}
|
|
3215
3276
|
/**
|
|
3216
3277
|
* Options call for this endpoint
|
|
3217
3278
|
*/
|
package/src/index.cjs
CHANGED
|
@@ -156,6 +156,7 @@ var SupportedSecurityMethod = require('./models/SupportedSecurityMethod.cjs');
|
|
|
156
156
|
var SupportedSecurityMethods = require('./models/SupportedSecurityMethods.cjs');
|
|
157
157
|
var TimeUnitEnum = require('./models/TimeUnitEnum.cjs');
|
|
158
158
|
var TokenBalance = require('./models/TokenBalance.cjs');
|
|
159
|
+
var TooManyRequests = require('./models/TooManyRequests.cjs');
|
|
159
160
|
var TurnkeySignedRequest = require('./models/TurnkeySignedRequest.cjs');
|
|
160
161
|
var TurnkeyStamp = require('./models/TurnkeyStamp.cjs');
|
|
161
162
|
var TurnkeyWalletProperties = require('./models/TurnkeyWalletProperties.cjs');
|
|
@@ -776,6 +777,9 @@ exports.TimeUnitEnumToJSON = TimeUnitEnum.TimeUnitEnumToJSON;
|
|
|
776
777
|
exports.TokenBalanceFromJSON = TokenBalance.TokenBalanceFromJSON;
|
|
777
778
|
exports.TokenBalanceFromJSONTyped = TokenBalance.TokenBalanceFromJSONTyped;
|
|
778
779
|
exports.TokenBalanceToJSON = TokenBalance.TokenBalanceToJSON;
|
|
780
|
+
exports.TooManyRequestsFromJSON = TooManyRequests.TooManyRequestsFromJSON;
|
|
781
|
+
exports.TooManyRequestsFromJSONTyped = TooManyRequests.TooManyRequestsFromJSONTyped;
|
|
782
|
+
exports.TooManyRequestsToJSON = TooManyRequests.TooManyRequestsToJSON;
|
|
779
783
|
exports.TurnkeySignedRequestFromJSON = TurnkeySignedRequest.TurnkeySignedRequestFromJSON;
|
|
780
784
|
exports.TurnkeySignedRequestFromJSONTyped = TurnkeySignedRequest.TurnkeySignedRequestFromJSONTyped;
|
|
781
785
|
exports.TurnkeySignedRequestToJSON = TurnkeySignedRequest.TurnkeySignedRequestToJSON;
|
package/src/index.js
CHANGED
|
@@ -152,6 +152,7 @@ export { SupportedSecurityMethodFromJSON, SupportedSecurityMethodFromJSONTyped,
|
|
|
152
152
|
export { SupportedSecurityMethodsFromJSON, SupportedSecurityMethodsFromJSONTyped, SupportedSecurityMethodsToJSON } from './models/SupportedSecurityMethods.js';
|
|
153
153
|
export { TimeUnitEnum, TimeUnitEnumFromJSON, TimeUnitEnumFromJSONTyped, TimeUnitEnumToJSON } from './models/TimeUnitEnum.js';
|
|
154
154
|
export { TokenBalanceFromJSON, TokenBalanceFromJSONTyped, TokenBalanceToJSON } from './models/TokenBalance.js';
|
|
155
|
+
export { TooManyRequestsFromJSON, TooManyRequestsFromJSONTyped, TooManyRequestsToJSON } from './models/TooManyRequests.js';
|
|
155
156
|
export { TurnkeySignedRequestFromJSON, TurnkeySignedRequestFromJSONTyped, TurnkeySignedRequestToJSON } from './models/TurnkeySignedRequest.js';
|
|
156
157
|
export { TurnkeyStampFromJSON, TurnkeyStampFromJSONTyped, TurnkeyStampToJSON } from './models/TurnkeyStamp.js';
|
|
157
158
|
export { TurnkeyWalletPropertiesFromJSON, TurnkeyWalletPropertiesFromJSONTyped, TurnkeyWalletPropertiesToJSON } from './models/TurnkeyWalletProperties.js';
|
|
@@ -26,25 +26,25 @@ export interface ExternalAuth {
|
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ExternalAuth
|
|
28
28
|
*/
|
|
29
|
-
iss?: string;
|
|
29
|
+
iss?: string | null;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
|
-
* @type {
|
|
32
|
+
* @type {string}
|
|
33
33
|
* @memberof ExternalAuth
|
|
34
34
|
*/
|
|
35
|
-
aud?:
|
|
35
|
+
aud?: string | null;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof ExternalAuth
|
|
40
40
|
*/
|
|
41
|
-
jwksUrl?: string;
|
|
41
|
+
jwksUrl?: string | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof ExternalAuth
|
|
46
46
|
*/
|
|
47
|
-
cookieName?: string;
|
|
47
|
+
cookieName?: string | null;
|
|
48
48
|
}
|
|
49
49
|
export declare function ExternalAuthFromJSON(json: any): ExternalAuth;
|
|
50
50
|
export declare function ExternalAuthFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExternalAuth;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function TooManyRequestsFromJSON(json) {
|
|
9
|
+
return TooManyRequestsFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function TooManyRequestsFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'error': !runtime.exists(json, 'error') ? undefined : json['error'],
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function TooManyRequestsToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'error': value.error,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.TooManyRequestsFromJSON = TooManyRequestsFromJSON;
|
|
32
|
+
exports.TooManyRequestsFromJSONTyped = TooManyRequestsFromJSONTyped;
|
|
33
|
+
exports.TooManyRequestsToJSON = TooManyRequestsToJSON;
|
|
@@ -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 TooManyRequests
|
|
16
|
+
*/
|
|
17
|
+
export interface TooManyRequests {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TooManyRequests
|
|
22
|
+
*/
|
|
23
|
+
error?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function TooManyRequestsFromJSON(json: any): TooManyRequests;
|
|
26
|
+
export declare function TooManyRequestsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TooManyRequests;
|
|
27
|
+
export declare function TooManyRequestsToJSON(value?: TooManyRequests | null): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function TooManyRequestsFromJSON(json) {
|
|
5
|
+
return TooManyRequestsFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function TooManyRequestsFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'error': !exists(json, 'error') ? undefined : json['error'],
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function TooManyRequestsToJSON(value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'error': value.error,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { TooManyRequestsFromJSON, TooManyRequestsFromJSONTyped, TooManyRequestsToJSON };
|
|
@@ -55,6 +55,7 @@ exports.UnprocessableEntityErrorCode = void 0;
|
|
|
55
55
|
UnprocessableEntityErrorCode["NoEnabledSmsProvider"] = "no_enabled_sms_provider";
|
|
56
56
|
UnprocessableEntityErrorCode["InvalidKeyExportUrl"] = "invalid_key_export_url";
|
|
57
57
|
UnprocessableEntityErrorCode["InvalidDynamicProps"] = "invalid_dynamic_props";
|
|
58
|
+
UnprocessableEntityErrorCode["TooManyRequests"] = "too_many_requests";
|
|
58
59
|
UnprocessableEntityErrorCode["TooManyOrganizationsForUser"] = "too_many_organizations_for_user";
|
|
59
60
|
UnprocessableEntityErrorCode["TooManyProjectsForOrganization"] = "too_many_projects_for_organization";
|
|
60
61
|
UnprocessableEntityErrorCode["EmailAssociatedWithDifferentProvider"] = "email_associated_with_different_provider";
|
|
@@ -48,6 +48,7 @@ export declare enum UnprocessableEntityErrorCode {
|
|
|
48
48
|
NoEnabledSmsProvider = "no_enabled_sms_provider",
|
|
49
49
|
InvalidKeyExportUrl = "invalid_key_export_url",
|
|
50
50
|
InvalidDynamicProps = "invalid_dynamic_props",
|
|
51
|
+
TooManyRequests = "too_many_requests",
|
|
51
52
|
TooManyOrganizationsForUser = "too_many_organizations_for_user",
|
|
52
53
|
TooManyProjectsForOrganization = "too_many_projects_for_organization",
|
|
53
54
|
EmailAssociatedWithDifferentProvider = "email_associated_with_different_provider",
|
|
@@ -51,6 +51,7 @@ var UnprocessableEntityErrorCode;
|
|
|
51
51
|
UnprocessableEntityErrorCode["NoEnabledSmsProvider"] = "no_enabled_sms_provider";
|
|
52
52
|
UnprocessableEntityErrorCode["InvalidKeyExportUrl"] = "invalid_key_export_url";
|
|
53
53
|
UnprocessableEntityErrorCode["InvalidDynamicProps"] = "invalid_dynamic_props";
|
|
54
|
+
UnprocessableEntityErrorCode["TooManyRequests"] = "too_many_requests";
|
|
54
55
|
UnprocessableEntityErrorCode["TooManyOrganizationsForUser"] = "too_many_organizations_for_user";
|
|
55
56
|
UnprocessableEntityErrorCode["TooManyProjectsForOrganization"] = "too_many_projects_for_organization";
|
|
56
57
|
UnprocessableEntityErrorCode["EmailAssociatedWithDifferentProvider"] = "email_associated_with_different_provider";
|
package/src/models/index.d.ts
CHANGED
|
@@ -150,6 +150,7 @@ export * from './SupportedSecurityMethod';
|
|
|
150
150
|
export * from './SupportedSecurityMethods';
|
|
151
151
|
export * from './TimeUnitEnum';
|
|
152
152
|
export * from './TokenBalance';
|
|
153
|
+
export * from './TooManyRequests';
|
|
153
154
|
export * from './TurnkeySignedRequest';
|
|
154
155
|
export * from './TurnkeyStamp';
|
|
155
156
|
export * from './TurnkeyWalletProperties';
|