@inferencesh/sdk 0.38.4 → 0.38.6

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.
@@ -1,7 +1,7 @@
1
1
  import { HttpClient } from '../http/client.js';
2
2
  import type { Response } from '../http/response.js';
3
3
  import type { TeamUpdateBody } from './write-bodies.js';
4
- import { MeResponse, TeamDTO, TeamMemberDTO, TeamInviteDTO, TeamCreateRequest, TeamMemberAddRequest, TeamInviteCreateRequest, AvailabilityResponse } from '../types.js';
4
+ import { MeResponse, TeamDTO, TeamMemberDTO, TeamMemberAddResultDTO, TeamInviteDTO, TeamCreateRequest, TeamMemberAddRequest, TeamInviteCreateRequest, AvailabilityResponse } from '../types.js';
5
5
  /**
6
6
  * Teams API
7
7
  */
@@ -44,7 +44,12 @@ export declare class TeamsAPI {
44
44
  /**
45
45
  * Add a team member
46
46
  */
47
- addMember(teamId: string, data: TeamMemberAddRequest): Promise<Response<TeamMemberDTO>>;
47
+ /**
48
+ * Add an existing account to a team. An account the team's org owns joins
49
+ * straight away (`outcome: "added"`, `member`); anyone else is sent an
50
+ * invite they accept (`outcome: "invited"`, `invite`).
51
+ */
52
+ addMember(teamId: string, data: TeamMemberAddRequest): Promise<Response<TeamMemberAddResultDTO>>;
48
53
  /**
49
54
  * Remove a team member
50
55
  */
package/dist/api/teams.js CHANGED
@@ -57,6 +57,11 @@ export class TeamsAPI {
57
57
  /**
58
58
  * Add a team member
59
59
  */
60
+ /**
61
+ * Add an existing account to a team. An account the team's org owns joins
62
+ * straight away (`outcome: "added"`, `member`); anyone else is sent an
63
+ * invite they accept (`outcome: "invited"`, `invite`).
64
+ */
60
65
  async addMember(teamId, data) {
61
66
  return this.http.request('post', `/teams/${teamId}/members`, { data });
62
67
  }
package/dist/types.d.ts CHANGED
@@ -18,6 +18,16 @@ export interface InternalToolsConfig {
18
18
  remote?: boolean;
19
19
  knowledge?: boolean;
20
20
  wait?: boolean;
21
+ /**
22
+ * SandboxCredentials are the logins a sandbox sandbox_create makes gets
23
+ * (Remote on), declared as an app's credentials are (provider slug,
24
+ * scopes): the runner's own, as a task of theirs resolves it; a runner
25
+ * with none is asked to connect it and the call waits. None declared,
26
+ * none given. The model's arguments never add any. Each entry's mode
27
+ * says when the box gets it: auto (the default) at once, ask on first
28
+ * use once a person approves it (SandboxCredential).
29
+ */
30
+ sandbox_credentials?: SandboxCredential[];
21
31
  }
22
32
  /**
23
33
  * AgentPermissions is what an agent's new chats in its own workspace may do
@@ -642,6 +652,13 @@ export interface DeviceAuthInitRequest {
642
652
  token_kind?: DeviceTokenKind;
643
653
  code_challenge?: string;
644
654
  code_challenge_method?: string;
655
+ /**
656
+ * Scopes the device asks for ("belt login --admin" names the admin
657
+ * scopes). Empty: the default, every scope but user:write and admin.
658
+ * The approval page shows them and the person confirms; the approval
659
+ * grants at most these.
660
+ */
661
+ scopes?: Scope[];
645
662
  }
646
663
  export interface DeviceAuthResponse {
647
664
  user_code: string;
@@ -728,6 +745,12 @@ export interface MeResponse {
728
745
  */
729
746
  team_view?: TeamViewDTO;
730
747
  diagnostics?: DiagnosticsConfig;
748
+ /**
749
+ * Notice is an operator's notice about the caller's access, set only
750
+ * when the request comes from an address restricted to sign-in and the
751
+ * CLI. Empty otherwise.
752
+ */
753
+ notice?: string;
731
754
  /**
732
755
  * PersonalTeamID is the caller's personal workspace, empty for a managed
733
756
  * account, which has none.
@@ -3079,7 +3102,7 @@ export interface WorkerRAM {
3079
3102
  * a task lists the ones it needs (Task.Requires); the scheduler only sends
3080
3103
  * a task to an engine that has every one it needs.
3081
3104
  */
3082
- export type EngineCapability = "egress_gateway" | "sandboxes" | "capacity";
3105
+ export type EngineCapability = "egress_gateway" | "sandboxes" | "capacity" | "egress_pending";
3083
3106
  /**
3084
3107
  * EngineCapabilityEgressGateway: the engine runs its sandboxes behind
3085
3108
  * the egress gateway, so it can take bound secrets (the v2 secrets
@@ -3096,6 +3119,14 @@ export declare const EngineCapabilitySandboxes: EngineCapability;
3096
3119
  * (INF-1156).
3097
3120
  */
3098
3121
  export declare const EngineCapabilityCapacity: EngineCapability;
3122
+ /**
3123
+ * EngineCapabilityEgressPending: the engine's gateway takes pending
3124
+ * bound secrets (BoundSecret.Pending: no value) and fetches each value
3125
+ * on first use through POST /engines/{id}/egress/resolve, with the
3126
+ * triggers EgressTrigger names; it also reports the hosts its boxes
3127
+ * reach (POST /engines/{id}/egress/hosts) (INF-1173).
3128
+ */
3129
+ export declare const EngineCapabilityEgressPending: EngineCapability;
3099
3130
  /**
3100
3131
  * EngineCapabilities is a set of capabilities, kept as a list. Nil and
3101
3132
  * empty are the same: nothing beyond the base contract.
@@ -3160,6 +3191,14 @@ export interface EntitlementDTO extends BaseModelDTO {
3160
3191
  expires_at?: string;
3161
3192
  team_plan_id?: string;
3162
3193
  }
3194
+ /**
3195
+ * FeatureAccess is whether the caller's team may use feature gate
3196
+ * Resource, as the API decides it (CheckFeatureGate): what a client shows.
3197
+ */
3198
+ export interface FeatureAccess {
3199
+ resource: EntitlementResource;
3200
+ allowed: boolean;
3201
+ }
3163
3202
  /**
3164
3203
  * EntitlementErrorMeta is the structured metadata returned in entitlement error responses.
3165
3204
  */
@@ -3225,7 +3264,7 @@ export interface DecideEntitlementRequestRequest {
3225
3264
  * and APIError.Code on the legacy envelope. Clients branch on these, so a
3226
3265
  * code is a named const here, where it generates into models and the SDKs.
3227
3266
  */
3228
- 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" | "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" | "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";
3267
+ 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" | "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" | "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";
3229
3268
  export declare const ErrorCodeInvalidRequest: ErrorCode;
3230
3269
  export declare const ErrorCodeValidationError: ErrorCode;
3231
3270
  export declare const ErrorCodeUnauthorized: ErrorCode;
@@ -3238,6 +3277,12 @@ export declare const ErrorCodeNotConfigured: ErrorCode;
3238
3277
  export declare const ErrorCodeMethodNotAllowed: ErrorCode;
3239
3278
  export declare const ErrorCodeRateLimited: ErrorCode;
3240
3279
  export declare const ErrorCodeInternalError: ErrorCode;
3280
+ /**
3281
+ * ErrorCodeWebAccessRestricted (403): the request comes from an address
3282
+ * restricted to sign-in and the CLI; detail is the operator's notice
3283
+ * and meta is WebAccessRestrictedMeta.
3284
+ */
3285
+ export declare const ErrorCodeWebAccessRestricted: ErrorCode;
3241
3286
  /**
3242
3287
  * ErrorCodeRequirementsNotMet (412): the run needs a secret or a
3243
3288
  * credential the caller has not set up. Meta "errors" lists each
@@ -4841,6 +4886,17 @@ export interface OAuthAuthorizeInfoResponse {
4841
4886
  verified: boolean;
4842
4887
  scopes: Scope[];
4843
4888
  redirect_host: string;
4889
+ /**
4890
+ * StepUpRequired: the caller has not approved this client, to this
4891
+ * redirect, for these scopes and this team (team_id query parameter,
4892
+ * else the session's) since the fix, with a grant still live, so
4893
+ * approving takes a step-up: StepUpAction for StepUpTarget, proved via
4894
+ * POST /auth/otp/verify (an emailed code via POST /auth/otp/resend
4895
+ * {action, target}); the form submits the token as step_up_token.
4896
+ */
4897
+ step_up_required: boolean;
4898
+ step_up_action?: StepUpAction;
4899
+ step_up_target?: string;
4844
4900
  }
4845
4901
  /**
4846
4902
  * OAuthApproveRequest is the request body for POST /oauth/authorize/approve.
@@ -5057,6 +5113,83 @@ export interface CreateSandboxRequest {
5057
5113
  vcpus?: number;
5058
5114
  memory_mib?: number;
5059
5115
  disk_mib?: number;
5116
+ /**
5117
+ * Credentials are the logins the box gets, by provider (slug), as a
5118
+ * run of its owner resolves them (e.g. [{"slug":"github-app"}]). Only
5119
+ * keys a provider binds to hosts: the box holds placeholders, the
5120
+ * engine's gateway places the values toward those hosts and renews
5121
+ * the ones that expire, always from the login chosen here.
5122
+ */
5123
+ credentials?: SandboxCredential[];
5124
+ }
5125
+ /**
5126
+ * SandboxCredentialMode is when a sandbox's login is given to its box.
5127
+ */
5128
+ export type SandboxCredentialMode = "auto" | "ask";
5129
+ /**
5130
+ * SandboxCredentialAuto (the default): the login is chosen when the
5131
+ * sandbox is made and given without asking.
5132
+ */
5133
+ export declare const SandboxCredentialAuto: SandboxCredentialMode;
5134
+ /**
5135
+ * SandboxCredentialAsk: the box gets the login on first use, once a
5136
+ * person approves it on the tool call running there; a run nobody
5137
+ * watches (a trigger, a schedule) never gets it (INF-1173). Needs an
5138
+ * engine with EngineCapabilityEgressPending.
5139
+ */
5140
+ export declare const SandboxCredentialAsk: SandboxCredentialMode;
5141
+ /**
5142
+ * SandboxCredential is a login a sandbox's box gets: a requirement by
5143
+ * provider, as an app declares one, and when it is given (Mode, auto when
5144
+ * unset). It reads and writes as the requirement's fields plus "mode", so
5145
+ * a plain requirement is an auto one.
5146
+ */
5147
+ export interface SandboxCredential {
5148
+ slug?: string;
5149
+ capabilities?: string[];
5150
+ description?: string;
5151
+ optional?: boolean;
5152
+ secrets?: string[];
5153
+ scopes?: string[];
5154
+ /**
5155
+ * Provider describes the company the credential belongs to, for a
5156
+ * catalog row that does not exist yet. Its slug defaults to the
5157
+ * credential slug.
5158
+ */
5159
+ provider?: CompanySeed;
5160
+ /**
5161
+ * Auth is the credential's auth provider, for a slug no row defines yet.
5162
+ */
5163
+ auth?: AuthMethod;
5164
+ /**
5165
+ * The rest describe the platform api_key scheme a platform app's deploy
5166
+ * catalogues for the slug: set on the scheme it creates, and filled into
5167
+ * an existing one only where that is still empty (an admin's edit
5168
+ * stands). Any other deploy ignores them.
5169
+ * DisplayName is the scheme's name ("Claude Code"); at most
5170
+ * MaxCredentialDisplayName characters.
5171
+ */
5172
+ display_name?: string;
5173
+ /**
5174
+ * ConnectionScope is who a connection belongs to: team (empty) or user.
5175
+ */
5176
+ connection_scope?: CredentialScope;
5177
+ /**
5178
+ * Instructions tell a person how to get the key (markdown, at most
5179
+ * MaxAuthProviderInstructions characters).
5180
+ */
5181
+ instructions?: string;
5182
+ /**
5183
+ * DocsURL is the scheme's documentation link.
5184
+ */
5185
+ docs_url?: string;
5186
+ /**
5187
+ * ExpiresAfterDays is how long a saved key lasts: it counts as expired
5188
+ * this many days after it is saved. 0 is never; at most
5189
+ * MaxExpiresAfterDays.
5190
+ */
5191
+ expires_after_days?: number;
5192
+ mode?: SandboxCredentialMode;
5060
5193
  }
5061
5194
  /**
5062
5195
  * SandboxDTO is the API response for a sandbox.
@@ -5496,6 +5629,16 @@ export interface TeamDTO extends BaseModelDTO {
5496
5629
  */
5497
5630
  org_name?: string;
5498
5631
  }
5632
+ /**
5633
+ * TeamMemberAddResultDTO is what POST /teams/{id}/members did: added the
5634
+ * account (member) or, for an account the team's org does not own, sent it
5635
+ * an invite (invite).
5636
+ */
5637
+ export interface TeamMemberAddResultDTO {
5638
+ outcome: TeamMemberAddOutcome;
5639
+ member?: TeamMemberDTO;
5640
+ invite?: TeamInviteDTO;
5641
+ }
5499
5642
  /**
5500
5643
  * TeamMemberDTO is the API response for a team member.
5501
5644
  */
@@ -7226,6 +7369,16 @@ export declare const InterruptResourceTurn: InterruptResourceType;
7226
7369
  * wait call (InterruptResourceToolInvocation).
7227
7370
  */
7228
7371
  export declare const InterruptReasonWait: InterruptReason;
7372
+ /**
7373
+ * InterruptReasonEgressLogin asks whether a sandbox's box gets one of its
7374
+ * owner's logins, on the tool call running there (a remote_exec) when the
7375
+ * box first reaches the login's host (INF-1173). Its resource is that call
7376
+ * (InterruptResourceToolInvocation), which keeps running: the engine holds
7377
+ * the request until the answer, and asks for it again
7378
+ * (POST /engines/{id}/egress/resolve). Allow gives the login, deny or no
7379
+ * answer in time refuses it for the sandbox. Meta is EgressLoginAskMeta.
7380
+ */
7381
+ export declare const InterruptReasonEgressLogin: InterruptReason;
7229
7382
  /**
7230
7383
  * MergeStrategy defines how a delta field should be merged by consumers.
7231
7384
  */
@@ -7574,6 +7727,89 @@ export declare const SecondFactorRecovery: SecondFactor;
7574
7727
  * sign-in, re-auth before they enroll).
