@bpinternal/const 0.20.0 → 0.22.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.
@@ -3,16 +3,30 @@ export declare const addons: {
3
3
  readonly conversation_sessions_addon: {
4
4
  readonly id: "conversation_sessions_addon";
5
5
  readonly name: "Add-on - Conversation Sessions";
6
- readonly description: "Adds 500 conversations sessions per month";
7
- readonly prices: Record<string, {
8
- amount: number;
9
- currency: "usd";
10
- interval: "month" | "year";
11
- providerPriceId: string;
12
- metadata?: Record<string, string> | undefined;
13
- }>;
6
+ readonly description: "Adds conversations sessions for the month";
7
+ readonly prices: {
8
+ readonly plus: {
9
+ readonly amount: 65;
10
+ readonly currency: "usd";
11
+ readonly interval: "month";
12
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
13
+ };
14
+ readonly team: {
15
+ readonly amount: 50;
16
+ readonly currency: "usd";
17
+ readonly interval: "month";
18
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
19
+ };
20
+ readonly enterprise: {
21
+ readonly amount: -1;
22
+ readonly currency: "usd";
23
+ readonly interval: "month";
24
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
25
+ };
26
+ };
14
27
  readonly increments: {
15
- readonly conversation_sessions: 500;
28
+ readonly conversation_sessions: 100;
29
+ readonly ai_spend: number;
16
30
  };
17
31
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
18
32
  readonly autoRechargeable: true;
@@ -20,9 +20,28 @@ exports.addons = {
20
20
  conversation_sessions_addon: {
21
21
  id: 'conversation_sessions_addon',
22
22
  name: 'Add-on - Conversation Sessions',
23
- description: 'Adds 500 conversations sessions per month',
24
- prices: constantMonthlyPrice(20),
25
- increments: { conversation_sessions: 500 },
23
+ description: 'Adds conversations sessions for the month',
24
+ prices: {
25
+ plus: {
26
+ amount: 65,
27
+ currency: 'usd',
28
+ interval: 'month',
29
+ providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
30
+ },
31
+ team: {
32
+ amount: 50,
33
+ currency: 'usd',
34
+ interval: 'month',
35
+ providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
36
+ },
37
+ enterprise: {
38
+ amount: consts_1.FREE_PRICE, //custom pricing, will be overriden
39
+ currency: 'usd',
40
+ interval: 'month',
41
+ providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
42
+ },
43
+ },
44
+ increments: { conversation_sessions: 100, ai_spend: 10 * consts_1.NANO_DOLLAR_IN_DOLLAR },
26
45
  providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
27
46
  autoRechargeable: true,
28
47
  },
@@ -30,7 +49,7 @@ exports.addons = {
30
49
  id: 'storage_addon',
31
50
  name: 'Add-on - Storage',
32
51
  description: 'Adds table rows, vector db space and files',
33
- prices: constantMonthlyPrice(40),
52
+ prices: constantMonthlyPrice(40, ['plus', 'team', 'enterprise', 'managed']),
34
53
  increments: {
35
54
  table_rows: 100_000,
36
55
  vector_db_storage: 1 * consts_1.GB,
@@ -2,8 +2,8 @@ export type BillingPlanId = keyof typeof plans;
2
2
  export declare const plans: {
3
3
  readonly community: {
4
4
  readonly id: "community";
5
- readonly name: "Plan - Pay as you go";
6
- readonly description: "Free plan for developers";
5
+ readonly name: "Plan - Free";
6
+ readonly description: "Free plan for trying things out";
7
7
  readonly tierIndex: 0;
8
8
  readonly prices: {
9
9
  readonly month: {
@@ -14,13 +14,13 @@ export declare const plans: {
14
14
  };
15
15
  };
16
16
  readonly features: {
17
- readonly incoming_messages_events: 500;
18
- readonly integration_spend: 5000000000;
17
+ readonly incoming_messages_events: 5000000;
18
+ readonly integration_spend: number;
19
19
  readonly table_rows: 1000;
20
- readonly bot_count: 1;
20
+ readonly bot_count: 3;
21
21
  readonly collaborator_count: 1;
22
- readonly file_storage: 100000000;
23
- readonly vector_db_storage: 100000000;
22
+ readonly file_storage: number;
23
+ readonly vector_db_storage: number;
24
24
  readonly saved_versions: 3;
25
25
  readonly indexed_file_count: 1000;
26
26
  readonly conversation_sessions: 100;
@@ -34,26 +34,26 @@ export declare const plans: {
34
34
  readonly tierIndex: 1;
35
35
  readonly prices: {
36
36
  readonly month: {
37
- readonly amount: 89;
37
+ readonly amount: 189;
38
38
  readonly currency: "usd";
39
39
  readonly interval: "month";
40
40
  readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
41
41
  };
42
42
  readonly year: {
43
- readonly amount: 948;
43
+ readonly amount: number;
44
44
  readonly currency: "usd";
45
45
  readonly interval: "year";
46
46
  readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
47
47
  };
48
48
  };
49
49
  readonly features: {
50
- readonly incoming_messages_events: 5000;
51
- readonly integration_spend: 5000000000;
50
+ readonly incoming_messages_events: 5000000;
51
+ readonly integration_spend: number;
52
52
  readonly table_rows: 100000;
53
- readonly bot_count: 2;
54
- readonly collaborator_count: 2;
55
- readonly file_storage: 10000000000;
56
- readonly vector_db_storage: 1000000000;
53
+ readonly bot_count: 5000;
54
+ readonly collaborator_count: 3;
55
+ readonly file_storage: number;
56
+ readonly vector_db_storage: number;
57
57
  readonly saved_versions: 50;
58
58
  readonly indexed_file_count: 2000;
59
59
  readonly conversation_sessions: 250;
@@ -67,29 +67,29 @@ export declare const plans: {
67
67
  readonly tierIndex: 2;
68
68
  readonly prices: {
69
69
  readonly month: {
70
- readonly amount: 495;
70
+ readonly amount: 939;
71
71
  readonly currency: "usd";
72
72
  readonly interval: "month";
73
73
  readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
74
74
  };
75
75
  readonly year: {
76
- readonly amount: 5346;
76
+ readonly amount: number;
77
77
  readonly currency: "usd";
78
78
  readonly interval: "year";
79
79
  readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
80
80
  };
81
81
  };
82
82
  readonly features: {
83
- readonly incoming_messages_events: 50000;
84
- readonly integration_spend: 5000000000;
85
- readonly table_rows: 100000;
86
- readonly bot_count: 3;
87
- readonly collaborator_count: 3;
88
- readonly file_storage: 10000000000;
89
- readonly vector_db_storage: 2000000000;
83
+ readonly incoming_messages_events: 5000000;
84
+ readonly integration_spend: number;
85
+ readonly table_rows: 500000;
86
+ readonly bot_count: 5000;
87
+ readonly collaborator_count: 5000;
88
+ readonly file_storage: number;
89
+ readonly vector_db_storage: number;
90
90
  readonly saved_versions: 100;
91
- readonly indexed_file_count: 10000;
92
- readonly conversation_sessions: 1000;
91
+ readonly indexed_file_count: 5000000;
92
+ readonly conversation_sessions: 1500;
93
93
  };
94
94
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
95
95
  };
@@ -4,13 +4,13 @@ exports.plans = void 0;
4
4
  const consts_1 = require("../consts");
5
5
  const schemas_1 = require("./schemas");
6
6
  const ENTERPRISE_PLAN_FEATURES = {
7
- incoming_messages_events: 1_000_000,
8
- integration_spend: 5_000_000_000, // $5 in nano-dollars
9
- table_rows: 10000000,
10
- bot_count: 100,
7
+ incoming_messages_events: consts_1.BIG_UNLIMITED,
8
+ integration_spend: 5 * consts_1.NANO_DOLLAR_IN_DOLLAR, // $5 in nano-dollars
9
+ table_rows: 10_000_000,
10
+ bot_count: consts_1.SMALL_UNLIMITED,
11
11
  collaborator_count: 100,
12
- file_storage: 1000_000_000_000, // 1000 GB
13
- vector_db_storage: 500_000_000_000, // 500 GB
12
+ file_storage: 1000 * consts_1.GB, // 1000 GB
13
+ vector_db_storage: 500 * consts_1.GB, // 500 GB
14
14
  saved_versions: 1000,
15
15
  indexed_file_count: 10_000,
16
16
  conversation_sessions: 10_000,
@@ -19,8 +19,8 @@ const ENTERPRISE_PLAN_FEATURES = {
19
19
  exports.plans = {
20
20
  community: {
21
21
  id: 'community',
22
- name: 'Plan - Pay as you go',
23
- description: 'Free plan for developers',
22
+ name: 'Plan - Free',
23
+ description: 'Free plan for trying things out',
24
24
  tierIndex: 0,
25
25
  prices: {
26
26
  month: {
@@ -31,13 +31,13 @@ exports.plans = {
31
31
  },
32
32
  },
33
33
  features: {
34
- incoming_messages_events: 500,
35
- integration_spend: 5_000_000_000,
34
+ incoming_messages_events: consts_1.BIG_UNLIMITED,
35
+ integration_spend: 5 * consts_1.NANO_DOLLAR_IN_DOLLAR,
36
36
  table_rows: 1000,
37
- bot_count: 1,
37
+ bot_count: 3,
38
38
  collaborator_count: 1,
39
- file_storage: 100_000_000, // 100 MB
40
- vector_db_storage: 100_000_000, // 100 MB
39
+ file_storage: 100 * consts_1.MB,
40
+ vector_db_storage: 100 * consts_1.MB,
41
41
  saved_versions: 3,
42
42
  indexed_file_count: 1_000,
43
43
  conversation_sessions: 100,
@@ -51,26 +51,26 @@ exports.plans = {
51
51
  tierIndex: 1,
52
52
  prices: {
53
53
  month: {
54
- amount: 89,
54
+ amount: 189,
55
55
  currency: 'usd',
56
56
  interval: 'month',
57
57
  providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
58
58
  },
59
59
  year: {
60
- amount: 948,
60
+ amount: 150 * consts_1.YEAR_MONTHS,
61
61
  currency: 'usd',
62
62
  interval: 'year',
63
63
  providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
64
64
  },
65
65
  },
66
66
  features: {
67
- incoming_messages_events: 5_000,
68
- integration_spend: 5_000_000_000, // $5 in nano-dollars
67
+ incoming_messages_events: consts_1.BIG_UNLIMITED,
68
+ integration_spend: 5 * consts_1.NANO_DOLLAR_IN_DOLLAR, // $5 in nano-dollars
69
69
  table_rows: 100_000,
70
- bot_count: 2,
71
- collaborator_count: 2,
72
- file_storage: 10_000_000_000, // 10 GB
73
- vector_db_storage: 1_000_000_000, // 1 GB
70
+ bot_count: consts_1.SMALL_UNLIMITED,
71
+ collaborator_count: 3,
72
+ file_storage: 10 * consts_1.GB, // 10 GB
73
+ vector_db_storage: 1 * consts_1.GB, // 1 GB
74
74
  saved_versions: 50,
75
75
  indexed_file_count: 2_000,
76
76
  conversation_sessions: 250,
@@ -84,29 +84,29 @@ exports.plans = {
84
84
  tierIndex: 2,
85
85
  prices: {
86
86
  month: {
87
- amount: 495,
87
+ amount: 939,
88
88
  currency: 'usd',
89
89
  interval: 'month',
90
90
  providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
91
91
  },
92
92
  year: {
93
- amount: 5346,
93
+ amount: 750 * consts_1.YEAR_MONTHS,
94
94
  currency: 'usd',
95
95
  interval: 'year',
96
96
  providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
97
97
  },
98
98
  },
99
99
  features: {
100
- incoming_messages_events: 50_000,
101
- integration_spend: 5_000_000_000, // $5 in nano-dollars
102
- table_rows: 100000,
103
- bot_count: 3,
104
- collaborator_count: 3,
105
- file_storage: 10_000_000_000, // 10 GB
106
- vector_db_storage: 2_000_000_000, // 2 GB
100
+ incoming_messages_events: consts_1.BIG_UNLIMITED,
101
+ integration_spend: 5 * consts_1.NANO_DOLLAR_IN_DOLLAR,
102
+ table_rows: 500_000,
103
+ bot_count: consts_1.SMALL_UNLIMITED,
104
+ collaborator_count: consts_1.SMALL_UNLIMITED,
105
+ file_storage: 50 * consts_1.GB,
106
+ vector_db_storage: 5 * consts_1.GB,
107
107
  saved_versions: 100,
108
- indexed_file_count: 10_000,
109
- conversation_sessions: 1_000,
108
+ indexed_file_count: consts_1.BIG_UNLIMITED,
109
+ conversation_sessions: 1_500,
110
110
  },
111
111
  providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
112
112
  },
@@ -4,7 +4,7 @@ import { z } from 'zod';
4
4
  * This allows us to have a reference to the Stripe products and prices in our billing config without having to hardcode them before they are created in Stripe.
5
5
  */
6
6
  export declare const UNKNOWN_STRIPE_ID = "__UNKNOWN_STRIPE_ID__";
7
- export declare const featureSchema: z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions"]>;
7
+ export declare const featureSchema: z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions", "ai_spend"]>;
8
8
  export type Interval = z.infer<typeof intervalSchema>;
9
9
  export declare const intervalSchema: z.ZodEnum<["month", "year"]>;
10
10
  export type UnitAmount = z.infer<typeof unitAmountSchema>;
@@ -78,7 +78,7 @@ export declare const planSchema: z.ZodObject<{
78
78
  providerPriceId: string;
79
79
  metadata?: Record<string, string> | undefined;
80
80
  }>>;
81
- features: z.ZodRecord<z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions"]>, z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
81
+ features: z.ZodRecord<z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions", "ai_spend"]>, z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
82
82
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
83
83
  providerProductId: z.ZodString;
84
84
  }, "strip", z.ZodTypeAny, {
@@ -93,7 +93,7 @@ export declare const planSchema: z.ZodObject<{
93
93
  providerPriceId: string;
94
94
  metadata?: Record<string, string> | undefined;
95
95
  }>>;
96
- features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
96
+ features: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
97
97
  providerProductId: string;
98
98
  metadata?: Record<string, string> | undefined;
99
99
  }, {
@@ -108,7 +108,7 @@ export declare const planSchema: z.ZodObject<{
108
108
  providerPriceId: string;
109
109
  metadata?: Record<string, string> | undefined;
110
110
  }>>;
111
- features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
111
+ features: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
112
112
  providerProductId: string;
113
113
  metadata?: Record<string, string> | undefined;
114
114
  }>;
@@ -136,7 +136,7 @@ export declare const addOnSchema: z.ZodObject<{
136
136
  providerPriceId: string;
137
137
  metadata?: Record<string, string> | undefined;
138
138
  }>>;
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>;
139
+ increments: z.ZodRecord<z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions", "ai_spend"]>, z.ZodNumber>;
140
140
  prorationDisabled: z.ZodOptional<z.ZodBoolean>;
141
141
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
142
142
  autoRechargeable: z.ZodOptional<z.ZodBoolean>;
@@ -154,7 +154,7 @@ export declare const addOnSchema: z.ZodObject<{
154
154
  metadata?: Record<string, string> | undefined;
155
155
  }>;
156
156
  providerProductId: string;
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>>;
157
+ increments: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
158
158
  metadata?: Record<string, string> | undefined;
159
159
  prorationDisabled?: boolean | undefined;
160
160
  autoRechargeable?: boolean | undefined;
@@ -171,7 +171,7 @@ export declare const addOnSchema: z.ZodObject<{
171
171
  metadata?: Record<string, string> | undefined;
172
172
  }>;
173
173
  providerProductId: string;
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>>;
174
+ increments: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
175
175
  metadata?: Record<string, string> | undefined;
176
176
  prorationDisabled?: boolean | undefined;
177
177
  autoRechargeable?: boolean | undefined;
@@ -309,7 +309,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
309
309
  providerPriceId: string;
310
310
  metadata?: Record<string, string> | undefined;
311
311
  }>>;
312
- features: z.ZodRecord<z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions"]>, z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
312
+ features: z.ZodRecord<z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions", "ai_spend"]>, z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
313
313
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
314
314
  providerProductId: z.ZodString;
315
315
  }, "strip", z.ZodTypeAny, {
@@ -324,7 +324,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
324
324
  providerPriceId: string;
325
325
  metadata?: Record<string, string> | undefined;
326
326
  }>>;
327
- features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
327
+ features: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
328
328
  providerProductId: string;
329
329
  metadata?: Record<string, string> | undefined;
330
330
  }, {
@@ -339,7 +339,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
339
339
  providerPriceId: string;
340
340
  metadata?: Record<string, string> | undefined;
341
341
  }>>;
342
- features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
342
+ features: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
343
343
  providerProductId: string;
344
344
  metadata?: Record<string, string> | undefined;
345
345
  }>>;
@@ -366,7 +366,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
366
366
  providerPriceId: string;
367
367
  metadata?: Record<string, string> | undefined;
368
368
  }>>;
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>;
369
+ increments: z.ZodRecord<z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions", "ai_spend"]>, z.ZodNumber>;
370
370
  prorationDisabled: z.ZodOptional<z.ZodBoolean>;
371
371
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
372
372
  autoRechargeable: z.ZodOptional<z.ZodBoolean>;
@@ -384,7 +384,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
384
384
  metadata?: Record<string, string> | undefined;
385
385
  }>;
386
386
  providerProductId: string;
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>>;
387
+ increments: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
388
388
  metadata?: Record<string, string> | undefined;
389
389
  prorationDisabled?: boolean | undefined;
390
390
  autoRechargeable?: boolean | undefined;
@@ -401,7 +401,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
401
401
  metadata?: Record<string, string> | undefined;
402
402
  }>;
403
403
  providerProductId: string;
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>>;
404
+ increments: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
405
405
  metadata?: Record<string, string> | undefined;
406
406
  prorationDisabled?: boolean | undefined;
407
407
  autoRechargeable?: boolean | undefined;
@@ -527,7 +527,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
527
527
  providerPriceId: string;
528
528
  metadata?: Record<string, string> | undefined;
529
529
  }>>;
530
- features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
530
+ features: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
531
531
  providerProductId: string;
532
532
  metadata?: Record<string, string> | undefined;
533
533
  }>;
@@ -543,7 +543,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
543
543
  metadata?: Record<string, string> | undefined;
544
544
  }>;
545
545
  providerProductId: string;
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>>;
546
+ increments: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
547
547
  metadata?: Record<string, string> | undefined;
548
548
  prorationDisabled?: boolean | undefined;
549
549
  autoRechargeable?: boolean | undefined;
@@ -593,7 +593,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
593
593
  providerPriceId: string;
594
594
  metadata?: Record<string, string> | undefined;
595
595
  }>>;
596
- features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
596
+ features: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
597
597
  providerProductId: string;
598
598
  metadata?: Record<string, string> | undefined;
599
599
  }>;
@@ -609,7 +609,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
609
609
  metadata?: Record<string, string> | undefined;
610
610
  }>;
611
611
  providerProductId: string;
612
- increments: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
612
+ increments: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
613
613
  metadata?: Record<string, string> | undefined;
614
614
  prorationDisabled?: boolean | undefined;
615
615
  autoRechargeable?: boolean | undefined;
@@ -673,7 +673,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
673
673
  providerPriceId: string;
674
674
  metadata?: Record<string, string> | undefined;
675
675
  }>>;
676
- features: z.ZodRecord<z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions"]>, z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
676
+ features: z.ZodRecord<z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions", "ai_spend"]>, z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
677
677
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
678
678
  providerProductId: z.ZodString;
679
679
  }, "strip", z.ZodTypeAny, {
@@ -688,7 +688,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
688
688
  providerPriceId: string;
689
689
  metadata?: Record<string, string> | undefined;
690
690
  }>>;
691
- features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
691
+ features: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
692
692
  providerProductId: string;
693
693
  metadata?: Record<string, string> | undefined;
694
694
  }, {
@@ -703,7 +703,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
703
703
  providerPriceId: string;
704
704
  metadata?: Record<string, string> | undefined;
705
705
  }>>;
706
- features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
706
+ features: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
707
707
  providerProductId: string;
708
708
  metadata?: Record<string, string> | undefined;
709
709
  }>>;
@@ -730,7 +730,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
730
730
  providerPriceId: string;
731
731
  metadata?: Record<string, string> | undefined;
732
732
  }>>;
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>;
733
+ increments: z.ZodRecord<z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions", "ai_spend"]>, z.ZodNumber>;
734
734
  prorationDisabled: z.ZodOptional<z.ZodBoolean>;
