@brazosd/node 0.1.2 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (6) hide show
  1. package/README.md +38 -2
  2. package/browser.d.ts +8802 -0
  3. package/browser.js +13462 -0
  4. package/index.d.ts +2101 -152
  5. package/index.js +4141 -455
  6. package/package.json +11 -1
package/index.d.ts CHANGED
@@ -175,6 +175,10 @@ type Agent = {
175
175
  * Factory repository UUID that provides the agent version used by this instance.
176
176
  */
177
177
  agentRepoId: string;
178
+ /**
179
+ * Creator-controlled repository policy allowing users to run this agent with their own non-official models. Ordinary repositories default to false; Brazosd-created repositories default to true. Updates that omit this field preserve its value.
180
+ */
181
+ allowNonOfficialModels: boolean;
178
182
  /**
179
183
  * Public file UUID for the agent avatar, if present.
180
184
  */
@@ -183,6 +187,10 @@ type Agent = {
183
187
  * Public file UUID for the 500x500 agent avatar thumbnail, if present.
184
188
  */
185
189
  avatarThumbnailPublicFileId?: string | null;
190
+ /**
191
+ * Immutable context window captured from the repository when this instance was created. Runtime uses the smaller of this value and the model window. Zero uses the model window.
192
+ */
193
+ contextWindow: number;
186
194
  /**
187
195
  * Time when the agent was created.
188
196
  */
@@ -233,10 +241,18 @@ type Agent = {
233
241
  updatedAt: string;
234
242
  };
235
243
  type AgentConfig = {
244
+ /**
245
+ * Creator-controlled repository policy allowing users to run this agent with their own non-official models. Ordinary repositories default to false; Brazosd-created repositories default to true. Updates that omit this field preserve its value.
246
+ */
247
+ allowNonOfficialModels: boolean;
236
248
  /**
237
249
  * Tool names allowed by this agent.
238
250
  */
239
251
  allowTools: Array<string>;
252
+ /**
253
+ * Repository default context window in tokens, copied into new agent instances only. Existing instances never change. Zero uses the model window; omission preserves the existing repository value on updates.
254
+ */
255
+ contextWindow: number;
240
256
  /**
241
257
  * Core system instruction that defines the agent's duties.
242
258
  */
@@ -278,6 +294,23 @@ type AgentContactListMutationRequest = {
278
294
  */
279
295
  toAgentId: string;
280
296
  };
297
+ type AgentDirectoryEntry = {
298
+ avatarPublicFileId?: string;
299
+ avatarThumbnailPublicFileId?: string;
300
+ favorite: boolean;
301
+ id: string;
302
+ kind: "group" | "agent";
303
+ name: string;
304
+ parentId?: string | null;
305
+ /**
306
+ * Display path of the parent groups; use the path endpoint for IDs.
307
+ */
308
+ path: string;
309
+ };
310
+ type AgentDirectoryPage = {
311
+ items: Array<AgentDirectoryEntry>;
312
+ nextCursor?: string;
313
+ };
281
314
  type AgentListResponse = {
282
315
  items: Array<Agent>;
283
316
  /**
@@ -406,6 +439,10 @@ type AgentSession = {
406
439
  * Canonical activity timestamp used for inactivity archival.
407
440
  */
408
441
  lastActivityAt: string;
442
+ /**
443
+ * Session ordering timestamp, advanced by accepted direct user input including queued messages and attachments. Defaults to creation time for new sessions; existing sessions are initialized from lastActivityAt when input tracking is introduced.
444
+ */
445
+ lastInputAt: string;
409
446
  /**
410
447
  * UUID of the most recent run started for this session.
411
448
  */
@@ -422,6 +459,10 @@ type AgentSession = {
422
459
  * Model ID resolved for the session.
423
460
  */
424
461
  llmModelId?: string | null;
462
+ /**
463
+ * Shared LLM recovery task associated with the last external failure. May reference a finished task; other session actions do not clear this historical association.
464
+ */
465
+ retryAsyncTaskId?: number | null;
425
466
  /**
426
467
  * 由其他会话启动的智能体分身会话所对应的父会话 UUID。
427
468
  */
@@ -431,6 +472,10 @@ type AgentSession = {
431
472
  */
432
473
  snapshotUUID?: string | null;
433
474
  status?: AgentSessionStatus;
475
+ /**
476
+ * Structured reason for the current stop. Cleared when a new run starts. A retained retry task ID alone does not imply automatic recovery is pending.
477
+ */
478
+ stopReason?: "user_interrupted" | "llm_unavailable" | "llm_request_failed" | "action_required" | "runtime_failed" | null;
434
479
  /**
435
480
  * Optional title summarizing the session topic.
436
481
  */
@@ -562,10 +607,40 @@ type AgentSessionTodoItem = {
562
607
  ordinal: number;
563
608
  status: AgentSessionTodoStatus;
564
609
  };
610
+ type AgentSessionTreeActionResult = {
611
+ /**
612
+ * Sessions changed by this request, in execution order. Empty when no sessions needed the action.
613
+ */
614
+ affectedSessionIds: Array<string>;
615
+ rootSession: AgentSession;
616
+ };
617
+ type MCPReference = {
618
+ device_id?: string;
619
+ mcp_id: string;
620
+ };
621
+ type AgentToolSettings = {
622
+ /**
623
+ * Exact MCP installations. A device MCP must match both mcp_id and device_id. No device_id means a remote MCP.
624
+ */
625
+ allowedMcps: Array<MCPReference>;
626
+ /**
627
+ * Exact runtime tool names, including built-in media tools and fully qualified MCP tool names. Both whitelists apply to MCP tool calls. No wildcards.
628
+ */
629
+ allowedTools: Array<string>;
630
+ mcpWhitelistEnabled: boolean;
631
+ toolWhitelistEnabled: boolean;
632
+ };
633
+ type AgentToolSettingsResponse = {
634
+ /**
635
+ * Built-in tool names for the settings editor. Fully qualified MCP names can also be entered.
636
+ */
637
+ availableTools: Array<string>;
638
+ settings: AgentToolSettings;
639
+ };
565
640
  type AgentTrdpMarkupStatus = {
566
641
  agentId: string;
567
642
  /**
568
- * Whether the current user is an owner of the consumer organization and may confirm.
643
+ * Whether the current user may confirm under enterprise RN authorization or the ordinary-organization owner fallback.
569
644
  */
570
645
  canConfirm: boolean;
571
646
  confirmationRequired: boolean;
@@ -694,10 +769,23 @@ type AuthorizeSSORequest = {
694
769
  mode: SSOMode;
695
770
  orgId: number;
696
771
  };
772
+ type BillingCloudDriveKind = "user.drive" | "org.drive" | "org-public.drive" | "public.drive" | "channel.drive" | "agent-repo.drive" | "other";
697
773
  type BillingCredit = {
698
774
  createdAt: string;
699
775
  earnedAmountMicroyuans: number;
700
776
  giftAmountMicroyuans: number;
777
+ /**
778
+ * Settled consumption paid from recharge credits after refunds and previously invoiced amounts, floored at zero, in integer microyuans. Omitted until the recharge spending aggregate is synchronized.
779
+ */
780
+ invoiceableMicroyuans?: string;
781
+ /**
782
+ * Cumulative amount already invoiced for the organization, in integer microyuans. Defaults to zero until set by an administrator.
783
+ */
784
+ invoicedMicroyuans: string;
785
+ /**
786
+ * Net settled spending across all billing categories, including enterprise fees and paid purchases, in integer microyuans. Updated asynchronously. Omitted until the first aggregate is available.
787
+ */
788
+ lifetimeSpentMicroyuans?: string;
701
789
  orgId: number;
702
790
  rechargeAmountMicroyuans: number;
703
791
  totalAmountMicroyuans: number;
@@ -1066,6 +1154,74 @@ type ChannelMessageSearchResponse = {
1066
1154
  */
1067
1155
  nextCursor?: string | null;
1068
1156
  };
1157
+ type ClientMCPBoundTool = {
1158
+ description: string;
1159
+ inputSchema: Record<string, any>;
1160
+ name: string;
1161
+ originalName: string;
1162
+ };
1163
+ type ClientMCPInstallation = {
1164
+ mcpId: string;
1165
+ namespace: string;
1166
+ prefix: string;
1167
+ revision: string;
1168
+ tools: Array<ClientMCPBoundTool>;
1169
+ };
1170
+ /**
1171
+ * MCP CallToolResult. The first accepted result wins. Accepted means stored, not necessarily consumed by the model before timeout. Maximum encoded size is 1 MiB.
1172
+ */
1173
+ export type ClientMCPToolResult = {
1174
+ content: Array<Record<string, any>>;
1175
+ isError?: boolean;
1176
+ structuredContent?: Record<string, any>;
1177
+ };
1178
+ type CloudDriveCapacity = {
1179
+ /**
1180
+ * Combined access fee at the usage-day tariff in decimal microyuans before organization-level rounding
1181
+ */
1182
+ accessMicroyuans: string;
1183
+ /**
1184
+ * Last observed closing size on the selected UTC usage day
1185
+ */
1186
+ closingBytes?: number;
1187
+ driveKind: string;
1188
+ /**
1189
+ * Owning user or resource ID when known
1190
+ */
1191
+ entityId: string;
1192
+ externalBytes: number;
1193
+ /**
1194
+ * Current logical capacity
1195
+ */
1196
+ logicalBytes: number;
1197
+ /**
1198
+ * Current personal drive bytes in a member total
1199
+ */
1200
+ personalBytes?: number;
1201
+ rootId: string;
1202
+ /**
1203
+ * Current combined session drive bytes in a member total
1204
+ */
1205
+ sessionBytes?: number;
1206
+ /**
1207
+ * Member name for a user drive
1208
+ */
1209
+ userName: string;
1210
+ };
1211
+ type CloudDriveCategoryCapacity = {
1212
+ driveKind: BillingCloudDriveKind;
1213
+ logicalBytes: number;
1214
+ };
1215
+ type CloudDriveCapacitySummary = {
1216
+ /**
1217
+ * Current bytes by billed drive kind. Member drives include sessions. Empty while the snapshot is pending.
1218
+ */
1219
+ categories: Array<CloudDriveCategoryCapacity>;
1220
+ /**
1221
+ * Current logical bytes across the organization. Omitted until the first snapshot arrives.
1222
+ */
1223
+ totalBytes?: number;
1224
+ };
1069
1225
  type CloudDriveFnode = {
1070
1226
  /**
1071
1227
  * MIME type of the file, when known. Null for directories.
@@ -1088,7 +1244,7 @@ type CloudDriveFnode = {
1088
1244
  */
1089
1245
  name: string;
1090
1246
  /**
1091
- * Canonical cloud-drive path of the node.
1247
+ * Canonical cloud-drive path of the node. Unicode text; percent sequences and plus signs are literal filename characters, not URL encoding.
1092
1248
  */
1093
1249
  path: string;
1094
1250
  /**
@@ -1096,7 +1252,7 @@ type CloudDriveFnode = {
1096
1252
  */
1097
1253
  sha256?: string | null;
1098
1254
  /**
1099
- * File size in bytes. Null for directories.
1255
+ * Logical bytes for files and the eventually consistent total size for directories.
1100
1256
  */
1101
1257
  size?: number | null;
1102
1258
  /**
@@ -1108,6 +1264,20 @@ type CloudDriveFnode = {
1108
1264
  */
1109
1265
  updatedAt: string;
1110
1266
  };
1267
+ type CloudDriveInvoiceItem = {
1268
+ amountMicroyuans: number;
1269
+ earnedMicroyuans: number;
1270
+ getRequests: number;
1271
+ giftMicroyuans: number;
1272
+ offpeakBytes: number;
1273
+ peakBytes: number;
1274
+ priceDay: string;
1275
+ putRequests: number;
1276
+ rechargeMicroyuans: number;
1277
+ sourceOrgId: number;
1278
+ storageByteMicroseconds: string;
1279
+ usageDay: string;
1280
+ };
1111
1281
  type CloudDriveSettings = {
1112
1282
  /**
1113
1283
  * Whether clients should show the `.tmp` area in file listings for this drive.
@@ -1118,6 +1288,20 @@ type CloudDriveSettings = {
1118
1288
  */
1119
1289
  trashCleanupIntervalDays?: number | null;
1120
1290
  };
1291
+ type CloudSandbox = {
1292
+ billedAmountMicroyuans: number;
1293
+ deviceKey: string;
1294
+ hostname: string;
1295
+ id: string;
1296
+ /**
1297
+ * Reason the cloud sandbox can no longer be used or resumed.
1298
+ */
1299
+ lossReason?: string;
1300
+ name: string;
1301
+ ports: Array<number>;
1302
+ serviceUserId: number;
1303
+ state: string;
1304
+ };
1121
1305
  type CloudSkillMetadata = {
1122
1306
  /**
1123
1307
  * Public file UUID for the skill avatar, if present.
@@ -1378,7 +1562,7 @@ type CopyBrowserFileRequest = {
1378
1562
  };
1379
1563
  type CopyCloudDriveFnodeRequest = {
1380
1564
  /**
1381
- * Canonical destination path to copy to.
1565
+ * Canonical destination path to copy to. Unicode text; percent sequences and plus signs are literal filename characters, not URL encoding.
1382
1566
  */
1383
1567
  destinationPath: string;
1384
1568
  /**
@@ -1386,7 +1570,7 @@ type CopyCloudDriveFnodeRequest = {
1386
1570
  */
1387
1571
  overwrite?: boolean;
1388
1572
  /**
1389
- * Canonical source path to copy from.
1573
+ * Canonical source path to copy from. Unicode text; percent sequences and plus signs are literal filename characters, not URL encoding.
1390
1574
  */
1391
1575
  sourcePath: string;
1392
1576
  };
@@ -1397,6 +1581,14 @@ type CreateAccountOrgRequest = {
1397
1581
  name: string;
1398
1582
  };
1399
1583
  type CreateAgentRequest = {
1584
+ /**
1585
+ * Creator-controlled repository policy allowing users to run this agent with their own non-official models. Ordinary repositories default to false; Brazosd-created repositories default to true. Updates that omit this field preserve its value.
1586
+ */
1587
+ allowNonOfficialModels?: boolean;
1588
+ /**
1589
+ * Repository default context window in tokens, copied into new agent instances only. Existing instances never change. Zero uses the model window; omission preserves the existing repository value on updates.
1590
+ */
1591
+ contextWindow?: number;
1400
1592
  /**
1401
1593
  * Short description of the agent's purpose.
1402
1594
  */
@@ -1409,6 +1601,10 @@ type CreateAgentRequest = {
1409
1601
  * Core system instruction that defines the agent's duties.
1410
1602
  */
1411
1603
  dutyPrompt: string;
1604
+ /**
1605
+ * Optional initial directory group. Requires agent-groups:manage in addition to agent creation permission. Omission places the agent at the root.
1606
+ */
1607
+ groupId?: string;
1412
1608
  /**
1413
1609
  * Model ID the agent should use for new sessions.
1414
1610
  */
@@ -1422,6 +1618,15 @@ type CreateAgentRequest = {
1422
1618
  */
1423
1619
  uniqueKey: string;
1424
1620
  };
1621
+ type ClientMCPToolDefinition = {
1622
+ description: string;
1623
+ inputSchema: Record<string, any>;
1624
+ name: string;
1625
+ };
1626
+ type InitialClientMCP = {
1627
+ namespace: string;
1628
+ tools: Array<ClientMCPToolDefinition>;
1629
+ };
1425
1630
  type CreateAgentSession = {
1426
1631
  /**
1427
1632
  * Agent UUID to run.
@@ -1435,6 +1640,7 @@ type CreateAgentSession = {
1435
1640
  * Legacy compatibility field for temporary attachment paths. New clients should use `attachmentPaths`.
1436
1641
  */
1437
1642
  attachmentTmpPaths?: Array<string>;
1643
+ initialClientMcp?: InitialClientMCP;
1438
1644
  /**
1439
1645
  * Optional model ID to use for the session. If omitted, the agent model is used.
1440
1646
  */
@@ -1493,9 +1699,9 @@ type CreateChannelMessageResult = {
1493
1699
  };
1494
1700
  type ChannelSubjectRef = {
1495
1701
  /**
1496
- * Subject identifier. Use the numeric user ID as a string for users and the agent UUID for agents.
1702
+ * Users accept namespace/username or a positive numeric ID. Agents use a UUID.
1497
1703
  */
1498
- subjectId: string;
1704
+ subjectId: (string | number);
1499
1705
  subjectType: ChannelSubjectType;
1500
1706
  };
1501
1707
  type CreateChannelRequest = {
@@ -1513,12 +1719,35 @@ type CreateChannelRequest = {
1513
1719
  invitees: Array<ChannelSubjectRef>;
1514
1720
  type: ChannelType;
1515
1721
  };
1722
+ type CreateCLIRequest = {
1723
+ codeChallenge: string;
1724
+ redirectUri: string;
1725
+ scopes: Array<string>;
1726
+ state: string;
1727
+ };
1516
1728
  type CreateCloudDriveDirectoryRequest = {
1517
1729
  /**
1518
- * Canonical destination path of the directory to create.
1730
+ * Canonical destination path of the directory to create. Unicode text; percent sequences and plus signs are literal filename characters, not URL encoding.
1519
1731
  */
1520
1732
  path: string;
1521
1733
  };
1734
+ type CreateCloudSandboxRequest = {
1735
+ /**
1736
+ * Optional client-generated resource UUID for tracking asynchronous creation.
1737
+ */
1738
+ id?: string;
1739
+ name: string;
1740
+ ports?: Array<number>;
1741
+ /**
1742
+ * Qualified name or positive numeric ID of an active service user in this organization. Omit to allocate a service user.
1743
+ */
1744
+ serviceUserId?: (string | number);
1745
+ snapshotId?: string;
1746
+ /**
1747
+ * Sandbox resource SKU
1748
+ */
1749
+ spec?: string;
1750
+ };
1522
1751
  type CreateCredentialRequest = {
1523
1752
  /**
1524
1753
  * Human-readable description shown in management UIs.
@@ -1646,6 +1875,10 @@ type CreateSnapshotRequest = {
1646
1875
  */
1647
1876
  annotations?: Record<string, any>;
1648
1877
  description: string;
1878
+ /**
1879
+ * Optional client-generated UUID for tracking asynchronous capture.
1880
+ */
1881
+ id?: string;
1649
1882
  name: string;
1650
1883
  };
1651
1884
  type CreateSSORequest = {
@@ -1696,6 +1929,32 @@ type Credential$1 = {
1696
1929
  */
1697
1930
  key: string;
1698
1931
  };
1932
+ type EnterprisePermissionCondition = Record<string, Record<string, Array<string>>>;
1933
+ type EnterprisePermissionRule = {
1934
+ /**
1935
+ * Namespaced actions such as agents:read or cloud-drive:write. A star may replace either action segment; a standalone star matches all actions.
1936
+ */
1937
+ actions: Array<string>;
1938
+ condition?: EnterprisePermissionCondition;
1939
+ effect: "allow" | "deny";
1940
+ /**
1941
+ * Resource RNs without actions. A star matches exactly one segment; a final double-star includes the current resource and descendants. rn:* covers all namespaces subject to organization isolation. orgs:* is allowed in policies. A final directory slash-star includes the directory and descendants.
1942
+ */
1943
+ resources: Array<string>;
1944
+ };
1945
+ type CurrentOrgPermissions = {
1946
+ /**
1947
+ * Whether stored enterprise permissions apply, including after subscription expiry.
1948
+ */
1949
+ enterpriseEnabled: boolean;
1950
+ orgId: number;
1951
+ /**
1952
+ * Legacy owner fallback for ordinary organizations only; false when enterprise permissions apply.
1953
+ */
1954
+ owner: boolean;
1955
+ rules: Array<EnterprisePermissionRule>;
1956
+ userId: number;
1957
+ };
1699
1958
  type DebugAgentSessionResponse = {
1700
1959
  /**
1701
1960
  * Created or targeted agent session UUID.
@@ -1725,8 +1984,11 @@ type DebugSandboxNetworkTrafficSettlement = {
1725
1984
  type DebugSandboxState = {
1726
1985
  agentSessionId?: string | null;
1727
1986
  deepSleepAt?: string | null;
1728
- deepSleepCheckpointId?: string | null;
1729
1987
  deepSleepSeconds: number;
1988
+ /**
1989
+ * Internal managed snapshot used for deep-sleep recovery.
1990
+ */
1991
+ deepSleepSnapshotId?: string | null;
1730
1992
  deepSleepTaskId?: number | null;
1731
1993
  destroyedAt?: string | null;
1732
1994
  disableSleep: boolean;
@@ -1766,7 +2028,7 @@ type DebugTestAccountResponse = {
1766
2028
  };
1767
2029
  type DeleteCloudDriveFnodeRequest = {
1768
2030
  /**
1769
- * Canonical path of the file or directory to delete.
2031
+ * Canonical path of the file or directory to delete. Unicode text; percent sequences and plus signs are literal filename characters, not URL encoding.
1770
2032
  */
1771
2033
  path: string;
1772
2034
  /**
@@ -1793,6 +2055,9 @@ type Device = {
1793
2055
  lastPongAt?: string | null;
1794
2056
  online: boolean;
1795
2057
  orgId: number;
2058
+ /**
2059
+ * Whether the device is visible to its organization (true) or only its owner (false). Enterprise device permissions also apply.
2060
+ */
1796
2061
  orgScope: boolean;
1797
2062
  platform: DevicePlatform;
1798
2063
  tokenVersion: number;
@@ -1841,13 +2106,6 @@ type DeviceSessionToolCallRequest = {
1841
2106
  */
1842
2107
  timeoutMs: number;
1843
2108
  };
1844
- type EnterprisePermissionRule = {
1845
- allowed: boolean;
1846
- /**
1847
- * Current-organization RN, system-model RN under rn:llm-models, or rn:* for a global grant or deny. Existing organization and resource access checks always apply. A middle star matches one segment; a terminal star covers the subtree. A final directory slash-star includes the directory and all descendants. No regex.
1848
- */
1849
- rn: string;
1850
- };
1851
2109
  type EnterprisePermissionPolicy = {
1852
2110
  description: string;
1853
2111
  id: string;
@@ -1872,6 +2130,11 @@ type EnterprisePermissionPolicySummary = {
1872
2130
  type EnterprisePermissionRules = {
1873
2131
  rules: Array<EnterprisePermissionRule>;
1874
2132
  };
2133
+ type ExchangeCLICodeRequest = {
2134
+ code: string;
2135
+ codeVerifier: string;
2136
+ redirectUri: string;
2137
+ };
1875
2138
  type ExchangeSSOCodeRequest = {
1876
2139
  appId: string;
1877
2140
  code: string;
@@ -1910,6 +2173,9 @@ type GiftTopupRequest = {
1910
2173
  amountMicroyuans: number;
1911
2174
  note?: string;
1912
2175
  };
2176
+ type InstallClientMCP = {
2177
+ tools: Array<ClientMCPToolDefinition>;
2178
+ };
1913
2179
  type InvitationCode = {
1914
2180
  /**
1915
2181
  * Invitation code value.
@@ -1941,9 +2207,9 @@ type InvitationCodeListResponse = {
1941
2207
  };
1942
2208
  type InviteChannelMemberRequest = {
1943
2209
  /**
1944
- * Subject identifier. Use the numeric user ID as a string for users and the agent UUID for agents.
2210
+ * Users accept namespace/username or a positive numeric ID. Agents use a UUID.
1945
2211
  */
1946
- subjectId: string;
2212
+ subjectId: (string | number);
1947
2213
  subjectType: ChannelSubjectType;
1948
2214
  };
1949
2215
  type LlmModelPermissions = {
@@ -2090,6 +2356,7 @@ type MCPSettings = {
2090
2356
  };
2091
2357
  type MCPManageRequest = {
2092
2358
  action: "list" | "get" | "add" | "update" | "delete" | "start" | "stop" | "restart" | "capabilities" | "load" | "unload" | "reload" | "set";
2359
+ agent_id?: string;
2093
2360
  /**
2094
2361
  * Organization-local numeric device key or full UUID.
2095
2362
  */
@@ -2097,20 +2364,78 @@ type MCPManageRequest = {
2097
2364
  expected_revision?: number;
2098
2365
  key?: string;
2099
2366
  mcp_id?: string;
2367
+ mcps?: Array<MCPReference>;
2100
2368
  namespace?: string;
2101
- scope: "remote" | "device" | "session" | "secret";
2369
+ /**
2370
+ * Remote configuration visibility. True shares with the organization; false is private to the current user in this organization. Omitted on creation preserves the legacy shared default.
2371
+ */
2372
+ org_scope?: boolean;
2373
+ scope: "available" | "remote" | "device" | "session" | "secret" | "agent";
2102
2374
  session_id?: string;
2103
2375
  settings?: MCPSettings;
2104
2376
  value?: string;
2105
2377
  };
2106
- type MCPManageResult = Record<string, any>;
2378
+ type MCPDeviceDiscoveryError = {
2379
+ device_id: string;
2380
+ device_key: number;
2381
+ device_name: string;
2382
+ error: string;
2383
+ };
2384
+ type MCPDiscoveryItem = {
2385
+ device_id?: string;
2386
+ device_key?: number;
2387
+ device_name?: string;
2388
+ mcp_id: string;
2389
+ namespace: string;
2390
+ org_scope?: boolean;
2391
+ source: "remote" | "device";
2392
+ };
2393
+ type MCPStartupStatus = {
2394
+ device_id?: string;
2395
+ error: string;
2396
+ mcp_id: string;
2397
+ state: "pending" | "loading" | "loaded" | "failed" | "unloaded";
2398
+ };
2399
+ type MCPManageResult = {
2400
+ available?: Array<MCPDiscoveryItem>;
2401
+ capabilities?: Record<string, any>;
2402
+ code?: string;
2403
+ config_revision?: number;
2404
+ deleted?: boolean;
2405
+ device_errors?: Array<MCPDeviceDiscoveryError>;
2406
+ device_id?: string | null;
2407
+ device_key?: number;
2408
+ error?: string;
2409
+ item?: Record<string, any>;
2410
+ items?: Array<Record<string, any>>;
2411
+ mcp_id?: string;
2412
+ mcps?: Array<MCPReference>;
2413
+ namespace?: string;
2414
+ org_scope?: boolean;
2415
+ prefix?: string;
2416
+ revision?: string;
2417
+ secrets?: Array<{
2418
+ key: string;
2419
+ updated_at: string;
2420
+ }>;
2421
+ settings?: Record<string, any>;
2422
+ source?: string;
2423
+ startup?: Array<MCPStartupStatus>;
2424
+ tools?: Array<Record<string, any>>;
2425
+ unloaded?: boolean;
2426
+ updated_at?: string;
2427
+ user_id?: number | null;
2428
+ };
2429
+ type MoveAgentToGroupRequest = {
2430
+ groupId?: string | null;
2431
+ };
2107
2432
  type MoveCloudDriveFnodeRequest = {
2108
2433
  /**
2109
- * Canonical destination path to move to.
2434
+ * Canonical destination path to move to. Unicode text; percent sequences and plus signs are literal filename characters, not URL encoding.
2110
2435
  */
2111
2436
  destinationPath: string;
2112
2437
  /**
2113
- * Canonical source path to move from.
2438
+ * Canonical source path to move from. Unicode text; percent sequences and plus signs are literal filename characters, not URL encoding.
2114
2439
  */
2115
2440
  sourcePath: string;
2116
2441
  };
@@ -2197,7 +2522,7 @@ type OrgFeatureSettings = {
2197
2522
  */
2198
2523
  allowAgentPublishing: boolean;
2199
2524
  /**
2200
- * Allow members to register devices. Owners are exempt. Existing devices remain usable and connected.
2525
+ * Allow members to register devices. Applies to ordinary organizations; their owners are exempt. Enterprise organizations use RN permissions. Existing devices remain usable and connected.
2201
2526
  */
2202
2527
  allowDeviceRegistration: boolean;
2203
2528
  /**
@@ -2205,7 +2530,7 @@ type OrgFeatureSettings = {
2205
2530
  */
2206
2531
  allowSessionSharing: boolean;
2207
2532
  /**
2208
- * Allow members to recruit third-party agents. Owners are exempt. Existing agents remain usable.
2533
+ * Allow members to recruit third-party agents. Applies to ordinary organizations; their owners are exempt. Enterprise organizations use RN permissions. Existing agents remain usable.
2209
2534
  */
2210
2535
  allowThirdPartyAgentRecruitment: boolean;
2211
2536
  };
@@ -2228,7 +2553,7 @@ type OrgGroup = {
2228
2553
  userIds: Array<number>;
2229
2554
  };
2230
2555
  type OrgGroupMembersRequest = {
2231
- userIds: Array<number>;
2556
+ userIds: Array<(string | number)>;
2232
2557
  };
2233
2558
  type OrgGroupRequest = {
2234
2559
  name: string;
@@ -2271,7 +2596,7 @@ type OrgLlmSettings = {
2271
2596
  */
2272
2597
  agentOverrideModelId?: string | null;
2273
2598
  /**
2274
- * System or organization-owned model for read_image and read_video when the session model cannot process images. Requires imageInput. Null uses the platform default.
2599
+ * System or organization-owned model for read_images and read_video when the session model cannot process images. Requires imageInput. Null uses the platform default.
2275
2600
  */
2276
2601
  imageModelId?: string | null;
2277
2602
  /**
@@ -2320,6 +2645,10 @@ type OrgUser = {
2320
2645
  * Bound phone number, if present.
2321
2646
  */
2322
2647
  phone?: string;
2648
+ /**
2649
+ * Unique organization namespace/username for this member. Use this value in user-targeted operations.
2650
+ */
2651
+ qualifiedName?: string;
2323
2652
  /**
2324
2653
  * Earliest time an owner may reactivate the account, 24 hours after deactivation.
2325
2654
  */
@@ -2441,6 +2770,17 @@ type PublicOrganization = {
2441
2770
  */
2442
2771
  orgId: number;
2443
2772
  };
2773
+ type PublicSnapshot = {
2774
+ architecture: string;
2775
+ baseImage: string;
2776
+ description: string;
2777
+ id: string;
2778
+ name: string;
2779
+ orgId: number;
2780
+ publishedAt: string;
2781
+ storageGib?: number;
2782
+ userId: number;
2783
+ };
2444
2784
  type PublishAgentRequest = {
2445
2785
  /**
2446
2786
  * Third-party token charge multiplier from 1x through 50x in 0.01x increments.
@@ -2605,6 +2945,10 @@ type RecruitAgentRequest = {
2605
2945
  */
2606
2946
  displayName?: string;
2607
2947
  };
2948
+ type RefreshCLITokensRequest = {
2949
+ refreshToken: string;
2950
+ requestId: string;
2951
+ };
2608
2952
  type RefreshSSOTokensRequest = {
2609
2953
  appId: string;
2610
2954
  refreshToken: string;
@@ -2676,10 +3020,13 @@ type RenameCloudDriveFnodeRequest = {
2676
3020
  */
2677
3021
  name: string;
2678
3022
  /**
2679
- * Canonical path of the existing file or directory.
3023
+ * Canonical path of the existing file or directory. Unicode text; percent sequences and plus signs are literal filename characters, not URL encoding.
2680
3024
  */
2681
3025
  path: string;
2682
3026
  };
3027
+ type RenameCloudSandboxRequest = {
3028
+ name: string;
3029
+ };
2683
3030
  type ReplaceCloudSkillRequest = {
2684
3031
  /**
2685
3032
  * Readable canonical cloud-drive directory that atomically replaces the agent-repo skill.
@@ -2697,10 +3044,13 @@ type ReplaceDevicePortForwardsRequest = {
2697
3044
  };
2698
3045
  type RestoreCloudDriveFnodeRequest = {
2699
3046
  /**
2700
- * Canonical trash path of the item to restore.
3047
+ * Canonical trash path of the item to restore. Unicode text; percent sequences and plus signs are literal filename characters, not URL encoding.
2701
3048
  */
2702
3049
  path: string;
2703
3050
  };
3051
+ type RevokeCLIGrantRequest = {
3052
+ refreshToken: string;
3053
+ };
2704
3054
  type RotateDeviceTokenResult = {
2705
3055
  device: Device;
2706
3056
  token: string;
@@ -2711,6 +3061,10 @@ type RunSandboxCommandRequest = {
2711
3061
  * Shell command to run inside the sandbox.
2712
3062
  */
2713
3063
  command: string;
3064
+ /**
3065
+ * Environment variables for this command invocation.
3066
+ */
3067
+ env?: Record<string, string>;
2714
3068
  /**
2715
3069
  * Optional absolute path to the shell binary used to execute command.
2716
3070
  */
@@ -2738,6 +3092,98 @@ type SandboxCommandResult = {
2738
3092
  */
2739
3093
  stdout: string;
2740
3094
  };
3095
+ type SaveAgentGroupRequest = {
3096
+ name: string;
3097
+ parentId?: string | null;
3098
+ };
3099
+ type ScheduledHttpRequest = {
3100
+ /**
3101
+ * UTF-8 body template, at most 65536 bytes both before and after secret substitution. JSON bodies are substituted structurally and re-encoded.
3102
+ */
3103
+ body: string;
3104
+ headers: Record<string, string>;
3105
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
3106
+ query: Record<string, string>;
3107
+ /**
3108
+ * HTTP(S) URL. Credentials may be referenced in the path/query, headers or body, never in the host.
3109
+ */
3110
+ url: string;
3111
+ };
3112
+ type ScheduledTask = {
3113
+ actionType: "http" | "agent_message";
3114
+ agentId?: string;
3115
+ /**
3116
+ * Message to the agent, separate from the task description
3117
+ */
3118
+ content?: string;
3119
+ createdAt: string;
3120
+ /**
3121
+ * Execution user, preserved when other organization members edit the task
3122
+ */
3123
+ creatorUserId: number;
3124
+ /**
3125
+ * Six-field cron with a single seconds value; minimum interval one minute. Supports CRON_TZ.
3126
+ */
3127
+ cronExpression?: string;
3128
+ description: string;
3129
+ httpRequest?: ScheduledHttpRequest;
3130
+ id: string;
3131
+ name: string;
3132
+ nextRunAt?: string;
3133
+ orgId: number;
3134
+ ownerUserId?: number;
3135
+ runAt?: string;
3136
+ scheduleType: "cron" | "once";
3137
+ scope: "org" | "user";
3138
+ /**
3139
+ * Optional existing session owned by the execution user, in this organization and for agentId. Omit to create a new session each time. Active sessions queue the message; finished or interrupted sessions resume. Archived sessions fail without creating a replacement.
3140
+ */
3141
+ sessionId?: string;
3142
+ status: string;
3143
+ /**
3144
+ * IANA timezone for cron schedules. Defaults to UTC.
3145
+ */
3146
+ timezone?: string;
3147
+ updatedAt: string;
3148
+ };
3149
+ type ScheduledTaskInput = {
3150
+ actionType: "http" | "agent_message";
3151
+ agentId?: string;
3152
+ /**
3153
+ * Message to the agent, separate from the task description
3154
+ */
3155
+ content?: string;
3156
+ /**
3157
+ * Six-field cron with a single seconds value; minimum interval one minute. Supports CRON_TZ.
3158
+ */
3159
+ cronExpression?: string;
3160
+ description: string;
3161
+ httpRequest?: ScheduledHttpRequest;
3162
+ name: string;
3163
+ runAt?: string;
3164
+ scheduleType: "cron" | "once";
3165
+ scope: "org" | "user";
3166
+ /**
3167
+ * Optional existing session owned by the execution user, in this organization and for agentId. Omit to create a new session each time. Active sessions queue the message; finished or interrupted sessions resume. Archived sessions fail without creating a replacement.
3168
+ */
3169
+ sessionId?: string;
3170
+ /**
3171
+ * IANA timezone for cron schedules. Defaults to UTC.
3172
+ */
3173
+ timezone?: string;
3174
+ };
3175
+ type ScheduledTaskRun = {
3176
+ error: string;
3177
+ finishedAt?: string;
3178
+ httpStatus?: number;
3179
+ id: string;
3180
+ responseSummary: string;
3181
+ scheduledAt: string;
3182
+ scheduledTaskId: string;
3183
+ sessionId?: string;
3184
+ startedAt: string;
3185
+ status: "running" | "succeeded" | "failed" | "unknown";
3186
+ };
2741
3187
  type PhoneCodeType = "register" | "reset_password";
2742
3188
  type SendPhoneCodeRequest = {
2743
3189
  /**
@@ -2752,6 +3198,30 @@ type ServiceUser = {
2752
3198
  displayName: string;
2753
3199
  id: number;
2754
3200
  name: string;
3201
+ /**
3202
+ * Current organization namespace and service username separated by a slash. Use this value in bindings.
3203
+ */
3204
+ qualifiedName?: string;
3205
+ /**
3206
+ * Stable service username within the organization.
3207
+ */
3208
+ username: string;
3209
+ };
3210
+ type SessionSubscription = {
3211
+ createdAt: string;
3212
+ deviceId?: string;
3213
+ executionId?: string;
3214
+ id: string;
3215
+ lastReceivedAt?: string;
3216
+ publicationId: string;
3217
+ sourceSessionId?: string;
3218
+ status: "waiting" | "received";
3219
+ type: "subagent" | "background_terminal";
3220
+ waitingSince?: string;
3221
+ };
3222
+ type SessionSubscriptionPage = {
3223
+ items: Array<SessionSubscription>;
3224
+ nextCursor?: string;
2755
3225
  };
2756
3226
  type SetDeviceDNSAliasRequest = {
2757
3227
  /**
@@ -2759,6 +3229,12 @@ type SetDeviceDNSAliasRequest = {
2759
3229
  */
2760
3230
  alias: string;
2761
3231
  };
3232
+ type SetDeviceScopeRequest = {
3233
+ /**
3234
+ * True for organization visibility; false for private visibility. The device owner remains unchanged.
3235
+ */
3236
+ orgScope: boolean;
3237
+ };
2762
3238
  type SetPublisherNamespaceRequest = {
2763
3239
  namespace: string;
2764
3240
  };
@@ -2779,6 +3255,12 @@ type SettleDebugSandboxNetworkTrafficRequest = {
2779
3255
  */
2780
3256
  usageDate: string;
2781
3257
  };
3258
+ type SetUserDailyBudgetRequest = {
3259
+ /**
3260
+ * Daily limit in microyuans (1000000 = CNY 1); null or omitted means unlimited.
3261
+ */
3262
+ limitMicroyuans?: number | null;
3263
+ };
2782
3264
  type SharedAgentSessionAgent = {
2783
3265
  /**
2784
3266
  * Agent repository UUID attributed by the share page.
@@ -2899,31 +3381,79 @@ type SharedAgentSessionToken = {
2899
3381
  */
2900
3382
  tokenType: "Bearer";
2901
3383
  };
2902
- type SnapshotProvider = "acs_e2b";
2903
- type Snapshot = {
3384
+ type SideQueryRequest = {
3385
+ input: string;
3386
+ };
3387
+ type AssistantUsageCost = {
2904
3388
  /**
2905
- * Arbitrary metadata supplied when the snapshot was created.
3389
+ * Cost attributed to cached input tokens.
2906
3390
  */
2907
- annotations: Record<string, any>;
2908
- architecture: string;
2909
- baseImage: string;
3391
+ cacheInput?: number;
2910
3392
  /**
2911
- * Time when the snapshot was created.
3393
+ * Cost attributed to input tokens.
2912
3394
  */
2913
- createdAt: string;
2914
- description: string;
2915
- error: string;
3395
+ input?: number;
2916
3396
  /**
2917
- * Snapshot UUID.
3397
+ * Cost attributed to output tokens.
2918
3398
  */
2919
- id: string;
3399
+ output?: number;
2920
3400
  /**
2921
- * Storage usage has been settled through this instant.
3401
+ * Total cost across all token categories.
3402
+ */
3403
+ total?: number;
3404
+ };
3405
+ type AssistantUsage = {
3406
+ /**
3407
+ * Cached input token count.
3408
+ */
3409
+ cacheInput?: number;
3410
+ cost?: AssistantUsageCost;
3411
+ /**
3412
+ * Input token count.
3413
+ */
3414
+ input?: number;
3415
+ /**
3416
+ * Output token count.
3417
+ */
3418
+ output?: number;
3419
+ /**
3420
+ * Total token count across input, output, and cache categories.
3421
+ */
3422
+ totalTokens?: number;
3423
+ };
3424
+ type SideQueryResponse = {
3425
+ reply: string;
3426
+ usage?: AssistantUsage;
3427
+ };
3428
+ type SnapshotProvider = "acs_e2b";
3429
+ type Snapshot = {
3430
+ /**
3431
+ * Arbitrary metadata supplied when the snapshot was created.
3432
+ */
3433
+ annotations: Record<string, any>;
3434
+ architecture: string;
3435
+ baseImage: string;
3436
+ /**
3437
+ * Time when the snapshot was created.
3438
+ */
3439
+ createdAt: string;
3440
+ description: string;
3441
+ error: string;
3442
+ /**
3443
+ * Snapshot UUID.
3444
+ */
3445
+ id: string;
3446
+ /**
3447
+ * Storage usage has been settled through this instant.
2922
3448
  */
2923
3449
  lastBilledAt?: string;
2924
3450
  name: string;
2925
3451
  orgId: number;
2926
3452
  provider: SnapshotProvider;
3453
+ /**
3454
+ * ID of this snapshot’s active public publication.
3455
+ */
3456
+ publicationId?: string;
2927
3457
  sourceSandboxId?: string;
2928
3458
  state: "creating" | "ready" | "failed" | "deleting";
2929
3459
  /**
@@ -2937,6 +3467,10 @@ type Snapshot = {
2937
3467
  */
2938
3468
  userId: number;
2939
3469
  };
3470
+ type SnapshotPublication = {
3471
+ id: string;
3472
+ snapshotId: string;
3473
+ };
2940
3474
  type SSOAppConfiguration = {
2941
3475
  redirectUris: Array<string>;
2942
3476
  };
@@ -2944,22 +3478,42 @@ type SSOAuthorization = {
2944
3478
  redirectUrl: string;
2945
3479
  };
2946
3480
  type SSOGrant = {
2947
- appId: string;
3481
+ appId?: string;
2948
3482
  appName: string;
3483
+ /**
3484
+ * Built-in public client identifier for CLI grants.
3485
+ */
3486
+ clientId?: string;
2949
3487
  createdAt: string;
2950
3488
  expiresAt: string;
2951
3489
  id: string;
2952
3490
  orgId: number;
3491
+ /**
3492
+ * Cloud permissions requested by the CLI.
3493
+ */
3494
+ scopes?: Array<string>;
2953
3495
  userId: number;
2954
3496
  };
2955
3497
  type SSORequest = {
2956
- appId: string;
3498
+ appId?: string;
2957
3499
  appName: string;
2958
- appOrgId: number;
3500
+ appOrgId?: number;
3501
+ /**
3502
+ * Local CLI callback containing only the request state and access_denied.
3503
+ */
3504
+ cancelUri?: string;
3505
+ /**
3506
+ * Built-in public client identifier for CLI grants.
3507
+ */
3508
+ clientId?: string;
2959
3509
  expiresAt: string;
2960
3510
  id: string;
2961
3511
  mode: SSOMode;
2962
3512
  redirectUri: string;
3513
+ /**
3514
+ * Cloud permissions requested by the CLI.
3515
+ */
3516
+ scopes?: Array<string>;
2963
3517
  };
2964
3518
  export type SSOTokens = {
2965
3519
  /**
@@ -2977,7 +3531,7 @@ export type SSOTokens = {
2977
3531
  orgId: number;
2978
3532
  refreshExpiresAt?: string;
2979
3533
  /**
2980
- * Only present in org-user mode. Exchange only at /sso/refresh using the application's service credential.
3534
+ * Org-user refresh credential. Cloud apps use /sso/refresh and the CLI uses /sso/cli/refresh.
2981
3535
  */
2982
3536
  refreshToken?: string;
2983
3537
  userId: number;
@@ -3179,6 +3733,14 @@ type UpdateAgentRepoTrdpMarkupRequest = {
3179
3733
  targetMarkupPpm: number;
3180
3734
  };
3181
3735
  type UpdateAgentRequest = {
3736
+ /**
3737
+ * Creator-controlled repository policy allowing users to run this agent with their own non-official models. Ordinary repositories default to false; Brazosd-created repositories default to true. Updates that omit this field preserve its value.
3738
+ */
3739
+ allowNonOfficialModels?: boolean;
3740
+ /**
3741
+ * Repository default context window in tokens, copied into new agent instances only. Existing instances never change. Zero uses the model window; omission preserves the existing repository value on updates.
3742
+ */
3743
+ contextWindow?: number;
3182
3744
  /**
3183
3745
  * Short description of the agent's purpose.
3184
3746
  */
@@ -3206,6 +3768,12 @@ type UpdateAgentSessionLlmModel = {
3206
3768
  */
3207
3769
  llmModelId: string;
3208
3770
  };
3771
+ type UpdateAgentSessionTitle = {
3772
+ /**
3773
+ * New session title. Leading and trailing whitespace is removed; the result must not be blank.
3774
+ */
3775
+ topicTitle: string;
3776
+ };
3209
3777
  type UpdateChannelDescriptionRequest = {
3210
3778
  /**
3211
3779
  * New channel description.
@@ -3230,7 +3798,7 @@ type UpdateChannelReadRequest = {
3230
3798
  };
3231
3799
  type UpdateCloudDriveSettingsRequest = {
3232
3800
  /**
3233
- * Canonical root path of the user or channel drive whose settings should change.
3801
+ * Canonical root path of the user or channel drive whose settings should change. Unicode text; percent sequences and plus signs are literal filename characters, not URL encoding.
3234
3802
  */
3235
3803
  path: string;
3236
3804
  /**
@@ -3380,9 +3948,27 @@ type UpsertOrgInvitationTokenRequest = {
3380
3948
  type UpsertTradeMerchantCallbackURLRequest = {
3381
3949
  url: string;
3382
3950
  };
3951
+ type UserDailyBudget = {
3952
+ /**
3953
+ * Aggregated usage is at or above the limit.
3954
+ */
3955
+ exceeded: boolean;
3956
+ limitMicroyuans?: number | null;
3957
+ resetsAt: string;
3958
+ spentMicroyuans: number;
3959
+ /**
3960
+ * UTC billing date (YYYY-MM-DD).
3961
+ */
3962
+ usageDate: string;
3963
+ userId: number;
3964
+ };
3383
3965
  type WorkloadCredentials = {
3384
3966
  accessToken: string;
3385
3967
  expiresAt: string;
3968
+ /**
3969
+ * Instance-bound VPC credential for the trusted network sidecar. Never exposed in the application credential file.
3970
+ */
3971
+ networkToken?: string;
3386
3972
  refreshToken: string;
3387
3973
  };
3388
3974
  type XipayNotifySuccessResponse = {
@@ -3643,6 +4229,69 @@ declare class DefaultService {
3643
4229
  agentId: string;
3644
4230
  requestBody: UpdateAgentDelegationSettingsRequest;
3645
4231
  }): CancelablePromise<Agent>;
4232
+ /**
4233
+ * List direct children or search the organization's agent directory
4234
+ * Groups precede agents, ordered by name and ID. Search covers the whole directory. Cursors are bound to the authenticated user, organization and query.
4235
+ * @returns AgentDirectoryPage Directory page
4236
+ * @throws ApiError
4237
+ */
4238
+ listAgentDirectory({ parentId, q, cursor, limit, }: {
4239
+ parentId?: string;
4240
+ q?: string;
4241
+ cursor?: string;
4242
+ limit?: number;
4243
+ }): CancelablePromise<AgentDirectoryPage>;
4244
+ /**
4245
+ * Locate an agent and its ancestors even outside loaded pages
4246
+ * @returns AgentDirectoryEntry Root-to-leaf path, ending with the agent
4247
+ * @throws ApiError
4248
+ */
4249
+ getAgentDirectoryPath({ agentId, }: {
4250
+ agentId: string;
4251
+ }): CancelablePromise<Array<AgentDirectoryEntry>>;
4252
+ /**
4253
+ * Locate a group and its ancestors
4254
+ * @returns AgentDirectoryEntry Root-to-group path
4255
+ * @throws ApiError
4256
+ */
4257
+ getAgentGroupDirectoryPath({ groupId, }: {
4258
+ groupId: string;
4259
+ }): CancelablePromise<Array<AgentDirectoryEntry>>;
4260
+ /**
4261
+ * List the authenticated user's favorite agents in the current organization
4262
+ * @returns AgentDirectoryPage Favorites page
4263
+ * @throws ApiError
4264
+ */
4265
+ listAgentFavorites({ cursor, limit, }: {
4266
+ cursor?: string;
4267
+ limit?: number;
4268
+ }): CancelablePromise<AgentDirectoryPage>;
4269
+ /**
4270
+ * Create an organization-shared agent group
4271
+ * @returns AgentDirectoryEntry Group created
4272
+ * @throws ApiError
4273
+ */
4274
+ createAgentGroup({ requestBody, }: {
4275
+ requestBody: SaveAgentGroupRequest;
4276
+ }): CancelablePromise<AgentDirectoryEntry>;
4277
+ /**
4278
+ * Dissolve a group and promote its direct children to its parent
4279
+ * Preserves agents, descendant groups, sessions and personal favorites.
4280
+ * @returns void
4281
+ * @throws ApiError
4282
+ */
4283
+ dissolveAgentGroup({ groupId, }: {
4284
+ groupId: string;
4285
+ }): CancelablePromise<void>;
4286
+ /**
4287
+ * Rename or move a group, including all descendants
4288
+ * @returns AgentDirectoryEntry Group updated
4289
+ * @throws ApiError
4290
+ */
4291
+ updateAgentGroup({ groupId, requestBody, }: {
4292
+ groupId: string;
4293
+ requestBody: SaveAgentGroupRequest;
4294
+ }): CancelablePromise<AgentDirectoryEntry>;
3646
4295
  /**
3647
4296
  * Delete agent repository
3648
4297
  * Soft delete a creator-owned agent repository. Recruited instances in other orgs keep historical data but can no longer start new work.
@@ -3683,7 +4332,7 @@ declare class DefaultService {
3683
4332
  }): CancelablePromise<AgentRepoTrdpMarkupState>;
3684
4333
  /**
3685
4334
  * Update agent repository third-party markup
3686
- * Organization owners may change the multiplier. Decreases apply immediately. Increases have five days of notice, one day for settlement fanout, and apply on day six.
4335
+ * Enterprise members with repository edit permission, or ordinary-organization owners, may change the multiplier. Decreases apply immediately. Increases have five days of notice, one day for settlement fanout, and apply on day six.
3687
4336
  * @returns AgentRepoTrdpMarkupState Third-party markup updated or scheduled
3688
4337
  * @throws ApiError
3689
4338
  */
@@ -3693,7 +4342,7 @@ declare class DefaultService {
3693
4342
  }): CancelablePromise<AgentRepoTrdpMarkupState>;
3694
4343
  /**
3695
4344
  * Cancel a pending third-party markup increase
3696
- * Organization owners may cancel during the five-day notice window. Settlement and later states are locked.
4345
+ * Enterprise members with repository edit permission, or ordinary-organization owners, may cancel during the five-day notice window. Settlement and later states are locked.
3697
4346
  * @returns AgentRepoTrdpMarkupState Increase cancelled
3698
4347
  * @throws ApiError
3699
4348
  */
@@ -3703,7 +4352,7 @@ declare class DefaultService {
3703
4352
  }): CancelablePromise<AgentRepoTrdpMarkupState>;
3704
4353
  /**
3705
4354
  * List published agent users' daily token costs
3706
- * Only owners of the publishing organization can query a currently published repository. Includes all deployments and versions, grouped by UTC settlement date and organization-scoped anonymous user UUID. Amounts are actual LLM charges for input, output and cached tokens, including session-title calls; excludes marketplace markup, tools and sandboxes. Agent clone calls belong to the clone's repository. Data is eventually consistent via RisingWave. No consumer organization IDs, numeric user IDs or profile information are returned.
4355
+ * Members with the repository token-costs:read permission (or ordinary-organization owners) can query a currently published repository. Includes all deployments and versions, grouped by UTC settlement date and organization-scoped anonymous user UUID. Amounts are actual LLM charges for input, output and cached tokens, including session-title calls; excludes marketplace markup, tools and sandboxes. Agent clone calls belong to the clone's repository. Data is eventually consistent via RisingWave. No consumer organization IDs, numeric user IDs or profile information are returned.
3707
4356
  * @returns PublishedAgentUserDailyTokenCostPage Daily token costs listed; users without recorded usage have no row.
3708
4357
  * @throws ApiError
3709
4358
  */
@@ -3790,6 +4439,47 @@ declare class DefaultService {
3790
4439
  cursor?: string;
3791
4440
  limit?: number;
3792
4441
  }): CancelablePromise<AgentSessionHistoryPage>;
4442
+ /**
4443
+ * Submit a client-side MCP tool result
4444
+ * First accepted write wins. HTTP 204 confirms storage only; near timeout the model may still receive a timeout. Duplicate submissions and calls not accepting results return 409.
4445
+ * @returns void
4446
+ * @throws ApiError
4447
+ */
4448
+ submitAgentSessionClientMcpResult({ sessionId, runId, toolCallId, requestBody, }: {
4449
+ sessionId: string;
4450
+ runId: string;
4451
+ toolCallId: string;
4452
+ requestBody: ClientMCPToolResult;
4453
+ }): CancelablePromise<void>;
4454
+ /**
4455
+ * List client-side MCP installations in a session
4456
+ * @returns ClientMCPInstallation Session client-side MCPs
4457
+ * @throws ApiError
4458
+ */
4459
+ listAgentSessionClientMcPs({ sessionId, }: {
4460
+ sessionId: string;
4461
+ }): CancelablePromise<Array<ClientMCPInstallation>>;
4462
+ /**
4463
+ * Uninstall a session client-side MCP
4464
+ * Idempotent. Uninstall affects future tool dispatch; already waiting calls may still submit their results.
4465
+ * @returns void
4466
+ * @throws ApiError
4467
+ */
4468
+ uninstallAgentSessionClientMcp({ sessionId, namespace, }: {
4469
+ sessionId: string;
4470
+ namespace: string;
4471
+ }): CancelablePromise<void>;
4472
+ /**
4473
+ * Install or replace a session client-side MCP
4474
+ * Idempotent by session and namespace. Identical definitions retain their revision. Maximum 32 client MCPs per session and 1 MiB per installation.
4475
+ * @returns ClientMCPInstallation Installed snapshot
4476
+ * @throws ApiError
4477
+ */
4478
+ installAgentSessionClientMcp({ sessionId, namespace, requestBody, }: {
4479
+ sessionId: string;
4480
+ namespace: string;
4481
+ requestBody: InstallClientMCP;
4482
+ }): CancelablePromise<ClientMCPInstallation>;
3793
4483
  /**
3794
4484
  * Compact agent session
3795
4485
  * Trigger an asynchronous context compaction run for a managed agent session
@@ -3804,7 +4494,7 @@ declare class DefaultService {
3804
4494
  }): CancelablePromise<AgentSession>;
3805
4495
  /**
3806
4496
  * Continue agent session
3807
- * Append a new user prompt to an existing managed agent session
4497
+ * Append a new user prompt to an unarchived managed agent session. Active sessions queue the input; finished, interrupted and failed sessions start a new run over the existing history.
3808
4498
  * @returns AgentSession Agent session continued
3809
4499
  * @throws ApiError
3810
4500
  */
@@ -3864,6 +4554,18 @@ declare class DefaultService {
3864
4554
  */
3865
4555
  sessionId: string;
3866
4556
  }): CancelablePromise<AgentSession>;
4557
+ /**
4558
+ * Interrupt an agent session and its descendants
4559
+ * Interrupt unarchived working or retrying sessions in the subtree rooted at sessionId, root first and then each level from top to bottom. Children are discovered after their parents are interrupted. Traverse through inactive and archived ancestors. Execution stops on the first error; earlier successful interruptions remain applied and a retry skips them.
4560
+ * @returns AgentSessionTreeActionResult All active sessions interrupted
4561
+ * @throws ApiError
4562
+ */
4563
+ interruptAgentSessionTree({ sessionId, }: {
4564
+ /**
4565
+ * UUID of the root of the session subtree.
4566
+ */
4567
+ sessionId: string;
4568
+ }): CancelablePromise<AgentSessionTreeActionResult>;
3867
4569
  /**
3868
4570
  * Update agent session LLM model
3869
4571
  * Change the model used by subsequent LLM requests in an agent session
@@ -3877,6 +4579,27 @@ declare class DefaultService {
3877
4579
  sessionId: string;
3878
4580
  requestBody: UpdateAgentSessionLlmModel;
3879
4581
  }): CancelablePromise<AgentSession>;
4582
+ /**
4583
+ * Resume an interrupted or failed agent session
4584
+ * Continue unfinished work in an unarchived interrupted or failed session without adding a user prompt. Starts a new run linked to the stopped run, preserving its history and completed tool results. Already running or otherwise ineligible sessions return 409.
4585
+ * @returns AgentSession Recovery accepted
4586
+ * @throws ApiError
4587
+ */
4588
+ resumeAgentSession({ sessionId, }: {
4589
+ sessionId: string;
4590
+ }): CancelablePromise<AgentSession>;
4591
+ /**
4592
+ * Resume an agent session and its descendants
4593
+ * Resume unarchived interrupted or failed sessions in the subtree rooted at sessionId, deepest level first and root last. Traverse through inactive and archived ancestors. Other session states are skipped. Each resume uses the existing recovery, model, permission and quota checks. Execution stops on the first error; earlier successful resumes remain applied and a retry skips them.
4594
+ * @returns AgentSessionTreeActionResult All eligible sessions resumed
4595
+ * @throws ApiError
4596
+ */
4597
+ resumeAgentSessionTree({ sessionId, }: {
4598
+ /**
4599
+ * UUID of the root of the session subtree.
4600
+ */
4601
+ sessionId: string;
4602
+ }): CancelablePromise<AgentSessionTreeActionResult>;
3880
4603
  /**
3881
4604
  * Revoke the active agent session share
3882
4605
  * Invalidate the current share link immediately.
@@ -3916,6 +4639,37 @@ declare class DefaultService {
3916
4639
  rotateAgentSessionShare({ sessionId, }: {
3917
4640
  sessionId: string;
3918
4641
  }): CancelablePromise<SharedAgentSessionToken>;
4642
+ /**
4643
+ * Ask an ephemeral question about a session
4644
+ * Replays the latest forkable context once, with tool calls disabled. Does not create a session, run, or session event. Usage is billed separately as side_query.
4645
+ * @returns SideQueryResponse Answer and provider token usage
4646
+ * @throws ApiError
4647
+ */
4648
+ sideQueryAgentSession({ sessionId, requestBody, }: {
4649
+ sessionId: string;
4650
+ requestBody: SideQueryRequest;
4651
+ }): CancelablePromise<SideQueryResponse>;
4652
+ /**
4653
+ * List current session subscriptions
4654
+ * Read non-cancelled subscriptions from the primary database, ordered by creation time and ID. Refresh explicitly to see changes.
4655
+ * @returns SessionSubscriptionPage Current subscriptions; cancelled subscriptions are excluded.
4656
+ * @throws ApiError
4657
+ */
4658
+ listAgentSessionSubscriptions({ sessionId, cursor, limit, }: {
4659
+ sessionId: string;
4660
+ cursor?: string;
4661
+ limit?: number;
4662
+ }): CancelablePromise<SessionSubscriptionPage>;
4663
+ /**
4664
+ * Rename agent session
4665
+ * Change the title of a session owned by the current user in the current organization, including archived sessions. A manually set title is preserved when automatic title generation finishes.
4666
+ * @returns AgentSession Agent session renamed
4667
+ * @throws ApiError
4668
+ */
4669
+ updateAgentSessionTitle({ sessionId, requestBody, }: {
4670
+ sessionId: string;
4671
+ requestBody: UpdateAgentSessionTitle;
4672
+ }): CancelablePromise<AgentSession>;
3919
4673
  /**
3920
4674
  * Get agent session todo list
3921
4675
  * Get the persisted todo list for a managed agent session ordered by ordinal ascending
@@ -4046,6 +4800,31 @@ declare class DefaultService {
4046
4800
  agentId: string;
4047
4801
  deviceId: string;
4048
4802
  }): CancelablePromise<void>;
4803
+ /**
4804
+ * Remove the authenticated user's favorite (idempotent)
4805
+ * @returns void
4806
+ * @throws ApiError
4807
+ */
4808
+ removeAgentFavorite({ agentId, }: {
4809
+ agentId: string;
4810
+ }): CancelablePromise<void>;
4811
+ /**
4812
+ * Favorite an agent for the authenticated user (idempotent)
4813
+ * @returns void
4814
+ * @throws ApiError
4815
+ */
4816
+ addAgentFavorite({ agentId, }: {
4817
+ agentId: string;
4818
+ }): CancelablePromise<void>;
4819
+ /**
4820
+ * Move an agent to a group or the root
4821
+ * @returns void
4822
+ * @throws ApiError
4823
+ */
4824
+ moveAgentToGroup({ agentId, requestBody, }: {
4825
+ agentId: string;
4826
+ requestBody: MoveAgentToGroupRequest;
4827
+ }): CancelablePromise<void>;
4049
4828
  /**
4050
4829
  * Publish agent
4051
4830
  * Set the confirmed third-party token multiplier and publish the agent's main factory settings so other orgs can instantiate it.
@@ -4224,7 +5003,7 @@ declare class DefaultService {
4224
5003
  */
4225
5004
  agentId: string;
4226
5005
  /**
4227
- * Inclusive upper bound for session creation time as Unix microseconds. Omit to start from the newest sessions.
5006
+ * Inclusive upper bound for lastInputAt as Unix microseconds. Omit to start from the most recently used sessions. Use session-history for timestamp-and-ID cursor pagination.
4228
5007
  */
4229
5008
  to?: number;
4230
5009
  /**
@@ -4236,6 +5015,23 @@ declare class DefaultService {
4236
5015
  */
4237
5016
  invokedByUserScheduledTask?: boolean;
4238
5017
  }): CancelablePromise<Array<AgentSession>>;
5018
+ /**
5019
+ * Read agent MCP and tool whitelists
5020
+ * @returns AgentToolSettingsResponse Agent tool settings
5021
+ * @throws ApiError
5022
+ */
5023
+ getAgentToolSettings({ agentId, }: {
5024
+ agentId: string;
5025
+ }): CancelablePromise<AgentToolSettingsResponse>;
5026
+ /**
5027
+ * Update agent MCP and tool whitelists
5028
+ * @returns AgentToolSettingsResponse Agent tool settings
5029
+ * @throws ApiError
5030
+ */
5031
+ updateAgentToolSettings({ agentId, requestBody, }: {
5032
+ agentId: string;
5033
+ requestBody: AgentToolSettings;
5034
+ }): CancelablePromise<AgentToolSettingsResponse>;
4239
5035
  /**
4240
5036
  * Get recruited agent price confirmation status
4241
5037
  * All members of the consumer organization can read this status for the session price-change banner.
@@ -4247,7 +5043,7 @@ declare class DefaultService {
4247
5043
  }): CancelablePromise<AgentTrdpMarkupStatus>;
4248
5044
  /**
4249
5045
  * Confirm a recruited agent price
4250
- * Only an owner of the consumer organization can raise the accepted maximum price and clear a price-caused system pause.
5046
+ * Enterprise members with agent edit permission, or ordinary-organization owners, can raise the accepted maximum price and clear a price-caused system pause.
4251
5047
  * @returns AgentTrdpMarkupStatus Price confirmed
4252
5048
  * @throws ApiError
4253
5049
  */
@@ -4385,9 +5181,43 @@ declare class DefaultService {
4385
5181
  refreshOrgToken({ requestBody, }: {
4386
5182
  requestBody: RefreshTokenRequest;
4387
5183
  }): CancelablePromise<OrgAuthCredentials>;
5184
+ /**
5185
+ * List preaggregated member and functional drive capacity and daily access usage for the authenticated organization
5186
+ * @returns CloudDriveCapacity Drives in ascending root ID order with current logical bytes, the last sample and the combined access fee for the selected UTC day
5187
+ * @throws ApiError
5188
+ */
5189
+ listBillingCloudDriveCapacities({ after, limit, usageDay, driveKind, }: {
5190
+ /**
5191
+ * Last root ID from the previous page
5192
+ */
5193
+ after?: string;
5194
+ limit?: number;
5195
+ /**
5196
+ * UTC usage day for access fees and the last capacity sample. Defaults to today.
5197
+ */
5198
+ usageDay?: string;
5199
+ /**
5200
+ * Filter before cursor pagination. Omit for all drives.
5201
+ */
5202
+ driveKind?: BillingCloudDriveKind;
5203
+ }): CancelablePromise<Array<CloudDriveCapacity>>;
5204
+ /**
5205
+ * Get the authenticated organization's current logical storage total and breakdown by drive kind
5206
+ * @returns CloudDriveCapacitySummary One current organization snapshot, independent of pagination and usage day
5207
+ * @throws ApiError
5208
+ */
5209
+ getBillingCloudDriveCapacitySummary(): CancelablePromise<CloudDriveCapacitySummary>;
5210
+ /**
5211
+ * Read the current organization's cloud drive invoice for one UTC issue date
5212
+ * @returns CloudDriveInvoiceItem Incremental charges and quantities on this invoice, including late adjustments
5213
+ * @throws ApiError
5214
+ */
5215
+ getBillingCloudDriveInvoice({ invoiceDay, }: {
5216
+ invoiceDay: string;
5217
+ }): CancelablePromise<Array<CloudDriveInvoiceItem>>;
4388
5218
  /**
4389
5219
  * Get billing credits
4390
- * Get current credit balances for the current org.
5220
+ * Get the current organization's credit balances, lifetime spending, and invoiced and available invoice amounts.
4391
5221
  * @returns BillingCredit Billing credits retrieved
4392
5222
  * @throws ApiError
4393
5223
  */
@@ -4821,7 +5651,7 @@ declare class DefaultService {
4821
5651
  */
4822
5652
  getCloudDrive({ path, }: {
4823
5653
  /**
4824
- * Canonical path to inspect. Directories return JSON children; files redirect to a temporary download URL.
5654
+ * Canonical path to inspect. Directories return JSON children; files redirect to a temporary download URL. Use Unicode filename text verbatim, including percent and plus signs. Encode only the outer HTTP query parameter.
4825
5655
  */
4826
5656
  path: string;
4827
5657
  }): CancelablePromise<(Array<CloudDriveFnode> | Response)>;
@@ -4851,7 +5681,7 @@ declare class DefaultService {
4851
5681
  */
4852
5682
  downloadCloudDrive({ path, }: {
4853
5683
  /**
4854
- * Canonical file path to download.
5684
+ * Canonical file path to download. Use Unicode filename text verbatim, including percent and plus signs. Encode only the outer HTTP query parameter.
4855
5685
  */
4856
5686
  path: string;
4857
5687
  }): CancelablePromise<Response>;
@@ -4890,7 +5720,7 @@ declare class DefaultService {
4890
5720
  */
4891
5721
  getCloudDriveSettings({ path, }: {
4892
5722
  /**
4893
- * Canonical root path of the user or channel drive whose settings should be returned.
5723
+ * Canonical root path of the user or channel drive whose settings should be returned. Use Unicode filename text verbatim, including percent and plus signs. Encode only the outer HTTP query parameter.
4894
5724
  */
4895
5725
  path: string;
4896
5726
  }): CancelablePromise<CloudDriveSettings>;
@@ -4911,19 +5741,19 @@ declare class DefaultService {
4911
5741
  */
4912
5742
  statCloudDrive({ path, }: {
4913
5743
  /**
4914
- * Canonical file or directory path, including session.drive paths.
5744
+ * Canonical file or directory path, including session.drive paths. Use Unicode filename text verbatim, including percent and plus signs. Encode only the outer HTTP query parameter.
4915
5745
  */
4916
5746
  path: string;
4917
5747
  }): CancelablePromise<CloudDriveFnode>;
4918
5748
  /**
4919
5749
  * Upload cloud drive file
4920
- * Upload a file into a canonical cloud drive destination path. Query parameters are signed; the multipart body is sent with unsigned payload mode and the file content integrity is checked with the signed sha256 query parameter.
5750
+ * Stream a file of at most 5 GiB (5368709120 bytes) into a canonical cloud drive destination path without buffering the complete payload in application memory or on disk. Query parameters are signed; the multipart body is sent with unsigned payload mode and the file content integrity is checked with the signed sha256 query parameter. Interrupted uploads must be restarted from the beginning.
4921
5751
  * @returns CloudDriveFnode File uploaded
4922
5752
  * @throws ApiError
4923
5753
  */
4924
5754
  uploadCloudDriveFile({ path, sha256, formData, overwrite, skip, ifMatch, }: {
4925
5755
  /**
4926
- * Canonical destination path where the uploaded file should be written.
5756
+ * Canonical destination path where the uploaded file should be written. Use Unicode filename text verbatim, including percent and plus signs. Encode only the outer HTTP query parameter.
4927
5757
  */
4928
5758
  path: string;
4929
5759
  /**
@@ -4946,7 +5776,7 @@ declare class DefaultService {
4946
5776
  }): CancelablePromise<CloudDriveFnode>;
4947
5777
  /**
4948
5778
  * Upload cloud drive file into user tmp
4949
- * Stream a file of at most 512 MiB into the authenticated user's cloud-drive temporary area without buffering the complete payload in application memory or on disk. The backend allocates a unique dated tmp path so clients do not need to generate one. Interrupted uploads must be restarted from the beginning.
5779
+ * Stream a file of at most 5 GiB (5368709120 bytes) into the authenticated user's cloud-drive temporary area without buffering the complete payload in application memory or on disk. The backend allocates a unique dated tmp path so clients do not need to generate one. Interrupted uploads must be restarted from the beginning.
4950
5780
  * @returns CloudDriveFnode File uploaded into tmp
4951
5781
  * @throws ApiError
4952
5782
  */
@@ -4957,13 +5787,72 @@ declare class DefaultService {
4957
5787
  sha256: string;
4958
5788
  formData: UploadCloudDriveFileRequest;
4959
5789
  }): CancelablePromise<CloudDriveFnode>;
5790
+ /**
5791
+ * List cloud sandboxes
5792
+ * @returns CloudSandbox Organization cloud sandboxes visible to the caller
5793
+ * @throws ApiError
5794
+ */
5795
+ listCloudSandboxes(): CancelablePromise<Array<CloudSandbox>>;
5796
+ /**
5797
+ * Create and start a persistent cloud sandbox
5798
+ * @returns CloudSandbox Creation accepted
5799
+ * @throws ApiError
5800
+ */
5801
+ createCloudSandbox({ requestBody, }: {
5802
+ requestBody: CreateCloudSandboxRequest;
5803
+ }): CancelablePromise<CloudSandbox>;
5804
+ /**
5805
+ * Retire a cloud sandbox and release its resources
5806
+ * @returns any Deletion accepted
5807
+ * @throws ApiError
5808
+ */
5809
+ deleteCloudSandbox({ sandboxId, }: {
5810
+ sandboxId: string;
5811
+ }): CancelablePromise<any>;
5812
+ /**
5813
+ * Get a cloud sandbox
5814
+ * @returns CloudSandbox Cloud sandbox
5815
+ * @throws ApiError
5816
+ */
5817
+ getCloudSandbox({ sandboxId, }: {
5818
+ sandboxId: string;
5819
+ }): CancelablePromise<CloudSandbox>;
5820
+ /**
5821
+ * Edit the display name
5822
+ * @returns CloudSandbox Updated cloud sandbox
5823
+ * @throws ApiError
5824
+ */
5825
+ renameCloudSandbox({ sandboxId, requestBody, }: {
5826
+ sandboxId: string;
5827
+ requestBody: RenameCloudSandboxRequest;
5828
+ }): CancelablePromise<CloudSandbox>;
5829
+ /**
5830
+ * Checkpoint a cloud sandbox into deep sleep
5831
+ * @returns any Pause accepted
5832
+ * @throws ApiError
5833
+ */
5834
+ pauseCloudSandbox({ sandboxId, }: {
5835
+ sandboxId: string;
5836
+ }): CancelablePromise<any>;
5837
+ /**
5838
+ * Explicitly restore a cloud sandbox from deep sleep
5839
+ * @returns any Resume accepted
5840
+ * @throws ApiError
5841
+ */
5842
+ resumeCloudSandbox({ sandboxId, }: {
5843
+ sandboxId: string;
5844
+ }): CancelablePromise<any>;
4960
5845
  /**
4961
5846
  * List consent forms
4962
5847
  * List consent forms received by the authenticated user in reverse chronological order
4963
5848
  * @returns ConsentForm Consent forms listed
4964
5849
  * @throws ApiError
4965
5850
  */
4966
- listConsentForms({ offset, limit, }: {
5851
+ listConsentForms({ pendingOnly, offset, limit, }: {
5852
+ /**
5853
+ * Return only pending, unexpired forms before applying pagination.
5854
+ */
5855
+ pendingOnly?: boolean;
4967
5856
  /**
4968
5857
  * Zero-based offset into the user's consent-form list. Defaults to 0.
4969
5858
  */
@@ -5150,7 +6039,7 @@ declare class DefaultService {
5150
6039
  listDevices(): CancelablePromise<Array<Device>>;
5151
6040
  /**
5152
6041
  * Register device
5153
- * Register a new device. Organization settings may disable registration for members; the organization owner is exempt. Existing device connections and usage are unchanged.
6042
+ * Register a new device. Enterprise organizations require devices:create. Ordinary organization settings may disable registration for members; the organization owner is exempt. Existing device connections and usage are unchanged.
5154
6043
  * @returns RegisterDeviceResult Device registered
5155
6044
  * @throws ApiError
5156
6045
  */
@@ -5224,6 +6113,16 @@ declare class DefaultService {
5224
6113
  deviceId: string;
5225
6114
  requestBody: ReplaceDevicePortForwardsRequest;
5226
6115
  }): CancelablePromise<DevicePortForwardSnapshot>;
6116
+ /**
6117
+ * Set device access scope
6118
+ * Set a device to organization-visible or private. In non-enterprise organizations only the device owner can change its scope. Enterprise organizations use the existing device access permission, subject to device visibility; ownership does not bypass enterprise permissions. Setting orgScope to false saves private visibility before requesting disconnection of the current device tunnel. Repeating a private request retries disconnection. Device credentials remain valid for reconnecting.
6119
+ * @returns Device Device access scope updated and, for private scope, tunnel disconnection requested if a tunnel record exists. This does not acknowledge actual closure.
6120
+ * @throws ApiError
6121
+ */
6122
+ setDeviceScope({ deviceId, requestBody, }: {
6123
+ deviceId: string;
6124
+ requestBody: SetDeviceScopeRequest;
6125
+ }): CancelablePromise<Device>;
5227
6126
  /**
5228
6127
  * Rotate device token
5229
6128
  * @returns RotateDeviceTokenResult Device token rotated
@@ -5363,7 +6262,7 @@ declare class DefaultService {
5363
6262
  }): CancelablePromise<MCPManageResult>;
5364
6263
  /**
5365
6264
  * Update current organization
5366
- * Update the current organization's profile. Only the organization owner can update it.
6265
+ * Update the current organization's profile. An authorized enterprise member or an ordinary-organization owner can update it.
5367
6266
  * @returns AccountOrg Current organization updated
5368
6267
  * @throws ApiError
5369
6268
  */
@@ -5447,7 +6346,7 @@ declare class DefaultService {
5447
6346
  }): CancelablePromise<OrgCloudSkillSlugAvailability>;
5448
6347
  /**
5449
6348
  * Get org invitation token
5450
- * Get the current organization invitation token. Only the org owner can read it.
6349
+ * Get the current organization invitation token. An authorized enterprise member or an ordinary-organization owner can read it.
5451
6350
  * @returns OrgInvitationToken Token exists
5452
6351
  * @throws ApiError
5453
6352
  */
@@ -5485,7 +6384,7 @@ declare class DefaultService {
5485
6384
  */
5486
6385
  downloadOrgPublicCloudDrive({ path, disposition, }: {
5487
6386
  /**
5488
- * Canonical organization-public file path to download.
6387
+ * Canonical organization-public file path to download. Use Unicode filename text verbatim, including percent and plus signs. Encode only the outer HTTP query parameter.
5489
6388
  */
5490
6389
  path: string;
5491
6390
  /**
@@ -5501,13 +6400,13 @@ declare class DefaultService {
5501
6400
  */
5502
6401
  listOrgUsers({ includeInactive, }: {
5503
6402
  /**
5504
- * Include deactivated managed accounts. Only the organization owner can request this.
6403
+ * Include deactivated managed accounts. An authorized enterprise member or an ordinary-organization owner can request this.
5505
6404
  */
5506
6405
  includeInactive?: boolean;
5507
6406
  }): CancelablePromise<Array<OrgUser>>;
5508
6407
  /**
5509
6408
  * Create an organization-managed account
5510
- * Only the current organization's owner may provision an account while its enterprise subscription is active. Enterprise credentials also require rn:orgs:<orgId>:users:create; ownership does not bypass RN checks. Creates an account without a phone number, allocates an enterprise seat, and returns a random temporary password once. The user must change it on first login. Never log the response.
6409
+ * Requires rn:orgs:<orgId>:users:create in an enterprise organization with an active subscription. Ordinary organizations retain the owner fallback, but still require an active subscription to provision accounts. Creates an account without a phone number, allocates an enterprise seat, and returns a random temporary password once. The user must change it on first login. Never log the response.
5511
6410
  * @returns ManagedAccountCredentials Account created; save the temporary password before leaving this response
5512
6411
  * @throws ApiError
5513
6412
  */
@@ -5515,53 +6414,103 @@ declare class DefaultService {
5515
6414
  requestBody: CreateManagedAccountRequest;
5516
6415
  }): CancelablePromise<ManagedAccountCredentials>;
5517
6416
  /**
5518
- * Deactivate org user
5519
- * Deactivate an existing org user. Only the org owner can deactivate users.
6417
+ * Deactivate org user by qualified name
6418
+ * Deactivate a human organization member. To deactivate a service user, use DELETE /service-users/{namespace}/{username}.
5520
6419
  * @returns void
5521
6420
  * @throws ApiError
5522
6421
  */
5523
- deleteOrgUser({ userId, }: {
5524
- /**
5525
- * Numeric user ID of the org member to delete.
5526
- */
5527
- userId: number;
6422
+ deleteOrgUserByName({ namespace, username, }: {
6423
+ namespace: string;
6424
+ username: string;
5528
6425
  }): CancelablePromise<void>;
5529
6426
  /**
5530
- * Update a managed member's display name
6427
+ * Update a managed member's display name by qualified name
5531
6428
  * @returns OrgUser Managed member updated
5532
6429
  * @throws ApiError
5533
6430
  */
5534
- updateManagedOrgUser({ userId, requestBody, }: {
5535
- userId: number;
6431
+ updateManagedOrgUserByName({ namespace, username, requestBody, }: {
6432
+ namespace: string;
6433
+ username: string;
5536
6434
  requestBody: UpdateCurrentOrgUserRequest;
5537
6435
  }): CancelablePromise<OrgUser>;
5538
6436
  /**
5539
- * Deactivate a managed account
5540
- * Owner only. Stops login, revokes credentials and releases its occupied seat. Repeated deactivation preserves the original cooldown start.
6437
+ * Deactivate a managed account by qualified name
6438
+ * Requires the operation RN in enterprise organizations; ordinary organizations require the owner. Stops login, revokes credentials and releases its occupied seat. Repeated deactivation preserves the original cooldown start.
5541
6439
  * @returns void
5542
6440
  * @throws ApiError
5543
6441
  */
5544
- deactivateManagedOrgUser({ userId, }: {
5545
- userId: number;
6442
+ deactivateManagedOrgUserByName({ namespace, username, }: {
6443
+ namespace: string;
6444
+ username: string;
5546
6445
  }): CancelablePromise<void>;
5547
6446
  /**
5548
- * Reactivate a managed account
5549
- * Owner only, at least 24 hours after deactivation. Rechecks quotas and enterprise seats transactionally. Does not reset the password or automatically log in the user.
6447
+ * Reactivate a managed account by qualified name
6448
+ * Requires the operation RN in enterprise organizations, or the owner in ordinary organizations, at least 24 hours after deactivation. Rechecks quotas and enterprise seats transactionally. Does not reset the password or automatically log in the user.
5550
6449
  * @returns void
5551
6450
  * @throws ApiError
5552
6451
  */
5553
- reactivateManagedOrgUser({ userId, }: {
5554
- userId: number;
6452
+ reactivateManagedOrgUserByName({ namespace, username, }: {
6453
+ namespace: string;
6454
+ username: string;
5555
6455
  }): CancelablePromise<void>;
5556
6456
  /**
5557
- * Reset a managed account's password
5558
- * Owner only. Generates a temporary password and revokes existing credentials without changing activation status.
6457
+ * Reset a managed account's password by qualified name
6458
+ * Requires the operation RN in enterprise organizations; ordinary organizations require the owner. Generates a temporary password and revokes existing credentials without changing activation status.
5559
6459
  * @returns ManagedPasswordReset Temporary password generated
5560
6460
  * @throws ApiError
5561
6461
  */
5562
- resetManagedOrgUserPassword({ userId, }: {
5563
- userId: number;
5564
- }): CancelablePromise<ManagedPasswordReset>;
6462
+ resetManagedOrgUserPasswordByName({ namespace, username, }: {
6463
+ namespace: string;
6464
+ username: string;
6465
+ }): CancelablePromise<ManagedPasswordReset>;
6466
+ /**
6467
+ * Deactivate org user
6468
+ * Deactivate a human organization member. To deactivate a service user, use DELETE /service-users/{namespace}/{username}.
6469
+ * @returns void
6470
+ * @throws ApiError
6471
+ */
6472
+ deleteOrgUser({ userId, }: {
6473
+ /**
6474
+ * Numeric ID of the human member to deactivate.
6475
+ */
6476
+ userId: number;
6477
+ }): CancelablePromise<void>;
6478
+ /**
6479
+ * Update a managed member's display name
6480
+ * @returns OrgUser Managed member updated
6481
+ * @throws ApiError
6482
+ */
6483
+ updateManagedOrgUser({ userId, requestBody, }: {
6484
+ userId: number;
6485
+ requestBody: UpdateCurrentOrgUserRequest;
6486
+ }): CancelablePromise<OrgUser>;
6487
+ /**
6488
+ * Deactivate a managed account
6489
+ * Requires the operation RN in enterprise organizations; ordinary organizations require the owner. Stops login, revokes credentials and releases its occupied seat. Repeated deactivation preserves the original cooldown start.
6490
+ * @returns void
6491
+ * @throws ApiError
6492
+ */
6493
+ deactivateManagedOrgUser({ userId, }: {
6494
+ userId: number;
6495
+ }): CancelablePromise<void>;
6496
+ /**
6497
+ * Reactivate a managed account
6498
+ * Requires the operation RN in enterprise organizations, or the owner in ordinary organizations, at least 24 hours after deactivation. Rechecks quotas and enterprise seats transactionally. Does not reset the password or automatically log in the user.
6499
+ * @returns void
6500
+ * @throws ApiError
6501
+ */
6502
+ reactivateManagedOrgUser({ userId, }: {
6503
+ userId: number;
6504
+ }): CancelablePromise<void>;
6505
+ /**
6506
+ * Reset a managed account's password
6507
+ * Requires the operation RN in enterprise organizations; ordinary organizations require the owner. Generates a temporary password and revokes existing credentials without changing activation status.
6508
+ * @returns ManagedPasswordReset Temporary password generated
6509
+ * @throws ApiError
6510
+ */
6511
+ resetManagedOrgUserPassword({ userId, }: {
6512
+ userId: number;
6513
+ }): CancelablePromise<ManagedPasswordReset>;
5565
6514
  /**
5566
6515
  * Update current org user
5567
6516
  * Update profile fields for the current org user.
@@ -5582,14 +6531,14 @@ declare class DefaultService {
5582
6531
  }): CancelablePromise<OrgUser>;
5583
6532
  /**
5584
6533
  * Get organization agent-session settings
5585
- * Get the current organization's inactivity archive timeout. Only the organization owner can read this setting.
6534
+ * Get the current organization's inactivity archive timeout. An authorized enterprise member or an ordinary-organization owner can read this setting.
5586
6535
  * @returns OrgAgentSessionSettings Agent-session settings returned
5587
6536
  * @throws ApiError
5588
6537
  */
5589
6538
  getOrgAgentSessionSettings(): CancelablePromise<OrgAgentSessionSettings>;
5590
6539
  /**
5591
6540
  * Update organization agent-session settings
5592
- * Set the inactivity archive timeout for all sessions in the current organization. Only the organization owner can update this setting.
6541
+ * Set the inactivity archive timeout for all sessions in the current organization. An authorized enterprise member or an ordinary-organization owner can update this setting.
5593
6542
  * @returns OrgAgentSessionSettings Agent-session settings updated
5594
6543
  * @throws ApiError
5595
6544
  */
@@ -5614,7 +6563,7 @@ declare class DefaultService {
5614
6563
  getOrgEnterprise(): CancelablePromise<OrgEnterpriseSubscription>;
5615
6564
  /**
5616
6565
  * Activate organization enterprise subscription
5617
- * Activate enterprise billing, or restore automatic renewal for an active paid period. Only the organization owner can perform this operation.
6566
+ * Activate enterprise billing, or restore automatic renewal for an active paid period. An authorized enterprise member or an ordinary-organization owner can perform this operation.
5618
6567
  * @returns OrgEnterpriseSubscription Enterprise subscription activated or automatic renewal restored
5619
6568
  * @throws ApiError
5620
6569
  */
@@ -5665,21 +6614,21 @@ declare class DefaultService {
5665
6614
  }): CancelablePromise<EnterprisePermissionPolicy>;
5666
6615
  /**
5667
6616
  * Cancel organization enterprise renewal
5668
- * Stop automatic renewal after the current paid period. The organization remains enterprise until the period ends. Only the organization owner can perform this operation.
6617
+ * Stop automatic renewal after the current paid period. The organization remains enterprise until the period ends. An authorized enterprise member or an ordinary-organization owner can perform this operation.
5669
6618
  * @returns OrgEnterpriseSubscription Automatic renewal cancelled
5670
6619
  * @throws ApiError
5671
6620
  */
5672
6621
  cancelOrgEnterpriseRenewal(): CancelablePromise<OrgEnterpriseSubscription>;
5673
6622
  /**
5674
6623
  * Get organization feature settings
5675
- * Read organization settings and the current user's effective permissions. All settings default to allowed. Owners bypass recruitment and device registration restrictions only.
6624
+ * Read organization settings and the current user's effective permissions. All settings default to allowed. Enterprise recruitment and device registration use RN permissions instead of the legacy member switches; ordinary-organization owners bypass those two switches. Publishing and sharing switches apply to everyone.
5676
6625
  * @returns OrgFeatureSettingsResponse Organization feature settings and effective permissions
5677
6626
  * @throws ApiError
5678
6627
  */
5679
6628
  getOrgFeatureSettings(): CancelablePromise<OrgFeatureSettingsResponse>;
5680
6629
  /**
5681
6630
  * Update organization feature settings
5682
- * Owner only. Replace all four settings. Restrictions apply to subsequent recruitment, device registration, publishing, and share creation or rotation requests. Existing agents, devices, publications, and shares remain unchanged.
6631
+ * Requires the operation RN in enterprise organizations; ordinary organizations require the owner. Replace all four settings. Restrictions apply to subsequent recruitment, device registration, publishing, and share creation or rotation requests. Existing agents, devices, publications, and shares remain unchanged.
5683
6632
  * @returns OrgFeatureSettingsResponse Organization feature settings updated
5684
6633
  * @throws ApiError
5685
6634
  */
@@ -5774,13 +6723,20 @@ declare class DefaultService {
5774
6723
  getOrgLlmSettings(): CancelablePromise<OrgLlmSettings>;
5775
6724
  /**
5776
6725
  * Replace organization model settings
5777
- * Only the organization owner may change these settings. Omitted or null overrides restore the corresponding default. Existing agents, sessions, and forks are not migrated.
6726
+ * Enterprise members with llm-model-settings:edit, or ordinary-organization owners, may change these settings. Omitted or null overrides restore the corresponding default. Existing agents, sessions, and forks are not migrated.
5778
6727
  * @returns OrgLlmSettings Organization model settings saved
5779
6728
  * @throws ApiError
5780
6729
  */
5781
6730
  updateOrgLlmSettings({ requestBody, }: {
5782
6731
  requestBody: OrgLlmSettings;
5783
6732
  }): CancelablePromise<OrgLlmSettings>;
6733
+ /**
6734
+ * Get the current user's organization authorization
6735
+ * Returns the authenticated user's effective enterprise rules, including group and policy grants and denies, or ordinary-organization owner fallback. Subscription expiry does not disable enterprise authorization. This read-only response never initializes grants and cannot inspect another user. Operations always recheck authorization independently.
6736
+ * @returns CurrentOrgPermissions Current organization authorization
6737
+ * @throws ApiError
6738
+ */
6739
+ getCurrentOrgPermissions(): CancelablePromise<CurrentOrgPermissions>;
5784
6740
  /**
5785
6741
  * List organization quotas
5786
6742
  * List effective quota limits and current usage for the authenticated organization.
@@ -5788,6 +6744,88 @@ declare class DefaultService {
5788
6744
  * @throws ApiError
5789
6745
  */
5790
6746
  listOrgQuotas(): CancelablePromise<QuotaListResponse>;
6747
+ /**
6748
+ * Get an enterprise member's daily usage budget by qualified name
6749
+ * Uses the current UTC billing date and all usage categories from the billing aggregates. Only Agent/model admission is limited. Subscription expiry does not remove configured budgets.
6750
+ * @returns UserDailyBudget Current budget and aggregated usage
6751
+ * @throws ApiError
6752
+ */
6753
+ getUserDailyBudgetByName({ namespace, username, }: {
6754
+ namespace: string;
6755
+ username: string;
6756
+ }): CancelablePromise<UserDailyBudget>;
6757
+ /**
6758
+ * Set an enterprise member's daily usage budget by qualified name
6759
+ * Zero blocks new Agent/model work; omit limitMicroyuans or set it to null for unlimited usage. Settings propagate to other workers within 7 seconds while dependencies are healthy. Usage checks additionally cache billing aggregates for at most 5 seconds. RisingWave lag and already admitted concurrent calls can cause overspending. No automatic replay of stopped work occurs at the next UTC day.
6760
+ * @returns UserDailyBudget Saved budget and current aggregated usage
6761
+ * @throws ApiError
6762
+ */
6763
+ setUserDailyBudgetByName({ namespace, username, requestBody, }: {
6764
+ namespace: string;
6765
+ username: string;
6766
+ requestBody: SetUserDailyBudgetRequest;
6767
+ }): CancelablePromise<UserDailyBudget>;
6768
+ /**
6769
+ * Get a member's bound policy IDs by qualified name
6770
+ * Requires an enterprise organization and the corresponding enterprise RN permission.
6771
+ * @returns EnterprisePermissionPolicyBindings Get a member's bound policy IDs
6772
+ * @throws ApiError
6773
+ */
6774
+ getUserEnterprisePermissionPoliciesByName({ namespace, username, }: {
6775
+ namespace: string;
6776
+ username: string;
6777
+ }): CancelablePromise<EnterprisePermissionPolicyBindings>;
6778
+ /**
6779
+ * Replace a member's policy bindings by qualified name
6780
+ * Requires an enterprise organization and the corresponding enterprise RN permission. Atomically replaces all bindings without changing direct user rules. Empty policyIds detaches every policy. Subsequent login or renewal does not restore detached policies.
6781
+ * @returns EnterprisePermissionPolicyBindings Replace a member's policy bindings
6782
+ * @throws ApiError
6783
+ */
6784
+ replaceUserEnterprisePermissionPoliciesByName({ namespace, username, requestBody, }: {
6785
+ namespace: string;
6786
+ username: string;
6787
+ requestBody: EnterprisePermissionPolicyBindings;
6788
+ }): CancelablePromise<EnterprisePermissionPolicyBindings>;
6789
+ /**
6790
+ * Get a member's enterprise permission rules by qualified name
6791
+ * Requires the corresponding enterprise RN permission. Returns direct user rules only; bound policy rules are evaluated separately. Existing resource access checks still apply.
6792
+ * @returns EnterprisePermissionRules Current rules
6793
+ * @throws ApiError
6794
+ */
6795
+ getUserEnterprisePermissionsByName({ namespace, username, }: {
6796
+ namespace: string;
6797
+ username: string;
6798
+ }): CancelablePromise<EnterprisePermissionRules>;
6799
+ /**
6800
+ * Replace a member's enterprise permission rules by qualified name
6801
+ * Requires the corresponding enterprise RN permission. Atomically replaces direct user rules without changing policy bindings. Empty rules clear direct grants and denies; bound policies still apply. Deny always overrides allow across all sources. No token refresh is required.
6802
+ * @returns EnterprisePermissionRules Updated rules
6803
+ * @throws ApiError
6804
+ */
6805
+ replaceUserEnterprisePermissionsByName({ namespace, username, requestBody, }: {
6806
+ namespace: string;
6807
+ username: string;
6808
+ requestBody: EnterprisePermissionRules;
6809
+ }): CancelablePromise<EnterprisePermissionRules>;
6810
+ /**
6811
+ * Get an enterprise member's daily usage budget
6812
+ * Uses the current UTC billing date and all usage categories from the billing aggregates. Only Agent/model admission is limited. Subscription expiry does not remove configured budgets.
6813
+ * @returns UserDailyBudget Current budget and aggregated usage
6814
+ * @throws ApiError
6815
+ */
6816
+ getUserDailyBudget({ userId, }: {
6817
+ userId: number;
6818
+ }): CancelablePromise<UserDailyBudget>;
6819
+ /**
6820
+ * Set an enterprise member's daily usage budget
6821
+ * Zero blocks new Agent/model work; omit limitMicroyuans or set it to null for unlimited usage. Settings propagate to other workers within 7 seconds while dependencies are healthy. Usage checks additionally cache billing aggregates for at most 5 seconds. RisingWave lag and already admitted concurrent calls can cause overspending. No automatic replay of stopped work occurs at the next UTC day.
6822
+ * @returns UserDailyBudget Saved budget and current aggregated usage
6823
+ * @throws ApiError
6824
+ */
6825
+ setUserDailyBudget({ userId, requestBody, }: {
6826
+ userId: number;
6827
+ requestBody: SetUserDailyBudgetRequest;
6828
+ }): CancelablePromise<UserDailyBudget>;
5791
6829
  /**
5792
6830
  * Get a member's bound policy IDs
5793
6831
  * Requires an enterprise organization and the corresponding enterprise RN permission.
@@ -5878,6 +6916,26 @@ declare class DefaultService {
5878
6916
  publishOrgCloudSkill({ slug, }: {
5879
6917
  slug: string;
5880
6918
  }): CancelablePromise<PublicCloudSkillMetadata>;
6919
+ /**
6920
+ * List public snapshots
6921
+ * @returns PublicSnapshot Public snapshots
6922
+ * @throws ApiError
6923
+ */
6924
+ listPublicSnapshots({ after, }: {
6925
+ /**
6926
+ * Last publication ID from the previous page. Pages contain at most 100 items.
6927
+ */
6928
+ after?: string;
6929
+ }): CancelablePromise<Array<PublicSnapshot>>;
6930
+ /**
6931
+ * Import a public snapshot into the current organization
6932
+ * Create an independent saved snapshot reference to the same immutable resource. Storage billing starts when imported.
6933
+ * @returns Snapshot Organization snapshot created
6934
+ * @throws ApiError
6935
+ */
6936
+ importPublicSnapshot({ publicationId, }: {
6937
+ publicationId: string;
6938
+ }): CancelablePromise<Snapshot>;
5881
6939
  /**
5882
6940
  * Get public agent
5883
6941
  * Get the current published main version of a public agent repository. This endpoint does not require authentication.
@@ -5934,7 +6992,7 @@ declare class DefaultService {
5934
6992
  getPublisherNamespace(): CancelablePromise<PublisherNamespace>;
5935
6993
  /**
5936
6994
  * Reserve or change the org's publisher namespace
5937
- * Only the organization owner can change the namespace. It can be changed once every 7 days; prior namespaces remain reserved and working for 60 days.
6995
+ * An authorized enterprise member or an ordinary-organization owner can change the namespace. It can be changed once every 7 days; prior namespaces remain reserved and working for 60 days.
5938
6996
  * @returns PublisherNamespace Namespace updated
5939
6997
  * @throws ApiError
5940
6998
  */
@@ -5988,12 +7046,111 @@ declare class DefaultService {
5988
7046
  sandboxId: string;
5989
7047
  requestBody: CreateSnapshotRequest;
5990
7048
  }): CancelablePromise<Snapshot>;
7049
+ /**
7050
+ * List accessible platform scheduled tasks in the current organization
7051
+ * @returns ScheduledTask Organization tasks and the current user's personal tasks
7052
+ * @throws ApiError
7053
+ */
7054
+ listScheduledTasks({ scope, }: {
7055
+ scope?: "org" | "user";
7056
+ }): CancelablePromise<Array<ScheduledTask>>;
7057
+ /**
7058
+ * Create a platform scheduled task
7059
+ * @returns ScheduledTask Created
7060
+ * @throws ApiError
7061
+ */
7062
+ createScheduledTask({ requestBody, }: {
7063
+ requestBody: ScheduledTaskInput;
7064
+ }): CancelablePromise<ScheduledTask>;
7065
+ /**
7066
+ * Delete a task while retaining its history
7067
+ * @returns void
7068
+ * @throws ApiError
7069
+ */
7070
+ deleteScheduledTask({ scheduledTaskId, }: {
7071
+ scheduledTaskId: string;
7072
+ }): CancelablePromise<void>;
7073
+ /**
7074
+ * Get a scheduled task
7075
+ * @returns ScheduledTask Task
7076
+ * @throws ApiError
7077
+ */
7078
+ getScheduledTask({ scheduledTaskId, }: {
7079
+ scheduledTaskId: string;
7080
+ }): CancelablePromise<ScheduledTask>;
7081
+ /**
7082
+ * Update a task without changing its owner or execution user
7083
+ * @returns ScheduledTask Updated
7084
+ * @throws ApiError
7085
+ */
7086
+ updateScheduledTask({ scheduledTaskId, requestBody, }: {
7087
+ scheduledTaskId: string;
7088
+ requestBody: ScheduledTaskInput;
7089
+ }): CancelablePromise<ScheduledTask>;
7090
+ /**
7091
+ * Pause a scheduled task
7092
+ * @returns ScheduledTask Paused
7093
+ * @throws ApiError
7094
+ */
7095
+ pauseScheduledTask({ scheduledTaskId, }: {
7096
+ scheduledTaskId: string;
7097
+ }): CancelablePromise<ScheduledTask>;
7098
+ /**
7099
+ * Resume a scheduled task
7100
+ * @returns ScheduledTask Resumed
7101
+ * @throws ApiError
7102
+ */
7103
+ resumeScheduledTask({ scheduledTaskId, }: {
7104
+ scheduledTaskId: string;
7105
+ }): CancelablePromise<ScheduledTask>;
7106
+ /**
7107
+ * List the latest 100 executions, newest first
7108
+ * @returns ScheduledTaskRun Executions; message acceptance does not imply agent completion
7109
+ * @throws ApiError
7110
+ */
7111
+ listScheduledTaskRuns({ scheduledTaskId, }: {
7112
+ scheduledTaskId: string;
7113
+ }): CancelablePromise<Array<ScheduledTaskRun>>;
5991
7114
  /**
5992
7115
  * List organization service users
5993
7116
  * @returns ServiceUser Service users, which do not consume seats
5994
7117
  * @throws ApiError
5995
7118
  */
5996
7119
  listServiceUsers(): CancelablePromise<Array<ServiceUser>>;
7120
+ /**
7121
+ * Deactivate an organization service user by qualified name
7122
+ * @returns void
7123
+ * @throws ApiError
7124
+ */
7125
+ deleteServiceUserByName({ namespace, username, }: {
7126
+ namespace: string;
7127
+ username: string;
7128
+ }): CancelablePromise<void>;
7129
+ /**
7130
+ * Get an organization service user by qualified name
7131
+ * @returns ServiceUser Active service identity
7132
+ * @throws ApiError
7133
+ */
7134
+ getServiceUserByName({ namespace, username, }: {
7135
+ namespace: string;
7136
+ username: string;
7137
+ }): CancelablePromise<ServiceUser>;
7138
+ /**
7139
+ * Deactivate an organization service user by ID
7140
+ * @returns void
7141
+ * @throws ApiError
7142
+ */
7143
+ deleteServiceUser({ userId, }: {
7144
+ userId: number;
7145
+ }): CancelablePromise<void>;
7146
+ /**
7147
+ * Get an organization service user by ID
7148
+ * @returns ServiceUser Active service identity
7149
+ * @throws ApiError
7150
+ */
7151
+ getServiceUser({ userId, }: {
7152
+ userId: number;
7153
+ }): CancelablePromise<ServiceUser>;
5997
7154
  /**
5998
7155
  * Get the shared session selected by a short share key
5999
7156
  * Resolve immutable shared-session metadata using a short bearer key that is accepted only by session-share APIs.
@@ -6072,8 +7229,8 @@ declare class DefaultService {
6072
7229
  listSnapshots(): CancelablePromise<Array<Snapshot>>;
6073
7230
  /**
6074
7231
  * Delete snapshot
6075
- * Queue deletion of an unreferenced snapshot. Only its creator or the organization owner can delete it.
6076
- * @returns any Snapshot deletion queued
7232
+ * Remove a snapshot and its public publication. Imported copies and managed sandbox references remain usable. Enterprise members need the snapshot delete permission. Ordinary organizations allow its creator or owner to delete it.
7233
+ * @returns any Snapshot reference removed; provider cleanup is deferred
6077
7234
  * @throws ApiError
6078
7235
  */
6079
7236
  deleteSnapshot({ snapshotUuid, }: {
@@ -6090,9 +7247,26 @@ declare class DefaultService {
6090
7247
  getSnapshot({ snapshotUuid, }: {
6091
7248
  snapshotUuid: string;
6092
7249
  }): CancelablePromise<Snapshot>;
7250
+ /**
7251
+ * Unpublish an organization snapshot
7252
+ * @returns void
7253
+ * @throws ApiError
7254
+ */
7255
+ unpublishSnapshot({ snapshotUuid, }: {
7256
+ snapshotUuid: string;
7257
+ }): CancelablePromise<void>;
7258
+ /**
7259
+ * Publish an organization snapshot
7260
+ * Publish a ready saved snapshot for other organizations to import. Enterprise members need the snapshot publish permission. Ordinary organizations allow its creator or owner to publish it.
7261
+ * @returns SnapshotPublication Publication ID (publishing again is idempotent)
7262
+ * @throws ApiError
7263
+ */
7264
+ publishSnapshot({ snapshotUuid, }: {
7265
+ snapshotUuid: string;
7266
+ }): CancelablePromise<SnapshotPublication>;
6093
7267
  /**
6094
7268
  * Register additional exact SSO callback URLs
6095
- * Requires permission to manage the application's service user. The application's https hostname with /auth/brazosd/callback is always registered. HTTPS is required except for loopback development callbacks.
7269
+ * Requires active membership in the application's organization; enterprise permissions are enforced at the API layer. The application's https hostname with /auth/brazosd/callback is always registered. HTTPS is required except for loopback development callbacks.
6096
7270
  * @returns SSOAppConfiguration Configured callbacks
6097
7271
  * @throws ApiError
6098
7272
  */
@@ -6100,6 +7274,38 @@ declare class DefaultService {
6100
7274
  appId: string;
6101
7275
  requestBody: SSOAppConfiguration;
6102
7276
  }): CancelablePromise<SSOAppConfiguration>;
7277
+ /**
7278
+ * Rotate this CLI grant using its refresh credential
7279
+ * @returns SSOTokens Rotate this CLI grant using its refresh credential
7280
+ * @throws ApiError
7281
+ */
7282
+ refreshCliTokens({ requestBody, }: {
7283
+ requestBody: RefreshCLITokensRequest;
7284
+ }): CancelablePromise<SSOTokens>;
7285
+ /**
7286
+ * Begin a Leawan CLI login bound to a loopback callback and S256 PKCE
7287
+ * @returns SSORequest Begin a Leawan CLI login bound to a loopback callback and S256 PKCE
7288
+ * @throws ApiError
7289
+ */
7290
+ createCliRequest({ requestBody, }: {
7291
+ requestBody: CreateCLIRequest;
7292
+ }): CancelablePromise<SSORequest>;
7293
+ /**
7294
+ * Revoke this CLI grant using its refresh credential
7295
+ * @returns void
7296
+ * @throws ApiError
7297
+ */
7298
+ revokeCliGrant({ requestBody, }: {
7299
+ requestBody: RevokeCLIGrantRequest;
7300
+ }): CancelablePromise<void>;
7301
+ /**
7302
+ * Exchange the CLI authorization code with its original PKCE verifier
7303
+ * @returns SSOTokens Exchange the CLI authorization code with its original PKCE verifier
7304
+ * @throws ApiError
7305
+ */
7306
+ exchangeCliCode({ requestBody, }: {
7307
+ requestBody: ExchangeCLICodeRequest;
7308
+ }): CancelablePromise<SSOTokens>;
6103
7309
  /**
6104
7310
  * Revoke a user grant using the application's service identity
6105
7311
  * @returns void
@@ -6358,6 +7564,10 @@ type TaskAttributes = {
6358
7564
  timeout?: string;
6359
7565
  cronjob?: TaskCronjob;
6360
7566
  retryPolicy?: TaskRetryPolicy;
7567
+ /**
7568
+ * Clear the unique tag atomically when the task becomes completed, failed, or cancelled. Pauses, retries, deferrals, and recurring cron runs retain the tag. Defaults to false.
7569
+ */
7570
+ releaseUniqueTagOnTerminal?: boolean;
6361
7571
  /**
6362
7572
  * Worker claim and scheduling labels. A worker must have all task labels to claim the task.
6363
7573
  */
@@ -6492,6 +7702,9 @@ type Deployment = {
6492
7702
  appId: string;
6493
7703
  packageId: string;
6494
7704
  state: "pending" | "deploying" | "succeeded" | "failed" | "superseded" | "cancelled";
7705
+ /**
7706
+ * Number of candidates prepared by this rollout. Zero when updating a dormant function.
7707
+ */
6495
7708
  targetReplicas: number;
6496
7709
  readyReplicas: number;
6497
7710
  attempts: number;
@@ -6499,13 +7712,17 @@ type Deployment = {
6499
7712
  createdAt: string;
6500
7713
  startedAt?: string;
6501
7714
  completedAt?: string;
7715
+ /**
7716
+ * Time this deployment first passed runtime health checks. A successful zero-candidate rollout awaits its first request until verified.
7717
+ */
7718
+ verifiedAt?: string;
6502
7719
  };
6503
7720
  type App = {
6504
- serviceUserId: number;
6505
7721
  /**
6506
- * Saved development environment; independent of deployed packages.
7722
+ * Effective enabled and ready domain URL. Prefers an explicit primary, then custom domains, then the platform address; omitted when none are available.
6507
7723
  */
6508
- developmentSnapshotId?: string;
7724
+ primaryUrl?: string;
7725
+ serviceUserId: number;
6509
7726
  /**
6510
7727
  * Configured database bindings; applied to the next deployment.
6511
7728
  */
@@ -6543,11 +7760,28 @@ type App = {
6543
7760
  desiredDeploymentId?: string;
6544
7761
  deployment?: Deployment;
6545
7762
  };
7763
+ type AppCredentialBindingInput = {
7764
+ credentialId: string;
7765
+ };
7766
+ type NodeMemoryGiB = 2;
7767
+ type NodeVCPU = 1;
6546
7768
  type AppInput = {
6547
7769
  /**
6548
- * Existing service user in this organization. Omit to create one atomically with the function.
7770
+ * Use a verified root domain from this organization. Omit to use the organization's default root, or just the platform domain when no default is set. The platform URL is always retained.
6549
7771
  */
6550
- serviceUserId?: number;
7772
+ rootDomainId?: string;
7773
+ /**
7774
+ * Single DNS label under the selected root domain; omitted prefixes are generated randomly and stored. May also be used with the organization's default root.
7775
+ */
7776
+ subdomain?: string;
7777
+ /**
7778
+ * Explicitly bypass the organization's default root. Cannot be combined with rootDomainId or subdomain.
7779
+ */
7780
+ usePlatformDomain?: boolean;
7781
+ /**
7782
+ * Qualified name or positive numeric ID of an active service user in this organization. Omit to allocate a service user.
7783
+ */
7784
+ serviceUserId?: (string | number);
6551
7785
  name: string;
6552
7786
  entrypoint?: string;
6553
7787
  healthPath?: string;
@@ -6556,8 +7790,8 @@ type AppInput = {
6556
7790
  * Application listen port; 8081 is reserved for the runtime.
6557
7791
  */
6558
7792
  port?: number;
6559
- vcpu?: VCPU;
6560
- memoryGiB?: MemoryGiB;
7793
+ vcpu?: NodeVCPU;
7794
+ memoryGiB?: NodeMemoryGiB;
6561
7795
  /**
6562
7796
  * Deployment readiness only; exact status or inclusive range, e.g. 200-499.
6563
7797
  */
@@ -6572,6 +7806,36 @@ type AppInput = {
6572
7806
  */
6573
7807
  environment?: Record<string, string>;
6574
7808
  };
7809
+ type AppLogEntry = {
7810
+ /**
7811
+ * Unix timestamp in seconds.
7812
+ */
7813
+ timestamp: number;
7814
+ instanceId: string;
7815
+ deploymentId: string;
7816
+ stream: "stdout" | "stderr";
7817
+ content: string;
7818
+ truncated: boolean;
7819
+ /**
7820
+ * Pass to logs/content to download the original message; expires with the cursor.
7821
+ */
7822
+ downloadToken?: string;
7823
+ };
7824
+ type AppLogPage = {
7825
+ items: Array<AppLogEntry>;
7826
+ /**
7827
+ * Complete means this page's provider query completed, not that pagination ended.
7828
+ */
7829
+ status: "complete" | "incomplete";
7830
+ /**
7831
+ * Continue with this cursor; a final continuation may return an empty page.
7832
+ */
7833
+ nextCursor?: string;
7834
+ /**
7835
+ * Present for incomplete queries; retry the same position after this delay.
7836
+ */
7837
+ retryAfterSeconds?: number;
7838
+ };
6575
7839
  type AppSettings = {
6576
7840
  enabled?: boolean;
6577
7841
  runtime?: "nodejs";
@@ -6579,8 +7843,8 @@ type AppSettings = {
6579
7843
  * Application listen port; 8081 is reserved for the runtime.
6580
7844
  */
6581
7845
  port?: number;
6582
- vcpu?: VCPU;
6583
- memoryGiB?: MemoryGiB;
7846
+ vcpu?: NodeVCPU;
7847
+ memoryGiB?: NodeMemoryGiB;
6584
7848
  entrypoint?: string;
6585
7849
  healthPath?: string;
6586
7850
  /**
@@ -6598,6 +7862,10 @@ type AppSettings = {
6598
7862
  environment?: Record<string, string>;
6599
7863
  };
6600
7864
  type AppSummary = {
7865
+ /**
7866
+ * Effective enabled and ready domain URL. Prefers an explicit primary, then custom domains, then the platform address; omitted when none are available.
7867
+ */
7868
+ primaryUrl?: string;
6601
7869
  id: string;
6602
7870
  name: string;
6603
7871
  hostname: string;
@@ -6611,32 +7879,207 @@ type AppSummary = {
6611
7879
  desiredDeploymentId?: string;
6612
7880
  deploymentState?: string;
6613
7881
  };
6614
- type Database = {
7882
+ type CloudAppProfile = {
7883
+ /**
7884
+ * Public display name. Defaults to the source function name.
7885
+ */
7886
+ displayName: string;
7887
+ /**
7888
+ * Plain text introduction
7889
+ */
7890
+ description: string;
7891
+ /**
7892
+ * Square image served by the public-files API
7893
+ */
7894
+ logoPublicFileId?: string;
7895
+ };
7896
+ type CloudApp = {
6615
7897
  id: string;
7898
+ publisherOrgId: number;
7899
+ /**
7900
+ * Source function name and default installation name
7901
+ */
6616
7902
  name: string;
6617
- state: string;
7903
+ profile: CloudAppProfile;
6618
7904
  /**
6619
- * Private WS connection string containing access credentials; treat as a secret.
7905
+ * Whether the app is listed in the App Marketplace.
6620
7906
  */
6621
- connectionString: string;
7907
+ published: boolean;
7908
+ version: string;
7909
+ releaseNumber: number;
7910
+ bundlePath: string;
7911
+ namespace: string;
6622
7912
  };
6623
- type DatabaseInput = {
7913
+ type CloudAppInstallation = {
7914
+ id: string;
7915
+ /**
7916
+ * This default installation only pins a release. Open it to allocate its function and database.
7917
+ */
7918
+ awaitingFirstOpen?: boolean;
7919
+ cloudAppId: string;
6624
7920
  name: string;
7921
+ profile: CloudAppProfile;
7922
+ state: "installing" | "installed" | "updating" | "uninstalling" | "uninstalled";
7923
+ wantedVersion: number;
7924
+ appliedVersion?: number;
7925
+ functionId?: string;
7926
+ databaseId?: string;
7927
+ updateBackupId?: string;
7928
+ uninstallBackupId?: string;
7929
+ restoreBackupId?: string;
7930
+ lastError: string;
7931
+ retainData: boolean;
6625
7932
  };
6626
- type DeploymentInput = {
6627
- packageId: string;
7933
+ type CloudAppInstallationList = {
7934
+ items: Array<CloudAppInstallation>;
7935
+ nextCursor?: string;
6628
7936
  };
6629
- type DeploymentPackage = {
6630
- id: string;
6631
- appId: string;
6632
- path: string;
6633
- sha256: string;
6634
- size: number;
6635
- createdAt: string;
7937
+ type CloudAppInstallInput = {
7938
+ name?: string;
6636
7939
  };
6637
- type DevelopmentSnapshotInput = {
6638
- snapshotId: string | null;
6639
- expectedSnapshotId: string | null;
7940
+ type CloudAppList = {
7941
+ items: Array<CloudApp>;
7942
+ nextCursor?: string;
7943
+ };
7944
+ type CloudAppPublishInput = {
7945
+ version: string;
7946
+ /**
7947
+ * Pin the version listed in the App Marketplace to this verified active deployment.
7948
+ */
7949
+ expectedDeploymentId?: string;
7950
+ };
7951
+ type CloudAppUninstallInput = {
7952
+ retainData?: boolean;
7953
+ };
7954
+ type DomainDNSRecord = {
7955
+ type: "CNAME" | "TXT";
7956
+ name: string;
7957
+ value: string;
7958
+ purpose: "routing" | "ownership" | "certificate";
7959
+ };
7960
+ type CustomDomain = {
7961
+ id: string;
7962
+ hostname: string;
7963
+ url: string;
7964
+ /**
7965
+ * Uses the organization's shared wildcard certificate; no per-function DNS setup is required
7966
+ */
7967
+ rootDomainId?: string;
7968
+ state: "pending_dns" | "issuing" | "ready" | "renewing" | "error" | "deleting" | "deleted";
7969
+ /**
7970
+ * User-facing access status, independent of certificate lifecycle state
7971
+ */
7972
+ status: "pending_verification" | "active" | "disabled";
7973
+ enabled: boolean;
7974
+ isPrimary: boolean;
7975
+ kind: "platform" | "root" | "custom";
7976
+ dnsRecords: Array<DomainDNSRecord>;
7977
+ createdAt: string;
7978
+ verifiedAt?: string;
7979
+ certificateExpiresAt?: string;
7980
+ renewAt?: string;
7981
+ nextAttemptAt: string;
7982
+ lastError: string;
7983
+ };
7984
+ type CustomDomainInput = {
7985
+ hostname?: string;
7986
+ rootDomainId?: string;
7987
+ subdomain?: string;
7988
+ };
7989
+ type Database = {
7990
+ id: string;
7991
+ /**
7992
+ * Present for branches. These databases do not support backups or restoration and are deleted when the primary is deleted or rolled back.
7993
+ */
7994
+ parentDatabaseId?: string;
7995
+ name: string;
7996
+ state: string;
7997
+ /**
7998
+ * Private WS connection string containing access credentials. Empty when the database is pending or enterprise policy allows listing without reading the database.
7999
+ */
8000
+ connectionString: string;
8001
+ };
8002
+ type DatabaseBackup = {
8003
+ id: string;
8004
+ databaseId: string;
8005
+ mode: "offline" | "online";
8006
+ state: "pending" | "ready" | "cancelled" | "failed";
8007
+ createdAt: string;
8008
+ completedAt?: string;
8009
+ /**
8010
+ * Last task failure. Transient failures retry up to the task policy limit; failed backups must be cancelled before retrying with a new backup.
8011
+ */
8012
+ lastError: string;
8013
+ sizeBytes?: number;
8014
+ sha256?: string;
8015
+ sourceTxid?: number;
8016
+ pageSize?: number;
8017
+ pageCount?: number;
8018
+ };
8019
+ type DatabaseBackupList = {
8020
+ items: Array<DatabaseBackup>;
8021
+ nextCursor?: string;
8022
+ };
8023
+ type DatabaseBranchInput = {
8024
+ name: string;
8025
+ };
8026
+ type DatabaseBranchList = {
8027
+ items: Array<Database>;
8028
+ nextCursor?: string;
8029
+ };
8030
+ type DatabaseInput = {
8031
+ name: string;
8032
+ /**
8033
+ * Restore a ready backup owned by this organization into a new buffered database. The source is preserved.
8034
+ */
8035
+ backupId?: string;
8036
+ };
8037
+ type DatabaseMaintenance = {
8038
+ maintenanceStartedAt: string | null;
8039
+ };
8040
+ type DatabaseRollback = {
8041
+ id: string;
8042
+ databaseId: string;
8043
+ backupId: string;
8044
+ state: "pending" | "switched" | "ready" | "failed" | "cancelled";
8045
+ lastError: string;
8046
+ createdAt: string;
8047
+ completedAt?: string;
8048
+ cleanupCompletedAt?: string;
8049
+ };
8050
+ type DatabaseRollbackInput = {
8051
+ backupId: string;
8052
+ };
8053
+ type DatabaseRollbackList = {
8054
+ items: Array<DatabaseRollback>;
8055
+ nextCursor?: string;
8056
+ };
8057
+ type DeploymentInput = {
8058
+ packageId: string;
8059
+ };
8060
+ type DeploymentPackage = {
8061
+ id: string;
8062
+ appId: string;
8063
+ path: string;
8064
+ sha256: string;
8065
+ size: number;
8066
+ createdAt: string;
8067
+ };
8068
+ type DevelopedCloudApp = {
8069
+ id: string;
8070
+ name: string;
8071
+ profile: CloudAppProfile;
8072
+ };
8073
+ type DevelopedCloudAppList = {
8074
+ items: Array<DevelopedCloudApp>;
8075
+ nextCursor?: string;
8076
+ };
8077
+ type DomainSettings = {
8078
+ enabled?: boolean;
8079
+ /**
8080
+ * Preferred display address; other enabled domains remain accessible
8081
+ */
8082
+ isPrimary?: boolean;
6640
8083
  };
6641
8084
  type ImportDeploymentPackage = {
6642
8085
  /**
@@ -6644,6 +8087,30 @@ type ImportDeploymentPackage = {
6644
8087
  */
6645
8088
  path: string;
6646
8089
  };
8090
+ type RootDomain = {
8091
+ id: string;
8092
+ hostname: string;
8093
+ isDefault: boolean;
8094
+ /**
8095
+ * Ownership verified and an unexpired wildcard certificate is available
8096
+ */
8097
+ usable: boolean;
8098
+ state: "pending_dns" | "issuing" | "ready" | "renewing" | "error" | "deleting" | "deleted";
8099
+ dnsRecords: Array<DomainDNSRecord>;
8100
+ bindingCount: number;
8101
+ createdAt: string;
8102
+ verifiedAt?: string;
8103
+ certificateExpiresAt?: string;
8104
+ renewAt?: string;
8105
+ nextAttemptAt: string;
8106
+ lastError: string;
8107
+ };
8108
+ type RootDomainInput = {
8109
+ hostname: string;
8110
+ };
8111
+ type RootDomainSettings = {
8112
+ isDefault: boolean;
8113
+ };
6647
8114
  type Usage = {
6648
8115
  kind: "function" | "sqlite";
6649
8116
  resourceId: string;
@@ -6674,12 +8141,203 @@ type Usage = {
6674
8141
  declare class DefaultService$2 {
6675
8142
  readonly httpRequest: BaseHttpRequest;
6676
8143
  constructor(httpRequest: BaseHttpRequest);
8144
+ /**
8145
+ * Browse the App Marketplace, including delisted apps owned by this organization.
8146
+ * @returns CloudAppList App Marketplace listings and this organization's delisted apps
8147
+ * @throws ApiError
8148
+ */
8149
+ listCloudApps({ after, }: {
8150
+ after?: string;
8151
+ }): CancelablePromise<CloudAppList>;
8152
+ /**
8153
+ * List this organization's cloud apps, including drafts with saved profiles.
8154
+ * @returns DevelopedCloudAppList Cloud apps developed in this organization
8155
+ * @throws ApiError
8156
+ */
8157
+ listDevelopedCloudApps({ after, }: {
8158
+ after?: string;
8159
+ }): CancelablePromise<DevelopedCloudAppList>;
8160
+ /**
8161
+ * Read the source function's editable profile, including before it is listed in the App Marketplace.
8162
+ * @returns CloudAppProfile Current profile
8163
+ * @throws ApiError
8164
+ */
8165
+ getCloudAppProfile({ id, }: {
8166
+ id: string;
8167
+ }): CancelablePromise<CloudAppProfile>;
8168
+ /**
8169
+ * Save App Marketplace listing details
8170
+ * Create a draft or edit an existing listing. Edits to listed apps appear immediately in the App Marketplace. Omit the logo to retain it.
8171
+ * @returns CloudAppProfile Saved profile
8172
+ * @throws ApiError
8173
+ */
8174
+ updateCloudAppProfile({ id, formData, }: {
8175
+ id: string;
8176
+ formData: {
8177
+ displayName: string;
8178
+ description: string;
8179
+ /**
8180
+ * PNG, JPEG or GIF, up to 2 MiB
8181
+ */
8182
+ logo?: Blob;
8183
+ /**
8184
+ * Read the image from this authorized canonical Cloud Drive path. Choose one of logo
8185
+ */
8186
+ logoPath?: string;
8187
+ /**
8188
+ * Clear the current logo. Mutually exclusive with uploading a logo.
8189
+ */
8190
+ removeLogo?: boolean;
8191
+ };
8192
+ }): CancelablePromise<CloudAppProfile>;
8193
+ /**
8194
+ * List a version in the App Marketplace (上架到应用市场)
8195
+ * List the source function's verified active deployment for other organizations to install. The bundle is linked from the organization's public Cloud Drive, and existing subscribers are queued for updates. Agents should guide users to open Platform → Cloud applications, select the source function under Edit app profile, enter the version, and click List in the App Marketplace themselves. An agent may call this operation on the user's behalf only after the user explicitly authorizes the agent to list that app version in the App Marketplace. This applies to first listings and new versions.
8196
+ * @returns CloudApp Version listed in the App Marketplace
8197
+ * @throws ApiError
8198
+ */
8199
+ publishCloudApp({ id, requestBody, }: {
8200
+ id: string;
8201
+ requestBody: CloudAppPublishInput;
8202
+ }): CancelablePromise<CloudApp>;
8203
+ /**
8204
+ * Read the current App Marketplace listing.
8205
+ * @returns CloudApp App Marketplace listing details
8206
+ * @throws ApiError
8207
+ */
8208
+ getCloudApp({ id, }: {
8209
+ id: string;
8210
+ }): CancelablePromise<CloudApp>;
8211
+ /**
8212
+ * Remove an app from the App Marketplace
8213
+ * Remove the app from the App Marketplace to stop new installations and future updates.
8214
+ * @returns CloudApp App removed from the App Marketplace
8215
+ * @throws ApiError
8216
+ */
8217
+ unpublishCloudApp({ id, }: {
8218
+ id: string;
8219
+ }): CancelablePromise<CloudApp>;
8220
+ /**
8221
+ * Reserve an installation and provision it asynchronously.
8222
+ * @returns CloudAppInstallation Reserve an installation and provision it asynchronously.
8223
+ * @throws ApiError
8224
+ */
8225
+ installCloudApp({ id, requestBody, }: {
8226
+ id: string;
8227
+ requestBody: CloudAppInstallInput;
8228
+ }): CancelablePromise<CloudAppInstallation>;
8229
+ /**
8230
+ * List current installations in this organization.
8231
+ * @returns CloudAppInstallationList List current installations in this organization.
8232
+ * @throws ApiError
8233
+ */
8234
+ listCloudAppInstallations({ after, }: {
8235
+ after?: string;
8236
+ }): CancelablePromise<CloudAppInstallationList>;
8237
+ /**
8238
+ * Prepare a default installation on first use. Repeated calls return the existing installation.
8239
+ * @returns CloudAppInstallation Poll this installation until installed, then open the function URL.
8240
+ * @throws ApiError
8241
+ */
8242
+ openCloudAppInstallation({ id, }: {
8243
+ id: string;
8244
+ }): CancelablePromise<CloudAppInstallation>;
8245
+ /**
8246
+ * Read lifecycle progress, including a completed uninstall.
8247
+ * @returns CloudAppInstallation Read lifecycle progress, including a completed uninstall.
8248
+ * @throws ApiError
8249
+ */
8250
+ getCloudAppInstallation({ id, }: {
8251
+ id: string;
8252
+ }): CancelablePromise<CloudAppInstallation>;
8253
+ /**
8254
+ * Withdraw traffic and remove owned resources asynchronously.
8255
+ * @returns CloudAppInstallation Withdraw traffic and remove owned resources asynchronously.
8256
+ * @throws ApiError
8257
+ */
8258
+ uninstallCloudApp({ id, requestBody, }: {
8259
+ id: string;
8260
+ requestBody?: CloudAppUninstallInput;
8261
+ }): CancelablePromise<CloudAppInstallation>;
8262
+ /**
8263
+ * Resume a failed lifecycle operation.
8264
+ * @returns CloudAppInstallation Resume a failed lifecycle operation.
8265
+ * @throws ApiError
8266
+ */
8267
+ retryCloudAppInstallation({ id, }: {
8268
+ id: string;
8269
+ }): CancelablePromise<CloudAppInstallation>;
8270
+ /**
8271
+ * List the current organization's reusable domain suffixes.
8272
+ * @returns RootDomain Root domains, wildcard certificate status and one-time DNS setup
8273
+ * @throws ApiError
8274
+ */
8275
+ listRootDomains(): CancelablePromise<Array<RootDomain>>;
8276
+ /**
8277
+ * Requires organization ownership or root-domains:edit permission. DNS setup and certificate issuance are asynchronous.
8278
+ * @returns RootDomain Root domain reserved; configure the returned DNS records
8279
+ * @throws ApiError
8280
+ */
8281
+ createRootDomain({ requestBody, }: {
8282
+ requestBody: RootDomainInput;
8283
+ }): CancelablePromise<RootDomain>;
8284
+ /**
8285
+ * Change the default automatically used for future function creation when rootDomainId is omitted. Does not change existing bindings.
8286
+ * @returns RootDomain Root domain updated
8287
+ * @throws ApiError
8288
+ */
8289
+ updateRootDomain({ rootDomainId, requestBody, }: {
8290
+ rootDomainId: string;
8291
+ requestBody: RootDomainSettings;
8292
+ }): CancelablePromise<RootDomain>;
8293
+ /**
8294
+ * Requires root-domains:edit permission or organization ownership. Withdraws all bindings under this root; functions and other domains remain. Binding and DNS cleanup are asynchronous.
8295
+ * @returns any Deletion recorded; managed DNS records will be cleaned asynchronously
8296
+ * @throws ApiError
8297
+ */
8298
+ deleteRootDomain({ rootDomainId, }: {
8299
+ rootDomainId: string;
8300
+ }): CancelablePromise<any>;
8301
+ /**
8302
+ * @returns CustomDomain All function domains, including the non-deletable platform domain, access status and DNS configuration
8303
+ * @throws ApiError
8304
+ */
8305
+ listAppDomains({ id, }: {
8306
+ id: string;
8307
+ }): CancelablePromise<Array<CustomDomain>>;
8308
+ /**
8309
+ * @returns CustomDomain Domain bound; organization-root subdomains need no separate DNS setup. Other domains require the returned DNS records.
8310
+ * @throws ApiError
8311
+ */
8312
+ createAppDomain({ id, requestBody, }: {
8313
+ id: string;
8314
+ requestBody: CustomDomainInput;
8315
+ }): CancelablePromise<CustomDomain>;
8316
+ /**
8317
+ * Independently enable or disable a domain, or choose a ready enabled domain as the preferred display URL. Changes propagate asynchronously; certificates remain managed while disabled.
8318
+ * @returns CustomDomain Settings saved and route publication queued
8319
+ * @throws ApiError
8320
+ */
8321
+ updateAppDomain({ id, domainId, requestBody, }: {
8322
+ id: string;
8323
+ domainId: string;
8324
+ requestBody: DomainSettings;
8325
+ }): CancelablePromise<CustomDomain>;
8326
+ /**
8327
+ * @returns void
8328
+ * @throws ApiError
8329
+ */
8330
+ deleteAppDomain({ id, domainId, }: {
8331
+ id: string;
8332
+ domainId: string;
8333
+ }): CancelablePromise<void>;
6677
8334
  /**
6678
8335
  * @returns string Serverless API contract; paths are relative to /api/v1/serverless.
6679
8336
  * @throws ApiError
6680
8337
  */
6681
8338
  getServerlessOpenApi(): CancelablePromise<string>;
6682
8339
  /**
8340
+ * List undeleted functions in the caller's organization.
6683
8341
  * @returns AppSummary Success
6684
8342
  * @throws ApiError
6685
8343
  */
@@ -6713,6 +8371,96 @@ declare class DefaultService$2 {
6713
8371
  deleteApp({ id, }: {
6714
8372
  id: string;
6715
8373
  }): CancelablePromise<any>;
8374
+ /**
8375
+ * Keep an active function instance running while it processes background work
8376
+ * @returns void
8377
+ * @throws ApiError
8378
+ */
8379
+ reportAppInstanceActivity({ id, instanceId, }: {
8380
+ id: string;
8381
+ instanceId: string;
8382
+ }): CancelablePromise<void>;
8383
+ /**
8384
+ * List binding names as the assigned function service user
8385
+ * @returns string Names available to the function
8386
+ * @throws ApiError
8387
+ */
8388
+ listAppCredentialBindings({ id, }: {
8389
+ id: string;
8390
+ }): CancelablePromise<Array<string>>;
8391
+ /**
8392
+ * Bind an organization credential to a function, including installed cloud applications
8393
+ * @returns void
8394
+ * @throws ApiError
8395
+ */
8396
+ bindAppCredential({ id, key, requestBody, }: {
8397
+ id: string;
8398
+ key: string;
8399
+ requestBody: AppCredentialBindingInput;
8400
+ }): CancelablePromise<void>;
8401
+ /**
8402
+ * Revoke a function's named credential binding
8403
+ * @returns void
8404
+ * @throws ApiError
8405
+ */
8406
+ unbindAppCredential({ id, key, }: {
8407
+ id: string;
8408
+ key: string;
8409
+ }): CancelablePromise<void>;
8410
+ /**
8411
+ * Resolve one explicitly bound organization credential as the function's service user
8412
+ * @returns any Current value of the credential bound to this name
8413
+ * @throws ApiError
8414
+ */
8415
+ resolveAppCredentialBinding({ id, key, }: {
8416
+ id: string;
8417
+ key: string;
8418
+ }): CancelablePromise<{
8419
+ value: string;
8420
+ }>;
8421
+ /**
8422
+ * Query cloud function stdout and stderr without waking the function
8423
+ * Queries retained container logs for current and stopped instances. Requires the same
8424
+ * active organization membership as getApp. Enterprise permissions belong to the API layer.
8425
+ * The interval is [from, to),
8426
+ * at most seven days, with to no later than the request time. Results are newest first.
8427
+ * Each response contains at most 100 entries and 1 MiB of JSON. Messages longer than
8428
+ * 32 KiB are previews with truncated=true and a short-lived downloadToken for the original.
8429
+ * Keep from, to and stream unchanged when following nextCursor. Cursors expire after
8430
+ * 15 minutes. An incomplete page contains no entries and a retry cursor at the same position.
8431
+ * Recent logs can arrive late: pagination is not a snapshot of SLS ingestion; refresh the
8432
+ * interval to include delayed logs. Retention is seven days, not archival storage.
8433
+ * Queries spanning more than 256 instances must use a narrower time range.
8434
+ *
8435
+ * @returns AppLogPage Bounded log page; inspect status before treating it as complete.
8436
+ * @throws ApiError
8437
+ */
8438
+ listAppLogs({ id, from, to, limit, stream, cursor, }: {
8439
+ id: string;
8440
+ /**
8441
+ * Inclusive Unix timestamp in seconds.
8442
+ */
8443
+ from: number;
8444
+ /**
8445
+ * Exclusive Unix timestamp in seconds; keep fixed while paging.
8446
+ */
8447
+ to: number;
8448
+ limit?: number;
8449
+ stream?: "stdout" | "stderr";
8450
+ /**
8451
+ * Opaque nextCursor from the previous response.
8452
+ */
8453
+ cursor?: string;
8454
+ }): CancelablePromise<AppLogPage>;
8455
+ /**
8456
+ * Download one original log message referenced by a truncated preview
8457
+ * @returns binary Original UTF-8 log message, served as an attachment.
8458
+ * @throws ApiError
8459
+ */
8460
+ downloadAppLogContent({ id, token, }: {
8461
+ id: string;
8462
+ token: string;
8463
+ }): CancelablePromise<Response>;
6716
8464
  /**
6717
8465
  * @returns any Success
6718
8466
  * @throws ApiError
@@ -6741,6 +8489,13 @@ declare class DefaultService$2 {
6741
8489
  createDatabase({ requestBody, }: {
6742
8490
  requestBody: DatabaseInput;
6743
8491
  }): CancelablePromise<Database>;
8492
+ /**
8493
+ * @returns Database Database creation or restore progress; credentials are returned only when ready.
8494
+ * @throws ApiError
8495
+ */
8496
+ getDatabase({ id, }: {
8497
+ id: string;
8498
+ }): CancelablePromise<Database>;
6744
8499
  /**
6745
8500
  * @returns any Success
6746
8501
  * @throws ApiError
@@ -6748,6 +8503,114 @@ declare class DefaultService$2 {
6748
8503
  deleteDatabase({ id, }: {
6749
8504
  id: string;
6750
8505
  }): CancelablePromise<any>;
8506
+ /**
8507
+ * Create a writable branch of a ready buffered primary database. The branch has its own credentials, endpoint, quota and billing. It supports online backups. Offline backups, in-place rollback and creating user branches require a primary database.
8508
+ * @returns Database Durable creation accepted. Poll the database until ready before connecting.
8509
+ * @throws ApiError
8510
+ */
8511
+ createDatabaseBranch({ id, requestBody, }: {
8512
+ id: string;
8513
+ requestBody: DatabaseBranchInput;
8514
+ }): CancelablePromise<Database>;
8515
+ /**
8516
+ * List non-deleted branches of this primary database, including creation and deletion progress. Branches are omitted from the ordinary database list.
8517
+ * @returns DatabaseBranchList Branches ordered by UUID
8518
+ * @throws ApiError
8519
+ */
8520
+ listDatabaseBranches({ id, after, }: {
8521
+ id: string;
8522
+ after?: string;
8523
+ }): CancelablePromise<DatabaseBranchList>;
8524
+ /**
8525
+ * Restore a backup into fresh storage, delete all branches, atomically switch the primary database, and asynchronously reclaim its old namespace. Branch databases cannot be restored. Accepting this request immediately withdraws branch access; cancelling or failing the rollback does not revive branches.
8526
+ * @returns DatabaseRollback Durable rollback accepted; reconnect existing WebSockets after completion.
8527
+ * @throws ApiError
8528
+ */
8529
+ rollbackDatabase({ id, requestBody, }: {
8530
+ id: string;
8531
+ requestBody: DatabaseRollbackInput;
8532
+ }): CancelablePromise<DatabaseRollback>;
8533
+ /**
8534
+ * @returns DatabaseRollbackList Recover operation IDs after an uncertain create response; at most 100 per page.
8535
+ * @throws ApiError
8536
+ */
8537
+ listDatabaseRollbacks({ id, after, }: {
8538
+ id: string;
8539
+ after?: string;
8540
+ }): CancelablePromise<DatabaseRollbackList>;
8541
+ /**
8542
+ * @returns DatabaseRollback Rollback and old storage cleanup progress
8543
+ * @throws ApiError
8544
+ */
8545
+ getDatabaseRollback({ id, }: {
8546
+ id: string;
8547
+ }): CancelablePromise<DatabaseRollback>;
8548
+ /**
8549
+ * @returns DatabaseRollback Retry the same operation and physical namespace
8550
+ * @throws ApiError
8551
+ */
8552
+ retryDatabaseRollback({ id, }: {
8553
+ id: string;
8554
+ }): CancelablePromise<DatabaseRollback>;
8555
+ /**
8556
+ * Cancel before the storage pointer switches. Old storage stays in maintenance until explicitly released.
8557
+ * @returns DatabaseRollback Cancelled; staged storage cleanup is durable
8558
+ * @throws ApiError
8559
+ */
8560
+ cancelDatabaseRollback({ id, }: {
8561
+ id: string;
8562
+ }): CancelablePromise<DatabaseRollback>;
8563
+ /**
8564
+ * Queue an offline backup of a primary database. The task enters maintenance, gracefully drains compute and leaves the source in maintenance after completion.
8565
+ * @returns DatabaseBackup Durable backup task accepted
8566
+ * @throws ApiError
8567
+ */
8568
+ createDatabaseBackup({ id, }: {
8569
+ id: string;
8570
+ }): CancelablePromise<DatabaseBackup>;
8571
+ /**
8572
+ * Queue an online backup of a buffered primary or branch. The worker captures the committed state when it forks a private branch. The source continues serving reads and writes.
8573
+ * @returns DatabaseBackup Backup queued. The restore point is fixed when the worker captures the branch.
8574
+ * @throws ApiError
8575
+ */
8576
+ createOnlineDatabaseBackup({ id, }: {
8577
+ id: string;
8578
+ }): CancelablePromise<DatabaseBackup>;
8579
+ /**
8580
+ * @returns DatabaseBackupList Organization backups ordered by UUID; backups survive source deletion.
8581
+ * @throws ApiError
8582
+ */
8583
+ listDatabaseBackups({ after, }: {
8584
+ after?: string;
8585
+ }): CancelablePromise<DatabaseBackupList>;
8586
+ /**
8587
+ * @returns DatabaseBackup Backup state and verification metadata
8588
+ * @throws ApiError
8589
+ */
8590
+ getDatabaseBackup({ id, }: {
8591
+ id: string;
8592
+ }): CancelablePromise<DatabaseBackup>;
8593
+ /**
8594
+ * @returns DatabaseBackup Cancelled or already-complete backup. For an offline backup, release source maintenance separately after inspecting the result.
8595
+ * @throws ApiError
8596
+ */
8597
+ cancelDatabaseBackup({ id, }: {
8598
+ id: string;
8599
+ }): CancelablePromise<DatabaseBackup>;
8600
+ /**
8601
+ * @returns DatabaseMaintenance New compute and compaction admission blocked; existing work has not necessarily drained.
8602
+ * @throws ApiError
8603
+ */
8604
+ startDatabaseMaintenance({ id, }: {
8605
+ id: string;
8606
+ }): CancelablePromise<DatabaseMaintenance>;
8607
+ /**
8608
+ * @returns DatabaseMaintenance Database may start again
8609
+ * @throws ApiError
8610
+ */
8611
+ finishDatabaseMaintenance({ id, }: {
8612
+ id: string;
8613
+ }): CancelablePromise<DatabaseMaintenance>;
6751
8614
  /**
6752
8615
  * @returns Usage Success
6753
8616
  * @throws ApiError
@@ -6786,7 +8649,9 @@ declare class DefaultService$2 {
6786
8649
  id: string;
6787
8650
  }): CancelablePromise<Array<Deployment>>;
6788
8651
  /**
6789
- * @returns Deployment Success
8652
+ * Deploy a package to the target cloud function
8653
+ * Start an asynchronous rollout on the selected cloud function, including production updates. On success, the package becomes active for that function's URL.
8654
+ * @returns Deployment Function deployment accepted
6790
8655
  * @throws ApiError
6791
8656
  */
6792
8657
  createDeployment({ id, requestBody, }: {
@@ -6809,14 +8674,6 @@ declare class DefaultService$2 {
6809
8674
  id: string;
6810
8675
  deploymentId: string;
6811
8676
  }): CancelablePromise<any>;
6812
- /**
6813
- * @returns App Saved development snapshot changed
6814
- * @throws ApiError
6815
- */
6816
- setDevelopmentSnapshot({ id, requestBody, }: {
6817
- id: string;
6818
- requestBody: DevelopmentSnapshotInput;
6819
- }): CancelablePromise<App>;
6820
8677
  }
6821
8678
  type HttpRequestConstructor$2 = new (config: OpenAPIConfig) => BaseHttpRequest;
6822
8679
  declare class ServerlessClient {
@@ -6833,6 +8690,109 @@ interface Credentials$1 {
6833
8690
  export type CredentialProvider = () => Credentials$1 | Promise<Credentials$1>;
6834
8691
  /** Reads only the access credential. Refresh tokens belong to the runtime. */
6835
8692
  export declare function fileCredentials(path?: string): CredentialProvider;
8693
+ export interface ClientMCPCallContext {
8694
+ sessionId: string;
8695
+ runId: string;
8696
+ toolCallId: string;
8697
+ toolName: string;
8698
+ /** Stable across redelivery, refresh, reconnect and different browser tabs. */
8699
+ idempotencyKey: string;
8700
+ signal: AbortSignal;
8701
+ }
8702
+ export interface ClientMCPTool {
8703
+ description: string;
8704
+ inputSchema: Record<string, unknown>;
8705
+ execute: (args: Record<string, unknown>, context: ClientMCPCallContext) => ClientMCPToolResult | Promise<ClientMCPToolResult>;
8706
+ }
8707
+ export type ClientMCPTools = Record<string, ClientMCPTool>;
8708
+ /** WebMCP-style tool declaration. JSON values are converted to MCP results. */
8709
+ export interface ClientMCPWebTool {
8710
+ name: string;
8711
+ description: string;
8712
+ inputSchema?: Record<string, unknown>;
8713
+ execute: (args: Record<string, unknown>, context: ClientMCPCallContext) => unknown;
8714
+ }
8715
+ export interface ClientMCPRegistrationOptions {
8716
+ /** Aborting unregisters this tool and cancels its active callback signals. */
8717
+ signal?: AbortSignal;
8718
+ }
8719
+ export interface ClientMCPOptions {
8720
+ /** Installation namespace used by registerTool. Defaults to "browser". */
8721
+ namespace?: string;
8722
+ /** Leave calls without a locally registered callback to other clients of the session. */
8723
+ registeredToolsOnly?: boolean;
8724
+ /** Previous bound names mapped to their current bound names for calls already in flight. Aliases are local to this bridge. */
8725
+ toolAliases?: ReadonlyMap<string, string>;
8726
+ onError?: (error: Error) => void;
8727
+ /** Optional bounded receipt cache, e.g. window.localStorage. Never stores tool arguments or results. */
8728
+ storage?: Pick<Storage, "getItem" | "setItem">;
8729
+ webSocketFactory?: (url: string) => WebSocket;
8730
+ signal?: AbortSignal;
8731
+ }
8732
+ /** One bridge per session in a client. Cross-client exactly-once side effects require business idempotency. */
8733
+ export declare class ClientMCPBridge {
8734
+ private readonly api;
8735
+ readonly sessionId: string;
8736
+ private readonly socketURL;
8737
+ private readonly options;
8738
+ private readonly controller;
8739
+ private readonly signal;
8740
+ private readonly callbacks;
8741
+ private readonly installations;
8742
+ private readonly definitions;
8743
+ private readonly registrationCleanups;
8744
+ private mutation;
8745
+ private readonly pending;
8746
+ private readonly receipts;
8747
+ private readonly storageKey;
8748
+ private socket?;
8749
+ private connection?;
8750
+ private online;
8751
+ private cursor;
8752
+ private buffer;
8753
+ private syncing?;
8754
+ private catchUp;
8755
+ constructor(api: ApiClient["default"], sessionId: string, socketURL: () => Promise<string>, options?: ClientMCPOptions);
8756
+ /** Registers one named tool in this bridge's namespace, following WebMCP's declaration shape. */
8757
+ registerTool(tool: ClientMCPWebTool, options?: ClientMCPRegistrationOptions): Promise<void>;
8758
+ install(namespace: string, tools: ClientMCPTools): Promise<ClientMCPInstallation>;
8759
+ private installTools;
8760
+ uninstall(namespace: string): Promise<void>;
8761
+ private uninstallTools;
8762
+ private mutate;
8763
+ /** Resolves after subscription ACK and canonical history catch-up. Reconnects automatically thereafter. */
8764
+ connect(): Promise<void>;
8765
+ /** Stops communication and aborts callback signals. Installations remain for refresh/reconnect. */
8766
+ close(): void;
8767
+ private report;
8768
+ private run;
8769
+ private openSocket;
8770
+ private synchronize;
8771
+ private loadHistory;
8772
+ private consume;
8773
+ private complete;
8774
+ private dispatch;
8775
+ private callbackFor;
8776
+ private execute;
8777
+ }
8778
+ export interface ClientOptions {
8779
+ /** Main API URL including /api/v1. */
8780
+ apiUrl?: string;
8781
+ credentials?: CredentialProvider;
8782
+ /** Node entry only: defaults to /run/brazosd/identity/credentials.json. */
8783
+ credentialsFile?: string;
8784
+ headers?: HeadersInit;
8785
+ signal?: AbortSignal;
8786
+ }
8787
+ declare class BrazosdClient {
8788
+ readonly api: ApiClient["default"];
8789
+ readonly anclax: AnclaxClient["default"];
8790
+ readonly serverless: ServerlessClient["default"];
8791
+ private readonly socketURL;
8792
+ private readonly signal?;
8793
+ constructor(options?: ClientOptions);
8794
+ clientMCP(sessionId: string, options?: ClientMCPOptions): ClientMCPBridge;
8795
+ }
6836
8796
  export interface SSOIdentity {
6837
8797
  iss: string;
6838
8798
  aud: string;
@@ -6939,7 +8899,7 @@ export declare class BrazosdSSO {
6939
8899
  userClient(session: {
6940
8900
  getTokens(): Promise<SSOUserTokens>;
6941
8901
  saveTokens(tokens: SSOUserTokens, expectedRefreshToken: string): Promise<void>;
6942
- }): BrazosdClient;
8902
+ }): BrazosdClient$1;
6943
8903
  /** Also delete the application's own session/cookie after revoking this grant. */
6944
8904
  revoke(tokens: SSOUserTokens): Promise<void>;
6945
8905
  }
@@ -6949,24 +8909,13 @@ export declare class BrazosdError extends Error {
6949
8909
  readonly body: string;
6950
8910
  constructor(status: number, message: string, body: string);
6951
8911
  }
6952
- export interface ClientOptions {
6953
- /** Main API URL including /api/v1. Discovered from the identity file by default. */
6954
- apiUrl?: string;
6955
- credentials?: CredentialProvider;
6956
- credentialsFile?: string;
6957
- /** Extra HTTP headers, for example Range for a download. */
6958
- headers?: HeadersInit;
6959
- signal?: AbortSignal;
6960
- }
6961
- export declare class BrazosdClient {
6962
- readonly api: ApiClient["default"];
6963
- readonly anclax: AnclaxClient["default"];
6964
- readonly serverless: ServerlessClient["default"];
8912
+ declare class BrazosdClient$1 extends BrazosdClient {
6965
8913
  constructor(options?: ClientOptions);
6966
8914
  }
6967
- export declare function createClient(options?: ClientOptions): BrazosdClient;
8915
+ export declare function createClient(options?: ClientOptions): BrazosdClient$1;
6968
8916
 
6969
8917
  export {
8918
+ BrazosdClient$1 as BrazosdClient,
6970
8919
  Credentials$1 as Credentials,
6971
8920
  };
6972
8921