palbase 0.71.0 → 0.73.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 (78) hide show
  1. package/dist/ai/index.js +2 -2
  2. package/dist/ai-sdk/index.js +2 -2
  3. package/dist/backend/engine.js +2 -2
  4. package/dist/backend/env.js +1 -1
  5. package/dist/backend/index.js +8 -8
  6. package/dist/backend/stack.js +1 -1
  7. package/dist/backend/test.js +2 -2
  8. package/dist/chunks/{NNFT2MAJ.js → 25HECIZY.js} +1 -1
  9. package/dist/chunks/{WYZDZ7QZ.js → 3DUDNEMM.js} +2 -2
  10. package/dist/chunks/4XSSQAES.js +95 -0
  11. package/dist/chunks/{C7I5HJWB.js → 5OOA4R4H.js} +1 -1
  12. package/dist/chunks/{6I2XBWUM.js → 757A6AR6.js} +2 -2
  13. package/dist/chunks/76W5ZO2L.js +2 -0
  14. package/dist/chunks/{KWAJFRHM.js → CY6KUFZW.js} +2 -2
  15. package/dist/chunks/DIQMCEMJ.js +19 -0
  16. package/dist/chunks/{NWKQOVQV.js → EKOEK6LR.js} +2 -2
  17. package/dist/chunks/{P2PPTVZS.js → IICQMY2Z.js} +2 -2
  18. package/dist/chunks/{5EP5JREH.js → J7Z2PYL4.js} +1 -1
  19. package/dist/chunks/{6G26LJYB.js → J7ZNBBRN.js} +1 -1
  20. package/dist/chunks/{AVLXOKYL.js → JG4V6LNY.js} +2 -2
  21. package/dist/chunks/{STC7LMPR.js → LCDNCPQW.js} +1 -1
  22. package/dist/chunks/{FHSOCZK5.js → MVKZWEHL.js} +2 -2
  23. package/dist/chunks/{WDNAIUED.js → P36C47FS.js} +1 -1
  24. package/dist/chunks/{WMXNVSHQ.js → P4NZ4NZD.js} +2 -2
  25. package/dist/chunks/{F5D2WPY6.js → PAQCJT7M.js} +2 -2
  26. package/dist/chunks/{P2ZR3LIZ.js → PEQZDT6P.js} +2 -2
  27. package/dist/chunks/SMECWMF7.js +2 -0
  28. package/dist/chunks/SRN7N2WX.js +13 -0
  29. package/dist/chunks/UFP6GLLW.js +23 -0
  30. package/dist/chunks/{4RTYKYU6.js → VEL7X2G3.js} +2 -2
  31. package/dist/chunks/{6DOVOQD7.js → YMIK6HLK.js} +2 -2
  32. package/dist/cli.js +347 -347
  33. package/dist/cloud/index.js +2 -2
  34. package/dist/refuse/ai-sdk.js +1 -1
  35. package/dist/refuse/ai.js +1 -1
  36. package/dist/refuse/backend.js +1 -1
  37. package/dist/refuse/cloud.js +1 -1
  38. package/dist/refuse/server.js +1 -1
  39. package/dist/server/index.js +2 -2
  40. package/dist/server/testing.js +2 -2
  41. package/dist/web/index.js +2 -2
  42. package/dist/web/message.js +2 -2
  43. package/dist/web/palbe.js +2 -2
  44. package/dist/web/payments-ui.js +2 -2
  45. package/dist/web/paywall.js +2 -2
  46. package/dist/web/push-sw.js +1 -1
  47. package/dist/web/ssr.js +2 -2
  48. package/dist/web/vite.js +2 -2
  49. package/package.json +2 -2
  50. package/types/backend/src/index.d.ts +1 -1
  51. package/types/backend/src/services.d.ts +78 -0
  52. package/types/cloud/src/generated/project.d.ts +4 -2
  53. package/types/internal/src/modules/analytics.d.ts +58 -4
  54. package/types/internal/src/modules/campaigns.d.ts +616 -0
  55. package/types/internal/src/modules/commerce.d.ts +4244 -0
  56. package/types/internal/src/modules/events.d.ts +5 -3
  57. package/types/internal/src/modules/index.d.ts +2 -0
  58. package/types/internal/src/modules/journeys.d.ts +145 -0
  59. package/types/internal/src/modules/notify.d.ts +7 -6
  60. package/types/internal/src/modules/payments.d.ts +851 -2
  61. package/types/server/src/campaigns.d.ts +31 -0
  62. package/types/server/src/commerce.d.ts +78 -0
  63. package/types/server/src/index.d.ts +3 -1
  64. package/types/server/src/payments.d.ts +6 -0
  65. package/types/server/src/server.d.ts +6 -0
  66. package/types/web/src/campaigns.d.ts +59 -0
  67. package/types/web/src/client.d.ts +6 -0
  68. package/types/web/src/commerce.d.ts +130 -0
  69. package/types/web/src/inapp.d.ts +4 -0
  70. package/types/web/src/index.d.ts +2 -0
  71. package/types/web/src/screen/render.d.ts +6 -1
  72. package/types/web/src/screen/resolve.d.ts +10 -0
  73. package/dist/chunks/AYPODLGK.js +0 -23
  74. package/dist/chunks/E3JCXDTW.js +0 -2
  75. package/dist/chunks/LCZZSEYY.js +0 -2
  76. package/dist/chunks/PZEHNKUJ.js +0 -95
  77. package/dist/chunks/S6FTHDCG.js +0 -13
  78. package/dist/chunks/WL7Z55QJ.js +0 -13
@@ -3,6 +3,8 @@ import type { Events as AiEvents } from './ai.js';
3
3
  import type { Events as AnalyticsEvents } from './analytics.js';
4
4
  import type { Events as AuthEvents } from './auth.js';
5
5
  import type { Events as CallsEvents } from './calls.js';
6
+ import type { Events as CampaignsEvents } from './campaigns.js';
7
+ import type { Events as CommerceEvents } from './commerce.js';
6
8
  import type { Events as FlagsEvents } from './flags.js';
7
9
  import type { Events as IapEvents } from './iap.js';
8
10
  import type { Events as JourneysEvents } from './journeys.js';
@@ -13,16 +15,16 @@ import type { Events as StorageEvents } from './storage.js';
13
15
  import type { Events as StoresEvents } from './stores.js';
14
16
  import type { Events as WorkspacesEvents } from './workspaces.js';
