@inferencesh/sdk 0.38.11 → 0.38.13

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/types.d.ts CHANGED
@@ -3213,7 +3213,7 @@ export interface WorkerRAM {
3213
3213
  * a task lists the ones it needs (Task.Requires); the scheduler only sends
3214
3214
  * a task to an engine that has every one it needs.
3215
3215
  */
3216
- export type EngineCapability = "egress_gateway" | "sandboxes" | "capacity" | "egress_pending" | "egress_grants";
3216
+ export type EngineCapability = "egress_gateway" | "sandboxes" | "capacity" | "egress_pending" | "egress_grants" | "egress_decide";
3217
3217
  /**
3218
3218
  * EngineCapabilityEgressGateway: the engine runs its sandboxes behind
3219
3219
  * the egress gateway, so it can take bound secrets (the v2 secrets
@@ -3247,6 +3247,14 @@ export declare const EngineCapabilityEgressPending: EngineCapability;
3247
3247
  * an engine (INF-1173).
3248
3248
  */
3249
3249
  export declare const EngineCapabilityEgressGrants: EngineCapability;
3250
+ /**
3251
+ * EngineCapabilityEgressDecide: the engine's gateway reports what it
3252
+ * saw on a request (EgressResolveRequest.Observed) and carries out the
3253
+ * API's answer, every time in it included (HoldUntil, HoldOffMs,
3254
+ * MaxHoldMs, Resend, the retry status); it wakes held requests on
3255
+ * egress_answer and acks egress_revoke (INF-1173).
3256
+ */
3257
+ export declare const EngineCapabilityEgressDecide: EngineCapability;
3250
3258
  /**
3251
3259
  * EngineCapabilities is a set of capabilities, kept as a list. Nil and
3252
3260
  * empty are the same: nothing beyond the base contract.
@@ -3384,7 +3392,7 @@ export interface DecideEntitlementRequestRequest {
3384
3392
  * and APIError.Code on the legacy envelope. Clients branch on these, so a
3385
3393
  * code is a named const here, where it generates into models and the SDKs.
3386
3394
  */
3387
- export type ErrorCode = "invalid_request" | "validation_error" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "name_conflict" | "already_exists" | "not_configured" | "method_not_allowed" | "rate_limited" | "internal_error" | "access_restricted" | "web_access_restricted" | "requirements_not_met" | "team_role_required" | "in_other_workspace" | "blocked_by_usage_policy" | "last_owner" | "account_deactivated" | "account_banned" | "person_required" | "otp_required" | "requires_sign_in" | "insufficient_scope" | "invalid_scope" | "impersonation_reason_required" | "mcp_auth_expired" | "admin_session_required" | "admin_scopes_not_approved" | "cli_session_required" | "admin_required" | "same_admin_required" | "browser_session_required" | "invalid_ttl" | "admin_authenticator_required" | "last_authenticator" | "limit_exceeded" | "feature_not_available" | "entitlement_unavailable" | "payment_required" | "payment_method_required" | "form_closed" | "already_submitted" | "already_claimed" | "already_entitled" | "request_open" | "invalid_code" | "already_processed" | "expired" | "code_confirmation_required" | "app_retired" | "app_maintenance" | "invalid_transition" | "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";
3395
+ export type ErrorCode = "invalid_request" | "validation_error" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "name_conflict" | "already_exists" | "not_configured" | "method_not_allowed" | "rate_limited" | "internal_error" | "access_restricted" | "web_access_restricted" | "requirements_not_met" | "team_role_required" | "in_other_workspace" | "blocked_by_usage_policy" | "last_owner" | "account_deactivated" | "account_banned" | "person_required" | "otp_required" | "requires_sign_in" | "insufficient_scope" | "invalid_scope" | "impersonation_reason_required" | "mcp_auth_expired" | "admin_session_required" | "admin_scopes_not_approved" | "cli_session_required" | "admin_required" | "same_admin_required" | "browser_session_required" | "invalid_ttl" | "admin_authenticator_required" | "last_authenticator" | "limit_exceeded" | "feature_not_available" | "entitlement_unavailable" | "payment_required" | "payment_method_required" | "form_closed" | "already_submitted" | "already_claimed" | "already_entitled" | "request_open" | "invalid_code" | "already_processed" | "expired" | "code_confirmation_required" | "app_retired" | "app_maintenance" | "invalid_transition" | "maintenance" | "SESSION_NOT_FOUND" | "SESSION_EXPIRED" | "SESSION_ENDED" | "WORKER_LEASED" | "APP_MISMATCH" | "VERSION_MISMATCH" | "agents_disabled" | "remote_offline" | "remote_timeout" | "harness_not_drivable" | "harness_too_old";
3388
3396
  export declare const ErrorCodeInvalidRequest: ErrorCode;
3389
3397
  export declare const ErrorCodeValidationError: ErrorCode;
3390
3398
  export declare const ErrorCodeUnauthorized: ErrorCode;
@@ -3571,6 +3579,12 @@ export declare const ErrorCodeCodeConfirmationRequired: ErrorCode;
3571
3579
  export declare const ErrorCodeAppRetired: ErrorCode;
3572
3580
  export declare const ErrorCodeAppMaintenance: ErrorCode;
3573
3581
  export declare const ErrorCodeInvalidTransition: ErrorCode;
3582
+ /**
3583
+ * Maintenance (503, Retry-After): the platform is draining for
3584
+ * maintenance (platform.maintenance) and the route starts new work.
3585
+ * The message is the operator's; meta is MaintenanceMeta.
3586
+ */
3587
+ export declare const ErrorCodeMaintenance: ErrorCode;
3574
3588
  /**
3575
3589
  * Session-bound runs. SessionNotFound (404), SessionExpired and
3576
3590
  * SessionEnded (410), WorkerLeased, AppMismatch and VersionMismatch
package/dist/types.js CHANGED
@@ -509,6 +509,14 @@ export const EngineCapabilityEgressPending = "egress_pending";
509
509
  * an engine (INF-1173).
510
510
  */
511
511
  export const EngineCapabilityEgressGrants = "egress_grants";
512
+ /**
513
+ * EngineCapabilityEgressDecide: the engine's gateway reports what it
514
+ * saw on a request (EgressResolveRequest.Observed) and carries out the
515
+ * API's answer, every time in it included (HoldUntil, HoldOffMs,
516
+ * MaxHoldMs, Resend, the retry status); it wakes held requests on
517
+ * egress_answer and acks egress_revoke (INF-1173).
518
+ */
519
+ export const EngineCapabilityEgressDecide = "egress_decide";
512
520
  export const ErrorCodeInvalidRequest = "invalid_request";
513
521
  export const ErrorCodeValidationError = "validation_error";
514
522
  export const ErrorCodeUnauthorized = "unauthorized";
@@ -695,6 +703,12 @@ export const ErrorCodeCodeConfirmationRequired = "code_confirmation_required";
695
703
  export const ErrorCodeAppRetired = "app_retired";
696
704
  export const ErrorCodeAppMaintenance = "app_maintenance";
697
705
  export const ErrorCodeInvalidTransition = "invalid_transition";
706
+ /**
707
+ * Maintenance (503, Retry-After): the platform is draining for
708
+ * maintenance (platform.maintenance) and the route starts new work.
709
+ * The message is the operator's; meta is MaintenanceMeta.
710
+ */
711
+ export const ErrorCodeMaintenance = "maintenance";
698
712
  /**
699
713
  * Session-bound runs. SessionNotFound (404), SessionExpired and
700
714
  * SessionEnded (410), WorkerLeased, AppMismatch and VersionMismatch
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inferencesh/sdk",
3
- "version": "0.38.11",
3
+ "version": "0.38.13",
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",