@dynamic-labs/sdk-api-core 0.0.1062 → 0.0.1064
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/models/FlowAttachSourceRequest.cjs +2 -0
- package/src/models/FlowAttachSourceRequest.cjs.map +1 -1
- package/src/models/FlowAttachSourceRequest.d.ts +7 -1
- package/src/models/FlowAttachSourceRequest.js +2 -0
- package/src/models/FlowAttachSourceRequest.js.map +1 -1
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -284,7 +284,7 @@ var WalletTransactionsResponse = require('../models/WalletTransactionsResponse.c
|
|
|
284
284
|
*/
|
|
285
285
|
class SDKApi extends runtime.BaseAPI {
|
|
286
286
|
/**
|
|
287
|
-
* 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.
|
|
287
|
+
* 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.
|
|
288
288
|
* Attach a source to a flow and mint a session token
|
|
289
289
|
*/
|
|
290
290
|
async attachFlowSourceRaw(requestParameters, initOverrides) {
|
|
@@ -300,6 +300,9 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
300
300
|
const queryParameters = {};
|
|
301
301
|
const headerParameters = {};
|
|
302
302
|
headerParameters['Content-Type'] = 'application/json';
|
|
303
|
+
if (requestParameters.xDynamicFlowSessionToken !== undefined && requestParameters.xDynamicFlowSessionToken !== null) {
|
|
304
|
+
headerParameters['X-Dynamic-Flow-Session-Token'] = String(requestParameters.xDynamicFlowSessionToken);
|
|
305
|
+
}
|
|
303
306
|
const response = await this.request({
|
|
304
307
|
path: `/sdk/{environmentId}/flow/{flowId}/source`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"flowId"}}`, encodeURIComponent(String(requestParameters.flowId))),
|
|
305
308
|
method: 'POST',
|
|
@@ -310,7 +313,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
310
313
|
return new runtime.JSONApiResponse(response, (jsonValue) => FlowSourceResponse.FlowSourceResponseFromJSON(jsonValue));
|
|
311
314
|
}
|
|
312
315
|
/**
|
|
313
|
-
* 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.
|
|
316
|
+
* 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.
|
|
314
317
|
* Attach a source to a flow and mint a session token
|
|
315
318
|
*/
|
|
316
319
|
async attachFlowSource(requestParameters, initOverrides) {
|