@dynamic-labs/sdk-api-core 0.0.1062 → 0.0.1063
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 +5 -2
- package/src/apis/SDKApi.cjs.map +1 -1
- package/src/apis/SDKApi.d.ts +3 -2
- package/src/apis/SDKApi.js +5 -2
- package/src/apis/SDKApi.js.map +1 -1
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export interface AttachFlowSourceRequest {
|
|
|
15
15
|
environmentId: string;
|
|
16
16
|
flowId: string;
|
|
17
17
|
flowAttachSourceRequest: FlowAttachSourceRequest;
|
|
18
|
+
xDynamicFlowSessionToken?: string;
|
|
18
19
|
}
|
|
19
20
|
export interface AttachFlowSourceOptionsRequest {
|
|
20
21
|
environmentId: string;
|
|
@@ -1375,12 +1376,12 @@ export interface WalletsVerifyOptionsRequest {
|
|
|
1375
1376
|
*/
|
|
1376
1377
|
export declare class SDKApi extends runtime.BaseAPI {
|
|
1377
1378
|
/**
|
|
1378
|
-
* Sets the source wallet address and chain on an initiated flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow still being initiated and by CORS. At most one live token exists per flow at a time.
|
|
1379
|
+
* Sets the source wallet address and chain on an initiated flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow still being initiated and by CORS. At most one live token exists per flow at a time. When re-attaching from the signing state, the existing session token must be supplied to prove the caller is the original signer.
|
|
1379
1380
|
* Attach a source to a flow and mint a session token
|
|
1380
1381
|
*/
|
|
1381
1382
|
attachFlowSourceRaw(requestParameters: AttachFlowSourceRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FlowSourceResponse>>;
|
|
1382
1383
|
/**
|
|
1383
|
-
* Sets the source wallet address and chain on an initiated flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow still being initiated and by CORS. At most one live token exists per flow at a time.
|
|
1384
|
+
* Sets the source wallet address and chain on an initiated flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow still being initiated and by CORS. At most one live token exists per flow at a time. When re-attaching from the signing state, the existing session token must be supplied to prove the caller is the original signer.
|
|
1384
1385
|
* Attach a source to a flow and mint a session token
|
|
1385
1386
|
*/
|
|
1386
1387
|
attachFlowSource(requestParameters: AttachFlowSourceRequest, initOverrides?: RequestInit): Promise<FlowSourceResponse>;
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -280,7 +280,7 @@ import { WalletTransactionsResponseFromJSON } from '../models/WalletTransactions
|
|
|
280
280
|
*/
|
|
281
281
|
class SDKApi extends BaseAPI {
|
|
282
282
|
/**
|
|
283
|
-
* Sets the source wallet address and chain on an initiated flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow still being initiated and by CORS. At most one live token exists per flow at a time.
|
|
283
|
+
* Sets the source wallet address and chain on an initiated flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow still being initiated and by CORS. At most one live token exists per flow at a time. When re-attaching from the signing state, the existing session token must be supplied to prove the caller is the original signer.
|
|
284
284
|
* Attach a source to a flow and mint a session token
|
|
285
285
|
*/
|
|
286
286
|
async attachFlowSourceRaw(requestParameters, initOverrides) {
|
|
@@ -296,6 +296,9 @@ class SDKApi extends BaseAPI {
|
|
|
296
296
|
const queryParameters = {};
|
|
297
297
|
const headerParameters = {};
|
|
298
298
|
headerParameters['Content-Type'] = 'application/json';
|
|
299
|
+
if (requestParameters.xDynamicFlowSessionToken !== undefined && requestParameters.xDynamicFlowSessionToken !== null) {
|
|
300
|
+
headerParameters['X-Dynamic-Flow-Session-Token'] = String(requestParameters.xDynamicFlowSessionToken);
|
|
301
|
+
}
|
|
299
302
|
const response = await this.request({
|
|
300
303
|
path: `/sdk/{environmentId}/flow/{flowId}/source`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"flowId"}}`, encodeURIComponent(String(requestParameters.flowId))),
|
|
301
304
|
method: 'POST',
|
|
@@ -306,7 +309,7 @@ class SDKApi extends BaseAPI {
|
|
|
306
309
|
return new JSONApiResponse(response, (jsonValue) => FlowSourceResponseFromJSON(jsonValue));
|
|
307
310
|
}
|
|
308
311
|
/**
|
|
309
|
-
* Sets the source wallet address and chain on an initiated flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow still being initiated and by CORS. At most one live token exists per flow at a time.
|
|
312
|
+
* Sets the source wallet address and chain on an initiated flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow still being initiated and by CORS. At most one live token exists per flow at a time. When re-attaching from the signing state, the existing session token must be supplied to prove the caller is the original signer.
|
|
310
313
|
* Attach a source to a flow and mint a session token
|
|
311
314
|
*/
|
|
312
315
|
async attachFlowSource(requestParameters, initOverrides) {
|