palbase 0.75.0 → 0.77.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/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 +3 -3
- package/dist/backend/stack.js +1 -1
- package/dist/backend/test.js +2 -2
- package/dist/chunks/{UPJGT3BN.js → 34HGL5FX.js} +1 -1
- package/dist/chunks/{XZSXLA3N.js → 4M4GEXJS.js} +2 -2
- package/dist/chunks/{ZWASHVNO.js → 6WCN7VAZ.js} +2 -2
- package/dist/chunks/{YEZCBT5I.js → 7RTPVUIH.js} +2 -2
- package/dist/chunks/{MT22R56P.js → AUOFL6RB.js} +2 -2
- package/dist/chunks/{RBZI2C7M.js → BDHVYVWT.js} +1 -1
- package/dist/chunks/CYNLRAAW.js +2 -0
- package/dist/chunks/{FJVUDV4I.js → DENZSXKJ.js} +2 -2
- package/dist/chunks/ES24JS2D.js +2 -0
- package/dist/chunks/{GSY2E764.js → F6OGRDZB.js} +2 -2
- package/dist/chunks/{7BSFT4SH.js → FE7ZBADH.js} +1 -1
- package/dist/chunks/{GMCROKBB.js → FN5763FR.js} +2 -2
- package/dist/chunks/{EFDYHDIB.js → G3PH5T6N.js} +1 -1
- package/dist/chunks/{XUEBLD7V.js → GFBWGJW3.js} +1 -1
- package/dist/chunks/{5NZNKECX.js → IZVBCAKH.js} +2 -2
- package/dist/chunks/{SPMFD3LH.js → JOVXELK5.js} +2 -2
- package/dist/chunks/KLK7HZZ7.js +18 -0
- package/dist/chunks/{7R5TMAGP.js → ONLXIZ6E.js} +2 -2
- package/dist/chunks/{KWVOOFCB.js → QWXF6KWI.js} +1 -1
- package/dist/chunks/{UKONQ2R4.js → RQJ4MX2H.js} +7 -7
- package/dist/chunks/{POURMU7G.js → RRS7TQKX.js} +2 -2
- package/dist/chunks/{P6LK5BD6.js → U4VX7NKX.js} +4 -4
- package/dist/chunks/{G37YLKYL.js → VOLGPAPR.js} +2 -2
- package/dist/chunks/{2SVWIAAD.js → WXT24CE5.js} +1 -1
- package/dist/chunks/{LGXI36R6.js → ZZNNCI6A.js} +2 -2
- package/dist/cli.js +241 -187
- 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/ai/src/ai.d.ts +6 -2
- package/types/ai/src/chats.d.ts +22 -10
- package/types/ai/src/index.d.ts +2 -2
- package/types/ai/src/pools.d.ts +15 -24
- package/types/backend/src/gateways.d.ts +9 -0
- package/types/cloud/src/generated/project.d.ts +3 -3
- package/types/cloud/src/generated/studio.d.ts +4 -6
- package/types/internal/src/ai-machines.d.ts +120 -0
- package/types/internal/src/chat.d.ts +1 -1
- package/types/internal/src/modules/ai.d.ts +186 -77
- package/types/internal/src/modules/analytics.d.ts +5 -1
- package/types/internal/src/modules/auth.d.ts +3 -28
- package/types/internal/src/modules/commerce.d.ts +92 -13
- package/types/internal/src/modules/events.d.ts +2 -2
- package/types/internal/src/modules/iap.d.ts +2 -2
- package/types/internal/src/modules/journeys.d.ts +2 -2
- package/types/internal/src/modules/machines.d.ts +33 -33
- package/types/internal/src/modules/notify.d.ts +2 -2
- package/types/internal/src/modules/payments.d.ts +83 -14
- package/types/internal/src/modules/stores.d.ts +3 -3
- package/types/internal/src/modules/workspaces.d.ts +5 -5
- package/types/web/src/ai-machines.d.ts +76 -0
- package/types/web/src/chat.d.ts +1 -1
- package/types/web/src/index.d.ts +2 -0
- package/types/web/src/templates.d.ts +8 -0
- package/dist/chunks/3GR5ZPYK.js +0 -18
- package/dist/chunks/HT6TR6AZ.js +0 -2
|
@@ -635,7 +635,7 @@ export type CommerceOrderPaidEvent = {
|
|
|
635
635
|
[key: string]: unknown;
|
|
636
636
|
};
|
|
637
637
|
/**
|
|
638
|
-
* Payload for commerce.order.refunded (
|
|
638
|
+
* Payload for commerce.order.refunded: a return completed (`return_id`) or units of a paid order canceled (`cancellation_id`). Also consumed by iap-commerce for entitlement revocation.
|
|
639
639
|
*/
|
|
640
640
|
export type CommerceOrderRefundedEvent = {
|
|
641
641
|
/**
|
|
@@ -647,13 +647,25 @@ export type CommerceOrderRefundedEvent = {
|
|
|
647
647
|
*/
|
|
648
648
|
store_order_id?: string;
|
|
649
649
|
/**
|
|
650
|
-
* Return UUID.
|
|
650
|
+
* Return UUID, when a return gave the money back.
|
|
651
651
|
*/
|
|
652
652
|
return_id?: string;
|
|
653
|
+
/**
|
|
654
|
+
* Cancellation UUID, when a cancellation gave the money back.
|
|
655
|
+
*/
|
|
656
|
+
cancellation_id?: string;
|
|
657
|
+
/**
|
|
658
|
+
* Store UUID.
|
|
659
|
+
*/
|
|
660
|
+
store_id?: string;
|
|
653
661
|
/**
|
|
654
662
|
* Customer ID.
|
|
655
663
|
*/
|
|
656
664
|
customer_id?: string | null;
|
|
665
|
+
/**
|
|
666
|
+
* Currency of the refund.
|
|
667
|
+
*/
|
|
668
|
+
currency?: string;
|
|
657
669
|
/**
|
|
658
670
|
* Refunded total.
|
|
659
671
|
*/
|
|
@@ -738,6 +750,36 @@ export type CommerceReturnEvent = {
|
|
|
738
750
|
refund_total_amount?: number;
|
|
739
751
|
[key: string]: unknown;
|
|
740
752
|
};
|
|
753
|
+
/**
|
|
754
|
+
* Payload for commerce.return.rejected.
|
|
755
|
+
*/
|
|
756
|
+
export type CommerceReturnRejectedEvent = {
|
|
757
|
+
/**
|
|
758
|
+
* Return UUID.
|
|
759
|
+
*/
|
|
760
|
+
return_id?: string;
|
|
761
|
+
/**
|
|
762
|
+
* RMA number.
|
|
763
|
+
*/
|
|
764
|
+
rma_number?: string;
|
|
765
|
+
/**
|
|
766
|
+
* Store order UUID.
|
|
767
|
+
*/
|
|
768
|
+
store_order_id?: string;
|
|
769
|
+
/**
|
|
770
|
+
* Store UUID.
|
|
771
|
+
*/
|
|
772
|
+
store_id?: string;
|
|
773
|
+
/**
|
|
774
|
+
* Who turned the return down: store or project.
|
|
775
|
+
*/
|
|
776
|
+
rejected_by?: string;
|
|
777
|
+
/**
|
|
778
|
+
* Why the return was turned down.
|
|
779
|
+
*/
|
|
780
|
+
note?: string;
|
|
781
|
+
[key: string]: unknown;
|
|
782
|
+
};
|
|
741
783
|
/**
|
|
742
784
|
* Payload for commerce.review.created.
|
|
743
785
|
*/
|
|
@@ -2793,7 +2835,7 @@ export type ReturnRecord = {
|
|
|
2793
2835
|
*/
|
|
2794
2836
|
store_id?: string;
|
|
2795
2837
|
/**
|
|
2796
|
-
* requested, approved, received, refunded, or rejected.
|
|
2838
|
+
* requested, approved, received, refunded, or rejected (turned down: it gives nothing back).
|
|
2797
2839
|
*/
|
|
2798
2840
|
status?: string;
|
|
2799
2841
|
/**
|
|
@@ -2804,6 +2846,14 @@ export type ReturnRecord = {
|
|
|
2804
2846
|
* Creation timestamp.
|
|
2805
2847
|
*/
|
|
2806
2848
|
created_at?: string;
|
|
2849
|
+
/**
|
|
2850
|
+
* Why the return was turned down, when it was.
|
|
2851
|
+
*/
|
|
2852
|
+
rejection_note?: string;
|
|
2853
|
+
/**
|
|
2854
|
+
* The currency of the return's amounts: its store order's.
|
|
2855
|
+
*/
|
|
2856
|
+
currency?: string;
|
|
2807
2857
|
[key: string]: unknown;
|
|
2808
2858
|
};
|
|
2809
2859
|
/**
|
|
@@ -4415,7 +4465,7 @@ export interface Events {
|
|
|
4415
4465
|
*/
|
|
4416
4466
|
"commerce.order.paid": CommerceOrderPaidEvent;
|
|
4417
4467
|
/**
|
|
4418
|
-
*
|
|
4468
|
+
* A return was completed and refunded, or a cancellation gave a paid order's money back.
|
|
4419
4469
|
*/
|
|
4420
4470
|
"commerce.order.refunded": CommerceOrderRefundedEvent;
|
|
4421
4471
|
/**
|
|
@@ -4426,6 +4476,10 @@ export interface Events {
|
|
|
4426
4476
|
* A buyer or operator requested an RMA return.
|
|
4427
4477
|
*/
|
|
4428
4478
|
"commerce.return.requested": CommerceReturnEvent;
|
|
4479
|
+
/**
|
|
4480
|
+
* A store or the project turned an RMA return down.
|
|
4481
|
+
*/
|
|
4482
|
+
"commerce.return.rejected": CommerceReturnRejectedEvent;
|
|
4429
4483
|
/**
|
|
4430
4484
|
* A customer submitted a product or store review.
|
|
4431
4485
|
*/
|
|
@@ -5393,7 +5447,7 @@ export declare function client(t: Transport): {
|
|
|
5393
5447
|
/**
|
|
5394
5448
|
* Mark order paid (manual/COD/bank transfer)
|
|
5395
5449
|
*
|
|
5396
|
-
* Mark order paid (manual/COD/bank transfer)
|
|
5450
|
+
* Mark order paid (manual/COD/bank transfer). An order sent before it was paid is paid in full here — its stock taken, its promotions used, its sellers' shares held, `commerce.order.paid` emitted — and stays where its shipping brought it. An order whose payment is written already is left as it is, whatever became of it since.
|
|
5397
5451
|
*/
|
|
5398
5452
|
markOrderPaid(input: {
|
|
5399
5453
|
path: {
|
|
@@ -5570,7 +5624,7 @@ export declare function client(t: Transport): {
|
|
|
5570
5624
|
/**
|
|
5571
5625
|
* Approve RMA return
|
|
5572
5626
|
*
|
|
5573
|
-
* Approve
|
|
5627
|
+
* Approve a return that was asked for — or one its store turned down: who runs the marketplace has the last word. A return in any other state answers `409 return_state`. A return its store turned down is approved by the project's server alone, and only while its lines still have what it asks for: when the same units were asked for again since, the answer is `409 return_replaced`.
|
|
5574
5628
|
*/
|
|
5575
5629
|
approveReturn(input: {
|
|
5576
5630
|
path: {
|
|
@@ -5580,9 +5634,21 @@ export declare function client(t: Transport): {
|
|
|
5580
5634
|
signal?: AbortSignal;
|
|
5581
5635
|
}): Promise<Reply<200, ReturnRecord>>;
|
|
5582
5636
|
/**
|
|
5583
|
-
*
|
|
5637
|
+
* Turn a return down
|
|
5584
5638
|
*
|
|
5639
|
+
* Turn a return down, with a `note` of why (at most 500 characters) the buyer reads on the return. A return that is over — refunded, exchanged, closed — answers `409 return_state`. A return turned down gives nothing back; the buyer may ask for another, and the project approves one its store turned down (`POST /commerce/returns/{return_id}/approve`). Emits `commerce.return.rejected`. A return whose completion asked for its money is not turned down until payments says for certain that nothing was given (`409 return_state`): complete it.
|
|
5640
|
+
*/
|
|
5641
|
+
rejectReturn(input: {
|
|
5642
|
+
path: {
|
|
5643
|
+
return_id: string;
|
|
5644
|
+
};
|
|
5645
|
+
body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
5646
|
+
signal?: AbortSignal;
|
|
5647
|
+
}): Promise<Reply<200, ReturnRecord>>;
|
|
5648
|
+
/**
|
|
5585
5649
|
* Complete RMA return and issue payment/wallet refund
|
|
5650
|
+
*
|
|
5651
|
+
* Complete a return: the buyer is given back what the return asks, and the return is `refunded` only with the money given. An order of a store with a payment account is given back through its payment split — to the card and the wallet as they paid, or to the wallet when the return's `refund_destination` is `wallet` — the seller, the platform's commission and the tax withheld each giving back their share of it; an order of a store with none is given back from the order's payment. When payments does not make the refund the answer is `409` with payments' own code, and the return stays as it was. A refund the provider failed is `409 refund_failed`: complete the return again. When payments cannot tell how a refund ended (`409 refund_in_progress`, `409 refund_pending`, or `502 provider_unavailable` when the provider did not answer it) the money may have been given, and the answer says so in payments' own words, with the payment's id: the return is kept for its completion, and is not turned down. A return asked to the buyer's wallet, in a project whose wallet is of money and may not be filled from a marketplace payment, is given back the way the order was paid, and its `refund_destination` says so. An order paid outside the platform — on delivery, by a bank transfer, on credit — is given back outside it: the body says so with `refunded_outside: true`, and without it the answer is `409 refund_outside_required`. A card order whose payment never went through, marked paid by hand, is given back the same way. A return that was turned down answers `409 return_closed`; one already refunded answers as it is. A return whose line has fewer units left to give back than it asks for answers `409 return_quantity_exceeded`, before any money is asked for. A return another call is completing at the moment answers `409 return_in_progress`: ask again. A wallet credit for an order paid outside the platform is the project's to give: this route gives it, the store's own does not.
|
|
5586
5652
|
*/
|
|
5587
5653
|
completeReturn(input: {
|
|
5588
5654
|
path: {
|
|
@@ -5775,7 +5841,7 @@ export declare function client(t: Transport): {
|
|
|
5775
5841
|
/**
|
|
5776
5842
|
* Cancel full or partial store order
|
|
5777
5843
|
*
|
|
5778
|
-
* Cancel
|
|
5844
|
+
* Cancel what of a store's order was not sent yet — all of it, or the `items` named. What the buyer paid for the canceled units goes back as the cancellation is made, the way the order was paid, and the shipping with it when nothing of the order is left and none of it was sent: `refund_amount` is what was given back (0 for an order not paid). It is held to what was paid for the order, less what its returns and earlier cancellations gave back. When the refund is not made the order is not canceled, and the answer says why. An order given back whole is `refunded`, the promotions it used are undone for what went back, and cashback of it not yet the buyer's is no longer earned. A bundle is given back by its parts: the line that names it gives nothing more. A cancellation that gives a paid order's money back emits `commerce.order.refunded` with its `cancellation_id`; a line canceled whole loses the entitlement it granted (`revoked_entitlements`). `fault_party` is buyer, seller (the default), platform or payment_timeout (`400 invalid_fault_party` otherwise). An order paid outside the platform — on delivery, by a bank transfer, on credit — is given back outside it: the body says so with `refunded_outside: true`, and without it the answer is `409 refund_outside_required`.
|
|
5779
5845
|
*/
|
|
5780
5846
|
cancelStoreOrder(input: {
|
|
5781
5847
|
path: {
|
|
@@ -5787,7 +5853,7 @@ export declare function client(t: Transport): {
|
|
|
5787
5853
|
/**
|
|
5788
5854
|
* Create shipment or fulfillment
|
|
5789
5855
|
*
|
|
5790
|
-
* Create shipment or fulfillment
|
|
5856
|
+
* Create shipment or fulfillment. A shipment that names `items` sends units a line has left to send — at least one, and no more than were ordered and not canceled or sent: otherwise `422 invalid_fulfillment_quantity`.
|
|
5791
5857
|
*/
|
|
5792
5858
|
createFulfillment(input: {
|
|
5793
5859
|
path: {
|
|
@@ -6065,7 +6131,7 @@ export declare function client(t: Transport): {
|
|
|
6065
6131
|
/**
|
|
6066
6132
|
* Cancel full or partial seller store order
|
|
6067
6133
|
*
|
|
6068
|
-
* Cancel
|
|
6134
|
+
* Cancel what of a store's order was not sent yet — all of it, or the `items` named. What the buyer paid for the canceled units goes back as the cancellation is made, the way the order was paid, and the shipping with it when nothing of the order is left and none of it was sent: `refund_amount` is what was given back (0 for an order not paid). It is held to what was paid for the order, less what its returns and earlier cancellations gave back. When the refund is not made the order is not canceled, and the answer says why. An order given back whole is `refunded`, the promotions it used are undone for what went back, and cashback of it not yet the buyer's is no longer earned. A bundle is given back by its parts: the line that names it gives nothing more. A cancellation that gives a paid order's money back emits `commerce.order.refunded` with its `cancellation_id`; a line canceled whole loses the entitlement it granted (`revoked_entitlements`). `fault_party` is buyer, seller (the default), platform or payment_timeout (`400 invalid_fault_party` otherwise). An order paid outside the platform — on delivery, by a bank transfer, on credit — is given back outside it: the body says so with `refunded_outside: true`, and without it the answer is `409 refund_outside_required`.
|
|
6069
6135
|
*/
|
|
6070
6136
|
sellerCancelStoreOrder(input: {
|
|
6071
6137
|
path: {
|
|
@@ -6078,7 +6144,7 @@ export declare function client(t: Transport): {
|
|
|
6078
6144
|
/**
|
|
6079
6145
|
* Create shipment or fulfillment for store order
|
|
6080
6146
|
*
|
|
6081
|
-
* Create shipment or fulfillment for store order
|
|
6147
|
+
* Create shipment or fulfillment for store order. A shipment that names `items` sends units a line has left to send — at least one, and no more than were ordered and not canceled or sent: otherwise `422 invalid_fulfillment_quantity`.
|
|
6082
6148
|
*/
|
|
6083
6149
|
sellerCreateFulfillment(input: {
|
|
6084
6150
|
path: {
|
|
@@ -6198,7 +6264,7 @@ export declare function client(t: Transport): {
|
|
|
6198
6264
|
/**
|
|
6199
6265
|
* Approve buyer RMA return
|
|
6200
6266
|
*
|
|
6201
|
-
* Approve buyer
|
|
6267
|
+
* Approve a buyer's return that was asked for. A return in any other state — one the store turned down among them — answers `409 return_state`. A return its store turned down is approved by the project's server alone, and only while its lines still have what it asks for: when the same units were asked for again since, the answer is `409 return_replaced`.
|
|
6202
6268
|
*/
|
|
6203
6269
|
sellerApproveReturn(input: {
|
|
6204
6270
|
path: {
|
|
@@ -6209,9 +6275,22 @@ export declare function client(t: Transport): {
|
|
|
6209
6275
|
signal?: AbortSignal;
|
|
6210
6276
|
}): Promise<Reply<200, ReturnRecord>>;
|
|
6211
6277
|
/**
|
|
6212
|
-
*
|
|
6278
|
+
* Turn a buyer's return down
|
|
6213
6279
|
*
|
|
6280
|
+
* Turn a return of the store's down, with a `note` of why (at most 500 characters) the buyer reads on the return. The store does not take its own word back: the project approves a return its store turned down. Emits `commerce.return.rejected`. A return whose completion asked for its money is not turned down until payments says for certain that nothing was given (`409 return_state`): complete it.
|
|
6281
|
+
*/
|
|
6282
|
+
sellerRejectReturn(input: {
|
|
6283
|
+
path: {
|
|
6284
|
+
store_id: string; /** Path parameter return_id. */
|
|
6285
|
+
return_id: string;
|
|
6286
|
+
};
|
|
6287
|
+
body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
6288
|
+
signal?: AbortSignal;
|
|
6289
|
+
}): Promise<Reply<200, ReturnRecord>>;
|
|
6290
|
+
/**
|
|
6214
6291
|
* Complete RMA return and trigger payment refund
|
|
6292
|
+
*
|
|
6293
|
+
* Complete a return: the buyer is given back what the return asks, and the return is `refunded` only with the money given. An order of a store with a payment account is given back through its payment split — to the card and the wallet as they paid, or to the wallet when the return's `refund_destination` is `wallet` — the seller, the platform's commission and the tax withheld each giving back their share of it; an order of a store with none is given back from the order's payment. When payments does not make the refund the answer is `409` with payments' own code, and the return stays as it was. A refund the provider failed is `409 refund_failed`: complete the return again. When payments cannot tell how a refund ended (`409 refund_in_progress`, `409 refund_pending`, or `502 provider_unavailable` when the provider did not answer it) the money may have been given, and the answer says so in payments' own words, with the payment's id: the return is kept for its completion, and is not turned down. A return asked to the buyer's wallet, in a project whose wallet is of money and may not be filled from a marketplace payment, is given back the way the order was paid, and its `refund_destination` says so. An order paid outside the platform — on delivery, by a bank transfer, on credit — is given back outside it: the body says so with `refunded_outside: true`, and without it the answer is `409 refund_outside_required`. A card order whose payment never went through, marked paid by hand, is given back the same way. A return that was turned down answers `409 return_closed`; one already refunded answers as it is. A return whose line has fewer units left to give back than it asks for answers `409 return_quantity_exceeded`, before any money is asked for. A return another call is completing at the moment answers `409 return_in_progress`: ask again. A wallet credit for an order paid outside the platform answers `403 wallet_refund_forbidden` here: it is the project's own money.
|
|
6215
6294
|
*/
|
|
6216
6295
|
sellerCompleteReturn(input: {
|
|
6217
6296
|
path: {
|
|
@@ -20,11 +20,11 @@ export interface PlatformEvents extends AiEvents, AnalyticsEvents, AuthEvents, C
|
|
|
20
20
|
/** A platform event's type: one a module's contract declares. */
|
|
21
21
|
export type EventType = keyof PlatformEvents;
|
|
22
22
|
/** Every platform event's type, as the contracts declare them. */
|
|
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.review.created", "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.rejected", "commerce.return.requested", "commerce.review.created", "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"];
|
|
24
24
|
/**
|
|
25
25
|
* A platform event as delivered: one member per type the contracts declare,
|
|
26
26
|
* its data that type's payload, so a switch on its type narrows it. An
|
|
27
27
|
* event of a type none of them declares (one a newer platform sends) is no
|
|
28
28
|
* member: at run time it reaches the switch's default, which takes it.
|
|
29
29
|
*/
|
|
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.review.created"], "commerce.review.created"> | 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.rejected"], "commerce.return.rejected"> | WebhookEvent<PlatformEvents["commerce.return.requested"], "commerce.return.requested"> | WebhookEvent<PlatformEvents["commerce.review.created"], "commerce.review.created"> | 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">;
|
|
@@ -6354,7 +6354,7 @@ export declare function client(t: Transport): {
|
|
|
6354
6354
|
/**
|
|
6355
6355
|
* Disconnect the In-App Purchase key
|
|
6356
6356
|
*
|
|
6357
|
-
* Forgets the key for good. Purchases already made stay in the ledger; the App Store's notifications and the apps' reports are refused from then on. With nothing connected, nothing changes. Emits `iap.store.changed` (disconnected).
|
|
6357
|
+
* Forgets the key for good. Purchases already made stay in the ledger; the App Store's notifications and the apps' reports are refused from then on. With nothing connected, nothing changes. Emits `iap.store.changed` (disconnected). Not an environment token's: its connect link sets a key up where the project has none, and replaces none.
|
|
6358
6358
|
*/
|
|
6359
6359
|
disconnectApple(input?: {
|
|
6360
6360
|
headers?: {
|
|
@@ -6390,7 +6390,7 @@ export declare function client(t: Transport): {
|
|
|
6390
6390
|
/**
|
|
6391
6391
|
* Grant an In-App Purchase key's connection
|
|
6392
6392
|
*
|
|
6393
|
-
* A one-time grant, good for 30 minutes, to hand the project an In-App Purchase key for one of its iOS apps. Whoever asks for it never holds the key: the person opens `connect_url` in a browser, or a terminal posts the key to POST /iap/apple/connect with the grant. A project holds 10 open grants at most, Stripe's and the App Store's together (429 `too_many_grants`).
|
|
6393
|
+
* A one-time grant, good for 30 minutes, to hand the project an In-App Purchase key for one of its iOS apps. Whoever asks for it never holds the key: the person opens `connect_url` in a browser, or a terminal posts the key to POST /iap/apple/connect with the grant. A project holds 10 open grants at most, Stripe's and the App Store's together (429 `too_many_grants`). A link an environment's token asks for connects a key where the project has none: it replaces no connected key (409 key_exists).
|
|
6394
6394
|
*/
|
|
6395
6395
|
createAppleGrant(input?: {
|
|
6396
6396
|
headers?: {
|
|
@@ -846,7 +846,7 @@ export type RunStep = {
|
|
|
846
846
|
*/
|
|
847
847
|
at: string;
|
|
848
848
|
/**
|
|
849
|
-
* What it did: a message's ids and, held through the person's quiet hours, when it goes (held_until); why one was skipped (reason: consent, frequency_cap, preferences, no_address, deleted, quota_exceeded); why an offer was not granted; the event that ended a wait
|
|
849
|
+
* What it did: a message's ids and, held through the person's quiet hours, when it goes (held_until); why one was skipped (reason: consent, frequency_cap, preferences, no_address, deleted, quota_exceeded; untrusted_source: a step that gives — a coupon, a promo code, an offer, a wallet credit — or a message naming what it would have given, in a run whose way an app's word decided: the event that began it, one that ended its wait, a property or an untrusted audience a branch read); why an offer was not granted; the event that ended a wait
|
|
850
850
|
*/
|
|
851
851
|
detail: {
|
|
852
852
|
[key: string]: unknown;
|
|
@@ -1400,7 +1400,7 @@ export declare function client(t: Transport): {
|
|
|
1400
1400
|
/**
|
|
1401
1401
|
* Try a journey on a test user
|
|
1402
1402
|
*
|
|
1403
|
-
* Runs a journey — a draft too — for one of the project's test users (Auth › Test accounts), from its start, now: its messages are sent and its coupons given as a person's would be, but each wait lasts a minute, and the run is counted in no report and no month's people (its events carry test: true). A test run of the user's open in the journey ends first. Refused for a user who is no test user (422 not_a_test_user) and for a stopped journey (409 journey_stopped).
|
|
1403
|
+
* Runs a journey — a draft too — for one of the project's test users (Auth › Test accounts), from its start, now: its messages are sent and its coupons given as a person's would be (passed over where the journey's real runs pass them over: one people enter on an event the app reports, on what became of a message, or on an audience that is not trusted), but each wait lasts a minute, and the run is counted in no report and no month's people (its events carry test: true). A test run of the user's open in the journey ends first. Refused for a user who is no test user (422 not_a_test_user) and for a stopped journey (409 journey_stopped).
|
|
1404
1404
|
*/
|
|
1405
1405
|
testJourney(input: {
|
|
1406
1406
|
path: {
|