@brazosd/node 0.1.1 → 0.1.3
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 +77 -1
- package/browser.d.ts +7631 -0
- package/browser.js +11233 -0
- package/index.d.ts +1133 -68
- package/index.js +2069 -114
- package/package.json +12 -2
package/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
// Generated by scripts/generate.mjs; edit src/ and OpenAPI sources instead.
|
|
2
|
+
import { JsonWebKey as JsonWebKey$1 } from 'node:crypto';
|
|
3
|
+
|
|
2
4
|
type ApiRequestOptions = {
|
|
3
5
|
readonly method: "GET" | "PUT" | "POST" | "DELETE" | "OPTIONS" | "HEAD" | "PATCH";
|
|
4
6
|
readonly url: string;
|
|
@@ -173,6 +175,10 @@ type Agent = {
|
|
|
173
175
|
* Factory repository UUID that provides the agent version used by this instance.
|
|
174
176
|
*/
|
|
175
177
|
agentRepoId: string;
|
|
178
|
+
/**
|
|
179
|
+
* Creator-controlled repository policy allowing users to run this agent with their own non-official models. Ordinary repositories default to false; Brazosd-created repositories default to true. Updates that omit this field preserve its value.
|
|
180
|
+
*/
|
|
181
|
+
allowNonOfficialModels: boolean;
|
|
176
182
|
/**
|
|
177
183
|
* Public file UUID for the agent avatar, if present.
|
|
178
184
|
*/
|
|
@@ -181,6 +187,10 @@ type Agent = {
|
|
|
181
187
|
* Public file UUID for the 500x500 agent avatar thumbnail, if present.
|
|
182
188
|
*/
|
|
183
189
|
avatarThumbnailPublicFileId?: string | null;
|
|
190
|
+
/**
|
|
191
|
+
* Immutable context window captured from the repository when this instance was created. Runtime uses the smaller of this value and the model window. Zero uses the model window.
|
|
192
|
+
*/
|
|
193
|
+
contextWindow: number;
|
|
184
194
|
/**
|
|
185
195
|
* Time when the agent was created.
|
|
186
196
|
*/
|
|
@@ -231,10 +241,18 @@ type Agent = {
|
|
|
231
241
|
updatedAt: string;
|
|
232
242
|
};
|
|
233
243
|
type AgentConfig = {
|
|
244
|
+
/**
|
|
245
|
+
* Creator-controlled repository policy allowing users to run this agent with their own non-official models. Ordinary repositories default to false; Brazosd-created repositories default to true. Updates that omit this field preserve its value.
|
|
246
|
+
*/
|
|
247
|
+
allowNonOfficialModels: boolean;
|
|
234
248
|
/**
|
|
235
249
|
* Tool names allowed by this agent.
|
|
236
250
|
*/
|
|
237
251
|
allowTools: Array<string>;
|
|
252
|
+
/**
|
|
253
|
+
* Repository default context window in tokens, copied into new agent instances only. Existing instances never change. Zero uses the model window; omission preserves the existing repository value on updates.
|
|
254
|
+
*/
|
|
255
|
+
contextWindow: number;
|
|
238
256
|
/**
|
|
239
257
|
* Core system instruction that defines the agent's duties.
|
|
240
258
|
*/
|
|
@@ -420,6 +438,10 @@ type AgentSession = {
|
|
|
420
438
|
* Model ID resolved for the session.
|
|
421
439
|
*/
|
|
422
440
|
llmModelId?: string | null;
|
|
441
|
+
/**
|
|
442
|
+
* Shared LLM recovery task associated with the last external failure. May reference a finished task; other session actions do not clear this historical association.
|
|
443
|
+
*/
|
|
444
|
+
retryAsyncTaskId?: number | null;
|
|
423
445
|
/**
|
|
424
446
|
* 由其他会话启动的智能体分身会话所对应的父会话 UUID。
|
|
425
447
|
*/
|
|
@@ -429,6 +451,10 @@ type AgentSession = {
|
|
|
429
451
|
*/
|
|
430
452
|
snapshotUUID?: string | null;
|
|
431
453
|
status?: AgentSessionStatus;
|
|
454
|
+
/**
|
|
455
|
+
* Structured reason for the current stop. Cleared when a new run starts. A retained retry task ID alone does not imply automatic recovery is pending.
|
|
456
|
+
*/
|
|
457
|
+
stopReason?: "user_interrupted" | "llm_unavailable" | "llm_request_failed" | "action_required" | "runtime_failed" | null;
|
|
432
458
|
/**
|
|
433
459
|
* Optional title summarizing the session topic.
|
|
434
460
|
*/
|
|
@@ -560,10 +586,40 @@ type AgentSessionTodoItem = {
|
|
|
560
586
|
ordinal: number;
|
|
561
587
|
status: AgentSessionTodoStatus;
|
|
562
588
|
};
|
|
589
|
+
type AgentSessionTreeActionResult = {
|
|
590
|
+
/**
|
|
591
|
+
* Sessions changed by this request, in execution order. Empty when no sessions needed the action.
|
|
592
|
+
*/
|
|
593
|
+
affectedSessionIds: Array<string>;
|
|
594
|
+
rootSession: AgentSession;
|
|
595
|
+
};
|
|
596
|
+
type MCPReference = {
|
|
597
|
+
device_id?: string;
|
|
598
|
+
mcp_id: string;
|
|
599
|
+
};
|
|
600
|
+
type AgentToolSettings = {
|
|
601
|
+
/**
|
|
602
|
+
* Exact MCP installations. A device MCP must match both mcp_id and device_id. No device_id means a remote MCP.
|
|
603
|
+
*/
|
|
604
|
+
allowedMcps: Array<MCPReference>;
|
|
605
|
+
/**
|
|
606
|
+
* Exact runtime tool names, including built-in media tools and fully qualified MCP tool names. Both whitelists apply to MCP tool calls. No wildcards.
|
|
607
|
+
*/
|
|
608
|
+
allowedTools: Array<string>;
|
|
609
|
+
mcpWhitelistEnabled: boolean;
|
|
610
|
+
toolWhitelistEnabled: boolean;
|
|
611
|
+
};
|
|
612
|
+
type AgentToolSettingsResponse = {
|
|
613
|
+
/**
|
|
614
|
+
* Built-in tool names for the settings editor. Fully qualified MCP names can also be entered.
|
|
615
|
+
*/
|
|
616
|
+
availableTools: Array<string>;
|
|
617
|
+
settings: AgentToolSettings;
|
|
618
|
+
};
|
|
563
619
|
type AgentTrdpMarkupStatus = {
|
|
564
620
|
agentId: string;
|
|
565
621
|
/**
|
|
566
|
-
* Whether the current user
|
|
622
|
+
* Whether the current user may confirm under enterprise RN authorization or the ordinary-organization owner fallback.
|
|
567
623
|
*/
|
|
568
624
|
canConfirm: boolean;
|
|
569
625
|
confirmationRequired: boolean;
|
|
@@ -687,6 +743,11 @@ type AppendAgentSessionEventRequest = {
|
|
|
687
743
|
*/
|
|
688
744
|
skipPersistent?: boolean;
|
|
689
745
|
};
|
|
746
|
+
export type SSOMode = "org-user" | "identity";
|
|
747
|
+
type AuthorizeSSORequest = {
|
|
748
|
+
mode: SSOMode;
|
|
749
|
+
orgId: number;
|
|
750
|
+
};
|
|
690
751
|
type BillingCredit = {
|
|
691
752
|
createdAt: string;
|
|
692
753
|
earnedAmountMicroyuans: number;
|
|
@@ -753,6 +814,10 @@ type BillingUserDailyCost = {
|
|
|
753
814
|
orgId: number;
|
|
754
815
|
sandboxNetworkTrafficAmountMicroyuans: number;
|
|
755
816
|
shallowSleepSandboxAmountMicroyuans: number;
|
|
817
|
+
/**
|
|
818
|
+
* Saved and deep-sleep snapshot storage charges.
|
|
819
|
+
*/
|
|
820
|
+
snapshotAmountMicroyuans: number;
|
|
756
821
|
tokenAmountMicroyuans: number;
|
|
757
822
|
/**
|
|
758
823
|
* Total billable tool-service cost, including image generation, web search, video understanding, and audio transcription.
|
|
@@ -1055,6 +1120,27 @@ type ChannelMessageSearchResponse = {
|
|
|
1055
1120
|
*/
|
|
1056
1121
|
nextCursor?: string | null;
|
|
1057
1122
|
};
|
|
1123
|
+
type ClientMCPBoundTool = {
|
|
1124
|
+
description: string;
|
|
1125
|
+
inputSchema: Record<string, any>;
|
|
1126
|
+
name: string;
|
|
1127
|
+
originalName: string;
|
|
1128
|
+
};
|
|
1129
|
+
type ClientMCPInstallation = {
|
|
1130
|
+
mcpId: string;
|
|
1131
|
+
namespace: string;
|
|
1132
|
+
prefix: string;
|
|
1133
|
+
revision: string;
|
|
1134
|
+
tools: Array<ClientMCPBoundTool>;
|
|
1135
|
+
};
|
|
1136
|
+
/**
|
|
1137
|
+
* MCP CallToolResult. The first accepted result wins. Accepted means stored, not necessarily consumed by the model before timeout. Maximum encoded size is 1 MiB.
|
|
1138
|
+
*/
|
|
1139
|
+
export type ClientMCPToolResult = {
|
|
1140
|
+
content: Array<Record<string, any>>;
|
|
1141
|
+
isError?: boolean;
|
|
1142
|
+
structuredContent?: Record<string, any>;
|
|
1143
|
+
};
|
|
1058
1144
|
type CloudDriveFnode = {
|
|
1059
1145
|
/**
|
|
1060
1146
|
* MIME type of the file, when known. Null for directories.
|
|
@@ -1077,7 +1163,7 @@ type CloudDriveFnode = {
|
|
|
1077
1163
|
*/
|
|
1078
1164
|
name: string;
|
|
1079
1165
|
/**
|
|
1080
|
-
* Canonical cloud-drive path of the node.
|
|
1166
|
+
* Canonical cloud-drive path of the node. Unicode text; percent sequences and plus signs are literal filename characters, not URL encoding.
|
|
1081
1167
|
*/
|
|
1082
1168
|
path: string;
|
|
1083
1169
|
/**
|
|
@@ -1367,7 +1453,7 @@ type CopyBrowserFileRequest = {
|
|
|
1367
1453
|
};
|
|
1368
1454
|
type CopyCloudDriveFnodeRequest = {
|
|
1369
1455
|
/**
|
|
1370
|
-
* Canonical destination path to copy to.
|
|
1456
|
+
* Canonical destination path to copy to. Unicode text; percent sequences and plus signs are literal filename characters, not URL encoding.
|
|
1371
1457
|
*/
|
|
1372
1458
|
destinationPath: string;
|
|
1373
1459
|
/**
|
|
@@ -1375,7 +1461,7 @@ type CopyCloudDriveFnodeRequest = {
|
|
|
1375
1461
|
*/
|
|
1376
1462
|
overwrite?: boolean;
|
|
1377
1463
|
/**
|
|
1378
|
-
* Canonical source path to copy from.
|
|
1464
|
+
* Canonical source path to copy from. Unicode text; percent sequences and plus signs are literal filename characters, not URL encoding.
|
|
1379
1465
|
*/
|
|
1380
1466
|
sourcePath: string;
|
|
1381
1467
|
};
|
|
@@ -1386,6 +1472,14 @@ type CreateAccountOrgRequest = {
|
|
|
1386
1472
|
name: string;
|
|
1387
1473
|
};
|
|
1388
1474
|
type CreateAgentRequest = {
|
|
1475
|
+
/**
|
|
1476
|
+
* Creator-controlled repository policy allowing users to run this agent with their own non-official models. Ordinary repositories default to false; Brazosd-created repositories default to true. Updates that omit this field preserve its value.
|
|
1477
|
+
*/
|
|
1478
|
+
allowNonOfficialModels?: boolean;
|
|
1479
|
+
/**
|
|
1480
|
+
* Repository default context window in tokens, copied into new agent instances only. Existing instances never change. Zero uses the model window; omission preserves the existing repository value on updates.
|
|
1481
|
+
*/
|
|
1482
|
+
contextWindow?: number;
|
|
1389
1483
|
/**
|
|
1390
1484
|
* Short description of the agent's purpose.
|
|
1391
1485
|
*/
|
|
@@ -1504,7 +1598,7 @@ type CreateChannelRequest = {
|
|
|
1504
1598
|
};
|
|
1505
1599
|
type CreateCloudDriveDirectoryRequest = {
|
|
1506
1600
|
/**
|
|
1507
|
-
* Canonical destination path of the directory to create.
|
|
1601
|
+
* Canonical destination path of the directory to create. Unicode text; percent sequences and plus signs are literal filename characters, not URL encoding.
|
|
1508
1602
|
*/
|
|
1509
1603
|
path: string;
|
|
1510
1604
|
};
|
|
@@ -1637,6 +1731,16 @@ type CreateSnapshotRequest = {
|
|
|
1637
1731
|
description: string;
|
|
1638
1732
|
name: string;
|
|
1639
1733
|
};
|
|
1734
|
+
type CreateSSORequest = {
|
|
1735
|
+
appId: string;
|
|
1736
|
+
/**
|
|
1737
|
+
* BASE64URL(SHA256(code_verifier)); only PKCE S256 is supported.
|
|
1738
|
+
*/
|
|
1739
|
+
codeChallenge: string;
|
|
1740
|
+
mode: SSOMode;
|
|
1741
|
+
redirectUri: string;
|
|
1742
|
+
state: string;
|
|
1743
|
+
};
|
|
1640
1744
|
type CreateTradeAPIOrderItem = {
|
|
1641
1745
|
amountMicroyuans: number;
|
|
1642
1746
|
note?: string;
|
|
@@ -1675,6 +1779,32 @@ type Credential$1 = {
|
|
|
1675
1779
|
*/
|
|
1676
1780
|
key: string;
|
|
1677
1781
|
};
|
|
1782
|
+
type EnterprisePermissionCondition = Record<string, Record<string, Array<string>>>;
|
|
1783
|
+
type EnterprisePermissionRule = {
|
|
1784
|
+
/**
|
|
1785
|
+
* Namespaced actions such as agents:read or cloud-drive:write. A star may replace either action segment; a standalone star matches all actions.
|
|
1786
|
+
*/
|
|
1787
|
+
actions: Array<string>;
|
|
1788
|
+
condition?: EnterprisePermissionCondition;
|
|
1789
|
+
effect: "allow" | "deny";
|
|
1790
|
+
/**
|
|
1791
|
+
* Resource RNs without actions. A star matches exactly one segment; a final double-star includes the current resource and descendants. rn:* covers all namespaces subject to organization isolation. orgs:* is allowed in policies. A final directory slash-star includes the directory and descendants.
|
|
1792
|
+
*/
|
|
1793
|
+
resources: Array<string>;
|
|
1794
|
+
};
|
|
1795
|
+
type CurrentOrgPermissions = {
|
|
1796
|
+
/**
|
|
1797
|
+
* Whether stored enterprise permissions apply, including after subscription expiry.
|
|
1798
|
+
*/
|
|
1799
|
+
enterpriseEnabled: boolean;
|
|
1800
|
+
orgId: number;
|
|
1801
|
+
/**
|
|
1802
|
+
* Legacy owner fallback for ordinary organizations only; false when enterprise permissions apply.
|
|
1803
|
+
*/
|
|
1804
|
+
owner: boolean;
|
|
1805
|
+
rules: Array<EnterprisePermissionRule>;
|
|
1806
|
+
userId: number;
|
|
1807
|
+
};
|
|
1678
1808
|
type DebugAgentSessionResponse = {
|
|
1679
1809
|
/**
|
|
1680
1810
|
* Created or targeted agent session UUID.
|
|
@@ -1704,8 +1834,11 @@ type DebugSandboxNetworkTrafficSettlement = {
|
|
|
1704
1834
|
type DebugSandboxState = {
|
|
1705
1835
|
agentSessionId?: string | null;
|
|
1706
1836
|
deepSleepAt?: string | null;
|
|
1707
|
-
deepSleepCheckpointId?: string | null;
|
|
1708
1837
|
deepSleepSeconds: number;
|
|
1838
|
+
/**
|
|
1839
|
+
* Internal managed snapshot used for deep-sleep recovery.
|
|
1840
|
+
*/
|
|
1841
|
+
deepSleepSnapshotId?: string | null;
|
|
1709
1842
|
deepSleepTaskId?: number | null;
|
|
1710
1843
|
destroyedAt?: string | null;
|
|
1711
1844
|
disableSleep: boolean;
|
|
@@ -1745,7 +1878,7 @@ type DebugTestAccountResponse = {
|
|
|
1745
1878
|
};
|
|
1746
1879
|
type DeleteCloudDriveFnodeRequest = {
|
|
1747
1880
|
/**
|
|
1748
|
-
* Canonical path of the file or directory to delete.
|
|
1881
|
+
* Canonical path of the file or directory to delete. Unicode text; percent sequences and plus signs are literal filename characters, not URL encoding.
|
|
1749
1882
|
*/
|
|
1750
1883
|
path: string;
|
|
1751
1884
|
/**
|
|
@@ -1772,6 +1905,9 @@ type Device = {
|
|
|
1772
1905
|
lastPongAt?: string | null;
|
|
1773
1906
|
online: boolean;
|
|
1774
1907
|
orgId: number;
|
|
1908
|
+
/**
|
|
1909
|
+
* Whether the device is visible to its organization (true) or only its owner (false). Enterprise device permissions also apply.
|
|
1910
|
+
*/
|
|
1775
1911
|
orgScope: boolean;
|
|
1776
1912
|
platform: DevicePlatform;
|
|
1777
1913
|
tokenVersion: number;
|
|
@@ -1820,13 +1956,6 @@ type DeviceSessionToolCallRequest = {
|
|
|
1820
1956
|
*/
|
|
1821
1957
|
timeoutMs: number;
|
|
1822
1958
|
};
|
|
1823
|
-
type EnterprisePermissionRule = {
|
|
1824
|
-
allowed: boolean;
|
|
1825
|
-
/**
|
|
1826
|
-
* Current-organization RN, system-model RN under rn:llm-models, or rn:* for a global grant or deny. Existing organization and resource access checks always apply. A middle star matches one segment; a terminal star covers the subtree. A final directory slash-star includes the directory and all descendants. No regex.
|
|
1827
|
-
*/
|
|
1828
|
-
rn: string;
|
|
1829
|
-
};
|
|
1830
1959
|
type EnterprisePermissionPolicy = {
|
|
1831
1960
|
description: string;
|
|
1832
1961
|
id: string;
|
|
@@ -1851,6 +1980,12 @@ type EnterprisePermissionPolicySummary = {
|
|
|
1851
1980
|
type EnterprisePermissionRules = {
|
|
1852
1981
|
rules: Array<EnterprisePermissionRule>;
|
|
1853
1982
|
};
|
|
1983
|
+
type ExchangeSSOCodeRequest = {
|
|
1984
|
+
appId: string;
|
|
1985
|
+
code: string;
|
|
1986
|
+
codeVerifier: string;
|
|
1987
|
+
redirectUri: string;
|
|
1988
|
+
};
|
|
1854
1989
|
type FakePayNotifyRequest = {
|
|
1855
1990
|
orgRechargeOrderId: string;
|
|
1856
1991
|
};
|
|
@@ -1883,6 +2018,14 @@ type GiftTopupRequest = {
|
|
|
1883
2018
|
amountMicroyuans: number;
|
|
1884
2019
|
note?: string;
|
|
1885
2020
|
};
|
|
2021
|
+
type ClientMCPToolDefinition = {
|
|
2022
|
+
description: string;
|
|
2023
|
+
inputSchema: Record<string, any>;
|
|
2024
|
+
name: string;
|
|
2025
|
+
};
|
|
2026
|
+
type InstallClientMCP = {
|
|
2027
|
+
tools: Array<ClientMCPToolDefinition>;
|
|
2028
|
+
};
|
|
1886
2029
|
type InvitationCode = {
|
|
1887
2030
|
/**
|
|
1888
2031
|
* Invitation code value.
|
|
@@ -2063,6 +2206,7 @@ type MCPSettings = {
|
|
|
2063
2206
|
};
|
|
2064
2207
|
type MCPManageRequest = {
|
|
2065
2208
|
action: "list" | "get" | "add" | "update" | "delete" | "start" | "stop" | "restart" | "capabilities" | "load" | "unload" | "reload" | "set";
|
|
2209
|
+
agent_id?: string;
|
|
2066
2210
|
/**
|
|
2067
2211
|
* Organization-local numeric device key or full UUID.
|
|
2068
2212
|
*/
|
|
@@ -2070,20 +2214,75 @@ type MCPManageRequest = {
|
|
|
2070
2214
|
expected_revision?: number;
|
|
2071
2215
|
key?: string;
|
|
2072
2216
|
mcp_id?: string;
|
|
2217
|
+
mcps?: Array<MCPReference>;
|
|
2073
2218
|
namespace?: string;
|
|
2074
|
-
|
|
2219
|
+
/**
|
|
2220
|
+
* Remote configuration visibility. True shares with the organization; false is private to the current user in this organization. Omitted on creation preserves the legacy shared default.
|
|
2221
|
+
*/
|
|
2222
|
+
org_scope?: boolean;
|
|
2223
|
+
scope: "available" | "remote" | "device" | "session" | "secret" | "agent";
|
|
2075
2224
|
session_id?: string;
|
|
2076
2225
|
settings?: MCPSettings;
|
|
2077
2226
|
value?: string;
|
|
2078
2227
|
};
|
|
2079
|
-
type
|
|
2228
|
+
type MCPDeviceDiscoveryError = {
|
|
2229
|
+
device_id: string;
|
|
2230
|
+
device_key: number;
|
|
2231
|
+
device_name: string;
|
|
2232
|
+
error: string;
|
|
2233
|
+
};
|
|
2234
|
+
type MCPDiscoveryItem = {
|
|
2235
|
+
device_id?: string;
|
|
2236
|
+
device_key?: number;
|
|
2237
|
+
device_name?: string;
|
|
2238
|
+
mcp_id: string;
|
|
2239
|
+
namespace: string;
|
|
2240
|
+
org_scope?: boolean;
|
|
2241
|
+
source: "remote" | "device";
|
|
2242
|
+
};
|
|
2243
|
+
type MCPStartupStatus = {
|
|
2244
|
+
device_id?: string;
|
|
2245
|
+
error: string;
|
|
2246
|
+
mcp_id: string;
|
|
2247
|
+
state: "pending" | "loading" | "loaded" | "failed" | "unloaded";
|
|
2248
|
+
};
|
|
2249
|
+
type MCPManageResult = {
|
|
2250
|
+
available?: Array<MCPDiscoveryItem>;
|
|
2251
|
+
capabilities?: Record<string, any>;
|
|
2252
|
+
code?: string;
|
|
2253
|
+
config_revision?: number;
|
|
2254
|
+
deleted?: boolean;
|
|
2255
|
+
device_errors?: Array<MCPDeviceDiscoveryError>;
|
|
2256
|
+
device_id?: string | null;
|
|
2257
|
+
device_key?: number;
|
|
2258
|
+
error?: string;
|
|
2259
|
+
item?: Record<string, any>;
|
|
2260
|
+
items?: Array<Record<string, any>>;
|
|
2261
|
+
mcp_id?: string;
|
|
2262
|
+
mcps?: Array<MCPReference>;
|
|
2263
|
+
namespace?: string;
|
|
2264
|
+
org_scope?: boolean;
|
|
2265
|
+
prefix?: string;
|
|
2266
|
+
revision?: string;
|
|
2267
|
+
secrets?: Array<{
|
|
2268
|
+
key: string;
|
|
2269
|
+
updated_at: string;
|
|
2270
|
+
}>;
|
|
2271
|
+
settings?: Record<string, any>;
|
|
2272
|
+
source?: string;
|
|
2273
|
+
startup?: Array<MCPStartupStatus>;
|
|
2274
|
+
tools?: Array<Record<string, any>>;
|
|
2275
|
+
unloaded?: boolean;
|
|
2276
|
+
updated_at?: string;
|
|
2277
|
+
user_id?: number | null;
|
|
2278
|
+
};
|
|
2080
2279
|
type MoveCloudDriveFnodeRequest = {
|
|
2081
2280
|
/**
|
|
2082
|
-
* Canonical destination path to move to.
|
|
2281
|
+
* Canonical destination path to move to. Unicode text; percent sequences and plus signs are literal filename characters, not URL encoding.
|
|
2083
2282
|
*/
|
|
2084
2283
|
destinationPath: string;
|
|
2085
2284
|
/**
|
|
2086
|
-
* Canonical source path to move from.
|
|
2285
|
+
* Canonical source path to move from. Unicode text; percent sequences and plus signs are literal filename characters, not URL encoding.
|
|
2087
2286
|
*/
|
|
2088
2287
|
sourcePath: string;
|
|
2089
2288
|
};
|
|
@@ -2170,7 +2369,7 @@ type OrgFeatureSettings = {
|
|
|
2170
2369
|
*/
|
|
2171
2370
|
allowAgentPublishing: boolean;
|
|
2172
2371
|
/**
|
|
2173
|
-
* Allow members to register devices.
|
|
2372
|
+
* Allow members to register devices. Applies to ordinary organizations; their owners are exempt. Enterprise organizations use RN permissions. Existing devices remain usable and connected.
|
|
2174
2373
|
*/
|
|
2175
2374
|
allowDeviceRegistration: boolean;
|
|
2176
2375
|
/**
|
|
@@ -2178,7 +2377,7 @@ type OrgFeatureSettings = {
|
|
|
2178
2377
|
*/
|
|
2179
2378
|
allowSessionSharing: boolean;
|
|
2180
2379
|
/**
|
|
2181
|
-
* Allow members to recruit third-party agents.
|
|
2380
|
+
* Allow members to recruit third-party agents. Applies to ordinary organizations; their owners are exempt. Enterprise organizations use RN permissions. Existing agents remain usable.
|
|
2182
2381
|
*/
|
|
2183
2382
|
allowThirdPartyAgentRecruitment: boolean;
|
|
2184
2383
|
};
|
|
@@ -2414,6 +2613,17 @@ type PublicOrganization = {
|
|
|
2414
2613
|
*/
|
|
2415
2614
|
orgId: number;
|
|
2416
2615
|
};
|
|
2616
|
+
type PublicSnapshot = {
|
|
2617
|
+
architecture: string;
|
|
2618
|
+
baseImage: string;
|
|
2619
|
+
description: string;
|
|
2620
|
+
id: string;
|
|
2621
|
+
name: string;
|
|
2622
|
+
orgId: number;
|
|
2623
|
+
publishedAt: string;
|
|
2624
|
+
storageGib?: number;
|
|
2625
|
+
userId: number;
|
|
2626
|
+
};
|
|
2417
2627
|
type PublishAgentRequest = {
|
|
2418
2628
|
/**
|
|
2419
2629
|
* Third-party token charge multiplier from 1x through 50x in 0.01x increments.
|
|
@@ -2578,6 +2788,11 @@ type RecruitAgentRequest = {
|
|
|
2578
2788
|
*/
|
|
2579
2789
|
displayName?: string;
|
|
2580
2790
|
};
|
|
2791
|
+
type RefreshSSOTokensRequest = {
|
|
2792
|
+
appId: string;
|
|
2793
|
+
refreshToken: string;
|
|
2794
|
+
requestId: string;
|
|
2795
|
+
};
|
|
2581
2796
|
type RefreshTokenRequest = {
|
|
2582
2797
|
/**
|
|
2583
2798
|
* Refresh token issued with the token family.
|
|
@@ -2644,7 +2859,7 @@ type RenameCloudDriveFnodeRequest = {
|
|
|
2644
2859
|
*/
|
|
2645
2860
|
name: string;
|
|
2646
2861
|
/**
|
|
2647
|
-
* Canonical path of the existing file or directory.
|
|
2862
|
+
* Canonical path of the existing file or directory. Unicode text; percent sequences and plus signs are literal filename characters, not URL encoding.
|
|
2648
2863
|
*/
|
|
2649
2864
|
path: string;
|
|
2650
2865
|
};
|
|
@@ -2665,7 +2880,7 @@ type ReplaceDevicePortForwardsRequest = {
|
|
|
2665
2880
|
};
|
|
2666
2881
|
type RestoreCloudDriveFnodeRequest = {
|
|
2667
2882
|
/**
|
|
2668
|
-
* Canonical trash path of the item to restore.
|
|
2883
|
+
* Canonical trash path of the item to restore. Unicode text; percent sequences and plus signs are literal filename characters, not URL encoding.
|
|
2669
2884
|
*/
|
|
2670
2885
|
path: string;
|
|
2671
2886
|
};
|
|
@@ -2706,6 +2921,94 @@ type SandboxCommandResult = {
|
|
|
2706
2921
|
*/
|
|
2707
2922
|
stdout: string;
|
|
2708
2923
|
};
|
|
2924
|
+
type ScheduledHttpRequest = {
|
|
2925
|
+
/**
|
|
2926
|
+
* UTF-8 body template, at most 65536 bytes both before and after secret substitution. JSON bodies are substituted structurally and re-encoded.
|
|
2927
|
+
*/
|
|
2928
|
+
body: string;
|
|
2929
|
+
headers: Record<string, string>;
|
|
2930
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
|
|
2931
|
+
query: Record<string, string>;
|
|
2932
|
+
/**
|
|
2933
|
+
* HTTP(S) URL. Credentials may be referenced in the path/query, headers or body, never in the host.
|
|
2934
|
+
*/
|
|
2935
|
+
url: string;
|
|
2936
|
+
};
|
|
2937
|
+
type ScheduledTask = {
|
|
2938
|
+
actionType: "http" | "agent_message";
|
|
2939
|
+
agentId?: string;
|
|
2940
|
+
/**
|
|
2941
|
+
* Message to the agent, separate from the task description
|
|
2942
|
+
*/
|
|
2943
|
+
content?: string;
|
|
2944
|
+
createdAt: string;
|
|
2945
|
+
/**
|
|
2946
|
+
* Execution user, preserved when other organization members edit the task
|
|
2947
|
+
*/
|
|
2948
|
+
creatorUserId: number;
|
|
2949
|
+
/**
|
|
2950
|
+
* Six-field cron with a single seconds value; minimum interval one minute. Supports CRON_TZ.
|
|
2951
|
+
*/
|
|
2952
|
+
cronExpression?: string;
|
|
2953
|
+
description: string;
|
|
2954
|
+
httpRequest?: ScheduledHttpRequest;
|
|
2955
|
+
id: string;
|
|
2956
|
+
name: string;
|
|
2957
|
+
nextRunAt?: string;
|
|
2958
|
+
orgId: number;
|
|
2959
|
+
ownerUserId?: number;
|
|
2960
|
+
runAt?: string;
|
|
2961
|
+
scheduleType: "cron" | "once";
|
|
2962
|
+
scope: "org" | "user";
|
|
2963
|
+
/**
|
|
2964
|
+
* Optional existing session owned by the execution user, in this organization and for agentId. Omit to create a new session each time. Active sessions queue the message; finished or interrupted sessions resume. Archived sessions fail without creating a replacement.
|
|
2965
|
+
*/
|
|
2966
|
+
sessionId?: string;
|
|
2967
|
+
status: string;
|
|
2968
|
+
/**
|
|
2969
|
+
* IANA timezone for cron schedules. Defaults to UTC.
|
|
2970
|
+
*/
|
|
2971
|
+
timezone?: string;
|
|
2972
|
+
updatedAt: string;
|
|
2973
|
+
};
|
|
2974
|
+
type ScheduledTaskInput = {
|
|
2975
|
+
actionType: "http" | "agent_message";
|
|
2976
|
+
agentId?: string;
|
|
2977
|
+
/**
|
|
2978
|
+
* Message to the agent, separate from the task description
|
|
2979
|
+
*/
|
|
2980
|
+
content?: string;
|
|
2981
|
+
/**
|
|
2982
|
+
* Six-field cron with a single seconds value; minimum interval one minute. Supports CRON_TZ.
|
|
2983
|
+
*/
|
|
2984
|
+
cronExpression?: string;
|
|
2985
|
+
description: string;
|
|
2986
|
+
httpRequest?: ScheduledHttpRequest;
|
|
2987
|
+
name: string;
|
|
2988
|
+
runAt?: string;
|
|
2989
|
+
scheduleType: "cron" | "once";
|
|
2990
|
+
scope: "org" | "user";
|
|
2991
|
+
/**
|
|
2992
|
+
* Optional existing session owned by the execution user, in this organization and for agentId. Omit to create a new session each time. Active sessions queue the message; finished or interrupted sessions resume. Archived sessions fail without creating a replacement.
|
|
2993
|
+
*/
|
|
2994
|
+
sessionId?: string;
|
|
2995
|
+
/**
|
|
2996
|
+
* IANA timezone for cron schedules. Defaults to UTC.
|
|
2997
|
+
*/
|
|
2998
|
+
timezone?: string;
|
|
2999
|
+
};
|
|
3000
|
+
type ScheduledTaskRun = {
|
|
3001
|
+
error: string;
|
|
3002
|
+
finishedAt?: string;
|
|
3003
|
+
httpStatus?: number;
|
|
3004
|
+
id: string;
|
|
3005
|
+
responseSummary: string;
|
|
3006
|
+
scheduledAt: string;
|
|
3007
|
+
scheduledTaskId: string;
|
|
3008
|
+
sessionId?: string;
|
|
3009
|
+
startedAt: string;
|
|
3010
|
+
status: "running" | "succeeded" | "failed" | "unknown";
|
|
3011
|
+
};
|
|
2709
3012
|
type PhoneCodeType = "register" | "reset_password";
|
|
2710
3013
|
type SendPhoneCodeRequest = {
|
|
2711
3014
|
/**
|
|
@@ -2727,6 +3030,12 @@ type SetDeviceDNSAliasRequest = {
|
|
|
2727
3030
|
*/
|
|
2728
3031
|
alias: string;
|
|
2729
3032
|
};
|
|
3033
|
+
type SetDeviceScopeRequest = {
|
|
3034
|
+
/**
|
|
3035
|
+
* True for organization visibility; false for private visibility. The device owner remains unchanged.
|
|
3036
|
+
*/
|
|
3037
|
+
orgScope: boolean;
|
|
3038
|
+
};
|
|
2730
3039
|
type SetPublisherNamespaceRequest = {
|
|
2731
3040
|
namespace: string;
|
|
2732
3041
|
};
|
|
@@ -2747,6 +3056,12 @@ type SettleDebugSandboxNetworkTrafficRequest = {
|
|
|
2747
3056
|
*/
|
|
2748
3057
|
usageDate: string;
|
|
2749
3058
|
};
|
|
3059
|
+
type SetUserDailyBudgetRequest = {
|
|
3060
|
+
/**
|
|
3061
|
+
* Daily limit in microyuans (1000000 = CNY 1); null or omitted means unlimited.
|
|
3062
|
+
*/
|
|
3063
|
+
limitMicroyuans?: number | null;
|
|
3064
|
+
};
|
|
2750
3065
|
type SharedAgentSessionAgent = {
|
|
2751
3066
|
/**
|
|
2752
3067
|
* Agent repository UUID attributed by the share page.
|
|
@@ -2885,11 +3200,23 @@ type Snapshot = {
|
|
|
2885
3200
|
* Snapshot UUID.
|
|
2886
3201
|
*/
|
|
2887
3202
|
id: string;
|
|
3203
|
+
/**
|
|
3204
|
+
* Storage usage has been settled through this instant.
|
|
3205
|
+
*/
|
|
3206
|
+
lastBilledAt?: string;
|
|
2888
3207
|
name: string;
|
|
2889
3208
|
orgId: number;
|
|
2890
3209
|
provider: SnapshotProvider;
|
|
3210
|
+
/**
|
|
3211
|
+
* ID of this snapshot’s active public publication.
|
|
3212
|
+
*/
|
|
3213
|
+
publicationId?: string;
|
|
2891
3214
|
sourceSandboxId?: string;
|
|
2892
3215
|
state: "creating" | "ready" | "failed" | "deleting";
|
|
3216
|
+
/**
|
|
3217
|
+
* Full ECS snapshot size in GiB, including fractional GiB. Derived from exact provider bytes, never the source disk capacity. Absent until verified.
|
|
3218
|
+
*/
|
|
3219
|
+
storageGib?: number;
|
|
2893
3220
|
taskId?: number;
|
|
2894
3221
|
updatedAt: string;
|
|
2895
3222
|
/**
|
|
@@ -2897,6 +3224,55 @@ type Snapshot = {
|
|
|
2897
3224
|
*/
|
|
2898
3225
|
userId: number;
|
|
2899
3226
|
};
|
|
3227
|
+
type SnapshotPublication = {
|
|
3228
|
+
id: string;
|
|
3229
|
+
snapshotId: string;
|
|
3230
|
+
};
|
|
3231
|
+
type SSOAppConfiguration = {
|
|
3232
|
+
redirectUris: Array<string>;
|
|
3233
|
+
};
|
|
3234
|
+
type SSOAuthorization = {
|
|
3235
|
+
redirectUrl: string;
|
|
3236
|
+
};
|
|
3237
|
+
type SSOGrant = {
|
|
3238
|
+
appId: string;
|
|
3239
|
+
appName: string;
|
|
3240
|
+
createdAt: string;
|
|
3241
|
+
expiresAt: string;
|
|
3242
|
+
id: string;
|
|
3243
|
+
orgId: number;
|
|
3244
|
+
userId: number;
|
|
3245
|
+
};
|
|
3246
|
+
type SSORequest = {
|
|
3247
|
+
appId: string;
|
|
3248
|
+
appName: string;
|
|
3249
|
+
appOrgId: number;
|
|
3250
|
+
expiresAt: string;
|
|
3251
|
+
id: string;
|
|
3252
|
+
mode: SSOMode;
|
|
3253
|
+
redirectUri: string;
|
|
3254
|
+
};
|
|
3255
|
+
export type SSOTokens = {
|
|
3256
|
+
/**
|
|
3257
|
+
* Only present in org-user mode. Scoped to this user, org and revocable application grant.
|
|
3258
|
+
*/
|
|
3259
|
+
accessToken?: string;
|
|
3260
|
+
accountId: number;
|
|
3261
|
+
expiresAt: string;
|
|
3262
|
+
grantId?: string;
|
|
3263
|
+
/**
|
|
3264
|
+
* Only present in identity mode. JWT with sub=string(account_id), account_id, org_id, user_id, iss, aud=app ID, iat, exp and token_use=sso_identity. Never accepted as a brazosd API credential.
|
|
3265
|
+
*/
|
|
3266
|
+
identityToken?: string;
|
|
3267
|
+
mode: SSOMode;
|
|
3268
|
+
orgId: number;
|
|
3269
|
+
refreshExpiresAt?: string;
|
|
3270
|
+
/**
|
|
3271
|
+
* Only present in org-user mode. Exchange only at /sso/refresh using the application's service credential.
|
|
3272
|
+
*/
|
|
3273
|
+
refreshToken?: string;
|
|
3274
|
+
userId: number;
|
|
3275
|
+
};
|
|
2900
3276
|
type AcademicLocale = "zh" | "en" | "es";
|
|
2901
3277
|
type StartAcademicLessonRequest = {
|
|
2902
3278
|
courseVersion: number;
|
|
@@ -3094,6 +3470,14 @@ type UpdateAgentRepoTrdpMarkupRequest = {
|
|
|
3094
3470
|
targetMarkupPpm: number;
|
|
3095
3471
|
};
|
|
3096
3472
|
type UpdateAgentRequest = {
|
|
3473
|
+
/**
|
|
3474
|
+
* Creator-controlled repository policy allowing users to run this agent with their own non-official models. Ordinary repositories default to false; Brazosd-created repositories default to true. Updates that omit this field preserve its value.
|
|
3475
|
+
*/
|
|
3476
|
+
allowNonOfficialModels?: boolean;
|
|
3477
|
+
/**
|
|
3478
|
+
* Repository default context window in tokens, copied into new agent instances only. Existing instances never change. Zero uses the model window; omission preserves the existing repository value on updates.
|
|
3479
|
+
*/
|
|
3480
|
+
contextWindow?: number;
|
|
3097
3481
|
/**
|
|
3098
3482
|
* Short description of the agent's purpose.
|
|
3099
3483
|
*/
|
|
@@ -3121,6 +3505,12 @@ type UpdateAgentSessionLlmModel = {
|
|
|
3121
3505
|
*/
|
|
3122
3506
|
llmModelId: string;
|
|
3123
3507
|
};
|
|
3508
|
+
type UpdateAgentSessionTitle = {
|
|
3509
|
+
/**
|
|
3510
|
+
* New session title. Leading and trailing whitespace is removed; the result must not be blank.
|
|
3511
|
+
*/
|
|
3512
|
+
topicTitle: string;
|
|
3513
|
+
};
|
|
3124
3514
|
type UpdateChannelDescriptionRequest = {
|
|
3125
3515
|
/**
|
|
3126
3516
|
* New channel description.
|
|
@@ -3145,7 +3535,7 @@ type UpdateChannelReadRequest = {
|
|
|
3145
3535
|
};
|
|
3146
3536
|
type UpdateCloudDriveSettingsRequest = {
|
|
3147
3537
|
/**
|
|
3148
|
-
* Canonical root path of the user or channel drive whose settings should change.
|
|
3538
|
+
* Canonical root path of the user or channel drive whose settings should change. Unicode text; percent sequences and plus signs are literal filename characters, not URL encoding.
|
|
3149
3539
|
*/
|
|
3150
3540
|
path: string;
|
|
3151
3541
|
/**
|
|
@@ -3295,9 +3685,27 @@ type UpsertOrgInvitationTokenRequest = {
|
|
|
3295
3685
|
type UpsertTradeMerchantCallbackURLRequest = {
|
|
3296
3686
|
url: string;
|
|
3297
3687
|
};
|
|
3688
|
+
type UserDailyBudget = {
|
|
3689
|
+
/**
|
|
3690
|
+
* Aggregated usage is at or above the limit.
|
|
3691
|
+
*/
|
|
3692
|
+
exceeded: boolean;
|
|
3693
|
+
limitMicroyuans?: number | null;
|
|
3694
|
+
resetsAt: string;
|
|
3695
|
+
spentMicroyuans: number;
|
|
3696
|
+
/**
|
|
3697
|
+
* UTC billing date (YYYY-MM-DD).
|
|
3698
|
+
*/
|
|
3699
|
+
usageDate: string;
|
|
3700
|
+
userId: number;
|
|
3701
|
+
};
|
|
3298
3702
|
type WorkloadCredentials = {
|
|
3299
3703
|
accessToken: string;
|
|
3300
3704
|
expiresAt: string;
|
|
3705
|
+
/**
|
|
3706
|
+
* Instance-bound VPC credential for the trusted network sidecar. Never exposed in the application credential file.
|
|
3707
|
+
*/
|
|
3708
|
+
networkToken?: string;
|
|
3301
3709
|
refreshToken: string;
|
|
3302
3710
|
};
|
|
3303
3711
|
type XipayNotifySuccessResponse = {
|
|
@@ -3486,6 +3894,30 @@ declare class DefaultService {
|
|
|
3486
3894
|
* @throws ApiError
|
|
3487
3895
|
*/
|
|
3488
3896
|
signOutOtherAccountDevices(): CancelablePromise<void>;
|
|
3897
|
+
/**
|
|
3898
|
+
* List the signed-in account's active application grants
|
|
3899
|
+
* @returns SSOGrant Active application grants
|
|
3900
|
+
* @throws ApiError
|
|
3901
|
+
*/
|
|
3902
|
+
listAccountSsoGrants(): CancelablePromise<Array<SSOGrant>>;
|
|
3903
|
+
/**
|
|
3904
|
+
* Revoke an application grant using the owning account login
|
|
3905
|
+
* @returns void
|
|
3906
|
+
* @throws ApiError
|
|
3907
|
+
*/
|
|
3908
|
+
revokeAccountSsoGrant({ grantId, }: {
|
|
3909
|
+
grantId: string;
|
|
3910
|
+
}): CancelablePromise<void>;
|
|
3911
|
+
/**
|
|
3912
|
+
* Authorize using a human account login
|
|
3913
|
+
* Uses an account access token, never an application or organization token. The selected org must contain the account; org-user mode additionally requires the application's org. Produces a single-use authorization code, not API credentials.
|
|
3914
|
+
* @returns SSOAuthorization Verified callback URL containing code and state
|
|
3915
|
+
* @throws ApiError
|
|
3916
|
+
*/
|
|
3917
|
+
authorizeSsoRequest({ requestId, requestBody, }: {
|
|
3918
|
+
requestId: string;
|
|
3919
|
+
requestBody: AuthorizeSSORequest;
|
|
3920
|
+
}): CancelablePromise<SSOAuthorization>;
|
|
3489
3921
|
/**
|
|
3490
3922
|
* Remove an agent contact list member
|
|
3491
3923
|
* Remove a delegation target from the specified agent within the current org
|
|
@@ -3574,7 +4006,7 @@ declare class DefaultService {
|
|
|
3574
4006
|
}): CancelablePromise<AgentRepoTrdpMarkupState>;
|
|
3575
4007
|
/**
|
|
3576
4008
|
* Update agent repository third-party markup
|
|
3577
|
-
*
|
|
4009
|
+
* Enterprise members with repository edit permission, or ordinary-organization owners, may change the multiplier. Decreases apply immediately. Increases have five days of notice, one day for settlement fanout, and apply on day six.
|
|
3578
4010
|
* @returns AgentRepoTrdpMarkupState Third-party markup updated or scheduled
|
|
3579
4011
|
* @throws ApiError
|
|
3580
4012
|
*/
|
|
@@ -3584,7 +4016,7 @@ declare class DefaultService {
|
|
|
3584
4016
|
}): CancelablePromise<AgentRepoTrdpMarkupState>;
|
|
3585
4017
|
/**
|
|
3586
4018
|
* Cancel a pending third-party markup increase
|
|
3587
|
-
*
|
|
4019
|
+
* Enterprise members with repository edit permission, or ordinary-organization owners, may cancel during the five-day notice window. Settlement and later states are locked.
|
|
3588
4020
|
* @returns AgentRepoTrdpMarkupState Increase cancelled
|
|
3589
4021
|
* @throws ApiError
|
|
3590
4022
|
*/
|
|
@@ -3594,7 +4026,7 @@ declare class DefaultService {
|
|
|
3594
4026
|
}): CancelablePromise<AgentRepoTrdpMarkupState>;
|
|
3595
4027
|
/**
|
|
3596
4028
|
* List published agent users' daily token costs
|
|
3597
|
-
*
|
|
4029
|
+
* Members with the repository token-costs:read permission (or ordinary-organization owners) can query a currently published repository. Includes all deployments and versions, grouped by UTC settlement date and organization-scoped anonymous user UUID. Amounts are actual LLM charges for input, output and cached tokens, including session-title calls; excludes marketplace markup, tools and sandboxes. Agent clone calls belong to the clone's repository. Data is eventually consistent via RisingWave. No consumer organization IDs, numeric user IDs or profile information are returned.
|
|
3598
4030
|
* @returns PublishedAgentUserDailyTokenCostPage Daily token costs listed; users without recorded usage have no row.
|
|
3599
4031
|
* @throws ApiError
|
|
3600
4032
|
*/
|
|
@@ -3681,6 +4113,47 @@ declare class DefaultService {
|
|
|
3681
4113
|
cursor?: string;
|
|
3682
4114
|
limit?: number;
|
|
3683
4115
|
}): CancelablePromise<AgentSessionHistoryPage>;
|
|
4116
|
+
/**
|
|
4117
|
+
* Submit a client-side MCP tool result
|
|
4118
|
+
* First accepted write wins. HTTP 204 confirms storage only; near timeout the model may still receive a timeout. Duplicate submissions and calls not accepting results return 409.
|
|
4119
|
+
* @returns void
|
|
4120
|
+
* @throws ApiError
|
|
4121
|
+
*/
|
|
4122
|
+
submitAgentSessionClientMcpResult({ sessionId, runId, toolCallId, requestBody, }: {
|
|
4123
|
+
sessionId: string;
|
|
4124
|
+
runId: string;
|
|
4125
|
+
toolCallId: string;
|
|
4126
|
+
requestBody: ClientMCPToolResult;
|
|
4127
|
+
}): CancelablePromise<void>;
|
|
4128
|
+
/**
|
|
4129
|
+
* List client-side MCP installations in a session
|
|
4130
|
+
* @returns ClientMCPInstallation Session client-side MCPs
|
|
4131
|
+
* @throws ApiError
|
|
4132
|
+
*/
|
|
4133
|
+
listAgentSessionClientMcPs({ sessionId, }: {
|
|
4134
|
+
sessionId: string;
|
|
4135
|
+
}): CancelablePromise<Array<ClientMCPInstallation>>;
|
|
4136
|
+
/**
|
|
4137
|
+
* Uninstall a session client-side MCP
|
|
4138
|
+
* Idempotent. Uninstall affects future tool dispatch; already waiting calls may still submit their results.
|
|
4139
|
+
* @returns void
|
|
4140
|
+
* @throws ApiError
|
|
4141
|
+
*/
|
|
4142
|
+
uninstallAgentSessionClientMcp({ sessionId, namespace, }: {
|
|
4143
|
+
sessionId: string;
|
|
4144
|
+
namespace: string;
|
|
4145
|
+
}): CancelablePromise<void>;
|
|
4146
|
+
/**
|
|
4147
|
+
* Install or replace a session client-side MCP
|
|
4148
|
+
* Idempotent by session and namespace. Identical definitions retain their revision. Maximum 32 client MCPs per session and 1 MiB per installation.
|
|
4149
|
+
* @returns ClientMCPInstallation Installed snapshot
|
|
4150
|
+
* @throws ApiError
|
|
4151
|
+
*/
|
|
4152
|
+
installAgentSessionClientMcp({ sessionId, namespace, requestBody, }: {
|
|
4153
|
+
sessionId: string;
|
|
4154
|
+
namespace: string;
|
|
4155
|
+
requestBody: InstallClientMCP;
|
|
4156
|
+
}): CancelablePromise<ClientMCPInstallation>;
|
|
3684
4157
|
/**
|
|
3685
4158
|
* Compact agent session
|
|
3686
4159
|
* Trigger an asynchronous context compaction run for a managed agent session
|
|
@@ -3755,6 +4228,18 @@ declare class DefaultService {
|
|
|
3755
4228
|
*/
|
|
3756
4229
|
sessionId: string;
|
|
3757
4230
|
}): CancelablePromise<AgentSession>;
|
|
4231
|
+
/**
|
|
4232
|
+
* Interrupt an agent session and its descendants
|
|
4233
|
+
* Interrupt unarchived working or retrying sessions in the subtree rooted at sessionId, root first and then each level from top to bottom. Children are discovered after their parents are interrupted. Traverse through inactive and archived ancestors. Execution stops on the first error; earlier successful interruptions remain applied and a retry skips them.
|
|
4234
|
+
* @returns AgentSessionTreeActionResult All active sessions interrupted
|
|
4235
|
+
* @throws ApiError
|
|
4236
|
+
*/
|
|
4237
|
+
interruptAgentSessionTree({ sessionId, }: {
|
|
4238
|
+
/**
|
|
4239
|
+
* UUID of the root of the session subtree.
|
|
4240
|
+
*/
|
|
4241
|
+
sessionId: string;
|
|
4242
|
+
}): CancelablePromise<AgentSessionTreeActionResult>;
|
|
3758
4243
|
/**
|
|
3759
4244
|
* Update agent session LLM model
|
|
3760
4245
|
* Change the model used by subsequent LLM requests in an agent session
|
|
@@ -3768,6 +4253,27 @@ declare class DefaultService {
|
|
|
3768
4253
|
sessionId: string;
|
|
3769
4254
|
requestBody: UpdateAgentSessionLlmModel;
|
|
3770
4255
|
}): CancelablePromise<AgentSession>;
|
|
4256
|
+
/**
|
|
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.
|
|
4259
|
+
* @returns AgentSession Recovery accepted
|
|
4260
|
+
* @throws ApiError
|
|
4261
|
+
*/
|
|
4262
|
+
resumeAgentSession({ sessionId, }: {
|
|
4263
|
+
sessionId: string;
|
|
4264
|
+
}): CancelablePromise<AgentSession>;
|
|
4265
|
+
/**
|
|
4266
|
+
* 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.
|
|
4268
|
+
* @returns AgentSessionTreeActionResult All eligible sessions resumed
|
|
4269
|
+
* @throws ApiError
|
|
4270
|
+
*/
|
|
4271
|
+
resumeAgentSessionTree({ sessionId, }: {
|
|
4272
|
+
/**
|
|
4273
|
+
* UUID of the root of the session subtree.
|
|
4274
|
+
*/
|
|
4275
|
+
sessionId: string;
|
|
4276
|
+
}): CancelablePromise<AgentSessionTreeActionResult>;
|
|
3771
4277
|
/**
|
|
3772
4278
|
* Revoke the active agent session share
|
|
3773
4279
|
* Invalidate the current share link immediately.
|
|
@@ -3807,6 +4313,16 @@ declare class DefaultService {
|
|
|
3807
4313
|
rotateAgentSessionShare({ sessionId, }: {
|
|
3808
4314
|
sessionId: string;
|
|
3809
4315
|
}): CancelablePromise<SharedAgentSessionToken>;
|
|
4316
|
+
/**
|
|
4317
|
+
* Rename agent session
|
|
4318
|
+
* 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.
|
|
4319
|
+
* @returns AgentSession Agent session renamed
|
|
4320
|
+
* @throws ApiError
|
|
4321
|
+
*/
|
|
4322
|
+
updateAgentSessionTitle({ sessionId, requestBody, }: {
|
|
4323
|
+
sessionId: string;
|
|
4324
|
+
requestBody: UpdateAgentSessionTitle;
|
|
4325
|
+
}): CancelablePromise<AgentSession>;
|
|
3810
4326
|
/**
|
|
3811
4327
|
* Get agent session todo list
|
|
3812
4328
|
* Get the persisted todo list for a managed agent session ordered by ordinal ascending
|
|
@@ -4127,6 +4643,23 @@ declare class DefaultService {
|
|
|
4127
4643
|
*/
|
|
4128
4644
|
invokedByUserScheduledTask?: boolean;
|
|
4129
4645
|
}): CancelablePromise<Array<AgentSession>>;
|
|
4646
|
+
/**
|
|
4647
|
+
* Read agent MCP and tool whitelists
|
|
4648
|
+
* @returns AgentToolSettingsResponse Agent tool settings
|
|
4649
|
+
* @throws ApiError
|
|
4650
|
+
*/
|
|
4651
|
+
getAgentToolSettings({ agentId, }: {
|
|
4652
|
+
agentId: string;
|
|
4653
|
+
}): CancelablePromise<AgentToolSettingsResponse>;
|
|
4654
|
+
/**
|
|
4655
|
+
* Update agent MCP and tool whitelists
|
|
4656
|
+
* @returns AgentToolSettingsResponse Agent tool settings
|
|
4657
|
+
* @throws ApiError
|
|
4658
|
+
*/
|
|
4659
|
+
updateAgentToolSettings({ agentId, requestBody, }: {
|
|
4660
|
+
agentId: string;
|
|
4661
|
+
requestBody: AgentToolSettings;
|
|
4662
|
+
}): CancelablePromise<AgentToolSettingsResponse>;
|
|
4130
4663
|
/**
|
|
4131
4664
|
* Get recruited agent price confirmation status
|
|
4132
4665
|
* All members of the consumer organization can read this status for the session price-change banner.
|
|
@@ -4138,7 +4671,7 @@ declare class DefaultService {
|
|
|
4138
4671
|
}): CancelablePromise<AgentTrdpMarkupStatus>;
|
|
4139
4672
|
/**
|
|
4140
4673
|
* Confirm a recruited agent price
|
|
4141
|
-
*
|
|
4674
|
+
* Enterprise members with agent edit permission, or ordinary-organization owners, can raise the accepted maximum price and clear a price-caused system pause.
|
|
4142
4675
|
* @returns AgentTrdpMarkupStatus Price confirmed
|
|
4143
4676
|
* @throws ApiError
|
|
4144
4677
|
*/
|
|
@@ -4712,7 +5245,7 @@ declare class DefaultService {
|
|
|
4712
5245
|
*/
|
|
4713
5246
|
getCloudDrive({ path, }: {
|
|
4714
5247
|
/**
|
|
4715
|
-
* Canonical path to inspect. Directories return JSON children; files redirect to a temporary download URL.
|
|
5248
|
+
* Canonical path to inspect. Directories return JSON children; files redirect to a temporary download URL. Use Unicode filename text verbatim, including percent and plus signs. Encode only the outer HTTP query parameter.
|
|
4716
5249
|
*/
|
|
4717
5250
|
path: string;
|
|
4718
5251
|
}): CancelablePromise<(Array<CloudDriveFnode> | Response)>;
|
|
@@ -4742,7 +5275,7 @@ declare class DefaultService {
|
|
|
4742
5275
|
*/
|
|
4743
5276
|
downloadCloudDrive({ path, }: {
|
|
4744
5277
|
/**
|
|
4745
|
-
* Canonical file path to download.
|
|
5278
|
+
* Canonical file path to download. Use Unicode filename text verbatim, including percent and plus signs. Encode only the outer HTTP query parameter.
|
|
4746
5279
|
*/
|
|
4747
5280
|
path: string;
|
|
4748
5281
|
}): CancelablePromise<Response>;
|
|
@@ -4781,7 +5314,7 @@ declare class DefaultService {
|
|
|
4781
5314
|
*/
|
|
4782
5315
|
getCloudDriveSettings({ path, }: {
|
|
4783
5316
|
/**
|
|
4784
|
-
* Canonical root path of the user or channel drive whose settings should be returned.
|
|
5317
|
+
* Canonical root path of the user or channel drive whose settings should be returned. Use Unicode filename text verbatim, including percent and plus signs. Encode only the outer HTTP query parameter.
|
|
4785
5318
|
*/
|
|
4786
5319
|
path: string;
|
|
4787
5320
|
}): CancelablePromise<CloudDriveSettings>;
|
|
@@ -4802,19 +5335,19 @@ declare class DefaultService {
|
|
|
4802
5335
|
*/
|
|
4803
5336
|
statCloudDrive({ path, }: {
|
|
4804
5337
|
/**
|
|
4805
|
-
* Canonical file or directory path, including session.drive paths.
|
|
5338
|
+
* Canonical file or directory path, including session.drive paths. Use Unicode filename text verbatim, including percent and plus signs. Encode only the outer HTTP query parameter.
|
|
4806
5339
|
*/
|
|
4807
5340
|
path: string;
|
|
4808
5341
|
}): CancelablePromise<CloudDriveFnode>;
|
|
4809
5342
|
/**
|
|
4810
5343
|
* Upload cloud drive file
|
|
4811
|
-
*
|
|
5344
|
+
* Stream a file of at most 5 GiB (5368709120 bytes) into a canonical cloud drive destination path without buffering the complete payload in application memory or on disk. Query parameters are signed; the multipart body is sent with unsigned payload mode and the file content integrity is checked with the signed sha256 query parameter. Interrupted uploads must be restarted from the beginning.
|
|
4812
5345
|
* @returns CloudDriveFnode File uploaded
|
|
4813
5346
|
* @throws ApiError
|
|
4814
5347
|
*/
|
|
4815
5348
|
uploadCloudDriveFile({ path, sha256, formData, overwrite, skip, ifMatch, }: {
|
|
4816
5349
|
/**
|
|
4817
|
-
* Canonical destination path where the uploaded file should be written.
|
|
5350
|
+
* Canonical destination path where the uploaded file should be written. Use Unicode filename text verbatim, including percent and plus signs. Encode only the outer HTTP query parameter.
|
|
4818
5351
|
*/
|
|
4819
5352
|
path: string;
|
|
4820
5353
|
/**
|
|
@@ -4837,7 +5370,7 @@ declare class DefaultService {
|
|
|
4837
5370
|
}): CancelablePromise<CloudDriveFnode>;
|
|
4838
5371
|
/**
|
|
4839
5372
|
* Upload cloud drive file into user tmp
|
|
4840
|
-
* Stream a file of at most
|
|
5373
|
+
* Stream a file of at most 5 GiB (5368709120 bytes) into the authenticated user's cloud-drive temporary area without buffering the complete payload in application memory or on disk. The backend allocates a unique dated tmp path so clients do not need to generate one. Interrupted uploads must be restarted from the beginning.
|
|
4841
5374
|
* @returns CloudDriveFnode File uploaded into tmp
|
|
4842
5375
|
* @throws ApiError
|
|
4843
5376
|
*/
|
|
@@ -4854,7 +5387,11 @@ declare class DefaultService {
|
|
|
4854
5387
|
* @returns ConsentForm Consent forms listed
|
|
4855
5388
|
* @throws ApiError
|
|
4856
5389
|
*/
|
|
4857
|
-
listConsentForms({ offset, limit, }: {
|
|
5390
|
+
listConsentForms({ pendingOnly, offset, limit, }: {
|
|
5391
|
+
/**
|
|
5392
|
+
* Return only pending, unexpired forms before applying pagination.
|
|
5393
|
+
*/
|
|
5394
|
+
pendingOnly?: boolean;
|
|
4858
5395
|
/**
|
|
4859
5396
|
* Zero-based offset into the user's consent-form list. Defaults to 0.
|
|
4860
5397
|
*/
|
|
@@ -5041,7 +5578,7 @@ declare class DefaultService {
|
|
|
5041
5578
|
listDevices(): CancelablePromise<Array<Device>>;
|
|
5042
5579
|
/**
|
|
5043
5580
|
* Register device
|
|
5044
|
-
* Register a new device.
|
|
5581
|
+
* Register a new device. Enterprise organizations require devices:create. Ordinary organization settings may disable registration for members; the organization owner is exempt. Existing device connections and usage are unchanged.
|
|
5045
5582
|
* @returns RegisterDeviceResult Device registered
|
|
5046
5583
|
* @throws ApiError
|
|
5047
5584
|
*/
|
|
@@ -5115,6 +5652,16 @@ declare class DefaultService {
|
|
|
5115
5652
|
deviceId: string;
|
|
5116
5653
|
requestBody: ReplaceDevicePortForwardsRequest;
|
|
5117
5654
|
}): CancelablePromise<DevicePortForwardSnapshot>;
|
|
5655
|
+
/**
|
|
5656
|
+
* Set device access scope
|
|
5657
|
+
* Set a device to organization-visible or private. In non-enterprise organizations only the device owner can change its scope. Enterprise organizations use the existing device access permission, subject to device visibility; ownership does not bypass enterprise permissions. Setting orgScope to false saves private visibility before requesting disconnection of the current device tunnel. Repeating a private request retries disconnection. Device credentials remain valid for reconnecting.
|
|
5658
|
+
* @returns Device Device access scope updated and, for private scope, tunnel disconnection requested if a tunnel record exists. This does not acknowledge actual closure.
|
|
5659
|
+
* @throws ApiError
|
|
5660
|
+
*/
|
|
5661
|
+
setDeviceScope({ deviceId, requestBody, }: {
|
|
5662
|
+
deviceId: string;
|
|
5663
|
+
requestBody: SetDeviceScopeRequest;
|
|
5664
|
+
}): CancelablePromise<Device>;
|
|
5118
5665
|
/**
|
|
5119
5666
|
* Rotate device token
|
|
5120
5667
|
* @returns RotateDeviceTokenResult Device token rotated
|
|
@@ -5254,7 +5801,7 @@ declare class DefaultService {
|
|
|
5254
5801
|
}): CancelablePromise<MCPManageResult>;
|
|
5255
5802
|
/**
|
|
5256
5803
|
* Update current organization
|
|
5257
|
-
* Update the current organization's profile.
|
|
5804
|
+
* Update the current organization's profile. An authorized enterprise member or an ordinary-organization owner can update it.
|
|
5258
5805
|
* @returns AccountOrg Current organization updated
|
|
5259
5806
|
* @throws ApiError
|
|
5260
5807
|
*/
|
|
@@ -5338,7 +5885,7 @@ declare class DefaultService {
|
|
|
5338
5885
|
}): CancelablePromise<OrgCloudSkillSlugAvailability>;
|
|
5339
5886
|
/**
|
|
5340
5887
|
* Get org invitation token
|
|
5341
|
-
* Get the current organization invitation token.
|
|
5888
|
+
* Get the current organization invitation token. An authorized enterprise member or an ordinary-organization owner can read it.
|
|
5342
5889
|
* @returns OrgInvitationToken Token exists
|
|
5343
5890
|
* @throws ApiError
|
|
5344
5891
|
*/
|
|
@@ -5376,7 +5923,7 @@ declare class DefaultService {
|
|
|
5376
5923
|
*/
|
|
5377
5924
|
downloadOrgPublicCloudDrive({ path, disposition, }: {
|
|
5378
5925
|
/**
|
|
5379
|
-
* Canonical organization-public file path to download.
|
|
5926
|
+
* Canonical organization-public file path to download. Use Unicode filename text verbatim, including percent and plus signs. Encode only the outer HTTP query parameter.
|
|
5380
5927
|
*/
|
|
5381
5928
|
path: string;
|
|
5382
5929
|
/**
|
|
@@ -5392,13 +5939,13 @@ declare class DefaultService {
|
|
|
5392
5939
|
*/
|
|
5393
5940
|
listOrgUsers({ includeInactive, }: {
|
|
5394
5941
|
/**
|
|
5395
|
-
* Include deactivated managed accounts.
|
|
5942
|
+
* Include deactivated managed accounts. An authorized enterprise member or an ordinary-organization owner can request this.
|
|
5396
5943
|
*/
|
|
5397
5944
|
includeInactive?: boolean;
|
|
5398
5945
|
}): CancelablePromise<Array<OrgUser>>;
|
|
5399
5946
|
/**
|
|
5400
5947
|
* Create an organization-managed account
|
|
5401
|
-
*
|
|
5948
|
+
* Requires rn:orgs:<orgId>:users:create in an enterprise organization with an active subscription. Ordinary organizations retain the owner fallback, but still require an active subscription to provision accounts. Creates an account without a phone number, allocates an enterprise seat, and returns a random temporary password once. The user must change it on first login. Never log the response.
|
|
5402
5949
|
* @returns ManagedAccountCredentials Account created; save the temporary password before leaving this response
|
|
5403
5950
|
* @throws ApiError
|
|
5404
5951
|
*/
|
|
@@ -5407,7 +5954,7 @@ declare class DefaultService {
|
|
|
5407
5954
|
}): CancelablePromise<ManagedAccountCredentials>;
|
|
5408
5955
|
/**
|
|
5409
5956
|
* Deactivate org user
|
|
5410
|
-
* Deactivate an existing org user.
|
|
5957
|
+
* Deactivate an existing org user. An authorized enterprise member or an ordinary-organization owner can deactivate users.
|
|
5411
5958
|
* @returns void
|
|
5412
5959
|
* @throws ApiError
|
|
5413
5960
|
*/
|
|
@@ -5428,7 +5975,7 @@ declare class DefaultService {
|
|
|
5428
5975
|
}): CancelablePromise<OrgUser>;
|
|
5429
5976
|
/**
|
|
5430
5977
|
* Deactivate a managed account
|
|
5431
|
-
*
|
|
5978
|
+
* 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.
|
|
5432
5979
|
* @returns void
|
|
5433
5980
|
* @throws ApiError
|
|
5434
5981
|
*/
|
|
@@ -5437,7 +5984,7 @@ declare class DefaultService {
|
|
|
5437
5984
|
}): CancelablePromise<void>;
|
|
5438
5985
|
/**
|
|
5439
5986
|
* Reactivate a managed account
|
|
5440
|
-
*
|
|
5987
|
+
* 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.
|
|
5441
5988
|
* @returns void
|
|
5442
5989
|
* @throws ApiError
|
|
5443
5990
|
*/
|
|
@@ -5446,7 +5993,7 @@ declare class DefaultService {
|
|
|
5446
5993
|
}): CancelablePromise<void>;
|
|
5447
5994
|
/**
|
|
5448
5995
|
* Reset a managed account's password
|
|
5449
|
-
*
|
|
5996
|
+
* Requires the operation RN in enterprise organizations; ordinary organizations require the owner. Generates a temporary password and revokes existing credentials without changing activation status.
|
|
5450
5997
|
* @returns ManagedPasswordReset Temporary password generated
|
|
5451
5998
|
* @throws ApiError
|
|
5452
5999
|
*/
|
|
@@ -5473,14 +6020,14 @@ declare class DefaultService {
|
|
|
5473
6020
|
}): CancelablePromise<OrgUser>;
|
|
5474
6021
|
/**
|
|
5475
6022
|
* Get organization agent-session settings
|
|
5476
|
-
* Get the current organization's inactivity archive timeout.
|
|
6023
|
+
* Get the current organization's inactivity archive timeout. An authorized enterprise member or an ordinary-organization owner can read this setting.
|
|
5477
6024
|
* @returns OrgAgentSessionSettings Agent-session settings returned
|
|
5478
6025
|
* @throws ApiError
|
|
5479
6026
|
*/
|
|
5480
6027
|
getOrgAgentSessionSettings(): CancelablePromise<OrgAgentSessionSettings>;
|
|
5481
6028
|
/**
|
|
5482
6029
|
* Update organization agent-session settings
|
|
5483
|
-
* Set the inactivity archive timeout for all sessions in the current organization.
|
|
6030
|
+
* Set the inactivity archive timeout for all sessions in the current organization. An authorized enterprise member or an ordinary-organization owner can update this setting.
|
|
5484
6031
|
* @returns OrgAgentSessionSettings Agent-session settings updated
|
|
5485
6032
|
* @throws ApiError
|
|
5486
6033
|
*/
|
|
@@ -5505,7 +6052,7 @@ declare class DefaultService {
|
|
|
5505
6052
|
getOrgEnterprise(): CancelablePromise<OrgEnterpriseSubscription>;
|
|
5506
6053
|
/**
|
|
5507
6054
|
* Activate organization enterprise subscription
|
|
5508
|
-
* Activate enterprise billing, or restore automatic renewal for an active paid period.
|
|
6055
|
+
* Activate enterprise billing, or restore automatic renewal for an active paid period. An authorized enterprise member or an ordinary-organization owner can perform this operation.
|
|
5509
6056
|
* @returns OrgEnterpriseSubscription Enterprise subscription activated or automatic renewal restored
|
|
5510
6057
|
* @throws ApiError
|
|
5511
6058
|
*/
|
|
@@ -5556,21 +6103,21 @@ declare class DefaultService {
|
|
|
5556
6103
|
}): CancelablePromise<EnterprisePermissionPolicy>;
|
|
5557
6104
|
/**
|
|
5558
6105
|
* Cancel organization enterprise renewal
|
|
5559
|
-
* Stop automatic renewal after the current paid period. The organization remains enterprise until the period ends.
|
|
6106
|
+
* Stop automatic renewal after the current paid period. The organization remains enterprise until the period ends. An authorized enterprise member or an ordinary-organization owner can perform this operation.
|
|
5560
6107
|
* @returns OrgEnterpriseSubscription Automatic renewal cancelled
|
|
5561
6108
|
* @throws ApiError
|
|
5562
6109
|
*/
|
|
5563
6110
|
cancelOrgEnterpriseRenewal(): CancelablePromise<OrgEnterpriseSubscription>;
|
|
5564
6111
|
/**
|
|
5565
6112
|
* Get organization feature settings
|
|
5566
|
-
* Read organization settings and the current user's effective permissions. All settings default to allowed.
|
|
6113
|
+
* Read organization settings and the current user's effective permissions. All settings default to allowed. Enterprise recruitment and device registration use RN permissions instead of the legacy member switches; ordinary-organization owners bypass those two switches. Publishing and sharing switches apply to everyone.
|
|
5567
6114
|
* @returns OrgFeatureSettingsResponse Organization feature settings and effective permissions
|
|
5568
6115
|
* @throws ApiError
|
|
5569
6116
|
*/
|
|
5570
6117
|
getOrgFeatureSettings(): CancelablePromise<OrgFeatureSettingsResponse>;
|
|
5571
6118
|
/**
|
|
5572
6119
|
* Update organization feature settings
|
|
5573
|
-
*
|
|
6120
|
+
* Requires the operation RN in enterprise organizations; ordinary organizations require the owner. Replace all four settings. Restrictions apply to subsequent recruitment, device registration, publishing, and share creation or rotation requests. Existing agents, devices, publications, and shares remain unchanged.
|
|
5574
6121
|
* @returns OrgFeatureSettingsResponse Organization feature settings updated
|
|
5575
6122
|
* @throws ApiError
|
|
5576
6123
|
*/
|
|
@@ -5665,13 +6212,20 @@ declare class DefaultService {
|
|
|
5665
6212
|
getOrgLlmSettings(): CancelablePromise<OrgLlmSettings>;
|
|
5666
6213
|
/**
|
|
5667
6214
|
* Replace organization model settings
|
|
5668
|
-
*
|
|
6215
|
+
* Enterprise members with llm-model-settings:edit, or ordinary-organization owners, may change these settings. Omitted or null overrides restore the corresponding default. Existing agents, sessions, and forks are not migrated.
|
|
5669
6216
|
* @returns OrgLlmSettings Organization model settings saved
|
|
5670
6217
|
* @throws ApiError
|
|
5671
6218
|
*/
|
|
5672
6219
|
updateOrgLlmSettings({ requestBody, }: {
|
|
5673
6220
|
requestBody: OrgLlmSettings;
|
|
5674
6221
|
}): CancelablePromise<OrgLlmSettings>;
|
|
6222
|
+
/**
|
|
6223
|
+
* Get the current user's organization authorization
|
|
6224
|
+
* Returns the authenticated user's effective enterprise rules, including group and policy grants and denies, or ordinary-organization owner fallback. Subscription expiry does not disable enterprise authorization. This read-only response never initializes grants and cannot inspect another user. Operations always recheck authorization independently.
|
|
6225
|
+
* @returns CurrentOrgPermissions Current organization authorization
|
|
6226
|
+
* @throws ApiError
|
|
6227
|
+
*/
|
|
6228
|
+
getCurrentOrgPermissions(): CancelablePromise<CurrentOrgPermissions>;
|
|
5675
6229
|
/**
|
|
5676
6230
|
* List organization quotas
|
|
5677
6231
|
* List effective quota limits and current usage for the authenticated organization.
|
|
@@ -5679,6 +6233,25 @@ declare class DefaultService {
|
|
|
5679
6233
|
* @throws ApiError
|
|
5680
6234
|
*/
|
|
5681
6235
|
listOrgQuotas(): CancelablePromise<QuotaListResponse>;
|
|
6236
|
+
/**
|
|
6237
|
+
* Get an enterprise member's daily usage budget
|
|
6238
|
+
* 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.
|
|
6239
|
+
* @returns UserDailyBudget Current budget and aggregated usage
|
|
6240
|
+
* @throws ApiError
|
|
6241
|
+
*/
|
|
6242
|
+
getUserDailyBudget({ userId, }: {
|
|
6243
|
+
userId: number;
|
|
6244
|
+
}): CancelablePromise<UserDailyBudget>;
|
|
6245
|
+
/**
|
|
6246
|
+
* Set an enterprise member's daily usage budget
|
|
6247
|
+
* 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.
|
|
6248
|
+
* @returns UserDailyBudget Saved budget and current aggregated usage
|
|
6249
|
+
* @throws ApiError
|
|
6250
|
+
*/
|
|
6251
|
+
setUserDailyBudget({ userId, requestBody, }: {
|
|
6252
|
+
userId: number;
|
|
6253
|
+
requestBody: SetUserDailyBudgetRequest;
|
|
6254
|
+
}): CancelablePromise<UserDailyBudget>;
|
|
5682
6255
|
/**
|
|
5683
6256
|
* Get a member's bound policy IDs
|
|
5684
6257
|
* Requires an enterprise organization and the corresponding enterprise RN permission.
|
|
@@ -5769,6 +6342,26 @@ declare class DefaultService {
|
|
|
5769
6342
|
publishOrgCloudSkill({ slug, }: {
|
|
5770
6343
|
slug: string;
|
|
5771
6344
|
}): CancelablePromise<PublicCloudSkillMetadata>;
|
|
6345
|
+
/**
|
|
6346
|
+
* List public snapshots
|
|
6347
|
+
* @returns PublicSnapshot Public snapshots
|
|
6348
|
+
* @throws ApiError
|
|
6349
|
+
*/
|
|
6350
|
+
listPublicSnapshots({ after, }: {
|
|
6351
|
+
/**
|
|
6352
|
+
* Last publication ID from the previous page. Pages contain at most 100 items.
|
|
6353
|
+
*/
|
|
6354
|
+
after?: string;
|
|
6355
|
+
}): CancelablePromise<Array<PublicSnapshot>>;
|
|
6356
|
+
/**
|
|
6357
|
+
* Import a public snapshot into the current organization
|
|
6358
|
+
* Create an independent saved snapshot reference to the same immutable resource. Storage billing starts when imported.
|
|
6359
|
+
* @returns Snapshot Organization snapshot created
|
|
6360
|
+
* @throws ApiError
|
|
6361
|
+
*/
|
|
6362
|
+
importPublicSnapshot({ publicationId, }: {
|
|
6363
|
+
publicationId: string;
|
|
6364
|
+
}): CancelablePromise<Snapshot>;
|
|
5772
6365
|
/**
|
|
5773
6366
|
* Get public agent
|
|
5774
6367
|
* Get the current published main version of a public agent repository. This endpoint does not require authentication.
|
|
@@ -5825,7 +6418,7 @@ declare class DefaultService {
|
|
|
5825
6418
|
getPublisherNamespace(): CancelablePromise<PublisherNamespace>;
|
|
5826
6419
|
/**
|
|
5827
6420
|
* Reserve or change the org's publisher namespace
|
|
5828
|
-
*
|
|
6421
|
+
* An authorized enterprise member or an ordinary-organization owner can change the namespace. It can be changed once every 7 days; prior namespaces remain reserved and working for 60 days.
|
|
5829
6422
|
* @returns PublisherNamespace Namespace updated
|
|
5830
6423
|
* @throws ApiError
|
|
5831
6424
|
*/
|
|
@@ -5879,6 +6472,71 @@ declare class DefaultService {
|
|
|
5879
6472
|
sandboxId: string;
|
|
5880
6473
|
requestBody: CreateSnapshotRequest;
|
|
5881
6474
|
}): CancelablePromise<Snapshot>;
|
|
6475
|
+
/**
|
|
6476
|
+
* List accessible platform scheduled tasks in the current organization
|
|
6477
|
+
* @returns ScheduledTask Organization tasks and the current user's personal tasks
|
|
6478
|
+
* @throws ApiError
|
|
6479
|
+
*/
|
|
6480
|
+
listScheduledTasks({ scope, }: {
|
|
6481
|
+
scope?: "org" | "user";
|
|
6482
|
+
}): CancelablePromise<Array<ScheduledTask>>;
|
|
6483
|
+
/**
|
|
6484
|
+
* Create a platform scheduled task
|
|
6485
|
+
* @returns ScheduledTask Created
|
|
6486
|
+
* @throws ApiError
|
|
6487
|
+
*/
|
|
6488
|
+
createScheduledTask({ requestBody, }: {
|
|
6489
|
+
requestBody: ScheduledTaskInput;
|
|
6490
|
+
}): CancelablePromise<ScheduledTask>;
|
|
6491
|
+
/**
|
|
6492
|
+
* Delete a task while retaining its history
|
|
6493
|
+
* @returns void
|
|
6494
|
+
* @throws ApiError
|
|
6495
|
+
*/
|
|
6496
|
+
deleteScheduledTask({ scheduledTaskId, }: {
|
|
6497
|
+
scheduledTaskId: string;
|
|
6498
|
+
}): CancelablePromise<void>;
|
|
6499
|
+
/**
|
|
6500
|
+
* Get a scheduled task
|
|
6501
|
+
* @returns ScheduledTask Task
|
|
6502
|
+
* @throws ApiError
|
|
6503
|
+
*/
|
|
6504
|
+
getScheduledTask({ scheduledTaskId, }: {
|
|
6505
|
+
scheduledTaskId: string;
|
|
6506
|
+
}): CancelablePromise<ScheduledTask>;
|
|
6507
|
+
/**
|
|
6508
|
+
* Update a task without changing its owner or execution user
|
|
6509
|
+
* @returns ScheduledTask Updated
|
|
6510
|
+
* @throws ApiError
|
|
6511
|
+
*/
|
|
6512
|
+
updateScheduledTask({ scheduledTaskId, requestBody, }: {
|
|
6513
|
+
scheduledTaskId: string;
|
|
6514
|
+
requestBody: ScheduledTaskInput;
|
|
6515
|
+
}): CancelablePromise<ScheduledTask>;
|
|
6516
|
+
/**
|
|
6517
|
+
* Pause a scheduled task
|
|
6518
|
+
* @returns ScheduledTask Paused
|
|
6519
|
+
* @throws ApiError
|
|
6520
|
+
*/
|
|
6521
|
+
pauseScheduledTask({ scheduledTaskId, }: {
|
|
6522
|
+
scheduledTaskId: string;
|
|
6523
|
+
}): CancelablePromise<ScheduledTask>;
|
|
6524
|
+
/**
|
|
6525
|
+
* Resume a scheduled task
|
|
6526
|
+
* @returns ScheduledTask Resumed
|
|
6527
|
+
* @throws ApiError
|
|
6528
|
+
*/
|
|
6529
|
+
resumeScheduledTask({ scheduledTaskId, }: {
|
|
6530
|
+
scheduledTaskId: string;
|
|
6531
|
+
}): CancelablePromise<ScheduledTask>;
|
|
6532
|
+
/**
|
|
6533
|
+
* List the latest 100 executions, newest first
|
|
6534
|
+
* @returns ScheduledTaskRun Executions; message acceptance does not imply agent completion
|
|
6535
|
+
* @throws ApiError
|
|
6536
|
+
*/
|
|
6537
|
+
listScheduledTaskRuns({ scheduledTaskId, }: {
|
|
6538
|
+
scheduledTaskId: string;
|
|
6539
|
+
}): CancelablePromise<Array<ScheduledTaskRun>>;
|
|
5882
6540
|
/**
|
|
5883
6541
|
* List organization service users
|
|
5884
6542
|
* @returns ServiceUser Service users, which do not consume seats
|
|
@@ -5963,8 +6621,8 @@ declare class DefaultService {
|
|
|
5963
6621
|
listSnapshots(): CancelablePromise<Array<Snapshot>>;
|
|
5964
6622
|
/**
|
|
5965
6623
|
* Delete snapshot
|
|
5966
|
-
*
|
|
5967
|
-
* @returns any Snapshot
|
|
6624
|
+
* Remove a snapshot and its public publication. Imported copies and managed sandbox references remain usable. Enterprise members need the snapshot delete permission. Ordinary organizations allow its creator or owner to delete it.
|
|
6625
|
+
* @returns any Snapshot reference removed; provider cleanup is deferred
|
|
5968
6626
|
* @throws ApiError
|
|
5969
6627
|
*/
|
|
5970
6628
|
deleteSnapshot({ snapshotUuid, }: {
|
|
@@ -5981,6 +6639,75 @@ declare class DefaultService {
|
|
|
5981
6639
|
getSnapshot({ snapshotUuid, }: {
|
|
5982
6640
|
snapshotUuid: string;
|
|
5983
6641
|
}): CancelablePromise<Snapshot>;
|
|
6642
|
+
/**
|
|
6643
|
+
* Unpublish an organization snapshot
|
|
6644
|
+
* @returns void
|
|
6645
|
+
* @throws ApiError
|
|
6646
|
+
*/
|
|
6647
|
+
unpublishSnapshot({ snapshotUuid, }: {
|
|
6648
|
+
snapshotUuid: string;
|
|
6649
|
+
}): CancelablePromise<void>;
|
|
6650
|
+
/**
|
|
6651
|
+
* Publish an organization snapshot
|
|
6652
|
+
* Publish a ready saved snapshot for other organizations to import. Enterprise members need the snapshot publish permission. Ordinary organizations allow its creator or owner to publish it.
|
|
6653
|
+
* @returns SnapshotPublication Publication ID (publishing again is idempotent)
|
|
6654
|
+
* @throws ApiError
|
|
6655
|
+
*/
|
|
6656
|
+
publishSnapshot({ snapshotUuid, }: {
|
|
6657
|
+
snapshotUuid: string;
|
|
6658
|
+
}): CancelablePromise<SnapshotPublication>;
|
|
6659
|
+
/**
|
|
6660
|
+
* Register additional exact SSO callback URLs
|
|
6661
|
+
* Requires active membership in the application's organization; enterprise permissions are enforced at the API layer. The application's https hostname with /auth/brazosd/callback is always registered. HTTPS is required except for loopback development callbacks.
|
|
6662
|
+
* @returns SSOAppConfiguration Configured callbacks
|
|
6663
|
+
* @throws ApiError
|
|
6664
|
+
*/
|
|
6665
|
+
configureSsoApp({ appId, requestBody, }: {
|
|
6666
|
+
appId: string;
|
|
6667
|
+
requestBody: SSOAppConfiguration;
|
|
6668
|
+
}): CancelablePromise<SSOAppConfiguration>;
|
|
6669
|
+
/**
|
|
6670
|
+
* Revoke a user grant using the application's service identity
|
|
6671
|
+
* @returns void
|
|
6672
|
+
* @throws ApiError
|
|
6673
|
+
*/
|
|
6674
|
+
revokeSsoGrant({ grantId, }: {
|
|
6675
|
+
grantId: string;
|
|
6676
|
+
}): CancelablePromise<void>;
|
|
6677
|
+
/**
|
|
6678
|
+
* Rotate an application's organization-user credentials
|
|
6679
|
+
* Authenticates the application's service user as well as its SSO refresh credential. Previous token retries with the same requestId return the same result for two minutes. SSO refresh credentials cannot be used by ordinary refresh endpoints.
|
|
6680
|
+
* @returns SSOTokens Rotated credentials
|
|
6681
|
+
* @throws ApiError
|
|
6682
|
+
*/
|
|
6683
|
+
refreshSsoTokens({ requestBody, }: {
|
|
6684
|
+
requestBody: RefreshSSOTokensRequest;
|
|
6685
|
+
}): CancelablePromise<SSOTokens>;
|
|
6686
|
+
/**
|
|
6687
|
+
* Begin an application login
|
|
6688
|
+
* Authenticate using the application's service user. The browser receives only a short-lived request ID; the service credential and PKCE verifier stay on the application server.
|
|
6689
|
+
* @returns SSORequest Login request
|
|
6690
|
+
* @throws ApiError
|
|
6691
|
+
*/
|
|
6692
|
+
createSsoRequest({ requestBody, }: {
|
|
6693
|
+
requestBody: CreateSSORequest;
|
|
6694
|
+
}): CancelablePromise<SSORequest>;
|
|
6695
|
+
/**
|
|
6696
|
+
* Preview a short-lived SSO request
|
|
6697
|
+
* @returns SSORequest Application and callback to display before authorization
|
|
6698
|
+
* @throws ApiError
|
|
6699
|
+
*/
|
|
6700
|
+
getSsoRequest({ requestId, }: {
|
|
6701
|
+
requestId: string;
|
|
6702
|
+
}): CancelablePromise<SSORequest>;
|
|
6703
|
+
/**
|
|
6704
|
+
* Exchange a single-use authorization code
|
|
6705
|
+
* @returns SSOTokens Organization credentials or an application-specific identity JWT
|
|
6706
|
+
* @throws ApiError
|
|
6707
|
+
*/
|
|
6708
|
+
exchangeSsoCode({ requestBody, }: {
|
|
6709
|
+
requestBody: ExchangeSSOCodeRequest;
|
|
6710
|
+
}): CancelablePromise<SSOTokens>;
|
|
5984
6711
|
/**
|
|
5985
6712
|
* Get current org merchant profile
|
|
5986
6713
|
* @returns TradeMerchant Merchant profile returned
|
|
@@ -6197,6 +6924,10 @@ type TaskAttributes = {
|
|
|
6197
6924
|
timeout?: string;
|
|
6198
6925
|
cronjob?: TaskCronjob;
|
|
6199
6926
|
retryPolicy?: TaskRetryPolicy;
|
|
6927
|
+
/**
|
|
6928
|
+
* Clear the unique tag atomically when the task becomes completed, failed, or cancelled. Pauses, retries, deferrals, and recurring cron runs retain the tag. Defaults to false.
|
|
6929
|
+
*/
|
|
6930
|
+
releaseUniqueTagOnTerminal?: boolean;
|
|
6200
6931
|
/**
|
|
6201
6932
|
* Worker claim and scheduling labels. A worker must have all task labels to claim the task.
|
|
6202
6933
|
*/
|
|
@@ -6382,9 +7113,11 @@ type App = {
|
|
|
6382
7113
|
desiredDeploymentId?: string;
|
|
6383
7114
|
deployment?: Deployment;
|
|
6384
7115
|
};
|
|
7116
|
+
type NodeMemoryGiB = 2;
|
|
7117
|
+
type NodeVCPU = 1;
|
|
6385
7118
|
type AppInput = {
|
|
6386
7119
|
/**
|
|
6387
|
-
* Existing service user in this organization. Omit to create one atomically with the function.
|
|
7120
|
+
* Existing active service user in this organization, regardless of its creator. Omit to create one atomically with the function.
|
|
6388
7121
|
*/
|
|
6389
7122
|
serviceUserId?: number;
|
|
6390
7123
|
name: string;
|
|
@@ -6395,8 +7128,8 @@ type AppInput = {
|
|
|
6395
7128
|
* Application listen port; 8081 is reserved for the runtime.
|
|
6396
7129
|
*/
|
|
6397
7130
|
port?: number;
|
|
6398
|
-
vcpu?:
|
|
6399
|
-
memoryGiB?:
|
|
7131
|
+
vcpu?: NodeVCPU;
|
|
7132
|
+
memoryGiB?: NodeMemoryGiB;
|
|
6400
7133
|
/**
|
|
6401
7134
|
* Deployment readiness only; exact status or inclusive range, e.g. 200-499.
|
|
6402
7135
|
*/
|
|
@@ -6411,6 +7144,36 @@ type AppInput = {
|
|
|
6411
7144
|
*/
|
|
6412
7145
|
environment?: Record<string, string>;
|
|
6413
7146
|
};
|
|
7147
|
+
type AppLogEntry = {
|
|
7148
|
+
/**
|
|
7149
|
+
* Unix timestamp in seconds.
|
|
7150
|
+
*/
|
|
7151
|
+
timestamp: number;
|
|
7152
|
+
instanceId: string;
|
|
7153
|
+
deploymentId: string;
|
|
7154
|
+
stream: "stdout" | "stderr";
|
|
7155
|
+
content: string;
|
|
7156
|
+
truncated: boolean;
|
|
7157
|
+
/**
|
|
7158
|
+
* Pass to logs/content to download the original message; expires with the cursor.
|
|
7159
|
+
*/
|
|
7160
|
+
downloadToken?: string;
|
|
7161
|
+
};
|
|
7162
|
+
type AppLogPage = {
|
|
7163
|
+
items: Array<AppLogEntry>;
|
|
7164
|
+
/**
|
|
7165
|
+
* Complete means this page's provider query completed, not that pagination ended.
|
|
7166
|
+
*/
|
|
7167
|
+
status: "complete" | "incomplete";
|
|
7168
|
+
/**
|
|
7169
|
+
* Continue with this cursor; a final continuation may return an empty page.
|
|
7170
|
+
*/
|
|
7171
|
+
nextCursor?: string;
|
|
7172
|
+
/**
|
|
7173
|
+
* Present for incomplete queries; retry the same position after this delay.
|
|
7174
|
+
*/
|
|
7175
|
+
retryAfterSeconds?: number;
|
|
7176
|
+
};
|
|
6414
7177
|
type AppSettings = {
|
|
6415
7178
|
enabled?: boolean;
|
|
6416
7179
|
runtime?: "nodejs";
|
|
@@ -6418,8 +7181,8 @@ type AppSettings = {
|
|
|
6418
7181
|
* Application listen port; 8081 is reserved for the runtime.
|
|
6419
7182
|
*/
|
|
6420
7183
|
port?: number;
|
|
6421
|
-
vcpu?:
|
|
6422
|
-
memoryGiB?:
|
|
7184
|
+
vcpu?: NodeVCPU;
|
|
7185
|
+
memoryGiB?: NodeMemoryGiB;
|
|
6423
7186
|
entrypoint?: string;
|
|
6424
7187
|
healthPath?: string;
|
|
6425
7188
|
/**
|
|
@@ -6450,6 +7213,28 @@ type AppSummary = {
|
|
|
6450
7213
|
desiredDeploymentId?: string;
|
|
6451
7214
|
deploymentState?: string;
|
|
6452
7215
|
};
|
|
7216
|
+
type DomainDNSRecord = {
|
|
7217
|
+
type: "CNAME" | "TXT";
|
|
7218
|
+
name: string;
|
|
7219
|
+
value: string;
|
|
7220
|
+
purpose: "routing" | "ownership";
|
|
7221
|
+
};
|
|
7222
|
+
type CustomDomain = {
|
|
7223
|
+
id: string;
|
|
7224
|
+
hostname: string;
|
|
7225
|
+
url: string;
|
|
7226
|
+
state: "pending_dns" | "issuing" | "ready" | "renewing" | "error";
|
|
7227
|
+
dnsRecords: Array<DomainDNSRecord>;
|
|
7228
|
+
createdAt: string;
|
|
7229
|
+
verifiedAt?: string;
|
|
7230
|
+
certificateExpiresAt?: string;
|
|
7231
|
+
renewAt?: string;
|
|
7232
|
+
nextAttemptAt: string;
|
|
7233
|
+
lastError: string;
|
|
7234
|
+
};
|
|
7235
|
+
type CustomDomainInput = {
|
|
7236
|
+
hostname: string;
|
|
7237
|
+
};
|
|
6453
7238
|
type Database = {
|
|
6454
7239
|
id: string;
|
|
6455
7240
|
name: string;
|
|
@@ -6492,18 +7277,57 @@ type Usage = {
|
|
|
6492
7277
|
day: string;
|
|
6493
7278
|
cpuMillicoreMicroseconds: number;
|
|
6494
7279
|
memoryMibMicroseconds: number;
|
|
7280
|
+
/**
|
|
7281
|
+
* Total compute and OSS request charges, in microyuan.
|
|
7282
|
+
*/
|
|
6495
7283
|
chargedAmountMicroyuans: number;
|
|
7284
|
+
/**
|
|
7285
|
+
* Observed billable OSS GET-class requests settled on this UTC day.
|
|
7286
|
+
*/
|
|
7287
|
+
ossGetRequests: number;
|
|
7288
|
+
/**
|
|
7289
|
+
* Observed billable OSS PUT-class requests settled on this UTC day, including LIST and DELETE.
|
|
7290
|
+
*/
|
|
7291
|
+
ossPutRequests: number;
|
|
7292
|
+
/**
|
|
7293
|
+
* OSS portion of chargedAmountMicroyuans.
|
|
7294
|
+
*/
|
|
7295
|
+
ossChargedAmountMicroyuans: number;
|
|
6496
7296
|
incomplete: boolean;
|
|
6497
7297
|
};
|
|
6498
7298
|
declare class DefaultService$2 {
|
|
6499
7299
|
readonly httpRequest: BaseHttpRequest;
|
|
6500
7300
|
constructor(httpRequest: BaseHttpRequest);
|
|
7301
|
+
/**
|
|
7302
|
+
* @returns CustomDomain Custom domains and DNS configuration
|
|
7303
|
+
* @throws ApiError
|
|
7304
|
+
*/
|
|
7305
|
+
listAppDomains({ id, }: {
|
|
7306
|
+
id: string;
|
|
7307
|
+
}): CancelablePromise<Array<CustomDomain>>;
|
|
7308
|
+
/**
|
|
7309
|
+
* @returns CustomDomain Domain reserved; configure both DNS records to begin verification
|
|
7310
|
+
* @throws ApiError
|
|
7311
|
+
*/
|
|
7312
|
+
createAppDomain({ id, requestBody, }: {
|
|
7313
|
+
id: string;
|
|
7314
|
+
requestBody: CustomDomainInput;
|
|
7315
|
+
}): CancelablePromise<CustomDomain>;
|
|
7316
|
+
/**
|
|
7317
|
+
* @returns void
|
|
7318
|
+
* @throws ApiError
|
|
7319
|
+
*/
|
|
7320
|
+
deleteAppDomain({ id, domainId, }: {
|
|
7321
|
+
id: string;
|
|
7322
|
+
domainId: string;
|
|
7323
|
+
}): CancelablePromise<void>;
|
|
6501
7324
|
/**
|
|
6502
7325
|
* @returns string Serverless API contract; paths are relative to /api/v1/serverless.
|
|
6503
7326
|
* @throws ApiError
|
|
6504
7327
|
*/
|
|
6505
7328
|
getServerlessOpenApi(): CancelablePromise<string>;
|
|
6506
7329
|
/**
|
|
7330
|
+
* Lists all undeleted functions in the caller's organization. Active organization members share management access; enterprise permissions belong to the API layer.
|
|
6507
7331
|
* @returns AppSummary Success
|
|
6508
7332
|
* @throws ApiError
|
|
6509
7333
|
*/
|
|
@@ -6537,6 +7361,49 @@ declare class DefaultService$2 {
|
|
|
6537
7361
|
deleteApp({ id, }: {
|
|
6538
7362
|
id: string;
|
|
6539
7363
|
}): CancelablePromise<any>;
|
|
7364
|
+
/**
|
|
7365
|
+
* Query cloud function stdout and stderr without waking the function
|
|
7366
|
+
* Queries retained container logs for current and stopped instances. Requires the same
|
|
7367
|
+
* active organization membership as getApp. Enterprise permissions belong to the API layer.
|
|
7368
|
+
* The interval is [from, to),
|
|
7369
|
+
* at most seven days, with to no later than the request time. Results are newest first.
|
|
7370
|
+
* Each response contains at most 100 entries and 1 MiB of JSON. Messages longer than
|
|
7371
|
+
* 32 KiB are previews with truncated=true and a short-lived downloadToken for the original.
|
|
7372
|
+
* Keep from, to and stream unchanged when following nextCursor. Cursors expire after
|
|
7373
|
+
* 15 minutes. An incomplete page contains no entries and a retry cursor at the same position.
|
|
7374
|
+
* Recent logs can arrive late: pagination is not a snapshot of SLS ingestion; refresh the
|
|
7375
|
+
* interval to include delayed logs. Retention is seven days, not archival storage.
|
|
7376
|
+
* Queries spanning more than 256 instances must use a narrower time range.
|
|
7377
|
+
*
|
|
7378
|
+
* @returns AppLogPage Bounded log page; inspect status before treating it as complete.
|
|
7379
|
+
* @throws ApiError
|
|
7380
|
+
*/
|
|
7381
|
+
listAppLogs({ id, from, to, limit, stream, cursor, }: {
|
|
7382
|
+
id: string;
|
|
7383
|
+
/**
|
|
7384
|
+
* Inclusive Unix timestamp in seconds.
|
|
7385
|
+
*/
|
|
7386
|
+
from: number;
|
|
7387
|
+
/**
|
|
7388
|
+
* Exclusive Unix timestamp in seconds; keep fixed while paging.
|
|
7389
|
+
*/
|
|
7390
|
+
to: number;
|
|
7391
|
+
limit?: number;
|
|
7392
|
+
stream?: "stdout" | "stderr";
|
|
7393
|
+
/**
|
|
7394
|
+
* Opaque nextCursor from the previous response.
|
|
7395
|
+
*/
|
|
7396
|
+
cursor?: string;
|
|
7397
|
+
}): CancelablePromise<AppLogPage>;
|
|
7398
|
+
/**
|
|
7399
|
+
* Download one original log message referenced by a truncated preview
|
|
7400
|
+
* @returns binary Original UTF-8 log message, served as an attachment.
|
|
7401
|
+
* @throws ApiError
|
|
7402
|
+
*/
|
|
7403
|
+
downloadAppLogContent({ id, token, }: {
|
|
7404
|
+
id: string;
|
|
7405
|
+
token: string;
|
|
7406
|
+
}): CancelablePromise<Response>;
|
|
6540
7407
|
/**
|
|
6541
7408
|
* @returns any Success
|
|
6542
7409
|
* @throws ApiError
|
|
@@ -6657,29 +7524,227 @@ interface Credentials$1 {
|
|
|
6657
7524
|
export type CredentialProvider = () => Credentials$1 | Promise<Credentials$1>;
|
|
6658
7525
|
/** Reads only the access credential. Refresh tokens belong to the runtime. */
|
|
6659
7526
|
export declare function fileCredentials(path?: string): CredentialProvider;
|
|
6660
|
-
export
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
7527
|
+
export interface ClientMCPCallContext {
|
|
7528
|
+
sessionId: string;
|
|
7529
|
+
runId: string;
|
|
7530
|
+
toolCallId: string;
|
|
7531
|
+
toolName: string;
|
|
7532
|
+
/** Stable across redelivery, refresh, reconnect and different browser tabs. */
|
|
7533
|
+
idempotencyKey: string;
|
|
7534
|
+
signal: AbortSignal;
|
|
7535
|
+
}
|
|
7536
|
+
export interface ClientMCPTool {
|
|
7537
|
+
description: string;
|
|
7538
|
+
inputSchema: Record<string, unknown>;
|
|
7539
|
+
execute: (args: Record<string, unknown>, context: ClientMCPCallContext) => ClientMCPToolResult | Promise<ClientMCPToolResult>;
|
|
7540
|
+
}
|
|
7541
|
+
export type ClientMCPTools = Record<string, ClientMCPTool>;
|
|
7542
|
+
/** WebMCP-style tool declaration. JSON values are converted to MCP results. */
|
|
7543
|
+
export interface ClientMCPWebTool {
|
|
7544
|
+
name: string;
|
|
7545
|
+
description: string;
|
|
7546
|
+
inputSchema?: Record<string, unknown>;
|
|
7547
|
+
execute: (args: Record<string, unknown>, context: ClientMCPCallContext) => unknown;
|
|
7548
|
+
}
|
|
7549
|
+
export interface ClientMCPRegistrationOptions {
|
|
7550
|
+
/** Aborting unregisters this tool and cancels its active callback signals. */
|
|
7551
|
+
signal?: AbortSignal;
|
|
7552
|
+
}
|
|
7553
|
+
export interface ClientMCPOptions {
|
|
7554
|
+
/** Installation namespace used by registerTool. Defaults to "browser". */
|
|
7555
|
+
namespace?: string;
|
|
7556
|
+
onError?: (error: Error) => void;
|
|
7557
|
+
/** Optional bounded receipt cache, e.g. window.localStorage. Never stores tool arguments or results. */
|
|
7558
|
+
storage?: Pick<Storage, "getItem" | "setItem">;
|
|
7559
|
+
webSocketFactory?: (url: string) => WebSocket;
|
|
7560
|
+
signal?: AbortSignal;
|
|
7561
|
+
}
|
|
7562
|
+
/** One bridge per session in a client. Cross-client exactly-once side effects require business idempotency. */
|
|
7563
|
+
export declare class ClientMCPBridge {
|
|
7564
|
+
private readonly api;
|
|
7565
|
+
readonly sessionId: string;
|
|
7566
|
+
private readonly socketURL;
|
|
7567
|
+
private readonly options;
|
|
7568
|
+
private readonly controller;
|
|
7569
|
+
private readonly signal;
|
|
7570
|
+
private readonly callbacks;
|
|
7571
|
+
private readonly installations;
|
|
7572
|
+
private readonly definitions;
|
|
7573
|
+
private readonly registrationCleanups;
|
|
7574
|
+
private mutation;
|
|
7575
|
+
private readonly pending;
|
|
7576
|
+
private readonly receipts;
|
|
7577
|
+
private readonly storageKey;
|
|
7578
|
+
private socket?;
|
|
7579
|
+
private connection?;
|
|
7580
|
+
private online;
|
|
7581
|
+
private cursor;
|
|
7582
|
+
private buffer;
|
|
7583
|
+
private syncing?;
|
|
7584
|
+
private catchUp;
|
|
7585
|
+
constructor(api: ApiClient["default"], sessionId: string, socketURL: () => Promise<string>, options?: ClientMCPOptions);
|
|
7586
|
+
/** Registers one named tool in this bridge's namespace, following WebMCP's declaration shape. */
|
|
7587
|
+
registerTool(tool: ClientMCPWebTool, options?: ClientMCPRegistrationOptions): Promise<void>;
|
|
7588
|
+
install(namespace: string, tools: ClientMCPTools): Promise<ClientMCPInstallation>;
|
|
7589
|
+
private installTools;
|
|
7590
|
+
uninstall(namespace: string): Promise<void>;
|
|
7591
|
+
private uninstallTools;
|
|
7592
|
+
private mutate;
|
|
7593
|
+
/** Resolves after subscription ACK and canonical history catch-up. Reconnects automatically thereafter. */
|
|
7594
|
+
connect(): Promise<void>;
|
|
7595
|
+
/** Stops communication and aborts callback signals. Installations remain for refresh/reconnect. */
|
|
7596
|
+
close(): void;
|
|
7597
|
+
private report;
|
|
7598
|
+
private run;
|
|
7599
|
+
private openSocket;
|
|
7600
|
+
private synchronize;
|
|
7601
|
+
private loadHistory;
|
|
7602
|
+
private consume;
|
|
7603
|
+
private complete;
|
|
7604
|
+
private dispatch;
|
|
7605
|
+
private execute;
|
|
6664
7606
|
}
|
|
6665
7607
|
export interface ClientOptions {
|
|
6666
|
-
/** Main API URL including /api/v1.
|
|
7608
|
+
/** Main API URL including /api/v1. */
|
|
6667
7609
|
apiUrl?: string;
|
|
6668
7610
|
credentials?: CredentialProvider;
|
|
7611
|
+
/** Node entry only: defaults to /run/brazosd/identity/credentials.json. */
|
|
6669
7612
|
credentialsFile?: string;
|
|
6670
|
-
/** Extra HTTP headers, for example Range for a download. */
|
|
6671
7613
|
headers?: HeadersInit;
|
|
6672
7614
|
signal?: AbortSignal;
|
|
6673
7615
|
}
|
|
6674
|
-
|
|
7616
|
+
declare class BrazosdClient {
|
|
6675
7617
|
readonly api: ApiClient["default"];
|
|
6676
7618
|
readonly anclax: AnclaxClient["default"];
|
|
6677
7619
|
readonly serverless: ServerlessClient["default"];
|
|
7620
|
+
private readonly socketURL;
|
|
7621
|
+
private readonly signal?;
|
|
7622
|
+
constructor(options?: ClientOptions);
|
|
7623
|
+
clientMCP(sessionId: string, options?: ClientMCPOptions): ClientMCPBridge;
|
|
7624
|
+
}
|
|
7625
|
+
export interface SSOIdentity {
|
|
7626
|
+
iss: string;
|
|
7627
|
+
aud: string;
|
|
7628
|
+
sub: string;
|
|
7629
|
+
account_id: number;
|
|
7630
|
+
org_id: number;
|
|
7631
|
+
user_id: number;
|
|
7632
|
+
iat: number;
|
|
7633
|
+
exp: number;
|
|
7634
|
+
token_use: "sso_identity";
|
|
7635
|
+
}
|
|
7636
|
+
export interface SSOJWK extends JsonWebKey$1 {
|
|
7637
|
+
kid: string;
|
|
7638
|
+
exp: number;
|
|
7639
|
+
}
|
|
7640
|
+
export interface CachedSSOKeys {
|
|
7641
|
+
keys: SSOJWK[];
|
|
7642
|
+
freshUntil: number;
|
|
7643
|
+
}
|
|
7644
|
+
/** Store only public keys here; an application's user/session store is separate. */
|
|
7645
|
+
export interface SSOKeyCache {
|
|
7646
|
+
get(issuer: string): Promise<CachedSSOKeys | undefined>;
|
|
7647
|
+
set(issuer: string, keys: CachedSSOKeys): Promise<void>;
|
|
7648
|
+
}
|
|
7649
|
+
/** Persistent SQLite cache. Supply a shared cache adapter when using cloud SQLite. */
|
|
7650
|
+
export declare class SQLiteSSOKeyCache implements SSOKeyCache {
|
|
7651
|
+
readonly filename: string;
|
|
7652
|
+
private database?;
|
|
7653
|
+
constructor(filename: string);
|
|
7654
|
+
private db;
|
|
7655
|
+
get(issuer: string): Promise<CachedSSOKeys | undefined>;
|
|
7656
|
+
set(issuer: string, keys: CachedSSOKeys): Promise<void>;
|
|
7657
|
+
close(): Promise<void>;
|
|
7658
|
+
}
|
|
7659
|
+
export declare class SSOIdentityVerifier {
|
|
7660
|
+
private readonly options;
|
|
7661
|
+
private memory?;
|
|
7662
|
+
private loading?;
|
|
7663
|
+
private fetching?;
|
|
7664
|
+
private lastUnknownRefresh;
|
|
7665
|
+
constructor(options: {
|
|
7666
|
+
issuer: string;
|
|
7667
|
+
audience: string;
|
|
7668
|
+
jwksUrl: string;
|
|
7669
|
+
cache: SSOKeyCache;
|
|
7670
|
+
});
|
|
7671
|
+
private download;
|
|
7672
|
+
private cacheNamespace;
|
|
7673
|
+
private keys;
|
|
7674
|
+
verify(token: string): Promise<SSOIdentity>;
|
|
7675
|
+
}
|
|
7676
|
+
export type SSOUserTokens = SSOTokens & {
|
|
7677
|
+
mode: "org-user";
|
|
7678
|
+
accessToken: string;
|
|
7679
|
+
refreshToken: string;
|
|
7680
|
+
grantId: string;
|
|
7681
|
+
refreshExpiresAt: string;
|
|
7682
|
+
};
|
|
7683
|
+
export type SSOIdentityTokens = SSOTokens & {
|
|
7684
|
+
mode: "identity";
|
|
7685
|
+
identityToken: string;
|
|
7686
|
+
};
|
|
7687
|
+
export interface SSOOptions extends Pick<ClientOptions, "apiUrl" | "credentials" | "credentialsFile"> {
|
|
7688
|
+
appId: string;
|
|
7689
|
+
redirectUri: string;
|
|
7690
|
+
/** 32 random bytes encoded as base64url. Keep secret and stable across instances. */
|
|
7691
|
+
loginSecret: string;
|
|
7692
|
+
/** Public static frontend origin, default https://brazosd.com. */
|
|
7693
|
+
webUrl?: string;
|
|
7694
|
+
issuer?: string;
|
|
7695
|
+
jwksUrl?: string;
|
|
7696
|
+
/** Defaults to ~/.cache/brazosd-sso/jwks.sqlite, plus memory. */
|
|
7697
|
+
keyCache?: SSOKeyCache;
|
|
7698
|
+
}
|
|
7699
|
+
/** The service identity authenticates the application; never use it as a user fallback. */
|
|
7700
|
+
export declare class BrazosdSSO {
|
|
7701
|
+
private readonly options;
|
|
7702
|
+
private readonly service;
|
|
7703
|
+
private readonly secret;
|
|
7704
|
+
private readonly cookiePrefix;
|
|
7705
|
+
private readonly secure;
|
|
7706
|
+
private readonly verifier;
|
|
7707
|
+
private readonly refreshing;
|
|
7708
|
+
constructor(options: SSOOptions);
|
|
7709
|
+
private cookie;
|
|
7710
|
+
private aad;
|
|
7711
|
+
private seal;
|
|
7712
|
+
private open;
|
|
7713
|
+
/** Send setCookie and redirect to authorizationUrl. No service credential enters the URL. */
|
|
7714
|
+
beginLogin(mode: SSOMode): Promise<{
|
|
7715
|
+
authorizationUrl: string;
|
|
7716
|
+
setCookie: string;
|
|
7717
|
+
}>;
|
|
7718
|
+
/** Call only on the registered callback. Persist returned tokens in the application's server-side session store. */
|
|
7719
|
+
completeLogin(callbackUrl: string, cookieHeader: string): Promise<{
|
|
7720
|
+
tokens: SSOUserTokens | SSOIdentityTokens;
|
|
7721
|
+
identity?: SSOIdentity;
|
|
7722
|
+
clearCookie: string;
|
|
7723
|
+
}>;
|
|
7724
|
+
verifyIdentityToken(token: string): Promise<SSOIdentity>;
|
|
7725
|
+
/** Concurrent instances derive the same retry ID from the same refresh credential. */
|
|
7726
|
+
refresh(tokens: SSOUserTokens): Promise<SSOUserTokens>;
|
|
7727
|
+
/** saveTokens must compare-and-swap using expectedRefreshToken when sessions are shared. */
|
|
7728
|
+
userClient(session: {
|
|
7729
|
+
getTokens(): Promise<SSOUserTokens>;
|
|
7730
|
+
saveTokens(tokens: SSOUserTokens, expectedRefreshToken: string): Promise<void>;
|
|
7731
|
+
}): BrazosdClient$1;
|
|
7732
|
+
/** Also delete the application's own session/cookie after revoking this grant. */
|
|
7733
|
+
revoke(tokens: SSOUserTokens): Promise<void>;
|
|
7734
|
+
}
|
|
7735
|
+
export declare function createSSO(options: SSOOptions): BrazosdSSO;
|
|
7736
|
+
export declare class BrazosdError extends Error {
|
|
7737
|
+
readonly status: number;
|
|
7738
|
+
readonly body: string;
|
|
7739
|
+
constructor(status: number, message: string, body: string);
|
|
7740
|
+
}
|
|
7741
|
+
declare class BrazosdClient$1 extends BrazosdClient {
|
|
6678
7742
|
constructor(options?: ClientOptions);
|
|
6679
7743
|
}
|
|
6680
|
-
export declare function createClient(options?: ClientOptions): BrazosdClient;
|
|
7744
|
+
export declare function createClient(options?: ClientOptions): BrazosdClient$1;
|
|
6681
7745
|
|
|
6682
7746
|
export {
|
|
7747
|
+
BrazosdClient$1 as BrazosdClient,
|
|
6683
7748
|
Credentials$1 as Credentials,
|
|
6684
7749
|
};
|
|
6685
7750
|
|