@inferencesh/sdk 0.38.14 → 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/types.d.ts +285 -7
- package/dist/types.js +155 -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
|
*/
|
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
|
/**
|
|
@@ -3399,7 +3516,7 @@ export interface DecideEntitlementRequestRequest {
|
|
|
3399
3516
|
* and APIError.Code on the legacy envelope. Clients branch on these, so a
|
|
3400
3517
|
* code is a named const here, where it generates into models and the SDKs.
|
|
3401
3518
|
*/
|
|
3402
|
-
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" | "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";
|
|
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";
|
|
3403
3520
|
export declare const ErrorCodeInvalidRequest: ErrorCode;
|
|
3404
3521
|
export declare const ErrorCodeValidationError: ErrorCode;
|
|
3405
3522
|
export declare const ErrorCodeUnauthorized: ErrorCode;
|
|
@@ -3442,6 +3559,13 @@ export declare const ErrorCodeTeamRoleRequired: ErrorCode;
|
|
|
3442
3559
|
* the caller belongs to and could open there (InOtherWorkspaceMeta).
|
|
3443
3560
|
*/
|
|
3444
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;
|
|
3445
3569
|
/**
|
|
3446
3570
|
* ErrorCodeBlockedByUsagePolicy: the resource is outside the team or org
|
|
3447
3571
|
* usage policy. The message names who to ask.
|
|
@@ -3460,6 +3584,13 @@ export declare const ErrorCodeLastOwner: ErrorCode;
|
|
|
3460
3584
|
*/
|
|
3461
3585
|
export declare const ErrorCodeAccountDeactivated: ErrorCode;
|
|
3462
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;
|
|
3463
3594
|
/**
|
|
3464
3595
|
* ErrorCodePersonRequired (403): only a person may do this, and the
|
|
3465
3596
|
* caller is a workspace's service account (a workspace API key), or the
|
|
@@ -3506,7 +3637,7 @@ export declare const ErrorCodeMCPAuthExpired: ErrorCode;
|
|
|
3506
3637
|
* grants one, and only the person's own browser sign-in changes how the
|
|
3507
3638
|
* account is signed into (authenticator enrollment, RequireBrowserSession).
|
|
3508
3639
|
* InvalidTTL (400): the elevation asked for a window outside
|
|
3509
|
-
* models.AdminElevationMinTTL..
|
|
3640
|
+
* models.AdminElevationMinTTL..admin.elevation.max_ttl.
|
|
3510
3641
|
* AdminScopesNotApproved (403): a platform admin's CLI login was approved
|
|
3511
3642
|
* with a scope list that does not name the admin scopes, so it can't be
|
|
3512
3643
|
* elevated: log in again approving them, then elevate.
|
|
@@ -3518,6 +3649,12 @@ export declare const ErrorCodeAdminRequired: ErrorCode;
|
|
|
3518
3649
|
export declare const ErrorCodeSameAdminRequired: ErrorCode;
|
|
3519
3650
|
export declare const ErrorCodeBrowserSessionRequired: ErrorCode;
|
|
3520
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;
|
|
3521
3658
|
/**
|
|
3522
3659
|
* AdminAuthenticatorRequired (403): a platform admin without an
|
|
3523
3660
|
* authenticator app (TOTP) enrolled. Admin power needs one; until it is
|
|
@@ -3642,6 +3779,15 @@ export interface TeamRoleRequiredMeta {
|
|
|
3642
3779
|
export interface InOtherWorkspaceMeta {
|
|
3643
3780
|
team_id: string;
|
|
3644
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
|
+
}
|
|
3645
3791
|
/**
|
|
3646
3792
|
* ScopeRefusedMeta is the meta of an insufficient_scope or
|
|
3647
3793
|
* requires_sign_in error: the scope the operation declares and the
|
|
@@ -3658,6 +3804,35 @@ export interface PaymentMethodRequiredMeta {
|
|
|
3658
3804
|
bounty_id?: string;
|
|
3659
3805
|
billing_page: string;
|
|
3660
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
|
+
}
|
|
3661
3836
|
/**
|
|
3662
3837
|
* FileMetadata holds probed media metadata cached on File records.
|
|
3663
3838
|
*/
|
|
@@ -5674,7 +5849,6 @@ export interface TaskLog {
|
|
|
5674
5849
|
content: string;
|
|
5675
5850
|
}
|
|
5676
5851
|
/**
|
|
5677
|
-
* TaskDTO is the full API response for a task.
|
|
5678
5852
|
* TaskEgress is what a task's sandbox sent to and received from the
|
|
5679
5853
|
* internet through the engine's egress gateway, in bytes.
|
|
5680
5854
|
*/
|
|
@@ -5682,6 +5856,15 @@ export interface TaskEgress {
|
|
|
5682
5856
|
bytes_out: number;
|
|
5683
5857
|
bytes_in: number;
|
|
5684
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
|
+
*/
|
|
5685
5868
|
export interface TaskDTO extends BaseModelDTO, PermissionModelDTO {
|
|
5686
5869
|
graph_id?: string;
|
|
5687
5870
|
user_public_key: string;
|
|
@@ -6392,6 +6575,79 @@ export interface A2UISurface {
|
|
|
6392
6575
|
components: A2UIComponent[];
|
|
6393
6576
|
dataModel?: any;
|
|
6394
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;
|
|
6395
6651
|
/**
|
|
6396
6652
|
* ApiKeyScope is who an API key acts as, chosen when it is created, the way a
|
|
6397
6653
|
* credential's scope says who owns it.
|
|
@@ -6860,7 +7116,7 @@ export declare const VisibilityUnlisted: Visibility;
|
|
|
6860
7116
|
/**
|
|
6861
7117
|
* Permission represents a permission level for access checks.
|
|
6862
7118
|
*/
|
|
6863
|
-
export type Permission = "read" | "write" | "interact" | "use";
|
|
7119
|
+
export type Permission = "read" | "write" | "interact" | "use" | "inspect";
|
|
6864
7120
|
export declare const PermRead: Permission;
|
|
6865
7121
|
export declare const PermWrite: Permission;
|
|
6866
7122
|
/**
|
|
@@ -6876,6 +7132,14 @@ export declare const PermInteract: Permission;
|
|
|
6876
7132
|
* governed by their team/org usage policy (reach, INF-808).
|
|
6877
7133
|
*/
|
|
6878
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;
|
|
6879
7143
|
/**
|
|
6880
7144
|
* ACLGrantee is who an ACL entry is for (models.ACLEntry, INF-1130).
|
|
6881
7145
|
*/
|
|
@@ -7373,6 +7637,14 @@ export declare const WorkerStatusReserved: WorkerStatus;
|
|
|
7373
7637
|
export declare const WorkerStatusBusy: WorkerStatus;
|
|
7374
7638
|
export declare const WorkerStatusIdle: WorkerStatus;
|
|
7375
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;
|
|
7376
7648
|
export type FlowRunStatus = number;
|
|
7377
7649
|
export declare const FlowRunStatusUnknown: FlowRunStatus;
|
|
7378
7650
|
export declare const FlowRunStatusPending: FlowRunStatus;
|
|
@@ -8079,7 +8351,7 @@ export declare const DeviceTokenKindSession: DeviceTokenKind;
|
|
|
8079
8351
|
* TODO: retire once CLIs older than the session-token release are gone.
|
|
8080
8352
|
*/
|
|
8081
8353
|
export declare const DeviceTokenKindAPIKey: DeviceTokenKind;
|
|
8082
|
-
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";
|
|
8083
8355
|
/**
|
|
8084
8356
|
* Capacity limits — scale with tier
|
|
8085
8357
|
*/
|
|
@@ -8092,6 +8364,12 @@ export declare const ResourceRatePerMin: EntitlementResource;
|
|
|
8092
8364
|
export declare const ResourceSeats: EntitlementResource;
|
|
8093
8365
|
export declare const ResourceTriggers: EntitlementResource;
|
|
8094
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;
|
|
8095
8373
|
/**
|
|
8096
8374
|
* Legacy — kept for DB compatibility, no longer in plan seeds
|
|
8097
8375
|
*/
|
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
|
|
@@ -740,6 +802,19 @@ export const ErrorCodeRemoteOffline = "remote_offline";
|
|
|
740
802
|
export const ErrorCodeRemoteTimeout = "remote_timeout";
|
|
741
803
|
export const ErrorCodeHarnessNotDrivable = "harness_not_drivable";
|
|
742
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";
|
|
743
818
|
export const TaskFileRoleInput = "input";
|
|
744
819
|
export const TaskFileRoleOutput = "output";
|
|
745
820
|
/**
|
|
@@ -948,6 +1023,69 @@ export const A2UIArtifact = "Artifact";
|
|
|
948
1023
|
* postMessage, and whose tools/call requests it proxies to the server.
|
|
949
1024
|
*/
|
|
950
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";
|
|
951
1089
|
/**
|
|
952
1090
|
* ApiKeyScopeUser is a personal key: it acts as the person who created it,
|
|
953
1091
|
* in the workspace it was created in, and ends when they can no longer
|
|
@@ -1075,6 +1213,14 @@ export const PermInteract = "interact";
|
|
|
1075
1213
|
* governed by their team/org usage policy (reach, INF-808).
|
|
1076
1214
|
*/
|
|
1077
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";
|
|
1078
1224
|
export const ACLGranteeUser = "user";
|
|
1079
1225
|
export const ACLGranteeTeam = "team";
|
|
1080
1226
|
export const ACLGranteeOrg = "org";
|
|
@@ -1250,6 +1396,8 @@ export const WorkerStatusReserved = "reserved";
|
|
|
1250
1396
|
export const WorkerStatusBusy = "busy";
|
|
1251
1397
|
export const WorkerStatusIdle = "idle";
|
|
1252
1398
|
export const WorkerStatusInactive = "inactive";
|
|
1399
|
+
export const WorkerKindSlot = "";
|
|
1400
|
+
export const WorkerKindApp = "app";
|
|
1253
1401
|
export const FlowRunStatusUnknown = 0;
|
|
1254
1402
|
export const FlowRunStatusPending = 1;
|
|
1255
1403
|
export const FlowRunStatusRunning = 2;
|
|
@@ -1611,6 +1759,12 @@ export const ResourceRatePerMin = "rate_per_min";
|
|
|
1611
1759
|
export const ResourceSeats = "seats";
|
|
1612
1760
|
export const ResourceTriggers = "triggers";
|
|
1613
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";
|
|
1614
1768
|
/**
|
|
1615
1769
|
* Legacy — kept for DB compatibility, no longer in plan seeds
|
|
1616
1770
|
*/
|