@agentrix/shared 2.8.2 → 2.12.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/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { P as PreviewMetadata } from './errors-VhyN-E3X.cjs';
3
- export { A as ActiveAgent, a as ActiveAgentSchema, b as AgentConfig, c as AgentConfigValidationError, d as AgentContext, e as AgentError, f as AgentLoadError, g as AgentMetadata, h as AgentMetadataSchema, i as AgentNotFoundError, j as AgentrixContext, k as ApiServerAliveEventData, l as ApiServerAliveEventSchema, m as AppAliveEventData, n as AppAliveEventSchema, o as ApprovePrRequest, p as ApprovePrRequestSchema, q as ApprovePrResponse, r as ApprovePrResponseSchema, s as ArchiveTaskRequest, t as ArchiveTaskRequestSchema, u as ArchiveTaskResponse, v as ArchiveTaskResponseSchema, w as AskUserMessage, x as AskUserMessageSchema, y as AskUserOption, z as AskUserOptionSchema, B as AskUserQuestion, C as AskUserQuestionSchema, D as AskUserResponseMessage, E as AskUserResponseMessageSchema, F as AskUserResponseReason, G as AskUserResponseReasonSchema, H as AskUserResponseStatus, I as AskUserResponseStatusSchema, J as AssociateRepoEventData, K as AssociateRepoEventDataSchema, L as CancelTaskEventData, M as CancelTaskRequest, N as CancelTaskRequestSchema, O as CancelTaskResponse, Q as CancelTaskResponseSchema, R as ChangeTaskTitleEventData, S as ChangeTaskTitleEventSchema, T as ChatWorkersStatusRequestEventData, U as ChatWorkersStatusRequestSchema, V as ChatWorkersStatusResponseEventData, W as ChatWorkersStatusResponseSchema, X as ClaudeAgentConfig, Y as ClaudeConfigSchema, Z as CompanionHeartbeatMessage, _ as CompanionHeartbeatRequestData, $ as CompanionHeartbeatRequestSchema, a0 as CompanionHeartbeatResponseData, a1 as CompanionHeartbeatResponseSchema, a2 as CompanionInitRequestData, a3 as CompanionInitRequestSchema, a4 as CompanionInitResponseData, a5 as CompanionInitResponseSchema, a6 as CompanionReminderMessage, a7 as CreateMergeRequestRequest, a8 as CreateMergeRequestResponse, a9 as CreateMergeRequestResponseSchema, aa as CreateMergeRequestSchema, ab as CreateTaskEventData, ac as CreateTaskShareRequest, ad as CreateTaskShareResponse, ae as CreateTaskShareResponseSchema, af as CreateTaskShareSchema, ag as CreditExhaustedEventData, ah as CreditExhaustedEventSchema, ai as DaemonGitlabOperation, aj as DaemonGitlabOperationSchema, ak as DaemonGitlabRequestEventData, al as DaemonGitlabRequestSchema, am as DaemonGitlabResponseEventData, an as DaemonGitlabResponseSchema, ao as DeployAgentCompleteEventData, ap as DeployAgentCompleteEventSchema, aq as DeployAgentEventData, ar as DeployAgentEventSchema, as as EnsureIssueRootTaskRequest, at as EnsureIssueRootTaskRequestSchema, au as EnsureIssueRootTaskResponse, av as EnsureIssueRootTaskResponseSchema, aw as EventAckData, ax as EventAckSchema, ay as EventData, az as EventMap, aA as EventName, aB as EventSchemaMap, aC as FRAMEWORK_TYPES, aD as FillEventsRequest, aE as FillEventsRequestSchema, aF as FillEventsResponse, aG as FindTaskByAgentRequest, aH as FindTaskByAgentRequestSchema, aI as FindTaskByAgentResponse, aJ as FindTaskByAgentResponseSchema, aK as FrameworkNotSupportedError, aL as FrameworkType, aM as GetTaskSessionResponse, aN as GetTaskSessionResponseSchema, aO as HookFactory, aP as ListRecentTasksRequest, aQ as ListRecentTasksRequestSchema, aR as ListRecentTasksResponse, aS as ListRecentTasksResponseSchema, aT as ListSubTasksRequest, aU as ListSubTasksRequestSchema, aV as ListSubTasksResponse, aW as ListSubTasksResponseSchema, aX as ListTasksRequest, aY as ListTasksRequestSchema, aZ as ListTasksResponse, a_ as ListTasksResponseSchema, a$ as LoadAgentOptions, b0 as MachineAliveEventData, b1 as MachineAliveEventSchema, b2 as MachineRtcRequestEventData, b3 as MachineRtcRequestSchema, b4 as MachineRtcResponseEventData, b5 as MachineRtcResponseSchema, b6 as MergePullRequestAck, b7 as MergePullRequestEventData, b8 as MergePullRequestEventSchema, b9 as MergeRequestEventData, ba as MergeRequestEventSchema, bb as MissingAgentFileError, bc as PermissionResponseRequest, bd as PermissionResponseRequestSchema, be as PermissionResponseResponse, bf as PermissionResponseResponseSchema, bg as PrStateChangedData, bh as PreviewMetadataSchema, bi as PreviewMethod, bj as PreviewMethodSchema, bk as PreviewProjectType, bl as PreviewProjectTypeSchema, bm as ProjectDirectoryResponse, bn as ProjectDirectoryResponseSchema, bo as ProjectEntry, bp as ProjectEntrySchema, bq as QueryEventsRequest, br as QueryEventsRequestSchema, bs as QueryEventsResponse, bt as RecentTaskSummary, bu as RecentTaskSummarySchema, bv as RepositoryInitHookInput, bw as ResetTaskSessionEventData, bx as ResetTaskSessionSchema, by as ResumeTaskEventData, bz as ResumeTaskRequest, bA as ResumeTaskRequestSchema, bB as ResumeTaskResponse, bC as ResumeTaskResponseSchema, bD as RpcCallEventData, bE as RpcCallEventSchema, bF as RpcResponseData, bG as RpcResponseSchema, bH as RtcIceServer, bI as RtcIceServerSchema, bJ as RtcIceServersRequestEventData, bK as RtcIceServersRequestSchema, bL as RtcIceServersResponseEventData, bM as RtcIceServersResponseSchema, bN as RtcSignalEventData, bO as RtcSignalSchema, bP as SendMessageTarget, bQ as SendTaskMessageRequest, bR as SendTaskMessageRequestSchema, bS as SendTaskMessageResponse, bT as SendTaskMessageResponseSchema, bU as SeqSyncRequestEventData, bV as SeqSyncRequestEventDataSchema, bW as SeqSyncResponseEventData, bX as SeqSyncResponseEventDataSchema, bY as ShowModalEventData, bZ as ShowModalEventDataSchema, b_ as ShowModalRequest, b$ as ShowModalRequestSchema, c0 as ShowModalResponse, c1 as ShowModalResponseSchema, c2 as ShutdownMachineData, c3 as ShutdownMachineSchema, c4 as StartTaskRequest, c5 as StartTaskRequestSchema, c6 as StartTaskResponse, c7 as StartTaskResponseSchema, c8 as StopTaskEventData, c9 as StopTaskRequest, ca as StopTaskRequestSchema, cb as StopTaskResponse, cc as StopTaskResponseSchema, cd as StopTaskSchema, ce as SubTaskAskUserMessage, cf as SubTaskResultUpdatedEventData, cg as SubTaskResultUpdatedEventSchema, ch as SubTaskSummary, ci as SubTaskSummarySchema, cj as SystemMessageEventData, ck as SystemMessageSchema, cl as SystemMessageType, cm as TaskAgentInfo, cn as TaskAgentInfoSchema, co as TaskArtifactsStats, cp as TaskArtifactsStatsSchema, cq as TaskArtifactsSummary, cr as TaskArtifactsSummarySchema, cs as TaskEvent, ct as TaskInfoUpdateEventData, cu as TaskInfoUpdateEventDataSchema, cv as TaskItem, cw as TaskItemSchema, cx as TaskMessageEventData, cy as TaskMessagePayload, cz as TaskMessageSchema, cA as TaskSlashCommand, cB as TaskSlashCommandSchema, cC as TaskSlashCommandsUpdateEventData, cD as TaskSlashCommandsUpdateEventDataSchema, cE as TaskState, cF as TaskStateChangeEventData, cG as TaskStateChangeEventSchema, cH as TaskStoppedEventData, cI as TaskStoppedEventSchema, cJ as TaskTodo, cK as TaskTodoSchema, cL as UnarchiveTaskRequest, cM as UnarchiveTaskRequestSchema, cN as UnarchiveTaskResponse, cO as UnarchiveTaskResponseSchema, cP as UpdateAgentInfoEventData, cQ as UpdateAgentInfoEventSchema, cR as UpdateTaskAgentSessionIdEventData, cS as UpdateTaskAgentSessionIdEventSchema, cT as UpdateTaskTitleRequest, cU as UpdateTaskTitleRequestSchema, cV as UpdateTaskTitleResponse, cW as UpdateTaskTitleResponseSchema, cX as ValidationResult, cY as WorkerAliveEventData, cZ as WorkerAliveEventSchema, c_ as WorkerExitEventData, c$ as WorkerExitSchema, d0 as WorkerInitializedEventData, d1 as WorkerInitializedSchema, d2 as WorkerInitializingEventData, d3 as WorkerInitializingSchema, d4 as WorkerPermissionModeEventData, d5 as WorkerPermissionModeSchema, d6 as WorkerPermissionModeValue, d7 as WorkerPermissionModeValueSchema, d8 as WorkerReadyEventData, d9 as WorkerReadySchema, da as WorkerRunningEventData, db as WorkerRunningSchema, dc as WorkerStatusRequestEventData, dd as WorkerStatusRequestSchema, de as WorkerStatusSnapshot, df as WorkerStatusSnapshotSchema, dg as WorkerStatusValue, dh as WorkerStatusValueSchema, di as WorkerTaskEvent, dj as WorkspaceFileRequestEventData, dk as WorkspaceFileRequestSchema, dl as WorkspaceFileResponseEventData, dm as WorkspaceFileResponseSchema, dn as baseTaskSchema, dp as cancelTaskRequestSchema, dq as cancelTaskSchema, dr as createEventId, ds as createMergeRequestSchema, dt as createTaskSchema, du as getAgentContext, dv as isAskUserMessage, dw as isAskUserResponseMessage, dx as isCompanionHeartbeatMessage, dy as isCompanionReminderMessage, dz as isSDKMessage, dA as isSDKUserMessage, dB as isSubTaskAskUserMessage, dC as permissionResponseRequestSchema, dD as resumeTaskRequestSchema, dE as resumeTaskSchema, dF as setAgentContext, dG as startTaskSchema, dH as stopTaskRequestSchema, dI as workerTaskEvents } from './errors-VhyN-E3X.cjs';
2
+ import { P as PreviewMetadata } from './errors-B6LhjViV.cjs';
3
+ export { bx as ActiveAgent, bw as ActiveAgentSchema, dA as AgentConfig, dK as AgentConfigValidationError, dt as AgentContext, dI as AgentError, dM as AgentLoadError, dy as AgentMetadata, dG as AgentMetadataSchema, dJ as AgentNotFoundError, du as AgentrixContext, bj as ApiServerAliveEventData, bi as ApiServerAliveEventSchema, bh as AppAliveEventData, bg as AppAliveEventSchema, a6 as ApprovePrRequest, a5 as ApprovePrRequestSchema, a8 as ApprovePrResponse, a7 as ApprovePrResponseSchema, ae as ArchiveTaskRequest, ad as ArchiveTaskRequestSchema, ag as ArchiveTaskResponse, af as ArchiveTaskResponseSchema, aV as AskUserMessage, aU as AskUserMessageSchema, aR as AskUserOption, aQ as AskUserOptionSchema, aT as AskUserQuestion, aS as AskUserQuestionSchema, a$ as AskUserResponseMessage, a_ as AskUserResponseMessageSchema, aZ as AskUserResponseReason, aX as AskUserResponseReasonSchema, aY as AskUserResponseStatus, aW as AskUserResponseStatusSchema, cV as AssociateRepoEventData, cS as AssociateRepoEventDataSchema, bW as CancelTaskEventData, t as CancelTaskRequest, C as CancelTaskRequestSchema, x as CancelTaskResponse, v as CancelTaskResponseSchema, cc as ChangeTaskTitleEventData, cb as ChangeTaskTitleEventSchema, bN as ChatWorkersStatusRequestEventData, bM as ChatWorkersStatusRequestSchema, bP as ChatWorkersStatusResponseEventData, bO as ChatWorkersStatusResponseSchema, dz as ClaudeAgentConfig, dH as ClaudeConfigSchema, b0 as CompanionHeartbeatMessage, d5 as CompanionHeartbeatRequestData, d4 as CompanionHeartbeatRequestSchema, d7 as CompanionHeartbeatResponseData, d6 as CompanionHeartbeatResponseSchema, d9 as CompanionInitRequestData, d8 as CompanionInitRequestSchema, db as CompanionInitResponseData, da as CompanionInitResponseSchema, b1 as CompanionReminderMessage, a1 as CreateMergeRequestRequest, a4 as CreateMergeRequestResponse, a3 as CreateMergeRequestResponseSchema, a0 as CreateMergeRequestSchema, bS as CreateTaskEventData, aa as CreateTaskShareRequest, ac as CreateTaskShareResponse, ab as CreateTaskShareResponseSchema, a9 as CreateTaskShareSchema, cg as CreditExhaustedEventData, cf as CreditExhaustedEventSchema, D as DEFAULT_WORKER_EXECUTION_MODE, c$ as DaemonGitlabOperation, c_ as DaemonGitlabOperationSchema, d1 as DaemonGitlabRequestEventData, d0 as DaemonGitlabRequestSchema, d3 as DaemonGitlabResponseEventData, d2 as DaemonGitlabResponseSchema, cR as DeployAgentCompleteEventData, cQ as DeployAgentCompleteEventSchema, cP as DeployAgentEventData, cO as DeployAgentEventSchema, f as EnsureIssueRootTaskRequest, E as EnsureIssueRootTaskRequestSchema, j as EnsureIssueRootTaskResponse, i as EnsureIssueRootTaskResponseSchema, bf as EventAckData, be as EventAckSchema, de as EventData, dj as EventMap, dk as EventName, dl as EventSchemaMap, dF as FRAMEWORK_TYPES, _ as FillEventsRequest, Z as FillEventsRequestSchema, $ as FillEventsResponse, aN as FindTaskByAgentRequest, aM as FindTaskByAgentRequestSchema, aP as FindTaskByAgentResponse, aO as FindTaskByAgentResponseSchema, dL as FrameworkNotSupportedError, dx as FrameworkType, az as GetTaskSessionResponse, ay as GetTaskSessionResponseSchema, dE as HookFactory, aH as ListRecentTasksRequest, aG as ListRecentTasksRequestSchema, aL as ListRecentTasksResponse, aK as ListRecentTasksResponseSchema, aB as ListSubTasksRequest, aA as ListSubTasksRequestSchema, aF as ListSubTasksResponse, aE as ListSubTasksResponseSchema, k as ListTasksRequest, L as ListTasksRequestSchema, m as ListTasksResponse, l as ListTasksResponseSchema, dC as LoadAgentOptions, bl as MachineAliveEventData, bk as MachineAliveEventSchema, co as MachineRtcRequestEventData, cn as MachineRtcRequestSchema, cq as MachineRtcResponseEventData, cp as MachineRtcResponseSchema, cN as MergePullRequestAck, cM as MergePullRequestEventData, cL as MergePullRequestEventSchema, cG as MergeRequestEventData, cF as MergeRequestEventSchema, dN as MissingAgentFileError, H as PermissionResponseRequest, G as PermissionResponseRequestSchema, K as PermissionResponseResponse, J as PermissionResponseResponseSchema, cX as PrStateChangedData, c3 as PreviewMetadataSchema, c2 as PreviewMethod, c1 as PreviewMethodSchema, c0 as PreviewProjectType, b$ as PreviewProjectTypeSchema, Q as ProjectDirectoryResponse, O as ProjectDirectoryResponseSchema, N as ProjectEntry, M as ProjectEntrySchema, V as QueryEventsRequest, U as QueryEventsRequestSchema, Y as QueryEventsResponse, aJ as RecentTaskSummary, aI as RecentTaskSummarySchema, dD as RepositoryInitHookInput, dd as ResetTaskSessionEventData, dc as ResetTaskSessionSchema, bU as ResumeTaskEventData, o as ResumeTaskRequest, R as ResumeTaskRequestSchema, q as ResumeTaskResponse, p as ResumeTaskResponseSchema, dq as RpcCallEventData, dp as RpcCallEventSchema, ds as RpcResponseData, dr as RpcResponseSchema, ci as RtcIceServer, ch as RtcIceServerSchema, ck as RtcIceServersRequestEventData, cj as RtcIceServersRequestSchema, cm as RtcIceServersResponseEventData, cl as RtcIceServersResponseSchema, cs as RtcSignalEventData, cr as RtcSignalSchema, ap as SendMessageTarget, ar as SendTaskMessageRequest, aq as SendTaskMessageRequestSchema, at as SendTaskMessageResponse, as as SendTaskMessageResponseSchema, dg as SeqSyncRequestEventData, df as SeqSyncRequestEventDataSchema, di as SeqSyncResponseEventData, dh as SeqSyncResponseEventDataSchema, ca as ShowModalEventData, c9 as ShowModalEventDataSchema, av as ShowModalRequest, au as ShowModalRequestSchema, ax as ShowModalResponse, aw as ShowModalResponseSchema, bn as ShutdownMachineData, bm as ShutdownMachineSchema, c as StartTaskRequest, S as StartTaskRequestSchema, e as StartTaskResponse, d as StartTaskResponseSchema, bY as StopTaskEventData, z as StopTaskRequest, y as StopTaskRequestSchema, F as StopTaskResponse, B as StopTaskResponseSchema, bX as StopTaskSchema, b2 as SubTaskAskUserMessage, cK as SubTaskResultUpdatedEventData, cJ as SubTaskResultUpdatedEventSchema, aD as SubTaskSummary, aC as SubTaskSummarySchema, cZ as SystemMessageEventData, cY as SystemMessageSchema, cW as SystemMessageType, b5 as TaskAgentInfo, b4 as TaskAgentInfoSchema, b_ as TaskArtifactsStats, bZ as TaskArtifactsStatsSchema, c5 as TaskArtifactsSummary, c4 as TaskArtifactsSummarySchema, X as TaskEvent, cA as TaskInfoUpdateEventData, cz as TaskInfoUpdateEventDataSchema, h as TaskItem, g as TaskItemSchema, c7 as TaskMessageEventData, b3 as TaskMessagePayload, c6 as TaskMessageSchema, cC as TaskSlashCommand, cB as TaskSlashCommandSchema, cE as TaskSlashCommandsUpdateEventData, cD as TaskSlashCommandsUpdateEventDataSchema, c8 as TaskState, ce as TaskStateChangeEventData, cd as TaskStateChangeEventSchema, cI as TaskStoppedEventData, cH as TaskStoppedEventSchema, b as TaskTodo, T as TaskTodoSchema, ai as UnarchiveTaskRequest, ah as UnarchiveTaskRequestSchema, ak as UnarchiveTaskResponse, aj as UnarchiveTaskResponseSchema, cU as UpdateAgentInfoEventData, cT as UpdateAgentInfoEventSchema, cy as UpdateTaskAgentSessionIdEventData, cx as UpdateTaskAgentSessionIdEventSchema, am as UpdateTaskTitleRequest, al as UpdateTaskTitleRequestSchema, ao as UpdateTaskTitleResponse, an as UpdateTaskTitleResponseSchema, dB as ValidationResult, bz as WorkerAliveEventData, by as WorkerAliveEventSchema, W as WorkerExecutionMode, a as WorkerExecutionModeSchema, bB as WorkerExitEventData, bA as WorkerExitSchema, br as WorkerInitializedEventData, bq as WorkerInitializedSchema, bp as WorkerInitializingEventData, bo as WorkerInitializingSchema, bF as WorkerPermissionModeEventData, bE as WorkerPermissionModeSchema, bt as WorkerPermissionModeValue, bs as WorkerPermissionModeValueSchema, bv as WorkerReadyEventData, bu as WorkerReadySchema, bD as WorkerRunningEventData, bC as WorkerRunningSchema, bH as WorkerStatusRequestEventData, bG as WorkerStatusRequestSchema, bL as WorkerStatusSnapshot, bK as WorkerStatusSnapshotSchema, bJ as WorkerStatusValue, bI as WorkerStatusValueSchema, dm as WorkerTaskEvent, cu as WorkspaceFileRequestEventData, ct as WorkspaceFileRequestSchema, cw as WorkspaceFileResponseEventData, cv as WorkspaceFileResponseSchema, bQ as baseTaskSchema, u as cancelTaskRequestSchema, bV as cancelTaskSchema, bd as createEventId, a2 as createMergeRequestSchema, bR as createTaskSchema, dw as getAgentContext, b6 as isAskUserMessage, b7 as isAskUserResponseMessage, b8 as isCompanionHeartbeatMessage, b9 as isCompanionReminderMessage, bb as isSDKMessage, bc as isSDKUserMessage, ba as isSubTaskAskUserMessage, n as normalizeWorkerExecutionMode, I as permissionResponseRequestSchema, r as resumeTaskRequestSchema, bT as resumeTaskSchema, dv as setAgentContext, s as startTaskSchema, A as stopTaskRequestSchema, w as workerExecutionModes, dn as workerTaskEvents } from './errors-B6LhjViV.cjs';
4
4
  import tweetnacl from 'tweetnacl';