7575
7728
  */
7576
7729
  export declare const SecondFactorEmail: SecondFactor;
7730
+ /**
7731
+ * StepUpAction is an action that takes a step-up: a factor proved for this
7732
+ * one action, spent by the one request that performs it (auth.RequireStepUp).
7733
+ * A sign-in or a re-auth window never stands in for it.
7734
+ */
7735
+ export type StepUpAction = "export" | "delete" | "factor_enroll" | "factor_change" | "device_approve" | "admin_elevation_approve" | "oauth_approve" | "api_key_create" | "secret_reveal" | "admin_session" | "admin_sensitive" | "team_member_change" | "team_sso_change";
7736
+ /**
7737
+ * StepUpExport: request an account data export, or a download link.
7738
+ */
7739
+ export declare const StepUpExport: StepUpAction;
7740
+ /**
7741
+ * StepUpDelete: schedule the account's deletion.
7742
+ */
7743
+ export declare const StepUpDelete: StepUpAction;
7744
+ /**
7745
+ * StepUpFactorEnroll: start enrolling an authenticator or passkey, or
7746
+ * turn two-step verification on (which hands out recovery codes).
7747
+ */
7748
+ export declare const StepUpFactorEnroll: StepUpAction;
7749
+ /**
7750
+ * StepUpFactorChange: turn two-step verification off, remove a method,
7751
+ * or regenerate recovery codes.
7752
+ */
7753
+ export declare const StepUpFactorChange: StepUpAction;
7754
+ /**
7755
+ * StepUpDeviceApprove: approve a device (CLI) sign-in.
7756
+ */
7757
+ export declare const StepUpDeviceApprove: StepUpAction;
7758
+ /**
7759
+ * StepUpAdminElevationApprove: approve an admin elevation of a CLI login.
7760
+ */
7761
+ export declare const StepUpAdminElevationApprove: StepUpAction;
7762
+ /**
7763
+ * StepUpOAuthApprove: approve an OAuth app the account has not approved
7764
+ * before (for this redirect URI, these scopes and this team).
7765
+ */
7766
+ export declare const StepUpOAuthApprove: StepUpAction;
7767
+ /**
7768
+ * StepUpAPIKeyCreate: create an API key from the browser (target: its
7769
+ * scopes and team).
7770
+ */
7771
+ export declare const StepUpAPIKeyCreate: StepUpAction;
7772
+ /**
7773
+ * StepUpSecretReveal: read a stored secret's value or a webhook signing
7774
+ * secret, or generate a new signing secret (target: the request).
7775
+ */
7776
+ export declare const StepUpSecretReveal: StepUpAction;
7777
+ /**
7778
+ * StepUpAdminSession: open the staff browser session's ten-minute admin
7779
+ * action window, inside which admin writes pass.
7780
+ */
7781
+ export declare const StepUpAdminSession: StepUpAction;
7782
+ /**
7783
+ * StepUpAdminSensitive: one sensitive admin action, every time, window
7784
+ * or not (impersonation, revealing a setting's secret, a device
7785
+ * identity, exporting voucher codes). Target: the request.
7786
+ */
7787
+ export declare const StepUpAdminSensitive: StepUpAction;
7788
+ /**
7789
+ * StepUpTeamMemberChange: add someone to a team, invite them, or change
7790
+ * a member's role (target: team|email or user|role).
7791
+ */
7792
+ export declare const StepUpTeamMemberChange: StepUpAction;
7793
+ /**
7794
+ * StepUpTeamSSOChange: change who can enter a team through SSO.
7795
+ */
7796
+ export declare const StepUpTeamSSOChange: StepUpAction;
7797
+ /**
7798
+ * TeamMemberAddOutcome is what adding an existing account to a team by email
7799
+ * did (POST /teams/{id}/members, POST /orgs/{id}/admins).
7800
+ */
7801
+ export type TeamMemberAddOutcome = "added" | "invited";
7802
+ /**
7803
+ * TeamMemberAddAdded: the team's org owns the account (it manages it,
7804
+ * it is already in the org, or it is at a verified domain), so it
7805
+ * joined straight away.
7806
+ */
7807
+ export declare const TeamMemberAddAdded: TeamMemberAddOutcome;
7808
+ /**
7809
+ * TeamMemberAddInvited: the account is not the org's to place, so an
7810
+ * invite was sent; it joins when it accepts.
7811
+ */
7812
+ export declare const TeamMemberAddInvited: TeamMemberAddOutcome;
7577
7813
  /**
7578
7814
  * TeamInviteStatus represents the status of a team invitation
7579
7815
  */
