palbase 0.78.1 → 0.80.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/ai/index.js +2 -2
  2. package/dist/ai-sdk/index.js +2 -2
  3. package/dist/backend/engine.js +2 -2
  4. package/dist/backend/env.js +1 -1
  5. package/dist/backend/index.js +3 -3
  6. package/dist/backend/stack.js +1 -1
  7. package/dist/backend/test.js +2 -2
  8. package/dist/chunks/{35KQJQ77.js → 2NB7UENO.js} +2 -2
  9. package/dist/chunks/{3XF644A5.js → 5BQM5XTX.js} +2 -2
  10. package/dist/chunks/{VNUCKM7H.js → 6INSGN37.js} +1 -1
  11. package/dist/chunks/{ROV6TJZK.js → 6PUARVHY.js} +1 -1
  12. package/dist/chunks/{TFPVJ3C3.js → 7NOXAQOX.js} +2 -2
  13. package/dist/chunks/{L63FWRZX.js → 7QS5ABCT.js} +2 -2
  14. package/dist/chunks/{RB4JQXKZ.js → 7XQVUV65.js} +2 -2
  15. package/dist/chunks/{UUDOMSKW.js → BQUNZH5E.js} +2 -2
  16. package/dist/chunks/{FCCX2OTM.js → DP6WZPTF.js} +2 -2
  17. package/dist/chunks/{WTFMJKDB.js → FUNHIQCH.js} +2 -2
  18. package/dist/chunks/G4PGGIAO.js +2 -0
  19. package/dist/chunks/{LXS7JHPJ.js → IK4MB3HQ.js} +2 -2
  20. package/dist/chunks/{JY7YG3BO.js → IS5HMTJX.js} +2 -2
  21. package/dist/chunks/{2T3EX52E.js → LZXD4SBY.js} +1 -1
  22. package/dist/chunks/{6Y4ICGZ7.js → N767RMLK.js} +2 -2
  23. package/dist/chunks/{ZIHVYOXE.js → OY6JSD3B.js} +2 -2
  24. package/dist/chunks/{EUMY6SCM.js → QV53HO4D.js} +1 -1
  25. package/dist/chunks/{ZBTOHVML.js → RGCK6WN2.js} +2 -2
  26. package/dist/chunks/{QWKOKJKM.js → RU3A4ASQ.js} +1 -1
  27. package/dist/chunks/{25KG2TVU.js → T2XBJBUC.js} +1 -1
  28. package/dist/chunks/TNNTPBI3.js +23 -0
  29. package/dist/chunks/{5KGMQFET.js → TOGOOVTU.js} +1 -1
  30. package/dist/chunks/{LONPNPNX.js → UKM6LWJ3.js} +2 -2
  31. package/dist/chunks/{IO5HB5B6.js → VZQI2MW2.js} +2 -2
  32. package/dist/chunks/WUOSCBJ3.js +13 -0
  33. package/dist/cli.js +5 -4
  34. package/dist/cloud/index.js +2 -2
  35. package/dist/refuse/ai-sdk.js +1 -1
  36. package/dist/refuse/ai.js +1 -1
  37. package/dist/refuse/backend.js +1 -1
  38. package/dist/refuse/cloud.js +1 -1
  39. package/dist/refuse/server.js +1 -1
  40. package/dist/server/index.js +2 -2
  41. package/dist/server/testing.js +2 -2
  42. package/dist/web/index.js +2 -2
  43. package/dist/web/message.js +2 -2
  44. package/dist/web/palbe.js +2 -2
  45. package/dist/web/payments-ui.js +2 -2
  46. package/dist/web/paywall.js +2 -2
  47. package/dist/web/push-sw.js +1 -1
  48. package/dist/web/ssr.js +2 -2
  49. package/dist/web/vite.js +2 -2
  50. package/package.json +2 -2
  51. package/types/cloud/src/generated/project.d.ts +2 -2
  52. package/types/internal/src/chat.d.ts +17 -0
  53. package/types/internal/src/modules/ai.d.ts +48 -3
  54. package/types/internal/src/modules/commerce.d.ts +38 -12
  55. package/types/internal/src/modules/events.d.ts +2 -2
  56. package/types/internal/src/modules/iap.d.ts +112 -101
  57. package/types/internal/src/modules/payments.d.ts +828 -18
  58. package/types/web/src/chat.d.ts +4 -2
  59. package/types/web/src/iap.d.ts +6 -0
  60. package/dist/chunks/3TJFV35H.js +0 -2
  61. package/dist/chunks/426QPZNS.js +0 -13
  62. package/dist/chunks/4XE4HLPK.js +0 -23
