palbase 0.66.0 → 0.68.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.
Files changed (96) hide show
  1. package/README.md +3 -2
  2. package/dist/ai/index.js +2 -2
  3. package/dist/ai-sdk/index.js +2 -2
  4. package/dist/backend/engine.js +2 -2
  5. package/dist/backend/env.js +1 -1
  6. package/dist/backend/index.js +8 -8
  7. package/dist/backend/stack.js +1 -1
  8. package/dist/backend/test.js +2 -2
  9. package/dist/chunks/{YO7F2OI2.js → 22GRHCVI.js} +1 -1
  10. package/dist/chunks/{GYB7XBYV.js → 2ZHSNWVZ.js} +2 -2
  11. package/dist/chunks/3OP3YJ63.js +22 -0
  12. package/dist/chunks/{QT7PHIRR.js → 4YV35XDP.js} +2 -2
  13. package/dist/chunks/{PQ23MXWT.js → 5ZXXBM6L.js} +2 -2
  14. package/dist/chunks/{QKAKVJLA.js → 622BI7EV.js} +1 -1
  15. package/dist/chunks/65QZXK2S.js +2 -0
  16. package/dist/chunks/{HECZUS65.js → 7SGTDHXJ.js} +2 -2
  17. package/dist/chunks/{UZERPL37.js → D6EUPFUR.js} +2 -2
  18. package/dist/chunks/EGWQ3EJE.js +21 -0
  19. package/dist/chunks/{4DOKNJUJ.js → EJAGO6ZV.js} +2 -2
  20. package/dist/chunks/{FFRCUMXB.js → F4B6ELAN.js} +2 -2
  21. package/dist/chunks/IZWB7FGX.js +6 -0
  22. package/dist/chunks/{243727GR.js → J7WJF7F4.js} +2 -2
  23. package/dist/chunks/{REON7CA7.js → LUUXXMXH.js} +1 -1
  24. package/dist/chunks/MVY4K43S.js +13 -0
  25. package/dist/chunks/{PZXACOXA.js → OWLXCD3D.js} +1 -1
  26. package/dist/chunks/PP7MW4OT.js +2 -0
  27. package/dist/chunks/{2DGYQO2K.js → QFZ4GCJH.js} +2 -2
  28. package/dist/chunks/QQUIM4VK.js +2 -0
  29. package/dist/chunks/UJLFALKX.js +2 -0
  30. package/dist/chunks/{7JAVCOPA.js → XJLAH42O.js} +1 -1
  31. package/dist/chunks/{ZV6WG4DE.js → XU4G5W72.js} +1 -1
  32. package/dist/chunks/YCDAV3WO.js +2 -0
  33. package/dist/cli.js +275 -273
  34. package/dist/cloud/index.js +2 -2
  35. package/dist/refuse/ai-sdk.js +1 -1
  36. package/dist/refuse/ai.js +1 -1
  37. package/dist/refuse/backend.js +1 -1
  38. package/dist/refuse/cloud.js +1 -1
  39. package/dist/refuse/server.js +1 -1
  40. package/dist/server/index.js +2 -2
  41. package/dist/server/testing.js +2 -2
  42. package/dist/web/index.js +2 -2
  43. package/dist/web/message.js +2 -2
  44. package/dist/web/palbe.js +2 -2
  45. package/dist/web/payments-ui.js +264 -0
  46. package/dist/web/paywall.js +2 -2
  47. package/dist/web/push-sw.js +1 -1
  48. package/dist/web/ssr.js +2 -2
  49. package/dist/web/vite.js +4 -4
  50. package/package.json +7 -2
  51. package/types/backend/src/decorators.d.ts +1 -8
  52. package/types/backend/src/idempotency.d.ts +18 -0
  53. package/types/backend/src/index.d.ts +1 -1
  54. package/types/backend/src/strings-files.d.ts +5 -6
  55. package/types/cloud/src/generated/project.d.ts +2 -1
  56. package/types/cloud/src/generated/studio.d.ts +3 -3
  57. package/types/internal/src/event.d.ts +1 -1
  58. package/types/internal/src/modules/ai.d.ts +1 -1
  59. package/types/internal/src/modules/analytics.d.ts +1 -1
  60. package/types/internal/src/modules/events.d.ts +5 -4
  61. package/types/internal/src/modules/{purchases.d.ts → iap.d.ts} +2183 -2438
  62. package/types/internal/src/modules/index.d.ts +2 -1
  63. package/types/internal/src/modules/journeys.d.ts +1 -1
  64. package/types/internal/src/modules/notify.d.ts +3 -3
  65. package/types/internal/src/modules/payments.d.ts +3286 -0
  66. package/types/internal/src/modules/stores.d.ts +7 -7
  67. package/types/server/src/{purchases.d.ts → iap.d.ts} +7 -7
  68. package/types/server/src/index.d.ts +2 -1
  69. package/types/server/src/payments.d.ts +65 -0
  70. package/types/server/src/server.d.ts +4 -1
  71. package/types/web/src/client.d.ts +6 -3
  72. package/types/web/src/{purchases.d.ts → iap.d.ts} +46 -56
  73. package/types/web/src/inapp.d.ts +5 -5
  74. package/types/web/src/index.d.ts +2 -1
  75. package/types/web/src/messaging.d.ts +1 -0
  76. package/types/web/src/notify.d.ts +2 -2
  77. package/types/web/src/payments-ui/index.d.ts +7 -0
  78. package/types/web/src/payments-ui/payment-sheet.d.ts +13 -0
  79. package/types/web/src/payments-ui/qr.d.ts +9 -0
  80. package/types/web/src/payments-ui/saved-cards-view.d.ts +7 -0
  81. package/types/web/src/payments-ui/spend-qr-view.d.ts +8 -0
  82. package/types/web/src/payments-ui/theme.d.ts +16 -0
  83. package/types/web/src/payments-ui/types.d.ts +149 -0
  84. package/types/web/src/payments-ui/wallet-topup-sheet.d.ts +7 -0
  85. package/types/web/src/payments.d.ts +281 -0
  86. package/types/web/src/paywall/placement.d.ts +6 -8
  87. package/types/web/src/screen/assets.d.ts +1 -1
  88. package/types/web/src/screen/resolve.d.ts +3 -3
  89. package/dist/chunks/47OT2TAE.js +0 -6
  90. package/dist/chunks/GS7AQ2KQ.js +0 -2
  91. package/dist/chunks/GVC6OZMF.js +0 -13
  92. package/dist/chunks/L5DVXXH3.js +0 -2
  93. package/dist/chunks/MTOW4UUP.js +0 -2
  94. package/dist/chunks/V7X2RHTR.js +0 -21
  95. package/dist/chunks/ZA5NYGQH.js +0 -22
  96. package/dist/chunks/ZY6P5WKM.js +0 -2
