@inferencesh/sdk 0.6.3 → 0.6.5

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
@@ -1,12 +1,236 @@
1
1
  // Code generated by gotypegen. DO NOT EDIT.
2
- export const ToolTypeApp = "app"; // App tools - creates a Task
3
- export const ToolTypeAgent = "agent"; // Sub-agent tools - creates a sub-Chat
4
- export const ToolTypeHook = "hook"; // Webhook tools - HTTP POST to external URL (legacy)
5
- export const ToolTypeHTTP = "http"; // HTTP tools - authenticated HTTP request/response
6
- export const ToolTypeCall = "call"; // Call tools - authenticated HTTP request/response (preferred over "http")
7
- export const ToolTypeMCP = "mcp"; // MCP tools - calls remote MCP server
8
- export const ToolTypeClient = "client"; // Client tools - executed by frontend
9
- export const ToolTypeInternal = "internal"; // Internal/built-in tools (plan, memory, widget, finish)
2
+ /**
3
+ * API Key Scopes - hierarchical permission system.
4
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
5
+ * Empty scopes = full access (for backwards compatibility with existing keys).
6
+ */
7
+ export const ScopeAll = "*";
8
+ /**
9
+ * Resource-level scopes (implies all actions)
10
+ */
11
+ export const ScopeAgents = "agents";
12
+ /**
13
+ * API Key Scopes - hierarchical permission system.
14
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
15
+ * Empty scopes = full access (for backwards compatibility with existing keys).
16
+ */
17
+ export const ScopeApps = "apps";
18
+ /**
19
+ * API Key Scopes - hierarchical permission system.
20
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
21
+ * Empty scopes = full access (for backwards compatibility with existing keys).
22
+ */
23
+ export const ScopeConversations = "conversations";
24
+ /**
25
+ * API Key Scopes - hierarchical permission system.
26
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
27
+ * Empty scopes = full access (for backwards compatibility with existing keys).
28
+ */
29
+ export const ScopeFiles = "files";
30
+ /**
31
+ * API Key Scopes - hierarchical permission system.
32
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
33
+ * Empty scopes = full access (for backwards compatibility with existing keys).
34
+ */
35
+ export const ScopeDatastores = "datastores";
36
+ /**
37
+ * API Key Scopes - hierarchical permission system.
38
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
39
+ * Empty scopes = full access (for backwards compatibility with existing keys).
40
+ */
41
+ export const ScopeTemplates = "templates";
42
+ /**
43
+ * API Key Scopes - hierarchical permission system.
44
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
45
+ * Empty scopes = full access (for backwards compatibility with existing keys).
46
+ */
47
+ export const ScopeFlows = "flows";
48
+ /**
49
+ * API Key Scopes - hierarchical permission system.
50
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
51
+ * Empty scopes = full access (for backwards compatibility with existing keys).
52
+ */
53
+ export const ScopeProjects = "projects";
54
+ /**
55
+ * API Key Scopes - hierarchical permission system.
56
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
57
+ * Empty scopes = full access (for backwards compatibility with existing keys).
58
+ */
59
+ export const ScopeTeams = "teams";
60
+ /**
61
+ * API Key Scopes - hierarchical permission system.
62
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
63
+ * Empty scopes = full access (for backwards compatibility with existing keys).
64
+ */
65
+ export const ScopeBilling = "billing";
66
+ /**
67
+ * Action-level scopes for Agents
68
+ */
69
+ export const ScopeAgentsRead = "agents:read";
70
+ /**
71
+ * API Key Scopes - hierarchical permission system.
72
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
73
+ * Empty scopes = full access (for backwards compatibility with existing keys).
74
+ */
75
+ export const ScopeAgentsWrite = "agents:write";
76
+ /**
77
+ * API Key Scopes - hierarchical permission system.
78
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
79
+ * Empty scopes = full access (for backwards compatibility with existing keys).
80
+ */
81
+ export const ScopeAgentsExecute = "agents:execute";
82
+ /**
83
+ * Action-level scopes for Apps
84
+ */
85
+ export const ScopeAppsRead = "apps:read";
86
+ /**
87
+ * API Key Scopes - hierarchical permission system.
88
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
89
+ * Empty scopes = full access (for backwards compatibility with existing keys).
90
+ */
91
+ export const ScopeAppsWrite = "apps:write";
92
+ /**
93
+ * API Key Scopes - hierarchical permission system.
94
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
95
+ * Empty scopes = full access (for backwards compatibility with existing keys).
96
+ */
97
+ export const ScopeAppsExecute = "apps:execute";
98
+ /**
99
+ * Action-level scopes for Conversations/Chats
100
+ */
101
+ export const ScopeConversationsRead = "conversations:read";
102
+ /**
103
+ * API Key Scopes - hierarchical permission system.
104
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
105
+ * Empty scopes = full access (for backwards compatibility with existing keys).
106
+ */
107
+ export const ScopeConversationsWrite = "conversations:write";
108
+ /**
109
+ * Action-level scopes for Files
110
+ */
111
+ export const ScopeFilesRead = "files:read";
112
+ /**
113
+ * API Key Scopes - hierarchical permission system.
114
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
115
+ * Empty scopes = full access (for backwards compatibility with existing keys).
116
+ */
117
+ export const ScopeFilesWrite = "files:write";
118
+ /**
119
+ * Action-level scopes for Datastores
120
+ */
121
+ export const ScopeDatastoresRead = "datastores:read";
122
+ /**
123
+ * API Key Scopes - hierarchical permission system.
124
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
125
+ * Empty scopes = full access (for backwards compatibility with existing keys).
126
+ */
127
+ export const ScopeDatastoresWrite = "datastores:write";
128
+ /**
129
+ * Action-level scopes for Flows
130
+ */
131
+ export const ScopeFlowsRead = "flows:read";
132
+ /**
133
+ * API Key Scopes - hierarchical permission system.
134
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
135
+ * Empty scopes = full access (for backwards compatibility with existing keys).
136
+ */
137
+ export const ScopeFlowsWrite = "flows:write";
138
+ /**
139
+ * API Key Scopes - hierarchical permission system.
140
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
141
+ * Empty scopes = full access (for backwards compatibility with existing keys).
142
+ */
143
+ export const ScopeFlowsExecute = "flows:execute";
144
+ /**
145
+ * Action-level scopes for Projects
146
+ */
147
+ export const ScopeProjectsRead = "projects:read";
148
+ /**
149
+ * API Key Scopes - hierarchical permission system.
150
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
151
+ * Empty scopes = full access (for backwards compatibility with existing keys).
152
+ */
153
+ export const ScopeProjectsWrite = "projects:write";
154
+ /**
155
+ * Action-level scopes for Teams
156
+ */
157
+ export const ScopeTeamsRead = "teams:read";
158
+ /**
159
+ * API Key Scopes - hierarchical permission system.
160
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
161
+ * Empty scopes = full access (for backwards compatibility with existing keys).
162
+ */
163
+ export const ScopeTeamsWrite = "teams:write";
164
+ /**
165
+ * Action-level scopes for Billing
166
+ */
167
+ export const ScopeBillingRead = "billing:read";
168
+ /**
169
+ * API Key Scopes - hierarchical permission system.
170
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
171
+ * Empty scopes = full access (for backwards compatibility with existing keys).
172
+ */
173
+ export const ScopeBillingWrite = "billing:write";
174
+ /**
175
+ * Action-level scopes for Secrets (sensitive - not in read/run presets)
176
+ */
177
+ export const ScopeSecretsRead = "secrets:read";
178
+ /**
179
+ * API Key Scopes - hierarchical permission system.
180
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
181
+ * Empty scopes = full access (for backwards compatibility with existing keys).
182
+ */
183
+ export const ScopeSecretsWrite = "secrets:write";
184
+ /**
185
+ * Action-level scopes for Integrations
186
+ */
187
+ export const ScopeIntegrationsRead = "integrations:read";
188
+ /**
189
+ * API Key Scopes - hierarchical permission system.
190
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
191
+ * Empty scopes = full access (for backwards compatibility with existing keys).
192
+ */
193
+ export const ScopeIntegrationsWrite = "integrations:write";
194
+ /**
195
+ * Action-level scopes for Engines
196
+ */
197
+ export const ScopeEnginesRead = "engines:read";
198
+ /**
199
+ * API Key Scopes - hierarchical permission system.
200
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
201
+ * Empty scopes = full access (for backwards compatibility with existing keys).
202
+ */
203
+ export const ScopeEnginesWrite = "engines:write";
204
+ /**
205
+ * Action-level scopes for API Keys
206
+ */
207
+ export const ScopeApiKeysRead = "apikeys:read";
208
+ /**
209
+ * API Key Scopes - hierarchical permission system.
210
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
211
+ * Empty scopes = full access (for backwards compatibility with existing keys).
212
+ */
213
+ export const ScopeApiKeysWrite = "apikeys:write";
214
+ /**
215
+ * Action-level scopes for User profile
216
+ */
217
+ export const ScopeUserRead = "user:read";
218
+ /**
219
+ * API Key Scopes - hierarchical permission system.
220
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
221
+ * Empty scopes = full access (for backwards compatibility with existing keys).
222
+ */
223
+ export const ScopeUserWrite = "user:write";
224
+ /**
225
+ * Action-level scopes for Settings/Notifications
226
+ */
227
+ export const ScopeSettingsRead = "settings:read";
228
+ /**
229
+ * API Key Scopes - hierarchical permission system.
230
+ * Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
231
+ * Empty scopes = full access (for backwards compatibility with existing keys).
232
+ */
233
+ export const ScopeSettingsWrite = "settings:write";
10
234
  export const ScopeGroupAgents = "agents";
