@inferencesh/sdk 0.6.50 → 0.6.52
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/README.md +18 -18
- package/dist/agent/actions.js +28 -13
- package/dist/agent/reducer.js +10 -7
- package/dist/agent/types.d.ts +4 -1
- package/dist/api/agents.d.ts +21 -1
- package/dist/api/agents.js +103 -16
- package/dist/api/integrations.d.ts +6 -6
- package/dist/http/client.js +5 -1
- package/dist/index.d.ts +7 -1
- package/dist/types.d.ts +335 -126
- package/dist/types.js +112 -38
- package/package.json +1 -1
package/dist/types.js
CHANGED
|
@@ -507,10 +507,10 @@ export const ChatMessageContentTypeReasoning = "reasoning";
|
|
|
507
507
|
export const ChatMessageContentTypeImage = "image";
|
|
508
508
|
export const ChatMessageContentTypeFile = "file";
|
|
509
509
|
export const ChatMessageContentTypeTool = "tool";
|
|
510
|
-
export const
|
|
511
|
-
export const
|
|
512
|
-
export const
|
|
513
|
-
export const
|
|
510
|
+
export const ChannelTypeSlack = "slack";
|
|
511
|
+
export const ChannelTypeDiscord = "discord";
|
|
512
|
+
export const ChannelTypeTeams = "teams";
|
|
513
|
+
export const ChannelTypeTelegram = "telegram";
|
|
514
514
|
export const EngineStatusRunning = "running";
|
|
515
515
|
export const EngineStatusPending = "pending";
|
|
516
516
|
export const EngineStatusDraining = "draining";
|
|
@@ -678,6 +678,11 @@ export const TeamInviteStatusRevoked = "revoked";
|
|
|
678
678
|
export const RefRouteTypeApp = "app";
|
|
679
679
|
export const RefRouteTypeAgent = "agent";
|
|
680
680
|
export const RefRouteTypeSkill = "skill";
|
|
681
|
+
/**
|
|
682
|
+
* RefRouteTypeURL routes a site path to another (/docs/api-files →
|
|
683
|
+
* /docs/api/sdk/files). Alias and target are literal paths, not refs.
|
|
684
|
+
*/
|
|
685
|
+
export const RefRouteTypeURL = "url";
|
|
681
686
|
export const RefRouteModeRewrite = "rewrite";
|
|
682
687
|
export const RefRouteModeRedirect = "redirect";
|
|
683
688
|
export const KnowledgeTypeConcept = "concept";
|
|
@@ -765,40 +770,64 @@ export const ContentViolenceNonGraphic = "violence_non_graphic";
|
|
|
765
770
|
export const ContentViolenceGraphic = "violence_graphic";
|
|
766
771
|
export const ContentGore = "gore";
|
|
767
772
|
export const ContentUnrated = "unrated";
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
export const
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
export const
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
export const
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
export const
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
export const
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
export const
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
773
|
+
/**
|
|
774
|
+
* Credential.Provider is a plain string; cast with string(...) when assigning.
|
|
775
|
+
*/
|
|
776
|
+
export const CredentialProviderGoogle = "google";
|
|
777
|
+
/**
|
|
778
|
+
* Credential.Provider is a plain string; cast with string(...) when assigning.
|
|
779
|
+
*/
|
|
780
|
+
export const CredentialProviderGoogleSA = "google-sa";
|
|
781
|
+
/**
|
|
782
|
+
* Credential.Provider is a plain string; cast with string(...) when assigning.
|
|
783
|
+
*/
|
|
784
|
+
export const CredentialProviderSlack = "slack";
|
|
785
|
+
/**
|
|
786
|
+
* Credential.Provider is a plain string; cast with string(...) when assigning.
|
|
787
|
+
*/
|
|
788
|
+
export const CredentialProviderNotion = "notion";
|
|
789
|
+
/**
|
|
790
|
+
* Credential.Provider is a plain string; cast with string(...) when assigning.
|
|
791
|
+
*/
|
|
792
|
+
export const CredentialProviderGitHub = "github";
|
|
793
|
+
/**
|
|
794
|
+
* Credential.Provider is a plain string; cast with string(...) when assigning.
|
|
795
|
+
*/
|
|
796
|
+
export const CredentialProviderX = "x";
|
|
797
|
+
/**
|
|
798
|
+
* Credential.Provider is a plain string; cast with string(...) when assigning.
|
|
799
|
+
*/
|
|
800
|
+
export const CredentialProviderMicrosoft = "microsoft";
|
|
801
|
+
/**
|
|
802
|
+
* Credential.Provider is a plain string; cast with string(...) when assigning.
|
|
803
|
+
*/
|
|
804
|
+
export const CredentialProviderSalesforce = "salesforce";
|
|
805
|
+
/**
|
|
806
|
+
* Credential.Provider is a plain string; cast with string(...) when assigning.
|
|
807
|
+
*/
|
|
808
|
+
export const CredentialProviderDiscord = "discord";
|
|
809
|
+
/**
|
|
810
|
+
* Credential.Provider is a plain string; cast with string(...) when assigning.
|
|
811
|
+
*/
|
|
812
|
+
export const CredentialProviderGCP = "gcp";
|
|
813
|
+
/**
|
|
814
|
+
* Credential.Provider is a plain string; cast with string(...) when assigning.
|
|
815
|
+
*/
|
|
816
|
+
export const CredentialProviderMCP = "mcp";
|
|
817
|
+
/**
|
|
818
|
+
* Credential.Provider is a plain string; cast with string(...) when assigning.
|
|
819
|
+
*/
|
|
820
|
+
export const CredentialProviderReddit = "reddit";
|
|
821
|
+
export const CredentialTypeOAuth = "oauth";
|
|
822
|
+
export const CredentialTypeAPIKey = "api_key";
|
|
823
|
+
export const CredentialTypeMCP = "mcp";
|
|
824
|
+
export const CredentialTypeServiceAccount = "service_account";
|
|
825
|
+
export const CredentialTypeWIF = "wif";
|
|
826
|
+
export const CredentialStatusPending = "pending";
|
|
827
|
+
export const CredentialStatusConnected = "connected";
|
|
828
|
+
export const CredentialStatusDisconnected = "disconnected";
|
|
829
|
+
export const CredentialStatusExpired = "expired";
|
|
830
|
+
export const CredentialStatusError = "error";
|
|
802
831
|
export const CredentialScopePlatform = "platform";
|
|
803
832
|
/**
|
|
804
833
|
* CredentialScopeOrg: shared across all teams of an org. In the enum for
|
|
@@ -810,6 +839,8 @@ export const CredentialScopeOrg = "org";
|
|
|
810
839
|
export const CredentialScopeTeam = "team";
|
|
811
840
|
export const CredentialScopeUser = "user";
|
|
812
841
|
export const CredentialScopeAgent = "agent";
|
|
842
|
+
export const CredentialGrantCredentials = "credentials";
|
|
843
|
+
export const CredentialGrantToken = "token";
|
|
813
844
|
export const NotificationChannelEmail = "email";
|
|
814
845
|
export const NotificationChannelSMS = "sms";
|
|
815
846
|
export const NotificationChannelPush = "push";
|
|
@@ -871,6 +902,45 @@ export const NotificationStatusDelivered = "delivered";
|
|
|
871
902
|
export const NotificationStatusFailed = "failed";
|
|
872
903
|
export const NotificationStatusBounced = "bounced";
|
|
873
904
|
export const NotificationStatusCancelled = "cancelled";
|
|
905
|
+
/**
|
|
906
|
+
* FunctionKindRun takes an input and returns an output (optionally
|
|
907
|
+
* yielding progress on the way). The zero value means this.
|
|
908
|
+
*/
|
|
909
|
+
export const FunctionKindRun = "run";
|
|
910
|
+
/**
|
|
911
|
+
* FunctionKindStream holds a socket with the caller for the life of the
|
|
912
|
+
* task: frames both ways, no input/output exchange.
|
|
913
|
+
*/
|
|
914
|
+
export const FunctionKindStream = "stream";
|
|
915
|
+
/**
|
|
916
|
+
* SocketStatusPending: opened, and the two ends have not met yet. An end
|
|
917
|
+
* that gave up waiting may dial again, so an unpaired end does not close
|
|
918
|
+
* the socket; the task ending does.
|
|
919
|
+
*/
|
|
920
|
+
export const SocketStatusPending = "pending";
|
|
921
|
+
/**
|
|
922
|
+
* SocketStatusOpen: both ends are connected through the relay.
|
|
923
|
+
*/
|
|
924
|
+
export const SocketStatusOpen = "open";
|
|
925
|
+
/**
|
|
926
|
+
* SocketStatusClosed: over. Outcome says why.
|
|
927
|
+
*/
|
|
928
|
+
export const SocketStatusClosed = "closed";
|
|
929
|
+
export const SocketOutcomeClientClosed = "client_closed";
|
|
930
|
+
export const SocketOutcomeWorkerClosed = "worker_closed";
|
|
931
|
+
/**
|
|
932
|
+
* SocketOutcomeDrained: the relay restarted under a live socket.
|
|
933
|
+
*/
|
|
934
|
+
export const SocketOutcomeDrained = "drained";
|
|
935
|
+
/**
|
|
936
|
+
* SocketOutcomeNeverPaired: the task ended before the two ends met.
|
|
937
|
+
*/
|
|
938
|
+
export const SocketOutcomeNeverPaired = "never_paired";
|
|
939
|
+
/**
|
|
940
|
+
* SocketOutcomeTaskEnded: the task ended and the relay's own account of
|
|
941
|
+
* the socket has not arrived (yet).
|
|
942
|
+
*/
|
|
943
|
+
export const SocketOutcomeTaskEnded = "task_ended";
|
|
874
944
|
export const TaskStatusUnknown = 0;
|
|
875
945
|
export const TaskStatusReceived = 1;
|
|
876
946
|
export const TaskStatusQueued = 2;
|
|
@@ -913,6 +983,10 @@ export const RoleGuest = "guest";
|
|
|
913
983
|
export const RoleUser = "user";
|
|
914
984
|
export const RoleAdmin = "admin";
|
|
915
985
|
export const RoleSystem = "system";
|
|
986
|
+
export const UtilityPresetGate = "gate";
|
|
987
|
+
export const UtilityPresetSelector = "selector";
|
|
988
|
+
export const UtilityPresetMerge = "merge";
|
|
989
|
+
export const UtilityPresetConstant = "constant";
|
|
916
990
|
/**
|
|
917
991
|
* Run lifecycle
|
|
918
992
|
*/
|