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