@dynamic-labs/sdk-api-core 0.0.465 → 0.0.466
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/models/ExternalAuth.d.ts +5 -5
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
|
*/
|
|
@@ -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;
|