palbase 0.52.1 → 0.52.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai/index.js +2 -2
- package/dist/backend/engine.js +2 -2
- package/dist/backend/env.js +1 -1
- package/dist/backend/index.js +3 -3
- package/dist/backend/stack.js +1 -1
- package/dist/backend/test.js +2 -2
- package/dist/chunks/{6JJ6KEOR.js → 2PCDSIWJ.js} +1 -1
- package/dist/chunks/{ZQJ7HF3L.js → 3OXYHLPZ.js} +2 -2
- package/dist/chunks/{JG2RR2QF.js → 57HMBEZC.js} +2 -2
- package/dist/chunks/{422S2T64.js → 5ASDRQ76.js} +2 -2
- package/dist/chunks/{77252VGA.js → 6EWQSD7D.js} +1 -1
- package/dist/chunks/{QZJS2BON.js → 7ZMRJPD5.js} +2 -2
- package/dist/chunks/{LDQJTENW.js → CLFVU67I.js} +2 -2
- package/dist/chunks/{F2C6NS5C.js → DOOOEV6B.js} +2 -2
- package/dist/chunks/IAEVNAIO.js +2 -0
- package/dist/chunks/{IZAM4TMF.js → IMY77ULI.js} +1 -1
- package/dist/chunks/{7MHWCLSE.js → JJC4IE3C.js} +2 -2
- package/dist/chunks/{5HCZDHQF.js → JL542ZSC.js} +2 -2
- package/dist/chunks/{HBUQAULV.js → LHOFBMBZ.js} +2 -2
- package/dist/chunks/{4USZU37E.js → MFQQUKVA.js} +2 -2
- package/dist/chunks/{7GUSEXPM.js → N7ZEBHXL.js} +2 -2
- package/dist/chunks/{YQV43TCO.js → OPXS5CYY.js} +1 -1
- package/dist/chunks/{6W7664QV.js → P2IYCDCP.js} +1 -1
- package/dist/chunks/{EMBLVXYC.js → QBER5HWP.js} +2 -2
- package/dist/chunks/{LUAVY2PE.js → TGML3Y7W.js} +2 -2
- package/dist/chunks/{XCXCQZQ5.js → UH5Q63EN.js} +2 -2
- package/dist/chunks/{WCGPTLSR.js → VNMRZXZM.js} +2 -2
- package/dist/chunks/{AO7LGTSD.js → XHTOI77Q.js} +1 -1
- package/dist/chunks/{N5XLPRZQ.js → ZAR57AMM.js} +1 -1
- package/dist/cli.js +111 -111
- package/dist/cloud/index.js +2 -2
- 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/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/cloud/src/generated/studio.d.ts +4 -0
- package/types/internal/src/modules/auth.d.ts +29 -10
- package/types/internal/src/modules/events.d.ts +2 -2
- package/types/internal/src/modules/machines.d.ts +17 -3
- package/types/internal/src/modules/notify.d.ts +34 -2
- package/dist/chunks/OGUWFGK3.js +0 -2
|
@@ -16,11 +16,11 @@ export interface PlatformEvents extends AiEvents, AnalyticsEvents, AuthEvents, C
|
|
|
16
16
|
/** A platform event's type: one a module's contract declares. */
|
|
17
17
|
export type EventType = keyof PlatformEvents;
|
|
18
18
|
/** Every platform event's type, as the contracts declare them. */
|
|
19
|
-
export declare const EVENT_TYPES: readonly ["ai.goal.updated", "ai.response.completed", "ai.response.failed", "ai.response.started", "ai.voice.closed", "ai.voice.delegated", "ai.voice.started", "ai.workspace.conflict", "ai.workspace.published", "ai.workspace.pushed", "audience.entered", "audience.exited", "calls.call.ended", "calls.call.started", "calls.participant.joined", "calls.participant.left", "consent.changed", "device.revoked", "file.deleted", "file.moved", "file.uploaded", "flag.changed", "flag.override_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.unconfirmed", "notification.undelivered", "notification.uninstalled", "purchases.catalog.applied", "purchases.catalog.changed", "purchases.coupon.redeemed", "purchases.credits.depleted", "purchases.credits.low", "purchases.customer.changed", "purchases.customer.erased", "purchases.customer.merged", "purchases.entitlement.changed", "purchases.offer.redeemed", "purchases.ownership.transferred", "purchases.paywall.published", "purchases.purchase.completed", "purchases.quota.exhausted", "purchases.quota.threshold", "purchases.refund.changed", "purchases.store.changed", "purchases.subscription.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.feedback.received", "stores.google.changed", "stores.group.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"];
|
|
19
|
+
export declare const EVENT_TYPES: readonly ["ai.goal.updated", "ai.response.completed", "ai.response.failed", "ai.response.started", "ai.voice.closed", "ai.voice.delegated", "ai.voice.started", "ai.workspace.conflict", "ai.workspace.published", "ai.workspace.pushed", "audience.entered", "audience.exited", "calls.call.ended", "calls.call.started", "calls.participant.joined", "calls.participant.left", "consent.changed", "device.revoked", "file.deleted", "file.moved", "file.uploaded", "flag.changed", "flag.override_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", "purchases.catalog.applied", "purchases.catalog.changed", "purchases.coupon.redeemed", "purchases.credits.depleted", "purchases.credits.low", "purchases.customer.changed", "purchases.customer.erased", "purchases.customer.merged", "purchases.entitlement.changed", "purchases.offer.redeemed", "purchases.ownership.transferred", "purchases.paywall.published", "purchases.purchase.completed", "purchases.quota.exhausted", "purchases.quota.threshold", "purchases.refund.changed", "purchases.store.changed", "purchases.subscription.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.feedback.received", "stores.google.changed", "stores.group.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"];
|
|
20
20
|
/**
|
|
21
21
|
* A platform event as delivered: one member per type the contracts declare,
|
|
22
22
|
* its data that type's payload, so a switch on its type narrows it. An
|
|
23
23
|
* event of a type none of them declares (one a newer platform sends) is no
|
|
24
24
|
* member: at run time it reaches the switch's default, which takes it.
|
|
25
25
|
*/
|
|
26
|
-
export type PalbaseEvent = WebhookEvent<PlatformEvents["ai.goal.updated"], "ai.goal.updated"> | 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.voice.closed"], "ai.voice.closed"> | WebhookEvent<PlatformEvents["ai.voice.delegated"], "ai.voice.delegated"> | WebhookEvent<PlatformEvents["ai.voice.started"], "ai.voice.started"> | WebhookEvent<PlatformEvents["ai.workspace.conflict"], "ai.workspace.conflict"> | WebhookEvent<PlatformEvents["ai.workspace.published"], "ai.workspace.published"> | WebhookEvent<PlatformEvents["ai.workspace.pushed"], "ai.workspace.pushed"> | 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["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["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.unconfirmed"], "notification.unconfirmed"> | WebhookEvent<PlatformEvents["notification.undelivered"], "notification.undelivered"> | WebhookEvent<PlatformEvents["notification.uninstalled"], "notification.uninstalled"> | WebhookEvent<PlatformEvents["purchases.catalog.applied"], "purchases.catalog.applied"> | WebhookEvent<PlatformEvents["purchases.catalog.changed"], "purchases.catalog.changed"> | WebhookEvent<PlatformEvents["purchases.coupon.redeemed"], "purchases.coupon.redeemed"> | WebhookEvent<PlatformEvents["purchases.credits.depleted"], "purchases.credits.depleted"> | WebhookEvent<PlatformEvents["purchases.credits.low"], "purchases.credits.low"> | WebhookEvent<PlatformEvents["purchases.customer.changed"], "purchases.customer.changed"> | WebhookEvent<PlatformEvents["purchases.customer.erased"], "purchases.customer.erased"> | WebhookEvent<PlatformEvents["purchases.customer.merged"], "purchases.customer.merged"> | WebhookEvent<PlatformEvents["purchases.entitlement.changed"], "purchases.entitlement.changed"> | WebhookEvent<PlatformEvents["purchases.offer.redeemed"], "purchases.offer.redeemed"> | WebhookEvent<PlatformEvents["purchases.ownership.transferred"], "purchases.ownership.transferred"> | WebhookEvent<PlatformEvents["purchases.paywall.published"], "purchases.paywall.published"> | WebhookEvent<PlatformEvents["purchases.purchase.completed"], "purchases.purchase.completed"> | WebhookEvent<PlatformEvents["purchases.quota.exhausted"], "purchases.quota.exhausted"> | WebhookEvent<PlatformEvents["purchases.quota.threshold"], "purchases.quota.threshold"> | WebhookEvent<PlatformEvents["purchases.refund.changed"], "purchases.refund.changed"> | WebhookEvent<PlatformEvents["purchases.store.changed"], "purchases.store.changed"> | WebhookEvent<PlatformEvents["purchases.subscription.changed"], "purchases.subscription.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.feedback.received"], "stores.feedback.received"> | WebhookEvent<PlatformEvents["stores.google.changed"], "stores.google.changed"> | WebhookEvent<PlatformEvents["stores.group.changed"], "stores.group.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">;
|
|
26
|
+
export type PalbaseEvent = WebhookEvent<PlatformEvents["ai.goal.updated"], "ai.goal.updated"> | 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.voice.closed"], "ai.voice.closed"> | WebhookEvent<PlatformEvents["ai.voice.delegated"], "ai.voice.delegated"> | WebhookEvent<PlatformEvents["ai.voice.started"], "ai.voice.started"> | WebhookEvent<PlatformEvents["ai.workspace.conflict"], "ai.workspace.conflict"> | WebhookEvent<PlatformEvents["ai.workspace.published"], "ai.workspace.published"> | WebhookEvent<PlatformEvents["ai.workspace.pushed"], "ai.workspace.pushed"> | 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["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["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["purchases.catalog.applied"], "purchases.catalog.applied"> | WebhookEvent<PlatformEvents["purchases.catalog.changed"], "purchases.catalog.changed"> | WebhookEvent<PlatformEvents["purchases.coupon.redeemed"], "purchases.coupon.redeemed"> | WebhookEvent<PlatformEvents["purchases.credits.depleted"], "purchases.credits.depleted"> | WebhookEvent<PlatformEvents["purchases.credits.low"], "purchases.credits.low"> | WebhookEvent<PlatformEvents["purchases.customer.changed"], "purchases.customer.changed"> | WebhookEvent<PlatformEvents["purchases.customer.erased"], "purchases.customer.erased"> | WebhookEvent<PlatformEvents["purchases.customer.merged"], "purchases.customer.merged"> | WebhookEvent<PlatformEvents["purchases.entitlement.changed"], "purchases.entitlement.changed"> | WebhookEvent<PlatformEvents["purchases.offer.redeemed"], "purchases.offer.redeemed"> | WebhookEvent<PlatformEvents["purchases.ownership.transferred"], "purchases.ownership.transferred"> | WebhookEvent<PlatformEvents["purchases.paywall.published"], "purchases.paywall.published"> | WebhookEvent<PlatformEvents["purchases.purchase.completed"], "purchases.purchase.completed"> | WebhookEvent<PlatformEvents["purchases.quota.exhausted"], "purchases.quota.exhausted"> | WebhookEvent<PlatformEvents["purchases.quota.threshold"], "purchases.quota.threshold"> | WebhookEvent<PlatformEvents["purchases.refund.changed"], "purchases.refund.changed"> | WebhookEvent<PlatformEvents["purchases.store.changed"], "purchases.store.changed"> | WebhookEvent<PlatformEvents["purchases.subscription.changed"], "purchases.subscription.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.feedback.received"], "stores.feedback.received"> | WebhookEvent<PlatformEvents["stores.google.changed"], "stores.google.changed"> | WebhookEvent<PlatformEvents["stores.group.changed"], "stores.group.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">;
|
|
@@ -1975,10 +1975,24 @@ export type Domain = {
|
|
|
1975
1975
|
created_at: string;
|
|
1976
1976
|
};
|
|
1977
1977
|
/**
|
|
1978
|
-
* A site's or a machine's domains, by host.
|
|
1978
|
+
* A site's or a machine's domains, by host — or an environment's own, with where its passkeys are bound.
|
|
1979
1979
|
*/
|
|
1980
1980
|
export type DomainList = {
|
|
1981
1981
|
domains: Domain[];
|
|
1982
|
+
passkeys?: PasskeyAddress;
|
|
1983
|
+
};
|
|
1984
|
+
/**
|
|
1985
|
+
* Where an environment's passkeys are bound: their relying party, the name a person's passkey sheet shows. While it has none it is the domain the environment signs in at (while that domain answers), or its own address; the first passkey saved fixes it there for good, wherever the environment signs in later. Absent from the list when auth could not be asked.
|
|
1986
|
+
*/
|
|
1987
|
+
export type PasskeyAddress = {
|
|
1988
|
+
/**
|
|
1989
|
+
* The address: one of the environment's own domains, or its own address (<ref>.palbase.studio).
|
|
1990
|
+
*/
|
|
1991
|
+
host: string;
|
|
1992
|
+
/**
|
|
1993
|
+
* How many passkeys and security keys are saved there. While 0, host follows the domain the environment signs in at.
|
|
1994
|
+
*/
|
|
1995
|
+
saved: number;
|
|
1982
1996
|
};
|
|
1983
1997
|
/**
|
|
1984
1998
|
* A domain to add — sending its visitors to another of the same site's or machine's when redirect_to names one.
|
|
@@ -3572,7 +3586,7 @@ export declare function client(t: Transport): {
|
|
|
3572
3586
|
/**
|
|
3573
3587
|
* List the environment's own domains
|
|
3574
3588
|
*
|
|
3575
|
-
* Lists the domains the environment itself answers at besides its own address — the hosts it signs its people in at: each one's state, the records its owner adds to its DNS, what stands in its way, and whether the environment signs in there (sign_in).
|
|
3589
|
+
* Lists the domains the environment itself answers at besides its own address — the hosts it signs its people in at: each one's state, the records its owner adds to its DNS, what stands in its way, and whether the environment signs in there (sign_in) — and where its passkeys are bound (passkeys).
|
|
3576
3590
|
*/
|
|
3577
3591
|
listEnvironmentDomains(input?: {
|
|
3578
3592
|
signal?: AbortSignal;
|
|
@@ -3589,7 +3603,7 @@ export declare function client(t: Transport): {
|
|
|
3589
3603
|
/**
|
|
3590
3604
|
* Delete one of the environment's own domains
|
|
3591
3605
|
*
|
|
3592
|
-
* Takes a domain away: it answers no more at once, and another environment may add it. The one the environment signs in at is kept (409 domain_signs_in): move sign-in first.
|
|
3606
|
+
* Takes a domain away: it answers no more at once, and another environment may add it. The one the environment signs in at is kept (409 domain_signs_in): move sign-in first. The one its passkeys are bound to is kept while it has any (409 domain_holds_passkeys, saying how many): they sign in only there.
|
|
3593
3607
|
*/
|
|
3594
3608
|
deleteEnvironmentDomain(input: {
|
|
3595
3609
|
path: {
|
|
@@ -1920,6 +1920,9 @@ export type NotifyMessage = {
|
|
|
1920
1920
|
*/
|
|
1921
1921
|
parent_id?: string;
|
|
1922
1922
|
priority: "high" | "normal";
|
|
1923
|
+
/**
|
|
1924
|
+
* The provider it went through: the project's own, or one of the platform's shared sender's accounts — cloudflare, or acs, the backup that takes what Cloudflare could not send (shared before 10.11.2026).
|
|
1925
|
+
*/
|
|
1923
1926
|
provider?: string;
|
|
1924
1927
|
provider_message_id?: string;
|
|
1925
1928
|
/**
|
|
@@ -2024,7 +2027,7 @@ export type NotifySettings = {
|
|
|
2024
2027
|
inbox?: InboxSettings;
|
|
2025
2028
|
marketing_cap?: MarketingCap;
|
|
2026
2029
|
/**
|
|
2027
|
-
* Refuse an email whose recipient's domain takes no mail (no MX record, a null one, or no address), before it is queued. Off unless set.
|
|
2030
|
+
* Refuse an email through the project's own provider whose recipient's domain takes no mail (no MX record, a null one, or no address), before it is queued. Off unless set; the platform's shared sender always refuses one.
|
|
2028
2031
|
*/
|
|
2029
2032
|
mx_check?: boolean;
|
|
2030
2033
|
quiet_hours?: QuietHours;
|
|
@@ -2418,6 +2421,31 @@ export type SendGridEvent = {
|
|
|
2418
2421
|
* SendGrid's Event Webhook call: an array of events.
|
|
2419
2422
|
*/
|
|
2420
2423
|
export type SendGridEvents = SendGridEvent[];
|
|
2424
|
+
/**
|
|
2425
|
+
* notification.shared_paused: a project's email through the platform's shared sender stopped for a day.
|
|
2426
|
+
*/
|
|
2427
|
+
export type SharedPausedEvent = {
|
|
2428
|
+
/**
|
|
2429
|
+
* The project whose shared sending stopped: the platform's own copy names the customer's.
|
|
2430
|
+
*/
|
|
2431
|
+
project_id: string;
|
|
2432
|
+
/**
|
|
2433
|
+
* email.
|
|
2434
|
+
*/
|
|
2435
|
+
channel: string;
|
|
2436
|
+
/**
|
|
2437
|
+
* Its shared emails that bounced for good since the later of a day before and its last pause's end.
|
|
2438
|
+
*/
|
|
2439
|
+
bounced: number;
|
|
2440
|
+
/**
|
|
2441
|
+
* Its shared emails sent in the same time.
|
|
2442
|
+
*/
|
|
2443
|
+
sent: number;
|
|
2444
|
+
/**
|
|
2445
|
+
* When it sends through the shared sender again.
|
|
2446
|
+
*/
|
|
2447
|
+
until: string;
|
|
2448
|
+
};
|
|
2421
2449
|
export type TestInboxList = {
|
|
2422
2450
|
messages: TestInboxMessage[];
|
|
2423
2451
|
};
|
|
@@ -2807,6 +2835,10 @@ export interface Events {
|
|
|
2807
2835
|
* notification.sent: a message left: its provider took it (a topic push: its followers were reached).
|
|
2808
2836
|
*/
|
|
2809
2837
|
"notification.sent": NotificationEvent;
|
|
2838
|
+
/**
|
|
2839
|
+
* notification.shared_paused: the project's email through the platform's shared sender stopped for a day — at least 10 of its shared emails, and at least a tenth of them, bounced for good since the later of a day before and its last pause's end: such mail gets the shared sender's accounts suspended for every project. Its sends through the shared sender are refused (429 shared_sender_paused) until then, its own provider's are not; when the day is over it sends again, and stops again if its mail goes on bouncing. Told to the project and to the platform's own (whose Studio mails the organization's owners).
|
|
2840
|
+
*/
|
|
2841
|
+
"notification.shared_paused": SharedPausedEvent;
|
|
2810
2842
|
/**
|
|
2811
2843
|
* notification.unconfirmed: no report of a push came from the device by the time it expired: the phone may have been off, or its report lost.
|
|
2812
2844
|
*/
|
|
@@ -2882,7 +2914,7 @@ export declare function client(t: Transport): {
|
|
|
2882
2914
|
/**
|
|
2883
2915
|
* Send an email
|
|
2884
2916
|
*
|
|
2885
|
-
* Queues an email through the project's own provider: a template with its variables — the platform's, as the project overrode them, or one it made — or a message composed whole. The platform's shared sender, which a project with no email provider of its own has, sends none of them for the project's key: auth's templates (auth.*) leave it from auth's own flows alone — a sign-up's confirmation, a password reset, a sign-in link — with auth's link, to the address the flow is for, and a key's send of one is refused with 403 `auth_template_reserved`, but for an organization's invitation (auth.org_invitation, variables inviter_name, org_name, accept_link, expires_at): any project's key sends it through the shared sender, in the platform's words and counted against its shared limits, when its accept_link is a page of the project's own app — on its auth site_url's address, or matching its redirect allow-list — and is refused with 400 `accept_link_not_allowed` otherwise (503 `auth_unavailable`, nothing sent, when auth could not be asked); its inviter_name and org_name are names and its expires_at a time — one line each, with no link or web address — or it is refused with 400 `invalid_invitation`. Anything else is refused with 403 `own_provider_required`. Palbase's own project, Studio's, sends its notices and its organizations' invitations to Studio's developers through the shared sender with its key.
|
|
2917
|
+
* Queues an email through the project's own provider: a template with its variables — the platform's, as the project overrode them, or one it made — or a message composed whole. The platform's shared sender, which a project with no email provider of its own has, sends none of them for the project's key: auth's templates (auth.*) leave it from auth's own flows alone — a sign-up's confirmation, a password reset, a sign-in link — with auth's link, to the address the flow is for, and a key's send of one is refused with 403 `auth_template_reserved`, but for an organization's invitation (auth.org_invitation, variables inviter_name, org_name, accept_link, expires_at): any project's key sends it through the shared sender, in the platform's words and counted against its shared limits, when its accept_link is a page of the project's own app — on its auth site_url's address, or matching its redirect allow-list — and is refused with 400 `accept_link_not_allowed` otherwise (503 `auth_unavailable`, nothing sent, when auth could not be asked); its inviter_name and org_name are names and its expires_at a time — one line each, with no link or web address — or it is refused with 400 `invalid_invitation`. Anything else is refused with 403 `own_provider_required`. Through the shared sender a project sends 10 emails a minute and 100 an hour on Free, 60 and 1,000 when it pays — its month is its quota's — (429 `send_limit_reached`, until the window's end); an address takes 5 shared emails an hour and 20 a day, every project's together (429 `recipient_limit_reached`; auth's own flows' are skipped, skip_reason `recipient_limit`); a recipient whose domain takes no mail is refused before anything is queued (400 `invalid_email_domain`); an address that bounced for good or reported a shared email as spam is sent nothing again (skipped, skip_reason `suppressed`); and a project at least 10 of whose shared emails, and a tenth of them, bounced for good in a day stops sending through it for the day (429 `shared_sender_paused`, notification.shared_paused, getDeliverability). Palbase's own project, Studio's, sends its notices and its organizations' invitations to Studio's developers through the shared sender with its key.
|
|
2886
2918
|
*/
|
|
2887
2919
|
sendEmail(input: {
|
|
2888
2920
|
headers?: {
|