@leaflow/sdk 0.51.0 → 0.53.0

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.
@@ -1286,13 +1286,22 @@ export interface components {
1286
1286
  };
1287
1287
  PaymentMethodSetupSession: {
1288
1288
  /**
1289
- * @description Initialises the provider's JavaScript, which mounts its form in an iframe on this page.
1289
+ * @description Confirms this attempt from the browser, against the provider's own inputs.
1290
1290
  *
1291
- * Not a URL: the form is embedded rather than redirected to, so the account holder stays
1292
- * on the console. It expires, so fetch it when the form is about to be shown rather than
1293
- * when the page loads.
1291
+ * Not a URL and not a hosted page: only the inputs come from the provider, so the
1292
+ * heading, the button and the styling around them are this platform's. It expires, so
1293
+ * fetch it when the form is about to be shown rather than when the page loads.
1294
1294
  */
1295
1295
  client_secret: string;
1296
+ /**
1297
+ * @description Identifies this platform to the provider's JavaScript. Public by design.
1298
+ *
1299
+ * It comes from here rather than from the browser bundle because it has to match the
1300
+ * account and the mode of the key the session was created with. Baking it into the build
1301
+ * makes one image unusable against the other mode, and the mismatch shows up as a form
1302
+ * that never loads.
1303
+ */
1304
+ publishable_key: string;
1296
1305
  /**
1297
1306
  * @description The provider's id for this attempt.
1298
1307
  *
@@ -1300,7 +1309,7 @@ export interface components {
1300
1309
  * records the method. It is here so that a support conversation about one failed attempt
1301
1310
  * has something to look it up by.
1302
1311
  */
1303
- session_id?: string;
1312
+ setup_id?: string;
1304
1313
  };
1305
1314
  /**
1306
1315
  * @description One saved way of collecting money later, without the account holder present.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflow/sdk",
3
- "version": "0.51.0",
3
+ "version": "0.53.0",
4
4
  "description": "Leaflow 平台 API 的 TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "repository": {