@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/CHANGELOG.md +20 -0
- package/dist/agent/actions.js +16 -7
- package/dist/agent/reducer.d.ts +6 -0
- package/dist/agent/reducer.js +72 -8
- package/dist/agent/types.d.ts +2 -0
- package/dist/api/agents.js +14 -3
- package/dist/api/engines.d.ts +11 -3
- package/dist/api/engines.js +14 -3
- package/dist/api/write-bodies.d.ts +2 -2
- package/dist/http/client.js +36 -2
- package/dist/http/poll.d.ts +7 -2
- package/dist/http/poll.js +5 -2
- package/dist/types.d.ts +310 -130
- package/dist/types.js +39 -32
- package/package.json +1 -1
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
|
|
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
|
-
*
|
|
747
|
+
* AuthMethodOAuth2 is OAuth 2.0; Flow says which grant.
|
|
747
748
|
*/
|
|
748
|
-
export const
|
|
749
|
+
export const AuthMethodOAuth2 = "oauth2";
|
|
749
750
|
/**
|
|
750
|
-
*
|
|
751
|
+
* AuthMethodAPIKey is one or more keys a person pastes, sent as a
|
|
751
752
|
* header or query parameter.
|
|
752
753
|
*/
|
|
753
|
-
export const
|
|
754
|
+
export const AuthMethodAPIKey = "api_key";
|
|
754
755
|
/**
|
|
755
|
-
*
|
|
756
|
+
* AuthMethodHTTP is a pasted secret sent as an HTTP auth provider
|
|
756
757
|
* (Authorization: Bearer or Basic).
|
|
757
758
|
*/
|
|
758
|
-
export const
|
|
759
|
+
export const AuthMethodHTTP = "http";
|
|
759
760
|
/**
|
|
760
|
-
* Deprecated: the kind is
|
|
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
|
|
765
|
+
export const AuthMethodOAuth2AuthorizationCode = AuthMethodOAuth2;
|
|
765
766
|
/**
|
|
766
|
-
*
|
|
767
|
+
* AuthMethodFlowAuthorizationCode is the user-consent flow: authorization
|
|
767
768
|
* endpoint → code → token endpoint, optionally with PKCE. The default.
|
|
768
769
|
*/
|
|
769
|
-
export const
|
|
770
|
+
export const AuthMethodFlowAuthorizationCode = "authorization_code";
|
|
770
771
|
/**
|
|
771
|
-
*
|
|
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
|
|
776
|
-
export const
|
|
777
|
-
export const
|
|
778
|
-
export const
|
|
779
|
-
export const
|
|
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
|
-
*
|
|
782
|
+
* AuthMethodClientAuthBasic sends them as an HTTP Basic Authorization
|
|
782
783
|
* header (RFC 6749 §2.3.1, the default).
|
|
783
784
|
*/
|
|
784
|
-
export const
|
|
785
|
+
export const AuthMethodClientAuthBasic = "basic";
|
|
785
786
|
/**
|
|
786
|
-
*
|
|
787
|
+
* AuthMethodClientAuthBody sends them as form fields in the request body.
|
|
787
788
|
*/
|
|
788
|
-
export const
|
|
789
|
+
export const AuthMethodClientAuthBody = "body";
|
|
789
790
|
/**
|
|
790
|
-
*
|
|
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
|
|
797
|
-
export const
|
|
798
|
-
export const
|
|
797
|
+
export const AuthMethodClientAuthNone = "none";
|
|
798
|
+
export const AuthMethodTokenRequestForm = "form";
|
|
799
|
+
export const AuthMethodTokenRequestJSON = "json";
|
|
799
800
|
/**
|
|
800
|
-
*
|
|
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
|
|
805
|
+
export const AuthMethodRefreshWhenExpiring = "";
|
|
805
806
|
/**
|
|
806
|
-
*
|
|
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
|
|
811
|
-
export const
|
|
812
|
-
export const
|
|
813
|
-
export const
|
|
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
|