@inferencesh/sdk 0.6.51 → 0.6.53
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 +56 -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 +25 -1
- package/dist/api/integrations.d.ts +6 -6
- package/dist/api/sockets.d.ts +44 -0
- package/dist/api/sockets.js +61 -0
- package/dist/api/tasks.d.ts +19 -4
- package/dist/api/tasks.js +38 -34
- package/dist/index.d.ts +30 -2
- package/dist/index.js +25 -0
- package/dist/live/schema.d.ts +75 -0
- package/dist/live/schema.js +108 -0
- package/dist/live/session.d.ts +100 -0
- package/dist/live/session.js +139 -0
- package/dist/types.d.ts +324 -126
- package/dist/types.js +107 -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";
|
|
@@ -770,40 +770,64 @@ export const ContentViolenceNonGraphic = "violence_non_graphic";
|
|
|
770
770
|
export const ContentViolenceGraphic = "violence_graphic";
|
|
771
771
|
export const ContentGore = "gore";
|
|
772
772
|
export const ContentUnrated = "unrated";
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
export const
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
export const
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
export const
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
export const
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
export const
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
export const
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
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";
|
|
807
831
|
export const CredentialScopePlatform = "platform";
|
|
808
832
|
/**
|
|
809
833
|
* CredentialScopeOrg: shared across all teams of an org. In the enum for
|
|
@@ -815,6 +839,8 @@ export const CredentialScopeOrg = "org";
|
|
|
815
839
|
export const CredentialScopeTeam = "team";
|
|
816
840
|
export const CredentialScopeUser = "user";
|
|
817
841
|
export const CredentialScopeAgent = "agent";
|
|
842
|
+
export const CredentialGrantCredentials = "credentials";
|
|
843
|
+
export const CredentialGrantToken = "token";
|
|
818
844
|
export const NotificationChannelEmail = "email";
|
|
819
845
|
export const NotificationChannelSMS = "sms";
|
|
820
846
|
export const NotificationChannelPush = "push";
|
|
@@ -876,6 +902,45 @@ export const NotificationStatusDelivered = "delivered";
|
|
|
876
902
|
export const NotificationStatusFailed = "failed";
|
|
877
903
|
export const NotificationStatusBounced = "bounced";
|
|
878
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";
|
|
879
944
|
export const TaskStatusUnknown = 0;
|
|
880
945
|
export const TaskStatusReceived = 1;
|
|
881
946
|
export const TaskStatusQueued = 2;
|
|
@@ -918,6 +983,10 @@ export const RoleGuest = "guest";
|
|
|
918
983
|
export const RoleUser = "user";
|
|
919
984
|
export const RoleAdmin = "admin";
|
|
920
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";
|
|
921
990
|
/**
|
|
922
991
|
* Run lifecycle
|
|
923
992
|
*/
|