11
235
  export const ScopeGroupApps = "apps";
12
236
  export const ScopeGroupConversations = "conversations";
@@ -36,9 +260,6 @@ export const GPUTypeIntel = "intel";
36
260
  export const GPUTypeNvidia = "nvidia";
37
261
  export const GPUTypeAMD = "amd";
38
262
  export const GPUTypeApple = "apple";
39
- export const AppSessionStatusActive = "active";
40
- export const AppSessionStatusEnded = "ended";
41
- export const AppSessionStatusExpired = "expired";
42
263
  export const VisibilityPrivate = "private";
43
264
  export const VisibilityPublic = "public";
44
265
  export const VisibilityUnlisted = "unlisted";
@@ -54,59 +275,30 @@ export const ChatMessageRoleSystem = "system";
54
275
  export const ChatMessageRoleUser = "user";
55
276
  export const ChatMessageRoleAssistant = "assistant";
56
277
  export const ChatMessageRoleTool = "tool";
57
- export const ChatMessageStatusPending = "pending"; // Message is being generated
58
- export const ChatMessageStatusReady = "ready"; // Message complete, tools ready for execution
59
- export const ChatMessageStatusFailed = "failed"; // Message generation failed
60
- export const ChatMessageStatusCancelled = "cancelled"; // Message was cancelled
278
+ export const ChatMessageStatusPending = "pending";
279
+ export const ChatMessageStatusReady = "ready";
280
+ export const ChatMessageStatusFailed = "failed";
281
+ export const ChatMessageStatusCancelled = "cancelled";
61
282
  export const ChatMessageContentTypeText = "text";
