@bpinternal/const 0.17.0 → 0.18.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.
@@ -1,90 +1,9 @@
1
1
  export type BillingAddonId = keyof typeof addons;
2
2
  export declare const addons: {
3
- readonly bot_addon: {
4
- readonly id: "bot_addon";
5
- readonly name: "Add-on - Bot";
6
- readonly description: "Add one more bot to your workspace";
7
- readonly prices: {
8
- readonly month: {
9
- readonly amount: 10;
10
- readonly currency: "usd";
11
- readonly interval: "month";
12
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
13
- };
14
- };
15
- readonly feature: "bot_count";
16
- readonly increment: 1;
17
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
18
- };
19
- readonly collaborator_addon: {
20
- readonly id: "collaborator_addon";
21
- readonly name: "Add-on - Collaborators";
22
- readonly description: "Add one more collaborator to your workspace";
23
- readonly prices: {
24
- readonly month: {
25
- readonly amount: 25;
26
- readonly currency: "usd";
27
- readonly interval: "month";
28
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
29
- };
30
- };
31
- readonly feature: "collaborator_count";
32
- readonly increment: 1;
33
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
34
- };
35
- readonly messages_events_addon: {
36
- readonly id: "messages_events_addon";
37
- readonly name: "Add-on - Messages & Events";
38
- readonly description: "Adds 5,000 messages and events";
39
- readonly prorationDisabled: true;
40
- readonly prices: {
41
- readonly month: {
42
- readonly amount: 20;
43
- readonly currency: "usd";
44
- readonly interval: "month";
45
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
46
- };
47
- };
48
- readonly feature: "incoming_messages_events";
49
- readonly increment: 5000;
50
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
51
- };
52
- readonly table_rows_addon: {
53
- readonly id: "table_rows_addon";
54
- readonly name: "Add-on - Table Rows";
55
- readonly description: "Adds 100,000 additional table rows";
56
- readonly prices: {
57
- readonly month: {
58
- readonly amount: 25;
59
- readonly currency: "usd";
60
- readonly interval: "month";
61
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
62
- };
63
- };
64
- readonly feature: "table_rows";
65
- readonly increment: 100000;
66
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
67
- };
68
- readonly file_storage_addon: {
69
- readonly id: "file_storage_addon";
70
- readonly name: "Add-on - File Storage";
71
- readonly description: "Adds 10GB of File Storage";
72
- readonly prices: {
73
- readonly month: {
74
- readonly amount: 10;
75
- readonly currency: "usd";
76
- readonly interval: "month";
77
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
78
- };
79
- };
80
- readonly feature: "file_storage";
81
- readonly increment: 10000000000;
82
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
83
- };
84
- readonly vector_db_storage_addon: {
85
- readonly id: "vector_db_storage_addon";
86
- readonly name: "Add-on - Vector DB Storage";
87
- readonly description: "Add 1 GB of vector database storage";
3
+ readonly conversation_sessions_addon: {
4
+ readonly id: "conversation_sessions_addon";
5
+ readonly name: "Add-on - Conversation Sessions";
6
+ readonly description: "Adds 500 conversations sessions per month";
88
7
  readonly prices: {
89
8
  readonly month: {
90
9
  readonly amount: 20;
@@ -93,91 +12,29 @@ export declare const addons: {
93
12
  readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
94
13
  };
95
14
  };
96
- readonly feature: "vector_db_storage";
97
- readonly increment: 1000000000;
98
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
99
- };
100
- readonly web_search_addon: {
101
- readonly id: "web_search_addon";
102
- readonly name: "Web Search and Crawl";
103
- readonly description: "Web search and crawl functionality";
104
- readonly prices: {
105
- readonly month: {
106
- readonly amount: 10;
107
- readonly currency: "usd";
108
- readonly interval: "month";
109
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
110
- };
15
+ readonly increments: {
16
+ readonly conversation_sessions: 500;
111
17
  };
112
- readonly feature: "integration_spend";
113
- readonly increment: 10000000000;
114
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
115
- };
116
- readonly ai_credits_addon: {
117
- readonly id: "ai_credits_addon";
118
- readonly name: "AI Tokens";
119
- readonly description: "Add $25 worth of AI credits";
120
- readonly prices: {
121
- readonly month: {
122
- readonly amount: 25;
123
- readonly currency: "usd";
124
- readonly interval: "month";
125
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
126
- };
127
- };
128
- readonly feature: "integration_spend";
129
- readonly increment: 25000000000;
130
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
131
- };
132
- readonly enterprise_ai_token: {
133
- readonly id: "enterprise_ai_token";
134
- readonly name: "Enterprise - AI Token";
135
- readonly description: "Enterprise AI token credits";
136
- readonly prices: {
137
- readonly month: {
138
- readonly amount: -1;
139
- readonly currency: "usd";
140
- readonly interval: "month";
141
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
142
- };
143
- };
144
- readonly feature: "integration_spend";
145
- readonly increment: 100000000000;
146
- readonly hidden: true;
147
18
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
19
+ readonly autoRechargeable: true;
148
20
  };
149
- readonly enterprise_additional_workspace: {
150
- readonly id: "enterprise_additional_workspace";
151
- readonly name: "Enterprise - Additional Workspace";
152
- readonly description: "Enterprise additional workspace";
21
+ readonly storage_addon: {
22
+ readonly id: "storage_addon";
23
+ readonly name: "Add-on - Storage";
24
+ readonly description: "Adds table rows, vector db space and files";
153
25
  readonly prices: {
154
26
  readonly month: {
155
- readonly amount: -1;
27
+ readonly amount: 40;
156
28
  readonly currency: "usd";
157
29
  readonly interval: "month";
158
30
  readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
159
31
  };
160
32
  };
161
- readonly feature: "collaborator_count";
162
- readonly increment: 10;
163
- readonly hidden: true;
164
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
165
- };
166
- readonly conversation_sessions_addon: {
167
- readonly id: "conversation_sessions_addon";
168
- readonly name: "Add-on - Conversation Sessions";
169
- readonly description: "Adds 500 conversations sessions per month";
170
- readonly prices: {
171
- readonly month: {
172
- readonly amount: 20;
173
- readonly currency: "usd";
174
- readonly interval: "month";
175
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
176
- };
33
+ readonly increments: {
34
+ readonly table_rows: 100000;
35
+ readonly vector_db_storage: number;
36
+ readonly file_storage: number;
177
37
  };
178
- readonly feature: "conversation_sessions";
179
- readonly increment: 500;
180
38
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
181
- readonly autoRechargeable: true;
182
39
  };
183
40
  };
@@ -5,184 +5,39 @@ const consts_1 = require("../consts");
5
5
  const schemas_1 = require("./schemas");
6
6
  /* IMPORTANT: the `name` field is used to match existing products in Stripe DO NOT CHANGE THE NAME OF AN EXISTING PRODUCT */
7
7
  exports.addons = {
8
- bot_addon: {
9
- id: 'bot_addon',
10
- name: 'Add-on - Bot',
11
- description: 'Add one more bot to your workspace',
12
- prices: {
13
- month: {
14
- amount: 10,
15
- currency: 'usd',
16
- interval: 'month',
17
- providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
18
- },
19
- },
20
- feature: 'bot_count',
21
- increment: 1,
22
- providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
23
- },
24
- collaborator_addon: {
25
- id: 'collaborator_addon',
26
- name: 'Add-on - Collaborators',
27
- description: 'Add one more collaborator to your workspace',
28
- prices: {
29
- month: {
30
- amount: 25,
31
- currency: 'usd',
32
- interval: 'month',
33
- providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
34
- },
35
- },
36
- feature: 'collaborator_count',
37
- increment: 1,
38
- providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
39
- },
40
- messages_events_addon: {
41
- id: 'messages_events_addon',
42
- name: 'Add-on - Messages & Events',
43
- description: 'Adds 5,000 messages and events',
44
- prorationDisabled: true,
45
- prices: {
46
- month: {
47
- amount: 20,
48
- currency: 'usd',
49
- interval: 'month',
50
- providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
51
- },
52
- },
53
- feature: 'incoming_messages_events',
54
- increment: 5000,
55
- providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
56
- },
57
- table_rows_addon: {
58
- id: 'table_rows_addon',
59
- name: 'Add-on - Table Rows',
60
- description: 'Adds 100,000 additional table rows',
61
- prices: {
62
- month: {
63
- amount: 25,
64
- currency: 'usd',
65
- interval: 'month',
66
- providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
67
- },
68
- },
69
- feature: 'table_rows',
70
- increment: 100000,
71
- providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
72
- },
73
- file_storage_addon: {
74
- id: 'file_storage_addon',
75
- name: 'Add-on - File Storage',
76
- description: 'Adds 10GB of File Storage',
77
- prices: {
78
- month: {
79
- amount: 10,
80
- currency: 'usd',
81
- interval: 'month',
82
- providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
83
- },
84
- },
85
- feature: 'file_storage',
86
- increment: 10_000_000_000, // 10 GB
87
- providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
88
- },
89
- vector_db_storage_addon: {
90
- id: 'vector_db_storage_addon',
91
- name: 'Add-on - Vector DB Storage',
92
- description: 'Add 1 GB of vector database storage',
93
- prices: {
94
- month: {
95
- amount: 20,
96
- currency: 'usd',
97
- interval: 'month',
98
- providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
99
- },
100
- },
101
- feature: 'vector_db_storage',
102
- increment: 1_000_000_000, // 1 GB
103
- providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
104
- },
105
- web_search_addon: {
106
- id: 'web_search_addon',
107
- name: 'Web Search and Crawl',
108
- description: 'Web search and crawl functionality',
109
- prices: {
110
- month: {
111
- amount: 10,
112
- currency: 'usd',
113
- interval: 'month',
114
- providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
115
- },
116
- },
117
- feature: 'integration_spend',
118
- increment: 10_000_000_000, // $10 in nano-dollars
119
- providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
120
- },
121
- ai_credits_addon: {
122
- id: 'ai_credits_addon',
123
- name: 'AI Tokens',
124
- description: 'Add $25 worth of AI credits',
125
- prices: {
126
- month: {
127
- amount: 25,
128
- currency: 'usd',
129
- interval: 'month',
130
- providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
131
- },
132
- },
133
- feature: 'integration_spend',
134
- increment: 25_000_000_000, // $25 in nano-dollars
135
- providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
136
- },
137
- enterprise_ai_token: {
138
- id: 'enterprise_ai_token',
139
- name: 'Enterprise - AI Token',
140
- description: 'Enterprise AI token credits',
8
+ conversation_sessions_addon: {
9
+ id: 'conversation_sessions_addon',
10
+ name: 'Add-on - Conversation Sessions',
11
+ description: 'Adds 500 conversations sessions per month',
141
12
  prices: {
142
13
  month: {
143
- amount: consts_1.FREE_PRICE, // Custom pricing
14
+ amount: 20, //TODO change for variable pricing
144
15
  currency: 'usd',
145
16
  interval: 'month',
146
17
  providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
147
18
  },
148
19
  },
149
- feature: 'integration_spend',
150
- increment: 100_000_000_000, // $100 in nano-dollars
151
- hidden: true,
20
+ increments: { conversation_sessions: 500 },
152
21
  providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
22
+ autoRechargeable: true,
153
23
  },
154
- enterprise_additional_workspace: {
155
- id: 'enterprise_additional_workspace',
156
- name: 'Enterprise - Additional Workspace',
157
- description: 'Enterprise additional workspace',
24
+ storage_addon: {
25
+ id: 'storage_addon',
26
+ name: 'Add-on - Storage',
27
+ description: 'Adds table rows, vector db space and files',
158
28
  prices: {
159
29
  month: {
160
- amount: consts_1.FREE_PRICE, // Custom pricing
30
+ amount: 40,
161
31
  currency: 'usd',
162
32
  interval: 'month',
163
33
  providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
164
34
  },
165
35
  },
166
- feature: 'collaborator_count',
167
- increment: 10,
168
- hidden: true,
169
- providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
170
- },
171
- conversation_sessions_addon: {
172
- id: 'conversation_sessions_addon',
173
- name: 'Add-on - Conversation Sessions',
174
- description: 'Adds 500 conversations sessions per month',
175
- prices: {
176
- month: {
177
- amount: 20,
178
- currency: 'usd',
179
- interval: 'month',
180
- providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
181
- },
36
+ increments: {
37
+ table_rows: 100_000,
38
+ vector_db_storage: 1 * consts_1.GB,
39
+ file_storage: 10 * consts_1.GB,
182
40
  },
183
- feature: 'conversation_sessions',
184
- increment: 500, // not sure about this number
185
41
  providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
186
- autoRechargeable: true,
187
42
  },
188
43
  };
@@ -113,7 +113,7 @@ export declare const planSchema: z.ZodObject<{
113
113
  metadata?: Record<string, string> | undefined;
114
114
  }>;
115
115
  export type BillingAddon = z.infer<typeof addOnSchema>;
116
- export declare const addOnSchema: z.ZodEffects<z.ZodObject<{
116
+ export declare const addOnSchema: z.ZodObject<{
117
117
  id: z.ZodString;
118
118
  name: z.ZodString;
119
119
  description: z.ZodString;
@@ -136,9 +136,7 @@ export declare const addOnSchema: z.ZodEffects<z.ZodObject<{
136
136
  providerPriceId: string;
137
137
  metadata?: Record<string, string> | undefined;
138
138
  }>>;
139
- feature: z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions"]>;
140
- increment: z.ZodNumber;
141
- increments: z.ZodOptional<z.ZodRecord<z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions"]>, z.ZodNumber>>;
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>;
142
140
  prorationDisabled: z.ZodOptional<z.ZodBoolean>;
143
141
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
144
142
  autoRechargeable: z.ZodOptional<z.ZodBoolean>;
@@ -156,10 +154,8 @@ export declare const addOnSchema: z.ZodEffects<z.ZodObject<{
156
154
  metadata?: Record<string, string> | undefined;
157
155
  }>>;
158
156
  providerProductId: string;
159
- feature: "bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions";
160
- increment: number;
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>>;
161
158
  metadata?: Record<string, string> | undefined;
162
- increments?: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>> | undefined;
163
159
  prorationDisabled?: boolean | undefined;
164
160
  autoRechargeable?: boolean | undefined;
165
161
  hidden?: boolean | undefined;
@@ -175,48 +171,8 @@ export declare const addOnSchema: z.ZodEffects<z.ZodObject<{
175
171
  metadata?: Record<string, string> | undefined;
176
172
  }>>;
177
173
  providerProductId: string;
178
- feature: "bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions";
179
- increment: number;
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>>;
180
175
  metadata?: Record<string, string> | undefined;
181
- increments?: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>> | undefined;
182
- prorationDisabled?: boolean | undefined;
183
- autoRechargeable?: boolean | undefined;
184
- hidden?: boolean | undefined;
185
- }>, {
186
- id: string;
187
- name: string;
188
- description: string;
189
- prices: Partial<Record<"month" | "year", {
190
- amount: number;
191
- currency: "usd";
192
- interval: "month" | "year";
193
- providerPriceId: string;
194
- metadata?: Record<string, string> | undefined;
195
- }>>;
196
- providerProductId: string;
197
- feature: "bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions";
198
- increment: number;
199
- metadata?: Record<string, string> | undefined;
200
- increments?: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>> | undefined;
201
- prorationDisabled?: boolean | undefined;
202
- autoRechargeable?: boolean | undefined;
203
- hidden?: boolean | undefined;
204
- }, {
205
- id: string;
206
- name: string;
207
- description: string;
208
- prices: Partial<Record<"month" | "year", {
209
- amount: number;
210
- currency: "usd";
211
- interval: "month" | "year";
212
- providerPriceId: string;
213
- metadata?: Record<string, string> | undefined;
214
- }>>;
215
- providerProductId: string;
216
- feature: "bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions";
217
- increment: number;
218
- metadata?: Record<string, string> | undefined;
219
- increments?: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>> | undefined;
220
176
  prorationDisabled?: boolean | undefined;
221
177
  autoRechargeable?: boolean | undefined;
222
178
  hidden?: boolean | undefined;
@@ -387,7 +343,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
387
343
  providerProductId: string;
388
344
  metadata?: Record<string, string> | undefined;
389
345
  }>>;
390
- addons: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
346
+ addons: z.ZodRecord<z.ZodString, z.ZodObject<{
391
347
  id: z.ZodString;
392
348
  name: z.ZodString;
393
349
  description: z.ZodString;
@@ -410,9 +366,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
410
366
  providerPriceId: string;
411
367
  metadata?: Record<string, string> | undefined;
412
368
  }>>;
413
- feature: z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions"]>;
414
- increment: z.ZodNumber;
415
- increments: z.ZodOptional<z.ZodRecord<z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions"]>, z.ZodNumber>>;
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>;
416
370
  prorationDisabled: z.ZodOptional<z.ZodBoolean>;
417
371
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
418
372
  autoRechargeable: z.ZodOptional<z.ZodBoolean>;
@@ -430,10 +384,8 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
430
384
  metadata?: Record<string, string> | undefined;
431
385
  }>>;
432
386
  providerProductId: string;
433
- feature: "bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions";
434
- increment: number;
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>>;
435
388
  metadata?: Record<string, string> | undefined;
436
- increments?: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>> | undefined;
437
389
  prorationDisabled?: boolean | undefined;
438
390
  autoRechargeable?: boolean | undefined;
439
391
  hidden?: boolean | undefined;
@@ -449,48 +401,8 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
449
401
  metadata?: Record<string, string> | undefined;
450
402
  }>>;
451
403
  providerProductId: string;
452
- feature: "bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions";
453
- increment: number;
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>>;
454
405
  metadata?: Record<string, string> | undefined;
455
- increments?: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>> | undefined;
456
- prorationDisabled?: boolean | undefined;
457
- autoRechargeable?: boolean | undefined;
458
- hidden?: boolean | undefined;
459
- }>, {
460
- id: string;
461
- name: string;
462
- description: string;
463
- prices: Partial<Record<"month" | "year", {
464
- amount: number;
465
- currency: "usd";
466
- interval: "month" | "year";
467
- providerPriceId: string;
468
- metadata?: Record<string, string> | undefined;
469
- }>>;
470
- providerProductId: string;
471
- feature: "bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions";
472
- increment: number;
473
- metadata?: Record<string, string> | undefined;
474
- increments?: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>> | undefined;
475
- prorationDisabled?: boolean | undefined;
476
- autoRechargeable?: boolean | undefined;
477
- hidden?: boolean | undefined;
478
- }, {
479
- id: string;
480
- name: string;
481
- description: string;
482
- prices: Partial<Record<"month" | "year", {
483
- amount: number;
484
- currency: "usd";
485
- interval: "month" | "year";
486
- providerPriceId: string;
487
- metadata?: Record<string, string> | undefined;
488
- }>>;
489
- providerProductId: string;
490
- feature: "bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions";
491
- increment: number;
492
- metadata?: Record<string, string> | undefined;
493
- increments?: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>> | undefined;
494
406
  prorationDisabled?: boolean | undefined;
495
407
  autoRechargeable?: boolean | undefined;
496
408
  hidden?: boolean | undefined;
@@ -631,10 +543,8 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
631
543
  metadata?: Record<string, string> | undefined;
632
544
  }>>;
633
545
  providerProductId: string;
634
- feature: "bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions";
635
- increment: number;
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>>;
636
547
  metadata?: Record<string, string> | undefined;
637
- increments?: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>> | undefined;
638
548
  prorationDisabled?: boolean | undefined;
639
549
  autoRechargeable?: boolean | undefined;
640
550
  hidden?: boolean | undefined;
@@ -699,10 +609,8 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
699
609
  metadata?: Record<string, string> | undefined;
700
610
  }>>;
701
611
  providerProductId: string;
702
- feature: "bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions";
703
- increment: number;
612
+ increments: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>>;
704
613
  metadata?: Record<string, string> | undefined;
705
- increments?: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>> | undefined;
706
614
  prorationDisabled?: boolean | undefined;
707
615
  autoRechargeable?: boolean | undefined;
708
616
  hidden?: boolean | undefined;
@@ -799,7 +707,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
799
707
  providerProductId: string;
800
708
  metadata?: Record<string, string> | undefined;
801
709
  }>>;
802
- addons: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
710
+ addons: z.ZodRecord<z.ZodString, z.ZodObject<{
803
711
  id: z.ZodString;
804
712
  name: z.ZodString;
805
713
  description: z.ZodString;
@@ -822,9 +730,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
822
730
  providerPriceId: string;
823
731
  metadata?: Record<string, string> | undefined;
824
732
  }>>;
825
- feature: z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions"]>;
826
- increment: z.ZodNumber;
827
- increments: z.ZodOptional<z.ZodRecord<z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions"]>, z.ZodNumber>>;
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>;
828
734
  prorationDisabled: z.ZodOptional<z.ZodBoolean>;
829
735
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
830
736
  autoRechargeable: z.ZodOptional<z.ZodBoolean>;
@@ -842,48 +748,8 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
842
748
  metadata?: Record<string, string> | undefined;
843
749
  }>>;
844
750
  providerProductId: string;
845
- feature: "bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions";
846
- increment: number;
847
- metadata?: Record<string, string> | undefined;
848
- increments?: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>> | undefined;
849
- prorationDisabled?: boolean | undefined;
850
- autoRechargeable?: boolean | undefined;
851
- hidden?: boolean | undefined;
852
- }, {
853
- id: string;
854
- name: string;
855
- description: string;
856
- prices: Partial<Record<"month" | "year", {
857
- amount: number;
858
- currency: "usd";
859
- interval: "month" | "year";
860
- providerPriceId: string;
861
- metadata?: Record<string, string> | undefined;
862
- }>>;
863
- providerProductId: string;
864
- feature: "bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions";
865
- increment: number;
866
- metadata?: Record<string, string> | undefined;
867
- increments?: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>> | undefined;
868
- prorationDisabled?: boolean | undefined;
869
- autoRechargeable?: boolean | undefined;
870
- hidden?: boolean | undefined;
871
- }>, {
872
- id: string;
873
- name: string;
874
- description: string;
875
- prices: Partial<Record<"month" | "year", {
876
- amount: number;
877
- currency: "usd";
878
- interval: "month" | "year";
879
- providerPriceId: string;
880
- metadata?: Record<string, string> | undefined;
881
- }>>;
882
- providerProductId: string;
883
- feature: "bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions";
884
- increment: number;
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>>;
885
752
  metadata?: Record<string, string> | undefined;
886
- increments?: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>> | undefined;
887
753
  prorationDisabled?: boolean | undefined;
888
754
  autoRechargeable?: boolean | undefined;
889
755
  hidden?: boolean | undefined;
@@ -899,10 +765,8 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
899
765
  metadata?: Record<string, string> | undefined;
900
766
  }>>;
901
767
  providerProductId: string;
902
- feature: "bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions";
903
- increment: number;
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>>;
904
769
  metadata?: Record<string, string> | undefined;
905
- increments?: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>> | undefined;
906
770
  prorationDisabled?: boolean | undefined;
907
771
  autoRechargeable?: boolean | undefined;
908
772
  hidden?: boolean | undefined;
@@ -1043,10 +907,8 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1043
907
  metadata?: Record<string, string> | undefined;
1044
908
  }>>;
1045
909
  providerProductId: string;
1046
- feature: "bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions";
1047
- increment: number;
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>>;
1048
911
  metadata?: Record<string, string> | undefined;
1049
- increments?: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>> | undefined;
1050
912
  prorationDisabled?: boolean | undefined;
1051
913
  autoRechargeable?: boolean | undefined;
1052
914
  hidden?: boolean | undefined;
@@ -1111,10 +973,8 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1111
973
  metadata?: Record<string, string> | undefined;
1112
974
  }>>;