@@ -7691,8 +7927,8 @@ export declare const ResourceFeatureMarketplacePublish: EntitlementResource;
7691
7927
  */
7692
7928
  export declare const ResourceFeatureForms: EntitlementResource;
7693
7929
  /**
7694
- * Managed sandboxes (INF-833): open to every team; a row with enabled
7695
- * false shuts one team out.
7930
+ * Managed sandboxes (INF-833): open to every team unless turned off
7931
+ * for one (FeatureOpen).
7696
7932
  */
7697
7933
  export declare const ResourceFeatureSandboxes: EntitlementResource;
7698
7934
  /**
@@ -8418,7 +8654,7 @@ export declare const AgentRunStateRejected: AgentRunState;
8418
8654
  * InterruptReason describes why an agent run is in an interrupted state.
8419
8655
  * Aligns with AG-UI interrupt outcome reasons.
8420
8656
  */
8421
- export type InterruptReason = "wait" | "tool_approval" | "client_tool" | "widget" | "auth" | "confirmation" | "hook_gate" | "input";
8657
+ export type InterruptReason = "wait" | "egress_login" | "tool_approval" | "client_tool" | "widget" | "auth" | "confirmation" | "hook_gate" | "input";
8422
8658
  export declare const InterruptReasonToolApproval: InterruptReason;