5
5
  import { SDKMessage } from '@anthropic-ai/claude-agent-sdk';
6
6
 
@@ -158,10 +158,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
158
158
  type UserProfileResponse = z.infer<typeof UserProfileResponseSchema>;
159
159
  /**
160
160
  * PATCH /v1/auth/me - Request schema
161
- * Update current user profile (nickname/avatar)
161
+ * Update current user profile (nickname/email/avatar)
162
162
  */
163
163
  declare const UpdateUserProfileRequestSchema: z.ZodObject<{
164
164
  username: z.ZodOptional<z.ZodString>;
165
+ email: z.ZodOptional<z.ZodString>;
165
166
  avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
166
167
  }, z.core.$strip>;
167
168
  type UpdateUserProfileRequest = z.infer<typeof UpdateUserProfileRequestSchema>;
@@ -331,8 +332,8 @@ type MachineApprovalStatusQuery = z.infer<typeof MachineApprovalStatusQuerySchem
331
332
  */
332
333
  declare const ApprovalStatusResponseSchema: z.ZodObject<{
333
334
  status: z.ZodEnum<{
334
- pending: "pending";
335
335
  approved: "approved";
336
+ pending: "pending";
336
337
  }>;
337
338
  }, z.core.$strip>;
338
339
  type ApprovalStatusResponse = z.infer<typeof ApprovalStatusResponseSchema>;