@@ -1,8 +1,8 @@
1
- import { sessionSummary, type AgentEvent, type ChatEvent, type ContextCompactedEvent, type ContextOffloadedEvent, type GoalEvent, type SessionHandedOffEvent, type ToolEvent, type TurnEnd, type TurnEvent, type VoiceEvent } from '../../internal/src/chat.js';
1
+ import { sessionSummary, type AgentEvent, type ChatEvent, type ContextCompactedEvent, type ContextOffloadedEvent, type GoalEvent, type SessionHandedOffEvent, type ToolEvent, type StoppedBy, type TurnEnd, type TurnEvent, type VoiceEvent } from '../../internal/src/chat.js';
2
2
  import type { ai as aiModule } from '../../internal/src/modules/index.js';
3
3
  import { type Transport } from '../../internal/src/transport.js';
4
4
  export { sessionSummary };
5
- export type { AgentEvent, ChatEvent, ContextCompactedEvent, ContextOffloadedEvent, GoalEvent, HistoryEvent, HistoryItem, Publication, SessionHandedOffEvent, SessionMachineStatusEvent, SessionSummaryEvent, ThinkingEvent, ToolEvent, TranscriptEvent, TurnEnd, TurnEvent, VoiceEvent } from '../../internal/src/chat.js';
5
+ export type { AgentEvent, ChatEvent, ContextCompactedEvent, ContextOffloadedEvent, GoalEvent, HistoryEvent, HistoryItem, Publication, SessionHandedOffEvent, SessionMachineStatusEvent, SessionSummaryEvent, ThinkingEvent, StoppedBy, ToolEvent, TranscriptEvent, TurnEnd, TurnEvent, VoiceEvent } from '../../internal/src/chat.js';
6
6
  /** A picture or a file a message carries: an image the model was shown, or a file put in the chat's workspace. */
7
7
  export interface ChatAttachment {
8
8
  kind: 'image' | 'file' | (string & {});
@@ -105,6 +105,8 @@ export interface ChatResponse {
105
105
  end: TurnEnd | (string & {}) | null;
106
106
  /** Why, when it did not complete and was not stopped: its code, its words, whether asking again may go otherwise. */
107
107
  error: TurnEvent['error'];
108
+ /** Who stopped it, when it ended stopped: a member, the project's server, or Palbase with its reason (null otherwise, or a stop from before the platform kept who asked). */
109
+ stoppedBy: StoppedBy | null;
108
110
  /** The whole answer so far. */
109
111
  text: string;
110
112
  parts: ChatPart[];
@@ -75,6 +75,11 @@ export declare class Iap {
75
75
  *
76
76
  * `offer` buys it with one of the signed-in customer's offers on that plan.
77
77
  * `channel` and `currency` optionally override the payment channel or web price currency.
78
+ * `quantity` buys so many seats of a plan sold by the seat (the offerings'
79
+ * `max_quantity`): the plan's price is one seat's. More or fewer seats of a
80
+ * subscription the customer already has are not another checkout — that is
81
+ * refused with `already_entitled`, whose `body.payments_subscription_id` is
82
+ * what the app's server changes the quantity by.
78
83
  */
79
84
  checkout(opts: {
80
85
  product: string;
@@ -85,6 +90,7 @@ export declare class Iap {
85
90
  offer?: string;
86
91
  channel?: string;
87
92
  currency?: string;
93
+ quantity?: number;
88
94
  }): Promise<string>;
89
95
  /**
90
96
  * On a checkout's success page, for a buyer with no account: the one-time