palbase 0.49.2 → 0.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/{6A2VBW6K.js → 2GEUBRIR.js} +1 -1
- package/dist/chunks/{7K4TPV5K.js → 2GXEAWWG.js} +2 -2
- package/dist/chunks/{ITYU3ULX.js → 4G2FYMUZ.js} +2 -2
- package/dist/chunks/{XHKKFLT7.js → 5VQNKMGU.js} +2 -2
- package/dist/chunks/{UIJMULI2.js → 5YORU4CL.js} +2 -2
- package/dist/chunks/{7ZI7MROG.js → 7FVTTRB3.js} +2 -2
- package/dist/chunks/{MDUU6F7S.js → BAJM7CCV.js} +2 -2
- package/dist/chunks/{KKIBIULO.js → BVNC5Z3I.js} +2 -2
- package/dist/chunks/{XWHDZWXY.js → C43I7GB4.js} +1 -1
- package/dist/chunks/{F7YGHYPE.js → F3JVLW7F.js} +1 -1
- package/dist/chunks/{3FGMN6RY.js → G5JUYES7.js} +2 -2
- package/dist/chunks/{6KDYTSBW.js → JU4KAS2A.js} +2 -2
- package/dist/chunks/{TJXEAKZH.js → KRDPBNDQ.js} +1 -1
- package/dist/chunks/{6KMUQIWT.js → LLJ6DJRL.js} +1 -1
- package/dist/chunks/{YZW6CRBE.js → MDN2LICN.js} +2 -2
- package/dist/chunks/{WP6DXNB4.js → PRCIQI2M.js} +2 -2
- package/dist/chunks/{FTMPWUYS.js → RWTDCZRU.js} +1 -1
- package/dist/chunks/{BVYPUWPA.js → TB3QSX4T.js} +2 -2
- package/dist/chunks/{MHOFOVSN.js → UV4SPELF.js} +1 -1
- package/dist/chunks/{ATMJMBCH.js → WDQD4IXY.js} +2 -2
- package/dist/chunks/{2UAWAVQQ.js → XZSGG3XM.js} +2 -2
- package/dist/chunks/{ZHCIXVJU.js → YIIIKTC2.js} +2 -2
- package/dist/chunks/Z5SGBZF7.js +2 -0
- package/dist/cli.js +119 -119
- 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/project.d.ts +1 -1
- package/types/internal/src/modules/auth.d.ts +41 -3
- package/types/internal/src/modules/events.d.ts +2 -2
- package/types/internal/src/modules/machines.d.ts +141 -0
- package/types/internal/src/modules/secrets.d.ts +2 -2
- package/types/server/src/secrets-env.d.ts +1 -1
- package/dist/chunks/PNLFGVB5.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.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.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.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.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">;
|
|
@@ -2304,6 +2304,120 @@ export type Autoscaling = ({
|
|
|
2304
2304
|
*/
|
|
2305
2305
|
memory_percent?: number;
|
|
2306
2306
|
}) | null;
|
|
2307
|
+
export type ExecRequest = {
|
|
2308
|
+
/**
|
|
2309
|
+
* The command: the program and its arguments, as exec takes them — 1 to 64 items, 4096 bytes each, 16 KiB together, no NUL. For a shell's words, sh -c: ["sh", "-c", "ls /tmp | wc -l"].
|
|
2310
|
+
*/
|
|
2311
|
+
command: string[];
|
|
2312
|
+
};
|
|
2313
|
+
/**
|
|
2314
|
+
* A command run in a machine, with what it printed.
|
|
2315
|
+
*/
|
|
2316
|
+
export type ExecRun = {
|
|
2317
|
+
/**
|
|
2318
|
+
* The run's id.
|
|
2319
|
+
*/
|
|
2320
|
+
id: string;
|
|
2321
|
+
/**
|
|
2322
|
+
* The command, secrets written over (***).
|
|
2323
|
+
*/
|
|
2324
|
+
command: string[];
|
|
2325
|
+
/**
|
|
2326
|
+
* Who ran it: a person's id, or the maker of the environment's token that did.
|
|
2327
|
+
*/
|
|
2328
|
+
by: string;
|
|
2329
|
+
/**
|
|
2330
|
+
* The copy of the machine it ran in (its pod).
|
|
2331
|
+
*/
|
|
2332
|
+
copy?: string;
|
|
2333
|
+
/**
|
|
2334
|
+
* exited: it ended, exit_code its own; killed: it ran past 60 s and was killed; failed: it did not run, reason says why.
|
|
2335
|
+
*/
|
|
2336
|
+
ending: "exited" | "killed" | "failed";
|
|
2337
|
+
/**
|
|
2338
|
+
* The command's exit code, when it exited.
|
|
2339
|
+
*/
|
|
2340
|
+
exit_code?: number;
|
|
2341
|
+
/**
|
|
2342
|
+
* Why it was killed, or did not run.
|
|
2343
|
+
*/
|
|
2344
|
+
reason?: string;
|
|
2345
|
+
/**
|
|
2346
|
+
* What it printed on its output, secrets written over (***).
|
|
2347
|
+
*/
|
|
2348
|
+
stdout: string;
|
|
2349
|
+
/**
|
|
2350
|
+
* What it printed on its errors, secrets written over (***).
|
|
2351
|
+
*/
|
|
2352
|
+
stderr: string;
|
|
2353
|
+
/**
|
|
2354
|
+
* Whether it printed more than the 1 MiB that came back.
|
|
2355
|
+
*/
|
|
2356
|
+
truncated: boolean;
|
|
2357
|
+
/**
|
|
2358
|
+
* When it was asked for.
|
|
2359
|
+
*/
|
|
2360
|
+
started_at: string;
|
|
2361
|
+
/**
|
|
2362
|
+
* When it ended.
|
|
2363
|
+
*/
|
|
2364
|
+
finished_at: string;
|
|
2365
|
+
};
|
|
2366
|
+
/**
|
|
2367
|
+
* A command run in a machine: who ran what, and how it ended — never what it printed.
|
|
2368
|
+
*/
|
|
2369
|
+
export type ExecRunEntry = {
|
|
2370
|
+
/**
|
|
2371
|
+
* The run's id.
|
|
2372
|
+
*/
|
|
2373
|
+
id: string;
|
|
2374
|
+
/**
|
|
2375
|
+
* The command, secrets written over (***).
|
|
2376
|
+
*/
|
|
2377
|
+
command: string[];
|
|
2378
|
+
/**
|
|
2379
|
+
* Who ran it: a person's id, or the maker of the environment's token that did.
|
|
2380
|
+
*/
|
|
2381
|
+
by: string;
|
|
2382
|
+
/**
|
|
2383
|
+
* The copy of the machine it ran in (its pod).
|
|
2384
|
+
*/
|
|
2385
|
+
copy?: string;
|
|
2386
|
+
/**
|
|
2387
|
+
* exited: it ended, exit_code its own; killed: it ran past 60 s and was killed; failed: it did not run, reason says why.
|
|
2388
|
+
*/
|
|
2389
|
+
ending: "exited" | "killed" | "failed";
|
|
2390
|
+
/**
|
|
2391
|
+
* The command's exit code, when it exited.
|
|
2392
|
+
*/
|
|
2393
|
+
exit_code?: number;
|
|
2394
|
+
/**
|
|
2395
|
+
* Why it was killed, or did not run.
|
|
2396
|
+
*/
|
|
2397
|
+
reason?: string;
|
|
2398
|
+
/**
|
|
2399
|
+
* How much it printed, output and errors together.
|
|
2400
|
+
*/
|
|
2401
|
+
output_bytes: number;
|
|
2402
|
+
/**
|
|
2403
|
+
* When it was asked for.
|
|
2404
|
+
*/
|
|
2405
|
+
started_at: string;
|
|
2406
|
+
/**
|
|
2407
|
+
* When it ended.
|
|
2408
|
+
*/
|
|
2409
|
+
finished_at: string;
|
|
2410
|
+
};
|
|
2411
|
+
/**
|
|
2412
|
+
* A page of a machine's commands, newest first.
|
|
2413
|
+
*/
|
|
2414
|
+
export type ExecRunPage = {
|
|
2415
|
+
runs: ExecRunEntry[];
|
|
2416
|
+
/**
|
|
2417
|
+
* The cursor of the next page; absent on the last.
|
|
2418
|
+
*/
|
|
2419
|
+
next_cursor?: string;
|
|
2420
|
+
};
|
|
2307
2421
|
/** Palbase Machines */
|
|
2308
2422
|
export declare function client(t: Transport): {
|
|
2309
2423
|
/**
|
|
@@ -2713,6 +2827,33 @@ export declare function client(t: Transport): {
|
|
|
2713
2827
|
}; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
2714
2828
|
signal?: AbortSignal;
|
|
2715
2829
|
}): Promise<Reply<200, Response>>;
|
|
2830
|
+
/**
|
|
2831
|
+
* Run a command in a machine
|
|
2832
|
+
*
|
|
2833
|
+
* Runs one command in a ready copy of the machine as it serves — the machine woken first if asleep — with no terminal and no input, under /bin/sh, and answers what it printed with its exit code: ending exited (exit_code is the command's), killed (it ran past 60 s and was killed), or failed (it did not run: reason says why — no /bin/sh in the image, no copy ready, the machine not woken). Every secret and platform key the machine is started with, and a password in an address, is written over with *** in stdout, stderr and the command kept; stdout and stderr together are 1 MiB at most (truncated). Who ran what, and how it ended, is kept (ListMachineExecs); the output is not. A person runs one in any environment — signed in, or with their account token; in a production environment's machine no one else does, not a key, an organization's token or an environment's (403 exec_not_in_production). 409 when the machine is bound to another environment than the one called, or moving. 429 when the project's machine time for the period is used up.
|
|
2834
|
+
*/
|
|
2835
|
+
execInMachine(input: {
|
|
2836
|
+
path: {
|
|
2837
|
+
name: string;
|
|
2838
|
+
};
|
|
2839
|
+
body: ExecRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
2840
|
+
signal?: AbortSignal;
|
|
2841
|
+
}): Promise<Reply<200, ExecRun>>;
|
|
2842
|
+
/**
|
|
2843
|
+
* List the commands run in a machine
|
|
2844
|
+
*
|
|
2845
|
+
* The commands run in the machine with ExecInMachine, newest first: who ran which (by: a person's id, or an environment token's maker), in which copy, when, and how it ended — never what it printed (output_bytes is how much it did).
|
|
2846
|
+
*/
|
|
2847
|
+
listMachineExecs(input: {
|
|
2848
|
+
path: {
|
|
2849
|
+
name: string;
|
|
2850
|
+
};
|
|
2851
|
+
query?: {
|
|
2852
|
+
limit?: number; /** The next_cursor of the previous page. Opaque; omit it for the first page. */
|
|
2853
|
+
cursor?: string;
|
|
2854
|
+
}; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
2855
|
+
signal?: AbortSignal;
|
|
2856
|
+
}): Promise<Reply<200, ExecRunPage>>;
|
|
2716
2857
|
/**
|
|
2717
2858
|
* Read what a machine used over time
|
|
2718
2859
|
*
|
|
@@ -470,7 +470,7 @@ export declare function client(t: Transport): {
|
|
|
470
470
|
/**
|
|
471
471
|
* Read every value of an environment
|
|
472
472
|
*
|
|
473
|
-
* Every secret
|
|
473
|
+
* Every development secret with its current value, in one call: what a server on a developer's computer reads at startup (palbase run, env:pull). A production secret's value is never read back, by anyone: 403 secret_write_only — only the machines that start with the production set are given it, and a change is a value set again. The read is recorded in the audit trail.
|
|
474
474
|
*/
|
|
475
475
|
getEnvironmentValues(input: {
|
|
476
476
|
path: {
|
|
@@ -481,7 +481,7 @@ export declare function client(t: Transport): {
|
|
|
481
481
|
/**
|
|
482
482
|
* Read a secret
|
|
483
483
|
*
|
|
484
|
-
* A secret's current value. The read is recorded in the audit trail.
|
|
484
|
+
* A development secret's current value. A production secret's value is never read back, by anyone: 403 secret_write_only — only the machines that start with the production set are given it, and a change is a value set again. The read is recorded in the audit trail.
|
|
485
485
|
*/
|
|
486
486
|
getSecret(input: {
|
|
487
487
|
path: {
|
|
@@ -8,7 +8,7 @@ export interface LoadSecretsOptions {
|
|
|
8
8
|
fetch?: Fetch;
|
|
9
9
|
}
|
|
10
10
|
export interface LoadedSecrets {
|
|
11
|
-
set: 'development'
|
|
11
|
+
set: 'development';
|
|
12
12
|
/** The names set from the project's Secrets. */
|
|
13
13
|
loaded: string[];
|
|
14
14
|
/** The names the environment already held, left as they were. */
|