@inferencesh/sdk 0.39.0 → 0.39.1

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.
@@ -85,6 +85,7 @@
85
85
  "knowledge:write",
86
86
  "projects:read",
87
87
  "remotes:read",
88
+ "remotes:write",
88
89
  "secrets:reveal"
89
90
  ]
90
91
  },
@@ -123,6 +124,7 @@
123
124
  "knowledge:write",
124
125
  "projects:read",
125
126
  "remotes:read",
127
+ "remotes:write",
126
128
  "secrets:reveal"
127
129
  ]
128
130
  },
package/dist/types.d.ts CHANGED
@@ -1411,6 +1411,25 @@ export interface ScopeDefinition {
1411
1411
  */
1412
1412
  costs_credits?: boolean;
1413
1413
  }
1414
+ /**
1415
+ * ScopeCategory is the section of a permission list a scope group falls
1416
+ * in: what is built and run, the workspace itself, the person's own
1417
+ * account, the platform's own workspace.
1418
+ */
1419
+ export type ScopeCategory = "resources" | "workspace" | "account" | "platform";
1420
+ export declare const ScopeCategoryResources: ScopeCategory;
1421
+ export declare const ScopeCategoryWorkspace: ScopeCategory;
1422
+ export declare const ScopeCategoryAccount: ScopeCategory;
1423
+ export declare const ScopeCategoryPlatform: ScopeCategory;
1424
+ /**
1425
+ * ScopeCategoryDefinition describes a category of scope groups for UI
1426
+ * rendering: a section heading over the groups in it.
1427
+ */
1428
+ export interface ScopeCategoryDefinition {
1429
+ id: ScopeCategory;
1430
+ label: string;
1431
+ description: string;
1432
+ }
1414
1433
  /**
1415
1434
  * ScopeGroupDefinition describes a group of scopes for UI rendering
1416
1435
  */
@@ -1418,6 +1437,10 @@ export interface ScopeGroupDefinition {
1418
1437
  id: ScopeGroup;
1419
1438
  label: string;
1420
1439
  description: string;
1440
+ /**
1441
+ * Category is the section the group is listed under (ScopesResponse.Categories).
1442
+ */
1443
+ category: ScopeCategory;
1421
1444
  /**
1422
1445
  * PublicRows: the resource's rows can be public, so a credential
1423
1446
  * without its read scope still reads what a signed-out caller reads
@@ -1437,6 +1460,11 @@ export interface ScopesResponse {
1437
1460
  scopes: ScopeDefinition[];
1438
1461
  groups: ScopeGroupDefinition[];
1439
1462
  presets: ScopePreset[];
1463
+ /**
1464
+ * Categories are the sections Groups and AccountGroups fall in, in
1465
+ * display order: every category a listed group names.
1466
+ */
1467
+ categories: ScopeCategoryDefinition[];
1440
1468
  /**
1441
1469
  * AccountScopes are the account holder's own scopes (approvals,
1442
1470
  * profile and sessions, keys, billing writes) a sign-in may be approved
@@ -3185,6 +3213,11 @@ export interface EngineDTO extends BaseModelDTO, PermissionModelDTO {
3185
3213
  * out; nil from an engine that does not report it.
3186
3214
  */
3187
3215
  capacity?: EngineCapacity;
3216
+ /**
3217
+ * CapacityPolicy is what its owner set for its room from the app:
3218
+ * sandboxes on or off, over-commit, CPU slots. Nil keeps the defaults.
3219
+ */
3220
+ capacity_policy?: EngineCapacityPolicy;
3188
3221
  workers: (WorkerDTO | undefined)[];
3189
3222
  }
3190
3223
  /**
@@ -3309,7 +3342,7 @@ export interface WorkerRAM {
3309
3342
  * a task lists the ones it needs (Task.Requires); the scheduler only sends
3310
3343
  * a task to an engine that has every one it needs.
3311
3344
  */
