@bpinternal/const 0.12.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/billing-legacy/consts.d.ts +9 -0
  2. package/dist/billing-legacy/consts.js +53 -0
  3. package/dist/billing-legacy/index.d.ts +2 -0
  4. package/dist/billing-legacy/index.js +18 -0
  5. package/dist/billing-next/config/addons.d.ts +165 -0
  6. package/dist/{billing-addons.js → billing-next/config/addons.js} +64 -57
  7. package/dist/billing-next/config/index.d.ts +5 -0
  8. package/dist/billing-next/config/index.js +18 -0
  9. package/dist/{billing-meters.d.ts → billing-next/config/meters.d.ts} +22 -12
  10. package/dist/{billing-meters.js → billing-next/config/meters.js} +15 -9
  11. package/dist/{billing-plans.d.ts → billing-next/config/plans.d.ts} +59 -68
  12. package/dist/{billing-plans.js → billing-next/config/plans.js} +40 -68
  13. package/dist/{schema.d.ts → billing-next/config/schemas.d.ts} +392 -196
  14. package/dist/{schema.js → billing-next/config/schemas.js} +19 -12
  15. package/dist/billing-next/config/versions.d.ts +747 -0
  16. package/dist/billing-next/config/versions.js +27 -0
  17. package/dist/billing-next/consts.d.ts +5 -0
  18. package/dist/billing-next/consts.js +8 -0
  19. package/dist/billing-next/features.d.ts +95 -0
  20. package/dist/billing-next/features.js +92 -0
  21. package/dist/billing-next/index.d.ts +3 -0
  22. package/dist/billing-next/index.js +19 -0
  23. package/dist/billing-next/type-utils.d.ts +4 -0
  24. package/dist/{types.js → billing-next/type-utils.js} +1 -0
  25. package/dist/index.d.ts +2 -9
  26. package/dist/index.js +2 -10
  27. package/package.json +1 -1
  28. package/dist/billing-addons.d.ts +0 -136
  29. package/dist/billing-features.d.ts +0 -94
  30. package/dist/billing-features.js +0 -132
  31. package/dist/billing-versions.d.ts +0 -10
  32. package/dist/billing-versions.js +0 -37
  33. package/dist/types.d.ts +0 -82
  34. package/dist/usage-metadata.d.ts +0 -22
  35. package/dist/usage-metadata.js +0 -138
  36. /package/dist/{quotas.d.ts → billing-legacy/quotas.d.ts} +0 -0
  37. /package/dist/{quotas.js → billing-legacy/quotas.js} +0 -0
