palbase 0.62.0 → 0.64.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 (61) hide show
  1. package/dist/ai/index.js +2 -2
  2. package/dist/backend/engine.js +2 -2
  3. package/dist/backend/env.js +1 -1
  4. package/dist/backend/index.js +3 -3
  5. package/dist/backend/stack.js +1 -1
  6. package/dist/backend/test.js +2 -2
  7. package/dist/chunks/{WJXZYXL6.js → 2FPPZ3A3.js} +2 -2
  8. package/dist/chunks/{S3YODXG5.js → 47YRZOKH.js} +2 -2
  9. package/dist/chunks/{PYL5JMWN.js → 73CKSYD7.js} +2 -2
  10. package/dist/chunks/{7J3HTVFX.js → 7WLAMFND.js} +2 -2
  11. package/dist/chunks/{LXAR6WWQ.js → AUCNHNPD.js} +2 -2
  12. package/dist/chunks/{SCUAN3L3.js → B6FEEB5R.js} +1 -1
  13. package/dist/chunks/{HXKBPLL2.js → D2Z5R7ZP.js} +1 -1
  14. package/dist/chunks/{IPAVEV75.js → HWDOVTN4.js} +2 -2
  15. package/dist/chunks/K4E27V7K.js +2 -0
  16. package/dist/chunks/{ECVNYWWT.js → KRYGPGVB.js} +2 -2
  17. package/dist/chunks/{P3QFV5EA.js → MUHCCKSS.js} +1 -1
  18. package/dist/chunks/{PQ627JVJ.js → MVHF5I2L.js} +2 -2
  19. package/dist/chunks/QDAQJXBR.js +18 -0
  20. package/dist/chunks/{WBKZLJ66.js → RCV4YOM6.js} +1 -1
  21. package/dist/chunks/{ZVDYTR3S.js → SKPSBDXT.js} +2 -2
  22. package/dist/chunks/{EEGVWOER.js → TNY6UGJZ.js} +2 -2
  23. package/dist/chunks/{LDLYOQAV.js → TTDCC4FL.js} +1 -1
  24. package/dist/chunks/{LUVYYNMK.js → U6S2T2FE.js} +2 -2
  25. package/dist/chunks/{M6KUVE4B.js → UAD4XPIB.js} +2 -2
  26. package/dist/chunks/{3KEWWFIC.js → XDGXREXS.js} +1 -1
  27. package/dist/chunks/{KUSZFTJK.js → XIHO4HVO.js} +1 -1
  28. package/dist/chunks/{USL5YRDX.js → ZO7BWXF3.js} +2 -2
  29. package/dist/chunks/{WEMTQPSH.js → ZZLCBUNM.js} +2 -2
  30. package/dist/cli.js +10802 -349
  31. package/dist/cloud/index.js +2 -2
  32. package/dist/refuse/ai.js +1 -1
  33. package/dist/refuse/backend.js +1 -1
  34. package/dist/refuse/cloud.js +1 -1
  35. package/dist/refuse/server.js +1 -1
  36. package/dist/server/index.js +2 -2
  37. package/dist/server/testing.js +2 -2
  38. package/dist/web/index.js +2 -2
  39. package/dist/web/message.js +2 -2
  40. package/dist/web/palbe.js +2 -2
  41. package/dist/web/paywall.js +2 -2
  42. package/dist/web/push-sw.js +1 -1
  43. package/dist/web/ssr.js +2 -2
  44. package/dist/web/vite.js +2 -2
  45. package/package.json +2 -2
  46. package/types/ai/src/chats.d.ts +20 -2
  47. package/types/ai/src/index.d.ts +2 -2
  48. package/types/ai/src/pools.d.ts +158 -9
  49. package/types/ai/src/tools.d.ts +83 -2
  50. package/types/cloud/src/generated/project.d.ts +1 -1
  51. package/types/cloud/src/generated/studio.d.ts +67 -8
  52. package/types/internal/src/modules/ai.d.ts +306 -11
  53. package/types/internal/src/modules/analytics.d.ts +7 -7
  54. package/types/internal/src/modules/auth.d.ts +41 -30
  55. package/types/internal/src/modules/events.d.ts +2 -2
  56. package/types/internal/src/modules/notify.d.ts +1 -1
  57. package/types/internal/src/modules/purchases.d.ts +19 -7
  58. package/types/internal/src/modules/stores.d.ts +3 -3
  59. package/types/web/src/screen/resolve.d.ts +2 -1
  60. package/dist/chunks/DCWPUWZE.js +0 -18
  61. package/dist/chunks/ZWSYEBRO.js +0 -2
@@ -1,4 +1,5 @@
1
1
  import type * as modules from '../../internal/src/modules/index.js';
