@bpinternal/const 0.19.0 → 0.21.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.
- package/dist/billing-next/config/addons.d.ts +27 -31
- package/dist/billing-next/config/addons.js +26 -9
- package/dist/billing-next/config/plans.d.ts +26 -26
- package/dist/billing-next/config/plans.js +32 -32
- package/dist/billing-next/config/schemas.d.ts +112 -425
- package/dist/billing-next/config/schemas.js +2 -6
- package/dist/billing-next/config/versions.d.ts +106 -114
- package/dist/billing-next/consts.d.ts +5 -0
- package/dist/billing-next/consts.js +6 -1
- package/dist/billing-next/features.d.ts +6 -0
- package/dist/billing-next/features.js +7 -0
- package/package.json +3 -2
|
@@ -4,7 +4,7 @@ import { z } from 'zod';
|
|
|
4
4
|
* This allows us to have a reference to the Stripe products and prices in our billing config without having to hardcode them before they are created in Stripe.
|
|
5
5
|
*/
|
|
6
6
|
export declare const UNKNOWN_STRIPE_ID = "__UNKNOWN_STRIPE_ID__";
|
|
7
|
-
export declare const featureSchema: z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions"]>;
|
|
7
|
+
export declare const featureSchema: z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions", "ai_spend"]>;
|
|
8
8
|
export type Interval = z.infer<typeof intervalSchema>;
|
|
9
9
|
export declare const intervalSchema: z.ZodEnum<["month", "year"]>;
|
|
10
10
|
export type UnitAmount = z.infer<typeof unitAmountSchema>;
|
|
@@ -78,7 +78,7 @@ export declare const planSchema: z.ZodObject<{
|
|
|
78
78
|
providerPriceId: string;
|
|
79
79
|
metadata?: Record<string, string> | undefined;
|
|
80
80
|
}>>;
|
|
81
|
-
features: z.ZodRecord<z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions"]>, z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
81
|
+
features: z.ZodRecord<z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions", "ai_spend"]>, z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
82
82
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
83
83
|
providerProductId: z.ZodString;
|
|
84
84
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -93,7 +93,7 @@ export declare const planSchema: z.ZodObject<{
|
|
|
93
93
|
providerPriceId: string;
|
|
94
94
|
metadata?: Record<string, string> | undefined;
|
|
95
95
|
}>>;
|
|
96
|
-
features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
|
|
96
|
+
features: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
|
|
97
97
|
providerProductId: string;
|
|
98
98
|
metadata?: Record<string, string> | undefined;
|
|
99
99
|
}, {
|
|
@@ -108,32 +108,16 @@ export declare const planSchema: z.ZodObject<{
|
|
|
108
108
|
providerPriceId: string;
|
|
109
109
|
metadata?: Record<string, string> | undefined;
|
|
110
110
|
}>>;
|
|
111
|
-
features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
|
|
111
|
+
features: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
|
|
112
112
|
providerProductId: string;
|
|
113
113
|
metadata?: Record<string, string> | undefined;
|
|
114
114
|
}>;
|
|
115
115
|
export type BillingAddon = z.infer<typeof addOnSchema>;
|
|
116
|
-
export declare const
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
122
|
-
providerPriceId: z.ZodString;
|
|
123
|
-
}, "strip", z.ZodTypeAny, {
|
|
124
|
-
amount: number;
|
|
125
|
-
currency: "usd";
|
|
126
|
-
interval: "month" | "year";
|
|
127
|
-
providerPriceId: string;
|
|
128
|
-
metadata?: Record<string, string> | undefined;
|
|
129
|
-
}, {
|
|
130
|
-
amount: number;
|
|
131
|
-
currency: "usd";
|
|
132
|
-
interval: "month" | "year";
|
|
133
|
-
providerPriceId: string;
|
|
134
|
-
metadata?: Record<string, string> | undefined;
|
|
135
|
-
}>;
|
|
136
|
-
year: z.ZodOptional<z.ZodObject<{
|
|
116
|
+
export declare const addOnSchema: z.ZodObject<{
|
|
117
|
+
id: z.ZodString;
|
|
118
|
+
name: z.ZodString;
|
|
119
|
+
description: z.ZodString;
|
|
120
|
+
prices: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
137
121
|
amount: z.ZodNumber;
|
|
138
122
|
currency: z.ZodEnum<["usd"]>;
|
|
139
123
|
interval: z.ZodEnum<["month", "year"]>;
|
|
@@ -152,112 +136,7 @@ export declare const addonPlanPricesSchema: z.ZodObject<{
|
|
|
152
136
|
providerPriceId: string;
|
|
153
137
|
metadata?: Record<string, string> | undefined;
|
|
154
138
|
}>>;
|
|
155
|
-
|
|
156
|
-
month: {
|
|
157
|
-
amount: number;
|
|
158
|
-
currency: "usd";
|
|
159
|
-
interval: "month" | "year";
|
|
160
|
-
providerPriceId: string;
|
|
161
|
-
metadata?: Record<string, string> | undefined;
|
|
162
|
-
};
|
|
163
|
-
year?: {
|
|
164
|
-
amount: number;
|
|
165
|
-
currency: "usd";
|
|
166
|
-
interval: "month" | "year";
|
|
167
|
-
providerPriceId: string;
|
|
168
|
-
metadata?: Record<string, string> | undefined;
|
|
169
|
-
} | undefined;
|
|
170
|
-
}, {
|
|
171
|
-
month: {
|
|
172
|
-
amount: number;
|
|
173
|
-
currency: "usd";
|
|
174
|
-
interval: "month" | "year";
|
|
175
|
-
providerPriceId: string;
|
|
176
|
-
metadata?: Record<string, string> | undefined;
|
|
177
|
-
};
|
|
178
|
-
year?: {
|
|
179
|
-
amount: number;
|
|
180
|
-
currency: "usd";
|
|
181
|
-
interval: "month" | "year";
|
|
182
|
-
providerPriceId: string;
|
|
183
|
-
metadata?: Record<string, string> | undefined;
|
|
184
|
-
} | undefined;
|
|
185
|
-
}>;
|
|
186
|
-
export declare const addOnSchema: z.ZodObject<{
|
|
187
|
-
id: z.ZodString;
|
|
188
|
-
name: z.ZodString;
|
|
189
|
-
description: z.ZodString;
|
|
190
|
-
prices: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
191
|
-
month: z.ZodObject<{
|
|
192
|
-
amount: z.ZodNumber;
|
|
193
|
-
currency: z.ZodEnum<["usd"]>;
|
|
194
|
-
interval: z.ZodEnum<["month", "year"]>;
|
|
195
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
196
|
-
providerPriceId: z.ZodString;
|
|
197
|
-
}, "strip", z.ZodTypeAny, {
|
|
198
|
-
amount: number;
|
|
199
|
-
currency: "usd";
|
|
200
|
-
interval: "month" | "year";
|
|
201
|
-
providerPriceId: string;
|
|
202
|
-
metadata?: Record<string, string> | undefined;
|
|
203
|
-
}, {
|
|
204
|
-
amount: number;
|
|
205
|
-
currency: "usd";
|
|
206
|
-
interval: "month" | "year";
|
|
207
|
-
providerPriceId: string;
|
|
208
|
-
metadata?: Record<string, string> | undefined;
|
|
209
|
-
}>;
|
|
210
|
-
year: z.ZodOptional<z.ZodObject<{
|
|
211
|
-
amount: z.ZodNumber;
|
|
212
|
-
currency: z.ZodEnum<["usd"]>;
|
|
213
|
-
interval: z.ZodEnum<["month", "year"]>;
|
|
214
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
215
|
-
providerPriceId: z.ZodString;
|
|
216
|
-
}, "strip", z.ZodTypeAny, {
|
|
217
|
-
amount: number;
|
|
218
|
-
currency: "usd";
|
|
219
|
-
interval: "month" | "year";
|
|
220
|
-
providerPriceId: string;
|
|
221
|
-
metadata?: Record<string, string> | undefined;
|
|
222
|
-
}, {
|
|
223
|
-
amount: number;
|
|
224
|
-
currency: "usd";
|
|
225
|
-
interval: "month" | "year";
|
|
226
|
-
providerPriceId: string;
|
|
227
|
-
metadata?: Record<string, string> | undefined;
|
|
228
|
-
}>>;
|
|
229
|
-
}, "strip", z.ZodTypeAny, {
|
|
230
|
-
month: {
|
|
231
|
-
amount: number;
|
|
232
|
-
currency: "usd";
|
|
233
|
-
interval: "month" | "year";
|
|
234
|
-
providerPriceId: string;
|
|
235
|
-
metadata?: Record<string, string> | undefined;
|
|
236
|
-
};
|
|
237
|
-
year?: {
|
|
238
|
-
amount: number;
|
|
239
|
-
currency: "usd";
|
|
240
|
-
interval: "month" | "year";
|
|
241
|
-
providerPriceId: string;
|
|
242
|
-
metadata?: Record<string, string> | undefined;
|
|
243
|
-
} | undefined;
|
|
244
|
-
}, {
|
|
245
|
-
month: {
|
|
246
|
-
amount: number;
|
|
247
|
-
currency: "usd";
|
|
248
|
-
interval: "month" | "year";
|
|
249
|
-
providerPriceId: string;
|
|
250
|
-
metadata?: Record<string, string> | undefined;
|
|
251
|
-
};
|
|
252
|
-
year?: {
|
|
253
|
-
amount: number;
|
|
254
|
-
currency: "usd";
|
|
255
|
-
interval: "month" | "year";
|
|
256
|
-
providerPriceId: string;
|
|
257
|
-
metadata?: Record<string, string> | undefined;
|
|
258
|
-
} | undefined;
|
|
259
|
-
}>>;
|
|
260
|
-
increments: z.ZodRecord<z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions"]>, z.ZodNumber>;
|
|
139
|
+
increments: z.ZodRecord<z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions", "ai_spend"]>, z.ZodNumber>;
|
|
261
140
|
prorationDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
262
141
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
263
142
|
autoRechargeable: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -268,23 +147,14 @@ export declare const addOnSchema: z.ZodObject<{
|
|
|
268
147
|
name: string;
|
|
269
148
|
description: string;
|
|
270
149
|
prices: Record<string, {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
metadata?: Record<string, string> | undefined;
|
|
277
|
-
};
|
|
278
|
-
year?: {
|
|
279
|
-
amount: number;
|
|
280
|
-
currency: "usd";
|
|
281
|
-
interval: "month" | "year";
|
|
282
|
-
providerPriceId: string;
|
|
283
|
-
metadata?: Record<string, string> | undefined;
|
|
284
|
-
} | undefined;
|
|
150
|
+
amount: number;
|
|
151
|
+
currency: "usd";
|
|
152
|
+
interval: "month" | "year";
|
|
153
|
+
providerPriceId: string;
|
|
154
|
+
metadata?: Record<string, string> | undefined;
|
|
285
155
|
}>;
|
|
286
156
|
providerProductId: string;
|
|
287
|
-
increments: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
|
|
157
|
+
increments: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
|
|
288
158
|
metadata?: Record<string, string> | undefined;
|
|
289
159
|
prorationDisabled?: boolean | undefined;
|
|
290
160
|
autoRechargeable?: boolean | undefined;
|
|
@@ -294,23 +164,14 @@ export declare const addOnSchema: z.ZodObject<{
|
|
|
294
164
|
name: string;
|
|
295
165
|
description: string;
|
|
296
166
|
prices: Record<string, {
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
metadata?: Record<string, string> | undefined;
|
|
303
|
-
};
|
|
304
|
-
year?: {
|
|
305
|
-
amount: number;
|
|
306
|
-
currency: "usd";
|
|
307
|
-
interval: "month" | "year";
|
|
308
|
-
providerPriceId: string;
|
|
309
|
-
metadata?: Record<string, string> | undefined;
|
|
310
|
-
} | undefined;
|
|
167
|
+
amount: number;
|
|
168
|
+
currency: "usd";
|
|
169
|
+
interval: "month" | "year";
|
|
170
|
+
providerPriceId: string;
|
|
171
|
+
metadata?: Record<string, string> | undefined;
|
|
311
172
|
}>;
|
|
312
173
|
providerProductId: string;
|
|
313
|
-
increments: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
|
|
174
|
+
increments: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
|
|
314
175
|
metadata?: Record<string, string> | undefined;
|
|
315
176
|
prorationDisabled?: boolean | undefined;
|
|
316
177
|
autoRechargeable?: boolean | undefined;
|
|
@@ -448,7 +309,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
448
309
|
providerPriceId: string;
|
|
449
310
|
metadata?: Record<string, string> | undefined;
|
|
450
311
|
}>>;
|
|
451
|
-
features: z.ZodRecord<z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions"]>, z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
312
|
+
features: z.ZodRecord<z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions", "ai_spend"]>, z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
452
313
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
453
314
|
providerProductId: z.ZodString;
|
|
454
315
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -463,7 +324,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
463
324
|
providerPriceId: string;
|
|
464
325
|
metadata?: Record<string, string> | undefined;
|
|
465
326
|
}>>;
|
|
466
|
-
features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
|
|
327
|
+
features: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
|
|
467
328
|
providerProductId: string;
|
|
468
329
|
metadata?: Record<string, string> | undefined;
|
|
469
330
|
}, {
|
|
@@ -478,7 +339,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
478
339
|
providerPriceId: string;
|
|
479
340
|
metadata?: Record<string, string> | undefined;
|
|
480
341
|
}>>;
|
|
481
|
-
features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
|
|
342
|
+
features: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
|
|
482
343
|
providerProductId: string;
|
|
483
344
|
metadata?: Record<string, string> | undefined;
|
|
484
345
|
}>>;
|
|
@@ -487,76 +348,25 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
487
348
|
name: z.ZodString;
|
|
488
349
|
description: z.ZodString;
|
|
489
350
|
prices: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
providerPriceId: z.ZodString;
|
|
496
|
-
}, "strip", z.ZodTypeAny, {
|
|
497
|
-
amount: number;
|
|
498
|
-
currency: "usd";
|
|
499
|
-
interval: "month" | "year";
|
|
500
|
-
providerPriceId: string;
|
|
501
|
-
metadata?: Record<string, string> | undefined;
|
|
502
|
-
}, {
|
|
503
|
-
amount: number;
|
|
504
|
-
currency: "usd";
|
|
505
|
-
interval: "month" | "year";
|
|
506
|
-
providerPriceId: string;
|
|
507
|
-
metadata?: Record<string, string> | undefined;
|
|
508
|
-
}>;
|
|
509
|
-
year: z.ZodOptional<z.ZodObject<{
|
|
510
|
-
amount: z.ZodNumber;
|
|
511
|
-
currency: z.ZodEnum<["usd"]>;
|
|
512
|
-
interval: z.ZodEnum<["month", "year"]>;
|
|
513
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
514
|
-
providerPriceId: z.ZodString;
|
|
515
|
-
}, "strip", z.ZodTypeAny, {
|
|
516
|
-
amount: number;
|
|
517
|
-
currency: "usd";
|
|
518
|
-
interval: "month" | "year";
|
|
519
|
-
providerPriceId: string;
|
|
520
|
-
metadata?: Record<string, string> | undefined;
|
|
521
|
-
}, {
|
|
522
|
-
amount: number;
|
|
523
|
-
currency: "usd";
|
|
524
|
-
interval: "month" | "year";
|
|
525
|
-
providerPriceId: string;
|
|
526
|
-
metadata?: Record<string, string> | undefined;
|
|
527
|
-
}>>;
|
|
351
|
+
amount: z.ZodNumber;
|
|
352
|
+
currency: z.ZodEnum<["usd"]>;
|
|
353
|
+
interval: z.ZodEnum<["month", "year"]>;
|
|
354
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
355
|
+
providerPriceId: z.ZodString;
|
|
528
356
|
}, "strip", z.ZodTypeAny, {
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
metadata?: Record<string, string> | undefined;
|
|
535
|
-
};
|
|
536
|
-
year?: {
|
|
537
|
-
amount: number;
|
|
538
|
-
currency: "usd";
|
|
539
|
-
interval: "month" | "year";
|
|
540
|
-
providerPriceId: string;
|
|
541
|
-
metadata?: Record<string, string> | undefined;
|
|
542
|
-
} | undefined;
|
|
357
|
+
amount: number;
|
|
358
|
+
currency: "usd";
|
|
359
|
+
interval: "month" | "year";
|
|
360
|
+
providerPriceId: string;
|
|
361
|
+
metadata?: Record<string, string> | undefined;
|
|
543
362
|
}, {
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
metadata?: Record<string, string> | undefined;
|
|
550
|
-
};
|
|
551
|
-
year?: {
|
|
552
|
-
amount: number;
|
|
553
|
-
currency: "usd";
|
|
554
|
-
interval: "month" | "year";
|
|
555
|
-
providerPriceId: string;
|
|
556
|
-
metadata?: Record<string, string> | undefined;
|
|
557
|
-
} | undefined;
|
|
363
|
+
amount: number;
|
|
364
|
+
currency: "usd";
|
|
365
|
+
interval: "month" | "year";
|
|
366
|
+
providerPriceId: string;
|
|
367
|
+
metadata?: Record<string, string> | undefined;
|
|
558
368
|
}>>;
|
|
559
|
-
increments: z.ZodRecord<z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions"]>, z.ZodNumber>;
|
|
369
|
+
increments: z.ZodRecord<z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions", "ai_spend"]>, z.ZodNumber>;
|
|
560
370
|
prorationDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
561
371
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
562
372
|
autoRechargeable: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -567,23 +377,14 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
567
377
|
name: string;
|
|
568
378
|
description: string;
|
|
569
379
|
prices: Record<string, {
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
metadata?: Record<string, string> | undefined;
|
|
576
|
-
};
|
|
577
|
-
year?: {
|
|
578
|
-
amount: number;
|
|
579
|
-
currency: "usd";
|
|
580
|
-
interval: "month" | "year";
|
|
581
|
-
providerPriceId: string;
|
|
582
|
-
metadata?: Record<string, string> | undefined;
|
|
583
|
-
} | undefined;
|
|
380
|
+
amount: number;
|
|
381
|
+
currency: "usd";
|
|
382
|
+
interval: "month" | "year";
|
|
383
|
+
providerPriceId: string;
|
|
384
|
+
metadata?: Record<string, string> | undefined;
|
|
584
385
|
}>;
|
|
585
386
|
providerProductId: string;
|
|
586
|
-
increments: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
|
|
387
|
+
increments: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
|
|
587
388
|
metadata?: Record<string, string> | undefined;
|
|
588
389
|
prorationDisabled?: boolean | undefined;
|
|
589
390
|
autoRechargeable?: boolean | undefined;
|
|
@@ -593,23 +394,14 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
593
394
|
name: string;
|
|
594
395
|
description: string;
|
|
595
396
|
prices: Record<string, {
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
metadata?: Record<string, string> | undefined;
|
|
602
|
-
};
|
|
603
|
-
year?: {
|
|
604
|
-
amount: number;
|
|
605
|
-
currency: "usd";
|
|
606
|
-
interval: "month" | "year";
|
|
607
|
-
providerPriceId: string;
|
|
608
|
-
metadata?: Record<string, string> | undefined;
|
|
609
|
-
} | undefined;
|
|
397
|
+
amount: number;
|
|
398
|
+
currency: "usd";
|
|
399
|
+
interval: "month" | "year";
|
|
400
|
+
providerPriceId: string;
|
|
401
|
+
metadata?: Record<string, string> | undefined;
|
|
610
402
|
}>;
|
|
611
403
|
providerProductId: string;
|
|
612
|
-
increments: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
|
|
404
|
+
increments: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
|
|
613
405
|
metadata?: Record<string, string> | undefined;
|
|
614
406
|
prorationDisabled?: boolean | undefined;
|
|
615
407
|
autoRechargeable?: boolean | undefined;
|
|
@@ -735,7 +527,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
735
527
|
providerPriceId: string;
|
|
736
528
|
metadata?: Record<string, string> | undefined;
|
|
737
529
|
}>>;
|
|
738
|
-
features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
|
|
530
|
+
features: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
|
|
739
531
|
providerProductId: string;
|
|
740
532
|
metadata?: Record<string, string> | undefined;
|
|
741
533
|
}>;
|
|
@@ -744,23 +536,14 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
744
536
|
name: string;
|
|
745
537
|
description: string;
|
|
746
538
|
prices: Record<string, {
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
metadata?: Record<string, string> | undefined;
|
|
753
|
-
};
|
|
754
|
-
year?: {
|
|
755
|
-
amount: number;
|
|
756
|
-
currency: "usd";
|
|
757
|
-
interval: "month" | "year";
|
|
758
|
-
providerPriceId: string;
|
|
759
|
-
metadata?: Record<string, string> | undefined;
|
|
760
|
-
} | undefined;
|
|
539
|
+
amount: number;
|
|
540
|
+
currency: "usd";
|
|
541
|
+
interval: "month" | "year";
|
|
542
|
+
providerPriceId: string;
|
|
543
|
+
metadata?: Record<string, string> | undefined;
|
|
761
544
|
}>;
|
|
762
545
|
providerProductId: string;
|
|
763
|
-
increments: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
|
|
546
|
+
increments: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
|
|
764
547
|
metadata?: Record<string, string> | undefined;
|
|
765
548
|
prorationDisabled?: boolean | undefined;
|
|
766
549
|
autoRechargeable?: boolean | undefined;
|
|
@@ -810,7 +593,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
810
593
|
providerPriceId: string;
|
|
811
594
|
metadata?: Record<string, string> | undefined;
|
|
812
595
|
}>>;
|
|
813
|
-
features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
|
|
596
|
+
features: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
|
|
814
597
|
providerProductId: string;
|
|
815
598
|
metadata?: Record<string, string> | undefined;
|
|
816
599
|
}>;
|
|
@@ -819,23 +602,14 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
819
602
|
name: string;
|
|
820
603
|
description: string;
|
|
821
604
|
prices: Record<string, {
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
metadata?: Record<string, string> | undefined;
|
|
828
|
-
};
|
|
829
|
-
year?: {
|
|
830
|
-
amount: number;
|
|
831
|
-
currency: "usd";
|
|
832
|
-
interval: "month" | "year";
|
|
833
|
-
providerPriceId: string;
|
|
834
|
-
metadata?: Record<string, string> | undefined;
|
|
835
|
-
} | undefined;
|
|
605
|
+
amount: number;
|
|
606
|
+
currency: "usd";
|
|
607
|
+
interval: "month" | "year";
|
|
608
|
+
providerPriceId: string;
|
|
609
|
+
metadata?: Record<string, string> | undefined;
|
|
836
610
|
}>;
|
|
837
611
|
providerProductId: string;
|
|
838
|
-
increments: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
|
|
612
|
+
increments: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
|
|
839
613
|
metadata?: Record<string, string> | undefined;
|
|
840
614
|
prorationDisabled?: boolean | undefined;
|
|
841
615
|
autoRechargeable?: boolean | undefined;
|
|
@@ -899,7 +673,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
899
673
|
providerPriceId: string;
|
|
900
674
|
metadata?: Record<string, string> | undefined;
|
|
901
675
|
}>>;
|
|
902
|
-
features: z.ZodRecord<z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions"]>, z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
676
|
+
features: z.ZodRecord<z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions", "ai_spend"]>, z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
903
677
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
904
678
|
providerProductId: z.ZodString;
|
|
905
679
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -914,7 +688,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
914
688
|
providerPriceId: string;
|
|
915
689
|
metadata?: Record<string, string> | undefined;
|
|
916
690
|
}>>;
|
|
917
|
-
features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
|
|
691
|
+
features: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
|
|
918
692
|
providerProductId: string;
|
|
919
693
|
metadata?: Record<string, string> | undefined;
|
|
920
694
|
}, {
|
|
@@ -929,7 +703,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
929
703
|
providerPriceId: string;
|
|
930
704
|
metadata?: Record<string, string> | undefined;
|
|
931
705
|
}>>;
|
|
932
|
-
features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
|
|
706
|
+
features: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
|
|
933
707
|
providerProductId: string;
|
|
934
708
|
metadata?: Record<string, string> | undefined;
|
|
935
709
|
}>>;
|
|
@@ -938,76 +712,25 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
938
712
|
name: z.ZodString;
|
|
939
713
|
description: z.ZodString;
|
|
940
714
|
prices: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
providerPriceId: z.ZodString;
|
|
947
|
-
}, "strip", z.ZodTypeAny, {
|
|
948
|
-
amount: number;
|
|
949
|
-
currency: "usd";
|
|
950
|
-
interval: "month" | "year";
|
|
951
|
-
providerPriceId: string;
|
|
952
|
-
metadata?: Record<string, string> | undefined;
|
|
953
|
-
}, {
|
|
954
|
-
amount: number;
|
|
955
|
-
currency: "usd";
|
|
956
|
-
interval: "month" | "year";
|
|
957
|
-
providerPriceId: string;
|
|
958
|
-
metadata?: Record<string, string> | undefined;
|
|
959
|
-
}>;
|
|
960
|
-
year: z.ZodOptional<z.ZodObject<{
|
|
961
|
-
amount: z.ZodNumber;
|
|
962
|
-
currency: z.ZodEnum<["usd"]>;
|
|
963
|
-
interval: z.ZodEnum<["month", "year"]>;
|
|
964
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
965
|
-
providerPriceId: z.ZodString;
|
|
966
|
-
}, "strip", z.ZodTypeAny, {
|
|
967
|
-
amount: number;
|
|
968
|
-
currency: "usd";
|
|
969
|
-
interval: "month" | "year";
|
|
970
|
-
providerPriceId: string;
|
|
971
|
-
metadata?: Record<string, string> | undefined;
|
|
972
|
-
}, {
|
|
973
|
-
amount: number;
|
|
974
|
-
currency: "usd";
|
|
975
|
-
interval: "month" | "year";
|
|
976
|
-
providerPriceId: string;
|
|
977
|
-
metadata?: Record<string, string> | undefined;
|
|
978
|
-
}>>;
|
|
715
|
+
amount: z.ZodNumber;
|
|
716
|
+
currency: z.ZodEnum<["usd"]>;
|
|
717
|
+
interval: z.ZodEnum<["month", "year"]>;
|
|
718
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
719
|
+
providerPriceId: z.ZodString;
|
|
979
720
|
}, "strip", z.ZodTypeAny, {
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
metadata?: Record<string, string> | undefined;
|
|
986
|
-
};
|
|
987
|
-
year?: {
|
|
988
|
-
amount: number;
|
|
989
|
-
currency: "usd";
|
|
990
|
-
interval: "month" | "year";
|
|
991
|
-
providerPriceId: string;
|
|
992
|
-
metadata?: Record<string, string> | undefined;
|
|
993
|
-
} | undefined;
|
|
721
|
+
amount: number;
|
|
722
|
+
currency: "usd";
|
|
723
|
+
interval: "month" | "year";
|
|
724
|
+
providerPriceId: string;
|
|
725
|
+
metadata?: Record<string, string> | undefined;
|
|
994
726
|
}, {
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
metadata?: Record<string, string> | undefined;
|
|
1001
|
-
};
|
|
1002
|
-
year?: {
|
|
1003
|
-
amount: number;
|
|
1004
|
-
currency: "usd";
|
|
1005
|
-
interval: "month" | "year";
|
|
1006
|
-
providerPriceId: string;
|
|
1007
|
-
metadata?: Record<string, string> | undefined;
|
|
1008
|
-
} | undefined;
|
|
727
|
+
amount: number;
|
|
728
|
+
currency: "usd";
|
|
729
|
+
interval: "month" | "year";
|
|
730
|
+
providerPriceId: string;
|
|
731
|
+
metadata?: Record<string, string> | undefined;
|
|
1009
732
|
}>>;
|
|
1010
|
-
increments: z.ZodRecord<z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions"]>, z.ZodNumber>;
|
|
733
|
+
increments: z.ZodRecord<z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions", "ai_spend"]>, z.ZodNumber>;
|
|
1011
734
|
prorationDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
1012
735
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1013
736
|
autoRechargeable: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1018,23 +741,14 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
1018
741
|
name: string;
|
|
1019
742
|
description: string;
|
|
1020
743
|
prices: Record<string, {
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
metadata?: Record<string, string> | undefined;
|
|
1027
|
-
};
|
|
1028
|
-
year?: {
|
|
1029
|
-
amount: number;
|
|
1030
|
-
currency: "usd";
|
|
1031
|
-
interval: "month" | "year";
|
|
1032
|
-
providerPriceId: string;
|
|
1033
|
-
metadata?: Record<string, string> | undefined;
|
|
1034
|
-
} | undefined;
|
|
744
|
+
amount: number;
|
|
745
|
+
currency: "usd";
|
|
746
|
+
interval: "month" | "year";
|
|
747
|
+
providerPriceId: string;
|
|
748
|
+
metadata?: Record<string, string> | undefined;
|
|
1035
749
|
}>;
|
|
1036
750
|
providerProductId: string;
|
|
1037
|
-
increments: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
|
|
751
|
+
increments: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
|
|
1038
752
|
metadata?: Record<string, string> | undefined;
|
|
1039
753
|
prorationDisabled?: boolean | undefined;
|
|
1040
754
|
autoRechargeable?: boolean | undefined;
|
|
@@ -1044,23 +758,14 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
1044
758
|
name: string;
|
|
1045
759
|
description: string;
|
|
1046
760
|
prices: Record<string, {
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
metadata?: Record<string, string> | undefined;
|
|
1053
|
-
};
|
|
1054
|
-
year?: {
|
|
1055
|
-
amount: number;
|
|
1056
|
-
currency: "usd";
|
|
1057
|
-
interval: "month" | "year";
|
|
1058
|
-
providerPriceId: string;
|
|
1059
|
-
metadata?: Record<string, string> | undefined;
|
|
1060
|
-
} | undefined;
|
|
761
|
+
amount: number;
|
|
762
|
+
currency: "usd";
|
|
763
|
+
interval: "month" | "year";
|
|
764
|
+
providerPriceId: string;
|
|
765
|
+
metadata?: Record<string, string> | undefined;
|
|
1061
766
|
}>;
|
|
1062
767
|
providerProductId: string;
|
|
1063
|
-
increments: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
|
|
768
|
+
increments: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
|
|
1064
769
|
metadata?: Record<string, string> | undefined;
|
|
1065
770
|
prorationDisabled?: boolean | undefined;
|
|
1066
771
|
autoRechargeable?: boolean | undefined;
|
|
@@ -1186,7 +891,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
1186
891
|
providerPriceId: string;
|
|
1187
892
|
metadata?: Record<string, string> | undefined;
|
|
1188
893
|
}>>;
|
|
1189
|
-
features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
|
|
894
|
+
features: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
|
|
1190
895
|
providerProductId: string;
|
|
1191
896
|
metadata?: Record<string, string> | undefined;
|
|
1192
897
|
}>;
|
|
@@ -1195,23 +900,14 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
1195
900
|
name: string;
|
|
1196
901
|
description: string;
|
|
1197
902
|
prices: Record<string, {
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
metadata?: Record<string, string> | undefined;
|
|
1204
|
-
};
|
|
1205
|
-
year?: {
|
|
1206
|
-
amount: number;
|
|
1207
|
-
currency: "usd";
|
|
1208
|
-
interval: "month" | "year";
|
|
1209
|
-
providerPriceId: string;
|
|
1210
|
-
metadata?: Record<string, string> | undefined;
|
|
1211
|
-
} | undefined;
|
|
903
|
+
amount: number;
|
|
904
|
+
currency: "usd";
|
|
905
|
+
interval: "month" | "year";
|
|
906
|
+
providerPriceId: string;
|
|
907
|
+
metadata?: Record<string, string> | undefined;
|
|
1212
908
|
}>;
|
|
1213
909
|
providerProductId: string;
|
|
1214
|
-
increments: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
|
|
910
|
+
increments: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
|
|
1215
911
|
metadata?: Record<string, string> | undefined;
|
|
1216
912
|
prorationDisabled?: boolean | undefined;
|
|
1217
913
|
autoRechargeable?: boolean | undefined;
|
|
@@ -1261,7 +957,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
1261
957
|
providerPriceId: string;
|
|
1262
958
|
metadata?: Record<string, string> | undefined;
|
|
1263
959
|
}>>;
|
|
1264
|
-
features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
|
|
960
|
+
features: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
|
|
1265
961
|
providerProductId: string;
|
|
1266
962
|
metadata?: Record<string, string> | undefined;
|
|
1267
963
|
}>;
|
|
@@ -1270,23 +966,14 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
1270
966
|
name: string;
|
|
1271
967
|
description: string;
|
|
1272
968
|
prices: Record<string, {
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
metadata?: Record<string, string> | undefined;
|
|
1279
|
-
};
|
|
1280
|
-
year?: {
|
|
1281
|
-
amount: number;
|
|
1282
|
-
currency: "usd";
|
|
1283
|
-
interval: "month" | "year";
|
|
1284
|
-
providerPriceId: string;
|
|
1285
|
-
metadata?: Record<string, string> | undefined;
|
|
1286
|
-
} | undefined;
|
|
969
|
+
amount: number;
|
|
970
|
+
currency: "usd";
|
|
971
|
+
interval: "month" | "year";
|
|
972
|
+
providerPriceId: string;
|
|
973
|
+
metadata?: Record<string, string> | undefined;
|
|
1287
974
|
}>;
|
|
1288
975
|
providerProductId: string;
|
|
1289
|
-
increments: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
|
|
976
|
+
increments: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
|
|
1290
977
|
metadata?: Record<string, string> | undefined;
|
|
1291
978
|
prorationDisabled?: boolean | undefined;
|
|
1292
979
|
autoRechargeable?: boolean | undefined;
|