@inferencesh/sdk 0.38.13 → 0.38.15
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/api/chats.d.ts +5 -0
- package/dist/api/chats.js +7 -0
- package/dist/proxy/endpoints.json +2 -2
- package/dist/types.d.ts +311 -7
- package/dist/types.js +168 -1
- package/package.json +1 -1
package/dist/api/chats.d.ts
CHANGED
|
@@ -12,6 +12,11 @@ export declare class ChatsAPI {
|
|
|
12
12
|
* List chats with cursor-based pagination
|
|
13
13
|
*/
|
|
14
14
|
list(params?: Partial<CursorListRequest>): Promise<Response<CursorListResponse<Chat>>>;
|
|
15
|
+
/**
|
|
16
|
+
* List the sub-agent chats a chat delegated to, with cursor-based
|
|
17
|
+
* pagination. The chats list leaves them out.
|
|
18
|
+
*/
|
|
19
|
+
listChildren(chatId: string, params?: Partial<CursorListRequest>): Promise<Response<CursorListResponse<Chat>>>;
|
|
15
20
|
/**
|
|
16
21
|
* Get a chat by ID
|
|
17
22
|
*/
|
package/dist/api/chats.js
CHANGED
|
@@ -11,6 +11,13 @@ export class ChatsAPI {
|
|
|
11
11
|
async list(params) {
|
|
12
12
|
return this.http.request('post', '/chats/list', { data: params });
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* List the sub-agent chats a chat delegated to, with cursor-based
|
|
16
|
+
* pagination. The chats list leaves them out.
|
|
17
|
+
*/
|
|
18
|
+
async listChildren(chatId, params) {
|
|
19
|
+
return this.http.request('post', `/chats/${chatId}/children/list`, { data: params });
|
|
20
|
+
}
|
|
14
21
|
/**
|
|
15
22
|
* Get a chat by ID
|
|
16
23
|
*/
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"apps:execute"
|
|
61
61
|
],
|
|
62
62
|
"also": [
|
|
63
|
-
"
|
|
63
|
+
"engine_self"
|
|
64
64
|
]
|
|
65
65
|
},
|
|
66
66
|
{
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
"billing:read",
|
|
206
206
|
"conversations:read",
|
|
207
207
|
"credentials:read",
|
|
208
|
-
"
|
|
208
|
+
"engine_self",
|
|
209
209
|
"knowledge:read",
|
|
210
210
|
"remotes:read",
|
|
211
211
|
"remotes:write",
|
package/dist/types.d.ts
CHANGED
|
@@ -67,6 +67,11 @@ export interface AgentTool {
|
|
|
67
67
|
mcp?: MCPToolConfig;
|
|
68
68
|
client?: ClientToolConfig;
|
|
69
69
|
internal?: InternalToolConfig;
|
|
70
|
+
/**
|
|
71
|
+
* ContentTier overrides the tier the tool-result guard reads this
|
|
72
|
+
* tool's output at; empty is the tool type's.
|
|
73
|
+
*/
|
|
74
|
+
content_tier?: ContentTier;
|
|
70
75
|
}
|
|
71
76
|
/**
|
|
72
77
|
* InternalToolConfig contains configuration for internal/built-in tools
|
|
@@ -114,6 +119,7 @@ export interface AgentToolDTO {
|
|
|
114
119
|
type: ToolType;
|
|
115
120
|
require_approval?: boolean;
|
|
116
121
|
approval_timeout?: number;
|
|
122
|
+
content_tier?: ContentTier;
|
|
117
123
|
app?: AppToolConfigDTO;
|
|
118
124
|
agent?: AgentToolConfigDTO;
|
|
119
125
|
hook?: HookToolConfigDTO;
|
|
@@ -330,6 +336,11 @@ export interface AgentVersionDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
330
336
|
permissions?: AgentPermissions;
|
|
331
337
|
hooks?: LifecycleHookConfig[];
|
|
332
338
|
output_schema?: any;
|
|
339
|
+
/**
|
|
340
|
+
* ContentGuard is the agent's tool-result guard; absent is the
|
|
341
|
+
* platform's mode.
|
|
342
|
+
*/
|
|
343
|
+
content_guard?: ContentGuardConfig;
|
|
333
344
|
/**
|
|
334
345
|
* VisitorReads is the scope groups of the team's resources (knowledge,
|
|
335
346
|
* files, artifacts, remotes) a visitor of an embed of this version can
|
|
@@ -384,6 +395,7 @@ export interface AgentConfigInput {
|
|
|
384
395
|
permissions?: AgentPermissions;
|
|
385
396
|
hooks?: LifecycleHookConfig[];
|
|
386
397
|
output_schema?: any;
|
|
398
|
+
content_guard?: ContentGuardConfig;
|
|
387
399
|
}
|
|
388
400
|
/**
|
|
389
401
|
* CoreAppConfigInput is the API input shape for core app configuration.
|
|
@@ -721,10 +733,20 @@ export interface AdminElevateResponse {
|
|
|
721
733
|
export interface AdminElevationStatus {
|
|
722
734
|
elevated: boolean;
|
|
723
735
|
admin_until?: string;
|
|
736
|
+
/**
|
|
737
|
+
* AdminPower: a staff browser sign-in holds platform power on this
|
|
738
|
+
* request, until AdminPowerUntil (INF-1190). AdminPowerWithheld says
|
|
739
|
+
* why one that proved an authenticator holds none here: expired,
|
|
740
|
+
* other_client or wrong_origin.
|
|
741
|
+
*/
|
|
742
|
+
admin_power: boolean;
|
|
743
|
+
admin_power_until?: string;
|
|
744
|
+
admin_power_withheld?: string;
|
|
724
745
|
}
|
|
725
746
|
/**
|
|
726
747
|
* AdminElevationDropResponse is DELETE /device/auth/elevate. Dropped is
|
|
727
|
-
* false when the session held no elevation
|
|
748
|
+
* false when the session held no elevation (a CLI login) or no staff power
|
|
749
|
+
* or admin action window (a browser sign-in).
|
|
728
750
|
*/
|
|
729
751
|
export interface AdminElevationDropResponse {
|
|
730
752
|
elevated: boolean;
|
|
@@ -2723,6 +2745,57 @@ export interface ConnectTokens {
|
|
|
2723
2745
|
RefreshToken: SensitiveString;
|
|
2724
2746
|
ExpiresAt?: string;
|
|
2725
2747
|
}
|
|
2748
|
+
/**
|
|
2749
|
+
* ContentGuardMode is what the tool-result guard does with what it finds in
|
|
2750
|
+
* a tool's result before the agent reads it.
|
|
2751
|
+
*/
|
|
2752
|
+
export type ContentGuardMode = "shadow" | "off" | "annotate" | "strict";
|
|
2753
|
+
/**
|
|
2754
|
+
* ContentGuardShadow scans and logs; the agent reads the result as the
|
|
2755
|
+
* tool returned it. The default.
|
|
2756
|
+
*/
|
|
2757
|
+
export declare const ContentGuardShadow: ContentGuardMode;
|
|
2758
|
+
/**
|
|
2759
|
+
* ContentGuardOff does nothing.
|
|
2760
|
+
*/
|
|
2761
|
+
export declare const ContentGuardOff: ContentGuardMode;
|
|
2762
|
+
/**
|
|
2763
|
+
* ContentGuardAnnotate frames third-party and content results as
|
|
2764
|
+
* untrusted data, notes findings under the frame's header, and judges
|
|
2765
|
+
* without waiting (a flag found later taints the run).
|
|
2766
|
+
*/
|
|
2767
|
+
export declare const ContentGuardAnnotate: ContentGuardMode;
|
|
2768
|
+
/**
|
|
2769
|
+
* ContentGuardStrict is annotate with the judge waited for, and a judge
|
|
2770
|
+
* that does not answer in time read as a flag.
|
|
2771
|
+
*/
|
|
2772
|
+
export declare const ContentGuardStrict: ContentGuardMode;
|
|
2773
|
+
/**
|
|
2774
|
+
* ContentGuardConfig is an agent's tool-result guard (content_guard).
|
|
2775
|
+
*/
|
|
2776
|
+
export interface ContentGuardConfig {
|
|
2777
|
+
/**
|
|
2778
|
+
* Mode: shadow (default), off, annotate or strict. Empty is the
|
|
2779
|
+
* platform's (content_guard.mode, itself shadow by default).
|
|
2780
|
+
*/
|
|
2781
|
+
mode?: ContentGuardMode;
|
|
2782
|
+
/**
|
|
2783
|
+
* IgnoreRules are rule ids not to apply (INF-PI-005 for an agent whose
|
|
2784
|
+
* job is reading Slack mentions).
|
|
2785
|
+
*/
|
|
2786
|
+
ignore_rules?: string[];
|
|
2787
|
+
}
|
|
2788
|
+
/**
|
|
2789
|
+
* ContentTier is how far a tool's output is from the agent's operator:
|
|
2790
|
+
* internal (the platform wrote it from the operator's own data), content
|
|
2791
|
+
* (the operator's stored content others may have written into) or
|
|
2792
|
+
* third_party (an app, an MCP server, an HTTP endpoint, a client, another
|
|
2793
|
+
* agent).
|
|
2794
|
+
*/
|
|
2795
|
+
export type ContentTier = "internal" | "content" | "third_party";
|
|
2796
|
+
export declare const ContentTierInternal: ContentTier;
|
|
2797
|
+
export declare const ContentTierContent: ContentTier;
|
|
2798
|
+
export declare const ContentTierThirdParty: ContentTier;
|
|
2726
2799
|
/**
|
|
2727
2800
|
* CredentialDTO is the API response for a credential (never exposes secrets).
|
|
2728
2801
|
*/
|
|
@@ -3151,6 +3224,23 @@ export interface WorkerDTO extends BaseModelDTO {
|
|
|
3151
3224
|
app_id: string;
|
|
3152
3225
|
app_version_id: string;
|
|
3153
3226
|
active_session_id?: string;
|
|
3227
|
+
/**
|
|
3228
|
+
* Kind is "app" for a sized app worker (INF-1159), made when a run was
|
|
3229
|
+
* placed and kept while warm; empty for a slot the engine registered.
|
|
3230
|
+
*/
|
|
3231
|
+
kind?: WorkerKind;
|
|
3232
|
+
/**
|
|
3233
|
+
* VCPUs, MemoryMiB and MemoryLimitMiB are a sized app worker's request
|
|
3234
|
+
* and memory cap (WorkerSize); 0 on a slot.
|
|
3235
|
+
*/
|
|
3236
|
+
vcpus?: number;
|
|
3237
|
+
memory_mib?: number;
|
|
3238
|
+
memory_limit_mib?: number;
|
|
3239
|
+
/**
|
|
3240
|
+
* MemoryDeclaredMiB is what the app declared when the request was
|
|
3241
|
+
* capped below it (workers.max_app_ram_mib); 0 when not capped.
|
|
3242
|
+
*/
|
|
3243
|
+
memory_declared_mib?: number;
|
|
3154
3244
|
gpus?: WorkerGPU[];
|
|
3155
3245
|
cpus?: WorkerCPU[];
|
|
3156
3246
|
rams?: WorkerRAM[];
|
|
@@ -3213,7 +3303,7 @@ export interface WorkerRAM {
|
|
|
3213
3303
|
* a task lists the ones it needs (Task.Requires); the scheduler only sends
|
|
3214
3304
|
* a task to an engine that has every one it needs.
|
|
3215
3305
|
*/
|
|
3216
|
-
export type EngineCapability = "egress_gateway" | "sandboxes" | "capacity" | "egress_pending" | "egress_grants" | "egress_decide";
|
|
3306
|
+
export type EngineCapability = "egress_gateway" | "sandboxes" | "capacity" | "egress_pending" | "egress_grants" | "egress_decide" | "sized_sandboxes" | "sized_workers";
|
|
3217
3307
|
/**
|
|
3218
3308
|
* EngineCapabilityEgressGateway: the engine runs its sandboxes behind
|
|
3219
3309
|
* the egress gateway, so it can take bound secrets (the v2 secrets
|
|
@@ -3255,6 +3345,25 @@ export declare const EngineCapabilityEgressGrants: EngineCapability;
|
|
|
3255
3345
|
* egress_answer and acks egress_revoke (INF-1173).
|
|
3256
3346
|
*/
|
|
3257
3347
|
export declare const EngineCapabilityEgressDecide: EngineCapability;
|
|
3348
|
+
/**
|
|
3349
|
+
* EngineCapabilitySizedSandboxes: the engine runs a sandbox's box that
|
|
3350
|
+
* holds no worker, sized by the start, and refuses one it has no room
|
|
3351
|
+
* for (SandboxBoxReasonNoRoom). The API then places sandboxes there by
|
|
3352
|
+
* size, against the engine's capacity, instead of leasing a worker
|
|
3353
|
+
* (INF-1158).
|
|
3354
|
+
*/
|
|
3355
|
+
export declare const EngineCapabilitySizedSandboxes: EngineCapability;
|
|
3356
|
+
/**
|
|
3357
|
+
* EngineCapabilitySizedWorkers: the engine registers no CPU slots
|
|
3358
|
+
* (EngineRegisterRequest.SizedWorkers) and makes a CPU app worker when a
|
|
3359
|
+
* run is dispatched to one it does not have, sized by the dispatch
|
|
3360
|
+
* (WsTaskRunPayload.Worker): its vCPUs as the CPU quota, its memory
|
|
3361
|
+
* limit as the cgroup cap. It refuses one it has no room for
|
|
3362
|
+
* (RejectionNoRoom), ends one on worker_release, and its committed_apps
|
|
3363
|
+
* counts its slot (GPU) workers only. The API then places CPU app runs
|
|
3364
|
+
* there by size, against the engine's capacity (INF-1159).
|
|
3365
|
+
*/
|
|
3366
|
+
export declare const EngineCapabilitySizedWorkers: EngineCapability;
|
|
3258
3367
|
/**
|
|
3259
3368
|
* EngineCapabilities is a set of capabilities, kept as a list. Nil and
|
|
3260
3369
|
* empty are the same: nothing beyond the base contract.
|
|
@@ -3284,6 +3393,14 @@ export interface EngineCapacity {
|
|
|
3284
3393
|
reserve: CapacityAmount;
|
|
3285
3394
|
allocatable: CapacityAmount;
|
|
3286
3395
|
committed: CapacityAmount;
|
|
3396
|
+
/**
|
|
3397
|
+
* CommittedApps is the apps' part of Committed: the CPU quota of the
|
|
3398
|
+
* workers running an app and the memory their containers use. Workers
|
|
3399
|
+
* are slots registered ahead of time, so an idle one holds nothing
|
|
3400
|
+
* until it runs something (INF-1159 gives apps real requests). Sized
|
|
3401
|
+
* sandbox placement adds the boxes the API placed to it.
|
|
3402
|
+
*/
|
|
3403
|
+
committed_apps: CapacityAmount;
|
|
3287
3404
|
used: CapacityAmount;
|
|
3288
3405
|
}
|
|
3289
3406
|
/**
|
|
@@ -3341,6 +3458,13 @@ export interface EntitlementErrorMeta {
|
|
|
3341
3458
|
addon_plan_id?: string;
|
|
3342
3459
|
addon_plan_name?: string;
|
|
3343
3460
|
addon_plan_price?: number;
|
|
3461
|
+
/**
|
|
3462
|
+
* Requirement is the unmet requirement of a purchase_required refusal,
|
|
3463
|
+
* WithinDays its window, BillingPage where to meet it.
|
|
3464
|
+
*/
|
|
3465
|
+
requirement?: FeatureRequirement;
|
|
3466
|
+
within_days?: number;
|
|
3467
|
+
billing_page?: string;
|
|
3344
3468
|
}
|
|
3345
3469
|
/**
|
|
3346
3470
|
* EntitlementRequestDTO is a team's request for an entitlement, with the
|
|
@@ -3392,7 +3516,7 @@ export interface DecideEntitlementRequestRequest {
|
|
|
3392
3516
|
* and APIError.Code on the legacy envelope. Clients branch on these, so a
|
|
3393
3517
|
* code is a named const here, where it generates into models and the SDKs.
|
|
3394
3518
|
*/
|
|
3395
|
-
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" | "access_restricted" | "web_access_restricted" | "requirements_not_met" | "team_role_required" | "in_other_workspace" | "blocked_by_usage_policy" | "last_owner" | "account_deactivated" | "account_banned" | "person_required" | "otp_required" | "requires_sign_in" | "insufficient_scope" | "invalid_scope" | "impersonation_reason_required" | "mcp_auth_expired" | "admin_session_required" | "admin_scopes_not_approved" | "cli_session_required" | "admin_required" | "same_admin_required" | "browser_session_required" | "invalid_ttl" | "admin_authenticator_required" | "last_authenticator" | "limit_exceeded" | "feature_not_available" | "entitlement_unavailable" | "payment_required" | "payment_method_required" | "form_closed" | "already_submitted" | "already_claimed" | "already_entitled" | "request_open" | "invalid_code" | "already_processed" | "expired" | "code_confirmation_required" | "app_retired" | "app_maintenance" | "invalid_transition" | "maintenance" | "SESSION_NOT_FOUND" | "SESSION_EXPIRED" | "SESSION_ENDED" | "WORKER_LEASED" | "APP_MISMATCH" | "VERSION_MISMATCH" | "agents_disabled" | "remote_offline" | "remote_timeout" | "harness_not_drivable" | "harness_too_old";
|
|
3519
|
+
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" | "access_restricted" | "web_access_restricted" | "requirements_not_met" | "team_role_required" | "in_other_workspace" | "visibility_not_allowed" | "blocked_by_usage_policy" | "last_owner" | "account_deactivated" | "account_banned" | "publish_quarantined" | "person_required" | "otp_required" | "requires_sign_in" | "insufficient_scope" | "invalid_scope" | "impersonation_reason_required" | "mcp_auth_expired" | "admin_session_required" | "admin_scopes_not_approved" | "cli_session_required" | "admin_required" | "same_admin_required" | "browser_session_required" | "invalid_ttl" | "admin_origin_required" | "admin_authenticator_required" | "last_authenticator" | "limit_exceeded" | "feature_not_available" | "entitlement_unavailable" | "purchase_required" | "payment_required" | "payment_method_required" | "form_closed" | "already_submitted" | "notifications_disabled" | "already_claimed" | "already_entitled" | "request_open" | "invalid_code" | "already_processed" | "expired" | "code_confirmation_required" | "app_retired" | "app_maintenance" | "invalid_transition" | "maintenance" | "SESSION_NOT_FOUND" | "SESSION_EXPIRED" | "SESSION_ENDED" | "WORKER_LEASED" | "APP_MISMATCH" | "VERSION_MISMATCH" | "agents_disabled" | "remote_offline" | "remote_timeout" | "harness_not_drivable" | "harness_too_old";
|
|
3396
3520
|
export declare const ErrorCodeInvalidRequest: ErrorCode;
|
|
3397
3521
|
export declare const ErrorCodeValidationError: ErrorCode;
|
|
3398
3522
|
export declare const ErrorCodeUnauthorized: ErrorCode;
|
|
@@ -3435,6 +3559,13 @@ export declare const ErrorCodeTeamRoleRequired: ErrorCode;
|
|
|
3435
3559
|
* the caller belongs to and could open there (InOtherWorkspaceMeta).
|
|
3436
3560
|
*/
|
|
3437
3561
|
export declare const ErrorCodeInOtherWorkspace: ErrorCode;
|
|
3562
|
+
/**
|
|
3563
|
+
* ErrorCodeVisibilityNotAllowed (400): the resource cannot take the
|
|
3564
|
+
* visibility asked for (models.VisibilityDeclarer): a task, a flow run
|
|
3565
|
+
* or an engine is private or team, never org, public or unlisted.
|
|
3566
|
+
* Meta is VisibilityNotAllowedMeta.
|
|
3567
|
+
*/
|
|
3568
|
+
export declare const ErrorCodeVisibilityNotAllowed: ErrorCode;
|
|
3438
3569
|
/**
|
|
3439
3570
|
* ErrorCodeBlockedByUsagePolicy: the resource is outside the team or org
|
|
3440
3571
|
* usage policy. The message names who to ask.
|
|
@@ -3453,6 +3584,13 @@ export declare const ErrorCodeLastOwner: ErrorCode;
|
|
|
3453
3584
|
*/
|
|
3454
3585
|
export declare const ErrorCodeAccountDeactivated: ErrorCode;
|
|
3455
3586
|
export declare const ErrorCodeAccountBanned: ErrorCode;
|
|
3587
|
+
/**
|
|
3588
|
+
* ErrorCodePublishQuarantined (403): the account may not make the row
|
|
3589
|
+
* public or unlisted yet: it is new (younger than 72 hours), its email
|
|
3590
|
+
* is not verified, or it is flagged (abuse.CheckPublish). Meta is
|
|
3591
|
+
* PublishQuarantinedMeta; Until says from when a new account can.
|
|
3592
|
+
*/
|
|
3593
|
+
export declare const ErrorCodePublishQuarantined: ErrorCode;
|
|
3456
3594
|
/**
|
|
3457
3595
|
* ErrorCodePersonRequired (403): only a person may do this, and the
|
|
3458
3596
|
* caller is a workspace's service account (a workspace API key), or the
|
|
@@ -3499,7 +3637,7 @@ export declare const ErrorCodeMCPAuthExpired: ErrorCode;
|
|
|
3499
3637
|
* grants one, and only the person's own browser sign-in changes how the
|
|
3500
3638
|
* account is signed into (authenticator enrollment, RequireBrowserSession).
|
|
3501
3639
|
* InvalidTTL (400): the elevation asked for a window outside
|
|
3502
|
-
* models.AdminElevationMinTTL..
|
|
3640
|
+
* models.AdminElevationMinTTL..admin.elevation.max_ttl.
|
|
3503
3641
|
* AdminScopesNotApproved (403): a platform admin's CLI login was approved
|
|
3504
3642
|
* with a scope list that does not name the admin scopes, so it can't be
|
|
3505
3643
|
* elevated: log in again approving them, then elevate.
|
|
@@ -3511,6 +3649,12 @@ export declare const ErrorCodeAdminRequired: ErrorCode;
|
|
|
3511
3649
|
export declare const ErrorCodeSameAdminRequired: ErrorCode;
|
|
3512
3650
|
export declare const ErrorCodeBrowserSessionRequired: ErrorCode;
|
|
3513
3651
|
export declare const ErrorCodeInvalidTTL: ErrorCode;
|
|
3652
|
+
/**
|
|
3653
|
+
* AdminOriginRequired (403): a staff browser sign-in's power is used
|
|
3654
|
+
* only from the admin origin (ADMIN_URL), never from the app where user
|
|
3655
|
+
* content renders, a frame or another site (INF-1190).
|
|
3656
|
+
*/
|
|
3657
|
+
export declare const ErrorCodeAdminOriginRequired: ErrorCode;
|
|
3514
3658
|
/**
|
|
3515
3659
|
* AdminAuthenticatorRequired (403): a platform admin without an
|
|
3516
3660
|
* authenticator app (TOTP) enrolled. Admin power needs one; until it is
|
|
@@ -3534,6 +3678,13 @@ export declare const ErrorCodeLastAuthenticator: ErrorCode;
|
|
|
3534
3678
|
export declare const ErrorCodeLimitExceeded: ErrorCode;
|
|
3535
3679
|
export declare const ErrorCodeFeatureNotAvailable: ErrorCode;
|
|
3536
3680
|
export declare const ErrorCodeEntitlementUnavailable: ErrorCode;
|
|
3681
|
+
/**
|
|
3682
|
+
* ErrorCodePurchaseRequired (402): the feature requires a purchase
|
|
3683
|
+
* within the last EntitlementErrorMeta.WithinDays days
|
|
3684
|
+
* (shared.RequireRecentPurchase) and the team's payer made none. Meta is
|
|
3685
|
+
* EntitlementErrorMeta, with BillingPage where to make one.
|
|
3686
|
+
*/
|
|
3687
|
+
export declare const ErrorCodePurchaseRequired: ErrorCode;
|
|
3537
3688
|
export declare const ErrorCodePaymentRequired: ErrorCode;
|
|
3538
3689
|
/**
|
|
3539
3690
|
* ErrorCodePaymentMethodRequired (402): the action needs a saved payment
|
|
@@ -3548,6 +3699,11 @@ export declare const ErrorCodePaymentMethodRequired: ErrorCode;
|
|
|
3548
3699
|
*/
|
|
3549
3700
|
export declare const ErrorCodeFormClosed: ErrorCode;
|
|
3550
3701
|
export declare const ErrorCodeAlreadySubmitted: ErrorCode;
|
|
3702
|
+
/**
|
|
3703
|
+
* ErrorCodeNotificationsDisabled (409): the recipient switched this
|
|
3704
|
+
* notification off in their notification preferences.
|
|
3705
|
+
*/
|
|
3706
|
+
export declare const ErrorCodeNotificationsDisabled: ErrorCode;
|
|
3551
3707
|
/**
|
|
3552
3708
|
* Bounty claims (409): the caller already claimed this proof, or as many
|
|
3553
3709
|
* times as the program allows.
|
|
@@ -3623,6 +3779,15 @@ export interface TeamRoleRequiredMeta {
|
|
|
3623
3779
|
export interface InOtherWorkspaceMeta {
|
|
3624
3780
|
team_id: string;
|
|
3625
3781
|
}
|
|
3782
|
+
/**
|
|
3783
|
+
* VisibilityNotAllowedMeta is the meta of a visibility_not_allowed error:
|
|
3784
|
+
* the resource, the visibility refused and the ones it may take.
|
|
3785
|
+
*/
|
|
3786
|
+
export interface VisibilityNotAllowedMeta {
|
|
3787
|
+
resource: string;
|
|
3788
|
+
visibility: Visibility;
|
|
3789
|
+
allowed: Visibility[];
|
|
3790
|
+
}
|
|
3626
3791
|
/**
|
|
3627
3792
|
* ScopeRefusedMeta is the meta of an insufficient_scope or
|
|
3628
3793
|
* requires_sign_in error: the scope the operation declares and the
|
|
@@ -3639,6 +3804,35 @@ export interface PaymentMethodRequiredMeta {
|
|
|
3639
3804
|
bounty_id?: string;
|
|
3640
3805
|
billing_page: string;
|
|
3641
3806
|
}
|
|
3807
|
+
/**
|
|
3808
|
+
* PublishQuarantineReason is why an account may not publish yet
|
|
3809
|
+
* (PublishQuarantinedMeta).
|
|
3810
|
+
*/
|
|
3811
|
+
export type PublishQuarantineReason = "new_account" | "unverified_email" | "flagged";
|
|
3812
|
+
/**
|
|
3813
|
+
* PublishQuarantineNewAccount: the account is younger than the
|
|
3814
|
+
* quarantine (72 hours by default); Until is when it ends.
|
|
3815
|
+
*/
|
|
3816
|
+
export declare const PublishQuarantineNewAccount: PublishQuarantineReason;
|
|
3817
|
+
/**
|
|
3818
|
+
* PublishQuarantineUnverifiedEmail: the account's email is not verified.
|
|
3819
|
+
*/
|
|
3820
|
+
export declare const PublishQuarantineUnverifiedEmail: PublishQuarantineReason;
|
|
3821
|
+
/**
|
|
3822
|
+
* PublishQuarantineFlagged: the account is banned or flagged.
|
|
3823
|
+
*/
|
|
3824
|
+
export declare const PublishQuarantineFlagged: PublishQuarantineReason;
|
|
3825
|
+
/**
|
|
3826
|
+
* PublishQuarantinedMeta is the meta of a publish_quarantined error: the
|
|
3827
|
+
* resource and visibility refused, why, and for a new account from when
|
|
3828
|
+
* it may publish.
|
|
3829
|
+
*/
|
|
3830
|
+
export interface PublishQuarantinedMeta {
|
|
3831
|
+
resource: string;
|
|
3832
|
+
visibility: Visibility;
|
|
3833
|
+
reason: PublishQuarantineReason;
|
|
3834
|
+
until?: string;
|
|
3835
|
+
}
|
|
3642
3836
|
/**
|
|
3643
3837
|
* FileMetadata holds probed media metadata cached on File records.
|
|
3644
3838
|
*/
|
|
@@ -5655,7 +5849,6 @@ export interface TaskLog {
|
|
|
5655
5849
|
content: string;
|
|
5656
5850
|
}
|
|
5657
5851
|
/**
|
|
5658
|
-
* TaskDTO is the full API response for a task.
|
|
5659
5852
|
* TaskEgress is what a task's sandbox sent to and received from the
|
|
5660
5853
|
* internet through the engine's egress gateway, in bytes.
|
|
5661
5854
|
*/
|
|
@@ -5663,6 +5856,15 @@ export interface TaskEgress {
|
|
|
5663
5856
|
bytes_out: number;
|
|
5664
5857
|
bytes_in: number;
|
|
5665
5858
|
}
|
|
5859
|
+
/**
|
|
5860
|
+
* TaskDTO is the full API response for a task.
|
|
5861
|
+
* A reader who may not inspect the task (shared.PermInspect: anyone but its
|
|
5862
|
+
* owner, whatever its visibility) gets it without its runtime internals
|
|
5863
|
+
* (task.withoutInternals): webhook, setup, engine and worker, egress and
|
|
5864
|
+
* session are absent, logs, workers and usage_events null, infra empty.
|
|
5865
|
+
* Those four keep their key, so a client that requires them (the Swift
|
|
5866
|
+
* SDK's infra) still decodes the task.
|
|
5867
|
+
*/
|
|
5666
5868
|
export interface TaskDTO extends BaseModelDTO, PermissionModelDTO {
|
|
5667
5869
|
graph_id?: string;
|
|
5668
5870
|
user_public_key: string;
|
|
@@ -6373,6 +6575,79 @@ export interface A2UISurface {
|
|
|
6373
6575
|
components: A2UIComponent[];
|
|
6374
6576
|
dataModel?: any;
|
|
6375
6577
|
}
|
|
6578
|
+
/**
|
|
6579
|
+
* DeadRunReason is why an ended agent run counts as dead: what happened.
|
|
6580
|
+
* Who caused it (DeadRunSource) follows from it (ClassifyDeadRun); it is
|
|
6581
|
+
* never set on its own.
|
|
6582
|
+
*/
|
|
6583
|
+
export type DeadRunReason = "model_stopped_early" | "model_empty_reply" | "model_output_limit" | "model_refused" | "provider_error" | "no_progress" | "platform_error" | "owner_setup";
|
|
6584
|
+
/**
|
|
6585
|
+
* DeadRunReasonModelStoppedEarly: the agent owes its output through
|
|
6586
|
+
* finish and the model ended its turn with text or reasoning and no tool
|
|
6587
|
+
* call.
|
|
6588
|
+
*/
|
|
6589
|
+
export declare const DeadRunReasonModelStoppedEarly: DeadRunReason;
|
|
6590
|
+
/**
|
|
6591
|
+
* DeadRunReasonModelEmptyReply: the agent owes its output through finish
|
|
6592
|
+
* and the model ended its turn with no content.
|
|
6593
|
+
*/
|
|
6594
|
+
export declare const DeadRunReasonModelEmptyReply: DeadRunReason;
|
|
6595
|
+
/**
|
|
6596
|
+
* DeadRunReasonModelOutputLimit: the agent owes its output through
|
|
6597
|
+
* finish and the model's turn was cut at its output token limit.
|
|
6598
|
+
*/
|
|
6599
|
+
export declare const DeadRunReasonModelOutputLimit: DeadRunReason;
|
|
6600
|
+
/**
|
|
6601
|
+
* DeadRunReasonModelRefused: the agent owes its output through finish
|
|
6602
|
+
* and the provider's safety system refused the turn of a run a trigger
|
|
6603
|
+
* started.
|
|
6604
|
+
*/
|
|
6605
|
+
export declare const DeadRunReasonModelRefused: DeadRunReason;
|
|
6606
|
+
/**
|
|
6607
|
+
* DeadRunReasonProviderError: the model call failed: the provider's or
|
|
6608
|
+
* engine's error, a timeout, or the error a remote harness reported.
|
|
6609
|
+
*/
|
|
6610
|
+
export declare const DeadRunReasonProviderError: DeadRunReason;
|
|
6611
|
+
/**
|
|
6612
|
+
* DeadRunReasonNoProgress: the platform ended a run that went quiet, or
|
|
6613
|
+
* a run a trigger started that was still working past its bound.
|
|
6614
|
+
*/
|
|
6615
|
+
export declare const DeadRunReasonNoProgress: DeadRunReason;
|
|
6616
|
+
/**
|
|
6617
|
+
* DeadRunReasonPlatformError: the run failed for the platform's own
|
|
6618
|
+
* reasons: storage, dispatch, a turn that could not start, a harness
|
|
6619
|
+
* session or remote lost.
|
|
6620
|
+
*/
|
|
6621
|
+
export declare const DeadRunReasonPlatformError: DeadRunReason;
|
|
6622
|
+
/**
|
|
6623
|
+
* DeadRunReasonOwnerSetup: a turn could not start because of something
|
|
6624
|
+
* the agent's owner has to fix: a missing secret or key, a credential
|
|
6625
|
+
* without the scope the call needs, no balance or payment method, an
|
|
6626
|
+
* agent with no model configured, an app outside the team's usage
|
|
6627
|
+
* policy.
|
|
6628
|
+
*/
|
|
6629
|
+
export declare const DeadRunReasonOwnerSetup: DeadRunReason;
|
|
6630
|
+
/**
|
|
6631
|
+
* DeadRunSource is who caused a dead agent run.
|
|
6632
|
+
*/
|
|
6633
|
+
export type DeadRunSource = "model" | "provider" | "platform" | "owner";
|
|
6634
|
+
/**
|
|
6635
|
+
* DeadRunSourceModel: the model ended without the output it owed.
|
|
6636
|
+
*/
|
|
6637
|
+
export declare const DeadRunSourceModel: DeadRunSource;
|
|
6638
|
+
/**
|
|
6639
|
+
* DeadRunSourceProvider: the model's provider (or the engine running
|
|
6640
|
+
* it) failed the call.
|
|
6641
|
+
*/
|
|
6642
|
+
export declare const DeadRunSourceProvider: DeadRunSource;
|
|
6643
|
+
/**
|
|
6644
|
+
* DeadRunSourcePlatform: the platform failed or ended the run.
|
|
6645
|
+
*/
|
|
6646
|
+
export declare const DeadRunSourcePlatform: DeadRunSource;
|
|
6647
|
+
/**
|
|
6648
|
+
* DeadRunSourceOwner: the agent's owner has to fix its setup.
|
|
6649
|
+
*/
|
|
6650
|
+
export declare const DeadRunSourceOwner: DeadRunSource;
|
|
6376
6651
|
/**
|
|
6377
6652
|
* ApiKeyScope is who an API key acts as, chosen when it is created, the way a
|
|
6378
6653
|
* credential's scope says who owns it.
|
|
@@ -6841,7 +7116,7 @@ export declare const VisibilityUnlisted: Visibility;
|
|
|
6841
7116
|
/**
|
|
6842
7117
|
* Permission represents a permission level for access checks.
|
|
6843
7118
|
*/
|
|
6844
|
-
export type Permission = "read" | "write" | "interact" | "use";
|
|
7119
|
+
export type Permission = "read" | "write" | "interact" | "use" | "inspect";
|
|
6845
7120
|
export declare const PermRead: Permission;
|
|
6846
7121
|
export declare const PermWrite: Permission;
|
|
6847
7122
|
/**
|
|
@@ -6857,6 +7132,14 @@ export declare const PermInteract: Permission;
|
|
|
6857
7132
|
* governed by their team/org usage policy (reach, INF-808).
|
|
6858
7133
|
*/
|
|
6859
7134
|
export declare const PermUse: Permission;
|
|
7135
|
+
/**
|
|
7136
|
+
* PermInspect reads a row's runtime internals: a task's logs,
|
|
7137
|
+
* telemetry, webhook, setup, engine and worker. The row's owner and the
|
|
7138
|
+
* stored entries on it grant it; no visibility does. Making a task
|
|
7139
|
+
* public shares what it was asked and what it answered, not how its run
|
|
7140
|
+
* went on the machine.
|
|
7141
|
+
*/
|
|
7142
|
+
export declare const PermInspect: Permission;
|
|
6860
7143
|
/**
|
|
6861
7144
|
* ACLGrantee is who an ACL entry is for (models.ACLEntry, INF-1130).
|
|
6862
7145
|
*/
|
|
@@ -7354,6 +7637,14 @@ export declare const WorkerStatusReserved: WorkerStatus;
|
|
|
7354
7637
|
export declare const WorkerStatusBusy: WorkerStatus;
|
|
7355
7638
|
export declare const WorkerStatusIdle: WorkerStatus;
|
|
7356
7639
|
export declare const WorkerStatusInactive: WorkerStatus;
|
|
7640
|
+
/**
|
|
7641
|
+
* WorkerKind is what a worker row is (INF-1156). Empty is a slot an engine
|
|
7642
|
+
* registered ahead of time; app is a sized live reservation for CPU app
|
|
7643
|
+
* runs, made when a run is placed and kept while warm (INF-1159).
|
|
7644
|
+
*/
|
|
7645
|
+
export type WorkerKind = "" | "app";
|
|
7646
|
+
export declare const WorkerKindSlot: WorkerKind;
|
|
7647
|
+
export declare const WorkerKindApp: WorkerKind;
|
|
7357
7648
|
export type FlowRunStatus = number;
|
|
7358
7649
|
export declare const FlowRunStatusUnknown: FlowRunStatus;
|
|
7359
7650
|
export declare const FlowRunStatusPending: FlowRunStatus;
|
|
@@ -8060,7 +8351,7 @@ export declare const DeviceTokenKindSession: DeviceTokenKind;
|
|
|
8060
8351
|
* TODO: retire once CLIs older than the session-token release are gone.
|
|
8061
8352
|
*/
|
|
8062
8353
|
export declare const DeviceTokenKindAPIKey: DeviceTokenKind;
|
|
8063
|
-
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:marketplace_publish" | "feature:forms" | "feature:sandboxes" | "feature:scopes" | "feature:webhooks" | "feature:team_billing" | "feature:auto_recharge" | "feature:invoices" | "feature:publish_apps";
|
|
8354
|
+
export type EntitlementResource = "api_keys" | "connectors" | "knowledge_bases" | "storage_mb" | "concurrency" | "rate_per_min" | "seats" | "triggers" | "retention_days" | "sandboxes" | "sandbox_vcpus" | "private_apps" | "task_executions" | "feature:byok" | "feature:seedance" | "feature:marketplace_publish" | "feature:forms" | "feature:sandboxes" | "feature:scopes" | "feature:webhooks" | "feature:team_billing" | "feature:auto_recharge" | "feature:invoices" | "feature:publish_apps";
|
|
8064
8355
|
/**
|
|
8065
8356
|
* Capacity limits — scale with tier
|
|
8066
8357
|
*/
|
|
@@ -8073,6 +8364,12 @@ export declare const ResourceRatePerMin: EntitlementResource;
|
|
|
8073
8364
|
export declare const ResourceSeats: EntitlementResource;
|
|
8074
8365
|
export declare const ResourceTriggers: EntitlementResource;
|
|
8075
8366
|
export declare const ResourceRetentionDays: EntitlementResource;
|
|
8367
|
+
/**
|
|
8368
|
+
* Sandboxes a team may hold placed at once, and their vCPUs together
|
|
8369
|
+
* (INF-1158). No row: the platform default (setting sandboxes.placement).
|
|
8370
|
+
*/
|
|
8371
|
+
export declare const ResourceSandboxes: EntitlementResource;
|
|
8372
|
+
export declare const ResourceSandboxVCPUs: EntitlementResource;
|
|
8076
8373
|
/**
|
|
8077
8374
|
* Legacy — kept for DB compatibility, no longer in plan seeds
|
|
8078
8375
|
*/
|
|
@@ -8105,6 +8402,13 @@ export declare const ResourceFeatureTeamBilling: EntitlementResource;
|
|
|
8105
8402
|
export declare const ResourceFeatureAutoRecharge: EntitlementResource;
|
|
8106
8403
|
export declare const ResourceFeatureInvoices: EntitlementResource;
|
|
8107
8404
|
export declare const ResourceFeaturePublishApps: EntitlementResource;
|
|
8405
|
+
/**
|
|
8406
|
+
* FeatureRequirement is a condition a team must meet to pass a feature gate
|
|
8407
|
+
* on top of its entitlement (FeatureRequires). An enabled boolean row with
|
|
8408
|
+
* source override, which staff grant, waives a feature's requirements.
|
|
8409
|
+
*/
|
|
8410
|
+
export type FeatureRequirement = "recent_purchase";
|
|
8411
|
+
export declare const RequireRecentPurchase: FeatureRequirement;
|
|
8108
8412
|
export type ContentRating = "safe" | "sexual_suggestive" | "sexual_explicit" | "violence_non_graphic" | "violence_graphic" | "gore" | "unrated";
|
|
8109
8413
|
export declare const ContentSafe: ContentRating;
|
|
8110
8414
|
export declare const ContentSexualSuggestive: ContentRating;
|
package/dist/types.js
CHANGED
|
@@ -438,6 +438,29 @@ export const ToolRiskMedium = "medium";
|
|
|
438
438
|
* ToolRiskHigh: dangerous or irreversible changes.
|
|
439
439
|
*/
|
|
440
440
|
export const ToolRiskHigh = "high";
|
|
441
|
+
/**
|
|
442
|
+
* ContentGuardShadow scans and logs; the agent reads the result as the
|
|
443
|
+
* tool returned it. The default.
|
|
444
|
+
*/
|
|
445
|
+
export const ContentGuardShadow = "shadow";
|
|
446
|
+
/**
|
|
447
|
+
* ContentGuardOff does nothing.
|
|
448
|
+
*/
|
|
449
|
+
export const ContentGuardOff = "off";
|
|
450
|
+
/**
|
|
451
|
+
* ContentGuardAnnotate frames third-party and content results as
|
|
452
|
+
* untrusted data, notes findings under the frame's header, and judges
|
|
453
|
+
* without waiting (a flag found later taints the run).
|
|
454
|
+
*/
|
|
455
|
+
export const ContentGuardAnnotate = "annotate";
|
|
456
|
+
/**
|
|
457
|
+
* ContentGuardStrict is annotate with the judge waited for, and a judge
|
|
458
|
+
* that does not answer in time read as a flag.
|
|
459
|
+
*/
|
|
460
|
+
export const ContentGuardStrict = "strict";
|
|
461
|
+
export const ContentTierInternal = "internal";
|
|
462
|
+
export const ContentTierContent = "content";
|
|
463
|
+
export const ContentTierThirdParty = "third_party";
|
|
441
464
|
export const EgressGrantScopeTask = "task";
|
|
442
465
|
export const EgressGrantScopeSandbox = "sandbox";
|
|
443
466
|
/**
|
|
@@ -517,6 +540,25 @@ export const EngineCapabilityEgressGrants = "egress_grants";
|
|
|
517
540
|
* egress_answer and acks egress_revoke (INF-1173).
|
|
518
541
|
*/
|
|
519
542
|
export const EngineCapabilityEgressDecide = "egress_decide";
|
|
543
|
+
/**
|
|
544
|
+
* EngineCapabilitySizedSandboxes: the engine runs a sandbox's box that
|
|
545
|
+
* holds no worker, sized by the start, and refuses one it has no room
|
|
546
|
+
* for (SandboxBoxReasonNoRoom). The API then places sandboxes there by
|
|
547
|
+
* size, against the engine's capacity, instead of leasing a worker
|
|
548
|
+
* (INF-1158).
|
|
549
|
+
*/
|
|
550
|
+
export const EngineCapabilitySizedSandboxes = "sized_sandboxes";
|
|
551
|
+
/**
|
|
552
|
+
* EngineCapabilitySizedWorkers: the engine registers no CPU slots
|
|
553
|
+
* (EngineRegisterRequest.SizedWorkers) and makes a CPU app worker when a
|
|
554
|
+
* run is dispatched to one it does not have, sized by the dispatch
|
|
555
|
+
* (WsTaskRunPayload.Worker): its vCPUs as the CPU quota, its memory
|
|
556
|
+
* limit as the cgroup cap. It refuses one it has no room for
|
|
557
|
+
* (RejectionNoRoom), ends one on worker_release, and its committed_apps
|
|
558
|
+
* counts its slot (GPU) workers only. The API then places CPU app runs
|
|
559
|
+
* there by size, against the engine's capacity (INF-1159).
|
|
560
|
+
*/
|
|
561
|
+
export const EngineCapabilitySizedWorkers = "sized_workers";
|
|
520
562
|
export const ErrorCodeInvalidRequest = "invalid_request";
|
|
521
563
|
export const ErrorCodeValidationError = "validation_error";
|
|
522
564
|
export const ErrorCodeUnauthorized = "unauthorized";
|
|
@@ -559,6 +601,13 @@ export const ErrorCodeTeamRoleRequired = "team_role_required";
|
|
|
559
601
|
* the caller belongs to and could open there (InOtherWorkspaceMeta).
|
|
560
602
|
*/
|
|
561
603
|
export const ErrorCodeInOtherWorkspace = "in_other_workspace";
|
|
604
|
+
/**
|
|
605
|
+
* ErrorCodeVisibilityNotAllowed (400): the resource cannot take the
|
|
606
|
+
* visibility asked for (models.VisibilityDeclarer): a task, a flow run
|
|
607
|
+
* or an engine is private or team, never org, public or unlisted.
|
|
608
|
+
* Meta is VisibilityNotAllowedMeta.
|
|
609
|
+
*/
|
|
610
|
+
export const ErrorCodeVisibilityNotAllowed = "visibility_not_allowed";
|
|
562
611
|
/**
|
|
563
612
|
* ErrorCodeBlockedByUsagePolicy: the resource is outside the team or org
|
|
564
613
|
* usage policy. The message names who to ask.
|
|
@@ -577,6 +626,13 @@ export const ErrorCodeLastOwner = "last_owner";
|
|
|
577
626
|
*/
|
|
578
627
|
export const ErrorCodeAccountDeactivated = "account_deactivated";
|
|
579
628
|
export const ErrorCodeAccountBanned = "account_banned";
|
|
629
|
+
/**
|
|
630
|
+
* ErrorCodePublishQuarantined (403): the account may not make the row
|
|
631
|
+
* public or unlisted yet: it is new (younger than 72 hours), its email
|
|
632
|
+
* is not verified, or it is flagged (abuse.CheckPublish). Meta is
|
|
633
|
+
* PublishQuarantinedMeta; Until says from when a new account can.
|
|
634
|
+
*/
|
|
635
|
+
export const ErrorCodePublishQuarantined = "publish_quarantined";
|
|
580
636
|
/**
|
|
581
637
|
* ErrorCodePersonRequired (403): only a person may do this, and the
|
|
582
638
|
* caller is a workspace's service account (a workspace API key), or the
|
|
@@ -623,7 +679,7 @@ export const ErrorCodeMCPAuthExpired = "mcp_auth_expired";
|
|
|
623
679
|
* grants one, and only the person's own browser sign-in changes how the
|
|
624
680
|
* account is signed into (authenticator enrollment, RequireBrowserSession).
|
|
625
681
|
* InvalidTTL (400): the elevation asked for a window outside
|
|
626
|
-
* models.AdminElevationMinTTL..
|
|
682
|
+
* models.AdminElevationMinTTL..admin.elevation.max_ttl.
|
|
627
683
|
* AdminScopesNotApproved (403): a platform admin's CLI login was approved
|
|
628
684
|
* with a scope list that does not name the admin scopes, so it can't be
|
|
629
685
|
* elevated: log in again approving them, then elevate.
|
|
@@ -635,6 +691,12 @@ export const ErrorCodeAdminRequired = "admin_required";
|
|
|
635
691
|
export const ErrorCodeSameAdminRequired = "same_admin_required";
|
|
636
692
|
export const ErrorCodeBrowserSessionRequired = "browser_session_required";
|
|
637
693
|
export const ErrorCodeInvalidTTL = "invalid_ttl";
|
|
694
|
+
/**
|
|
695
|
+
* AdminOriginRequired (403): a staff browser sign-in's power is used
|
|
696
|
+
* only from the admin origin (ADMIN_URL), never from the app where user
|
|
697
|
+
* content renders, a frame or another site (INF-1190).
|
|
698
|
+
*/
|
|
699
|
+
export const ErrorCodeAdminOriginRequired = "admin_origin_required";
|
|
638
700
|
/**
|
|
639
701
|
* AdminAuthenticatorRequired (403): a platform admin without an
|
|
640
702
|
* authenticator app (TOTP) enrolled. Admin power needs one; until it is
|
|
@@ -658,6 +720,13 @@ export const ErrorCodeLastAuthenticator = "last_authenticator";
|
|
|
658
720
|
export const ErrorCodeLimitExceeded = "limit_exceeded";
|
|
659
721
|
export const ErrorCodeFeatureNotAvailable = "feature_not_available";
|
|
660
722
|
export const ErrorCodeEntitlementUnavailable = "entitlement_unavailable";
|
|
723
|
+
/**
|
|
724
|
+
* ErrorCodePurchaseRequired (402): the feature requires a purchase
|
|
725
|
+
* within the last EntitlementErrorMeta.WithinDays days
|
|
726
|
+
* (shared.RequireRecentPurchase) and the team's payer made none. Meta is
|
|
727
|
+
* EntitlementErrorMeta, with BillingPage where to make one.
|
|
728
|
+
*/
|
|
729
|
+
export const ErrorCodePurchaseRequired = "purchase_required";
|
|
661
730
|
export const ErrorCodePaymentRequired = "payment_required";
|
|
662
731
|
/**
|
|
663
732
|
* ErrorCodePaymentMethodRequired (402): the action needs a saved payment
|
|
@@ -672,6 +741,11 @@ export const ErrorCodePaymentMethodRequired = "payment_method_required";
|
|
|
672
741
|
*/
|
|
673
742
|
export const ErrorCodeFormClosed = "form_closed";
|
|
674
743
|
export const ErrorCodeAlreadySubmitted = "already_submitted";
|
|
744
|
+
/**
|
|
745
|
+
* ErrorCodeNotificationsDisabled (409): the recipient switched this
|
|
746
|
+
* notification off in their notification preferences.
|
|
747
|
+
*/
|
|
748
|
+
export const ErrorCodeNotificationsDisabled = "notifications_disabled";
|
|
675
749
|
/**
|
|
676
750
|
* Bounty claims (409): the caller already claimed this proof, or as many
|
|
677
751
|
* times as the program allows.
|
|
@@ -728,6 +802,19 @@ export const ErrorCodeRemoteOffline = "remote_offline";
|
|
|
728
802
|
export const ErrorCodeRemoteTimeout = "remote_timeout";
|
|
729
803
|
export const ErrorCodeHarnessNotDrivable = "harness_not_drivable";
|
|
730
804
|
export const ErrorCodeHarnessTooOld = "harness_too_old";
|
|
805
|
+
/**
|
|
806
|
+
* PublishQuarantineNewAccount: the account is younger than the
|
|
807
|
+
* quarantine (72 hours by default); Until is when it ends.
|
|
808
|
+
*/
|
|
809
|
+
export const PublishQuarantineNewAccount = "new_account";
|
|
810
|
+
/**
|
|
811
|
+
* PublishQuarantineUnverifiedEmail: the account's email is not verified.
|
|
812
|
+
*/
|
|
813
|
+
export const PublishQuarantineUnverifiedEmail = "unverified_email";
|
|
814
|
+
/**
|
|
815
|
+
* PublishQuarantineFlagged: the account is banned or flagged.
|
|
816
|
+
*/
|
|
817
|
+
export const PublishQuarantineFlagged = "flagged";
|
|
731
818
|
export const TaskFileRoleInput = "input";
|
|
732
819
|
export const TaskFileRoleOutput = "output";
|
|
733
820
|
/**
|
|
@@ -936,6 +1023,69 @@ export const A2UIArtifact = "Artifact";
|
|
|
936
1023
|
* postMessage, and whose tools/call requests it proxies to the server.
|
|
937
1024
|
*/
|
|
938
1025
|
export const A2UIMcpApp = "McpApp";
|
|
1026
|
+
/**
|
|
1027
|
+
* DeadRunReasonModelStoppedEarly: the agent owes its output through
|
|
1028
|
+
* finish and the model ended its turn with text or reasoning and no tool
|
|
1029
|
+
* call.
|
|
1030
|
+
*/
|
|
1031
|
+
export const DeadRunReasonModelStoppedEarly = "model_stopped_early";
|
|
1032
|
+
/**
|
|
1033
|
+
* DeadRunReasonModelEmptyReply: the agent owes its output through finish
|
|
1034
|
+
* and the model ended its turn with no content.
|
|
1035
|
+
*/
|
|
1036
|
+
export const DeadRunReasonModelEmptyReply = "model_empty_reply";
|
|
1037
|
+
/**
|
|
1038
|
+
* DeadRunReasonModelOutputLimit: the agent owes its output through
|
|
1039
|
+
* finish and the model's turn was cut at its output token limit.
|
|
1040
|
+
*/
|
|
1041
|
+
export const DeadRunReasonModelOutputLimit = "model_output_limit";
|
|
1042
|
+
/**
|
|
1043
|
+
* DeadRunReasonModelRefused: the agent owes its output through finish
|
|
1044
|
+
* and the provider's safety system refused the turn of a run a trigger
|
|
1045
|
+
* started.
|
|
1046
|
+
*/
|
|
1047
|
+
export const DeadRunReasonModelRefused = "model_refused";
|
|
1048
|
+
/**
|
|
1049
|
+
* DeadRunReasonProviderError: the model call failed: the provider's or
|
|
1050
|
+
* engine's error, a timeout, or the error a remote harness reported.
|
|
1051
|
+
*/
|
|
1052
|
+
export const DeadRunReasonProviderError = "provider_error";
|
|
1053
|
+
/**
|
|
1054
|
+
* DeadRunReasonNoProgress: the platform ended a run that went quiet, or
|
|
1055
|
+
* a run a trigger started that was still working past its bound.
|
|
1056
|
+
*/
|
|
1057
|
+
export const DeadRunReasonNoProgress = "no_progress";
|
|
1058
|
+
/**
|
|
1059
|
+
* DeadRunReasonPlatformError: the run failed for the platform's own
|
|
1060
|
+
* reasons: storage, dispatch, a turn that could not start, a harness
|
|
1061
|
+
* session or remote lost.
|
|
1062
|
+
*/
|
|
1063
|
+
export const DeadRunReasonPlatformError = "platform_error";
|
|
1064
|
+
/**
|
|
1065
|
+
* DeadRunReasonOwnerSetup: a turn could not start because of something
|
|
1066
|
+
* the agent's owner has to fix: a missing secret or key, a credential
|
|
1067
|
+
* without the scope the call needs, no balance or payment method, an
|
|
1068
|
+
* agent with no model configured, an app outside the team's usage
|
|
1069
|
+
* policy.
|
|
1070
|
+
*/
|
|
1071
|
+
export const DeadRunReasonOwnerSetup = "owner_setup";
|
|
1072
|
+
/**
|
|
1073
|
+
* DeadRunSourceModel: the model ended without the output it owed.
|
|
1074
|
+
*/
|
|
1075
|
+
export const DeadRunSourceModel = "model";
|
|
1076
|
+
/**
|
|
1077
|
+
* DeadRunSourceProvider: the model's provider (or the engine running
|
|
1078
|
+
* it) failed the call.
|
|
1079
|
+
*/
|
|
1080
|
+
export const DeadRunSourceProvider = "provider";
|
|
1081
|
+
/**
|
|
1082
|
+
* DeadRunSourcePlatform: the platform failed or ended the run.
|
|
1083
|
+
*/
|
|
1084
|
+
export const DeadRunSourcePlatform = "platform";
|
|
1085
|
+
/**
|
|
1086
|
+
* DeadRunSourceOwner: the agent's owner has to fix its setup.
|
|
1087
|
+
*/
|
|
1088
|
+
export const DeadRunSourceOwner = "owner";
|
|
939
1089
|
/**
|
|
940
1090
|
* ApiKeyScopeUser is a personal key: it acts as the person who created it,
|
|
941
1091
|
* in the workspace it was created in, and ends when they can no longer
|
|
@@ -1063,6 +1213,14 @@ export const PermInteract = "interact";
|
|
|
1063
1213
|
* governed by their team/org usage policy (reach, INF-808).
|
|
1064
1214
|
*/
|
|
1065
1215
|
export const PermUse = "use";
|
|
1216
|
+
/**
|
|
1217
|
+
* PermInspect reads a row's runtime internals: a task's logs,
|
|
1218
|
+
* telemetry, webhook, setup, engine and worker. The row's owner and the
|
|
1219
|
+
* stored entries on it grant it; no visibility does. Making a task
|
|
1220
|
+
* public shares what it was asked and what it answered, not how its run
|
|
1221
|
+
* went on the machine.
|
|
1222
|
+
*/
|
|
1223
|
+
export const PermInspect = "inspect";
|
|
1066
1224
|
export const ACLGranteeUser = "user";
|
|
1067
1225
|
export const ACLGranteeTeam = "team";
|
|
1068
1226
|
export const ACLGranteeOrg = "org";
|
|
@@ -1238,6 +1396,8 @@ export const WorkerStatusReserved = "reserved";
|
|
|
1238
1396
|
export const WorkerStatusBusy = "busy";
|
|
1239
1397
|
export const WorkerStatusIdle = "idle";
|
|
1240
1398
|
export const WorkerStatusInactive = "inactive";
|
|
1399
|
+
export const WorkerKindSlot = "";
|
|
1400
|
+
export const WorkerKindApp = "app";
|
|
1241
1401
|
export const FlowRunStatusUnknown = 0;
|
|
1242
1402
|
export const FlowRunStatusPending = 1;
|
|
1243
1403
|
export const FlowRunStatusRunning = 2;
|
|
@@ -1599,6 +1759,12 @@ export const ResourceRatePerMin = "rate_per_min";
|
|
|
1599
1759
|
export const ResourceSeats = "seats";
|
|
1600
1760
|
export const ResourceTriggers = "triggers";
|
|
1601
1761
|
export const ResourceRetentionDays = "retention_days";
|
|
1762
|
+
/**
|
|
1763
|
+
* Sandboxes a team may hold placed at once, and their vCPUs together
|
|
1764
|
+
* (INF-1158). No row: the platform default (setting sandboxes.placement).
|
|
1765
|
+
*/
|
|
1766
|
+
export const ResourceSandboxes = "sandboxes";
|
|
1767
|
+
export const ResourceSandboxVCPUs = "sandbox_vcpus";
|
|
1602
1768
|
/**
|
|
1603
1769
|
* Legacy — kept for DB compatibility, no longer in plan seeds
|
|
1604
1770
|
*/
|
|
@@ -1631,6 +1797,7 @@ export const ResourceFeatureTeamBilling = "feature:team_billing";
|
|
|
1631
1797
|
export const ResourceFeatureAutoRecharge = "feature:auto_recharge";
|
|
1632
1798
|
export const ResourceFeatureInvoices = "feature:invoices";
|
|
1633
1799
|
export const ResourceFeaturePublishApps = "feature:publish_apps";
|
|
1800
|
+
export const RequireRecentPurchase = "recent_purchase";
|
|
1634
1801
|
export const ContentSafe = "safe";
|
|
1635
1802
|
export const ContentSexualSuggestive = "sexual_suggestive";
|
|
1636
1803
|
export const ContentSexualExplicit = "sexual_explicit";
|