@bpinternal/const 0.4.2 → 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.
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/schema.d.ts CHANGED
@@ -104,7 +104,9 @@ export declare const addOnSchema: z.ZodObject<{
104
104
  }>>;
105
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"]>;
106
106
  increment: z.ZodNumber;
107
+ prorationDisabled: z.ZodOptional<z.ZodBoolean>;
107
108
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
109
+ autoRechargeable: z.ZodOptional<z.ZodBoolean>;
108
110
  }, "strip", z.ZodTypeAny, {
109
111
  id: string;
110
112
  name: string;
@@ -120,6 +122,8 @@ export declare const addOnSchema: z.ZodObject<{
120
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";
121
123
  increment: number;
122
124
  metadata?: Record<string, string> | undefined;
125
+ prorationDisabled?: boolean | undefined;
126
+ autoRechargeable?: boolean | undefined;
123
127
  }, {
124
128
  id: string;
125
129
  name: string;
@@ -135,6 +139,8 @@ export declare const addOnSchema: z.ZodObject<{
135
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";
136
140
  increment: number;
137
141
  metadata?: Record<string, string> | undefined;
142
+ prorationDisabled?: boolean | undefined;
143
+ autoRechargeable?: boolean | undefined;
138
144
  }>;
139
145
  export declare const billingVersionConfigSchema: z.ZodObject<{
140
146
  version: z.ZodEnum<["v4"]>;
@@ -224,7 +230,9 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
224
230
  }>>;
225
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"]>;
226
232
  increment: z.ZodNumber;
233
+ prorationDisabled: z.ZodOptional<z.ZodBoolean>;
227
234
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
235
+ autoRechargeable: z.ZodOptional<z.ZodBoolean>;
228
236
  }, "strip", z.ZodTypeAny, {
229
237
  id: string;
230
238
  name: string;
@@ -240,6 +248,8 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
240
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";
241
249
  increment: number;
242
250
  metadata?: Record<string, string> | undefined;
251
+ prorationDisabled?: boolean | undefined;
252
+ autoRechargeable?: boolean | undefined;
243
253
  }, {
244
254
  id: string;
245
255
  name: string;
@@ -255,6 +265,8 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
255
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";
256
266
  increment: number;
257
267
  metadata?: Record<string, string> | undefined;
268
+ prorationDisabled?: boolean | undefined;
269
+ autoRechargeable?: boolean | undefined;
258
270
  }>>;
259
271
  isActive: z.ZodBoolean;
260
272
  createdAt: z.ZodString;
@@ -293,6 +305,8 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
293
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";
294
306
  increment: number;
295
307
  metadata?: Record<string, string> | undefined;
308
+ prorationDisabled?: boolean | undefined;
309
+ autoRechargeable?: boolean | undefined;
296
310
  }>;
297
311
  isActive: boolean;
298
312
  createdAt: string;
@@ -331,6 +345,8 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
331
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";
332
346
  increment: number;
333
347
  metadata?: Record<string, string> | undefined;
348
+ prorationDisabled?: boolean | undefined;
349
+ autoRechargeable?: boolean | undefined;
334
350
  }>;
335
351
  isActive: boolean;
336
352
  createdAt: string;
@@ -423,7 +439,9 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodEnum<["v4"]>, z.ZodOb
423
439
  }>>;
424
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"]>;
425
441
  increment: z.ZodNumber;
442
+ prorationDisabled: z.ZodOptional<z.ZodBoolean>;
426
443
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
444
+ autoRechargeable: z.ZodOptional<z.ZodBoolean>;
427
445
  }, "strip", z.ZodTypeAny, {
428
446
  id: string;
429
447
  name: string;
@@ -439,6 +457,8 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodEnum<["v4"]>, z.ZodOb
439
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";
440
458
  increment: number;
441
459
  metadata?: Record<string, string> | undefined;
460
+ prorationDisabled?: boolean | undefined;
461
+ autoRechargeable?: boolean | undefined;
442
462
  }, {
443
463
  id: string;
444
464
  name: string;
@@ -454,6 +474,8 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodEnum<["v4"]>, z.ZodOb
454
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";
455
475
  increment: number;
456
476
  metadata?: Record<string, string> | undefined;
477
+ prorationDisabled?: boolean | undefined;
478
+ autoRechargeable?: boolean | undefined;
457
479
  }>>;
458
480
  isActive: z.ZodBoolean;
459
481
  createdAt: z.ZodString;
@@ -492,6 +514,8 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodEnum<["v4"]>, z.ZodOb
492
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";
493
515
  increment: number;
494
516
  metadata?: Record<string, string> | undefined;
517
+ prorationDisabled?: boolean | undefined;
518
+ autoRechargeable?: boolean | undefined;
495
519
  }>;
496
520
  isActive: boolean;
497
521
  createdAt: string;
@@ -530,6 +554,8 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodEnum<["v4"]>, z.ZodOb
530
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";
531
555
  increment: number;
532
556
  metadata?: Record<string, string> | undefined;
557
+ prorationDisabled?: boolean | undefined;
558
+ autoRechargeable?: boolean | undefined;
533
559
  }>;
534
560
  isActive: boolean;
535
561
  createdAt: string;
package/dist/schema.js CHANGED
@@ -31,7 +31,9 @@ exports.addOnSchema = zod_1.z.object({
31
31
  prices: zod_1.z.record(exports.intervalSchema, exports.priceSchema),
32
32
  feature: exports.featureSchema,
33
33
  increment: zod_1.z.number(),
34
+ prorationDisabled: zod_1.z.boolean().optional(),
34
35
  metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
36
+ autoRechargeable: zod_1.z.boolean().optional(),
35
37
  });
36
38
  exports.billingVersionConfigSchema = zod_1.z.object({
37
39
  version: zod_1.z.enum(billing_versions_1.BILLING_VERSIONS),
package/dist/types.d.ts CHANGED
@@ -36,6 +36,7 @@ export type BillingAddonDefinition = {
36
36
  prices: Array<BillingPriceDefinition>;
37
37
  feature: BillingFeatureId;
38
38
  increment: number;
39
+ prorationDisabled?: boolean;
39
40
  metadata?: Record<string, string>;
40
41
  };
41
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.2",
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.9.3"
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
  }