@@ -0,0 +1,747 @@
1
+ export type BillingVersionId = keyof typeof billingConfig;
2
+ export declare const billingConfig: {
3
+ readonly v4: {
4
+ readonly version: "v4";
5
+ readonly name: "Billing Version 4";
6
+ readonly description: "New billing system with credit grants and entitlements";
7
+ readonly plans: {
8
+ readonly community: {
9
+ readonly id: "community";
10
+ readonly name: "Plan - Pay as you go";
11
+ readonly description: "Free plan for developers";
12
+ readonly tierIndex: 0;
13
+ readonly prices: {
14
+ readonly month: {
15
+ readonly amount: -1;
16
+ readonly currency: "usd";
17
+ readonly interval: "month";
18
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
19
+ };
20
+ };
21
+ readonly features: {
22
+ readonly incoming_messages_events: 500;
23
+ readonly integration_spend: 0;
24
+ readonly table_rows: 1000;
25
+ readonly bot_count: 1;
26
+ readonly collaborator_count: 1;
27
+ readonly file_storage: 100000000;
28
+ readonly vector_db_storage: 100000000;
29
+ readonly saved_versions: 3;
30
+ readonly indexed_file_count: 1000;
31
+ };
32
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
33
+ };
34
+ readonly plus: {
35
+ readonly id: "plus";
36
+ readonly name: "Plan - Plus";
37
+ readonly description: "For growing businesses";
38
+ readonly tierIndex: 1;
39
+ readonly prices: {
40
+ readonly month: {
41
+ readonly amount: 89;
42
+ readonly currency: "usd";
43
+ readonly interval: "month";
44
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
45
+ };
46
+ readonly year: {
47
+ readonly amount: 948;
48
+ readonly currency: "usd";
49
+ readonly interval: "year";
50
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
51
+ };
52
+ };
53
+ readonly features: {
54
+ readonly incoming_messages_events: 5000;
55
+ readonly integration_spend: 5000000000;
56
+ readonly table_rows: 100000;
57
+ readonly bot_count: 2;
58
+ readonly collaborator_count: 2;
59
+ readonly file_storage: 10000000000;
60
+ readonly vector_db_storage: 1000000000;
61
+ readonly saved_versions: 50;
62
+ readonly indexed_file_count: 2000;
63
+ };
64
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
65
+ };
66
+ readonly team: {
67
+ readonly id: "team";
68
+ readonly name: "Plan - Team";
69
+ readonly description: "For small teams";
70
+ readonly tierIndex: 2;
71
+ readonly prices: {
72
+ readonly month: {
73
+ readonly amount: 495;
74
+ readonly currency: "usd";
75
+ readonly interval: "month";
76
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
77
+ };
78
+ readonly year: {
79
+ readonly amount: 5346;
80
+ readonly currency: "usd";
81
+ readonly interval: "year";
82
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
83
+ };
84
+ };
85
+ readonly features: {
86
+ readonly incoming_messages_events: 50000;
87
+ readonly integration_spend: 5000000000;
88
+ readonly table_rows: 100000;
89
+ readonly bot_count: 3;
90
+ readonly collaborator_count: 3;
91
+ readonly file_storage: 10000000000;
92
+ readonly vector_db_storage: 2000000000;
93
+ readonly saved_versions: 100;
94
+ readonly indexed_file_count: 10000;
95
+ };
96
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
97
+ };
98
+ readonly enterprise: {
99
+ readonly id: "enterprise";
100
+ readonly name: "Plan - Enterprise";
101
+ readonly description: "Enterprise license subscription";
102
+ readonly tierIndex: 3;
103
+ readonly prices: {
104
+ readonly month: {
105
+ readonly amount: -1;
106
+ readonly currency: "usd";
107
+ readonly interval: "month";
108
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
109
+ };
110
+ };
111
+ readonly features: {
112
+ incoming_messages_events: number;
113
+ integration_spend: number;
114
+ table_rows: number;
115
+ bot_count: number;
116
+ collaborator_count: number;
117
+ file_storage: number;
118
+ vector_db_storage: number;
119
+ saved_versions: number;
120
+ indexed_file_count: number;
121
+ };
122
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
123
+ };
124
+ readonly managed: {
125
+ readonly id: "managed";
126
+ readonly name: "Plan - Managed";
127
+ readonly description: "Managed license subscription";
128
+ readonly tierIndex: 4;
129
+ readonly prices: {
130
+ readonly month: {
131
+ readonly amount: -1;
132
+ readonly currency: "usd";
133
+ readonly interval: "month";
134
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
135
+ };
136
+ };
137
+ readonly features: {
138
+ incoming_messages_events: number;
139
+ integration_spend: number;
140
+ table_rows: number;
141
+ bot_count: number;
142
+ collaborator_count: number;
143
+ file_storage: number;
144
+ vector_db_storage: number;
145
+ saved_versions: number;
146
+ indexed_file_count: number;
147
+ };
148
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
149
+ };
150
+ };
151
+ readonly addons: {
152
+ readonly bot_addon: {
153
+ readonly id: "bot_addon";
154
+ readonly name: "Add-on - Bot";
155
+ readonly description: "Add one more bot to your workspace";
156
+ readonly prices: {
157
+ readonly month: {
158
+ readonly amount: 10;
159
+ readonly currency: "usd";
160
+ readonly interval: "month";
161
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
162
+ };
163
+ };
164
+ readonly feature: "bot_count";
165
+ readonly increment: 1;
166
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
167
+ };
168
+ readonly collaborator_addon: {
169
+ readonly id: "collaborator_addon";
170
+ readonly name: "Add-on - Collaborators";
171
+ readonly description: "Add one more collaborator to your workspace";
172
+ readonly prices: {
173
+ readonly month: {
174
+ readonly amount: 25;
175
+ readonly currency: "usd";
176
+ readonly interval: "month";
177
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
178
+ };
179
+ };
180
+ readonly feature: "collaborator_count";
181
+ readonly increment: 1;
182
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
183
+ };
184
+ readonly messages_events_addon: {
185
+ readonly id: "messages_events_addon";
186
+ readonly name: "Add-on - Messages & Events";
187
+ readonly description: "Adds 5,000 messages and events";
188
+ readonly prices: {
189
+ readonly month: {
190
+ readonly amount: 20;
191
+ readonly currency: "usd";
192
+ readonly interval: "month";
193
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
194
+ };
195
+ };
196
+ readonly feature: "incoming_messages_events";
197
+ readonly increment: 5000;
198
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
199
+ };
200
+ readonly table_rows_addon: {
201
+ readonly id: "table_rows_addon";
202
+ readonly name: "Add-on - Table Rows";
203
+ readonly description: "Adds 100,000 additional table rows";
204
+ readonly prices: {
205
+ readonly month: {
206
+ readonly amount: 25;
207
+ readonly currency: "usd";
208
+ readonly interval: "month";
209
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
210
+ };
211
+ };
212
+ readonly feature: "table_rows";
213
+ readonly increment: 100000;
214
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
215
+ };
216
+ readonly file_storage_addon: {
217
+ readonly id: "file_storage_addon";
218
+ readonly name: "Add-on - File Storage";
219
+ readonly description: "Adds 10GB of File Storage";
220
+ readonly prices: {
221
+ readonly month: {
222
+ readonly amount: 10;
223
+ readonly currency: "usd";
224
+ readonly interval: "month";
225
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
226
+ };
227
+ };
228
+ readonly feature: "file_storage";
229
+ readonly increment: 10000000000;
230
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
231
+ };
232
+ readonly vector_db_storage_addon: {
233
+ readonly id: "vector_db_storage_addon";
234
+ readonly name: "Add-on - Vector DB Storage";
235
+ readonly description: "Add 1 GB of vector database storage";
236
+ readonly prices: {
237
+ readonly month: {
238
+ readonly amount: 20;
239
+ readonly currency: "usd";
240
+ readonly interval: "month";
241
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
242
+ };
243
+ };
244
+ readonly feature: "vector_db_storage";
245
+ readonly increment: 1000000000;
246
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
247
+ };
248
+ readonly web_search_addon: {
249
+ readonly id: "web_search_addon";
250
+ readonly name: "Web Search and Crawl";
251
+ readonly description: "Web search and crawl functionality";
252
+ readonly prices: {
253
+ readonly month: {
254
+ readonly amount: 10;
255
+ readonly currency: "usd";
256
+ readonly interval: "month";
257
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
258
+ };
259
+ };
260
+ readonly feature: "integration_spend";
261
+ readonly increment: 10000000000;
262
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
263
+ };
264
+ readonly ai_credits_addon: {
265
+ readonly id: "ai_credits_addon";
266
+ readonly name: "AI Tokens";
267
+ readonly description: "Add $25 worth of AI credits";
268
+ readonly prices: {
269
+ readonly month: {
270
+ readonly amount: 25;
271
+ readonly currency: "usd";
272
+ readonly interval: "month";
273
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
274
+ };
275
+ };
276
+ readonly feature: "integration_spend";
277
+ readonly increment: 25000000000;
278
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
279
+ };
280
+ readonly enterprise_ai_token: {
281
+ readonly id: "enterprise_ai_token";
282
+ readonly name: "Enterprise - AI Token";
283
+ readonly description: "Enterprise AI token credits";
284
+ readonly prices: {
285
+ readonly month: {
286
+ readonly amount: -1;
287
+ readonly currency: "usd";
288
+ readonly interval: "month";
289
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
290
+ };
291
+ };
292
+ readonly feature: "integration_spend";
293
+ readonly increment: 100000000000;
294
+ readonly hidden: true;
295
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
296
+ };
297
+ readonly enterprise_additional_workspace: {
298
+ readonly id: "enterprise_additional_workspace";
299
+ readonly name: "Enterprise - Additional Workspace";
300
+ readonly description: "Enterprise additional workspace";
301
+ readonly prices: {
302
+ readonly month: {
303
+ readonly amount: -1;
304
+ readonly currency: "usd";
305
+ readonly interval: "month";
306
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
307
+ };
308
+ };
309
+ readonly feature: "collaborator_count";
310
+ readonly increment: 10;
311
+ readonly hidden: true;
312
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
313
+ };
314
+ };
315
+ readonly meters: {
316
+ readonly ai_spend_credit_grant: {
317
+ readonly id: "ai_spend_credit_grant";
318
+ readonly name: "AI Spend - Credit grant";
319
+ readonly description: "Pre-purchased credits applied toward AI usage";
320
+ readonly defaultAggregation: {
321
+ readonly formula: "sum";
322
+ };
323
+ readonly customerMapping: {
324
+ readonly eventPayloadKey: "stripe_customer_id";
325
+ readonly type: "by_id";
326
+ };
327
+ readonly valueSettings: {
328
+ readonly eventPayloadKey: "value";
329
+ };
330
+ readonly prices: {
331
+ readonly month: {
332
+ readonly unitAmount: 1;
333
+ readonly currency: "usd";
334
+ readonly interval: "month";
335
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
336
+ };
337
+ };
338
+ readonly meterType: "creditGrant";
339
+ readonly providerMeterId: "__UNKNOWN_STRIPE_ID__";
340
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
341
+ };
342
+ readonly ai_spend_pay_as_you_go: {
343
+ readonly id: "ai_spend_pay_as_you_go";
344
+ readonly name: "AI Spend - Pay as you go";
345
+ readonly description: "Usage-based charges for AI spend, billed monthly";
346
+ readonly defaultAggregation: {
347
+ readonly formula: "sum";
348
+ };
349
+ readonly customerMapping: {
350
+ readonly eventPayloadKey: "stripe_customer_id";
351
+ readonly type: "by_id";
352
+ };
353
+ readonly valueSettings: {
354
+ readonly eventPayloadKey: "value";
355
+ };
356
+ readonly prices: {
357
+ readonly month: {
358
+ readonly unitAmount: 1;
359
+ readonly currency: "usd";
360
+ readonly interval: "month";
361
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
362
+ };
363
+ };
364
+ readonly meterType: "payAsYouGo";
365
+ readonly providerMeterId: "__UNKNOWN_STRIPE_ID__";
366
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
367
+ };
368
+ };
369
+ readonly isActive: true;
370
+ readonly createdAt: string;
371
+ };
372
+ };
373
+ /**
374
+ * Alias for billingConfig
375
+ * @deprecated Use `billingConfig` instead
376
+ */
377
+ export declare const billingDefinitions: {
378
+ readonly v4: {
379
+ readonly version: "v4";
380
+ readonly name: "Billing Version 4";
381
+ readonly description: "New billing system with credit grants and entitlements";
382
+ readonly plans: {
383
+ readonly community: {
384
+ readonly id: "community";
385
+ readonly name: "Plan - Pay as you go";
386
+ readonly description: "Free plan for developers";
387
+ readonly tierIndex: 0;
388
+ readonly prices: {
389
+ readonly month: {
390
+ readonly amount: -1;
391
+ readonly currency: "usd";
392
+ readonly interval: "month";
393
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
394
+ };
395
+ };
396
+ readonly features: {
397
+ readonly incoming_messages_events: 500;
398
+ readonly integration_spend: 0;
399
+ readonly table_rows: 1000;
400
+ readonly bot_count: 1;
401
+ readonly collaborator_count: 1;
402
+ readonly file_storage: 100000000;
403
+ readonly vector_db_storage: 100000000;
404
+ readonly saved_versions: 3;
405
+ readonly indexed_file_count: 1000;
406
+ };
407
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
408
+ };
409
+ readonly plus: {
410
+ readonly id: "plus";
411
+ readonly name: "Plan - Plus";
412
+ readonly description: "For growing businesses";
413
+ readonly tierIndex: 1;
414
+ readonly prices: {
415
+ readonly month: {
416
+ readonly amount: 89;
417
+ readonly currency: "usd";
418
+ readonly interval: "month";
419
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
420
+ };
421
+ readonly year: {
422
+ readonly amount: 948;
423
+ readonly currency: "usd";
424
+ readonly interval: "year";
425
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
426
+ };
427
+ };
428
+ readonly features: {
429
+ readonly incoming_messages_events: 5000;
430
+ readonly integration_spend: 5000000000;
431
+ readonly table_rows: 100000;
432
+ readonly bot_count: 2;
433
+ readonly collaborator_count: 2;
434
+ readonly file_storage: 10000000000;
435
+ readonly vector_db_storage: 1000000000;
436
+ readonly saved_versions: 50;
437
+ readonly indexed_file_count: 2000;
438
+ };
439
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
440
+ };
441
+ readonly team: {
442
+ readonly id: "team";
443
+ readonly name: "Plan - Team";
444
+ readonly description: "For small teams";
445
+ readonly tierIndex: 2;
446
+ readonly prices: {
447
+ readonly month: {
448
+ readonly amount: 495;
449
+ readonly currency: "usd";
450
+ readonly interval: "month";
451
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
452
+ };
453
+ readonly year: {
454
+ readonly amount: 5346;
455
+ readonly currency: "usd";
456
+ readonly interval: "year";
457
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
458
+ };
459
+ };
460
+ readonly features: {
461
+ readonly incoming_messages_events: 50000;
462
+ readonly integration_spend: 5000000000;
463
+ readonly table_rows: 100000;
464
+ readonly bot_count: 3;
465
+ readonly collaborator_count: 3;
466
+ readonly file_storage: 10000000000;
467
+ readonly vector_db_storage: 2000000000;
468
+ readonly saved_versions: 100;
469
+ readonly indexed_file_count: 10000;
470
+ };
471
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
472
+ };
473
+ readonly enterprise: {
474
+ readonly id: "enterprise";
475
+ readonly name: "Plan - Enterprise";
476
+ readonly description: "Enterprise license subscription";
477
+ readonly tierIndex: 3;
478
+ readonly prices: {
479
+ readonly month: {
480
+ readonly amount: -1;
481
+ readonly currency: "usd";
482
+ readonly interval: "month";
483
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
484
+ };
485
+ };
486
+ readonly features: {
487
+ incoming_messages_events: number;
488
+ integration_spend: number;
489
+ table_rows: number;
490
+ bot_count: number;
491
+ collaborator_count: number;
492
+ file_storage: number;
493
+ vector_db_storage: number;
494
+ saved_versions: number;
495
+ indexed_file_count: number;
496
+ };
497
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
498
+ };
499
+ readonly managed: {
500
+ readonly id: "managed";
501
+ readonly name: "Plan - Managed";
502
+ readonly description: "Managed license subscription";
503
+ readonly tierIndex: 4;
504
+ readonly prices: {
505
+ readonly month: {
506
+ readonly amount: -1;
507
+ readonly currency: "usd";
508
+ readonly interval: "month";
509
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
510
+ };
511
+ };
512
+ readonly features: {
513
+ incoming_messages_events: number;
514
+ integration_spend: number;
515
+ table_rows: number;
516
+ bot_count: number;
517
+ collaborator_count: number;
518
+ file_storage: number;
519
+ vector_db_storage: number;
520
+ saved_versions: number;
521
+ indexed_file_count: number;
522
+ };
523
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
524
+ };
525
+ };
526
+ readonly addons: {
527
+ readonly bot_addon: {
528
+ readonly id: "bot_addon";
529
+ readonly name: "Add-on - Bot";
530
+ readonly description: "Add one more bot to your workspace";
531
+ readonly prices: {
532
+ readonly month: {
533
+ readonly amount: 10;
534
+ readonly currency: "usd";
535
+ readonly interval: "month";
536
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
537
+ };
538
+ };
539
+ readonly feature: "bot_count";
540
+ readonly increment: 1;
541
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
542
+ };
543
+ readonly collaborator_addon: {
544
+ readonly id: "collaborator_addon";
545
+ readonly name: "Add-on - Collaborators";
546
+ readonly description: "Add one more collaborator to your workspace";
547
+ readonly prices: {
548
+ readonly month: {
549
+ readonly amount: 25;
550
+ readonly currency: "usd";
551
+ readonly interval: "month";
552
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
553
+ };
554
+ };
555
+ readonly feature: "collaborator_count";
556
+ readonly increment: 1;
557
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
558
+ };
559
+ readonly messages_events_addon: {
560
+ readonly id: "messages_events_addon";
561
+ readonly name: "Add-on - Messages & Events";
562
+ readonly description: "Adds 5,000 messages and events";
563
+ readonly prices: {
564
+ readonly month: {
565
+ readonly amount: 20;
566
+ readonly currency: "usd";
567
+ readonly interval: "month";
568
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
569
+ };
570
+ };
571
+ readonly feature: "incoming_messages_events";
572
+ readonly increment: 5000;
573
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
574
+ };
575
+ readonly table_rows_addon: {
576
+ readonly id: "table_rows_addon";
577
+ readonly name: "Add-on - Table Rows";
578
+ readonly description: "Adds 100,000 additional table rows";
579
+ readonly prices: {
580
+ readonly month: {
581
+ readonly amount: 25;
582
+ readonly currency: "usd";
583
+ readonly interval: "month";
584
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
585
+ };
586
+ };
587
+ readonly feature: "table_rows";
588
+ readonly increment: 100000;
589
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
590
+ };
591
+ readonly file_storage_addon: {
592
+ readonly id: "file_storage_addon";
593
+ readonly name: "Add-on - File Storage";
594
+ readonly description: "Adds 10GB of File Storage";
595
+ readonly prices: {
596
+ readonly month: {
597
+ readonly amount: 10;
598
+ readonly currency: "usd";
599
+ readonly interval: "month";
600
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
601
+ };
602
+ };
603
+ readonly feature: "file_storage";
604
+ readonly increment: 10000000000;
605
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
606
+ };
607
+ readonly vector_db_storage_addon: {
608
+ readonly id: "vector_db_storage_addon";
609
+ readonly name: "Add-on - Vector DB Storage";
610
+ readonly description: "Add 1 GB of vector database storage";
611
+ readonly prices: {
612
+ readonly month: {
613
+ readonly amount: 20;
614
+ readonly currency: "usd";
615
+ readonly interval: "month";
616
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
617
+ };
618
+ };
619
+ readonly feature: "vector_db_storage";
620
+ readonly increment: 1000000000;
621
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
622
+ };
623
+ readonly web_search_addon: {
624
+ readonly id: "web_search_addon";
625
+ readonly name: "Web Search and Crawl";
626
+ readonly description: "Web search and crawl functionality";
627
+ readonly prices: {
628
+ readonly month: {
629
+ readonly amount: 10;
630
+ readonly currency: "usd";
631
+ readonly interval: "month";
632
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
633
+ };
634
+ };
635
+ readonly feature: "integration_spend";
636
+ readonly increment: 10000000000;
637
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
638
+ };
639
+ readonly ai_credits_addon: {
640
+ readonly id: "ai_credits_addon";
641
+ readonly name: "AI Tokens";
642
+ readonly description: "Add $25 worth of AI credits";
643
+ readonly prices: {
644
+ readonly month: {
645
+ readonly amount: 25;
646
+ readonly currency: "usd";
647
+ readonly interval: "month";
648
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
649
+ };
650
+ };
651
+ readonly feature: "integration_spend";
652
+ readonly increment: 25000000000;
653
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
654
+ };
655
+ readonly enterprise_ai_token: {
656
+ readonly id: "enterprise_ai_token";
657
+ readonly name: "Enterprise - AI Token";
658
+ readonly description: "Enterprise AI token credits";
659
+ readonly prices: {
660
+ readonly month: {
661
+ readonly amount: -1;
662
+ readonly currency: "usd";
663
+ readonly interval: "month";
664
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
665
+ };
666
+ };
667
+ readonly feature: "integration_spend";
668
+ readonly increment: 100000000000;
669
+ readonly hidden: true;
670
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
671
+ };
672
+ readonly enterprise_additional_workspace: {
673
+ readonly id: "enterprise_additional_workspace";
674
+ readonly name: "Enterprise - Additional Workspace";
675
+ readonly description: "Enterprise additional workspace";
676
+ readonly prices: {
677
+ readonly month: {
678
+ readonly amount: -1;
679
+ readonly currency: "usd";
680
+ readonly interval: "month";
681
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
682
+ };
683
+ };
684
+ readonly feature: "collaborator_count";
685
+ readonly increment: 10;
686
+ readonly hidden: true;
687
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
688
+ };
689
+ };
690
+ readonly meters: {
691
+ readonly ai_spend_credit_grant: {
692
+ readonly id: "ai_spend_credit_grant";
693
+ readonly name: "AI Spend - Credit grant";
694
+ readonly description: "Pre-purchased credits applied toward AI usage";
695
+ readonly defaultAggregation: {
696
+ readonly formula: "sum";
697
+ };
698
+ readonly customerMapping: {
699
+ readonly eventPayloadKey: "stripe_customer_id";
700
+ readonly type: "by_id";
701
+ };
702
+ readonly valueSettings: {
703
+ readonly eventPayloadKey: "value";
704
+ };
705
+ readonly prices: {
706
+ readonly month: {
707
+ readonly unitAmount: 1;
708
+ readonly currency: "usd";
709
+ readonly interval: "month";
710
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
711
+ };
712
+ };
713
+ readonly meterType: "creditGrant";
714
+ readonly providerMeterId: "__UNKNOWN_STRIPE_ID__";
715
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
716
+ };
717
+ readonly ai_spend_pay_as_you_go: {
718
+ readonly id: "ai_spend_pay_as_you_go";
719
+ readonly name: "AI Spend - Pay as you go";
720
+ readonly description: "Usage-based charges for AI spend, billed monthly";
721
+ readonly defaultAggregation: {
722
+ readonly formula: "sum";
723
+ };
724
+ readonly customerMapping: {
725
+ readonly eventPayloadKey: "stripe_customer_id";
726
+ readonly type: "by_id";
727
+ };
728
+ readonly valueSettings: {
729
+ readonly eventPayloadKey: "value";
730
+ };
731
+ readonly prices: {
732
+ readonly month: {
733
+ readonly unitAmount: 1;
734
+ readonly currency: "usd";
735
+ readonly interval: "month";
736
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
737
+ };
738
+ };
739
+ readonly meterType: "payAsYouGo";
740
+ readonly providerMeterId: "__UNKNOWN_STRIPE_ID__";
741
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
742
+ };
743
+ };
744
+ readonly isActive: true;
745
+ readonly createdAt: string;
746
+ };
747
+ };