2
+ import { type EnvInject, type SecretDescription } from './tools.js';
2
3
  type Module = ReturnType<typeof modules.ai.client>;
3
4
  /** A runner pool of the project's: its machines of one type — an operating system and an architecture. */
4
5
  export interface Pool {
@@ -142,32 +143,180 @@ export interface PoolMachines {
142
143
  signal?: AbortSignal;
143
144
  }): Promise<void>;
144
145
  }
145
- /** One of the project's variables: its name, never its value. */
146
+ /** One of the project's variables: its name and what it says of itself, never its value. */
146
147
  export interface EnvVariable {
147
148
  key: string;
148
- /** Whether it is a secret (said so in the list); every value is masked in a transcript either way. */
149
+ /** Whether it is a secret; every value is masked in a transcript either way. */
149
150
  secret: boolean;
151
+ /**
152
+ * The hosts a request may carry it to ([]: none yet — delivered as it is; always [] for an open secret or one that is
153
+ * no secret).
154
+ */
155
+ hosts: string[];
156
+ /** Where in a request to one of its hosts it may be put: header, query, body. */
157
+ inject: (EnvInject | (string & {}))[];
158
+ /** Whether the agent reads it as it is (an open secret). */
159
+ open: boolean;
150
160
  updatedAt: string;
151
161
  }
