palbase 0.72.0 → 0.73.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/ai/index.js +2 -2
- package/dist/ai-sdk/index.js +2 -2
- package/dist/backend/engine.js +2 -2
- package/dist/backend/env.js +1 -1
- package/dist/backend/index.js +11 -11
- package/dist/backend/stack.js +1 -1
- package/dist/backend/test.js +2 -2
- package/dist/chunks/2TKZTIMD.js +19 -0
- package/dist/chunks/{3MF6NROQ.js → 3KCV4F4F.js} +2 -2
- package/dist/chunks/{QDPRR5PE.js → 4E4ABCSD.js} +2 -2
- package/dist/chunks/{Y7ZJ3M5F.js → 5N5GHLUU.js} +2 -2
- package/dist/chunks/{JMNQRIEG.js → 5N6QKGPA.js} +2 -2
- package/dist/chunks/{7TZJLWWX.js → AXANFT2A.js} +2 -2
- package/dist/chunks/{E2MNCFOU.js → DNSLYLU6.js} +1 -1
- package/dist/chunks/{S3N7N6UD.js → GTKPHG5F.js} +2 -2
- package/dist/chunks/{OY2MT7N5.js → GWWU2FJ7.js} +2 -2
- package/dist/chunks/{LDFOUUBT.js → HRWVZ4PC.js} +2 -2
- package/dist/chunks/{I4SH2RTD.js → HYPCFC4K.js} +1 -1
- package/dist/chunks/{F4LE2YZX.js → IVJOWYRE.js} +2 -2
- package/dist/chunks/{DE7BWXBF.js → MB7MHOQO.js} +1 -1
- package/dist/chunks/{D5I74USX.js → MFSC4OJV.js} +2 -2
- package/dist/chunks/SEICTPQP.js +2 -0
- package/dist/chunks/{MVVULWTH.js → SQNAPFXW.js} +2 -2
- package/dist/chunks/SS2RVI27.js +95 -0
- package/dist/chunks/TR2IPX2A.js +23 -0
- package/dist/chunks/{JXIKBG4D.js → U3H6HER3.js} +1 -1
- package/dist/chunks/UOJVMV42.js +13 -0
- package/dist/chunks/UXHNXE3J.js +2 -0
- package/dist/chunks/{O6JNTYC5.js → VCL3SAQL.js} +2 -2
- package/dist/chunks/{WWXBXZUO.js → W2KD2I4Q.js} +1 -1
- package/dist/chunks/{QROXSSPQ.js → YU3GFTZV.js} +1 -1
- package/dist/cli.js +259 -259
- package/dist/cloud/index.js +2 -2
- package/dist/refuse/ai-sdk.js +1 -1
- package/dist/refuse/ai.js +1 -1
- package/dist/refuse/backend.js +1 -1
- package/dist/refuse/cloud.js +1 -1
- package/dist/refuse/server.js +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/testing.js +2 -2
- package/dist/web/index.js +2 -2
- package/dist/web/message.js +2 -2
- package/dist/web/palbe.js +2 -2
- package/dist/web/payments-ui.js +2 -2
- package/dist/web/paywall.js +2 -2
- package/dist/web/push-sw.js +1 -1
- package/dist/web/ssr.js +2 -2
- package/dist/web/vite.js +2 -2
- package/package.json +2 -2
- package/types/backend/src/index.d.ts +1 -1
- package/types/backend/src/services.d.ts +31 -0
- package/types/cloud/src/generated/project.d.ts +2 -1
- package/types/internal/src/modules/analytics.d.ts +58 -4
- package/types/internal/src/modules/campaigns.d.ts +616 -0
- package/types/internal/src/modules/events.d.ts +4 -3
- package/types/internal/src/modules/index.d.ts +1 -0
- package/types/internal/src/modules/journeys.d.ts +145 -0
- package/types/internal/src/modules/notify.d.ts +7 -6
- package/types/server/src/campaigns.d.ts +31 -0
- package/types/server/src/index.d.ts +1 -0
- package/types/server/src/server.d.ts +4 -0
- package/types/web/src/campaigns.d.ts +59 -0
- package/types/web/src/client.d.ts +3 -0
- package/types/web/src/inapp.d.ts +4 -0
- package/types/web/src/index.d.ts +1 -0
- package/types/web/src/screen/render.d.ts +6 -1
- package/types/web/src/screen/resolve.d.ts +10 -0
- package/dist/chunks/CYS75YV4.js +0 -2
- package/dist/chunks/JP55FW66.js +0 -13
- package/dist/chunks/MB6ITBD2.js +0 -95
- package/dist/chunks/UXU6RXU3.js +0 -23
- package/dist/chunks/XUYC354U.js +0 -2
- package/dist/chunks/ZHSM4NCV.js +0 -13
|
@@ -3,6 +3,7 @@ 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';
|
|
6
7
|
import type { Events as CommerceEvents } from './commerce.js';
|
|
7
8
|
import type { Events as FlagsEvents } from './flags.js';
|
|
8
9
|
import type { Events as IapEvents } from './iap.js';
|
|
@@ -14,16 +15,16 @@ import type { Events as StorageEvents } from './storage.js';
|
|
|
14
15
|
import type { Events as StoresEvents } from './stores.js';
|
|
15
16
|
import type { Events as WorkspacesEvents } from './workspaces.js';
|
|
16
17
|
/** Every event the modules' contracts say they send the project's webhooks (x-palbase-events), by type: its payload, the event's data. */
|
|
17
|
-
export interface PlatformEvents extends AiEvents, AnalyticsEvents, AuthEvents, CallsEvents, CommerceEvents, 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 {
|
|
18
19
|
}
|
|
19
20
|
/** A platform event's type: one a module's contract declares. */
|
|
20
21
|
export type EventType = keyof PlatformEvents;
|
|
21
22
|
/** Every platform event's type, as the contracts declare them. */
|
|
22
|
-
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", "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"];
|
|
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"];
|
|
23
24
|
/**
|
|
24
25
|
* A platform event as delivered: one member per type the contracts declare,
|
|
25
26
|
* its data that type's payload, so a switch on its type narrows it. An
|
|
26
27
|
* event of a type none of them declares (one a newer platform sends) is no
|
|
27
28
|
* member: at run time it reaches the switch's default, which takes it.
|
|
28
29
|
*/
|
|
29
|
-
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["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">;
|
|
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,7 @@ 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';
|
|
6
7
|
export * as commerce from './commerce.js';
|
|
7
8
|
export * as flags from './flags.js';
|
|
8
9
|
export * as iap from './iap.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
|
-
*
|
|
2430
|
+
* Its shared emails that bounced for good since the later of a day before and its last pause's end.
|
|
2430
2431
|
*/
|
|
2431
|
-
|
|
2432
|
+
bounced: number;
|
|
2432
2433
|
/**
|
|
2433
2434
|
* email.
|
|
2434
2435
|
*/
|
|
2435
2436
|
channel: string;
|
|
2436
2437
|
/**
|
|
2437
|
-
*
|
|
2438
|
+
* The project whose shared sending stopped: the platform's own copy names the customer's.
|
|
2438
2439
|
*/
|
|
2439
|
-
|
|
2440
|
+
project_id: string;
|
|
2440
2441
|
/**
|
|
2441
2442
|
* Its shared emails sent in the same time.
|
|
2442
2443
|
*/
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { campaigns as campaignsModule, journeys as journeysModule, PalbaseEvent } from '../../internal/src/modules/index.js';
|
|
2
|
+
export type Broadcast = campaignsModule.Broadcast;
|
|
3
|
+
export type BroadcastWrite = campaignsModule.BroadcastWrite;
|
|
4
|
+
export type BroadcastVariant = campaignsModule.BroadcastVariant;
|
|
5
|
+
export type BroadcastStats = campaignsModule.BroadcastStats;
|
|
6
|
+
export type BroadcastArmStats = campaignsModule.BroadcastArmStats;
|
|
7
|
+
export type BroadcastConversionWrite = campaignsModule.BroadcastConversionWrite;
|
|
8
|
+
export type BroadcastConversionResult = campaignsModule.BroadcastConversionResult;
|
|
9
|
+
export type CampaignIncentive = campaignsModule.Incentive;
|
|
10
|
+
export type OnSiteCampaign = campaignsModule.OnSiteCampaign;
|
|
11
|
+
export type OnSiteCampaignWrite = campaignsModule.OnSiteCampaignWrite;
|
|
12
|
+
export type OnSiteSettings = campaignsModule.OnSiteSettings;
|
|
13
|
+
export type OnSiteStats = campaignsModule.OnSiteStats;
|
|
14
|
+
export type TrackingLink = campaignsModule.TrackingLink;
|
|
15
|
+
export type TrackingLinkWrite = campaignsModule.TrackingLinkWrite;
|
|
16
|
+
export type TrackingLinkStats = campaignsModule.TrackingLinkStats;
|
|
17
|
+
export type LinkAttributeWrite = campaignsModule.LinkAttributeWrite;
|
|
18
|
+
export type LinkAttributeResult = campaignsModule.LinkAttributeResult;
|
|
19
|
+
export type SellerBlueprint = journeysModule.Blueprint;
|
|
20
|
+
export type StoreBlueprintActivate = journeysModule.StoreBlueprintActivate;
|
|
21
|
+
export type StoreBlueprintJourney = journeysModule.StoreBlueprintJourney;
|
|
22
|
+
export type CampaignsWebhookEvent = Extract<PalbaseEvent, {
|
|
23
|
+
type: `campaigns.${string}`;
|
|
24
|
+
}>;
|
|
25
|
+
export type JourneysWebhookEvent = Extract<PalbaseEvent, {
|
|
26
|
+
type: `journey.${string}`;
|
|
27
|
+
}>;
|
|
28
|
+
/** Type guard narrowing a verified Palbase webhook event to campaigns.* events. */
|
|
29
|
+
export declare function isCampaignsEvent(event: PalbaseEvent): event is CampaignsWebhookEvent;
|
|
30
|
+
/** Type guard narrowing a verified Palbase webhook event to journey.* events. */
|
|
31
|
+
export declare function isJourneysEvent(event: PalbaseEvent): event is JourneysWebhookEvent;
|
|
@@ -6,6 +6,7 @@ export { AuthUnavailable, requestAddress, sessionStanding, TokenError, TokenVeri
|
|
|
6
6
|
export { isEntitled, ReservationSettled, withReservation, type CustomerInfo, type Reservation, type SpendReceipt } from './iap.js';
|
|
7
7
|
export { isPaymentsEvent, isRetryableDecline, settleWalletHold, WalletHoldSettled, withWalletHold, type DeclineCode, type PaymentChannel, type PaymentIntent, type PaymentSplit, type PaymentSubscription, type PaymentsWebhookEvent, type SavedPaymentMethod, type SellerAccount, type SellerBalance, type SplitInput, type SplitRefundInput, type SubMerchant, type WalletBalance, type WalletHold, type WalletHoldReservation, type WalletHoldSettlement, } from './payments.js';
|
|
8
8
|
export { createCommerceHookHandler, isCommerceEvent, isPromotionsEvent, verifyCommerceHookSignature, type Cart, type Channel, type CheckoutResponse, type CommerceHookContext, type CommerceHookHandlerOptions, type CommerceHookPoint, type CommerceHookVerifyOptions, type CommerceSettings, type CommerceWebhookEvent, type HookCreated, type HookView, type InventoryLevel, type Invoice, type Listing, type Order, type OrderDetail, type Price, type Product, type ProductDetail, type PromotionCode, type PromotionEvalResult, type PromotionRedemption, type PromotionRule, type PromotionsWebhookEvent, type Region, type ReturnRecord, type Settlement, type StockLocation, type Store, type StoreMetrics, type StoreOrder, type Variant, } from './commerce.js';
|
|
9
|
+
export { isCampaignsEvent, isJourneysEvent, type Broadcast, type BroadcastArmStats, type BroadcastConversionResult, type BroadcastConversionWrite, type BroadcastStats, type BroadcastVariant, type BroadcastWrite, type CampaignIncentive, type CampaignsWebhookEvent, type JourneysWebhookEvent, type LinkAttributeResult, type LinkAttributeWrite, type OnSiteCampaign, type OnSiteCampaignWrite, type OnSiteSettings, type OnSiteStats, type SellerBlueprint, type StoreBlueprintActivate, type StoreBlueprintJourney, type TrackingLink, type TrackingLinkStats, type TrackingLinkWrite, } from './campaigns.js';
|
|
9
10
|
export { pages } from './pages.js';
|
|
10
11
|
export { PalbaseError } from '../../internal/src/transport.js';
|
|
11
12
|
export type { RetryPolicy } from '../../internal/src/retry.js';
|
|
@@ -55,8 +55,12 @@ export interface PalbaseServer {
|
|
|
55
55
|
notify: ReturnType<typeof modules.notify.client>;
|
|
56
56
|
/** Provider-agnostic payments, saved methods, subscriptions, closed-loop double-entry wallets, spend QR tokens, and zero-drift audit. */
|
|
57
57
|
payments: ReturnType<typeof modules.payments.client>;
|
|
58
|
+
/** Multi-channel broadcasts, on-site/in-app campaigns, and allowlisted tracking links. */
|
|
59
|
+
campaigns: ReturnType<typeof modules.campaigns.client>;
|
|
58
60
|
/** Unified commerce, multi-seller marketplace, Buy Box, split OMS/RMA, and standalone promotions engine. */
|
|
59
61
|
commerce: ReturnType<typeof modules.commerce.client>;
|
|
62
|
+
/** Lifecycle automation journeys and sandboxed seller blueprints. */
|
|
63
|
+
journeys: ReturnType<typeof modules.journeys.client>;
|
|
60
64
|
realtime: ReturnType<typeof modules.realtime.client>;
|
|
61
65
|
secrets: ReturnType<typeof modules.secrets.client>;
|
|
62
66
|
storage: ReturnType<typeof modules.storage.client>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { campaigns as campaignsModule } from '../../internal/src/modules/index.js';
|
|
2
|
+
import type { Transport } from '../../internal/src/transport.js';
|
|
3
|
+
import { type Installation } from './installation.js';
|
|
4
|
+
import type { Cart, CartAuthOptions, Commerce } from './commerce.js';
|
|
5
|
+
type CM = typeof campaignsModule;
|
|
6
|
+
export type OnSiteMessage = campaignsModule.OnSiteMessage;
|
|
7
|
+
export type OnSiteMessageList = campaignsModule.OnSiteMessageList;
|
|
8
|
+
export type OnSiteImpression = campaignsModule.OnSiteImpression;
|
|
9
|
+
export type OnSiteImpressionWrite = campaignsModule.OnSiteImpressionWrite;
|
|
10
|
+
export type OnSiteEventWrite = campaignsModule.OnSiteEventWrite;
|
|
11
|
+
export interface CampaignAttribution {
|
|
12
|
+
clickToken?: string;
|
|
13
|
+
promoCode?: string;
|
|
14
|
+
utmSource?: string;
|
|
15
|
+
utmMedium?: string;
|
|
16
|
+
utmCampaign?: string;
|
|
17
|
+
utmContent?: string;
|
|
18
|
+
utmTerm?: string;
|
|
19
|
+
capturedAt: number;
|
|
20
|
+
}
|
|
21
|
+
type Globals = {
|
|
22
|
+
location?: {
|
|
23
|
+
href?: string;
|
|
24
|
+
search?: string;
|
|
25
|
+
};
|
|
26
|
+
localStorage?: Storage;
|
|
27
|
+
};
|
|
28
|
+
export declare class Campaigns {
|
|
29
|
+
readonly api: ReturnType<CM['client']>;
|
|
30
|
+
private commerce;
|
|
31
|
+
private installation;
|
|
32
|
+
private storageKey;
|
|
33
|
+
private g;
|
|
34
|
+
private now;
|
|
35
|
+
private memoryAttribution;
|
|
36
|
+
constructor(transport: Transport, installation: Installation, commerce: Commerce, origin: string, g?: Globals, now?: () => number);
|
|
37
|
+
/** Fetches eligible on-site / in-app campaigns for the current user or browser installation. */
|
|
38
|
+
listOnSiteMessages(signal?: AbortSignal): Promise<OnSiteMessageList>;
|
|
39
|
+
/** Records an on-site campaign impression and returns any generated incentive variables. */
|
|
40
|
+
recordImpression(body: {
|
|
41
|
+
campaign_id: string;
|
|
42
|
+
session_id: string;
|
|
43
|
+
installation_id?: string;
|
|
44
|
+
}, signal?: AbortSignal): Promise<OnSiteImpression>;
|
|
45
|
+
/** Records a clicked, dismissed, or converted interaction on an on-site impression. */
|
|
46
|
+
recordEvent(impressionId: string, body: OnSiteEventWrite, signal?: AbortSignal): Promise<void>;
|
|
47
|
+
/**
|
|
48
|
+
* Reads `pb_click`, `pb_promo`, and `utm_*` query parameters from `urlOrSearch` (or `window.location.search`),
|
|
49
|
+
* persists them for attribution across page navigation, and returns the captured record (or null when absent).
|
|
50
|
+
*/
|
|
51
|
+
captureAttribution(urlOrSearch?: string): CampaignAttribution | null;
|
|
52
|
+
/** Returns the currently active captured tracking-link attribution (or null if absent or expired). */
|
|
53
|
+
getAttribution(maxAgeMs?: number): CampaignAttribution | null;
|
|
54
|
+
/** Clears persisted tracking-link attribution. */
|
|
55
|
+
clearAttribution(): void;
|
|
56
|
+
/** Applies the captured `pb_promo` code (if any) directly to a commerce cart. */
|
|
57
|
+
applyAttributedPromo(cartId: string, opts?: CartAuthOptions): Promise<Cart | null>;
|
|
58
|
+
}
|
|
59
|
+
export {};
|
|
@@ -10,6 +10,7 @@ import { Notify } from './notify.js';
|
|
|
10
10
|
import { Iap } from './iap.js';
|
|
11
11
|
import { Payments } from './payments.js';
|
|
12
12
|
import { Commerce } from './commerce.js';
|
|
13
|
+
import { Campaigns } from './campaigns.js';
|
|
13
14
|
import { type ChatToolCall, type SessionSummaryEvent } from './chat.js';
|
|
14
15
|
import { Flags } from './flags.js';
|
|
15
16
|
import { Messaging, type MessagingOptions } from './messaging.js';
|
|
@@ -102,6 +103,8 @@ export interface PalbaseClient {
|
|
|
102
103
|
payments: Payments;
|
|
103
104
|
/** Unified storefront catalog, guest/customer carts, single-TX checkout, customer orders/downloads, and user-pinned Seller Portal. */
|
|
104
105
|
commerce: Commerce;
|
|
106
|
+
/** On-site / in-app campaigns and cookieless tracking-link attribution (`pb_click`, `pb_promo`, UTM). */
|
|
107
|
+
campaigns: Campaigns;
|
|
105
108
|
/** The project's notifications as this app takes them: this browser's pushes (Web Push). */
|
|
106
109
|
notify: Notify;
|
|
107
110
|
/** The project's feature flags and remote configuration, resolved for this app and its reader, kept current as they change. */
|
package/types/web/src/inapp.d.ts
CHANGED
|
@@ -31,6 +31,10 @@ export interface InAppOptions {
|
|
|
31
31
|
onOffer?(offer: string): void | Promise<void>;
|
|
32
32
|
/** An offer the SDK could not take (no one signed in, a guest, the offer no longer theirs, the network). Without one it is thrown, and the message stays. */
|
|
33
33
|
onOfferError?(error: unknown, offer: string): void;
|
|
34
|
+
/** Applies a commerce promotion code triggered by an `apply_promo` action button. */
|
|
35
|
+
onApplyPromo?(code: string): void | Promise<void>;
|
|
36
|
+
/** Handles a `copy_code` action button (defaults to navigator.clipboard.writeText). */
|
|
37
|
+
onCopyCode?(code: string): void | Promise<void>;
|
|
34
38
|
/** The push ask's button: the browser's prompt and this browser subscribed (pb.notify.push.subscribe), unless the app does it. */
|
|
35
39
|
onRequestPush?(): void | Promise<void>;
|
|
36
40
|
/** Told as a campaign shows, and as it closes. */
|
package/types/web/src/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export { ClientTemplates, type TemplateAttachment, type TemplateRunOptions, type
|
|
|
12
12
|
export { Iap, redemptionToken, type CheckoutSource, type CustomerInfo, type CustomerInfoListener, type GrantInfo, type MergeGrant, type OfferView, type Offerings, type Redeemed, type RedemptionLink, type RefundDataConsent, } from './iap.js';
|
|
13
13
|
export { Payments, TERMINAL_INTENT_STATUSES, declineMessage, isTerminalIntentStatus, mountEmbedFrame, parseCallbackMessage, type Address, type Buyer, type CancelSubscriptionResponse, type Capabilities, type CapabilitiesResponse, type ConfirmIntentOptions, type InstallmentConfig, type InstallmentOption, type InstallmentTable, type IntentView, type MasterpassAction, type NextAction, type OtpPromptContext, type PaymentCallbackMessage, type PaymentRealtimeEvent, type PaymentRealtimeListener, type PresentIntentOptions, type PresentableIntent, type ProviderOptions, type SavedMethodView, type SpendToken, type SubmitOtpOptions, type SubscriptionListResponse, type SubscriptionSummary, type TopUpWalletOptions, type WaitForIntentOptions, type WalletBalance, type WalletBalancesListener, } from './payments.js';
|
|
14
14
|
export { Commerce, SellerPortal, type Cart, type CartAuthOptions, type CheckoutResponse, type Order, type OrderDetail, type OrderDownloads, type OrderList, type Product, type ProductDetail, type ProductList, type ReturnList, type ReturnRecord, type Store, type StoreList, type StoreMetrics, type StoreOrder, type StoreOrderDetail, type StoreOrderList, } from './commerce.js';
|
|
15
|
+
export { Campaigns, type CampaignAttribution, type OnSiteEventWrite, type OnSiteImpression, type OnSiteImpressionWrite, type OnSiteMessage, type OnSiteMessageList, } from './campaigns.js';
|
|
15
16
|
export { Notify, WebPush, type PushPermission, type PushSubscribeOptions } from './notify.js';
|
|
16
17
|
export { Flags, type FlagSource, type FlagsListener } from './flags.js';
|
|
17
18
|
export { ConversationList, ConversationView, DeletedGroupList, indexedDBKeyValue, Messaging, ScheduledList, ThreadView, type Conversation, type ConversationMatch, type ConversationViewState, type ConversationListState, type DeletedGroup, type DeletedGroupListState, type Entry, type Hit, type Member, type Message, type MessagingOptions, type MyProfile, type Observed, type OpenedFile, type OutboxItem, type OutgoingFile, type Profile, type ScheduledMessage, type SearchHit, type SearchMatch, type SearchOptions, type SearchResults, type SendOptions, type ThreadState, type ThreadViewState, } from './messaging.js';
|
|
@@ -114,7 +114,7 @@ export interface MessageInput {
|
|
|
114
114
|
export type MessageState = Omit<PaywallState, 'selected'>;
|
|
115
115
|
/** A button's action as the person took it, with where the button is: what a campaign counts as a click. */
|
|
116
116
|
export interface MessageActionTaken {
|
|
117
|
-
type: 'close' | 'open_url' | 'deep_link' | 'request_push' | 'show_paywall' | 'custom' | 'sheet' | 'offer';
|
|
117
|
+
type: 'close' | 'open_url' | 'deep_link' | 'request_push' | 'show_paywall' | 'custom' | 'sheet' | 'offer' | 'apply_promo' | 'copy_code';
|
|
118
118
|
url?: string;
|
|
119
119
|
link?: string;
|
|
120
120
|
placement?: string;
|
|
@@ -122,6 +122,7 @@ export interface MessageActionTaken {
|
|
|
122
122
|
value?: string;
|
|
123
123
|
sheet?: string;
|
|
124
124
|
offer?: string;
|
|
125
|
+
code?: string;
|
|
125
126
|
/** Whether the message closes as it is taken. */
|
|
126
127
|
dismiss: boolean;
|
|
127
128
|
/** The button's path in the definition (`root.children[2]`), and its id when it has one. */
|
|
@@ -143,6 +144,10 @@ export interface MessageHandlers {
|
|
|
143
144
|
onShowPaywall?(placement: string): void | Promise<void>;
|
|
144
145
|
/** One of the catalog's offers, by key: bought with, or its grant claimed. Without this its button is not drawn; the button waits while a promise it returns runs. */
|
|
145
146
|
onOffer?(offer: string): void | Promise<void>;
|
|
147
|
+
/** Applies a commerce promotion code (apply_promo). Without this its button is not drawn. */
|
|
148
|
+
onApplyPromo?(code: string): void | Promise<void>;
|
|
149
|
+
/** Copies a promo or coupon code (copy_code). Without this, copies via navigator.clipboard.writeText. */
|
|
150
|
+
onCopyCode?(code: string): void | Promise<void>;
|
|
146
151
|
/** The app's own code, by name; without this its button is not drawn. */
|
|
147
152
|
onCustom?(name: string, value?: string): void;
|
|
148
153
|
/** The message's own words, which the definition does not hold: the app's, in its language. */
|
|
@@ -158,6 +158,16 @@ export type ResolvedPresentation = {
|
|
|
158
158
|
position: 'top' | 'bottom';
|
|
159
159
|
dismissible: boolean;
|
|
160
160
|
auto_dismiss_seconds?: number;
|
|
161
|
+
} | {
|
|
162
|
+
type: 'slide_in';
|
|
163
|
+
position: 'top' | 'bottom';
|
|
164
|
+
dismissible: boolean;
|
|
165
|
+
auto_dismiss_seconds?: number;
|
|
166
|
+
} | {
|
|
167
|
+
type: 'toast';
|
|
168
|
+
position: 'top' | 'bottom';
|
|
169
|
+
dismissible: boolean;
|
|
170
|
+
auto_dismiss_seconds?: number;
|
|
161
171
|
} | {
|
|
162
172
|
type: 'card';
|
|
163
173
|
};
|