3312
- export type EngineCapability = "egress_gateway" | "sandboxes" | "capacity" | "egress_pending" | "egress_grants" | "egress_decide" | "sized_sandboxes" | "sized_workers";
3345
+ export type EngineCapability = "egress_gateway" | "sandboxes" | "capacity" | "egress_pending" | "egress_grants" | "egress_decide" | "sized_sandboxes" | "sized_workers" | "sandbox_snapshots";
3313
3346
  /**
3314
3347
  * EngineCapabilityEgressGateway: the engine runs its sandboxes behind
3315
3348
  * the egress gateway, so it can take bound secrets (the v2 secrets
@@ -3370,6 +3403,13 @@ export declare const EngineCapabilitySizedSandboxes: EngineCapability;
3370
3403
  * there by size, against the engine's capacity (INF-1159).
3371
3404
  */
3372
3405
  export declare const EngineCapabilitySizedWorkers: EngineCapability;
3406
+ /**
3407
+ * EngineCapabilitySandboxSnapshots: the engine copies a stopped
3408
+ * sandbox's kept disk to a snapshot and starts a sandbox on a copy of a
3409
+ * snapshot (sandbox_snapshot, sandbox_snapshot_drop,
3410
+ * WsSandboxStartPayload.FromSnapshotID; INF-1251).
3411
+ */
3412
+ export declare const EngineCapabilitySandboxSnapshots: EngineCapability;
3373
3413
  /**
3374
3414
  * EngineCapabilities is a set of capabilities, kept as a list. Nil and
3375
3415
  * empty are the same: nothing beyond the base contract.
@@ -3424,6 +3464,48 @@ export interface CapacityGPU {
3424
3464
  id: string;
3425
3465
  vram_bytes: number;
3426
3466
  }
3467
+ /**
3468
+ * EngineCapacityPolicy is what the engine's owner set for its room from the
3469
+ * app (POST /engines/{id}/capacity): whether it hosts sandboxes and how far
3470
+ * the API may give out more than it has. The API applies it; the engine is
3471
+ * told nothing but the CPU slots it gets at its next register. A nil field
3472
+ * keeps the default.
3473
+ */
3474
+ export interface EngineCapacityPolicy {
3475
+ /**
3476
+ * Sandboxes false keeps new sandboxes off the engine; boxes already on
3477
+ * it run until they stop. Nil is on, for an engine that reports
3478
+ * EngineCapabilitySandboxes.
3479
+ */
3480
+ sandboxes?: boolean;
3481
+ /**
3482
+ * CPUOvercommit and MemoryOvercommit multiply the engine's allocatable
3483
+ * for sandbox placement: 2 gives out twice its CPUs. Nil is the pool's
3484
+ * (setting sandboxes.placement, 1 when unset). An engine on CPU slots
3485
+ * is checked against them only when one is set.
3486
+ */
3487
+ cpu_overcommit?: number;
3488
+ memory_overcommit?: number;
3489
+ /**
3490
+ * CPUSlots is the CPU app worker slots the engine gets at its next
3491
+ * register, over the count its engine.yml asks for (workers.cpu.count).
3492
+ * Each slot runs one app task, or holds one sandbox on an engine on
3493
+ * slots. Nil is the engine's count.
3494
+ */
3495
+ cpu_slots?: number;
3496
+ }
3497
+ /**
3498
+ * EngineCapacityLimit bounds a field of EngineCapacityPolicy.
3499
+ */
3500
+ export type EngineCapacityLimit = number;
3501
+ /**
3502
+ * MaxOvercommit and MaxCPUSlots bound what EngineCapacityPolicy may say.
3503
+ */
3504
+ export declare const MaxOvercommit: EngineCapacityLimit;
3505
+ /**
3506
+ * MaxOvercommit and MaxCPUSlots bound what EngineCapacityPolicy may say.
3507
+ */
3508
+ export declare const MaxCPUSlots: EngineCapacityLimit;
3427
3509
  /**
3428
3510
  * EntitlementDTO for API responses
3429
3511
  */
@@ -3450,6 +3532,24 @@ export interface FeatureAccess {
3450
3532
  resource: EntitlementResource;
3451
3533
  allowed: boolean;
3452
3534
  }