8423
8659
  export declare const InterruptReasonClientTool: InterruptReason;
8424
8660
  export declare const InterruptReasonWidget: InterruptReason;
package/dist/types.js CHANGED
@@ -454,6 +454,14 @@ export const EngineCapabilitySandboxes = "sandboxes";
454
454
  * (INF-1156).
455
455
  */
456
456
  export const EngineCapabilityCapacity = "capacity";
457
+ /**
458
+ * EngineCapabilityEgressPending: the engine's gateway takes pending
459
+ * bound secrets (BoundSecret.Pending: no value) and fetches each value
460
+ * on first use through POST /engines/{id}/egress/resolve, with the
461
+ * triggers EgressTrigger names; it also reports the hosts its boxes
462
+ * reach (POST /engines/{id}/egress/hosts) (INF-1173).
463
+ */
464
+ export const EngineCapabilityEgressPending = "egress_pending";
457
465
  export const ErrorCodeInvalidRequest = "invalid_request";
458
466
  export const ErrorCodeValidationError = "validation_error";
459
467
  export const ErrorCodeUnauthorized = "unauthorized";
@@ -466,6 +474,12 @@ export const ErrorCodeNotConfigured = "not_configured";
466
474
  export const ErrorCodeMethodNotAllowed = "method_not_allowed";