15
17
  /** Every event the modules' contracts say they send the project's webhooks (x-palbase-events), by type: its payload, the event's data. */
16
- export interface PlatformEvents extends AiEvents, AnalyticsEvents, AuthEvents, CallsEvents, FlagsEvents, IapEvents, JourneysEvents, MessagingEvents, NotifyEvents, PaymentsEvents, StorageEvents, StoresEvents, WorkspacesEvents {
18
+ export interface PlatformEvents extends AiEvents, AnalyticsEvents, AuthEvents, CallsEvents, CampaignsEvents, CommerceEvents, FlagsEvents, IapEvents, JourneysEvents, MessagingEvents, NotifyEvents, PaymentsEvents, StorageEvents, StoresEvents, WorkspacesEvents {
17
19
  }
18
20
  /** A platform event's type: one a module's contract declares. */
19
21
  export type EventType = keyof PlatformEvents;
20
22
  /** Every platform event's type, as the contracts declare them. */
21
- export declare const EVENT_TYPES: readonly ["ai.goal.updated", "ai.mcp.auth_completed", "ai.mcp.auth_required", "ai.response.completed", "ai.response.failed", "ai.response.started", "ai.secret_host_requested", "ai.trigger.fired", "ai.voice.closed", "ai.voice.delegated", "ai.voice.started", "ai.wait.created", "ai.wait.resumed", "ai.wait.timed_out", "ai.workflow.completed", "ai.workflow.failed", "audience.entered", "audience.exited", "calls.call.ended", "calls.call.started", "calls.participant.joined", "calls.participant.left", "calls.transcript.completed", "calls.transcript.segment", "consent.changed", "device.revoked", "file.deleted", "file.moved", "file.uploaded", "flag.changed", "flag.override_changed", "iap.catalog.applied", "iap.catalog.changed", "iap.coupon.redeemed", "iap.credits.depleted", "iap.credits.low", "iap.customer.changed", "iap.customer.erased", "iap.customer.merged", "iap.entitlement.changed", "iap.offer.redeemed", "iap.ownership.transferred", "iap.paywall.published", "iap.purchase.completed", "iap.quota.exhausted", "iap.quota.threshold", "iap.refund.changed", "iap.store.changed", "iap.subscription.changed", "journey.converted", "journey.ended", "journey.entered", "journey.event", "journey.step", "messaging.conversation.created", "messaging.conversation.deleted", "messaging.conversation.read", "messaging.message.created", "messaging.report.created", "notification.action", "notification.bounced", "notification.complained", "notification.delivered", "notification.dismissed", "notification.expired", "notification.failed", "notification.not_shown", "notification.opened", "notification.push_failing", "notification.read", "notification.received", "notification.rejected", "notification.sent", "notification.shared_paused", "notification.unconfirmed", "notification.undelivered", "notification.uninstalled", "payments.dispute.closed", "payments.dispute.opened", "payments.payment.canceled", "payments.payment.failed", "payments.payment.requires_capture", "payments.payment.succeeded", "payments.refund.succeeded", "payments.subscription.canceled", "payments.subscription.changed", "payments.wallet.balance_changed", "payments.wallet.hold_changed", "session.ended", "stores.action.changed", "stores.app.changed", "stores.apple.changed", "stores.apple.key.made", "stores.apple.key.revoked", "stores.apple.session.changed", "stores.apple.session.ended", "stores.apple.session.expired", "stores.beta_review.changed", "stores.build.changed", "stores.delivery.changed", "stores.delivery.requested", "stores.device.changed", "stores.feedback.received", "stores.google.changed", "stores.group.changed", "stores.invitation.changed", "stores.package.changed", "stores.play_release.changed", "stores.product.changed", "stores.review.message", "stores.version.changed", "stores.version.reviewed", "stores.vitals.changed", "stores.webhook.changed", "user.converted", "user.deleted", "user.locale_changed", "user.password_changed", "user.permissions_changed", "workspace.conflict", "workspace.deleted", "workspace.published"];
23
+ export declare const EVENT_TYPES: readonly ["ai.goal.updated", "ai.mcp.auth_completed", "ai.mcp.auth_required", "ai.response.completed", "ai.response.failed", "ai.response.started", "ai.secret_host_requested", "ai.trigger.fired", "ai.voice.closed", "ai.voice.delegated", "ai.voice.started", "ai.wait.created", "ai.wait.resumed", "ai.wait.timed_out", "ai.workflow.completed", "ai.workflow.failed", "audience.entered", "audience.exited", "calls.call.ended", "calls.call.started", "calls.participant.joined", "calls.participant.left", "calls.transcript.completed", "calls.transcript.segment", "campaigns.broadcast.canceled", "campaigns.broadcast.completed", "campaigns.broadcast.started", "campaigns.onsite.clicked", "campaigns.onsite.converted", "campaigns.onsite.shown", "commerce.buybox.changed", "commerce.cart.abandoned", "commerce.cart.merged", "commerce.fulfillment.created", "commerce.fulfillment.delivered", "commerce.inventory.restocked", "commerce.listing.price_dropped", "commerce.order.created", "commerce.order.paid", "commerce.order.refunded", "commerce.product.created", "commerce.return.requested", "commerce.store.created", "commerce.store_order.canceled", "consent.changed", "device.revoked", "file.deleted", "file.moved", "file.uploaded", "flag.changed", "flag.override_changed", "iap.catalog.applied", "iap.catalog.changed", "iap.coupon.redeemed", "iap.credits.depleted", "iap.credits.low", "iap.customer.changed", "iap.customer.erased", "iap.customer.merged", "iap.entitlement.changed", "iap.offer.redeemed", "iap.ownership.transferred", "iap.paywall.published", "iap.purchase.completed", "iap.quota.exhausted", "iap.quota.threshold", "iap.refund.changed", "iap.store.changed", "iap.subscription.changed", "journey.converted", "journey.ended", "journey.entered", "journey.event", "journey.step", "messaging.conversation.created", "messaging.conversation.deleted", "messaging.conversation.read", "messaging.message.created", "messaging.report.created", "notification.action", "notification.bounced", "notification.complained", "notification.delivered", "notification.dismissed", "notification.expired", "notification.failed", "notification.not_shown", "notification.opened", "notification.push_failing", "notification.read", "notification.received", "notification.rejected", "notification.sent", "notification.shared_paused", "notification.unconfirmed", "notification.undelivered", "notification.uninstalled", "payments.dispute.closed", "payments.dispute.opened", "payments.payment.canceled", "payments.payment.failed", "payments.payment.requires_capture", "payments.payment.succeeded", "payments.refund.succeeded", "payments.split.approved", "payments.split.refunded", "payments.sub_merchant.updated", "payments.subscription.canceled", "payments.subscription.changed", "payments.wallet.balance_changed", "payments.wallet.hold_changed", "payments.wallet.vested", "promotions.rule.created", "session.ended", "stores.action.changed", "stores.app.changed", "stores.apple.changed", "stores.apple.key.made", "stores.apple.key.revoked", "stores.apple.session.changed", "stores.apple.session.ended", "stores.apple.session.expired", "stores.beta_review.changed", "stores.build.changed", "stores.delivery.changed", "stores.delivery.requested", "stores.device.changed", "stores.feedback.received", "stores.google.changed", "stores.group.changed", "stores.invitation.changed", "stores.package.changed", "stores.play_release.changed", "stores.product.changed", "stores.review.message", "stores.version.changed", "stores.version.reviewed", "stores.vitals.changed", "stores.webhook.changed", "user.converted", "user.deleted", "user.locale_changed", "user.password_changed", "user.permissions_changed", "workspace.conflict", "workspace.deleted", "workspace.published"];
22
24
  /**
23
25
  * A platform event as delivered: one member per type the contracts declare,
24
26
  * its data that type's payload, so a switch on its type narrows it. An
25
27
  * event of a type none of them declares (one a newer platform sends) is no
26
28
  * member: at run time it reaches the switch's default, which takes it.
27
29
  */
28
- export type PalbaseEvent = WebhookEvent<PlatformEvents["ai.goal.updated"], "ai.goal.updated"> | WebhookEvent<PlatformEvents["ai.mcp.auth_completed"], "ai.mcp.auth_completed"> | WebhookEvent<PlatformEvents["ai.mcp.auth_required"], "ai.mcp.auth_required"> | WebhookEvent<PlatformEvents["ai.response.completed"], "ai.response.completed"> | WebhookEvent<PlatformEvents["ai.response.failed"], "ai.response.failed"> | WebhookEvent<PlatformEvents["ai.response.started"], "ai.response.started"> | WebhookEvent<PlatformEvents["ai.secret_host_requested"], "ai.secret_host_requested"> | WebhookEvent<PlatformEvents["ai.trigger.fired"], "ai.trigger.fired"> | WebhookEvent<PlatformEvents["ai.voice.closed"], "ai.voice.closed"> | WebhookEvent<PlatformEvents["ai.voice.delegated"], "ai.voice.delegated"> | WebhookEvent<PlatformEvents["ai.voice.started"], "ai.voice.started"> | WebhookEvent<PlatformEvents["ai.wait.created"], "ai.wait.created"> | WebhookEvent<PlatformEvents["ai.wait.resumed"], "ai.wait.resumed"> | WebhookEvent<PlatformEvents["ai.wait.timed_out"], "ai.wait.timed_out"> | WebhookEvent<PlatformEvents["ai.workflow.completed"], "ai.workflow.completed"> | WebhookEvent<PlatformEvents["ai.workflow.failed"], "ai.workflow.failed"> | WebhookEvent<PlatformEvents["audience.entered"], "audience.entered"> | WebhookEvent<PlatformEvents["audience.exited"], "audience.exited"> | WebhookEvent<PlatformEvents["calls.call.ended"], "calls.call.ended"> | WebhookEvent<PlatformEvents["calls.call.started"], "calls.call.started"> | WebhookEvent<PlatformEvents["calls.participant.joined"], "calls.participant.joined"> | WebhookEvent<PlatformEvents["calls.participant.left"], "calls.participant.left"> | WebhookEvent<PlatformEvents["calls.transcript.completed"], "calls.transcript.completed"> | WebhookEvent<PlatformEvents["calls.transcript.segment"], "calls.transcript.segment"> | WebhookEvent<PlatformEvents["consent.changed"], "consent.changed"> | WebhookEvent<PlatformEvents["device.revoked"], "device.revoked"> | WebhookEvent<PlatformEvents["file.deleted"], "file.deleted"> | WebhookEvent<PlatformEvents["file.moved"], "file.moved"> | WebhookEvent<PlatformEvents["file.uploaded"], "file.uploaded"> | WebhookEvent<PlatformEvents["flag.changed"], "flag.changed"> | WebhookEvent<PlatformEvents["flag.override_changed"], "flag.override_changed"> | WebhookEvent<PlatformEvents["iap.catalog.applied"], "iap.catalog.applied"> | WebhookEvent<PlatformEvents["iap.catalog.changed"], "iap.catalog.changed"> | WebhookEvent<PlatformEvents["iap.coupon.redeemed"], "iap.coupon.redeemed"> | WebhookEvent<PlatformEvents["iap.credits.depleted"], "iap.credits.depleted"> | WebhookEvent<PlatformEvents["iap.credits.low"], "iap.credits.low"> | WebhookEvent<PlatformEvents["iap.customer.changed"], "iap.customer.changed"> | WebhookEvent<PlatformEvents["iap.customer.erased"], "iap.customer.erased"> | WebhookEvent<PlatformEvents["iap.customer.merged"], "iap.customer.merged"> | WebhookEvent<PlatformEvents["iap.entitlement.changed"], "iap.entitlement.changed"> | WebhookEvent<PlatformEvents["iap.offer.redeemed"], "iap.offer.redeemed"> | WebhookEvent<PlatformEvents["iap.ownership.transferred"], "iap.ownership.transferred"> | WebhookEvent<PlatformEvents["iap.paywall.published"], "iap.paywall.published"> | WebhookEvent<PlatformEvents["iap.purchase.completed"], "iap.purchase.completed"> | WebhookEvent<PlatformEvents["iap.quota.exhausted"], "iap.quota.exhausted"> | WebhookEvent<PlatformEvents["iap.quota.threshold"], "iap.quota.threshold"> | WebhookEvent<PlatformEvents["iap.refund.changed"], "iap.refund.changed"> | WebhookEvent<PlatformEvents["iap.store.changed"], "iap.store.changed"> | WebhookEvent<PlatformEvents["iap.subscription.changed"], "iap.subscription.changed"> | WebhookEvent<PlatformEvents["journey.converted"], "journey.converted"> | WebhookEvent<PlatformEvents["journey.ended"], "journey.ended"> | WebhookEvent<PlatformEvents["journey.entered"], "journey.entered"> | WebhookEvent<PlatformEvents["journey.event"], "journey.event"> | WebhookEvent<PlatformEvents["journey.step"], "journey.step"> | WebhookEvent<PlatformEvents["messaging.conversation.created"], "messaging.conversation.created"> | WebhookEvent<PlatformEvents["messaging.conversation.deleted"], "messaging.conversation.deleted"> | WebhookEvent<PlatformEvents["messaging.conversation.read"], "messaging.conversation.read"> | WebhookEvent<PlatformEvents["messaging.message.created"], "messaging.message.created"> | WebhookEvent<PlatformEvents["messaging.report.created"], "messaging.report.created"> | WebhookEvent<PlatformEvents["notification.action"], "notification.action"> | WebhookEvent<PlatformEvents["notification.bounced"], "notification.bounced"> | WebhookEvent<PlatformEvents["notification.complained"], "notification.complained"> | WebhookEvent<PlatformEvents["notification.delivered"], "notification.delivered"> | WebhookEvent<PlatformEvents["notification.dismissed"], "notification.dismissed"> | WebhookEvent<PlatformEvents["notification.expired"], "notification.expired"> | WebhookEvent<PlatformEvents["notification.failed"], "notification.failed"> | WebhookEvent<PlatformEvents["notification.not_shown"], "notification.not_shown"> | WebhookEvent<PlatformEvents["notification.opened"], "notification.opened"> | WebhookEvent<PlatformEvents["notification.push_failing"], "notification.push_failing"> | WebhookEvent<PlatformEvents["notification.read"], "notification.read"> | WebhookEvent<PlatformEvents["notification.received"], "notification.received"> | WebhookEvent<PlatformEvents["notification.rejected"], "notification.rejected"> | WebhookEvent<PlatformEvents["notification.sent"], "notification.sent"> | WebhookEvent<PlatformEvents["notification.shared_paused"], "notification.shared_paused"> | WebhookEvent<PlatformEvents["notification.unconfirmed"], "notification.unconfirmed"> | WebhookEvent<PlatformEvents["notification.undelivered"], "notification.undelivered"> | WebhookEvent<PlatformEvents["notification.uninstalled"], "notification.uninstalled"> | WebhookEvent<PlatformEvents["payments.dispute.closed"], "payments.dispute.closed"> | WebhookEvent<PlatformEvents["payments.dispute.opened"], "payments.dispute.opened"> | WebhookEvent<PlatformEvents["payments.payment.canceled"], "payments.payment.canceled"> | WebhookEvent<PlatformEvents["payments.payment.failed"], "payments.payment.failed"> | WebhookEvent<PlatformEvents["payments.payment.requires_capture"], "payments.payment.requires_capture"> | WebhookEvent<PlatformEvents["payments.payment.succeeded"], "payments.payment.succeeded"> | WebhookEvent<PlatformEvents["payments.refund.succeeded"], "payments.refund.succeeded"> | WebhookEvent<PlatformEvents["payments.subscription.canceled"], "payments.subscription.canceled"> | WebhookEvent<PlatformEvents["payments.subscription.changed"], "payments.subscription.changed"> | WebhookEvent<PlatformEvents["payments.wallet.balance_changed"], "payments.wallet.balance_changed"> | WebhookEvent<PlatformEvents["payments.wallet.hold_changed"], "payments.wallet.hold_changed"> | WebhookEvent<PlatformEvents["session.ended"], "session.ended"> | WebhookEvent<PlatformEvents["stores.action.changed"], "stores.action.changed"> | WebhookEvent<PlatformEvents["stores.app.changed"], "stores.app.changed"> | WebhookEvent<PlatformEvents["stores.apple.changed"], "stores.apple.changed"> | WebhookEvent<PlatformEvents["stores.apple.key.made"], "stores.apple.key.made"> | WebhookEvent<PlatformEvents["stores.apple.key.revoked"], "stores.apple.key.revoked"> | WebhookEvent<PlatformEvents["stores.apple.session.changed"], "stores.apple.session.changed"> | WebhookEvent<PlatformEvents["stores.apple.session.ended"], "stores.apple.session.ended"> | WebhookEvent<PlatformEvents["stores.apple.session.expired"], "stores.apple.session.expired"> | WebhookEvent<PlatformEvents["stores.beta_review.changed"], "stores.beta_review.changed"> | WebhookEvent<PlatformEvents["stores.build.changed"], "stores.build.changed"> | WebhookEvent<PlatformEvents["stores.delivery.changed"], "stores.delivery.changed"> | WebhookEvent<PlatformEvents["stores.delivery.requested"], "stores.delivery.requested"> | WebhookEvent<PlatformEvents["stores.device.changed"], "stores.device.changed"> | WebhookEvent<PlatformEvents["stores.feedback.received"], "stores.feedback.received"> | WebhookEvent<PlatformEvents["stores.google.changed"], "stores.google.changed"> | WebhookEvent<PlatformEvents["stores.group.changed"], "stores.group.changed"> | WebhookEvent<PlatformEvents["stores.invitation.changed"], "stores.invitation.changed"> | WebhookEvent<PlatformEvents["stores.package.changed"], "stores.package.changed"> | WebhookEvent<PlatformEvents["stores.play_release.changed"], "stores.play_release.changed"> | WebhookEvent<PlatformEvents["stores.product.changed"], "stores.product.changed"> | WebhookEvent<PlatformEvents["stores.review.message"], "stores.review.message"> | WebhookEvent<PlatformEvents["stores.version.changed"], "stores.version.changed"> | WebhookEvent<PlatformEvents["stores.version.reviewed"], "stores.version.reviewed"> | WebhookEvent<PlatformEvents["stores.vitals.changed"], "stores.vitals.changed"> | WebhookEvent<PlatformEvents["stores.webhook.changed"], "stores.webhook.changed"> | WebhookEvent<PlatformEvents["user.converted"], "user.converted"> | WebhookEvent<PlatformEvents["user.deleted"], "user.deleted"> | WebhookEvent<PlatformEvents["user.locale_changed"], "user.locale_changed"> | WebhookEvent<PlatformEvents["user.password_changed"], "user.password_changed"> | WebhookEvent<PlatformEvents["user.permissions_changed"], "user.permissions_changed"> | WebhookEvent<PlatformEvents["workspace.conflict"], "workspace.conflict"> | WebhookEvent<PlatformEvents["workspace.deleted"], "workspace.deleted"> | WebhookEvent<PlatformEvents["workspace.published"], "workspace.published">;
30
+ export type PalbaseEvent = WebhookEvent<PlatformEvents["ai.goal.updated"], "ai.goal.updated"> | WebhookEvent<PlatformEvents["ai.mcp.auth_completed"], "ai.mcp.auth_completed"> | WebhookEvent<PlatformEvents["ai.mcp.auth_required"], "ai.mcp.auth_required"> | WebhookEvent<PlatformEvents["ai.response.completed"], "ai.response.completed"> | WebhookEvent<PlatformEvents["ai.response.failed"], "ai.response.failed"> | WebhookEvent<PlatformEvents["ai.response.started"], "ai.response.started"> | WebhookEvent<PlatformEvents["ai.secret_host_requested"], "ai.secret_host_requested"> | WebhookEvent<PlatformEvents["ai.trigger.fired"], "ai.trigger.fired"> | WebhookEvent<PlatformEvents["ai.voice.closed"], "ai.voice.closed"> | WebhookEvent<PlatformEvents["ai.voice.delegated"], "ai.voice.delegated"> | WebhookEvent<PlatformEvents["ai.voice.started"], "ai.voice.started"> | WebhookEvent<PlatformEvents["ai.wait.created"], "ai.wait.created"> | WebhookEvent<PlatformEvents["ai.wait.resumed"], "ai.wait.resumed"> | WebhookEvent<PlatformEvents["ai.wait.timed_out"], "ai.wait.timed_out"> | WebhookEvent<PlatformEvents["ai.workflow.completed"], "ai.workflow.completed"> | WebhookEvent<PlatformEvents["ai.workflow.failed"], "ai.workflow.failed"> | WebhookEvent<PlatformEvents["audience.entered"], "audience.entered"> | WebhookEvent<PlatformEvents["audience.exited"], "audience.exited"> | WebhookEvent<PlatformEvents["calls.call.ended"], "calls.call.ended"> | WebhookEvent<PlatformEvents["calls.call.started"], "calls.call.started"> | WebhookEvent<PlatformEvents["calls.participant.joined"], "calls.participant.joined"> | WebhookEvent<PlatformEvents["calls.participant.left"], "calls.participant.left"> | WebhookEvent<PlatformEvents["calls.transcript.completed"], "calls.transcript.completed"> | WebhookEvent<PlatformEvents["calls.transcript.segment"], "calls.transcript.segment"> | WebhookEvent<PlatformEvents["campaigns.broadcast.canceled"], "campaigns.broadcast.canceled"> | WebhookEvent<PlatformEvents["campaigns.broadcast.completed"], "campaigns.broadcast.completed"> | WebhookEvent<PlatformEvents["campaigns.broadcast.started"], "campaigns.broadcast.started"> | WebhookEvent<PlatformEvents["campaigns.onsite.clicked"], "campaigns.onsite.clicked"> | WebhookEvent<PlatformEvents["campaigns.onsite.converted"], "campaigns.onsite.converted"> | WebhookEvent<PlatformEvents["campaigns.onsite.shown"], "campaigns.onsite.shown"> | WebhookEvent<PlatformEvents["commerce.buybox.changed"], "commerce.buybox.changed"> | WebhookEvent<PlatformEvents["commerce.cart.abandoned"], "commerce.cart.abandoned"> | WebhookEvent<PlatformEvents["commerce.cart.merged"], "commerce.cart.merged"> | WebhookEvent<PlatformEvents["commerce.fulfillment.created"], "commerce.fulfillment.created"> | WebhookEvent<PlatformEvents["commerce.fulfillment.delivered"], "commerce.fulfillment.delivered"> | WebhookEvent<PlatformEvents["commerce.inventory.restocked"], "commerce.inventory.restocked"> | WebhookEvent<PlatformEvents["commerce.listing.price_dropped"], "commerce.listing.price_dropped"> | WebhookEvent<PlatformEvents["commerce.order.created"], "commerce.order.created"> | WebhookEvent<PlatformEvents["commerce.order.paid"], "commerce.order.paid"> | WebhookEvent<PlatformEvents["commerce.order.refunded"], "commerce.order.refunded"> | WebhookEvent<PlatformEvents["commerce.product.created"], "commerce.product.created"> | WebhookEvent<PlatformEvents["commerce.return.requested"], "commerce.return.requested"> | WebhookEvent<PlatformEvents["commerce.store.created"], "commerce.store.created"> | WebhookEvent<PlatformEvents["commerce.store_order.canceled"], "commerce.store_order.canceled"> | WebhookEvent<PlatformEvents["consent.changed"], "consent.changed"> | WebhookEvent<PlatformEvents["device.revoked"], "device.revoked"> | WebhookEvent<PlatformEvents["file.deleted"], "file.deleted"> | WebhookEvent<PlatformEvents["file.moved"], "file.moved"> | WebhookEvent<PlatformEvents["file.uploaded"], "file.uploaded"> | WebhookEvent<PlatformEvents["flag.changed"], "flag.changed"> | WebhookEvent<PlatformEvents["flag.override_changed"], "flag.override_changed"> | WebhookEvent<PlatformEvents["iap.catalog.applied"], "iap.catalog.applied"> | WebhookEvent<PlatformEvents["iap.catalog.changed"], "iap.catalog.changed"> | WebhookEvent<PlatformEvents["iap.coupon.redeemed"], "iap.coupon.redeemed"> | WebhookEvent<PlatformEvents["iap.credits.depleted"], "iap.credits.depleted"> | WebhookEvent<PlatformEvents["iap.credits.low"], "iap.credits.low"> | WebhookEvent<PlatformEvents["iap.customer.changed"], "iap.customer.changed"> | WebhookEvent<PlatformEvents["iap.customer.erased"], "iap.customer.erased"> | WebhookEvent<PlatformEvents["iap.customer.merged"], "iap.customer.merged"> | WebhookEvent<PlatformEvents["iap.entitlement.changed"], "iap.entitlement.changed"> | WebhookEvent<PlatformEvents["iap.offer.redeemed"], "iap.offer.redeemed"> | WebhookEvent<PlatformEvents["iap.ownership.transferred"], "iap.ownership.transferred"> | WebhookEvent<PlatformEvents["iap.paywall.published"], "iap.paywall.published"> | WebhookEvent<PlatformEvents["iap.purchase.completed"], "iap.purchase.completed"> | WebhookEvent<PlatformEvents["iap.quota.exhausted"], "iap.quota.exhausted"> | WebhookEvent<PlatformEvents["iap.quota.threshold"], "iap.quota.threshold"> | WebhookEvent<PlatformEvents["iap.refund.changed"], "iap.refund.changed"> | WebhookEvent<PlatformEvents["iap.store.changed"], "iap.store.changed"> | WebhookEvent<PlatformEvents["iap.subscription.changed"], "iap.subscription.changed"> | WebhookEvent<PlatformEvents["journey.converted"], "journey.converted"> | WebhookEvent<PlatformEvents["journey.ended"], "journey.ended"> | WebhookEvent<PlatformEvents["journey.entered"], "journey.entered"> | WebhookEvent<PlatformEvents["journey.event"], "journey.event"> | WebhookEvent<PlatformEvents["journey.step"], "journey.step"> | WebhookEvent<PlatformEvents["messaging.conversation.created"], "messaging.conversation.created"> | WebhookEvent<PlatformEvents["messaging.conversation.deleted"], "messaging.conversation.deleted"> | WebhookEvent<PlatformEvents["messaging.conversation.read"], "messaging.conversation.read"> | WebhookEvent<PlatformEvents["messaging.message.created"], "messaging.message.created"> | WebhookEvent<PlatformEvents["messaging.report.created"], "messaging.report.created"> | WebhookEvent<PlatformEvents["notification.action"], "notification.action"> | WebhookEvent<PlatformEvents["notification.bounced"], "notification.bounced"> | WebhookEvent<PlatformEvents["notification.complained"], "notification.complained"> | WebhookEvent<PlatformEvents["notification.delivered"], "notification.delivered"> | WebhookEvent<PlatformEvents["notification.dismissed"], "notification.dismissed"> | WebhookEvent<PlatformEvents["notification.expired"], "notification.expired"> | WebhookEvent<PlatformEvents["notification.failed"], "notification.failed"> | WebhookEvent<PlatformEvents["notification.not_shown"], "notification.not_shown"> | WebhookEvent<PlatformEvents["notification.opened"], "notification.opened"> | WebhookEvent<PlatformEvents["notification.push_failing"], "notification.push_failing"> | WebhookEvent<PlatformEvents["notification.read"], "notification.read"> | WebhookEvent<PlatformEvents["notification.received"], "notification.received"> | WebhookEvent<PlatformEvents["notification.rejected"], "notification.rejected"> | WebhookEvent<PlatformEvents["notification.sent"], "notification.sent"> | WebhookEvent<PlatformEvents["notification.shared_paused"], "notification.shared_paused"> | WebhookEvent<PlatformEvents["notification.unconfirmed"], "notification.unconfirmed"> | WebhookEvent<PlatformEvents["notification.undelivered"], "notification.undelivered"> | WebhookEvent<PlatformEvents["notification.uninstalled"], "notification.uninstalled"> | WebhookEvent<PlatformEvents["payments.dispute.closed"], "payments.dispute.closed"> | WebhookEvent<PlatformEvents["payments.dispute.opened"], "payments.dispute.opened"> | WebhookEvent<PlatformEvents["payments.payment.canceled"], "payments.payment.canceled"> | WebhookEvent<PlatformEvents["payments.payment.failed"], "payments.payment.failed"> | WebhookEvent<PlatformEvents["payments.payment.requires_capture"], "payments.payment.requires_capture"> | WebhookEvent<PlatformEvents["payments.payment.succeeded"], "payments.payment.succeeded"> | WebhookEvent<PlatformEvents["payments.refund.succeeded"], "payments.refund.succeeded"> | WebhookEvent<PlatformEvents["payments.split.approved"], "payments.split.approved"> | WebhookEvent<PlatformEvents["payments.split.refunded"], "payments.split.refunded"> | WebhookEvent<PlatformEvents["payments.sub_merchant.updated"], "payments.sub_merchant.updated"> | WebhookEvent<PlatformEvents["payments.subscription.canceled"], "payments.subscription.canceled"> | WebhookEvent<PlatformEvents["payments.subscription.changed"], "payments.subscription.changed"> | WebhookEvent<PlatformEvents["payments.wallet.balance_changed"], "payments.wallet.balance_changed"> | WebhookEvent<PlatformEvents["payments.wallet.hold_changed"], "payments.wallet.hold_changed"> | WebhookEvent<PlatformEvents["payments.wallet.vested"], "payments.wallet.vested"> | WebhookEvent<PlatformEvents["promotions.rule.created"], "promotions.rule.created"> | WebhookEvent<PlatformEvents["session.ended"], "session.ended"> | WebhookEvent<PlatformEvents["stores.action.changed"], "stores.action.changed"> | WebhookEvent<PlatformEvents["stores.app.changed"], "stores.app.changed"> | WebhookEvent<PlatformEvents["stores.apple.changed"], "stores.apple.changed"> | WebhookEvent<PlatformEvents["stores.apple.key.made"], "stores.apple.key.made"> | WebhookEvent<PlatformEvents["stores.apple.key.revoked"], "stores.apple.key.revoked"> | WebhookEvent<PlatformEvents["stores.apple.session.changed"], "stores.apple.session.changed"> | WebhookEvent<PlatformEvents["stores.apple.session.ended"], "stores.apple.session.ended"> | WebhookEvent<PlatformEvents["stores.apple.session.expired"], "stores.apple.session.expired"> | WebhookEvent<PlatformEvents["stores.beta_review.changed"], "stores.beta_review.changed"> | WebhookEvent<PlatformEvents["stores.build.changed"], "stores.build.changed"> | WebhookEvent<PlatformEvents["stores.delivery.changed"], "stores.delivery.changed"> | WebhookEvent<PlatformEvents["stores.delivery.requested"], "stores.delivery.requested"> | WebhookEvent<PlatformEvents["stores.device.changed"], "stores.device.changed"> | WebhookEvent<PlatformEvents["stores.feedback.received"], "stores.feedback.received"> | WebhookEvent<PlatformEvents["stores.google.changed"], "stores.google.changed"> | WebhookEvent<PlatformEvents["stores.group.changed"], "stores.group.changed"> | WebhookEvent<PlatformEvents["stores.invitation.changed"], "stores.invitation.changed"> | WebhookEvent<PlatformEvents["stores.package.changed"], "stores.package.changed"> | WebhookEvent<PlatformEvents["stores.play_release.changed"], "stores.play_release.changed"> | WebhookEvent<PlatformEvents["stores.product.changed"], "stores.product.changed"> | WebhookEvent<PlatformEvents["stores.review.message"], "stores.review.message"> | WebhookEvent<PlatformEvents["stores.version.changed"], "stores.version.changed"> | WebhookEvent<PlatformEvents["stores.version.reviewed"], "stores.version.reviewed"> | WebhookEvent<PlatformEvents["stores.vitals.changed"], "stores.vitals.changed"> | WebhookEvent<PlatformEvents["stores.webhook.changed"], "stores.webhook.changed"> | WebhookEvent<PlatformEvents["user.converted"], "user.converted"> | WebhookEvent<PlatformEvents["user.deleted"], "user.deleted"> | WebhookEvent<PlatformEvents["user.locale_changed"], "user.locale_changed"> | WebhookEvent<PlatformEvents["user.password_changed"], "user.password_changed"> | WebhookEvent<PlatformEvents["user.permissions_changed"], "user.permissions_changed"> | WebhookEvent<PlatformEvents["workspace.conflict"], "workspace.conflict"> | WebhookEvent<PlatformEvents["workspace.deleted"], "workspace.deleted"> | WebhookEvent<PlatformEvents["workspace.published"], "workspace.published">;
@@ -3,6 +3,8 @@ export * as analytics from './analytics.js';
3
3
  export * as auth from './auth.js';
4
4
  export * as cache from './cache.js';
5
5
  export * as calls from './calls.js';
6
+ export * as campaigns from './campaigns.js';
7
+ export * as commerce from './commerce.js';
6
8
  export * as flags from './flags.js';
7
9
  export * as iap from './iap.js';
8
10
  export * as journeys from './journeys.js';
@@ -12,6 +12,21 @@ export type AudienceCondition = {
12
12
  */
13
13
  in?: boolean;
14
14
  };
15
+ export type Blueprint = {
16
+ channels: string[];
17
+ default_delay?: string;
18
+ description: string;
19
+ entry_event: string;
20
+ id: string;
21
+ name: string;
22
+ sandbox_limits: {
23
+ [key: string]: unknown;
24
+ };
25
+ scope: string[];
26
+ };
27
+ export type BlueprintList = {
28
+ blueprints: Blueprint[];
29
+ };
15
30
  /**
16
31
  * Sends the person on to then when if holds of them, else to else.
17
32
  */
@@ -26,6 +41,11 @@ export type BranchStep = {
26
41
  */
27
42
  then: string;
28
43
  };
44
+ export type CommercePromoStep = {
45
+ expires_in_days?: number;
46
+ prefix?: string;
47
+ rule: string;
48
+ };
29
49
  /**
30
50
  * What a branch asks of a person, one of: a property of theirs; whether they are in an audience; whether they did an event (since they entered, or within a while); all, any or none of others.
31
51
  */
@@ -77,6 +97,10 @@ export type Definition = {
77
97
  */
78
98
  name: string;
79
99
  reentry?: Reentry;
100
+ /**
101
+ * Event property names scoping concurrent runs (e.g. store_id, cart_id).
102
+ */
103
+ scope?: string[];
80
104
  /**
81
105
  * The first step's id
82
106
  */
@@ -189,6 +213,10 @@ export type EventCondition = {
189
213
  * 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
214
  */
191
215
  export type EventMatch = {
216
+ /**
217
+ * Require incoming event properties to match the run's recorded scope values.
218
+ */
219
+ match_scope?: boolean;
192
220
  /**
193
221
  * The event's name
194
222
  */
@@ -643,6 +671,10 @@ export type OfferStep = {
643
671
  */
644
672
  key: string;
645
673
  };
674
+ export type OnSiteStep = {
675
+ campaign: string;
676
+ days?: number;
677
+ };
646
678
  /**
647
679
  * One thing wrong with a definition.
648
680
  */
@@ -832,6 +864,15 @@ export type RunStep = {
832
864
  */
833
865
  step: string;
834
866
  };
867
+ export type SMSStep = {
868
+ body?: string;
869
+ category?: string;
870
+ locale?: string;
871
+ template?: string;
872
+ variables?: {
873
+ [key: string]: string;
874
+ };
875
+ };
835
876
  /**
836
877
  * Writes properties of the person's (analytics' people).
837
878
  */
@@ -978,6 +1019,7 @@ export type SplitArm = {
978
1019
  */
979
1020
  export type Step = {
980
1021
  branch?: BranchStep;
1022
+ commerce_promo?: CommercePromoStep;
981
1023
  coupon?: CouponStep;
982
1024
  email?: EmailStep;
983
1025
  event?: EventStep;
@@ -988,13 +1030,18 @@ export type Step = {
988
1030
  */
989
1031
  next?: string;
990
1032
  offer?: OfferStep;
1033
+ onsite?: OnSiteStep;
991
1034
  push?: PushStep;
992
1035
  set?: SetStep;
1036
+ sms?: SMSStep;
993
1037
  /**
994
1038
  * A/B split: 2 to 5 ways whose weights add up to 100; each person takes one by chance, the same one on every try
995
1039
  */
996
1040
  split?: SplitArm[];
997
1041
  wait?: WaitStep;
1042
+ wallet_credit?: WalletCreditStep;
1043
+ webhook?: WebhookStep;
1044
+ whatsapp?: WhatsAppStep;
998
1045
  };
999
1046
  /**
1000
1047
  * A step's outcomes; a split's, each way's conversions too.
@@ -1021,6 +1068,37 @@ export type StepStats = {
1021
1068
  */
1022
1069
  step: string;
1023
1070
  };
1071
+ export type StoreBlueprintActivate = {
1072
+ blueprint_id: string;
1073
+ body?: string;
1074
+ channel: "push" | "email" | "sms" | "whatsapp";
1075
+ delay?: string;
1076
+ key?: string;
1077
+ locale?: string;
1078
+ name?: string;
1079
+ promo_rule?: string;
1080
+ publish?: boolean;
1081
+ template?: string;
1082
+ title?: string;
1083
+ };
1084
+ export type StoreBlueprintJourney = {
1085
+ blueprint_id: string;
1086
+ created_at: string;
1087
+ definition: {
1088
+ [key: string]: unknown;
1089
+ };
1090
+ entry: EntryInfo;
1091
+ key: string;
1092
+ name: string;
1093
+ owner_store_id: string;
1094
+ published_at?: string | null;
1095
+ status: "draft" | "live" | "stopped";
1096
+ stopped_at?: string | null;
1097
+ updated_at: string;
1098
+ };
1099
+ export type StoreBlueprintList = {
1100
+ journeys: StoreBlueprintJourney[];
1101
+ };
1024
1102
  /**
1025
1103
  * The test user a journey is tried on.
1026
1104
  */
@@ -1076,6 +1154,30 @@ export type WaitStep = {
1076
1154
  */
1077
1155
  until?: string;
1078
1156
  };
1157
+ export type WalletCreditStep = {
1158
+ amount: number;
1159
+ reason?: string;
1160
+ recipient_user_id?: string;
1161
+ vesting_days?: number;
1162
+ wallet_key: string;
1163
+ };
1164
+ export type WebhookStep = {
1165
+ body?: {
1166
+ [key: string]: unknown;
1167
+ };
1168
+ headers?: {
1169
+ [key: string]: string;
1170
+ };
1171
+ url: string;
1172
+ };
1173
+ export type WhatsAppStep = {
1174
+ category?: string;
1175
+ locale?: string;
1176
+ slug: string;
1177
+ variables?: {
1178
+ [key: string]: string;
1179
+ };
1180
+ };
1079
1181
  /** The events this module sends the project's webhooks (x-palbase-events), by type: each one's payload, the event's data. */
1080
1182
  export interface Events {
1081
1183
  /**
@@ -1123,6 +1225,14 @@ export declare function client(t: Transport): {
1123
1225
  body: JourneyWrite; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
1124
1226
  signal?: AbortSignal;
1125
1227
  }): Promise<Reply<201, Journey>>;
1228
+ /**
1229
+ * List built-in seller blueprints
1230
+ *
1231
+ * Returns the built-in sandboxed seller automation blueprints.
1232
+ */
1233
+ listBlueprints(input?: {
1234
+ signal?: AbortSignal;
1235
+ }): Promise<Reply<200, BlueprintList>>;
1126
1236
  /**
1127
1237
  * A person's runs
1128
1238
  *
@@ -1147,6 +1257,41 @@ export declare function client(t: Transport): {
1147
1257
  body: SimulationWrite; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
1148
1258
  signal?: AbortSignal;
1149
1259
  }): Promise<Reply<200, Simulation>>;
1260
+ /**
1261
+ * List a store's blueprint journeys
1262
+ *
1263
+ * Lists blueprint journeys owned by the given store.
1264
+ */
1265
+ listStoreBlueprints(input: {
1266
+ path: {
1267
+ store_id: string;
1268
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
1269
+ signal?: AbortSignal;
1270
+ }): Promise<Reply<200, StoreBlueprintList>>;
1271
+ /**
1272
+ * Activate a seller blueprint for a store
1273
+ *
1274
+ * Compiles and activates a sandboxed seller blueprint scoped strictly to store_id.
1275
+ */
1276
+ activateStoreBlueprint(input: {
1277
+ path: {
1278
+ store_id: string;
1279
+ };
1280
+ body: StoreBlueprintActivate; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
1281
+ signal?: AbortSignal;
1282
+ }): Promise<Reply<201, StoreBlueprintJourney>>;
1283
+ /**
1284
+ * Delete a store's blueprint journey
1285
+ *
1286
+ * Stops and deletes a blueprint journey owned by store_id.
1287
+ */
1288
+ deleteStoreBlueprint(input: {
1289
+ path: {
1290
+ store_id: string; /** The journey key */
1291
+ key: string;
1292
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
1293
+ signal?: AbortSignal;
1294
+ }): Promise<Reply<204, undefined>>;
1150
1295
  /**
1151
1296
  * Check a definition
1152
1297
  *
@@ -656,6 +656,7 @@ export type MarketingCap = ({
656
656
  * What a button does: closes the message (close), opens an https address (open_url) or a link the app opens (deep_link), asks for push — the system's prompt, after the message's own ask (request_push) —, shows the paywall of a placement (show_paywall), hands a name and a value to the app's own code (custom), opens one of the message's sheets (sheet), or takes one of the catalog's offers (offer: the app buys it with the offer, or claims its grant). The message closes as the action is taken unless dismiss says false.
657
657
  */
658
658
  export type MessageAction = {
659
+ code?: MessageString;
659
660
  /**
660
661
  * Dismiss.
661
662
  */
@@ -683,7 +684,7 @@ export type MessageAction = {
683
684
  /**
684
685
  * Type.
685
686
  */
686
- type: "close" | "open_url" | "deep_link" | "request_push" | "show_paywall" | "custom" | "sheet" | "offer";
687
+ type: "close" | "open_url" | "deep_link" | "request_push" | "show_paywall" | "custom" | "sheet" | "offer" | "apply_promo" | "copy_code";
687
688
  /**
688
689
  * Url.
689
690
  */
@@ -1196,7 +1197,7 @@ export type MessagePresentation = {
1196
1197
  /**
1197
1198
  * Type.
1198
1199
  */
1199
- type: "modal" | "fullscreen" | "banner" | "card";
1200
+ type: "modal" | "fullscreen" | "banner" | "card" | "slide_in" | "toast";
1200
1201
  };
1201
1202
  /**
1202
1203
  * A radial gradient: its center and radius as shares of the component, and 2 to 8 stops.
@@ -2426,17 +2427,17 @@ export type SendGridEvents = SendGridEvent[];
2426
2427
  */
2427
2428
  export type SharedPausedEvent = {
2428
2429
  /**
2429
- * The project whose shared sending stopped: the platform's own copy names the customer's.
2430
+ * Its shared emails that bounced for good since the later of a day before and its last pause's end.
2430
2431
  */
2431
- project_id: string;
2432
+ bounced: number;
2432
2433
  /**
2433
2434
  * email.
2434
2435
  */
2435
2436
  channel: string;
2436
2437
  /**
2437
- * Its shared emails that bounced for good since the later of a day before and its last pause's end.
2438
+ * The project whose shared sending stopped: the platform's own copy names the customer's.
2438
2439
  */
2439
- bounced: number;
2440
+ project_id: string;
2440
2441
  /**
2441
2442
  * Its shared emails sent in the same time.
2442
2443
  */