162
+ /**
163
+ * What a set says of the variable beside its value: whether it is a secret, and what the secret says of itself — and the
164
+ * acknowledgements the platform asks for (acknowledgeOpen for an open secret or a secret made none, acknowledgeGuessable
165
+ * for a sealed value a person may have chosen).
166
+ */
167
+ export interface EnvVariableOptions extends SecretDescription {
168
+ /**
169
+ * A secret unless false — one that is not is given to the agent as it is: no hosts, not open. A secret made one that
170
+ * is not is said with acknowledgeOpen: true (400 open_not_acknowledged); a new variable made none needs it not.
171
+ */
172
+ secret?: boolean;
173
+ signal?: AbortSignal;
174
+ }
175
+ /**
176
+ * A sealed secret an agent sent to a host it is not allowed for: the placeholder went as it is, and its owners are
177
+ * asked — allowed (hostRequests.allow, for any ask) or dismissed.
178
+ */
179
+ export interface SecretHostRequest {
180
+ /** The ask (shr_…): allowed or dismissed by it. */
181
+ requestId: string;
182
+ /** The secret's name. */
183
+ key: string;
184
+ /** The agent whose own secret it is (its definition's env); null: one of the project's variables. */
185
+ agent: string | null;
186
+ /**
187
+ * Whose definition the agent's is — kept (an agent the project keeps), chat (a chat's own definition), backend (its
188
+ * backend's, at each turn) —; null: one of the project's variables. An ask and its Allow are that agent's alone.
189
+ */
190
+ origin: 'kept' | 'chat' | 'backend' | (string & {}) | null;
191
+ /** The host it was sent to. Nobody has checked who runs it. */
192
+ host: string;
193
+ /**
194
+ * The registrable domain the host is under (evil.io for api.stripe.com.evil.io): what an Allow hands the secret to,
195
+ * whoever holds it.
196
+ */
197
+ domain: string;
198
+ status: 'asked' | 'allowed' | 'dismissed' | (string & {});
199
+ /** How many times it was sent there. */
200
+ asks: number;
201
+ firstAskedAt: string;
202
+ lastAskedAt: string;
203
+ /** When it was allowed or dismissed; null: not yet. */
204
+ decidedAt: string | null;
205
+ }
206
+ /**
207
+ * The hosts the project's sealed secrets were sent to that they are not allowed for: its owners' to allow or dismiss.
208
+ * Allow and Dismiss are a person's alone — an owner or an admin of the organization signed in to Studio (AI › Secrets)
209
+ * or to the CLI as themselves (palbase ai:env:hosts:allow, :dismiss) — never a key or a token, the project's secret key
210
+ * included (403 person_required): with the secret key, the asks are read.
211
+ */
212
+ export interface SecretHostRequests {
213
+ /**
214
+ * Those of one status — asked (the default), allowed, dismissed — newest first: each secret and host once, with how
215
+ * many times. A project keeps 500 asked (50 a secret, 100 an agent's own secrets: an ask past them forgets an asked one
216
+ * alone, never a decision), 500 dismissed and 500 allowed. Its owners are told at most 3 a day of one secret's, 10 of
217
+ * the project's.
218
+ */
219
+ list(options?: {
220
+ status?: 'asked' | 'allowed' | 'dismissed';
221
+ signal?: AbortSignal;
222
+ }): Promise<SecretHostRequest[]>;
223
+ /**
224
+ * The owner's Allow, for any ask: its host is added to the variable's hosts (one of the project's: 32 at most), or to
225
+ * the project's allowances (an agent's own secret: allowances.list(), 500 at most), and the asks it now allows are
226
+ * marked allowed. Allow only a host you know the secret belongs to: an agent can be led to send a secret anywhere.
227
+ * A person's alone (403 person_required); 409 not_a_sealed_secret, too_many_hosts.
228
+ */
229
+ allow(requestId: string, options?: {
230
+ signal?: AbortSignal;
231
+ }): Promise<SecretHostRequest>;
232
+ /**
233
+ * It is never told again (still counted). One allowed is not undone here (409 already_allowed): its host is the
234
+ * secret's — a project's variable's hosts said again (set(key, value, { hosts }), with its value), an agent's taken
235
+ * away from the allowances (a person's: allowances.remove). A person's alone (403 person_required).
236
+ */
237
+ dismiss(requestId: string, options?: {
238
+ signal?: AbortSignal;
239
+ }): Promise<SecretHostRequest>;
240
+ }
241
+ /** A host an agent's own secret may go to beside its definition's: an owner's Allow of an ask. */
242
+ export interface SecretHostAllowance {
243
+ /** The allowance (sha_…): taken away by it. */
244
+ allowanceId: string;
245
+ /** Whose definition the agent's is: kept, chat or backend (SecretHostRequest.origin). */
246
+ origin: 'kept' | 'chat' | 'backend' | (string & {});
247
+ /** The agent whose own secret it is. */
248
+ agent: string;
249
+ /** The secret's name. */
250
+ key: string;
251
+ /** The host. */
252
+ host: string;
253
+ /** The registrable domain the host is under. */
254
+ domain: string;
255
+ allowedAt: string;
256
+ /** The person who allowed it (their user id). */
257
+ allowedBy: string;
258
+ }
259
+ /**
260
+ * The hosts the project's agents' own secrets are allowed beside their definitions': each an owner's Allow of an ask.
261
+ * A new value keeps them; one goes with its key — a kept agent's once neither its draft nor its version published has
262
+ * it, a chat's own definition's with the last chat that has it, a backend's agent's after 30 days with no turn.
263
+ */
264
+ export interface SecretHostAllowances {
265
+ /** Newest first (500 at most). */
266
+ list(options?: {
267
+ signal?: AbortSignal;
268
+ }): Promise<SecretHostAllowance[]>;
269
+ /**
270
+ * The host taken away from the agent's secret: a request carrying it there is asked again. A person's alone (403
271
+ * person_required): never a key or a token, the project's secret key included.
272
+ */
273
+ remove(allowanceId: string, options?: {
274
+ signal?: AbortSignal;
275
+ }): Promise<void>;
276
+ }
152
277
  /**
153
278
  * The project's variables: every command of every session of its agents begun from now has them — on the platform's
154
279
  * Linux machines and on its own pools — beside an agent's own (its definition's env), masked in a transcript. A value
155
- * is sealed where the sessions run: never answered, never logged.
280
+ * is sealed where the sessions run: never answered, never logged. A secret says where it may go (hosts), where in a
281
+ * request it may be put (inject) and whether the agent reads it as it is (open); a field left out keeps what it has.
282
+ * A sealed value is held to the platform's value rules (SecretDescription): 8 bytes or more on one line
283
+ * (secret_unusable), not one a person may have chosen unless acknowledgeGuessable (secret_guessable).
156
284
  */
