@inferencesh/sdk 0.27.0 → 0.29.0

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.js CHANGED
@@ -211,7 +211,7 @@ export const ScopeSecretsWrite = "secrets:write";
211
211
  export const ScopeSecretsReveal = "secrets:reveal";
212
212
  /**
213
213
  * Action-level scopes for credentials (connected accounts, vaults,
214
- * auth schemes, MCP servers).
214
+ * auth providers, MCP servers).
215
215
  */
216
216
  export const ScopeCredentialsRead = "credentials:read";
217
217
  /**
@@ -376,6 +376,7 @@ export const ToolRiskMedium = "medium";
376
376
  * ToolRiskHigh: dangerous or irreversible changes.
377
377
  */
378
378
  export const ToolRiskHigh = "high";
379
+ export const EngineCapabilityEgressGateway = "egress_gateway";
379
380
  export const ErrorCodeInvalidRequest = "invalid_request";
380
381
  export const ErrorCodeValidationError = "validation_error";
381
382
  export const ErrorCodeUnauthorized = "unauthorized";
@@ -743,74 +744,74 @@ export const GPUTypeNvidia = "nvidia";
743
744
  export const GPUTypeAMD = "amd";
744
745
  export const GPUTypeApple = "apple";
745
746
  /**
746
- * AuthSchemeOAuth2 is OAuth 2.0; Flow says which grant.
747
+ * AuthMethodOAuth2 is OAuth 2.0; Flow says which grant.
747
748
  */
748
- export const AuthSchemeOAuth2 = "oauth2";
749
+ export const AuthMethodOAuth2 = "oauth2";
749
750
  /**
750
- * AuthSchemeAPIKey is one or more keys a person pastes, sent as a
751
+ * AuthMethodAPIKey is one or more keys a person pastes, sent as a
751
752
  * header or query parameter.
752
753
  */
753
- export const AuthSchemeAPIKey = "api_key";
754
+ export const AuthMethodAPIKey = "api_key";
754
755
  /**
755
- * AuthSchemeHTTP is a pasted secret sent as an HTTP auth scheme
756
+ * AuthMethodHTTP is a pasted secret sent as an HTTP auth provider
756
757
  * (Authorization: Bearer or Basic).
757
758
  */
758
- export const AuthSchemeHTTP = "http";
759
+ export const AuthMethodHTTP = "http";
759
760
  /**
760
- * Deprecated: the kind is AuthSchemeOAuth2 with AuthSchemeFlowAuthorizationCode.
761
+ * Deprecated: the kind is AuthMethodOAuth2 with AuthMethodFlowAuthorizationCode.
761
762
  * Same value, so comparisons keep working; rows still stored as
762
763
  * "oauth2_authorization_code" are read as oauth2 (UnmarshalJSON).
763
764
  */
764
- export const AuthSchemeOAuth2AuthorizationCode = AuthSchemeOAuth2;
765
+ export const AuthMethodOAuth2AuthorizationCode = AuthMethodOAuth2;
765
766
  /**
766
- * AuthSchemeFlowAuthorizationCode is the user-consent flow: authorization
767
+ * AuthMethodFlowAuthorizationCode is the user-consent flow: authorization
767
768
  * endpoint → code → token endpoint, optionally with PKCE. The default.
768
769
  */
769
- export const AuthSchemeFlowAuthorizationCode = "authorization_code";
770
+ export const AuthMethodFlowAuthorizationCode = "authorization_code";
770
771
  /**
771
- * AuthSchemeFlowClientCredentials is server-to-server: the app's client
772
+ * AuthMethodFlowClientCredentials is server-to-server: the app's client
772
773
  * id and secret are exchanged at the token endpoint, no redirect, no
773
774
  * user. The login is the app's own.
774
775
  */