3535
+ /**
3536
+ * ResourceUsage shows current usage vs limit for a single resource.
3537
+ */
3538
+ export interface ResourceUsage {
3539
+ resource: EntitlementResource;
3540
+ label: string;
3541
+ unit?: string;
3542
+ type: EntitlementType;
3543
+ usage: number;
3544
+ limit: number;
3545
+ unlimited: boolean;
3546
+ enabled: boolean;
3547
+ /**
3548
+ * Mode is how a set limit is enforced: block refuses past it, warn
3549
+ * only warns. Empty with no row.
3550
+ */
3551
+ mode?: EnforcementMode;
3552
+ }
3453
3553
  /**
3454
3554
  * EntitlementErrorMeta is the structured metadata returned in entitlement error responses.
3455
3555
  */
@@ -5511,6 +5611,23 @@ export type SandboxDesiredState = "running" | "stopped" | "deleted";
5511
5611
  export declare const SandboxDesiredRunning: SandboxDesiredState;
5512
5612
  export declare const SandboxDesiredStopped: SandboxDesiredState;
5513
5613
  export declare const SandboxDesiredDeleted: SandboxDesiredState;
5614
+ /**
5615
+ * StartSandboxRequest is POST /sandboxes/{id}/start; the body is optional.
5616
+ */
5617
+ export interface StartSandboxRequest {
5618
+ /**
5619
+ * FreshDisk starts the stopped sandbox on a new, empty disk: the one
5620
+ * its engine keeps is dropped (INF-1163).
5621
+ */
5622
+ fresh_disk?: boolean;
5623
+ /**
5624
+ * UpgradeImage moves the stopped sandbox to the server's current
5625
+ * image. A sandbox otherwise keeps the image it was made with, so its
5626
+ * kept disk stays valid; a disk made over the old image is dropped,
5627
+ * and it starts on a new one.
5628
+ */
5629
+ upgrade_image?: boolean;
5630
+ }
5514
5631
  /**
5515
5632
  * CreateSandboxRequest is POST /sandboxes. Sizes left at zero take the
5516
5633
  * defaults.
@@ -5528,6 +5645,32 @@ export interface CreateSandboxRequest {
5528
5645
  * the ones that expire, always from the login chosen here.
5529
5646
  */
5530
5647
  credentials?: SandboxCredential[];
5648
+ /**
5649
+ * IdleTimeoutSeconds stops the running box this long after it was last
5650
+ * used through the API (an exec, an agent session, a keepalive); what
5651
+ * runs inside it does not count, but an exec still running holds it.
5652
+ * Unset is 900 (15 minutes), 0 never stops it; otherwise 60 to
5653
+ * 2592000 (30 days).
5654
+ */
5655
+ idle_timeout_seconds?: number;
5656
+ /**
5657
+ * FromSnapshotID starts the sandbox on a copy of a ready snapshot's
5658
+ * disk, with the snapshot's image, on the engine that keeps it
5659
+ * (INF-1251). Sizes left at zero take the snapshot's; the disk is never
5660
+ * smaller than the snapshot's.
5661
+ */
5662
+ from_snapshot_id?: string;
5663
+ }
5664
+ /**
5665
+ * UpdateSandboxRequest is PATCH /sandboxes/{id}: the fields to change,
5666
+ * nil left as they are.
5667
+ */
5668
+ export interface UpdateSandboxRequest {
5669
+ /**
5670
+ * IdleTimeoutSeconds is as in CreateSandboxRequest. Changing it counts
5671
+ * as activity.
5672
+ */
5673
+ idle_timeout_seconds?: number;
5531
5674
  }