157
285
  export interface EnvVariables {
158
- /** Sets one, or sets it anew: a value of 1 byte to 32 KiB, no NUL; a secret unless secret: false. */
159
- set(key: string, value: string, options?: {
160
- secret?: boolean;
161
- signal?: AbortSignal;
162
- }): Promise<EnvVariable>;
286
+ /**
287
+ * Sets one, or sets it anew: a value of 1 byte to 32 KiB, no NUL; a secret unless secret: false — a value that is no
288
+ * secret (a region, a scheme) says so, or a short one is refused (secret_unusable). Hosts, inject and open left out
289
+ * keep what it says; open: true is said with acknowledgeOpen: true, and so is a secret made none.
290
+ */
291
+ set(key: string, value: string, options?: EnvVariableOptions): Promise<EnvVariable>;
292
+ /**
293
+ * Changes what a variable set before says of itself — whether it is a secret, its hosts, where it is put, whether it
294
+ * is open — and keeps its value (404 for one never set). A person's change alone: an owner or an admin of the
295
+ * organization signed in to Studio or to the CLI as themselves, never a key or a token, the project's secret key
296
+ * included (403 person_required) — with the secret key, they are said with the value (set).
297
+ */
298
+ update(key: string, change: EnvVariableOptions): Promise<EnvVariable>;
163
299
  /** Sessions begun from now no longer have it. */
164
300
  unset(key: string, options?: {
165
301
  signal?: AbortSignal;
166
302
  }): Promise<void>;
167
- /** Their names, sorted — whether each is a secret, and when it was set: never a value. */
303
+ /** Their names, sorted — whether each is a secret, what it says of itself, and when it was set: never a value. */
168
304
  list(options?: {
169
305
  signal?: AbortSignal;
170
306
  }): Promise<EnvVariable[]>;
307
+ /**
308
+ * The owner's Allow, for one of the project's variables: the host is added to a sealed secret's hosts (32 at most),
309
+ * and the asks it allows are marked allowed. Allow only a host you know the secret belongs to: an agent can be led to
310
+ * send a secret anywhere. A person's alone (403 person_required, the project's secret key included); 409
311
+ * not_a_sealed_secret, too_many_hosts (a variable's 32), too_many_allowances (an agent's secret's, 500 a project).
312
+ */
313
+ allowHost(key: string, host: string, options?: {
314
+ signal?: AbortSignal;
315
+ }): Promise<EnvVariable>;
316
+ /** The hosts its sealed secrets were sent to that they are not allowed for. */
317
+ readonly hostRequests: SecretHostRequests;
318
+ /** The hosts its agents' own secrets are allowed beside their definitions'. */
319
+ readonly allowances: SecretHostAllowances;
171
320
  }
