@bpinternal/const 0.17.0 → 0.19.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 +45 -172
- package/dist/billing-next/config/addons.js +24 -169
- package/dist/billing-next/config/schemas.d.ts +426 -253
- package/dist/billing-next/config/schemas.js +8 -19
- package/dist/billing-next/config/versions.d.ts +90 -344
- package/dist/billing-next/consts.d.ts +1 -0
- package/dist/billing-next/consts.js +2 -1
- package/dist/limits.d.ts +4 -0
- package/dist/limits.js +4 -0
- package/package.json +1 -1
|
@@ -113,11 +113,27 @@ export declare const planSchema: z.ZodObject<{
|
|
|
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
|
-
|
|
116
|
+
export declare const addonPlanPricesSchema: z.ZodObject<{
|
|
117
|
+
month: z.ZodObject<{
|
|
118
|
+
amount: z.ZodNumber;
|
|
119
|
+
currency: z.ZodEnum<["usd"]>;
|
|
120
|
+
interval: z.ZodEnum<["month", "year"]>;
|
|
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<{
|
|
121
137
|
amount: z.ZodNumber;
|
|
122
138
|
currency: z.ZodEnum<["usd"]>;
|
|
123
139
|
interval: z.ZodEnum<["month", "year"]>;
|
|
@@ -136,68 +152,140 @@ export declare const addOnSchema: z.ZodEffects<z.ZodObject<{
|
|
|
136
152
|
providerPriceId: string;
|
|
137
153
|
metadata?: Record<string, string> | undefined;
|
|
138
154
|
}>>;
|
|
139
|
-
feature: 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"]>;
|
|
140
|
-
increment: z.ZodNumber;
|
|
141
|
-
increments: z.ZodOptional<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>>;
|
|
142
|
-
prorationDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
143
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
144
|
-
autoRechargeable: z.ZodOptional<z.ZodBoolean>;
|
|
145
|
-
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
146
|
-
providerProductId: z.ZodString;
|
|
147
155
|
}, "strip", z.ZodTypeAny, {
|
|
148
|
-
|
|
149
|
-
name: string;
|
|
150
|
-
description: string;
|
|
151
|
-
prices: Partial<Record<"month" | "year", {
|
|
156
|
+
month: {
|
|
152
157
|
amount: number;
|
|
153
158
|
currency: "usd";
|
|
154
159
|
interval: "month" | "year";
|
|
155
160
|
providerPriceId: string;
|
|
156
161
|
metadata?: Record<string, string> | undefined;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
hidden?: boolean | 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;
|
|
166
170
|
}, {
|
|
167
|
-
|
|
168
|
-
name: string;
|
|
169
|
-
description: string;
|
|
170
|
-
prices: Partial<Record<"month" | "year", {
|
|
171
|
+
month: {
|
|
171
172
|
amount: number;
|
|
172
173
|
currency: "usd";
|
|
173
174
|
interval: "month" | "year";
|
|
174
175
|
providerPriceId: string;
|
|
175
176
|
metadata?: Record<string, string> | undefined;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
feature: "bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions";
|
|
179
|
-
increment: number;
|
|
180
|
-
metadata?: Record<string, string> | undefined;
|
|
181
|
-
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>> | undefined;
|
|
182
|
-
prorationDisabled?: boolean | undefined;
|
|
183
|
-
autoRechargeable?: boolean | undefined;
|
|
184
|
-
hidden?: boolean | undefined;
|
|
185
|
-
}>, {
|
|
186
|
-
id: string;
|
|
187
|
-
name: string;
|
|
188
|
-
description: string;
|
|
189
|
-
prices: Partial<Record<"month" | "year", {
|
|
177
|
+
};
|
|
178
|
+
year?: {
|
|
190
179
|
amount: number;
|
|
191
180
|
currency: "usd";
|
|
192
181
|
interval: "month" | "year";
|
|
193
182
|
providerPriceId: string;
|
|
194
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;
|
|
195
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>;
|
|
261
|
+
prorationDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
262
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
263
|
+
autoRechargeable: z.ZodOptional<z.ZodBoolean>;
|
|
264
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
265
|
+
providerProductId: z.ZodString;
|
|
266
|
+
}, "strip", z.ZodTypeAny, {
|
|
267
|
+
id: string;
|
|
268
|
+
name: string;
|
|
269
|
+
description: string;
|
|
270
|
+
prices: Record<string, {
|
|
271
|
+
month: {
|
|
272
|
+
amount: number;
|
|
273
|
+
currency: "usd";
|
|
274
|
+
interval: "month" | "year";
|
|
275
|
+
providerPriceId: string;
|
|
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;
|
|
285
|
+
}>;
|
|
196
286
|
providerProductId: string;
|
|
197
|
-
|
|
198
|
-
increment: number;
|
|
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>>;
|
|
199
288
|
metadata?: Record<string, string> | undefined;
|
|
200
|
-
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>> | undefined;
|
|
201
289
|
prorationDisabled?: boolean | undefined;
|
|
202
290
|
autoRechargeable?: boolean | undefined;
|
|
203
291
|
hidden?: boolean | undefined;
|
|
@@ -205,18 +293,25 @@ export declare const addOnSchema: z.ZodEffects<z.ZodObject<{
|
|
|
205
293
|
id: string;
|
|
206
294
|
name: string;
|
|
207
295
|
description: string;
|
|
208
|
-
prices:
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
296
|
+
prices: Record<string, {
|
|
297
|
+
month: {
|
|
298
|
+
amount: number;
|
|
299
|
+
currency: "usd";
|
|
300
|
+
interval: "month" | "year";
|
|
301
|
+
providerPriceId: string;
|
|
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;
|
|
311
|
+
}>;
|
|
215
312
|
providerProductId: string;
|
|
216
|
-
|
|
217
|
-
increment: number;
|
|
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>>;
|
|
218
314
|
metadata?: Record<string, string> | undefined;
|
|
219
|
-
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>> | undefined;
|
|
220
315
|
prorationDisabled?: boolean | undefined;
|
|
221
316
|
autoRechargeable?: boolean | undefined;
|
|
222
317
|
hidden?: boolean | undefined;
|
|
@@ -387,32 +482,81 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
387
482
|
providerProductId: string;
|
|
388
483
|
metadata?: Record<string, string> | undefined;
|
|
389
484
|
}>>;
|
|
390
|
-
addons: z.ZodRecord<z.ZodString, z.
|
|
485
|
+
addons: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
391
486
|
id: z.ZodString;
|
|
392
487
|
name: z.ZodString;
|
|
393
488
|
description: z.ZodString;
|
|
394
|
-
prices: z.ZodRecord<z.
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
489
|
+
prices: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
490
|
+
month: z.ZodObject<{
|
|
491
|
+
amount: z.ZodNumber;
|
|
492
|
+
currency: z.ZodEnum<["usd"]>;
|
|
493
|
+
interval: z.ZodEnum<["month", "year"]>;
|
|
494
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
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
|
+
}>>;
|
|
400
528
|
}, "strip", z.ZodTypeAny, {
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
529
|
+
month: {
|
|
530
|
+
amount: number;
|
|
531
|
+
currency: "usd";
|
|
532
|
+
interval: "month" | "year";
|
|
533
|
+
providerPriceId: string;
|
|
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;
|
|
406
543
|
}, {
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
544
|
+
month: {
|
|
545
|
+
amount: number;
|
|
546
|
+
currency: "usd";
|
|
547
|
+
interval: "month" | "year";
|
|
548
|
+
providerPriceId: string;
|
|
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;
|
|
412
558
|
}>>;
|
|
413
|
-
|
|
414
|
-
increment: z.ZodNumber;
|
|
415
|
-
increments: z.ZodOptional<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>>;
|
|
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>;
|
|
416
560
|
prorationDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
417
561
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
418
562
|
autoRechargeable: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -422,56 +566,25 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
422
566
|
id: string;
|
|
423
567
|
name: string;
|
|
424
568
|
description: string;
|
|
425
|
-
prices:
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
id: string;
|
|
442
|
-
name: string;
|
|
443
|
-
description: string;
|
|
444
|
-
prices: Partial<Record<"month" | "year", {
|
|
445
|
-
amount: number;
|
|
446
|
-
currency: "usd";
|
|
447
|
-
interval: "month" | "year";
|
|
448
|
-
providerPriceId: string;
|
|
449
|
-
metadata?: Record<string, string> | undefined;
|
|
450
|
-
}>>;
|
|
451
|
-
providerProductId: string;
|
|
452
|
-
feature: "bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions";
|
|
453
|
-
increment: number;
|
|
454
|
-
metadata?: Record<string, string> | undefined;
|
|
455
|
-
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>> | undefined;
|
|
456
|
-
prorationDisabled?: boolean | undefined;
|
|
457
|
-
autoRechargeable?: boolean | undefined;
|
|
458
|
-
hidden?: boolean | undefined;
|
|
459
|
-
}>, {
|
|
460
|
-
id: string;
|
|
461
|
-
name: string;
|
|
462
|
-
description: string;
|
|
463
|
-
prices: Partial<Record<"month" | "year", {
|
|
464
|
-
amount: number;
|
|
465
|
-
currency: "usd";
|
|
466
|
-
interval: "month" | "year";
|
|
467
|
-
providerPriceId: string;
|
|
468
|
-
metadata?: Record<string, string> | undefined;
|
|
469
|
-
}>>;
|
|
569
|
+
prices: Record<string, {
|
|
570
|
+
month: {
|
|
571
|
+
amount: number;
|
|
572
|
+
currency: "usd";
|
|
573
|
+
interval: "month" | "year";
|
|
574
|
+
providerPriceId: string;
|
|
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;
|
|
584
|
+
}>;
|
|
470
585
|
providerProductId: string;
|
|
471
|
-
|
|
472
|
-
increment: number;
|
|
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>>;
|
|
473
587
|
metadata?: Record<string, string> | undefined;
|
|
474
|
-
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>> | undefined;
|
|
475
588
|
prorationDisabled?: boolean | undefined;
|
|
476
589
|
autoRechargeable?: boolean | undefined;
|
|
477
590
|
hidden?: boolean | undefined;
|
|
@@ -479,18 +592,25 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
479
592
|
id: string;
|
|
480
593
|
name: string;
|
|
481
594
|
description: string;
|
|
482
|
-
prices:
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
595
|
+
prices: Record<string, {
|
|
596
|
+
month: {
|
|
597
|
+
amount: number;
|
|
598
|
+
currency: "usd";
|
|
599
|
+
interval: "month" | "year";
|
|
600
|
+
providerPriceId: string;
|
|
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;
|
|
610
|
+
}>;
|
|
489
611
|
providerProductId: string;
|
|
490
|
-
|
|
491
|
-
increment: number;
|
|
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>>;
|
|
492
613
|
metadata?: Record<string, string> | undefined;
|
|
493
|
-
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>> | undefined;
|
|
494
614
|
prorationDisabled?: boolean | undefined;
|
|
495
615
|
autoRechargeable?: boolean | undefined;
|
|
496
616
|
hidden?: boolean | undefined;
|
|
@@ -623,18 +743,25 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
623
743
|
id: string;
|
|
624
744
|
name: string;
|
|
625
745
|
description: string;
|
|
626
|
-
prices:
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
746
|
+
prices: Record<string, {
|
|
747
|
+
month: {
|
|
748
|
+
amount: number;
|
|
749
|
+
currency: "usd";
|
|
750
|
+
interval: "month" | "year";
|
|
751
|
+
providerPriceId: string;
|
|
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;
|
|
761
|
+
}>;
|
|
633
762
|
providerProductId: string;
|
|
634
|
-
|
|
635
|
-
increment: number;
|
|
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>>;
|
|
636
764
|
metadata?: Record<string, string> | undefined;
|
|
637
|
-
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>> | undefined;
|
|
638
765
|
prorationDisabled?: boolean | undefined;
|
|
639
766
|
autoRechargeable?: boolean | undefined;
|
|
640
767
|
hidden?: boolean | undefined;
|
|
@@ -691,18 +818,25 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
691
818
|
id: string;
|
|
692
819
|
name: string;
|
|
693
820
|
description: string;
|
|
694
|
-
prices:
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
821
|
+
prices: Record<string, {
|
|
822
|
+
month: {
|
|
823
|
+
amount: number;
|
|
824
|
+
currency: "usd";
|
|
825
|
+
interval: "month" | "year";
|
|
826
|
+
providerPriceId: string;
|
|
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;
|
|
836
|
+
}>;
|
|
701
837
|
providerProductId: string;
|
|
702
|
-
|
|
703
|
-
increment: number;
|
|
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>>;
|
|
704
839
|
metadata?: Record<string, string> | undefined;
|
|
705
|
-
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>> | undefined;
|
|
706
840
|
prorationDisabled?: boolean | undefined;
|
|
707
841
|
autoRechargeable?: boolean | undefined;
|
|
708
842
|
hidden?: boolean | undefined;
|
|
@@ -799,32 +933,81 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
799
933
|
providerProductId: string;
|
|
800
934
|
metadata?: Record<string, string> | undefined;
|
|
801
935
|
}>>;
|
|
802
|
-
addons: z.ZodRecord<z.ZodString, z.
|
|
936
|
+
addons: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
803
937
|
id: z.ZodString;
|
|
804
938
|
name: z.ZodString;
|
|
805
939
|
description: z.ZodString;
|
|
806
|
-
prices: z.ZodRecord<z.
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
940
|
+
prices: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
941
|
+
month: z.ZodObject<{
|
|
942
|
+
amount: z.ZodNumber;
|
|
943
|
+
currency: z.ZodEnum<["usd"]>;
|
|
944
|
+
interval: z.ZodEnum<["month", "year"]>;
|
|
945
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
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
|
+
}>>;
|
|
812
979
|
}, "strip", z.ZodTypeAny, {
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
980
|
+
month: {
|
|
981
|
+
amount: number;
|
|
982
|
+
currency: "usd";
|
|
983
|
+
interval: "month" | "year";
|
|
984
|
+
providerPriceId: string;
|
|
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;
|
|
818
994
|
}, {
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
995
|
+
month: {
|
|
996
|
+
amount: number;
|
|
997
|
+
currency: "usd";
|
|
998
|
+
interval: "month" | "year";
|
|
999
|
+
providerPriceId: string;
|
|
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;
|
|
824
1009
|
}>>;
|
|
825
|
-
|
|
826
|
-
increment: z.ZodNumber;
|
|
827
|
-
increments: z.ZodOptional<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>>;
|
|
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>;
|
|
828
1011
|
prorationDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
829
1012
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
830
1013
|
autoRechargeable: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -834,18 +1017,25 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
834
1017
|
id: string;
|
|
835
1018
|
name: string;
|
|
836
1019
|
description: string;
|
|
837
|
-
prices:
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
1020
|
+
prices: Record<string, {
|
|
1021
|
+
month: {
|
|
1022
|
+
amount: number;
|
|
1023
|
+
currency: "usd";
|
|
1024
|
+
interval: "month" | "year";
|
|
1025
|
+
providerPriceId: string;
|
|
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;
|
|
1035
|
+
}>;
|
|
844
1036
|
providerProductId: string;
|
|
845
|
-
|
|
846
|
-
increment: number;
|
|
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>>;
|
|
847
1038
|
metadata?: Record<string, string> | undefined;
|
|
848
|
-
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>> | undefined;
|
|
849
1039
|
prorationDisabled?: boolean | undefined;
|
|
850
1040
|
autoRechargeable?: boolean | undefined;
|
|
851
1041
|
hidden?: boolean | undefined;
|
|
@@ -853,56 +1043,25 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
853
1043
|
id: string;
|
|
854
1044
|
name: string;
|
|
855
1045
|
description: string;
|
|
856
|
-
prices:
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
1046
|
+
prices: Record<string, {
|
|
1047
|
+
month: {
|
|
1048
|
+
amount: number;
|
|
1049
|
+
currency: "usd";
|
|
1050
|
+
interval: "month" | "year";
|
|
1051
|
+
providerPriceId: string;
|
|
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;
|
|
1061
|
+
}>;
|
|
863
1062
|
providerProductId: string;
|
|
864
|
-
|
|
865
|
-
increment: number;
|
|
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>>;
|
|
866
1064
|
metadata?: Record<string, string> | undefined;
|
|
867
|
-
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>> | undefined;
|
|
868
|
-
prorationDisabled?: boolean | undefined;
|
|
869
|
-
autoRechargeable?: boolean | undefined;
|
|
870
|
-
hidden?: boolean | undefined;
|
|
871
|
-
}>, {
|
|
872
|
-
id: string;
|
|
873
|
-
name: string;
|
|
874
|
-
description: string;
|
|
875
|
-
prices: Partial<Record<"month" | "year", {
|
|
876
|
-
amount: number;
|
|
877
|
-
currency: "usd";
|
|
878
|
-
interval: "month" | "year";
|
|
879
|
-
providerPriceId: string;
|
|
880
|
-
metadata?: Record<string, string> | undefined;
|
|
881
|
-
}>>;
|
|
882
|
-
providerProductId: string;
|
|
883
|
-
feature: "bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions";
|
|
884
|
-
increment: number;
|
|
885
|
-
metadata?: Record<string, string> | undefined;
|
|
886
|
-
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>> | undefined;
|
|
887
|
-
prorationDisabled?: boolean | undefined;
|
|
888
|
-
autoRechargeable?: boolean | undefined;
|
|
889
|
-
hidden?: boolean | undefined;
|
|
890
|
-
}, {
|
|
891
|
-
id: string;
|
|
892
|
-
name: string;
|
|
893
|
-
description: string;
|
|
894
|
-
prices: Partial<Record<"month" | "year", {
|
|
895
|
-
amount: number;
|
|
896
|
-
currency: "usd";
|
|
897
|
-
interval: "month" | "year";
|
|
898
|
-
providerPriceId: string;
|
|
899
|
-
metadata?: Record<string, string> | undefined;
|
|
900
|
-
}>>;
|
|
901
|
-
providerProductId: string;
|
|
902
|
-
feature: "bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions";
|
|
903
|
-
increment: number;
|
|
904
|
-
metadata?: Record<string, string> | undefined;
|
|
905
|
-
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>> | undefined;
|
|
906
1065
|
prorationDisabled?: boolean | undefined;
|
|
907
1066
|
autoRechargeable?: boolean | undefined;
|
|
908
1067
|
hidden?: boolean | undefined;
|
|
@@ -1035,18 +1194,25 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
1035
1194
|
id: string;
|
|
1036
1195
|
name: string;
|
|
1037
1196
|
description: string;
|
|
1038
|
-
prices:
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1197
|
+
prices: Record<string, {
|
|
1198
|
+
month: {
|
|
1199
|
+
amount: number;
|
|
1200
|
+
currency: "usd";
|
|
1201
|
+
interval: "month" | "year";
|
|
1202
|
+
providerPriceId: string;
|
|
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;
|
|
1212
|
+
}>;
|
|
1045
1213
|
providerProductId: string;
|
|
1046
|
-
|
|
1047
|
-
increment: number;
|
|
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>>;
|
|
1048
1215
|
metadata?: Record<string, string> | undefined;
|
|
1049
|
-
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>> | undefined;
|
|
1050
1216
|
prorationDisabled?: boolean | undefined;
|
|
1051
1217
|
autoRechargeable?: boolean | undefined;
|
|
1052
1218
|
hidden?: boolean | undefined;
|
|
@@ -1103,18 +1269,25 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
1103
1269
|
id: string;
|
|
1104
1270
|
name: string;
|
|
1105
1271
|
description: string;
|
|
1106
|
-
prices:
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1272
|
+
prices: Record<string, {
|
|
1273
|
+
month: {
|
|
1274
|
+
amount: number;
|
|
1275
|
+
currency: "usd";
|
|
1276
|
+
interval: "month" | "year";
|
|
1277
|
+
providerPriceId: string;
|
|
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;
|
|
1287
|
+
}>;
|
|
1113
1288
|
providerProductId: string;
|
|
1114
|
-
|
|
1115
|
-
increment: number;
|
|
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>>;
|
|
1116
1290
|
metadata?: Record<string, string> | undefined;
|
|
1117
|
-
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>> | undefined;
|
|
1118
1291
|
prorationDisabled?: boolean | undefined;
|
|
1119
1292
|
autoRechargeable?: boolean | undefined;
|
|
1120
1293
|
hidden?: boolean | undefined;
|