5532
5675
  /**
5533
5676
  * SandboxCredentialMode is when a sandbox's login is given to its box.
@@ -5626,6 +5769,225 @@ export interface SandboxDTO extends BaseModelDTO, PermissionModelDTO {
5626
5769
  remote_id?: string;
5627
5770
  started_at?: string;
5628
5771
  stopped_at?: string;
5772
+ /**
5773
+ * DiskKept: the engine the sandbox last ran on keeps its disk, and its
5774
+ * next start goes back there for it (INF-1163). DiskKeptUntil is when
5775
+ * a stopped sandbox's disk goes (stopped_at + 7 days); the engine may
5776
+ * drop it sooner when its host runs short of disk.
5777
+ */
5778
+ disk_kept: boolean;
5779
+ disk_kept_until?: string;
5780
+ /**
5781
+ * IdleTimeoutSeconds stops the running box this long after
5782
+ * LastActivityAt; 0 never does.
5783
+ */
5784
+ idle_timeout_seconds: number;
5785
+ /**
5786
+ * LastActivityAt is when the sandbox was last used through the API, or
5787
+ * its box started, whichever is later.
5788
+ */
5789
+ last_activity_at?: string;
5790
+ }
5791
+ /**
5792
+ * SandboxFileKind is what a path on a sandbox is.
5793
+ */
5794
+ export type SandboxFileKind = "file" | "dir" | "link" | "other";
5795
+ export declare const SandboxFileKindFile: SandboxFileKind;
5796
+ export declare const SandboxFileKindDir: SandboxFileKind;
5797
+ export declare const SandboxFileKindLink: SandboxFileKind;
5798
+ export declare const SandboxFileKindOther: SandboxFileKind;
5799
+ /**
5800
+ * SandboxFileEntry is one entry of a directory on a running sandbox (GET
5801
+ * /sandboxes/{id}/files?path=): its name in the directory, kind, size in
5802
+ * bytes, octal permission bits and last change.
5803
+ */
5804
+ export interface SandboxFileEntry {
5805
+ name: string;
5806
+ kind: SandboxFileKind;
5807
+ size: number;
5808
+ mode: string;
5809
+ modified_at?: string;
5810
+ }
5811
+ /**
5812
+ * SandboxFileImportRequest is POST /sandboxes/{id}/files/import: put the
5813
+ * platform file FileID (uploaded first, POST /files) at Path on the box.
5814
+ */
5815
+ export interface SandboxFileImportRequest {
5816
+ path: string;
5817
+ file_id: string;
5818
+ }
5819
+ /**
5820
+ * SandboxFileExportRequest is POST /sandboxes/{id}/files/export: copy the
5821
+ * file at Path on the box into a new platform file.
5822
+ */
5823
+ export interface SandboxFileExportRequest {
5824
+ path: string;
5825
+ }
5826
+ /**
5827
+ * SandboxFileTransferDTO answers an import or an export: the path on the
5828
+ * box, the platform file on the other side (its size is the file's), and,
5829
+ * for an export, a short-lived URL that downloads it.
5830
+ */
5831
+ export interface SandboxFileTransferDTO {
5832
+ path: string;
5833
+ file?: FileDTO;
5834
+ download_url?: string;
5835
+ }
5836
+ /**
5837
+ * SandboxRange is what a sandbox may ask for of one size: the default
5838
+ * when unset, and the largest.
5839
+ */
5840
+ export interface SandboxRange {
5841
+ default: number;
5842
+ max: number;
5843
+ }
5844
+ /**
5845
+ * SandboxLimitsDTO answers GET /sandboxes/limits: the caller's team's plan
5846
+ * limits on sandboxes and its use of them, the sizes one sandbox may ask
5847
+ * for, and the idle stop's range, in seconds (0 never stops).
5848
+ */
5849
+ export interface SandboxLimitsDTO {
5850
+ /**
5851
+ * Limits are the team's plan limits on sandboxes, each of them
5852
+ * (unlimited without a row), as GET /entitlements/usage reports them.
5853
+ */
5854
+ limits: ResourceUsage[];
5855
+ vcpus_per_sandbox: SandboxRange;
5856
+ memory_mib: SandboxRange;
5857
+ disk_mib: SandboxRange;
5858
+ /**
5859
+ * IdleTimeout* are in seconds.
5860
+ */
5861
+ idle_timeout_default: number;
5862
+ idle_timeout_min: number;
5863
+ idle_timeout_max: number;
5864
+ /**
5865
+ * DiskKeptFor is how long a stopped sandbox's disk is kept, in seconds.
5866
+ */
5867
+ disk_kept_for: number;
5868
+ }
5869
+ /**
5870
+ * SandboxPortRequest opens a sandbox's port on its own HTTPS URL
5871
+ * (POST /sandboxes/{id}/ports).
5872
+ */
5873
+ export interface SandboxPortRequest {
5874
+ /**
5875
+ * Port is the TCP port inside the box, 1-65535.
5876
+ */
5877
+ port: number;
5878
+ /**
5879
+ * Public answers anyone with the URL. Private (the default) asks once
5880
+ * per browser for the token, which the open answers with.
5881
+ */
5882
+ public?: boolean;
5883
+ }
5884
+ /**
5885
+ * SandboxPortDTO is an open port. URL opens it; for a private port the URL
5886
+ * the open answered with carries its token, which is shown only then.
5887
+ */
5888
+ export interface SandboxPortDTO {
5889
+ port: number;
5890
+ public: boolean;
5891
+ url: string;
5892
+ created_at: string;
5893
+ }
5894
+ /**
5895
+ * SandboxPortList is GET /sandboxes/{id}/ports.
5896
+ */
5897
+ export interface SandboxPortList {
5898
+ ports: SandboxPortDTO[];
5899
+ }
5900
+ /**
5901
+ * SandboxSnapshotStatus is where a snapshot stands.
5902
+ */
5903
+ export type SandboxSnapshotStatus = "pending" | "ready" | "failed";
5904
+ /**
5905
+ * SandboxSnapshotPending: the engine is copying the disk.
5906
+ */
5907
+ export declare const SandboxSnapshotPending: SandboxSnapshotStatus;
5908
+ /**
5909
+ * SandboxSnapshotReady: the copy is kept; forks and new sandboxes may
5910
+ * start from it.
5911
+ */
5912
+ export declare const SandboxSnapshotReady: SandboxSnapshotStatus;
5913
+ /**
5914
+ * SandboxSnapshotFailed: the copy could not be made (StatusReason
5915
+ * says why), or the engine no longer has it.
5916
+ */
5917
+ export declare const SandboxSnapshotFailed: SandboxSnapshotStatus;
5918
+ /**
5919
+ * SandboxSnapshotDTO is the API response for a snapshot.
5920
+ */
5921
+ export interface SandboxSnapshotDTO extends BaseModelDTO {
5922
+ /**
5923
+ * UserID took it; TeamID is the workspace it belongs to.
5924
+ */
5925
+ user_id: string;
5926
+ team_id: string;
5927
+ name: string;
5928
+ /**
5929
+ * SandboxID is the sandbox it was taken of.
5930
+ */
5931
+ sandbox_id: string;
5932
+ /**
5933
+ * Image and the sizes are the source's at the snapshot: a sandbox made
5934
+ * from it runs that image, at least that size.
5935
+ */
5936
+ image: string;
5937
+ vcpus: number;
5938
+ memory_mib: number;
5939
+ disk_mib: number;
5940
+ /**
5941
+ * Bytes is what the copy holds on the engine (sparse).
5942
+ */
5943
+ bytes: number;
5944
+ status: SandboxSnapshotStatus;
5945
+ status_reason?: string;
5946
+ ready_at?: string;
5947
+ /**
5948
+ * ForFork: taken by a fork for its sandboxes to start from, and
5949
+ * deleted once they have all started or failed. Not listed.
5950
+ */
5951
+ for_fork?: boolean;
5952
+ }
5953
+ /**
5954
+ * CreateSandboxSnapshotRequest is POST /sandboxes/{id}/snapshots: a
5955
+ * snapshot of the stopped sandbox's kept disk.
5956
+ */
5957
+ export interface CreateSandboxSnapshotRequest {
5958
+ name: string;
5959
+ }
5960
+ /**
5961
+ * ForkSandboxRequest is POST /sandboxes/{id}/fork: a snapshot of the
5962
+ * stopped sandbox's kept disk, then Count new sandboxes (1 when unset, at
5963
+ * most MaxSandboxForks) made from it, named Name-1..Name-N (Name alone for
5964
+ * one; the source's name + "-fork" when unset). They hold the disk as it
5965
+ * was at the fork: starting the source afterwards changes none of them.
5966
+ */
5967
+ export interface ForkSandboxRequest {
5968
+ name?: string;
5969
+ count?: number;
5970
+ /**
5971
+ * IdleTimeoutSeconds is as in CreateSandboxRequest; unset takes the
5972
+ * source's.
5973
+ */
5974
+ idle_timeout_seconds?: number;
5975
+ /**
5976
+ * KeepSnapshot keeps the fork's snapshot as one of the workspace's
5977
+ * (listed, deleted by hand). Unset, it is deleted once every fork has
5978
+ * started or failed.
5979
+ */
5980
+ keep_snapshot?: boolean;
5981
+ }
5982
+ /**
5983
+ * ForkSandboxResponse is the sandboxes a fork made, and the snapshot they
5984
+ * start from (SnapshotID). Error says why the rest were not, when it made
5985
+ * fewer than asked (a plan limit, say).
5986
+ */
5987
+ export interface ForkSandboxResponse {
5988
+ sandboxes: (SandboxDTO | undefined)[];
5989
+ snapshot_id?: string;
5990
+ error?: string;
5629
5991
  }
