@inferencesh/sdk 0.38.10 → 0.38.12

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
@@ -755,6 +755,11 @@ export interface MeResponse {
755
755
  notice?: string;
756
756
  notice_reference?: string;
757
757
  notice_contact?: string;
758
+ /**
759
+ * AccessNotice is the same notice in structured form: its stage (lure
760
+ * or legal) and, on the lure, how to install the CLI.
761
+ */
762
+ access_notice?: AccessNoticeDTO;
758
763
  /**
759
764
  * PersonalTeamID is the caller's personal workspace, empty for a managed
760
765
  * account, which has none.
@@ -3379,7 +3384,7 @@ export interface DecideEntitlementRequestRequest {
3379
3384
  * and APIError.Code on the legacy envelope. Clients branch on these, so a
3380
3385
  * code is a named const here, where it generates into models and the SDKs.
3381
3386
  */
3382
- 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";
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" | "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";
3383
3388
  export declare const ErrorCodeInvalidRequest: ErrorCode;
3384
3389
  export declare const ErrorCodeValidationError: ErrorCode;
3385
3390
  export declare const ErrorCodeUnauthorized: ErrorCode;
@@ -3566,6 +3571,12 @@ export declare const ErrorCodeCodeConfirmationRequired: ErrorCode;
3566
3571
  export declare const ErrorCodeAppRetired: ErrorCode;
3567
3572
  export declare const ErrorCodeAppMaintenance: ErrorCode;
3568
3573
  export declare const ErrorCodeInvalidTransition: ErrorCode;
3574
+ /**
3575
+ * Maintenance (503, Retry-After): the platform is draining for
3576
+ * maintenance (platform.maintenance) and the route starts new work.
3577
+ * The message is the operator's; meta is MaintenanceMeta.
3578
+ */
3579
+ export declare const ErrorCodeMaintenance: ErrorCode;
3569
3580
  /**
3570
3581
  * Session-bound runs. SessionNotFound (404), SessionExpired and
3571
3582
  * SessionEnded (410), WorkerLeased, AppMismatch and VersionMismatch
@@ -4921,6 +4932,30 @@ export interface ProjectDTO extends BaseModelDTO, PermissionModelDTO {
4921
4932
  parent?: ProjectDTO;
4922
4933
  children: (ProjectDTO | undefined)[];
4923
4934
  }
4935
+ /**
4936
+ * AccessNoticeDTO is the redlist's notice to a restricted caller, as a
4937
+ * refusal's meta.notice and /me's access_notice carry it.
4938
+ */
4939
+ export interface AccessNoticeDTO {
4940
+ /**
4941
+ * Stage: lure (install the CLI and sign in) or legal (the legal
4942
+ * warning).
4943
+ */
4944
+ stage: string;
4945
+ text: string;
4946
+ reference: string;
4947
+ contact: string;
4948
+ /**
4949
+ * InstallURL and InstallCommand, on the lure: where to get the belt
4950
+ * CLI.
4951
+ */
4952
+ install_url?: string;
4953
+ install_command?: string;
4954
+ /**
4955
+ * Case, on the legal notice when a report reference is configured.
4956
+ */
4957
+ case?: string;
4958
+ }
4924
4959
  export interface DiagnosticsConfig {
4925
4960
  level: number;
4926
4961
  }
package/dist/types.js CHANGED
@@ -695,6 +695,12 @@ export const ErrorCodeCodeConfirmationRequired = "code_confirmation_required";
695
695
  export const ErrorCodeAppRetired = "app_retired";
696
696
  export const ErrorCodeAppMaintenance = "app_maintenance";
697
697
  export const ErrorCodeInvalidTransition = "invalid_transition";
698
+ /**
699
+ * Maintenance (503, Retry-After): the platform is draining for
700
+ * maintenance (platform.maintenance) and the route starts new work.
701
+ * The message is the operator's; meta is MaintenanceMeta.
702
+ */
703
+ export const ErrorCodeMaintenance = "maintenance";
698
704
  /**
699
705
  * Session-bound runs. SessionNotFound (404), SessionExpired and
700
706
  * 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.10",
3
+ "version": "0.38.12",
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",