1113
975
  providerProductId: string;
1114
- feature: "bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions";
1115
- increment: number;
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>>;
1116
977
  metadata?: Record<string, string> | undefined;
1117
- increments?: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "conversation_sessions", number>> | undefined;
1118
978
  prorationDisabled?: boolean | undefined;
1119
979
  autoRechargeable?: boolean | undefined;
1120
980
  hidden?: boolean | undefined;
@@ -37,32 +37,17 @@ exports.planSchema = zod_1.z.object({
37
37
  metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
38
38
  providerProductId: zod_1.z.string(), // pulumi
39
39
  });
40
- exports.addOnSchema = zod_1.z
41
- .object({
40
+ exports.addOnSchema = zod_1.z.object({
42
41
  id: zod_1.z.string(),
43
42
  name: zod_1.z.string(),
44
43
  description: zod_1.z.string(),
45
44
  prices: zod_1.z.record(exports.intervalSchema, exports.priceSchema),
46
- feature: exports.featureSchema,
47
- increment: zod_1.z.number().positive(),
48
- increments: zod_1.z.record(exports.featureSchema, zod_1.z.number().positive()).optional(),
45
+ increments: zod_1.z.record(exports.featureSchema, zod_1.z.number().positive()),
49
46
  prorationDisabled: zod_1.z.boolean().optional(),
50
47
  metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
51
48
  autoRechargeable: zod_1.z.boolean().optional(),
52
49
  hidden: zod_1.z.boolean().optional(),
53
50
  providerProductId: zod_1.z.string(), // pulumi
54
- })
55
- .superRefine((data, ctx) => {
56
- if (!data.increments) {
57
- return;
58
- }
59
- if (data.increments[data.feature] !== data.increment) {
60
- ctx.addIssue({
61
- code: zod_1.z.ZodIssueCode.custom,
62
- message: 'addon increments must include the legacy feature with the same increment',
63
- path: ['increments', data.feature],
64
- });
65
- }
66
51
  });
67
52
  exports.meterSchema = zod_1.z.object({
68
53
  id: zod_1.z.string(),
@@ -154,91 +154,10 @@ export declare const billingConfig: {
154
154
  };
155
155
  };
156
156
  readonly addons: {
157
- readonly bot_addon: {
158
- readonly id: "bot_addon";
159
- readonly name: "Add-on - Bot";
160
- readonly description: "Add one more bot to your workspace";
161
- readonly prices: {
162
- readonly month: {
163
- readonly amount: 10;
164
- readonly currency: "usd";
165
- readonly interval: "month";
166
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
167
- };
168
- };
169
- readonly feature: "bot_count";
170
- readonly increment: 1;
171
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
172
- };
173
- readonly collaborator_addon: {
174
- readonly id: "collaborator_addon";
175
- readonly name: "Add-on - Collaborators";
176
- readonly description: "Add one more collaborator to your workspace";
177
- readonly prices: {
178
- readonly month: {
179
- readonly amount: 25;
180
- readonly currency: "usd";
181
- readonly interval: "month";
182
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
183
- };
184
- };
185
- readonly feature: "collaborator_count";
186
- readonly increment: 1;
187
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
188
- };
189
- readonly messages_events_addon: {
190
- readonly id: "messages_events_addon";
191
- readonly name: "Add-on - Messages & Events";
192
- readonly description: "Adds 5,000 messages and events";
193
- readonly prorationDisabled: true;
194
- readonly prices: {
195
- readonly month: {
196
- readonly amount: 20;
197
- readonly currency: "usd";
198
- readonly interval: "month";
199
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
200
- };
201
- };
202
- readonly feature: "incoming_messages_events";
203
- readonly increment: 5000;
204
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
205
- };
206
- readonly table_rows_addon: {
207
- readonly id: "table_rows_addon";
208
- readonly name: "Add-on - Table Rows";
209
- readonly description: "Adds 100,000 additional table rows";
210
- readonly prices: {
211
- readonly month: {
212
- readonly amount: 25;
213
- readonly currency: "usd";
214
- readonly interval: "month";
215
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
216
- };
217
- };
218
- readonly feature: "table_rows";
219
- readonly increment: 100000;
220
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
221
- };
222
- readonly file_storage_addon: {
223
- readonly id: "file_storage_addon";
224
- readonly name: "Add-on - File Storage";
225
- readonly description: "Adds 10GB of File Storage";
226
- readonly prices: {
227
- readonly month: {
228
- readonly amount: 10;
229
- readonly currency: "usd";
230
- readonly interval: "month";
231
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
232
- };
233
- };
234
- readonly feature: "file_storage";
235
- readonly increment: 10000000000;
236
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
237
- };
238
- readonly vector_db_storage_addon: {
239
- readonly id: "vector_db_storage_addon";
240
- readonly name: "Add-on - Vector DB Storage";
241
- readonly description: "Add 1 GB of vector database storage";
157
+ readonly conversation_sessions_addon: {
158
+ readonly id: "conversation_sessions_addon";
159
+ readonly name: "Add-on - Conversation Sessions";
160
+ readonly description: "Adds 500 conversations sessions per month";
242
161
  readonly prices: {
243
162
  readonly month: {
244
163
  readonly amount: 20;
@@ -247,92 +166,30 @@ export declare const billingConfig: {
247
166
  readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
248
167
  };
249
168
  };
250
- readonly feature: "vector_db_storage";
251
- readonly increment: 1000000000;
252
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
253
- };
254
- readonly web_search_addon: {
255
- readonly id: "web_search_addon";
256
- readonly name: "Web Search and Crawl";
257
- readonly description: "Web search and crawl functionality";
258
- readonly prices: {
259
- readonly month: {
260
- readonly amount: 10;
261
- readonly currency: "usd";
262
- readonly interval: "month";
263
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
264
- };
265
- };
266
- readonly feature: "integration_spend";
267
- readonly increment: 10000000000;
268
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
269
- };
270
- readonly ai_credits_addon: {
271
- readonly id: "ai_credits_addon";
272
- readonly name: "AI Tokens";
273
- readonly description: "Add $25 worth of AI credits";
274
- readonly prices: {
275
- readonly month: {
276
- readonly amount: 25;
277
- readonly currency: "usd";
278
- readonly interval: "month";
279
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
280
- };
169
+ readonly increments: {
170
+ readonly conversation_sessions: 500;
281
171
  };
282
- readonly feature: "integration_spend";
283
- readonly increment: 25000000000;
284
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
285
- };
286
- readonly enterprise_ai_token: {
287
- readonly id: "enterprise_ai_token";
288
- readonly name: "Enterprise - AI Token";
289
- readonly description: "Enterprise AI token credits";
290
- readonly prices: {
291
- readonly month: {
292
- readonly amount: -1;
293
- readonly currency: "usd";
294
- readonly interval: "month";
295
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
296
- };
297
- };
298
- readonly feature: "integration_spend";
299
- readonly increment: 100000000000;
300
- readonly hidden: true;
301
172
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
173
+ readonly autoRechargeable: true;
302
174
  };
303
- readonly enterprise_additional_workspace: {
304
- readonly id: "enterprise_additional_workspace";
305
- readonly name: "Enterprise - Additional Workspace";
306
- readonly description: "Enterprise additional workspace";
175
+ readonly storage_addon: {
176
+ readonly id: "storage_addon";
177
+ readonly name: "Add-on - Storage";
178
+ readonly description: "Adds table rows, vector db space and files";
307
179
  readonly prices: {
308
180
  readonly month: {
309
- readonly amount: -1;
181
+ readonly amount: 40;
310
182
  readonly currency: "usd";
311
183
  readonly interval: "month";
312
184
  readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
313
185
  };
314
186
  };
315
- readonly feature: "collaborator_count";
316
- readonly increment: 10;
317
- readonly hidden: true;
318
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
319
- };
320
- readonly conversation_sessions_addon: {
321
- readonly id: "conversation_sessions_addon";
322
- readonly name: "Add-on - Conversation Sessions";
323
- readonly description: "Adds 500 conversations sessions per month";
324
- readonly prices: {
325
- readonly month: {
326
- readonly amount: 20;
327
- readonly currency: "usd";
328
- readonly interval: "month";
329
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
330
- };
187
+ readonly increments: {
188
+ readonly table_rows: 100000;
189
+ readonly vector_db_storage: number;
190
+ readonly file_storage: number;
331
191
  };
332
- readonly feature: "conversation_sessions";
333
- readonly increment: 500;
334
192
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
335
- readonly autoRechargeable: true;
336
193
  };
337
194
  };
338
195
  readonly meters: {
@@ -552,91 +409,10 @@ export declare const billingDefinitions: {
552
409
  };
553
410
  };
554
411
  readonly addons: {
555
- readonly bot_addon: {
556
- readonly id: "bot_addon";
557
- readonly name: "Add-on - Bot";
558
- readonly description: "Add one more bot to your workspace";
559
- readonly prices: {
560
- readonly month: {
561
- readonly amount: 10;
562
- readonly currency: "usd";
563
- readonly interval: "month";
564
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
565
- };
566
- };
567
- readonly feature: "bot_count";
568
- readonly increment: 1;
569
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
570
- };
571
- readonly collaborator_addon: {
572
- readonly id: "collaborator_addon";
573
- readonly name: "Add-on - Collaborators";
574
- readonly description: "Add one more collaborator to your workspace";
575
- readonly prices: {
576
- readonly month: {
577
- readonly amount: 25;
578
- readonly currency: "usd";
579
- readonly interval: "month";
580
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
581
- };
582
- };
583
- readonly feature: "collaborator_count";
584
- readonly increment: 1;
585
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
586
- };
587
- readonly messages_events_addon: {
588
- readonly id: "messages_events_addon";
589
- readonly name: "Add-on - Messages & Events";
590
- readonly description: "Adds 5,000 messages and events";
591
- readonly prorationDisabled: true;
592
- readonly prices: {
593
- readonly month: {
594
- readonly amount: 20;
595
- readonly currency: "usd";
596
- readonly interval: "month";
597
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
598
- };
599
- };
600
- readonly feature: "incoming_messages_events";
601
- readonly increment: 5000;
602
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
603
- };
604
- readonly table_rows_addon: {
605
- readonly id: "table_rows_addon";
606
- readonly name: "Add-on - Table Rows";
607
- readonly description: "Adds 100,000 additional table rows";
608
- readonly prices: {
609
- readonly month: {
610
- readonly amount: 25;
611
- readonly currency: "usd";
612
- readonly interval: "month";
613
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
614
- };
615
- };
616
- readonly feature: "table_rows";
617
- readonly increment: 100000;
618
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
619
- };
620
- readonly file_storage_addon: {
621
- readonly id: "file_storage_addon";
622
- readonly name: "Add-on - File Storage";
623
- readonly description: "Adds 10GB of File Storage";
624
- readonly prices: {
625
- readonly month: {
626
- readonly amount: 10;
627
- readonly currency: "usd";
628
- readonly interval: "month";
629
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
630
- };
631
- };
632
- readonly feature: "file_storage";
633
- readonly increment: 10000000000;
634
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
635
- };
636
- readonly vector_db_storage_addon: {
637
- readonly id: "vector_db_storage_addon";
638
- readonly name: "Add-on - Vector DB Storage";
639
- readonly description: "Add 1 GB of vector database storage";
412
+ readonly conversation_sessions_addon: {
413
+ readonly id: "conversation_sessions_addon";
414
+ readonly name: "Add-on - Conversation Sessions";
415
+ readonly description: "Adds 500 conversations sessions per month";
640
416
  readonly prices: {
641
417
  readonly month: {
642
418
  readonly amount: 20;
@@ -645,92 +421,30 @@ export declare const billingDefinitions: {
645
421
  readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
646
422
  };
647
423
  };
648
- readonly feature: "vector_db_storage";
649
- readonly increment: 1000000000;
650
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
651
- };
652
- readonly web_search_addon: {
653
- readonly id: "web_search_addon";
654
- readonly name: "Web Search and Crawl";
655
- readonly description: "Web search and crawl functionality";
656
- readonly prices: {
657
- readonly month: {
658
- readonly amount: 10;
659
- readonly currency: "usd";
660
- readonly interval: "month";
661
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
662
- };
663
- };
664
- readonly feature: "integration_spend";
665
- readonly increment: 10000000000;
666
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
667
- };
668
- readonly ai_credits_addon: {
669
- readonly id: "ai_credits_addon";
670
- readonly name: "AI Tokens";
671
- readonly description: "Add $25 worth of AI credits";
672
- readonly prices: {
673
- readonly month: {
674
- readonly amount: 25;
675
- readonly currency: "usd";
676
- readonly interval: "month";
677
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
678
- };
424
+ readonly increments: {
425
+ readonly conversation_sessions: 500;
679
426
  };
680
- readonly feature: "integration_spend";
681
- readonly increment: 25000000000;
682
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
683
- };
684
- readonly enterprise_ai_token: {
685
- readonly id: "enterprise_ai_token";
686
- readonly name: "Enterprise - AI Token";
687
- readonly description: "Enterprise AI token credits";
688
- readonly prices: {
689
- readonly month: {
690
- readonly amount: -1;
691
- readonly currency: "usd";
692
- readonly interval: "month";
693
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
694
- };
695
- };
696
- readonly feature: "integration_spend";
697
- readonly increment: 100000000000;
698
- readonly hidden: true;
699
427
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
428
+ readonly autoRechargeable: true;
700
429
  };
701
- readonly enterprise_additional_workspace: {
702
- readonly id: "enterprise_additional_workspace";
703
- readonly name: "Enterprise - Additional Workspace";
704
- readonly description: "Enterprise additional workspace";
430
+ readonly storage_addon: {
431
+ readonly id: "storage_addon";
432
+ readonly name: "Add-on - Storage";
433
+ readonly description: "Adds table rows, vector db space and files";
705
434
  readonly prices: {
706
435
  readonly month: {
707
- readonly amount: -1;
436
+ readonly amount: 40;
708
437
  readonly currency: "usd";
709
438
  readonly interval: "month";
710
439
  readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
711
440
  };
712
441
  };
713
- readonly feature: "collaborator_count";
714
- readonly increment: 10;
715
- readonly hidden: true;
716
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
717
- };
718
- readonly conversation_sessions_addon: {
719
- readonly id: "conversation_sessions_addon";
720
- readonly name: "Add-on - Conversation Sessions";
721
- readonly description: "Adds 500 conversations sessions per month";
722
- readonly prices: {
723
- readonly month: {
724
- readonly amount: 20;
725
- readonly currency: "usd";
726
- readonly interval: "month";
727
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
728
- };
442
+ readonly increments: {
443
+ readonly table_rows: 100000;
444
+ readonly vector_db_storage: number;
445
+ readonly file_storage: number;
729
446
  };
730
- readonly feature: "conversation_sessions";
731
- readonly increment: 500;
732
447
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
733
- readonly autoRechargeable: true;
734
448
  };
735
449
  };
736
450
  readonly meters: {
@@ -3,3 +3,4 @@
3
3
  * This will be converted to $0 during deployment.
4
4
  */
5
5
  export declare const FREE_PRICE = -1;
6
+ export declare const GB = 1000000000;
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FREE_PRICE = void 0;
3
+ 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
+ exports.GB = 1_000_000_000;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpinternal/const",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "description": "Shared constants for Skynet billing refactor (vendored copy of upstream packages/const)",
5
5
  "license": "UNLICENSED",
6
6
  "files": [