5630
5992
  /**
5631
5993
  * SDKTypes is a phantom type for gotypegen dependency tracing.
@@ -5783,6 +6145,62 @@ export interface SystemInfo {
5783
6145
  volumes: Volume[];
5784
6146
  hf_cache: HFCacheInfo;
5785
6147
  gpus: GPU[];
6148
+ /**
6149
+ * HostCPU is how the host runs its CPUs (INF-1244); nil off Linux
6150
+ * and from engines that predate it.
6151
+ */
6152
+ host_cpu?: HostCPU;
6153
+ }
6154
+ /**
6155
+ * HostCPU is how a host runs its CPUs: the settings that make the same
6156
+ * cores fast or slow (INF-1244), as the engine reads them from /sys.
6157
+ */
6158
+ export interface HostCPU {
6159
+ /**
6160
+ * Governor and Driver are cpu0's cpufreq scaling_governor and
6161
+ * scaling_driver.
6162
+ */
6163
+ governor?: string;
6164
+ driver?: string;
6165
+ /**
6166
+ * Boost is turbo/boost on or off; nil when the host does not say.
6167
+ */
6168
+ boost?: boolean;
6169
+ /**
6170
+ * CurMHz is the mean current frequency across CPUs, MaxMHz cpu0's
6171
+ * hardware maximum.
6172
+ */
6173
+ cur_mhz?: number;
6174
+ max_mhz?: number;
6175
+ /**
6176
+ * SMT is simultaneous multithreading on or off; nil when unknown.
6177
+ */
6178
+ smt?: boolean;
6179
+ threads_per_core?: number;
6180
+ /**
6181
+ * HugePages2M are the reserved 2 MiB huge pages; THP the transparent
6182
+ * huge page mode (always, madvise or never).
6183
+ */
6184
+ hugepages_2m_total: number;
6185
+ hugepages_2m_free: number;
6186
+ thp?: string;
6187
+ /**
6188
+ * KVM is /dev/kvm present.
6189
+ */
6190
+ kvm: boolean;
6191
+ /**
6192
+ * Score is the engine's startup CPU benchmark; nil until it has run.
6193
+ */
6194
+ cpu_score?: CPUScore;
6195
+ }
6196
+ /**
6197
+ * CPUScore is the engine's startup CPU benchmark: a fixed loop on one
6198
+ * thread, then on every thread.
6199
+ */
6200
+ export interface CPUScore {
6201
+ single_ops_per_sec: number;
6202
+ all_ops_per_sec: number;
6203
+ threads: number;
5786
6204
  }
