@dynamic-labs/sdk-api 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
|
@@ -3283,6 +3283,67 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
3283
3283
|
yield this.selectUserWalletOptionsRaw(requestParameters, initOverrides);
|
|
3284
3284
|
});
|
|
3285
3285
|
}
|
|
3286
|
+
/**
|
|
3287
|
+
* Check that session is valid
|
|
3288
|
+
*/
|
|
3289
|
+
sessionCheckRaw(requestParameters, initOverrides) {
|
|
3290
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3291
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3292
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sessionCheck.');
|
|
3293
|
+
}
|
|
3294
|
+
const queryParameters = {};
|
|
3295
|
+
const headerParameters = {};
|
|
3296
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3297
|
+
const token = this.configuration.accessToken;
|
|
3298
|
+
const tokenString = yield token("bearerAuth", []);
|
|
3299
|
+
if (tokenString) {
|
|
3300
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3301
|
+
}
|
|
3302
|
+
}
|
|
3303
|
+
const response = yield this.request({
|
|
3304
|
+
path: `/sdk/{environmentId}/session`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
3305
|
+
method: 'GET',
|
|
3306
|
+
headers: headerParameters,
|
|
3307
|
+
query: queryParameters,
|
|
3308
|
+
}, initOverrides);
|
|
3309
|
+
return new runtime.VoidApiResponse(response);
|
|
3310
|
+
});
|
|
3311
|
+
}
|
|
3312
|
+
/**
|
|
3313
|
+
* Check that session is valid
|
|
3314
|
+
*/
|
|
3315
|
+
sessionCheck(requestParameters, initOverrides) {
|
|
3316
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3317
|
+
yield this.sessionCheckRaw(requestParameters, initOverrides);
|
|
3318
|
+
});
|
|
3319
|
+
}
|
|
3320
|
+
/**
|
|
3321
|
+
* Options call for this endpoint
|
|
3322
|
+
*/
|
|
3323
|
+
sessionCheckOptionsRaw(requestParameters, initOverrides) {
|
|
3324
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3325
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3326
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sessionCheckOptions.');
|
|
3327
|
+
}
|
|
3328
|
+
const queryParameters = {};
|
|
3329
|
+
const headerParameters = {};
|
|
3330
|
+
const response = yield this.request({
|
|
3331
|
+
path: `/sdk/{environmentId}/session`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
3332
|
+
method: 'OPTIONS',
|
|
3333
|
+
headers: headerParameters,
|
|
3334
|
+
query: queryParameters,
|
|
3335
|
+
}, initOverrides);
|
|
3336
|
+
return new runtime.VoidApiResponse(response);
|
|
3337
|
+
});
|
|
3338
|
+
}
|
|
3339
|
+
/**
|
|
3340
|
+
* Options call for this endpoint
|
|
3341
|
+
*/
|
|
3342
|
+
sessionCheckOptions(requestParameters, initOverrides) {
|
|
3343
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3344
|
+
yield this.sessionCheckOptionsRaw(requestParameters, initOverrides);
|
|
3345
|
+
});
|
|
3346
|
+
}
|
|
3286
3347
|
/**
|
|
3287
3348
|
* Options call for this endpoint
|
|
3288
3349
|
*/
|
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
|
}
|
|
@@ -1275,6 +1281,22 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1275
1281
|
* Options call for this endpoint
|
|
1276
1282
|
*/
|
|
1277
1283
|
selectUserWalletOptions(requestParameters: SelectUserWalletOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1284
|
+
/**
|
|
1285
|
+
* Check that session is valid
|
|
1286
|
+
*/
|
|
1287
|
+
sessionCheckRaw(requestParameters: SessionCheckRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1288
|
+
/**
|
|
1289
|
+
* Check that session is valid
|
|
1290
|
+
*/
|
|
1291
|
+
sessionCheck(requestParameters: SessionCheckRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1292
|
+
/**
|
|
1293
|
+
* Options call for this endpoint
|
|
1294
|
+
*/
|
|
1295
|
+
sessionCheckOptionsRaw(requestParameters: SessionCheckOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1296
|
+
/**
|
|
1297
|
+
* Options call for this endpoint
|
|
1298
|
+
*/
|
|
1299
|
+
sessionCheckOptions(requestParameters: SessionCheckOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1278
1300
|
/**
|
|
1279
1301
|
* Options call for this endpoint
|
|
1280
1302
|
*/
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -3279,6 +3279,67 @@ class SDKApi extends BaseAPI {
|
|
|
3279
3279
|
yield this.selectUserWalletOptionsRaw(requestParameters, initOverrides);
|
|
3280
3280
|
});
|
|
3281
3281
|
}
|
|
3282
|
+
/**
|
|
3283
|
+
* Check that session is valid
|
|
3284
|
+
*/
|
|
3285
|
+
sessionCheckRaw(requestParameters, initOverrides) {
|
|
3286
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3287
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3288
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sessionCheck.');
|
|
3289
|
+
}
|
|
3290
|
+
const queryParameters = {};
|
|
3291
|
+
const headerParameters = {};
|
|
3292
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3293
|
+
const token = this.configuration.accessToken;
|
|
3294
|
+
const tokenString = yield token("bearerAuth", []);
|
|
3295
|
+
if (tokenString) {
|
|
3296
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3297
|
+
}
|
|
3298
|
+
}
|
|
3299
|
+
const response = yield this.request({
|
|
3300
|
+
path: `/sdk/{environmentId}/session`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
3301
|
+
method: 'GET',
|
|
3302
|
+
headers: headerParameters,
|
|
3303
|
+
query: queryParameters,
|
|
3304
|
+
}, initOverrides);
|
|
3305
|
+
return new VoidApiResponse(response);
|
|
3306
|
+
});
|
|
3307
|
+
}
|
|
3308
|
+
/**
|
|
3309
|
+
* Check that session is valid
|
|
3310
|
+
*/
|
|
3311
|
+
sessionCheck(requestParameters, initOverrides) {
|
|
3312
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3313
|
+
yield this.sessionCheckRaw(requestParameters, initOverrides);
|
|
3314
|
+
});
|
|
3315
|
+
}
|
|
3316
|
+
/**
|
|
3317
|
+
* Options call for this endpoint
|
|
3318
|
+
*/
|
|
3319
|
+
sessionCheckOptionsRaw(requestParameters, initOverrides) {
|
|
3320
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3321
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3322
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sessionCheckOptions.');
|
|
3323
|
+
}
|
|
3324
|
+
const queryParameters = {};
|
|
3325
|
+
const headerParameters = {};
|
|
3326
|
+
const response = yield this.request({
|
|
3327
|
+
path: `/sdk/{environmentId}/session`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
3328
|
+
method: 'OPTIONS',
|
|
3329
|
+
headers: headerParameters,
|
|
3330
|
+
query: queryParameters,
|
|
3331
|
+
}, initOverrides);
|
|
3332
|
+
return new VoidApiResponse(response);
|
|
3333
|
+
});
|
|
3334
|
+
}
|
|
3335
|
+
/**
|
|
3336
|
+
* Options call for this endpoint
|
|
3337
|
+
*/
|
|
3338
|
+
sessionCheckOptions(requestParameters, initOverrides) {
|
|
3339
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3340
|
+
yield this.sessionCheckOptionsRaw(requestParameters, initOverrides);
|
|
3341
|
+
});
|
|
3342
|
+
}
|
|
3282
3343
|
/**
|
|
3283
3344
|
* Options call for this endpoint
|
|
3284
3345
|
*/
|
|
@@ -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;
|