@bpinternal/const 0.31.0 → 0.33.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/index.d.ts +2 -3
- package/dist/billing-next/config/index.js +2 -3
- package/dist/billing-next/config/schemas.d.ts +26 -13
- package/dist/billing-next/config/schemas.js +2 -1
- package/dist/billing-next/config/utils.d.ts +6 -0
- package/dist/billing-next/config/utils.js +11 -0
- package/dist/billing-next/config/{addons.d.ts → v4/addons.d.ts} +5 -5
- package/dist/billing-next/config/{addons.js → v4/addons.js} +4 -4
- package/dist/billing-next/config/{grants.d.ts → v4/grants.d.ts} +5 -4
- package/dist/billing-next/config/{grants.js → v4/grants.js} +6 -5
- package/dist/billing-next/config/v4/index.d.ts +4 -0
- package/dist/billing-next/config/v4/index.js +19 -0
- package/dist/billing-next/config/{plans.d.ts → v4/plans.d.ts} +2 -2
- package/dist/billing-next/config/{plans.js → v4/plans.js} +4 -4
- package/dist/billing-next/config/v5/index.d.ts +2 -0
- package/dist/billing-next/config/v5/index.js +17 -0
- package/dist/billing-next/config/v5/plans.d.ts +150 -0
- package/dist/billing-next/config/v5/plans.js +99 -0
- package/dist/billing-next/config/versions.d.ts +460 -0
- package/dist/billing-next/config/versions.js +48 -6
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -222,8 +222,238 @@ export declare const billingConfig: {
|
|
|
222
222
|
readonly feature: "ai_spend";
|
|
223
223
|
readonly increment: number;
|
|
224
224
|
readonly autoRechargeable: true;
|
|
225
|
+
readonly providerPricingPlanId: "__UNKNOWN_STRIPE_ID__";
|
|
226
|
+
readonly providerPricingPlanVersionId: "__UNKNOWN_STRIPE_ID__";
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
readonly isActive: true;
|
|
230
|
+
readonly createdAt: string;
|
|
231
|
+
};
|
|
232
|
+
readonly v5: {
|
|
233
|
+
readonly version: "v5";
|
|
234
|
+
readonly name: "Billing Version 5";
|
|
235
|
+
readonly description: "Experiment on pricing";
|
|
236
|
+
readonly plans: {
|
|
237
|
+
readonly community: {
|
|
238
|
+
readonly id: "community";
|
|
239
|
+
readonly name: "Plan - Free";
|
|
240
|
+
readonly description: "Free plan for trying things out";
|
|
241
|
+
readonly tierIndex: 0;
|
|
242
|
+
readonly prices: {
|
|
243
|
+
readonly month: {
|
|
244
|
+
readonly amount: -1;
|
|
245
|
+
readonly currency: "usd";
|
|
246
|
+
readonly interval: "month";
|
|
247
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
readonly features: {
|
|
251
|
+
readonly incoming_messages_events: number;
|
|
252
|
+
readonly ai_spend: number;
|
|
253
|
+
readonly conversation_sessions: number;
|
|
254
|
+
readonly table_rows: 1000;
|
|
255
|
+
readonly bot_count: 3;
|
|
256
|
+
readonly collaborator_count: 3;
|
|
257
|
+
readonly file_storage: number;
|
|
258
|
+
readonly vector_db_storage: number;
|
|
259
|
+
readonly saved_versions: 3;
|
|
260
|
+
readonly indexed_file_count: 1000;
|
|
261
|
+
};
|
|
262
|
+
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
263
|
+
};
|
|
264
|
+
readonly plus: {
|
|
265
|
+
readonly id: "plus";
|
|
266
|
+
readonly name: "Plan - Plus";
|
|
267
|
+
readonly description: "For growing businesses";
|
|
268
|
+
readonly tierIndex: 1;
|
|
269
|
+
readonly prices: {
|
|
270
|
+
readonly month: {
|
|
271
|
+
readonly amount: 49;
|
|
272
|
+
readonly currency: "usd";
|
|
273
|
+
readonly interval: "month";
|
|
274
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
275
|
+
};
|
|
276
|
+
readonly year: {
|
|
277
|
+
readonly amount: 490;
|
|
278
|
+
readonly currency: "usd";
|
|
279
|
+
readonly interval: "year";
|
|
280
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
readonly features: {
|
|
284
|
+
readonly incoming_messages_events: number;
|
|
285
|
+
readonly ai_spend: number;
|
|
286
|
+
readonly conversation_sessions: number;
|
|
287
|
+
readonly table_rows: 100000;
|
|
288
|
+
readonly bot_count: 5000;
|
|
289
|
+
readonly collaborator_count: 3;
|
|
290
|
+
readonly file_storage: number;
|
|
291
|
+
readonly vector_db_storage: number;
|
|
292
|
+
readonly saved_versions: 50;
|
|
293
|
+
readonly indexed_file_count: 2000;
|
|
294
|
+
};
|
|
295
|
+
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
296
|
+
};
|
|
297
|
+
readonly team: {
|
|
298
|
+
readonly id: "team";
|
|
299
|
+
readonly name: "Plan - Team";
|
|
300
|
+
readonly description: "For small teams";
|
|
301
|
+
readonly tierIndex: 2;
|
|
302
|
+
readonly prices: {
|
|
303
|
+
readonly month: {
|
|
304
|
+
readonly amount: 939;
|
|
305
|
+
readonly currency: "usd";
|
|
306
|
+
readonly interval: "month";
|
|
307
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
308
|
+
};
|
|
309
|
+
readonly year: {
|
|
310
|
+
readonly amount: number;
|
|
311
|
+
readonly currency: "usd";
|
|
312
|
+
readonly interval: "year";
|
|
313
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
readonly features: {
|
|
317
|
+
readonly table_rows: 500000;
|
|
318
|
+
readonly bot_count: 5000;
|
|
319
|
+
readonly collaborator_count: 5000;
|
|
320
|
+
readonly file_storage: number;
|
|
321
|
+
readonly vector_db_storage: number;
|
|
322
|
+
readonly saved_versions: 100;
|
|
323
|
+
readonly indexed_file_count: 5000000;
|
|
324
|
+
readonly incoming_messages_events: number;
|
|
325
|
+
readonly ai_spend: number;
|
|
326
|
+
readonly conversation_sessions: 1500;
|
|
327
|
+
};
|
|
328
|
+
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
329
|
+
};
|
|
330
|
+
readonly enterprise: {
|
|
331
|
+
readonly id: "enterprise";
|
|
332
|
+
readonly name: "Plan - Enterprise";
|
|
333
|
+
readonly description: "Enterprise license subscription";
|
|
334
|
+
readonly tierIndex: 3;
|
|
335
|
+
readonly prices: {
|
|
336
|
+
readonly month: {
|
|
337
|
+
readonly amount: -1;
|
|
338
|
+
readonly currency: "usd";
|
|
339
|
+
readonly interval: "month";
|
|
340
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
readonly features: {
|
|
344
|
+
table_rows: number;
|
|
345
|
+
bot_count: number;
|
|
346
|
+
collaborator_count: number;
|
|
347
|
+
file_storage: number;
|
|
348
|
+
vector_db_storage: number;
|
|
349
|
+
saved_versions: number;
|
|
350
|
+
indexed_file_count: number;
|
|
351
|
+
incoming_messages_events: number;
|
|
352
|
+
ai_spend: number;
|
|
353
|
+
conversation_sessions: number;
|
|
354
|
+
};
|
|
225
355
|
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
226
356
|
};
|
|
357
|
+
readonly managed: {
|
|
358
|
+
readonly id: "managed";
|
|
359
|
+
readonly name: "Plan - Managed";
|
|
360
|
+
readonly description: "Managed license subscription";
|
|
361
|
+
readonly tierIndex: 4;
|
|
362
|
+
readonly prices: {
|
|
363
|
+
readonly month: {
|
|
364
|
+
readonly amount: -1;
|
|
365
|
+
readonly currency: "usd";
|
|
366
|
+
readonly interval: "month";
|
|
367
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
readonly features: {
|
|
371
|
+
table_rows: number;
|
|
372
|
+
bot_count: number;
|
|
373
|
+
collaborator_count: number;
|
|
374
|
+
file_storage: number;
|
|
375
|
+
vector_db_storage: number;
|
|
376
|
+
saved_versions: number;
|
|
377
|
+
indexed_file_count: number;
|
|
378
|
+
incoming_messages_events: number;
|
|
379
|
+
ai_spend: number;
|
|
380
|
+
conversation_sessions: number;
|
|
381
|
+
};
|
|
382
|
+
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
readonly addons: {
|
|
386
|
+
readonly conversation_sessions_addon: {
|
|
387
|
+
readonly id: "conversation_sessions_addon";
|
|
388
|
+
readonly name: "Add-on - Conversation Sessions";
|
|
389
|
+
readonly description: "Adds conversations sessions for the month";
|
|
390
|
+
readonly prices: {
|
|
391
|
+
readonly plus: {
|
|
392
|
+
readonly amount: 65;
|
|
393
|
+
readonly currency: "usd";
|
|
394
|
+
readonly interval: "month";
|
|
395
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
396
|
+
};
|
|
397
|
+
readonly team: {
|
|
398
|
+
readonly amount: 50;
|
|
399
|
+
readonly currency: "usd";
|
|
400
|
+
readonly interval: "month";
|
|
401
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
402
|
+
};
|
|
403
|
+
readonly enterprise: {
|
|
404
|
+
readonly amount: -1;
|
|
405
|
+
readonly currency: "usd";
|
|
406
|
+
readonly interval: "month";
|
|
407
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
readonly increments: {
|
|
411
|
+
readonly conversation_sessions: 100;
|
|
412
|
+
readonly ai_spend: number;
|
|
413
|
+
readonly incoming_messages_events: number;
|
|
414
|
+
};
|
|
415
|
+
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
416
|
+
readonly autoRechargeable: true;
|
|
417
|
+
readonly prorationDisabled: true;
|
|
418
|
+
};
|
|
419
|
+
readonly storage_addon: {
|
|
420
|
+
readonly id: "storage_addon";
|
|
421
|
+
readonly name: "Add-on - Storage";
|
|
422
|
+
readonly description: "Adds table rows, vector db space and files";
|
|
423
|
+
readonly prices: {
|
|
424
|
+
readonly [x: string]: {
|
|
425
|
+
amount: number;
|
|
426
|
+
currency: "usd";
|
|
427
|
+
interval: "month" | "year";
|
|
428
|
+
providerPriceId: string;
|
|
429
|
+
metadata?: Record<string, string> | undefined;
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
readonly increments: {
|
|
433
|
+
readonly table_rows: 100000;
|
|
434
|
+
readonly vector_db_storage: number;
|
|
435
|
+
readonly file_storage: number;
|
|
436
|
+
};
|
|
437
|
+
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
readonly creditGrants: {
|
|
441
|
+
readonly ai_spend_credit_grant: {
|
|
442
|
+
readonly id: "ai_spend_credit_grant";
|
|
443
|
+
readonly name: "AI Spend - Credit grant";
|
|
444
|
+
readonly description: "Pre-purchased credits applied toward AI usage";
|
|
445
|
+
readonly price: {
|
|
446
|
+
readonly unitAmount: 1;
|
|
447
|
+
readonly currency: "usd";
|
|
448
|
+
readonly interval: "month";
|
|
449
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
450
|
+
};
|
|
451
|
+
readonly feature: "ai_spend";
|
|
452
|
+
readonly increment: number;
|
|
453
|
+
readonly autoRechargeable: true;
|
|
454
|
+
readonly providerPricingPlanId: "__UNKNOWN_STRIPE_ID__";
|
|
455
|
+
readonly providerPricingPlanVersionId: "__UNKNOWN_STRIPE_ID__";
|
|
456
|
+
};
|
|
227
457
|
};
|
|
228
458
|
readonly isActive: true;
|
|
229
459
|
readonly createdAt: string;
|
|
@@ -456,8 +686,238 @@ export declare const billingDefinitions: {
|
|
|
456
686
|
readonly feature: "ai_spend";
|
|
457
687
|
readonly increment: number;
|
|
458
688
|
readonly autoRechargeable: true;
|
|
689
|
+
readonly providerPricingPlanId: "__UNKNOWN_STRIPE_ID__";
|
|
690
|
+
readonly providerPricingPlanVersionId: "__UNKNOWN_STRIPE_ID__";
|
|
691
|
+
};
|
|
692
|
+
};
|
|
693
|
+
readonly isActive: true;
|
|
694
|
+
readonly createdAt: string;
|
|
695
|
+
};
|
|
696
|
+
readonly v5: {
|
|
697
|
+
readonly version: "v5";
|
|
698
|
+
readonly name: "Billing Version 5";
|
|
699
|
+
readonly description: "Experiment on pricing";
|
|
700
|
+
readonly plans: {
|
|
701
|
+
readonly community: {
|
|
702
|
+
readonly id: "community";
|
|
703
|
+
readonly name: "Plan - Free";
|
|
704
|
+
readonly description: "Free plan for trying things out";
|
|
705
|
+
readonly tierIndex: 0;
|
|
706
|
+
readonly prices: {
|
|
707
|
+
readonly month: {
|
|
708
|
+
readonly amount: -1;
|
|
709
|
+
readonly currency: "usd";
|
|
710
|
+
readonly interval: "month";
|
|
711
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
712
|
+
};
|
|
713
|
+
};
|
|
714
|
+
readonly features: {
|
|
715
|
+
readonly incoming_messages_events: number;
|
|
716
|
+
readonly ai_spend: number;
|
|
717
|
+
readonly conversation_sessions: number;
|
|
718
|
+
readonly table_rows: 1000;
|
|
719
|
+
readonly bot_count: 3;
|
|
720
|
+
readonly collaborator_count: 3;
|
|
721
|
+
readonly file_storage: number;
|
|
722
|
+
readonly vector_db_storage: number;
|
|
723
|
+
readonly saved_versions: 3;
|
|
724
|
+
readonly indexed_file_count: 1000;
|
|
725
|
+
};
|
|
726
|
+
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
727
|
+
};
|
|
728
|
+
readonly plus: {
|
|
729
|
+
readonly id: "plus";
|
|
730
|
+
readonly name: "Plan - Plus";
|
|
731
|
+
readonly description: "For growing businesses";
|
|
732
|
+
readonly tierIndex: 1;
|
|
733
|
+
readonly prices: {
|
|
734
|
+
readonly month: {
|
|
735
|
+
readonly amount: 49;
|
|
736
|
+
readonly currency: "usd";
|
|
737
|
+
readonly interval: "month";
|
|
738
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
739
|
+
};
|
|
740
|
+
readonly year: {
|
|
741
|
+
readonly amount: 490;
|
|
742
|
+
readonly currency: "usd";
|
|
743
|
+
readonly interval: "year";
|
|
744
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
745
|
+
};
|
|
746
|
+
};
|
|
747
|
+
readonly features: {
|
|
748
|
+
readonly incoming_messages_events: number;
|
|
749
|
+
readonly ai_spend: number;
|
|
750
|
+
readonly conversation_sessions: number;
|
|
751
|
+
readonly table_rows: 100000;
|
|
752
|
+
readonly bot_count: 5000;
|
|
753
|
+
readonly collaborator_count: 3;
|
|
754
|
+
readonly file_storage: number;
|
|
755
|
+
readonly vector_db_storage: number;
|
|
756
|
+
readonly saved_versions: 50;
|
|
757
|
+
readonly indexed_file_count: 2000;
|
|
758
|
+
};
|
|
759
|
+
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
760
|
+
};
|
|
761
|
+
readonly team: {
|
|
762
|
+
readonly id: "team";
|
|
763
|
+
readonly name: "Plan - Team";
|
|
764
|
+
readonly description: "For small teams";
|
|
765
|
+
readonly tierIndex: 2;
|
|
766
|
+
readonly prices: {
|
|
767
|
+
readonly month: {
|
|
768
|
+
readonly amount: 939;
|
|
769
|
+
readonly currency: "usd";
|
|
770
|
+
readonly interval: "month";
|
|
771
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
772
|
+
};
|
|
773
|
+
readonly year: {
|
|
774
|
+
readonly amount: number;
|
|
775
|
+
readonly currency: "usd";
|
|
776
|
+
readonly interval: "year";
|
|
777
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
778
|
+
};
|
|
779
|
+
};
|
|
780
|
+
readonly features: {
|
|
781
|
+
readonly table_rows: 500000;
|
|
782
|
+
readonly bot_count: 5000;
|
|
783
|
+
readonly collaborator_count: 5000;
|
|
784
|
+
readonly file_storage: number;
|
|
785
|
+
readonly vector_db_storage: number;
|
|
786
|
+
readonly saved_versions: 100;
|
|
787
|
+
readonly indexed_file_count: 5000000;
|
|
788
|
+
readonly incoming_messages_events: number;
|
|
789
|
+
readonly ai_spend: number;
|
|
790
|
+
readonly conversation_sessions: 1500;
|
|
791
|
+
};
|
|
792
|
+
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
793
|
+
};
|
|
794
|
+
readonly enterprise: {
|
|
795
|
+
readonly id: "enterprise";
|
|
796
|
+
readonly name: "Plan - Enterprise";
|
|
797
|
+
readonly description: "Enterprise license subscription";
|
|
798
|
+
readonly tierIndex: 3;
|
|
799
|
+
readonly prices: {
|
|
800
|
+
readonly month: {
|
|
801
|
+
readonly amount: -1;
|
|
802
|
+
readonly currency: "usd";
|
|
803
|
+
readonly interval: "month";
|
|
804
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
805
|
+
};
|
|
806
|
+
};
|
|
807
|
+
readonly features: {
|
|
808
|
+
table_rows: number;
|
|
809
|
+
bot_count: number;
|
|
810
|
+
collaborator_count: number;
|
|
811
|
+
file_storage: number;
|
|
812
|
+
vector_db_storage: number;
|
|
813
|
+
saved_versions: number;
|
|
814
|
+
indexed_file_count: number;
|
|
815
|
+
incoming_messages_events: number;
|
|
816
|
+
ai_spend: number;
|
|
817
|
+
conversation_sessions: number;
|
|
818
|
+
};
|
|
459
819
|
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
460
820
|
};
|
|
821
|
+
readonly managed: {
|
|
822
|
+
readonly id: "managed";
|
|
823
|
+
readonly name: "Plan - Managed";
|
|
824
|
+
readonly description: "Managed license subscription";
|
|
825
|
+
readonly tierIndex: 4;
|
|
826
|
+
readonly prices: {
|
|
827
|
+
readonly month: {
|
|
828
|
+
readonly amount: -1;
|
|
829
|
+
readonly currency: "usd";
|
|
830
|
+
readonly interval: "month";
|
|
831
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
832
|
+
};
|
|
833
|
+
};
|
|
834
|
+
readonly features: {
|
|
835
|
+
table_rows: number;
|
|
836
|
+
bot_count: number;
|
|
837
|
+
collaborator_count: number;
|
|
838
|
+
file_storage: number;
|
|
839
|
+
vector_db_storage: number;
|
|
840
|
+
saved_versions: number;
|
|
841
|
+
indexed_file_count: number;
|
|
842
|
+
incoming_messages_events: number;
|
|
843
|
+
ai_spend: number;
|
|
844
|
+
conversation_sessions: number;
|
|
845
|
+
};
|
|
846
|
+
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
847
|
+
};
|
|
848
|
+
};
|
|
849
|
+
readonly addons: {
|
|
850
|
+
readonly conversation_sessions_addon: {
|
|
851
|
+
readonly id: "conversation_sessions_addon";
|
|
852
|
+
readonly name: "Add-on - Conversation Sessions";
|
|
853
|
+
readonly description: "Adds conversations sessions for the month";
|
|
854
|
+
readonly prices: {
|
|
855
|
+
readonly plus: {
|
|
856
|
+
readonly amount: 65;
|
|
857
|
+
readonly currency: "usd";
|
|
858
|
+
readonly interval: "month";
|
|
859
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
860
|
+
};
|
|
861
|
+
readonly team: {
|
|
862
|
+
readonly amount: 50;
|
|
863
|
+
readonly currency: "usd";
|
|
864
|
+
readonly interval: "month";
|
|
865
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
866
|
+
};
|
|
867
|
+
readonly enterprise: {
|
|
868
|
+
readonly amount: -1;
|
|
869
|
+
readonly currency: "usd";
|
|
870
|
+
readonly interval: "month";
|
|
871
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
872
|
+
};
|
|
873
|
+
};
|
|
874
|
+
readonly increments: {
|
|
875
|
+
readonly conversation_sessions: 100;
|
|
876
|
+
readonly ai_spend: number;
|
|
877
|
+
readonly incoming_messages_events: number;
|
|
878
|
+
};
|
|
879
|
+
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
880
|
+
readonly autoRechargeable: true;
|
|
881
|
+
readonly prorationDisabled: true;
|
|
882
|
+
};
|
|
883
|
+
readonly storage_addon: {
|
|
884
|
+
readonly id: "storage_addon";
|
|
885
|
+
readonly name: "Add-on - Storage";
|
|
886
|
+
readonly description: "Adds table rows, vector db space and files";
|
|
887
|
+
readonly prices: {
|
|
888
|
+
readonly [x: string]: {
|
|
889
|
+
amount: number;
|
|
890
|
+
currency: "usd";
|
|
891
|
+
interval: "month" | "year";
|
|
892
|
+
providerPriceId: string;
|
|
893
|
+
metadata?: Record<string, string> | undefined;
|
|
894
|
+
};
|
|
895
|
+
};
|
|
896
|
+
readonly increments: {
|
|
897
|
+
readonly table_rows: 100000;
|
|
898
|
+
readonly vector_db_storage: number;
|
|
899
|
+
readonly file_storage: number;
|
|
900
|
+
};
|
|
901
|
+
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
902
|
+
};
|
|
903
|
+
};
|
|
904
|
+
readonly creditGrants: {
|
|
905
|
+
readonly ai_spend_credit_grant: {
|
|
906
|
+
readonly id: "ai_spend_credit_grant";
|
|
907
|
+
readonly name: "AI Spend - Credit grant";
|
|
908
|
+
readonly description: "Pre-purchased credits applied toward AI usage";
|
|
909
|
+
readonly price: {
|
|
910
|
+
readonly unitAmount: 1;
|
|
911
|
+
readonly currency: "usd";
|
|
912
|
+
readonly interval: "month";
|
|
913
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
914
|
+
};
|
|
915
|
+
readonly feature: "ai_spend";
|
|
916
|
+
readonly increment: number;
|
|
917
|
+
readonly autoRechargeable: true;
|
|
918
|
+
readonly providerPricingPlanId: "__UNKNOWN_STRIPE_ID__";
|
|
919
|
+
readonly providerPricingPlanVersionId: "__UNKNOWN_STRIPE_ID__";
|
|
920
|
+
};
|
|
461
921
|
};
|
|
462
922
|
readonly isActive: true;
|
|
463
923
|
readonly createdAt: string;
|
|
@@ -1,21 +1,63 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
36
|
exports.billingDefinitions = exports.billingConfig = void 0;
|
|
4
37
|
/**
|
|
5
38
|
* Billing versions for v4 billing system
|
|
6
39
|
* Each version represents a complete billing configuration
|
|
7
40
|
*/
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const grants_1 = require("./grants");
|
|
41
|
+
const v4 = __importStar(require("./v4"));
|
|
42
|
+
const v5 = __importStar(require("./v5"));
|
|
11
43
|
exports.billingConfig = {
|
|
12
44
|
v4: {
|
|
13
45
|
version: 'v4',
|
|
14
46
|
name: 'Billing Version 4',
|
|
15
47
|
description: 'New billing system with credit grants and entitlements',
|
|
16
|
-
plans:
|
|
17
|
-
addons:
|
|
18
|
-
creditGrants:
|
|
48
|
+
plans: v4.v4Plans,
|
|
49
|
+
addons: v4.v4Addons,
|
|
50
|
+
creditGrants: v4.v4CreditGrants,
|
|
51
|
+
isActive: true,
|
|
52
|
+
createdAt: new Date().toISOString(),
|
|
53
|
+
},
|
|
54
|
+
v5: {
|
|
55
|
+
version: 'v5',
|
|
56
|
+
name: 'Billing Version 5',
|
|
57
|
+
description: 'Experiment on pricing',
|
|
58
|
+
plans: v5.v5Plans,
|
|
59
|
+
addons: v4.v4Addons,
|
|
60
|
+
creditGrants: v4.v4CreditGrants,
|
|
19
61
|
isActive: true,
|
|
20
62
|
createdAt: new Date().toISOString(),
|
|
21
63
|
},
|