@inferencesh/sdk 0.6.50 → 0.6.52
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 +18 -18
- package/dist/agent/actions.js +28 -13
- package/dist/agent/reducer.js +10 -7
- package/dist/agent/types.d.ts +4 -1
- package/dist/api/agents.d.ts +21 -1
- package/dist/api/agents.js +103 -16
- package/dist/api/integrations.d.ts +6 -6
- package/dist/http/client.js +5 -1
- package/dist/index.d.ts +7 -1
- package/dist/types.d.ts +335 -126
- package/dist/types.js +112 -38
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -188,6 +188,10 @@ export interface CoreAppConfigDTO {
|
|
|
188
188
|
export interface AgentDTO extends BaseModelDTO, PermissionModelDTO, ProjectModelDTO {
|
|
189
189
|
namespace: string;
|
|
190
190
|
name: string;
|
|
191
|
+
/**
|
|
192
|
+
* Title is the human-readable name; empty falls back to Name.
|
|
193
|
+
*/
|
|
194
|
+
title: string;
|
|
191
195
|
images: AgentImages;
|
|
192
196
|
version_id: string;
|
|
193
197
|
version?: AgentVersionDTO;
|
|
@@ -212,6 +216,7 @@ export interface AgentVersionDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
212
216
|
export interface CreateAgentRequest {
|
|
213
217
|
id?: string;
|
|
214
218
|
name: string;
|
|
219
|
+
title?: string;
|
|
215
220
|
namespace?: string;
|
|
216
221
|
images?: AgentImages;
|
|
217
222
|
/**
|
|
@@ -333,7 +338,7 @@ export interface CreateAgentMessageRequest {
|
|
|
333
338
|
agent?: string;
|
|
334
339
|
tool_call_id?: string;
|
|
335
340
|
input: LLMInput;
|
|
336
|
-
|
|
341
|
+
channel_context?: ChannelContext;
|
|
337
342
|
agent_config?: AgentConfigInput;
|
|
338
343
|
agent_name?: string;
|
|
339
344
|
context?: {
|
|
@@ -387,7 +392,7 @@ export interface AppVersionInput {
|
|
|
387
392
|
};
|
|
388
393
|
kernel?: string;
|
|
389
394
|
required_secrets?: SecretRequirement[];
|
|
390
|
-
required_integrations?:
|
|
395
|
+
required_integrations?: CredentialRequirement[];
|
|
391
396
|
resources?: AppResources;
|
|
392
397
|
}
|
|
393
398
|
/**
|
|
@@ -397,6 +402,7 @@ export interface CreateAppRequest {
|
|
|
397
402
|
id?: string;
|
|
398
403
|
namespace?: string;
|
|
399
404
|
name: string;
|
|
405
|
+
title?: string;
|
|
400
406
|
description?: string;
|
|
401
407
|
agent_description?: string;
|
|
402
408
|
category?: AppCategory;
|
|
@@ -498,12 +504,30 @@ export interface SecretCreateRequest {
|
|
|
498
504
|
* provider's default (team). Requires the matching admin role.
|
|
499
505
|
*/
|
|
500
506
|
connection_scope?: CredentialScope;
|
|
507
|
+
/**
|
|
508
|
+
* ProviderName and ProviderWebsite describe a provider the platform does
|
|
509
|
+
* not list: the name the credential is shown under, and the site its
|
|
510
|
+
* logo is looked up from. Ignored for a provider the platform knows.
|
|
511
|
+
*/
|
|
512
|
+
provider_name?: string;
|
|
513
|
+
provider_website?: string;
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* SecretProviderRequest attaches an existing secret to a provider's
|
|
517
|
+
* credential — the link a secret gets when it is created against a provider.
|
|
518
|
+
* An empty Provider detaches it back to a plain secret.
|
|
519
|
+
*/
|
|
520
|
+
export interface SecretProviderRequest {
|
|
521
|
+
provider: string;
|
|
522
|
+
connection_scope?: CredentialScope;
|
|
523
|
+
provider_name?: string;
|
|
524
|
+
provider_website?: string;
|
|
501
525
|
}
|
|
502
526
|
export interface SecretUpdateRequest {
|
|
503
527
|
value: string;
|
|
504
528
|
description?: string;
|
|
505
529
|
}
|
|
506
|
-
export interface
|
|
530
|
+
export interface CredentialConnectRequest {
|
|
507
531
|
provider: string;
|
|
508
532
|
type: string;
|
|
509
533
|
scopes?: string[];
|
|
@@ -519,15 +543,15 @@ export interface IntegrationConnectRequest {
|
|
|
519
543
|
*/
|
|
520
544
|
connection_scope?: CredentialScope;
|
|
521
545
|
}
|
|
522
|
-
export interface
|
|
546
|
+
export interface CredentialCompleteOAuthRequest {
|
|
523
547
|
provider: string;
|
|
524
548
|
type: string;
|
|
525
549
|
code: string;
|
|
526
550
|
state: string;
|
|
527
551
|
code_verifier?: string;
|
|
528
552
|
}
|
|
529
|
-
export interface
|
|
530
|
-
integration?:
|
|
553
|
+
export interface CredentialConnectResponse {
|
|
554
|
+
integration?: CredentialDTO;
|
|
531
555
|
auth_url?: string;
|
|
532
556
|
state?: string;
|
|
533
557
|
code_verifier?: string;
|
|
@@ -972,6 +996,11 @@ export interface AppFunction {
|
|
|
972
996
|
* metadata by AppVersion.DeriveCapabilities.
|
|
973
997
|
*/
|
|
974
998
|
capabilities?: string[];
|
|
999
|
+
/**
|
|
1000
|
+
* Kind is how the function talks to its caller, from engine discovery:
|
|
1001
|
+
* a stream function declares a socket parameter. Empty means run.
|
|
1002
|
+
*/
|
|
1003
|
+
kind?: FunctionKind;
|
|
975
1004
|
}
|
|
976
1005
|
/**
|
|
977
1006
|
* AppImages holds developer-provided images for the app.
|
|
@@ -1017,12 +1046,12 @@ export interface SecretRequirement {
|
|
|
1017
1046
|
optional?: boolean;
|
|
1018
1047
|
}
|
|
1019
1048
|
/**
|
|
1020
|
-
*
|
|
1049
|
+
* CredentialRequirement defines an integration that an app requires.
|
|
1021
1050
|
* Key is the provider slug (e.g. "bytedance", "google").
|
|
1022
1051
|
* Secrets lists the specific env var names to inject from this integration.
|
|
1023
1052
|
* Scopes lists OAuth scopes needed (for OAuth integrations).
|
|
1024
1053
|
*/
|
|
1025
|
-
export interface
|
|
1054
|
+
export interface CredentialRequirement {
|
|
1026
1055
|
key: string;
|
|
1027
1056
|
description?: string;
|
|
1028
1057
|
optional?: boolean;
|
|
@@ -1035,6 +1064,13 @@ export interface IntegrationRequirement {
|
|
|
1035
1064
|
export interface AppDTO extends BaseModelDTO, PermissionModelDTO {
|
|
1036
1065
|
namespace: string;
|
|
1037
1066
|
name: string;
|
|
1067
|
+
/**
|
|
1068
|
+
* Title is the human-readable name shown wherever this resource is presented:
|
|
1069
|
+
* "Veo 3.1" for the app named veo-3-1. Name stays the immutable slug that
|
|
1070
|
+
* addresses it. Empty means the surface falls back to the name, so nothing
|
|
1071
|
+
* breaks for a resource that never sets one.
|
|
1072
|
+
*/
|
|
1073
|
+
title: string;
|
|
1038
1074
|
description: string;
|
|
1039
1075
|
agent_description: string;
|
|
1040
1076
|
category: AppCategory;
|
|
@@ -1070,7 +1106,7 @@ export interface AppVersionDTO extends BaseModelDTO {
|
|
|
1070
1106
|
};
|
|
1071
1107
|
kernel: string;
|
|
1072
1108
|
required_secrets?: SecretRequirement[];
|
|
1073
|
-
required_integrations?:
|
|
1109
|
+
required_integrations?: CredentialRequirement[];
|
|
1074
1110
|
resources: AppResources;
|
|
1075
1111
|
checksum?: string;
|
|
1076
1112
|
}
|
|
@@ -1128,6 +1164,10 @@ export interface PublicAppStoreDTO {
|
|
|
1128
1164
|
tags?: string[];
|
|
1129
1165
|
namespace: string;
|
|
1130
1166
|
name: string;
|
|
1167
|
+
/**
|
|
1168
|
+
* Title is the human-readable name; empty falls back to Name.
|
|
1169
|
+
*/
|
|
1170
|
+
title: string;
|
|
1131
1171
|
description: string;
|
|
1132
1172
|
images: AppImages;
|
|
1133
1173
|
is_featured: boolean;
|
|
@@ -1605,6 +1645,63 @@ export interface ChatMessageDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
1605
1645
|
tool_call_id?: string;
|
|
1606
1646
|
tool_invocations?: ToolInvocationDTO[];
|
|
1607
1647
|
}
|
|
1648
|
+
/**
|
|
1649
|
+
* CredentialDTO is the API response for a credential (never exposes secrets).
|
|
1650
|
+
*/
|
|
1651
|
+
export interface CredentialDTO extends BaseModelDTO, PermissionModelDTO {
|
|
1652
|
+
provider: string;
|
|
1653
|
+
type: CredentialType;
|
|
1654
|
+
grant?: CredentialGrant;
|
|
1655
|
+
scope: CredentialScope;
|
|
1656
|
+
status: CredentialStatus;
|
|
1657
|
+
display_name: string;
|
|
1658
|
+
icon_url?: string;
|
|
1659
|
+
account_identifier?: string;
|
|
1660
|
+
account_name?: string;
|
|
1661
|
+
scopes: StringSlice;
|
|
1662
|
+
expires_at?: string;
|
|
1663
|
+
vault_id?: string;
|
|
1664
|
+
metadata?: {
|
|
1665
|
+
[key: string]: any;
|
|
1666
|
+
};
|
|
1667
|
+
is_primary: boolean;
|
|
1668
|
+
error_message?: string;
|
|
1669
|
+
}
|
|
1670
|
+
/**
|
|
1671
|
+
* CredentialConfigDTO is the merged view: provider catalog + credential state.
|
|
1672
|
+
*/
|
|
1673
|
+
export interface CredentialConfigDTO {
|
|
1674
|
+
slug: string;
|
|
1675
|
+
provider: string;
|
|
1676
|
+
type: string;
|
|
1677
|
+
name: string;
|
|
1678
|
+
short_name: string;
|
|
1679
|
+
description: string;
|
|
1680
|
+
icon_url?: string;
|
|
1681
|
+
how_it_works?: string[];
|
|
1682
|
+
docs_url?: string;
|
|
1683
|
+
secret_fields?: SecretFieldConfig[];
|
|
1684
|
+
allows_byok: boolean;
|
|
1685
|
+
available: boolean;
|
|
1686
|
+
has_managed: boolean;
|
|
1687
|
+
grant?: CredentialGrant;
|
|
1688
|
+
/**
|
|
1689
|
+
* CustomProviderID is set when the provider is one the team defined
|
|
1690
|
+
* itself (models.CustomProvider), so the UI can offer edit and remove.
|
|
1691
|
+
*/
|
|
1692
|
+
custom_provider_id?: string;
|
|
1693
|
+
credential?: CredentialDTO;
|
|
1694
|
+
}
|
|
1695
|
+
/**
|
|
1696
|
+
* SecretFieldConfig defines a secret field for the UI
|
|
1697
|
+
*/
|
|
1698
|
+
export interface SecretFieldConfig {
|
|
1699
|
+
key: string;
|
|
1700
|
+
label: string;
|
|
1701
|
+
placeholder: string;
|
|
1702
|
+
sensitive: boolean;
|
|
1703
|
+
optional: boolean;
|
|
1704
|
+
}
|
|
1608
1705
|
/**
|
|
1609
1706
|
* SearchRequest represents a search request.
|
|
1610
1707
|
* Each model declares its own SearchFields() on the repository.
|
|
@@ -1889,6 +1986,10 @@ export type FlowNodeDataMap = {
|
|
|
1889
1986
|
export interface FlowDTO extends BaseModelDTO, PermissionModelDTO {
|
|
1890
1987
|
namespace: string;
|
|
1891
1988
|
name: string;
|
|
1989
|
+
/**
|
|
1990
|
+
* Title is the human-readable name; empty falls back to Name.
|
|
1991
|
+
*/
|
|
1992
|
+
title: string;
|
|
1892
1993
|
description: string;
|
|
1893
1994
|
card_image: string;
|
|
1894
1995
|
thumbnail: string;
|
|
@@ -2232,60 +2333,6 @@ export interface InstanceTypeBootTime {
|
|
|
2232
2333
|
updated_at: string;
|
|
2233
2334
|
sample_size: number;
|
|
2234
2335
|
}
|
|
2235
|
-
/**
|
|
2236
|
-
* IntegrationDTO for API responses (never exposes tokens)
|
|
2237
|
-
*/
|
|
2238
|
-
export interface IntegrationDTO extends BaseModelDTO, PermissionModelDTO {
|
|
2239
|
-
scope: IntegrationScope;
|
|
2240
|
-
grant?: IntegrationGrant;
|
|
2241
|
-
provider: IntegrationProvider;
|
|
2242
|
-
type: IntegrationAuthType;
|
|
2243
|
-
auth: IntegrationAuthType;
|
|
2244
|
-
status: IntegrationStatus;
|
|
2245
|
-
display_name: string;
|
|
2246
|
-
icon_url?: string;
|
|
2247
|
-
scopes: StringSlice;
|
|
2248
|
-
expires_at?: string;
|
|
2249
|
-
service_account_email?: string;
|
|
2250
|
-
metadata?: {
|
|
2251
|
-
[key: string]: any;
|
|
2252
|
-
};
|
|
2253
|
-
account_identifier?: string;
|
|
2254
|
-
account_name?: string;
|
|
2255
|
-
is_primary: boolean;
|
|
2256
|
-
error_message?: string;
|
|
2257
|
-
}
|
|
2258
|
-
/**
|
|
2259
|
-
* IntegrationConfigDTO is the API response for integration configuration
|
|
2260
|
-
*/
|
|
2261
|
-
export interface IntegrationConfigDTO {
|
|
2262
|
-
slug: string;
|
|
2263
|
-
provider: string;
|
|
2264
|
-
type: string;
|
|
2265
|
-
auth: string;
|
|
2266
|
-
name: string;
|
|
2267
|
-
short_name: string;
|
|
2268
|
-
description: string;
|
|
2269
|
-
icon_url?: string;
|
|
2270
|
-
how_it_works?: string[];
|
|
2271
|
-
docs_url?: string;
|
|
2272
|
-
secret_fields?: SecretFieldConfig[];
|
|
2273
|
-
allows_byok: boolean;
|
|
2274
|
-
available: boolean;
|
|
2275
|
-
has_managed: boolean;
|
|
2276
|
-
grant?: IntegrationGrant;
|
|
2277
|
-
integration?: IntegrationDTO;
|
|
2278
|
-
}
|
|
2279
|
-
/**
|
|
2280
|
-
* SecretFieldConfig defines a secret field for the UI
|
|
2281
|
-
*/
|
|
2282
|
-
export interface SecretFieldConfig {
|
|
2283
|
-
key: string;
|
|
2284
|
-
label: string;
|
|
2285
|
-
placeholder: string;
|
|
2286
|
-
sensitive: boolean;
|
|
2287
|
-
optional: boolean;
|
|
2288
|
-
}
|
|
2289
2336
|
export interface InterruptDTO extends BaseModelDTO, PermissionModelDTO {
|
|
2290
2337
|
run_id: string;
|
|
2291
2338
|
chat_id: string;
|
|
@@ -2349,6 +2396,10 @@ export interface SkillVersionDTO extends BaseModelDTO {
|
|
|
2349
2396
|
export interface KnowledgeDTO extends BaseModelDTO, PermissionModelDTO {
|
|
2350
2397
|
namespace: string;
|
|
2351
2398
|
name: string;
|
|
2399
|
+
/**
|
|
2400
|
+
* Title is the human-readable name; empty falls back to Name.
|
|
2401
|
+
*/
|
|
2402
|
+
title: string;
|
|
2352
2403
|
description: string;
|
|
2353
2404
|
type: KnowledgeType;
|
|
2354
2405
|
lifecycle: KnowledgeLifecycle;
|
|
@@ -2618,6 +2669,10 @@ export interface MCPServerDTO {
|
|
|
2618
2669
|
visibility: Visibility;
|
|
2619
2670
|
slug: string;
|
|
2620
2671
|
name: string;
|
|
2672
|
+
/**
|
|
2673
|
+
* Title is the human-readable name; empty falls back to Name.
|
|
2674
|
+
*/
|
|
2675
|
+
title: string;
|
|
2621
2676
|
description: string;
|
|
2622
2677
|
icon_url: string;
|
|
2623
2678
|
server_url: string;
|
|
@@ -2709,6 +2764,11 @@ export interface MenuItem {
|
|
|
2709
2764
|
id: string;
|
|
2710
2765
|
label: string;
|
|
2711
2766
|
slug?: string;
|
|
2767
|
+
/**
|
|
2768
|
+
* Path is the linked page's path, filled in when a menu is read so a client
|
|
2769
|
+
* can build the link without fetching each page. Never stored.
|
|
2770
|
+
*/
|
|
2771
|
+
path?: string;
|
|
2712
2772
|
page_id?: string;
|
|
2713
2773
|
url?: string;
|
|
2714
2774
|
icon?: string;
|
|
@@ -2729,6 +2789,7 @@ export interface PageDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
2729
2789
|
type: PageType;
|
|
2730
2790
|
metadata: PageMetadata;
|
|
2731
2791
|
slug: string;
|
|
2792
|
+
path: string;
|
|
2732
2793
|
/**
|
|
2733
2794
|
* PublishAt mirrors Metadata.PublishAt, which remains the field clients write.
|
|
2734
2795
|
* Surfaced here so a reader does not have to reach into the metadata blob.
|
|
@@ -2876,6 +2937,7 @@ export interface RefRouteDTO extends BaseModelDTO {
|
|
|
2876
2937
|
*/
|
|
2877
2938
|
export interface KnowledgeCreateRequest {
|
|
2878
2939
|
name: string;
|
|
2940
|
+
title?: string;
|
|
2879
2941
|
description?: string;
|
|
2880
2942
|
repo_url?: string;
|
|
2881
2943
|
type?: KnowledgeType;
|
|
@@ -2907,6 +2969,7 @@ export interface KnowledgeVersionInput {
|
|
|
2907
2969
|
* KnowledgeUpdateRequest is the request body for PUT /knowledge/{id}.
|
|
2908
2970
|
*/
|
|
2909
2971
|
export interface KnowledgeUpdateRequest {
|
|
2972
|
+
title?: string;
|
|
2910
2973
|
description?: string;
|
|
2911
2974
|
version?: KnowledgeVersionInput;
|
|
2912
2975
|
}
|
|
@@ -3075,7 +3138,7 @@ export interface SetupAction {
|
|
|
3075
3138
|
*/
|
|
3076
3139
|
export interface CheckRequirementsRequest {
|
|
3077
3140
|
secrets?: SecretRequirement[];
|
|
3078
|
-
integrations?:
|
|
3141
|
+
integrations?: CredentialRequirement[];
|
|
3079
3142
|
}
|
|
3080
3143
|
/**
|
|
3081
3144
|
* CheckRequirementsResponse is the API response for checking requirements
|
|
@@ -3111,6 +3174,43 @@ export interface SecretDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
3111
3174
|
masked_value: string;
|
|
3112
3175
|
description?: string;
|
|
3113
3176
|
scope?: SecretScope;
|
|
3177
|
+
/**
|
|
3178
|
+
* CredentialID is the credential this secret is attached to; empty for
|
|
3179
|
+
* a plain secret.
|
|
3180
|
+
*/
|
|
3181
|
+
credential_id?: string;
|
|
3182
|
+
}
|
|
3183
|
+
/**
|
|
3184
|
+
* SocketAccess is where one end of a socket dials and the credential it
|
|
3185
|
+
* presents. The task's caller gets one in the run response; the worker gets
|
|
3186
|
+
* its own with the dispatch.
|
|
3187
|
+
* Browsers cannot set headers on a WebSocket: they append
|
|
3188
|
+
* `?access_token=<token>` to the URL. Everything else sends
|
|
3189
|
+
* `Authorization: Bearer <token>`.
|
|
3190
|
+
*/
|
|
3191
|
+
export interface SocketAccess {
|
|
3192
|
+
id: string;
|
|
3193
|
+
url: string;
|
|
3194
|
+
token: string;
|
|
3195
|
+
expires_at: string;
|
|
3196
|
+
}
|
|
3197
|
+
/**
|
|
3198
|
+
* SocketDTO is a socket and what is known of its life. The traffic figures
|
|
3199
|
+
* come from the relay once the socket has closed.
|
|
3200
|
+
*/
|
|
3201
|
+
export interface SocketDTO extends BaseModelDTO, PermissionModelDTO {
|
|
3202
|
+
task_id: string;
|
|
3203
|
+
relay: string;
|
|
3204
|
+
status: SocketStatus;
|
|
3205
|
+
paired_at?: string;
|
|
3206
|
+
ended_at?: string;
|
|
3207
|
+
outcome?: SocketOutcome;
|
|
3208
|
+
close_code?: number;
|
|
3209
|
+
close_reason?: string;
|
|
3210
|
+
client_frames: number;
|
|
3211
|
+
client_bytes: number;
|
|
3212
|
+
worker_frames: number;
|
|
3213
|
+
worker_bytes: number;
|
|
3114
3214
|
}
|
|
3115
3215
|
/**
|
|
3116
3216
|
* MeStatsResponse is returned by GET /me/stats.
|
|
@@ -3358,6 +3458,11 @@ export interface TaskResultDTO {
|
|
|
3358
3458
|
created_at: string;
|
|
3359
3459
|
updated_at: string;
|
|
3360
3460
|
run_at?: string;
|
|
3461
|
+
/**
|
|
3462
|
+
* Socket is set when the function is a stream function: the caller dials
|
|
3463
|
+
* it to talk to the app. POST /sockets/{id}/access issues a fresh one.
|
|
3464
|
+
*/
|
|
3465
|
+
socket?: SocketAccess;
|
|
3361
3466
|
}
|
|
3362
3467
|
/**
|
|
3363
3468
|
* TaskLogsDTO is a lightweight response for task logs endpoint.
|
|
@@ -3864,11 +3969,11 @@ export declare const ChatMessageContentTypeReasoning: ChatMessageContentType;
|
|
|
3864
3969
|
export declare const ChatMessageContentTypeImage: ChatMessageContentType;
|
|
3865
3970
|
export declare const ChatMessageContentTypeFile: ChatMessageContentType;
|
|
3866
3971
|
export declare const ChatMessageContentTypeTool: ChatMessageContentType;
|
|
3867
|
-
export type
|
|
3868
|
-
export declare const
|
|
3869
|
-
export declare const
|
|
3870
|
-
export declare const
|
|
3871
|
-
export declare const
|
|
3972
|
+
export type ChannelType = string;
|
|
3973
|
+
export declare const ChannelTypeSlack: ChannelType;
|
|
3974
|
+
export declare const ChannelTypeDiscord: ChannelType;
|
|
3975
|
+
export declare const ChannelTypeTeams: ChannelType;
|
|
3976
|
+
export declare const ChannelTypeTelegram: ChannelType;
|
|
3872
3977
|
/**
|
|
3873
3978
|
* ChatData contains agent-specific data for a chat session
|
|
3874
3979
|
*/
|
|
@@ -3899,11 +4004,13 @@ export interface ChatMessageContent {
|
|
|
3899
4004
|
tool_calls?: ToolCall[];
|
|
3900
4005
|
}
|
|
3901
4006
|
/**
|
|
3902
|
-
*
|
|
4007
|
+
* ChannelContext records which channel a chat or message came through
|
|
4008
|
+
* (slack, telegram, an OpenAI-dialect tag, ...) and the transport metadata
|
|
4009
|
+
* needed to route a reply back to it.
|
|
3903
4010
|
*/
|
|
3904
|
-
export interface
|
|
3905
|
-
|
|
3906
|
-
|
|
4011
|
+
export interface ChannelContext {
|
|
4012
|
+
channel_type?: ChannelType;
|
|
4013
|
+
channel_metadata?: any;
|
|
3907
4014
|
}
|
|
3908
4015
|
/**
|
|
3909
4016
|
* EngineStatus represents the status of an engine.
|
|
@@ -4135,18 +4242,6 @@ export declare const ToolCallDelta_fieldTags: {
|
|
|
4135
4242
|
readonly merge: "nested";
|
|
4136
4243
|
};
|
|
4137
4244
|
};
|
|
4138
|
-
/**
|
|
4139
|
-
* DeltaEvent is the generic streaming envelope on the NDJSON wire.
|
|
4140
|
-
* Delta is raw bytes — consumers parse based on context.
|
|
4141
|
-
*/
|
|
4142
|
-
export interface DeltaEvent {
|
|
4143
|
-
delta: any;
|
|
4144
|
-
seq: number;
|
|
4145
|
-
}
|
|
4146
|
-
/**
|
|
4147
|
-
* LLMDeltaEvent is a typed alias for backward compatibility.
|
|
4148
|
-
*/
|
|
4149
|
-
export type LLMDeltaEvent = DeltaEvent;
|
|
4150
4245
|
/**
|
|
4151
4246
|
* ToolCallFunctionDelta carries partial tool call function data.
|
|
4152
4247
|
* Arguments is a raw JSON string fragment — concatenate by index, parse on completion.
|
|
@@ -4381,6 +4476,11 @@ export type RefRouteType = string;
|
|
|
4381
4476
|
export declare const RefRouteTypeApp: RefRouteType;
|
|
4382
4477
|
export declare const RefRouteTypeAgent: RefRouteType;
|
|
4383
4478
|
export declare const RefRouteTypeSkill: RefRouteType;
|
|
4479
|
+
/**
|
|
4480
|
+
* RefRouteTypeURL routes a site path to another (/docs/api-files →
|
|
4481
|
+
* /docs/api/sdk/files). Alias and target are literal paths, not refs.
|
|
4482
|
+
*/
|
|
4483
|
+
export declare const RefRouteTypeURL: RefRouteType;
|
|
4384
4484
|
export type RefRouteMode = string;
|
|
4385
4485
|
export declare const RefRouteModeRewrite: RefRouteMode;
|
|
4386
4486
|
export declare const RefRouteModeRedirect: RefRouteMode;
|
|
@@ -4484,59 +4584,75 @@ export declare const ContentViolenceGraphic: ContentRating;
|
|
|
4484
4584
|
export declare const ContentGore: ContentRating;
|
|
4485
4585
|
export declare const ContentUnrated: ContentRating;
|
|
4486
4586
|
/**
|
|
4487
|
-
*
|
|
4587
|
+
* CredentialProvider names the external service a credential is for.
|
|
4588
|
+
*/
|
|
4589
|
+
export type CredentialProvider = string;
|
|
4590
|
+
/**
|
|
4591
|
+
* Credential.Provider is a plain string; cast with string(...) when assigning.
|
|
4592
|
+
*/
|
|
4593
|
+
export declare const CredentialProviderGoogle: CredentialProvider;
|
|
4594
|
+
/**
|
|
4595
|
+
* Credential.Provider is a plain string; cast with string(...) when assigning.
|
|
4488
4596
|
*/
|
|
4489
|
-
export
|
|
4490
|
-
export declare const IntegrationProviderGoogle: IntegrationProvider;
|
|
4491
|
-
export declare const IntegrationProviderGoogleSA: IntegrationProvider;
|
|
4492
|
-
export declare const IntegrationProviderSlack: IntegrationProvider;
|
|
4493
|
-
export declare const IntegrationProviderNotion: IntegrationProvider;
|
|
4494
|
-
export declare const IntegrationProviderGitHub: IntegrationProvider;
|
|
4495
|
-
export declare const IntegrationProviderX: IntegrationProvider;
|
|
4496
|
-
export declare const IntegrationProviderMicrosoft: IntegrationProvider;
|
|
4497
|
-
export declare const IntegrationProviderSalesforce: IntegrationProvider;
|
|
4498
|
-
export declare const IntegrationProviderDiscord: IntegrationProvider;
|
|
4499
|
-
export declare const IntegrationProviderGCP: IntegrationProvider;
|
|
4500
|
-
export declare const IntegrationProviderMCP: IntegrationProvider;
|
|
4501
|
-
export declare const IntegrationProviderReddit: IntegrationProvider;
|
|
4597
|
+
export declare const CredentialProviderGoogleSA: CredentialProvider;
|
|
4502
4598
|
/**
|
|
4503
|
-
*
|
|
4599
|
+
* Credential.Provider is a plain string; cast with string(...) when assigning.
|
|
4504
4600
|
*/
|
|
4505
|
-
export
|
|
4506
|
-
export declare const IntegrationAuthTypeServiceAccount: IntegrationAuthType;
|
|
4507
|
-
export declare const IntegrationAuthTypeOAuth: IntegrationAuthType;
|
|
4508
|
-
export declare const IntegrationAuthTypeAPIKey: IntegrationAuthType;
|
|
4509
|
-
export declare const IntegrationAuthTypeWIF: IntegrationAuthType;
|
|
4510
|
-
export declare const IntegrationAuthTypeMCP: IntegrationAuthType;
|
|
4601
|
+
export declare const CredentialProviderSlack: CredentialProvider;
|
|
4511
4602
|
/**
|
|
4512
|
-
*
|
|
4603
|
+
* Credential.Provider is a plain string; cast with string(...) when assigning.
|
|
4513
4604
|
*/
|
|
4514
|
-
export
|
|
4515
|
-
export declare const IntegrationStatusPending: IntegrationStatus;
|
|
4516
|
-
export declare const IntegrationStatusConnected: IntegrationStatus;
|
|
4517
|
-
export declare const IntegrationStatusDisconnected: IntegrationStatus;
|
|
4518
|
-
export declare const IntegrationStatusExpired: IntegrationStatus;
|
|
4519
|
-
export declare const IntegrationStatusError: IntegrationStatus;
|
|
4605
|
+
export declare const CredentialProviderNotion: CredentialProvider;
|
|
4520
4606
|
/**
|
|
4521
|
-
*
|
|
4607
|
+
* Credential.Provider is a plain string; cast with string(...) when assigning.
|
|
4522
4608
|
*/
|
|
4523
|
-
export
|
|
4524
|
-
export declare const IntegrationScopeTeam: IntegrationScope;
|
|
4525
|
-
export declare const IntegrationScopePlatform: IntegrationScope;
|
|
4526
|
-
export declare const IntegrationScopeUser: IntegrationScope;
|
|
4609
|
+
export declare const CredentialProviderGitHub: CredentialProvider;
|
|
4527
4610
|
/**
|
|
4528
|
-
*
|
|
4611
|
+
* Credential.Provider is a plain string; cast with string(...) when assigning.
|
|
4529
4612
|
*/
|
|
4530
|
-
export
|
|
4613
|
+
export declare const CredentialProviderX: CredentialProvider;
|
|
4531
4614
|
/**
|
|
4532
|
-
*
|
|
4533
|
-
* Users connect their own accounts against it. Only valid for type=oauth.
|
|
4615
|
+
* Credential.Provider is a plain string; cast with string(...) when assigning.
|
|
4534
4616
|
*/
|
|
4535
|
-
export declare const
|
|
4617
|
+
export declare const CredentialProviderMicrosoft: CredentialProvider;
|
|
4536
4618
|
/**
|
|
4537
|
-
*
|
|
4619
|
+
* Credential.Provider is a plain string; cast with string(...) when assigning.
|
|
4538
4620
|
*/
|
|
4539
|
-
export declare const
|
|
4621
|
+
export declare const CredentialProviderSalesforce: CredentialProvider;
|
|
4622
|
+
/**
|
|
4623
|
+
* Credential.Provider is a plain string; cast with string(...) when assigning.
|
|
4624
|
+
*/
|
|
4625
|
+
export declare const CredentialProviderDiscord: CredentialProvider;
|
|
4626
|
+
/**
|
|
4627
|
+
* Credential.Provider is a plain string; cast with string(...) when assigning.
|
|
4628
|
+
*/
|
|
4629
|
+
export declare const CredentialProviderGCP: CredentialProvider;
|
|
4630
|
+
/**
|
|
4631
|
+
* Credential.Provider is a plain string; cast with string(...) when assigning.
|
|
4632
|
+
*/
|
|
4633
|
+
export declare const CredentialProviderMCP: CredentialProvider;
|
|
4634
|
+
/**
|
|
4635
|
+
* Credential.Provider is a plain string; cast with string(...) when assigning.
|
|
4636
|
+
*/
|
|
4637
|
+
export declare const CredentialProviderReddit: CredentialProvider;
|
|
4638
|
+
/**
|
|
4639
|
+
* CredentialType describes the credential category.
|
|
4640
|
+
*/
|
|
4641
|
+
export type CredentialType = string;
|
|
4642
|
+
export declare const CredentialTypeOAuth: CredentialType;
|
|
4643
|
+
export declare const CredentialTypeAPIKey: CredentialType;
|
|
4644
|
+
export declare const CredentialTypeMCP: CredentialType;
|
|
4645
|
+
export declare const CredentialTypeServiceAccount: CredentialType;
|
|
4646
|
+
export declare const CredentialTypeWIF: CredentialType;
|
|
4647
|
+
/**
|
|
4648
|
+
* CredentialStatus represents the lifecycle state of a credential.
|
|
4649
|
+
*/
|
|
4650
|
+
export type CredentialStatus = string;
|
|
4651
|
+
export declare const CredentialStatusPending: CredentialStatus;
|
|
4652
|
+
export declare const CredentialStatusConnected: CredentialStatus;
|
|
4653
|
+
export declare const CredentialStatusDisconnected: CredentialStatus;
|
|
4654
|
+
export declare const CredentialStatusExpired: CredentialStatus;
|
|
4655
|
+
export declare const CredentialStatusError: CredentialStatus;
|
|
4540
4656
|
/**
|
|
4541
4657
|
* CredentialScope controls resolution priority and ownership.
|
|
4542
4658
|
*/
|
|
@@ -4552,6 +4668,12 @@ export declare const CredentialScopeOrg: CredentialScope;
|
|
|
4552
4668
|
export declare const CredentialScopeTeam: CredentialScope;
|
|
4553
4669
|
export declare const CredentialScopeUser: CredentialScope;
|
|
4554
4670
|
export declare const CredentialScopeAgent: CredentialScope;
|
|
4671
|
+
/**
|
|
4672
|
+
* CredentialGrant describes what a credential provides.
|
|
4673
|
+
*/
|
|
4674
|
+
export type CredentialGrant = string;
|
|
4675
|
+
export declare const CredentialGrantCredentials: CredentialGrant;
|
|
4676
|
+
export declare const CredentialGrantToken: CredentialGrant;
|
|
4555
4677
|
/**
|
|
4556
4678
|
* NotificationChannel represents a delivery channel
|
|
4557
4679
|
*/
|
|
@@ -4629,6 +4751,85 @@ export declare const NotificationStatusDelivered: NotificationStatus;
|
|
|
4629
4751
|
export declare const NotificationStatusFailed: NotificationStatus;
|
|
4630
4752
|
export declare const NotificationStatusBounced: NotificationStatus;
|
|
4631
4753
|
export declare const NotificationStatusCancelled: NotificationStatus;
|
|
4754
|
+
/**
|
|
4755
|
+
* FunctionKind is how an app function talks to its caller.
|
|
4756
|
+
*/
|
|
4757
|
+
export type FunctionKind = string;
|
|
4758
|
+
/**
|
|
4759
|
+
* FunctionKindRun takes an input and returns an output (optionally
|
|
4760
|
+
* yielding progress on the way). The zero value means this.
|
|
4761
|
+
*/
|
|
4762
|
+
export declare const FunctionKindRun: FunctionKind;
|
|
4763
|
+
/**
|
|
4764
|
+
* FunctionKindStream holds a socket with the caller for the life of the
|
|
4765
|
+
* task: frames both ways, no input/output exchange.
|
|
4766
|
+
*/
|
|
4767
|
+
export declare const FunctionKindStream: FunctionKind;
|
|
4768
|
+
/**
|
|
4769
|
+
* SocketStatus is where a socket is in its life.
|
|
4770
|
+
*/
|
|
4771
|
+
export type SocketStatus = string;
|
|
4772
|
+
/**
|
|
4773
|
+
* SocketStatusPending: opened, and the two ends have not met yet. An end
|
|
4774
|
+
* that gave up waiting may dial again, so an unpaired end does not close
|
|
4775
|
+
* the socket; the task ending does.
|
|
4776
|
+
*/
|
|
4777
|
+
export declare const SocketStatusPending: SocketStatus;
|
|
4778
|
+
/**
|
|
4779
|
+
* SocketStatusOpen: both ends are connected through the relay.
|
|
4780
|
+
*/
|
|
4781
|
+
export declare const SocketStatusOpen: SocketStatus;
|
|
4782
|
+
/**
|
|
4783
|
+
* SocketStatusClosed: over. Outcome says why.
|
|
4784
|
+
*/
|
|
4785
|
+
export declare const SocketStatusClosed: SocketStatus;
|
|
4786
|
+
/**
|
|
4787
|
+
* SocketOutcome is why a socket closed.
|
|
4788
|
+
*/
|
|
4789
|
+
export type SocketOutcome = string;
|
|
4790
|
+
export declare const SocketOutcomeClientClosed: SocketOutcome;
|
|
4791
|
+
export declare const SocketOutcomeWorkerClosed: SocketOutcome;
|
|
4792
|
+
/**
|
|
4793
|
+
* SocketOutcomeDrained: the relay restarted under a live socket.
|
|
4794
|
+
*/
|
|
4795
|
+
export declare const SocketOutcomeDrained: SocketOutcome;
|
|
4796
|
+
/**
|
|
4797
|
+
* SocketOutcomeNeverPaired: the task ended before the two ends met.
|
|
4798
|
+
*/
|
|
4799
|
+
export declare const SocketOutcomeNeverPaired: SocketOutcome;
|
|
4800
|
+
/**
|
|
4801
|
+
* SocketOutcomeTaskEnded: the task ended and the relay's own account of
|
|
4802
|
+
* the socket has not arrived (yet).
|
|
4803
|
+
*/
|
|
4804
|
+
export declare const SocketOutcomeTaskEnded: SocketOutcome;
|
|
4805
|
+
/**
|
|
4806
|
+
* DeltaEvent is the generic streaming envelope on the NDJSON wire.
|
|
4807
|
+
* Delta is raw bytes — consumers parse based on context.
|
|
4808
|
+
* It is deliberately not LLM-specific: agent lifecycle events and any future
|
|
4809
|
+
* delta producer share this envelope, which is why the identity field below is
|
|
4810
|
+
* a bare resource id rather than anything named after chat.
|
|
4811
|
+
*/
|
|
4812
|
+
export interface DeltaEvent {
|
|
4813
|
+
delta: any;
|
|
4814
|
+
seq: number;
|
|
4815
|
+
/**
|
|
4816
|
+
* ResourceID names what this delta belongs to — for an LLM task, the
|
|
4817
|
+
* assistant chat message being generated.
|
|
4818
|
+
* Without it a consumer can only assume deltas belong to whatever it is
|
|
4819
|
+
* currently building, which breaks the moment a message carries no text
|
|
4820
|
+
* (a tool-call-only turn) and the previous message's state is still live.
|
|
4821
|
+
* The producer copies this from the graph and never interprets it: ids come
|
|
4822
|
+
* from one idgen space, so a consumer matches against the ids it already
|
|
4823
|
+
* tracks and buffers anything it does not recognise yet. A resource_type
|
|
4824
|
+
* companion is deliberately absent — nothing needs to route before matching.
|
|
4825
|
+
* Empty when the task has no execution edge (a plain app run).
|
|
4826
|
+
*/
|
|
4827
|
+
resource_id?: string;
|
|
4828
|
+
}
|
|
4829
|
+
/**
|
|
4830
|
+
* LLMDeltaEvent is a typed alias for backward compatibility.
|
|
4831
|
+
*/
|
|
4832
|
+
export type LLMDeltaEvent = DeltaEvent;
|
|
4632
4833
|
/**
|
|
4633
4834
|
* TaskStatus represents the state of a task in its lifecycle.
|
|
4634
4835
|
*/
|
|
@@ -4701,15 +4902,23 @@ export declare const RoleGuest: Role;
|
|
|
4701
4902
|
export declare const RoleUser: Role;
|
|
4702
4903
|
export declare const RoleAdmin: Role;
|
|
4703
4904
|
export declare const RoleSystem: Role;
|
|
4905
|
+
export type UtilityPreset = string;
|
|
4906
|
+
export declare const UtilityPresetGate: UtilityPreset;
|
|
4907
|
+
export declare const UtilityPresetSelector: UtilityPreset;
|
|
4908
|
+
export declare const UtilityPresetMerge: UtilityPreset;
|
|
4909
|
+
export declare const UtilityPresetConstant: UtilityPreset;
|
|
4704
4910
|
/**
|
|
4705
4911
|
* UtilityConfig defines a flow utility node — gate, selector, merge, or custom CEL.
|
|
4706
4912
|
*/
|
|
4707
4913
|
export interface UtilityConfig {
|
|
4708
|
-
preset:
|
|
4914
|
+
preset: UtilityPreset;
|
|
4709
4915
|
expression?: string;
|
|
4710
4916
|
gate?: GateCondition;
|
|
4711
4917
|
selector?: SelectorConfig;
|
|
4712
4918
|
constant?: any;
|
|
4919
|
+
random?: boolean;
|
|
4920
|
+
random_min?: number;
|
|
4921
|
+
random_max?: number;
|
|
4713
4922
|
}
|
|
4714
4923
|
/**
|
|
4715
4924
|
* AgentEventType identifies what happened in an agent run.
|