62
283
  export const ChatMessageContentTypeReasoning = "reasoning";
63
284
  export const ChatMessageContentTypeImage = "image";
64
285
  export const ChatMessageContentTypeFile = "file";
65
286
  export const ChatMessageContentTypeTool = "tool";
66
- export const IntegrationTypeSlack = "slack";
67
- export const IntegrationTypeDiscord = "discord";
68
- export const IntegrationTypeTeams = "teams";
69
- export const IntegrationTypeTelegram = "telegram";
70
- export const OpEqual = "eq";
71
- export const OpNotEqual = "neq";
72
- export const OpIn = "in";
73
- export const OpNotIn = "not_in";
74
- export const OpGreater = "gt";
75
- export const OpGreaterEqual = "gte";
76
- export const OpLess = "lt";
77
- export const OpLessEqual = "lte";
78
- export const OpLike = "like";
79
- export const OpILike = "ilike";
80
- export const OpContains = "contains";
81
- export const OpNotContains = "not_contains";
82
- /**
83
- * Null checks
84
- */
85
- export const OpIsNull = "is_null";
86
- export const OpIsNotNull = "is_not_null";
87
- /**
88
- * Empty checks (for strings)
89
- */
90
- export const OpIsEmpty = "is_empty";
91
- export const OpIsNotEmpty = "is_not_empty";
92
- export const DeviceAuthStatusPending = "pending";
93
- export const DeviceAuthStatusApproved = "approved";
94
- export const DeviceAuthStatusExpired = "expired";
95
- export const DeviceAuthStatusDenied = "denied";
96
- export const DeviceAuthStatusValid = "valid";
97
- export const DeviceAuthStatusInvalid = "invalid";
98
- export const DeviceAuthStatusLoading = "loading";
99
287
  export const EngineStatusRunning = "running";
