@bpinternal/const 0.19.0 → 0.20.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.
|
@@ -5,20 +5,11 @@ export declare const addons: {
|
|
|
5
5
|
readonly name: "Add-on - Conversation Sessions";
|
|
6
6
|
readonly description: "Adds 500 conversations sessions per month";
|
|
7
7
|
readonly prices: Record<string, {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
metadata?: Record<string, string> | undefined;
|
|
14
|
-
};
|
|
15
|
-
year?: {
|
|
16
|
-
amount: number;
|
|
17
|
-
currency: "usd";
|
|
18
|
-
interval: "month" | "year";
|
|
19
|
-
providerPriceId: string;
|
|
20
|
-
metadata?: Record<string, string> | undefined;
|
|
21
|
-
} | undefined;
|
|
8
|
+
amount: number;
|
|
9
|
+
currency: "usd";
|
|
10
|
+
interval: "month" | "year";
|
|
11
|
+
providerPriceId: string;
|
|
12
|
+
metadata?: Record<string, string> | undefined;
|
|
22
13
|
}>;
|
|
23
14
|
readonly increments: {
|
|
24
15
|
readonly conversation_sessions: 500;
|
|
@@ -31,20 +22,11 @@ export declare const addons: {
|
|
|
31
22
|
readonly name: "Add-on - Storage";
|
|
32
23
|
readonly description: "Adds table rows, vector db space and files";
|
|
33
24
|
readonly prices: Record<string, {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
metadata?: Record<string, string> | undefined;
|
|
40
|
-
};
|
|
41
|
-
year?: {
|
|
42
|
-
amount: number;
|
|
43
|
-
currency: "usd";
|
|
44
|
-
interval: "month" | "year";
|
|
45
|
-
providerPriceId: string;
|
|
46
|
-
metadata?: Record<string, string> | undefined;
|
|
47
|
-
} | undefined;
|
|
25
|
+
amount: number;
|
|
26
|
+
currency: "usd";
|
|
27
|
+
interval: "month" | "year";
|
|
28
|
+
providerPriceId: string;
|
|
29
|
+
metadata?: Record<string, string> | undefined;
|
|
48
30
|
}>;
|
|
49
31
|
readonly increments: {
|
|
50
32
|
readonly table_rows: 100000;
|
|
@@ -7,12 +7,10 @@ const constantMonthlyPrice = (amount, scope = ['community', 'plus', 'team', 'ent
|
|
|
7
7
|
return scope
|
|
8
8
|
.map((plan) => ({
|
|
9
9
|
[plan]: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
|
|
15
|
-
},
|
|
10
|
+
amount,
|
|
11
|
+
currency: 'usd',
|
|
12
|
+
interval: 'month',
|
|
13
|
+
providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
|
|
16
14
|
},
|
|
17
15
|
}))
|
|
18
16
|
.reduce((acc, curr) => ({ ...acc, ...curr }), {});
|
|
@@ -113,27 +113,11 @@ 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
|
-
|
|
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,111 +136,6 @@ export declare const addonPlanPricesSchema: z.ZodObject<{
|
|
|
152
136
|
providerPriceId: string;
|
|
153
137
|
metadata?: Record<string, string> | undefined;
|
|
154
138
|
}>>;
|
|
155
|
-
}, "strip", z.ZodTypeAny, {
|
|
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
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"]>, z.ZodNumber>;
|
|
261
140
|
prorationDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
262
141
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -268,20 +147,11 @@ 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
157
|
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>>;
|
|
@@ -294,20 +164,11 @@ 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
174
|
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>>;
|
|
@@ -487,74 +348,23 @@ 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
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"]>, z.ZodNumber>;
|
|
560
370
|
prorationDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -567,20 +377,11 @@ 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
387
|
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>>;
|
|
@@ -593,20 +394,11 @@ 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
404
|
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>>;
|
|
@@ -744,20 +536,11 @@ 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
546
|
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>>;
|
|
@@ -819,20 +602,11 @@ 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
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>>;
|
|
@@ -938,74 +712,23 @@ 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
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"]>, z.ZodNumber>;
|
|
1011
734
|
prorationDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1018,20 +741,11 @@ 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
751
|
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>>;
|
|
@@ -1044,20 +758,11 @@ 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
768
|
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>>;
|
|
@@ -1195,20 +900,11 @@ 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
910
|
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>>;
|
|
@@ -1270,20 +966,11 @@ 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
976
|
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>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.billingConfigSchema = exports.billingVersionConfigSchema = exports.meterSchema = exports.addOnSchema = exports.
|
|
3
|
+
exports.billingConfigSchema = exports.billingVersionConfigSchema = exports.meterSchema = exports.addOnSchema = exports.planSchema = exports.meteredPriceSchema = exports.priceSchema = exports.meterTypeSchema = exports.aggregationSchema = exports.unitAmountSchema = exports.intervalSchema = exports.featureSchema = exports.UNKNOWN_STRIPE_ID = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const features_1 = require("../features");
|
|
6
6
|
/**
|
|
@@ -37,15 +37,11 @@ exports.planSchema = zod_1.z.object({
|
|
|
37
37
|
metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
|
|
38
38
|
providerProductId: zod_1.z.string(), // pulumi
|
|
39
39
|
});
|
|
40
|
-
exports.addonPlanPricesSchema = zod_1.z.object({
|
|
41
|
-
month: exports.priceSchema,
|
|
42
|
-
year: exports.priceSchema.optional(),
|
|
43
|
-
});
|
|
44
40
|
exports.addOnSchema = zod_1.z.object({
|
|
45
41
|
id: zod_1.z.string(),
|
|
46
42
|
name: zod_1.z.string(),
|
|
47
43
|
description: zod_1.z.string(),
|
|
48
|
-
prices: zod_1.z.record(zod_1.z.string(), exports.
|
|
44
|
+
prices: zod_1.z.record(zod_1.z.string(), exports.priceSchema),
|
|
49
45
|
increments: zod_1.z.record(exports.featureSchema, zod_1.z.number().positive()),
|
|
50
46
|
prorationDisabled: zod_1.z.boolean().optional(),
|
|
51
47
|
metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
|
|
@@ -159,20 +159,11 @@ export declare const billingConfig: {
|
|
|
159
159
|
readonly name: "Add-on - Conversation Sessions";
|
|
160
160
|
readonly description: "Adds 500 conversations sessions per month";
|
|
161
161
|
readonly prices: Record<string, {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
metadata?: Record<string, string> | undefined;
|
|
168
|
-
};
|
|
169
|
-
year?: {
|
|
170
|
-
amount: number;
|
|
171
|
-
currency: "usd";
|
|
172
|
-
interval: "month" | "year";
|
|
173
|
-
providerPriceId: string;
|
|
174
|
-
metadata?: Record<string, string> | undefined;
|
|
175
|
-
} | undefined;
|
|
162
|
+
amount: number;
|
|
163
|
+
currency: "usd";
|
|
164
|
+
interval: "month" | "year";
|
|
165
|
+
providerPriceId: string;
|
|
166
|
+
metadata?: Record<string, string> | undefined;
|
|
176
167
|
}>;
|
|
177
168
|
readonly increments: {
|
|
178
169
|
readonly conversation_sessions: 500;
|
|
@@ -185,20 +176,11 @@ export declare const billingConfig: {
|
|
|
185
176
|
readonly name: "Add-on - Storage";
|
|
186
177
|
readonly description: "Adds table rows, vector db space and files";
|
|
187
178
|
readonly prices: Record<string, {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
metadata?: Record<string, string> | undefined;
|
|
194
|
-
};
|
|
195
|
-
year?: {
|
|
196
|
-
amount: number;
|
|
197
|
-
currency: "usd";
|
|
198
|
-
interval: "month" | "year";
|
|
199
|
-
providerPriceId: string;
|
|
200
|
-
metadata?: Record<string, string> | undefined;
|
|
201
|
-
} | undefined;
|
|
179
|
+
amount: number;
|
|
180
|
+
currency: "usd";
|
|
181
|
+
interval: "month" | "year";
|
|
182
|
+
providerPriceId: string;
|
|
183
|
+
metadata?: Record<string, string> | undefined;
|
|
202
184
|
}>;
|
|
203
185
|
readonly increments: {
|
|
204
186
|
readonly table_rows: 100000;
|
|
@@ -430,20 +412,11 @@ export declare const billingDefinitions: {
|
|
|
430
412
|
readonly name: "Add-on - Conversation Sessions";
|
|
431
413
|
readonly description: "Adds 500 conversations sessions per month";
|
|
432
414
|
readonly prices: Record<string, {
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
metadata?: Record<string, string> | undefined;
|
|
439
|
-
};
|
|
440
|
-
year?: {
|
|
441
|
-
amount: number;
|
|
442
|
-
currency: "usd";
|
|
443
|
-
interval: "month" | "year";
|
|
444
|
-
providerPriceId: string;
|
|
445
|
-
metadata?: Record<string, string> | undefined;
|
|
446
|
-
} | undefined;
|
|
415
|
+
amount: number;
|
|
416
|
+
currency: "usd";
|
|
417
|
+
interval: "month" | "year";
|
|
418
|
+
providerPriceId: string;
|
|
419
|
+
metadata?: Record<string, string> | undefined;
|
|
447
420
|
}>;
|
|
448
421
|
readonly increments: {
|
|
449
422
|
readonly conversation_sessions: 500;
|
|
@@ -456,20 +429,11 @@ export declare const billingDefinitions: {
|
|
|
456
429
|
readonly name: "Add-on - Storage";
|
|
457
430
|
readonly description: "Adds table rows, vector db space and files";
|
|
458
431
|
readonly prices: Record<string, {
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
metadata?: Record<string, string> | undefined;
|
|
465
|
-
};
|
|
466
|
-
year?: {
|
|
467
|
-
amount: number;
|
|
468
|
-
currency: "usd";
|
|
469
|
-
interval: "month" | "year";
|
|
470
|
-
providerPriceId: string;
|
|
471
|
-
metadata?: Record<string, string> | undefined;
|
|
472
|
-
} | undefined;
|
|
432
|
+
amount: number;
|
|
433
|
+
currency: "usd";
|
|
434
|
+
interval: "month" | "year";
|
|
435
|
+
providerPriceId: string;
|
|
436
|
+
metadata?: Record<string, string> | undefined;
|
|
473
437
|
}>;
|
|
474
438
|
readonly increments: {
|
|
475
439
|
readonly table_rows: 100000;
|