palbase 0.76.0 → 0.78.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/3I5XH3A3.js +13 -0
- package/dist/chunks/{MKVIRNSJ.js → 3X3ZT72M.js} +2 -2
- package/dist/chunks/{TGQGGUE6.js → 5H3UYFOC.js} +2 -2
- package/dist/chunks/5OBOVEK6.js +2 -0
- package/dist/chunks/{KEGVHELA.js → AKJC5WTU.js} +1 -1
- package/dist/chunks/{TUK6NH2Q.js → AMKY4SZU.js} +2 -2
- package/dist/chunks/B64J3E3T.js +2 -0
- package/dist/chunks/{5RNXCTOO.js → EFELMJMQ.js} +2 -2
- package/dist/chunks/{ZCMCYI2D.js → FOZVJW7G.js} +2 -2
- package/dist/chunks/{BRDO3ZPT.js → HHKRAOVG.js} +1 -1
- package/dist/chunks/{ISMWEEGW.js → HVRVTNMI.js} +1 -1
- package/dist/chunks/{SVWF7ABJ.js → JSRN4NOZ.js} +2 -2
- package/dist/chunks/{33XOVYAU.js → MA74JJUB.js} +4 -4
- package/dist/chunks/{UHN63FGH.js → MFWAOKLM.js} +2 -2
- package/dist/chunks/{PGQNRJ2C.js → NG4OMSEK.js} +2 -2
- package/dist/chunks/{5YJZAPY2.js → NQUAVRMC.js} +2 -2
- package/dist/chunks/{EXLA3A7O.js → Q3GH7I66.js} +2 -2
- package/dist/chunks/{3CN6HGTW.js → QL2UAO36.js} +1 -1
- package/dist/chunks/{DKYFIOWM.js → QOETZ4FB.js} +1 -1
- package/dist/chunks/RP2TPMXT.js +2 -0
- package/dist/chunks/S7C7NHZI.js +18 -0
- package/dist/chunks/{D6NOE76D.js → SHYJVOD2.js} +1 -1
- package/dist/chunks/{A3I7H7QN.js → VP3HFVV4.js} +1 -1
- package/dist/chunks/{UOW74IHY.js → XVJ3CMFN.js} +2 -2
- package/dist/chunks/{Q4UWBIJ6.js → YQQKZUVS.js} +2 -2
- package/dist/cli.js +243 -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 +29 -10
- package/types/ai/src/index.d.ts +2 -2
- package/types/ai/src/pools.d.ts +15 -24
- 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 +29 -1
- package/types/internal/src/modules/ai.d.ts +192 -79
- 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 +21 -1
- package/types/web/src/index.d.ts +3 -1
- package/types/web/src/templates.d.ts +8 -0
- package/dist/chunks/2NEPN2ZZ.js +0 -2
- package/dist/chunks/3VGWTVKI.js +0 -2
- package/dist/chunks/ALT62XIG.js +0 -13
- package/dist/chunks/YRYPXVAJ.js +0 -18
package/types/ai/src/chats.d.ts
CHANGED
|
@@ -57,6 +57,18 @@ export interface AISettings {
|
|
|
57
57
|
* Whether newly created chats automatically attach a Realtime pipe (`chat:<chat_id>`) unless `live: false` is passed.
|
|
58
58
|
*/
|
|
59
59
|
autoPipeChats: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Whether the app's signed-in users enrol machines of their own — a key minted from their app (pb.ai.machines.keys
|
|
62
|
+
* .create), with no secret key on the device; off (the default), such a key is refused (403 user_machines_disabled).
|
|
63
|
+
* The project's server mints one for a user it names whatever this says, and what a person already enrolled they
|
|
64
|
+
* read, cordon, resume and delete either way: turned off, their machines stay theirs and keep serving.
|
|
65
|
+
*/
|
|
66
|
+
userMachines: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* How many machines one user holds at most, a key still waiting for its machine counted as one (1–20; 3 by default):
|
|
69
|
+
* a user at it mints no new key (409 machine_limit_reached). Lowered, nobody's machine is taken away.
|
|
70
|
+
*/
|
|
71
|
+
userMachineLimit: number;
|
|
60
72
|
}
|
|
61
73
|
/** Where a portable chat session executes (orthogonal to ExecutorTarget). */
|
|
62
74
|
export interface ComputeTarget {
|
|
@@ -132,8 +144,14 @@ export interface ChatExecution {
|
|
|
132
144
|
targetGeneration: number;
|
|
133
145
|
workspaceId?: string;
|
|
134
146
|
workspaceSeq: number;
|
|
135
|
-
|
|
147
|
+
/**
|
|
148
|
+
* The target machine's state. removed: the machine was deleted, or its owner's account was — the chat runs nowhere
|
|
149
|
+
* until it is handed to another target (a turn on it fails machine_removed). To a member who does not own the
|
|
150
|
+
* machine, a cordoned one reads offline.
|
|
151
|
+
*/
|
|
152
|
+
machineStatus?: 'online' | 'offline' | 'cordoned' | 'waking' | 'removed' | (string & {});
|
|
136
153
|
machineName?: string;
|
|
154
|
+
/** The coding CLIs on the target machine: absent to a member who does not own a machine that has an owner. */
|
|
137
155
|
harnesses?: MachineHarness[];
|
|
138
156
|
autoFailover: AutoFailoverPolicy | null;
|
|
139
157
|
failoverAt: string | null;
|
|
@@ -211,8 +229,6 @@ export interface CreateChat {
|
|
|
211
229
|
}
|
|
212
230
|
/** A first-class project runtime environment for AI agents (`ephemeral` or `always_on`). */
|
|
213
231
|
export type Environment = modules.ai.Environment;
|
|
214
|
-
/** An immutable pre-bake build record for a runtime environment. */
|
|
215
|
-
export type EnvironmentBuild = modules.ai.EnvironmentBuild;
|
|
216
232
|
/** Configuration for creating or updating a project runtime environment. */
|
|
217
233
|
export type EnvironmentRequest = modules.ai.EnvironmentRequest;
|
|
218
234
|
/** Container image, Dockerfile, Mac VM profile, and pre-install setup commands. */
|
|
@@ -223,7 +239,7 @@ export type EnvironmentResources = modules.ai.EnvironmentResources;
|
|
|
223
239
|
export type EnvironmentScaling = modules.ai.EnvironmentScaling;
|
|
224
240
|
/** Outbound network egress policy and Palbase DB connectivity. */
|
|
225
241
|
export type EnvironmentNetwork = modules.ai.EnvironmentNetwork;
|
|
226
|
-
/** The project's runtime environments (`ephemeral` or `always_on`)
|
|
242
|
+
/** The project's runtime environments (`ephemeral` or `always_on`). */
|
|
227
243
|
export interface Environments {
|
|
228
244
|
list(options?: {
|
|
229
245
|
signal?: AbortSignal;
|
|
@@ -242,12 +258,6 @@ export interface Environments {
|
|
|
242
258
|
delete(name: string, options?: {
|
|
243
259
|
signal?: AbortSignal;
|
|
244
260
|
}): Promise<void>;
|
|
245
|
-
createBuild(name: string, options?: {
|
|
246
|
-
signal?: AbortSignal;
|
|
247
|
-
}): Promise<EnvironmentBuild>;
|
|
248
|
-
getBuild(name: string, buildId: string, options?: {
|
|
249
|
-
signal?: AbortSignal;
|
|
250
|
-
}): Promise<EnvironmentBuild>;
|
|
251
261
|
}
|
|
252
262
|
export interface SendMessage {
|
|
253
263
|
text: string;
|
|
@@ -517,6 +527,13 @@ export interface ChatStreamPart {
|
|
|
517
527
|
id?: number;
|
|
518
528
|
/** The id the channel told it under. */
|
|
519
529
|
partId: string;
|
|
530
|
+
/**
|
|
531
|
+
* When it happened, as the journal took it — the same as the channel told it: RFC 3339 in UTC, to the microsecond,
|
|
532
|
+
* at a fixed width (2026-11-28T06:36:15.321369Z), so its text sorts as its time. A tool's end minus its start is how
|
|
533
|
+
* long the call ran; a turn's completed minus its running how long the turn took. A voice's end: when its record says
|
|
534
|
+
* it ended. Absent for a fork's history and an answer's start the page puts first.
|
|
535
|
+
*/
|
|
536
|
+
at?: string;
|
|
520
537
|
/** What the part says, as the stream says it. */
|
|
521
538
|
data: Record<string, unknown>;
|
|
522
539
|
}
|
|
@@ -937,6 +954,8 @@ export interface Settings {
|
|
|
937
954
|
openSecretsForAppUsers?: boolean;
|
|
938
955
|
allowClientHandoff?: boolean;
|
|
939
956
|
autoPipeChats?: boolean;
|
|
957
|
+
userMachines?: boolean;
|
|
958
|
+
userMachineLimit?: number;
|
|
940
959
|
}): Promise<AISettings>;
|
|
941
960
|
}
|
|
942
961
|
/**
|
package/types/ai/src/index.d.ts
CHANGED
|
@@ -4,11 +4,11 @@ export { AISchemaError, prepare } from './schema.js';
|
|
|
4
4
|
export { ToolError } from './tools.js';
|
|
5
5
|
export type { Infer, StandardSchema } from './schema.js';
|
|
6
6
|
export { partial } from './partial.js';
|
|
7
|
-
export type { AISettings, Agent, AgentTool, AgentVersion, Agents, AutoFailoverPolicy, Chat, ChatEvents, ChatExecution, ChatGoal, ChatMessage, ChatStreamPart, ChatToolCall, ChatVoice, ChatVoiceTransport, Chats, ComputeTarget, CreateChat, Decision, Endpoint, EndpointInput, Endpoints, Environment,
|
|
7
|
+
export type { AISettings, Agent, AgentTool, AgentVersion, Agents, AutoFailoverPolicy, Chat, ChatEvents, ChatExecution, ChatGoal, ChatMessage, ChatStreamPart, ChatToolCall, ChatVoice, ChatVoiceTransport, Chats, ComputeTarget, CreateChat, Decision, Endpoint, EndpointInput, Endpoints, Environment, EnvironmentNetwork, EnvironmentRequest, EnvironmentResources, EnvironmentRuntime, EnvironmentScaling, Environments, ExecutionTarget, ExecutorTarget, ForkChat, GoalChange, Goals, HandoffOptions, HandoffResult, MemberInput, MessageAttachment, MessageFile, MessageImage, PendingHandoff, SendMessage, SetGoal, Settings, StartVoice, StartVoiceTransport, TargetSummary, TurnAdvisorCost, TurnArtifact, TurnCost, TurnRunCost, TurnToolCall, UpdateExecutionOptions, VoiceActivation, VoiceCommand, Voices, } from './chats.js';
|
|
8
8
|
export { WorkflowParkedError } from './workflows.js';
|
|
9
9
|
export type { ActorGroupBroadcastRequest, ActorGroupBroadcastResponse, ActorGroupMembersResponse, ActorGroups, DurableGraph, DurableWorkflow, GraphDefinition, MCPAuth, MCPOAuthStartResponse, MCPUserCredentialRequest, MCPUserCredentialResponse, Memory, MemoryPutRequest, MemoryRecord, MemorySearchRequest, StopTreeResponse, Trigger, TriggerCreateRequest, TriggerCreated, TriggerPatchRequest, TriggerTestRequest, TriggerTestResponse, Triggers, Wait, Waits, WorkflowCompleteRequest, WorkflowReplayResponse, WorkflowRun, WorkflowRunCreateRequest, WorkflowRunOptions, WorkflowStep, WorkflowStepContext, WorkflowStepRequest, Workflows, } from './workflows.js';
|
|
10
10
|
export type { Template, TemplateClientPolicy, TemplateGenerationLimits, TemplatePerUserLimits, TemplatePolicyAttestation, Templates, TemplateUpsert, TemplateVersion, UserQuota, UserQuotas, UserQuotaUpdate, UserSpend, UserSpendQuery, } from './templates.js';
|
|
11
|
-
export type { EnvVariable, EnvVariableOptions, EnvVariables, MachineHarness, Pool, PoolKey, PoolKeyEnroll, PoolKeyMinted, PoolKeys, PoolMachine, PoolMachines, PoolState, Pools, SecretHostAllowance, SecretHostAllowances, SecretHostRequest, SecretHostRequests, } from './pools.js';
|
|
11
|
+
export type { EnvVariable, EnvVariableOptions, EnvVariables, Machine, MachineHarness, MachineKey, MachineKeyEnroll, Machines, Pool, PoolKey, PoolKeyEnroll, PoolKeyMinted, PoolKeys, PoolMachine, PoolMachines, PoolState, Pools, SecretHostAllowance, SecretHostAllowances, SecretHostRequest, SecretHostRequests, } from './pools.js';
|
|
12
12
|
export type { AdvisorDefinition, AgentContext, AgentDefinitionInput, AgentEnvEntry, BackendAgent, BackendAgentOptions, BackendTool, BackendToolOptions, ChatContext, ClientTool, ClientToolOptions, DeferredAnswer, Effort, HttpsToolRef, McpToolRef, EnvInject, PlatformToolName, PlatformToolRef, PreparedOutput, SecretDescription, SubagentDefinition, Thinking, Tool, ToolAnswer, ToolContext, ToolOutputs, ToolReply, ToolWorkspace, TurnDefinition, TurnMessage, WorkspaceTree, } from './tools.js';
|
|
13
13
|
export type { AgentEvent, ChatEvent, ContextCompactedEvent, ContextOffloadedEvent, GoalEvent, GoalKind, HistoryEvent, HistoryItem, MessageEvent, Publication, ResetEvent, SessionHandedOffEvent, SessionMachineStatusEvent, SessionSummaryEvent, TextEvent, ThinkingEvent, ToolEvent, ToolStatus, TranscriptEvent, TurnEnd, TurnEvent, TurnStatus, VoiceEvent, WaitingReason, } from '../../internal/src/chat.js';
|
|
14
14
|
export type { ToolPart, ToolResult } from '../../internal/src/tool-output.js';
|
package/types/ai/src/pools.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type * as modules from '../../internal/src/modules/index.js';
|
|
2
|
+
import { harnessOf, type Machines, type MachineHarness } from '../../internal/src/ai-machines.js';
|
|
2
3
|
import { type EnvInject, type SecretDescription } from './tools.js';
|
|
3
4
|
type Module = ReturnType<typeof modules.ai.client>;
|
|
5
|
+
export { harnessOf };
|
|
6
|
+
export type { Machine, MachineHarness, MachineKey, MachineKeyEnroll, Machines } from '../../internal/src/ai-machines.js';
|
|
4
7
|
/** A runner pool of the project's: its machines of one type — an operating system and an architecture. */
|
|
5
8
|
export interface Pool {
|
|
6
9
|
/** Its id: named by it, or by its name. */
|
|
@@ -47,17 +50,15 @@ export interface PoolKeyMinted extends PoolKey {
|
|
|
47
50
|
enrollUrl?: string;
|
|
48
51
|
enroll?: PoolKeyEnroll;
|
|
49
52
|
}
|
|
50
|
-
/** An official local ACP CLI harness probed by palbase-agent on an enrolled machine (never reads OAuth tokens). */
|
|
51
|
-
export interface MachineHarness {
|
|
52
|
-
name: 'claude-code' | 'codex' | 'gemini-cli' | (string & {});
|
|
53
|
-
acpVersion?: string;
|
|
54
|
-
cliVersion?: string;
|
|
55
|
-
status: 'ready' | 'unauthenticated' | 'not_installed' | (string & {});
|
|
56
|
-
}
|
|
57
53
|
/** A machine of a pool: what it takes and holds, and whether it takes a new session. */
|
|
58
54
|
export interface PoolMachine {
|
|
59
55
|
/** Its id: cordoned, resumed and deleted by it (ai.machines). */
|
|
60
56
|
id: string;
|
|
57
|
+
/**
|
|
58
|
+
* The user it belongs to, when a person enrolled it (ai.machines.keys.create, or from their app); absent for one of
|
|
59
|
+
* the project's. A machine with an owner takes only the chats that name it.
|
|
60
|
+
*/
|
|
61
|
+
owner?: string;
|
|
61
62
|
/** online, offline, or cordoned (it takes no new session). */
|
|
62
63
|
state: 'online' | 'offline' | 'cordoned' | (string & {});
|
|
63
64
|
/** How many sessions it takes at once (palbase-agent enroll --capacity), and holds now. */
|
|
@@ -137,21 +138,13 @@ export interface Pools {
|
|
|
137
138
|
}): Promise<PoolState>;
|
|
138
139
|
readonly keys: PoolKeys;
|
|
139
140
|
}
|
|
140
|
-
/**
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
resume(id: string, options?: {
|
|
148
|
-
signal?: AbortSignal;
|
|
149
|
-
}): Promise<void>;
|
|
150
|
-
/** A cordoned machine that holds no session leaves its pool, its palbase-agent refused from then (409 machine_not_cordoned, machine_busy). */
|
|
151
|
-
delete(id: string, options?: {
|
|
152
|
-
signal?: AbortSignal;
|
|
153
|
-
}): Promise<void>;
|
|
154
|
-
}
|
|
141
|
+
/**
|
|
142
|
+
* The project's machines by their id — those of its pools (a pool's state names them) and those its users enrolled as
|
|
143
|
+
* their own — cordoned, resumed and deleted; and a user's own machines, from the project's server: an enrolment key
|
|
144
|
+
* minted for the user it names (keys.create({ os, arch, owner }), whatever settings userMachines says — said once,
|
|
145
|
+
* into a file on the machine, never on a command line), their machines listed (list({ owner })) and one read (get).
|
|
146
|
+
*/
|
|
147
|
+
export type PoolMachines = Machines;
|
|
155
148
|
/** One of the project's variables: its name and what it says of itself, never its value. */
|
|
156
149
|
export interface EnvVariable {
|
|
157
150
|
key: string;
|
|
@@ -327,10 +320,8 @@ export interface EnvVariables {
|
|
|
327
320
|
/** The hosts its agents' own secrets are allowed beside their definitions'. */
|
|
328
321
|
readonly allowances: SecretHostAllowances;
|
|
329
322
|
}
|
|
330
|
-
export declare function harnessOf(h: modules.ai.MachineHarness): MachineHarness;
|
|
331
323
|
export declare function poolsOf(module: Module): {
|
|
332
324
|
pools: Pools;
|
|
333
325
|
machines: PoolMachines;
|
|
334
326
|
env: EnvVariables;
|
|
335
327
|
};
|
|
336
|
-
export {};
|
|
@@ -2,19 +2,19 @@ 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" | "createAudioSpeech" | "createAudioTranscription" | "listChats" | "createChat" | "getChat" | "deleteChat" | "decideChatApproval" | "getChatExecution" | "patchChatExecution" | "forkChat" | "getChatGoal" | "setChatGoal" | "clearChatGoal" | "updateChatGoal" | "handoffChat" | "putChatMember" | "deleteChatMember" | "listChatMessages" | "sendChatMessage" | "getChatMessageAttachment" | "listChatParts" | "putChatPipe" | "deleteChatPipe" | "sendSubagentMessage" | "stopSubagent" | "stopChat" | "listTurnToolCalls" | "getChatToolCall" | "answerChatToolCall" | "listChatTurnArtifacts" | "getChatTurnArtifact" | "getChatTurnCost" | "startChatVoice" | "getChatVoice" | "closeChatVoice" | "commandChatVoice" | "createEmbeddings" | "listEndpoints" | "putEndpoint" | "deleteEndpoint" | "listEnv" | "listEnvAllowances" | "deleteEnvAllowance" | "listEnvHostRequests" | "allowEnvHostRequest" | "dismissEnvHostRequest" | "putEnv" | "deleteEnv" | "allowEnvHost" | "listEnvironments" | "createEnvironment" | "getEnvironment" | "putEnvironment" | "deleteEnvironment" | "
|
|
5
|
+
ai: Pick<modules.ai.Client, "draftAgent" | "listAgents" | "getAgent" | "putAgent" | "deleteAgent" | "publishAgent" | "rollbackAgent" | "listAgentVersions" | "createAudioSpeech" | "createAudioTranscription" | "listChats" | "createChat" | "getChat" | "deleteChat" | "decideChatApproval" | "getChatExecution" | "patchChatExecution" | "forkChat" | "getChatGoal" | "setChatGoal" | "clearChatGoal" | "updateChatGoal" | "handoffChat" | "putChatMember" | "deleteChatMember" | "listChatMessages" | "sendChatMessage" | "getChatMessageAttachment" | "listChatParts" | "putChatPipe" | "deleteChatPipe" | "sendSubagentMessage" | "stopSubagent" | "stopChat" | "listTurnToolCalls" | "getChatToolCall" | "answerChatToolCall" | "listChatTurnArtifacts" | "getChatTurnArtifact" | "getChatTurnCost" | "startChatVoice" | "getChatVoice" | "closeChatVoice" | "commandChatVoice" | "createEmbeddings" | "listEndpoints" | "putEndpoint" | "deleteEndpoint" | "listEnv" | "listEnvAllowances" | "deleteEnvAllowance" | "listEnvHostRequests" | "allowEnvHostRequest" | "dismissEnvHostRequest" | "putEnv" | "deleteEnv" | "allowEnvHost" | "listEnvironments" | "createEnvironment" | "getEnvironment" | "putEnvironment" | "deleteEnvironment" | "createImage" | "getImage" | "getImageFile" | "getMachine" | "deleteMachine" | "cordonMachine" | "resumeMachine" | "listModels" | "revokePoolKey" | "listPools" | "createPool" | "deletePool" | "listPoolKeys" | "createPoolKey" | "getPoolState" | "listProviders" | "connectProvider" | "disconnectProvider" | "createResponse" | "getResponse" | "cancelResponse" | "followResponse" | "getSettings" | "putSettings" | "getSpend" | "askSupport" | "listTools" | "listUsage" | "gatewayAudioSpeech" | "gatewayAudioTranscriptions" | "gatewayChatCompletions" | "gatewayEmbeddings" | "gatewayImagesGenerations" | "gatewayAnthropicMessages" | "gatewayListModels" | "gatewayResponses" | "createVideo" | "getVideo" | "cancelVideo" | "listTriggers" | "createTrigger" | "getTrigger" | "deleteTrigger" | "updateTrigger" | "testTrigger" | "listWaits" | "getWait" | "signalWait" | "cancelWait" | "listWorkflowRuns" | "createWorkflowRun" | "getWorkflowRun" | "recordWorkflowStep" | "completeWorkflowRun" | "replayWorkflowRun" | "stopRunTree" | "getMemory" | "putMemory" | "deleteMemory" | "searchMemory" | "listActorGroupMembers" | "addActorGroupMember" | "broadcastActorGroup" | "callA2Arpc" | "putMcpUserCredential" | "deleteMcpUserCredential" | "startMcpoAuth" | "listTemplates" | "getTemplate" | "putTemplate" | "deleteTemplate" | "publishTemplate" | "rollbackTemplate" | "listTemplateVersions" | "listUserSpend" | "getUserQuota" | "putUserQuota" | "deleteUserQuota" | "clientAttestChallenge" | "runClientTemplate" | "voiceClientTemplate" | "createMachineKey" | "listMachines">;
|
|
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" | "adminGetCallTranscription" | "adminStartCallTranscription" | "adminStopCallTranscription" | "adminIngestCallTranscriptionAudio" | "getCallSettings" | "putCallSettings" | "rotateCallHookSecret">;
|
|
9
9
|
campaigns: Pick<modules.campaigns.Client, "listBroadcasts" | "createBroadcast" | "recordBroadcastConversion" | "getBroadcast" | "updateBroadcast" | "deleteBroadcast" | "cancelBroadcast" | "pauseBroadcast" | "startBroadcast" | "getBroadcastStats" | "listTrackingLinks" | "createTrackingLink" | "attributeLinkConversion" | "getTrackingLink" | "updateTrackingLink" | "deleteTrackingLink" | "getTrackingLinkStats" | "listOnSiteCampaigns" | "createOnSiteCampaign" | "createOnSiteImpression" | "recordOnSiteEvent" | "listOnSiteMessages" | "getOnSiteSettings" | "putOnSiteSettings" | "listOnSiteTemplates" | "getOnSiteCampaign" | "updateOnSiteCampaign" | "deleteOnSiteCampaign" | "getOnSiteCampaignStats">;
|
|
10
|
-
commerce: Pick<modules.commerce.Client, "listBrands" | "createBrand" | "createCart" | "getCart" | "updateCart" | "checkoutCart" | "addCartItem" | "deleteCartItem" | "updateCartItem" | "applyCartPromoCode" | "removeCartPromoCode" | "selectCartShipping" | "storefrontListBrands" | "storefrontListCategories" | "storefrontListChannels" | "storefrontListCollections" | "storefrontListProducts" | "storefrontSearchProducts" | "storefrontSuggest" | "storefrontRecommendProducts" | "storefrontProductRecommendations" | "storefrontGetProduct" | "storefrontListProductReviews" | "storefrontListRegions" | "storefrontListStores" | "storefrontGetStore" | "storefrontListStoreReviews" | "listCategories" | "createCategory" | "listChannels" | "createChannel" | "attachChannelRegion" | "attachChannelStore" | "detachChannelStore" | "listCollections" | "createCollection" | "addCollectionProduct" | "removeCollectionProduct" | "createDigitalAsset" | "updateFulfillment" | "addShipmentEvent" | "listDiscoveryStrategies" | "createDiscoveryStrategy" | "getDiscoveryStrategy" | "deleteDiscoveryStrategy" | "updateDiscoveryStrategy" | "listMerchandisingRules" | "createMerchandisingRule" | "getMerchandisingRule" | "deleteMerchandisingRule" | "updateMerchandisingRule" | "listSearchSynonyms" | "createSearchSynonym" | "deleteSearchSynonym" | "refreshDiscoverySignals" | "listHooks" | "upsertHook" | "deleteHook" | "listInventory" | "adjustInventory" | "bulkSyncInventory" | "listInventoryMovements" | "listInvoices" | "createInvoice" | "updateInvoice" | "listListings" | "createListing" | "updateListing" | "importLicenseKeys" | "upsertPrice" | "createMediaAsset" | "listOrders" | "getGuestOrder" | "getOrder" | "markOrderPaid" | "listPriceLists" | "createPriceList" | "listProducts" | "createProduct" | "createQuickProduct" | "getProduct" | "updateProduct" | "approveProduct" | "upsertProductOption" | "createVariant" | "listRegions" | "createRegion" | "updateRegion" | "listReturns" | "approveReturn" | "completeReturn" | "receiveReturn" | "adminListReviews" | "adminDeleteReview" | "adminModerateReview" | "getCommerceSettings" | "updateCommerceSettings" | "listSettlements" | "generateSettlement" | "markSettlementPaid" | "listShippingOptions" | "createShippingOption" | "listShippingProfiles" | "createShippingProfile" | "listStockLocations" | "createStockLocation" | "listStoreOrders" | "getStoreOrder" | "cancelStoreOrder" | "createFulfillment" | "createReturn" | "listStores" | "createStore" | "getStore" | "updateStore" | "sellerUpdateFulfillment" | "sellerAddShipmentEvent" | "sellerListInventory" | "sellerAdjustInventory" | "sellerBulkSyncInventory" | "sellerListListings" | "sellerCreateListing" | "sellerUpdateListing" | "sellerImportLicenseKeys" | "sellerUpsertPrice" | "sellerListStockLocations" | "sellerCreateStockLocation" | "addStoreMember" | "removeStoreMember" | "sellerGetMetrics" | "sellerListStoreOrders" | "sellerGetStoreOrder" | "sellerCancelStoreOrder" | "sellerCreateFulfillment" | "onboardStorePaymentAccount" | "sellerOnboardPayouts" | "sellerOnboardingLink" | "sellerListProducts" | "sellerCreateProduct" | "sellerCreateQuickProduct" | "sellerCreatePromotionRule" | "sellerListReturns" | "sellerApproveReturn" | "sellerCompleteReturn" | "sellerReceiveReturn" | "sellerListReviews" | "sellerReplyReview" | "sellerListSettlements" | "sellerCreateShippingOption" | "listTaxRates" | "upsertTaxRate" | "updateVariant" | "setBundleItems" | "recomputeVariantBuyBox" | "revokePromotionCode" | "evaluatePromotions" | "holdPromotions" | "commitPromotionHold" | "releasePromotionHold" | "listPromotionRedemptions" | "reversePromotionRedemption" | "listPromotionRules" | "createPromotionRule" | "getPromotionRule" | "archivePromotionRule" | "updatePromotionRule" | "upsertPromotionBudget" | "listPromotionCodes" | "createPromotionCode" | "generatePromotionCodeBatch">;
|
|
10
|
+
commerce: Pick<modules.commerce.Client, "listBrands" | "createBrand" | "createCart" | "getCart" | "updateCart" | "checkoutCart" | "addCartItem" | "deleteCartItem" | "updateCartItem" | "applyCartPromoCode" | "removeCartPromoCode" | "selectCartShipping" | "storefrontListBrands" | "storefrontListCategories" | "storefrontListChannels" | "storefrontListCollections" | "storefrontListProducts" | "storefrontSearchProducts" | "storefrontSuggest" | "storefrontRecommendProducts" | "storefrontProductRecommendations" | "storefrontGetProduct" | "storefrontListProductReviews" | "storefrontListRegions" | "storefrontListStores" | "storefrontGetStore" | "storefrontListStoreReviews" | "listCategories" | "createCategory" | "listChannels" | "createChannel" | "attachChannelRegion" | "attachChannelStore" | "detachChannelStore" | "listCollections" | "createCollection" | "addCollectionProduct" | "removeCollectionProduct" | "createDigitalAsset" | "updateFulfillment" | "addShipmentEvent" | "listDiscoveryStrategies" | "createDiscoveryStrategy" | "getDiscoveryStrategy" | "deleteDiscoveryStrategy" | "updateDiscoveryStrategy" | "listMerchandisingRules" | "createMerchandisingRule" | "getMerchandisingRule" | "deleteMerchandisingRule" | "updateMerchandisingRule" | "listSearchSynonyms" | "createSearchSynonym" | "deleteSearchSynonym" | "refreshDiscoverySignals" | "listHooks" | "upsertHook" | "deleteHook" | "listInventory" | "adjustInventory" | "bulkSyncInventory" | "listInventoryMovements" | "listInvoices" | "createInvoice" | "updateInvoice" | "listListings" | "createListing" | "updateListing" | "importLicenseKeys" | "upsertPrice" | "createMediaAsset" | "listOrders" | "getGuestOrder" | "getOrder" | "markOrderPaid" | "listPriceLists" | "createPriceList" | "listProducts" | "createProduct" | "createQuickProduct" | "getProduct" | "updateProduct" | "approveProduct" | "upsertProductOption" | "createVariant" | "listRegions" | "createRegion" | "updateRegion" | "listReturns" | "approveReturn" | "rejectReturn" | "completeReturn" | "receiveReturn" | "adminListReviews" | "adminDeleteReview" | "adminModerateReview" | "getCommerceSettings" | "updateCommerceSettings" | "listSettlements" | "generateSettlement" | "markSettlementPaid" | "listShippingOptions" | "createShippingOption" | "listShippingProfiles" | "createShippingProfile" | "listStockLocations" | "createStockLocation" | "listStoreOrders" | "getStoreOrder" | "cancelStoreOrder" | "createFulfillment" | "createReturn" | "listStores" | "createStore" | "getStore" | "updateStore" | "sellerUpdateFulfillment" | "sellerAddShipmentEvent" | "sellerListInventory" | "sellerAdjustInventory" | "sellerBulkSyncInventory" | "sellerListListings" | "sellerCreateListing" | "sellerUpdateListing" | "sellerImportLicenseKeys" | "sellerUpsertPrice" | "sellerListStockLocations" | "sellerCreateStockLocation" | "addStoreMember" | "removeStoreMember" | "sellerGetMetrics" | "sellerListStoreOrders" | "sellerGetStoreOrder" | "sellerCancelStoreOrder" | "sellerCreateFulfillment" | "onboardStorePaymentAccount" | "sellerOnboardPayouts" | "sellerOnboardingLink" | "sellerListProducts" | "sellerCreateProduct" | "sellerCreateQuickProduct" | "sellerCreatePromotionRule" | "sellerListReturns" | "sellerApproveReturn" | "sellerRejectReturn" | "sellerCompleteReturn" | "sellerReceiveReturn" | "sellerListReviews" | "sellerReplyReview" | "sellerListSettlements" | "sellerCreateShippingOption" | "listTaxRates" | "upsertTaxRate" | "updateVariant" | "setBundleItems" | "recomputeVariantBuyBox" | "revokePromotionCode" | "evaluatePromotions" | "holdPromotions" | "commitPromotionHold" | "releasePromotionHold" | "listPromotionRedemptions" | "reversePromotionRedemption" | "listPromotionRules" | "createPromotionRule" | "getPromotionRule" | "archivePromotionRule" | "updatePromotionRule" | "upsertPromotionBudget" | "listPromotionCodes" | "createPromotionCode" | "generatePromotionCodeBatch">;
|
|
11
11
|
flags: Pick<modules.flags.Client, "getValues" | "batchUserValues" | "getDelta" | "getEvaluations" | "listExperiments" | "startExperiment" | "getExperiment" | "getExperimentResults" | "stopExperiment" | "declareExperimentWinner" | "getCurrentInstallations" | "getInstallationsDaily" | "getSnapshot" | "listDefinitions" | "getDefinition" | "putDefinition" | "deleteDefinition" | "activateTemplates" | "getActiveTemplate" | "getTemplateCapabilities" | "getTemplateDraft" | "createTemplateDraft" | "discardTemplateDraft" | "putTemplateParameter" | "removeTemplateParameter" | "reviewTemplateDraft" | "publishTemplate" | "getPublishReceipt" | "restoreTemplateVersion" | "listTemplateVersions" | "getTemplateVersion" | "getUserValues" | "putUserValues" | "deleteUserValues" | "putUserValue" | "deleteUserValue">;
|
|
12
12
|
iap: Pick<modules.iap.Client, "getAppleAccount" | "disconnectApple" | "createAppleGrant" | "getAppleReadiness" | "setXcodeCertificate" | "clearXcodeCertificate" | "setXcodeOfferKey" | "getCatalog" | "saveCatalog" | "planCatalog" | "getCatalogPlan" | "confirmCatalogPlan" | "declineCatalogPlan" | "listCatalogRevisions" | "getCatalogRevision" | "restoreCatalogRevision" | "validateCatalog" | "listCharts" | "getChartsOverview" | "getChart" | "createCheckout" | "createCheckoutRedemption" | "listCoupons" | "createCoupon" | "getCoupon" | "revokeCoupon" | "listCouponCodes" | "searchCustomers" | "getCustomer" | "grantCredits" | "listCreditEntries" | "forgiveCredits" | "listCustomerGrants" | "grantEntitlement" | "revokeGrant" | "getCustomerHistory" | "holdSpend" | "setCustomerLimit" | "clearCustomerLimit" | "grantLimit" | "spend" | "commitSpend" | "extendHold" | "releaseSpend" | "reverseSpend" | "cancelSubscription" | "extendSubscription" | "refundSubscription" | "listExperiments" | "startExperiment" | "getExperiment" | "getExperimentResults" | "stopExperiment" | "declareExperimentWinner" | "getGoogleAccount" | "connectGoogle" | "disconnectGoogle" | "getOfferings" | "getOfferStats" | "listPaywalls" | "createPaywall" | "listPaywallAssets" | "registerPaywallAsset" | "deletePaywallAsset" | "listPaywallTemplates" | "getPaywallTemplateAsset" | "validatePaywall" | "getPaywall" | "deletePaywall" | "savePaywallDraft" | "publishPaywall" | "listPaywallVersions" | "getPaywallVersion" | "listPlacements" | "listAttributeKeys" | "setPlacement" | "deletePlacement" | "recordPaywallExposure" | "getPlacementPaywall" | "previewPlacement" | "getPlacementResults" | "getPlacementRules" | "setPlacementRules" | "getSettings" | "updateSettings">;
|
|
13
13
|
journeys: Pick<modules.journeys.Client, "listJourneys" | "createJourney" | "listBlueprints" | "listPersonRuns" | "simulateJourney" | "listStoreBlueprints" | "activateStoreBlueprint" | "deleteStoreBlueprint" | "validateJourney" | "getJourney" | "updateJourney" | "deleteJourney" | "copyJourney" | "publishJourney" | "listJourneyRuns" | "getJourneyStats" | "stopJourney" | "testJourney">;
|
|
14
14
|
machines: Pick<modules.machines.Client, "listMachines" | "createMachine" | "listMachineSizes" | "getMachineNetwork" | "connectGitHub" | "listInstallations" | "linkInstallation" | "shareInstallation" | "unlinkInstallation" | "listRepositories" | "getMachine" | "deleteMachine" | "updateMachine" | "listBuilds" | "deployMachine" | "listMachinePreviews" | "putMachinePreview" | "deleteMachinePreview" | "listMachineDomains" | "addMachineDomain" | "deleteMachineDomain" | "updateMachineDomain" | "getBuild" | "getBuildLog" | "rollbackMachine" | "listDatabases" | "createDatabase" | "listDatabaseSizes" | "getDatabase" | "deleteDatabase" | "updateDatabase" | "undeleteDatabase" | "purgeDatabase" | "getDatabaseCredentials" | "changeDatabasePassword" | "readMachineLogs" | "execInMachine" | "listMachineExecs" | "getMachineMetrics" | "getMachineContract" | "restoreDatabase" | "getDatabaseSchema" | "getDatabaseMetrics" | "queryDatabase" | "listCrons" | "listCronRuns" | "runCron" | "pauseCron" | "resumeCron" | "listTasks" | "enqueueTask" | "getTask" | "cancelTask" | "retryTask" | "listTaskTypes" | "makeTemplatedTestUsers" | "templateTestUser" | "deleteTemplatedTestUser" | "listSites" | "createSite" | "getSite" | "deleteSite" | "updateSite" | "listSiteReleases" | "createSiteRelease" | "uploadSiteFile" | "finishSiteRelease" | "rollbackSite" | "listSiteBuilds" | "deploySite" | "listSitePreviews" | "listSiteDomains" | "addSiteDomain" | "deleteSiteDomain" | "updateSiteDomain" | "getSiteBuild" | "authorizeSitePreview" | "authorizeMachinePreview" | "openMachinePreview" | "moveMachine" | "moveSite" | "moveDatabase" | "cancelSiteBuild" | "cancelBuild" | "listSiteHooks" | "createSiteHook" | "deleteSiteHook" | "listMachineHooks" | "createMachineHook" | "deleteMachineHook" | "detectProject" | "createPreviewPass" | "listPreviewLinks" | "createPreviewLink" | "deletePreviewLink" | "listEnvironmentDomains" | "addEnvironmentDomain" | "deleteEnvironmentDomain" | "setEnvironmentSignInDomain">;
|
|
15
15
|
messaging: Pick<modules.messaging.Client, "adminAccessLog" | "adminListConversations" | "adminCreateConversation" | "adminGetConversation" | "adminDeleteConversation" | "adminUpdateConversation" | "adminAddMembers" | "adminRemoveMember" | "adminListMessages" | "adminSendMessage" | "adminDeleteMessage" | "adminFileUrl" | "adminPutProfile" | "adminListReports" | "adminGetReport" | "adminReportFileUrl" | "adminResolveReport" | "getSettings" | "putSettings" | "rotateHookSecret">;
|
|
16
16
|
notify: Pick<modules.notify.Client, "getDeliverability" | "listDevices" | "getDeviceStats" | "deleteMyDevice" | "sendEmail" | "listInAppCampaigns" | "createInAppCampaign" | "getInAppCampaign" | "putInAppCampaign" | "deleteInAppCampaign" | "getInAppCampaignStats" | "listInAppTemplates" | "sendInbox" | "listInboxMessages" | "listNotifyMessages" | "getNotifyMessage" | "cancelMessage" | "getMetricsSummary" | "listNotifyProviders" | "putNotifyProvider" | "deleteNotifyProvider" | "sendPush" | "getNotifySettings" | "putNotifySettings" | "sendSms" | "listEmailTemplates" | "getEmailTemplate" | "putEmailTemplate" | "deleteEmailTemplate" | "listPushTemplates" | "getPushTemplate" | "putPushTemplate" | "deletePushTemplate" | "listSmsTemplates" | "getSmsTemplate" | "putSmsTemplate" | "deleteSmsTemplate" | "listWhatsAppTemplates" | "getWhatsAppTemplate" | "putWhatsAppTemplate" | "deleteWhatsAppTemplate" | "listTestUserMessages" | "listTopics" | "createTopic" | "deleteTopic" | "changeTopic" | "addTopicSubscribers" | "removeTopicSubscriber" | "listUserDevices" | "getUserPreferences" | "setUserPreferences" | "startVerification" | "checkVerification" | "getWebPushStatus" | "sendWhatsApp" | "listWhatsAppInbound">;
|
|
17
|
-
payments: Pick<modules.payments.Client, "auditCashFlow" | "auditDrift" | "auditLedger" | "exportAuditLedgerCsv" | "getCapabilities" | "listChannels" | "connectChannel" | "createChannelGrant" | "getChannel" | "deleteChannel" | "checkChannel" | "setDefaultChannel" | "listDisputes" | "lookupInstallments" | "listIntents" | "createIntent" | "getIntent" | "listIntentAttempts" | "cancelIntent" | "captureIntent" | "confirmIntent" | "submitIntentOtp" | "listRefunds" | "createRefund" | "listRoutingRules" | "replaceRoutingRules" | "getSellerAccount" | "listSellerLedger" | "getSettings" | "updateSettings" | "listPaymentSplits" | "updatePaymentSplit" | "approvePaymentSplit" | "disapprovePaymentSplit" | "refundPaymentSplit" | "createStripeAppGrant" | "listSubMerchants" | "upsertSubMerchant" | "getSubMerchant" | "createSubMerchantOnboardingLink" | "syncSubMerchant" | "listSubscriptions" | "createSubscription" | "cancelSubscription" | "extendSubscription" | "listWallets" | "upsertWallet" | "chargeWallet" | "creditWallet" | "getCustomerWallets" | "freezeWallet" | "createWalletHold" | "commitWalletHold" | "releaseWalletHold" | "voidPendingWalletCredits" | "transferWallet">;
|
|
17
|
+
payments: Pick<modules.payments.Client, "auditCashFlow" | "auditDrift" | "auditLedger" | "exportAuditLedgerCsv" | "getCapabilities" | "listChannels" | "connectChannel" | "createChannelGrant" | "getChannel" | "deleteChannel" | "checkChannel" | "setDefaultChannel" | "listDisputes" | "lookupInstallments" | "listIntents" | "createIntent" | "getIntent" | "listIntentAttempts" | "cancelIntent" | "settlePendingRefund" | "captureIntent" | "confirmIntent" | "submitIntentOtp" | "listRefunds" | "createRefund" | "listRoutingRules" | "replaceRoutingRules" | "getSellerAccount" | "listSellerLedger" | "getSettings" | "updateSettings" | "listPaymentSplits" | "updatePaymentSplit" | "approvePaymentSplit" | "disapprovePaymentSplit" | "refundPaymentSplit" | "createStripeAppGrant" | "listSubMerchants" | "upsertSubMerchant" | "getSubMerchant" | "createSubMerchantOnboardingLink" | "syncSubMerchant" | "listSubscriptions" | "createSubscription" | "cancelSubscription" | "extendSubscription" | "listWallets" | "upsertWallet" | "chargeWallet" | "creditWallet" | "getCustomerWallets" | "freezeWallet" | "createWalletHold" | "commitWalletHold" | "releaseWalletHold" | "voidPendingWalletCredits" | "transferWallet">;
|
|
18
18
|
realtime: Pick<modules.realtime.Client, "broadcast" | "getChannels" | "putChannels" | "getLimits" | "putLimits" | "revalidate" | "writeState" | "getStats">;
|
|
19
19
|
secrets: Pick<modules.secrets.Client, "listSecretAudit" | "listFieldKeys" | "getFieldKeys" | "openFields" | "sealPlaceholder" | "rotateFieldKeys" | "listTransitKeys" | "getTransitKeys" | "getTransitPublicKeys" | "rotateTransitKeys" | "retireTransitKey" | "listSecrets" | "getEnvironmentValues" | "getSecret" | "putSecret" | "deleteSecret" | "rollbackSecret" | "listSecretVersions">;
|
|
20
20
|
storage: Pick<modules.storage.Client, "listBuckets" | "getBucket" | "putBucket" | "deleteBucket" | "copyObject" | "moveObject" | "listObjects" | "getObject" | "putObject" | "deleteObject" | "headObject" | "createSignedUrl" | "createUploadUrl" | "getStorageStats">;
|
|
@@ -1404,7 +1404,6 @@ export declare function client(t: Transport): {
|
|
|
1404
1404
|
held: boolean;
|
|
1405
1405
|
}) | null;
|
|
1406
1406
|
paying: boolean;
|
|
1407
|
-
enforced: boolean;
|
|
1408
1407
|
account: ({
|
|
1409
1408
|
stripe_mode: "live" | "test";
|
|
1410
1409
|
payment_method: string | null;
|
|
@@ -1429,7 +1428,7 @@ export declare function client(t: Transport): {
|
|
|
1429
1428
|
name: string;
|
|
1430
1429
|
plan: "free" | "pay_as_you_go";
|
|
1431
1430
|
paid: boolean;
|
|
1432
|
-
exempt
|
|
1431
|
+
exempt: boolean;
|
|
1433
1432
|
at_limit: boolean;
|
|
1434
1433
|
gone: boolean;
|
|
1435
1434
|
monthly_limit_micros?: number | null;
|
|
@@ -1676,7 +1675,6 @@ export declare function client(t: Transport): {
|
|
|
1676
1675
|
held: boolean;
|
|
1677
1676
|
}) | null;
|
|
1678
1677
|
paying: boolean;
|
|
1679
|
-
enforced: boolean;
|
|
1680
1678
|
account: ({
|
|
1681
1679
|
stripe_mode: "live" | "test";
|
|
1682
1680
|
payment_method: string | null;
|
|
@@ -1701,7 +1699,7 @@ export declare function client(t: Transport): {
|
|
|
1701
1699
|
name: string;
|
|
1702
1700
|
plan: "free" | "pay_as_you_go";
|
|
1703
1701
|
paid: boolean;
|
|
1704
|
-
exempt
|
|
1702
|
+
exempt: boolean;
|
|
1705
1703
|
at_limit: boolean;
|
|
1706
1704
|
gone: boolean;
|
|
1707
1705
|
monthly_limit_micros?: number | null;
|
|
@@ -1817,7 +1815,7 @@ export declare function client(t: Transport): {
|
|
|
1817
1815
|
name: string;
|
|
1818
1816
|
plan: "free" | "pay_as_you_go";
|
|
1819
1817
|
paid: boolean;
|
|
1820
|
-
exempt
|
|
1818
|
+
exempt: boolean;
|
|
1821
1819
|
at_limit: boolean;
|
|
1822
1820
|
gone: boolean;
|
|
1823
1821
|
monthly_limit_micros?: number | null;
|
|
@@ -1863,7 +1861,7 @@ export declare function client(t: Transport): {
|
|
|
1863
1861
|
name: string;
|
|
1864
1862
|
plan: "free" | "pay_as_you_go";
|
|
1865
1863
|
paid: boolean;
|
|
1866
|
-
exempt
|
|
1864
|
+
exempt: boolean;
|
|
1867
1865
|
at_limit: boolean;
|
|
1868
1866
|
gone: boolean;
|
|
1869
1867
|
monthly_limit_micros?: number | null;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type * as modules from './modules/index.js';
|
|
2
|
+
type Module = ReturnType<typeof modules.ai.client>;
|
|
3
|
+
/** A coding CLI found on a machine (Claude Code, Codex, Gemini CLI), as its agent last reported it: never its sign-in. */
|
|
4
|
+
export interface MachineHarness {
|
|
5
|
+
name: 'claude-code' | 'codex' | 'gemini-cli' | (string & {});
|
|
6
|
+
acpVersion?: string;
|
|
7
|
+
cliVersion?: string;
|
|
8
|
+
status: 'ready' | 'unauthenticated' | 'not_installed' | (string & {});
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Where a machine enrols, said with its key as it is minted: `palbase-agent enroll --url <url>`, with `--server-name
|
|
12
|
+
* <serverName>` when the door's certificate names another host, and `--ca-file <file>` holding caCertificate when the
|
|
13
|
+
* door's certificate is not publicly trusted.
|
|
14
|
+
*/
|
|
15
|
+
export interface MachineKeyEnroll {
|
|
16
|
+
url: string;
|
|
17
|
+
serverName?: string;
|
|
18
|
+
/** The CA the door's certificate is signed by (PEM): saved to a file, palbase-agent enroll --ca-file. */
|
|
19
|
+
caCertificate?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A key that enrols one machine, ever, as its owner's: said once — here, never again. Saved to a file on the machine
|
|
23
|
+
* and given to its agent: `palbase-agent enroll --key-file <file> --url <enroll.url> --server-name <enroll.serverName>
|
|
24
|
+
* --ca-file <file holding enroll.caCertificate> --state-dir <dir> --embedded` — never on a command line, where any
|
|
25
|
+
* process of the machine reads it. Unused for 15 minutes, it enrols nothing.
|
|
26
|
+
*/
|
|
27
|
+
export interface MachineKey {
|
|
28
|
+
id: string;
|
|
29
|
+
/** The key itself. */
|
|
30
|
+
key: string;
|
|
31
|
+
/** The user the machine it enrols will belong to. */
|
|
32
|
+
owner: string;
|
|
33
|
+
/** The pool it joins: the one the platform keeps for people's machines of its operating system and architecture. */
|
|
34
|
+
poolId: string;
|
|
35
|
+
label?: string;
|
|
36
|
+
createdAt?: string;
|
|
37
|
+
enroll: MachineKeyEnroll;
|
|
38
|
+
}
|
|
39
|
+
/** A machine of the project's: one a person enrolled is theirs (owner); one the project's server enrolled into a pool is the project's (owner null). */
|
|
40
|
+
export interface Machine {
|
|
41
|
+
/** Its id: what a chat's target names it by (compute machine), cordoned, resumed and deleted by it. */
|
|
42
|
+
id: string;
|
|
43
|
+
/** The name it gave itself as it enrolled: its host name. */
|
|
44
|
+
name: string;
|
|
45
|
+
/** The user it belongs to; null: one of the project's. */
|
|
46
|
+
owner: string | null;
|
|
47
|
+
/** The pool it enrolled into. */
|
|
48
|
+
poolId?: string;
|
|
49
|
+
os?: string;
|
|
50
|
+
arch?: string;
|
|
51
|
+
/** online: heard from in the last 90 seconds, it takes work; cordoned: it takes no new work; offline: not heard from. */
|
|
52
|
+
state: 'online' | 'offline' | 'cordoned' | (string & {});
|
|
53
|
+
/** When its agent was last heard from, and when it enrolled; null: not said. */
|
|
54
|
+
lastSeenAt: string | null;
|
|
55
|
+
registeredAt: string | null;
|
|
56
|
+
/** The coding CLIs found on it and whether each is signed in. */
|
|
57
|
+
harnesses?: MachineHarness[];
|
|
58
|
+
}
|
|
59
|
+
/** A person's machines, from the project's server (the secret key) or from their own app (their session). */
|
|
60
|
+
export interface Machines {
|
|
61
|
+
readonly keys: {
|
|
62
|
+
/**
|
|
63
|
+
* Mints a key that enrols one machine as its owner's, said once (MachineKey: into a file on the machine, never on
|
|
64
|
+
* a command line). From the user's app it is their own — owner left out, or their own id (anyone else's: 400
|
|
65
|
+
* invalid_request) — and only while the project lets its users enrol machines (settings userMachines; 403
|
|
66
|
+
* user_machines_disabled); the project's server names the user (owner), whatever the setting says. A user who
|
|
67
|
+
* holds as many machines as the project allows (settings userMachineLimit, a key still waiting counted as one):
|
|
68
|
+
* 409 machine_limit_reached. Unused for 15 minutes, the key enrols nothing.
|
|
69
|
+
*/
|
|
70
|
+
create(key: {
|
|
71
|
+
os: 'macos' | 'linux';
|
|
72
|
+
arch: 'arm64' | 'amd64';
|
|
73
|
+
owner?: string;
|
|
74
|
+
label?: string;
|
|
75
|
+
signal?: AbortSignal;
|
|
76
|
+
}): Promise<MachineKey>;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* A user's machines, the one enrolled first first: from their app their own (owner left out, or their own id); the
|
|
80
|
+
* project's server names the user (owner). Someone else's machine is never in it.
|
|
81
|
+
*/
|
|
82
|
+
list(options?: {
|
|
83
|
+
owner?: string;
|
|
84
|
+
signal?: AbortSignal;
|
|
85
|
+
}): Promise<Machine[]>;
|
|
86
|
+
/** One machine: the project's server reads any of the project's; the user's app reads its own — any other is not there for it (404 not_found). */
|
|
87
|
+
get(id: string, options?: {
|
|
88
|
+
signal?: AbortSignal;
|
|
89
|
+
}): Promise<Machine>;
|
|
90
|
+
/** It takes no new session; the sessions it holds go on. From the user's app, their own machine alone (any other: 404 not_found). */
|
|
91
|
+
cordon(id: string, options?: {
|
|
92
|
+
signal?: AbortSignal;
|
|
93
|
+
}): Promise<void>;
|
|
94
|
+
/** A cordoned machine takes sessions again. From the user's app, their own machine alone (any other: 404 not_found). */
|
|
95
|
+
resume(id: string, options?: {
|
|
96
|
+
signal?: AbortSignal;
|
|
97
|
+
}): Promise<void>;
|
|
98
|
+
/**
|
|
99
|
+
* The machine leaves, its palbase-agent refused from then. Without now, only a cordoned machine that holds no session
|
|
100
|
+
* (409 machine_not_cordoned, machine_busy); now: true deletes it whatever it does — what runs on it is cut, a turn
|
|
101
|
+
* running there fails (machine_removed), and a chat that targets it reads machineStatus removed until it is handed
|
|
102
|
+
* elsewhere. From the user's app, their own machine alone (any other: 404 not_found).
|
|
103
|
+
*/
|
|
104
|
+
delete(id: string, options?: {
|
|
105
|
+
now?: boolean;
|
|
106
|
+
signal?: AbortSignal;
|
|
107
|
+
}): Promise<void>;
|
|
108
|
+
}
|
|
109
|
+
export declare function harnessOf(h: modules.ai.MachineHarness): MachineHarness;
|
|
110
|
+
export declare function enrollOf(e: modules.ai.PoolKeyEnroll): MachineKeyEnroll;
|
|
111
|
+
export declare function machineOf(m: modules.ai.Machine): Machine;
|
|
112
|
+
export declare function machineKeyOf(k: modules.ai.MachineKey): MachineKey;
|
|
113
|
+
/** Whether two lists say the same machines: every field, in the same order. */
|
|
114
|
+
export declare function sameMachines(a: readonly Machine[], b: readonly Machine[]): boolean;
|
|
115
|
+
/**
|
|
116
|
+
* The calls over the ai module's client. `server`: the project's server, which names the user whose machines it lists
|
|
117
|
+
* and mints for (owner required); otherwise the signed-in user's app, whose own they are (owner optional).
|
|
118
|
+
*/
|
|
119
|
+
export declare function machinesOf(module: Module, who: 'server' | 'user', machineRule?: string): Machines;
|
|
120
|
+
export {};
|
|
@@ -26,6 +26,8 @@ export interface Publication {
|
|
|
26
26
|
/** A member's (or the server's) message, as the agent got it. */
|
|
27
27
|
export interface MessageEvent {
|
|
28
28
|
type: 'message';
|
|
29
|
+
/** When it happened, as the journal took it (RFC 3339, UTC, to the microsecond; a voice's end: when its record says it ended) — absent for an answer's text read ahead of the journal, and from a module before it said. */
|
|
30
|
+
at?: string;
|
|
29
31
|
/** The journal's sequence. */
|
|
30
32
|
seq: number;
|
|
31
33
|
message: ChatMessage;
|
|
@@ -33,6 +35,8 @@ export interface MessageEvent {
|
|
|
33
35
|
/** A turn's state: started, waiting (and why), or ended. */
|
|
34
36
|
export interface TurnEvent {
|
|
35
37
|
type: 'turn';
|
|
38
|
+
/** When it happened, as the journal took it (RFC 3339, UTC, to the microsecond; a voice's end: when its record says it ended) — absent for an answer's text read ahead of the journal, and from a module before it said. */
|
|
39
|
+
at?: string;
|
|
36
40
|
seq: number;
|
|
37
41
|
response_id: string;
|
|
38
42
|
/** The member who started it; null: the project's server's turn, or one the engine started from late messages. */
|
|
@@ -75,6 +79,8 @@ export interface TurnEvent {
|
|
|
75
79
|
/** The agent's answer as it is written: new text only, at its byte offset. */
|
|
76
80
|
export interface TextEvent {
|
|
77
81
|
type: 'text';
|
|
82
|
+
/** When it happened, as the journal took it (RFC 3339, UTC, to the microsecond; a voice's end: when its record says it ended) — absent for an answer's text read ahead of the journal, and from a module before it said. */
|
|
83
|
+
at?: string;
|
|
78
84
|
response_id: string;
|
|
79
85
|
/** Where the text goes, in bytes of the answer (UTF-8). */
|
|
80
86
|
offset: number;
|
|
@@ -83,6 +89,8 @@ export interface TextEvent {
|
|
|
83
89
|
/** Discard the answer past offset (bytes): the model went back. */
|
|
84
90
|
export interface ResetEvent {
|
|
85
91
|
type: 'reset';
|
|
92
|
+
/** When it happened, as the journal took it (RFC 3339, UTC, to the microsecond; a voice's end: when its record says it ended) — absent for an answer's text read ahead of the journal, and from a module before it said. */
|
|
93
|
+
at?: string;
|
|
86
94
|
response_id: string;
|
|
87
95
|
offset: number;
|
|
88
96
|
}
|
|
@@ -92,6 +100,8 @@ export interface ResetEvent {
|
|
|
92
100
|
*/
|
|
93
101
|
export interface ThinkingEvent {
|
|
94
102
|
type: 'thinking';
|
|
103
|
+
/** When it happened, as the journal took it (RFC 3339, UTC, to the microsecond; a voice's end: when its record says it ended) — absent for an answer's text read ahead of the journal, and from a module before it said. */
|
|
104
|
+
at?: string;
|
|
95
105
|
seq: number;
|
|
96
106
|
response_id: string;
|
|
97
107
|
run_id: string;
|
|
@@ -110,6 +120,8 @@ export type GoalKind = 'set' | 'updated' | 'turn_started' | 'judged' | 'verified
|
|
|
110
120
|
/** A word of the chat's goal: set, changed, a turn of it begun, a turn judged, a claimed completion checked, its status, cleared. */
|
|
111
121
|
export interface GoalEvent {
|
|
112
122
|
type: 'goal';
|
|
123
|
+
/** When it happened, as the journal took it (RFC 3339, UTC, to the microsecond; a voice's end: when its record says it ended) — absent for an answer's text read ahead of the journal, and from a module before it said. */
|
|
124
|
+
at?: string;
|
|
113
125
|
/** The journal's sequence. */
|
|
114
126
|
seq: number;
|
|
115
127
|
goal_id: string;
|
|
@@ -175,6 +187,8 @@ export interface HistoryEvent {
|
|
|
175
187
|
/** A tool call, each time its state changes. */
|
|
176
188
|
export interface ToolEvent {
|
|
177
189
|
type: 'tool';
|
|
190
|
+
/** When it happened, as the journal took it (RFC 3339, UTC, to the microsecond; a voice's end: when its record says it ended) — absent for an answer's text read ahead of the journal, and from a module before it said. */
|
|
191
|
+
at?: string;
|
|
178
192
|
seq: number;
|
|
179
193
|
response_id: string;
|
|
180
194
|
/** The subagent's run that made it; absent or null: the agent's own. */
|
|
@@ -208,6 +222,8 @@ export interface ToolEvent {
|
|
|
208
222
|
/** A subagent at work — or one the agent asked for and was refused (status denied, with its reason). */
|
|
209
223
|
export interface AgentEvent {
|
|
210
224
|
type: 'agent';
|
|
225
|
+
/** When it happened, as the journal took it (RFC 3339, UTC, to the microsecond; a voice's end: when its record says it ended) — absent for an answer's text read ahead of the journal, and from a module before it said. */
|
|
226
|
+
at?: string;
|
|
211
227
|
seq: number;
|
|
212
228
|
/** The subagent's run; '' for a refused one, which never ran. */
|
|
213
229
|
run_id: string;
|
|
@@ -226,6 +242,8 @@ export interface AgentEvent {
|
|
|
226
242
|
/** The chat's live voice began, or ended: whose it is, what becomes of what is asked of it, how long it lasted, why it ended. */
|
|
227
243
|
export interface VoiceEvent {
|
|
228
244
|
type: 'voice';
|
|
245
|
+
/** When it happened, as the journal took it (RFC 3339, UTC, to the microsecond; a voice's end: when its record says it ended) — absent for an answer's text read ahead of the journal, and from a module before it said. */
|
|
246
|
+
at?: string;
|
|
229
247
|
/** The journal's sequence of its start; 0 for its end, told from the module's record under the voice's id. */
|
|
230
248
|
seq: number;
|
|
231
249
|
voice_id: string;
|
|
@@ -241,6 +259,8 @@ export interface VoiceEvent {
|
|
|
241
259
|
/** A line said in the chat's voice — the person's (user) or the voice's (assistant): a message of kind voice of its history. */
|
|
242
260
|
export interface TranscriptEvent {
|
|
243
261
|
type: 'transcript';
|
|
262
|
+
/** When it happened, as the journal took it (RFC 3339, UTC, to the microsecond; a voice's end: when its record says it ended) — absent for an answer's text read ahead of the journal, and from a module before it said. */
|
|
263
|
+
at?: string;
|
|
244
264
|
seq: number;
|
|
245
265
|
/** The line's id: its message's in the chat's history. */
|
|
246
266
|
id: string;
|
|
@@ -256,6 +276,8 @@ export interface TranscriptEvent {
|
|
|
256
276
|
/** A session teleported to a new compute or executor target: generation advanced atomically. */
|
|
257
277
|
export interface SessionHandedOffEvent {
|
|
258
278
|
type: 'session.handed_off';
|
|
279
|
+
/** When it happened, as the journal took it (RFC 3339, UTC, to the microsecond; a voice's end: when its record says it ended) — absent for an answer's text read ahead of the journal, and from a module before it said. */
|
|
280
|
+
at?: string;
|
|
259
281
|
seq: number;
|
|
260
282
|
chat_id: string;
|
|
261
283
|
generation: number;
|
|
@@ -267,15 +289,19 @@ export interface SessionHandedOffEvent {
|
|
|
267
289
|
/** A target machine went online, offline, or waking — with failover_at when auto-failover is counting down. */
|
|
268
290
|
export interface SessionMachineStatusEvent {
|
|
269
291
|
type: 'session.machine_status';
|
|
292
|
+
/** When it happened, as the journal took it (RFC 3339, UTC, to the microsecond; a voice's end: when its record says it ended) — absent for an answer's text read ahead of the journal, and from a module before it said. */
|
|
293
|
+
at?: string;
|
|
270
294
|
seq: number;
|
|
271
295
|
chat_id: string;
|
|
272
296
|
machine_id: string;
|
|
273
|
-
status: 'online' | 'offline' | 'waking' | (string & {});
|
|
297
|
+
status: 'online' | 'offline' | 'cordoned' | 'waking' | 'removed' | (string & {});
|
|
274
298
|
failover_at?: string | null;
|
|
275
299
|
}
|
|
276
300
|
/** Tier 1 compaction offloaded a bulky tool output to workspace/artifact storage and replaced it with a compact stub. */
|
|
277
301
|
export interface ContextOffloadedEvent {
|
|
278
302
|
type: 'context.offloaded';
|
|
303
|
+
/** When it happened, as the journal took it (RFC 3339, UTC, to the microsecond; a voice's end: when its record says it ended) — absent for an answer's text read ahead of the journal, and from a module before it said. */
|
|
304
|
+
at?: string;
|
|
279
305
|
seq: number;
|
|
280
306
|
call_id: string;
|
|
281
307
|
storage?: string;
|
|
@@ -286,6 +312,8 @@ export interface ContextOffloadedEvent {
|
|
|
286
312
|
/** Tier 3 compaction anchored earlier history into a structured summary while preserving project directives and attachments. */
|
|
287
313
|
export interface ContextCompactedEvent {
|
|
288
314
|
type: 'context.compacted';
|
|
315
|
+
/** When it happened, as the journal took it (RFC 3339, UTC, to the microsecond; a voice's end: when its record says it ended) — absent for an answer's text read ahead of the journal, and from a module before it said. */
|
|
316
|
+
at?: string;
|
|
289
317
|
seq: number;
|
|
290
318
|
format?: string;
|
|
291
319
|
messages_compacted?: number;
|