@activepieces/shared 0.11.5 → 0.13.0

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.
Files changed (66) hide show
  1. package/package.json +5 -1
  2. package/src/lib/ai/ai-sdk.d.ts +9 -0
  3. package/src/lib/ai/ai-sdk.js +50 -0
  4. package/src/lib/ai/ai-sdk.js.map +1 -0
  5. package/src/lib/ai/index.d.ts +13 -9
  6. package/src/lib/ai/index.js +11 -10
  7. package/src/lib/ai/index.js.map +1 -1
  8. package/src/lib/ai/supported-ai-providers.d.ts +22 -0
  9. package/src/lib/ai/supported-ai-providers.js +170 -0
  10. package/src/lib/ai/supported-ai-providers.js.map +1 -0
  11. package/src/lib/app-connection/dto/upsert-app-connection-request.d.ts +1 -0
  12. package/src/lib/app-connection/dto/upsert-app-connection-request.js +2 -1
  13. package/src/lib/app-connection/dto/upsert-app-connection-request.js.map +1 -1
  14. package/src/lib/common/activepieces-error.d.ts +6 -4
  15. package/src/lib/common/activepieces-error.js +1 -1
  16. package/src/lib/common/activepieces-error.js.map +1 -1
  17. package/src/lib/engine/engine-operation.d.ts +31 -4
  18. package/src/lib/engine/engine-operation.js +13 -1
  19. package/src/lib/engine/engine-operation.js.map +1 -1
  20. package/src/lib/engine/requests.d.ts +7 -7
  21. package/src/lib/flag/flag.d.ts +3 -1
  22. package/src/lib/flag/flag.js +2 -0
  23. package/src/lib/flag/flag.js.map +1 -1
  24. package/src/lib/flows/flow-version.d.ts +1 -1
  25. package/src/lib/flows/flow-version.js +1 -1
  26. package/src/lib/flows/folders/folder-requests.d.ts +0 -8
  27. package/src/lib/flows/folders/folder-requests.js.map +1 -1
  28. package/src/lib/flows/operations/migrations/index.js +4 -2
  29. package/src/lib/flows/operations/migrations/index.js.map +1 -1
  30. package/src/lib/flows/operations/migrations/{migrate-branch-to-router.js → migrate-v0-branch-to-router.js} +1 -1
  31. package/src/lib/flows/operations/migrations/migrate-v0-branch-to-router.js.map +1 -0
  32. package/src/lib/flows/operations/migrations/migrate-v1-connection-ids.d.ts +2 -0
  33. package/src/lib/flows/operations/migrations/migrate-v1-connection-ids.js +13 -0
  34. package/src/lib/flows/operations/migrations/migrate-v1-connection-ids.js.map +1 -0
  35. package/src/lib/mcp/index.d.ts +5 -1
  36. package/src/lib/mcp/index.js +5 -1
  37. package/src/lib/mcp/index.js.map +1 -1
  38. package/src/lib/mcp/mcp.d.ts +78 -119
  39. package/src/lib/mcp/mcp.js +13 -45
  40. package/src/lib/mcp/mcp.js.map +1 -1
  41. package/src/lib/mcp/mcp.request.d.ts +105 -0
  42. package/src/lib/mcp/mcp.request.js +30 -0
  43. package/src/lib/mcp/mcp.request.js.map +1 -0
  44. package/src/lib/mcp/pieces/mcp-piece.d.ts +32 -0
  45. package/src/lib/mcp/pieces/mcp-piece.js +30 -0
  46. package/src/lib/mcp/pieces/mcp-piece.js.map +1 -0
  47. package/src/lib/mcp/tools/mcp-tool.d.ts +94 -0
  48. package/src/lib/mcp/tools/mcp-tool.js +21 -0
  49. package/src/lib/mcp/tools/mcp-tool.js.map +1 -0
  50. package/src/lib/mcp/tools/run/mcp-run.d.ts +38 -0
  51. package/src/lib/mcp/tools/run/mcp-run.js +23 -0
  52. package/src/lib/mcp/tools/run/mcp-run.js.map +1 -0
  53. package/src/lib/mcp/tools/run/mcp-run.request.d.ts +11 -0
  54. package/src/lib/mcp/tools/run/mcp-run.request.js +15 -0
  55. package/src/lib/mcp/tools/run/mcp-run.request.js.map +1 -0
  56. package/src/lib/platform/platform.model.d.ts +168 -38
  57. package/src/lib/platform/platform.model.js +25 -24
  58. package/src/lib/platform/platform.model.js.map +1 -1
  59. package/src/lib/project/project.d.ts +14 -17
  60. package/src/lib/project/project.js +2 -3
  61. package/src/lib/project/project.js.map +1 -1
  62. package/src/lib/flows/operations/migrations/migrate-branch-to-router.js.map +0 -1
  63. package/src/lib/mcp/dto/mcp.dto.d.ts +0 -20
  64. package/src/lib/mcp/dto/mcp.dto.js +0 -23
  65. package/src/lib/mcp/dto/mcp.dto.js.map +0 -1
  66. /package/src/lib/flows/operations/migrations/{migrate-branch-to-router.d.ts → migrate-v0-branch-to-router.d.ts} +0 -0
@@ -51,11 +51,96 @@ export declare const CopilotSettingsWithoutSensitiveData: import("@sinclair/type
51
51
  }>;
52
52
  }>;
53
53
  export type CopilotSettingsWithoutSensitiveData = Static<typeof CopilotSettingsWithoutSensitiveData>;
