@unifold/core 0.1.76 → 0.1.77

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.mts CHANGED
@@ -352,8 +352,10 @@ interface OnrampQuote {
352
352
  destination_network: string;
353
353
  exchange_rate: number;
354
354
  /**
355
- * Unified payment method type (`card` / `apple_pay` / `sepa`). Provider-native
356
- * values (e.g. Meld's `credit_debit_card`) are normalized to this vocabulary.
355
+ * Unified payment method type (`card` / `apple_pay` / `sepa` / `upi`).
356
+ * Provider-native values (e.g. Meld's `CREDIT_DEBIT_CARD`, `UPI`) are
357
+ * normalized to this vocabulary. Pass it back on the session request to keep
358
+ * the rail this quote priced.
357
359
  */
358
360
  payment_method_type: OnrampSessionPaymentMethodType;
359
361
  /** @deprecated Use `payment_method_type` instead (same value). */
@@ -402,11 +404,13 @@ declare function getOnrampQuotes(request: OnrampQuotesRequest, publishableKey?:
402
404
  * - `us_bank_account` — US bank transfer (HiFi). One account accepts ACH, wire
403
405
  * and RTP; the payer picks the rail at their bank, so it is not split into
404
406
  * per-rail methods.
407
+ * - `upi` — India's instant rail, served inside the provider's widget by the
408
+ * Indian onramps (Onramp Money, Onmeta).
405
409
  *
406
410
  * This is the account/rail family the user pays over, not how the receiving
407
411
  * account is provisioned (pooled vs dedicated) — that's a backend detail.
408
412
  */
409
- type OnrampSessionPaymentMethodType = 'card' | 'apple_pay' | 'sepa' | 'us_bank_account';
413
+ type OnrampSessionPaymentMethodType = 'card' | 'apple_pay' | 'sepa' | 'us_bank_account' | 'upi';
410
414
  /**
411
415
  * @deprecated Use `OnrampSessionPaymentMethodType` instead. Retained as an alias so
412
416
  * previously-released SDK consumers keep compiling.
@@ -429,8 +433,9 @@ interface OnrampSessionRequest {
429
433
  external_id?: string;
430
434
  email?: string;
431
435
  /**
432
- * Payment method type for the session (`card` / `sepa` / `apple_pay`).
433
- * Defaults to `card`.
436
+ * Payment method type for the session (`card` / `sepa` / `apple_pay` / `upi`).
437
+ * Defaults to `card`. Send back what the chosen quote reported; a method the
438
+ * provider cannot serve is rejected rather than downgraded.
434
439
  */
435
440
  payment_method_type?: OnrampSessionPaymentMethodType;
436
441
  /** @deprecated Use `payment_method_type` instead (same value). */
@@ -1982,6 +1987,11 @@ interface CreateOnrampVerificationSessionRequest {
1982
1987
  email_already_verified?: boolean;
1983
1988
  /** Optional correlation id for a planned order. */
1984
1989
  external_id?: string;
1990
+ /**
1991
+ * Your end-user id. When set, a successful OTP persists a global identity
1992
+ * and records umbrella ToS. Omit for the Coinbase JWT path.
1993
+ */
1994
+ external_user_id?: string;
1985
1995
  }
1986
1996
  interface OnrampVerificationTokenResponse {
1987
1997
  token: string;
package/dist/index.d.ts CHANGED
@@ -352,8 +352,10 @@ interface OnrampQuote {
352
352
  destination_network: string;
353
353
  exchange_rate: number;
354
354
  /**
355
- * Unified payment method type (`card` / `apple_pay` / `sepa`). Provider-native
356
- * values (e.g. Meld's `credit_debit_card`) are normalized to this vocabulary.
355
+ * Unified payment method type (`card` / `apple_pay` / `sepa` / `upi`).
356
+ * Provider-native values (e.g. Meld's `CREDIT_DEBIT_CARD`, `UPI`) are
357
+ * normalized to this vocabulary. Pass it back on the session request to keep
358
+ * the rail this quote priced.
357
359
  */
358
360
  payment_method_type: OnrampSessionPaymentMethodType;
359
361
  /** @deprecated Use `payment_method_type` instead (same value). */
@@ -402,11 +404,13 @@ declare function getOnrampQuotes(request: OnrampQuotesRequest, publishableKey?:
402
404
  * - `us_bank_account` — US bank transfer (HiFi). One account accepts ACH, wire
403
405
  * and RTP; the payer picks the rail at their bank, so it is not split into
404
406
  * per-rail methods.
407
+ * - `upi` — India's instant rail, served inside the provider's widget by the
408
+ * Indian onramps (Onramp Money, Onmeta).
405
409
  *
406
410
  * This is the account/rail family the user pays over, not how the receiving
407
411
  * account is provisioned (pooled vs dedicated) — that's a backend detail.
408
412
  */
409
- type OnrampSessionPaymentMethodType = 'card' | 'apple_pay' | 'sepa' | 'us_bank_account';
413
+ type OnrampSessionPaymentMethodType = 'card' | 'apple_pay' | 'sepa' | 'us_bank_account' | 'upi';
410
414
  /**
411
415
  * @deprecated Use `OnrampSessionPaymentMethodType` instead. Retained as an alias so
412
416
  * previously-released SDK consumers keep compiling.
@@ -429,8 +433,9 @@ interface OnrampSessionRequest {
429
433
  external_id?: string;
430
434
  email?: string;
431
435
  /**
432
- * Payment method type for the session (`card` / `sepa` / `apple_pay`).
433
- * Defaults to `card`.
436
+ * Payment method type for the session (`card` / `sepa` / `apple_pay` / `upi`).
437
+ * Defaults to `card`. Send back what the chosen quote reported; a method the
438
+ * provider cannot serve is rejected rather than downgraded.
434
439
  */
435
440
  payment_method_type?: OnrampSessionPaymentMethodType;
436
441
  /** @deprecated Use `payment_method_type` instead (same value). */
@@ -1982,6 +1987,11 @@ interface CreateOnrampVerificationSessionRequest {
1982
1987
  email_already_verified?: boolean;
1983
1988
  /** Optional correlation id for a planned order. */
1984
1989
  external_id?: string;
1990
+ /**
1991
+ * Your end-user id. When set, a successful OTP persists a global identity
1992
+ * and records umbrella ToS. Omit for the Coinbase JWT path.
1993
+ */
1994
+ external_user_id?: string;
1985
1995
  }
1986
1996
  interface OnrampVerificationTokenResponse {
1987
1997
  token: string;
package/dist/index.js CHANGED
@@ -191,7 +191,7 @@ function generatePrefixedKSUID(prefix) {
191
191
  }
192
192
 
193
193
  // src/lib/client-headers.ts
194
- var SDK_VERSION = true ? "0.1.76" : "0.0.0-dev";
194
+ var SDK_VERSION = true ? "0.1.77" : "0.0.0-dev";
195
195
  var CLIENT_VERSION_HEADER = "x-unifold-client-version";
196
196
  var CLIENT_USER_AGENT_HEADER = "x-unifold-client-user-agent";
197
197
  function detectRuntime() {
package/dist/index.mjs CHANGED
@@ -41,7 +41,7 @@ function generatePrefixedKSUID(prefix) {
41
41
  }
42
42
 
43
43
  // src/lib/client-headers.ts
44
- var SDK_VERSION = true ? "0.1.76" : "0.0.0-dev";
44
+ var SDK_VERSION = true ? "0.1.77" : "0.0.0-dev";
45
45
  var CLIENT_VERSION_HEADER = "x-unifold-client-version";
46
46
  var CLIENT_USER_AGENT_HEADER = "x-unifold-client-user-agent";
47
47
  function detectRuntime() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unifold/core",
3
- "version": "0.1.76",
3
+ "version": "0.1.77",
4
4
  "description": "Unifold Core SDK - Core types, API client, and business logic",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",