@inferencesh/sdk 0.1.1 → 0.1.3
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/client.js +39 -4
- package/dist/client.test.js +96 -5
- package/dist/errors.d.ts +50 -0
- package/dist/errors.js +61 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -1
- package/dist/types.d.ts +1364 -436
- package/dist/types.js +167 -23
- package/package.json +1 -1
package/dist/types.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by tygo. DO NOT EDIT.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
4
|
+
exports.ToolInvocationTypeAgent = exports.ToolInvocationTypeApp = exports.ToolInvocationTypeInternal = exports.IntegrationTypeTelegram = exports.IntegrationTypeTeams = exports.IntegrationTypeDiscord = exports.IntegrationTypeSlack = exports.ChatMessageContentTypeTool = exports.ChatMessageContentTypeFile = exports.ChatMessageContentTypeImage = exports.ChatMessageContentTypeReasoning = exports.ChatMessageContentTypeText = exports.ChatMessageRoleTool = exports.ChatMessageRoleAssistant = exports.ChatMessageRoleUser = exports.ChatMessageRoleSystem = exports.AgentPlanStepStatusCancelled = exports.AgentPlanStepStatusCompleted = exports.AgentPlanStepStatusInProgress = exports.AgentPlanStepStatusPending = exports.ChatStatusIdle = exports.ChatStatusBusy = exports.BillingStatusSuspended = exports.BillingStatusManualHold = exports.BillingStatusSpendLocked = exports.BillingStatusActive = exports.PaymentProviderStripe = exports.PaymentProviderNone = exports.PermWrite = exports.PermRead = exports.VisibilityUnlisted = exports.VisibilityPublic = exports.VisibilityPrivate = exports.GPUTypeApple = exports.GPUTypeAMD = exports.GPUTypeNvidia = exports.GPUTypeIntel = exports.GPUTypeNone = exports.GPUTypeAny = exports.AppCategoryFlow = exports.AppCategoryOther = exports.AppCategory3D = exports.AppCategoryChat = exports.AppCategoryText = exports.AppCategoryAudio = exports.AppCategoryVideo = exports.AppCategoryImage = exports.AppStatusPending = exports.AppStatusInactive = exports.AppStatusActive = void 0;
|
|
5
|
+
exports.GraphStatusPending = exports.GraphNodeTypeConditional = exports.GraphNodeTypeResource = exports.GraphNodeTypeTask = exports.GraphNodeTypeSplit = exports.GraphNodeTypeJoin = exports.GraphNodeTypeUnknown = exports.FlowRunStatusCancelled = exports.FlowRunStatusFailed = exports.FlowRunStatusCompleted = exports.FlowRunStatusRunning = exports.FlowRunStatusPending = exports.FlowRunStatusUnknown = exports.EngineStatusStopped = exports.EngineStatusStopping = exports.EngineStatusPending = exports.EngineStatusRunning = exports.DeviceAuthStatusLoading = exports.DeviceAuthStatusInvalid = exports.DeviceAuthStatusValid = exports.DeviceAuthStatusDenied = exports.DeviceAuthStatusExpired = exports.DeviceAuthStatusApproved = exports.DeviceAuthStatusPending = exports.OpIsNotEmpty = exports.OpIsEmpty = exports.OpIsNotNull = exports.OpIsNull = exports.OpNotContains = exports.OpContains = exports.OpILike = exports.OpLike = exports.OpLessEqual = exports.OpLess = exports.OpGreaterEqual = exports.OpGreater = exports.OpNotIn = exports.OpIn = exports.OpNotEqual = exports.OpEqual = exports.ToolInvocationStatusCancelled = exports.ToolInvocationStatusFailed = exports.ToolInvocationStatusCompleted = exports.ToolInvocationStatusAwaitingInput = exports.ToolInvocationStatusInProgress = exports.ToolInvocationStatusPending = exports.ToolInvocationTypeUnknown = exports.ToolInvocationTypeHook = exports.ToolInvocationTypePlan = exports.ToolInvocationTypeWidget = void 0;
|
|
6
|
+
exports.NotificationStatusSent = exports.NotificationStatusPending = exports.NotificationTypeMaintenance = exports.NotificationTypeSystemAlert = exports.NotificationTypeTaskFailed = exports.NotificationTypeTaskComplete = exports.NotificationTypeSecurityAlert = exports.NotificationTypeEmailVerify = exports.NotificationTypePasswordReset = exports.NotificationTypeWelcome = exports.NotificationTypeSpendingLimit = exports.NotificationTypeUsageSummary = exports.NotificationTypePaymentFailed = exports.NotificationTypePaymentSuccess = exports.NotificationTypeAutoRecharge = exports.NotificationTypeLowBalance = exports.NotificationPriorityCritical = exports.NotificationPriorityHigh = exports.NotificationPriorityNormal = exports.NotificationPriorityLow = exports.NotificationChannelSlack = exports.NotificationChannelPush = exports.NotificationChannelSMS = exports.NotificationChannelEmail = exports.IntegrationStatusError = exports.IntegrationStatusExpired = exports.IntegrationStatusDisconnected = exports.IntegrationStatusConnected = exports.IntegrationTypeAPIKey = exports.IntegrationTypeOAuth = exports.IntegrationTypeServiceAccount = exports.IntegrationProviderGitHub = exports.IntegrationProviderNotion = exports.IntegrationProviderSlack = exports.IntegrationProviderGoogle = exports.GraphEdgeTypeConditional = exports.GraphEdgeTypeFlow = exports.GraphEdgeTypeDependency = exports.GraphNodeStatusBlocked = exports.GraphNodeStatusSkipped = exports.GraphNodeStatusCancelled = exports.GraphNodeStatusFailed = exports.GraphNodeStatusCompleted = exports.GraphNodeStatusRunning = exports.GraphNodeStatusReady = exports.GraphNodeStatusPending = exports.GraphStatusCancelled = exports.GraphStatusFailed = exports.GraphStatusCompleted = exports.GraphStatusRunning = void 0;
|
|
7
|
+
exports.TaskStatusFailed = exports.TaskStatusCompleted = exports.TaskStatusUploading = exports.TaskStatusRunning = exports.TaskStatusSettingUp = exports.TaskStatusServing = exports.TaskStatusPreparing = exports.TaskStatusScheduled = exports.TaskStatusQueued = exports.TaskStatusReceived = exports.TaskStatusUnknown = exports.InstanceTypeDeploymentTypeBaremetal = exports.InstanceTypeDeploymentTypeContainer = exports.InstanceTypeDeploymentTypeVM = exports.InstanceStatusDeleted = exports.InstanceStatusActive = exports.InstanceStatusPending = exports.CloudShade = exports.CloudVultr = exports.CloudMassedCompute = exports.CloudDatacrunch = exports.CloudPaperspace = exports.CloudOblivus = exports.CloudJarvisLabs = exports.CloudLatitude = exports.CloudRunPod = exports.CloudTensorDock = exports.CloudLambdaLabs = exports.CloudAzure = exports.CloudAWS = exports.SystemMetadataKeyFingerprint = exports.SecretGoogleAccessToken = exports.SecretGoogleServiceAccountJSON = exports.SecretGoogleServiceAccountEmail = exports.ProjectTypeOther = exports.ProjectTypeFlow = exports.ProjectTypeApp = exports.ProjectTypeAgent = exports.CommentStatusArchived = exports.CommentStatusPublished = exports.CommentStatusDraft = exports.CommentStatusUnknown = exports.PageStatusArchived = exports.PageStatusPublished = exports.PageStatusDraft = exports.PageStatusUnknown = exports.NotificationStatusCancelled = exports.NotificationStatusBounced = exports.NotificationStatusFailed = exports.NotificationStatusDelivered = void 0;
|
|
8
|
+
exports.RoleUser = exports.RoleGuest = exports.VideoRes4K = exports.VideoRes1440P = exports.VideoRes1080P = exports.VideoRes720P = exports.VideoRes480P = exports.MetaItemTypeAudio = exports.MetaItemTypeVideo = exports.MetaItemTypeImage = exports.MetaItemTypeText = exports.UsageEventResourceTierCloud = exports.UsageEventResourceTierPrivate = exports.StripeTransactionStatusExpired = exports.StripeTransactionStatusComplete = exports.StripeTransactionStatusOpen = exports.CheckoutSessionStatusExpired = exports.CheckoutSessionStatusComplete = exports.CheckoutSessionStatusOpen = exports.PaymentRecordTypeAutoRecharge = exports.PaymentRecordTypeCheckout = exports.PaymentRecordStatusExpired = exports.PaymentRecordStatusFailed = exports.PaymentRecordStatusComplete = exports.PaymentRecordStatusPending = exports.TransactionTypeDebit = exports.TransactionTypeCredit = exports.ToolParamTypeNull = exports.ToolParamTypeArray = exports.ToolParamTypeBoolean = exports.ToolParamTypeNumber = exports.ToolParamTypeInteger = exports.ToolParamTypeString = exports.ToolParamTypeObject = exports.ToolTypeFunction = exports.TeamRoleMember = exports.TeamRoleAdmin = exports.TeamRoleOwner = exports.TeamTypeSystem = exports.TeamTypeTeam = exports.TeamTypePersonal = exports.TaskLogTypeTask = exports.TaskLogTypeSetup = exports.TaskLogTypeServe = exports.TaskLogTypeRun = exports.TaskLogTypeBuild = exports.InfraPrivateFirst = exports.InfraCloud = exports.InfraPrivate = exports.TaskStatusCancelled = void 0;
|
|
9
|
+
exports.WSEventWorkerUpdate = exports.WSEventEngineTelemetry = exports.WSEventEngineHeartbeat = exports.WSEventEngineDeleteHFCacheRepo = exports.WSEventEngineStop = exports.WSEventTaskForceCancel = exports.WSEventTaskCancel = exports.WSEventTaskRun = exports.WSEventTaskFailed = exports.WSEventTaskOutput = exports.WSEventTaskProgress = exports.WSEventTaskLog = exports.WSEventTaskStatus = exports.WidgetNodeTypeCol = exports.WidgetNodeTypeRow = exports.WidgetNodeTypeCheckbox = exports.WidgetNodeTypeSelect = exports.WidgetNodeTypeInput = exports.WidgetNodeTypeButton = exports.WidgetNodeTypeBadge = exports.WidgetNodeTypeImage = exports.WidgetNodeTypeMarkdown = exports.WidgetNodeTypeText = exports.RoleSystem = exports.RoleAdmin = void 0;
|
|
8
10
|
exports.AppStatusActive = "active";
|
|
9
11
|
exports.AppStatusInactive = "inactive";
|
|
10
12
|
exports.AppStatusPending = "pending";
|
|
@@ -22,23 +24,19 @@ exports.GPUTypeIntel = "intel";
|
|
|
22
24
|
exports.GPUTypeNvidia = "nvidia";
|
|
23
25
|
exports.GPUTypeAMD = "amd";
|
|
24
26
|
exports.GPUTypeApple = "apple";
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
+
exports.VisibilityPrivate = "private";
|
|
28
|
+
exports.VisibilityPublic = "public";
|
|
29
|
+
exports.VisibilityUnlisted = "unlisted";
|
|
27
30
|
exports.PermRead = "read";
|
|
28
31
|
exports.PermWrite = "write";
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.
|
|
35
|
-
exports.
|
|
36
|
-
exports.
|
|
37
|
-
exports.BlogPostCommentStatusArchived = 3; // 3
|
|
38
|
-
exports.ChatStatusPending = "pending";
|
|
39
|
-
exports.ChatStatusInProgress = "in_progress";
|
|
40
|
-
exports.ChatStatusCompleted = "completed";
|
|
41
|
-
exports.ChatStatusCancelled = "cancelled";
|
|
32
|
+
exports.PaymentProviderNone = "";
|
|
33
|
+
exports.PaymentProviderStripe = "stripe";
|
|
34
|
+
exports.BillingStatusActive = "active"; // Normal state. Spending allowed.
|
|
35
|
+
exports.BillingStatusSpendLocked = "spend_locked"; // Spending blocked due to insufficient funds or limits.
|
|
36
|
+
exports.BillingStatusManualHold = "manual_hold"; // Admin-imposed block, not related to balance.
|
|
37
|
+
exports.BillingStatusSuspended = "suspended"; // Payment failure, risk, or compliance issue.
|
|
38
|
+
exports.ChatStatusBusy = "busy";
|
|
39
|
+
exports.ChatStatusIdle = "idle";
|
|
42
40
|
exports.AgentPlanStepStatusPending = "pending";
|
|
43
41
|
exports.AgentPlanStepStatusInProgress = "in_progress";
|
|
44
42
|
exports.AgentPlanStepStatusCompleted = "completed";
|
|
@@ -60,6 +58,8 @@ exports.ToolInvocationTypeInternal = "internal";
|
|
|
60
58
|
exports.ToolInvocationTypeApp = "app";
|
|
61
59
|
exports.ToolInvocationTypeAgent = "agent";
|
|
62
60
|
exports.ToolInvocationTypeWidget = "widget";
|
|
61
|
+
exports.ToolInvocationTypePlan = "plan";
|
|
62
|
+
exports.ToolInvocationTypeHook = "hook";
|
|
63
63
|
exports.ToolInvocationTypeUnknown = "unknown";
|
|
64
64
|
exports.ToolInvocationStatusPending = "pending";
|
|
65
65
|
exports.ToolInvocationStatusInProgress = "in_progress";
|
|
@@ -89,6 +89,13 @@ exports.OpIsNotNull = "is_not_null";
|
|
|
89
89
|
*/
|
|
90
90
|
exports.OpIsEmpty = "is_empty";
|
|
91
91
|
exports.OpIsNotEmpty = "is_not_empty";
|
|
92
|
+
exports.DeviceAuthStatusPending = "pending";
|
|
93
|
+
exports.DeviceAuthStatusApproved = "approved";
|
|
94
|
+
exports.DeviceAuthStatusExpired = "expired";
|
|
95
|
+
exports.DeviceAuthStatusDenied = "denied";
|
|
96
|
+
exports.DeviceAuthStatusValid = "valid";
|
|
97
|
+
exports.DeviceAuthStatusInvalid = "invalid";
|
|
98
|
+
exports.DeviceAuthStatusLoading = "loading";
|
|
92
99
|
exports.EngineStatusRunning = "running";
|
|
93
100
|
exports.EngineStatusPending = "pending";
|
|
94
101
|
exports.EngineStatusStopping = "stopping";
|
|
@@ -99,6 +106,12 @@ exports.FlowRunStatusRunning = 2; // 2
|
|
|
99
106
|
exports.FlowRunStatusCompleted = 3; // 3
|
|
100
107
|
exports.FlowRunStatusFailed = 4; // 4
|
|
101
108
|
exports.FlowRunStatusCancelled = 5; // 5
|
|
109
|
+
exports.GraphNodeTypeUnknown = "unknown";
|
|
110
|
+
exports.GraphNodeTypeJoin = "join";
|
|
111
|
+
exports.GraphNodeTypeSplit = "split";
|
|
112
|
+
exports.GraphNodeTypeTask = "task";
|
|
113
|
+
exports.GraphNodeTypeResource = "resource";
|
|
114
|
+
exports.GraphNodeTypeConditional = "conditional";
|
|
102
115
|
exports.GraphStatusPending = "pending";
|
|
103
116
|
exports.GraphStatusRunning = "running";
|
|
104
117
|
exports.GraphStatusCompleted = "completed";
|
|
@@ -115,11 +128,120 @@ exports.GraphNodeStatusBlocked = "blocked"; // Dependency failed
|
|
|
115
128
|
exports.GraphEdgeTypeDependency = "dependency"; // Blocking dependency
|
|
116
129
|
exports.GraphEdgeTypeFlow = "flow"; // Non-blocking flow
|
|
117
130
|
exports.GraphEdgeTypeConditional = "conditional"; // Conditional flow
|
|
118
|
-
|
|
131
|
+
//////////
|
|
132
|
+
// source: integration.go
|
|
133
|
+
/**
|
|
134
|
+
* Integration providers
|
|
135
|
+
*/
|
|
136
|
+
exports.IntegrationProviderGoogle = "google";
|
|
137
|
+
/**
|
|
138
|
+
* Integration providers
|
|
139
|
+
*/
|
|
140
|
+
exports.IntegrationProviderSlack = "slack";
|
|
141
|
+
/**
|
|
142
|
+
* Integration providers
|
|
143
|
+
*/
|
|
144
|
+
exports.IntegrationProviderNotion = "notion";
|
|
145
|
+
/**
|
|
146
|
+
* Integration providers
|
|
147
|
+
*/
|
|
148
|
+
exports.IntegrationProviderGitHub = "github";
|
|
149
|
+
/**
|
|
150
|
+
* Integration types
|
|
151
|
+
*/
|
|
152
|
+
exports.IntegrationTypeServiceAccount = "service_account";
|
|
153
|
+
/**
|
|
154
|
+
* Integration types
|
|
155
|
+
*/
|
|
156
|
+
exports.IntegrationTypeOAuth = "oauth";
|
|
157
|
+
/**
|
|
158
|
+
* Integration types
|
|
159
|
+
*/
|
|
160
|
+
exports.IntegrationTypeAPIKey = "api_key";
|
|
161
|
+
/**
|
|
162
|
+
* Integration statuses
|
|
163
|
+
*/
|
|
164
|
+
exports.IntegrationStatusConnected = "connected";
|
|
165
|
+
/**
|
|
166
|
+
* Integration statuses
|
|
167
|
+
*/
|
|
168
|
+
exports.IntegrationStatusDisconnected = "disconnected";
|
|
169
|
+
/**
|
|
170
|
+
* Integration statuses
|
|
171
|
+
*/
|
|
172
|
+
exports.IntegrationStatusExpired = "expired";
|
|
173
|
+
/**
|
|
174
|
+
* Integration statuses
|
|
175
|
+
*/
|
|
176
|
+
exports.IntegrationStatusError = "error";
|
|
177
|
+
exports.NotificationChannelEmail = "email";
|
|
178
|
+
exports.NotificationChannelSMS = "sms";
|
|
179
|
+
exports.NotificationChannelPush = "push";
|
|
180
|
+
exports.NotificationChannelSlack = "slack";
|
|
181
|
+
exports.NotificationPriorityLow = "low";
|
|
182
|
+
exports.NotificationPriorityNormal = "normal";
|
|
183
|
+
exports.NotificationPriorityHigh = "high";
|
|
184
|
+
exports.NotificationPriorityCritical = "critical";
|
|
185
|
+
/**
|
|
186
|
+
* Billing notifications
|
|
187
|
+
*/
|
|
188
|
+
exports.NotificationTypeLowBalance = "low_balance";
|
|
189
|
+
exports.NotificationTypeAutoRecharge = "auto_recharge";
|
|
190
|
+
exports.NotificationTypePaymentSuccess = "payment_success";
|
|
191
|
+
exports.NotificationTypePaymentFailed = "payment_failed";
|
|
192
|
+
exports.NotificationTypeUsageSummary = "usage_summary";
|
|
193
|
+
exports.NotificationTypeSpendingLimit = "spending_limit";
|
|
194
|
+
/**
|
|
195
|
+
* Account notifications
|
|
196
|
+
*/
|
|
197
|
+
exports.NotificationTypeWelcome = "welcome";
|
|
198
|
+
exports.NotificationTypePasswordReset = "password_reset";
|
|
199
|
+
exports.NotificationTypeEmailVerify = "email_verify";
|
|
200
|
+
exports.NotificationTypeSecurityAlert = "security_alert";
|
|
201
|
+
/**
|
|
202
|
+
* Task notifications
|
|
203
|
+
*/
|
|
204
|
+
exports.NotificationTypeTaskComplete = "task_complete";
|
|
205
|
+
exports.NotificationTypeTaskFailed = "task_failed";
|
|
206
|
+
/**
|
|
207
|
+
* System notifications
|
|
208
|
+
*/
|
|
209
|
+
exports.NotificationTypeSystemAlert = "system_alert";
|
|
210
|
+
exports.NotificationTypeMaintenance = "maintenance";
|
|
211
|
+
exports.NotificationStatusPending = "pending";
|
|
212
|
+
exports.NotificationStatusSent = "sent";
|
|
213
|
+
exports.NotificationStatusDelivered = "delivered";
|
|
214
|
+
exports.NotificationStatusFailed = "failed";
|
|
215
|
+
exports.NotificationStatusBounced = "bounced";
|
|
216
|
+
exports.NotificationStatusCancelled = "cancelled";
|
|
217
|
+
exports.PageStatusUnknown = 0; // 0
|
|
218
|
+
exports.PageStatusDraft = 1; // 1
|
|
219
|
+
exports.PageStatusPublished = 2; // 2
|
|
220
|
+
exports.PageStatusArchived = 3; // 3
|
|
221
|
+
exports.CommentStatusUnknown = 0; // 0
|
|
222
|
+
exports.CommentStatusDraft = 1; // 1
|
|
223
|
+
exports.CommentStatusPublished = 2; // 2
|
|
224
|
+
exports.CommentStatusArchived = 3; // 3
|
|
119
225
|
exports.ProjectTypeAgent = "agent";
|
|
120
226
|
exports.ProjectTypeApp = "app";
|
|
121
227
|
exports.ProjectTypeFlow = "flow";
|
|
122
228
|
exports.ProjectTypeOther = "other";
|
|
229
|
+
/**
|
|
230
|
+
* Secret keys for Google integration
|
|
231
|
+
*/
|
|
232
|
+
exports.SecretGoogleServiceAccountEmail = "GOOGLE_SERVICE_ACCOUNT_EMAIL";
|
|
233
|
+
/**
|
|
234
|
+
* Secret keys for Google integration
|
|
235
|
+
*/
|
|
236
|
+
exports.SecretGoogleServiceAccountJSON = "GOOGLE_SERVICE_ACCOUNT_JSON";
|
|
237
|
+
/**
|
|
238
|
+
* Secret keys for Google integration
|
|
239
|
+
*/
|
|
240
|
+
exports.SecretGoogleAccessToken = "GOOGLE_ACCESS_TOKEN";
|
|
241
|
+
/**
|
|
242
|
+
* SystemMetadataKeyFingerprint stores the current encryption key fingerprint
|
|
243
|
+
*/
|
|
244
|
+
exports.SystemMetadataKeyFingerprint = "encryption_key_fingerprint";
|
|
123
245
|
exports.CloudAWS = "aws";
|
|
124
246
|
exports.CloudAzure = "azure";
|
|
125
247
|
exports.CloudLambdaLabs = "lambdalabs";
|
|
@@ -159,6 +281,9 @@ exports.TaskLogTypeRun = 1;
|
|
|
159
281
|
exports.TaskLogTypeServe = 2;
|
|
160
282
|
exports.TaskLogTypeSetup = 3;
|
|
161
283
|
exports.TaskLogTypeTask = 4;
|
|
284
|
+
exports.TeamTypePersonal = "personal";
|
|
285
|
+
exports.TeamTypeTeam = "team";
|
|
286
|
+
exports.TeamTypeSystem = "system";
|
|
162
287
|
exports.TeamRoleOwner = "owner";
|
|
163
288
|
exports.TeamRoleAdmin = "admin";
|
|
164
289
|
exports.TeamRoleMember = "member";
|
|
@@ -198,11 +323,30 @@ exports.ToolParamTypeArray = "array";
|
|
|
198
323
|
exports.ToolParamTypeNull = "null";
|
|
199
324
|
exports.TransactionTypeCredit = "credit"; // Adding credits
|
|
200
325
|
exports.TransactionTypeDebit = "debit"; // Removing credits
|
|
201
|
-
exports.
|
|
202
|
-
exports.
|
|
203
|
-
exports.
|
|
326
|
+
exports.PaymentRecordStatusPending = 0;
|
|
327
|
+
exports.PaymentRecordStatusComplete = 1;
|
|
328
|
+
exports.PaymentRecordStatusFailed = 2;
|
|
329
|
+
exports.PaymentRecordStatusExpired = 3;
|
|
330
|
+
exports.PaymentRecordTypeCheckout = "checkout"; // Stripe Checkout session (manual top-up)
|
|
331
|
+
exports.PaymentRecordTypeAutoRecharge = "auto_recharge"; // Direct charge (auto-recharge)
|
|
332
|
+
exports.CheckoutSessionStatusOpen = exports.PaymentRecordStatusPending;
|
|
333
|
+
exports.CheckoutSessionStatusComplete = exports.PaymentRecordStatusComplete;
|
|
334
|
+
exports.CheckoutSessionStatusExpired = exports.PaymentRecordStatusExpired;
|
|
335
|
+
exports.StripeTransactionStatusOpen = exports.PaymentRecordStatusPending;
|
|
336
|
+
exports.StripeTransactionStatusComplete = exports.PaymentRecordStatusComplete;
|
|
337
|
+
exports.StripeTransactionStatusExpired = exports.PaymentRecordStatusExpired;
|
|
204
338
|
exports.UsageEventResourceTierPrivate = "private";
|
|
205
339
|
exports.UsageEventResourceTierCloud = "cloud";
|
|
340
|
+
exports.MetaItemTypeText = "text";
|
|
341
|
+
exports.MetaItemTypeImage = "image";
|
|
342
|
+
exports.MetaItemTypeVideo = "video";
|
|
343
|
+
exports.MetaItemTypeAudio = "audio";
|
|
344
|
+
exports.VideoRes480P = "480p";
|
|
345
|
+
exports.VideoRes720P = "720p";
|
|
346
|
+
exports.VideoRes1080P = "1080p";
|
|
347
|
+
exports.VideoRes1440P = "1440p";
|
|
348
|
+
exports.VideoRes4K = "4k";
|
|
349
|
+
exports.RoleGuest = "guest";
|
|
206
350
|
exports.RoleUser = "user";
|
|
207
351
|
exports.RoleAdmin = "admin";
|
|
208
352
|
exports.RoleSystem = "system";
|