54
+ export declare enum PlatformUsageMetric {
55
+ TASKS = "tasks",
56
+ AI_TOKENS = "ai-tokens",
57
+ ACTIVE_FLOWS = "active-flows",
58
+ USER_SEATS = "user-seats",
59
+ PROJECTS = "projects",
60
+ TABLES = "tables"
61
+ }
54
62
  export declare const PlatformUsage: import("@sinclair/typebox").TObject<{
55
63
  tasks: import("@sinclair/typebox").TNumber;
56
64
  aiCredits: import("@sinclair/typebox").TNumber;
65
+ activeFlows: import("@sinclair/typebox").TNumber;
66
+ tables: import("@sinclair/typebox").TNumber;
67
+ mcp: import("@sinclair/typebox").TNumber;
68
+ seats: import("@sinclair/typebox").TNumber;
69
+ projects: import("@sinclair/typebox").TNumber;
57
70
  }>;
58
71
  export type PlatformUsage = Static<typeof PlatformUsage>;
72
+ export declare const PlatformPlan: import("@sinclair/typebox").TObject<{
73
+ platformId: import("@sinclair/typebox").TString;
74
+ includedTasks: import("@sinclair/typebox").TNumber;
75
+ includedAiCredits: import("@sinclair/typebox").TNumber;
76
+ tasksLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
77
+ aiCreditsLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
78
+ environmentsEnabled: import("@sinclair/typebox").TBoolean;
79
+ analyticsEnabled: import("@sinclair/typebox").TBoolean;
80
+ showPoweredBy: import("@sinclair/typebox").TBoolean;
81
+ auditLogEnabled: import("@sinclair/typebox").TBoolean;
82
+ embeddingEnabled: import("@sinclair/typebox").TBoolean;
83
+ managePiecesEnabled: import("@sinclair/typebox").TBoolean;
84
+ manageTemplatesEnabled: import("@sinclair/typebox").TBoolean;
85
+ customAppearanceEnabled: import("@sinclair/typebox").TBoolean;
86
+ manageProjectsEnabled: import("@sinclair/typebox").TBoolean;
87
+ projectRolesEnabled: import("@sinclair/typebox").TBoolean;
88
+ customDomainsEnabled: import("@sinclair/typebox").TBoolean;
89
+ globalConnectionsEnabled: import("@sinclair/typebox").TBoolean;
90
+ customRolesEnabled: import("@sinclair/typebox").TBoolean;
91
+ apiKeysEnabled: import("@sinclair/typebox").TBoolean;
92
+ tablesEnabled: import("@sinclair/typebox").TBoolean;
93
+ todosEnabled: import("@sinclair/typebox").TBoolean;
94
+ alertsEnabled: import("@sinclair/typebox").TBoolean;
95
+ ssoEnabled: import("@sinclair/typebox").TBoolean;
96
+ licenseKey: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
97
+ stripeCustomerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
98
+ stripeSubscriptionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
99
+ stripeSubscriptionStatus: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
100
+ userSeatsLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
101
+ projectsLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
102
+ tablesLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
103
+ mcpLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
104
+ activeFlowsLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
105
+ id: import("@sinclair/typebox").TString;
106
+ created: import("@sinclair/typebox").TString;
107
+ updated: import("@sinclair/typebox").TString;
108
+ }>;
109
+ export type PlatformPlan = Static<typeof PlatformPlan>;
110
+ export declare const PlatformPlanLimits: import("@sinclair/typebox").TObject<{
111
+ includedTasks: import("@sinclair/typebox").TNumber;
112
+ includedAiCredits: import("@sinclair/typebox").TNumber;
113
+ tasksLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
114
+ aiCreditsLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
115
+ environmentsEnabled: import("@sinclair/typebox").TBoolean;
116
+ analyticsEnabled: import("@sinclair/typebox").TBoolean;
117
+ showPoweredBy: import("@sinclair/typebox").TBoolean;
118
+ auditLogEnabled: import("@sinclair/typebox").TBoolean;
119
+ embeddingEnabled: import("@sinclair/typebox").TBoolean;
120
+ managePiecesEnabled: import("@sinclair/typebox").TBoolean;
121
+ manageTemplatesEnabled: import("@sinclair/typebox").TBoolean;
122
+ customAppearanceEnabled: import("@sinclair/typebox").TBoolean;
123
+ manageProjectsEnabled: import("@sinclair/typebox").TBoolean;
124
+ projectRolesEnabled: import("@sinclair/typebox").TBoolean;
125
+ customDomainsEnabled: import("@sinclair/typebox").TBoolean;
126
+ globalConnectionsEnabled: import("@sinclair/typebox").TBoolean;
127
+ customRolesEnabled: import("@sinclair/typebox").TBoolean;
128
+ apiKeysEnabled: import("@sinclair/typebox").TBoolean;
129
+ tablesEnabled: import("@sinclair/typebox").TBoolean;
130
+ todosEnabled: import("@sinclair/typebox").TBoolean;
131
+ alertsEnabled: import("@sinclair/typebox").TBoolean;
132
+ ssoEnabled: import("@sinclair/typebox").TBoolean;
133
+ licenseKey: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
134
+ stripeCustomerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
135
+ stripeSubscriptionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
136
+ stripeSubscriptionStatus: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
137
+ userSeatsLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
138
+ projectsLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
139
+ tablesLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
140
+ mcpLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
141
+ activeFlowsLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
142
+ }>;
143
+ export type PlatformPlanLimits = Static<typeof PlatformPlanLimits>;
59
144
  export declare const Platform: import("@sinclair/typebox").TObject<{
60
145
  ownerId: import("@sinclair/typebox").TString;
61
146
  name: import("@sinclair/typebox").TString;
@@ -80,27 +165,7 @@ export declare const Platform: import("@sinclair/typebox").TObject<{
80
165
  port: number;
81
166
  } | null>>;
82
167
  cloudAuthEnabled: import("@sinclair/typebox").TBoolean;
83
- environmentsEnabled: import("@sinclair/typebox").TBoolean;
84
- analyticsEnabled: import("@sinclair/typebox").TBoolean;
85
- showPoweredBy: import("@sinclair/typebox").TBoolean;
86
- auditLogEnabled: import("@sinclair/typebox").TBoolean;
87
- embeddingEnabled: import("@sinclair/typebox").TBoolean;
88
- managePiecesEnabled: import("@sinclair/typebox").TBoolean;
89
- manageTemplatesEnabled: import("@sinclair/typebox").TBoolean;
90
- customAppearanceEnabled: import("@sinclair/typebox").TBoolean;
91
- manageProjectsEnabled: import("@sinclair/typebox").TBoolean;
92
- projectRolesEnabled: import("@sinclair/typebox").TBoolean;
93
- customDomainsEnabled: import("@sinclair/typebox").TBoolean;
94
- globalConnectionsEnabled: import("@sinclair/typebox").TBoolean;
95
- customRolesEnabled: import("@sinclair/typebox").TBoolean;
96
- apiKeysEnabled: import("@sinclair/typebox").TBoolean;
97
- /**
98
- * @deprecated flow issues is open source
99
- */
100
- flowIssuesEnabled: import("@sinclair/typebox").TBoolean;
101
- alertsEnabled: import("@sinclair/typebox").TBoolean;
102
168
  defaultLocale: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<typeof LocalesEnum>>;
103
- ssoEnabled: import("@sinclair/typebox").TBoolean;
104
169
  enforceAllowedAuthDomains: import("@sinclair/typebox").TBoolean;
105
170
  allowedAuthDomains: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
106
171
  federatedAuthProviders: import("@sinclair/typebox").TObject<{
@@ -118,7 +183,6 @@ export declare const Platform: import("@sinclair/typebox").TObject<{
118
183
  } | null>>;
119
184
  }>;
120
185
  emailAuthEnabled: import("@sinclair/typebox").TBoolean;
121
- licenseKey: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
122
186
  pinnedPieces: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
123
187
  copilotSettings: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
124
188
  providers: import("@sinclair/typebox").TObject<{
@@ -156,6 +220,39 @@ export declare const PlatformWithoutSensitiveData: import("@sinclair/typebox").T
156
220
  azureOpenai: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{}>>;
157
221
  }>;
158
222
  }>>;
