@bpinternal/const 0.4.1 → 0.4.3

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.
@@ -4,7 +4,7 @@
4
4
  */
5
5
  export declare const FREE_PRICE = -1;
6
6
  export declare const ALLOWED_TRIAL_LENGTHS_IN_DAYS = 7;
7
- export declare const ALLOWED_TRIAL_PLANS: readonly ["plus"];
7
+ export declare const ALLOWED_TRIAL_PLANS: readonly ["plus", "team"];
8
8
  export declare const BILLING_PLAN_IDS: readonly ["community", "plus", "team", "enterprise"];
9
9
  export declare const BILLING_ADDON_IDS: readonly ["bot_addon", "collaborator_addon", "always_alive_addon", "messages_events_addon", "table_rows_addon", "file_storage_addon", "vector_db_storage_addon", "web_search_addon", "ai_credits_addon", "enterprise_ai_token", "enterprise_additional_workspace"];
10
10
  export declare const billingPlansDefs: {
@@ -12,6 +12,7 @@ export declare const billingPlansDefs: {
12
12
  readonly id: "community";
13
13
  readonly name: "Plan - Pay as you go";
14
14
  readonly description: "Free plan for developers";
15
+ readonly tierIndex: 0;
15
16
  readonly prices: [{
16
17
  readonly price: -1;
17
18
  readonly currency: "usd";
@@ -37,6 +38,7 @@ export declare const billingPlansDefs: {
37
38
  readonly id: "plus";
38
39
  readonly name: "Plan - Plus";
39
40
  readonly description: "For growing businesses";
41
+ readonly tierIndex: 1;
40
42
  readonly prices: [{
41
43
  readonly price: 89;
42
44
  readonly currency: "usd";
@@ -66,6 +68,7 @@ export declare const billingPlansDefs: {
66
68
  readonly id: "team";
67
69
  readonly name: "Plan - Team";
68
70
  readonly description: "For small teams";
71
+ readonly tierIndex: 2;
69
72
  readonly prices: [{
70
73
  readonly price: 495;
71
74
  readonly currency: "usd";
@@ -95,6 +98,7 @@ export declare const billingPlansDefs: {
95
98
  readonly id: "enterprise";
96
99
  readonly name: "Plan - Enterprise";
97
100
  readonly description: "Enterprise license subscription";
101
+ readonly tierIndex: 3;
98
102
  readonly prices: [{
99
103
  readonly price: -1;
100
104
  readonly currency: "usd";
@@ -7,7 +7,7 @@ exports.billingPlansDefs = exports.BILLING_ADDON_IDS = exports.BILLING_PLAN_IDS
7
7
  */
8
8
  exports.FREE_PRICE = -1;
9
9
  exports.ALLOWED_TRIAL_LENGTHS_IN_DAYS = 7;
10
- exports.ALLOWED_TRIAL_PLANS = ['plus'];
10
+ exports.ALLOWED_TRIAL_PLANS = ['plus', 'team'];
11
11
  // keep this in order of lowest to highest tier
12
12
  exports.BILLING_PLAN_IDS = ['community', 'plus', 'team', 'enterprise'];
13
13
  exports.BILLING_ADDON_IDS = [
@@ -29,6 +29,7 @@ exports.billingPlansDefs = {
29
29
  id: 'community',
30
30
  name: 'Plan - Pay as you go',
31
31
  description: 'Free plan for developers',
32
+ tierIndex: 0,
32
33
  prices: [
33
34
  {
34
35
  price: exports.FREE_PRICE,
@@ -56,6 +57,7 @@ exports.billingPlansDefs = {
56
57
  id: 'plus',
57
58
  name: 'Plan - Plus',
58
59
  description: 'For growing businesses',
60
+ tierIndex: 1,
59
61
  prices: [
60
62
  {
61
63
  price: 89,
@@ -88,6 +90,7 @@ exports.billingPlansDefs = {
88
90
  id: 'team',
89
91
  name: 'Plan - Team',
90
92
  description: 'For small teams',
93
+ tierIndex: 2,
91
94
  prices: [
92
95
  {
93
96
  price: 495,
@@ -120,6 +123,7 @@ exports.billingPlansDefs = {
120
123
  id: 'enterprise',
121
124
  name: 'Plan - Enterprise',
122
125
  description: 'Enterprise license subscription',
126
+ tierIndex: 3,
123
127
  prices: [
124
128
  {
125
129
  price: exports.FREE_PRICE, // Custom pricing
package/dist/limits.d.ts CHANGED
@@ -77,4 +77,8 @@ export declare const limitConfigs: {
77
77
  readonly value: 52428800;
78
78
  readonly unit: "bytes";
79
79
  };
80
+ readonly entity_custom_properties_count: {
81
+ readonly value: 50;
82
+ readonly unit: "count";
83
+ };
80
84
  };
package/dist/limits.js CHANGED
@@ -78,4 +78,8 @@ exports.limitConfigs = {
78
78
  value: 52428800, // 50 MB
79
79
  unit: 'bytes',
80
80
  },
81
+ entity_custom_properties_count: {
82
+ value: 50,
83
+ unit: 'count',
84
+ },
81
85
  };
package/dist/quotas.d.ts CHANGED
@@ -29,9 +29,9 @@ export type Quota = {
29
29
  parent?: QuotaType;
30
30
  };
31
31
  export type QuotaKind = 'workspace' | 'bot';
32
- export type QuotaCategory = 'ratelimit' | 'count' | 'calls' | 'timeout' | 'credit';
32
+ export type QuotaCategory = 'ratelimit' | 'count' | 'calls' | 'timeout' | 'credit' | 'limit';
33
33
  export type QuotaType = (typeof quotaTypes)[number];
34
- export declare const quotaTypes: readonly ["invocation_timeout", "invocation_calls", "storage_count", "bot_count", "knowledgebase_vector_storage", "workspace_ratelimit", "table_row_count", "workspace_member_count", "integrations_owned_count", "ai_spend", "openai_spend", "bing_search_spend", "always_alive", "indexed_file_count"];
34
+ export declare const quotaTypes: readonly ["invocation_timeout", "invocation_calls", "storage_count", "bot_count", "knowledgebase_vector_storage", "workspace_ratelimit", "table_row_count", "workspace_member_count", "integrations_owned_count", "ai_spend", "openai_spend", "bing_search_spend", "always_alive", "indexed_file_count", "file_max_size_bytes"];
35
35
  export declare const quotaConfigs: {
36
36
  readonly invocation_timeout: {
37
37
  readonly name: "Invocation Timeout";
@@ -147,6 +147,14 @@ export declare const quotaConfigs: {
147
147
  readonly category: "count";
148
148
  readonly trackUsagePerBot: true;
149
149
  };
150
+ readonly file_max_size_bytes: {
151
+ readonly name: "Max File Size";
152
+ readonly description: "Maximum size of a file in bytes.";
153
+ readonly default: 100000000;
154
+ readonly kind: "workspace";
155
+ readonly category: "limit";
156
+ readonly trackUsagePerBot: true;
157
+ };
150
158
  };
151
159
  export declare const quotaConfigsV3: {
152
160
  readonly invocation_timeout: {
@@ -263,4 +271,12 @@ export declare const quotaConfigsV3: {
263
271
  readonly category: "count";
264
272
  readonly trackUsagePerBot: true;
265
273
  };
274
+ readonly file_max_size_bytes: {
275
+ readonly name: "Max File Size";
276
+ readonly description: "Maximum size of a file in bytes.";
277
+ readonly default: 100000000;
278
+ readonly kind: "workspace";
279
+ readonly category: "limit";
280
+ readonly trackUsagePerBot: true;
281
+ };
266
282
  };
package/dist/quotas.js CHANGED
@@ -16,6 +16,7 @@ exports.quotaTypes = [
16
16
  'bing_search_spend',
17
17
  'always_alive',
18
18
  'indexed_file_count',
19
+ 'file_max_size_bytes',
19
20
  ];
20
21
  exports.quotaConfigs = {
21
22
  invocation_timeout: {
@@ -132,6 +133,14 @@ exports.quotaConfigs = {
132
133
  category: 'count',
133
134
  trackUsagePerBot: true,
134
135
  },
136
+ file_max_size_bytes: {
137
+ name: 'Max File Size',
138
+ description: 'Maximum size of a file in bytes.',
139
+ default: 100_000_000, // 100 MB
140
+ kind: 'workspace',
141
+ category: 'limit',
142
+ trackUsagePerBot: true,
143
+ },
135
144
  };
136
145
  exports.quotaConfigsV3 = {
137
146
  invocation_timeout: {
@@ -248,4 +257,12 @@ exports.quotaConfigsV3 = {
248
257
  category: 'count',
249
258
  trackUsagePerBot: true,
250
259
  },
260
+ file_max_size_bytes: {
261
+ name: 'Max File Size',
262
+ description: 'Maximum size of a file in bytes.',
263
+ default: 100_000_000, // 100 MB
264
+ kind: 'workspace',
265
+ category: 'limit',
266
+ trackUsagePerBot: true,
267
+ },
251
268
  };
package/dist/schema.d.ts CHANGED
@@ -24,6 +24,7 @@ export declare const planSchema: z.ZodObject<{
24
24
  id: z.ZodString;
25
25
  name: z.ZodString;
26
26
  description: z.ZodString;
27
+ tierIndex: z.ZodNumber;
27
28
  providerProductId: z.ZodString;
28
29
  prices: z.ZodRecord<z.ZodEnum<["month", "year"]>, z.ZodObject<{
29
30
  providerPriceId: z.ZodString;
@@ -50,6 +51,7 @@ export declare const planSchema: z.ZodObject<{
50
51
  id: string;
51
52
  name: string;
52
53
  description: string;
54
+ tierIndex: number;
53
55
  providerProductId: string;
54
56
  prices: Partial<Record<"month" | "year", {
55
57
  providerPriceId: string;
@@ -64,6 +66,7 @@ export declare const planSchema: z.ZodObject<{
64
66
  id: string;
65
67
  name: string;
66
68
  description: string;
69
+ tierIndex: number;
67
70
  providerProductId: string;
68
71
  prices: Partial<Record<"month" | "year", {
69
72
  providerPriceId: string;
@@ -101,7 +104,9 @@ export declare const addOnSchema: z.ZodObject<{
101
104
  }>>;
102
105
  feature: z.ZodEnum<["human_in_the_loop", "ratelimit", "incoming_messages_events", "integration_spend", "integration_subscription", "table_rows", "bot_count", "always_alive_count", "always_alive_concurrency", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions"]>;
103
106
  increment: z.ZodNumber;
107
+ prorationDisabled: z.ZodOptional<z.ZodBoolean>;
104
108
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
109
+ autoRechargeable: z.ZodOptional<z.ZodBoolean>;
105
110
  }, "strip", z.ZodTypeAny, {
106
111
  id: string;
107
112
  name: string;
@@ -117,6 +122,8 @@ export declare const addOnSchema: z.ZodObject<{
117
122
  feature: "human_in_the_loop" | "ratelimit" | "incoming_messages_events" | "integration_spend" | "integration_subscription" | "table_rows" | "bot_count" | "always_alive_count" | "always_alive_concurrency" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions";
118
123
  increment: number;
119
124
  metadata?: Record<string, string> | undefined;
125
+ prorationDisabled?: boolean | undefined;
126
+ autoRechargeable?: boolean | undefined;
120
127
  }, {
121
128
  id: string;
122
129
  name: string;
@@ -132,6 +139,8 @@ export declare const addOnSchema: z.ZodObject<{
132
139
  feature: "human_in_the_loop" | "ratelimit" | "incoming_messages_events" | "integration_spend" | "integration_subscription" | "table_rows" | "bot_count" | "always_alive_count" | "always_alive_concurrency" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions";
133
140
  increment: number;
134
141
  metadata?: Record<string, string> | undefined;
142
+ prorationDisabled?: boolean | undefined;
143
+ autoRechargeable?: boolean | undefined;
135
144
  }>;
136
145
  export declare const billingVersionConfigSchema: z.ZodObject<{
137
146
  version: z.ZodEnum<["v4"]>;
@@ -141,6 +150,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
141
150
  id: z.ZodString;
142
151
  name: z.ZodString;
143
152
  description: z.ZodString;
153
+ tierIndex: z.ZodNumber;
144
154
  providerProductId: z.ZodString;
145
155
  prices: z.ZodRecord<z.ZodEnum<["month", "year"]>, z.ZodObject<{
146
156
  providerPriceId: z.ZodString;
@@ -167,6 +177,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
167
177
  id: string;
168
178
  name: string;
169
179
  description: string;
180
+ tierIndex: number;
170
181
  providerProductId: string;
171
182
  prices: Partial<Record<"month" | "year", {
172
183
  providerPriceId: string;
@@ -181,6 +192,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
181
192
  id: string;
182
193
  name: string;
183
194
  description: string;
195
+ tierIndex: number;
184
196
  providerProductId: string;
185
197
  prices: Partial<Record<"month" | "year", {
186
198
  providerPriceId: string;
@@ -218,7 +230,9 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
218
230
  }>>;
219
231
  feature: z.ZodEnum<["human_in_the_loop", "ratelimit", "incoming_messages_events", "integration_spend", "integration_subscription", "table_rows", "bot_count", "always_alive_count", "always_alive_concurrency", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions"]>;
220
232
  increment: z.ZodNumber;
233
+ prorationDisabled: z.ZodOptional<z.ZodBoolean>;
221
234
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
235
+ autoRechargeable: z.ZodOptional<z.ZodBoolean>;
222
236
  }, "strip", z.ZodTypeAny, {
223
237
  id: string;
224
238
  name: string;
@@ -234,6 +248,8 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
234
248
  feature: "human_in_the_loop" | "ratelimit" | "incoming_messages_events" | "integration_spend" | "integration_subscription" | "table_rows" | "bot_count" | "always_alive_count" | "always_alive_concurrency" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions";
235
249
  increment: number;
236
250
  metadata?: Record<string, string> | undefined;
251
+ prorationDisabled?: boolean | undefined;
252
+ autoRechargeable?: boolean | undefined;
237
253
  }, {
238
254
  id: string;
239
255
  name: string;
@@ -249,6 +265,8 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
249
265
  feature: "human_in_the_loop" | "ratelimit" | "incoming_messages_events" | "integration_spend" | "integration_subscription" | "table_rows" | "bot_count" | "always_alive_count" | "always_alive_concurrency" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions";
250
266
  increment: number;
251
267
  metadata?: Record<string, string> | undefined;
268
+ prorationDisabled?: boolean | undefined;
269
+ autoRechargeable?: boolean | undefined;
252
270
  }>>;
253
271
  isActive: z.ZodBoolean;
254
272
  createdAt: z.ZodString;
@@ -260,6 +278,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
260
278
  id: string;
261
279
  name: string;
262
280
  description: string;
281
+ tierIndex: number;
263
282
  providerProductId: string;
264
283
  prices: Partial<Record<"month" | "year", {
265
284
  providerPriceId: string;
@@ -286,6 +305,8 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
286
305
  feature: "human_in_the_loop" | "ratelimit" | "incoming_messages_events" | "integration_spend" | "integration_subscription" | "table_rows" | "bot_count" | "always_alive_count" | "always_alive_concurrency" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions";
287
306
  increment: number;
288
307
  metadata?: Record<string, string> | undefined;
308
+ prorationDisabled?: boolean | undefined;
309
+ autoRechargeable?: boolean | undefined;
289
310
  }>;
290
311
  isActive: boolean;
291
312
  createdAt: string;
@@ -297,6 +318,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
297
318
  id: string;
298
319
  name: string;
299
320
  description: string;
321
+ tierIndex: number;
300
322
  providerProductId: string;
301
323
  prices: Partial<Record<"month" | "year", {
302
324
  providerPriceId: string;
@@ -323,6 +345,8 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
323
345
  feature: "human_in_the_loop" | "ratelimit" | "incoming_messages_events" | "integration_spend" | "integration_subscription" | "table_rows" | "bot_count" | "always_alive_count" | "always_alive_concurrency" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions";
324
346
  increment: number;
325
347
  metadata?: Record<string, string> | undefined;
348
+ prorationDisabled?: boolean | undefined;
349
+ autoRechargeable?: boolean | undefined;
326
350
  }>;
327
351
  isActive: boolean;
328
352
  createdAt: string;
@@ -335,6 +359,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodEnum<["v4"]>, z.ZodOb
335
359
  id: z.ZodString;
336
360
  name: z.ZodString;
337
361
  description: z.ZodString;
362
+ tierIndex: z.ZodNumber;
338
363
  providerProductId: z.ZodString;
339
364
  prices: z.ZodRecord<z.ZodEnum<["month", "year"]>, z.ZodObject<{
340
365
  providerPriceId: z.ZodString;
@@ -361,6 +386,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodEnum<["v4"]>, z.ZodOb
361
386
  id: string;
362
387
  name: string;
363
388
  description: string;
389
+ tierIndex: number;
364
390
  providerProductId: string;
365
391
  prices: Partial<Record<"month" | "year", {
366
392
  providerPriceId: string;
@@ -375,6 +401,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodEnum<["v4"]>, z.ZodOb
375
401
  id: string;
376
402
  name: string;
377
403
  description: string;
404
+ tierIndex: number;
378
405
  providerProductId: string;
379
406
  prices: Partial<Record<"month" | "year", {
380
407
  providerPriceId: string;
@@ -412,7 +439,9 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodEnum<["v4"]>, z.ZodOb
412
439
  }>>;
413
440
  feature: z.ZodEnum<["human_in_the_loop", "ratelimit", "incoming_messages_events", "integration_spend", "integration_subscription", "table_rows", "bot_count", "always_alive_count", "always_alive_concurrency", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions"]>;
414
441
  increment: z.ZodNumber;
442
+ prorationDisabled: z.ZodOptional<z.ZodBoolean>;
415
443
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
444
+ autoRechargeable: z.ZodOptional<z.ZodBoolean>;
416
445
  }, "strip", z.ZodTypeAny, {
417
446
  id: string;
418
447
  name: string;
@@ -428,6 +457,8 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodEnum<["v4"]>, z.ZodOb
428
457
  feature: "human_in_the_loop" | "ratelimit" | "incoming_messages_events" | "integration_spend" | "integration_subscription" | "table_rows" | "bot_count" | "always_alive_count" | "always_alive_concurrency" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions";
429
458
  increment: number;
430
459
  metadata?: Record<string, string> | undefined;
460
+ prorationDisabled?: boolean | undefined;
461
+ autoRechargeable?: boolean | undefined;
431
462
  }, {
432
463
  id: string;
433
464
  name: string;
@@ -443,6 +474,8 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodEnum<["v4"]>, z.ZodOb
443
474
  feature: "human_in_the_loop" | "ratelimit" | "incoming_messages_events" | "integration_spend" | "integration_subscription" | "table_rows" | "bot_count" | "always_alive_count" | "always_alive_concurrency" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions";
444
475
  increment: number;
445
476
  metadata?: Record<string, string> | undefined;
477
+ prorationDisabled?: boolean | undefined;
478
+ autoRechargeable?: boolean | undefined;
446
479
  }>>;
447
480
  isActive: z.ZodBoolean;
448
481
  createdAt: z.ZodString;
@@ -454,6 +487,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodEnum<["v4"]>, z.ZodOb
454
487
  id: string;
455
488
  name: string;
456
489
  description: string;
490
+ tierIndex: number;
457
491
  providerProductId: string;
458
492
  prices: Partial<Record<"month" | "year", {
459
493
  providerPriceId: string;
@@ -480,6 +514,8 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodEnum<["v4"]>, z.ZodOb
480
514
  feature: "human_in_the_loop" | "ratelimit" | "incoming_messages_events" | "integration_spend" | "integration_subscription" | "table_rows" | "bot_count" | "always_alive_count" | "always_alive_concurrency" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions";
481
515
  increment: number;
482
516
  metadata?: Record<string, string> | undefined;
517
+ prorationDisabled?: boolean | undefined;
518
+ autoRechargeable?: boolean | undefined;
483
519
  }>;
484
520
  isActive: boolean;
485
521
  createdAt: string;
@@ -491,6 +527,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodEnum<["v4"]>, z.ZodOb
491
527
  id: string;
492
528
  name: string;
493
529
  description: string;
530
+ tierIndex: number;
494
531
  providerProductId: string;
495
532
  prices: Partial<Record<"month" | "year", {
496
533
  providerPriceId: string;
@@ -517,6 +554,8 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodEnum<["v4"]>, z.ZodOb
517
554
  feature: "human_in_the_loop" | "ratelimit" | "incoming_messages_events" | "integration_spend" | "integration_subscription" | "table_rows" | "bot_count" | "always_alive_count" | "always_alive_concurrency" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions";
518
555
  increment: number;
519
556
  metadata?: Record<string, string> | undefined;
557
+ prorationDisabled?: boolean | undefined;
558
+ autoRechargeable?: boolean | undefined;
520
559
  }>;
521
560
  isActive: boolean;
522
561
  createdAt: string;
package/dist/schema.js CHANGED
@@ -17,6 +17,7 @@ exports.planSchema = zod_1.z.object({
17
17
  id: zod_1.z.string(),
18
18
  name: zod_1.z.string(),
19
19
  description: zod_1.z.string(),
20
+ tierIndex: zod_1.z.number(),
20
21
  providerProductId: zod_1.z.string(),
21
22
  prices: zod_1.z.record(exports.intervalSchema, exports.priceSchema),
22
23
  features: zod_1.z.record(exports.featureSchema, zod_1.z.any()),
@@ -30,7 +31,9 @@ exports.addOnSchema = zod_1.z.object({
30
31
  prices: zod_1.z.record(exports.intervalSchema, exports.priceSchema),
31
32
  feature: exports.featureSchema,
32
33
  increment: zod_1.z.number(),
34
+ prorationDisabled: zod_1.z.boolean().optional(),
33
35
  metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
36
+ autoRechargeable: zod_1.z.boolean().optional(),
34
37
  });
35
38
  exports.billingVersionConfigSchema = zod_1.z.object({
36
39
  version: zod_1.z.enum(billing_versions_1.BILLING_VERSIONS),
package/dist/types.d.ts CHANGED
@@ -24,6 +24,7 @@ export type BillingPlanDefinition = {
24
24
  id: BillingPlanId;
25
25
  name: string;
26
26
  description: string;
27
+ tierIndex: number;
27
28
  prices: Array<BillingPriceDefinition>;
28
29
  features: Partial<Record<BillingFeatureId, number | boolean>>;
29
30
  metadata?: Record<string, string>;
@@ -35,6 +36,7 @@ export type BillingAddonDefinition = {
35
36
  prices: Array<BillingPriceDefinition>;
36
37
  feature: BillingFeatureId;
37
38
  increment: number;
39
+ prorationDisabled?: boolean;
38
40
  metadata?: Record<string, string>;
39
41
  };
40
42
  export type BillingVersionId = (typeof BILLING_VERSIONS)[number];
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "@bpinternal/const",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "Shared constants for Skynet billing refactor (vendored copy of upstream packages/const)",
5
5
  "license": "UNLICENSED",
6
- "main": "dist/index.js",
7
- "types": "dist/index.d.ts",
8
6
  "files": [
9
7
  "dist"
10
8
  ],
11
- "devDependencies": {
12
- "typescript": "5.5.4"
13
- },
9
+ "main": "dist/index.js",
10
+ "types": "dist/index.d.ts",
14
11
  "dependencies": {
15
12
  "zod": "^3.24.4"
16
13
  },
14
+ "devDependencies": {
15
+ "typescript": "5.9.3"
16
+ },
17
17
  "scripts": {
18
18
  "build": "tsc -b tsconfig.json",
19
19
  "dev": "tsc -w",
20
20
  "clean": "rm -rf dist tsconfig.tsbuildinfo",
21
- "check:lint": "eslint --cache --ext .ts,.tsx .",
22
- "fix:lint": "eslint --fix --cache --ext .ts,.tsx .",
23
- "check:type": "tsc --noEmit"
21
+ "check:type": "tsc --noEmit",
22
+ "check:lint": "oxlint --type-aware",
23
+ "fix:lint": "oxlint --type-aware --fix"
24
24
  }
25
25
  }