735
735
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
736
736
  autoRechargeable: z.ZodOptional<z.ZodBoolean>;
@@ -748,7 +748,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
748
748
  metadata?: Record<string, string> | undefined;
749
749
  }>;
750
750
  providerProductId: string;
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>>;
751
+ increments: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
752
752
  metadata?: Record<string, string> | undefined;
753
753
  prorationDisabled?: boolean | undefined;
754
754
  autoRechargeable?: boolean | undefined;
@@ -765,7 +765,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
765
765
  metadata?: Record<string, string> | undefined;
766
766
  }>;
767
767
  providerProductId: string;
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>>;
768
+ increments: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
769
769
  metadata?: Record<string, string> | undefined;
770
770
  prorationDisabled?: boolean | undefined;
771
771
  autoRechargeable?: boolean | undefined;
@@ -891,7 +891,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
891
891
  providerPriceId: string;
892
892
  metadata?: Record<string, string> | undefined;
893
893
  }>>;
894
- features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
894
+ features: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
895
895
  providerProductId: string;
896
896
  metadata?: Record<string, string> | undefined;
897
897
  }>;
@@ -907,7 +907,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
907
907
  metadata?: Record<string, string> | undefined;
908
908
  }>;
909
909
  providerProductId: string;
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>>;
910
+ increments: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
911
911
  metadata?: Record<string, string> | undefined;
