@inferencesh/sdk 0.6.29 → 0.6.47
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 +35 -0
- package/dist/agent/actions.js +72 -13
- package/dist/agent/api.d.ts +30 -51
- package/dist/agent/api.js +129 -154
- package/dist/agent/provider.js +18 -1
- package/dist/agent/reducer.js +50 -11
- package/dist/agent/types.d.ts +34 -1
- package/dist/api/agents.d.ts +23 -14
- package/dist/api/agents.js +22 -4
- package/dist/api/api-keys.d.ts +4 -3
- package/dist/api/apps.d.ts +16 -15
- package/dist/api/chats.d.ts +14 -9
- package/dist/api/chats.js +6 -0
- package/dist/api/engines.d.ts +14 -13
- package/dist/api/files.d.ts +4 -3
- package/dist/api/files.js +2 -2
- package/dist/api/flow-runs.d.ts +8 -7
- package/dist/api/flows.d.ts +11 -10
- package/dist/api/integrations.d.ts +9 -8
- package/dist/api/integrations.js +8 -8
- package/dist/api/knowledge.d.ts +25 -24
- package/dist/api/mcp-servers.d.ts +10 -9
- package/dist/api/projects.d.ts +6 -5
- package/dist/api/search.d.ts +3 -2
- package/dist/api/secrets.d.ts +6 -5
- package/dist/api/sessions.d.ts +5 -4
- package/dist/api/sessions.js +2 -3
- package/dist/api/tasks.d.ts +14 -11
- package/dist/api/tasks.js +10 -4
- package/dist/api/teams.d.ts +16 -17
- package/dist/delta.d.ts +15 -0
- package/dist/delta.js +84 -0
- package/dist/hook-builder.d.ts +23 -0
- package/dist/hook-builder.js +50 -0
- package/dist/http/client.d.ts +9 -1
- package/dist/http/client.js +12 -3
- package/dist/http/response.d.ts +9 -0
- package/dist/http/response.js +1 -0
- package/dist/http/stream.d.ts +1 -0
- package/dist/http/stream.js +8 -3
- package/dist/http/streamable.d.ts +3 -1
- package/dist/http/streamable.js +10 -1
- package/dist/index.d.ts +11 -5
- package/dist/index.js +6 -1
- package/dist/proxy/index.d.ts +2 -0
- package/dist/proxy/index.js +9 -0
- package/dist/tool-builder.d.ts +2 -0
- package/dist/tool-builder.js +5 -0
- package/dist/types.d.ts +1204 -162
- package/dist/types.js +256 -30
- package/dist/utils.d.ts +13 -0
- package/dist/utils.js +43 -3
- package/package.json +8 -5
package/dist/types.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export interface InternalToolsConfig {
|
|
|
8
8
|
finish?: boolean;
|
|
9
9
|
skills?: boolean;
|
|
10
10
|
host_context?: boolean;
|
|
11
|
+
meta?: boolean;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* AgentTool represents a unified tool that can be used by an agent
|
|
@@ -198,6 +199,7 @@ export interface AgentVersionDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
198
199
|
skills: SkillConfig[];
|
|
199
200
|
context?: ContextField[];
|
|
200
201
|
internal_tools?: InternalToolsConfig;
|
|
202
|
+
hooks?: LifecycleHookConfig[];
|
|
201
203
|
output_schema?: any;
|
|
202
204
|
}
|
|
203
205
|
/**
|
|
@@ -229,6 +231,7 @@ export interface AgentConfigInput {
|
|
|
229
231
|
skills?: SkillConfig[];
|
|
230
232
|
context?: ContextField[];
|
|
231
233
|
internal_tools?: InternalToolsConfig;
|
|
234
|
+
hooks?: LifecycleHookConfig[];
|
|
232
235
|
output_schema?: any;
|
|
233
236
|
}
|
|
234
237
|
/**
|
|
@@ -249,9 +252,11 @@ export interface AgentRunDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
249
252
|
user_message_id?: string;
|
|
250
253
|
state: AgentRunState;
|
|
251
254
|
error?: string;
|
|
255
|
+
output?: any;
|
|
252
256
|
interrupt_reason?: InterruptReason;
|
|
253
257
|
interrupt_tool_id?: string;
|
|
254
258
|
interrupt_meta?: any;
|
|
259
|
+
tool_invocation_id?: string;
|
|
255
260
|
trigger_id?: string;
|
|
256
261
|
metadata?: any;
|
|
257
262
|
}
|
|
@@ -269,6 +274,19 @@ export interface APIError {
|
|
|
269
274
|
[key: string]: any;
|
|
270
275
|
};
|
|
271
276
|
}
|
|
277
|
+
/**
|
|
278
|
+
* ResponseMessage carries a non-error notice alongside a successful response.
|
|
279
|
+
* Inspired by GraphQL's coexisting data+errors pattern, but for actionable
|
|
280
|
+
* messages (warnings, info) rather than partial failures.
|
|
281
|
+
*/
|
|
282
|
+
export interface ResponseMessage {
|
|
283
|
+
level: string;
|
|
284
|
+
code: string;
|
|
285
|
+
message: string;
|
|
286
|
+
meta?: {
|
|
287
|
+
[key: string]: any;
|
|
288
|
+
};
|
|
289
|
+
}
|
|
272
290
|
/**
|
|
273
291
|
* ApiAppRunRequest is the request body for /apps/run endpoint.
|
|
274
292
|
*/
|
|
@@ -297,7 +315,7 @@ export interface ApiAgentRunRequest {
|
|
|
297
315
|
agent?: string;
|
|
298
316
|
agent_config?: AgentConfigInput;
|
|
299
317
|
agent_name?: string;
|
|
300
|
-
input:
|
|
318
|
+
input: LLMInput;
|
|
301
319
|
context?: {
|
|
302
320
|
[key: string]: string;
|
|
303
321
|
};
|
|
@@ -312,7 +330,7 @@ export interface CreateAgentMessageRequest {
|
|
|
312
330
|
agent_version_id?: string;
|
|
313
331
|
agent?: string;
|
|
314
332
|
tool_call_id?: string;
|
|
315
|
-
input:
|
|
333
|
+
input: LLMInput;
|
|
316
334
|
integration_context?: IntegrationContext;
|
|
317
335
|
agent_config?: AgentConfigInput;
|
|
318
336
|
agent_name?: string;
|
|
@@ -414,7 +432,10 @@ export interface CheckoutCreateRequest {
|
|
|
414
432
|
export interface AuthResponse {
|
|
415
433
|
user?: UserDTO;
|
|
416
434
|
session_id: string;
|
|
435
|
+
is_new?: boolean;
|
|
417
436
|
otp_required?: boolean;
|
|
437
|
+
otp_method?: string;
|
|
438
|
+
challenge_token?: string;
|
|
418
439
|
redirect_to?: string;
|
|
419
440
|
provider?: string;
|
|
420
441
|
}
|
|
@@ -468,6 +489,7 @@ export interface SecretCreateRequest {
|
|
|
468
489
|
key: string;
|
|
469
490
|
value: string;
|
|
470
491
|
description?: string;
|
|
492
|
+
provider?: string;
|
|
471
493
|
}
|
|
472
494
|
export interface SecretUpdateRequest {
|
|
473
495
|
value: string;
|
|
@@ -776,6 +798,16 @@ export declare const ScopeApiKeysRead: Scope;
|
|
|
776
798
|
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
777
799
|
*/
|
|
778
800
|
export declare const ScopeApiKeysWrite: Scope;
|
|
801
|
+
/**
|
|
802
|
+
* Action-level scopes for Knowledge (includes skills)
|
|
803
|
+
*/
|
|
804
|
+
export declare const ScopeKnowledgeRead: Scope;
|
|
805
|
+
/**
|
|
806
|
+
* API Key Scopes - hierarchical permission system.
|
|
807
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
808
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
809
|
+
*/
|
|
810
|
+
export declare const ScopeKnowledgeWrite: Scope;
|
|
779
811
|
/**
|
|
780
812
|
* Action-level scopes for User profile
|
|
781
813
|
*/
|
|
@@ -813,6 +845,7 @@ export declare const ScopeGroupSecrets: ScopeGroup;
|
|
|
813
845
|
export declare const ScopeGroupIntegrations: ScopeGroup;
|
|
814
846
|
export declare const ScopeGroupEngines: ScopeGroup;
|
|
815
847
|
export declare const ScopeGroupApiKeys: ScopeGroup;
|
|
848
|
+
export declare const ScopeGroupKnowledge: ScopeGroup;
|
|
816
849
|
export declare const ScopeGroupUser: ScopeGroup;
|
|
817
850
|
export declare const ScopeGroupSettings: ScopeGroup;
|
|
818
851
|
/**
|
|
@@ -1062,6 +1095,7 @@ export interface PublicAppStoreDTO {
|
|
|
1062
1095
|
rank: number;
|
|
1063
1096
|
has_approved_version: boolean;
|
|
1064
1097
|
page_id?: string;
|
|
1098
|
+
pricing_description?: string;
|
|
1065
1099
|
}
|
|
1066
1100
|
/**
|
|
1067
1101
|
* AuthSessionDTO is a safe representation of AuthSession for API responses.
|
|
@@ -1132,6 +1166,53 @@ export interface AvailabilityResponse {
|
|
|
1132
1166
|
*/
|
|
1133
1167
|
reason?: string;
|
|
1134
1168
|
}
|
|
1169
|
+
/**
|
|
1170
|
+
* BountyProgramDTO is the API representation of a bounty program.
|
|
1171
|
+
*/
|
|
1172
|
+
export interface BountyProgramDTO extends BaseModelDTO, PermissionModelDTO {
|
|
1173
|
+
name: string;
|
|
1174
|
+
description: string;
|
|
1175
|
+
amount_microcents: number;
|
|
1176
|
+
grant_type: string;
|
|
1177
|
+
expiry_days: number;
|
|
1178
|
+
max_per_user: number;
|
|
1179
|
+
max_per_day: number;
|
|
1180
|
+
proof_type: string;
|
|
1181
|
+
proof_min_length: number;
|
|
1182
|
+
status: string;
|
|
1183
|
+
notice_text: string;
|
|
1184
|
+
notice_cooldown_hours: number;
|
|
1185
|
+
notice_priority: number;
|
|
1186
|
+
starts_at?: string;
|
|
1187
|
+
ends_at?: string;
|
|
1188
|
+
}
|
|
1189
|
+
/**
|
|
1190
|
+
* BountySubmissionDTO is the API representation of a bounty claim.
|
|
1191
|
+
*/
|
|
1192
|
+
export interface BountySubmissionDTO extends BaseModelDTO, PermissionModelDTO {
|
|
1193
|
+
bounty_id: string;
|
|
1194
|
+
resource_id?: string;
|
|
1195
|
+
proof_id: string;
|
|
1196
|
+
proof_ref: string;
|
|
1197
|
+
agent?: string;
|
|
1198
|
+
source?: string;
|
|
1199
|
+
}
|
|
1200
|
+
/**
|
|
1201
|
+
* SubmitBountyRequest is used to claim a bounty reward.
|
|
1202
|
+
*/
|
|
1203
|
+
export interface SubmitBountyRequest {
|
|
1204
|
+
bounty_id: string;
|
|
1205
|
+
proof_id: string;
|
|
1206
|
+
agent?: string;
|
|
1207
|
+
source?: string;
|
|
1208
|
+
}
|
|
1209
|
+
/**
|
|
1210
|
+
* SubmitBountyResponse is returned when claiming a bounty.
|
|
1211
|
+
*/
|
|
1212
|
+
export interface SubmitBountyResponse {
|
|
1213
|
+
submission: BountySubmissionDTO;
|
|
1214
|
+
granted_amount?: number;
|
|
1215
|
+
}
|
|
1135
1216
|
/**
|
|
1136
1217
|
* ChatDTO for API responses
|
|
1137
1218
|
*/
|
|
@@ -1153,6 +1234,7 @@ export interface ChatDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
1153
1234
|
chat_messages: ChatMessageDTO[];
|
|
1154
1235
|
agent_data: ChatData;
|
|
1155
1236
|
active_run?: AgentRunDTO;
|
|
1237
|
+
pending_interrupts?: InterruptDTO[];
|
|
1156
1238
|
}
|
|
1157
1239
|
/**
|
|
1158
1240
|
* ChatMessageDTO for API responses
|
|
@@ -1221,6 +1303,12 @@ export interface CursorListResponse<T extends any> {
|
|
|
1221
1303
|
items_per_page: number;
|
|
1222
1304
|
total_items: number;
|
|
1223
1305
|
}
|
|
1306
|
+
/**
|
|
1307
|
+
* CountResponse is the response for count endpoints.
|
|
1308
|
+
*/
|
|
1309
|
+
export interface CountResponse {
|
|
1310
|
+
count: number;
|
|
1311
|
+
}
|
|
1224
1312
|
/**
|
|
1225
1313
|
* EngineConfig holds engine configuration (no gorm tags).
|
|
1226
1314
|
*/
|
|
@@ -1418,6 +1506,15 @@ export interface FlowNodeData {
|
|
|
1418
1506
|
additional?: any;
|
|
1419
1507
|
task?: TaskDTO;
|
|
1420
1508
|
task_id?: string;
|
|
1509
|
+
/**
|
|
1510
|
+
* Primitive node configs (legacy, kept for backward compat)
|
|
1511
|
+
*/
|
|
1512
|
+
gate_condition?: GateCondition;
|
|
1513
|
+
selector_config?: SelectorConfig;
|
|
1514
|
+
/**
|
|
1515
|
+
* Unified utility node config (replaces gate_condition/selector_config)
|
|
1516
|
+
*/
|
|
1517
|
+
utility?: UtilityConfig;
|
|
1421
1518
|
}
|
|
1422
1519
|
/**
|
|
1423
1520
|
* FlowNodeDataMap maps node IDs to their data
|
|
@@ -1429,6 +1526,7 @@ export type FlowNodeDataMap = {
|
|
|
1429
1526
|
* FlowDTO for API responses
|
|
1430
1527
|
*/
|
|
1431
1528
|
export interface FlowDTO extends BaseModelDTO, PermissionModelDTO {
|
|
1529
|
+
namespace: string;
|
|
1432
1530
|
name: string;
|
|
1433
1531
|
description: string;
|
|
1434
1532
|
card_image: string;
|
|
@@ -1487,6 +1585,190 @@ export interface FlowRunDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
1487
1585
|
node_tasks: {
|
|
1488
1586
|
[key: string]: NodeTaskDTO | undefined;
|
|
1489
1587
|
};
|
|
1588
|
+
node_statuses?: {
|
|
1589
|
+
[key: string]: GraphNodeStatus;
|
|
1590
|
+
};
|
|
1591
|
+
node_outputs: any;
|
|
1592
|
+
}
|
|
1593
|
+
/**
|
|
1594
|
+
* FlowActionType is the string type for action constants.
|
|
1595
|
+
*/
|
|
1596
|
+
export type FlowActionType = string;
|
|
1597
|
+
/**
|
|
1598
|
+
* Flow graph action type constants.
|
|
1599
|
+
*/
|
|
1600
|
+
export declare const ActionNodeAdd: FlowActionType;
|
|
1601
|
+
/**
|
|
1602
|
+
* Flow graph action type constants.
|
|
1603
|
+
*/
|
|
1604
|
+
export declare const ActionNodeRemove: FlowActionType;
|
|
1605
|
+
/**
|
|
1606
|
+
* Flow graph action type constants.
|
|
1607
|
+
*/
|
|
1608
|
+
export declare const ActionNodeMove: FlowActionType;
|
|
1609
|
+
/**
|
|
1610
|
+
* Flow graph action type constants.
|
|
1611
|
+
*/
|
|
1612
|
+
export declare const ActionNodeMoveMany: FlowActionType;
|
|
1613
|
+
/**
|
|
1614
|
+
* Flow graph action type constants.
|
|
1615
|
+
*/
|
|
1616
|
+
export declare const ActionNodeDuplicate: FlowActionType;
|
|
1617
|
+
/**
|
|
1618
|
+
* Flow graph action type constants.
|
|
1619
|
+
*/
|
|
1620
|
+
export declare const ActionNodeRename: FlowActionType;
|
|
1621
|
+
/**
|
|
1622
|
+
* Flow graph action type constants.
|
|
1623
|
+
*/
|
|
1624
|
+
export declare const ActionNodeSetApp: FlowActionType;
|
|
1625
|
+
/**
|
|
1626
|
+
* Flow graph action type constants.
|
|
1627
|
+
*/
|
|
1628
|
+
export declare const ActionNodeUpdate: FlowActionType;
|
|
1629
|
+
/**
|
|
1630
|
+
* Flow graph action type constants.
|
|
1631
|
+
*/
|
|
1632
|
+
export declare const ActionNodeSetInput: FlowActionType;
|
|
1633
|
+
/**
|
|
1634
|
+
* Flow graph action type constants.
|
|
1635
|
+
*/
|
|
1636
|
+
export declare const ActionNodeClearInput: FlowActionType;
|
|
1637
|
+
/**
|
|
1638
|
+
* Flow graph action type constants.
|
|
1639
|
+
*/
|
|
1640
|
+
export declare const ActionEdgeAdd: FlowActionType;
|
|
1641
|
+
/**
|
|
1642
|
+
* Flow graph action type constants.
|
|
1643
|
+
*/
|
|
1644
|
+
export declare const ActionEdgeRemove: FlowActionType;
|
|
1645
|
+
/**
|
|
1646
|
+
* Flow graph action type constants.
|
|
1647
|
+
*/
|
|
1648
|
+
export declare const ActionFlowSetInputSchema: FlowActionType;
|
|
1649
|
+
/**
|
|
1650
|
+
* Flow graph action type constants.
|
|
1651
|
+
*/
|
|
1652
|
+
export declare const ActionFlowSetOutputSchema: FlowActionType;
|
|
1653
|
+
/**
|
|
1654
|
+
* Flow graph action type constants.
|
|
1655
|
+
*/
|
|
1656
|
+
export declare const ActionFlowSetOutputMapping: FlowActionType;
|
|
1657
|
+
/**
|
|
1658
|
+
* Flow graph action type constants.
|
|
1659
|
+
*/
|
|
1660
|
+
export declare const ActionFlowRemoveOutputMapping: FlowActionType;
|
|
1661
|
+
/**
|
|
1662
|
+
* Flow graph action type constants.
|
|
1663
|
+
*/
|
|
1664
|
+
export declare const ActionFlowRenameOutputField: FlowActionType;
|
|
1665
|
+
/**
|
|
1666
|
+
* Flow graph action type constants.
|
|
1667
|
+
*/
|
|
1668
|
+
export declare const ActionUndo: FlowActionType;
|
|
1669
|
+
/**
|
|
1670
|
+
* Flow graph action type constants.
|
|
1671
|
+
*/
|
|
1672
|
+
export declare const ActionRedo: FlowActionType;
|
|
1673
|
+
/**
|
|
1674
|
+
* FlowAction represents a single graph mutation.
|
|
1675
|
+
*/
|
|
1676
|
+
export interface FlowAction {
|
|
1677
|
+
type: FlowActionType;
|
|
1678
|
+
payload: any;
|
|
1679
|
+
}
|
|
1680
|
+
/**
|
|
1681
|
+
* FlowActionsRequest is the request body for POST /flows/{id}/actions.
|
|
1682
|
+
*/
|
|
1683
|
+
export interface FlowActionsRequest {
|
|
1684
|
+
actions: FlowAction[];
|
|
1685
|
+
}
|
|
1686
|
+
/**
|
|
1687
|
+
* FlowActionsResponse is the response from the actions endpoint.
|
|
1688
|
+
*/
|
|
1689
|
+
export interface FlowActionsResponse {
|
|
1690
|
+
version: number;
|
|
1691
|
+
actions: FlowAction[];
|
|
1692
|
+
errors?: FlowActionError[];
|
|
1693
|
+
}
|
|
1694
|
+
/**
|
|
1695
|
+
* FlowActionError is an error returned from an action.
|
|
1696
|
+
*/
|
|
1697
|
+
export interface FlowActionError {
|
|
1698
|
+
type?: string;
|
|
1699
|
+
message: string;
|
|
1700
|
+
}
|
|
1701
|
+
export interface AddNodePayload {
|
|
1702
|
+
id: string;
|
|
1703
|
+
type: string;
|
|
1704
|
+
position: FlowNodePosition;
|
|
1705
|
+
data: FlowNodeData;
|
|
1706
|
+
}
|
|
1707
|
+
export interface RemoveNodePayload {
|
|
1708
|
+
id: string;
|
|
1709
|
+
}
|
|
1710
|
+
export interface MoveNodePayload {
|
|
1711
|
+
id: string;
|
|
1712
|
+
position: FlowNodePosition;
|
|
1713
|
+
}
|
|
1714
|
+
export interface MoveNodesPayload {
|
|
1715
|
+
positions: {
|
|
1716
|
+
[key: string]: FlowNodePosition;
|
|
1717
|
+
};
|
|
1718
|
+
}
|
|
1719
|
+
export interface DuplicateNodePayload {
|
|
1720
|
+
source_id: string;
|
|
1721
|
+
new_id: string;
|
|
1722
|
+
offset: FlowNodePosition;
|
|
1723
|
+
}
|
|
1724
|
+
export interface RenameNodePayload {
|
|
1725
|
+
old_id: string;
|
|
1726
|
+
new_id: string;
|
|
1727
|
+
}
|
|
1728
|
+
export interface SetNodeAppPayload {
|
|
1729
|
+
node_id: string;
|
|
1730
|
+
app_id: string;
|
|
1731
|
+
app_version_id: string;
|
|
1732
|
+
function: string;
|
|
1733
|
+
}
|
|
1734
|
+
export interface UpdateNodeDataPayload {
|
|
1735
|
+
node_id: string;
|
|
1736
|
+
patch: {
|
|
1737
|
+
[key: string]: any;
|
|
1738
|
+
};
|
|
1739
|
+
}
|
|
1740
|
+
export interface SetInputPayload {
|
|
1741
|
+
node_id: string;
|
|
1742
|
+
input_key: string;
|
|
1743
|
+
input: FlowRunInput;
|
|
1744
|
+
}
|
|
1745
|
+
export interface ClearInputPayload {
|
|
1746
|
+
node_id: string;
|
|
1747
|
+
input_key: string;
|
|
1748
|
+
}
|
|
1749
|
+
export interface AddEdgePayload {
|
|
1750
|
+
id: string;
|
|
1751
|
+
source: string;
|
|
1752
|
+
target: string;
|
|
1753
|
+
source_handle?: string;
|
|
1754
|
+
target_handle?: string;
|
|
1755
|
+
}
|
|
1756
|
+
export interface RemoveEdgePayload {
|
|
1757
|
+
id: string;
|
|
1758
|
+
}
|
|
1759
|
+
export interface SetSchemaPayload {
|
|
1760
|
+
schema: any;
|
|
1761
|
+
}
|
|
1762
|
+
export interface SetOutputMappingPayload {
|
|
1763
|
+
field: string;
|
|
1764
|
+
mapping: OutputFieldMapping;
|
|
1765
|
+
}
|
|
1766
|
+
export interface RemoveOutputMappingPayload {
|
|
1767
|
+
field: string;
|
|
1768
|
+
}
|
|
1769
|
+
export interface RenameOutputFieldPayload {
|
|
1770
|
+
old_field: string;
|
|
1771
|
+
new_field: string;
|
|
1490
1772
|
}
|
|
1491
1773
|
/**
|
|
1492
1774
|
* GraphNodeDTO is the API representation of a graph node
|
|
@@ -1594,6 +1876,7 @@ export interface InstanceTypeBootTime {
|
|
|
1594
1876
|
*/
|
|
1595
1877
|
export interface IntegrationDTO extends BaseModelDTO, PermissionModelDTO {
|
|
1596
1878
|
scope: IntegrationScope;
|
|
1879
|
+
grant?: IntegrationGrant;
|
|
1597
1880
|
provider: IntegrationProvider;
|
|
1598
1881
|
type: IntegrationAuthType;
|
|
1599
1882
|
auth: IntegrationAuthType;
|
|
@@ -1629,6 +1912,7 @@ export interface IntegrationConfigDTO {
|
|
|
1629
1912
|
allows_byok: boolean;
|
|
1630
1913
|
available: boolean;
|
|
1631
1914
|
has_managed: boolean;
|
|
1915
|
+
grant?: IntegrationGrant;
|
|
1632
1916
|
integration?: IntegrationDTO;
|
|
1633
1917
|
}
|
|
1634
1918
|
/**
|
|
@@ -1641,6 +1925,20 @@ export interface SecretFieldConfig {
|
|
|
1641
1925
|
sensitive: boolean;
|
|
1642
1926
|
optional: boolean;
|
|
1643
1927
|
}
|
|
1928
|
+
export interface InterruptDTO extends BaseModelDTO, PermissionModelDTO {
|
|
1929
|
+
run_id: string;
|
|
1930
|
+
chat_id: string;
|
|
1931
|
+
reason: InterruptReason;
|
|
1932
|
+
source: string;
|
|
1933
|
+
resource_id?: string;
|
|
1934
|
+
resource_type?: InterruptResourceType;
|
|
1935
|
+
status: InterruptStatus;
|
|
1936
|
+
resolution?: InterruptResolution;
|
|
1937
|
+
resolved_at?: string;
|
|
1938
|
+
resolved_data?: any;
|
|
1939
|
+
expires_at?: string;
|
|
1940
|
+
meta?: any;
|
|
1941
|
+
}
|
|
1644
1942
|
/**
|
|
1645
1943
|
* KnowledgeFile represents a file in a knowledge entry
|
|
1646
1944
|
*/
|
|
@@ -1709,6 +2007,8 @@ export interface KnowledgeVersionDTO extends BaseModelDTO {
|
|
|
1709
2007
|
metadata?: {
|
|
1710
2008
|
[key: string]: string;
|
|
1711
2009
|
};
|
|
2010
|
+
origin?: string;
|
|
2011
|
+
generated_by?: string;
|
|
1712
2012
|
source_url?: string;
|
|
1713
2013
|
mutation_type?: string;
|
|
1714
2014
|
version_notes?: string;
|
|
@@ -1784,6 +2084,233 @@ export interface SkillStoreListingDTO {
|
|
|
1784
2084
|
uses: number;
|
|
1785
2085
|
tags?: string[];
|
|
1786
2086
|
}
|
|
2087
|
+
/**
|
|
2088
|
+
* LifecycleHookConfig registers a handler for an agent lifecycle event.
|
|
2089
|
+
* Stored on AgentVersion alongside Tools and Skills.
|
|
2090
|
+
*/
|
|
2091
|
+
export interface LifecycleHookConfig {
|
|
2092
|
+
event: HookEvent;
|
|
2093
|
+
type: HookHandlerType;
|
|
2094
|
+
handler?: string;
|
|
2095
|
+
async?: boolean;
|
|
2096
|
+
timeout?: number;
|
|
2097
|
+
/**
|
|
2098
|
+
* Gate-specific fields (type: "gate")
|
|
2099
|
+
*/
|
|
2100
|
+
default_resolution?: InterruptResolution;
|
|
2101
|
+
}
|
|
2102
|
+
/**
|
|
2103
|
+
* LifecycleHookPayload is sent to hook handlers on lifecycle events.
|
|
2104
|
+
*/
|
|
2105
|
+
export interface LifecycleHookPayload {
|
|
2106
|
+
event: HookEvent;
|
|
2107
|
+
timestamp: string;
|
|
2108
|
+
agent_id: string;
|
|
2109
|
+
chat_id: string;
|
|
2110
|
+
run_id?: string;
|
|
2111
|
+
turn_count: number;
|
|
2112
|
+
data?: any;
|
|
2113
|
+
}
|
|
2114
|
+
/**
|
|
2115
|
+
* LifecycleHookResponse is returned by hook handlers.
|
|
2116
|
+
* All fields are optional — an empty 200 response is equivalent to {decision: "allow"}.
|
|
2117
|
+
*/
|
|
2118
|
+
export interface LifecycleHookResponse {
|
|
2119
|
+
inject?: ContextInjection;
|
|
2120
|
+
decision?: HookDecision;
|
|
2121
|
+
reason?: string;
|
|
2122
|
+
override?: any;
|
|
2123
|
+
system?: string;
|
|
2124
|
+
}
|
|
2125
|
+
/**
|
|
2126
|
+
* ContextInjection adds ephemeral content to the agent's context window.
|
|
2127
|
+
* Injections are stored as ChatMessages and filtered at context-build time.
|
|
2128
|
+
*/
|
|
2129
|
+
export interface ContextInjection {
|
|
2130
|
+
content: string;
|
|
2131
|
+
role?: string;
|
|
2132
|
+
ttl_turns?: number;
|
|
2133
|
+
dedup_key?: string;
|
|
2134
|
+
}
|
|
2135
|
+
/**
|
|
2136
|
+
* ToolCallEventData is the typed payload for agent.tool_call events.
|
|
2137
|
+
*/
|
|
2138
|
+
export interface ToolCallEventData {
|
|
2139
|
+
tool: string;
|
|
2140
|
+
arguments?: {
|
|
2141
|
+
[key: string]: any;
|
|
2142
|
+
};
|
|
2143
|
+
}
|
|
2144
|
+
/**
|
|
2145
|
+
* ToolResultEventData is the typed payload for agent.tool_result events.
|
|
2146
|
+
*/
|
|
2147
|
+
export interface ToolResultEventData {
|
|
2148
|
+
tool: string;
|
|
2149
|
+
status: string;
|
|
2150
|
+
result?: string;
|
|
2151
|
+
}
|
|
2152
|
+
/**
|
|
2153
|
+
* ErrorEventData is the typed payload for agent.error events.
|
|
2154
|
+
*/
|
|
2155
|
+
export interface ErrorEventData {
|
|
2156
|
+
error: string;
|
|
2157
|
+
}
|
|
2158
|
+
/**
|
|
2159
|
+
* ElicitationCapability advertises which elicitation modes the client handles.
|
|
2160
|
+
* An empty struct is equivalent to form-only for backward compatibility.
|
|
2161
|
+
*/
|
|
2162
|
+
export interface ElicitationCapability {
|
|
2163
|
+
form?: {};
|
|
2164
|
+
url?: {};
|
|
2165
|
+
}
|
|
2166
|
+
/**
|
|
2167
|
+
* ClientCapabilities advertises what a client can do.
|
|
2168
|
+
*/
|
|
2169
|
+
export interface ClientCapabilities {
|
|
2170
|
+
elicitation?: ElicitationCapability;
|
|
2171
|
+
}
|
|
2172
|
+
/**
|
|
2173
|
+
* InputRequest is a single server-to-client request inside an InputRequiredResult.
|
|
2174
|
+
*/
|
|
2175
|
+
export interface InputRequest {
|
|
2176
|
+
method: string;
|
|
2177
|
+
params: any;
|
|
2178
|
+
}
|
|
2179
|
+
/**
|
|
2180
|
+
* ElicitAction is the user's response to an elicitation request.
|
|
2181
|
+
*/
|
|
2182
|
+
export type ElicitAction = string;
|
|
2183
|
+
export declare const ElicitActionAccept: ElicitAction;
|
|
2184
|
+
export declare const ElicitActionDecline: ElicitAction;
|
|
2185
|
+
export declare const ElicitActionCancel: ElicitAction;
|
|
2186
|
+
/**
|
|
2187
|
+
* ElicitResult is the client's response to an elicitation/create request.
|
|
2188
|
+
*/
|
|
2189
|
+
export interface ElicitResult {
|
|
2190
|
+
action: ElicitAction;
|
|
2191
|
+
content?: {
|
|
2192
|
+
[key: string]: any;
|
|
2193
|
+
};
|
|
2194
|
+
}
|
|
2195
|
+
/**
|
|
2196
|
+
* ResultType is the kind of result a response carries, required on every result
|
|
2197
|
+
* from 2026-07-28 onward.
|
|
2198
|
+
*/
|
|
2199
|
+
export type ResultType = string;
|
|
2200
|
+
/**
|
|
2201
|
+
* ResultTypeComplete marks an ordinary, finished result.
|
|
2202
|
+
*/
|
|
2203
|
+
export declare const ResultTypeComplete: ResultType;
|
|
2204
|
+
/**
|
|
2205
|
+
* ResultTypeInputRequired marks a Multi Round-Trip Request interim result.
|
|
2206
|
+
* Recognised so the outbound client never mistakes one for tool output.
|
|
2207
|
+
*/
|
|
2208
|
+
export declare const ResultTypeInputRequired: ResultType;
|
|
2209
|
+
/**
|
|
2210
|
+
* CacheScope says who may reuse a cached result, per MCP 2026-07-28 (SEP-2549).
|
|
2211
|
+
* Analogous to HTTP Cache-Control public/private; the spec defines exactly these.
|
|
2212
|
+
*/
|
|
2213
|
+
export type CacheScope = string;
|
|
2214
|
+
/**
|
|
2215
|
+
* CacheScopePublic marks a response as free of user-specific data, so any
|
|
2216
|
+
* client or shared intermediary may cache it across authorization contexts.
|
|
2217
|
+
*/
|
|
2218
|
+
export declare const CacheScopePublic: CacheScope;
|
|
2219
|
+
/**
|
|
2220
|
+
* CacheScopePrivate restricts reuse to the same authorization context.
|
|
2221
|
+
*/
|
|
2222
|
+
export declare const CacheScopePrivate: CacheScope;
|
|
2223
|
+
/**
|
|
2224
|
+
* ServerInfo represents information about the server
|
|
2225
|
+
*/
|
|
2226
|
+
export interface ServerInfo {
|
|
2227
|
+
name: string;
|
|
2228
|
+
title: string;
|
|
2229
|
+
version: string;
|
|
2230
|
+
}
|
|
2231
|
+
/**
|
|
2232
|
+
* ResultMeta is the _meta object attached to results. Servers SHOULD identify
|
|
2233
|
+
* themselves in every result from 2026-07-28 onward (SEP-2575).
|
|
2234
|
+
* The struct tag is the single definition of the key — Go tags cannot reference
|
|
2235
|
+
* a constant, so there is deliberately no MetaServerInfo const to drift from it.
|
|
2236
|
+
*/
|
|
2237
|
+
export interface ResultMeta {
|
|
2238
|
+
'io.modelcontextprotocol/serverInfo'?: ServerInfo;
|
|
2239
|
+
/**
|
|
2240
|
+
* TTLMs and CacheScope are read-only legacy fields: servers older than
|
|
2241
|
+
* 2026-07-28 nested the caching signals here instead of on the result. They
|
|
2242
|
+
* live on this type rather than a separate one so a single decode of the
|
|
2243
|
+
* _meta object yields both them and serverInfo.
|
|
2244
|
+
*/
|
|
2245
|
+
ttlMs?: number;
|
|
2246
|
+
cacheScope?: CacheScope;
|
|
2247
|
+
}
|
|
2248
|
+
/**
|
|
2249
|
+
* ResourceContent represents resource content
|
|
2250
|
+
*/
|
|
2251
|
+
export interface ResourceContent {
|
|
2252
|
+
uri: string;
|
|
2253
|
+
name: string;
|
|
2254
|
+
title?: string;
|
|
2255
|
+
mimeType?: string;
|
|
2256
|
+
text?: string;
|
|
2257
|
+
blob?: string;
|
|
2258
|
+
}
|
|
2259
|
+
/**
|
|
2260
|
+
* ToolCallRequest represents a request to call a tool.
|
|
2261
|
+
* InputResponses and RequestState are present on MRTR retries: the client is
|
|
2262
|
+
* echoing back responses to the server's InputRequiredResult.
|
|
2263
|
+
*/
|
|
2264
|
+
export interface ToolCallRequest {
|
|
2265
|
+
name: string;
|
|
2266
|
+
arguments: {
|
|
2267
|
+
[key: string]: any;
|
|
2268
|
+
};
|
|
2269
|
+
inputResponses?: {
|
|
2270
|
+
[key: string]: any;
|
|
2271
|
+
};
|
|
2272
|
+
requestState?: string;
|
|
2273
|
+
}
|
|
2274
|
+
/**
|
|
2275
|
+
* ToolCallResponse represents a response from a tool call.
|
|
2276
|
+
* ResultType is read as well as written: an inbound response carrying
|
|
2277
|
+
* ResultTypeInputRequired is a Multi Round-Trip Request asking for more input,
|
|
2278
|
+
* not tool output, and callers must not treat it as a result. Servers older than
|
|
2279
|
+
* 2026-07-28 omit the field, which clients MUST read as "complete".
|
|
2280
|
+
*/
|
|
2281
|
+
export interface ToolCallResponse {
|
|
2282
|
+
resultType?: ResultType;
|
|
2283
|
+
content: ToolContent[];
|
|
2284
|
+
structuredContent?: any;
|
|
2285
|
+
isError: boolean;
|
|
2286
|
+
_meta?: ResultMeta;
|
|
2287
|
+
/**
|
|
2288
|
+
* MRTR fields — present when ResultType == ResultTypeInputRequired.
|
|
2289
|
+
*/
|
|
2290
|
+
inputRequests?: {
|
|
2291
|
+
[key: string]: InputRequest;
|
|
2292
|
+
};
|
|
2293
|
+
requestState?: string;
|
|
2294
|
+
}
|
|
2295
|
+
/**
|
|
2296
|
+
* ToolContentType is the kind of a content block. The spec defines exactly these.
|
|
2297
|
+
*/
|
|
2298
|
+
export type ToolContentType = string;
|
|
2299
|
+
export declare const ToolContentTypeText: ToolContentType;
|
|
2300
|
+
export declare const ToolContentTypeImage: ToolContentType;
|
|
2301
|
+
export declare const ToolContentTypeAudio: ToolContentType;
|
|
2302
|
+
export declare const ToolContentTypeResourceLink: ToolContentType;
|
|
2303
|
+
export declare const ToolContentTypeResource: ToolContentType;
|
|
2304
|
+
/**
|
|
2305
|
+
* ToolContent represents content in a tool response
|
|
2306
|
+
*/
|
|
2307
|
+
export interface ToolContent {
|
|
2308
|
+
type: ToolContentType;
|
|
2309
|
+
text?: string;
|
|
2310
|
+
data?: string;
|
|
2311
|
+
mimeType?: string;
|
|
2312
|
+
resource?: ResourceContent;
|
|
2313
|
+
}
|
|
1787
2314
|
/**
|
|
1788
2315
|
* StringSlice is a custom type for storing string slices
|
|
1789
2316
|
*/
|
|
@@ -1793,7 +2320,11 @@ export type StringSlice = string[];
|
|
|
1793
2320
|
*/
|
|
1794
2321
|
export interface MCPServerDTO {
|
|
1795
2322
|
id: string;
|
|
1796
|
-
|
|
2323
|
+
user_id: string;
|
|
2324
|
+
user: UserRelationDTO;
|
|
2325
|
+
team_id: string;
|
|
2326
|
+
team: TeamRelationDTO;
|
|
2327
|
+
visibility: Visibility;
|
|
1797
2328
|
slug: string;
|
|
1798
2329
|
name: string;
|
|
1799
2330
|
description: string;
|
|
@@ -1803,6 +2334,7 @@ export interface MCPServerDTO {
|
|
|
1803
2334
|
oauth_client_id?: string;
|
|
1804
2335
|
default_scopes: StringSlice;
|
|
1805
2336
|
documentation_url: string;
|
|
2337
|
+
connection_status?: string;
|
|
1806
2338
|
}
|
|
1807
2339
|
/**
|
|
1808
2340
|
* NotificationDTO is the data transfer object
|
|
@@ -1870,6 +2402,9 @@ export interface PageMetadata {
|
|
|
1870
2402
|
type?: string;
|
|
1871
2403
|
icon?: string;
|
|
1872
2404
|
hide_from_nav?: boolean;
|
|
2405
|
+
action_url?: string;
|
|
2406
|
+
action_label?: string;
|
|
2407
|
+
display_mode?: string;
|
|
1873
2408
|
/**
|
|
1874
2409
|
* PublishAt is when a scheduled page goes live. Only meaningful while the
|
|
1875
2410
|
* page's status is PageStatusScheduled.
|
|
@@ -2021,6 +2556,8 @@ export interface KnowledgeVersionInput {
|
|
|
2021
2556
|
metadata?: {
|
|
2022
2557
|
[key: string]: string;
|
|
2023
2558
|
};
|
|
2559
|
+
origin?: string;
|
|
2560
|
+
generated_by?: string;
|
|
2024
2561
|
source_url?: string;
|
|
2025
2562
|
mutation_type?: string;
|
|
2026
2563
|
version_notes?: string;
|
|
@@ -2127,6 +2664,7 @@ export interface SuggestRequest {
|
|
|
2127
2664
|
category?: string;
|
|
2128
2665
|
agent?: boolean;
|
|
2129
2666
|
scope?: string[];
|
|
2667
|
+
origin?: string;
|
|
2130
2668
|
}
|
|
2131
2669
|
/**
|
|
2132
2670
|
* SuggestResponse is the output of the suggest endpoint.
|
|
@@ -2134,6 +2672,7 @@ export interface SuggestRequest {
|
|
|
2134
2672
|
export interface SuggestResponse {
|
|
2135
2673
|
query: string;
|
|
2136
2674
|
results: SuggestResult[];
|
|
2675
|
+
impression_id?: string;
|
|
2137
2676
|
}
|
|
2138
2677
|
/**
|
|
2139
2678
|
* SuggestResult is a single result item from the suggest endpoint.
|
|
@@ -2204,6 +2743,17 @@ export interface CheckRequirementsResponse {
|
|
|
2204
2743
|
satisfied: boolean;
|
|
2205
2744
|
errors?: RequirementError[];
|
|
2206
2745
|
}
|
|
2746
|
+
export interface ResourceShareDTO extends BaseModelDTO {
|
|
2747
|
+
resource_id: string;
|
|
2748
|
+
resource_type: string;
|
|
2749
|
+
user_id: string;
|
|
2750
|
+
user?: UserRelationDTO;
|
|
2751
|
+
permission: Permission;
|
|
2752
|
+
}
|
|
2753
|
+
export interface ShareRequest {
|
|
2754
|
+
user_id: string;
|
|
2755
|
+
permission: Permission;
|
|
2756
|
+
}
|
|
2207
2757
|
/**
|
|
2208
2758
|
* SDKTypes is a phantom type for gotypegen dependency tracing.
|
|
2209
2759
|
* Types listed here (and their transitive dependencies) are included
|
|
@@ -2222,12 +2772,28 @@ export interface SecretDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
2222
2772
|
scope?: SecretScope;
|
|
2223
2773
|
}
|
|
2224
2774
|
/**
|
|
2225
|
-
*
|
|
2775
|
+
* MeStatsResponse is returned by GET /me/stats.
|
|
2226
2776
|
*/
|
|
2227
|
-
export interface
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2777
|
+
export interface MeStatsResponse {
|
|
2778
|
+
knowledge_count: number;
|
|
2779
|
+
skills_count: number;
|
|
2780
|
+
extracted: StatBuckets;
|
|
2781
|
+
}
|
|
2782
|
+
/**
|
|
2783
|
+
* StatBuckets holds time-windowed counts.
|
|
2784
|
+
*/
|
|
2785
|
+
export interface StatBuckets {
|
|
2786
|
+
today: number;
|
|
2787
|
+
this_week: number;
|
|
2788
|
+
all_time: number;
|
|
2789
|
+
}
|
|
2790
|
+
/**
|
|
2791
|
+
* SubscriptionDTO for API responses
|
|
2792
|
+
*/
|
|
2793
|
+
export interface SubscriptionDTO extends BaseModelDTO {
|
|
2794
|
+
team_id: string;
|
|
2795
|
+
plan_id: string;
|
|
2796
|
+
plan?: PlanDTO;
|
|
2231
2797
|
interval: SubscriptionInterval;
|
|
2232
2798
|
status: SubscriptionStatus;
|
|
2233
2799
|
current_period_start: string;
|
|
@@ -2514,6 +3080,18 @@ export interface TeamInviteCreateRequest {
|
|
|
2514
3080
|
email: string;
|
|
2515
3081
|
role: TeamRole;
|
|
2516
3082
|
}
|
|
3083
|
+
export interface TelemetryReportDTO extends BaseModelDTO, PermissionModelDTO {
|
|
3084
|
+
ip: string;
|
|
3085
|
+
level: number;
|
|
3086
|
+
payload: {
|
|
3087
|
+
[key: string]: any;
|
|
3088
|
+
};
|
|
3089
|
+
}
|
|
3090
|
+
export interface SubmitTelemetryRequest {
|
|
3091
|
+
payload: {
|
|
3092
|
+
[key: string]: any;
|
|
3093
|
+
};
|
|
3094
|
+
}
|
|
2517
3095
|
/**
|
|
2518
3096
|
* ToolInvocationFunction contains the function details for a tool invocation
|
|
2519
3097
|
*/
|
|
@@ -2586,6 +3164,9 @@ export interface UserDTO extends BaseModelDTO {
|
|
|
2586
3164
|
name: string;
|
|
2587
3165
|
full_name: string;
|
|
2588
3166
|
avatar_url: string;
|
|
3167
|
+
banned_at?: string;
|
|
3168
|
+
ban_note?: string;
|
|
3169
|
+
totp_enabled: boolean;
|
|
2589
3170
|
metadata?: UserMetadataDTO;
|
|
2590
3171
|
}
|
|
2591
3172
|
/**
|
|
@@ -2612,86 +3193,125 @@ export interface UserMetadataDTO {
|
|
|
2612
3193
|
terms_version: string;
|
|
2613
3194
|
}
|
|
2614
3195
|
/**
|
|
2615
|
-
*
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
export
|
|
2627
|
-
|
|
2628
|
-
|
|
3196
|
+
* Widget is an A2UI surface stored on a ToolInvocation.
|
|
3197
|
+
* Alias of shared.A2UISurface so the type generation pipeline picks it up.
|
|
3198
|
+
*/
|
|
3199
|
+
export type Widget = A2UISurface;
|
|
3200
|
+
export type A2UIComponentType = string;
|
|
3201
|
+
export declare const A2UIRow: A2UIComponentType;
|
|
3202
|
+
export declare const A2UIColumn: A2UIComponentType;
|
|
3203
|
+
export declare const A2UIList: A2UIComponentType;
|
|
3204
|
+
export declare const A2UIText: A2UIComponentType;
|
|
3205
|
+
export declare const A2UIImage: A2UIComponentType;
|
|
3206
|
+
export declare const A2UIIcon: A2UIComponentType;
|
|
3207
|
+
export declare const A2UIDivider: A2UIComponentType;
|
|
3208
|
+
export declare const A2UIButton: A2UIComponentType;
|
|
3209
|
+
export declare const A2UITextField: A2UIComponentType;
|
|
3210
|
+
export declare const A2UICheckBox: A2UIComponentType;
|
|
3211
|
+
export declare const A2UISlider: A2UIComponentType;
|
|
3212
|
+
export declare const A2UIDateTimeInput: A2UIComponentType;
|
|
3213
|
+
export declare const A2UIChoicePicker: A2UIComponentType;
|
|
3214
|
+
export declare const A2UICard: A2UIComponentType;
|
|
3215
|
+
export declare const A2UIModal: A2UIComponentType;
|
|
3216
|
+
export declare const A2UITabs: A2UIComponentType;
|
|
3217
|
+
/**
|
|
3218
|
+
* Extensions (inferencesh/v1 catalog)
|
|
3219
|
+
*/
|
|
3220
|
+
export declare const A2UIBadge: A2UIComponentType;
|
|
3221
|
+
export declare const A2UISpacer: A2UIComponentType;
|
|
3222
|
+
export declare const A2UIChart: A2UIComponentType;
|
|
3223
|
+
export declare const A2UIForm: A2UIComponentType;
|
|
3224
|
+
/**
|
|
3225
|
+
* A2UIComponent is the universal component representation.
|
|
3226
|
+
* Children are string IDs (flat adjacency list), not nested objects.
|
|
3227
|
+
*/
|
|
3228
|
+
export interface A2UIComponent {
|
|
3229
|
+
id: string;
|
|
3230
|
+
component: A2UIComponentType;
|
|
3231
|
+
/**
|
|
3232
|
+
* Layout
|
|
3233
|
+
*/
|
|
3234
|
+
children?: string[];
|
|
3235
|
+
justify?: string;
|
|
3236
|
+
align?: string;
|
|
3237
|
+
direction?: string;
|
|
3238
|
+
gap?: number;
|
|
3239
|
+
/**
|
|
3240
|
+
* Text
|
|
3241
|
+
*/
|
|
3242
|
+
text?: A2UIBoundValue;
|
|
2629
3243
|
variant?: string;
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
3244
|
+
/**
|
|
3245
|
+
* Image
|
|
3246
|
+
*/
|
|
3247
|
+
url?: A2UIBoundValue;
|
|
3248
|
+
fit?: string;
|
|
3249
|
+
/**
|
|
3250
|
+
* Icon
|
|
3251
|
+
*/
|
|
3252
|
+
name?: A2UIBoundValue;
|
|
3253
|
+
/**
|
|
3254
|
+
* Divider
|
|
3255
|
+
*/
|
|
3256
|
+
axis?: string;
|
|
3257
|
+
/**
|
|
3258
|
+
* Button / Card
|
|
3259
|
+
*/
|
|
3260
|
+
child?: string;
|
|
3261
|
+
primary?: boolean;
|
|
3262
|
+
action?: A2UIAction;
|
|
3263
|
+
/**
|
|
3264
|
+
* TextField
|
|
3265
|
+
*/
|
|
2639
3266
|
label?: string;
|
|
2640
|
-
|
|
3267
|
+
value?: A2UIBoundValue;
|
|
3268
|
+
textFieldType?: string;
|
|
3269
|
+
validationRegexp?: string;
|
|
2641
3270
|
placeholder?: string;
|
|
2642
|
-
|
|
2643
|
-
variant?: string;
|
|
2644
|
-
action?: WidgetAction;
|
|
2645
|
-
options?: WidgetSelectOption[];
|
|
2646
|
-
defaultChecked?: boolean;
|
|
2647
|
-
children?: WidgetNode[];
|
|
2648
|
-
gap?: number;
|
|
3271
|
+
rows?: number;
|
|
2649
3272
|
/**
|
|
2650
|
-
*
|
|
3273
|
+
* Slider
|
|
2651
3274
|
*/
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
3275
|
+
minValue?: number;
|
|
3276
|
+
maxValue?: number;
|
|
3277
|
+
/**
|
|
3278
|
+
* DateTimeInput
|
|
3279
|
+
*/
|
|
3280
|
+
enableDate?: boolean;
|
|
3281
|
+
enableTime?: boolean;
|
|
3282
|
+
/**
|
|
3283
|
+
* ChoicePicker
|
|
3284
|
+
*/
|
|
3285
|
+
options?: A2UIChoiceOption[];
|
|
3286
|
+
selections?: A2UIBoundValue;
|
|
3287
|
+
maxAllowedSelections?: number;
|
|
2660
3288
|
/**
|
|
2661
|
-
*
|
|
3289
|
+
* Modal
|
|
2662
3290
|
*/
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
color?: any;
|
|
2666
|
-
textAlign?: string;
|
|
2667
|
-
truncate?: boolean;
|
|
2668
|
-
maxLines?: number;
|
|
3291
|
+
entryPointChild?: string;
|
|
3292
|
+
contentChild?: string;
|
|
2669
3293
|
/**
|
|
2670
|
-
*
|
|
3294
|
+
* Tabs
|
|
2671
3295
|
*/
|
|
3296
|
+
tabItems?: A2UITabItem[];
|
|
3297
|
+
/**
|
|
3298
|
+
* Common
|
|
3299
|
+
*/
|
|
3300
|
+
accessibility?: A2UIAccessibility;
|
|
3301
|
+
weight?: number;
|
|
2672
3302
|
disabled?: boolean;
|
|
2673
3303
|
required?: boolean;
|
|
2674
|
-
rows?: number;
|
|
2675
|
-
fieldName?: string;
|
|
2676
|
-
submit?: boolean;
|
|
2677
|
-
pattern?: string;
|
|
2678
|
-
min?: string;
|
|
2679
|
-
max?: string;
|
|
2680
|
-
clearable?: boolean;
|
|
2681
3304
|
/**
|
|
2682
|
-
*
|
|
3305
|
+
* Extension: Badge
|
|
2683
3306
|
*/
|
|
2684
|
-
|
|
3307
|
+
badgeLabel?: string;
|
|
3308
|
+
badgeVariant?: string;
|
|
2685
3309
|
/**
|
|
2686
|
-
*
|
|
3310
|
+
* Extension: Spacer
|
|
2687
3311
|
*/
|
|
2688
|
-
iconName?: string;
|
|
2689
|
-
spacing?: any;
|
|
2690
3312
|
minSize?: any;
|
|
2691
|
-
height?: any;
|
|
2692
|
-
width?: any;
|
|
2693
3313
|
/**
|
|
2694
|
-
* Chart
|
|
3314
|
+
* Extension: Chart
|
|
2695
3315
|
*/
|
|
2696
3316
|
chartData?: any;
|
|
2697
3317
|
chartSeries?: any;
|
|
@@ -2700,34 +3320,175 @@ export interface WidgetNode {
|
|
|
2700
3320
|
showLegend?: boolean;
|
|
2701
3321
|
showTooltip?: boolean;
|
|
2702
3322
|
/**
|
|
2703
|
-
* Form
|
|
2704
|
-
*/
|
|
2705
|
-
onSubmitAction?: WidgetAction;
|
|
2706
|
-
/**
|
|
2707
|
-
* Data binding (deprecated - use templates instead)
|
|
3323
|
+
* Extension: Form
|
|
2708
3324
|
*/
|
|
2709
|
-
|
|
3325
|
+
onSubmitAction?: A2UIAction;
|
|
2710
3326
|
}
|
|
2711
3327
|
/**
|
|
2712
|
-
*
|
|
3328
|
+
* A2UIBoundValue is either a literal or a data model path reference.
|
|
2713
3329
|
*/
|
|
2714
|
-
export interface
|
|
3330
|
+
export interface A2UIBoundValue {
|
|
3331
|
+
path?: string;
|
|
3332
|
+
}
|
|
3333
|
+
export interface A2UIAction {
|
|
3334
|
+
type: string;
|
|
3335
|
+
payload?: any;
|
|
3336
|
+
}
|
|
3337
|
+
export interface A2UIChoiceOption {
|
|
2715
3338
|
label: string;
|
|
2716
3339
|
value: string;
|
|
2717
3340
|
}
|
|
3341
|
+
export interface A2UITabItem {
|
|
3342
|
+
title: string;
|
|
3343
|
+
child: string;
|
|
3344
|
+
}
|
|
3345
|
+
export interface A2UIAccessibility {
|
|
3346
|
+
label?: string;
|
|
3347
|
+
description?: string;
|
|
3348
|
+
}
|
|
2718
3349
|
/**
|
|
2719
|
-
*
|
|
2720
|
-
* Type is either "ui" (structured nodes) or "html" (raw HTML)
|
|
2721
|
-
* For "ui" widgets, data-bound nodes read values from ToolInvocation.Data
|
|
3350
|
+
* A2UISurface is the complete renderable state for a widget.
|
|
2722
3351
|
*/
|
|
2723
|
-
export interface
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
3352
|
+
export interface A2UISurface {
|
|
3353
|
+
version: string;
|
|
3354
|
+
surfaceId: string;
|
|
3355
|
+
catalogId: string;
|
|
3356
|
+
components: A2UIComponent[];
|
|
3357
|
+
dataModel?: any;
|
|
3358
|
+
}
|
|
3359
|
+
/**
|
|
3360
|
+
* AgentEventType identifies what happened in an agent run.
|
|
3361
|
+
* These are the backbone protocol events — every consumer (A2A, SDK, frontend)
|
|
3362
|
+
* projects from this set.
|
|
3363
|
+
*/
|
|
3364
|
+
export type AgentEventType = string;
|
|
3365
|
+
/**
|
|
3366
|
+
* Run lifecycle
|
|
3367
|
+
*/
|
|
3368
|
+
export declare const AgentEventRunStarted: AgentEventType;
|
|
3369
|
+
export declare const AgentEventRunStateChanged: AgentEventType;
|
|
3370
|
+
/**
|
|
3371
|
+
* Turn lifecycle
|
|
3372
|
+
*/
|
|
3373
|
+
export declare const AgentEventTurnStarted: AgentEventType;
|
|
3374
|
+
export declare const AgentEventTurnCompleted: AgentEventType;
|
|
3375
|
+
/**
|
|
3376
|
+
* Content streaming — structural wrapper; high-frequency token deltas
|
|
3377
|
+
* still flow via the existing DeltaEvent channel for efficiency.
|
|
3378
|
+
*/
|
|
3379
|
+
export declare const AgentEventContentDelta: AgentEventType;
|
|
3380
|
+
/**
|
|
3381
|
+
* Tool lifecycle
|
|
3382
|
+
*/
|
|
3383
|
+
export declare const AgentEventToolStarted: AgentEventType;
|
|
3384
|
+
export declare const AgentEventToolCompleted: AgentEventType;
|
|
3385
|
+
/**
|
|
3386
|
+
* Approval flow
|
|
3387
|
+
*/
|
|
3388
|
+
export declare const AgentEventApprovalRequired: AgentEventType;
|
|
3389
|
+
export declare const AgentEventApprovalResolved: AgentEventType;
|
|
3390
|
+
/**
|
|
3391
|
+
* Hook lifecycle
|
|
3392
|
+
*/
|
|
3393
|
+
export declare const AgentEventHookExecuted: AgentEventType;
|
|
3394
|
+
/**
|
|
3395
|
+
* Usage
|
|
3396
|
+
*/
|
|
3397
|
+
export declare const AgentEventUsageUpdated: AgentEventType;
|
|
3398
|
+
/**
|
|
3399
|
+
* Context management
|
|
3400
|
+
*/
|
|
3401
|
+
export declare const AgentEventContextCompacted: AgentEventType;
|
|
3402
|
+
/**
|
|
3403
|
+
* Errors
|
|
3404
|
+
*/
|
|
3405
|
+
export declare const AgentEventError: AgentEventType;
|
|
3406
|
+
/**
|
|
3407
|
+
* AgentEvent is the backbone protocol event for agent runs.
|
|
3408
|
+
* Published to "runs:<runID>" and "chats:<chatID>" keys on the event bus.
|
|
3409
|
+
*/
|
|
3410
|
+
export interface AgentEvent {
|
|
3411
|
+
id: string;
|
|
3412
|
+
type: AgentEventType;
|
|
3413
|
+
run_id: string;
|
|
3414
|
+
chat_id: string;
|
|
3415
|
+
agent_id?: string;
|
|
3416
|
+
timestamp: string;
|
|
3417
|
+
payload?: any;
|
|
3418
|
+
}
|
|
3419
|
+
export interface RunStartedPayload {
|
|
3420
|
+
agent_id: string;
|
|
3421
|
+
agent_version_id?: string;
|
|
3422
|
+
user_message_id?: string;
|
|
3423
|
+
}
|
|
3424
|
+
export interface RunStateChangedPayload {
|
|
3425
|
+
from_state: AgentRunState;
|
|
3426
|
+
to_state: AgentRunState;
|
|
3427
|
+
error?: string;
|
|
3428
|
+
}
|
|
3429
|
+
export interface TurnStartedPayload {
|
|
3430
|
+
turn_index: number;
|
|
3431
|
+
model?: string;
|
|
3432
|
+
}
|
|
3433
|
+
export interface TurnCompletedPayload {
|
|
3434
|
+
turn_index: number;
|
|
3435
|
+
tool_count: number;
|
|
3436
|
+
has_output: boolean;
|
|
3437
|
+
stop_reason?: string;
|
|
3438
|
+
}
|
|
3439
|
+
export interface ContentDeltaPayload {
|
|
3440
|
+
kind: ContentDeltaKind;
|
|
3441
|
+
delta: string;
|
|
3442
|
+
}
|
|
3443
|
+
export type ContentDeltaKind = string;
|
|
3444
|
+
export declare const ContentDeltaText: ContentDeltaKind;
|
|
3445
|
+
export declare const ContentDeltaReasoning: ContentDeltaKind;
|
|
3446
|
+
export interface ToolStartedPayload {
|
|
3447
|
+
tool_invocation_id: string;
|
|
3448
|
+
tool_name: string;
|
|
3449
|
+
tool_type?: ToolType;
|
|
3450
|
+
display_name?: string;
|
|
3451
|
+
arguments?: StringEncodedMap;
|
|
3452
|
+
}
|
|
3453
|
+
export interface ToolCompletedPayload {
|
|
3454
|
+
tool_invocation_id: string;
|
|
3455
|
+
tool_name: string;
|
|
3456
|
+
status: ToolInvocationStatus;
|
|
3457
|
+
result?: string;
|
|
3458
|
+
duration_ms?: number;
|
|
3459
|
+
}
|
|
3460
|
+
export interface ApprovalRequiredPayload {
|
|
3461
|
+
tool_invocation_id: string;
|
|
3462
|
+
tool_name: string;
|
|
3463
|
+
arguments?: StringEncodedMap;
|
|
3464
|
+
reason: InterruptReason;
|
|
3465
|
+
}
|
|
3466
|
+
export interface ApprovalResolvedPayload {
|
|
3467
|
+
tool_invocation_id: string;
|
|
3468
|
+
tool_name: string;
|
|
3469
|
+
decision: string;
|
|
3470
|
+
reason?: string;
|
|
3471
|
+
}
|
|
3472
|
+
export interface HookExecutedPayload {
|
|
3473
|
+
hook_event: HookEvent;
|
|
3474
|
+
decision: HookDecision;
|
|
3475
|
+
reason?: string;
|
|
3476
|
+
duration_ms?: number;
|
|
3477
|
+
}
|
|
3478
|
+
export interface UsageUpdatedPayload {
|
|
3479
|
+
prompt_tokens: number;
|
|
3480
|
+
completion_tokens: number;
|
|
3481
|
+
total_tokens: number;
|
|
3482
|
+
reasoning_tokens?: number;
|
|
3483
|
+
cost_usd?: number;
|
|
3484
|
+
}
|
|
3485
|
+
export interface ContextCompactedPayload {
|
|
3486
|
+
before_tokens: number;
|
|
3487
|
+
after_tokens: number;
|
|
3488
|
+
}
|
|
3489
|
+
export interface ErrorPayload {
|
|
3490
|
+
message: string;
|
|
3491
|
+
code?: string;
|
|
2731
3492
|
}
|
|
2732
3493
|
/**
|
|
2733
3494
|
* AgentRunState tracks the lifecycle of an agent run (one user→agent turn).
|
|
@@ -2752,6 +3513,7 @@ export declare const InterruptReasonClientTool: InterruptReason;
|
|
|
2752
3513
|
export declare const InterruptReasonWidget: InterruptReason;
|
|
2753
3514
|
export declare const InterruptReasonAuth: InterruptReason;
|
|
2754
3515
|
export declare const InterruptReasonConfirmation: InterruptReason;
|
|
3516
|
+
export declare const InterruptReasonHookGate: InterruptReason;
|
|
2755
3517
|
export type AppCategory = string;
|
|
2756
3518
|
export declare const AppCategoryImage: AppCategory;
|
|
2757
3519
|
export declare const AppCategoryVideo: AppCategory;
|
|
@@ -2778,8 +3540,15 @@ export declare const GPUTypeApple: GPUType;
|
|
|
2778
3540
|
*/
|
|
2779
3541
|
export type Visibility = string;
|
|
2780
3542
|
export declare const VisibilityPrivate: Visibility;
|
|
3543
|
+
export declare const VisibilityTeam: Visibility;
|
|
2781
3544
|
export declare const VisibilityPublic: Visibility;
|
|
2782
3545
|
export declare const VisibilityUnlisted: Visibility;
|
|
3546
|
+
/**
|
|
3547
|
+
* Permission represents a permission level for access checks.
|
|
3548
|
+
*/
|
|
3549
|
+
export type Permission = string;
|
|
3550
|
+
export declare const PermRead: Permission;
|
|
3551
|
+
export declare const PermWrite: Permission;
|
|
2783
3552
|
export type SubscriptionStatus = string;
|
|
2784
3553
|
export declare const SubscriptionStatusTrialing: SubscriptionStatus;
|
|
2785
3554
|
export declare const SubscriptionStatusActive: SubscriptionStatus;
|
|
@@ -2815,12 +3584,22 @@ export declare const PlanStepStatusInProgress: PlanStepStatus;
|
|
|
2815
3584
|
export declare const PlanStepStatusCompleted: PlanStepStatus;
|
|
2816
3585
|
export declare const PlanStepStatusCancelled: PlanStepStatus;
|
|
2817
3586
|
export type ChatMessageRole = string;
|
|
3587
|
+
/**
|
|
3588
|
+
* LLM wire-protocol roles
|
|
3589
|
+
*/
|
|
2818
3590
|
export declare const ChatMessageRoleSystem: ChatMessageRole;
|
|
2819
3591
|
export declare const ChatMessageRoleUser: ChatMessageRole;
|
|
2820
3592
|
export declare const ChatMessageRoleAssistant: ChatMessageRole;
|
|
2821
3593
|
export declare const ChatMessageRoleTool: ChatMessageRole;
|
|
3594
|
+
/**
|
|
3595
|
+
* Internal bookkeeping roles — never sent to the LLM provider.
|
|
3596
|
+
* BuildContext converts these to system messages or skips them.
|
|
3597
|
+
*/
|
|
3598
|
+
export declare const ChatMessageRoleInjection: ChatMessageRole;
|
|
3599
|
+
export declare const ChatMessageRoleCompaction: ChatMessageRole;
|
|
2822
3600
|
export type ChatMessageStatus = string;
|
|
2823
3601
|
export declare const ChatMessageStatusPending: ChatMessageStatus;
|
|
3602
|
+
export declare const ChatMessageStatusQueued: ChatMessageStatus;
|
|
2824
3603
|
export declare const ChatMessageStatusReady: ChatMessageStatus;
|
|
2825
3604
|
export declare const ChatMessageStatusFailed: ChatMessageStatus;
|
|
2826
3605
|
export declare const ChatMessageStatusCancelled: ChatMessageStatus;
|
|
@@ -2871,46 +3650,6 @@ export interface IntegrationContext {
|
|
|
2871
3650
|
integration_type?: IntegrationType;
|
|
2872
3651
|
integration_metadata?: any;
|
|
2873
3652
|
}
|
|
2874
|
-
/**
|
|
2875
|
-
* ChatTaskInput is the input envelope for a chat LLM task
|
|
2876
|
-
*/
|
|
2877
|
-
export interface ChatTaskInput {
|
|
2878
|
-
model?: string;
|
|
2879
|
-
context_size: number;
|
|
2880
|
-
temperature?: number;
|
|
2881
|
-
top_p?: number;
|
|
2882
|
-
reasoning_effort?: string;
|
|
2883
|
-
reasoning_max_tokens?: number;
|
|
2884
|
-
system_prompt: string;
|
|
2885
|
-
context: ChatTaskContextMessage[];
|
|
2886
|
-
role?: ChatMessageRole;
|
|
2887
|
-
text?: string;
|
|
2888
|
-
reasoning?: string;
|
|
2889
|
-
/**
|
|
2890
|
-
* Attachments is the SDK input field with full file metadata
|
|
2891
|
-
*/
|
|
2892
|
-
attachments?: FileRef[];
|
|
2893
|
-
/**
|
|
2894
|
-
* Images and Files are internal fields for task workers (filled from Attachments or context)
|
|
2895
|
-
*/
|
|
2896
|
-
images?: string[];
|
|
2897
|
-
files?: string[];
|
|
2898
|
-
tools?: Tool[];
|
|
2899
|
-
tool_call_id?: string;
|
|
2900
|
-
}
|
|
2901
|
-
/**
|
|
2902
|
-
* ChatTaskContextMessage represents a message in the chat context for LLM tasks
|
|
2903
|
-
*/
|
|
2904
|
-
export interface ChatTaskContextMessage {
|
|
2905
|
-
role: ChatMessageRole;
|
|
2906
|
-
text?: string;
|
|
2907
|
-
reasoning?: string;
|
|
2908
|
-
images?: string[];
|
|
2909
|
-
files?: string[];
|
|
2910
|
-
tools?: Tool[];
|
|
2911
|
-
tool_calls?: ToolCall[];
|
|
2912
|
-
tool_call_id?: string;
|
|
2913
|
-
}
|
|
2914
3653
|
export type StringEncodedMap = {
|
|
2915
3654
|
[key: string]: any;
|
|
2916
3655
|
};
|
|
@@ -3014,6 +3753,22 @@ export interface OutputFieldMapping {
|
|
|
3014
3753
|
export type OutputMappings = {
|
|
3015
3754
|
[key: string]: OutputFieldMapping;
|
|
3016
3755
|
};
|
|
3756
|
+
/**
|
|
3757
|
+
* GateCondition defines a simple boolean condition for gate nodes.
|
|
3758
|
+
*/
|
|
3759
|
+
export interface GateCondition {
|
|
3760
|
+
field: string;
|
|
3761
|
+
operator: string;
|
|
3762
|
+
value: any;
|
|
3763
|
+
}
|
|
3764
|
+
/**
|
|
3765
|
+
* SelectorConfig defines how to pick element(s) from an array.
|
|
3766
|
+
*/
|
|
3767
|
+
export interface SelectorConfig {
|
|
3768
|
+
field: string;
|
|
3769
|
+
mode: string;
|
|
3770
|
+
index?: number;
|
|
3771
|
+
}
|
|
3017
3772
|
export type GraphNodeType = string;
|
|
3018
3773
|
export declare const GraphNodeTypeUnknown: GraphNodeType;
|
|
3019
3774
|
export declare const GraphNodeTypeJoin: GraphNodeType;
|
|
@@ -3059,6 +3814,285 @@ export declare const GraphEdgeTypeReferences: GraphEdgeType;
|
|
|
3059
3814
|
export declare const GraphEdgeTypeSupersedes: GraphEdgeType;
|
|
3060
3815
|
export declare const GraphEdgeTypeInput: GraphEdgeType;
|
|
3061
3816
|
export declare const GraphEdgeTypeOutput: GraphEdgeType;
|
|
3817
|
+
/**
|
|
3818
|
+
* InterruptStatus tracks the lifecycle of an interrupt gate.
|
|
3819
|
+
*/
|
|
3820
|
+
export type InterruptStatus = string;
|
|
3821
|
+
export declare const InterruptStatusPending: InterruptStatus;
|
|
3822
|
+
export declare const InterruptStatusResolved: InterruptStatus;
|
|
3823
|
+
export declare const InterruptStatusExpired: InterruptStatus;
|
|
3824
|
+
export declare const InterruptStatusCancelled: InterruptStatus;
|
|
3825
|
+
/**
|
|
3826
|
+
* InterruptResolution records how a pending interrupt was resolved.
|
|
3827
|
+
*/
|
|
3828
|
+
export type InterruptResolution = string;
|
|
3829
|
+
export declare const InterruptResolutionAllow: InterruptResolution;
|
|
3830
|
+
export declare const InterruptResolutionDeny: InterruptResolution;
|
|
3831
|
+
/**
|
|
3832
|
+
* InterruptResourceType identifies the kind of resource an interrupt gates.
|
|
3833
|
+
*/
|
|
3834
|
+
export type InterruptResourceType = string;
|
|
3835
|
+
export declare const InterruptResourceToolInvocation: InterruptResourceType;
|
|
3836
|
+
export declare const InterruptResourceHookEvent: InterruptResourceType;
|
|
3837
|
+
/**
|
|
3838
|
+
* HookEvent is a lifecycle event in the agent conversation loop.
|
|
3839
|
+
* Events fire at well-defined points in the turn cycle, giving external
|
|
3840
|
+
* handlers the ability to observe, inject context, or halt execution.
|
|
3841
|
+
*/
|
|
3842
|
+
export type HookEvent = string;
|
|
3843
|
+
export declare const HookEventAgentStart: HookEvent;
|
|
3844
|
+
export declare const HookEventTurnStart: HookEvent;
|
|
3845
|
+
export declare const HookEventToolCall: HookEvent;
|
|
3846
|
+
export declare const HookEventToolResult: HookEvent;
|
|
3847
|
+
export declare const HookEventTurnComplete: HookEvent;
|
|
3848
|
+
export declare const HookEventAgentError: HookEvent;
|
|
3849
|
+
export declare const HookEventAgentComplete: HookEvent;
|
|
3850
|
+
export declare const HookEventAgentIdle: HookEvent;
|
|
3851
|
+
export declare const HookEventPreCompact: HookEvent;
|
|
3852
|
+
export declare const HookEventPostCompact: HookEvent;
|
|
3853
|
+
/**
|
|
3854
|
+
* HookEventDefinition describes a lifecycle hook event and its capabilities.
|
|
3855
|
+
*/
|
|
3856
|
+
export interface HookEventDefinition {
|
|
3857
|
+
event: HookEvent;
|
|
3858
|
+
description: string;
|
|
3859
|
+
can_gate: boolean;
|
|
3860
|
+
}
|
|
3861
|
+
/**
|
|
3862
|
+
* HookDecision is the handler's verdict on whether execution should continue.
|
|
3863
|
+
*/
|
|
3864
|
+
export type HookDecision = string;
|
|
3865
|
+
export declare const HookDecisionAllow: HookDecision;
|
|
3866
|
+
export declare const HookDecisionDeny: HookDecision;
|
|
3867
|
+
export declare const HookDecisionStop: HookDecision;
|
|
3868
|
+
export declare const HookDecisionSuspend: HookDecision;
|
|
3869
|
+
/**
|
|
3870
|
+
* HookHandlerType distinguishes how a lifecycle hook is executed.
|
|
3871
|
+
*/
|
|
3872
|
+
export type HookHandlerType = string;
|
|
3873
|
+
export declare const HookHandlerWebhook: HookHandlerType;
|
|
3874
|
+
export declare const HookHandlerTask: HookHandlerType;
|
|
3875
|
+
export declare const HookHandlerGate: HookHandlerType;
|
|
3876
|
+
/**
|
|
3877
|
+
* MergeStrategy defines how a delta field should be merged by consumers.
|
|
3878
|
+
*/
|
|
3879
|
+
export type MergeStrategy = string;
|
|
3880
|
+
export declare const MergeStrategyConcat: MergeStrategy;
|
|
3881
|
+
export declare const MergeStrategyReplace: MergeStrategy;
|
|
3882
|
+
export declare const MergeStrategyIndexed: MergeStrategy;
|
|
3883
|
+
export declare const MergeStrategyNested: MergeStrategy;
|
|
3884
|
+
/**
|
|
3885
|
+
* StreamDelta is the marker base for all streaming delta types.
|
|
3886
|
+
* Types embedding StreamDelta are routed through the delta channel.
|
|
3887
|
+
*/
|
|
3888
|
+
export interface StreamDelta {
|
|
3889
|
+
}
|
|
3890
|
+
/**
|
|
3891
|
+
* LLMOutput is the output envelope from an LLM provider task.
|
|
3892
|
+
* This is the contract between chat apps (sdk-py) and the agent runtime (go/api).
|
|
3893
|
+
*/
|
|
3894
|
+
export interface LLMOutput {
|
|
3895
|
+
response: string;
|
|
3896
|
+
reasoning?: string;
|
|
3897
|
+
tool_calls?: ToolCall[];
|
|
3898
|
+
usage?: LLMUsage;
|
|
3899
|
+
}
|
|
3900
|
+
/**
|
|
3901
|
+
* LLMDelta is a streaming delta for LLMOutput.
|
|
3902
|
+
*/
|
|
3903
|
+
export interface LLMDelta extends StreamDelta {
|
|
3904
|
+
response: string;
|
|
3905
|
+
reasoning?: string;
|
|
3906
|
+
tool_calls?: ToolCallDelta[];
|
|
3907
|
+
usage?: LLMUsage;
|
|
3908
|
+
}
|
|
3909
|
+
export declare const LLMDelta_fieldTags: {
|
|
3910
|
+
readonly response: {
|
|
3911
|
+
readonly merge: "concat";
|
|
3912
|
+
};
|
|
3913
|
+
readonly reasoning: {
|
|
3914
|
+
readonly merge: "concat";
|
|
3915
|
+
};
|
|
3916
|
+
readonly tool_calls: {
|
|
3917
|
+
readonly merge: "indexed";
|
|
3918
|
+
};
|
|
3919
|
+
readonly usage: {
|
|
3920
|
+
readonly merge: "replace";
|
|
3921
|
+
};
|
|
3922
|
+
};
|
|
3923
|
+
/**
|
|
3924
|
+
* ToolCallDelta is an incremental update to a tool call, identified by index.
|
|
3925
|
+
* First delta for an index carries ID, Type, and Function.Name.
|
|
3926
|
+
* Subsequent deltas carry only Function.Arguments fragments.
|
|
3927
|
+
*/
|
|
3928
|
+
export interface ToolCallDelta {
|
|
3929
|
+
index: number;
|
|
3930
|
+
id?: string;
|
|
3931
|
+
type?: ToolCallType;
|
|
3932
|
+
function?: ToolCallFunctionDelta;
|
|
3933
|
+
}
|
|
3934
|
+
export declare const ToolCallDelta_fieldTags: {
|
|
3935
|
+
readonly id: {
|
|
3936
|
+
readonly merge: "replace";
|
|
3937
|
+
};
|
|
3938
|
+
readonly type: {
|
|
3939
|
+
readonly merge: "replace";
|
|
3940
|
+
};
|
|
3941
|
+
readonly function: {
|
|
3942
|
+
readonly merge: "nested";
|
|
3943
|
+
};
|
|
3944
|
+
};
|
|
3945
|
+
/**
|
|
3946
|
+
* DeltaEvent is the generic streaming envelope on the NDJSON wire.
|
|
3947
|
+
* Delta is raw bytes — consumers parse based on context.
|
|
3948
|
+
*/
|
|
3949
|
+
export interface DeltaEvent {
|
|
3950
|
+
delta: any;
|
|
3951
|
+
seq: number;
|
|
3952
|
+
}
|
|
3953
|
+
/**
|
|
3954
|
+
* LLMDeltaEvent is a typed alias for backward compatibility.
|
|
3955
|
+
*/
|
|
3956
|
+
export type LLMDeltaEvent = DeltaEvent;
|
|
3957
|
+
/**
|
|
3958
|
+
* ToolCallFunctionDelta carries partial tool call function data.
|
|
3959
|
+
* Arguments is a raw JSON string fragment — concatenate by index, parse on completion.
|
|
3960
|
+
*/
|
|
3961
|
+
export interface ToolCallFunctionDelta {
|
|
3962
|
+
name?: string;
|
|
3963
|
+
arguments?: string;
|
|
3964
|
+
}
|
|
3965
|
+
export declare const ToolCallFunctionDelta_fieldTags: {
|
|
3966
|
+
readonly name: {
|
|
3967
|
+
readonly merge: "replace";
|
|
3968
|
+
};
|
|
3969
|
+
readonly arguments: {
|
|
3970
|
+
readonly merge: "concat";
|
|
3971
|
+
};
|
|
3972
|
+
};
|
|
3973
|
+
/**
|
|
3974
|
+
* ToolChoiceMode controls whether the model must call a tool this turn.
|
|
3975
|
+
*/
|
|
3976
|
+
export type ToolChoiceMode = string;
|
|
3977
|
+
export declare const ToolChoiceModeNone: ToolChoiceMode;
|
|
3978
|
+
export declare const ToolChoiceModeAuto: ToolChoiceMode;
|
|
3979
|
+
export declare const ToolChoiceModeRequired: ToolChoiceMode;
|
|
3980
|
+
export declare const ToolChoiceModeFunction: ToolChoiceMode;
|
|
3981
|
+
/**
|
|
3982
|
+
* ToolChoice constrains tool calling for a turn. Providers spell this
|
|
3983
|
+
* differently (OpenAI tool_choice, Anthropic tool_choice.type any/tool,
|
|
3984
|
+
* Gemini functionCallingConfig); apps translate at the provider boundary.
|
|
3985
|
+
*/
|
|
3986
|
+
export interface ToolChoice {
|
|
3987
|
+
mode: ToolChoiceMode;
|
|
3988
|
+
name?: string;
|
|
3989
|
+
}
|
|
3990
|
+
/**
|
|
3991
|
+
* ResponseFormatType selects how the model's output is constrained.
|
|
3992
|
+
*/
|
|
3993
|
+
export type ResponseFormatType = string;
|
|
3994
|
+
export declare const ResponseFormatTypeText: ResponseFormatType;
|
|
3995
|
+
export declare const ResponseFormatTypeJSONObject: ResponseFormatType;
|
|
3996
|
+
export declare const ResponseFormatTypeJSONSchema: ResponseFormatType;
|
|
3997
|
+
/**
|
|
3998
|
+
* ResponseFormat constrains the shape of the model's response.
|
|
3999
|
+
* JSONSchema is required when Type is json_schema.
|
|
4000
|
+
*/
|
|
4001
|
+
export interface ResponseFormat {
|
|
4002
|
+
type: ResponseFormatType;
|
|
4003
|
+
name?: string;
|
|
4004
|
+
json_schema?: any;
|
|
4005
|
+
strict?: boolean;
|
|
4006
|
+
}
|
|
4007
|
+
/**
|
|
4008
|
+
* ModelSettings groups sampling and generation parameters as a passable unit.
|
|
4009
|
+
*/
|
|
4010
|
+
export interface ModelSettings {
|
|
4011
|
+
temperature?: number;
|
|
4012
|
+
top_p?: number;
|
|
4013
|
+
top_k?: number;
|
|
4014
|
+
min_p?: number;
|
|
4015
|
+
frequency_penalty?: number;
|
|
4016
|
+
presence_penalty?: number;
|
|
4017
|
+
repetition_penalty?: number;
|
|
4018
|
+
seed?: number;
|
|
4019
|
+
stop?: string[];
|
|
4020
|
+
max_tokens?: number;
|
|
4021
|
+
reasoning_effort?: string;
|
|
4022
|
+
reasoning_max_tokens?: number;
|
|
4023
|
+
}
|
|
4024
|
+
/**
|
|
4025
|
+
* LLMSettings is everything that configures a generation independent of the
|
|
4026
|
+
* conversation: model, sampling, system prompt, tools and output constraints.
|
|
4027
|
+
* Embedded by both BaseLLMInput (an agent's stored configuration) and
|
|
4028
|
+
* LLMInput (a single call), so a field added here reaches both and the call
|
|
4029
|
+
* is built from the configuration by one assignment.
|
|
4030
|
+
*/
|
|
4031
|
+
export interface LLMSettings {
|
|
4032
|
+
model?: string;
|
|
4033
|
+
context_size: number;
|
|
4034
|
+
temperature?: number;
|
|
4035
|
+
top_p?: number;
|
|
4036
|
+
top_k?: number;
|
|
4037
|
+
min_p?: number;
|
|
4038
|
+
frequency_penalty?: number;
|
|
4039
|
+
presence_penalty?: number;
|
|
4040
|
+
repetition_penalty?: number;
|
|
4041
|
+
seed?: number;
|
|
4042
|
+
stop?: string[];
|
|
4043
|
+
max_tokens?: number;
|
|
4044
|
+
reasoning_effort?: string;
|
|
4045
|
+
reasoning_max_tokens?: number;
|
|
4046
|
+
system_prompt: string;
|
|
4047
|
+
tools?: Tool[];
|
|
4048
|
+
tool_choice?: ToolChoice;
|
|
4049
|
+
response_format?: ResponseFormat;
|
|
4050
|
+
}
|
|
4051
|
+
/**
|
|
4052
|
+
* LLMInput is the input envelope for an LLM provider task: the settings plus
|
|
4053
|
+
* the conversation, with the current turn split out of the context.
|
|
4054
|
+
*/
|
|
4055
|
+
export interface LLMInput {
|
|
4056
|
+
model: string;
|
|
4057
|
+
context_size: number;
|
|
4058
|
+
temperature?: number;
|
|
4059
|
+
top_p?: number;
|
|
4060
|
+
top_k?: number;
|
|
4061
|
+
min_p?: number;
|
|
4062
|
+
frequency_penalty?: number;
|
|
4063
|
+
presence_penalty?: number;
|
|
4064
|
+
repetition_penalty?: number;
|
|
4065
|
+
seed?: number;
|
|
4066
|
+
stop?: string[];
|
|
4067
|
+
max_tokens?: number;
|
|
4068
|
+
reasoning_effort?: string;
|
|
4069
|
+
reasoning_max_tokens?: number;
|
|
4070
|
+
system_prompt: string;
|
|
4071
|
+
tools?: Tool[];
|
|
4072
|
+
tool_choice?: ToolChoice;
|
|
4073
|
+
response_format?: ResponseFormat;
|
|
4074
|
+
context: LLMContextMessage[];
|
|
4075
|
+
role?: ChatMessageRole;
|
|
4076
|
+
text?: string;
|
|
4077
|
+
reasoning?: string;
|
|
4078
|
+
attachments?: FileRef[];
|
|
4079
|
+
images?: string[];
|
|
4080
|
+
files?: string[];
|
|
4081
|
+
tool_call_id?: string;
|
|
4082
|
+
}
|
|
4083
|
+
/**
|
|
4084
|
+
* LLMContextMessage represents a message in the chat context for LLM tasks
|
|
4085
|
+
*/
|
|
4086
|
+
export interface LLMContextMessage {
|
|
4087
|
+
role: ChatMessageRole;
|
|
4088
|
+
text?: string;
|
|
4089
|
+
reasoning?: string;
|
|
4090
|
+
images?: string[];
|
|
4091
|
+
files?: string[];
|
|
4092
|
+
tools?: Tool[];
|
|
4093
|
+
tool_calls?: ToolCall[];
|
|
4094
|
+
tool_call_id?: string;
|
|
4095
|
+
}
|
|
3062
4096
|
/**
|
|
3063
4097
|
* SecretScope defines the visibility/purpose of a secret
|
|
3064
4098
|
*/
|
|
@@ -3088,6 +4122,7 @@ export type PageType = string;
|
|
|
3088
4122
|
export declare const PageTypeDoc: PageType;
|
|
3089
4123
|
export declare const PageTypeBlog: PageType;
|
|
3090
4124
|
export declare const PageTypePage: PageType;
|
|
4125
|
+
export declare const PageTypeAnnouncement: PageType;
|
|
3091
4126
|
/**
|
|
3092
4127
|
* ToolInvocationStatus represents the execution status of a tool invocation
|
|
3093
4128
|
*/
|
|
@@ -3219,6 +4254,8 @@ export declare const KnowledgeTypeAgentConfig: KnowledgeType;
|
|
|
3219
4254
|
export type KnowledgeLifecycle = string;
|
|
3220
4255
|
export declare const KnowledgeLifecyclePermanent: KnowledgeLifecycle;
|
|
3221
4256
|
export declare const KnowledgeLifecycleDecay: KnowledgeLifecycle;
|
|
4257
|
+
export declare const KnowledgeLifecycleDraft: KnowledgeLifecycle;
|
|
4258
|
+
export declare const KnowledgeLifecycleDeprecated: KnowledgeLifecycle;
|
|
3222
4259
|
export type FilterOperator = string;
|
|
3223
4260
|
export declare const OpEqual: FilterOperator;
|
|
3224
4261
|
export declare const OpNotEqual: FilterOperator;
|
|
@@ -3333,44 +4370,25 @@ export declare const IntegrationStatusDisconnected: IntegrationStatus;
|
|
|
3333
4370
|
export declare const IntegrationStatusExpired: IntegrationStatus;
|
|
3334
4371
|
export declare const IntegrationStatusError: IntegrationStatus;
|
|
3335
4372
|
/**
|
|
3336
|
-
* IntegrationScope
|
|
4373
|
+
* IntegrationScope controls credential resolution priority and ownership.
|
|
3337
4374
|
*/
|
|
3338
4375
|
export type IntegrationScope = string;
|
|
4376
|
+
export declare const IntegrationScopeTeam: IntegrationScope;
|
|
4377
|
+
export declare const IntegrationScopePlatform: IntegrationScope;
|
|
4378
|
+
export declare const IntegrationScopeUser: IntegrationScope;
|
|
3339
4379
|
/**
|
|
3340
|
-
*
|
|
4380
|
+
* IntegrationGrant describes what an integration provides.
|
|
3341
4381
|
*/
|
|
3342
|
-
export
|
|
4382
|
+
export type IntegrationGrant = string;
|
|
3343
4383
|
/**
|
|
3344
|
-
*
|
|
4384
|
+
* IntegrationGrantCredentials provides OAuth app credentials (client_id/secret).
|
|
4385
|
+
* Users connect their own accounts against it. Only valid for type=oauth.
|
|
3345
4386
|
*/
|
|
3346
|
-
export declare const
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
export declare const
|
|
3351
|
-
export declare const WidgetNodeTypeBadge: WidgetNodeType;
|
|
3352
|
-
export declare const WidgetNodeTypeButton: WidgetNodeType;
|
|
3353
|
-
export declare const WidgetNodeTypeInput: WidgetNodeType;
|
|
3354
|
-
export declare const WidgetNodeTypeSelect: WidgetNodeType;
|
|
3355
|
-
export declare const WidgetNodeTypeCheckbox: WidgetNodeType;
|
|
3356
|
-
export declare const WidgetNodeTypeRow: WidgetNodeType;
|
|
3357
|
-
export declare const WidgetNodeTypeCol: WidgetNodeType;
|
|
3358
|
-
export declare const WidgetNodeTypeBox: WidgetNodeType;
|
|
3359
|
-
export declare const WidgetNodeTypeSpacer: WidgetNodeType;
|
|
3360
|
-
export declare const WidgetNodeTypeDivider: WidgetNodeType;
|
|
3361
|
-
export declare const WidgetNodeTypeForm: WidgetNodeType;
|
|
3362
|
-
export declare const WidgetNodeTypeTitle: WidgetNodeType;
|
|
3363
|
-
export declare const WidgetNodeTypeCaption: WidgetNodeType;
|
|
3364
|
-
export declare const WidgetNodeTypeLabel: WidgetNodeType;
|
|
3365
|
-
export declare const WidgetNodeTypeTextarea: WidgetNodeType;
|
|
3366
|
-
export declare const WidgetNodeTypeRadioGroup: WidgetNodeType;
|
|
3367
|
-
export declare const WidgetNodeTypeDatePicker: WidgetNodeType;
|
|
3368
|
-
export declare const WidgetNodeTypeIcon: WidgetNodeType;
|
|
3369
|
-
export declare const WidgetNodeTypeChart: WidgetNodeType;
|
|
3370
|
-
export declare const WidgetNodeTypeTransition: WidgetNodeType;
|
|
3371
|
-
export declare const WidgetNodeTypePlanList: WidgetNodeType;
|
|
3372
|
-
export declare const WidgetNodeTypeKeyValue: WidgetNodeType;
|
|
3373
|
-
export declare const WidgetNodeTypeStatusBadge: WidgetNodeType;
|
|
4387
|
+
export declare const IntegrationGrantCredentials: IntegrationGrant;
|
|
4388
|
+
/**
|
|
4389
|
+
* IntegrationGrantToken provides ready-to-use access (token, API key, etc.).
|
|
4390
|
+
*/
|
|
4391
|
+
export declare const IntegrationGrantToken: IntegrationGrant;
|
|
3374
4392
|
/**
|
|
3375
4393
|
* NotificationChannel represents a delivery channel
|
|
3376
4394
|
*/
|
|
@@ -3404,6 +4422,7 @@ export declare const NotificationTypeInvoice: NotificationType;
|
|
|
3404
4422
|
export declare const NotificationTypeSubscriptionCreated: NotificationType;
|
|
3405
4423
|
export declare const NotificationTypeSubscriptionCredit: NotificationType;
|
|
3406
4424
|
export declare const NotificationTypeSubscriptionCanceled: NotificationType;
|
|
4425
|
+
export declare const NotificationTypeSubscriptionPaymentFailed: NotificationType;
|
|
3407
4426
|
export declare const NotificationTypeSubscriptionTrialEnding: NotificationType;
|
|
3408
4427
|
/**
|
|
3409
4428
|
* Account notifications
|
|
@@ -3562,6 +4581,19 @@ export interface ToolCallFunction {
|
|
|
3562
4581
|
name: string;
|
|
3563
4582
|
arguments: StringEncodedMap;
|
|
3564
4583
|
}
|
|
4584
|
+
/**
|
|
4585
|
+
* LLMUsage contains token usage and performance metrics from an LLM response
|
|
4586
|
+
*/
|
|
4587
|
+
export interface LLMUsage {
|
|
4588
|
+
stop_reason: string;
|
|
4589
|
+
time_to_first_token: number;
|
|
4590
|
+
tokens_per_second: number;
|
|
4591
|
+
prompt_tokens: number;
|
|
4592
|
+
completion_tokens: number;
|
|
4593
|
+
total_tokens: number;
|
|
4594
|
+
reasoning_tokens: number;
|
|
4595
|
+
reasoning_time: number;
|
|
4596
|
+
}
|
|
3565
4597
|
/**
|
|
3566
4598
|
* FileRef is a lightweight reference to a file with essential metadata.
|
|
3567
4599
|
* Used in chat inputs/context instead of full File objects.
|
|
@@ -3608,3 +4640,13 @@ export declare const RoleGuest: Role;
|
|
|
3608
4640
|
export declare const RoleUser: Role;
|
|
3609
4641
|
export declare const RoleAdmin: Role;
|
|
3610
4642
|
export declare const RoleSystem: Role;
|
|
4643
|
+
/**
|
|
4644
|
+
* UtilityConfig defines a flow utility node — gate, selector, merge, or custom CEL.
|
|
4645
|
+
*/
|
|
4646
|
+
export interface UtilityConfig {
|
|
4647
|
+
preset: string;
|
|
4648
|
+
expression?: string;
|
|
4649
|
+
gate?: GateCondition;
|
|
4650
|
+
selector?: SelectorConfig;
|
|
4651
|
+
constant?: any;
|
|
4652
|
+
}
|