467
475
  export const ErrorCodeRateLimited = "rate_limited";
468
476
  export const ErrorCodeInternalError = "internal_error";
477
+ /**
478
+ * ErrorCodeWebAccessRestricted (403): the request comes from an address
479
+ * restricted to sign-in and the CLI; detail is the operator's notice
480
+ * and meta is WebAccessRestrictedMeta.
481
+ */
482
+ export const ErrorCodeWebAccessRestricted = "web_access_restricted";
469
483
  /**
470
484
  * ErrorCodeRequirementsNotMet (412): the run needs a secret or a
471
485
  * credential the caller has not set up. Meta "errors" lists each
@@ -779,6 +793,18 @@ export const SandboxStatusFailed = "failed";
779
793
  export const SandboxDesiredRunning = "running";
780
794
  export const SandboxDesiredStopped = "stopped";
781
795
  export const SandboxDesiredDeleted = "deleted";
796
+ /**
797
+ * SandboxCredentialAuto (the default): the login is chosen when the
798
+ * sandbox is made and given without asking.
799
+ */
800
+ export const SandboxCredentialAuto = "auto";
801
+ /**
802
+ * SandboxCredentialAsk: the box gets the login on first use, once a
803
+ * person approves it on the tool call running there; a run nobody
804
+ * watches (a trigger, a schedule) never gets it (INF-1173). Needs an
805
+ * engine with EngineCapabilityEgressPending.
806
+ */
807
+ export const SandboxCredentialAsk = "ask";
782
808
  /**
783
809
  * UpdateRequested: the request was sent and nothing has answered it yet.
784
810
  * An engine older than engine_update_result never answers, so its update stays here.
@@ -1212,6 +1238,16 @@ export const InterruptResourceTurn = "turn";
1212
1238
  * wait call (InterruptResourceToolInvocation).
1213
1239
  */
