@brazosd/node 0.1.3 → 0.1.7

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 +1261 -51
  3. package/browser.js +2671 -406
  4. package/index.d.ts +1261 -51
  5. package/index.js +2671 -406
  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.
@@ -1460,6 +1569,10 @@ type CopyCloudDriveFnodeRequest = {
1460
1569
  * Whether an existing file or directory at the destination may be replaced. Directory replacement is transactional and preserves the destination directory fnode.
1461
1570
  */
1462
1571
  overwrite?: boolean;
1572
+ /**
1573
+ * Copy read-only reference entries as references to the source entry. The default materializes their contents.
1574
+ */
1575
+ preserveReferences?: boolean;
1463
1576
  /**
1464
1577
  * Canonical source path to copy from. Unicode text; percent sequences and plus signs are literal filename characters, not URL encoding.
1465
1578
  */
@@ -1492,6 +1605,10 @@ type CreateAgentRequest = {
1492
1605
  * Core system instruction that defines the agent's duties.
1493
1606
  */
1494
1607
  dutyPrompt: string;
1608
+ /**
1609
+ * Optional initial directory group. Requires agent-groups:manage in addition to agent creation permission. Omission places the agent at the root.
1610
+ */
1611
+ groupId?: string;
1495
1612
  /**
1496
1613
  * Model ID the agent should use for new sessions.
1497
1614
  */
@@ -1505,6 +1622,15 @@ type CreateAgentRequest = {
1505
1622
  */
1506
1623
  uniqueKey: string;
1507
1624
  };
1625
+ type ClientMCPToolDefinition = {
1626
+ description: string;
1627
+ inputSchema: Record<string, any>;
1628
+ name: string;
1629
+ };
1630
+ type InitialClientMCP = {
1631
+ namespace: string;
1632
+ tools: Array<ClientMCPToolDefinition>;
1633
+ };
1508
1634
  type CreateAgentSession = {
1509
1635
  /**
1510
1636
  * Agent UUID to run.
@@ -1518,6 +1644,7 @@ type CreateAgentSession = {
1518
1644
  * Legacy compatibility field for temporary attachment paths. New clients should use `attachmentPaths`.
1519
1645
  */
1520
1646
  attachmentTmpPaths?: Array<string>;
1647
+ initialClientMcp?: InitialClientMCP;
1521
1648
  /**
1522
1649
  * Optional model ID to use for the session. If omitted, the agent model is used.
1523
1650
  */
@@ -1576,9 +1703,9 @@ type CreateChannelMessageResult = {
1576
1703
  };
1577
1704
  type ChannelSubjectRef = {
1578
1705
  /**
1579
- * Subject identifier. Use the numeric user ID as a string for users and the agent UUID for agents.
1706
+ * Users accept namespace/username or a positive numeric ID. Agents use a UUID.
1580
1707
  */
1581
- subjectId: string;
1708
+ subjectId: (string | number);
1582
1709
  subjectType: ChannelSubjectType;
1583
1710
  };
1584
1711
  type CreateChannelRequest = {
@@ -1596,12 +1723,35 @@ type CreateChannelRequest = {
1596
1723
  invitees: Array<ChannelSubjectRef>;
1597
1724
  type: ChannelType;
1598
1725
  };
1726
+ type CreateCLIRequest = {
1727
+ codeChallenge: string;
1728
+ redirectUri: string;
1729
+ scopes: Array<string>;
1730
+ state: string;
1731
+ };
1599
1732
  type CreateCloudDriveDirectoryRequest = {
1600
1733
  /**
1601
1734
  * Canonical destination path of the directory to create. Unicode text; percent sequences and plus signs are literal filename characters, not URL encoding.
1602
1735
  */
1603
1736
  path: string;
1604
1737
  };
1738
+ type CreateCloudSandboxRequest = {
1739
+ /**
1740
+ * Optional client-generated resource UUID for tracking asynchronous creation.
1741
+ */
1742
+ id?: string;
1743
+ name: string;
1744
+ ports?: Array<number>;
1745
+ /**
1746
+ * Qualified name or positive numeric ID of an active service user in this organization. Omit to allocate a service user.
1747
+ */
1748
+ serviceUserId?: (string | number);
1749
+ snapshotId?: string;
1750
+ /**
1751
+ * Sandbox resource SKU
1752
+ */
1753
+ spec?: string;
1754
+ };
1605
1755
  type CreateCredentialRequest = {
1606
1756
  /**
1607
1757
  * Human-readable description shown in management UIs.
@@ -1729,6 +1879,10 @@ type CreateSnapshotRequest = {
1729
1879
  */
1730
1880
  annotations?: Record<string, any>;
1731
1881
  description: string;
1882
+ /**
1883
+ * Optional client-generated UUID for tracking asynchronous capture.
1884
+ */
1885
+ id?: string;
1732
1886
  name: string;
1733
1887
  };
1734
1888
  type CreateSSORequest = {
@@ -1980,6 +2134,11 @@ type EnterprisePermissionPolicySummary = {
1980
2134
  type EnterprisePermissionRules = {
1981
2135
  rules: Array<EnterprisePermissionRule>;
1982
2136
  };
2137
+ type ExchangeCLICodeRequest = {
2138
+ code: string;
2139
+ codeVerifier: string;
2140
+ redirectUri: string;
2141
+ };
1983
2142
  type ExchangeSSOCodeRequest = {
1984
2143
  appId: string;
1985
2144
  code: string;
@@ -2018,11 +2177,6 @@ type GiftTopupRequest = {
2018
2177
  amountMicroyuans: number;
2019
2178
  note?: string;
2020
2179
  };
2021
- type ClientMCPToolDefinition = {
2022
- description: string;
2023
- inputSchema: Record<string, any>;
2024
- name: string;
2025
- };
2026
2180
  type InstallClientMCP = {
2027
2181
  tools: Array<ClientMCPToolDefinition>;
2028
2182
  };
@@ -2057,9 +2211,9 @@ type InvitationCodeListResponse = {
2057
2211
  };
2058
2212
  type InviteChannelMemberRequest = {
2059
2213
  /**
2060
- * Subject identifier. Use the numeric user ID as a string for users and the agent UUID for agents.
2214
+ * Users accept namespace/username or a positive numeric ID. Agents use a UUID.
2061
2215
  */
2062
- subjectId: string;
2216
+ subjectId: (string | number);
2063
2217
  subjectType: ChannelSubjectType;
2064
2218
  };
2065
2219
  type LlmModelPermissions = {
@@ -2276,6 +2430,9 @@ type MCPManageResult = {
2276
2430
  updated_at?: string;
2277
2431
  user_id?: number | null;
2278
2432
  };
2433
+ type MoveAgentToGroupRequest = {
2434
+ groupId?: string | null;
2435
+ };
2279
2436
  type MoveCloudDriveFnodeRequest = {
2280
2437
  /**
2281
2438
  * Canonical destination path to move to. Unicode text; percent sequences and plus signs are literal filename characters, not URL encoding.
@@ -2400,7 +2557,7 @@ type OrgGroup = {
2400
2557
  userIds: Array<number>;
2401
2558
  };
2402
2559
  type OrgGroupMembersRequest = {
2403
- userIds: Array<number>;
2560
+ userIds: Array<(string | number)>;
2404
2561
  };
2405
2562
  type OrgGroupRequest = {
2406
2563
  name: string;
@@ -2443,7 +2600,7 @@ type OrgLlmSettings = {
2443
2600
  */
2444
2601
  agentOverrideModelId?: string | null;
2445
2602
  /**
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.
2603
+ * 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
2604
  */
2448
2605
  imageModelId?: string | null;
2449
2606
  /**
@@ -2492,6 +2649,10 @@ type OrgUser = {
2492
2649
  * Bound phone number, if present.
2493
2650
  */
2494
2651
  phone?: string;
2652
+ /**
2653
+ * Unique organization namespace/username for this member. Use this value in user-targeted operations.
2654
+ */
2655
+ qualifiedName?: string;
2495
2656
  /**
2496
2657
  * Earliest time an owner may reactivate the account, 24 hours after deactivation.
2497
2658
  */
@@ -2713,7 +2874,11 @@ type Quota = {
2713
2874
  */
2714
2875
  limit?: number | null;
2715
2876
  /**
2716
- * Current usage measured with the quota key's counting semantics.
2877
+ * The resource service could not report a current measurement. Omit the usage display.
2878
+ */
2879
+ usageUnavailable?: boolean;
2880
+ /**
2881
+ * Current usage when usageUnavailable is absent or false.
2717
2882
  */
2718
2883
  used: number;
2719
2884
  };
@@ -2788,6 +2953,10 @@ type RecruitAgentRequest = {
2788
2953
  */
2789
2954
  displayName?: string;
2790
2955
  };
2956
+ type RefreshCLITokensRequest = {
2957
+ refreshToken: string;
2958
+ requestId: string;
2959
+ };
2791
2960
  type RefreshSSOTokensRequest = {
2792
2961
  appId: string;
2793
2962
  refreshToken: string;
@@ -2863,6 +3032,9 @@ type RenameCloudDriveFnodeRequest = {
2863
3032
  */
2864
3033
  path: string;
2865
3034
  };
3035
+ type RenameCloudSandboxRequest = {
3036
+ name: string;
3037
+ };
2866
3038
  type ReplaceCloudSkillRequest = {
2867
3039
  /**
2868
3040
  * Readable canonical cloud-drive directory that atomically replaces the agent-repo skill.
@@ -2884,6 +3056,9 @@ type RestoreCloudDriveFnodeRequest = {
2884
3056
  */
2885
3057
  path: string;
2886
3058
  };
3059
+ type RevokeCLIGrantRequest = {
3060
+ refreshToken: string;
3061
+ };
2887
3062
  type RotateDeviceTokenResult = {
2888
3063
  device: Device;
2889
3064
  token: string;
@@ -2894,6 +3069,10 @@ type RunSandboxCommandRequest = {
2894
3069
  * Shell command to run inside the sandbox.
2895
3070
  */
2896
3071
  command: string;
3072
+ /**
3073
+ * Environment variables for this command invocation.
3074
+ */
3075
+ env?: Record<string, string>;
2897
3076
  /**
2898
3077
  * Optional absolute path to the shell binary used to execute command.
2899
3078
  */
@@ -2921,6 +3100,10 @@ type SandboxCommandResult = {
2921
3100
  */
2922
3101
  stdout: string;
2923
3102
  };
3103
+ type SaveAgentGroupRequest = {
3104
+ name: string;
3105
+ parentId?: string | null;
3106
+ };
2924
3107
  type ScheduledHttpRequest = {
2925
3108
  /**
2926
3109
  * UTF-8 body template, at most 65536 bytes both before and after secret substitution. JSON bodies are substituted structurally and re-encoded.
@@ -3023,6 +3206,30 @@ type ServiceUser = {
3023
3206
  displayName: string;
3024
3207
  id: number;
3025
3208
  name: string;
3209
+ /**
3210
+ * Current organization namespace and service username separated by a slash. Use this value in bindings.
3211
+ */
3212
+ qualifiedName?: string;
3213
+ /**
3214
+ * Stable service username within the organization.
3215
+ */
3216
+ username: string;
3217
+ };
3218
+ type SessionSubscription = {
3219
+ createdAt: string;
3220
+ deviceId?: string;
3221
+ executionId?: string;
3222
+ id: string;
3223
+ lastReceivedAt?: string;
3224
+ publicationId: string;
3225
+ sourceSessionId?: string;
3226
+ status: "waiting" | "received";
3227
+ type: "subagent" | "background_terminal";
3228
+ waitingSince?: string;
3229
+ };
3230
+ type SessionSubscriptionPage = {
3231
+ items: Array<SessionSubscription>;
3232
+ nextCursor?: string;
3026
3233
  };
3027
3234
  type SetDeviceDNSAliasRequest = {
3028
3235
  /**
@@ -3182,6 +3389,50 @@ type SharedAgentSessionToken = {
3182
3389
  */
3183
3390
  tokenType: "Bearer";
3184
3391
  };
3392
+ type SideQueryRequest = {
3393
+ input: string;
3394
+ };
3395
+ type AssistantUsageCost = {
3396
+ /**
3397
+ * Cost attributed to cached input tokens.
3398
+ */
3399
+ cacheInput?: number;
3400
+ /**
3401
+ * Cost attributed to input tokens.
3402
+ */
3403
+ input?: number;
3404
+ /**
3405
+ * Cost attributed to output tokens.
3406
+ */
3407
+ output?: number;
3408
+ /**
3409
+ * Total cost across all token categories.
3410
+ */
3411
+ total?: number;
3412
+ };
3413
+ type AssistantUsage = {
3414
+ /**
3415
+ * Cached input token count.
3416
+ */
3417
+ cacheInput?: number;
3418
+ cost?: AssistantUsageCost;
3419
+ /**
3420
+ * Input token count.
3421
+ */
3422
+ input?: number;
3423
+ /**
3424
+ * Output token count.
3425
+ */
3426
+ output?: number;
3427
+ /**
3428
+ * Total token count across input, output, and cache categories.
3429
+ */
3430
+ totalTokens?: number;
3431
+ };
3432
+ type SideQueryResponse = {
3433
+ reply: string;
3434
+ usage?: AssistantUsage;
3435
+ };
3185
3436
  type SnapshotProvider = "acs_e2b";
3186
3437
  type Snapshot = {
3187
3438
  /**
@@ -3235,22 +3486,42 @@ type SSOAuthorization = {
3235
3486
  redirectUrl: string;
3236
3487
  };
3237
3488
  type SSOGrant = {
3238
- appId: string;
3489
+ appId?: string;
3239
3490
  appName: string;
3491
+ /**
3492
+ * Built-in public client identifier for CLI grants.
3493
+ */
3494
+ clientId?: string;
3240
3495
  createdAt: string;
3241
3496
  expiresAt: string;
3242
3497
  id: string;
3243
3498
  orgId: number;
3499
+ /**
3500
+ * Cloud permissions requested by the CLI.
3501
+ */
3502
+ scopes?: Array<string>;
3244
3503
  userId: number;
3245
3504
  };
3246
3505
  type SSORequest = {
3247
- appId: string;
3506
+ appId?: string;
3248
3507
  appName: string;
3249
- appOrgId: number;
3508
+ appOrgId?: number;
3509
+ /**
3510
+ * Local CLI callback containing only the request state and access_denied.
3511
+ */
3512
+ cancelUri?: string;
3513
+ /**
3514
+ * Built-in public client identifier for CLI grants.
3515
+ */
3516
+ clientId?: string;
3250
3517
  expiresAt: string;
3251
3518
  id: string;
3252
3519
  mode: SSOMode;
3253
3520
  redirectUri: string;
3521
+ /**
3522
+ * Cloud permissions requested by the CLI.
3523
+ */
3524
+ scopes?: Array<string>;
3254
3525
  };
3255
3526
  export type SSOTokens = {
3256
3527
  /**
@@ -3268,7 +3539,7 @@ export type SSOTokens = {
3268
3539
  orgId: number;
3269
3540
  refreshExpiresAt?: string;
3270
3541
  /**
3271
- * Only present in org-user mode. Exchange only at /sso/refresh using the application's service credential.
3542
+ * Org-user refresh credential. Cloud apps use /sso/refresh and the CLI uses /sso/cli/refresh.
3272
3543
  */
3273
3544
  refreshToken?: string;
3274
3545
  userId: number;
@@ -3966,6 +4237,69 @@ declare class DefaultService {
3966
4237
  agentId: string;
3967
4238
  requestBody: UpdateAgentDelegationSettingsRequest;
3968
4239
  }): CancelablePromise<Agent>;
4240
+ /**
4241
+ * List direct children or search the organization's agent directory
4242
+ * Groups precede agents, ordered by name and ID. Search covers the whole directory. Cursors are bound to the authenticated user, organization and query.
4243
+ * @returns AgentDirectoryPage Directory page
4244
+ * @throws ApiError
4245
+ */
4246
+ listAgentDirectory({ parentId, q, cursor, limit, }: {
4247
+ parentId?: string;
4248
+ q?: string;
4249
+ cursor?: string;
4250
+ limit?: number;
4251
+ }): CancelablePromise<AgentDirectoryPage>;
4252
+ /**
4253
+ * Locate an agent and its ancestors even outside loaded pages
4254
+ * @returns AgentDirectoryEntry Root-to-leaf path, ending with the agent
4255
+ * @throws ApiError
4256
+ */
4257
+ getAgentDirectoryPath({ agentId, }: {
4258
+ agentId: string;
4259
+ }): CancelablePromise<Array<AgentDirectoryEntry>>;
4260
+ /**
4261
+ * Locate a group and its ancestors
4262
+ * @returns AgentDirectoryEntry Root-to-group path
4263
+ * @throws ApiError
4264
+ */
4265
+ getAgentGroupDirectoryPath({ groupId, }: {
4266
+ groupId: string;
4267
+ }): CancelablePromise<Array<AgentDirectoryEntry>>;
4268
+ /**
4269
+ * List the authenticated user's favorite agents in the current organization
4270
+ * @returns AgentDirectoryPage Favorites page
4271
+ * @throws ApiError
4272
+ */
4273
+ listAgentFavorites({ cursor, limit, }: {
4274
+ cursor?: string;
4275
+ limit?: number;
4276
+ }): CancelablePromise<AgentDirectoryPage>;
4277
+ /**
4278
+ * Create an organization-shared agent group
4279
+ * @returns AgentDirectoryEntry Group created
4280
+ * @throws ApiError
4281
+ */
4282
+ createAgentGroup({ requestBody, }: {
4283
+ requestBody: SaveAgentGroupRequest;
4284
+ }): CancelablePromise<AgentDirectoryEntry>;
4285
+ /**
4286
+ * Dissolve a group and promote its direct children to its parent
4287
+ * Preserves agents, descendant groups, sessions and personal favorites.
4288
+ * @returns void
4289
+ * @throws ApiError
4290
+ */
4291
+ dissolveAgentGroup({ groupId, }: {
4292
+ groupId: string;
4293
+ }): CancelablePromise<void>;
4294
+ /**
4295
+ * Rename or move a group, including all descendants
4296
+ * @returns AgentDirectoryEntry Group updated
4297
+ * @throws ApiError
4298
+ */
4299
+ updateAgentGroup({ groupId, requestBody, }: {
4300
+ groupId: string;
4301
+ requestBody: SaveAgentGroupRequest;
4302
+ }): CancelablePromise<AgentDirectoryEntry>;
3969
4303
  /**
3970
4304
  * Delete agent repository
3971
4305
  * Soft delete a creator-owned agent repository. Recruited instances in other orgs keep historical data but can no longer start new work.
@@ -4168,7 +4502,7 @@ declare class DefaultService {
4168
4502
  }): CancelablePromise<AgentSession>;
4169
4503
  /**
4170
4504
  * Continue agent session
4171
- * Append a new user prompt to an existing managed agent session
4505
+ * 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
4506
  * @returns AgentSession Agent session continued
4173
4507
  * @throws ApiError
4174
4508
  */
@@ -4254,8 +4588,8 @@ declare class DefaultService {
4254
4588
  requestBody: UpdateAgentSessionLlmModel;
4255
4589
  }): CancelablePromise<AgentSession>;
4256
4590
  /**
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.
4591
+ * Resume an interrupted or failed agent session
4592
+ * 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
4593
  * @returns AgentSession Recovery accepted
4260
4594
  * @throws ApiError
4261
4595
  */
@@ -4264,7 +4598,7 @@ declare class DefaultService {
4264
4598
  }): CancelablePromise<AgentSession>;
4265
4599
  /**
4266
4600
  * 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.
4601
+ * 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
4602
  * @returns AgentSessionTreeActionResult All eligible sessions resumed
4269
4603
  * @throws ApiError
4270
4604
  */
@@ -4313,6 +4647,27 @@ declare class DefaultService {
4313
4647
  rotateAgentSessionShare({ sessionId, }: {
4314
4648
  sessionId: string;
4315
4649
  }): CancelablePromise<SharedAgentSessionToken>;
4650
+ /**
4651
+ * Ask an ephemeral question about a session
4652
+ * 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.
4653
+ * @returns SideQueryResponse Answer and provider token usage
4654
+ * @throws ApiError
4655
+ */
4656
+ sideQueryAgentSession({ sessionId, requestBody, }: {
4657
+ sessionId: string;
4658
+ requestBody: SideQueryRequest;
4659
+ }): CancelablePromise<SideQueryResponse>;
4660
+ /**
4661
+ * List current session subscriptions
4662
+ * Read non-cancelled subscriptions from the primary database, ordered by creation time and ID. Refresh explicitly to see changes.
4663
+ * @returns SessionSubscriptionPage Current subscriptions; cancelled subscriptions are excluded.
4664
+ * @throws ApiError
4665
+ */
4666
+ listAgentSessionSubscriptions({ sessionId, cursor, limit, }: {
4667
+ sessionId: string;
4668
+ cursor?: string;
4669
+ limit?: number;
4670
+ }): CancelablePromise<SessionSubscriptionPage>;
4316
4671
  /**
4317
4672
  * Rename agent session
4318
4673
  * 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 +4808,31 @@ declare class DefaultService {
4453
4808
  agentId: string;
4454
4809
  deviceId: string;
4455
4810
  }): CancelablePromise<void>;
4811
+ /**
4812
+ * Remove the authenticated user's favorite (idempotent)
4813
+ * @returns void
4814
+ * @throws ApiError
4815
+ */
4816
+ removeAgentFavorite({ agentId, }: {
4817
+ agentId: string;
4818
+ }): CancelablePromise<void>;
4819
+ /**
4820
+ * Favorite an agent for the authenticated user (idempotent)
4821
+ * @returns void
4822
+ * @throws ApiError
4823
+ */
4824
+ addAgentFavorite({ agentId, }: {
4825
+ agentId: string;
4826
+ }): CancelablePromise<void>;
4827
+ /**
4828
+ * Move an agent to a group or the root
4829
+ * @returns void
4830
+ * @throws ApiError
4831
+ */
4832
+ moveAgentToGroup({ agentId, requestBody, }: {
4833
+ agentId: string;
4834
+ requestBody: MoveAgentToGroupRequest;
4835
+ }): CancelablePromise<void>;
4456
4836
  /**
4457
4837
  * Publish agent
4458
4838
  * Set the confirmed third-party token multiplier and publish the agent's main factory settings so other orgs can instantiate it.
@@ -4631,7 +5011,7 @@ declare class DefaultService {
4631
5011
  */
4632
5012
  agentId: string;
4633
5013
  /**
4634
- * Inclusive upper bound for session creation time as Unix microseconds. Omit to start from the newest sessions.
5014
+ * 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
5015
  */
4636
5016
  to?: number;
4637
5017
  /**
@@ -4809,9 +5189,43 @@ declare class DefaultService {
4809
5189
  refreshOrgToken({ requestBody, }: {
4810
5190
  requestBody: RefreshTokenRequest;
4811
5191
  }): CancelablePromise<OrgAuthCredentials>;
5192
+ /**
5193
+ * List preaggregated member and functional drive capacity and daily access usage for the authenticated organization
5194
+ * @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
5195
+ * @throws ApiError
5196
+ */
5197
+ listBillingCloudDriveCapacities({ after, limit, usageDay, driveKind, }: {
5198
+ /**
5199
+ * Last root ID from the previous page
5200
+ */
5201
+ after?: string;
5202
+ limit?: number;
5203
+ /**
5204
+ * UTC usage day for access fees and the last capacity sample. Defaults to today.
5205
+ */
5206
+ usageDay?: string;
5207
+ /**
5208
+ * Filter before cursor pagination. Omit for all drives.
5209
+ */
5210
+ driveKind?: BillingCloudDriveKind;
5211
+ }): CancelablePromise<Array<CloudDriveCapacity>>;
5212
+ /**
5213
+ * Get the authenticated organization's current logical storage total and breakdown by drive kind
5214
+ * @returns CloudDriveCapacitySummary One current organization snapshot, independent of pagination and usage day
5215
+ * @throws ApiError
5216
+ */
5217
+ getBillingCloudDriveCapacitySummary(): CancelablePromise<CloudDriveCapacitySummary>;
5218
+ /**
5219
+ * Read the current organization's cloud drive invoice for one UTC issue date
5220
+ * @returns CloudDriveInvoiceItem Incremental charges and quantities on this invoice, including late adjustments
5221
+ * @throws ApiError
5222
+ */
5223
+ getBillingCloudDriveInvoice({ invoiceDay, }: {
5224
+ invoiceDay: string;
5225
+ }): CancelablePromise<Array<CloudDriveInvoiceItem>>;
4812
5226
  /**
4813
5227
  * Get billing credits
4814
- * Get current credit balances for the current org.
5228
+ * Get the current organization's credit balances, lifetime spending, and invoiced and available invoice amounts.
4815
5229
  * @returns BillingCredit Billing credits retrieved
4816
5230
  * @throws ApiError
4817
5231
  */
@@ -5381,6 +5795,61 @@ declare class DefaultService {
5381
5795
  sha256: string;
5382
5796
  formData: UploadCloudDriveFileRequest;
5383
5797
  }): CancelablePromise<CloudDriveFnode>;
5798
+ /**
5799
+ * List cloud sandboxes
5800
+ * @returns CloudSandbox Organization cloud sandboxes visible to the caller
5801
+ * @throws ApiError
5802
+ */
5803
+ listCloudSandboxes(): CancelablePromise<Array<CloudSandbox>>;
5804
+ /**
5805
+ * Create and start a persistent cloud sandbox
5806
+ * @returns CloudSandbox Creation accepted
5807
+ * @throws ApiError
5808
+ */
5809
+ createCloudSandbox({ requestBody, }: {
5810
+ requestBody: CreateCloudSandboxRequest;
5811
+ }): CancelablePromise<CloudSandbox>;
5812
+ /**
5813
+ * Retire a cloud sandbox and release its resources
5814
+ * @returns any Deletion accepted
5815
+ * @throws ApiError
5816
+ */
5817
+ deleteCloudSandbox({ sandboxId, }: {
5818
+ sandboxId: string;
5819
+ }): CancelablePromise<any>;
5820
+ /**
5821
+ * Get a cloud sandbox
5822
+ * @returns CloudSandbox Cloud sandbox
5823
+ * @throws ApiError
5824
+ */
5825
+ getCloudSandbox({ sandboxId, }: {
5826
+ sandboxId: string;
5827
+ }): CancelablePromise<CloudSandbox>;
5828
+ /**
5829
+ * Edit the display name
5830
+ * @returns CloudSandbox Updated cloud sandbox
5831
+ * @throws ApiError
5832
+ */
5833
+ renameCloudSandbox({ sandboxId, requestBody, }: {
5834
+ sandboxId: string;
5835
+ requestBody: RenameCloudSandboxRequest;
5836
+ }): CancelablePromise<CloudSandbox>;
5837
+ /**
5838
+ * Checkpoint a cloud sandbox into deep sleep
5839
+ * @returns any Pause accepted
5840
+ * @throws ApiError
5841
+ */
5842
+ pauseCloudSandbox({ sandboxId, }: {
5843
+ sandboxId: string;
5844
+ }): CancelablePromise<any>;
5845
+ /**
5846
+ * Explicitly restore a cloud sandbox from deep sleep
5847
+ * @returns any Resume accepted
5848
+ * @throws ApiError
5849
+ */
5850
+ resumeCloudSandbox({ sandboxId, }: {
5851
+ sandboxId: string;
5852
+ }): CancelablePromise<any>;
5384
5853
  /**
5385
5854
  * List consent forms
5386
5855
  * List consent forms received by the authenticated user in reverse chronological order
@@ -5952,21 +6421,73 @@ declare class DefaultService {
5952
6421
  createManagedOrgUser({ requestBody, }: {
5953
6422
  requestBody: CreateManagedAccountRequest;
5954
6423
  }): CancelablePromise<ManagedAccountCredentials>;
6424
+ /**
6425
+ * Deactivate org user by qualified name
6426
+ * Deactivate a human organization member. To deactivate a service user, use DELETE /service-users/{namespace}/{username}.
6427
+ * @returns void
6428
+ * @throws ApiError
6429
+ */
6430
+ deleteOrgUserByName({ namespace, username, }: {
6431
+ namespace: string;
6432
+ username: string;
6433
+ }): CancelablePromise<void>;
6434
+ /**
6435
+ * Update an organization member's display name by qualified name
6436
+ * Update the display name of an active human member or an organization-managed account in the current organization.
6437
+ * @returns OrgUser Organization member updated
6438
+ * @throws ApiError
6439
+ */
6440
+ updateManagedOrgUserByName({ namespace, username, requestBody, }: {
6441
+ namespace: string;
6442
+ username: string;
6443
+ requestBody: UpdateCurrentOrgUserRequest;
6444
+ }): CancelablePromise<OrgUser>;
6445
+ /**
6446
+ * Deactivate a managed account by qualified name
6447
+ * 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.
6448
+ * @returns void
6449
+ * @throws ApiError
6450
+ */
6451
+ deactivateManagedOrgUserByName({ namespace, username, }: {
6452
+ namespace: string;
6453
+ username: string;
6454
+ }): CancelablePromise<void>;
6455
+ /**
6456
+ * Reactivate a managed account by qualified name
6457
+ * 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.
6458
+ * @returns void
6459
+ * @throws ApiError
6460
+ */
6461
+ reactivateManagedOrgUserByName({ namespace, username, }: {
6462
+ namespace: string;
6463
+ username: string;
6464
+ }): CancelablePromise<void>;
6465
+ /**
6466
+ * Reset a managed account's password by qualified name
6467
+ * Requires the operation RN in enterprise organizations; ordinary organizations require the owner. Generates a temporary password and revokes existing credentials without changing activation status.
6468
+ * @returns ManagedPasswordReset Temporary password generated
6469
+ * @throws ApiError
6470
+ */
6471
+ resetManagedOrgUserPasswordByName({ namespace, username, }: {
6472
+ namespace: string;
6473
+ username: string;
6474
+ }): CancelablePromise<ManagedPasswordReset>;
5955
6475
  /**
5956
6476
  * Deactivate org user
5957
- * Deactivate an existing org user. An authorized enterprise member or an ordinary-organization owner can deactivate users.
6477
+ * Deactivate a human organization member. To deactivate a service user, use DELETE /service-users/{namespace}/{username}.
5958
6478
  * @returns void
5959
6479
  * @throws ApiError
5960
6480
  */
5961
6481
  deleteOrgUser({ userId, }: {
5962
6482
  /**
5963
- * Numeric user ID of the org member to delete.
6483
+ * Numeric ID of the human member to deactivate.
5964
6484
  */
5965
6485
  userId: number;
5966
6486
  }): CancelablePromise<void>;
5967
6487
  /**
5968
- * Update a managed member's display name
5969
- * @returns OrgUser Managed member updated
6488
+ * Update an organization member's display name
6489
+ * Update the display name of an active human member or an organization-managed account in the current organization.
6490
+ * @returns OrgUser Organization member updated
5970
6491
  * @throws ApiError
5971
6492
  */
5972
6493
  updateManagedOrgUser({ userId, requestBody, }: {
@@ -6233,6 +6754,69 @@ declare class DefaultService {
6233
6754
  * @throws ApiError
6234
6755
  */
6235
6756
  listOrgQuotas(): CancelablePromise<QuotaListResponse>;
6757
+ /**
6758
+ * Get an enterprise member's daily usage budget by qualified name
6759
+ * 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.
6760
+ * @returns UserDailyBudget Current budget and aggregated usage
6761
+ * @throws ApiError
6762
+ */
6763
+ getUserDailyBudgetByName({ namespace, username, }: {
6764
+ namespace: string;
6765
+ username: string;
6766
+ }): CancelablePromise<UserDailyBudget>;
6767
+ /**
6768
+ * Set an enterprise member's daily usage budget by qualified name
6769
+ * 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.
6770
+ * @returns UserDailyBudget Saved budget and current aggregated usage
6771
+ * @throws ApiError
6772
+ */
6773
+ setUserDailyBudgetByName({ namespace, username, requestBody, }: {
6774
+ namespace: string;
6775
+ username: string;
6776
+ requestBody: SetUserDailyBudgetRequest;
6777
+ }): CancelablePromise<UserDailyBudget>;
6778
+ /**
6779
+ * Get a member's bound policy IDs by qualified name
6780
+ * Requires an enterprise organization and the corresponding enterprise RN permission.
6781
+ * @returns EnterprisePermissionPolicyBindings Get a member's bound policy IDs
6782
+ * @throws ApiError
6783
+ */
6784
+ getUserEnterprisePermissionPoliciesByName({ namespace, username, }: {
6785
+ namespace: string;
6786
+ username: string;
6787
+ }): CancelablePromise<EnterprisePermissionPolicyBindings>;
6788
+ /**
6789
+ * Replace a member's policy bindings by qualified name
6790
+ * 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.
6791
+ * @returns EnterprisePermissionPolicyBindings Replace a member's policy bindings
6792
+ * @throws ApiError
6793
+ */
6794
+ replaceUserEnterprisePermissionPoliciesByName({ namespace, username, requestBody, }: {
6795
+ namespace: string;
6796
+ username: string;
6797
+ requestBody: EnterprisePermissionPolicyBindings;
6798
+ }): CancelablePromise<EnterprisePermissionPolicyBindings>;
6799
+ /**
6800
+ * Get a member's enterprise permission rules by qualified name
6801
+ * Requires the corresponding enterprise RN permission. Returns direct user rules only; bound policy rules are evaluated separately. Existing resource access checks still apply.
6802
+ * @returns EnterprisePermissionRules Current rules
6803
+ * @throws ApiError
6804
+ */
6805
+ getUserEnterprisePermissionsByName({ namespace, username, }: {
6806
+ namespace: string;
6807
+ username: string;
6808
+ }): CancelablePromise<EnterprisePermissionRules>;
6809
+ /**
6810
+ * Replace a member's enterprise permission rules by qualified name
6811
+ * 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.
6812
+ * @returns EnterprisePermissionRules Updated rules
6813
+ * @throws ApiError
6814
+ */
6815
+ replaceUserEnterprisePermissionsByName({ namespace, username, requestBody, }: {
6816
+ namespace: string;
6817
+ username: string;
6818
+ requestBody: EnterprisePermissionRules;
6819
+ }): CancelablePromise<EnterprisePermissionRules>;
6236
6820
  /**
6237
6821
  * Get an enterprise member's daily usage budget
6238
6822
  * 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 +7127,40 @@ declare class DefaultService {
6543
7127
  * @throws ApiError
6544
7128
  */
6545
7129
  listServiceUsers(): CancelablePromise<Array<ServiceUser>>;
7130
+ /**
7131
+ * Deactivate an organization service user by qualified name
7132
+ * @returns void
7133
+ * @throws ApiError
7134
+ */
7135
+ deleteServiceUserByName({ namespace, username, }: {
7136
+ namespace: string;
7137
+ username: string;
7138
+ }): CancelablePromise<void>;
7139
+ /**
7140
+ * Get an organization service user by qualified name
7141
+ * @returns ServiceUser Active service identity
7142
+ * @throws ApiError
7143
+ */
7144
+ getServiceUserByName({ namespace, username, }: {
7145
+ namespace: string;
7146
+ username: string;
7147
+ }): CancelablePromise<ServiceUser>;
7148
+ /**
7149
+ * Deactivate an organization service user by ID
7150
+ * @returns void
7151
+ * @throws ApiError
7152
+ */
7153
+ deleteServiceUser({ userId, }: {
7154
+ userId: number;
7155
+ }): CancelablePromise<void>;
7156
+ /**
7157
+ * Get an organization service user by ID
7158
+ * @returns ServiceUser Active service identity
7159
+ * @throws ApiError
7160
+ */
7161
+ getServiceUser({ userId, }: {
7162
+ userId: number;
7163
+ }): CancelablePromise<ServiceUser>;
6546
7164
  /**
6547
7165
  * Get the shared session selected by a short share key
6548
7166
  * Resolve immutable shared-session metadata using a short bearer key that is accepted only by session-share APIs.
@@ -6666,6 +7284,38 @@ declare class DefaultService {
6666
7284
  appId: string;
6667
7285
  requestBody: SSOAppConfiguration;
6668
7286
  }): CancelablePromise<SSOAppConfiguration>;
7287
+ /**
7288
+ * Rotate this CLI grant using its refresh credential
7289
+ * @returns SSOTokens Rotate this CLI grant using its refresh credential
7290
+ * @throws ApiError
7291
+ */
7292
+ refreshCliTokens({ requestBody, }: {
7293
+ requestBody: RefreshCLITokensRequest;
7294
+ }): CancelablePromise<SSOTokens>;
7295
+ /**
7296
+ * Begin a Leawan CLI login bound to a loopback callback and S256 PKCE
7297
+ * @returns SSORequest Begin a Leawan CLI login bound to a loopback callback and S256 PKCE
7298
+ * @throws ApiError
7299
+ */
7300
+ createCliRequest({ requestBody, }: {
7301
+ requestBody: CreateCLIRequest;
7302
+ }): CancelablePromise<SSORequest>;
7303
+ /**
7304
+ * Revoke this CLI grant using its refresh credential
7305
+ * @returns void
7306
+ * @throws ApiError
7307
+ */
7308
+ revokeCliGrant({ requestBody, }: {
7309
+ requestBody: RevokeCLIGrantRequest;
7310
+ }): CancelablePromise<void>;
7311
+ /**
7312
+ * Exchange the CLI authorization code with its original PKCE verifier
7313
+ * @returns SSOTokens Exchange the CLI authorization code with its original PKCE verifier
7314
+ * @throws ApiError
7315
+ */
7316
+ exchangeCliCode({ requestBody, }: {
7317
+ requestBody: ExchangeCLICodeRequest;
7318
+ }): CancelablePromise<SSOTokens>;
6669
7319
  /**
6670
7320
  * Revoke a user grant using the application's service identity
6671
7321
  * @returns void
@@ -7062,6 +7712,9 @@ type Deployment = {
7062
7712
  appId: string;
7063
7713
  packageId: string;
7064
7714
  state: "pending" | "deploying" | "succeeded" | "failed" | "superseded" | "cancelled";
7715
+ /**
7716
+ * Number of candidates prepared by this rollout. Zero when updating a dormant function.
7717
+ */
7065
7718
  targetReplicas: number;
7066
7719
  readyReplicas: number;
7067
7720
  attempts: number;
@@ -7069,13 +7722,17 @@ type Deployment = {
7069
7722
  createdAt: string;
7070
7723
  startedAt?: string;
7071
7724
  completedAt?: string;
7725
+ /**
7726
+ * Time this deployment first passed runtime health checks. A successful zero-candidate rollout awaits its first request until verified.
7727
+ */
7728
+ verifiedAt?: string;
7072
7729
  };
7073
7730
  type App = {
7074
- serviceUserId: number;
7075
7731
  /**
7076
- * Saved development environment; independent of deployed packages.
7732
+ * Effective enabled and ready domain URL. Prefers an explicit primary, then custom domains, then the platform address; omitted when none are available.
7077
7733
  */
7078
- developmentSnapshotId?: string;
7734
+ primaryUrl?: string;
7735
+ serviceUserId: number;
7079
7736
  /**
7080
7737
  * Configured database bindings; applied to the next deployment.
7081
7738
  */
@@ -7113,13 +7770,28 @@ type App = {
7113
7770
  desiredDeploymentId?: string;
7114
7771
  deployment?: Deployment;
7115
7772
  };
7773
+ type AppCredentialBindingInput = {
7774
+ credentialId: string;
7775
+ };
7116
7776
  type NodeMemoryGiB = 2;
7117
7777
  type NodeVCPU = 1;
7118
7778
  type AppInput = {
7119
7779
  /**
7120
- * Existing active service user in this organization, regardless of its creator. Omit to create one atomically with the function.
7780
+ * 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.
7781
+ */
7782
+ rootDomainId?: string;
7783
+ /**
7784
+ * 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.
7785
+ */
7786
+ subdomain?: string;
7787
+ /**
7788
+ * Explicitly bypass the organization's default root. Cannot be combined with rootDomainId or subdomain.
7121
7789
  */
7122
- serviceUserId?: number;
7790
+ usePlatformDomain?: boolean;
7791
+ /**
7792
+ * Qualified name or positive numeric ID of an active service user in this organization. Omit to allocate a service user.
7793
+ */
7794
+ serviceUserId?: (string | number);
7123
7795
  name: string;
7124
7796
  entrypoint?: string;
7125
7797
  healthPath?: string;
@@ -7200,6 +7872,10 @@ type AppSettings = {
7200
7872
  environment?: Record<string, string>;
7201
7873
  };
7202
7874
  type AppSummary = {
7875
+ /**
7876
+ * Effective enabled and ready domain URL. Prefers an explicit primary, then custom domains, then the platform address; omitted when none are available.
7877
+ */
7878
+ primaryUrl?: string;
7203
7879
  id: string;
7204
7880
  name: string;
7205
7881
  hostname: string;
@@ -7213,17 +7889,100 @@ type AppSummary = {
7213
7889
  desiredDeploymentId?: string;
7214
7890
  deploymentState?: string;
7215
7891
  };
7892
+ type CloudAppProfile = {
7893
+ /**
7894
+ * Public display name. Defaults to the source function name.
7895
+ */
7896
+ displayName: string;
7897
+ /**
7898
+ * Plain text introduction
7899
+ */
7900
+ description: string;
7901
+ /**
7902
+ * Square image served by the public-files API
7903
+ */
7904
+ logoPublicFileId?: string;
7905
+ };
7906
+ type CloudApp = {
7907
+ id: string;
7908
+ publisherOrgId: number;
7909
+ /**
7910
+ * Source function name and default installation name
7911
+ */
7912
+ name: string;
7913
+ profile: CloudAppProfile;
7914
+ /**
7915
+ * Whether the app is listed in the App Marketplace.
7916
+ */
7917
+ published: boolean;
7918
+ version: string;
7919
+ releaseNumber: number;
7920
+ bundlePath: string;
7921
+ namespace: string;
7922
+ };
7923
+ type CloudAppInstallation = {
7924
+ id: string;
7925
+ /**
7926
+ * This default installation only pins a release. Open it to allocate its function and database.
7927
+ */
7928
+ awaitingFirstOpen?: boolean;
7929
+ cloudAppId: string;
7930
+ name: string;
7931
+ profile: CloudAppProfile;
7932
+ state: "installing" | "installed" | "updating" | "uninstalling" | "uninstalled";
7933
+ wantedVersion: number;
7934
+ appliedVersion?: number;
7935
+ functionId?: string;
7936
+ databaseId?: string;
7937
+ updateBackupId?: string;
7938
+ uninstallBackupId?: string;
7939
+ restoreBackupId?: string;
7940
+ lastError: string;
7941
+ retainData: boolean;
7942
+ };
7943
+ type CloudAppInstallationList = {
7944
+ items: Array<CloudAppInstallation>;
7945
+ nextCursor?: string;
7946
+ };
7947
+ type CloudAppInstallInput = {
7948
+ name?: string;
7949
+ };
7950
+ type CloudAppList = {
7951
+ items: Array<CloudApp>;
7952
+ nextCursor?: string;
7953
+ };
7954
+ type CloudAppPublishInput = {
7955
+ version: string;
7956
+ /**
7957
+ * Pin the version listed in the App Marketplace to this verified active deployment.
7958
+ */
7959
+ expectedDeploymentId?: string;
7960
+ };
7961
+ type CloudAppUninstallInput = {
7962
+ retainData?: boolean;
7963
+ };
7216
7964
  type DomainDNSRecord = {
7217
7965
  type: "CNAME" | "TXT";
7218
7966
  name: string;
7219
7967
  value: string;
7220
- purpose: "routing" | "ownership";
7968
+ purpose: "routing" | "ownership" | "certificate";
7221
7969
  };
7222
7970
  type CustomDomain = {
7223
7971
  id: string;
7224
7972
  hostname: string;
7225
7973
  url: string;
7226
- state: "pending_dns" | "issuing" | "ready" | "renewing" | "error";
7974
+ /**
7975
+ * Uses the organization's shared wildcard certificate; no per-function DNS setup is required
7976
+ */
7977
+ rootDomainId?: string;
7978
+ state: "pending_dns" | "issuing" | "ready" | "renewing" | "error" | "deleting" | "deleted";
7979
+ /**
7980
+ * User-facing access status, independent of certificate lifecycle state
7981
+ */
7982
+ status: "pending_verification" | "active" | "disabled";
7983
+ enabled: boolean;
7984
+ isPrimary: boolean;
7985
+ kind: "platform" | "root" | "custom";
7227
7986
  dnsRecords: Array<DomainDNSRecord>;
7228
7987
  createdAt: string;
7229
7988
  verifiedAt?: string;
@@ -7233,19 +7992,77 @@ type CustomDomain = {
7233
7992
  lastError: string;
7234
7993
  };
7235
7994
  type CustomDomainInput = {
7236
- hostname: string;
7995
+ hostname?: string;
7996
+ rootDomainId?: string;
7997
+ subdomain?: string;
7237
7998
  };
7238
7999
  type Database = {
7239
8000
  id: string;
8001
+ /**
8002
+ * Present for branches. These databases do not support backups or restoration and are deleted when the primary is deleted or rolled back.
8003
+ */
8004
+ parentDatabaseId?: string;
7240
8005
  name: string;
7241
8006
  state: string;
7242
8007
  /**
7243
- * Private WS connection string containing access credentials; treat as a secret.
8008
+ * Private WS connection string containing access credentials. Empty when the database is pending or enterprise policy allows listing without reading the database.
7244
8009
  */
7245
8010
  connectionString: string;
7246
8011
  };
8012
+ type DatabaseBackup = {
8013
+ id: string;
8014
+ databaseId: string;
8015
+ mode: "offline" | "online";
8016
+ state: "pending" | "ready" | "cancelled" | "failed";
8017
+ createdAt: string;
8018
+ completedAt?: string;
8019
+ /**
8020
+ * Last task failure. Transient failures retry up to the task policy limit; failed backups must be cancelled before retrying with a new backup.
8021
+ */
8022
+ lastError: string;
8023
+ sizeBytes?: number;
8024
+ sha256?: string;
8025
+ sourceTxid?: number;
8026
+ pageSize?: number;
8027
+ pageCount?: number;
8028
+ };
8029
+ type DatabaseBackupList = {
8030
+ items: Array<DatabaseBackup>;
8031
+ nextCursor?: string;
8032
+ };
8033
+ type DatabaseBranchInput = {
8034
+ name: string;
8035
+ };
8036
+ type DatabaseBranchList = {
8037
+ items: Array<Database>;
8038
+ nextCursor?: string;
8039
+ };
7247
8040
  type DatabaseInput = {
7248
8041
  name: string;
8042
+ /**
8043
+ * Restore a ready backup owned by this organization into a new buffered database. The source is preserved.
8044
+ */
8045
+ backupId?: string;
8046
+ };
8047
+ type DatabaseMaintenance = {
8048
+ maintenanceStartedAt: string | null;
8049
+ };
8050
+ type DatabaseRollback = {
8051
+ id: string;
8052
+ databaseId: string;
8053
+ backupId: string;
8054
+ state: "pending" | "switched" | "ready" | "failed" | "cancelled";
8055
+ lastError: string;
8056
+ createdAt: string;
8057
+ completedAt?: string;
8058
+ cleanupCompletedAt?: string;
8059
+ };
8060
+ type DatabaseRollbackInput = {
8061
+ backupId: string;
8062
+ };
8063
+ type DatabaseRollbackList = {
8064
+ items: Array<DatabaseRollback>;
8065
+ nextCursor?: string;
7249
8066
  };
7250
8067
  type DeploymentInput = {
7251
8068
  packageId: string;
@@ -7258,9 +8075,21 @@ type DeploymentPackage = {
7258
8075
  size: number;
7259
8076
  createdAt: string;
7260
8077
  };
7261
- type DevelopmentSnapshotInput = {
7262
- snapshotId: string | null;
7263
- expectedSnapshotId: string | null;
8078
+ type DevelopedCloudApp = {
8079
+ id: string;
8080
+ name: string;
8081
+ profile: CloudAppProfile;
8082
+ };
8083
+ type DevelopedCloudAppList = {
8084
+ items: Array<DevelopedCloudApp>;
8085
+ nextCursor?: string;
8086
+ };
8087
+ type DomainSettings = {
8088
+ enabled?: boolean;
8089
+ /**
8090
+ * Preferred display address; other enabled domains remain accessible
8091
+ */
8092
+ isPrimary?: boolean;
7264
8093
  };
7265
8094
  type ImportDeploymentPackage = {
7266
8095
  /**
@@ -7268,6 +8097,51 @@ type ImportDeploymentPackage = {
7268
8097
  */
7269
8098
  path: string;
7270
8099
  };
8100
+ type RootDomain = {
8101
+ id: string;
8102
+ hostname: string;
8103
+ isDefault: boolean;
8104
+ /**
8105
+ * Ownership verified and an unexpired wildcard certificate is available
8106
+ */
8107
+ usable: boolean;
8108
+ state: "pending_dns" | "issuing" | "ready" | "renewing" | "error" | "deleting" | "deleted";
8109
+ dnsRecords: Array<DomainDNSRecord>;
8110
+ bindingCount: number;
8111
+ createdAt: string;
8112
+ verifiedAt?: string;
8113
+ certificateExpiresAt?: string;
8114
+ renewAt?: string;
8115
+ nextAttemptAt: string;
8116
+ lastError: string;
8117
+ };
8118
+ type RootDomainInput = {
8119
+ hostname: string;
8120
+ };
8121
+ type RootDomainSettings = {
8122
+ isDefault: boolean;
8123
+ };
8124
+ type TransactionalEvent = {
8125
+ id: string;
8126
+ state: "pending" | "delivering" | "retrying" | "delivered" | "failed";
8127
+ attempts: number;
8128
+ createdAt: string;
8129
+ nextAttemptAt?: string;
8130
+ finishedAt?: string;
8131
+ lastError?: string;
8132
+ };
8133
+ type TransactionalEventQueue = {
8134
+ items: Array<TransactionalEvent>;
8135
+ nextCursor?: string;
8136
+ /**
8137
+ * Active deliveries across this tenant
8138
+ */
8139
+ inUse: number;
8140
+ /**
8141
+ * Effective tenant concurrency. Zero pauses admission. An absent limit means unlimited.
8142
+ */
8143
+ concurrency?: number | null;
8144
+ };
7271
8145
  type Usage = {
7272
8146
  kind: "function" | "sqlite";
7273
8147
  resourceId: string;
@@ -7299,20 +8173,187 @@ declare class DefaultService$2 {
7299
8173
  readonly httpRequest: BaseHttpRequest;
7300
8174
  constructor(httpRequest: BaseHttpRequest);
7301
8175
  /**
7302
- * @returns CustomDomain Custom domains and DNS configuration
8176
+ * Browse the App Marketplace, including delisted apps owned by this organization.
8177
+ * @returns CloudAppList App Marketplace listings and this organization's delisted apps
8178
+ * @throws ApiError
8179
+ */
8180
+ listCloudApps({ after, }: {
8181
+ after?: string;
8182
+ }): CancelablePromise<CloudAppList>;
8183
+ /**
8184
+ * List this organization's cloud apps, including drafts with saved profiles.
8185
+ * @returns DevelopedCloudAppList Cloud apps developed in this organization
8186
+ * @throws ApiError
8187
+ */
8188
+ listDevelopedCloudApps({ after, }: {
8189
+ after?: string;
8190
+ }): CancelablePromise<DevelopedCloudAppList>;
8191
+ /**
8192
+ * Read the source function's editable profile, including before it is listed in the App Marketplace.
8193
+ * @returns CloudAppProfile Current profile
8194
+ * @throws ApiError
8195
+ */
8196
+ getCloudAppProfile({ id, }: {
8197
+ id: string;
8198
+ }): CancelablePromise<CloudAppProfile>;
8199
+ /**
8200
+ * Save App Marketplace listing details
8201
+ * Create a draft or edit an existing listing. Edits to listed apps appear immediately in the App Marketplace. Omit the logo to retain it.
8202
+ * @returns CloudAppProfile Saved profile
8203
+ * @throws ApiError
8204
+ */
8205
+ updateCloudAppProfile({ id, formData, }: {
8206
+ id: string;
8207
+ formData: {
8208
+ displayName: string;
8209
+ description: string;
8210
+ /**
8211
+ * PNG, JPEG or GIF, up to 2 MiB
8212
+ */
8213
+ logo?: Blob;
8214
+ /**
8215
+ * Read the image from this authorized canonical Cloud Drive path. Choose one of logo
8216
+ */
8217
+ logoPath?: string;
8218
+ /**
8219
+ * Clear the current logo. Mutually exclusive with uploading a logo.
8220
+ */
8221
+ removeLogo?: boolean;
8222
+ };
8223
+ }): CancelablePromise<CloudAppProfile>;
8224
+ /**
8225
+ * List a version in the App Marketplace (上架到应用市场)
8226
+ * 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.
8227
+ * @returns CloudApp Version listed in the App Marketplace
8228
+ * @throws ApiError
8229
+ */
8230
+ publishCloudApp({ id, requestBody, }: {
8231
+ id: string;
8232
+ requestBody: CloudAppPublishInput;
8233
+ }): CancelablePromise<CloudApp>;
8234
+ /**
8235
+ * Read the current App Marketplace listing.
8236
+ * @returns CloudApp App Marketplace listing details
8237
+ * @throws ApiError
8238
+ */
8239
+ getCloudApp({ id, }: {
8240
+ id: string;
8241
+ }): CancelablePromise<CloudApp>;
8242
+ /**
8243
+ * Remove an app from the App Marketplace
8244
+ * Remove the app from the App Marketplace to stop new installations and future updates.
8245
+ * @returns CloudApp App removed from the App Marketplace
8246
+ * @throws ApiError
8247
+ */
8248
+ unpublishCloudApp({ id, }: {
8249
+ id: string;
8250
+ }): CancelablePromise<CloudApp>;
8251
+ /**
8252
+ * Reserve an installation and provision it asynchronously.
8253
+ * @returns CloudAppInstallation Reserve an installation and provision it asynchronously.
8254
+ * @throws ApiError
8255
+ */
8256
+ installCloudApp({ id, requestBody, }: {
8257
+ id: string;
8258
+ requestBody: CloudAppInstallInput;
8259
+ }): CancelablePromise<CloudAppInstallation>;
8260
+ /**
8261
+ * List current installations in this organization.
8262
+ * @returns CloudAppInstallationList List current installations in this organization.
8263
+ * @throws ApiError
8264
+ */
8265
+ listCloudAppInstallations({ after, }: {
8266
+ after?: string;
8267
+ }): CancelablePromise<CloudAppInstallationList>;
8268
+ /**
8269
+ * Prepare a default installation on first use. Repeated calls return the existing installation.
8270
+ * @returns CloudAppInstallation Poll this installation until installed, then open the function URL.
8271
+ * @throws ApiError
8272
+ */
8273
+ openCloudAppInstallation({ id, }: {
8274
+ id: string;
8275
+ }): CancelablePromise<CloudAppInstallation>;
8276
+ /**
8277
+ * Read lifecycle progress, including a completed uninstall.
8278
+ * @returns CloudAppInstallation Read lifecycle progress, including a completed uninstall.
8279
+ * @throws ApiError
8280
+ */
8281
+ getCloudAppInstallation({ id, }: {
8282
+ id: string;
8283
+ }): CancelablePromise<CloudAppInstallation>;
8284
+ /**
8285
+ * Withdraw traffic and remove owned resources asynchronously.
8286
+ * @returns CloudAppInstallation Withdraw traffic and remove owned resources asynchronously.
8287
+ * @throws ApiError
8288
+ */
8289
+ uninstallCloudApp({ id, requestBody, }: {
8290
+ id: string;
8291
+ requestBody?: CloudAppUninstallInput;
8292
+ }): CancelablePromise<CloudAppInstallation>;
8293
+ /**
8294
+ * Resume a failed lifecycle operation.
8295
+ * @returns CloudAppInstallation Resume a failed lifecycle operation.
8296
+ * @throws ApiError
8297
+ */
8298
+ retryCloudAppInstallation({ id, }: {
8299
+ id: string;
8300
+ }): CancelablePromise<CloudAppInstallation>;
8301
+ /**
8302
+ * List the current organization's reusable domain suffixes.
8303
+ * @returns RootDomain Root domains, wildcard certificate status and one-time DNS setup
8304
+ * @throws ApiError
8305
+ */
8306
+ listRootDomains(): CancelablePromise<Array<RootDomain>>;
8307
+ /**
8308
+ * Requires organization ownership or root-domains:edit permission. DNS setup and certificate issuance are asynchronous.
8309
+ * @returns RootDomain Root domain reserved; configure the returned DNS records
8310
+ * @throws ApiError
8311
+ */
8312
+ createRootDomain({ requestBody, }: {
8313
+ requestBody: RootDomainInput;
8314
+ }): CancelablePromise<RootDomain>;
8315
+ /**
8316
+ * Change the default automatically used for future function creation when rootDomainId is omitted. Does not change existing bindings.
8317
+ * @returns RootDomain Root domain updated
8318
+ * @throws ApiError
8319
+ */
8320
+ updateRootDomain({ rootDomainId, requestBody, }: {
8321
+ rootDomainId: string;
8322
+ requestBody: RootDomainSettings;
8323
+ }): CancelablePromise<RootDomain>;
8324
+ /**
8325
+ * 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.
8326
+ * @returns any Deletion recorded; managed DNS records will be cleaned asynchronously
8327
+ * @throws ApiError
8328
+ */
8329
+ deleteRootDomain({ rootDomainId, }: {
8330
+ rootDomainId: string;
8331
+ }): CancelablePromise<any>;
8332
+ /**
8333
+ * @returns CustomDomain All function domains, including the non-deletable platform domain, access status and DNS configuration
7303
8334
  * @throws ApiError
7304
8335
  */
7305
8336
  listAppDomains({ id, }: {
7306
8337
  id: string;
7307
8338
  }): CancelablePromise<Array<CustomDomain>>;
7308
8339
  /**
7309
- * @returns CustomDomain Domain reserved; configure both DNS records to begin verification
8340
+ * @returns CustomDomain Domain bound; organization-root subdomains need no separate DNS setup. Other domains require the returned DNS records.
7310
8341
  * @throws ApiError
7311
8342
  */
7312
8343
  createAppDomain({ id, requestBody, }: {
7313
8344
  id: string;
7314
8345
  requestBody: CustomDomainInput;
7315
8346
  }): CancelablePromise<CustomDomain>;
8347
+ /**
8348
+ * 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.
8349
+ * @returns CustomDomain Settings saved and route publication queued
8350
+ * @throws ApiError
8351
+ */
8352
+ updateAppDomain({ id, domainId, requestBody, }: {
8353
+ id: string;
8354
+ domainId: string;
8355
+ requestBody: DomainSettings;
8356
+ }): CancelablePromise<CustomDomain>;
7316
8357
  /**
7317
8358
  * @returns void
7318
8359
  * @throws ApiError
@@ -7327,7 +8368,7 @@ declare class DefaultService$2 {
7327
8368
  */
7328
8369
  getServerlessOpenApi(): CancelablePromise<string>;
7329
8370
  /**
7330
- * Lists all undeleted functions in the caller's organization. Active organization members share management access; enterprise permissions belong to the API layer.
8371
+ * List undeleted functions in the caller's organization.
7331
8372
  * @returns AppSummary Success
7332
8373
  * @throws ApiError
7333
8374
  */
@@ -7361,6 +8402,53 @@ declare class DefaultService$2 {
7361
8402
  deleteApp({ id, }: {
7362
8403
  id: string;
7363
8404
  }): CancelablePromise<any>;
8405
+ /**
8406
+ * Keep an active function instance running while it processes background work
8407
+ * @returns void
8408
+ * @throws ApiError
8409
+ */
8410
+ reportAppInstanceActivity({ id, instanceId, }: {
8411
+ id: string;
8412
+ instanceId: string;
8413
+ }): CancelablePromise<void>;
8414
+ /**
8415
+ * List binding names as the assigned function service user
8416
+ * @returns string Names available to the function
8417
+ * @throws ApiError
8418
+ */
8419
+ listAppCredentialBindings({ id, }: {
8420
+ id: string;
8421
+ }): CancelablePromise<Array<string>>;
8422
+ /**
8423
+ * Bind an organization credential to a function, including installed cloud applications
8424
+ * @returns void
8425
+ * @throws ApiError
8426
+ */
8427
+ bindAppCredential({ id, key, requestBody, }: {
8428
+ id: string;
8429
+ key: string;
8430
+ requestBody: AppCredentialBindingInput;
8431
+ }): CancelablePromise<void>;
8432
+ /**
8433
+ * Revoke a function's named credential binding
8434
+ * @returns void
8435
+ * @throws ApiError
8436
+ */
8437
+ unbindAppCredential({ id, key, }: {
8438
+ id: string;
8439
+ key: string;
8440
+ }): CancelablePromise<void>;
8441
+ /**
8442
+ * Resolve one explicitly bound organization credential as the function's service user
8443
+ * @returns any Current value of the credential bound to this name
8444
+ * @throws ApiError
8445
+ */
8446
+ resolveAppCredentialBinding({ id, key, }: {
8447
+ id: string;
8448
+ key: string;
8449
+ }): CancelablePromise<{
8450
+ value: string;
8451
+ }>;
7364
8452
  /**
7365
8453
  * Query cloud function stdout and stderr without waking the function
7366
8454
  * Queries retained container logs for current and stopped instances. Requires the same
@@ -7432,6 +8520,13 @@ declare class DefaultService$2 {
7432
8520
  createDatabase({ requestBody, }: {
7433
8521
  requestBody: DatabaseInput;
7434
8522
  }): CancelablePromise<Database>;
8523
+ /**
8524
+ * @returns Database Database creation or restore progress; credentials are returned only when ready.
8525
+ * @throws ApiError
8526
+ */
8527
+ getDatabase({ id, }: {
8528
+ id: string;
8529
+ }): CancelablePromise<Database>;
7435
8530
  /**
7436
8531
  * @returns any Success
7437
8532
  * @throws ApiError
@@ -7439,6 +8534,122 @@ declare class DefaultService$2 {
7439
8534
  deleteDatabase({ id, }: {
7440
8535
  id: string;
7441
8536
  }): CancelablePromise<any>;
8537
+ /**
8538
+ * @returns TransactionalEventQueue Recent committed events and the shared organization delivery limit
8539
+ * @throws ApiError
8540
+ */
8541
+ listDatabaseEvents({ id, before, }: {
8542
+ id: string;
8543
+ before?: string;
8544
+ }): CancelablePromise<TransactionalEventQueue>;
8545
+ /**
8546
+ * 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.
8547
+ * @returns Database Durable creation accepted. Poll the database until ready before connecting.
8548
+ * @throws ApiError
8549
+ */
8550
+ createDatabaseBranch({ id, requestBody, }: {
8551
+ id: string;
8552
+ requestBody: DatabaseBranchInput;
8553
+ }): CancelablePromise<Database>;
8554
+ /**
8555
+ * List non-deleted branches of this primary database, including creation and deletion progress. Branches are omitted from the ordinary database list.
8556
+ * @returns DatabaseBranchList Branches ordered by UUID
8557
+ * @throws ApiError
8558
+ */
8559
+ listDatabaseBranches({ id, after, }: {
8560
+ id: string;
8561
+ after?: string;
8562
+ }): CancelablePromise<DatabaseBranchList>;
8563
+ /**
8564
+ * 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.
8565
+ * @returns DatabaseRollback Durable rollback accepted; reconnect existing WebSockets after completion.
8566
+ * @throws ApiError
8567
+ */
8568
+ rollbackDatabase({ id, requestBody, }: {
8569
+ id: string;
8570
+ requestBody: DatabaseRollbackInput;
8571
+ }): CancelablePromise<DatabaseRollback>;
8572
+ /**
8573
+ * @returns DatabaseRollbackList Recover operation IDs after an uncertain create response; at most 100 per page.
8574
+ * @throws ApiError
8575
+ */
8576
+ listDatabaseRollbacks({ id, after, }: {
8577
+ id: string;
8578
+ after?: string;
8579
+ }): CancelablePromise<DatabaseRollbackList>;
8580
+ /**
8581
+ * @returns DatabaseRollback Rollback and old storage cleanup progress
8582
+ * @throws ApiError
8583
+ */
8584
+ getDatabaseRollback({ id, }: {
8585
+ id: string;
8586
+ }): CancelablePromise<DatabaseRollback>;
8587
+ /**
8588
+ * @returns DatabaseRollback Retry the same operation and physical namespace
8589
+ * @throws ApiError
8590
+ */
8591
+ retryDatabaseRollback({ id, }: {
8592
+ id: string;
8593
+ }): CancelablePromise<DatabaseRollback>;
8594
+ /**
8595
+ * Cancel before the storage pointer switches. Old storage stays in maintenance until explicitly released.
8596
+ * @returns DatabaseRollback Cancelled; staged storage cleanup is durable
8597
+ * @throws ApiError
8598
+ */
8599
+ cancelDatabaseRollback({ id, }: {
8600
+ id: string;
8601
+ }): CancelablePromise<DatabaseRollback>;
8602
+ /**
8603
+ * Queue an offline backup of a primary database. The task enters maintenance, gracefully drains compute and leaves the source in maintenance after completion.
8604
+ * @returns DatabaseBackup Durable backup task accepted
8605
+ * @throws ApiError
8606
+ */
8607
+ createDatabaseBackup({ id, }: {
8608
+ id: string;
8609
+ }): CancelablePromise<DatabaseBackup>;
8610
+ /**
8611
+ * 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.
8612
+ * @returns DatabaseBackup Backup queued. The restore point is fixed when the worker captures the branch.
8613
+ * @throws ApiError
8614
+ */
8615
+ createOnlineDatabaseBackup({ id, }: {
8616
+ id: string;
8617
+ }): CancelablePromise<DatabaseBackup>;
8618
+ /**
8619
+ * @returns DatabaseBackupList Organization backups ordered by UUID; backups survive source deletion.
8620
+ * @throws ApiError
8621
+ */
8622
+ listDatabaseBackups({ after, }: {
8623
+ after?: string;
8624
+ }): CancelablePromise<DatabaseBackupList>;
8625
+ /**
8626
+ * @returns DatabaseBackup Backup state and verification metadata
8627
+ * @throws ApiError
8628
+ */
8629
+ getDatabaseBackup({ id, }: {
8630
+ id: string;
8631
+ }): CancelablePromise<DatabaseBackup>;
8632
+ /**
8633
+ * @returns DatabaseBackup Cancelled or already-complete backup. For an offline backup, release source maintenance separately after inspecting the result.
8634
+ * @throws ApiError
8635
+ */
8636
+ cancelDatabaseBackup({ id, }: {
8637
+ id: string;
8638
+ }): CancelablePromise<DatabaseBackup>;
8639
+ /**
8640
+ * @returns DatabaseMaintenance New compute and compaction admission blocked; existing work has not necessarily drained.
8641
+ * @throws ApiError
8642
+ */
8643
+ startDatabaseMaintenance({ id, }: {
8644
+ id: string;
8645
+ }): CancelablePromise<DatabaseMaintenance>;
8646
+ /**
8647
+ * @returns DatabaseMaintenance Database may start again
8648
+ * @throws ApiError
8649
+ */
8650
+ finishDatabaseMaintenance({ id, }: {
8651
+ id: string;
8652
+ }): CancelablePromise<DatabaseMaintenance>;
7442
8653
  /**
7443
8654
  * @returns Usage Success
7444
8655
  * @throws ApiError
@@ -7477,7 +8688,9 @@ declare class DefaultService$2 {
7477
8688
  id: string;
7478
8689
  }): CancelablePromise<Array<Deployment>>;
7479
8690
  /**
7480
- * @returns Deployment Success
8691
+ * Deploy a package to the target cloud function
8692
+ * Start an asynchronous rollout on the selected cloud function, including production updates. On success, the package becomes active for that function's URL.
8693
+ * @returns Deployment Function deployment accepted
7481
8694
  * @throws ApiError
7482
8695
  */
7483
8696
  createDeployment({ id, requestBody, }: {
@@ -7500,14 +8713,6 @@ declare class DefaultService$2 {
7500
8713
  id: string;
7501
8714
  deploymentId: string;
7502
8715
  }): 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
8716
  }
7512
8717
  type HttpRequestConstructor$2 = new (config: OpenAPIConfig) => BaseHttpRequest;
7513
8718
  declare class ServerlessClient {
@@ -7553,6 +8758,10 @@ export interface ClientMCPRegistrationOptions {
7553
8758
  export interface ClientMCPOptions {
7554
8759
  /** Installation namespace used by registerTool. Defaults to "browser". */
7555
8760
  namespace?: string;
8761
+ /** Leave calls without a locally registered callback to other clients of the session. */
8762
+ registeredToolsOnly?: boolean;
8763
+ /** Previous bound names mapped to their current bound names for calls already in flight. Aliases are local to this bridge. */
8764
+ toolAliases?: ReadonlyMap<string, string>;
7556
8765
  onError?: (error: Error) => void;
7557
8766
  /** Optional bounded receipt cache, e.g. window.localStorage. Never stores tool arguments or results. */
7558
8767
  storage?: Pick<Storage, "getItem" | "setItem">;
@@ -7602,6 +8811,7 @@ export declare class ClientMCPBridge {
7602
8811
  private consume;
7603
8812
  private complete;
7604
8813
  private dispatch;
8814
+ private callbackFor;
7605
8815
  private execute;
7606
8816
  }
7607
8817
  export interface ClientOptions {