100
288
  export const EngineStatusPending = "pending";
101
289
  export const EngineStatusDraining = "draining";
102
290
  export const EngineStatusStopping = "stopping";
103
291
  export const EngineStatusStopped = "stopped";
104
- export const FlowRunStatusUnknown = 0; // 0
105
- export const FlowRunStatusPending = 1; // 1
106
- export const FlowRunStatusRunning = 2; // 2
107
- export const FlowRunStatusCompleted = 3; // 3
108
- export const FlowRunStatusFailed = 4; // 4
109
- export const FlowRunStatusCancelled = 5; // 5
292
+ export const WorkerStatusReserved = "reserved";
293
+ export const WorkerStatusBusy = "busy";
294
+ export const WorkerStatusIdle = "idle";
295
+ export const WorkerStatusInactive = "inactive";
296
+ export const FlowRunStatusUnknown = 0;
297
+ export const FlowRunStatusPending = 1;
298
+ export const FlowRunStatusRunning = 2;
299
+ export const FlowRunStatusCompleted = 3;
300
+ export const FlowRunStatusFailed = 4;
301
+ export const FlowRunStatusCancelled = 5;
110
302
  export const GraphNodeTypeUnknown = "unknown";
111
303
  export const GraphNodeTypeJoin = "join";
112
304
  export const GraphNodeTypeSplit = "split";
@@ -114,54 +306,52 @@ export const GraphNodeTypeExecution = "execution";
114
306
  export const GraphNodeTypeResource = "resource";
115
307
  export const GraphNodeTypeApproval = "approval";
116
308
  export const GraphNodeTypeConditional = "conditional";
117
- export const GraphNodeTypeFlowNode = "flow_node"; // Flow execution node
309
+ export const GraphNodeTypeFlowNode = "flow_node";
118
310
  export const GraphNodeStatusPending = "pending";
119
- export const GraphNodeStatusReady = "ready"; // Dependencies satisfied
311
+ export const GraphNodeStatusReady = "ready";
120
312
  export const GraphNodeStatusRunning = "running";
121
313
  export const GraphNodeStatusCompleted = "completed";
122
314
  export const GraphNodeStatusFailed = "failed";
123
315
  export const GraphNodeStatusCancelled = "cancelled";
