@peable.to/contracts 5.1.0 → 5.3.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.
@@ -4,7 +4,8 @@
4
4
  // the wallet import them without the schemas (`@peable.to/contracts/vocabulary`,
5
5
  // re-exported by `@peable.to/shared-types`).
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.PAYMENT_LINK_LIMITS = exports.CHECKOUT_SESSION_ID_TEMPLATE = exports.CHECKOUT_LIMITS = exports.CHECKOUT_TAX_ID_TYPES = exports.CHECKOUT_CUSTOM_FIELD_TYPES = exports.CHECKOUT_BILLING_ADDRESS_COLLECTIONS = exports.CHECKOUT_CUSTOMER_CREATIONS = exports.CHECKOUT_SUBMIT_TYPES = exports.CHECKOUT_LOCALES = exports.CHECKOUT_UI_MODES = exports.CHECKOUT_PAYMENT_STATUSES = exports.CHECKOUT_SESSION_STATUSES = exports.CHECKOUT_SESSION_MODES = exports.FAIRCOIN_UNAVAILABLE_REASONS = void 0;
7
+ exports.PAYMENT_LINK_LIMITS = exports.CHECKOUT_SESSION_ID_TEMPLATE = exports.CHECKOUT_LIMITS = exports.CHECKOUT_TAX_ID_TYPES = exports.CHECKOUT_CUSTOM_FIELD_TYPES = exports.CHECKOUT_BILLING_ADDRESS_COLLECTIONS = exports.CHECKOUT_CUSTOMER_CREATIONS = exports.CHECKOUT_SUBMIT_TYPES = exports.CHECKOUT_RTL_LOCALES = exports.CHECKOUT_LOCALES = exports.CHECKOUT_UI_MODES = exports.CHECKOUT_PAYMENT_STATUSES = exports.CHECKOUT_SESSION_STATUSES = exports.CHECKOUT_SESSION_MODES = exports.FAIRCOIN_UNAVAILABLE_REASONS = void 0;
8
+ exports.checkoutLocaleDirection = checkoutLocaleDirection;
8
9
  /**
9
10
  * Why FairCoin cannot be paid with on an order right now (ADR 0021). It is
10
11
  * still offered — never hidden — and says why:
@@ -26,8 +27,40 @@ exports.CHECKOUT_SESSION_MODES = ['payment', 'setup', 'subscription'];
26
27
  exports.CHECKOUT_SESSION_STATUSES = ['open', 'complete', 'expired'];
27
28
  exports.CHECKOUT_PAYMENT_STATUSES = ['paid', 'unpaid', 'no_payment_required'];
28
29
  exports.CHECKOUT_UI_MODES = ['hosted', 'embedded'];
29
- /** The languages the hosted and embedded checkout speak. */
30
- exports.CHECKOUT_LOCALES = ['en', 'es', 'fr', 'de', 'it', 'pt'];
30
+ /**
31
+ * The languages every payer surface speaks — ONE set: the Pay with Peable
32
+ * sheet (`@peable.to/sdk/checkout/ui`), the hosted and embedded checkout, the
33
+ * hosted invoice and portal pages, and the customer emails. Each surface keeps
34
+ * its own catalog (their strings differ, and Metro does not tree-shake), typed
35
+ * `Record<CheckoutLocale, …>`, so a language added here is a compile error on
36
+ * every surface until it is translated.
37
+ *
38
+ * Language codes: `pt` is Brazilian Portuguese (`pt-BR`), `zh` Simplified
39
+ * Chinese (`zh-Hans`). A BCP 47 tag resolves to its language.
40
+ */
41
+ exports.CHECKOUT_LOCALES = [
42
+ 'ar',
43
+ 'bn',
44
+ 'ca',
45
+ 'de',
46
+ 'en',
47
+ 'es',
48
+ 'fr',
49
+ 'hi',
50
+ 'id',
51
+ 'it',
52
+ 'ja',
53
+ 'pt',
54
+ 'ru',
55
+ 'tr',
56
+ 'zh',
57
+ ];
58
+ /** The locales written right to left: a surface sets `dir="rtl"` for them. */
59
+ exports.CHECKOUT_RTL_LOCALES = ['ar'];
60
+ /** The text direction a locale is written in. */
61
+ function checkoutLocaleDirection(locale) {
62
+ return exports.CHECKOUT_RTL_LOCALES.includes(locale) ? 'rtl' : 'ltr';
63
+ }
31
64
  exports.CHECKOUT_SUBMIT_TYPES = ['auto', 'pay', 'book', 'donate'];
32
65
  exports.CHECKOUT_CUSTOMER_CREATIONS = ['always', 'if_required'];
33
66
  exports.CHECKOUT_BILLING_ADDRESS_COLLECTIONS = ['auto', 'required'];
@@ -37,3 +37,4 @@ __exportStar(require("./files"), exports);
37
37
  __exportStar(require("./identity"), exports);
38
38
  __exportStar(require("./merchants"), exports);
39
39
  __exportStar(require("./paymentMethodConfigurations"), exports);
40
+ __exportStar(require("./realtime"), exports);
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PAYER_SOCKET_PATH = void 0;
4
+ /**
5
+ * The PAYER realtime endpoint: the Socket.IO path a payer's browser opens to
6
+ * hear its payment move, by the intent's `client_secret` alone.
7
+ *
8
+ * It is a SEPARATE Socket.IO server from the gateway's default `/socket.io/`
9
+ * one, because Socket.IO decides CORS per server (per engine), before it
10
+ * knows which namespace or token a connection carries. The payer server
11
+ * answers any origin and takes no credentials — the same rule as the payer
12
+ * HTTP routes (`lib/payerCors.ts`): a merchant's own site runs Pay with
13
+ * Peable, and the capability is the secret, never the page. The default
14
+ * server keeps the Oxy origins (`createOxySocketCors`) for every socket that
15
+ * carries an Oxy identity.
16
+ */
17
+ exports.PAYER_SOCKET_PATH = '/payer-socket.io';
@@ -23,8 +23,40 @@ export const CHECKOUT_SESSION_MODES = ['payment', 'setup', 'subscription'];
23
23
  export const CHECKOUT_SESSION_STATUSES = ['open', 'complete', 'expired'];
24
24
  export const CHECKOUT_PAYMENT_STATUSES = ['paid', 'unpaid', 'no_payment_required'];
25
25
  export const CHECKOUT_UI_MODES = ['hosted', 'embedded'];
