@inferencesh/sdk 0.38.10 → 0.38.11

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +29 -0
  2. package/package.json +1 -1
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.
@@ -4921,6 +4926,30 @@ export interface ProjectDTO extends BaseModelDTO, PermissionModelDTO {
4921
4926
  parent?: ProjectDTO;
4922
4927
  children: (ProjectDTO | undefined)[];
4923
4928
  }
4929
+ /**
4930
+ * AccessNoticeDTO is the redlist's notice to a restricted caller, as a
4931
+ * refusal's meta.notice and /me's access_notice carry it.
4932
+ */
4933
+ export interface AccessNoticeDTO {
4934
+ /**
4935
+ * Stage: lure (install the CLI and sign in) or legal (the legal
4936
+ * warning).
4937
+ */
4938
+ stage: string;
4939
+ text: string;
4940
+ reference: string;
4941
+ contact: string;
4942
+ /**
4943
+ * InstallURL and InstallCommand, on the lure: where to get the belt
4944
+ * CLI.
4945
+ */
4946
+ install_url?: string;
4947
+ install_command?: string;
4948
+ /**
4949
+ * Case, on the legal notice when a report reference is configured.
4950
+ */
4951
+ case?: string;
4952
+ }
4924
4953
  export interface DiagnosticsConfig {
4925
4954
  level: number;
4926
4955
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inferencesh/sdk",
3
- "version": "0.38.10",
3
+ "version": "0.38.11",
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",