1214
1240
  export const InterruptReasonWait = "wait";
1241
+ /**
1242
+ * InterruptReasonEgressLogin asks whether a sandbox's box gets one of its
1243
+ * owner's logins, on the tool call running there (a remote_exec) when the
1244
+ * box first reaches the login's host (INF-1173). Its resource is that call
1245
+ * (InterruptResourceToolInvocation), which keeps running: the engine holds
1246
+ * the request until the answer, and asks for it again
1247
+ * (POST /engines/{id}/egress/resolve). Allow gives the login, deny or no
1248
+ * answer in time refuses it for the sandbox. Meta is EgressLoginAskMeta.
1249
+ */
1250
+ export const InterruptReasonEgressLogin = "egress_login";
1215
1251
  export const MergeStrategyConcat = "concat";
1216
1252
  export const MergeStrategyReplace = "replace";
1217
1253
  export const MergeStrategyIndexed = "indexed";
@@ -1344,6 +1380,78 @@ export const SecondFactorRecovery = "recovery";
1344
1380
  * sign-in, re-auth before they enroll).
1345
1381
  */
1346
1382
  export const SecondFactorEmail = "email";
1383
+ /**
1384
+ * StepUpExport: request an account data export, or a download link.
1385
+ */
1386
+ export const StepUpExport = "export";
1387
+ /**
1388
+ * StepUpDelete: schedule the account's deletion.
1389
+ */
1390
+ export const StepUpDelete = "delete";
1391
+ /**
1392
+ * StepUpFactorEnroll: start enrolling an authenticator or passkey, or
1393
+ * turn two-step verification on (which hands out recovery codes).
1394
+ */
1395
+ export const StepUpFactorEnroll = "factor_enroll";
1396
+ /**
1397
+ * StepUpFactorChange: turn two-step verification off, remove a method,
1398
+ * or regenerate recovery codes.
1399
+ */
1400
+ export const StepUpFactorChange = "factor_change";
1401
+ /**
1402
+ * StepUpDeviceApprove: approve a device (CLI) sign-in.
1403
+ */
1404
+ export const StepUpDeviceApprove = "device_approve";
1405
+ /**
1406
+ * StepUpAdminElevationApprove: approve an admin elevation of a CLI login.
1407
+ */
1408
+ export const StepUpAdminElevationApprove = "admin_elevation_approve";
1409
+ /**
1410
+ * StepUpOAuthApprove: approve an OAuth app the account has not approved
1411
+ * before (for this redirect URI, these scopes and this team).
1412
+ */
1413
+ export const StepUpOAuthApprove = "oauth_approve";
1414
+ /**
1415
+ * StepUpAPIKeyCreate: create an API key from the browser (target: its
1416
+ * scopes and team).
1417
+ */
1418
+ export const StepUpAPIKeyCreate = "api_key_create";
1419
+ /**
1420
+ * StepUpSecretReveal: read a stored secret's value or a webhook signing
1421
+ * secret, or generate a new signing secret (target: the request).
1422
+ */
1423
+ export const StepUpSecretReveal = "secret_reveal";
1424
+ /**
1425
+ * StepUpAdminSession: open the staff browser session's ten-minute admin
1426
+ * action window, inside which admin writes pass.
1427
+ */
1428
+ export const StepUpAdminSession = "admin_session";
1429
+ /**
1430
+ * StepUpAdminSensitive: one sensitive admin action, every time, window
1431
+ * or not (impersonation, revealing a setting's secret, a device
1432
+ * identity, exporting voucher codes). Target: the request.
1433
+ */
1434
+ export const StepUpAdminSensitive = "admin_sensitive";
1435
+ /**
1436
+ * StepUpTeamMemberChange: add someone to a team, invite them, or change
1437
+ * a member's role (target: team|email or user|role).
1438
+ */
1439
+ export const StepUpTeamMemberChange = "team_member_change";
1440
+ /**
1441
+ * StepUpTeamSSOChange: change who can enter a team through SSO.
1442
+ */
1443
+ export const StepUpTeamSSOChange = "team_sso_change";
1444
+ /**
1445
+ * TeamMemberAddAdded: the team's org owns the account (it manages it,
1446
+ * it is already in the org, or it is at a verified domain), so it
1447
+ * joined straight away.
1448
+ */
1449
+ export const TeamMemberAddAdded = "added";
1450
+ /**
1451
+ * TeamMemberAddInvited: the account is not the org's to place, so an
1452
+ * invite was sent; it joins when it accepts.
1453
+ */
1454
+ export const TeamMemberAddInvited = "invited";
1347
1455
  export const TeamInviteStatusPending = "pending";