26
- /** The languages the hosted and embedded checkout speak. */
27
- export const CHECKOUT_LOCALES = ['en', 'es', 'fr', 'de', 'it', 'pt'];
26
+ /**
27
+ * The languages every payer surface speaks — ONE set: the Pay with Peable
28
+ * sheet (`@peable.to/sdk/checkout/ui`), the hosted and embedded checkout, the
29
+ * hosted invoice and portal pages, and the customer emails. Each surface keeps
30
+ * its own catalog (their strings differ, and Metro does not tree-shake), typed
31
+ * `Record<CheckoutLocale, …>`, so a language added here is a compile error on
32
+ * every surface until it is translated.
33
+ *
34
+ * Language codes: `pt` is Brazilian Portuguese (`pt-BR`), `zh` Simplified
35
+ * Chinese (`zh-Hans`). A BCP 47 tag resolves to its language.
36
+ */
37
+ export const CHECKOUT_LOCALES = [
38
+ 'ar',
39
+ 'bn',
40
+ 'ca',
41
+ 'de',
42
+ 'en',
43
+ 'es',
44
+ 'fr',
45
+ 'hi',
46
+ 'id',
47
+ 'it',
48
+ 'ja',
49
+ 'pt',
50
+ 'ru',
51
+ 'tr',
52
+ 'zh',
53
+ ];
54
+ /** The locales written right to left: a surface sets `dir="rtl"` for them. */
55
+ export const CHECKOUT_RTL_LOCALES = ['ar'];
56
+ /** The text direction a locale is written in. */
57
+ export function checkoutLocaleDirection(locale) {
58
+ return CHECKOUT_RTL_LOCALES.includes(locale) ? 'rtl' : 'ltr';
59
+ }
28
60
  export const CHECKOUT_SUBMIT_TYPES = ['auto', 'pay', 'book', 'donate'];
29
61
  export const CHECKOUT_CUSTOMER_CREATIONS = ['always', 'if_required'];
30
62
  export const CHECKOUT_BILLING_ADDRESS_COLLECTIONS = ['auto', 'required'];
@@ -21,3 +21,4 @@ export * from './files.js';
21
21
  export * from './identity.js';
22
22
  export * from './merchants.js';
23
23
  export * from './paymentMethodConfigurations.js';
24
+ export * from './realtime.js';
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The PAYER realtime endpoint: the Socket.IO path a payer's browser opens to
3
+ * hear its payment move, by the intent's `client_secret` alone.
4
+ *
5
+ * It is a SEPARATE Socket.IO server from the gateway's default `/socket.io/`
6
+ * one, because Socket.IO decides CORS per server (per engine), before it
7
+ * knows which namespace or token a connection carries. The payer server
8
+ * answers any origin and takes no credentials — the same rule as the payer
9
+ * HTTP routes (`lib/payerCors.ts`): a merchant's own site runs Pay with
10
+ * Peable, and the capability is the secret, never the page. The default
11
+ * server keeps the Oxy origins (`createOxySocketCors`) for every socket that
12
+ * carries an Oxy identity.
13
+ */
14
+ export const PAYER_SOCKET_PATH = '/payer-socket.io';
@@ -134,12 +134,21 @@ export declare const checkoutSessionSchema: z.ZodObject<{
134
134
  embedded: "embedded";
135
135
  }>;
136
136
  locale: z.ZodNullable<z.ZodEnum<{
137
+ id: "id";
138
+ ar: "ar";
139
+ bn: "bn";
140
+ ca: "ca";
141
+ de: "de";
137
142
  en: "en";
138
143
  es: "es";
139
144
  fr: "fr";
140
- de: "de";
145
+ hi: "hi";
141
146
  it: "it";
147
+ ja: "ja";
142
148
  pt: "pt";
149
+ ru: "ru";
150
+ tr: "tr";
151
+ zh: "zh";
143
152
  }>>;
