@takeal/cusfront-sdk 0.3.7 → 0.3.18

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/dist/index.d.ts CHANGED
@@ -119,7 +119,7 @@ declare function isNetworkError(e: unknown): e is NetworkError;
119
119
  * `define`. `src/version.test.ts` checks it matches `package.json`, so a
120
120
  * release bump that forgets this file fails the test run.
121
121
  */
122
- declare const SDK_VERSION = "0.3.7";
122
+ declare const SDK_VERSION = "0.3.18";
123
123
 
124
124
  /**
125
125
  * `@takeal/cusfront-sdk` — typed client for the Takeal end-user API.
package/dist/index.js CHANGED
@@ -339,6 +339,16 @@ var CardsResource = class {
339
339
  `/me/card-products/${encodeURIComponent(id)}`
340
340
  );
341
341
  }
342
+ /**
343
+ * The public catalog: the same products, order and default as
344
+ * {@link listProducts}, but readable before sign-in, for a landing page or
345
+ * the cabinet's first screen. Prices are list prices (`discount_bps` is
346
+ * always 0); once the user is signed in, {@link listProducts} shows what
347
+ * they pay. The API lets caches keep this response for a minute.
348
+ */
349
+ async catalog() {
350
+ return this.http.get("/card-products");
351
+ }
342
352
  /**
343
353
  * Rename the caller's own card or change its design. Resolves to the
344
354
  * updated card. 404 if the card isn't the caller's; 400 `invalid_name` /
@@ -382,8 +392,8 @@ var CardsResource = class {
382
392
  );
383
393
  }
384
394
  /**
385
- * Reveal the FULL PAN + CVV for the caller's own card. Re-auth gated
386
- * (password, + TOTP when the user has it enrolled) and rate-limited
395
+ * Reveal the FULL PAN + CVV for the caller's own card. The signed-in
396
+ * session is all the API asks for; the call is rate-limited and audited
387
397
  * server-side. The Takeal API never persists this data and marks the
388
398
  * response no-store; the SDK returns it verbatim and holds nothing.
389
399
  *
@@ -394,11 +404,8 @@ var CardsResource = class {
394
404
  * 401 bad re-auth · 403 not your card · 429 rate-limited · 501 connector
395
405
  * has no sensitive-data endpoint · 503 provider error.
396
406
  */
397
- async reveal(id, input) {
398
- return this.http.post(
399
- `/me/cards/${encodeURIComponent(id)}/reveal`,
400
- { body: { password: input.password, totp_code: input.totpCode } }
401
- );
407
+ async reveal(id, _input) {
408
+ return this.http.post(`/me/cards/${encodeURIComponent(id)}/reveal`);
402
409
  }
403
410
  /** Unfreeze a previously-frozen card. Idempotent on an already-active card. */
404
411
  async unfreeze(id) {
@@ -755,7 +762,7 @@ var DevicesResource = class {
755
762
  };
756
763
 
757
764
  // src/version.ts
758
- var SDK_VERSION = "0.3.7";
765
+ var SDK_VERSION = "0.3.18";
759
766
 
760
767
  // src/client-platform.ts
761
768
  var CLIENT_HEADER = "X-Takeal-Client";