@@ -716,6 +717,10 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
716
717
  repositoryId: z.ZodNullable<z.ZodString>;
717
718
  baseBranch: z.ZodNullable<z.ZodString>;
718
719
  branchName: z.ZodNullable<z.ZodString>;
720
+ workerExecutionMode: z.ZodEnum<{
721
+ loop: "loop";
722
+ oneshot: "oneshot";
723
+ }>;
719
724
  title: z.ZodNullable<z.ZodString>;
720
725
  customTitle: z.ZodNullable<z.ZodString>;
721
726
  agentSessionId: z.ZodNullable<z.ZodString>;
@@ -1353,8 +1358,8 @@ type CreateDraftAgentRequest = z.infer<typeof CreateDraftAgentRequestSchema>;
1353
1358
  declare const SetEnvironmentVariablesRequestSchema: z.ZodObject<{
1354
1359
  ownerType: z.ZodEnum<{
1355
1360
  agent: "agent";
1356
- "draft-agent": "draft-agent";
1357
1361
  machine: "machine";
1362
+ "draft-agent": "draft-agent";
1358
1363
  cloud: "cloud";
1359
1364
  }>;
1360
1365
  ownerId: z.ZodString;
@@ -1719,6 +1724,24 @@ declare const CloudSchema: z.ZodObject<{
1719
1724
  public: "public";
1720
1725
  private: "private";
1721
1726
  }>;
1727
+ status: z.ZodEnum<{
1728
+ active: "active";
1729
+ suspended: "suspended";
1730
+ }>;
1731
+ role: z.ZodOptional<z.ZodEnum<{
1732
+ owner: "owner";
1733
+ member: "member";
1734
+ }>>;
1735
+ userStatus: z.ZodOptional<z.ZodEnum<{
1736
+ active: "active";
1737
+ pending: "pending";
1738
+ revoked: "revoked";
1739
+ }>>;
1740
+ maxMachineCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1741
+ maxMemberCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1742
+ machineCount: z.ZodOptional<z.ZodNumber>;
1743
+ onlineMachineCount: z.ZodOptional<z.ZodNumber>;
1744
+ memberCount: z.ZodOptional<z.ZodNumber>;
1722
1745
  createdAt: z.ZodString;
1723
1746
  updatedAt: z.ZodString;
1724
1747
  machines: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1744,6 +1767,24 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
1744
1767
  public: "public";
1745
1768
  private: "private";
1746
1769
  }>;
1770
+ status: z.ZodEnum<{
1771
+ active: "active";
1772
+ suspended: "suspended";
1773
+ }>;
1774
+ role: z.ZodOptional<z.ZodEnum<{
1775
+ owner: "owner";
1776
+ member: "member";
1777
+ }>>;
1778
+ userStatus: z.ZodOptional<z.ZodEnum<{
1779
+ active: "active";
1780
+ pending: "pending";
1781
+ revoked: "revoked";
1782
+ }>>;
1783
+ maxMachineCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1784
+ maxMemberCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1785
+ machineCount: z.ZodOptional<z.ZodNumber>;
1786
+ onlineMachineCount: z.ZodOptional<z.ZodNumber>;
1787
+ memberCount: z.ZodOptional<z.ZodNumber>;
1747
1788
  createdAt: z.ZodString;
1748
1789
  updatedAt: z.ZodString;
1749
1790
  machines: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2307,8 +2348,19 @@ declare const CreateCloudResponseSchema: z.ZodObject<{
2307
2348
  id: z.ZodString;
2308
2349
  owner: z.ZodString;
2309
2350
  name: z.ZodString;
2351
+ type: z.ZodEnum<{
2352
+ public: "public";
2353
+ private: "private";
2354
+ }>;
2355
+ status: z.ZodEnum<{
2356
+ active: "active";
2357
+ suspended: "suspended";
2358
+ }>;
2310
2359
  secret: z.ZodString;
2360
+ maxMachineCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2361
+ maxMemberCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2311
2362
  createdAt: z.ZodString;
2363
+ updatedAt: z.ZodString;
2312
2364
  }, z.core.$strip>;
2313
2365
  type CreateCloudResponse = z.infer<typeof CreateCloudResponseSchema>;
2314
2366
 
@@ -2519,6 +2571,12 @@ type ListOAuthServersPublicResponse = z.infer<typeof ListOAuthServersPublicRespo
2519
2571
  * Includes credits, packages, transactions, and recharge codes
2520
2572
  */
2521
2573
 
2574
+ declare const StripeCheckoutClientSchema: z.ZodEnum<{
2575
+ android: "android";
2576
+ ios: "ios";
2577
+ web: "web";
2578
+ }>;
2579
+ type StripeCheckoutClient = z.infer<typeof StripeCheckoutClientSchema>;
2522
2580
  /**
2523
2581
  * POST /v1/billing/recharge/:code - Response schema
2524
2582
  */
@@ -2528,6 +2586,27 @@ declare const RechargeResponseSchema: z.ZodObject<{
2528
2586
  newBalance: z.ZodNumber;
2529
2587
  }, z.core.$strip>;
2530
2588
  type RechargeResponse = z.infer<typeof RechargeResponseSchema>;