223
+ plan: import("@sinclair/typebox").TObject<{
224
+ includedTasks: import("@sinclair/typebox").TNumber;
225
+ includedAiCredits: import("@sinclair/typebox").TNumber;
226
+ tasksLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
227
+ aiCreditsLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
228
+ environmentsEnabled: import("@sinclair/typebox").TBoolean;
229
+ analyticsEnabled: import("@sinclair/typebox").TBoolean;
230
+ showPoweredBy: import("@sinclair/typebox").TBoolean;
231
+ auditLogEnabled: import("@sinclair/typebox").TBoolean;
232
+ embeddingEnabled: import("@sinclair/typebox").TBoolean;
233
+ managePiecesEnabled: import("@sinclair/typebox").TBoolean;
234
+ manageTemplatesEnabled: import("@sinclair/typebox").TBoolean;
235
+ customAppearanceEnabled: import("@sinclair/typebox").TBoolean;
236
+ manageProjectsEnabled: import("@sinclair/typebox").TBoolean;
237
+ projectRolesEnabled: import("@sinclair/typebox").TBoolean;
238
+ customDomainsEnabled: import("@sinclair/typebox").TBoolean;
239
+ globalConnectionsEnabled: import("@sinclair/typebox").TBoolean;
240
+ customRolesEnabled: import("@sinclair/typebox").TBoolean;
241
+ apiKeysEnabled: import("@sinclair/typebox").TBoolean;
242
+ tablesEnabled: import("@sinclair/typebox").TBoolean;
243
+ todosEnabled: import("@sinclair/typebox").TBoolean;
244
+ alertsEnabled: import("@sinclair/typebox").TBoolean;
245
+ ssoEnabled: import("@sinclair/typebox").TBoolean;
246
+ licenseKey: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
247
+ stripeCustomerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
248
+ stripeSubscriptionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
249
+ stripeSubscriptionStatus: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
250
+ userSeatsLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
251
+ projectsLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
252
+ tablesLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
253
+ mcpLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
254
+ activeFlowsLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
255
+ }>;
159
256
  hasLicenseKey: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
160
257
  licenseExpiresAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
161
258
  id: import("@sinclair/typebox").TString;
@@ -170,26 +267,59 @@ export declare const PlatformWithoutSensitiveData: import("@sinclair/typebox").T
170
267
  filteredPieceNames: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
171
268
  filteredPieceBehavior: import("@sinclair/typebox").TEnum<typeof FilteredPieceBehavior>;
172
269
  cloudAuthEnabled: import("@sinclair/typebox").TBoolean;
173
- environmentsEnabled: import("@sinclair/typebox").TBoolean;
174
- analyticsEnabled: import("@sinclair/typebox").TBoolean;
175
- showPoweredBy: import("@sinclair/typebox").TBoolean;
176
- auditLogEnabled: import("@sinclair/typebox").TBoolean;
177
- embeddingEnabled: import("@sinclair/typebox").TBoolean;
178
- managePiecesEnabled: import("@sinclair/typebox").TBoolean;
179
- manageTemplatesEnabled: import("@sinclair/typebox").TBoolean;
180
- customAppearanceEnabled: import("@sinclair/typebox").TBoolean;
181
- manageProjectsEnabled: import("@sinclair/typebox").TBoolean;
182
- projectRolesEnabled: import("@sinclair/typebox").TBoolean;
183
- customDomainsEnabled: import("@sinclair/typebox").TBoolean;
184
- globalConnectionsEnabled: import("@sinclair/typebox").TBoolean;
185
- customRolesEnabled: import("@sinclair/typebox").TBoolean;
186
- apiKeysEnabled: import("@sinclair/typebox").TBoolean;
187
- flowIssuesEnabled: import("@sinclair/typebox").TBoolean;
188
- alertsEnabled: import("@sinclair/typebox").TBoolean;
189
- ssoEnabled: import("@sinclair/typebox").TBoolean;
190
270
  enforceAllowedAuthDomains: import("@sinclair/typebox").TBoolean;