912
912
  prorationDisabled?: boolean | undefined;
913
913
  autoRechargeable?: boolean | undefined;
@@ -957,7 +957,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
957
957
  providerPriceId: string;
958
958
  metadata?: Record<string, string> | undefined;
959
959
  }>>;
960
- features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
960
+ features: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number | boolean>>;
961
961
  providerProductId: string;
962
962
  metadata?: Record<string, string> | undefined;
963
963
  }>;
@@ -973,7 +973,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
973
973
  metadata?: Record<string, string> | undefined;
974
974
  }>;
975
975
  providerProductId: string;
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>>;
976
+ increments: Partial<Record<"bot_count" | "ai_spend" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
977
977
  metadata?: Record<string, string> | undefined;
978
978
  prorationDisabled?: boolean | undefined;
979
979
  autoRechargeable?: boolean | undefined;
@@ -7,8 +7,8 @@ export declare const billingConfig: {
7
7
  readonly plans: {
8
8
  readonly community: {
9
9
  readonly id: "community";
10
- readonly name: "Plan - Pay as you go";
11
- readonly description: "Free plan for developers";
10
+ readonly name: "Plan - Free";
11
+ readonly description: "Free plan for trying things out";
12
12
  readonly tierIndex: 0;
13
13
  readonly prices: {
14
14
  readonly month: {
@@ -19,13 +19,13 @@ export declare const billingConfig: {
19
19
  };
20
20
  };
21
21
  readonly features: {
22
- readonly incoming_messages_events: 500;
23
- readonly integration_spend: 5000000000;
22
+ readonly incoming_messages_events: 5000000;
23
+ readonly integration_spend: number;
24
24
  readonly table_rows: 1000;
25
- readonly bot_count: 1;
25
+ readonly bot_count: 3;
26
26
  readonly collaborator_count: 1;
27
- readonly file_storage: 100000000;
28
- readonly vector_db_storage: 100000000;
27
+ readonly file_storage: number;
28
+ readonly vector_db_storage: number;
29
29
  readonly saved_versions: 3;
30
30
  readonly indexed_file_count: 1000;
31
31
  readonly conversation_sessions: 100;
@@ -39,26 +39,26 @@ export declare const billingConfig: {
39
39
  readonly tierIndex: 1;
40
40
  readonly prices: {
41
41
  readonly month: {
42
- readonly amount: 89;
42
+ readonly amount: 189;
43
43
  readonly currency: "usd";
44
44
  readonly interval: "month";
45
45
  readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
46
46
  };
47
47
  readonly year: {
48
- readonly amount: 948;
48
+ readonly amount: number;
49
49
  readonly currency: "usd";
50
50
  readonly interval: "year";
51
51
  readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
52
52
  };
53
53
  };
54
54
  readonly features: {
55
- readonly incoming_messages_events: 5000;
56
- readonly integration_spend: 5000000000;
55
+ readonly incoming_messages_events: 5000000;
56
+ readonly integration_spend: number;
57
57
  readonly table_rows: 100000;
58
- readonly bot_count: 2;
59
- readonly collaborator_count: 2;
60
- readonly file_storage: 10000000000;
61
- readonly vector_db_storage: 1000000000;
58
+ readonly bot_count: 5000;
59
+ readonly collaborator_count: 3;
60
+ readonly file_storage: number;
61
+ readonly vector_db_storage: number;
62
62
  readonly saved_versions: 50;
63
63
  readonly indexed_file_count: 2000;
64
64
  readonly conversation_sessions: 250;
@@ -72,29 +72,29 @@ export declare const billingConfig: {
72
72
  readonly tierIndex: 2;
73
73
  readonly prices: {
74
74
  readonly month: {
75
- readonly amount: 495;
75
+ readonly amount: 939;
76
76
  readonly currency: "usd";
77
77
  readonly interval: "month";
78
78
  readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
79
79
  };
80
80
  readonly year: {
81
- readonly amount: 5346;
81
+ readonly amount: number;
82
82
  readonly currency: "usd";
83
83
  readonly interval: "year";
84
84
  readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
85
85
  };
86
86
  };
87
87
  readonly features: {
88
- readonly incoming_messages_events: 50000;
89
- readonly integration_spend: 5000000000;
90
- readonly table_rows: 100000;
91
- readonly bot_count: 3;
92
- readonly collaborator_count: 3;
93
- readonly file_storage: 10000000000;
94
- readonly vector_db_storage: 2000000000;
88
+ readonly incoming_messages_events: 5000000;
89
+ readonly integration_spend: number;
90
+ readonly table_rows: 500000;
91
+ readonly bot_count: 5000;
92
+ readonly collaborator_count: 5000;
93
+ readonly file_storage: number;
94
+ readonly vector_db_storage: number;
95
95
  readonly saved_versions: 100;
96
- readonly indexed_file_count: 10000;
97
- readonly conversation_sessions: 1000;
96
+ readonly indexed_file_count: 5000000;
97
+ readonly conversation_sessions: 1500;
98
98
  };
99
99
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
100
100
  };
@@ -157,16 +157,30 @@ export declare const billingConfig: {
157
157
  readonly conversation_sessions_addon: {
158
158
  readonly id: "conversation_sessions_addon";
159
159
  readonly name: "Add-on - Conversation Sessions";
160
- readonly description: "Adds 500 conversations sessions per month";
161
- readonly prices: Record<string, {
162
- amount: number;
163
- currency: "usd";
164
- interval: "month" | "year";
165
- providerPriceId: string;
166
- metadata?: Record<string, string> | undefined;
167
- }>;
160
+ readonly description: "Adds conversations sessions for the month";
161
+ readonly prices: {
162
+ readonly plus: {
163
+ readonly amount: 65;
164
+ readonly currency: "usd";
165
+ readonly interval: "month";
166
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
167
+ };
168
+ readonly team: {
169
+ readonly amount: 50;
170
+ readonly currency: "usd";
171
+ readonly interval: "month";
172
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
173
+ };
174
+ readonly enterprise: {
175
+ readonly amount: -1;
176
+ readonly currency: "usd";
177
+ readonly interval: "month";
178
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
179
+ };
180
+ };
168
181
  readonly increments: {
169
- readonly conversation_sessions: 500;
182
+ readonly conversation_sessions: 100;
183
+ readonly ai_spend: number;
170
184
  };
171
185
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
172
186
  readonly autoRechargeable: true;
@@ -260,8 +274,8 @@ export declare const billingDefinitions: {
260
274
  readonly plans: {
261
275
  readonly community: {
262
276
  readonly id: "community";
263
- readonly name: "Plan - Pay as you go";
264
- readonly description: "Free plan for developers";
277
+ readonly name: "Plan - Free";
278
+ readonly description: "Free plan for trying things out";
265
279
  readonly tierIndex: 0;
266
280
  readonly prices: {
267
281
  readonly month: {
@@ -272,13 +286,13 @@ export declare const billingDefinitions: {
272
286
  };
273
287
  };
274
288
  readonly features: {
275
- readonly incoming_messages_events: 500;
276
- readonly integration_spend: 5000000000;
289
+ readonly incoming_messages_events: 5000000;
290
+ readonly integration_spend: number;
277
291
  readonly table_rows: 1000;
278
- readonly bot_count: 1;
292
+ readonly bot_count: 3;
279
293
  readonly collaborator_count: 1;
280
- readonly file_storage: 100000000;
281
- readonly vector_db_storage: 100000000;
294
+ readonly file_storage: number;
295
+ readonly vector_db_storage: number;
282
296
  readonly saved_versions: 3;
283
297
  readonly indexed_file_count: 1000;
284
298
  readonly conversation_sessions: 100;
@@ -292,26 +306,26 @@ export declare const billingDefinitions: {
292
306
  readonly tierIndex: 1;
293
307
  readonly prices: {
294
308
  readonly month: {
295
- readonly amount: 89;
309
+ readonly amount: 189;
296
310
  readonly currency: "usd";
297
311
  readonly interval: "month";
298
312
  readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
299
313
  };
300
314
  readonly year: {
301
- readonly amount: 948;
315
+ readonly amount: number;
302
316
  readonly currency: "usd";
303
317
  readonly interval: "year";
304
318
  readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
305
319
  };
306
320
  };
307
321
  readonly features: {
308
- readonly incoming_messages_events: 5000;
309
- readonly integration_spend: 5000000000;
322
+ readonly incoming_messages_events: 5000000;
323
+ readonly integration_spend: number;
310
324
  readonly table_rows: 100000;
311
- readonly bot_count: 2;
312
- readonly collaborator_count: 2;
313
- readonly file_storage: 10000000000;
314
- readonly vector_db_storage: 1000000000;
325
+ readonly bot_count: 5000;
326
+ readonly collaborator_count: 3;
327
+ readonly file_storage: number;
328
+ readonly vector_db_storage: number;
315
329
  readonly saved_versions: 50;
316
330
  readonly indexed_file_count: 2000;
317
331
  readonly conversation_sessions: 250;
@@ -325,29 +339,29 @@ export declare const billingDefinitions: {
325
339
  readonly tierIndex: 2;
326
340
  readonly prices: {
327
341
  readonly month: {
328
- readonly amount: 495;
342
+ readonly amount: 939;
329
343
  readonly currency: "usd";
330
344
  readonly interval: "month";
331
345
  readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
332
346
  };
333
347
  readonly year: {
334
- readonly amount: 5346;
348
+ readonly amount: number;
335
349
  readonly currency: "usd";
336
350
  readonly interval: "year";
337
351
  readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
338
352
  };
339
353
  };
340
354
  readonly features: {
341
- readonly incoming_messages_events: 50000;
342
- readonly integration_spend: 5000000000;
343
- readonly table_rows: 100000;
344
- readonly bot_count: 3;
345
- readonly collaborator_count: 3;
346
- readonly file_storage: 10000000000;
347
- readonly vector_db_storage: 2000000000;
355
+ readonly incoming_messages_events: 5000000;
356
+ readonly integration_spend: number;
357
+ readonly table_rows: 500000;
358
+ readonly bot_count: 5000;
359
+ readonly collaborator_count: 5000;
360
+ readonly file_storage: number;
361
+ readonly vector_db_storage: number;
348
362
  readonly saved_versions: 100;
349
- readonly indexed_file_count: 10000;
350
- readonly conversation_sessions: 1000;
363
+ readonly indexed_file_count: 5000000;
364
+ readonly conversation_sessions: 1500;
351
365
  };
352
366
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
353
367
  };
@@ -410,16 +424,30 @@ export declare const billingDefinitions: {
410
424
  readonly conversation_sessions_addon: {
411
425
  readonly id: "conversation_sessions_addon";
412
426
  readonly name: "Add-on - Conversation Sessions";
413
- readonly description: "Adds 500 conversations sessions per month";
414
- readonly prices: Record<string, {
415
- amount: number;
416
- currency: "usd";
417
- interval: "month" | "year";
418
- providerPriceId: string;
419
- metadata?: Record<string, string> | undefined;
420
- }>;
427
+ readonly description: "Adds conversations sessions for the month";
428
+ readonly prices: {
429
+ readonly plus: {
430
+ readonly amount: 65;
431
+ readonly currency: "usd";
432
+ readonly interval: "month";
433
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
434
+ };
435
+ readonly team: {
436
+ readonly amount: 50;
437
+ readonly currency: "usd";
438
+ readonly interval: "month";
439
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
440
+ };
441
+ readonly enterprise: {
442
+ readonly amount: -1;
443
+ readonly currency: "usd";
444
+ readonly interval: "month";
445
+ readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
446
+ };
447
+ };
421
448
  readonly increments: {
422
- readonly conversation_sessions: 500;
449
+ readonly conversation_sessions: 100;
450
+ readonly ai_spend: number;
423
451
  };
424
452
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
425
453
  readonly autoRechargeable: true;
@@ -4,3 +4,8 @@
4
4
  */
5
5
  export declare const FREE_PRICE = -1;
6
6
  export declare const GB = 1000000000;
7
+ export declare const MB = 1000000;
8
+ export declare const SMALL_UNLIMITED = 5000;
9
+ export declare const BIG_UNLIMITED = 5000000;
10
+ export declare const NANO_DOLLAR_IN_DOLLAR = 1000000000;
11
+ export declare const YEAR_MONTHS = 12;
@@ -1,9 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GB = exports.FREE_PRICE = void 0;
3
+ exports.YEAR_MONTHS = exports.NANO_DOLLAR_IN_DOLLAR = exports.BIG_UNLIMITED = exports.SMALL_UNLIMITED = exports.MB = exports.GB = exports.FREE_PRICE = void 0;
4
4
  /**
5
5
  * Special price value indicating a free product/plan.
6
6
  * This will be converted to $0 during deployment.
7
7
  */
8
8
  exports.FREE_PRICE = -1;
9
9
  exports.GB = 1_000_000_000;
10
+ exports.MB = 1_000_000;
11
+ exports.SMALL_UNLIMITED = 5000;
12
+ exports.BIG_UNLIMITED = 5_000_000;
13
+ exports.NANO_DOLLAR_IN_DOLLAR = 1_000_000_000;
14
+ exports.YEAR_MONTHS = 12;
@@ -15,7 +15,6 @@ export declare const billingFeatureDefinitions: [{
15
15
  readonly description: "Credits spent on integrations (AI, third-party services)";
16
16
  readonly resetPeriod: "monthly";
17
17
  readonly consistency: "eventual";
18
- readonly grantable: true;
19
18
  readonly dimensions: {
20
19
  readonly botId: "Bot ID";
21
20
  readonly integrationName: "Integration name";
@@ -70,6 +69,13 @@ export declare const billingFeatureDefinitions: [{
70
69
  readonly description: "Number of conversation sessions that can occur";
71
70
  readonly resetPeriod: "monthly";
72
71
  readonly consistency: "eventual";
72
+ }, {
73
+ readonly id: "ai_spend";
74
+ readonly name: "AI Spend";
75
+ readonly description: "Amount that is useable for AI in nano-dollars";
76
+ readonly resetPeriod: "monthly";
77
+ readonly consistency: "eventual";
78
+ readonly grantable: true;
73
79
  }];
74
80
  export type BillingFeatureDefinitions = typeof billingFeatureDefinitions;
75
81
  export type AtomicBillingFeatureDefinitions = FilterTuple<BillingFeatureDefinitions, {
@@ -19,7 +19,6 @@ exports.billingFeatureDefinitions = [
19
19
  description: 'Credits spent on integrations (AI, third-party services)',
20
20
  resetPeriod: 'monthly',
21
21
  consistency: 'eventual',
22
- grantable: true,
23
22
  dimensions: {
24
23
  botId: 'Bot ID',
25
24
  integrationName: 'Integration name',
@@ -83,6 +82,14 @@ exports.billingFeatureDefinitions = [
83
82
  resetPeriod: 'monthly',
84
83
  consistency: 'eventual',
85
84
  },
85
+ {
86
+ id: 'ai_spend',
87
+ name: 'AI Spend',
88
+ description: 'Amount that is useable for AI in nano-dollars',
89
+ resetPeriod: 'monthly',
90
+ consistency: 'eventual',
91
+ grantable: true,
92
+ },
86
93
  ];
87
94
  exports.BILLING_FEATURE_IDS = exports.billingFeatureDefinitions.map((def) => def.id);
88
95
  exports.ATOMIC_BILLING_FEATURE_IDS = exports.billingFeatureDefinitions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpinternal/const",
3
- "version": "0.20.0",
3
+ "version": "0.22.0",
4
4
  "description": "Shared constants for Skynet billing refactor (vendored copy of upstream packages/const)",
5
5
  "license": "UNLICENSED",
6
6
  "files": [
@@ -20,6 +20,7 @@
20
20
  "clean": "rm -rf dist tsconfig.tsbuildinfo",
21
21
  "check:type": "tsc --noEmit",
22
22
  "check:lint": "oxlint --type-aware",
23
- "fix:lint": "oxlint --type-aware --fix"
23
+ "fix:lint": "oxlint --type-aware --fix",
24
+ "docs": "typedoc --out docs/typedoc"
24
25
  }
25
26
  }