palbase 0.76.0 → 0.77.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai/index.js +2 -2
- package/dist/ai-sdk/index.js +2 -2
- package/dist/backend/engine.js +2 -2
- package/dist/backend/env.js +1 -1
- package/dist/backend/index.js +3 -3
- package/dist/backend/stack.js +1 -1
- package/dist/backend/test.js +2 -2
- package/dist/chunks/{A3I7H7QN.js → 34HGL5FX.js} +1 -1
- package/dist/chunks/{ALT62XIG.js → 4M4GEXJS.js} +2 -2
- package/dist/chunks/{2NEPN2ZZ.js → 6WCN7VAZ.js} +2 -2
- package/dist/chunks/{ZCMCYI2D.js → 7RTPVUIH.js} +2 -2
- package/dist/chunks/{5RNXCTOO.js → AUOFL6RB.js} +2 -2
- package/dist/chunks/{KEGVHELA.js → BDHVYVWT.js} +1 -1
- package/dist/chunks/CYNLRAAW.js +2 -0
- package/dist/chunks/{5YJZAPY2.js → DENZSXKJ.js} +2 -2
- package/dist/chunks/ES24JS2D.js +2 -0
- package/dist/chunks/{Q4UWBIJ6.js → F6OGRDZB.js} +2 -2
- package/dist/chunks/{D6NOE76D.js → FE7ZBADH.js} +1 -1
- package/dist/chunks/{SVWF7ABJ.js → FN5763FR.js} +2 -2
- package/dist/chunks/{DKYFIOWM.js → G3PH5T6N.js} +1 -1
- package/dist/chunks/{ISMWEEGW.js → GFBWGJW3.js} +1 -1
- package/dist/chunks/{EXLA3A7O.js → IZVBCAKH.js} +2 -2
- package/dist/chunks/{TGQGGUE6.js → JOVXELK5.js} +2 -2
- package/dist/chunks/KLK7HZZ7.js +18 -0
- package/dist/chunks/{MKVIRNSJ.js → ONLXIZ6E.js} +2 -2
- package/dist/chunks/{BRDO3ZPT.js → QWXF6KWI.js} +1 -1
- package/dist/chunks/{UHN63FGH.js → RQJ4MX2H.js} +2 -2
- package/dist/chunks/{PGQNRJ2C.js → RRS7TQKX.js} +2 -2
- package/dist/chunks/{33XOVYAU.js → U4VX7NKX.js} +4 -4
- package/dist/chunks/{UOW74IHY.js → VOLGPAPR.js} +2 -2
- package/dist/chunks/{3CN6HGTW.js → WXT24CE5.js} +1 -1
- package/dist/chunks/{TUK6NH2Q.js → ZZNNCI6A.js} +2 -2
- package/dist/cli.js +241 -187
- package/dist/cloud/index.js +2 -2
- package/dist/refuse/ai-sdk.js +1 -1
- package/dist/refuse/ai.js +1 -1
- package/dist/refuse/backend.js +1 -1
- package/dist/refuse/cloud.js +1 -1
- package/dist/refuse/server.js +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/testing.js +2 -2
- package/dist/web/index.js +2 -2
- package/dist/web/message.js +2 -2
- package/dist/web/palbe.js +2 -2
- package/dist/web/payments-ui.js +2 -2
- package/dist/web/paywall.js +2 -2
- package/dist/web/push-sw.js +1 -1
- package/dist/web/ssr.js +2 -2
- package/dist/web/vite.js +2 -2
- package/package.json +2 -2
- package/types/ai/src/ai.d.ts +6 -2
- package/types/ai/src/chats.d.ts +22 -10
- package/types/ai/src/index.d.ts +2 -2
- package/types/ai/src/pools.d.ts +15 -24
- package/types/cloud/src/generated/project.d.ts +3 -3
- package/types/cloud/src/generated/studio.d.ts +4 -6
- package/types/internal/src/ai-machines.d.ts +120 -0
- package/types/internal/src/chat.d.ts +1 -1
- package/types/internal/src/modules/ai.d.ts +186 -77
- package/types/internal/src/modules/analytics.d.ts +5 -1
- package/types/internal/src/modules/auth.d.ts +3 -28
- package/types/internal/src/modules/commerce.d.ts +92 -13
- package/types/internal/src/modules/events.d.ts +2 -2
- package/types/internal/src/modules/iap.d.ts +2 -2
- package/types/internal/src/modules/journeys.d.ts +2 -2
- package/types/internal/src/modules/machines.d.ts +33 -33
- package/types/internal/src/modules/notify.d.ts +2 -2
- package/types/internal/src/modules/payments.d.ts +83 -14
- package/types/internal/src/modules/stores.d.ts +3 -3
- package/types/internal/src/modules/workspaces.d.ts +5 -5
- package/types/web/src/ai-machines.d.ts +76 -0
- package/types/web/src/chat.d.ts +1 -1
- package/types/web/src/index.d.ts +2 -0
- package/types/web/src/templates.d.ts +8 -0
- package/dist/chunks/3VGWTVKI.js +0 -2
- 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;
|
|
@@ -937,6 +947,8 @@ export interface Settings {
|
|
|
937
947
|
openSecretsForAppUsers?: boolean;
|
|
938
948
|
allowClientHandoff?: boolean;
|
|
939
949
|
autoPipeChats?: boolean;
|
|
950
|
+
userMachines?: boolean;
|
|
951
|
+
userMachineLimit?: number;
|
|
940
952
|
}): Promise<AISettings>;
|
|
941
953
|
}
|
|
942
954
|
/**
|
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 {};
|
|
@@ -270,7 +270,7 @@ export interface SessionMachineStatusEvent {
|
|
|
270
270
|
seq: number;
|
|
271
271
|
chat_id: string;
|
|
272
272
|
machine_id: string;
|
|
273
|
-
status: 'online' | 'offline' | 'waking' | (string & {});
|
|
273
|
+
status: 'online' | 'offline' | 'cordoned' | 'waking' | 'removed' | (string & {});
|
|
274
274
|
failover_at?: string | null;
|
|
275
275
|
}
|
|
276
276
|
/** Tier 1 compaction offloaded a bulky tool output to workspace/artifact storage and replaced it with a compact stub. */
|