172
321
  export declare function poolsOf(module: Module): {
173
322
  pools: Pools;
@@ -267,6 +267,60 @@ export interface PreparedOutput {
267
267
  readonly name: string;
268
268
  readonly prepared: PreparedSchema<unknown>;
269
269
  }
270
+ /** Where in a request to one of its hosts a sealed secret may be put: a header (the default), the query, the body. */
271
+ export type EnvInject = 'header' | 'query' | 'body';
272
+ /**
273
+ * What a secret says of itself beside its value — a project's variable's (ai.env) and an agent's own (its env). A
274
+ * sealed secret (the default) is a placeholder the proxy beside the machines swaps for its value only on a request to
275
+ * one of its hosts; an open one the agent reads as it is. Nothing of how a value is delivered changes until that proxy
276
+ * does: a secret with no host yet is delivered as it is.
277
+ *
278
+ * A sealed value is 8 bytes or more on one line — no CR, LF or NUL (400 secret_unusable) — and one a person may have
279
+ * chosen (fewer than 16 characters, or one kind of character only: digits, lower-case, upper-case or other) is said
280
+ * with acknowledgeGuessable: true (400 secret_guessable); the platform decides, on every write of a value. An open
281
+ * secret's value and one that is no secret's are the agent's to read anyway: neither is held to them.
282
+ *
283
+ * Said without its value, a change of where a secret goes — its hosts, inject, open, secret — is a person's alone: an
284
+ * owner or an admin of the organization signed in (Studio, or the CLI signed in as themselves), never a key or a token,
285
+ * the project's secret key included (403 person_required). With its value, it is said as before.
286
+ */
287
+ export interface SecretDescription {
288
+ /**
289
+ * The hosts a request may carry it to (32 at most): an exact DNS name (api.stripe.com) or *. and one (*.stripe.com:
290
+ * one label more) — lower-case ASCII, punycode for another script; no IP address, port, single-label name, public
291
+ * suffix or wildcard over one, and no wildcard over palbase.studio (the platform says which it refuses). Given, the
292
+ * secret is sealed, and they are its hosts; [] takes them all away.
293
+ */
294
+ hosts?: string[];
295
+ /** Where in a request to one of its hosts it may be put: header (the default), query, body — at least one. Never over plain http. */
296
+ inject?: EnvInject[];
297
+ /** true: the agent reads it as it is — no hosts, no inject — said with acknowledgeOpen; false: sealed. */
298
+ open?: boolean;
299
+ /**
300
+ * A secret unless false: one that is not is a plain variable the agent reads as it is — no hosts, no inject, never
301
+ * open. A secret made one that is not is said with acknowledgeOpen.
302
+ */
303
+ secret?: boolean;
304
+ /**
305
+ * Said with open: true, and with secret: false where a secret becomes none — you read that the agent then reads it as
306
+ * it is, so anyone who can drive the project's agents (an app's user where the project lets them, a prompt the agent
307
+ * reads) can get its value.
308
+ */
309
+ acknowledgeOpen?: boolean;
310
+ /**
311
+ * Said with a sealed value a person may have chosen (fewer than 16 characters, or one kind of character only): you
312
+ * read that the proxy hides a sealed value an allowed host echoes back, which lets an agent confirm a guess there.
313
+ */
314
+ acknowledgeGuessable?: boolean;
315
+ }
316
+ /**
317
+ * One of an agent's own variables with what the secret says of itself: its value ('' or left out keeps the one it has).
318
+ * A value that is no secret — a scheme, a region — is { value, secret: false }: a bare value is a sealed secret, held to
319
+ * the value rules.
320
+ */
321
+ export interface AgentEnvEntry extends SecretDescription {
322
+ value?: string;
323
+ }
270
324
  /** What an agent is: for a chat's turn, and for its one-shot answers (ai.generate({ agent })). */
271
325
  export interface AgentDefinitionInput {
272
326
  /**
@@ -302,9 +356,15 @@ export interface AgentDefinitionInput {
302
356
  * The agent's own variables, name → value (64 at most; a name upper-case letters, digits and _, a letter first, not
303
357
  * PALAI_…; a value 32 KiB at most): every command of its sessions has them, on every pool, beside the project's
304
358
  * (ai.env.set), masked in a transcript. A value is never read back — a definition read says each name with '' — and a
305
- * name written with '' keeps the value it has.
359
+ * name written with '' keeps the value it has. A secret may say more of itself — the hosts it may go to, where in a
360
+ * request it may be put, whether the agent reads it as it is, whether it is a secret at all — as { value, hosts,
361
+ * inject, open, secret, acknowledgeOpen, acknowledgeGuessable } (AgentEnvEntry); written as a bare value, it keeps
362
+ * what it said. A bare value is a sealed secret: 8 bytes or more on one line, not one a person may have chosen
363
+ * (secret_unusable, secret_guessable) — a value that is no secret is { value, secret: false }. A value kept ('')
364
+ * that says itself otherwise than the definition it is written over is a person's change (403 person_required for
365
+ * the project's secret key): give its value with it.
306
366
  */
307
- env?: Record<string, string>;
367
+ env?: Record<string, string | AgentEnvEntry>;
308
368
  /** A shell script each of its sessions runs once at its start, before the agent's first command, on every pool (64 KiB at most). */
309
369
  setup?: string;
310
370
  /**
@@ -442,6 +502,27 @@ export declare const ENV_KEY: RegExp;
442
502
  export declare const MAX_ENV_VALUE_BYTES: number;
443
503
  /** Whether a name is one a variable may have: never one of PALAI_…, the engine's own. */
444
504
  export declare function envKeyOk(key: unknown): key is string;
505
+ /** The most hosts a secret is allowed for. */
506
+ export declare const MAX_SECRET_HOSTS = 32;
507
+ /** What a secret says of itself as the module takes it — field by field, in its words: it refuses a field it does not know. */
508
+ export interface WireSecretDescription {
509
+ hosts?: string[];
510
+ inject?: EnvInject[];
511
+ open?: boolean;
512
+ secret?: boolean;
513
+ acknowledge_open?: boolean;
514
+ acknowledge_guessable?: boolean;
515
+ }
516
+ /**
517
+ * What a secret says of itself as the module takes it, refused here where its shape is wrong. Which host the module
518
+ * takes is its own to say; a refusal names a host by its place, never by what was written there — a value pasted where
519
+ * a host goes is not repeated.
520
+ */
521
+ export declare function secretDescriptionOf(d: SecretDescription, what: string): WireSecretDescription;
522
+ /** A refusal of a secret's write said in the SDK's words (what: the call, as its caller wrote it); anything else as it was. */
523
+ export declare function secretRefusal(e: unknown, what: string): unknown;
524
+ /** The same promise, a refusal of a secret's write said as secretRefusal says it. */
525
+ export declare function secretTold<T>(p: Promise<T>, what: string): Promise<T>;
445
526
  /** The shape of an agent's one-shot answers as the module takes it: the JSON Schema generate's schema is sent as. */
446
527
  export declare function outputOf(v: StandardSchema | PreparedOutput, what: string): Record<string, unknown>;
447
528
  /** A definition's bound on its tool calls, refused here as the module would refuse it. */
@@ -2,7 +2,7 @@ import * as modules from '../../../internal/src/modules/index.js';
2
2
  import type { Transport } from '../../../internal/src/transport.js';
3
3
  /** A project's environment as an access token reaches it: each module's operations under the paths the edge opens to one, a server's calls. */
4
4
  export interface Project {
5
- ai: Pick<modules.ai.Client, "draftAgent" | "listAgents" | "getAgent" | "putAgent" | "deleteAgent" | "publishAgent" | "rollbackAgent" | "listAgentVersions" | "listChats" | "createChat" | "getChat" | "deleteChat" | "decideChatApproval" | "forkChat" | "getChatGoal" | "setChatGoal" | "clearChatGoal" | "updateChatGoal" | "putChatMember" | "deleteChatMember" | "listChatMessages" | "sendChatMessage" | "getChatMessageAttachment" | "listChatParts" | "putChatPipe" | "deleteChatPipe" | "sendSubagentMessage" | "stopSubagent" | "stopChat" | "listTurnToolCalls" | "getChatToolCall" | "answerChatToolCall" | "listChatTurnArtifacts" | "getChatTurnArtifact" | "getChatTurnCost" | "startChatVoice" | "getChatVoice" | "closeChatVoice" | "commandChatVoice" | "getChatWorkspaceFile" | "putChatWorkspaceFile" | "deleteChatWorkspaceFile" | "addChatWorkspaceRepo" | "listChatWorkspaceTokens" | "createChatWorkspaceToken" | "revokeChatWorkspaceToken" | "createEmbeddings" | "listEndpoints" | "putEndpoint" | "deleteEndpoint" | "listEnv" | "putEnv" | "deleteEnv" | "createImage" | "getImage" | "getImageFile" | "deleteMachine" | "cordonMachine" | "resumeMachine" | "listModels" | "revokePoolKey" | "listPools" | "createPool" | "deletePool" | "listPoolKeys" | "createPoolKey" | "getPoolState" | "listProviders" | "connectProvider" | "disconnectProvider" | "listRepos" | "putRepo" | "deleteRepo" | "createResponse" | "getResponse" | "cancelResponse" | "followResponse" | "getSettings" | "putSettings" | "getSpend" | "askSupport" | "listTools" | "listUsage">;
5
+ ai: Pick<modules.ai.Client, "draftAgent" | "listAgents" | "getAgent" | "putAgent" | "deleteAgent" | "publishAgent" | "rollbackAgent" | "listAgentVersions" | "listChats" | "createChat" | "getChat" | "deleteChat" | "decideChatApproval" | "forkChat" | "getChatGoal" | "setChatGoal" | "clearChatGoal" | "updateChatGoal" | "putChatMember" | "deleteChatMember" | "listChatMessages" | "sendChatMessage" | "getChatMessageAttachment" | "listChatParts" | "putChatPipe" | "deleteChatPipe" | "sendSubagentMessage" | "stopSubagent" | "stopChat" | "listTurnToolCalls" | "getChatToolCall" | "answerChatToolCall" | "listChatTurnArtifacts" | "getChatTurnArtifact" | "getChatTurnCost" | "startChatVoice" | "getChatVoice" | "closeChatVoice" | "commandChatVoice" | "getChatWorkspaceFile" | "putChatWorkspaceFile" | "deleteChatWorkspaceFile" | "addChatWorkspaceRepo" | "listChatWorkspaceTokens" | "createChatWorkspaceToken" | "revokeChatWorkspaceToken" | "createEmbeddings" | "listEndpoints" | "putEndpoint" | "deleteEndpoint" | "listEnv" | "putEnv" | "deleteEnv" | "createImage" | "getImage" | "getImageFile" | "deleteMachine" | "cordonMachine" | "resumeMachine" | "listModels" | "revokePoolKey" | "listPools" | "createPool" | "deletePool" | "listPoolKeys" | "createPoolKey" | "getPoolState" | "listProviders" | "connectProvider" | "disconnectProvider" | "listRepos" | "putRepo" | "deleteRepo" | "createResponse" | "getResponse" | "cancelResponse" | "followResponse" | "getSettings" | "putSettings" | "getSpend" | "askSupport" | "listTools" | "listUsage" | "allowEnvHost" | "listEnvHostRequests" | "dismissEnvHostRequest" | "allowEnvHostRequest" | "listEnvAllowances" | "deleteEnvAllowance">;
6
6
  analytics: Pick<modules.analytics.Client, "listAudiences" | "createAudience" | "previewAudience" | "getAudience" | "deleteAudience" | "updateAudience" | "listAudienceMembers" | "alias" | "batch" | "getEventBreakdown" | "capture" | "sendConsoleHistory" | "getConsoleConfig" | "listConsoleRecords" | "listEventNames" | "listEvents" | "getEventTimeline" | "runFunnel" | "identify" | "page" | "sendPerf" | "listPerfGroups" | "getPerfConfig" | "getPerfTimeline" | "listRequestLines" | "getMachineTraffic" | "runRetention" | "screen" | "getSettings" | "putSettings" | "getSummary" | "listTraces" | "sendTrace" | "sendTraceBatch" | "getTraceHops" | "listSessionTraces" | "getTraceSummary" | "getTraceTimeline" | "searchPeople" | "setPersonProperties" | "getPerson" | "listPersonEvents" | "getEventCatalog" | "defineEvent">;
7
7
  auth: Pick<modules.auth.Client, "adminVerifyDeviceAssertion" | "adminGetAttestPolicy" | "adminGetAttestObservations" | "adminRecordAttestObservations" | "adminListAuditEvents" | "adminExportAuditEvents" | "adminVerifyAuditTrail" | "adminGetAuthSettings" | "adminUpdateAuthSettings" | "adminGetBreachWatch" | "adminListHooks" | "adminCreateHook" | "adminUpdateHook" | "adminDeleteHook" | "adminListHookExecutions" | "adminListIntegrations" | "adminPutIntegration" | "adminDeleteIntegration" | "adminListOAuthClients" | "adminCreateOAuthClient" | "adminGetOAuthClient" | "adminDeleteOAuthClient" | "adminUpdateOAuthClient" | "adminListProviders" | "adminGetPhoneSettings" | "adminUpdatePhoneSettings" | "adminToggleProvider" | "adminListRoles" | "adminUpsertRole" | "adminDeleteRole" | "adminListServiceAccounts" | "adminCreateServiceAccount" | "adminGetServiceAccount" | "adminRevokeServiceAccount" | "adminRotateServiceAccount" | "adminListSessions" | "adminRevokeSession" | "adminListSigningKeys" | "adminRotateSigningKey" | "socialAdminConfig" | "socialCredentialPut" | "socialCredentialDelete" | "socialProviderPatch" | "adminGetStats" | "adminSendTestTemplate" | "adminListTestUsers" | "adminCreateTestUsers" | "adminSetTestUserPhone" | "adminCreateTestSignupAddress" | "adminDeleteTestUser" | "adminCreateCustomToken" | "adminListUsers" | "adminCreateUser" | "adminImportUsers" | "adminGetUser" | "adminDeleteUser" | "adminUpdateUser" | "adminBanUser" | "adminGetUserConsents" | "adminRevokeUserCredentials" | "adminExportUser" | "adminListUserMfaFactors" | "adminResetUserMfa" | "adminResetUserPassword" | "adminListUserRoles" | "adminAssignUserRole" | "adminRevokeUserRole" | "adminRevokeUserSessions" | "adminUnbanUser" | "adminGetInstallationConsents" | "adminRefuseConsents" | "adminInviteUser">;
8
8
  calls: Pick<modules.calls.Client, "adminListCalls" | "adminGetCall" | "adminEndCall" | "createCallTicket" | "getCallSettings" | "putCallSettings" | "rotateCallHookSecret">;
@@ -519,7 +519,7 @@ export declare function client(t: Transport): {
519
519
  }): Promise<Reply<200, {
520
520
  apps: ({
521
521
  id: string;
522
- platform: "ios" | "android" | "web";
522
+ platform: "ios" | "macos" | "android" | "web";
523
523
  name: string;
524
524
  slug: string;
525
525
  team_id: string | null;
@@ -538,6 +538,13 @@ export declare function client(t: Transport): {
538
538
  app_clip?: string;
539
539
  watch?: string;
540
540
  };
541
+ macos?: {
542
+ team_id: string;
543
+ app_id_prefix?: string;
544
+ bundle: string;
545
+ app_clip?: string;
546
+ watch?: string;
547
+ };
541
548
  android?: {
542
549
  package: string;
543
550
  fingerprints: ({
@@ -566,7 +573,7 @@ export declare function client(t: Transport): {
566
573
  "Idempotency-Key"?: string;
567
574
  };
568
575
  body: {
569
- platform: "ios" | "android" | "web";
576
+ platform: "ios" | "macos" | "android" | "web";
570
577
  name: string;
571
578
  slug?: string;
572
579
  team_id?: string;
@@ -575,7 +582,7 @@ export declare function client(t: Transport): {
575
582
  signal?: AbortSignal;
576
583
  }): Promise<Reply<200, {
577
584
  id: string;
578
- platform: "ios" | "android" | "web";
585
+ platform: "ios" | "macos" | "android" | "web";
579
586
  name: string;
580
587
  slug: string;
581
588
  team_id: string | null;
@@ -594,6 +601,13 @@ export declare function client(t: Transport): {
594
601
  app_clip?: string;
595
602
  watch?: string;
596
603
  };
604
+ macos?: {
605
+ team_id: string;
606
+ app_id_prefix?: string;
607
+ bundle: string;
608
+ app_clip?: string;
609
+ watch?: string;
610
+ };
597
611
  android?: {
598
612
  package: string;
599
613
  fingerprints: ({
@@ -621,7 +635,7 @@ export declare function client(t: Transport): {
621
635
  signal?: AbortSignal;
622
636
  }): Promise<Reply<200, {
623
637
  id: string;
624
- platform: "ios" | "android" | "web";
638
+ platform: "ios" | "macos" | "android" | "web";
625
639
  name: string;
626
640
  slug: string;
627
641
  team_id: string | null;
@@ -640,6 +654,13 @@ export declare function client(t: Transport): {
640
654
  app_clip?: string;
641
655
  watch?: string;
642
656
  };
657
+ macos?: {
658
+ team_id: string;
659
+ app_id_prefix?: string;
660
+ bundle: string;
661
+ app_clip?: string;
662
+ watch?: string;
663
+ };
643
664
  android?: {
644
665
  package: string;
645
666
  fingerprints: ({
@@ -670,7 +691,7 @@ export declare function client(t: Transport): {
670
691
  signal?: AbortSignal;
671
692
  }): Promise<Reply<200, {
672
693
  id: string;
673
- platform: "ios" | "android" | "web";
694
+ platform: "ios" | "macos" | "android" | "web";
674
695
  name: string;
675
696
  slug: string;
676
697
  team_id: string | null;
@@ -689,6 +710,13 @@ export declare function client(t: Transport): {
689
710
  app_clip?: string;
690
711
  watch?: string;
691
712
  };
713
+ macos?: {
714
+ team_id: string;
715
+ app_id_prefix?: string;
716
+ bundle: string;
717
+ app_clip?: string;
718
+ watch?: string;
719
+ };
692
720
  android?: {
693
721
  package: string;
694
722
  fingerprints: ({
@@ -724,7 +752,7 @@ export declare function client(t: Transport): {
724
752
  signal?: AbortSignal;
725
753
  }): Promise<Reply<200, {
726
754
  id: string;
727
- platform: "ios" | "android" | "web";
755
+ platform: "ios" | "macos" | "android" | "web";
728
756
  name: string;
729
757
  slug: string;
730
758
  team_id: string | null;
@@ -743,6 +771,13 @@ export declare function client(t: Transport): {
743
771
  app_clip?: string;
744
772
  watch?: string;
745
773
  };
774
+ macos?: {
775
+ team_id: string;
776
+ app_id_prefix?: string;
777
+ bundle: string;
778
+ app_clip?: string;
779
+ watch?: string;
780
+ };
746
781
  android?: {
747
782
  package: string;
748
783
  fingerprints: ({
@@ -773,7 +808,7 @@ export declare function client(t: Transport): {
773
808
  signal?: AbortSignal;
774
809
  }): Promise<Reply<200, {
775
810
  id: string;
776
- platform: "ios" | "android" | "web";
811
+ platform: "ios" | "macos" | "android" | "web";
777
812
  name: string;
778
813
  slug: string;
779
814
  team_id: string | null;
@@ -792,6 +827,13 @@ export declare function client(t: Transport): {
792
827
  app_clip?: string;
793
828
  watch?: string;
794
829
  };
830
+ macos?: {
831
+ team_id: string;
832
+ app_id_prefix?: string;
833
+ bundle: string;
834
+ app_clip?: string;
835
+ watch?: string;
836
+ };
795
837
  android?: {
796
838
  package: string;
797
839
  fingerprints: ({
@@ -825,6 +867,9 @@ export declare function client(t: Transport): {
825
867
  app_clip?: string;
826
868
  watch?: string;
827
869
  };
870
+ macos?: {
871
+ bundle: string;
872
+ };
828
873
  android?: {
829
874
  package: string;
830
875
  fingerprints?: ({
@@ -850,6 +895,13 @@ export declare function client(t: Transport): {
850
895
  app_clip?: string;
851
896
  watch?: string;
852
897
  };
898
+ macos?: {
899
+ team_id: string;
900
+ app_id_prefix?: string;
901
+ bundle: string;
902
+ app_clip?: string;
903
+ watch?: string;
904
+ };
853
905
  android?: {
854
906
  package: string;
855
907
  fingerprints: ({
@@ -900,7 +952,7 @@ export declare function client(t: Transport): {
900
952
  id: string;
901
953
  name: string;
902
954
  slug: string;
903
- platform: "ios" | "android" | "web";
955
+ platform: "ios" | "macos" | "android" | "web";
904
956
  ios?: {
905
957
  team_id: string;
906
958
  app_id_prefix?: string;
@@ -908,6 +960,13 @@ export declare function client(t: Transport): {
908
960
  app_clip?: string;
909
961
  watch?: string;
910
962
  };
963
+ macos?: {
964
+ team_id: string;
965
+ app_id_prefix?: string;
966
+ bundle: string;
967
+ app_clip?: string;
968
+ watch?: string;
969
+ };
911
970
  android?: {
912
971
  package: string;
913
972
  fingerprints: ({