5787
6205
  export interface Docker {
5788
6206
  binary_path: string;
@@ -6156,6 +6574,14 @@ export interface TeamViewDTO {
6156
6574
  org?: TeamViewOrg;
6157
6575
  governance: TeamGovernance;
6158
6576
  can: TeamCapability[];
6577
+ /**
6578
+ * NeedsAdminAccess lists what the caller would also hold with admin
6579
+ * access on: set only for staff whose browser sign-in holds no platform
6580
+ * power now and would after proving the authenticator again here
6581
+ * (AuthContext.AdminPowerRenewable). Clients show these as needing admin
6582
+ * access instead of hiding them.
6583
+ */
6584
+ needs_admin_access?: TeamCapability[];
6159
6585
  }
6160
6586
  export interface TelemetryReportDTO extends BaseModelDTO, PermissionModelDTO {
6161
6587
  ip: string;
@@ -6974,6 +7400,17 @@ export interface AuthMethod {
6974
7400
  */
6975
7401
  scheme?: AuthMethodHTTPScheme;
6976
7402
  bearer_format?: string;
7403
+ /**
7404
+ * Hosts are the hosts the credential's value is sent to, each exact
7405
+ * ("api.anthropic.com", "db.example.com:5432"): the key a person
7406
+ * pastes, or an oauth2 scheme's access token. A scheme with hosts
7407
+ * binds its secrets: a run behind the egress gateway holds a
7408
+ * placeholder for each, and the gateway puts the value in only on the
7409
+ * way to these hosts (authmethod.HostBinder). Empty: the secrets are
7410
+ * environment variables, as they were. A catalogued provider's hosts
7411
+ * come from the catalog when the row names none.
7412
+ */
7413
+ hosts?: string[];
6977
7414
  authorization_endpoint?: string;
6978
7415
  scopes?: string[];
6979
7416
  /**
@@ -8399,7 +8836,7 @@ export declare const DeviceTokenKindSession: DeviceTokenKind;
8399
8836
  * TODO: retire once CLIs older than the session-token release are gone.
8400
8837
  */
8401
8838
  export declare const DeviceTokenKindAPIKey: DeviceTokenKind;
8402
- 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";
8839
+ export type EntitlementResource = "api_keys" | "connectors" | "knowledge_bases" | "storage_mb" | "concurrency" | "rate_per_min" | "seats" | "triggers" | "retention_days" | "sandboxes" | "sandbox_vcpus" | "sandbox_max_vcpus" | "sandbox_starts_per_min" | "sandbox_kept_disks" | "sandbox_snapshots" | "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";
8403
8840
  /**
8404
8841
  * Capacity limits — scale with tier
8405
8842
  */
@@ -8418,6 +8855,27 @@ export declare const ResourceRetentionDays: EntitlementResource;
8418
8855
  */
8419
8856
  export declare const ResourceSandboxes: EntitlementResource;
8420
8857
  export declare const ResourceSandboxVCPUs: EntitlementResource;
8858
+ /**
8859
+ * ResourceSandboxMaxVCPUs is the largest sandbox a team may make: its
8860
+ * vCPUs, and memory up to 2 GiB for each.
8861
+ */
8862
+ export declare const ResourceSandboxMaxVCPUs: EntitlementResource;
8863
+ /**
8864
+ * ResourceSandboxStartsPerMin is how many sandboxes a team may create
8865
+ * or start in a minute.
8866
+ */
8867
+ export declare const ResourceSandboxStartsPerMin: EntitlementResource;
8868
+ /**
8869
+ * ResourceSandboxKeptDisks is how many stopped sandboxes may keep their
8870
+ * disk at once. It only warns: past it a stop still keeps its disk.
8871
+ */
8872
+ export declare const ResourceSandboxKeptDisks: EntitlementResource;
8873
+ /**
8874
+ * ResourceSandboxSnapshots is how many sandbox snapshots a team keeps
8875
+ * (INF-1251; not a fork's own, not failed). It only warns: past it a
8876
+ * snapshot is still taken.
8877
+ */
8878
+ export declare const ResourceSandboxSnapshots: EntitlementResource;
8421
8879
  /**
8422
8880
  * Legacy — kept for DB compatibility, no longer in plan seeds
8423
8881
  */
package/dist/types.js CHANGED
@@ -404,6 +404,10 @@ export const ScopeGroupApprovals = "approvals";
404
404
  export const ScopeGroupAdmin = "admin";
405
405
  export const ScopeGroupStore = "store";
406
406
  export const ScopeGroupContent = "content";
407
+ export const ScopeCategoryResources = "resources";
408
+ export const ScopeCategoryWorkspace = "workspace";
409
+ export const ScopeCategoryAccount = "account";
410
+ export const ScopeCategoryPlatform = "platform";
407
411
  /**
408
412
  * AlwaysAllowScopeExact: this call exactly (each piece of the command,
409
413
  * the file, the domain).
@@ -559,6 +563,21 @@ export const EngineCapabilitySizedSandboxes = "sized_sandboxes";
559
563
  * there by size, against the engine's capacity (INF-1159).
560
564
  */
561
565
  export const EngineCapabilitySizedWorkers = "sized_workers";
566
+ /**
567
+ * EngineCapabilitySandboxSnapshots: the engine copies a stopped
568
+ * sandbox's kept disk to a snapshot and starts a sandbox on a copy of a
569
+ * snapshot (sandbox_snapshot, sandbox_snapshot_drop,
570
+ * WsSandboxStartPayload.FromSnapshotID; INF-1251).
571
+ */
572
+ export const EngineCapabilitySandboxSnapshots = "sandbox_snapshots";
573
+ /**
574
+ * MaxOvercommit and MaxCPUSlots bound what EngineCapacityPolicy may say.
575
+ */
576
+ export const MaxOvercommit = 8;
577
+ /**
578
+ * MaxOvercommit and MaxCPUSlots bound what EngineCapacityPolicy may say.
579
+ */
580
+ export const MaxCPUSlots = 1024;
562
581
  export const ErrorCodeInvalidRequest = "invalid_request";
563
582
  export const ErrorCodeValidationError = "validation_error";
564
583
  export const ErrorCodeUnauthorized = "unauthorized";
@@ -960,6 +979,24 @@ export const SandboxCredentialAuto = "auto";
960
979
  * engine with EngineCapabilityEgressPending.
961
980
  */
962
981
  export const SandboxCredentialAsk = "ask";
982
+ export const SandboxFileKindFile = "file";
983
+ export const SandboxFileKindDir = "dir";
984
+ export const SandboxFileKindLink = "link";
985
+ export const SandboxFileKindOther = "other";
986
+ /**
987
+ * SandboxSnapshotPending: the engine is copying the disk.
988
+ */
989
+ export const SandboxSnapshotPending = "pending";
990
+ /**
991
+ * SandboxSnapshotReady: the copy is kept; forks and new sandboxes may
992
+ * start from it.
993
+ */
994
+ export const SandboxSnapshotReady = "ready";
995
+ /**
996
+ * SandboxSnapshotFailed: the copy could not be made (StatusReason
997
+ * says why), or the engine no longer has it.
998
+ */
999
+ export const SandboxSnapshotFailed = "failed";
963
1000
  /**
964
1001
  * UpdateRequested: the request was sent and nothing has answered it yet.
965
1002
  * An engine older than engine_update_result never answers, so its update stays here.
@@ -1765,6 +1802,27 @@ export const ResourceRetentionDays = "retention_days";
1765
1802
  */
1766
1803
  export const ResourceSandboxes = "sandboxes";
1767
1804
  export const ResourceSandboxVCPUs = "sandbox_vcpus";
1805
+ /**
1806
+ * ResourceSandboxMaxVCPUs is the largest sandbox a team may make: its
1807
+ * vCPUs, and memory up to 2 GiB for each.
1808
+ */
1809
+ export const ResourceSandboxMaxVCPUs = "sandbox_max_vcpus";
1810
+ /**
1811
+ * ResourceSandboxStartsPerMin is how many sandboxes a team may create
1812
+ * or start in a minute.
1813
+ */
1814
+ export const ResourceSandboxStartsPerMin = "sandbox_starts_per_min";
1815
+ /**
1816
+ * ResourceSandboxKeptDisks is how many stopped sandboxes may keep their
1817
+ * disk at once. It only warns: past it a stop still keeps its disk.
1818
+ */
1819
+ export const ResourceSandboxKeptDisks = "sandbox_kept_disks";
1820
+ /**
1821
+ * ResourceSandboxSnapshots is how many sandbox snapshots a team keeps
1822
+ * (INF-1251; not a fork's own, not failed). It only warns: past it a
1823
+ * snapshot is still taken.
1824
+ */
1825
+ export const ResourceSandboxSnapshots = "sandbox_snapshots";
1768
1826
  /**
1769
1827
  * Legacy — kept for DB compatibility, no longer in plan seeds
1770
1828
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inferencesh/sdk",
3
- "version": "0.39.0",
3
+ "version": "0.39.1",
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",