124
- export const GraphNodeStatusSkipped = "skipped"; // Conditional branch not taken
125
- export const GraphNodeStatusBlocked = "blocked"; // Dependency failed
126
- export const GraphEdgeTypeDependency = "dependency"; // Blocking dependency
127
- export const GraphEdgeTypeFlow = "flow"; // Non-blocking flow
128
- export const GraphEdgeTypeConditional = "conditional"; // Conditional flow
129
- export const GraphEdgeTypeExecution = "execution"; // Node → Resource execution link
130
- export const GraphEdgeTypeParent = "parent"; // Parent resource → child resource (e.g. skill fork)
131
- export const GraphEdgeTypeAncestor = "ancestor"; // Specific version → child resource (fork point)
132
- export const GraphEdgeTypeDuplicate = "duplicate"; // Skill → skill with identical content hash
133
- export const PageStatusUnknown = 0; // 0
134
- export const PageStatusDraft = 1; // 1
135
- export const PageStatusPublished = 2; // 2
136
- export const PageStatusArchived = 3; // 3
137
- export const PageTypeDoc = "doc"; // Documentation page
138
- export const PageTypeBlog = "blog"; // Blog post
139
- export const PageTypePage = "page"; // Generic page/landing
140
- export const ProjectTypeAgent = "agent";
141
- export const ProjectTypeApp = "app";
142
- export const ProjectTypeFlow = "flow";
143
- export const ProjectTypeOther = "other";
144
- export const ContentSafe = "safe";
145
- /**
146
- * sexual content
147
- */
148
- export const ContentSexualSuggestive = "sexual_suggestive";
149
- export const ContentSexualExplicit = "sexual_explicit";
150
- /**
151
- * violence
152
- */
153
- export const ContentViolenceNonGraphic = "violence_non_graphic";
154
- export const ContentViolenceGraphic = "violence_graphic";
155
- /**
156
- * gore
157
- */
158
- export const ContentGore = "gore";
159
- /**
160
- * other regulated content
161
- */
162
- export const ContentDrugs = "drugs";
163
- export const ContentSelfHarm = "self_harm";
164
- export const ContentUnrated = "unrated";
316
+ export const GraphNodeStatusSkipped = "skipped";
317
+ export const GraphNodeStatusBlocked = "blocked";
318
+ export const GraphEdgeTypeDependency = "dependency";
319
+ export const GraphEdgeTypeFlow = "flow";
320
+ export const GraphEdgeTypeConditional = "conditional";
321
+ export const GraphEdgeTypeExecution = "execution";
322
+ export const GraphEdgeTypeParent = "parent";
323
+ export const GraphEdgeTypeAncestor = "ancestor";
324
+ export const GraphEdgeTypeDuplicate = "duplicate";
325
+ export const EntitlementSourceTier = "tier";
326
+ export const EntitlementSourceOverride = "override";
327
+ export const EntitlementSourceWhitelist = "whitelist";
328
+ export const EntitlementSourceTrial = "trial";
329
+ export const EntitlementTypeBoolean = "boolean";
330
+ export const EntitlementTypeLimit = "limit";
331
+ export const EnforcementBlock = "block";
332
+ export const EnforcementWarn = "warn";
333
+ export const PageStatusUnknown = 0;
334
+ export const PageStatusDraft = 1;
335
+ export const PageStatusPublished = 2;
336
+ export const PageStatusArchived = 3;
337
+ export const PageTypeDoc = "doc";
338
+ export const PageTypeBlog = "blog";
339
+ export const PageTypePage = "page";
340
+ export const ToolInvocationStatusPending = "pending";
341
+ export const ToolInvocationStatusInProgress = "in_progress";
342
+ export const ToolInvocationStatusAwaitingInput = "awaiting_input";
343
+ export const ToolInvocationStatusAwaitingApproval = "awaiting_approval";
344
+ export const ToolInvocationStatusCompleted = "completed";
345
+ export const ToolInvocationStatusFailed = "failed";
346
+ export const ToolInvocationStatusCancelled = "cancelled";
347
+ export const ToolTypeApp = "app";
348
+ export const ToolTypeAgent = "agent";
349
+ export const ToolTypeHook = "hook";
350
+ export const ToolTypeHTTP = "http";
351
+ export const ToolTypeCall = "call";
352
+ export const ToolTypeMCP = "mcp";
353
+ export const ToolTypeClient = "client";
354
+ export const ToolTypeInternal = "internal";
165
355
  export const CloudAWS = "aws";