@@ -4,11 +4,12 @@ export * as auth from './auth.js';
4
4
  export * as cache from './cache.js';
5
5
  export * as calls from './calls.js';
6
6
  export * as flags from './flags.js';
7
+ export * as iap from './iap.js';
7
8
  export * as journeys from './journeys.js';
8
9
  export * as machines from './machines.js';
9
10
  export * as messaging from './messaging.js';
10
11
  export * as notify from './notify.js';
11
- export * as purchases from './purchases.js';
12
+ export * as payments from './payments.js';
12
13
  export * as realtime from './realtime.js';
13
14
  export * as secrets from './secrets.js';
14
15
  export * as storage from './storage.js';
@@ -186,7 +186,7 @@ export type EventCondition = {
186
186
  within?: string;
187
187
  };
188
188
  /**
189
- * An event by its name (an app's event, or a module's: purchases.purchase.completed, purchases.coupon.redeemed, audience.entered), with properties it must have, each equal.
189
+ * An event by its name (an app's event, or a module's: iap.purchase.completed, iap.coupon.redeemed, payments.intent.succeeded, audience.entered), with properties it must have, each equal.
190
190
  */
191
191
  export type EventMatch = {
192
192
  /**
@@ -145,7 +145,7 @@ export type EmailSend = {
145
145
  */
146
146
  category?: string;
147
147
  /**
148
- * One of purchases' coupons: {{coupon}} is the user's (user_id) own code of it — a shared coupon's code, or one of its one-time codes given to them, recorded as theirs.
148
+ * One of iap's coupons: {{coupon}} is the user's (user_id) own code of it — a shared coupon's code, or one of its one-time codes given to them, recorded as theirs.
149
149
  */
150
150
  coupon?: string;
151
151
  from?: EmailFrom;
@@ -305,7 +305,7 @@ export type InAppCampaignWrite = {
305
305
  audience_id?: string;
306
306
  conversion?: InAppConversion;
307
307
  /**
308
- * One of purchases' coupons: {{coupon}} is each person's own code of it — the campaign is shown to users alone, and waits for one the coupon has no code for.
308
+ * One of iap's coupons: {{coupon}} is each person's own code of it — the campaign is shown to users alone, and waits for one the coupon has no code for.
309
309
  */
310
310
  coupon?: string;
311
311
  definition: MessageDefinition;
@@ -2225,7 +2225,7 @@ export type PushSend = {
2225
2225
  collapse_key?: string;
2226
2226
  content_available?: boolean;
2227
2227
  /**
2228
- * One of purchases' coupons: {{coupon}} is each user's own code of it, given as the push goes (a shared coupon's code, or one of its one-time codes, recorded as theirs). A push to an installation of no one fails: a code is a user's.
2228
+ * One of iap's coupons: {{coupon}} is each user's own code of it, given as the push goes (a shared coupon's code, or one of its one-time codes, recorded as theirs). A push to an installation of no one fails: a code is a user's.
2229
2229
  */
2230
2230
  coupon?: string;
2231
2231
  data?: PushData;