2589
+ /**
2590
+ * POST /v1/billing/direct-recharge/checkout - Request schema
2591
+ */
2592
+ declare const CreateDirectRechargeCheckoutRequestSchema: z.ZodObject<{
2593
+ successUrl: z.ZodString;
2594
+ cancelUrl: z.ZodString;
2595
+ amount: z.ZodNumber;
2596
+ client: z.ZodEnum<{
2597
+ android: "android";
2598
+ ios: "ios";
2599
+ web: "web";
2600
+ }>;
2601
+ }, z.core.$strip>;
2602
+ type CreateDirectRechargeCheckoutRequest = z.infer<typeof CreateDirectRechargeCheckoutRequestSchema>;
2603
+ /**
2604
+ * POST /v1/billing/direct-recharge/checkout - Response schema
2605
+ */
2606
+ declare const CreateDirectRechargeCheckoutResponseSchema: z.ZodObject<{
2607
+ url: z.ZodString;
2608
+ }, z.core.$strip>;
2609
+ type CreateDirectRechargeCheckoutResponse = z.infer<typeof CreateDirectRechargeCheckoutResponseSchema>;
2531
2610
  /**
2532
2611
  * GET /v1/billing/balance - Response schema
2533
2612
  */
@@ -2840,6 +2919,10 @@ declare const SubscriptionPlanSchema: z.ZodObject<{
2840
2919
  features: z.ZodArray<z.ZodString>;
2841
2920
  popular: z.ZodBoolean;
2842
2921
  enabled: z.ZodBoolean;
2922
+ privateCloudEnabled: z.ZodBoolean;
2923
+ maxPrivateClouds: z.ZodNumber;
2924
+ maxMachinesPerPrivateCloud: z.ZodNumber;
2925
+ maxPrivateCloudMembers: z.ZodNumber;
2843
2926
  createdAt: z.ZodString;
2844
2927
  updatedAt: z.ZodString;
2845
2928
  }, z.core.$strip>;
@@ -2870,6 +2953,10 @@ declare const SubscriptionSchema: z.ZodObject<{
2870
2953
  features: z.ZodArray<z.ZodString>;
2871
2954
  popular: z.ZodBoolean;
2872
2955
  enabled: z.ZodBoolean;
2956
+ privateCloudEnabled: z.ZodBoolean;
2957
+ maxPrivateClouds: z.ZodNumber;
2958
+ maxMachinesPerPrivateCloud: z.ZodNumber;
2959
+ maxPrivateCloudMembers: z.ZodNumber;
2873
2960
  createdAt: z.ZodString;
2874
2961
  updatedAt: z.ZodString;
2875
2962
  }, z.core.$strip>>>;
@@ -2902,6 +2989,10 @@ declare const GetSubscriptionResponseSchema: z.ZodObject<{
2902
2989
  features: z.ZodArray<z.ZodString>;
2903
2990
  popular: z.ZodBoolean;
2904
2991
  enabled: z.ZodBoolean;
2992
+ privateCloudEnabled: z.ZodBoolean;
2993
+ maxPrivateClouds: z.ZodNumber;
2994
+ maxMachinesPerPrivateCloud: z.ZodNumber;
2995
+ maxPrivateCloudMembers: z.ZodNumber;
2905
2996
  createdAt: z.ZodString;
2906
2997
  updatedAt: z.ZodString;
2907
2998
  }, z.core.$strip>>>;
@@ -2915,6 +3006,11 @@ declare const CreateCheckoutRequestSchema: z.ZodObject<{
2915
3006
  priceId: z.ZodString;
2916
3007
  successUrl: z.ZodString;
2917
3008
  cancelUrl: z.ZodString;
3009
+ client: z.ZodEnum<{
3010
+ android: "android";
3011
+ ios: "ios";
3012
+ web: "web";
3013
+ }>;
2918
3014
  }, z.core.$strip>;
2919
3015
  type CreateCheckoutRequest = z.infer<typeof CreateCheckoutRequestSchema>;