166
356
  export const CloudAzure = "azure";
167
357
  export const CloudLambdaLabs = "lambdalabs";
@@ -178,52 +368,72 @@ export const CloudShade = "shade";
178
368
  export const InstanceStatusPending = "pending";
179
369
  export const InstanceStatusActive = "active";
180
370
  export const InstanceStatusDeleted = "deleted";
181
- export const TaskStatusUnknown = 0; // 0
182
- export const TaskStatusReceived = 1; // 1
183
- export const TaskStatusQueued = 2; // 2
184
- export const TaskStatusDispatched = 3; // 3 - Worker assigned, task sent to worker
185
- export const TaskStatusPreparing = 4; // 4
186
- export const TaskStatusServing = 5; // 5
187
- export const TaskStatusSettingUp = 6; // 6
188
- export const TaskStatusRunning = 7; // 7
189
- export const TaskStatusCancelling = 8; // 8 - Graceful cancellation in progress
190
- export const TaskStatusUploading = 9; // 9
191
- export const TaskStatusCompleted = 10; // 10
192
- export const TaskStatusFailed = 11; // 11
193
- export const TaskStatusCancelled = 12; // 12
194
- export const InfraPrivate = "private";
195
- export const InfraCloud = "cloud";
196
- export const InfraPrivateFirst = "private_first";
197
- export const TaskLogTypeBuild = 0; // 0
198
- export const TaskLogTypeRun = 1;
199
- export const TaskLogTypeServe = 2;
200
- export const TaskLogTypeSetup = 3;
201
- export const TaskLogTypeTask = 4;
202
- export const TeamTypePersonal = "personal";
203
- export const TeamTypeTeam = "team";
204
- export const TeamTypeSystem = "system";
205
- export const TeamStatusActive = "active";
206
- export const TeamStatusSuspended = "suspended";
207
- export const TeamStatusTerminated = "terminated";
208
- export const TeamRoleOwner = "owner";
209
- export const TeamRoleAdmin = "admin";
210
- export const TeamRoleMember = "member";
211
- export const ToolInvocationStatusPending = "pending";
212
- export const ToolInvocationStatusInProgress = "in_progress";
213
- export const ToolInvocationStatusAwaitingInput = "awaiting_input"; // Waiting for user input (widgets)
214
- export const ToolInvocationStatusAwaitingApproval = "awaiting_approval"; // Waiting for HIL approval
215
- export const ToolInvocationStatusCompleted = "completed";
216
- export const ToolInvocationStatusFailed = "failed";
217
- export const ToolInvocationStatusCancelled = "cancelled";
371
+ export const InstanceTypeDeploymentTypeVM = "vm";
372
+ export const InstanceTypeDeploymentTypeContainer = "container";
373
+ export const InstanceTypeDeploymentTypeBaremetal = "baremetal";
374
+ export const AppSessionStatusActive = "active";
375
+ export const AppSessionStatusEnded = "ended";
376
+ export const AppSessionStatusExpired = "expired";
377
+ export const ProjectTypeAgent = "agent";
378
+ export const ProjectTypeApp = "app";
379
+ export const ProjectTypeFlow = "flow";
380
+ export const ProjectTypeOther = "other";
218
381
  export const UsageEventResourceTierPrivate = "private";
219
382
  export const UsageEventResourceTierCloud = "cloud";
