@dynamic-labs/sdk-api-core 0.0.1061 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api-core",
3
- "version": "0.0.1061",
3
+ "version": "0.0.1063",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -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) {