2920
3016
  /**
@@ -3003,6 +3099,10 @@ declare const CreateSubscriptionPlanRequestSchema: z.ZodObject<{
3003
3099
  credits: z.ZodNumber;
3004
3100
  features: z.ZodArray<z.ZodString>;
3005
3101
  popular: z.ZodOptional<z.ZodBoolean>;
3102
+ privateCloudEnabled: z.ZodOptional<z.ZodBoolean>;
3103
+ maxPrivateClouds: z.ZodOptional<z.ZodNumber>;
3104
+ maxMachinesPerPrivateCloud: z.ZodOptional<z.ZodNumber>;
3105
+ maxPrivateCloudMembers: z.ZodOptional<z.ZodNumber>;
3006
3106
  }, z.core.$strip>;
3007
3107
  type CreateSubscriptionPlanRequest = z.infer<typeof CreateSubscriptionPlanRequestSchema>;
3008
3108
  /**
@@ -3013,6 +3113,10 @@ declare const UpdateSubscriptionPlanRequestSchema: z.ZodObject<{
3013
3113
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
3014
3114
  popular: z.ZodOptional<z.ZodBoolean>;
3015
3115
  enabled: z.ZodOptional<z.ZodBoolean>;
3116
+ privateCloudEnabled: z.ZodOptional<z.ZodBoolean>;
3117
+ maxPrivateClouds: z.ZodOptional<z.ZodNumber>;
3118
+ maxMachinesPerPrivateCloud: z.ZodOptional<z.ZodNumber>;
3119
+ maxPrivateCloudMembers: z.ZodOptional<z.ZodNumber>;
3016
3120
  }, z.core.$strip>;
3017
3121
  type UpdateSubscriptionPlanRequest = z.infer<typeof UpdateSubscriptionPlanRequestSchema>;
3018
3122
  /**
@@ -3029,12 +3133,295 @@ declare const ListSubscriptionPlansResponseSchema: z.ZodObject<{
3029
3133
  features: z.ZodArray<z.ZodString>;
3030
3134
  popular: z.ZodBoolean;
3031
3135
  enabled: z.ZodBoolean;
3136
+ privateCloudEnabled: z.ZodBoolean;
3137
+ maxPrivateClouds: z.ZodNumber;
3138
+ maxMachinesPerPrivateCloud: z.ZodNumber;
3139
+ maxPrivateCloudMembers: z.ZodNumber;
3032
3140
  createdAt: z.ZodString;
3033
3141
  updatedAt: z.ZodString;
3034
3142
  }, z.core.$strip>>;
3035
3143
  }, z.core.$strip>;
3036
3144
  type ListSubscriptionPlansResponse = z.infer<typeof ListSubscriptionPlansResponseSchema>;
3037
3145
 
3146
+ declare const PrivateCloudEntitlementSchema: z.ZodObject<{
3147
+ enabled: z.ZodBoolean;
3148
+ maxPrivateClouds: z.ZodNumber;
3149
+ maxMachinesPerPrivateCloud: z.ZodNumber;
3150
+ maxPrivateCloudMembers: z.ZodNumber;
3151
+ currentPrivateCloudCount: z.ZodNumber;
3152
+ }, z.core.$strip>;
3153
+ type PrivateCloudEntitlement = z.infer<typeof PrivateCloudEntitlementSchema>;
3154
+ declare const PrivateCloudSummarySchema: z.ZodObject<{
3155
+ id: z.ZodString;
3156
+ owner: z.ZodString;
3157
+ name: z.ZodString;
3158
+ type: z.ZodEnum<{
3159
+ public: "public";
3160
+ private: "private";
3161
+ }>;
3162
+ status: z.ZodEnum<{
3163
+ active: "active";
3164
+ suspended: "suspended";
3165
+ }>;
3166
+ role: z.ZodOptional<z.ZodEnum<{
3167
+ owner: "owner";
3168
+ member: "member";
3169
+ }>>;
3170
+ userStatus: z.ZodOptional<z.ZodEnum<{
3171
+ active: "active";
3172
+ pending: "pending";
3173
+ revoked: "revoked";
3174
+ }>>;
3175
+ maxMachineCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3176
+ maxMemberCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3177
+ machineCount: z.ZodOptional<z.ZodNumber>;
3178
+ onlineMachineCount: z.ZodOptional<z.ZodNumber>;
3179
+ memberCount: z.ZodOptional<z.ZodNumber>;
3180
+ createdAt: z.ZodString;
3181
+ updatedAt: z.ZodString;
3182
+ machines: z.ZodOptional<z.ZodArray<z.ZodObject<{
3183
+ id: z.ZodString;
3184
+ cloudId: z.ZodString;
3185
+ deviceId: z.ZodString;
3186
+ status: z.ZodString;
3187
+ metadata: z.ZodNullable<z.ZodString>;
3188
+ createdAt: z.ZodString;
3189
+ updatedAt: z.ZodString;
3190
+ }, z.core.$strip>>>;
3191
+ }, z.core.$strip>;
3192
+ type PrivateCloudSummary = z.infer<typeof PrivateCloudSummarySchema>;
3193
+ declare const ListPrivateCloudsResponseSchema: z.ZodObject<{
3194
+ clouds: z.ZodArray<z.ZodObject<{
3195
+ id: z.ZodString;
3196
+ owner: z.ZodString;
3197
+ name: z.ZodString;
3198
+ type: z.ZodEnum<{
3199
+ public: "public";
3200
+ private: "private";
3201
+ }>;
3202
+ status: z.ZodEnum<{
3203
+ active: "active";
3204
+ suspended: "suspended";
3205
+ }>;
3206
+ role: z.ZodOptional<z.ZodEnum<{
3207
+ owner: "owner";
3208
+ member: "member";
3209
+ }>>;
3210
+ userStatus: z.ZodOptional<z.ZodEnum<{
3211
+ active: "active";
3212
+ pending: "pending";
3213
+ revoked: "revoked";
3214
+ }>>;
3215
+ maxMachineCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3216
+ maxMemberCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3217
+ machineCount: z.ZodOptional<z.ZodNumber>;
3218
+ onlineMachineCount: z.ZodOptional<z.ZodNumber>;
3219
+ memberCount: z.ZodOptional<z.ZodNumber>;
3220
+ createdAt: z.ZodString;
3221
+ updatedAt: z.ZodString;
3222
+ machines: z.ZodOptional<z.ZodArray<z.ZodObject<{
3223
+ id: z.ZodString;
3224
+ cloudId: z.ZodString;
3225
+ deviceId: z.ZodString;
3226
+ status: z.ZodString;
3227
+ metadata: z.ZodNullable<z.ZodString>;
3228
+ createdAt: z.ZodString;
3229
+ updatedAt: z.ZodString;
3230
+ }, z.core.$strip>>>;
3231
+ }, z.core.$strip>>;
3232
+ entitlement: z.ZodObject<{
3233
+ enabled: z.ZodBoolean;
3234
+ maxPrivateClouds: z.ZodNumber;
3235
+ maxMachinesPerPrivateCloud: z.ZodNumber;
3236
+ maxPrivateCloudMembers: z.ZodNumber;
3237
+ currentPrivateCloudCount: z.ZodNumber;
3238
+ }, z.core.$strip>;
3239
+ }, z.core.$strip>;
3240
+ type ListPrivateCloudsResponse = z.infer<typeof ListPrivateCloudsResponseSchema>;
3241
+ declare const CreatePrivateCloudRequestSchema: z.ZodObject<{
3242
+ name: z.ZodString;
3243
+ }, z.core.$strip>;
3244
+ type CreatePrivateCloudRequest = z.infer<typeof CreatePrivateCloudRequestSchema>;
3245
+ declare const CreatePrivateCloudResponseSchema: z.ZodObject<{
3246
+ cloud: z.ZodObject<{
3247
+ id: z.ZodString;
3248
+ owner: z.ZodString;
3249
+ name: z.ZodString;
3250
+ type: z.ZodEnum<{
3251
+ public: "public";
3252
+ private: "private";
3253
+ }>;
3254
+ status: z.ZodEnum<{
3255
+ active: "active";
3256
+ suspended: "suspended";
3257
+ }>;
3258
+ role: z.ZodOptional<z.ZodEnum<{
3259
+ owner: "owner";
3260
+ member: "member";
3261
+ }>>;
3262
+ userStatus: z.ZodOptional<z.ZodEnum<{
3263
+ active: "active";
3264
+ pending: "pending";
3265
+ revoked: "revoked";
3266
+ }>>;
3267
+ maxMachineCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3268
+ maxMemberCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3269
+ machineCount: z.ZodOptional<z.ZodNumber>;
3270
+ onlineMachineCount: z.ZodOptional<z.ZodNumber>;
3271
+ memberCount: z.ZodOptional<z.ZodNumber>;
3272
+ createdAt: z.ZodString;
3273
+ updatedAt: z.ZodString;
3274
+ machines: z.ZodOptional<z.ZodArray<z.ZodObject<{
3275
+ id: z.ZodString;
3276
+ cloudId: z.ZodString;
3277
+ deviceId: z.ZodString;
3278
+ status: z.ZodString;
3279
+ metadata: z.ZodNullable<z.ZodString>;
3280
+ createdAt: z.ZodString;
3281
+ updatedAt: z.ZodString;
3282
+ }, z.core.$strip>>>;
3283
+ }, z.core.$strip>;
3284
+ secret: z.ZodString;
3285
+ }, z.core.$strip>;
3286
+ type CreatePrivateCloudResponse = z.infer<typeof CreatePrivateCloudResponseSchema>;
3287
+ declare const PrivateCloudInviteSchema: z.ZodObject<{
3288
+ id: z.ZodString;
3289
+ cloudId: z.ZodString;
3290
+ createdBy: z.ZodString;
3291
+ role: z.ZodEnum<{
3292
+ member: "member";
3293
+ }>;
3294
+ token: z.ZodString;
3295
+ expiresAt: z.ZodString;
3296
+ maxUses: z.ZodNumber;
3297
+ usedCount: z.ZodNumber;
3298
+ status: z.ZodEnum<{
3299
+ active: "active";
3300
+ revoked: "revoked";
3301
+ expired: "expired";
3302
+ consumed: "consumed";
3303
+ }>;
3304
+ createdAt: z.ZodString;
3305
+ updatedAt: z.ZodString;
3306
+ }, z.core.$strip>;
3307
+ type PrivateCloudInvite = z.infer<typeof PrivateCloudInviteSchema>;
3308
+ declare const CreatePrivateCloudInviteRequestSchema: z.ZodObject<{
3309
+ expiresInDays: z.ZodOptional<z.ZodNumber>;
3310
+ maxUses: z.ZodOptional<z.ZodNumber>;
3311
+ }, z.core.$strip>;
3312
+ type CreatePrivateCloudInviteRequest = z.infer<typeof CreatePrivateCloudInviteRequestSchema>;
3313
+ declare const CreatePrivateCloudInviteResponseSchema: z.ZodObject<{
3314
+ invite: z.ZodObject<{
3315
+ id: z.ZodString;
3316
+ cloudId: z.ZodString;
3317
+ createdBy: z.ZodString;
3318
+ role: z.ZodEnum<{
3319
+ member: "member";
3320
+ }>;
3321
+ token: z.ZodString;
3322
+ expiresAt: z.ZodString;
3323
+ maxUses: z.ZodNumber;
3324
+ usedCount: z.ZodNumber;
3325
+ status: z.ZodEnum<{
3326
+ active: "active";
3327
+ revoked: "revoked";
3328
+ expired: "expired";
3329
+ consumed: "consumed";
3330
+ }>;
3331
+ createdAt: z.ZodString;
3332
+ updatedAt: z.ZodString;
3333
+ }, z.core.$strip>;
3334
+ }, z.core.$strip>;
3335
+ type CreatePrivateCloudInviteResponse = z.infer<typeof CreatePrivateCloudInviteResponseSchema>;
3336
+ declare const AcceptPrivateCloudInviteRequestSchema: z.ZodObject<{
3337
+ token: z.ZodString;
3338
+ }, z.core.$strip>;
3339
+ type AcceptPrivateCloudInviteRequest = z.infer<typeof AcceptPrivateCloudInviteRequestSchema>;
3340
+ declare const AcceptPrivateCloudInviteResponseSchema: z.ZodObject<{
3341
+ cloud: z.ZodObject<{
3342
+ id: z.ZodString;
3343
+ owner: z.ZodString;
3344
+ name: z.ZodString;
3345
+ type: z.ZodEnum<{
3346
+ public: "public";
3347
+ private: "private";
3348
+ }>;
3349
+ status: z.ZodEnum<{
3350
+ active: "active";
3351
+ suspended: "suspended";
3352
+ }>;
3353
+ role: z.ZodOptional<z.ZodEnum<{
3354
+ owner: "owner";
3355
+ member: "member";
3356
+ }>>;
3357
+ userStatus: z.ZodOptional<z.ZodEnum<{
3358
+ active: "active";
3359
+ pending: "pending";
3360
+ revoked: "revoked";
3361
+ }>>;
3362
+ maxMachineCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3363
+ maxMemberCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3364
+ machineCount: z.ZodOptional<z.ZodNumber>;
3365
+ onlineMachineCount: z.ZodOptional<z.ZodNumber>;
3366
+ memberCount: z.ZodOptional<z.ZodNumber>;
3367
+ createdAt: z.ZodString;
3368
+ updatedAt: z.ZodString;
3369
+ machines: z.ZodOptional<z.ZodArray<z.ZodObject<{
3370
+ id: z.ZodString;
3371
+ cloudId: z.ZodString;
3372
+ deviceId: z.ZodString;
3373
+ status: z.ZodString;
3374
+ metadata: z.ZodNullable<z.ZodString>;
3375
+ createdAt: z.ZodString;
3376
+ updatedAt: z.ZodString;
3377
+ }, z.core.$strip>>>;
3378
+ }, z.core.$strip>;
3379
+ }, z.core.$strip>;
3380
+ type AcceptPrivateCloudInviteResponse = z.infer<typeof AcceptPrivateCloudInviteResponseSchema>;
3381
+ declare const PrivateCloudMemberSchema: z.ZodObject<{
3382
+ userId: z.ZodString;
3383
+ username: z.ZodNullable<z.ZodString>;
3384
+ avatar: z.ZodNullable<z.ZodString>;
3385
+ role: z.ZodEnum<{
3386
+ owner: "owner";
3387
+ member: "member";
3388
+ }>;
3389
+ status: z.ZodEnum<{
3390
+ active: "active";
3391
+ pending: "pending";
3392
+ revoked: "revoked";
3393
+ }>;
3394
+ createdAt: z.ZodString;
3395
+ }, z.core.$strip>;
3396
+ type PrivateCloudMember = z.infer<typeof PrivateCloudMemberSchema>;
3397
+ declare const ListPrivateCloudMembersResponseSchema: z.ZodObject<{
3398
+ members: z.ZodArray<z.ZodObject<{
3399
+ userId: z.ZodString;
3400
+ username: z.ZodNullable<z.ZodString>;
3401
+ avatar: z.ZodNullable<z.ZodString>;
3402
+ role: z.ZodEnum<{
3403
+ owner: "owner";
3404
+ member: "member";
3405
+ }>;
3406
+ status: z.ZodEnum<{
3407
+ active: "active";
3408
+ pending: "pending";
3409
+ revoked: "revoked";
3410
+ }>;
3411
+ createdAt: z.ZodString;
3412
+ }, z.core.$strip>>;
3413
+ }, z.core.$strip>;
3414
+ type ListPrivateCloudMembersResponse = z.infer<typeof ListPrivateCloudMembersResponseSchema>;
3415
+ declare const RemovePrivateCloudMemberResponseSchema: z.ZodObject<{
3416
+ success: z.ZodLiteral<true>;
3417
+ message: z.ZodString;
3418
+ }, z.core.$strip>;
3419
+ type RemovePrivateCloudMemberResponse = z.infer<typeof RemovePrivateCloudMemberResponseSchema>;
3420
+ declare const GetPrivateCloudRunnerSecretResponseSchema: z.ZodObject<{
3421
+ secret: z.ZodString;
3422
+ }, z.core.$strip>;
3423
+ type GetPrivateCloudRunnerSecretResponse = z.infer<typeof GetPrivateCloudRunnerSecretResponseSchema>;
3424
+
3038
3425
  /**
3039
3426
  * Contact HTTP request/response schemas
3040
3427
  * Contact management endpoints
@@ -3265,6 +3652,186 @@ declare const ResolveUserInboxItemResponseSchema: z.ZodObject<{
3265
3652
  }, z.core.$strip>;
3266
3653
  type ResolveUserInboxItemResponse = z.infer<typeof ResolveUserInboxItemResponseSchema>;
3267
3654
 
3655
+ declare const CiProviderSchema: z.ZodEnum<{
3656
+ github_actions: "github_actions";
3657
+ gitlab_ci: "gitlab_ci";
3658
+ }>;
3659
+ type CiProvider = z.infer<typeof CiProviderSchema>;
3660
+ declare const JsonSchemaDocumentSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3661
+ type JsonSchemaDocument = z.infer<typeof JsonSchemaDocumentSchema>;
3662
+ declare const CiRunStatusSchema: z.ZodEnum<{
3663
+ running: "running";
3664
+ failed: "failed";
3665
+ completed: "completed";
3666
+ queued: "queued";
3667
+ canceled: "canceled";
3668
+ timeout: "timeout";
3669
+ }>;
3670
+ type CiRunStatus = z.infer<typeof CiRunStatusSchema>;
3671
+ declare const CiRunRepoSchema: z.ZodObject<{
3672
+ gitServerId: z.ZodString;
3673
+ serverRepoId: z.ZodOptional<z.ZodString>;
3674
+ owner: z.ZodOptional<z.ZodString>;
3675
+ name: z.ZodOptional<z.ZodString>;
3676
+ }, z.core.$strip>;
3677
+ type CiRunRepo = z.infer<typeof CiRunRepoSchema>;
3678
+ declare const CiRunGitSchema: z.ZodObject<{
3679
+ ref: z.ZodOptional<z.ZodString>;
3680
+ sha: z.ZodOptional<z.ZodString>;
3681
+ baseRef: z.ZodOptional<z.ZodString>;
3682
+ headRef: z.ZodOptional<z.ZodString>;
3683
+ prNumber: z.ZodOptional<z.ZodNumber>;
3684
+ issueNumber: z.ZodOptional<z.ZodNumber>;
3685
+ }, z.core.$strip>;
3686
+ type CiRunGit = z.infer<typeof CiRunGitSchema>;
3687
+ declare const CiRunExecutionSchema: z.ZodObject<{
3688
+ capabilityProfile: z.ZodOptional<z.ZodString>;
3689
+ runnerId: z.ZodOptional<z.ZodString>;
3690
+ }, z.core.$strip>;
3691
+ type CiRunExecution = z.infer<typeof CiRunExecutionSchema>;
3692
+ declare const CiRunContextSchema: z.ZodObject<{
3693
+ ciProvider: z.ZodEnum<{
3694
+ github_actions: "github_actions";
3695
+ gitlab_ci: "gitlab_ci";
3696
+ }>;
3697
+ eventName: z.ZodOptional<z.ZodString>;
3698
+ eventAction: z.ZodOptional<z.ZodString>;
3699
+ jobUrl: z.ZodOptional<z.ZodString>;
3700
+ runUrl: z.ZodOptional<z.ZodString>;
3701
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3702
+ }, z.core.$strip>;
3703
+ type CiRunContext = z.infer<typeof CiRunContextSchema>;
3704
+ declare const CreateCiRunRequestSchema: z.ZodObject<{
3705
+ agent: z.ZodString;
3706
+ title: z.ZodOptional<z.ZodString>;
3707
+ prompt: z.ZodString;
3708
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3709
+ repo: z.ZodObject<{
3710
+ gitServerId: z.ZodString;
3711
+ serverRepoId: z.ZodOptional<z.ZodString>;
3712
+ owner: z.ZodOptional<z.ZodString>;
3713
+ name: z.ZodOptional<z.ZodString>;
3714
+ }, z.core.$strip>;
3715
+ git: z.ZodObject<{
3716
+ ref: z.ZodOptional<z.ZodString>;
3717
+ sha: z.ZodOptional<z.ZodString>;
3718
+ baseRef: z.ZodOptional<z.ZodString>;
3719
+ headRef: z.ZodOptional<z.ZodString>;
3720
+ prNumber: z.ZodOptional<z.ZodNumber>;
3721
+ issueNumber: z.ZodOptional<z.ZodNumber>;
3722
+ }, z.core.$strip>;
3723
+ execution: z.ZodObject<{
3724
+ capabilityProfile: z.ZodOptional<z.ZodString>;
3725
+ runnerId: z.ZodOptional<z.ZodString>;
3726
+ }, z.core.$strip>;
3727
+ context: z.ZodOptional<z.ZodObject<{
3728
+ ciProvider: z.ZodEnum<{
3729
+ github_actions: "github_actions";
3730
+ gitlab_ci: "gitlab_ci";
3731
+ }>;
3732
+ eventName: z.ZodOptional<z.ZodString>;
3733
+ eventAction: z.ZodOptional<z.ZodString>;
3734
+ jobUrl: z.ZodOptional<z.ZodString>;
3735
+ runUrl: z.ZodOptional<z.ZodString>;
3736
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3737
+ }, z.core.$strip>>;
3738
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3739
+ }, z.core.$strip>;
3740
+ type CreateCiRunRequest = z.infer<typeof CreateCiRunRequestSchema>;
3741
+ declare const CreateCiRunResponseSchema: z.ZodObject<{
3742
+ runId: z.ZodString;
3743
+ status: z.ZodEnum<{
3744
+ running: "running";
3745
+ failed: "failed";
3746
+ completed: "completed";
3747
+ queued: "queued";
3748
+ }>;
3749
+ detailUrl: z.ZodString;
3750
+ }, z.core.$strip>;
3751
+ type CreateCiRunResponse = z.infer<typeof CreateCiRunResponseSchema>;
3752
+ declare const CiRunStatusResponseSchema: z.ZodObject<{
3753
+ runId: z.ZodString;
3754
+ status: z.ZodEnum<{
3755
+ running: "running";
3756
+ failed: "failed";
3757
+ completed: "completed";
3758
+ queued: "queued";
3759
+ canceled: "canceled";
3760
+ timeout: "timeout";
3761
+ }>;
3762
+ result: z.ZodString;
3763
+ structuredOutput: z.ZodOptional<z.ZodUnknown>;
3764
+ detailUrl: z.ZodString;
3765
+ }, z.core.$strip>;
3766
+ type CiRunStatusResponse = z.infer<typeof CiRunStatusResponseSchema>;
3767
+ declare const CancelCiRunResponseSchema: z.ZodObject<{
3768
+ message: z.ZodString;
3769
+ runId: z.ZodString;
3770
+ }, z.core.$strip>;
3771
+ type CancelCiRunResponse = z.infer<typeof CancelCiRunResponseSchema>;
3772
+
3773
+ declare const ApiKeySchema: z.ZodObject<{
3774
+ id: z.ZodString;
3775
+ name: z.ZodString;
3776
+ keyPrefix: z.ZodString;
3777
+ enabled: z.ZodBoolean;
3778
+ quota: z.ZodNullable<z.ZodNumber>;
3779
+ lastUsedAt: z.ZodNullable<z.ZodString>;
3780
+ expiresAt: z.ZodNullable<z.ZodString>;
3781
+ createdAt: z.ZodString;
3782
+ }, z.core.$strip>;
3783
+ type ApiKey = z.infer<typeof ApiKeySchema>;
3784
+ declare const CreateApiKeyRequestSchema: z.ZodObject<{
3785
+ name: z.ZodString;
3786
+ expiresInDays: z.ZodOptional<z.ZodNumber>;
3787
+ }, z.core.$strip>;
3788
+ type CreateApiKeyRequest = z.infer<typeof CreateApiKeyRequestSchema>;
3789
+ declare const CreateApiKeyResponseSchema: z.ZodObject<{
3790
+ apiKey: z.ZodString;
3791
+ id: z.ZodString;
3792
+ name: z.ZodString;
3793
+ keyPrefix: z.ZodString;
3794
+ expiresAt: z.ZodNullable<z.ZodString>;
3795
+ createdAt: z.ZodString;
3796
+ }, z.core.$strip>;
3797
+ type CreateApiKeyResponse = z.infer<typeof CreateApiKeyResponseSchema>;
3798
+ declare const ListApiKeysQuerySchema: z.ZodObject<{
3799
+ includeDisabled: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<boolean, string | undefined>>;
3800
+ page: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<number, string | undefined>>;
3801
+ limit: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<number, string | undefined>>;
3802
+ }, z.core.$strip>;
3803
+ type ListApiKeysQuery = z.infer<typeof ListApiKeysQuerySchema>;
3804
+ declare const ListApiKeysResponseSchema: z.ZodObject<{
3805
+ items: z.ZodArray<z.ZodObject<{
3806
+ id: z.ZodString;
3807
+ name: z.ZodString;
3808
+ keyPrefix: z.ZodString;
3809
+ enabled: z.ZodBoolean;
3810
+ quota: z.ZodNullable<z.ZodNumber>;
3811
+ lastUsedAt: z.ZodNullable<z.ZodString>;
3812
+ expiresAt: z.ZodNullable<z.ZodString>;
3813
+ createdAt: z.ZodString;
3814
+ }, z.core.$strip>>;
3815
+ total: z.ZodNumber;
3816
+ page: z.ZodNumber;
3817
+ limit: z.ZodNumber;
3818
+ totalPages: z.ZodNumber;
3819
+ }, z.core.$strip>;
3820
+ type ListApiKeysResponse = z.infer<typeof ListApiKeysResponseSchema>;
3821
+ declare const UpdateApiKeyRequestSchema: z.ZodObject<{
3822
+ name: z.ZodOptional<z.ZodString>;
3823
+ expiresInDays: z.ZodOptional<z.ZodNumber>;
3824
+ }, z.core.$strip>;
3825
+ type UpdateApiKeyRequest = z.infer<typeof UpdateApiKeyRequestSchema>;
3826
+ declare const ToggleApiKeyRequestSchema: z.ZodObject<{
3827
+ enabled: z.ZodBoolean;
3828
+ }, z.core.$strip>;
3829
+ type ToggleApiKeyRequest = z.infer<typeof ToggleApiKeyRequestSchema>;
3830
+ declare const DeleteApiKeyResponseSchema: z.ZodObject<{
3831
+ success: z.ZodLiteral<true>;
3832
+ }, z.core.$strip>;
3833
+ type DeleteApiKeyResponse = z.infer<typeof DeleteApiKeyResponseSchema>;
3834
+
3268
3835
  type ClientType = 'user' | 'worker' | 'machine';
3269
3836
  interface AuthPayload {
3270
3837
  token: string;
@@ -3523,5 +4090,5 @@ declare function detectPreview(fs: FileSystemAdapter): Promise<PreviewMetadata |
3523
4090
  */