775
- export const AuthSchemeFlowClientCredentials = "client_credentials";
776
- export const AuthSchemeAPIKeyInHeader = "header";
777
- export const AuthSchemeAPIKeyInQuery = "query";
778
- export const AuthSchemeHTTPBearer = "bearer";
779
- export const AuthSchemeHTTPBasic = "basic";
776
+ export const AuthMethodFlowClientCredentials = "client_credentials";
777
+ export const AuthMethodAPIKeyInHeader = "header";
778
+ export const AuthMethodAPIKeyInQuery = "query";
779
+ export const AuthMethodHTTPBearer = "bearer";
780
+ export const AuthMethodHTTPBasic = "basic";
780
781
  /**
781
- * AuthSchemeClientAuthBasic sends them as an HTTP Basic Authorization
782
+ * AuthMethodClientAuthBasic sends them as an HTTP Basic Authorization
782
783
  * header (RFC 6749 §2.3.1, the default).
783
784
  */
784
- export const AuthSchemeClientAuthBasic = "basic";
785
+ export const AuthMethodClientAuthBasic = "basic";
785
786
  /**
786
- * AuthSchemeClientAuthBody sends them as form fields in the request body.
787
+ * AuthMethodClientAuthBody sends them as form fields in the request body.
787
788
  */
788
- export const AuthSchemeClientAuthBody = "body";
789
+ export const AuthMethodClientAuthBody = "body";
789
790
  /**
790
- * AuthSchemeClientAuthNone is a public client (RFC 8414
791
+ * AuthMethodClientAuthNone is a public client (RFC 8414
791
792
  * token_endpoint_auth_method "none"): the client id goes in the body,
792
793
  * there is no secret, and PKCE is what proves the client. Its OAuth app
793
794
  * is complete with a client id alone (a dynamically registered client,
794
795
  * or a Client ID Metadata Document URL).
795
796
  */
796
- export const AuthSchemeClientAuthNone = "none";
797
- export const AuthSchemeTokenRequestForm = "form";
798
- export const AuthSchemeTokenRequestJSON = "json";
797
+ export const AuthMethodClientAuthNone = "none";
798
+ export const AuthMethodTokenRequestForm = "form";
799
+ export const AuthMethodTokenRequestJSON = "json";
799
800
  /**
800
- * AuthSchemeRefreshWhenExpiring refreshes within five minutes of the
801
+ * AuthMethodRefreshWhenExpiring refreshes within five minutes of the
801
802
  * reported expiry; a token with no expiry is treated as long-lived
802
803
  * (Slack without token rotation, Notion).
803
804
  */
804
- export const AuthSchemeRefreshWhenExpiring = "";
805
+ export const AuthMethodRefreshWhenExpiring = "";
805
806
  /**
806
- * AuthSchemeRefreshAlways refreshes on every read: the provider reports
807
+ * AuthMethodRefreshAlways refreshes on every read: the provider reports
807
808
  * no expiry but the token does expire (Salesforce's session timeout is
808
809
  * per org and not reported).
809
810
  */
810
- export const AuthSchemeRefreshAlways = "always";
811
- export const AuthSchemeRevokeBearer = "bearer";
812
- export const AuthSchemeRevokeQuery = "query";
813
- export const AuthSchemeRevokeForm = "form";
811
+ export const AuthMethodRefreshAlways = "always";
812
+ export const AuthMethodRevokeBearer = "bearer";
813
+ export const AuthMethodRevokeQuery = "query";
814
+ export const AuthMethodRevokeForm = "form";
814
815
  export const VisibilityPrivate = "private";
815
816
  export const VisibilityTeam = "team";
816
817
  /**
@@ -822,6 +823,12 @@ export const VisibilityPublic = "public";
822
823
  export const VisibilityUnlisted = "unlisted";
823
824
  export const PermRead = "read";
824
825
  export const PermWrite = "write";
826
+ /**
827
+ * PermInteract changes what a page's people keep in it (an artifact's
828
+ * shared data) without editing the page. Write covers interact, and
829
+ * interact covers read; public and unlisted visibility grant read only.
830
+ */
831
+ export const PermInteract = "interact";
825
832
  /**
826
833
  * PermUse is execute intent: run an app, load a skill/knowledge into an
827
834
  * agent context, invoke an MCP tool. Distinct from read — a public
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inferencesh/sdk",
3
- "version": "0.27.0",
3
+ "version": "0.29.0",
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",