220
- export const RoleGuest = "guest";
221
- export const RoleUser = "user";
222
- export const RoleAdmin = "admin";
223
- export const RoleSystem = "system";
224
- /**
225
- * Primitive node types (render literal values)
226
- */
383
+ export const MetaItemTypeText = "text";
384
+ export const MetaItemTypeImage = "image";
385
+ export const MetaItemTypeVideo = "video";
386
+ export const MetaItemTypeAudio = "audio";
387
+ export const MetaItemTypeRaw = "raw";
388
+ export const VideoRes480P = "480p";
389
+ export const VideoRes720P = "720p";
390
+ export const VideoRes1080P = "1080p";
391
+ export const VideoRes1440P = "1440p";
392
+ export const VideoRes4K = "4k";
393
+ export const TeamInviteStatusPending = "pending";
394
+ export const TeamInviteStatusAccepted = "accepted";
395
+ export const TeamInviteStatusDeclined = "declined";
396
+ export const TeamInviteStatusExpired = "expired";
397
+ export const TeamInviteStatusRevoked = "revoked";
398
+ export const OpEqual = "eq";
399
+ export const OpNotEqual = "neq";
400
+ export const OpIn = "in";
401
+ export const OpNotIn = "not_in";
402
+ export const OpGreater = "gt";
403
+ export const OpGreaterEqual = "gte";
404
+ export const OpLess = "lt";
405
+ export const OpLessEqual = "lte";
406
+ export const OpLike = "like";
407
+ export const OpILike = "ilike";
408
+ export const OpContains = "contains";
409
+ export const OpNotContains = "not_contains";
410
+ export const OpIsNull = "is_null";
411
+ export const OpIsNotNull = "is_not_null";
412
+ export const OpIsEmpty = "is_empty";
413
+ export const OpIsNotEmpty = "is_not_empty";
414
+ export const ResourceAPIKeys = "api_keys";
415
+ export const ResourceConnectors = "connectors";
416
+ export const ResourceKnowledgeBases = "knowledge_bases";
417
+ export const ResourcePrivateApps = "private_apps";
418
+ export const ResourceStorageMB = "storage_mb";
419
+ export const ResourceConcurrency = "concurrency";
420
+ export const ResourceRatePerMin = "rate_per_min";
421
+ export const ResourceSeats = "seats";
422
+ export const ResourceTaskExecutions = "task_executions";
423
+ export const ResourceFeatureScopes = "feature:scopes";
424
+ export const ResourceFeatureWebhooks = "feature:webhooks";
425
+ export const ResourceFeatureBYOK = "feature:byok";
426
+ export const ResourceFeatureTeamBilling = "feature:team_billing";
427
+ export const ResourceFeatureAutoRecharge = "feature:auto_recharge";
428
+ export const ResourceFeatureInvoices = "feature:invoices";
429
+ export const ResourceFeaturePublishApps = "feature:publish_apps";
430
+ export const ContentSafe = "safe";
431
+ export const ContentSexualSuggestive = "sexual_suggestive";
432
+ export const ContentSexualExplicit = "sexual_explicit";
433
+ export const ContentViolenceNonGraphic = "violence_non_graphic";
434
+ export const ContentViolenceGraphic = "violence_graphic";
435
+ export const ContentGore = "gore";
436
+ export const ContentUnrated = "unrated";
227
437
  export const WidgetNodeTypeText = "text";
228
438
  export const WidgetNodeTypeMarkdown = "markdown";
229
439
  export const WidgetNodeTypeImage = "image";
@@ -234,34 +444,85 @@ export const WidgetNodeTypeSelect = "select";
234
444
  export const WidgetNodeTypeCheckbox = "checkbox";
235
445
  export const WidgetNodeTypeRow = "row";
236
446
  export const WidgetNodeTypeCol = "col";
237
- /**
238
- * Layout node types
239
- */
240
447
  export const WidgetNodeTypeBox = "box";
241
448
  export const WidgetNodeTypeSpacer = "spacer";
242
449
  export const WidgetNodeTypeDivider = "divider";
243
450
  export const WidgetNodeTypeForm = "form";
