@inferencesh/sdk 0.39.4 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/dist/types.d.ts +168 -35
- package/dist/types.js +33 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.41.0] - 2026-11-14
|
|
11
|
+
|
|
12
|
+
Types regenerated from the API (api-v1567, api-v1568).
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
- Team variables (INF-1345): `VariableDTO`, `VariableSetRequest`, `VariableListResponse`, `VarRequirement`; `required_vars` on app versions; requirement type `variable` and setup action `add_variable`.
|
|
16
|
+
- `infra` on `CreateSandboxRequest` and `SandboxDTO` (`cloud`, `private`, `private_first`: whose engines a sandbox runs on; `SandboxDTO.infra` is always set).
|
|
17
|
+
- `infra` on `ApiAgentRunRequest`, `ChatSettingsRequest` and chat data: where an agent run's app tools run. Empty is cloud.
|
|
18
|
+
|
|
19
|
+
## [0.40.0] - 2026-11-14
|
|
20
|
+
|
|
21
|
+
**Breaking:** types regenerated from the API (api-v1551 to api-v1565).
|
|
22
|
+
|
|
23
|
+
### Removed
|
|
24
|
+
- `vault_id` on `CreateSandboxRequest` and on agent versions and agent config: a sandbox's and an agent's inference.sh access is `api_scopes` now (INF-1292). The API refuses `vault_id` on `POST /sandboxes` with a 400.
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
- `api_scopes` on `CreateSandboxRequest`, `AgentVersionDTO` and `AgentConfigInput`.
|
|
28
|
+
- `CredentialConfigDTO.own_app_scope` and `CredentialAppRequest.scope` (team OAuth apps).
|
|
29
|
+
|
|
30
|
+
### Changed
|
|
31
|
+
- Chat strictness levels that are unset are left out of replies instead of sent as `""`: `ChatSettingsDTO.strictness`, `ChatStrictnessDTO.chat` and `.minimum` are optional. A request with `""` gets a 400; clear a chat's level with `DELETE /chats/{id}/strictness`.
|
|
32
|
+
|
|
10
33
|
## [0.39.4] - 2026-11-13
|
|
11
34
|
|
|
12
35
|
### Fixed
|
package/dist/types.d.ts
CHANGED
|
@@ -342,11 +342,11 @@ export interface AgentVersionDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
342
342
|
*/
|
|
343
343
|
content_guard?: ContentGuardConfig;
|
|
344
344
|
/**
|
|
345
|
-
*
|
|
346
|
-
* get the
|
|
347
|
-
*
|
|
345
|
+
* APIScopes is the inference.sh access the sandboxes its
|
|
346
|
+
* sandbox_create makes get, cut to what the run can hand on. Absent:
|
|
347
|
+
* none.
|
|
348
348
|
*/
|
|
349
|
-
|
|
349
|
+
api_scopes?: Scope[];
|
|
350
350
|
/**
|
|
351
351
|
* VisitorReads is the scope groups of the team's resources (knowledge,
|
|
352
352
|
* files, artifacts, remotes) a visitor of an embed of this version can
|
|
@@ -403,10 +403,11 @@ export interface AgentConfigInput {
|
|
|
403
403
|
output_schema?: any;
|
|
404
404
|
content_guard?: ContentGuardConfig;
|
|
405
405
|
/**
|
|
406
|
-
*
|
|
407
|
-
*
|
|
406
|
+
* APIScopes is the inference.sh access the sandboxes it makes get:
|
|
407
|
+
* reads, apps:execute, files:write and apps:write, none the writer
|
|
408
|
+
* does not hold.
|
|
408
409
|
*/
|
|
409
|
-
|
|
410
|
+
api_scopes?: Scope[];
|
|
410
411
|
}
|
|
411
412
|
/**
|
|
412
413
|
* CoreAppConfigInput is the API input shape for core app configuration.
|
|
@@ -541,6 +542,15 @@ export interface ApiAgentRunRequest {
|
|
|
541
542
|
context?: {
|
|
542
543
|
[key: string]: string;
|
|
543
544
|
};
|
|
545
|
+
/**
|
|
546
|
+
* Infra is where the tasks the agent's app tools run go, for the
|
|
547
|
+
* caller's workspace: cloud, private (its own engines only) or
|
|
548
|
+
* private_first (its own when one can take the task, cloud
|
|
549
|
+
* otherwise). It is kept on the chat, so it holds for the turns that
|
|
550
|
+
* follow until a later request or the chat's settings change it.
|
|
551
|
+
* Absent: the chat's, which starts as cloud.
|
|
552
|
+
*/
|
|
553
|
+
infra?: Infra;
|
|
544
554
|
stream?: boolean;
|
|
545
555
|
/**
|
|
546
556
|
* ProjectID files the chat this message starts in a project. Ignored
|
|
@@ -607,6 +617,7 @@ export interface AppVersionInput {
|
|
|
607
617
|
kernel?: string;
|
|
608
618
|
required_secrets?: SecretRequirement[];
|
|
609
619
|
required_credentials?: CredentialRequirements;
|
|
620
|
+
required_vars?: VarRequirement[];
|
|
610
621
|
resources?: AppResources;
|
|
611
622
|
}
|
|
612
623
|
/**
|
|
@@ -1428,8 +1439,9 @@ export interface ScopeDefinition {
|
|
|
1428
1439
|
*/
|
|
1429
1440
|
costs_credits?: boolean;
|
|
1430
1441
|
/**
|
|
1431
|
-
* Sandbox: a
|
|
1432
|
-
*
|
|
1442
|
+
* Sandbox: a sandbox may be granted it (its inference.sh access,
|
|
1443
|
+
* AgentVersionDTO.APIScopes, CreateSandboxRequest.APIScopes); the
|
|
1444
|
+
* allowlist is models.SandboxMayHold.
|
|
1433
1445
|
*/
|
|
1434
1446
|
sandbox?: boolean;
|
|
1435
1447
|
}
|
|
@@ -1834,6 +1846,11 @@ export interface AppVersionDTO extends BaseModelDTO {
|
|
|
1834
1846
|
kernel: string;
|
|
1835
1847
|
required_secrets?: SecretRequirement[];
|
|
1836
1848
|
required_credentials?: CredentialRequirements;
|
|
1849
|
+
/**
|
|
1850
|
+
* RequiredVars are the environment variables the version reads from
|
|
1851
|
+
* the running team (vars: in inf.yml): plain configuration.
|
|
1852
|
+
*/
|
|
1853
|
+
required_vars?: VarRequirement[];
|
|
1837
1854
|
resources: AppResources;
|
|
1838
1855
|
/**
|
|
1839
1856
|
* Sandbox is the version's declared sandbox exceptions. Absent on a
|
|
@@ -2468,12 +2485,18 @@ export interface ChatSettingsRequest {
|
|
|
2468
2485
|
*/
|
|
2469
2486
|
forget_memory?: string[];
|
|
2470
2487
|
/**
|
|
2471
|
-
* Strictness
|
|
2472
|
-
* guard flags something it read: watch, ask or strict
|
|
2488
|
+
* Strictness sets what the agent does in this chat after the content
|
|
2489
|
+
* guard flags something it read: watch, ask or strict; anything else,
|
|
2490
|
+
* "" included, is refused. DELETE /chats/{id}/strictness clears the
|
|
2473
2491
|
* chat's own level, so the agent's default applies. A team or org
|
|
2474
2492
|
* minimum still raises it (GET /chats/{id}/strictness).
|
|
2475
2493
|
*/
|
|
2476
2494
|
strictness?: ChatStrictness;
|
|
2495
|
+
/**
|
|
2496
|
+
* Infra is where the tasks the agent's app tools run in this chat go:
|
|
2497
|
+
* cloud, private or private_first.
|
|
2498
|
+
*/
|
|
2499
|
+
infra?: Infra;
|
|
2477
2500
|
}
|
|
2478
2501
|
/**
|
|
2479
2502
|
* ChatSettingsDTO is what POST /chats/{id}/settings answers with: the chat's
|
|
@@ -2495,32 +2518,35 @@ export interface ChatSettingsDTO {
|
|
|
2495
2518
|
*/
|
|
2496
2519
|
memory: StringEncodedMap;
|
|
2497
2520
|
/**
|
|
2498
|
-
* Strictness is agent_data.strictness: the chat's own level
|
|
2499
|
-
* it follows the agent's default.
|
|
2521
|
+
* Strictness is agent_data.strictness: the chat's own level; absent
|
|
2522
|
+
* when it follows the agent's default.
|
|
2500
2523
|
*/
|
|
2501
|
-
strictness
|
|
2524
|
+
strictness?: ChatStrictness;
|
|
2502
2525
|
}
|
|
2503
2526
|
/**
|
|
2504
2527
|
* ChatStrictnessDTO is GET /chats/{id}/strictness: what the agent does in
|
|
2505
2528
|
* the chat after the content guard flags something it read, and where that
|
|
2506
2529
|
* comes from. Effective is the strictest of the chat's level (Chat, else
|
|
2507
|
-
* AgentDefault
|
|
2530
|
+
* AgentDefault), Minimum and Delegated. A level that is not set is absent.
|
|
2508
2531
|
*/
|
|
2509
2532
|
export interface ChatStrictnessDTO {
|
|
2510
2533
|
chat_id: string;
|
|
2511
2534
|
/**
|
|
2512
|
-
* Chat is the chat's own level
|
|
2535
|
+
* Chat is the chat's own level (for a sub-agent's chat that sets none,
|
|
2536
|
+
* its nearest ancestor's); absent when it follows the agent.
|
|
2513
2537
|
*/
|
|
2514
|
-
chat
|
|
2538
|
+
chat?: ChatStrictness;
|
|
2515
2539
|
/**
|
|
2516
|
-
* AgentDefault is the agent's content_guard.strictness
|
|
2540
|
+
* AgentDefault is the agent's content_guard.strictness, watch when the
|
|
2541
|
+
* agent sets none.
|
|
2517
2542
|
*/
|
|
2518
2543
|
agent_default: ChatStrictness;
|
|
2519
2544
|
/**
|
|
2520
2545
|
* Minimum is the strictest level the chat's team or org governance
|
|
2521
|
-
* policy sets;
|
|
2546
|
+
* policy sets; absent when neither sets one. Levels below it are
|
|
2547
|
+
* locked.
|
|
2522
2548
|
*/
|
|
2523
|
-
minimum
|
|
2549
|
+
minimum?: ChatStrictness;
|
|
2524
2550
|
/**
|
|
2525
2551
|
* MinimumSetBy is the rung that set Minimum: team or org.
|
|
2526
2552
|
*/
|
|
@@ -2528,7 +2554,7 @@ export interface ChatStrictnessDTO {
|
|
|
2528
2554
|
/**
|
|
2529
2555
|
* Delegated is, for a sub-agent's chat, the level the chat that
|
|
2530
2556
|
* delegated to it runs at: a floor, so a sub-agent never runs looser
|
|
2531
|
-
* than its delegating chat.
|
|
2557
|
+
* than its delegating chat. Absent for a chat no agent delegated.
|
|
2532
2558
|
*/
|
|
2533
2559
|
delegated?: ChatStrictness;
|
|
2534
2560
|
/**
|
|
@@ -2899,8 +2925,9 @@ export interface ContentGuardConfig {
|
|
|
2899
2925
|
ignore_rules?: string[];
|
|
2900
2926
|
/**
|
|
2901
2927
|
* Strictness is what the agent's chats do after the guard flags a
|
|
2902
|
-
* result, unless a chat sets its own: watch
|
|
2903
|
-
* (shared.ChatStrictness).
|
|
2928
|
+
* result, unless a chat sets its own: watch, ask or strict
|
|
2929
|
+
* (shared.ChatStrictness). Left out, it is watch; "" is refused. A
|
|
2930
|
+
* team or org minimum still raises it.
|
|
2904
2931
|
*/
|
|
2905
2932
|
strictness?: ChatStrictness;
|
|
2906
2933
|
}
|
|
@@ -3029,6 +3056,13 @@ export interface CredentialConfigDTO {
|
|
|
3029
3056
|
* login itself.
|
|
3030
3057
|
*/
|
|
3031
3058
|
app?: CredentialDTO;
|
|
3059
|
+
/**
|
|
3060
|
+
* OwnAppScope is where an app this caller saves without naming a scope
|
|
3061
|
+
* lands, when that is not the workspace's own: "platform" for the
|
|
3062
|
+
* platform team, whose usual app serves every workspace. The form then
|
|
3063
|
+
* asks which is meant (CredentialAppRequest.Scope). Empty: the team's.
|
|
3064
|
+
*/
|
|
3065
|
+
own_app_scope?: CredentialScope;
|
|
3032
3066
|
/**
|
|
3033
3067
|
* AppNoun is what that app is called ("GitHub App") when it is not an
|
|
3034
3068
|
* OAuth sign-in app: its logins connect something other than a person
|
|
@@ -3427,7 +3461,7 @@ export interface WorkerRAM {
|
|
|
3427
3461
|
* a task lists the ones it needs (Task.Requires); the scheduler only sends
|
|
3428
3462
|
* a task to an engine that has every one it needs.
|
|
3429
3463
|
*/
|
|
3430
|
-
export type EngineCapability = "egress_gateway" | "sandboxes" | "capacity" | "egress_pending" | "egress_grants" | "egress_decide" | "sized_sandboxes" | "sized_workers" | "sandbox_snapshots" | "sandbox_snapshot_store";
|
|
3464
|
+
export type EngineCapability = "egress_gateway" | "sandboxes" | "capacity" | "egress_pending" | "egress_grants" | "egress_decide" | "sized_sandboxes" | "sized_workers" | "sandbox_snapshots" | "sandbox_snapshot_store" | "task_env";
|
|
3431
3465
|
/**
|
|
3432
3466
|
* EngineCapabilityEgressGateway: the engine runs its sandboxes behind
|
|
3433
3467
|
* the egress gateway, so it can take bound secrets (the v2 secrets
|
|
@@ -3505,6 +3539,16 @@ export declare const EngineCapabilitySandboxSnapshots: EngineCapability;
|
|
|
3505
3539
|
* each against the manifest, and rebuilds the disk.
|
|
3506
3540
|
*/
|
|
3507
3541
|
export declare const EngineCapabilitySandboxSnapshotStore: EngineCapability;
|
|
3542
|
+
/**
|
|
3543
|
+
* EngineCapabilityTaskEnv: the engine gives each task the app
|
|
3544
|
+
* environment that task was dispatched with (TaskDispatchPayload.AppEnv):
|
|
3545
|
+
* a worker whose visor was started with another environment is restarted
|
|
3546
|
+
* before the task runs, as it is when its secrets change. Without it a
|
|
3547
|
+
* warm worker keeps the environment of the first task it ran, so a task
|
|
3548
|
+
* whose environment carries its team's variables (INF-1345) is sent
|
|
3549
|
+
* only to an engine that has it.
|
|
3550
|
+
*/
|
|
3551
|
+
export declare const EngineCapabilityTaskEnv: EngineCapability;
|
|
3508
3552
|
/**
|
|
3509
3553
|
* EngineCapabilities is a set of capabilities, kept as a list. Nil and
|
|
3510
3554
|
* empty are the same: nothing beyond the base contract.
|
|
@@ -3717,7 +3761,7 @@ export interface DecideEntitlementRequestRequest {
|
|
|
3717
3761
|
* and APIError.Code on the legacy envelope. Clients branch on these, so a
|
|
3718
3762
|
* code is a named const here, where it generates into models and the SDKs.
|
|
3719
3763
|
*/
|
|
3720
|
-
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";
|
|
3764
|
+
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" | "file_in_use" | "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" | "listing_not_live" | "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";
|
|
3721
3765
|
export declare const ErrorCodeInvalidRequest: ErrorCode;
|
|
3722
3766
|
export declare const ErrorCodeValidationError: ErrorCode;
|
|
3723
3767
|
export declare const ErrorCodeUnauthorized: ErrorCode;
|
|
@@ -3792,6 +3836,12 @@ export declare const ErrorCodeAccountBanned: ErrorCode;
|
|
|
3792
3836
|
* PublishQuarantinedMeta; Until says from when a new account can.
|
|
3793
3837
|
*/
|
|
3794
3838
|
export declare const ErrorCodePublishQuarantined: ErrorCode;
|
|
3839
|
+
/**
|
|
3840
|
+
* ErrorCodeFileInUse (409): the file is used by live content (a skill's
|
|
3841
|
+
* files, an artifact's assets) and was not deleted. Meta is FileInUseMeta:
|
|
3842
|
+
* the content using it. Staff may delete it anyway (?force=true).
|
|
3843
|
+
*/
|
|
3844
|
+
export declare const ErrorCodeFileInUse: ErrorCode;
|
|
3795
3845
|
/**
|
|
3796
3846
|
* ErrorCodePersonRequired (403): only a person may do this, and the
|
|
3797
3847
|
* caller is a workspace's service account (a workspace API key), or the
|
|
@@ -3934,6 +3984,13 @@ export declare const ErrorCodeCodeConfirmationRequired: ErrorCode;
|
|
|
3934
3984
|
* theirs. InvalidTransition (409): the task already moved on.
|
|
3935
3985
|
*/
|
|
3936
3986
|
export declare const ErrorCodeAppRetired: ErrorCode;
|
|
3987
|
+
/**
|
|
3988
|
+
* ListingNotLive (410): the app, agent, skill or knowledge entry is
|
|
3989
|
+
* listed in the store and its listing serves no reviewed version now,
|
|
3990
|
+
* so a caller who does not own it is not served it. One answer whatever
|
|
3991
|
+
* took it down.
|
|
3992
|
+
*/
|
|
3993
|
+
export declare const ErrorCodeListingNotLive: ErrorCode;
|
|
3937
3994
|
export declare const ErrorCodeAppMaintenance: ErrorCode;
|
|
3938
3995
|
export declare const ErrorCodeInvalidTransition: ErrorCode;
|
|
3939
3996
|
/**
|
|
@@ -5587,7 +5644,7 @@ export interface SuggestResult {
|
|
|
5587
5644
|
/**
|
|
5588
5645
|
* RequirementType identifies the kind of missing requirement.
|
|
5589
5646
|
*/
|
|
5590
|
-
export type RequirementType = "secret" | "credential" | "scope";
|
|
5647
|
+
export type RequirementType = "secret" | "credential" | "scope" | "variable";
|
|
5591
5648
|
/**
|
|
5592
5649
|
* Requirement error types
|
|
5593
5650
|
*/
|
|
@@ -5600,6 +5657,11 @@ export declare const RequirementTypeCredential: RequirementType;
|
|
|
5600
5657
|
* Requirement error types
|
|
5601
5658
|
*/
|
|
5602
5659
|
export declare const RequirementTypeScope: RequirementType;
|
|
5660
|
+
/**
|
|
5661
|
+
* RequirementTypeVariable: an environment variable the app declares
|
|
5662
|
+
* under vars: that the team has not set and the app gives no default.
|
|
5663
|
+
*/
|
|
5664
|
+
export declare const RequirementTypeVariable: RequirementType;
|
|
5603
5665
|
/**
|
|
5604
5666
|
* RequirementError represents a single missing requirement with actionable info
|
|
5605
5667
|
*/
|
|
@@ -5612,10 +5674,15 @@ export interface RequirementError {
|
|
|
5612
5674
|
/**
|
|
5613
5675
|
* SetupActionType identifies the kind of action needed to resolve a requirement.
|
|
5614
5676
|
*/
|
|
5615
|
-
export type SetupActionType = "add_secret" | "connect" | "add_scopes";
|
|
5677
|
+
export type SetupActionType = "add_secret" | "connect" | "add_scopes" | "add_variable";
|
|
5616
5678
|
export declare const SetupActionAddSecret: SetupActionType;
|
|
5617
5679
|
export declare const SetupActionConnect: SetupActionType;
|
|
5618
5680
|
export declare const SetupActionAddScopes: SetupActionType;
|
|
5681
|
+
/**
|
|
5682
|
+
* SetupActionAddVariable: set the team's variable RequirementError.Key
|
|
5683
|
+
* (PUT /variables/{key}).
|
|
5684
|
+
*/
|
|
5685
|
+
export declare const SetupActionAddVariable: SetupActionType;
|
|
5619
5686
|
/**
|
|
5620
5687
|
* SetupAction provides actionable info for resolving a missing requirement
|
|
5621
5688
|
*/
|
|
@@ -5732,6 +5799,15 @@ export interface CreateSandboxRequest {
|
|
|
5732
5799
|
vcpus?: number;
|
|
5733
5800
|
memory_mib?: number;
|
|
5734
5801
|
disk_mib?: number;
|
|
5802
|
+
/**
|
|
5803
|
+
* Infra is whose engines the sandbox runs on: cloud (the default),
|
|
5804
|
+
* private (the workspace's own engines that host sandboxes, where it
|
|
5805
|
+
* costs nothing and needs no credit) or private_first (the
|
|
5806
|
+
* workspace's when one has room, the cloud otherwise). One made from
|
|
5807
|
+
* a snapshot kept on an engine of the workspace alone is private
|
|
5808
|
+
* when this is left out.
|
|
5809
|
+
*/
|
|
5810
|
+
infra?: Infra;
|
|
5735
5811
|
/**
|
|
5736
5812
|
* Credentials are the logins the box gets, by provider (slug), as a
|
|
5737
5813
|
* run of its owner resolves them (e.g. [{"slug":"github-app"}]). Only
|
|
@@ -5756,13 +5832,13 @@ export interface CreateSandboxRequest {
|
|
|
5756
5832
|
*/
|
|
5757
5833
|
from_snapshot_id?: string;
|
|
5758
5834
|
/**
|
|
5759
|
-
*
|
|
5760
|
-
*
|
|
5761
|
-
* on. Empty: the
|
|
5762
|
-
*
|
|
5763
|
-
*
|
|
5835
|
+
* APIScopes is the inference.sh access the box gets beyond running
|
|
5836
|
+
* its remote: reads, apps:execute, files:write and apps:write, cut to
|
|
5837
|
+
* what the caller can hand on. Empty: the remote's alone. A sandbox an
|
|
5838
|
+
* agent's sandbox_create makes takes the agent's
|
|
5839
|
+
* (AgentVersionDTO.APIScopes) instead.
|
|
5764
5840
|
*/
|
|
5765
|
-
|
|
5841
|
+
api_scopes?: Scope[];
|
|
5766
5842
|
}
|
|
5767
5843
|
/**
|
|
5768
5844
|
* UpdateSandboxRequest is PATCH /sandboxes/{id}: the fields to change,
|
|
@@ -5853,6 +5929,11 @@ export interface SandboxDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
5853
5929
|
vcpus: number;
|
|
5854
5930
|
memory_mib: number;
|
|
5855
5931
|
disk_mib: number;
|
|
5932
|
+
/**
|
|
5933
|
+
* Infra is whose engines the sandbox runs on: cloud, private or
|
|
5934
|
+
* private_first.
|
|
5935
|
+
*/
|
|
5936
|
+
infra: Infra;
|
|
5856
5937
|
desired_state: SandboxDesiredState;
|
|
5857
5938
|
status: SandboxStatus;
|
|
5858
5939
|
status_reason?: string;
|
|
@@ -5892,8 +5973,8 @@ export interface SandboxDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
5892
5973
|
last_activity_at?: string;
|
|
5893
5974
|
/**
|
|
5894
5975
|
* APIScopes are what the box may do with our API beyond running its
|
|
5895
|
-
* remote: copied
|
|
5896
|
-
* whole life. Absent or empty: nothing beyond the remote.
|
|
5976
|
+
* remote: copied when it was made (CreateSandboxRequest.APIScopes, or
|
|
5977
|
+
* its agent's), for its whole life. Absent or empty: nothing beyond the remote.
|
|
5897
5978
|
*/
|
|
5898
5979
|
api_scopes?: Scope[];
|
|
5899
5980
|
}
|
|
@@ -6951,6 +7032,49 @@ export interface UserMetadataDTO {
|
|
|
6951
7032
|
terms_accepted_at?: string;
|
|
6952
7033
|
terms_version: string;
|
|
6953
7034
|
}
|
|
7035
|
+
/**
|
|
7036
|
+
* VarRequirement is an entry under vars: in inf.yml: a variable the app
|
|
7037
|
+
* reads from the running team. At run time the app gets the team's value
|
|
7038
|
+
* for Key, else Default; a variable with neither that is not Optional
|
|
7039
|
+
* fails the run as a missing requirement.
|
|
7040
|
+
*/
|
|
7041
|
+
export interface VarRequirement {
|
|
7042
|
+
key: string;
|
|
7043
|
+
description?: string;
|
|
7044
|
+
optional?: boolean;
|
|
7045
|
+
default?: string;
|
|
7046
|
+
}
|
|
7047
|
+
/**
|
|
7048
|
+
* VariableDTO is a team's variable. The value is plain by definition.
|
|
7049
|
+
*/
|
|
7050
|
+
export interface VariableDTO {
|
|
7051
|
+
id: string;
|
|
7052
|
+
created_at: string;
|
|
7053
|
+
updated_at: string;
|
|
7054
|
+
team_id: string;
|
|
7055
|
+
user_id: string;
|
|
7056
|
+
key: string;
|
|
7057
|
+
value: string;
|
|
7058
|
+
description?: string;
|
|
7059
|
+
}
|
|
7060
|
+
/**
|
|
7061
|
+
* VariableSetRequest is the body of PUT /variables/{key}: it creates the
|
|
7062
|
+
* variable or replaces its value. Description, when sent, replaces the
|
|
7063
|
+
* stored one.
|
|
7064
|
+
*/
|
|
7065
|
+
export interface VariableSetRequest {
|
|
7066
|
+
value: string;
|
|
7067
|
+
description?: string;
|
|
7068
|
+
}
|
|
7069
|
+
/**
|
|
7070
|
+
* VariableListResponse is one page of a team's variables, by key.
|
|
7071
|
+
*/
|
|
7072
|
+
export interface VariableListResponse {
|
|
7073
|
+
items: VariableDTO[];
|
|
7074
|
+
next_cursor: string;
|
|
7075
|
+
has_next: boolean;
|
|
7076
|
+
items_per_page: number;
|
|
7077
|
+
}
|
|
6954
7078
|
/**
|
|
6955
7079
|
* Widget is an A2UI surface stored on a ToolInvocation.
|
|
6956
7080
|
* Alias of shared.A2UISurface so the type generation pipeline picks it up.
|
|
@@ -7916,6 +8040,15 @@ export interface ChatData {
|
|
|
7916
8040
|
* trusted or filtered on: Chat.Origin is what a chat list filters.
|
|
7917
8041
|
*/
|
|
7918
8042
|
client?: string;
|
|
8043
|
+
/**
|
|
8044
|
+
* Infra is where the tasks the agent's app tools run in this chat go,
|
|
8045
|
+
* for the chat's team: its own engines (private), the cloud, or its
|
|
8046
|
+
* engines when one can take the task and the cloud otherwise
|
|
8047
|
+
* (private_first). Empty is the cloud. Whoever runs the agent sets it
|
|
8048
|
+
* (ApiAgentRunRequest.Infra, ChatSettingsRequest.Infra); a sub-agent's
|
|
8049
|
+
* chat takes its parent's.
|
|
8050
|
+
*/
|
|
8051
|
+
infra?: Infra;
|
|
7919
8052
|
}
|
|
7920
8053
|
/**
|
|
7921
8054
|
* ChatOrigin is how a chat came to be. A chat list shows a person's own
|
package/dist/types.js
CHANGED
|
@@ -580,6 +580,16 @@ export const EngineCapabilitySandboxSnapshots = "sandbox_snapshots";
|
|
|
580
580
|
* each against the manifest, and rebuilds the disk.
|
|
581
581
|
*/
|
|
582
582
|
export const EngineCapabilitySandboxSnapshotStore = "sandbox_snapshot_store";
|
|
583
|
+
/**
|
|
584
|
+
* EngineCapabilityTaskEnv: the engine gives each task the app
|
|
585
|
+
* environment that task was dispatched with (TaskDispatchPayload.AppEnv):
|
|
586
|
+
* a worker whose visor was started with another environment is restarted
|
|
587
|
+
* before the task runs, as it is when its secrets change. Without it a
|
|
588
|
+
* warm worker keeps the environment of the first task it ran, so a task
|
|
589
|
+
* whose environment carries its team's variables (INF-1345) is sent
|
|
590
|
+
* only to an engine that has it.
|
|
591
|
+
*/
|
|
592
|
+
export const EngineCapabilityTaskEnv = "task_env";
|
|
583
593
|
/**
|
|
584
594
|
* MaxOvercommit and MaxCPUSlots bound what EngineCapacityPolicy may say.
|
|
585
595
|
*/
|
|
@@ -662,6 +672,12 @@ export const ErrorCodeAccountBanned = "account_banned";
|
|
|
662
672
|
* PublishQuarantinedMeta; Until says from when a new account can.
|
|
663
673
|
*/
|
|
664
674
|
export const ErrorCodePublishQuarantined = "publish_quarantined";
|
|
675
|
+
/**
|
|
676
|
+
* ErrorCodeFileInUse (409): the file is used by live content (a skill's
|
|
677
|
+
* files, an artifact's assets) and was not deleted. Meta is FileInUseMeta:
|
|
678
|
+
* the content using it. Staff may delete it anyway (?force=true).
|
|
679
|
+
*/
|
|
680
|
+
export const ErrorCodeFileInUse = "file_in_use";
|
|
665
681
|
/**
|
|
666
682
|
* ErrorCodePersonRequired (403): only a person may do this, and the
|
|
667
683
|
* caller is a workspace's service account (a workspace API key), or the
|
|
@@ -804,6 +820,13 @@ export const ErrorCodeCodeConfirmationRequired = "code_confirmation_required";
|
|
|
804
820
|
* theirs. InvalidTransition (409): the task already moved on.
|
|
805
821
|
*/
|
|
806
822
|
export const ErrorCodeAppRetired = "app_retired";
|
|
823
|
+
/**
|
|
824
|
+
* ListingNotLive (410): the app, agent, skill or knowledge entry is
|
|
825
|
+
* listed in the store and its listing serves no reviewed version now,
|
|
826
|
+
* so a caller who does not own it is not served it. One answer whatever
|
|
827
|
+
* took it down.
|
|
828
|
+
*/
|
|
829
|
+
export const ErrorCodeListingNotLive = "listing_not_live";
|
|
807
830
|
export const ErrorCodeAppMaintenance = "app_maintenance";
|
|
808
831
|
export const ErrorCodeInvalidTransition = "invalid_transition";
|
|
809
832
|
/**
|
|
@@ -965,9 +988,19 @@ export const RequirementTypeCredential = "credential";
|
|
|
965
988
|
* Requirement error types
|
|
966
989
|
*/
|
|
967
990
|
export const RequirementTypeScope = "scope";
|
|
991
|
+
/**
|
|
992
|
+
* RequirementTypeVariable: an environment variable the app declares
|
|
993
|
+
* under vars: that the team has not set and the app gives no default.
|
|
994
|
+
*/
|
|
995
|
+
export const RequirementTypeVariable = "variable";
|
|
968
996
|
export const SetupActionAddSecret = "add_secret";
|
|
969
997
|
export const SetupActionConnect = "connect";
|
|
970
998
|
export const SetupActionAddScopes = "add_scopes";
|
|
999
|
+
/**
|
|
1000
|
+
* SetupActionAddVariable: set the team's variable RequirementError.Key
|
|
1001
|
+
* (PUT /variables/{key}).
|
|
1002
|
+
*/
|
|
1003
|
+
export const SetupActionAddVariable = "add_variable";
|
|
971
1004
|
export const SandboxStatusPending = "pending";
|
|
972
1005
|
export const SandboxStatusStarting = "starting";
|
|
973
1006
|
export const SandboxStatusRunning = "running";
|