191
271
  allowedAuthDomains: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
192
272
  emailAuthEnabled: import("@sinclair/typebox").TBoolean;
193
273
  pinnedPieces: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
194
274
  }>;
195
275
  export type PlatformWithoutSensitiveData = Static<typeof PlatformWithoutSensitiveData>;
276
+ export declare const PlatformBillingInformation: import("@sinclair/typebox").TObject<{
277
+ plan: import("@sinclair/typebox").TObject<{
278
+ platformId: import("@sinclair/typebox").TString;
279
+ includedTasks: import("@sinclair/typebox").TNumber;
280
+ includedAiCredits: import("@sinclair/typebox").TNumber;
281
+ tasksLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
282
+ aiCreditsLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
283
+ environmentsEnabled: import("@sinclair/typebox").TBoolean;
284
+ analyticsEnabled: import("@sinclair/typebox").TBoolean;
285
+ showPoweredBy: import("@sinclair/typebox").TBoolean;
286
+ auditLogEnabled: import("@sinclair/typebox").TBoolean;
287
+ embeddingEnabled: import("@sinclair/typebox").TBoolean;
288
+ managePiecesEnabled: import("@sinclair/typebox").TBoolean;
289
+ manageTemplatesEnabled: import("@sinclair/typebox").TBoolean;
290
+ customAppearanceEnabled: import("@sinclair/typebox").TBoolean;
291
+ manageProjectsEnabled: import("@sinclair/typebox").TBoolean;
292
+ projectRolesEnabled: import("@sinclair/typebox").TBoolean;
293
+ customDomainsEnabled: import("@sinclair/typebox").TBoolean;
294
+ globalConnectionsEnabled: import("@sinclair/typebox").TBoolean;
295
+ customRolesEnabled: import("@sinclair/typebox").TBoolean;
296
+ apiKeysEnabled: import("@sinclair/typebox").TBoolean;
297
+ tablesEnabled: import("@sinclair/typebox").TBoolean;
298
+ todosEnabled: import("@sinclair/typebox").TBoolean;
299
+ alertsEnabled: import("@sinclair/typebox").TBoolean;
300
+ ssoEnabled: import("@sinclair/typebox").TBoolean;
301
+ licenseKey: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
302
+ stripeCustomerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
303
+ stripeSubscriptionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
304
+ stripeSubscriptionStatus: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
305
+ userSeatsLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
306
+ projectsLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
307
+ tablesLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
308
+ mcpLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
309
+ activeFlowsLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
310
+ id: import("@sinclair/typebox").TString;
311
+ created: import("@sinclair/typebox").TString;
312
+ updated: import("@sinclair/typebox").TString;
313
+ }>;
314
+ usage: import("@sinclair/typebox").TObject<{
315
+ tasks: import("@sinclair/typebox").TNumber;
316
+ aiCredits: import("@sinclair/typebox").TNumber;
317
+ activeFlows: import("@sinclair/typebox").TNumber;
318
+ tables: import("@sinclair/typebox").TNumber;
319
+ mcp: import("@sinclair/typebox").TNumber;
320
+ seats: import("@sinclair/typebox").TNumber;
321
+ projects: import("@sinclair/typebox").TNumber;
322
+ }>;
323
+ nextBillingDate: import("@sinclair/typebox").TString;
324
+ }>;
325
+ export type PlatformBillingInformation = Static<typeof PlatformBillingInformation>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PlatformWithoutSensitiveData = exports.Platform = exports.PlatformUsage = exports.CopilotSettingsWithoutSensitiveData = exports.CopilotSettings = exports.AzureOpenAiProvider = exports.OpenAiProvider = exports.CopilotProviderType = exports.SMTPInformation = exports.FilteredPieceBehavior = void 0;
3
+ exports.PlatformBillingInformation = exports.PlatformWithoutSensitiveData = exports.Platform = exports.PlatformPlanLimits = exports.PlatformPlan = exports.PlatformUsage = exports.PlatformUsageMetric = exports.CopilotSettingsWithoutSensitiveData = exports.CopilotSettings = exports.AzureOpenAiProvider = exports.OpenAiProvider = exports.CopilotProviderType = exports.SMTPInformation = exports.FilteredPieceBehavior = void 0;
4
4
  const typebox_1 = require("@sinclair/typebox");
5
5
  const common_1 = require("../common");
6
6
  const base_model_1 = require("../common/base-model");
@@ -45,10 +45,26 @@ exports.CopilotSettingsWithoutSensitiveData = typebox_1.Type.Object({
45
45
  [CopilotProviderType.AZURE_OPENAI]: typebox_1.Type.Optional(typebox_1.Type.Object({})),
46
46
  }),
47
47
  });
48
+ var PlatformUsageMetric;
49
+ (function (PlatformUsageMetric) {
50
+ PlatformUsageMetric["TASKS"] = "tasks";
51
+ PlatformUsageMetric["AI_TOKENS"] = "ai-tokens";
52
+ PlatformUsageMetric["ACTIVE_FLOWS"] = "active-flows";
53
+ PlatformUsageMetric["USER_SEATS"] = "user-seats";
54
+ PlatformUsageMetric["PROJECTS"] = "projects";
55
+ PlatformUsageMetric["TABLES"] = "tables";
56
+ })(PlatformUsageMetric || (exports.PlatformUsageMetric = PlatformUsageMetric = {}));
48
57
  exports.PlatformUsage = typebox_1.Type.Object({
49
58
  tasks: typebox_1.Type.Number(),
50
59
  aiCredits: typebox_1.Type.Number(),
60
+ activeFlows: typebox_1.Type.Number(),
61
+ tables: typebox_1.Type.Number(),
62
+ mcp: typebox_1.Type.Number(),
63
+ seats: typebox_1.Type.Number(),
64
+ projects: typebox_1.Type.Number(),
51
65
  });
