@inferencesh/sdk 0.10.0 → 0.11.0
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/dist/agent/actions.js +4 -7
- package/dist/agent/reducer.js +4 -3
- package/dist/api/agents.js +17 -22
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -2
- package/dist/live/protocol.d.ts +19 -0
- package/dist/live/protocol.js +21 -0
- package/dist/live/schema.d.ts +0 -8
- package/dist/live/schema.js +1 -10
- package/dist/live/session.js +2 -5
- package/dist/types.d.ts +256 -101
- package/dist/types.js +90 -7
- package/dist/utils.d.ts +12 -1
- package/dist/utils.js +30 -2
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ export interface ClientToolConfig {
|
|
|
103
103
|
/**
|
|
104
104
|
* ToolAuthType says how an HTTP tool authenticates.
|
|
105
105
|
*/
|
|
106
|
-
export type ToolAuthType =
|
|
106
|
+
export type ToolAuthType = "none" | "credential" | "api_key" | "bearer";
|
|
107
107
|
/**
|
|
108
108
|
* ToolAuthTypeNone sends no credentials (same as leaving type empty).
|
|
109
109
|
*/
|
|
@@ -316,7 +316,7 @@ export interface APIResponse<T extends any> {
|
|
|
316
316
|
error?: APIError;
|
|
317
317
|
}
|
|
318
318
|
export interface APIError {
|
|
319
|
-
code:
|
|
319
|
+
code: ErrorCode;
|
|
320
320
|
message: string;
|
|
321
321
|
suggestions?: string[];
|
|
322
322
|
meta?: {
|
|
@@ -369,6 +369,10 @@ export interface ApiAgentRunRequest {
|
|
|
369
369
|
[key: string]: string;
|
|
370
370
|
};
|
|
371
371
|
stream?: boolean;
|
|
372
|
+
/**
|
|
373
|
+
* ChannelContext is recorded on the chat the first time it is seen.
|
|
374
|
+
*/
|
|
375
|
+
channel_context?: ChannelContext;
|
|
372
376
|
}
|
|
373
377
|
/**
|
|
374
378
|
* CreateAgentMessageRequest is the request for creating agent messages.
|
|
@@ -675,7 +679,7 @@ export interface EstimateCostResponse {
|
|
|
675
679
|
/**
|
|
676
680
|
* Scope represents an API key permission scope string.
|
|
677
681
|
*/
|
|
678
|
-
export type Scope =
|
|
682
|
+
export type Scope = "*" | "agents" | "apps" | "conversations" | "files" | "datastores" | "templates" | "flows" | "projects" | "teams" | "billing" | "artifacts" | "agents:read" | "agents:write" | "agents:execute" | "apps:read" | "apps:write" | "apps:execute" | "conversations:read" | "conversations:write" | "files:read" | "files:write" | "datastores:read" | "datastores:write" | "flows:read" | "flows:write" | "flows:execute" | "projects:read" | "projects:write" | "teams:read" | "teams:write" | "billing:read" | "billing:write" | "secrets:read" | "secrets:write" | "credentials:read" | "credentials:write" | "engines:read" | "engines:write" | "remotes:read" | "remotes:write" | "apikeys:read" | "apikeys:write" | "knowledge:read" | "knowledge:write" | "artifacts:read" | "artifacts:write" | "user:read" | "user:write" | "settings:read" | "settings:write";
|
|
679
683
|
/**
|
|
680
684
|
* API Key Scopes - hierarchical permission system.
|
|
681
685
|
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
@@ -740,6 +744,12 @@ export declare const ScopeTeams: Scope;
|
|
|
740
744
|
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
741
745
|
*/
|
|
742
746
|
export declare const ScopeBilling: Scope;
|
|
747
|
+
/**
|
|
748
|
+
* API Key Scopes - hierarchical permission system.
|
|
749
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
750
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
751
|
+
*/
|
|
752
|
+
export declare const ScopeArtifacts: Scope;
|
|
743
753
|
/**
|
|
744
754
|
* Action-level scopes for Agents
|
|
745
755
|
*/
|
|
@@ -879,6 +889,16 @@ export declare const ScopeEnginesRead: Scope;
|
|
|
879
889
|
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
880
890
|
*/
|
|
881
891
|
export declare const ScopeEnginesWrite: Scope;
|
|
892
|
+
/**
|
|
893
|
+
* Action-level scopes for Remotes
|
|
894
|
+
*/
|
|
895
|
+
export declare const ScopeRemotesRead: Scope;
|
|
896
|
+
/**
|
|
897
|
+
* API Key Scopes - hierarchical permission system.
|
|
898
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
899
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
900
|
+
*/
|
|
901
|
+
export declare const ScopeRemotesWrite: Scope;
|
|
882
902
|
/**
|
|
883
903
|
* Action-level scopes for API Keys
|
|
884
904
|
*/
|
|
@@ -902,12 +922,6 @@ export declare const ScopeKnowledgeWrite: Scope;
|
|
|
902
922
|
/**
|
|
903
923
|
* Action-level scopes for Artifacts (published HTML/Markdown pages)
|
|
904
924
|
*/
|
|
905
|
-
export declare const ScopeArtifacts: Scope;
|
|
906
|
-
/**
|
|
907
|
-
* API Key Scopes - hierarchical permission system.
|
|
908
|
-
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
909
|
-
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
910
|
-
*/
|
|
911
925
|
export declare const ScopeArtifactsRead: Scope;
|
|
912
926
|
/**
|
|
913
927
|
* API Key Scopes - hierarchical permission system.
|
|
@@ -938,7 +952,7 @@ export declare const ScopeSettingsWrite: Scope;
|
|
|
938
952
|
/**
|
|
939
953
|
* ScopeGroup identifies a category of scopes for UI grouping
|
|
940
954
|
*/
|
|
941
|
-
export type ScopeGroup =
|
|
955
|
+
export type ScopeGroup = "agents" | "apps" | "conversations" | "files" | "datastores" | "flows" | "projects" | "teams" | "billing" | "secrets" | "credentials" | "engines" | "remotes" | "apikeys" | "knowledge" | "artifacts" | "user" | "settings";
|
|
942
956
|
export declare const ScopeGroupAgents: ScopeGroup;
|
|
943
957
|
export declare const ScopeGroupApps: ScopeGroup;
|
|
944
958
|
export declare const ScopeGroupConversations: ScopeGroup;
|
|
@@ -951,6 +965,7 @@ export declare const ScopeGroupBilling: ScopeGroup;
|
|
|
951
965
|
export declare const ScopeGroupSecrets: ScopeGroup;
|
|
952
966
|
export declare const ScopeGroupCredentials: ScopeGroup;
|
|
953
967
|
export declare const ScopeGroupEngines: ScopeGroup;
|
|
968
|
+
export declare const ScopeGroupRemotes: ScopeGroup;
|
|
954
969
|
export declare const ScopeGroupApiKeys: ScopeGroup;
|
|
955
970
|
export declare const ScopeGroupKnowledge: ScopeGroup;
|
|
956
971
|
export declare const ScopeGroupArtifacts: ScopeGroup;
|
|
@@ -2019,6 +2034,80 @@ export interface EntitlementErrorMeta {
|
|
|
2019
2034
|
addon_plan_name?: string;
|
|
2020
2035
|
addon_plan_price?: number;
|
|
2021
2036
|
}
|
|
2037
|
+
/**
|
|
2038
|
+
* ErrorCode is the machine-readable error code of an API error: the last
|
|
2039
|
+
* segment of the problem+json type URI (https://api.inference.sh/errors/<code>)
|
|
2040
|
+
* and APIError.Code on the legacy envelope. Clients branch on these, so a
|
|
2041
|
+
* code is a named const here, where it generates into models and the SDKs.
|
|
2042
|
+
*/
|
|
2043
|
+
export type ErrorCode = "invalid_request" | "validation_error" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "name_conflict" | "already_exists" | "not_configured" | "method_not_allowed" | "rate_limited" | "internal_error" | "team_role_required" | "blocked_by_usage_policy" | "otp_required" | "mcp_auth_expired" | "limit_exceeded" | "feature_not_available" | "entitlement_unavailable" | "payment_required" | "payment_method_required" | "agents_disabled" | "remote_offline" | "remote_timeout" | "harness_not_drivable" | "harness_too_old";
|
|
2044
|
+
export declare const ErrorCodeInvalidRequest: ErrorCode;
|
|
2045
|
+
export declare const ErrorCodeValidationError: ErrorCode;
|
|
2046
|
+
export declare const ErrorCodeUnauthorized: ErrorCode;
|
|
2047
|
+
export declare const ErrorCodeForbidden: ErrorCode;
|
|
2048
|
+
export declare const ErrorCodeNotFound: ErrorCode;
|
|
2049
|
+
export declare const ErrorCodeConflict: ErrorCode;
|
|
2050
|
+
export declare const ErrorCodeNameConflict: ErrorCode;
|
|
2051
|
+
export declare const ErrorCodeAlreadyExists: ErrorCode;
|
|
2052
|
+
export declare const ErrorCodeNotConfigured: ErrorCode;
|
|
2053
|
+
export declare const ErrorCodeMethodNotAllowed: ErrorCode;
|
|
2054
|
+
export declare const ErrorCodeRateLimited: ErrorCode;
|
|
2055
|
+
export declare const ErrorCodeInternalError: ErrorCode;
|
|
2056
|
+
/**
|
|
2057
|
+
* ErrorCodeTeamRoleRequired: the caller's team role or org-admin status
|
|
2058
|
+
* does not allow the action. Meta is TeamRoleRequiredMeta when a
|
|
2059
|
+
* capability gate refused it.
|
|
2060
|
+
*/
|
|
2061
|
+
export declare const ErrorCodeTeamRoleRequired: ErrorCode;
|
|
2062
|
+
/**
|
|
2063
|
+
* ErrorCodeBlockedByUsagePolicy: the resource is outside the team or org
|
|
2064
|
+
* usage policy. The message names who to ask.
|
|
2065
|
+
*/
|
|
2066
|
+
export declare const ErrorCodeBlockedByUsagePolicy: ErrorCode;
|
|
2067
|
+
export declare const ErrorCodeOTPRequired: ErrorCode;
|
|
2068
|
+
export declare const ErrorCodeMCPAuthExpired: ErrorCode;
|
|
2069
|
+
/**
|
|
2070
|
+
* Entitlements. LimitExceeded (402) and FeatureNotAvailable (403) carry
|
|
2071
|
+
* EntitlementErrorMeta. EntitlementUnavailable (500) means the plan could
|
|
2072
|
+
* not be checked and the request is retriable.
|
|
2073
|
+
*/
|
|
2074
|
+
export declare const ErrorCodeLimitExceeded: ErrorCode;
|
|
2075
|
+
export declare const ErrorCodeFeatureNotAvailable: ErrorCode;
|
|
2076
|
+
export declare const ErrorCodeEntitlementUnavailable: ErrorCode;
|
|
2077
|
+
export declare const ErrorCodePaymentRequired: ErrorCode;
|
|
2078
|
+
/**
|
|
2079
|
+
* ErrorCodePaymentMethodRequired (402): a bounty program requires a saved
|
|
2080
|
+
* payment method and the caller's team has none. Meta is
|
|
2081
|
+
* PaymentMethodRequiredMeta; clients send the user to BillingPage.
|
|
2082
|
+
*/
|
|
2083
|
+
export declare const ErrorCodePaymentMethodRequired: ErrorCode;
|
|
2084
|
+
/**
|
|
2085
|
+
* Remote harness refusals.
|
|
2086
|
+
*/
|
|
2087
|
+
export declare const ErrorCodeAgentsDisabled: ErrorCode;
|
|
2088
|
+
export declare const ErrorCodeRemoteOffline: ErrorCode;
|
|
2089
|
+
export declare const ErrorCodeRemoteTimeout: ErrorCode;
|
|
2090
|
+
export declare const ErrorCodeHarnessNotDrivable: ErrorCode;
|
|
2091
|
+
export declare const ErrorCodeHarnessTooOld: ErrorCode;
|
|
2092
|
+
/**
|
|
2093
|
+
* TeamRoleRequiredMeta is the meta of a team_role_required error from a
|
|
2094
|
+
* capability gate. Only Capability is always set: a team that does not
|
|
2095
|
+
* resolve answers with the capability alone, so clients must not assume
|
|
2096
|
+
* RequiredRole is present.
|
|
2097
|
+
*/
|
|
2098
|
+
export interface TeamRoleRequiredMeta {
|
|
2099
|
+
capability: TeamCapability;
|
|
2100
|
+
actual_role?: TeamRole;
|
|
2101
|
+
required_role?: TeamRole;
|
|
2102
|
+
requires_org_admin?: boolean;
|
|
2103
|
+
}
|
|
2104
|
+
/**
|
|
2105
|
+
* PaymentMethodRequiredMeta is the meta of a payment_method_required error.
|
|
2106
|
+
*/
|
|
2107
|
+
export interface PaymentMethodRequiredMeta {
|
|
2108
|
+
bounty_id: string;
|
|
2109
|
+
billing_page: string;
|
|
2110
|
+
}
|
|
2022
2111
|
/**
|
|
2023
2112
|
* FileMetadata holds probed media metadata cached on File records.
|
|
2024
2113
|
*/
|
|
@@ -2152,7 +2241,7 @@ export interface FlowRunDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
2152
2241
|
/**
|
|
2153
2242
|
* FlowActionType is the string type for action constants.
|
|
2154
2243
|
*/
|
|
2155
|
-
export type FlowActionType =
|
|
2244
|
+
export type FlowActionType = "node.add" | "node.remove" | "node.move" | "node.move_many" | "node.duplicate" | "node.rename" | "node.set_app" | "node.update" | "node.set_input" | "node.clear_input" | "edge.add" | "edge.remove" | "flow.set_input_schema" | "flow.set_output_schema" | "flow.set_output_mapping" | "flow.remove_output_mapping" | "flow.rename_output_field" | "undo" | "redo";
|
|
2156
2245
|
/**
|
|
2157
2246
|
* Flow graph action type constants.
|
|
2158
2247
|
*/
|
|
@@ -2617,7 +2706,7 @@ export interface InputRequest {
|
|
|
2617
2706
|
/**
|
|
2618
2707
|
* ElicitAction is the user's response to an elicitation request.
|
|
2619
2708
|
*/
|
|
2620
|
-
export type ElicitAction =
|
|
2709
|
+
export type ElicitAction = "accept" | "decline" | "cancel";
|
|
2621
2710
|
export declare const ElicitActionAccept: ElicitAction;
|
|
2622
2711
|
export declare const ElicitActionDecline: ElicitAction;
|
|
2623
2712
|
export declare const ElicitActionCancel: ElicitAction;
|
|
@@ -2634,7 +2723,7 @@ export interface ElicitResult {
|
|
|
2634
2723
|
* ResultType is the kind of result a response carries, required on every result
|
|
2635
2724
|
* from 2026-07-28 onward.
|
|
2636
2725
|
*/
|
|
2637
|
-
export type ResultType =
|
|
2726
|
+
export type ResultType = "complete" | "input_required";
|
|
2638
2727
|
/**
|
|
2639
2728
|
* ResultTypeComplete marks an ordinary, finished result.
|
|
2640
2729
|
*/
|
|
@@ -2648,7 +2737,7 @@ export declare const ResultTypeInputRequired: ResultType;
|
|
|
2648
2737
|
* CacheScope says who may reuse a cached result, per MCP 2026-07-28 (SEP-2549).
|
|
2649
2738
|
* Analogous to HTTP Cache-Control public/private; the spec defines exactly these.
|
|
2650
2739
|
*/
|
|
2651
|
-
export type CacheScope =
|
|
2740
|
+
export type CacheScope = "public" | "private";
|
|
2652
2741
|
/**
|
|
2653
2742
|
* CacheScopePublic marks a response as free of user-specific data, so any
|
|
2654
2743
|
* client or shared intermediary may cache it across authorization contexts.
|
|
@@ -2733,7 +2822,7 @@ export interface ToolCallResponse {
|
|
|
2733
2822
|
/**
|
|
2734
2823
|
* ToolContentType is the kind of a content block. The spec defines exactly these.
|
|
2735
2824
|
*/
|
|
2736
|
-
export type ToolContentType =
|
|
2825
|
+
export type ToolContentType = "text" | "image" | "audio" | "resource_link" | "resource";
|
|
2737
2826
|
export declare const ToolContentTypeText: ToolContentType;
|
|
2738
2827
|
export declare const ToolContentTypeImage: ToolContentType;
|
|
2739
2828
|
export declare const ToolContentTypeAudio: ToolContentType;
|
|
@@ -2777,6 +2866,11 @@ export interface MCPServerDTO {
|
|
|
2777
2866
|
default_scopes: StringSlice;
|
|
2778
2867
|
documentation_url: string;
|
|
2779
2868
|
connection_status?: string;
|
|
2869
|
+
/**
|
|
2870
|
+
* ConnectionScope is who the caller's connection to this server belongs
|
|
2871
|
+
* to (user, team, org, platform); empty when not connected.
|
|
2872
|
+
*/
|
|
2873
|
+
connection_scope?: CredentialScope;
|
|
2780
2874
|
}
|
|
2781
2875
|
/**
|
|
2782
2876
|
* NotificationDTO is the data transfer object
|
|
@@ -2967,7 +3061,7 @@ export interface PlanLimit {
|
|
|
2967
3061
|
* PlanLimits maps entitlement resources to their limits
|
|
2968
3062
|
*/
|
|
2969
3063
|
export type PlanLimits = {
|
|
2970
|
-
[key
|
|
3064
|
+
[key in EntitlementResource]?: PlanLimit;
|
|
2971
3065
|
};
|
|
2972
3066
|
/**
|
|
2973
3067
|
* PlanDTO for API responses
|
|
@@ -3188,7 +3282,7 @@ export interface SuggestResult {
|
|
|
3188
3282
|
/**
|
|
3189
3283
|
* RequirementType identifies the kind of missing requirement.
|
|
3190
3284
|
*/
|
|
3191
|
-
export type RequirementType =
|
|
3285
|
+
export type RequirementType = "secret" | "credential" | "scope";
|
|
3192
3286
|
/**
|
|
3193
3287
|
* Requirement error types
|
|
3194
3288
|
*/
|
|
@@ -3213,7 +3307,7 @@ export interface RequirementError {
|
|
|
3213
3307
|
/**
|
|
3214
3308
|
* SetupActionType identifies the kind of action needed to resolve a requirement.
|
|
3215
3309
|
*/
|
|
3216
|
-
export type SetupActionType =
|
|
3310
|
+
export type SetupActionType = "add_secret" | "connect" | "add_scopes";
|
|
3217
3311
|
export declare const SetupActionAddSecret: SetupActionType;
|
|
3218
3312
|
export declare const SetupActionConnect: SetupActionType;
|
|
3219
3313
|
export declare const SetupActionAddScopes: SetupActionType;
|
|
@@ -3793,7 +3887,7 @@ export interface UserMetadataDTO {
|
|
|
3793
3887
|
* Alias of shared.A2UISurface so the type generation pipeline picks it up.
|
|
3794
3888
|
*/
|
|
3795
3889
|
export type Widget = A2UISurface;
|
|
3796
|
-
export type A2UIComponentType =
|
|
3890
|
+
export type A2UIComponentType = "Row" | "Column" | "List" | "Text" | "Image" | "Icon" | "Divider" | "Button" | "TextField" | "CheckBox" | "Slider" | "DateTimeInput" | "ChoicePicker" | "Card" | "Modal" | "Tabs" | "Badge" | "Spacer" | "Chart" | "Form" | "Artifact";
|
|
3797
3891
|
export declare const A2UIRow: A2UIComponentType;
|
|
3798
3892
|
export declare const A2UIColumn: A2UIComponentType;
|
|
3799
3893
|
export declare const A2UIList: A2UIComponentType;
|
|
@@ -3966,7 +4060,7 @@ export interface A2UISurface {
|
|
|
3966
4060
|
components: A2UIComponent[];
|
|
3967
4061
|
dataModel?: any;
|
|
3968
4062
|
}
|
|
3969
|
-
export type AppCategory =
|
|
4063
|
+
export type AppCategory = "image" | "video" | "audio" | "text" | "chat" | "3d" | "other" | "flow";
|
|
3970
4064
|
export declare const AppCategoryImage: AppCategory;
|
|
3971
4065
|
export declare const AppCategoryVideo: AppCategory;
|
|
3972
4066
|
export declare const AppCategoryAudio: AppCategory;
|
|
@@ -3975,12 +4069,12 @@ export declare const AppCategoryChat: AppCategory;
|
|
|
3975
4069
|
export declare const AppCategory3D: AppCategory;
|
|
3976
4070
|
export declare const AppCategoryOther: AppCategory;
|
|
3977
4071
|
export declare const AppCategoryFlow: AppCategory;
|
|
3978
|
-
export type AppStatus =
|
|
4072
|
+
export type AppStatus = "active" | "maintenance" | "deprecated" | "retired";
|
|
3979
4073
|
export declare const AppStatusActive: AppStatus;
|
|
3980
4074
|
export declare const AppStatusMaintenance: AppStatus;
|
|
3981
4075
|
export declare const AppStatusDeprecated: AppStatus;
|
|
3982
4076
|
export declare const AppStatusRetired: AppStatus;
|
|
3983
|
-
export type GPUType =
|
|
4077
|
+
export type GPUType = "any" | "none" | "intel" | "nvidia" | "amd" | "apple";
|
|
3984
4078
|
export declare const GPUTypeAny: GPUType;
|
|
3985
4079
|
export declare const GPUTypeNone: GPUType;
|
|
3986
4080
|
export declare const GPUTypeIntel: GPUType;
|
|
@@ -3990,7 +4084,7 @@ export declare const GPUTypeApple: GPUType;
|
|
|
3990
4084
|
/**
|
|
3991
4085
|
* Visibility represents the visibility level of a resource
|
|
3992
4086
|
*/
|
|
3993
|
-
export type Visibility =
|
|
4087
|
+
export type Visibility = "private" | "team" | "org" | "public" | "unlisted";
|
|
3994
4088
|
export declare const VisibilityPrivate: Visibility;
|
|
3995
4089
|
export declare const VisibilityTeam: Visibility;
|
|
3996
4090
|
/**
|
|
@@ -4003,7 +4097,7 @@ export declare const VisibilityUnlisted: Visibility;
|
|
|
4003
4097
|
/**
|
|
4004
4098
|
* Permission represents a permission level for access checks.
|
|
4005
4099
|
*/
|
|
4006
|
-
export type Permission =
|
|
4100
|
+
export type Permission = "read" | "write" | "use";
|
|
4007
4101
|
export declare const PermRead: Permission;
|
|
4008
4102
|
export declare const PermWrite: Permission;
|
|
4009
4103
|
/**
|
|
@@ -4013,25 +4107,25 @@ export declare const PermWrite: Permission;
|
|
|
4013
4107
|
* governed by their team/org usage policy (reach, INF-808).
|
|
4014
4108
|
*/
|
|
4015
4109
|
export declare const PermUse: Permission;
|
|
4016
|
-
export type SubscriptionStatus =
|
|
4110
|
+
export type SubscriptionStatus = "trialing" | "active" | "past_due" | "canceled" | "paused";
|
|
4017
4111
|
export declare const SubscriptionStatusTrialing: SubscriptionStatus;
|
|
4018
4112
|
export declare const SubscriptionStatusActive: SubscriptionStatus;
|
|
4019
4113
|
export declare const SubscriptionStatusPastDue: SubscriptionStatus;
|
|
4020
4114
|
export declare const SubscriptionStatusCanceled: SubscriptionStatus;
|
|
4021
4115
|
export declare const SubscriptionStatusPaused: SubscriptionStatus;
|
|
4022
|
-
export type SubscriptionInterval =
|
|
4116
|
+
export type SubscriptionInterval = "monthly" | "yearly";
|
|
4023
4117
|
export declare const SubscriptionIntervalMonthly: SubscriptionInterval;
|
|
4024
4118
|
export declare const SubscriptionIntervalYearly: SubscriptionInterval;
|
|
4025
|
-
export type PlanType =
|
|
4119
|
+
export type PlanType = "base" | "addon";
|
|
4026
4120
|
export declare const PlanTypeBase: PlanType;
|
|
4027
4121
|
export declare const PlanTypeAddon: PlanType;
|
|
4028
|
-
export type EntitlementSource =
|
|
4122
|
+
export type EntitlementSource = "tier" | "override" | "whitelist" | "trial" | "addon";
|
|
4029
4123
|
export declare const EntitlementSourceTier: EntitlementSource;
|
|
4030
4124
|
export declare const EntitlementSourceOverride: EntitlementSource;
|
|
4031
4125
|
export declare const EntitlementSourceWhitelist: EntitlementSource;
|
|
4032
4126
|
export declare const EntitlementSourceTrial: EntitlementSource;
|
|
4033
4127
|
export declare const EntitlementSourceAddon: EntitlementSource;
|
|
4034
|
-
export type EntitlementType =
|
|
4128
|
+
export type EntitlementType = "boolean" | "limit";
|
|
4035
4129
|
export declare const EntitlementTypeBoolean: EntitlementType;
|
|
4036
4130
|
export declare const EntitlementTypeLimit: EntitlementType;
|
|
4037
4131
|
/**
|
|
@@ -4040,24 +4134,24 @@ export declare const EntitlementTypeLimit: EntitlementType;
|
|
|
4040
4134
|
* ownership pattern used across the codebase; resolution matches all scopes
|
|
4041
4135
|
* visible from an AuthContext in one query and mergeEntitlements arbitrates.
|
|
4042
4136
|
*/
|
|
4043
|
-
export type EntitlementScope =
|
|
4137
|
+
export type EntitlementScope = "org" | "team" | "member";
|
|
4044
4138
|
export declare const EntitlementScopeOrg: EntitlementScope;
|
|
4045
4139
|
export declare const EntitlementScopeTeam: EntitlementScope;
|
|
4046
4140
|
export declare const EntitlementScopeMember: EntitlementScope;
|
|
4047
|
-
export type EnforcementMode =
|
|
4141
|
+
export type EnforcementMode = "block" | "warn";
|
|
4048
4142
|
export declare const EnforcementBlock: EnforcementMode;
|
|
4049
4143
|
export declare const EnforcementWarn: EnforcementMode;
|
|
4050
|
-
export type ChatStatus =
|
|
4144
|
+
export type ChatStatus = "busy" | "idle" | "awaiting_input" | "completed";
|
|
4051
4145
|
export declare const ChatStatusBusy: ChatStatus;
|
|
4052
4146
|
export declare const ChatStatusIdle: ChatStatus;
|
|
4053
4147
|
export declare const ChatStatusAwaitingInput: ChatStatus;
|
|
4054
4148
|
export declare const ChatStatusCompleted: ChatStatus;
|
|
4055
|
-
export type PlanStepStatus =
|
|
4149
|
+
export type PlanStepStatus = "pending" | "in_progress" | "completed" | "cancelled";
|
|
4056
4150
|
export declare const PlanStepStatusPending: PlanStepStatus;
|
|
4057
4151
|
export declare const PlanStepStatusInProgress: PlanStepStatus;
|
|
4058
4152
|
export declare const PlanStepStatusCompleted: PlanStepStatus;
|
|
4059
4153
|
export declare const PlanStepStatusCancelled: PlanStepStatus;
|
|
4060
|
-
export type ChatMessageRole =
|
|
4154
|
+
export type ChatMessageRole = "system" | "user" | "assistant" | "tool" | "injection" | "compaction";
|
|
4061
4155
|
/**
|
|
4062
4156
|
* LLM wire-protocol roles
|
|
4063
4157
|
*/
|
|
@@ -4067,23 +4161,24 @@ export declare const ChatMessageRoleAssistant: ChatMessageRole;
|
|
|
4067
4161
|
export declare const ChatMessageRoleTool: ChatMessageRole;
|
|
4068
4162
|
/**
|
|
4069
4163
|
* Internal bookkeeping roles — never sent to the LLM provider.
|
|
4070
|
-
* BuildContext
|
|
4164
|
+
* BuildContext folds injections into the user turn and replaces
|
|
4165
|
+
* compaction markers with their summary.
|
|
4071
4166
|
*/
|
|
4072
4167
|
export declare const ChatMessageRoleInjection: ChatMessageRole;
|
|
4073
4168
|
export declare const ChatMessageRoleCompaction: ChatMessageRole;
|
|
4074
|
-
export type ChatMessageStatus =
|
|
4169
|
+
export type ChatMessageStatus = "pending" | "queued" | "ready" | "failed" | "cancelled";
|
|
4075
4170
|
export declare const ChatMessageStatusPending: ChatMessageStatus;
|
|
4076
4171
|
export declare const ChatMessageStatusQueued: ChatMessageStatus;
|
|
4077
4172
|
export declare const ChatMessageStatusReady: ChatMessageStatus;
|
|
4078
4173
|
export declare const ChatMessageStatusFailed: ChatMessageStatus;
|
|
4079
4174
|
export declare const ChatMessageStatusCancelled: ChatMessageStatus;
|
|
4080
|
-
export type ChatMessageContentType =
|
|
4175
|
+
export type ChatMessageContentType = "text" | "reasoning" | "image" | "file" | "tool";
|
|
4081
4176
|
export declare const ChatMessageContentTypeText: ChatMessageContentType;
|
|
4082
4177
|
export declare const ChatMessageContentTypeReasoning: ChatMessageContentType;
|
|
4083
4178
|
export declare const ChatMessageContentTypeImage: ChatMessageContentType;
|
|
4084
4179
|
export declare const ChatMessageContentTypeFile: ChatMessageContentType;
|
|
4085
4180
|
export declare const ChatMessageContentTypeTool: ChatMessageContentType;
|
|
4086
|
-
export type ChannelType =
|
|
4181
|
+
export type ChannelType = "slack" | "discord" | "teams" | "telegram";
|
|
4087
4182
|
export declare const ChannelTypeSlack: ChannelType;
|
|
4088
4183
|
export declare const ChannelTypeDiscord: ChannelType;
|
|
4089
4184
|
export declare const ChannelTypeTeams: ChannelType;
|
|
@@ -4129,7 +4224,7 @@ export interface ChannelContext {
|
|
|
4129
4224
|
/**
|
|
4130
4225
|
* EngineStatus represents the status of an engine.
|
|
4131
4226
|
*/
|
|
4132
|
-
export type EngineStatus =
|
|
4227
|
+
export type EngineStatus = "running" | "pending" | "draining" | "disconnected" | "restarting" | "stopping" | "stopped";
|
|
4133
4228
|
export declare const EngineStatusRunning: EngineStatus;
|
|
4134
4229
|
export declare const EngineStatusPending: EngineStatus;
|
|
4135
4230
|
export declare const EngineStatusDraining: EngineStatus;
|
|
@@ -4140,7 +4235,7 @@ export declare const EngineStatusStopped: EngineStatus;
|
|
|
4140
4235
|
/**
|
|
4141
4236
|
* WorkerStatus represents the status of a worker.
|
|
4142
4237
|
*/
|
|
4143
|
-
export type WorkerStatus =
|
|
4238
|
+
export type WorkerStatus = "reserved" | "busy" | "idle" | "inactive";
|
|
4144
4239
|
export declare const WorkerStatusReserved: WorkerStatus;
|
|
4145
4240
|
export declare const WorkerStatusBusy: WorkerStatus;
|
|
4146
4241
|
export declare const WorkerStatusIdle: WorkerStatus;
|
|
@@ -4242,7 +4337,7 @@ export interface SelectorConfig {
|
|
|
4242
4337
|
mode: string;
|
|
4243
4338
|
index?: number;
|
|
4244
4339
|
}
|
|
4245
|
-
export type GraphNodeType =
|
|
4340
|
+
export type GraphNodeType = "unknown" | "join" | "split" | "execution" | "resource" | "approval" | "conditional" | "flow_node" | "trigger" | "credential_requirement";
|
|
4246
4341
|
export declare const GraphNodeTypeUnknown: GraphNodeType;
|
|
4247
4342
|
export declare const GraphNodeTypeJoin: GraphNodeType;
|
|
4248
4343
|
export declare const GraphNodeTypeSplit: GraphNodeType;
|
|
@@ -4256,7 +4351,7 @@ export declare const GraphNodeTypeCredentialRequirement: GraphNodeType;
|
|
|
4256
4351
|
/**
|
|
4257
4352
|
* GraphNodeStatus represents the status of a node
|
|
4258
4353
|
*/
|
|
4259
|
-
export type GraphNodeStatus =
|
|
4354
|
+
export type GraphNodeStatus = "pending" | "ready" | "running" | "completed" | "failed" | "cancelled" | "skipped" | "blocked";
|
|
4260
4355
|
export declare const GraphNodeStatusPending: GraphNodeStatus;
|
|
4261
4356
|
export declare const GraphNodeStatusReady: GraphNodeStatus;
|
|
4262
4357
|
export declare const GraphNodeStatusRunning: GraphNodeStatus;
|
|
@@ -4268,14 +4363,14 @@ export declare const GraphNodeStatusBlocked: GraphNodeStatus;
|
|
|
4268
4363
|
/**
|
|
4269
4364
|
* ResourceType identifies what kind of resource a graph node represents.
|
|
4270
4365
|
*/
|
|
4271
|
-
export type ResourceType =
|
|
4366
|
+
export type ResourceType = "knowledge" | "app" | "agent";
|
|
4272
4367
|
export declare const ResourceTypeKnowledge: ResourceType;
|
|
4273
4368
|
export declare const ResourceTypeApp: ResourceType;
|
|
4274
4369
|
export declare const ResourceTypeAgent: ResourceType;
|
|
4275
4370
|
/**
|
|
4276
4371
|
* GraphEdgeType defines the type of edge relationship
|
|
4277
4372
|
*/
|
|
4278
|
-
export type GraphEdgeType =
|
|
4373
|
+
export type GraphEdgeType = "dependency" | "flow" | "conditional" | "execution" | "parent" | "ancestor" | "duplicate" | "references" | "supersedes" | "input" | "output";
|
|
4279
4374
|
export declare const GraphEdgeTypeDependency: GraphEdgeType;
|
|
4280
4375
|
export declare const GraphEdgeTypeFlow: GraphEdgeType;
|
|
4281
4376
|
export declare const GraphEdgeTypeConditional: GraphEdgeType;
|
|
@@ -4290,7 +4385,7 @@ export declare const GraphEdgeTypeOutput: GraphEdgeType;
|
|
|
4290
4385
|
/**
|
|
4291
4386
|
* MergeStrategy defines how a delta field should be merged by consumers.
|
|
4292
4387
|
*/
|
|
4293
|
-
export type MergeStrategy =
|
|
4388
|
+
export type MergeStrategy = "concat" | "replace" | "indexed" | "nested";
|
|
4294
4389
|
export declare const MergeStrategyConcat: MergeStrategy;
|
|
4295
4390
|
export declare const MergeStrategyReplace: MergeStrategy;
|
|
4296
4391
|
export declare const MergeStrategyIndexed: MergeStrategy;
|
|
@@ -4375,7 +4470,7 @@ export declare const ToolCallFunctionDelta_fieldTags: {
|
|
|
4375
4470
|
/**
|
|
4376
4471
|
* ToolChoiceMode controls whether the model must call a tool this turn.
|
|
4377
4472
|
*/
|
|
4378
|
-
export type ToolChoiceMode =
|
|
4473
|
+
export type ToolChoiceMode = "none" | "auto" | "required" | "function";
|
|
4379
4474
|
export declare const ToolChoiceModeNone: ToolChoiceMode;
|
|
4380
4475
|
export declare const ToolChoiceModeAuto: ToolChoiceMode;
|
|
4381
4476
|
export declare const ToolChoiceModeRequired: ToolChoiceMode;
|
|
@@ -4392,7 +4487,7 @@ export interface ToolChoice {
|
|
|
4392
4487
|
/**
|
|
4393
4488
|
* ResponseFormatType selects how the model's output is constrained.
|
|
4394
4489
|
*/
|
|
4395
|
-
export type ResponseFormatType =
|
|
4490
|
+
export type ResponseFormatType = "text" | "json_object" | "json_schema";
|
|
4396
4491
|
export declare const ResponseFormatTypeText: ResponseFormatType;
|
|
4397
4492
|
export declare const ResponseFormatTypeJSONObject: ResponseFormatType;
|
|
4398
4493
|
export declare const ResponseFormatTypeJSONSchema: ResponseFormatType;
|
|
@@ -4465,7 +4560,7 @@ export interface LLMContextMessage {
|
|
|
4465
4560
|
/**
|
|
4466
4561
|
* SecretScope defines the visibility/purpose of a secret
|
|
4467
4562
|
*/
|
|
4468
|
-
export type SecretScope =
|
|
4563
|
+
export type SecretScope = "team" | "internal" | "system";
|
|
4469
4564
|
/**
|
|
4470
4565
|
* SecretScopeTeam is a normal user secret, visible in team secret lists
|
|
4471
4566
|
*/
|
|
@@ -4487,7 +4582,7 @@ export declare const PageStatusScheduled: PageStatus;
|
|
|
4487
4582
|
/**
|
|
4488
4583
|
* PageType represents the type of page content
|
|
4489
4584
|
*/
|
|
4490
|
-
export type PageType =
|
|
4585
|
+
export type PageType = "doc" | "blog" | "page" | "announcement";
|
|
4491
4586
|
export declare const PageTypeDoc: PageType;
|
|
4492
4587
|
export declare const PageTypeBlog: PageType;
|
|
4493
4588
|
export declare const PageTypePage: PageType;
|
|
@@ -4497,7 +4592,7 @@ export declare const CommentStatusUnknown: CommentStatus;
|
|
|
4497
4592
|
export declare const CommentStatusDraft: CommentStatus;
|
|
4498
4593
|
export declare const CommentStatusPublished: CommentStatus;
|
|
4499
4594
|
export declare const CommentStatusArchived: CommentStatus;
|
|
4500
|
-
export type InstanceCloudProvider =
|
|
4595
|
+
export type InstanceCloudProvider = "aws" | "amaya" | "azure" | "boostrun" | "crusoe" | "datacrunch" | "denvr" | "digitalocean" | "excesssupply" | "horizon" | "hyperstack" | "imwt" | "jarvislabs" | "lambdalabs" | "latitude" | "massedcompute" | "nebius" | "oblivus" | "paperspace" | "phyntec" | "runpod" | "scaleway" | "shade" | "tensordock" | "verda" | "voltagepark" | "vultr";
|
|
4501
4596
|
export declare const CloudAWS: InstanceCloudProvider;
|
|
4502
4597
|
export declare const CloudAmaya: InstanceCloudProvider;
|
|
4503
4598
|
export declare const CloudAzure: InstanceCloudProvider;
|
|
@@ -4525,7 +4620,7 @@ export declare const CloudTensorDock: InstanceCloudProvider;
|
|
|
4525
4620
|
export declare const CloudVerda: InstanceCloudProvider;
|
|
4526
4621
|
export declare const CloudVoltagePark: InstanceCloudProvider;
|
|
4527
4622
|
export declare const CloudVultr: InstanceCloudProvider;
|
|
4528
|
-
export type InstanceStatus =
|
|
4623
|
+
export type InstanceStatus = "creating" | "pending_provider" | "pending" | "active" | "error" | "deleting" | "deleted";
|
|
4529
4624
|
export declare const InstanceStatusCreating: InstanceStatus;
|
|
4530
4625
|
export declare const InstanceStatusPendingProvider: InstanceStatus;
|
|
4531
4626
|
export declare const InstanceStatusPending: InstanceStatus;
|
|
@@ -4533,29 +4628,29 @@ export declare const InstanceStatusActive: InstanceStatus;
|
|
|
4533
4628
|
export declare const InstanceStatusError: InstanceStatus;
|
|
4534
4629
|
export declare const InstanceStatusDeleting: InstanceStatus;
|
|
4535
4630
|
export declare const InstanceStatusDeleted: InstanceStatus;
|
|
4536
|
-
export type InstanceTypeDeploymentType =
|
|
4631
|
+
export type InstanceTypeDeploymentType = "vm" | "container" | "baremetal";
|
|
4537
4632
|
export declare const InstanceTypeDeploymentTypeVM: InstanceTypeDeploymentType;
|
|
4538
4633
|
export declare const InstanceTypeDeploymentTypeContainer: InstanceTypeDeploymentType;
|
|
4539
4634
|
export declare const InstanceTypeDeploymentTypeBaremetal: InstanceTypeDeploymentType;
|
|
4540
|
-
export type AppSessionStatus =
|
|
4635
|
+
export type AppSessionStatus = "active" | "ended" | "expired";
|
|
4541
4636
|
export declare const AppSessionStatusActive: AppSessionStatus;
|
|
4542
4637
|
export declare const AppSessionStatusEnded: AppSessionStatus;
|
|
4543
4638
|
export declare const AppSessionStatusExpired: AppSessionStatus;
|
|
4544
4639
|
/**
|
|
4545
4640
|
* ProjectType represents different types of projects
|
|
4546
4641
|
*/
|
|
4547
|
-
export type ProjectType =
|
|
4642
|
+
export type ProjectType = "agent" | "app" | "flow" | "other";
|
|
4548
4643
|
export declare const ProjectTypeAgent: ProjectType;
|
|
4549
4644
|
export declare const ProjectTypeApp: ProjectType;
|
|
4550
4645
|
export declare const ProjectTypeFlow: ProjectType;
|
|
4551
4646
|
export declare const ProjectTypeOther: ProjectType;
|
|
4552
|
-
export type UsageEventResourceTier =
|
|
4647
|
+
export type UsageEventResourceTier = "private" | "cloud";
|
|
4553
4648
|
export declare const UsageEventResourceTierPrivate: UsageEventResourceTier;
|
|
4554
4649
|
export declare const UsageEventResourceTierCloud: UsageEventResourceTier;
|
|
4555
4650
|
/**
|
|
4556
4651
|
* MetaItemType is the type discriminator for MetaItem
|
|
4557
4652
|
*/
|
|
4558
|
-
export type MetaItemType =
|
|
4653
|
+
export type MetaItemType = "text" | "image" | "video" | "audio" | "raw";
|
|
4559
4654
|
export declare const MetaItemTypeText: MetaItemType;
|
|
4560
4655
|
export declare const MetaItemTypeImage: MetaItemType;
|
|
4561
4656
|
export declare const MetaItemTypeVideo: MetaItemType;
|
|
@@ -4564,7 +4659,7 @@ export declare const MetaItemTypeRaw: MetaItemType;
|
|
|
4564
4659
|
/**
|
|
4565
4660
|
* VideoResolution represents standard video resolution presets
|
|
4566
4661
|
*/
|
|
4567
|
-
export type VideoResolution =
|
|
4662
|
+
export type VideoResolution = "480p" | "720p" | "1080p" | "1440p" | "4k";
|
|
4568
4663
|
export declare const VideoRes480P: VideoResolution;
|
|
4569
4664
|
export declare const VideoRes720P: VideoResolution;
|
|
4570
4665
|
export declare const VideoRes1080P: VideoResolution;
|
|
@@ -4573,20 +4668,20 @@ export declare const VideoRes4K: VideoResolution;
|
|
|
4573
4668
|
/**
|
|
4574
4669
|
* MCPServerAuthType describes how a server authenticates clients.
|
|
4575
4670
|
*/
|
|
4576
|
-
export type MCPServerAuthType =
|
|
4671
|
+
export type MCPServerAuthType = "oauth" | "api_key" | "none";
|
|
4577
4672
|
export declare const MCPServerAuthOAuth: MCPServerAuthType;
|
|
4578
4673
|
export declare const MCPServerAuthAPIKey: MCPServerAuthType;
|
|
4579
4674
|
export declare const MCPServerAuthNone: MCPServerAuthType;
|
|
4580
4675
|
/**
|
|
4581
4676
|
* TeamInviteStatus represents the status of a team invitation
|
|
4582
4677
|
*/
|
|
4583
|
-
export type TeamInviteStatus =
|
|
4678
|
+
export type TeamInviteStatus = "pending" | "accepted" | "declined" | "expired" | "revoked";
|
|
4584
4679
|
export declare const TeamInviteStatusPending: TeamInviteStatus;
|
|
4585
4680
|
export declare const TeamInviteStatusAccepted: TeamInviteStatus;
|
|
4586
4681
|
export declare const TeamInviteStatusDeclined: TeamInviteStatus;
|
|
4587
4682
|
export declare const TeamInviteStatusExpired: TeamInviteStatus;
|
|
4588
4683
|
export declare const TeamInviteStatusRevoked: TeamInviteStatus;
|
|
4589
|
-
export type RefRouteType =
|
|
4684
|
+
export type RefRouteType = "app" | "agent" | "skill" | "url";
|
|
4590
4685
|
export declare const RefRouteTypeApp: RefRouteType;
|
|
4591
4686
|
export declare const RefRouteTypeAgent: RefRouteType;
|
|
4592
4687
|
export declare const RefRouteTypeSkill: RefRouteType;
|
|
@@ -4595,10 +4690,10 @@ export declare const RefRouteTypeSkill: RefRouteType;
|
|
|
4595
4690
|
* /docs/api/sdk/files). Alias and target are literal paths, not refs.
|
|
4596
4691
|
*/
|
|
4597
4692
|
export declare const RefRouteTypeURL: RefRouteType;
|
|
4598
|
-
export type RefRouteMode =
|
|
4693
|
+
export type RefRouteMode = "rewrite" | "redirect";
|
|
4599
4694
|
export declare const RefRouteModeRewrite: RefRouteMode;
|
|
4600
4695
|
export declare const RefRouteModeRedirect: RefRouteMode;
|
|
4601
|
-
export type KnowledgeType =
|
|
4696
|
+
export type KnowledgeType = "concept" | "skill" | "observation" | "preference" | "reference" | "person" | "project" | "agent-config";
|
|
4602
4697
|
export declare const KnowledgeTypeConcept: KnowledgeType;
|
|
4603
4698
|
export declare const KnowledgeTypeSkill: KnowledgeType;
|
|
4604
4699
|
export declare const KnowledgeTypeObservation: KnowledgeType;
|
|
@@ -4607,7 +4702,7 @@ export declare const KnowledgeTypeReference: KnowledgeType;
|
|
|
4607
4702
|
export declare const KnowledgeTypePerson: KnowledgeType;
|
|
4608
4703
|
export declare const KnowledgeTypeProject: KnowledgeType;
|
|
4609
4704
|
export declare const KnowledgeTypeAgentConfig: KnowledgeType;
|
|
4610
|
-
export type KnowledgeLifecycle =
|
|
4705
|
+
export type KnowledgeLifecycle = "permanent" | "decay" | "draft" | "deprecated";
|
|
4611
4706
|
export declare const KnowledgeLifecyclePermanent: KnowledgeLifecycle;
|
|
4612
4707
|
export declare const KnowledgeLifecycleDecay: KnowledgeLifecycle;
|
|
4613
4708
|
export declare const KnowledgeLifecycleDraft: KnowledgeLifecycle;
|
|
@@ -4615,10 +4710,10 @@ export declare const KnowledgeLifecycleDeprecated: KnowledgeLifecycle;
|
|
|
4615
4710
|
/**
|
|
4616
4711
|
* ArtifactType is the source format of an artifact page.
|
|
4617
4712
|
*/
|
|
4618
|
-
export type ArtifactType =
|
|
4713
|
+
export type ArtifactType = "html" | "markdown";
|
|
4619
4714
|
export declare const ArtifactTypeHTML: ArtifactType;
|
|
4620
4715
|
export declare const ArtifactTypeMarkdown: ArtifactType;
|
|
4621
|
-
export type FilterOperator =
|
|
4716
|
+
export type FilterOperator = "eq" | "neq" | "in" | "not_in" | "gt" | "gte" | "lt" | "lte" | "like" | "ilike" | "contains" | "not_contains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty";
|
|
4622
4717
|
export declare const OpEqual: FilterOperator;
|
|
4623
4718
|
export declare const OpNotEqual: FilterOperator;
|
|
4624
4719
|
export declare const OpIn: FilterOperator;
|
|
@@ -4635,7 +4730,7 @@ export declare const OpIsNull: FilterOperator;
|
|
|
4635
4730
|
export declare const OpIsNotNull: FilterOperator;
|
|
4636
4731
|
export declare const OpIsEmpty: FilterOperator;
|
|
4637
4732
|
export declare const OpIsNotEmpty: FilterOperator;
|
|
4638
|
-
export type DeviceAuthStatus =
|
|
4733
|
+
export type DeviceAuthStatus = "pending" | "approved" | "expired" | "denied" | "valid" | "invalid" | "loading";
|
|
4639
4734
|
export declare const DeviceAuthStatusPending: DeviceAuthStatus;
|
|
4640
4735
|
export declare const DeviceAuthStatusApproved: DeviceAuthStatus;
|
|
4641
4736
|
export declare const DeviceAuthStatusExpired: DeviceAuthStatus;
|
|
@@ -4646,7 +4741,7 @@ export declare const DeviceAuthStatusLoading: DeviceAuthStatus;
|
|
|
4646
4741
|
/**
|
|
4647
4742
|
* DeviceTokenKind selects the credential minted when a device auth flow is approved.
|
|
4648
4743
|
*/
|
|
4649
|
-
export type DeviceTokenKind =
|
|
4744
|
+
export type DeviceTokenKind = "session" | "api_key";
|
|
4650
4745
|
/**
|
|
4651
4746
|
* DeviceTokenKindSession mints a revocable CLI session (acts as the user,
|
|
4652
4747
|
* supports team switching via X-Team-ID).
|
|
@@ -4657,7 +4752,7 @@ export declare const DeviceTokenKindSession: DeviceTokenKind;
|
|
|
4657
4752
|
* TODO: retire once CLIs older than the session-token release are gone.
|
|
4658
4753
|
*/
|
|
4659
4754
|
export declare const DeviceTokenKindAPIKey: DeviceTokenKind;
|
|
4660
|
-
export type EntitlementResource =
|
|
4755
|
+
export type EntitlementResource = "api_keys" | "connectors" | "knowledge_bases" | "storage_mb" | "concurrency" | "rate_per_min" | "seats" | "triggers" | "retention_days" | "private_apps" | "task_executions" | "feature:byok" | "feature:seedance" | "feature:scopes" | "feature:webhooks" | "feature:team_billing" | "feature:auto_recharge" | "feature:invoices" | "feature:publish_apps";
|
|
4661
4756
|
/**
|
|
4662
4757
|
* Capacity limits — scale with tier
|
|
4663
4758
|
*/
|
|
@@ -4689,7 +4784,7 @@ export declare const ResourceFeatureTeamBilling: EntitlementResource;
|
|
|
4689
4784
|
export declare const ResourceFeatureAutoRecharge: EntitlementResource;
|
|
4690
4785
|
export declare const ResourceFeatureInvoices: EntitlementResource;
|
|
4691
4786
|
export declare const ResourceFeaturePublishApps: EntitlementResource;
|
|
4692
|
-
export type ContentRating =
|
|
4787
|
+
export type ContentRating = "safe" | "sexual_suggestive" | "sexual_explicit" | "violence_non_graphic" | "violence_graphic" | "gore" | "unrated";
|
|
4693
4788
|
export declare const ContentSafe: ContentRating;
|
|
4694
4789
|
export declare const ContentSexualSuggestive: ContentRating;
|
|
4695
4790
|
export declare const ContentSexualExplicit: ContentRating;
|
|
@@ -4700,7 +4795,7 @@ export declare const ContentUnrated: ContentRating;
|
|
|
4700
4795
|
/**
|
|
4701
4796
|
* CredentialProvider names the external service a credential is for.
|
|
4702
4797
|
*/
|
|
4703
|
-
export type CredentialProvider =
|
|
4798
|
+
export type CredentialProvider = "google" | "google-sa" | "slack" | "notion" | "github" | "x" | "microsoft" | "salesforce" | "discord" | "gcp" | "mcp" | "reddit";
|
|
4704
4799
|
/**
|
|
4705
4800
|
* Credential.Provider is a plain string; cast with string(...) when assigning.
|
|
4706
4801
|
*/
|
|
@@ -4752,7 +4847,7 @@ export declare const CredentialProviderReddit: CredentialProvider;
|
|
|
4752
4847
|
/**
|
|
4753
4848
|
* CredentialType describes the credential category.
|
|
4754
4849
|
*/
|
|
4755
|
-
export type CredentialType =
|
|
4850
|
+
export type CredentialType = "oauth" | "api_key" | "mcp" | "service_account" | "wif";
|
|
4756
4851
|
export declare const CredentialTypeOAuth: CredentialType;
|
|
4757
4852
|
export declare const CredentialTypeAPIKey: CredentialType;
|
|
4758
4853
|
export declare const CredentialTypeMCP: CredentialType;
|
|
@@ -4761,7 +4856,7 @@ export declare const CredentialTypeWIF: CredentialType;
|
|
|
4761
4856
|
/**
|
|
4762
4857
|
* CredentialStatus represents the lifecycle state of a credential.
|
|
4763
4858
|
*/
|
|
4764
|
-
export type CredentialStatus =
|
|
4859
|
+
export type CredentialStatus = "pending" | "connected" | "disconnected" | "expired" | "error";
|
|
4765
4860
|
export declare const CredentialStatusPending: CredentialStatus;
|
|
4766
4861
|
export declare const CredentialStatusConnected: CredentialStatus;
|
|
4767
4862
|
export declare const CredentialStatusDisconnected: CredentialStatus;
|
|
@@ -4770,7 +4865,7 @@ export declare const CredentialStatusError: CredentialStatus;
|
|
|
4770
4865
|
/**
|
|
4771
4866
|
* CredentialScope controls resolution priority and ownership.
|
|
4772
4867
|
*/
|
|
4773
|
-
export type CredentialScope =
|
|
4868
|
+
export type CredentialScope = "platform" | "org" | "team" | "user" | "agent";
|
|
4774
4869
|
export declare const CredentialScopePlatform: CredentialScope;
|
|
4775
4870
|
/**
|
|
4776
4871
|
* CredentialScopeOrg: shared across all teams of an org. In the enum for
|
|
@@ -4788,7 +4883,7 @@ export declare const CredentialScopeAgent: CredentialScope;
|
|
|
4788
4883
|
* the logins made through it (owned by a team or a user). Every other
|
|
4789
4884
|
* credential type is a token row.
|
|
4790
4885
|
*/
|
|
4791
|
-
export type CredentialGrant =
|
|
4886
|
+
export type CredentialGrant = "credentials" | "token";
|
|
4792
4887
|
/**
|
|
4793
4888
|
* CredentialGrantCredentials: an OAuth app. Never a connection.
|
|
4794
4889
|
*/
|
|
@@ -4801,7 +4896,7 @@ export declare const CredentialGrantToken: CredentialGrant;
|
|
|
4801
4896
|
/**
|
|
4802
4897
|
* NotificationChannel represents a delivery channel
|
|
4803
4898
|
*/
|
|
4804
|
-
export type NotificationChannel =
|
|
4899
|
+
export type NotificationChannel = "email" | "sms" | "push" | "slack";
|
|
4805
4900
|
export declare const NotificationChannelEmail: NotificationChannel;
|
|
4806
4901
|
export declare const NotificationChannelSMS: NotificationChannel;
|
|
4807
4902
|
export declare const NotificationChannelPush: NotificationChannel;
|
|
@@ -4809,7 +4904,7 @@ export declare const NotificationChannelSlack: NotificationChannel;
|
|
|
4809
4904
|
/**
|
|
4810
4905
|
* NotificationPriority represents notification priority
|
|
4811
4906
|
*/
|
|
4812
|
-
export type NotificationPriority =
|
|
4907
|
+
export type NotificationPriority = "low" | "normal" | "high" | "critical";
|
|
4813
4908
|
export declare const NotificationPriorityLow: NotificationPriority;
|
|
4814
4909
|
export declare const NotificationPriorityNormal: NotificationPriority;
|
|
4815
4910
|
export declare const NotificationPriorityHigh: NotificationPriority;
|
|
@@ -4817,7 +4912,7 @@ export declare const NotificationPriorityCritical: NotificationPriority;
|
|
|
4817
4912
|
/**
|
|
4818
4913
|
* NotificationType represents the type/category of notification
|
|
4819
4914
|
*/
|
|
4820
|
-
export type NotificationType =
|
|
4915
|
+
export type NotificationType = "low_balance" | "auto_recharge" | "payment_success" | "payment_failed" | "usage_summary" | "spending_limit" | "invoice" | "credit_note" | "subscription_created" | "subscription_credit" | "subscription_canceled" | "subscription_payment_failed" | "subscription_trial_ending" | "welcome" | "welcome_agents" | "welcome_apps" | "welcome_flows" | "welcome_sdk" | "password_reset" | "email_verify" | "security_alert" | "task_complete" | "task_failed" | "data_export" | "system_alert" | "maintenance" | "tos_update" | "service_notice" | "team_invite";
|
|
4821
4916
|
/**
|
|
4822
4917
|
* Billing notifications
|
|
4823
4918
|
*/
|
|
@@ -4868,7 +4963,7 @@ export declare const NotificationTypeTeamInvite: NotificationType;
|
|
|
4868
4963
|
/**
|
|
4869
4964
|
* NotificationStatus represents the status of a notification
|
|
4870
4965
|
*/
|
|
4871
|
-
export type NotificationStatus =
|
|
4966
|
+
export type NotificationStatus = "pending" | "processing" | "sent" | "delivered" | "failed" | "bounced" | "cancelled";
|
|
4872
4967
|
export declare const NotificationStatusPending: NotificationStatus;
|
|
4873
4968
|
export declare const NotificationStatusProcessing: NotificationStatus;
|
|
4874
4969
|
export declare const NotificationStatusSent: NotificationStatus;
|
|
@@ -4879,7 +4974,7 @@ export declare const NotificationStatusCancelled: NotificationStatus;
|
|
|
4879
4974
|
/**
|
|
4880
4975
|
* FunctionKind is how an app function talks to its caller.
|
|
4881
4976
|
*/
|
|
4882
|
-
export type FunctionKind =
|
|
4977
|
+
export type FunctionKind = "run" | "stream";
|
|
4883
4978
|
/**
|
|
4884
4979
|
* FunctionKindRun takes an input and returns an output (optionally
|
|
4885
4980
|
* yielding progress on the way). The zero value means this.
|
|
@@ -4893,7 +4988,7 @@ export declare const FunctionKindStream: FunctionKind;
|
|
|
4893
4988
|
/**
|
|
4894
4989
|
* SocketStatus is where a socket is in its life.
|
|
4895
4990
|
*/
|
|
4896
|
-
export type SocketStatus =
|
|
4991
|
+
export type SocketStatus = "pending" | "open" | "closed";
|
|
4897
4992
|
/**
|
|
4898
4993
|
* SocketStatusPending: opened, and the two ends have not met yet. An end
|
|
4899
4994
|
* that gave up waiting may dial again, so an unpaired end does not close
|
|
@@ -4911,7 +5006,7 @@ export declare const SocketStatusClosed: SocketStatus;
|
|
|
4911
5006
|
/**
|
|
4912
5007
|
* SocketOutcome is why a socket closed.
|
|
4913
5008
|
*/
|
|
4914
|
-
export type SocketOutcome =
|
|
5009
|
+
export type SocketOutcome = "client_closed" | "worker_closed" | "drained" | "never_paired" | "task_ended";
|
|
4915
5010
|
export declare const SocketOutcomeClientClosed: SocketOutcome;
|
|
4916
5011
|
export declare const SocketOutcomeWorkerClosed: SocketOutcome;
|
|
4917
5012
|
/**
|
|
@@ -4982,7 +5077,7 @@ export declare const TaskStatusCancelled: TaskStatus;
|
|
|
4982
5077
|
/**
|
|
4983
5078
|
* Infra defines where a task should run.
|
|
4984
5079
|
*/
|
|
4985
|
-
export type Infra =
|
|
5080
|
+
export type Infra = "private" | "cloud" | "private_first";
|
|
4986
5081
|
export declare const InfraPrivate: Infra;
|
|
4987
5082
|
export declare const InfraCloud: Infra;
|
|
4988
5083
|
export declare const InfraPrivateFirst: Infra;
|
|
@@ -5009,7 +5104,7 @@ export interface TaskAction {
|
|
|
5009
5104
|
export interface TaskMetadata {
|
|
5010
5105
|
action?: TaskAction;
|
|
5011
5106
|
}
|
|
5012
|
-
export type TeamType =
|
|
5107
|
+
export type TeamType = "personal" | "team" | "system" | "org";
|
|
5013
5108
|
export declare const TeamTypePersonal: TeamType;
|
|
5014
5109
|
export declare const TeamTypeTeam: TeamType;
|
|
5015
5110
|
export declare const TeamTypeSystem: TeamType;
|
|
@@ -5021,20 +5116,45 @@ export declare const TeamTypeSystem: TeamType;
|
|
|
5021
5116
|
* teams exist.
|
|
5022
5117
|
*/
|
|
5023
5118
|
export declare const TeamTypeOrg: TeamType;
|
|
5024
|
-
export type TeamStatus =
|
|
5119
|
+
export type TeamStatus = "active" | "suspended" | "terminated";
|
|
5025
5120
|
export declare const TeamStatusActive: TeamStatus;
|
|
5026
5121
|
export declare const TeamStatusSuspended: TeamStatus;
|
|
5027
5122
|
export declare const TeamStatusTerminated: TeamStatus;
|
|
5028
|
-
export type TeamRole =
|
|
5123
|
+
export type TeamRole = "owner" | "admin" | "member";
|
|
5029
5124
|
export declare const TeamRoleOwner: TeamRole;
|
|
5030
5125
|
export declare const TeamRoleAdmin: TeamRole;
|
|
5031
5126
|
export declare const TeamRoleMember: TeamRole;
|
|
5032
|
-
|
|
5127
|
+
/**
|
|
5128
|
+
* TeamCapability is one thing a caller may do to a team's settings. The set is
|
|
5129
|
+
* closed; team.Subject.Can is the only place that grants them.
|
|
5130
|
+
*/
|
|
5131
|
+
export type TeamCapability = "edit_profile" | "manage_members" | "view_members" | "manage_keys" | "manage_vault" | "view_billing" | "manage_billing" | "view_policy" | "manage_policy" | "manage_org" | "manage_sso" | "archive" | "create_team" | "create_org" | "connect_org_credential" | "connect_platform_credential";
|
|
5132
|
+
export declare const TeamCapabilityEditProfile: TeamCapability;
|
|
5133
|
+
export declare const TeamCapabilityManageMembers: TeamCapability;
|
|
5134
|
+
export declare const TeamCapabilityViewMembers: TeamCapability;
|
|
5135
|
+
export declare const TeamCapabilityManageKeys: TeamCapability;
|
|
5136
|
+
export declare const TeamCapabilityManageVault: TeamCapability;
|
|
5137
|
+
export declare const TeamCapabilityViewBilling: TeamCapability;
|
|
5138
|
+
export declare const TeamCapabilityManageBilling: TeamCapability;
|
|
5139
|
+
export declare const TeamCapabilityViewPolicy: TeamCapability;
|
|
5140
|
+
export declare const TeamCapabilityManagePolicy: TeamCapability;
|
|
5141
|
+
export declare const TeamCapabilityManageOrg: TeamCapability;
|
|
5142
|
+
export declare const TeamCapabilityManageSSO: TeamCapability;
|
|
5143
|
+
export declare const TeamCapabilityArchive: TeamCapability;
|
|
5144
|
+
export declare const TeamCapabilityCreateTeam: TeamCapability;
|
|
5145
|
+
export declare const TeamCapabilityCreateOrg: TeamCapability;
|
|
5146
|
+
/**
|
|
5147
|
+
* Connecting a credential the whole org, or the whole platform, resolves.
|
|
5148
|
+
* The workspace level is manage_vault.
|
|
5149
|
+
*/
|
|
5150
|
+
export declare const TeamCapabilityConnectOrgCredential: TeamCapability;
|
|
5151
|
+
export declare const TeamCapabilityConnectPlatformCredential: TeamCapability;
|
|
5152
|
+
export type Role = "guest" | "user" | "admin" | "system";
|
|
5033
5153
|
export declare const RoleGuest: Role;
|
|
5034
5154
|
export declare const RoleUser: Role;
|
|
5035
5155
|
export declare const RoleAdmin: Role;
|
|
5036
5156
|
export declare const RoleSystem: Role;
|
|
5037
|
-
export type UtilityPreset =
|
|
5157
|
+
export type UtilityPreset = "gate" | "selector" | "merge" | "constant";
|
|
5038
5158
|
export declare const UtilityPresetGate: UtilityPreset;
|
|
5039
5159
|
export declare const UtilityPresetSelector: UtilityPreset;
|
|
5040
5160
|
export declare const UtilityPresetMerge: UtilityPreset;
|
|
@@ -5057,7 +5177,7 @@ export interface UtilityConfig {
|
|
|
5057
5177
|
* These are the backbone protocol events — every consumer (A2A, SDK, frontend)
|
|
5058
5178
|
* projects from this set.
|
|
5059
5179
|
*/
|
|
5060
|
-
export type AgentEventType =
|
|
5180
|
+
export type AgentEventType = "run.started" | "run.state_changed" | "turn.started" | "turn.completed" | "content.delta" | "tool.started" | "tool.completed" | "approval.required" | "approval.resolved" | "hook.executed" | "usage.updated" | "context.compacted" | "error";
|
|
5061
5181
|
/**
|
|
5062
5182
|
* Run lifecycle
|
|
5063
5183
|
*/
|
|
@@ -5136,7 +5256,7 @@ export interface ContentDeltaPayload {
|
|
|
5136
5256
|
kind: ContentDeltaKind;
|
|
5137
5257
|
delta: string;
|
|
5138
5258
|
}
|
|
5139
|
-
export type ContentDeltaKind =
|
|
5259
|
+
export type ContentDeltaKind = "text" | "reasoning";
|
|
5140
5260
|
export declare const ContentDeltaText: ContentDeltaKind;
|
|
5141
5261
|
export declare const ContentDeltaReasoning: ContentDeltaKind;
|
|
5142
5262
|
export interface ToolStartedPayload {
|
|
@@ -5190,7 +5310,7 @@ export interface ErrorPayload {
|
|
|
5190
5310
|
* AgentRunState tracks the lifecycle of an agent run (one user→agent turn).
|
|
5191
5311
|
* Maps to A2A TaskState and AG-UI Run outcome for protocol compliance.
|
|
5192
5312
|
*/
|
|
5193
|
-
export type AgentRunState =
|
|
5313
|
+
export type AgentRunState = "submitted" | "working" | "input_required" | "auth_required" | "completed" | "failed" | "canceled" | "rejected";
|
|
5194
5314
|
export declare const AgentRunStateSubmitted: AgentRunState;
|
|
5195
5315
|
export declare const AgentRunStateWorking: AgentRunState;
|
|
5196
5316
|
export declare const AgentRunStateInputRequired: AgentRunState;
|
|
@@ -5203,7 +5323,7 @@ export declare const AgentRunStateRejected: AgentRunState;
|
|
|
5203
5323
|
* InterruptReason describes why an agent run is in an interrupted state.
|
|
5204
5324
|
* Aligns with AG-UI interrupt outcome reasons.
|
|
5205
5325
|
*/
|
|
5206
|
-
export type InterruptReason =
|
|
5326
|
+
export type InterruptReason = "tool_approval" | "client_tool" | "widget" | "auth" | "confirmation" | "hook_gate";
|
|
5207
5327
|
export declare const InterruptReasonToolApproval: InterruptReason;
|
|
5208
5328
|
export declare const InterruptReasonClientTool: InterruptReason;
|
|
5209
5329
|
export declare const InterruptReasonWidget: InterruptReason;
|
|
@@ -5216,7 +5336,7 @@ export type StringEncodedMap = {
|
|
|
5216
5336
|
/**
|
|
5217
5337
|
* InterruptStatus tracks the lifecycle of an interrupt gate.
|
|
5218
5338
|
*/
|
|
5219
|
-
export type InterruptStatus =
|
|
5339
|
+
export type InterruptStatus = "pending" | "resolved" | "expired" | "cancelled";
|
|
5220
5340
|
export declare const InterruptStatusPending: InterruptStatus;
|
|
5221
5341
|
export declare const InterruptStatusResolved: InterruptStatus;
|
|
5222
5342
|
export declare const InterruptStatusExpired: InterruptStatus;
|
|
@@ -5224,13 +5344,13 @@ export declare const InterruptStatusCancelled: InterruptStatus;
|
|
|
5224
5344
|
/**
|
|
5225
5345
|
* InterruptResolution records how a pending interrupt was resolved.
|
|
5226
5346
|
*/
|
|
5227
|
-
export type InterruptResolution =
|
|
5347
|
+
export type InterruptResolution = "allow" | "deny";
|
|
5228
5348
|
export declare const InterruptResolutionAllow: InterruptResolution;
|
|
5229
5349
|
export declare const InterruptResolutionDeny: InterruptResolution;
|
|
5230
5350
|
/**
|
|
5231
5351
|
* InterruptResourceType identifies the kind of resource an interrupt gates.
|
|
5232
5352
|
*/
|
|
5233
|
-
export type InterruptResourceType =
|
|
5353
|
+
export type InterruptResourceType = "tool_invocation" | "hook_event";
|
|
5234
5354
|
export declare const InterruptResourceToolInvocation: InterruptResourceType;
|
|
5235
5355
|
export declare const InterruptResourceHookEvent: InterruptResourceType;
|
|
5236
5356
|
/**
|
|
@@ -5238,7 +5358,7 @@ export declare const InterruptResourceHookEvent: InterruptResourceType;
|
|
|
5238
5358
|
* Events fire at well-defined points in the turn cycle, giving external
|
|
5239
5359
|
* handlers the ability to observe, inject context, or halt execution.
|
|
5240
5360
|
*/
|
|
5241
|
-
export type HookEvent =
|
|
5361
|
+
export type HookEvent = "agent.start" | "agent.turn_start" | "agent.tool_call" | "agent.tool_result" | "agent.turn_complete" | "agent.error" | "agent.complete" | "agent.idle" | "agent.pre_compact" | "agent.post_compact";
|
|
5242
5362
|
export declare const HookEventAgentStart: HookEvent;
|
|
5243
5363
|
export declare const HookEventTurnStart: HookEvent;
|
|
5244
5364
|
export declare const HookEventToolCall: HookEvent;
|
|
@@ -5260,7 +5380,7 @@ export interface HookEventDefinition {
|
|
|
5260
5380
|
/**
|
|
5261
5381
|
* HookDecision is the handler's verdict on whether execution should continue.
|
|
5262
5382
|
*/
|
|
5263
|
-
export type HookDecision =
|
|
5383
|
+
export type HookDecision = "allow" | "deny" | "stop" | "suspend";
|
|
5264
5384
|
export declare const HookDecisionAllow: HookDecision;
|
|
5265
5385
|
export declare const HookDecisionDeny: HookDecision;
|
|
5266
5386
|
export declare const HookDecisionStop: HookDecision;
|
|
@@ -5268,10 +5388,36 @@ export declare const HookDecisionSuspend: HookDecision;
|
|
|
5268
5388
|
/**
|
|
5269
5389
|
* HookHandlerType distinguishes how a lifecycle hook is executed.
|
|
5270
5390
|
*/
|
|
5271
|
-
export type HookHandlerType =
|
|
5391
|
+
export type HookHandlerType = "webhook" | "task" | "gate" | "builtin";
|
|
5272
5392
|
export declare const HookHandlerWebhook: HookHandlerType;
|
|
5273
5393
|
export declare const HookHandlerTask: HookHandlerType;
|
|
5274
5394
|
export declare const HookHandlerGate: HookHandlerType;
|
|
5395
|
+
export declare const HookHandlerBuiltin: HookHandlerType;
|
|
5396
|
+
/**
|
|
5397
|
+
* BuiltinHook names a hook handler the platform implements itself. A builtin
|
|
5398
|
+
* runs in-process on the turn that fired it: no URL to host, no round trip, no
|
|
5399
|
+
* agent spawn. That is what lets it return an injection at all — a task hook
|
|
5400
|
+
* spawns an agent and discards its answer, so only webhook, gate and builtin
|
|
5401
|
+
* can put anything into context.
|
|
5402
|
+
* This registry is the single source of truth. The runtime dispatches from it,
|
|
5403
|
+
* agent config is validated against it, and clients enumerate it to show what
|
|
5404
|
+
* an agent can switch on without hosting anything.
|
|
5405
|
+
*/
|
|
5406
|
+
export type BuiltinHook = "belt:suggest";
|
|
5407
|
+
export declare const BuiltinHookBeltSuggest: BuiltinHook;
|
|
5408
|
+
/**
|
|
5409
|
+
* BuiltinHookDefinition describes a builtin hook and where it may be used.
|
|
5410
|
+
*/
|
|
5411
|
+
export interface BuiltinHookDefinition {
|
|
5412
|
+
name: BuiltinHook;
|
|
5413
|
+
description: string;
|
|
5414
|
+
/**
|
|
5415
|
+
* Events the builtin may be attached to. A builtin that reads the turn's
|
|
5416
|
+
* prompt is meaningless on agent.complete, so the set is part of its
|
|
5417
|
+
* definition rather than a convention.
|
|
5418
|
+
*/
|
|
5419
|
+
events: HookEvent[];
|
|
5420
|
+
}
|
|
5275
5421
|
/**
|
|
5276
5422
|
* LifecycleHookConfig registers a handler for an agent lifecycle event.
|
|
5277
5423
|
* Stored on AgentVersion alongside Tools and Skills.
|
|
@@ -5319,6 +5465,14 @@ export interface ContextInjection {
|
|
|
5319
5465
|
role?: string;
|
|
5320
5466
|
ttl_turns?: number;
|
|
5321
5467
|
dedup_key?: string;
|
|
5468
|
+
/**
|
|
5469
|
+
* Items names what this injection put in front of the model — resource
|
|
5470
|
+
* refs, file paths, whatever the producer deals in. A hook that offers the
|
|
5471
|
+
* same things every turn reads its own past Items back to see what it has
|
|
5472
|
+
* already offered, instead of keeping a ledger somewhere else and hoping
|
|
5473
|
+
* the two stay in step.
|
|
5474
|
+
*/
|
|
5475
|
+
items?: string[];
|
|
5322
5476
|
}
|
|
5323
5477
|
/**
|
|
5324
5478
|
* ToolCallEventData is the typed payload for agent.tool_call events.
|
|
@@ -5346,7 +5500,7 @@ export interface ErrorEventData {
|
|
|
5346
5500
|
/**
|
|
5347
5501
|
* ToolInvocationStatus represents the execution status of a tool invocation
|
|
5348
5502
|
*/
|
|
5349
|
-
export type ToolInvocationStatus =
|
|
5503
|
+
export type ToolInvocationStatus = "pending" | "in_progress" | "awaiting_input" | "awaiting_approval" | "completed" | "failed" | "cancelled";
|
|
5350
5504
|
export declare const ToolInvocationStatusPending: ToolInvocationStatus;
|
|
5351
5505
|
export declare const ToolInvocationStatusInProgress: ToolInvocationStatus;
|
|
5352
5506
|
export declare const ToolInvocationStatusAwaitingInput: ToolInvocationStatus;
|
|
@@ -5357,7 +5511,7 @@ export declare const ToolInvocationStatusCancelled: ToolInvocationStatus;
|
|
|
5357
5511
|
/**
|
|
5358
5512
|
* ToolType represents the type of tool (used in both AgentTool definition and ToolInvocation)
|
|
5359
5513
|
*/
|
|
5360
|
-
export type ToolType =
|
|
5514
|
+
export type ToolType = "app" | "agent" | "hook" | "http" | "call" | "mcp" | "client" | "internal" | "harness";
|
|
5361
5515
|
export declare const ToolTypeApp: ToolType;
|
|
5362
5516
|
export declare const ToolTypeAgent: ToolType;
|
|
5363
5517
|
export declare const ToolTypeHook: ToolType;
|
|
@@ -5366,14 +5520,15 @@ export declare const ToolTypeCall: ToolType;
|
|
|
5366
5520
|
export declare const ToolTypeMCP: ToolType;
|
|
5367
5521
|
export declare const ToolTypeClient: ToolType;
|
|
5368
5522
|
export declare const ToolTypeInternal: ToolType;
|
|
5523
|
+
export declare const ToolTypeHarness: ToolType;
|
|
5369
5524
|
/**
|
|
5370
5525
|
* ToolCallType represents the type field on a tool call (wire format).
|
|
5371
5526
|
*/
|
|
5372
|
-
export type ToolCallType =
|
|
5527
|
+
export type ToolCallType = "function";
|
|
5373
5528
|
/**
|
|
5374
5529
|
* ToolParamType represents a JSON Schema parameter type for tool definitions.
|
|
5375
5530
|
*/
|
|
5376
|
-
export type ToolParamType = string;
|
|
5531
|
+
export type ToolParamType = "object" | "string" | "integer" | "number" | "boolean" | "array" | "null";
|
|
5377
5532
|
/**
|
|
5378
5533
|
* Tool call types
|
|
5379
5534
|
*/
|