144
153
  submit_type: z.ZodEnum<{
145
154
  auto: "auto";
@@ -410,12 +419,21 @@ export declare const checkoutSessionPublicSchema: z.ZodObject<{
410
419
  embedded: "embedded";
411
420
  }>;
412
421
  locale: z.ZodNullable<z.ZodEnum<{
422
+ id: "id";
423
+ ar: "ar";
424
+ bn: "bn";
425
+ ca: "ca";
426
+ de: "de";
413
427
  en: "en";
414
428
  es: "es";
415
429
  fr: "fr";
416
- de: "de";
430
+ hi: "hi";
417
431
  it: "it";
432
+ ja: "ja";
418
433
  pt: "pt";
434
+ ru: "ru";
435
+ tr: "tr";
436
+ zh: "zh";
419
437
  }>>;
420
438
  submit_type: z.ZodEnum<{
421
439
  auto: "auto";
@@ -575,14 +593,23 @@ export declare const createCheckoutSessionParams: z.ZodObject<{
575
593
  faircoin: "faircoin";
576
594
  }>>>;
577
595
  locale: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
596
+ id: "id";
597
+ ar: "ar";
598
+ bn: "bn";
599
+ ca: "ca";
600
+ de: "de";
578
601
  en: "en";
579
602
  es: "es";
580
603
  fr: "fr";
581
- de: "de";
604
+ hi: "hi";
582
605
  it: "it";
606
+ ja: "ja";
583
607
  pt: "pt";
608
+ ru: "ru";
609
+ tr: "tr";
610
+ zh: "zh";
584
611
  auto: "auto";
585
- }>, z.ZodTransform<"en" | "es" | "fr" | "de" | "it" | "pt" | null, "en" | "es" | "fr" | "de" | "it" | "pt" | "auto">>>;
612
+ }>, z.ZodTransform<"id" | "ar" | "bn" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "pt" | "ru" | "tr" | "zh" | null, "id" | "ar" | "bn" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "pt" | "ru" | "tr" | "zh" | "auto">>>;
586
613
  ui_mode: z.ZodOptional<z.ZodEnum<{
587
614
  hosted: "hosted";
588
615
  embedded: "embedded";
@@ -868,14 +895,23 @@ export declare const checkoutSessionRoutes: readonly [{
868
895
  faircoin: "faircoin";
869
896
  }>>>;
870
897
  locale: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
898
+ id: "id";
899
+ ar: "ar";
900
+ bn: "bn";
901
+ ca: "ca";
902
+ de: "de";
871
903
  en: "en";
872
904
  es: "es";
873
905
  fr: "fr";
874
- de: "de";
906
+ hi: "hi";
875
907
  it: "it";
908
+ ja: "ja";
876
909
  pt: "pt";
910
+ ru: "ru";
911
+ tr: "tr";
912
+ zh: "zh";
877
913
  auto: "auto";
878
- }>, z.ZodTransform<"en" | "es" | "fr" | "de" | "it" | "pt" | null, "en" | "es" | "fr" | "de" | "it" | "pt" | "auto">>>;
914
+ }>, z.ZodTransform<"id" | "ar" | "bn" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "pt" | "ru" | "tr" | "zh" | null, "id" | "ar" | "bn" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "pt" | "ru" | "tr" | "zh" | "auto">>>;
879
915
  ui_mode: z.ZodOptional<z.ZodEnum<{
880
916
  hosted: "hosted";
881
917
  embedded: "embedded";
@@ -1157,12 +1193,21 @@ export declare const checkoutSessionRoutes: readonly [{
1157
1193
  embedded: "embedded";
1158
1194
  }>;
1159
1195
  locale: z.ZodNullable<z.ZodEnum<{
1196
+ id: "id";
1197
+ ar: "ar";
1198
+ bn: "bn";
1199
+ ca: "ca";
1200
+ de: "de";
1160
1201
  en: "en";
1161
1202
  es: "es";
1162
1203
  fr: "fr";
1163
- de: "de";
1204
+ hi: "hi";
1164
1205
  it: "it";
1206
+ ja: "ja";
1165
1207
  pt: "pt";
1208
+ ru: "ru";
1209
+ tr: "tr";
1210
+ zh: "zh";
1166
1211
  }>>;
1167
1212
  submit_type: z.ZodEnum<{
1168
1213
  auto: "auto";
@@ -1385,12 +1430,21 @@ export declare const checkoutSessionRoutes: readonly [{
1385
1430
  embedded: "embedded";
1386
1431
  }>;
1387
1432
  locale: z.ZodNullable<z.ZodEnum<{
1433
+ id: "id";
1434
+ ar: "ar";
1435
+ bn: "bn";
1436
+ ca: "ca";
1437
+ de: "de";
1388
1438
  en: "en";
1389
1439
  es: "es";
1390
1440
  fr: "fr";
1391
- de: "de";
1441
+ hi: "hi";
1392
1442
  it: "it";
1443
+ ja: "ja";
1393
1444
  pt: "pt";
1445
+ ru: "ru";
1446
+ tr: "tr";
1447
+ zh: "zh";
1394
1448
  }>>;
1395
1449
  submit_type: z.ZodEnum<{
1396
1450
  auto: "auto";
@@ -1594,12 +1648,21 @@ export declare const checkoutSessionRoutes: readonly [{
1594
1648
  embedded: "embedded";
1595
1649
  }>;
1596
1650
  locale: z.ZodNullable<z.ZodEnum<{
1651
+ id: "id";
1652
+ ar: "ar";
1653
+ bn: "bn";
1654
+ ca: "ca";
1655
+ de: "de";
1597
1656
  en: "en";
1598
1657
  es: "es";
1599
1658
  fr: "fr";
1600
- de: "de";
1659
+ hi: "hi";
1601
1660
  it: "it";
1661
+ ja: "ja";
1602
1662
  pt: "pt";
1663
+ ru: "ru";
1664
+ tr: "tr";
1665
+ zh: "zh";
1603
1666
  }>>;
1604
1667
  submit_type: z.ZodEnum<{
1605
1668
  auto: "auto";
@@ -1803,12 +1866,21 @@ export declare const checkoutSessionRoutes: readonly [{
1803
1866
  embedded: "embedded";
1804
1867
  }>;
1805
1868
  locale: z.ZodNullable<z.ZodEnum<{
1869
+ id: "id";
1870
+ ar: "ar";
1871
+ bn: "bn";
1872
+ ca: "ca";
1873
+ de: "de";
1806
1874
  en: "en";
1807
1875
  es: "es";
1808
1876
  fr: "fr";
1809
- de: "de";
1877
+ hi: "hi";
1810
1878
  it: "it";
1879
+ ja: "ja";
1811
1880
  pt: "pt";
1881
+ ru: "ru";
1882
+ tr: "tr";
1883
+ zh: "zh";
1812
1884
  }>>;
1813
1885
  submit_type: z.ZodEnum<{
1814
1886
  auto: "auto";
@@ -2011,12 +2083,21 @@ export declare const checkoutSessionRoutes: readonly [{
2011
2083
  embedded: "embedded";
2012
2084
  }>;
2013
2085
  locale: z.ZodNullable<z.ZodEnum<{
2086
+ id: "id";
2087
+ ar: "ar";
2088
+ bn: "bn";
2089
+ ca: "ca";
2090
+ de: "de";
2014
2091
  en: "en";
2015
2092
  es: "es";
2016
2093
  fr: "fr";
2017
- de: "de";
2094
+ hi: "hi";
2018
2095
  it: "it";
2096
+ ja: "ja";
2019
2097
  pt: "pt";
2098
+ ru: "ru";
2099
+ tr: "tr";
2100
+ zh: "zh";
2020
2101
  }>>;
2021
2102
  submit_type: z.ZodEnum<{
2022
2103
  auto: "auto";
@@ -2359,12 +2440,21 @@ export declare const checkoutSessionRoutes: readonly [{
2359
2440
  embedded: "embedded";
2360
2441
  }>;
2361
2442
  locale: z.ZodNullable<z.ZodEnum<{
2443
+ id: "id";
2444
+ ar: "ar";
2445
+ bn: "bn";
2446
+ ca: "ca";
2447
+ de: "de";
2362
2448
  en: "en";
2363
2449
  es: "es";
2364
2450
  fr: "fr";
2365
- de: "de";
2451
+ hi: "hi";
2366
2452
  it: "it";
2453
+ ja: "ja";
2367
2454
  pt: "pt";
2455
+ ru: "ru";
2456
+ tr: "tr";
2457
+ zh: "zh";
2368
2458
  }>>;
2369
2459
  submit_type: z.ZodEnum<{
2370
2460
  auto: "auto";
@@ -2684,12 +2774,21 @@ export declare const checkoutSessionRoutes: readonly [{
2684
2774
  embedded: "embedded";
2685
2775
  }>;
2686
2776
  locale: z.ZodNullable<z.ZodEnum<{
2777
+ id: "id";
2778
+ ar: "ar";
2779
+ bn: "bn";
2780
+ ca: "ca";
2781
+ de: "de";
2687
2782
  en: "en";
2688
2783
  es: "es";
2689
2784
  fr: "fr";
2690
- de: "de";
2785
+ hi: "hi";
2691
2786
  it: "it";
2787
+ ja: "ja";
2692
2788
  pt: "pt";
2789
+ ru: "ru";
2790
+ tr: "tr";
2791
+ zh: "zh";
2693
2792
  }>>;
2694
2793
  submit_type: z.ZodEnum<{
2695
2794
  auto: "auto";
@@ -2966,12 +3065,21 @@ export declare const checkoutSessionRoutes: readonly [{
2966
3065
  embedded: "embedded";
2967
3066
  }>;
2968
3067
  locale: z.ZodNullable<z.ZodEnum<{
3068
+ id: "id";
3069
+ ar: "ar";
3070
+ bn: "bn";
3071
+ ca: "ca";
3072
+ de: "de";
2969
3073
  en: "en";
2970
3074
  es: "es";
2971
3075
  fr: "fr";
2972
- de: "de";
3076
+ hi: "hi";
2973
3077
  it: "it";
3078
+ ja: "ja";
2974
3079
  pt: "pt";
3080
+ ru: "ru";
3081
+ tr: "tr";
3082
+ zh: "zh";
2975
3083
  }>>;
2976
3084
  submit_type: z.ZodEnum<{
2977
3085
  auto: "auto";
@@ -3171,12 +3279,21 @@ export declare const checkoutSessionRoutes: readonly [{
3171
3279
  embedded: "embedded";
3172
3280
  }>;
3173
3281
  locale: z.ZodNullable<z.ZodEnum<{
3282
+ id: "id";
3283
+ ar: "ar";
3284
+ bn: "bn";
3285
+ ca: "ca";
3286
+ de: "de";
3174
3287
  en: "en";
3175
3288
  es: "es";
3176
3289
  fr: "fr";
3177
- de: "de";
3290
+ hi: "hi";
3178
3291
  it: "it";
3292
+ ja: "ja";
3179
3293
  pt: "pt";
3294
+ ru: "ru";
3295
+ tr: "tr";
3296
+ zh: "zh";
3180
3297
  }>>;
3181
3298
  submit_type: z.ZodEnum<{
3182
3299
  auto: "auto";
@@ -24,14 +24,23 @@ export declare const checkoutRoutes: readonly [{
24
24
  faircoin: "faircoin";
25
25
  }>>>;
26
26
  locale: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodEnum<{
27
+ id: "id";
28
+ ar: "ar";
29
+ bn: "bn";
30
+ ca: "ca";
31
+ de: "de";
27
32
  en: "en";
28
33
  es: "es";
29
34
  fr: "fr";
30
- de: "de";
35
+ hi: "hi";
31
36
  it: "it";
37
+ ja: "ja";
32
38
  pt: "pt";
39
+ ru: "ru";
40
+ tr: "tr";
41
+ zh: "zh";
33
42
  auto: "auto";
34
- }>, import("zod").ZodTransform<"en" | "es" | "fr" | "de" | "it" | "pt" | null, "en" | "es" | "fr" | "de" | "it" | "pt" | "auto">>>;
43
+ }>, import("zod").ZodTransform<"id" | "ar" | "bn" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "pt" | "ru" | "tr" | "zh" | null, "id" | "ar" | "bn" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "pt" | "ru" | "tr" | "zh" | "auto">>>;
35
44
  ui_mode: import("zod").ZodOptional<import("zod").ZodEnum<{
36
45
  hosted: "hosted";
37
46
  embedded: "embedded";
@@ -313,12 +322,21 @@ export declare const checkoutRoutes: readonly [{
313
322
  embedded: "embedded";
314
323
  }>;
315
324
  locale: import("zod").ZodNullable<import("zod").ZodEnum<{
325
+ id: "id";
326
+ ar: "ar";
327
+ bn: "bn";
328
+ ca: "ca";
329
+ de: "de";
316
330
  en: "en";
317
331
  es: "es";
318
332
  fr: "fr";
319
- de: "de";
333
+ hi: "hi";
320
334
  it: "it";
335
+ ja: "ja";
321
336
  pt: "pt";
337
+ ru: "ru";
338
+ tr: "tr";
339
+ zh: "zh";
322
340
  }>>;
323
341
  submit_type: import("zod").ZodEnum<{
324
342
  auto: "auto";
@@ -541,12 +559,21 @@ export declare const checkoutRoutes: readonly [{
541
559
  embedded: "embedded";
542
560
  }>;
543
561
  locale: import("zod").ZodNullable<import("zod").ZodEnum<{
562
+ id: "id";
563
+ ar: "ar";
564
+ bn: "bn";
565
+ ca: "ca";
566
+ de: "de";
544
567
  en: "en";
545
568
  es: "es";
546
569
  fr: "fr";
547
- de: "de";
570
+ hi: "hi";
548
571
  it: "it";
572
+ ja: "ja";
549
573
  pt: "pt";
574
+ ru: "ru";
575
+ tr: "tr";
576
+ zh: "zh";
550
577
  }>>;
551
578
  submit_type: import("zod").ZodEnum<{
552
579
  auto: "auto";
@@ -750,12 +777,21 @@ export declare const checkoutRoutes: readonly [{
750
777
  embedded: "embedded";
751
778
  }>;
752
779
  locale: import("zod").ZodNullable<import("zod").ZodEnum<{
780
+ id: "id";
781
+ ar: "ar";
782
+ bn: "bn";
783
+ ca: "ca";
784
+ de: "de";
753
785
  en: "en";
754
786
  es: "es";
755
787
  fr: "fr";
756
- de: "de";
788
+ hi: "hi";
757
789
  it: "it";
790
+ ja: "ja";
758
791
  pt: "pt";
792
+ ru: "ru";
793
+ tr: "tr";
794
+ zh: "zh";
759
795
  }>>;
760
796
  submit_type: import("zod").ZodEnum<{
761
797
  auto: "auto";
@@ -959,12 +995,21 @@ export declare const checkoutRoutes: readonly [{
959
995
  embedded: "embedded";
960
996
  }>;
961
997
  locale: import("zod").ZodNullable<import("zod").ZodEnum<{
998
+ id: "id";
999
+ ar: "ar";
1000
+ bn: "bn";
1001
+ ca: "ca";
1002
+ de: "de";
962
1003
  en: "en";
963
1004
  es: "es";
964
1005
  fr: "fr";
965
- de: "de";
1006
+ hi: "hi";
966
1007
  it: "it";
1008
+ ja: "ja";
967
1009
  pt: "pt";
1010
+ ru: "ru";
1011
+ tr: "tr";
1012
+ zh: "zh";
968
1013
  }>>;
969
1014
  submit_type: import("zod").ZodEnum<{
970
1015
  auto: "auto";
@@ -1167,12 +1212,21 @@ export declare const checkoutRoutes: readonly [{
1167
1212
  embedded: "embedded";
1168
1213
  }>;
1169
1214
  locale: import("zod").ZodNullable<import("zod").ZodEnum<{
1215
+ id: "id";
1216
+ ar: "ar";
1217
+ bn: "bn";
1218
+ ca: "ca";
1219
+ de: "de";
1170
1220
  en: "en";
1171
1221
  es: "es";
1172
1222
  fr: "fr";
1173
- de: "de";
1223
+ hi: "hi";
1174
1224
  it: "it";
1225
+ ja: "ja";
1175
1226
  pt: "pt";
1227
+ ru: "ru";
1228
+ tr: "tr";
1229
+ zh: "zh";
1176
1230
  }>>;
1177
1231
  submit_type: import("zod").ZodEnum<{
1178
1232
  auto: "auto";
@@ -1515,12 +1569,21 @@ export declare const checkoutRoutes: readonly [{
1515
1569
  embedded: "embedded";
1516
1570
  }>;
1517
1571
  locale: import("zod").ZodNullable<import("zod").ZodEnum<{
1572
+ id: "id";
1573
+ ar: "ar";
1574
+ bn: "bn";
1575
+ ca: "ca";
1576
+ de: "de";
1518
1577
  en: "en";
1519
1578
  es: "es";
1520
1579
  fr: "fr";
1521
- de: "de";
1580
+ hi: "hi";
1522
1581
  it: "it";
1582
+ ja: "ja";
1523
1583
  pt: "pt";
1584
+ ru: "ru";
1585
+ tr: "tr";
1586
+ zh: "zh";
1524
1587
  }>>;
1525
1588
  submit_type: import("zod").ZodEnum<{
1526
1589
  auto: "auto";
@@ -1840,12 +1903,21 @@ export declare const checkoutRoutes: readonly [{
1840
1903
  embedded: "embedded";
1841
1904
  }>;
1842
1905
  locale: import("zod").ZodNullable<import("zod").ZodEnum<{
1906
+ id: "id";
1907
+ ar: "ar";
1908
+ bn: "bn";
1909
+ ca: "ca";
1910
+ de: "de";
1843
1911
  en: "en";
1844
1912
  es: "es";
1845
1913
  fr: "fr";
1846
- de: "de";
1914
+ hi: "hi";
1847
1915
  it: "it";
1916
+ ja: "ja";
1848
1917
  pt: "pt";
1918
+ ru: "ru";
1919
+ tr: "tr";
1920
+ zh: "zh";
1849
1921
  }>>;
1850
1922
  submit_type: import("zod").ZodEnum<{
1851
1923
  auto: "auto";
@@ -2122,12 +2194,21 @@ export declare const checkoutRoutes: readonly [{
2122
2194
  embedded: "embedded";
2123
2195
  }>;
2124
2196
  locale: import("zod").ZodNullable<import("zod").ZodEnum<{
2197
+ id: "id";
2198
+ ar: "ar";
2199
+ bn: "bn";
2200
+ ca: "ca";
2201
+ de: "de";
2125
2202
  en: "en";
2126
2203
  es: "es";
2127
2204
  fr: "fr";
2128
- de: "de";
2205
+ hi: "hi";
2129
2206
  it: "it";
2207
+ ja: "ja";
2130
2208
  pt: "pt";
2209
+ ru: "ru";
2210
+ tr: "tr";
2211
+ zh: "zh";
2131
2212
  }>>;
2132
2213
  submit_type: import("zod").ZodEnum<{
2133
2214
  auto: "auto";
@@ -2327,12 +2408,21 @@ export declare const checkoutRoutes: readonly [{
2327
2408
  embedded: "embedded";
2328
2409
  }>;
2329
2410
  locale: import("zod").ZodNullable<import("zod").ZodEnum<{
2411
+ id: "id";
2412
+ ar: "ar";
2413
+ bn: "bn";
2414
+ ca: "ca";
2415
+ de: "de";
2330
2416
  en: "en";
2331
2417
  es: "es";
2332
2418
  fr: "fr";
2333
- de: "de";
2419
+ hi: "hi";
2334
2420
  it: "it";
2421
+ ja: "ja";
2335
2422
  pt: "pt";
2423
+ ru: "ru";
2424
+ tr: "tr";
2425
+ zh: "zh";
2336
2426
  }>>;
2337
2427
  submit_type: import("zod").ZodEnum<{
2338
2428
  auto: "auto";
@@ -2428,14 +2518,23 @@ export declare const checkoutRoutes: readonly [{
2428
2518
  donate: "donate";
2429
2519
  }>>;
2430
2520
  locale: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodEnum<{
2521
+ id: "id";
2522
+ ar: "ar";
2523
+ bn: "bn";
2524
+ ca: "ca";
2525
+ de: "de";
2431
2526
  en: "en";
2432
2527
  es: "es";
2433
2528
  fr: "fr";
2434
- de: "de";
2529
+ hi: "hi";
2435
2530
  it: "it";
2531
+ ja: "ja";
2436
2532
  pt: "pt";
2533
+ ru: "ru";
2534
+ tr: "tr";
2535
+ zh: "zh";
2437
2536
  auto: "auto";
2438
- }>, import("zod").ZodTransform<"en" | "es" | "fr" | "de" | "it" | "pt" | null, "en" | "es" | "fr" | "de" | "it" | "pt" | "auto">>>;
2537
+ }>, import("zod").ZodTransform<"id" | "ar" | "bn" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "pt" | "ru" | "tr" | "zh" | null, "id" | "ar" | "bn" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "pt" | "ru" | "tr" | "zh" | "auto">>>;
2439
2538
  billing_address_collection: import("zod").ZodOptional<import("zod").ZodEnum<{
2440
2539
  auto: "auto";
2441
2540
  required: "required";
@@ -2650,12 +2749,21 @@ export declare const checkoutRoutes: readonly [{
2650
2749
  expires_at: import("zod").ZodNullable<import("zod").ZodNumber>;
2651
2750
  }, import("zod/v4/core").$strict>>;
2652
2751
  locale: import("zod").ZodNullable<import("zod").ZodEnum<{
2752
+ id: "id";
2753
+ ar: "ar";
2754
+ bn: "bn";
2755
+ ca: "ca";
2756
+ de: "de";
2653
2757
  en: "en";
2654
2758
  es: "es";
2655
2759
  fr: "fr";
2656
- de: "de";
2760
+ hi: "hi";
2657
2761
  it: "it";
2762
+ ja: "ja";
2658
2763
  pt: "pt";
2764
+ ru: "ru";
2765
+ tr: "tr";
2766
+ zh: "zh";
2659
2767
  }>>;
2660
2768
  }, import("zod/v4/core").$strict>;
2661
2769
  readonly status: 201;
@@ -2849,12 +2957,21 @@ export declare const checkoutRoutes: readonly [{
2849
2957
  expires_at: import("zod").ZodNullable<import("zod").ZodNumber>;
2850
2958
  }, import("zod/v4/core").$strict>>;
2851
2959
  locale: import("zod").ZodNullable<import("zod").ZodEnum<{
2960
+ id: "id";
2961
+ ar: "ar";
2962
+ bn: "bn";
2963
+ ca: "ca";
2964
+ de: "de";
2852
2965
  en: "en";
2853
2966
  es: "es";
2854
2967
  fr: "fr";
2855
- de: "de";
2968
+ hi: "hi";
2856
2969
  it: "it";
2970
+ ja: "ja";
2857
2971
  pt: "pt";
2972
+ ru: "ru";
2973
+ tr: "tr";
2974
+ zh: "zh";
2858
2975
  }>>;
2859
2976
  }, import("zod/v4/core").$strict>>;
2860
2977
  has_more: import("zod").ZodBoolean;
@@ -3033,12 +3150,21 @@ export declare const checkoutRoutes: readonly [{
3033
3150
  expires_at: import("zod").ZodNullable<import("zod").ZodNumber>;
3034
3151
  }, import("zod/v4/core").$strict>>;
3035
3152
  locale: import("zod").ZodNullable<import("zod").ZodEnum<{
3153
+ id: "id";
3154
+ ar: "ar";
3155
+ bn: "bn";
3156
+ ca: "ca";
3157
+ de: "de";
3036
3158
  en: "en";
3037
3159
  es: "es";
3038
3160
  fr: "fr";
3039
- de: "de";
3161
+ hi: "hi";
3040
3162
  it: "it";
3163
+ ja: "ja";
3041
3164
  pt: "pt";
3165
+ ru: "ru";
3166
+ tr: "tr";
3167
+ zh: "zh";
3042
3168
  }>>;
3043
3169
  }, import("zod/v4/core").$strict>;
3044
3170
  readonly sdk: "paymentLinks.retrieve";
@@ -3120,14 +3246,23 @@ export declare const checkoutRoutes: readonly [{
3120
3246
  donate: "donate";
3121
3247
  }>>;
3122
3248
  locale: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodEnum<{
3249
+ id: "id";
3250
+ ar: "ar";
3251
+ bn: "bn";
3252
+ ca: "ca";
3253
+ de: "de";
3123
3254
  en: "en";
3124
3255
  es: "es";
3125
3256
  fr: "fr";
3126
- de: "de";
3257
+ hi: "hi";
3127
3258
  it: "it";
3259
+ ja: "ja";
3128
3260
  pt: "pt";
3261
+ ru: "ru";
3262
+ tr: "tr";
3263
+ zh: "zh";
3129
3264
  auto: "auto";
3130
- }>, import("zod").ZodTransform<"en" | "es" | "fr" | "de" | "it" | "pt" | null, "en" | "es" | "fr" | "de" | "it" | "pt" | "auto">>>;
3265
+ }>, import("zod").ZodTransform<"id" | "ar" | "bn" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "pt" | "ru" | "tr" | "zh" | null, "id" | "ar" | "bn" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "pt" | "ru" | "tr" | "zh" | "auto">>>;
3131
3266
  billing_address_collection: import("zod").ZodOptional<import("zod").ZodEnum<{
3132
3267
  auto: "auto";
3133
3268
  required: "required";
@@ -3304,12 +3439,21 @@ export declare const checkoutRoutes: readonly [{
3304
3439
  expires_at: import("zod").ZodNullable<import("zod").ZodNumber>;
3305
3440
  }, import("zod/v4/core").$strict>>;
3306
3441
  locale: import("zod").ZodNullable<import("zod").ZodEnum<{
3442
+ id: "id";
3443
+ ar: "ar";
3444
+ bn: "bn";
3445
+ ca: "ca";
3446
+ de: "de";
3307
3447
  en: "en";
3308
3448
  es: "es";
3309
3449
  fr: "fr";
3310
- de: "de";
3450
+ hi: "hi";
3311
3451
  it: "it";
3452
+ ja: "ja";
3312
3453
  pt: "pt";
3454
+ ru: "ru";
3455
+ tr: "tr";
3456
+ zh: "zh";
3313
3457
  }>>;
3314
3458
  }, import("zod/v4/core").$strict>;
3315
3459
  readonly sdk: "paymentLinks.update";
@@ -3496,12 +3640,21 @@ export declare const checkoutRoutes: readonly [{
3496
3640
  expires_at: import("zod").ZodNullable<import("zod").ZodNumber>;
3497
3641
  }, import("zod/v4/core").$strict>>;
3498
3642
  locale: import("zod").ZodNullable<import("zod").ZodEnum<{
3643
+ id: "id";
3644
+ ar: "ar";
3645
+ bn: "bn";
3646
+ ca: "ca";
3647
+ de: "de";
3499
3648
  en: "en";
3500
3649
  es: "es";
3501
3650
  fr: "fr";
3502
- de: "de";
3651
+ hi: "hi";
3503
3652
  it: "it";
3653
+ ja: "ja";
3504
3654
  pt: "pt";
3655
+ ru: "ru";
3656
+ tr: "tr";
3657
+ zh: "zh";
3505
3658
  }>>;
3506
3659
  }, import("zod/v4/core").$strict>;
3507
3660
  }, {
@@ -180,12 +180,21 @@ export declare const paymentLinkSchema: z.ZodObject<{
180
180
  expires_at: z.ZodNullable<z.ZodNumber>;
181
181
  }, z.core.$strict>>;
182
182
  locale: z.ZodNullable<z.ZodEnum<{
183
+ id: "id";
184
+ ar: "ar";
185
+ bn: "bn";
186
+ ca: "ca";
187
+ de: "de";
183
188
  en: "en";
184
189
  es: "es";
185
190
  fr: "fr";
186
- de: "de";
191
+ hi: "hi";
187
192
  it: "it";
193
+ ja: "ja";
188
194
  pt: "pt";
195
+ ru: "ru";
196
+ tr: "tr";
197
+ zh: "zh";
189
198
  }>>;
190
199
  }, z.core.$strict>;
191
200
  export type PaymentLink = Expand<z.output<typeof paymentLinkSchema>>;
@@ -296,12 +305,21 @@ export declare const publicPaymentLinkSchema: z.ZodObject<{
296
305
  expires_at: z.ZodNullable<z.ZodNumber>;
297
306
  }, z.core.$strict>>;
298
307
  locale: z.ZodNullable<z.ZodEnum<{
308
+ id: "id";
309
+ ar: "ar";
310
+ bn: "bn";
311
+ ca: "ca";
312
+ de: "de";
299
313
  en: "en";
300
314
  es: "es";
301
315
  fr: "fr";
302
- de: "de";
316
+ hi: "hi";
303
317
  it: "it";
318
+ ja: "ja";
304
319
  pt: "pt";
320
+ ru: "ru";
321
+ tr: "tr";
322
+ zh: "zh";
305
323
  }>>;
306
324
  }, z.core.$strict>;
307
325
  export type PublicPaymentLink = Expand<z.output<typeof publicPaymentLinkSchema>>;
@@ -372,14 +390,23 @@ export declare const createPaymentLinkParams: z.ZodObject<{
372
390
  donate: "donate";
373
391
  }>>;
374
392
  locale: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
393
+ id: "id";
394
+ ar: "ar";
395
+ bn: "bn";
396
+ ca: "ca";
397
+ de: "de";
375
398
  en: "en";
376
399
  es: "es";
377
400
  fr: "fr";
378
- de: "de";
401
+ hi: "hi";
379
402
  it: "it";
403
+ ja: "ja";
380
404
  pt: "pt";
405
+ ru: "ru";
406
+ tr: "tr";
407
+ zh: "zh";
381
408
  auto: "auto";
382
- }>, z.ZodTransform<"en" | "es" | "fr" | "de" | "it" | "pt" | null, "en" | "es" | "fr" | "de" | "it" | "pt" | "auto">>>;
409
+ }>, z.ZodTransform<"id" | "ar" | "bn" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "pt" | "ru" | "tr" | "zh" | null, "id" | "ar" | "bn" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "pt" | "ru" | "tr" | "zh" | "auto">>>;
383
410
  billing_address_collection: z.ZodOptional<z.ZodEnum<{
384
411
  auto: "auto";
385
412
  required: "required";
@@ -507,14 +534,23 @@ export declare const updatePaymentLinkParams: z.ZodObject<{
507
534
  donate: "donate";
508
535
  }>>;
509
536
  locale: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
537
+ id: "id";
538
+ ar: "ar";
539
+ bn: "bn";
540
+ ca: "ca";
541
+ de: "de";
510
542
  en: "en";
511
543
  es: "es";
512
544
  fr: "fr";
513
- de: "de";
545
+ hi: "hi";
514
546
  it: "it";
547
+ ja: "ja";
515
548
  pt: "pt";
549
+ ru: "ru";
550
+ tr: "tr";
551
+ zh: "zh";
516
552
  auto: "auto";
517
- }>, z.ZodTransform<"en" | "es" | "fr" | "de" | "it" | "pt" | null, "en" | "es" | "fr" | "de" | "it" | "pt" | "auto">>>;
553
+ }>, z.ZodTransform<"id" | "ar" | "bn" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "pt" | "ru" | "tr" | "zh" | null, "id" | "ar" | "bn" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "pt" | "ru" | "tr" | "zh" | "auto">>>;
518
554
  billing_address_collection: z.ZodOptional<z.ZodEnum<{
519
555
  auto: "auto";
520
556
  required: "required";
@@ -627,14 +663,23 @@ export declare const paymentLinkRoutes: readonly [{
627
663
  donate: "donate";
628
664
  }>>;
629
665
  locale: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
666
+ id: "id";
667
+ ar: "ar";
668
+ bn: "bn";
669
+ ca: "ca";
670
+ de: "de";
630
671
  en: "en";
631
672
  es: "es";
632
673
  fr: "fr";
633
- de: "de";
674
+ hi: "hi";
634
675
  it: "it";
676
+ ja: "ja";
635
677
  pt: "pt";
678
+ ru: "ru";
679
+ tr: "tr";
680
+ zh: "zh";
636
681
  auto: "auto";
637
- }>, z.ZodTransform<"en" | "es" | "fr" | "de" | "it" | "pt" | null, "en" | "es" | "fr" | "de" | "it" | "pt" | "auto">>>;
682
+ }>, z.ZodTransform<"id" | "ar" | "bn" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "pt" | "ru" | "tr" | "zh" | null, "id" | "ar" | "bn" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "pt" | "ru" | "tr" | "zh" | "auto">>>;
638
683
  billing_address_collection: z.ZodOptional<z.ZodEnum<{
639
684
  auto: "auto";
640
685
  required: "required";
@@ -849,12 +894,21 @@ export declare const paymentLinkRoutes: readonly [{
849
894
  expires_at: z.ZodNullable<z.ZodNumber>;
850
895
  }, z.core.$strict>>;
851
896
  locale: z.ZodNullable<z.ZodEnum<{
897
+ id: "id";
898
+ ar: "ar";
899
+ bn: "bn";
900
+ ca: "ca";
901
+ de: "de";
852
902
  en: "en";
853
903
  es: "es";
854
904
  fr: "fr";
855
- de: "de";
905
+ hi: "hi";
856
906
  it: "it";
907
+ ja: "ja";
857
908
  pt: "pt";
909
+ ru: "ru";
910
+ tr: "tr";
911
+ zh: "zh";
858
912
  }>>;
859
913
  }, z.core.$strict>;
860
914
  readonly status: 201;
@@ -1048,12 +1102,21 @@ export declare const paymentLinkRoutes: readonly [{
1048
1102
  expires_at: z.ZodNullable<z.ZodNumber>;
1049
1103
  }, z.core.$strict>>;
1050
1104
  locale: z.ZodNullable<z.ZodEnum<{
1105
+ id: "id";
1106
+ ar: "ar";
1107
+ bn: "bn";
1108
+ ca: "ca";
1109
+ de: "de";
1051
1110
  en: "en";
1052
1111
  es: "es";
1053
1112
  fr: "fr";
1054
- de: "de";
1113
+ hi: "hi";
1055
1114
  it: "it";
1115
+ ja: "ja";
1056
1116
  pt: "pt";
1117
+ ru: "ru";
1118
+ tr: "tr";
1119
+ zh: "zh";
1057
1120
  }>>;
1058
1121
  }, z.core.$strict>>;
1059
1122
  has_more: z.ZodBoolean;
@@ -1232,12 +1295,21 @@ export declare const paymentLinkRoutes: readonly [{
1232
1295
  expires_at: z.ZodNullable<z.ZodNumber>;
1233
1296
  }, z.core.$strict>>;
1234
1297
  locale: z.ZodNullable<z.ZodEnum<{
1298
+ id: "id";
1299
+ ar: "ar";
1300
+ bn: "bn";
1301
+ ca: "ca";
1302
+ de: "de";
1235
1303
  en: "en";
1236
1304
  es: "es";
1237
1305
  fr: "fr";
1238
- de: "de";
1306
+ hi: "hi";
1239
1307
  it: "it";
1308
+ ja: "ja";
1240
1309
  pt: "pt";
1310
+ ru: "ru";
1311
+ tr: "tr";
1312
+ zh: "zh";
1241
1313
  }>>;
1242
1314
  }, z.core.$strict>;
1243
1315
  readonly sdk: "paymentLinks.retrieve";
@@ -1319,14 +1391,23 @@ export declare const paymentLinkRoutes: readonly [{
1319
1391
  donate: "donate";
1320
1392
  }>>;
1321
1393
  locale: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
1394
+ id: "id";
1395
+ ar: "ar";
1396
+ bn: "bn";
1397
+ ca: "ca";
1398
+ de: "de";
1322
1399
  en: "en";
1323
1400
  es: "es";
1324
1401
  fr: "fr";
1325
- de: "de";
1402
+ hi: "hi";
1326
1403
  it: "it";
1404
+ ja: "ja";
1327
1405
  pt: "pt";
1406
+ ru: "ru";
1407
+ tr: "tr";
1408
+ zh: "zh";
1328
1409
  auto: "auto";
1329
- }>, z.ZodTransform<"en" | "es" | "fr" | "de" | "it" | "pt" | null, "en" | "es" | "fr" | "de" | "it" | "pt" | "auto">>>;
1410
+ }>, z.ZodTransform<"id" | "ar" | "bn" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "pt" | "ru" | "tr" | "zh" | null, "id" | "ar" | "bn" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "pt" | "ru" | "tr" | "zh" | "auto">>>;
1330
1411
  billing_address_collection: z.ZodOptional<z.ZodEnum<{
1331
1412
  auto: "auto";
1332
1413
  required: "required";
@@ -1503,12 +1584,21 @@ export declare const paymentLinkRoutes: readonly [{
1503
1584
  expires_at: z.ZodNullable<z.ZodNumber>;
1504
1585
  }, z.core.$strict>>;
1505
1586
  locale: z.ZodNullable<z.ZodEnum<{
1587
+ id: "id";
1588
+ ar: "ar";
1589
+ bn: "bn";
1590
+ ca: "ca";
1591
+ de: "de";
1506
1592
  en: "en";
1507
1593
  es: "es";
1508
1594
  fr: "fr";
1509
- de: "de";
1595
+ hi: "hi";
1510
1596
  it: "it";
1597
+ ja: "ja";
1511
1598
  pt: "pt";
1599
+ ru: "ru";
1600
+ tr: "tr";
1601
+ zh: "zh";
1512
1602
  }>>;
1513
1603
  }, z.core.$strict>;
1514
1604
  readonly sdk: "paymentLinks.update";
@@ -1695,12 +1785,21 @@ export declare const paymentLinkRoutes: readonly [{
1695
1785
  expires_at: z.ZodNullable<z.ZodNumber>;
1696
1786
  }, z.core.$strict>>;
1697
1787
  locale: z.ZodNullable<z.ZodEnum<{
1788
+ id: "id";
1789
+ ar: "ar";
1790
+ bn: "bn";
1791
+ ca: "ca";
1792
+ de: "de";
1698
1793
  en: "en";
1699
1794
  es: "es";
1700
1795
  fr: "fr";
1701
- de: "de";
1796
+ hi: "hi";
1702
1797
  it: "it";
1798
+ ja: "ja";
1703
1799
  pt: "pt";
1800
+ ru: "ru";
1801
+ tr: "tr";
1802
+ zh: "zh";
1704
1803
  }>>;
1705
1804
  }, z.core.$strict>;
1706
1805
  }, {
@@ -288,14 +288,23 @@ export declare const amountParam: z.ZodString;
288
288
  export declare const redirectUrlParam: z.ZodString;
289
289
  /** `auto` follows the payer's browser: parsed as `null`. */
290
290
  export declare const localeParam: z.ZodPipe<z.ZodEnum<{
291
+ id: "id";
292
+ ar: "ar";
293
+ bn: "bn";
294
+ ca: "ca";
295
+ de: "de";
291
296
  en: "en";
292
297
  es: "es";
293
298
  fr: "fr";
294
- de: "de";
299
+ hi: "hi";
295
300
  it: "it";
301
+ ja: "ja";
296
302
  pt: "pt";
303
+ ru: "ru";
304
+ tr: "tr";
305
+ zh: "zh";
297
306
  auto: "auto";
298
- }>, z.ZodTransform<"en" | "es" | "fr" | "de" | "it" | "pt" | null, "en" | "es" | "fr" | "de" | "it" | "pt" | "auto">>;
307
+ }>, z.ZodTransform<"id" | "ar" | "bn" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "pt" | "ru" | "tr" | "zh" | null, "id" | "ar" | "bn" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "pt" | "ru" | "tr" | "zh" | "auto">>;
299
308
  export declare const checkoutEmailParam: z.ZodString;
300
309
  declare const customFieldParam: z.ZodObject<{
301
310
  key: z.ZodString;
@@ -19,9 +19,23 @@ export declare const CHECKOUT_PAYMENT_STATUSES: readonly ["paid", "unpaid", "no_
19
19
  export type CheckoutSessionPaymentStatus = (typeof CHECKOUT_PAYMENT_STATUSES)[number];
20
20
  export declare const CHECKOUT_UI_MODES: readonly ["hosted", "embedded"];
21
21
  export type CheckoutUiMode = (typeof CHECKOUT_UI_MODES)[number];
22
- /** The languages the hosted and embedded checkout speak. */
23
- export declare const CHECKOUT_LOCALES: readonly ["en", "es", "fr", "de", "it", "pt"];
22
+ /**
23
+ * The languages every payer surface speaks — ONE set: the Pay with Peable
24
+ * sheet (`@peable.to/sdk/checkout/ui`), the hosted and embedded checkout, the
25
+ * hosted invoice and portal pages, and the customer emails. Each surface keeps
26
+ * its own catalog (their strings differ, and Metro does not tree-shake), typed
27
+ * `Record<CheckoutLocale, …>`, so a language added here is a compile error on
28
+ * every surface until it is translated.
29
+ *
30
+ * Language codes: `pt` is Brazilian Portuguese (`pt-BR`), `zh` Simplified
31
+ * Chinese (`zh-Hans`). A BCP 47 tag resolves to its language.
32
+ */
33
+ export declare const CHECKOUT_LOCALES: readonly ["ar", "bn", "ca", "de", "en", "es", "fr", "hi", "id", "it", "ja", "pt", "ru", "tr", "zh"];
24
34
  export type CheckoutLocale = (typeof CHECKOUT_LOCALES)[number];
35
+ /** The locales written right to left: a surface sets `dir="rtl"` for them. */
36
+ export declare const CHECKOUT_RTL_LOCALES: readonly CheckoutLocale[];
37
+ /** The text direction a locale is written in. */
38
+ export declare function checkoutLocaleDirection(locale: CheckoutLocale): 'ltr' | 'rtl';
25
39
  export declare const CHECKOUT_SUBMIT_TYPES: readonly ["auto", "pay", "book", "donate"];
26
40
  export type CheckoutSubmitType = (typeof CHECKOUT_SUBMIT_TYPES)[number];
27
41
  export declare const CHECKOUT_CUSTOMER_CREATIONS: readonly ["always", "if_required"];
@@ -17,3 +17,4 @@ export * from './files';
17
17
  export * from './identity';
18
18
  export * from './merchants';
19
19
  export * from './paymentMethodConfigurations';
20
+ export * from './realtime';
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The PAYER realtime endpoint: the Socket.IO path a payer's browser opens to
3
+ * hear its payment move, by the intent's `client_secret` alone.
4
+ *
5
+ * It is a SEPARATE Socket.IO server from the gateway's default `/socket.io/`
6
+ * one, because Socket.IO decides CORS per server (per engine), before it
7
+ * knows which namespace or token a connection carries. The payer server
8
+ * answers any origin and takes no credentials — the same rule as the payer
9
+ * HTTP routes (`lib/payerCors.ts`): a merchant's own site runs Pay with
10
+ * Peable, and the capability is the secret, never the page. The default
11
+ * server keeps the Oxy origins (`createOxySocketCors`) for every socket that
12
+ * carries an Oxy identity.
13
+ */
14
+ export declare const PAYER_SOCKET_PATH = "/payer-socket.io";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peable.to/contracts",
3
- "version": "5.1.0",
3
+ "version": "5.3.0",
4
4
  "description": "The Peable wire, declared once: Zod contracts of every public route, the OpenAPI 3.1 generator and the closed value sets (ADR 0014 D5).",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",