@bpinternal/const 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/billing-next/config/addons.d.ts +18 -0
- package/dist/billing-next/config/addons.js +18 -0
- package/dist/billing-next/config/plans.d.ts +5 -0
- package/dist/billing-next/config/plans.js +8 -4
- package/dist/billing-next/config/schemas.d.ts +52 -52
- package/dist/billing-next/config/versions.d.ts +46 -0
- package/dist/billing-next/features.d.ts +6 -0
- package/dist/billing-next/features.js +7 -0
- package/package.json +2 -2
|
@@ -36,6 +36,7 @@ export declare const addons: {
|
|
|
36
36
|
readonly id: "messages_events_addon";
|
|
37
37
|
readonly name: "Add-on - Messages & Events";
|
|
38
38
|
readonly description: "Adds 5,000 messages and events";
|
|
39
|
+
readonly prorationDisabled: true;
|
|
39
40
|
readonly prices: {
|
|
40
41
|
readonly month: {
|
|
41
42
|
readonly amount: 20;
|
|
@@ -162,4 +163,21 @@ export declare const addons: {
|
|
|
162
163
|
readonly hidden: true;
|
|
163
164
|
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
164
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
|
+
};
|
|
177
|
+
};
|
|
178
|
+
readonly feature: "conversation_sessions";
|
|
179
|
+
readonly increment: 500;
|
|
180
|
+
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
181
|
+
readonly autoRechargeable: true;
|
|
182
|
+
};
|
|
165
183
|
};
|
|
@@ -41,6 +41,7 @@ exports.addons = {
|
|
|
41
41
|
id: 'messages_events_addon',
|
|
42
42
|
name: 'Add-on - Messages & Events',
|
|
43
43
|
description: 'Adds 5,000 messages and events',
|
|
44
|
+
prorationDisabled: true,
|
|
44
45
|
prices: {
|
|
45
46
|
month: {
|
|
46
47
|
amount: 20,
|
|
@@ -167,4 +168,21 @@ exports.addons = {
|
|
|
167
168
|
hidden: true,
|
|
168
169
|
providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
|
|
169
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
|
+
},
|
|
182
|
+
},
|
|
183
|
+
feature: 'conversation_sessions',
|
|
184
|
+
increment: 500, // not sure about this number
|
|
185
|
+
providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
|
|
186
|
+
autoRechargeable: true,
|
|
187
|
+
},
|
|
170
188
|
};
|
|
@@ -23,6 +23,7 @@ export declare const plans: {
|
|
|
23
23
|
readonly vector_db_storage: 100000000;
|
|
24
24
|
readonly saved_versions: 3;
|
|
25
25
|
readonly indexed_file_count: 1000;
|
|
26
|
+
readonly conversation_sessions: 100;
|
|
26
27
|
};
|
|
27
28
|
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
28
29
|
};
|
|
@@ -55,6 +56,7 @@ export declare const plans: {
|
|
|
55
56
|
readonly vector_db_storage: 1000000000;
|
|
56
57
|
readonly saved_versions: 50;
|
|
57
58
|
readonly indexed_file_count: 2000;
|
|
59
|
+
readonly conversation_sessions: 250;
|
|
58
60
|
};
|
|
59
61
|
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
60
62
|
};
|
|
@@ -87,6 +89,7 @@ export declare const plans: {
|
|
|
87
89
|
readonly vector_db_storage: 2000000000;
|
|
88
90
|
readonly saved_versions: 100;
|
|
89
91
|
readonly indexed_file_count: 10000;
|
|
92
|
+
readonly conversation_sessions: 1000;
|
|
90
93
|
};
|
|
91
94
|
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
92
95
|
};
|
|
@@ -113,6 +116,7 @@ export declare const plans: {
|
|
|
113
116
|
vector_db_storage: number;
|
|
114
117
|
saved_versions: number;
|
|
115
118
|
indexed_file_count: number;
|
|
119
|
+
conversation_sessions: number;
|
|
116
120
|
};
|
|
117
121
|
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
118
122
|
};
|
|
@@ -139,6 +143,7 @@ export declare const plans: {
|
|
|
139
143
|
vector_db_storage: number;
|
|
140
144
|
saved_versions: number;
|
|
141
145
|
indexed_file_count: number;
|
|
146
|
+
conversation_sessions: number;
|
|
142
147
|
};
|
|
143
148
|
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
144
149
|
};
|
|
@@ -4,7 +4,7 @@ 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:
|
|
7
|
+
incoming_messages_events: 1_000_000,
|
|
8
8
|
integration_spend: 5_000_000_000, // $5 in nano-dollars
|
|
9
9
|
table_rows: 10000000,
|
|
10
10
|
bot_count: 100,
|
|
@@ -13,6 +13,7 @@ const ENTERPRISE_PLAN_FEATURES = {
|
|
|
13
13
|
vector_db_storage: 500_000_000_000, // 500 GB
|
|
14
14
|
saved_versions: 1000,
|
|
15
15
|
indexed_file_count: 10_000,
|
|
16
|
+
conversation_sessions: 10_000,
|
|
16
17
|
};
|
|
17
18
|
/* IMPORTANT: the `name` field is used to match existing products in Stripe DO NOT CHANGE THE NAME OF AN EXISTING PRODUCT */
|
|
18
19
|
exports.plans = {
|
|
@@ -39,6 +40,7 @@ exports.plans = {
|
|
|
39
40
|
vector_db_storage: 100_000_000, // 100 MB
|
|
40
41
|
saved_versions: 3,
|
|
41
42
|
indexed_file_count: 1_000,
|
|
43
|
+
conversation_sessions: 100,
|
|
42
44
|
},
|
|
43
45
|
providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
|
|
44
46
|
},
|
|
@@ -62,15 +64,16 @@ exports.plans = {
|
|
|
62
64
|
},
|
|
63
65
|
},
|
|
64
66
|
features: {
|
|
65
|
-
incoming_messages_events:
|
|
67
|
+
incoming_messages_events: 5_000,
|
|
66
68
|
integration_spend: 5_000_000_000, // $5 in nano-dollars
|
|
67
|
-
table_rows:
|
|
69
|
+
table_rows: 100_000,
|
|
68
70
|
bot_count: 2,
|
|
69
71
|
collaborator_count: 2,
|
|
70
72
|
file_storage: 10_000_000_000, // 10 GB
|
|
71
73
|
vector_db_storage: 1_000_000_000, // 1 GB
|
|
72
74
|
saved_versions: 50,
|
|
73
75
|
indexed_file_count: 2_000,
|
|
76
|
+
conversation_sessions: 250,
|
|
74
77
|
},
|
|
75
78
|
providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
|
|
76
79
|
},
|
|
@@ -94,7 +97,7 @@ exports.plans = {
|
|
|
94
97
|
},
|
|
95
98
|
},
|
|
96
99
|
features: {
|
|
97
|
-
incoming_messages_events:
|
|
100
|
+
incoming_messages_events: 50_000,
|
|
98
101
|
integration_spend: 5_000_000_000, // $5 in nano-dollars
|
|
99
102
|
table_rows: 100000,
|
|
100
103
|
bot_count: 3,
|
|
@@ -103,6 +106,7 @@ exports.plans = {
|
|
|
103
106
|
vector_db_storage: 2_000_000_000, // 2 GB
|
|
104
107
|
saved_versions: 100,
|
|
105
108
|
indexed_file_count: 10_000,
|
|
109
|
+
conversation_sessions: 1_000,
|
|
106
110
|
},
|
|
107
111
|
providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
|
|
108
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"]>;
|
|
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"]>;
|
|
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"]>, 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"]>, 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", number | boolean>>;
|
|
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>>;
|
|
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", number | boolean>>;
|
|
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>>;
|
|
112
112
|
providerProductId: string;
|
|
113
113
|
metadata?: Record<string, string> | undefined;
|
|
114
114
|
}>;
|
|
@@ -136,9 +136,9 @@ 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"]>;
|
|
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
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"]>, 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>>;
|
|
142
142
|
prorationDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
143
143
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
144
144
|
autoRechargeable: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -156,10 +156,10 @@ export declare const addOnSchema: z.ZodEffects<z.ZodObject<{
|
|
|
156
156
|
metadata?: Record<string, string> | undefined;
|
|
157
157
|
}>>;
|
|
158
158
|
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";
|
|
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
160
|
increment: number;
|
|
161
161
|
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", number>> | 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
163
|
prorationDisabled?: boolean | undefined;
|
|
164
164
|
autoRechargeable?: boolean | undefined;
|
|
165
165
|
hidden?: boolean | undefined;
|
|
@@ -175,10 +175,10 @@ export declare const addOnSchema: z.ZodEffects<z.ZodObject<{
|
|
|
175
175
|
metadata?: Record<string, string> | undefined;
|
|
176
176
|
}>>;
|
|
177
177
|
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";
|
|
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
179
|
increment: number;
|
|
180
180
|
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", number>> | 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
182
|
prorationDisabled?: boolean | undefined;
|
|
183
183
|
autoRechargeable?: boolean | undefined;
|
|
184
184
|
hidden?: boolean | undefined;
|
|
@@ -194,10 +194,10 @@ export declare const addOnSchema: z.ZodEffects<z.ZodObject<{
|
|
|
194
194
|
metadata?: Record<string, string> | undefined;
|
|
195
195
|
}>>;
|
|
196
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";
|
|
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
198
|
increment: number;
|
|
199
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", number>> | 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
201
|
prorationDisabled?: boolean | undefined;
|
|
202
202
|
autoRechargeable?: boolean | undefined;
|
|
203
203
|
hidden?: boolean | undefined;
|
|
@@ -213,10 +213,10 @@ export declare const addOnSchema: z.ZodEffects<z.ZodObject<{
|
|
|
213
213
|
metadata?: Record<string, string> | undefined;
|
|
214
214
|
}>>;
|
|
215
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";
|
|
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
217
|
increment: number;
|
|
218
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", number>> | 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
220
|
prorationDisabled?: boolean | undefined;
|
|
221
221
|
autoRechargeable?: boolean | undefined;
|
|
222
222
|
hidden?: boolean | undefined;
|
|
@@ -353,7 +353,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
353
353
|
providerPriceId: string;
|
|
354
354
|
metadata?: Record<string, string> | undefined;
|
|
355
355
|
}>>;
|
|
356
|
-
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"]>, z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
356
|
+
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]>>;
|
|
357
357
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
358
358
|
providerProductId: z.ZodString;
|
|
359
359
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -368,7 +368,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
368
368
|
providerPriceId: string;
|
|
369
369
|
metadata?: Record<string, string> | undefined;
|
|
370
370
|
}>>;
|
|
371
|
-
features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions", number | boolean>>;
|
|
371
|
+
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>>;
|
|
372
372
|
providerProductId: string;
|
|
373
373
|
metadata?: Record<string, string> | undefined;
|
|
374
374
|
}, {
|
|
@@ -383,7 +383,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
383
383
|
providerPriceId: string;
|
|
384
384
|
metadata?: Record<string, string> | undefined;
|
|
385
385
|
}>>;
|
|
386
|
-
features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions", number | boolean>>;
|
|
386
|
+
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>>;
|
|
387
387
|
providerProductId: string;
|
|
388
388
|
metadata?: Record<string, string> | undefined;
|
|
389
389
|
}>>;
|
|
@@ -410,9 +410,9 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
410
410
|
providerPriceId: string;
|
|
411
411
|
metadata?: Record<string, string> | undefined;
|
|
412
412
|
}>>;
|
|
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"]>;
|
|
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
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"]>, 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>>;
|
|
416
416
|
prorationDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
417
417
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
418
418
|
autoRechargeable: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -430,10 +430,10 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
430
430
|
metadata?: Record<string, string> | undefined;
|
|
431
431
|
}>>;
|
|
432
432
|
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";
|
|
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
434
|
increment: number;
|
|
435
435
|
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", number>> | 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
437
|
prorationDisabled?: boolean | undefined;
|
|
438
438
|
autoRechargeable?: boolean | undefined;
|
|
439
439
|
hidden?: boolean | undefined;
|
|
@@ -449,10 +449,10 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
449
449
|
metadata?: Record<string, string> | undefined;
|
|
450
450
|
}>>;
|
|
451
451
|
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";
|
|
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
453
|
increment: number;
|
|
454
454
|
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", number>> | 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
456
|
prorationDisabled?: boolean | undefined;
|
|
457
457
|
autoRechargeable?: boolean | undefined;
|
|
458
458
|
hidden?: boolean | undefined;
|
|
@@ -468,10 +468,10 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
468
468
|
metadata?: Record<string, string> | undefined;
|
|
469
469
|
}>>;
|
|
470
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";
|
|
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
472
|
increment: number;
|
|
473
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", number>> | 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
475
|
prorationDisabled?: boolean | undefined;
|
|
476
476
|
autoRechargeable?: boolean | undefined;
|
|
477
477
|
hidden?: boolean | undefined;
|
|
@@ -487,10 +487,10 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
487
487
|
metadata?: Record<string, string> | undefined;
|
|
488
488
|
}>>;
|
|
489
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";
|
|
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
491
|
increment: number;
|
|
492
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", number>> | 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
494
|
prorationDisabled?: boolean | undefined;
|
|
495
495
|
autoRechargeable?: boolean | undefined;
|
|
496
496
|
hidden?: boolean | undefined;
|
|
@@ -615,7 +615,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
615
615
|
providerPriceId: string;
|
|
616
616
|
metadata?: Record<string, string> | undefined;
|
|
617
617
|
}>>;
|
|
618
|
-
features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions", number | boolean>>;
|
|
618
|
+
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>>;
|
|
619
619
|
providerProductId: string;
|
|
620
620
|
metadata?: Record<string, string> | undefined;
|
|
621
621
|
}>;
|
|
@@ -631,10 +631,10 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
631
631
|
metadata?: Record<string, string> | undefined;
|
|
632
632
|
}>>;
|
|
633
633
|
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";
|
|
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
635
|
increment: number;
|
|
636
636
|
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", number>> | 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
638
|
prorationDisabled?: boolean | undefined;
|
|
639
639
|
autoRechargeable?: boolean | undefined;
|
|
640
640
|
hidden?: boolean | undefined;
|
|
@@ -683,7 +683,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
683
683
|
providerPriceId: string;
|
|
684
684
|
metadata?: Record<string, string> | undefined;
|
|
685
685
|
}>>;
|
|
686
|
-
features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions", number | boolean>>;
|
|
686
|
+
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>>;
|
|
687
687
|
providerProductId: string;
|
|
688
688
|
metadata?: Record<string, string> | undefined;
|
|
689
689
|
}>;
|
|
@@ -699,10 +699,10 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
699
699
|
metadata?: Record<string, string> | undefined;
|
|
700
700
|
}>>;
|
|
701
701
|
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";
|
|
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
703
|
increment: number;
|
|
704
704
|
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", number>> | 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
706
|
prorationDisabled?: boolean | undefined;
|
|
707
707
|
autoRechargeable?: boolean | undefined;
|
|
708
708
|
hidden?: boolean | undefined;
|
|
@@ -765,7 +765,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
765
765
|
providerPriceId: string;
|
|
766
766
|
metadata?: Record<string, string> | undefined;
|
|
767
767
|
}>>;
|
|
768
|
-
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"]>, z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
768
|
+
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]>>;
|
|
769
769
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
770
770
|
providerProductId: z.ZodString;
|
|
771
771
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -780,7 +780,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
780
780
|
providerPriceId: string;
|
|
781
781
|
metadata?: Record<string, string> | undefined;
|
|
782
782
|
}>>;
|
|
783
|
-
features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions", number | boolean>>;
|
|
783
|
+
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>>;
|
|
784
784
|
providerProductId: string;
|
|
785
785
|
metadata?: Record<string, string> | undefined;
|
|
786
786
|
}, {
|
|
@@ -795,7 +795,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
795
795
|
providerPriceId: string;
|
|
796
796
|
metadata?: Record<string, string> | undefined;
|
|
797
797
|
}>>;
|
|
798
|
-
features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions", number | boolean>>;
|
|
798
|
+
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>>;
|
|
799
799
|
providerProductId: string;
|
|
800
800
|
metadata?: Record<string, string> | undefined;
|
|
801
801
|
}>>;
|
|
@@ -822,9 +822,9 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
822
822
|
providerPriceId: string;
|
|
823
823
|
metadata?: Record<string, string> | undefined;
|
|
824
824
|
}>>;
|
|
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"]>;
|
|
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
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"]>, 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>>;
|
|
828
828
|
prorationDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
829
829
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
830
830
|
autoRechargeable: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -842,10 +842,10 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
842
842
|
metadata?: Record<string, string> | undefined;
|
|
843
843
|
}>>;
|
|
844
844
|
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";
|
|
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
846
|
increment: number;
|
|
847
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", number>> | 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
849
|
prorationDisabled?: boolean | undefined;
|
|
850
850
|
autoRechargeable?: boolean | undefined;
|
|
851
851
|
hidden?: boolean | undefined;
|
|
@@ -861,10 +861,10 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
861
861
|
metadata?: Record<string, string> | undefined;
|
|
862
862
|
}>>;
|
|
863
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";
|
|
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
865
|
increment: number;
|
|
866
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", number>> | 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
868
|
prorationDisabled?: boolean | undefined;
|
|
869
869
|
autoRechargeable?: boolean | undefined;
|
|
870
870
|
hidden?: boolean | undefined;
|
|
@@ -880,10 +880,10 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
880
880
|
metadata?: Record<string, string> | undefined;
|
|
881
881
|
}>>;
|
|
882
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";
|
|
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
884
|
increment: number;
|
|
885
885
|
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", number>> | 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
887
|
prorationDisabled?: boolean | undefined;
|
|
888
888
|
autoRechargeable?: boolean | undefined;
|
|
889
889
|
hidden?: boolean | undefined;
|
|
@@ -899,10 +899,10 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
899
899
|
metadata?: Record<string, string> | undefined;
|
|
900
900
|
}>>;
|
|
901
901
|
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";
|
|
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
903
|
increment: number;
|
|
904
904
|
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", number>> | 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
906
|
prorationDisabled?: boolean | undefined;
|
|
907
907
|
autoRechargeable?: boolean | undefined;
|
|
908
908
|
hidden?: boolean | undefined;
|
|
@@ -1027,7 +1027,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
1027
1027
|
providerPriceId: string;
|
|
1028
1028
|
metadata?: Record<string, string> | undefined;
|
|
1029
1029
|
}>>;
|
|
1030
|
-
features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions", number | boolean>>;
|
|
1030
|
+
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>>;
|
|
1031
1031
|
providerProductId: string;
|
|
1032
1032
|
metadata?: Record<string, string> | undefined;
|
|
1033
1033
|
}>;
|
|
@@ -1043,10 +1043,10 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
1043
1043
|
metadata?: Record<string, string> | undefined;
|
|
1044
1044
|
}>>;
|
|
1045
1045
|
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";
|
|
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
1047
|
increment: number;
|
|
1048
1048
|
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", number>> | 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
1050
|
prorationDisabled?: boolean | undefined;
|
|
1051
1051
|
autoRechargeable?: boolean | undefined;
|
|
1052
1052
|
hidden?: boolean | undefined;
|
|
@@ -1095,7 +1095,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
1095
1095
|
providerPriceId: string;
|
|
1096
1096
|
metadata?: Record<string, string> | undefined;
|
|
1097
1097
|
}>>;
|
|
1098
|
-
features: Partial<Record<"bot_count" | "indexed_file_count" | "incoming_messages_events" | "integration_spend" | "table_rows" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions", number | boolean>>;
|
|
1098
|
+
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>>;
|
|
1099
1099
|
providerProductId: string;
|
|
1100
1100
|
metadata?: Record<string, string> | undefined;
|
|
1101
1101
|
}>;
|
|
@@ -1111,10 +1111,10 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
1111
1111
|
metadata?: Record<string, string> | undefined;
|
|
1112
1112
|
}>>;
|
|
1113
1113
|
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";
|
|
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
1115
|
increment: number;
|
|
1116
1116
|
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", number>> | 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
1118
|
prorationDisabled?: boolean | undefined;
|
|
1119
1119
|
autoRechargeable?: boolean | undefined;
|
|
1120
1120
|
hidden?: boolean | undefined;
|
|
@@ -28,6 +28,7 @@ export declare const billingConfig: {
|
|
|
28
28
|
readonly vector_db_storage: 100000000;
|
|
29
29
|
readonly saved_versions: 3;
|
|
30
30
|
readonly indexed_file_count: 1000;
|
|
31
|
+
readonly conversation_sessions: 100;
|
|
31
32
|
};
|
|
32
33
|
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
33
34
|
};
|
|
@@ -60,6 +61,7 @@ export declare const billingConfig: {
|
|
|
60
61
|
readonly vector_db_storage: 1000000000;
|
|
61
62
|
readonly saved_versions: 50;
|
|
62
63
|
readonly indexed_file_count: 2000;
|
|
64
|
+
readonly conversation_sessions: 250;
|
|
63
65
|
};
|
|
64
66
|
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
65
67
|
};
|
|
@@ -92,6 +94,7 @@ export declare const billingConfig: {
|
|
|
92
94
|
readonly vector_db_storage: 2000000000;
|
|
93
95
|
readonly saved_versions: 100;
|
|
94
96
|
readonly indexed_file_count: 10000;
|
|
97
|
+
readonly conversation_sessions: 1000;
|
|
95
98
|
};
|
|
96
99
|
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
97
100
|
};
|
|
@@ -118,6 +121,7 @@ export declare const billingConfig: {
|
|
|
118
121
|
vector_db_storage: number;
|
|
119
122
|
saved_versions: number;
|
|
120
123
|
indexed_file_count: number;
|
|
124
|
+
conversation_sessions: number;
|
|
121
125
|
};
|
|
122
126
|
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
123
127
|
};
|
|
@@ -144,6 +148,7 @@ export declare const billingConfig: {
|
|
|
144
148
|
vector_db_storage: number;
|
|
145
149
|
saved_versions: number;
|
|
146
150
|
indexed_file_count: number;
|
|
151
|
+
conversation_sessions: number;
|
|
147
152
|
};
|
|
148
153
|
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
149
154
|
};
|
|
@@ -185,6 +190,7 @@ export declare const billingConfig: {
|
|
|
185
190
|
readonly id: "messages_events_addon";
|
|
186
191
|
readonly name: "Add-on - Messages & Events";
|
|
187
192
|
readonly description: "Adds 5,000 messages and events";
|
|
193
|
+
readonly prorationDisabled: true;
|
|
188
194
|
readonly prices: {
|
|
189
195
|
readonly month: {
|
|
190
196
|
readonly amount: 20;
|
|
@@ -311,6 +317,23 @@ export declare const billingConfig: {
|
|
|
311
317
|
readonly hidden: true;
|
|
312
318
|
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
313
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
|
+
};
|
|
331
|
+
};
|
|
332
|
+
readonly feature: "conversation_sessions";
|
|
333
|
+
readonly increment: 500;
|
|
334
|
+
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
335
|
+
readonly autoRechargeable: true;
|
|
336
|
+
};
|
|
314
337
|
};
|
|
315
338
|
readonly meters: {
|
|
316
339
|
readonly ai_spend_credit_grant: {
|
|
@@ -403,6 +426,7 @@ export declare const billingDefinitions: {
|
|
|
403
426
|
readonly vector_db_storage: 100000000;
|
|
404
427
|
readonly saved_versions: 3;
|
|
405
428
|
readonly indexed_file_count: 1000;
|
|
429
|
+
readonly conversation_sessions: 100;
|
|
406
430
|
};
|
|
407
431
|
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
408
432
|
};
|
|
@@ -435,6 +459,7 @@ export declare const billingDefinitions: {
|
|
|
435
459
|
readonly vector_db_storage: 1000000000;
|
|
436
460
|
readonly saved_versions: 50;
|
|
437
461
|
readonly indexed_file_count: 2000;
|
|
462
|
+
readonly conversation_sessions: 250;
|
|
438
463
|
};
|
|
439
464
|
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
440
465
|
};
|
|
@@ -467,6 +492,7 @@ export declare const billingDefinitions: {
|
|
|
467
492
|
readonly vector_db_storage: 2000000000;
|
|
468
493
|
readonly saved_versions: 100;
|
|
469
494
|
readonly indexed_file_count: 10000;
|
|
495
|
+
readonly conversation_sessions: 1000;
|
|
470
496
|
};
|
|
471
497
|
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
472
498
|
};
|
|
@@ -493,6 +519,7 @@ export declare const billingDefinitions: {
|
|
|
493
519
|
vector_db_storage: number;
|
|
494
520
|
saved_versions: number;
|
|
495
521
|
indexed_file_count: number;
|
|
522
|
+
conversation_sessions: number;
|
|
496
523
|
};
|
|
497
524
|
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
498
525
|
};
|
|
@@ -519,6 +546,7 @@ export declare const billingDefinitions: {
|
|
|
519
546
|
vector_db_storage: number;
|
|
520
547
|
saved_versions: number;
|
|
521
548
|
indexed_file_count: number;
|
|
549
|
+
conversation_sessions: number;
|
|
522
550
|
};
|
|
523
551
|
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
524
552
|
};
|
|
@@ -560,6 +588,7 @@ export declare const billingDefinitions: {
|
|
|
560
588
|
readonly id: "messages_events_addon";
|
|
561
589
|
readonly name: "Add-on - Messages & Events";
|
|
562
590
|
readonly description: "Adds 5,000 messages and events";
|
|
591
|
+
readonly prorationDisabled: true;
|
|
563
592
|
readonly prices: {
|
|
564
593
|
readonly month: {
|
|
565
594
|
readonly amount: 20;
|
|
@@ -686,6 +715,23 @@ export declare const billingDefinitions: {
|
|
|
686
715
|
readonly hidden: true;
|
|
687
716
|
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
688
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
|
+
};
|
|
729
|
+
};
|
|
730
|
+
readonly feature: "conversation_sessions";
|
|
731
|
+
readonly increment: 500;
|
|
732
|
+
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
733
|
+
readonly autoRechargeable: true;
|
|
734
|
+
};
|
|
689
735
|
};
|
|
690
736
|
readonly meters: {
|
|
691
737
|
readonly ai_spend_credit_grant: {
|
|
@@ -64,6 +64,12 @@ export declare const billingFeatureDefinitions: [{
|
|
|
64
64
|
readonly description: "The number of indexed files in the files api";
|
|
65
65
|
readonly resetPeriod: "never";
|
|
66
66
|
readonly consistency: "eventual";
|
|
67
|
+
}, {
|
|
68
|
+
readonly id: "conversation_sessions";
|
|
69
|
+
readonly name: "Conversations";
|
|
70
|
+
readonly description: "Number of conversation sessions that can occur";
|
|
71
|
+
readonly resetPeriod: "monthly";
|
|
72
|
+
readonly consistency: "eventual";
|
|
67
73
|
}];
|
|
68
74
|
export type BillingFeatureDefinitions = typeof billingFeatureDefinitions;
|
|
69
75
|
export type AtomicBillingFeatureDefinitions = FilterTuple<BillingFeatureDefinitions, {
|
|
@@ -76,6 +76,13 @@ exports.billingFeatureDefinitions = [
|
|
|
76
76
|
resetPeriod: 'never',
|
|
77
77
|
consistency: 'eventual',
|
|
78
78
|
},
|
|
79
|
+
{
|
|
80
|
+
id: 'conversation_sessions',
|
|
81
|
+
name: 'Conversations',
|
|
82
|
+
description: 'Number of conversation sessions that can occur',
|
|
83
|
+
resetPeriod: 'monthly',
|
|
84
|
+
consistency: 'eventual',
|
|
85
|
+
},
|
|
79
86
|
];
|
|
80
87
|
exports.BILLING_FEATURE_IDS = exports.billingFeatureDefinitions.map((def) => def.id);
|
|
81
88
|
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.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Shared constants for Skynet billing refactor (vendored copy of upstream packages/const)",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"files": [
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"types": "dist/index.d.ts",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"zod": "^3.
|
|
12
|
+
"zod": "^3.25.0"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"typescript": "5.9.3"
|