66
+ exports.PlatformPlan = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { platformId: typebox_1.Type.String(), includedTasks: typebox_1.Type.Number(), includedAiCredits: typebox_1.Type.Number(), tasksLimit: typebox_1.Type.Optional(typebox_1.Type.Number()), aiCreditsLimit: typebox_1.Type.Optional(typebox_1.Type.Number()), environmentsEnabled: typebox_1.Type.Boolean(), analyticsEnabled: typebox_1.Type.Boolean(), showPoweredBy: typebox_1.Type.Boolean(), auditLogEnabled: typebox_1.Type.Boolean(), embeddingEnabled: typebox_1.Type.Boolean(), managePiecesEnabled: typebox_1.Type.Boolean(), manageTemplatesEnabled: typebox_1.Type.Boolean(), customAppearanceEnabled: typebox_1.Type.Boolean(), manageProjectsEnabled: typebox_1.Type.Boolean(), projectRolesEnabled: typebox_1.Type.Boolean(), customDomainsEnabled: typebox_1.Type.Boolean(), globalConnectionsEnabled: typebox_1.Type.Boolean(), customRolesEnabled: typebox_1.Type.Boolean(), apiKeysEnabled: typebox_1.Type.Boolean(), tablesEnabled: typebox_1.Type.Boolean(), todosEnabled: typebox_1.Type.Boolean(), alertsEnabled: typebox_1.Type.Boolean(), ssoEnabled: typebox_1.Type.Boolean(), licenseKey: typebox_1.Type.Optional(typebox_1.Type.String()), stripeCustomerId: typebox_1.Type.Optional(typebox_1.Type.String()), stripeSubscriptionId: typebox_1.Type.Optional(typebox_1.Type.String()), stripeSubscriptionStatus: typebox_1.Type.Optional(typebox_1.Type.String()), userSeatsLimit: typebox_1.Type.Optional(typebox_1.Type.Number()), projectsLimit: typebox_1.Type.Optional(typebox_1.Type.Number()), tablesLimit: typebox_1.Type.Optional(typebox_1.Type.Number()), mcpLimit: typebox_1.Type.Optional(typebox_1.Type.Number()), activeFlowsLimit: typebox_1.Type.Optional(typebox_1.Type.Number()) }));
67
+ exports.PlatformPlanLimits = typebox_1.Type.Omit(exports.PlatformPlan, ['id', 'platformId', 'created', 'updated']);
52
68
  exports.Platform = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { ownerId: id_generator_1.ApId, name: typebox_1.Type.String(), primaryColor: typebox_1.Type.String(), logoIconUrl: typebox_1.Type.String(), fullLogoUrl: typebox_1.Type.String(), favIconUrl: typebox_1.Type.String(),
53
69
  /**
54
70
  * @deprecated Use projects filter instead.
@@ -57,16 +73,13 @@ exports.Platform = typebox_1.Type.Object(Object.assign(Object.assign({}, base_mo
57
73
  /**
58
74
  * @deprecated Use projects filter instead.
59
75
  */
60
- filteredPieceBehavior: typebox_1.Type.Enum(FilteredPieceBehavior), smtp: (0, base_model_1.Nullable)(exports.SMTPInformation), cloudAuthEnabled: typebox_1.Type.Boolean(), environmentsEnabled: typebox_1.Type.Boolean(), analyticsEnabled: typebox_1.Type.Boolean(), showPoweredBy: typebox_1.Type.Boolean(), auditLogEnabled: typebox_1.Type.Boolean(), embeddingEnabled: typebox_1.Type.Boolean(), managePiecesEnabled: typebox_1.Type.Boolean(), manageTemplatesEnabled: typebox_1.Type.Boolean(), customAppearanceEnabled: typebox_1.Type.Boolean(), manageProjectsEnabled: typebox_1.Type.Boolean(), projectRolesEnabled: typebox_1.Type.Boolean(), customDomainsEnabled: typebox_1.Type.Boolean(), globalConnectionsEnabled: typebox_1.Type.Boolean(), customRolesEnabled: typebox_1.Type.Boolean(), apiKeysEnabled: typebox_1.Type.Boolean(),
61
- /**
62
- * @deprecated flow issues is open source
63
- */
64
- flowIssuesEnabled: typebox_1.Type.Boolean(), alertsEnabled: typebox_1.Type.Boolean(), defaultLocale: typebox_1.Type.Optional(typebox_1.Type.Enum(common_1.LocalesEnum)), ssoEnabled: typebox_1.Type.Boolean(), enforceAllowedAuthDomains: typebox_1.Type.Boolean(), allowedAuthDomains: typebox_1.Type.Array(typebox_1.Type.String()), federatedAuthProviders: federated_authn_1.FederatedAuthnProviderConfig, emailAuthEnabled: typebox_1.Type.Boolean(), licenseKey: typebox_1.Type.Optional(typebox_1.Type.String()), pinnedPieces: typebox_1.Type.Array(typebox_1.Type.String()), copilotSettings: typebox_1.Type.Optional(exports.CopilotSettings) }));
76
+ filteredPieceBehavior: typebox_1.Type.Enum(FilteredPieceBehavior), smtp: (0, base_model_1.Nullable)(exports.SMTPInformation), cloudAuthEnabled: typebox_1.Type.Boolean(), defaultLocale: typebox_1.Type.Optional(typebox_1.Type.Enum(common_1.LocalesEnum)), enforceAllowedAuthDomains: typebox_1.Type.Boolean(), allowedAuthDomains: typebox_1.Type.Array(typebox_1.Type.String()), federatedAuthProviders: federated_authn_1.FederatedAuthnProviderConfig, emailAuthEnabled: typebox_1.Type.Boolean(), pinnedPieces: typebox_1.Type.Array(typebox_1.Type.String()), copilotSettings: typebox_1.Type.Optional(exports.CopilotSettings) }));
65
77
  exports.PlatformWithoutSensitiveData = typebox_1.Type.Composite([typebox_1.Type.Object({
66
78
  federatedAuthProviders: (0, base_model_1.Nullable)(federated_authn_1.FederatedAuthnProviderConfigWithoutSensitiveData),
67
79
  defaultLocale: (0, base_model_1.Nullable)(typebox_1.Type.String()),
68
80
  copilotSettings: typebox_1.Type.Optional(exports.CopilotSettingsWithoutSensitiveData),
69
81
  smtp: (0, base_model_1.Nullable)(typebox_1.Type.Object({})),
82
+ plan: exports.PlatformPlanLimits,
70
83
  hasLicenseKey: typebox_1.Type.Optional(typebox_1.Type.Boolean()),
71
84
  licenseExpiresAt: typebox_1.Type.Optional(typebox_1.Type.String()),
72
85
  }), typebox_1.Type.Pick(exports.Platform, [
@@ -75,6 +88,7 @@ exports.PlatformWithoutSensitiveData = typebox_1.Type.Composite([typebox_1.Type.
75
88
  'updated',
76
89
  'ownerId',
77
90
  'name',
91
+ 'plan',
78
92
  'primaryColor',
79
93
  'logoIconUrl',
80
94
  'fullLogoUrl',
@@ -82,27 +96,14 @@ exports.PlatformWithoutSensitiveData = typebox_1.Type.Composite([typebox_1.Type.
82
96
  'filteredPieceNames',
83
97
  'filteredPieceBehavior',
84
98
  'cloudAuthEnabled',
85
- 'gitSyncEnabled',
86
- 'analyticsEnabled',
87
- 'showPoweredBy',
88
- 'environmentsEnabled',
89
- 'auditLogEnabled',
90
- 'embeddingEnabled',
91
- 'managePiecesEnabled',
92
- 'manageTemplatesEnabled',
93
- 'customAppearanceEnabled',
94
- 'manageProjectsEnabled',
95
- 'projectRolesEnabled',
96
- 'customDomainsEnabled',
97
- 'globalConnectionsEnabled',
98
- 'customRolesEnabled',
99
- 'apiKeysEnabled',
100
- 'flowIssuesEnabled',
101
- 'alertsEnabled',
102
- 'ssoEnabled',
103
99
  'enforceAllowedAuthDomains',
104
100
  'allowedAuthDomains',
105
101
  'emailAuthEnabled',
106
102
  'pinnedPieces',
107
103
  ])]);
104
+ exports.PlatformBillingInformation = typebox_1.Type.Object({
105
+ plan: exports.PlatformPlan,
106
+ usage: exports.PlatformUsage,
107
+ nextBillingDate: typebox_1.Type.String(),
108
+ });
108
109
  //# sourceMappingURL=platform.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"platform.model.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/platform/platform.model.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,sCAAuC;AACvC,qDAAgE;AAChE,yDAA6C;AAC7C,wDAAmH;AAInH,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,4CAAmB,CAAA;IACnB,4CAAmB,CAAA;AACvB,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC;AAEY,QAAA,eAAe,GAAG,cAAI,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;IACnB,WAAW,EAAE,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,EAAE,CAAC;QAC5C,gBAAgB,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;KACjD,CAAC,EAAE,cAAI,CAAC,IAAI,CAAC,gBAAQ,EAAE;QACpB,IAAI;QACJ,SAAS;QACT,SAAS;QACT,SAAS;QACT,MAAM;QACN,cAAc;QACd,aAAa;QACb,aAAa;QACb,YAAY;QACZ,oBAAoB;QACpB,uBAAuB;QACvB,kBAAkB;QAClB,gBAAgB;QAChB,kBAAkB;QAClB,eAAe;QACf,qBAAqB;QACrB,iBAAiB;QACjB,kBAAkB;QAClB,qBAAqB;QACrB,wBAAwB;QACxB,yBAAyB;QACzB,uBAAuB;QACvB,qBAAqB;QACrB,sBAAsB;QACtB,0BAA0B;QAC1B,oBAAoB;QACpB,gBAAgB;QAChB,mBAAmB;QACnB,eAAe;QACf,YAAY;QACZ,2BAA2B;QAC3B,oBAAoB;QACpB,kBAAkB;QAClB,cAAc;KACjB,CAAC,CAAC,CAAC,CAAA"}
1
+ {"version":3,"file":"platform.model.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/platform/platform.model.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,sCAAuC;AACvC,qDAAgE;AAChE,yDAA6C;AAC7C,wDAAmH;AAInH,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,4CAAmB,CAAA;IACnB,4CAAmB,CAAA;AACvB,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC;AAEY,QAAA,eAAe,GAAG,cAAI,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;IACnB,WAAW,EAAE,cAAI,CAAC,MAAM,EAAE;IAC1B,UAAU,EAAE,cAAI,CAAC,MAAM,EAAE;IACzB,QAAQ,EAAE,cAAI,CAAC,MAAM,EAAE;IACvB,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;CAC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AAC,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAC/B,IAAI,EAAE,0BAAkB;QACxB,aAAa,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,OAAO,EAAE,CAAC;QAC5C,gBAAgB,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;KACjD,CAAC,EAAE,cAAI,CAAC,IAAI,CAAC,gBAAQ,EAAE;QACpB,IAAI;QACJ,SAAS;QACT,SAAS;QACT,SAAS;QACT,MAAM;QACN,MAAM;QACN,cAAc;QACd,aAAa;QACb,aAAa;QACb,YAAY;QACZ,oBAAoB;QACpB,uBAAuB;QACvB,kBAAkB;QAClB,2BAA2B;QAC3B,oBAAoB;QACpB,kBAAkB;QAClB,cAAc;KACjB,CAAC,CAAC,CAAC,CAAA;AAKS,QAAA,0BAA0B,GAAG,cAAI,CAAC,MAAM,CAAC;IAClD,IAAI,EAAE,oBAAY;IAClB,KAAK,EAAE,qBAAa;IACpB,eAAe,EAAE,cAAI,CAAC,MAAM,EAAE;CACjC,CAAC,CAAA"}
@@ -18,8 +18,7 @@ export declare enum NotificationStatus {
18
18
  }
19
19
  export declare const ProjectUsage: import("@sinclair/typebox").TObject<{
20
20
  tasks: import("@sinclair/typebox").TNumber;
21
- teamMembers: import("@sinclair/typebox").TNumber;
22
- aiTokens: import("@sinclair/typebox").TNumber;
21
+ aiCredits: import("@sinclair/typebox").TNumber;
23
22
  nextLimitResetDate: import("@sinclair/typebox").TString;
24
23
  }>;
25
24
  export declare const SwitchProjectResponse: import("@sinclair/typebox").TObject<{
@@ -34,7 +33,7 @@ export declare const ProjectPlan: import("@sinclair/typebox").TObject<{
34
33
  piecesFilterType: import("@sinclair/typebox").TEnum<typeof PiecesFilterType>;
35
34
  pieces: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
36
35
  tasks: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number | null>>;
37
- aiTokens: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number | null>>;
36
+ aiCredits: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number | null>>;
38
37
  id: import("@sinclair/typebox").TString;
39
38
  created: import("@sinclair/typebox").TString;
40
39
  updated: import("@sinclair/typebox").TString;
@@ -69,23 +68,22 @@ export declare const ProjectWithLimits: import("@sinclair/typebox").TObject<{
69
68
  platformId: import("@sinclair/typebox").TString;
70
69
  notifyStatus: import("@sinclair/typebox").TEnum<typeof NotificationStatus>;
71
70
  releasesEnabled: import("@sinclair/typebox").TBoolean;
72
- usage: import("@sinclair/typebox").TObject<{
73
- tasks: import("@sinclair/typebox").TNumber;
74
- teamMembers: import("@sinclair/typebox").TNumber;
75
- aiTokens: import("@sinclair/typebox").TNumber;
76
- nextLimitResetDate: import("@sinclair/typebox").TString;
77
- }>;
78
71
  plan: import("@sinclair/typebox").TObject<{
79
72
  projectId: import("@sinclair/typebox").TString;
80
73
  name: import("@sinclair/typebox").TString;
81
74
  piecesFilterType: import("@sinclair/typebox").TEnum<typeof PiecesFilterType>;
82
75
  pieces: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
83
76
  tasks: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number | null>>;
84
- aiTokens: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number | null>>;
77
+ aiCredits: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number | null>>;
85
78
  id: import("@sinclair/typebox").TString;
86
79
  created: import("@sinclair/typebox").TString;
87
80
  updated: import("@sinclair/typebox").TString;
88
81
  }>;
82
+ usage: import("@sinclair/typebox").TObject<{
83
+ tasks: import("@sinclair/typebox").TNumber;
84
+ aiCredits: import("@sinclair/typebox").TNumber;
85
+ nextLimitResetDate: import("@sinclair/typebox").TString;
86
+ }>;
89
87
  analytics: import("@sinclair/typebox").TObject<{
90
88
  totalUsers: import("@sinclair/typebox").TNumber;
91
89
  activeUsers: import("@sinclair/typebox").TNumber;
@@ -120,23 +118,22 @@ export declare const ProjectWithLimitsWithPlatform: import("@sinclair/typebox").
120
118
  platformId: import("@sinclair/typebox").TString;
121
119
  notifyStatus: import("@sinclair/typebox").TEnum<typeof NotificationStatus>;
122
120
  releasesEnabled: import("@sinclair/typebox").TBoolean;
123
- usage: import("@sinclair/typebox").TObject<{
124
- tasks: import("@sinclair/typebox").TNumber;
125
- teamMembers: import("@sinclair/typebox").TNumber;
126
- aiTokens: import("@sinclair/typebox").TNumber;
127
- nextLimitResetDate: import("@sinclair/typebox").TString;
128
- }>;
129
121
  plan: import("@sinclair/typebox").TObject<{
130
122
  projectId: import("@sinclair/typebox").TString;
131
123
  name: import("@sinclair/typebox").TString;
132
124
  piecesFilterType: import("@sinclair/typebox").TEnum<typeof PiecesFilterType>;
133
125
  pieces: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
134
126
  tasks: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number | null>>;
135
- aiTokens: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number | null>>;
127
+ aiCredits: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number | null>>;
136
128
  id: import("@sinclair/typebox").TString;
137
129
  created: import("@sinclair/typebox").TString;
138
130
  updated: import("@sinclair/typebox").TString;
139
131
  }>;
132
+ usage: import("@sinclair/typebox").TObject<{
133
+ tasks: import("@sinclair/typebox").TNumber;
134
+ aiCredits: import("@sinclair/typebox").TNumber;
135
+ nextLimitResetDate: import("@sinclair/typebox").TString;
136
+ }>;
140
137
  analytics: import("@sinclair/typebox").TObject<{
141
138
  totalUsers: import("@sinclair/typebox").TNumber;
142
139
  activeUsers: import("@sinclair/typebox").TNumber;
@@ -24,14 +24,13 @@ var NotificationStatus;
24
24
  })(NotificationStatus || (exports.NotificationStatus = NotificationStatus = {}));
25
25
  exports.ProjectUsage = typebox_1.Type.Object({
26
26
  tasks: typebox_1.Type.Number(),
27
- teamMembers: typebox_1.Type.Number(),
28
- aiTokens: typebox_1.Type.Number(),
27
+ aiCredits: typebox_1.Type.Number(),
29
28
  nextLimitResetDate: typebox_1.Type.String(),
30
29
  });
31
30
  exports.SwitchProjectResponse = typebox_1.Type.Object({
32
31
  token: typebox_1.Type.String(),
33
32
  });
34
- exports.ProjectPlan = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { projectId: typebox_1.Type.String(), name: typebox_1.Type.String(), piecesFilterType: typebox_1.Type.Enum(PiecesFilterType), pieces: typebox_1.Type.Array(typebox_1.Type.String()), tasks: (0, base_model_1.Nullable)(typebox_1.Type.Number()), aiTokens: (0, base_model_1.Nullable)(typebox_1.Type.Number()) }));
33
+ exports.ProjectPlan = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { projectId: typebox_1.Type.String(), name: typebox_1.Type.String(), piecesFilterType: typebox_1.Type.Enum(PiecesFilterType), pieces: typebox_1.Type.Array(typebox_1.Type.String()), tasks: (0, base_model_1.Nullable)(typebox_1.Type.Number()), aiCredits: (0, base_model_1.Nullable)(typebox_1.Type.Number()) }));
35
34
  exports.Project = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { deleted: (0, base_model_1.Nullable)(typebox_1.Type.String()), ownerId: typebox_1.Type.String(), displayName: typebox_1.Type.String(), notifyStatus: typebox_1.Type.Enum(NotificationStatus), platformId: id_generator_1.ApId, externalId: typebox_1.Type.Optional(typebox_1.Type.String()), releasesEnabled: typebox_1.Type.Boolean(), metadata: (0, base_model_1.Nullable)(metadata_1.Metadata) }));
36
35
  const projectAnalytics = typebox_1.Type.Object({
37
36
  totalUsers: typebox_1.Type.Number(),
@@ -1 +1 @@
1
- {"version":3,"file":"project.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/project/project.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,sCAA+C;AAC/C,qDAAgE;AAChE,yDAA6C;AAC7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,IAAI,CAAC;iBAC3F,CAAA;gBACD,OAAO,YAAY,CAAA;YACvB,CAAC;YACD,OAAO,IAAI,CAAA;QACf,CAAC,CAAC,CAAA;QACF,uCACO,UAAU,KACb,aAAa,EAAE,GAAG,IACrB;IACL,CAAC;CACJ,CAAA"}
@@ -1,20 +0,0 @@
1
- import { Static } from '@sinclair/typebox';
2
- import { McpPieceStatus } from '../mcp';
3
- export declare const ListMcpsRequest: import("@sinclair/typebox").TObject<{
4
- limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
5
- cursor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
6
- projectId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
7
- }>;
8
- export type ListMcpsRequest = Static<typeof ListMcpsRequest>;
9
- export declare const AddMcpPieceRequestBody: import("@sinclair/typebox").TObject<{
10
- mcpId: import("@sinclair/typebox").TString;
11
- pieceName: import("@sinclair/typebox").TString;
12
- status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<typeof McpPieceStatus>>;
13
- connectionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
14
- }>;
15
- export type AddMcpPieceRequestBody = Static<typeof AddMcpPieceRequestBody>;
16
- export declare const UpdateMcpPieceRequestBody: import("@sinclair/typebox").TObject<{
17
- status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<typeof McpPieceStatus>>;
18
- connectionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
19
- }>;
20
- export type UpdateMcpPieceRequestBody = Static<typeof UpdateMcpPieceRequestBody>;
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateMcpPieceRequestBody = exports.AddMcpPieceRequestBody = exports.ListMcpsRequest = void 0;
4
- const typebox_1 = require("@sinclair/typebox");
5
- const common_1 = require("../../common");
6
- const id_generator_1 = require("../../common/id-generator");
7
- const mcp_1 = require("../mcp");
8
- exports.ListMcpsRequest = typebox_1.Type.Object({
9
- limit: typebox_1.Type.Optional(typebox_1.Type.Number({})),
10
- cursor: typebox_1.Type.Optional(typebox_1.Type.String({})),
11
- projectId: typebox_1.Type.Optional(typebox_1.Type.String({})),
12
- });
13
- exports.AddMcpPieceRequestBody = typebox_1.Type.Object({
14
- mcpId: id_generator_1.ApId,
15
- pieceName: typebox_1.Type.String(),
16
- status: typebox_1.Type.Optional(typebox_1.Type.Enum(mcp_1.McpPieceStatus)),
17
- connectionId: (0, common_1.Nullable)(typebox_1.Type.String()),
18
- });
19
- exports.UpdateMcpPieceRequestBody = typebox_1.Type.Object({
20
- status: typebox_1.Type.Optional(typebox_1.Type.Enum(mcp_1.McpPieceStatus)),
21
- connectionId: (0, common_1.Nullable)(typebox_1.Type.String()),
22
- });
23
- //# sourceMappingURL=mcp.dto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp.dto.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/mcp/dto/mcp.dto.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,yCAAuC;AACvC,4DAAgD;AAChD,gCAAuC;AAE1B,QAAA,eAAe,GAAG,cAAI,CAAC,MAAM,CAAC;IACvC,KAAK,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACrC,MAAM,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACtC,SAAS,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;CAC5C,CAAC,CAAA;AAGW,QAAA,sBAAsB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC9C,KAAK,EAAE,mBAAI;IACX,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE;IACxB,MAAM,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,IAAI,CAAC,oBAAc,CAAC,CAAC;IAChD,YAAY,EAAE,IAAA,iBAAQ,EAAC,cAAI,CAAC,MAAM,EAAE,CAAC;CACxC,CAAC,CAAA;AAIW,QAAA,yBAAyB,GAAG,cAAI,CAAC,MAAM,CAAC;IACjD,MAAM,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,IAAI,CAAC,oBAAc,CAAC,CAAC;IAChD,YAAY,EAAE,IAAA,iBAAQ,EAAC,cAAI,CAAC,MAAM,EAAE,CAAC;CACxC,CAAC,CAAA"}