@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/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 IntegrationTypeSlack = "slack";
511
- export const IntegrationTypeDiscord = "discord";
512
- export const IntegrationTypeTeams = "teams";
513
- export const IntegrationTypeTelegram = "telegram";
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
- export const IntegrationProviderGoogle = "google";
774
- export const IntegrationProviderGoogleSA = "google-sa";
775
- export const IntegrationProviderSlack = "slack";
776
- export const IntegrationProviderNotion = "notion";
777
- export const IntegrationProviderGitHub = "github";
778
- export const IntegrationProviderX = "x";
779
- export const IntegrationProviderMicrosoft = "microsoft";
780
- export const IntegrationProviderSalesforce = "salesforce";
781
- export const IntegrationProviderDiscord = "discord";
782
- export const IntegrationProviderGCP = "gcp";
783
- export const IntegrationProviderMCP = "mcp";
784
- export const IntegrationProviderReddit = "reddit";
785
- export const IntegrationAuthTypeServiceAccount = "service_account";
786
- export const IntegrationAuthTypeOAuth = "oauth";
787
- export const IntegrationAuthTypeAPIKey = "api_key";
788
- export const IntegrationAuthTypeWIF = "wif";
789
- export const IntegrationAuthTypeMCP = "mcp";
790
- export const IntegrationStatusPending = "pending";
791
- export const IntegrationStatusConnected = "connected";
792
- export const IntegrationStatusDisconnected = "disconnected";
793
- export const IntegrationStatusExpired = "expired";
794
- export const IntegrationStatusError = "error";
795
- export const IntegrationScopeTeam = "team";
796
- export const IntegrationScopePlatform = "platform";
797
- export const IntegrationScopeUser = "user";
798
- /**
799
- * IntegrationGrantCredentials provides OAuth app credentials (client_id/secret).
800
- * Users connect their own accounts against it. Only valid for type=oauth.
801
- */
802
- export const IntegrationGrantCredentials = "credentials";
803
- /**
804
- * IntegrationGrantToken provides ready-to-use access (token, API key, etc.).
805
- */
806
- export const IntegrationGrantToken = "token";
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
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inferencesh/sdk",
3
- "version": "0.6.51",
3
+ "version": "0.6.53",
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",