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