3524
4091
  declare function decodeGitPath(rawPath: string): string;
3525
4092
 
3526
- export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentCustomConfigSchema, AgentPermissionsSchema, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApprovalStatusResponseSchema, BillingStatsResponseSchema, BranchSchema, CONFIG_FILES, CancelSubscriptionResponseSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, CompanionEnsureResponseSchema, CompanionWorkspaceFileSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, ContactCandidateSchema, ContactSchema, ContactTargetTypeSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCheckoutRequestSchema, CreateCheckoutResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateContactRequestSchema, CreateContactResponseSchema, CreateDraftAgentRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreatePortalRequestSchema, CreatePortalResponseSchema, CreateSubscriptionPlanRequestSchema, CreditsBucketSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteContactResponseSchema, DeleteOAuthServerResponseSchema, DevCreateUserRequestSchema, DevCreateUserResponseSchema, DisplayConfigKeysSchema, DisplayConfigSchema, DraftAgentConfigSchema, DraftAgentSchema, ENTRY_FILE_PATTERNS, EnsureRepoChatRequestSchema, EnsureRepoChatResponseSchema, EnvironmentVariableSchema, FileItemSchema, FileStatsSchema, FileVisibilitySchema, GetAgentGitUrlResponseSchema, GetAgentResponseSchema, GetChatResponseSchema, GetEnvironmentVariablesResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetReferenceQuerySchema, GetRepositoryResponseSchema, GetSubscriptionResponseSchema, GetSubscriptionTiersResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GetUserAgentsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IGNORED_DIRECTORIES, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsQuerySchema, ListChatsResponseSchema, ListContactsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListReferencesQuerySchema, ListReferencesResponseSchema, ListRepositoriesResponseSchema, ListSubscriptionPlansResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, ListUserInboxResponseSchema, LocalMachineSchema, LogoutResponseSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MachineUnbindRequestSchema, MachineUnbindResponseSchema, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PreviewMetadata, PublishDraftAgentRequestSchema, PublishDraftAgentResponseSchema, RELEVANT_DEPENDENCIES, RTC_CHUNK_HEADER_SIZE, RechargeResponseSchema, RegisterCompanionRequestSchema, RegisterCompanionResponseSchema, RemoveChatMemberRequestSchema, RepositoryActorIdentitySchema, RepositoryReferenceCommentSchema, RepositoryReferenceCommentsResponseSchema, RepositoryReferenceDiffSchema, RepositoryReferenceKindSchema, RepositoryReferenceListItemSchema, RepositoryReferenceSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResolveUserInboxItemResponseSchema, RtcChunkFlags, STATIC_FILE_EXTENSIONS, SearchContactCandidatesQuerySchema, SearchContactCandidatesResponseSchema, SenderTypeSchema, SetEnvironmentVariablesRequestSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, SimpleSuccessSchema, StatsQuerySchema, SubscriptionPlanSchema, SubscriptionSchema, SubscriptionTierSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineModelsRequestSchema, SyncMachineModelsResponseSchema, SyncMachineRequestSchema, TaskSharePermissionsSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateDraftAgentRequestSchema, UpdateDraftAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateSecretRequestSchema, UpdateSecretResponseSchema, UpdateSubscriptionPlanRequestSchema, UpdateSubscriptionRequestSchema, UpdateSubscriptionResponseSchema, UpdateUserProfileRequestSchema, UpdateUserProfileResponseSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserInboxItemSchema, UserInboxStatusSchema, UserInboxSubjectTypeSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, ValidateMachineResponseSchema, buildRtcChunkFrame, createKeyPair, createKeyPairWithUit8Array, createTaskEncryptionPayload, decodeBase64, decodeGitPath, decodeRtcChunkHeader, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, detectPreview, encodeBase64, encodeBase64Url, encodeRtcChunkHeader, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getRandomBytes, machineAuth, splitRtcChunkFrame, userAuth, workerAuth };
3527
- export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentCustomConfig, AgentPermissions, AgentType, ApiError, ApprovalStatusResponse, AuthPayload, BillingStatsResponse, Branch, CancelSubscriptionResponse, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, CompanionEnsureResponse, CompanionWorkspaceFile, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, Contact, ContactCandidate, ContactTargetType, CreateAgentRequest, CreateAgentResponse, CreateChatRequest, CreateChatResponse, CreateCheckoutRequest, CreateCheckoutResponse, CreateCloudRequest, CreateCloudResponse, CreateContactRequest, CreateContactResponse, CreateDraftAgentRequest, CreateOAuthServerRequest, CreateOAuthServerResponse, CreatePortalRequest, CreatePortalResponse, CreateSubscriptionPlanRequest, CreditsBucket, CreditsPackage, DeleteAgentResponse, DeleteContactResponse, DeleteOAuthServerResponse, DevCreateUserRequest, DevCreateUserResponse, DisplayConfig, DisplayConfigKeys, DraftAgent, DraftAgentConfig, EnsureRepoChatRequest, EnsureRepoChatResponse, EnvironmentVariable, FileItem, FileStats, FileSystemAdapter, FileVisibility, GetAgentGitUrlResponse, GetAgentResponse, GetChatResponse, GetEnvironmentVariablesResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetReferenceQuery, GetRepositoryResponse, GetSubscriptionResponse, GetSubscriptionTiersResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GetUserAgentsResponse, GitHubIssue, GitHubIssueListItem, GitServer, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsQuery, ListChatsResponse, ListContactsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListReferencesQuery, ListReferencesResponse, ListRepositoriesResponse, ListSubscriptionPlansResponse, ListTransactionsQuery, ListTransactionsResponse, ListUserInboxResponse, LocalMachine, LogoutResponse, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MachineUnbindRequest, MachineUnbindResponse, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PublishDraftAgentRequest, PublishDraftAgentResponse, RechargeResponse, RegisterCompanionRequest, RegisterCompanionResponse, RemoveChatMemberRequest, Repository, RepositoryActorIdentity, RepositoryReference, RepositoryReferenceComment, RepositoryReferenceCommentsResponse, RepositoryReferenceDiff, RepositoryReferenceKind, RepositoryReferenceListItem, ResetSecretRequest, ResetSecretResponse, ResolveUserInboxItemResponse, RtcChunkFrame, RtcChunkHeader, RtcControlChannel, RtcControlMessage, SearchContactCandidatesQuery, SearchContactCandidatesResponse, SenderType, SetEnvironmentVariablesRequest, ShareAuthQuery, ShareAuthResponse, SimpleSuccess, StatsQuery, Subscription, SubscriptionPlan, SubscriptionTier, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineModelsRequest, SyncMachineModelsResponse, SyncMachineRequest, TaskEncryptionPayload, TaskSharePermissions, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UpdateAgentRequest, UpdateAgentResponse, UpdateDraftAgentRequest, UpdateDraftAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateSecretRequest, UpdateSecretResponse, UpdateSubscriptionPlanRequest, UpdateSubscriptionRequest, UpdateSubscriptionResponse, UpdateUserProfileRequest, UpdateUserProfileResponse, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserInboxItem, UserInboxStatus, UserInboxSubjectType, UserProfileResponse, UserWithOAuthAccounts, ValidateMachineResponse };
4093
+ export { AcceptPrivateCloudInviteRequestSchema, AcceptPrivateCloudInviteResponseSchema, AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentCustomConfigSchema, AgentPermissionsSchema, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiKeySchema, ApprovalStatusResponseSchema, BillingStatsResponseSchema, BranchSchema, CONFIG_FILES, CancelCiRunResponseSchema, CancelSubscriptionResponseSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, CiProviderSchema, CiRunContextSchema, CiRunExecutionSchema, CiRunGitSchema, CiRunRepoSchema, CiRunStatusResponseSchema, CiRunStatusSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, CompanionEnsureResponseSchema, CompanionWorkspaceFileSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, ContactCandidateSchema, ContactSchema, ContactTargetTypeSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateApiKeyRequestSchema, CreateApiKeyResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCheckoutRequestSchema, CreateCheckoutResponseSchema, CreateCiRunRequestSchema, CreateCiRunResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateContactRequestSchema, CreateContactResponseSchema, CreateDirectRechargeCheckoutRequestSchema, CreateDirectRechargeCheckoutResponseSchema, CreateDraftAgentRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreatePortalRequestSchema, CreatePortalResponseSchema, CreatePrivateCloudInviteRequestSchema, CreatePrivateCloudInviteResponseSchema, CreatePrivateCloudRequestSchema, CreatePrivateCloudResponseSchema, CreateSubscriptionPlanRequestSchema, CreditsBucketSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteApiKeyResponseSchema, DeleteContactResponseSchema, DeleteOAuthServerResponseSchema, DevCreateUserRequestSchema, DevCreateUserResponseSchema, DisplayConfigKeysSchema, DisplayConfigSchema, DraftAgentConfigSchema, DraftAgentSchema, ENTRY_FILE_PATTERNS, EnsureRepoChatRequestSchema, EnsureRepoChatResponseSchema, EnvironmentVariableSchema, FileItemSchema, FileStatsSchema, FileVisibilitySchema, GetAgentGitUrlResponseSchema, GetAgentResponseSchema, GetChatResponseSchema, GetEnvironmentVariablesResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetPrivateCloudRunnerSecretResponseSchema, GetReferenceQuerySchema, GetRepositoryResponseSchema, GetSubscriptionResponseSchema, GetSubscriptionTiersResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GetUserAgentsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IGNORED_DIRECTORIES, IdSchema, JsonSchemaDocumentSchema, ListAgentsResponseSchema, ListApiKeysQuerySchema, ListApiKeysResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsQuerySchema, ListChatsResponseSchema, ListContactsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListPrivateCloudMembersResponseSchema, ListPrivateCloudsResponseSchema, ListReferencesQuerySchema, ListReferencesResponseSchema, ListRepositoriesResponseSchema, ListSubscriptionPlansResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, ListUserInboxResponseSchema, LocalMachineSchema, LogoutResponseSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MachineUnbindRequestSchema, MachineUnbindResponseSchema, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PreviewMetadata, PrivateCloudEntitlementSchema, PrivateCloudInviteSchema, PrivateCloudMemberSchema, PrivateCloudSummarySchema, PublishDraftAgentRequestSchema, PublishDraftAgentResponseSchema, RELEVANT_DEPENDENCIES, RTC_CHUNK_HEADER_SIZE, RechargeResponseSchema, RegisterCompanionRequestSchema, RegisterCompanionResponseSchema, RemoveChatMemberRequestSchema, RemovePrivateCloudMemberResponseSchema, RepositoryActorIdentitySchema, RepositoryReferenceCommentSchema, RepositoryReferenceCommentsResponseSchema, RepositoryReferenceDiffSchema, RepositoryReferenceKindSchema, RepositoryReferenceListItemSchema, RepositoryReferenceSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResolveUserInboxItemResponseSchema, RtcChunkFlags, STATIC_FILE_EXTENSIONS, SearchContactCandidatesQuerySchema, SearchContactCandidatesResponseSchema, SenderTypeSchema, SetEnvironmentVariablesRequestSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, SimpleSuccessSchema, StatsQuerySchema, StripeCheckoutClientSchema, SubscriptionPlanSchema, SubscriptionSchema, SubscriptionTierSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineModelsRequestSchema, SyncMachineModelsResponseSchema, SyncMachineRequestSchema, TaskSharePermissionsSchema, TaskTransactionsResponseSchema, ToggleApiKeyRequestSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateApiKeyRequestSchema, UpdateDraftAgentRequestSchema, UpdateDraftAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateSecretRequestSchema, UpdateSecretResponseSchema, UpdateSubscriptionPlanRequestSchema, UpdateSubscriptionRequestSchema, UpdateSubscriptionResponseSchema, UpdateUserProfileRequestSchema, UpdateUserProfileResponseSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserInboxItemSchema, UserInboxStatusSchema, UserInboxSubjectTypeSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, ValidateMachineResponseSchema, buildRtcChunkFrame, createKeyPair, createKeyPairWithUit8Array, createTaskEncryptionPayload, decodeBase64, decodeGitPath, decodeRtcChunkHeader, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, detectPreview, encodeBase64, encodeBase64Url, encodeRtcChunkHeader, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getRandomBytes, machineAuth, splitRtcChunkFrame, userAuth, workerAuth };
4094
+ export type { AcceptPrivateCloudInviteRequest, AcceptPrivateCloudInviteResponse, AddChatMemberRequest, AddChatMemberResponse, Agent, AgentCustomConfig, AgentPermissions, AgentType, ApiError, ApiKey, ApprovalStatusResponse, AuthPayload, BillingStatsResponse, Branch, CancelCiRunResponse, CancelSubscriptionResponse, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, CiProvider, CiRunContext, CiRunExecution, CiRunGit, CiRunRepo, CiRunStatus, CiRunStatusResponse, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, CompanionEnsureResponse, CompanionWorkspaceFile, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, Contact, ContactCandidate, ContactTargetType, CreateAgentRequest, CreateAgentResponse, CreateApiKeyRequest, CreateApiKeyResponse, CreateChatRequest, CreateChatResponse, CreateCheckoutRequest, CreateCheckoutResponse, CreateCiRunRequest, CreateCiRunResponse, CreateCloudRequest, CreateCloudResponse, CreateContactRequest, CreateContactResponse, CreateDirectRechargeCheckoutRequest, CreateDirectRechargeCheckoutResponse, CreateDraftAgentRequest, CreateOAuthServerRequest, CreateOAuthServerResponse, CreatePortalRequest, CreatePortalResponse, CreatePrivateCloudInviteRequest, CreatePrivateCloudInviteResponse, CreatePrivateCloudRequest, CreatePrivateCloudResponse, CreateSubscriptionPlanRequest, CreditsBucket, CreditsPackage, DeleteAgentResponse, DeleteApiKeyResponse, DeleteContactResponse, DeleteOAuthServerResponse, DevCreateUserRequest, DevCreateUserResponse, DisplayConfig, DisplayConfigKeys, DraftAgent, DraftAgentConfig, EnsureRepoChatRequest, EnsureRepoChatResponse, EnvironmentVariable, FileItem, FileStats, FileSystemAdapter, FileVisibility, GetAgentGitUrlResponse, GetAgentResponse, GetChatResponse, GetEnvironmentVariablesResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetPrivateCloudRunnerSecretResponse, GetReferenceQuery, GetRepositoryResponse, GetSubscriptionResponse, GetSubscriptionTiersResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GetUserAgentsResponse, GitHubIssue, GitHubIssueListItem, GitServer, JsonSchemaDocument, ListAgentsResponse, ListApiKeysQuery, ListApiKeysResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsQuery, ListChatsResponse, ListContactsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListPrivateCloudMembersResponse, ListPrivateCloudsResponse, ListReferencesQuery, ListReferencesResponse, ListRepositoriesResponse, ListSubscriptionPlansResponse, ListTransactionsQuery, ListTransactionsResponse, ListUserInboxResponse, LocalMachine, LogoutResponse, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MachineUnbindRequest, MachineUnbindResponse, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PrivateCloudEntitlement, PrivateCloudInvite, PrivateCloudMember, PrivateCloudSummary, PublishDraftAgentRequest, PublishDraftAgentResponse, RechargeResponse, RegisterCompanionRequest, RegisterCompanionResponse, RemoveChatMemberRequest, RemovePrivateCloudMemberResponse, Repository, RepositoryActorIdentity, RepositoryReference, RepositoryReferenceComment, RepositoryReferenceCommentsResponse, RepositoryReferenceDiff, RepositoryReferenceKind, RepositoryReferenceListItem, ResetSecretRequest, ResetSecretResponse, ResolveUserInboxItemResponse, RtcChunkFrame, RtcChunkHeader, RtcControlChannel, RtcControlMessage, SearchContactCandidatesQuery, SearchContactCandidatesResponse, SenderType, SetEnvironmentVariablesRequest, ShareAuthQuery, ShareAuthResponse, SimpleSuccess, StatsQuery, StripeCheckoutClient, Subscription, SubscriptionPlan, SubscriptionTier, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineModelsRequest, SyncMachineModelsResponse, SyncMachineRequest, TaskEncryptionPayload, TaskSharePermissions, TaskTransactionsResponse, ToggleApiKeyRequest, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UpdateAgentRequest, UpdateAgentResponse, UpdateApiKeyRequest, UpdateDraftAgentRequest, UpdateDraftAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateSecretRequest, UpdateSecretResponse, UpdateSubscriptionPlanRequest, UpdateSubscriptionRequest, UpdateSubscriptionResponse, UpdateUserProfileRequest, UpdateUserProfileResponse, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserInboxItem, UserInboxStatus, UserInboxSubjectType, UserProfileResponse, UserWithOAuthAccounts, ValidateMachineResponse };