@brazosd/node 0.1.3 → 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 +1 -1
  2. package/browser.d.ts +1223 -52
  3. package/browser.js +2631 -402
  4. package/index.d.ts +1223 -52
  5. package/index.js +2631 -402
  6. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -294,6 +294,23 @@ type AgentContactListMutationRequest = {
294
294
  */
295
295
  toAgentId: string;
296
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
+ };
297
314
  type AgentListResponse = {
298
315
  items: Array<Agent>;
299
316
  /**
@@ -422,6 +439,10 @@ type AgentSession = {
422
439
  * Canonical activity timestamp used for inactivity archival.
423
440
  */
424
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;
425
446
  /**
426
447
  * UUID of the most recent run started for this session.
427
448
  */
@@ -748,10 +769,23 @@ type AuthorizeSSORequest = {
748
769
  mode: SSOMode;
749
770
  orgId: number;
750
771
  };
772
+ type BillingCloudDriveKind = "user.drive" | "org.drive" | "org-public.drive" | "public.drive" | "channel.drive" | "agent-repo.drive" | "other";
751
773
  type BillingCredit = {
752
774
  createdAt: string;
753
775
  earnedAmountMicroyuans: number;
754
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;
755
789
  orgId: number;
756
790
  rechargeAmountMicroyuans: number;
757
791
  totalAmountMicroyuans: number;
@@ -1141,6 +1175,53 @@ export type ClientMCPToolResult = {
1141
1175
  isError?: boolean;
1142
1176
  structuredContent?: Record<string, any>;
1143
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
+ };
1144
1225
  type CloudDriveFnode = {
1145
1226
  /**
1146
1227
  * MIME type of the file, when known. Null for directories.
@@ -1171,7 +1252,7 @@ type CloudDriveFnode = {
1171
1252
  */
1172
1253
  sha256?: string | null;
1173
1254
  /**
1174
- * File size in bytes. Null for directories.
1255
+ * Logical bytes for files and the eventually consistent total size for directories.
1175
1256
  */
1176
1257
  size?: number | null;
1177
1258
  /**
@@ -1183,6 +1264,20 @@ type CloudDriveFnode = {
1183
1264
  */
1184
1265
  updatedAt: string;
1185
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
+ };
1186
1281
  type CloudDriveSettings = {
1187
1282
  /**
1188
1283
  * Whether clients should show the `.tmp` area in file listings for this drive.
@@ -1193,6 +1288,20 @@ type CloudDriveSettings = {
1193
1288
  */
1194
1289
  trashCleanupIntervalDays?: number | null;
1195
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
+ };
1196
1305
  type CloudSkillMetadata = {
1197
1306
  /**
1198
1307
  * Public file UUID for the skill avatar, if present.
@@ -1492,6 +1601,10 @@ type CreateAgentRequest = {
1492
1601
  * Core system instruction that defines the agent's duties.
1493
1602
  */
1494
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;
1495
1608
  /**
1496
1609
  * Model ID the agent should use for new sessions.
1497
1610
  */
@@ -1505,6 +1618,15 @@ type CreateAgentRequest = {
1505
1618
  */
1506
1619
  uniqueKey: string;
1507
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
+ };
1508
1630
  type CreateAgentSession = {
1509
1631
  /**
1510
1632
  * Agent UUID to run.
@@ -1518,6 +1640,7 @@ type CreateAgentSession = {
1518
1640
  * Legacy compatibility field for temporary attachment paths. New clients should use `attachmentPaths`.
1519
1641
  */
1520
1642
  attachmentTmpPaths?: Array<string>;
1643
+ initialClientMcp?: InitialClientMCP;
1521
1644
  /**
1522
1645
  * Optional model ID to use for the session. If omitted, the agent model is used.
1523
1646
  */
@@ -1576,9 +1699,9 @@ type CreateChannelMessageResult = {
1576
1699
  };
1577
1700
  type ChannelSubjectRef = {
1578
1701
  /**
1579
- * 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.
1580
1703
  */
1581
- subjectId: string;
1704
+ subjectId: (string | number);
1582
1705
  subjectType: ChannelSubjectType;
1583
1706
  };
1584
1707
  type CreateChannelRequest = {
@@ -1596,12 +1719,35 @@ type CreateChannelRequest = {
1596
1719
  invitees: Array<ChannelSubjectRef>;
1597
1720
  type: ChannelType;
1598
1721
  };
1722
+ type CreateCLIRequest = {
1723
+ codeChallenge: string;
1724
+ redirectUri: string;
1725
+ scopes: Array<string>;
1726
+ state: string;
1727
+ };
1599
1728
  type CreateCloudDriveDirectoryRequest = {
1600
1729
  /**
1601
1730
  * Canonical destination path of the directory to create. Unicode text; percent sequences and plus signs are literal filename characters, not URL encoding.
1602
1731
  */
1603
1732
  path: string;
1604
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
+ };
1605
1751
  type CreateCredentialRequest = {
1606
1752
  /**
1607
1753
  * Human-readable description shown in management UIs.
@@ -1729,6 +1875,10 @@ type CreateSnapshotRequest = {
1729
1875
  */
1730
1876
  annotations?: Record<string, any>;
1731
1877
  description: string;
1878
+ /**
1879
+ * Optional client-generated UUID for tracking asynchronous capture.
1880
+ */
1881
+ id?: string;
1732
1882
  name: string;
1733
1883
  };
1734
1884
  type CreateSSORequest = {
@@ -1980,6 +2130,11 @@ type EnterprisePermissionPolicySummary = {
1980
2130
  type EnterprisePermissionRules = {
1981
2131
  rules: Array<EnterprisePermissionRule>;
1982
2132
  };
2133
+ type ExchangeCLICodeRequest = {
2134
+ code: string;
2135
+ codeVerifier: string;
2136
+ redirectUri: string;
2137
+ };
1983
2138
  type ExchangeSSOCodeRequest = {
1984
2139
  appId: string;
1985
2140
  code: string;
@@ -2018,11 +2173,6 @@ type GiftTopupRequest = {
2018
2173
  amountMicroyuans: number;
2019
2174
  note?: string;
2020
2175
  };
2021
- type ClientMCPToolDefinition = {
2022
- description: string;
2023
- inputSchema: Record<string, any>;
2024
- name: string;
2025
- };
2026
2176
  type InstallClientMCP = {
2027
2177
  tools: Array<ClientMCPToolDefinition>;
2028
2178
  };
@@ -2057,9 +2207,9 @@ type InvitationCodeListResponse = {
2057
2207
  };
2058
2208
  type InviteChannelMemberRequest = {
2059
2209
  /**
2060
- * 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.
2061
2211
  */
2062
- subjectId: string;
2212
+ subjectId: (string | number);
2063
2213
  subjectType: ChannelSubjectType;
2064
2214
  };
2065
2215
  type LlmModelPermissions = {
@@ -2276,6 +2426,9 @@ type MCPManageResult = {
2276
2426
  updated_at?: string;
2277
2427
  user_id?: number | null;
2278
2428
  };
2429
+ type MoveAgentToGroupRequest = {
2430
+ groupId?: string | null;
2431
+ };
2279
2432
  type MoveCloudDriveFnodeRequest = {
2280
2433
  /**
2281
2434
  * Canonical destination path to move to. Unicode text; percent sequences and plus signs are literal filename characters, not URL encoding.
@@ -2400,7 +2553,7 @@ type OrgGroup = {
2400
2553
  userIds: Array<number>;
2401
2554
  };
2402
2555
  type OrgGroupMembersRequest = {
2403
- userIds: Array<number>;
2556
+ userIds: Array<(string | number)>;
2404
2557
  };
2405
2558
  type OrgGroupRequest = {
2406
2559
  name: string;
@@ -2443,7 +2596,7 @@ type OrgLlmSettings = {
2443
2596
  */
2444
2597
  agentOverrideModelId?: string | null;
2445
2598
  /**
2446
- * 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.
2447
2600
  */
2448
2601
  imageModelId?: string | null;
2449
2602
  /**
@@ -2492,6 +2645,10 @@ type OrgUser = {
2492
2645
  * Bound phone number, if present.
2493
2646
  */
2494
2647
  phone?: string;
2648
+ /**
2649
+ * Unique organization namespace/username for this member. Use this value in user-targeted operations.
2650
+ */
2651
+ qualifiedName?: string;
2495
2652
  /**
2496
2653
  * Earliest time an owner may reactivate the account, 24 hours after deactivation.
2497
2654
  */
@@ -2788,6 +2945,10 @@ type RecruitAgentRequest = {
2788
2945
  */
2789
2946
  displayName?: string;
2790
2947
  };
2948
+ type RefreshCLITokensRequest = {
2949
+ refreshToken: string;
2950
+ requestId: string;
2951
+ };
2791
2952
  type RefreshSSOTokensRequest = {
2792
2953
  appId: string;
2793
2954
  refreshToken: string;
@@ -2863,6 +3024,9 @@ type RenameCloudDriveFnodeRequest = {
2863
3024
  */
2864
3025
  path: string;
2865
3026
  };
3027
+ type RenameCloudSandboxRequest = {
3028
+ name: string;
3029
+ };
2866
3030
  type ReplaceCloudSkillRequest = {
2867
3031
  /**
2868
3032
  * Readable canonical cloud-drive directory that atomically replaces the agent-repo skill.
@@ -2884,6 +3048,9 @@ type RestoreCloudDriveFnodeRequest = {
2884
3048
  */
2885
3049
  path: string;
2886
3050
  };
3051
+ type RevokeCLIGrantRequest = {
3052
+ refreshToken: string;
3053
+ };
2887
3054
  type RotateDeviceTokenResult = {
2888
3055
  device: Device;
2889
3056
  token: string;
@@ -2894,6 +3061,10 @@ type RunSandboxCommandRequest = {
2894
3061
  * Shell command to run inside the sandbox.
2895
3062
  */
2896
3063
  command: string;
3064
+ /**
3065
+ * Environment variables for this command invocation.
3066
+ */
3067
+ env?: Record<string, string>;
2897
3068
  /**
2898
3069
  * Optional absolute path to the shell binary used to execute command.
2899
3070
  */
@@ -2921,6 +3092,10 @@ type SandboxCommandResult = {
2921
3092
  */
2922
3093
  stdout: string;
2923
3094
  };
3095
+ type SaveAgentGroupRequest = {
3096
+ name: string;
3097
+ parentId?: string | null;
3098
+ };
2924
3099
  type ScheduledHttpRequest = {
2925
3100
  /**
2926
3101
  * UTF-8 body template, at most 65536 bytes both before and after secret substitution. JSON bodies are substituted structurally and re-encoded.
@@ -3023,6 +3198,30 @@ type ServiceUser = {
3023
3198
  displayName: string;
3024
3199
  id: number;
3025
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;
3026
3225
  };
3027
3226
  type SetDeviceDNSAliasRequest = {
3028
3227
  /**
@@ -3182,6 +3381,50 @@ type SharedAgentSessionToken = {
3182
3381
  */
3183
3382
  tokenType: "Bearer";
3184
3383
  };
3384
+ type SideQueryRequest = {
3385
+ input: string;
3386
+ };
3387
+ type AssistantUsageCost = {
3388
+ /**
3389
+ * Cost attributed to cached input tokens.
3390
+ */
3391
+ cacheInput?: number;
3392
+ /**
3393
+ * Cost attributed to input tokens.
3394
+ */
3395
+ input?: number;
3396
+ /**
3397
+ * Cost attributed to output tokens.
3398
+ */
3399
+ output?: number;
3400
+ /**
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
+ };
3185
3428
  type SnapshotProvider = "acs_e2b";
3186
3429
  type Snapshot = {
3187
3430
  /**
@@ -3235,22 +3478,42 @@ type SSOAuthorization = {
3235
3478
  redirectUrl: string;
3236
3479
  };
3237
3480
  type SSOGrant = {
3238
- appId: string;
3481
+ appId?: string;
3239
3482
  appName: string;
3483
+ /**
3484
+ * Built-in public client identifier for CLI grants.
3485
+ */
3486
+ clientId?: string;
3240
3487
  createdAt: string;
3241
3488
  expiresAt: string;
3242
3489
  id: string;
3243
3490
  orgId: number;
3491
+ /**
3492
+ * Cloud permissions requested by the CLI.
3493
+ */
3494
+ scopes?: Array<string>;
3244
3495
  userId: number;
3245
3496
  };
3246
3497
  type SSORequest = {
3247
- appId: string;
3498
+ appId?: string;
3248
3499
  appName: string;
3249
- 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;
3250
3509
  expiresAt: string;
3251
3510
  id: string;
3252
3511
  mode: SSOMode;
3253
3512
  redirectUri: string;
3513
+ /**
3514
+ * Cloud permissions requested by the CLI.
3515
+ */
3516
+ scopes?: Array<string>;
3254
3517
  };
3255
3518
  export type SSOTokens = {
3256
3519
  /**
@@ -3268,7 +3531,7 @@ export type SSOTokens = {
3268
3531
  orgId: number;
3269
3532
  refreshExpiresAt?: string;
3270
3533
  /**
3271
- * 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.
3272
3535
  */
3273
3536
  refreshToken?: string;
3274
3537
  userId: number;
@@ -3966,6 +4229,69 @@ declare class DefaultService {
3966
4229
  agentId: string;
3967
4230
  requestBody: UpdateAgentDelegationSettingsRequest;
3968
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>;
3969
4295
  /**
3970
4296
  * Delete agent repository
3971
4297
  * Soft delete a creator-owned agent repository. Recruited instances in other orgs keep historical data but can no longer start new work.
@@ -4168,7 +4494,7 @@ declare class DefaultService {
4168
4494
  }): CancelablePromise<AgentSession>;
4169
4495
  /**
4170
4496
  * Continue agent session
4171
- * 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.
4172
4498
  * @returns AgentSession Agent session continued
4173
4499
  * @throws ApiError
4174
4500
  */
@@ -4254,8 +4580,8 @@ declare class DefaultService {
4254
4580
  requestBody: UpdateAgentSessionLlmModel;
4255
4581
  }): CancelablePromise<AgentSession>;
4256
4582
  /**
4257
- * Resume an interrupted agent session
4258
- * Continue unfinished work without adding a user prompt. Starts a new run linked to the stopped run. Already running or otherwise ineligible sessions return 409.
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.
4259
4585
  * @returns AgentSession Recovery accepted
4260
4586
  * @throws ApiError
4261
4587
  */
@@ -4264,7 +4590,7 @@ declare class DefaultService {
4264
4590
  }): CancelablePromise<AgentSession>;
4265
4591
  /**
4266
4592
  * Resume an agent session and its descendants
4267
- * Resume unarchived interrupted 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.
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.
4268
4594
  * @returns AgentSessionTreeActionResult All eligible sessions resumed
4269
4595
  * @throws ApiError
4270
4596
  */
@@ -4313,6 +4639,27 @@ declare class DefaultService {
4313
4639
  rotateAgentSessionShare({ sessionId, }: {
4314
4640
  sessionId: string;
4315
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>;
4316
4663
  /**
4317
4664
  * Rename agent session
4318
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.
@@ -4453,6 +4800,31 @@ declare class DefaultService {
4453
4800
  agentId: string;
4454
4801
  deviceId: string;
4455
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>;
4456
4828
  /**
4457
4829
  * Publish agent
4458
4830
  * Set the confirmed third-party token multiplier and publish the agent's main factory settings so other orgs can instantiate it.
@@ -4631,7 +5003,7 @@ declare class DefaultService {
4631
5003
  */
4632
5004
  agentId: string;
4633
5005
  /**
4634
- * 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.
4635
5007
  */
4636
5008
  to?: number;
4637
5009
  /**
@@ -4809,9 +5181,43 @@ declare class DefaultService {
4809
5181
  refreshOrgToken({ requestBody, }: {
4810
5182
  requestBody: RefreshTokenRequest;
4811
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>>;
4812
5218
  /**
4813
5219
  * Get billing credits
4814
- * Get current credit balances for the current org.
5220
+ * Get the current organization's credit balances, lifetime spending, and invoiced and available invoice amounts.
4815
5221
  * @returns BillingCredit Billing credits retrieved
4816
5222
  * @throws ApiError
4817
5223
  */
@@ -5381,6 +5787,61 @@ declare class DefaultService {
5381
5787
  sha256: string;
5382
5788
  formData: UploadCloudDriveFileRequest;
5383
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>;
5384
5845
  /**
5385
5846
  * List consent forms
5386
5847
  * List consent forms received by the authenticated user in reverse chronological order
@@ -5953,15 +6414,65 @@ declare class DefaultService {
5953
6414
  requestBody: CreateManagedAccountRequest;
5954
6415
  }): CancelablePromise<ManagedAccountCredentials>;
5955
6416
  /**
5956
- * Deactivate org user
5957
- * Deactivate an existing org user. An authorized enterprise member or an ordinary-organization 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}.
5958
6419
  * @returns void
5959
6420
  * @throws ApiError
5960
6421
  */
5961
- deleteOrgUser({ userId, }: {
5962
- /**
5963
- * Numeric user ID of the org member to delete.
5964
- */
6422
+ deleteOrgUserByName({ namespace, username, }: {
6423
+ namespace: string;
6424
+ username: string;
6425
+ }): CancelablePromise<void>;
6426
+ /**
6427
+ * Update a managed member's display name by qualified name
6428
+ * @returns OrgUser Managed member updated
6429
+ * @throws ApiError
6430
+ */
6431
+ updateManagedOrgUserByName({ namespace, username, requestBody, }: {
6432
+ namespace: string;
6433
+ username: string;
6434
+ requestBody: UpdateCurrentOrgUserRequest;
6435
+ }): CancelablePromise<OrgUser>;
6436
+ /**
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.
6439
+ * @returns void
6440
+ * @throws ApiError
6441
+ */
6442
+ deactivateManagedOrgUserByName({ namespace, username, }: {
6443
+ namespace: string;
6444
+ username: string;
6445
+ }): CancelablePromise<void>;
6446
+ /**
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.
6449
+ * @returns void
6450
+ * @throws ApiError
6451
+ */
6452
+ reactivateManagedOrgUserByName({ namespace, username, }: {
6453
+ namespace: string;
6454
+ username: string;
6455
+ }): CancelablePromise<void>;
6456
+ /**
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.
6459
+ * @returns ManagedPasswordReset Temporary password generated
6460
+ * @throws ApiError
6461
+ */
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
+ */
5965
6476
  userId: number;
5966
6477
  }): CancelablePromise<void>;
5967
6478
  /**
@@ -6233,6 +6744,69 @@ declare class DefaultService {
6233
6744
  * @throws ApiError
6234
6745
  */
6235
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>;
6236
6810
  /**
6237
6811
  * Get an enterprise member's daily usage budget
6238
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.
@@ -6543,6 +7117,40 @@ declare class DefaultService {
6543
7117
  * @throws ApiError
6544
7118
  */
6545
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>;
6546
7154
  /**
6547
7155
  * Get the shared session selected by a short share key
6548
7156
  * Resolve immutable shared-session metadata using a short bearer key that is accepted only by session-share APIs.
@@ -6666,6 +7274,38 @@ declare class DefaultService {
6666
7274
  appId: string;
6667
7275
  requestBody: SSOAppConfiguration;
6668
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>;
6669
7309
  /**
6670
7310
  * Revoke a user grant using the application's service identity
6671
7311
  * @returns void
@@ -7062,6 +7702,9 @@ type Deployment = {
7062
7702
  appId: string;
7063
7703
  packageId: string;
7064
7704
  state: "pending" | "deploying" | "succeeded" | "failed" | "superseded" | "cancelled";
7705
+ /**
7706
+ * Number of candidates prepared by this rollout. Zero when updating a dormant function.
7707
+ */
7065
7708
  targetReplicas: number;
7066
7709
  readyReplicas: number;
7067
7710
  attempts: number;
@@ -7069,13 +7712,17 @@ type Deployment = {
7069
7712
  createdAt: string;
7070
7713
  startedAt?: string;
7071
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;
7072
7719
  };
7073
7720
  type App = {
7074
- serviceUserId: number;
7075
7721
  /**
7076
- * 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.
7077
7723
  */
7078
- developmentSnapshotId?: string;
7724
+ primaryUrl?: string;
7725
+ serviceUserId: number;
7079
7726
  /**
7080
7727
  * Configured database bindings; applied to the next deployment.
7081
7728
  */
@@ -7113,13 +7760,28 @@ type App = {
7113
7760
  desiredDeploymentId?: string;
7114
7761
  deployment?: Deployment;
7115
7762
  };
7763
+ type AppCredentialBindingInput = {
7764
+ credentialId: string;
7765
+ };
7116
7766
  type NodeMemoryGiB = 2;
7117
7767
  type NodeVCPU = 1;
7118
7768
  type AppInput = {
7119
7769
  /**
7120
- * Existing active service user in this organization, regardless of its creator. 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.
7771
+ */
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.
7121
7775
  */
7122
- serviceUserId?: number;
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);
7123
7785
  name: string;
7124
7786
  entrypoint?: string;
7125
7787
  healthPath?: string;
@@ -7200,6 +7862,10 @@ type AppSettings = {
7200
7862
  environment?: Record<string, string>;
7201
7863
  };
7202
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;
7203
7869
  id: string;
7204
7870
  name: string;
7205
7871
  hostname: string;
@@ -7213,17 +7879,100 @@ type AppSummary = {
7213
7879
  desiredDeploymentId?: string;
7214
7880
  deploymentState?: string;
7215
7881
  };
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 = {
7897
+ id: string;
7898
+ publisherOrgId: number;
7899
+ /**
7900
+ * Source function name and default installation name
7901
+ */
7902
+ name: string;
7903
+ profile: CloudAppProfile;
7904
+ /**
7905
+ * Whether the app is listed in the App Marketplace.
7906
+ */
7907
+ published: boolean;
7908
+ version: string;
7909
+ releaseNumber: number;
7910
+ bundlePath: string;
7911
+ namespace: string;
7912
+ };
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;
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;
7932
+ };
7933
+ type CloudAppInstallationList = {
7934
+ items: Array<CloudAppInstallation>;
7935
+ nextCursor?: string;
7936
+ };
7937
+ type CloudAppInstallInput = {
7938
+ name?: string;
7939
+ };
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
+ };
7216
7954
  type DomainDNSRecord = {
7217
7955
  type: "CNAME" | "TXT";
7218
7956
  name: string;
7219
7957
  value: string;
7220
- purpose: "routing" | "ownership";
7958
+ purpose: "routing" | "ownership" | "certificate";
7221
7959
  };
7222
7960
  type CustomDomain = {
7223
7961
  id: string;
7224
7962
  hostname: string;
7225
7963
  url: string;
7226
- state: "pending_dns" | "issuing" | "ready" | "renewing" | "error";
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";
7227
7976
  dnsRecords: Array<DomainDNSRecord>;
7228
7977
  createdAt: string;
7229
7978
  verifiedAt?: string;
@@ -7233,19 +7982,77 @@ type CustomDomain = {
7233
7982
  lastError: string;
7234
7983
  };
7235
7984
  type CustomDomainInput = {
7236
- hostname: string;
7985
+ hostname?: string;
7986
+ rootDomainId?: string;
7987
+ subdomain?: string;
7237
7988
  };
7238
7989
  type Database = {
7239
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;
7240
7995
  name: string;
7241
7996
  state: string;
7242
7997
  /**
7243
- * Private WS connection string containing access credentials; treat as a secret.
7998
+ * Private WS connection string containing access credentials. Empty when the database is pending or enterprise policy allows listing without reading the database.
7244
7999
  */
7245
8000
  connectionString: string;
7246
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
+ };
7247
8030
  type DatabaseInput = {
7248
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;
7249
8056
  };
7250
8057
  type DeploymentInput = {
7251
8058
  packageId: string;
@@ -7258,9 +8065,21 @@ type DeploymentPackage = {
7258
8065
  size: number;
7259
8066
  createdAt: string;
7260
8067
  };
7261
- type DevelopmentSnapshotInput = {
7262
- snapshotId: string | null;
7263
- expectedSnapshotId: string | null;
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;
7264
8083
  };
7265
8084
  type ImportDeploymentPackage = {
7266
8085
  /**
@@ -7268,6 +8087,30 @@ type ImportDeploymentPackage = {
7268
8087
  */
7269
8088
  path: string;
7270
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
+ };
7271
8114
  type Usage = {
7272
8115
  kind: "function" | "sqlite";
7273
8116
  resourceId: string;
@@ -7299,20 +8142,187 @@ declare class DefaultService$2 {
7299
8142
  readonly httpRequest: BaseHttpRequest;
7300
8143
  constructor(httpRequest: BaseHttpRequest);
7301
8144
  /**
7302
- * @returns CustomDomain Custom domains and DNS configuration
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
7303
8303
  * @throws ApiError
7304
8304
  */
7305
8305
  listAppDomains({ id, }: {
7306
8306
  id: string;
7307
8307
  }): CancelablePromise<Array<CustomDomain>>;
7308
8308
  /**
7309
- * @returns CustomDomain Domain reserved; configure both DNS records to begin verification
8309
+ * @returns CustomDomain Domain bound; organization-root subdomains need no separate DNS setup. Other domains require the returned DNS records.
7310
8310
  * @throws ApiError
7311
8311
  */
7312
8312
  createAppDomain({ id, requestBody, }: {
7313
8313
  id: string;
7314
8314
  requestBody: CustomDomainInput;
7315
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>;
7316
8326
  /**
7317
8327
  * @returns void
7318
8328
  * @throws ApiError
@@ -7327,7 +8337,7 @@ declare class DefaultService$2 {
7327
8337
  */
7328
8338
  getServerlessOpenApi(): CancelablePromise<string>;
7329
8339
  /**
7330
- * Lists all undeleted functions in the caller's organization. Active organization members share management access; enterprise permissions belong to the API layer.
8340
+ * List undeleted functions in the caller's organization.
7331
8341
  * @returns AppSummary Success
7332
8342
  * @throws ApiError
7333
8343
  */
@@ -7361,6 +8371,53 @@ declare class DefaultService$2 {
7361
8371
  deleteApp({ id, }: {
7362
8372
  id: string;
7363
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
+ }>;
7364
8421
  /**
7365
8422
  * Query cloud function stdout and stderr without waking the function
7366
8423
  * Queries retained container logs for current and stopped instances. Requires the same
@@ -7432,6 +8489,13 @@ declare class DefaultService$2 {
7432
8489
  createDatabase({ requestBody, }: {
7433
8490
  requestBody: DatabaseInput;
7434
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>;
7435
8499
  /**
7436
8500
  * @returns any Success
7437
8501
  * @throws ApiError
@@ -7439,6 +8503,114 @@ declare class DefaultService$2 {
7439
8503
  deleteDatabase({ id, }: {
7440
8504
  id: string;
7441
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>;
7442
8614
  /**
7443
8615
  * @returns Usage Success
7444
8616
  * @throws ApiError
@@ -7477,7 +8649,9 @@ declare class DefaultService$2 {
7477
8649
  id: string;
7478
8650
  }): CancelablePromise<Array<Deployment>>;
7479
8651
  /**
7480
- * @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
7481
8655
  * @throws ApiError
7482
8656
  */
7483
8657
  createDeployment({ id, requestBody, }: {
@@ -7500,14 +8674,6 @@ declare class DefaultService$2 {
7500
8674
  id: string;
7501
8675
  deploymentId: string;
7502
8676
  }): CancelablePromise<any>;
7503
- /**
7504
- * @returns App Saved development snapshot changed
7505
- * @throws ApiError
7506
- */
7507
- setDevelopmentSnapshot({ id, requestBody, }: {
7508
- id: string;
7509
- requestBody: DevelopmentSnapshotInput;
7510
- }): CancelablePromise<App>;
7511
8677
  }
7512
8678
  type HttpRequestConstructor$2 = new (config: OpenAPIConfig) => BaseHttpRequest;
7513
8679
  declare class ServerlessClient {
@@ -7553,6 +8719,10 @@ export interface ClientMCPRegistrationOptions {
7553
8719
  export interface ClientMCPOptions {
7554
8720
  /** Installation namespace used by registerTool. Defaults to "browser". */
7555
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>;
7556
8726
  onError?: (error: Error) => void;
7557
8727
  /** Optional bounded receipt cache, e.g. window.localStorage. Never stores tool arguments or results. */
7558
8728
  storage?: Pick<Storage, "getItem" | "setItem">;
@@ -7602,6 +8772,7 @@ export declare class ClientMCPBridge {
7602
8772
  private consume;
7603
8773
  private complete;
7604
8774
  private dispatch;
8775
+ private callbackFor;
7605
8776
  private execute;
7606
8777
  }
7607
8778
  export interface ClientOptions {