244
- /**
245
- * Typography node types
246
- */
247
451
  export const WidgetNodeTypeTitle = "title";
248
452
  export const WidgetNodeTypeCaption = "caption";
249
453
  export const WidgetNodeTypeLabel = "label";
250
- /**
251
- * Control node types
252
- */
253
454
  export const WidgetNodeTypeTextarea = "textarea";
254
455
  export const WidgetNodeTypeRadioGroup = "radio-group";
255
456
  export const WidgetNodeTypeDatePicker = "date-picker";
256
- /**
257
- * Content node types
258
- */
259
457
  export const WidgetNodeTypeIcon = "icon";
260
458
  export const WidgetNodeTypeChart = "chart";
261
459
  export const WidgetNodeTypeTransition = "transition";
262
- /**
263
- * Data-bound node types (deprecated - use templates instead)
264
- */
265
460
  export const WidgetNodeTypePlanList = "plan-list";
266
461
  export const WidgetNodeTypeKeyValue = "key-value";
267
462
  export const WidgetNodeTypeStatusBadge = "status-badge";
463
+ export const TaskStatusUnknown = 0;
464
+ export const TaskStatusReceived = 1;
465
+ export const TaskStatusQueued = 2;
466
+ export const TaskStatusDispatched = 3;
467
+ export const TaskStatusPreparing = 4;
468
+ export const TaskStatusServing = 5;
469
+ export const TaskStatusSettingUp = 6;
470
+ export const TaskStatusRunning = 7;
471
+ export const TaskStatusCancelling = 8;
472
+ export const TaskStatusUploading = 9;
473
+ export const TaskStatusCompleted = 10;
474
+ export const TaskStatusFailed = 11;
475
+ export const TaskStatusCancelled = 12;
476
+ export const InfraPrivate = "private";
477
+ export const InfraCloud = "cloud";
478
+ export const InfraPrivateFirst = "private_first";
479
+ export const TaskLogTypeBuild = 0;
480
+ export const TaskLogTypeRun = 1;
481
+ export const TaskLogTypeServe = 2;
482
+ export const TaskLogTypeSetup = 3;
483
+ export const TaskLogTypeTask = 4;
484
+ export const TeamTypePersonal = "personal";
485
+ export const TeamTypeTeam = "team";
486
+ export const TeamTypeSystem = "system";
487
+ export const TeamStatusActive = "active";
488
+ export const TeamStatusSuspended = "suspended";
489
+ export const TeamStatusTerminated = "terminated";
490
+ export const TeamRoleOwner = "owner";
491
+ export const TeamRoleAdmin = "admin";
492
+ export const TeamRoleMember = "member";
493
+ /**
494
+ * Tool types and parameter types
495
+ */
496
+ export const ToolTypeFunction = "function";
497
+ /**
498
+ * Tool types and parameter types
499
+ */
500
+ export const ToolParamTypeObject = "object";
501
+ /**
502
+ * Tool types and parameter types
503
+ */
504
+ export const ToolParamTypeString = "string";
505
+ /**
506
+ * Tool types and parameter types
507
+ */
508
+ export const ToolParamTypeInteger = "integer";
509
+ /**
510
+ * Tool types and parameter types
511
+ */
512
+ export const ToolParamTypeNumber = "number";
513
+ /**
514
+ * Tool types and parameter types
515
+ */
516
+ export const ToolParamTypeBoolean = "boolean";
517
+ /**
518
+ * Tool types and parameter types
519
+ */
520
+ export const ToolParamTypeArray = "array";
521
+ /**
522
+ * Tool types and parameter types
523
+ */
524
+ export const ToolParamTypeNull = "null";
525
+ export const RoleGuest = "guest";
526
+ export const RoleUser = "user";
527
+ export const RoleAdmin = "admin";
528
+ export const RoleSystem = "system";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inferencesh/sdk",
3
- "version": "0.6.3",
3
+ "version": "0.6.5",
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",