1348
1456
  export const TeamInviteStatusAccepted = "accepted";
1349
1457
  export const TeamInviteStatusDeclined = "declined";
@@ -1442,8 +1550,8 @@ export const ResourceFeatureMarketplacePublish = "feature:marketplace_publish";
1442
1550
  */
1443
1551
  export const ResourceFeatureForms = "feature:forms";
1444
1552
  /**
1445
- * Managed sandboxes (INF-833): open to every team; a row with enabled
1446
- * false shuts one team out.
1553
+ * Managed sandboxes (INF-833): open to every team unless turned off
1554
+ * for one (FeatureOpen).
1447
1555
  */
1448
1556
  export const ResourceFeatureSandboxes = "feature:sandboxes";
1449
1557
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inferencesh/sdk",
3
- "version": "0.38.4",
3
+ "version": "0.38.6",
4
4
  "description": "Official JavaScript/TypeScript SDK for inference.sh - Run AI models with a simple API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -80,7 +80,7 @@
80
80
  "eventsource": "^5.1.1"
81
81
  },
82
82
  "devDependencies": {
83
- "@sveltejs/kit": "^2.60.1",
83
+ "@sveltejs/kit": "^3.1.1",
84
84
  "@types/express": "^5.0.0",
85
85
  "@types/jest": "^30.0.0",
86
86
  "@types/node": "^26.1.1",