@bpinternal/const 0.28.0 → 0.30.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.
@@ -7,3 +7,4 @@ export declare const BILLING_PLAN_IDS: readonly ["community", "plus", "team", "e
7
7
  export declare const billingFeatureDefs: Record<string, {
8
8
  name: string;
9
9
  }>;
10
+ //# sourceMappingURL=consts.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export * from './quotas';
2
2
  export * from './consts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -280,3 +280,4 @@ export declare const quotaConfigsV3: {
280
280
  readonly trackUsagePerBot: true;
281
281
  };
282
282
  };
283
+ //# sourceMappingURL=quotas.d.ts.map
@@ -1,4 +1,8 @@
1
+ import { BillingPlanId } from './plans';
2
+ import { BillingAddonDefinition } from './schemas';
1
3
  export type BillingAddonId = keyof typeof addons;
4
+ type BillingAddonPlanPrices = BillingAddonDefinition['prices'];
5
+ export declare const constantMonthlyPrice: (amount: number, scope?: BillingPlanId[]) => BillingAddonPlanPrices;
2
6
  export declare const addons: {
3
7
  readonly conversation_sessions_addon: {
4
8
  readonly id: "conversation_sessions_addon";
@@ -54,3 +58,5 @@ export declare const addons: {
54
58
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
55
59
  };
56
60
  };
61
+ export {};
62
+ //# sourceMappingURL=addons.d.ts.map
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.addons = void 0;
3
+ exports.addons = exports.constantMonthlyPrice = void 0;
4
4
  const consts_1 = require("../consts");
5
5
  const schemas_1 = require("./schemas");
6
6
  const constantMonthlyPrice = (amount, scope = ['community', 'plus', 'team', 'enterprise', 'managed']) => {
@@ -15,6 +15,7 @@ const constantMonthlyPrice = (amount, scope = ['community', 'plus', 'team', 'ent
15
15
  }))
16
16
  .reduce((acc, curr) => ({ ...acc, ...curr }), {});
17
17
  };
18
+ exports.constantMonthlyPrice = constantMonthlyPrice;
18
19
  /* IMPORTANT: the `name` field is used to match existing products in Stripe DO NOT CHANGE THE NAME OF AN EXISTING PRODUCT */
19
20
  exports.addons = {
20
21
  conversation_sessions_addon: {
@@ -55,8 +56,8 @@ exports.addons = {
55
56
  name: 'Add-on - Storage',
56
57
  description: 'Adds table rows, vector db space and files',
57
58
  prices: {
58
- ...constantMonthlyPrice(40, ['plus', 'team']),
59
- ...constantMonthlyPrice(consts_1.FREE_PRICE, ['enterprise', 'managed']),
59
+ ...(0, exports.constantMonthlyPrice)(40, ['plus', 'team']),
60
+ ...(0, exports.constantMonthlyPrice)(consts_1.FREE_PRICE, ['enterprise', 'managed']),
60
61
  },
61
62
  increments: {
62
63
  table_rows: 100_000,
@@ -0,0 +1,27 @@
1
+ export type GrantId = keyof typeof creditGrants;
2
+ export declare const creditGrants: {
3
+ readonly ai_spend_credit_grant: {
4
+ readonly id: "ai_spend_credit_grant";
5
+ readonly name: "AI Spend - Credit grant";
6
+ readonly description: "Pre-purchased credits applied toward AI usage";
7
+ readonly prices: {
8
+ readonly [x: string]: {
9
+ currency: "usd";
10
+ interval: "month" | "year";
11
+ providerPriceId: string;
12
+ unitAmount: number;
13
+ metadata?: Record<string, string> | undefined;
14
+ };
15
+ };
16
+ readonly increments: {
17
+ readonly ai_spend: number;
18
+ };
19
+ readonly autoRechargeable: true;
20
+ readonly providerMeterId: "__UNKNOWN_STRIPE_ID__";
21
+ readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
22
+ };
23
+ };
24
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
25
+ export type GrantIncrementFeatureId = KeysOfUnion<(typeof creditGrants)[keyof typeof creditGrants]['increments']>;
26
+ export {};
27
+ //# sourceMappingURL=grants.d.ts.map
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.creditGrants = void 0;
4
+ const consts_1 = require("../consts");
5
+ const schemas_1 = require("./schemas");
6
+ const constantPriceForPlans = (unitAmount, scope = ['community', 'plus', 'team', 'enterprise', 'managed']) => {
7
+ return scope
8
+ .map((plan) => ({
9
+ [plan]: {
10
+ unitAmount,
11
+ currency: 'usd',
12
+ interval: 'month',
13
+ providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
14
+ },
15
+ }))
16
+ .reduce((acc, curr) => ({ ...acc, ...curr }), {});
17
+ };
18
+ exports.creditGrants = {
19
+ ai_spend_credit_grant: {
20
+ id: 'ai_spend_credit_grant',
21
+ name: 'AI Spend - Credit grant',
22
+ description: 'Pre-purchased credits applied toward AI usage',
23
+ prices: {
24
+ ...constantPriceForPlans(1, ['plus', 'team']),
25
+ },
26
+ increments: { ai_spend: 500 * consts_1.NANO_DOLLAR_PER_CENT },
27
+ autoRechargeable: true,
28
+ providerMeterId: schemas_1.UNKNOWN_STRIPE_ID,
29
+ providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
30
+ },
31
+ };
@@ -1,5 +1,6 @@
1
1
  export * from './plans';
2
2
  export * from './addons';
3
- export * from './meters';
3
+ export * from './grants';
4
4
  export * from './schemas';
5
5
  export * from './versions';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -16,6 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./plans"), exports);
18
18
  __exportStar(require("./addons"), exports);
19
- __exportStar(require("./meters"), exports);
19
+ __exportStar(require("./grants"), exports);
20
20
  __exportStar(require("./schemas"), exports);
21
21
  __exportStar(require("./versions"), exports);
@@ -148,3 +148,4 @@ export declare const plans: {
148
148
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
149
149
  };
150
150
  };
151
+ //# sourceMappingURL=plans.d.ts.map
@@ -5,14 +5,13 @@ import { z } from 'zod';
5
5
  */
6
6
  export declare const UNKNOWN_STRIPE_ID = "__UNKNOWN_STRIPE_ID__";
7
7
  export declare const featureSchema: z.ZodEnum<["incoming_messages_events", "integration_spend", "table_rows", "bot_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions", "indexed_file_count", "conversation_sessions", "ai_spend"]>;
8
+ export declare const creditGrantFeatureSchema: z.ZodEnum<["ai_spend"]>;
8
9
  export type Interval = z.infer<typeof intervalSchema>;
9
10
  export declare const intervalSchema: z.ZodEnum<["month", "year"]>;
10
11
  export type UnitAmount = z.infer<typeof unitAmountSchema>;
11
12
  export declare const unitAmountSchema: z.ZodNumber;
12
13
  export type Aggregation = z.infer<typeof aggregationSchema>;
13
14
  export declare const aggregationSchema: z.ZodEnum<["sum", "count"]>;
14
- export type MeterType = z.infer<typeof meterTypeSchema>;
15
- export declare const meterTypeSchema: z.ZodEnum<["payAsYouGo", "creditGrant"]>;
16
15
  export type BillingPrice = z.infer<typeof priceSchema>;
17
16
  export declare const priceSchema: z.ZodObject<{
18
17
  amount: z.ZodNumber;
@@ -33,8 +32,8 @@ export declare const priceSchema: z.ZodObject<{
33
32
  providerPriceId: string;
34
33
  metadata?: Record<string, string> | undefined;
35
34
  }>;
36
- export type BillingMeteredPrice = z.infer<typeof meteredPriceSchema>;
37
- export declare const meteredPriceSchema: z.ZodObject<{
35
+ export type BillingMeteredPrice = z.infer<typeof creditGrantPriceSchema>;
36
+ export declare const creditGrantPriceSchema: z.ZodObject<{
38
37
  unitAmount: z.ZodNumber;
39
38
  currency: z.ZodEnum<["usd"]>;
40
39
  interval: z.ZodEnum<["month", "year"]>;
@@ -177,36 +176,12 @@ export declare const addOnSchema: z.ZodObject<{
177
176
  autoRechargeable?: boolean | undefined;
178
177
  hidden?: boolean | undefined;
179
178
  }>;
180
- export type BillingMeter = z.infer<typeof meterSchema>;
181
- export declare const meterSchema: z.ZodObject<{
179
+ export type CreditGrant = z.infer<typeof creditGrantSchema>;
180
+ export declare const creditGrantSchema: z.ZodObject<{
182
181
  id: z.ZodString;
183
182
  name: z.ZodString;
184
183
  description: z.ZodString;
185
- defaultAggregation: z.ZodOptional<z.ZodObject<{
186
- formula: z.ZodEnum<["sum", "count"]>;
187
- }, "strip", z.ZodTypeAny, {
188
- formula: "count" | "sum";
189
- }, {
190
- formula: "count" | "sum";
191
- }>>;
192
- customerMapping: z.ZodOptional<z.ZodObject<{
193
- eventPayloadKey: z.ZodLiteral<"stripe_customer_id">;
194
- type: z.ZodLiteral<"by_id">;
195
- }, "strip", z.ZodTypeAny, {
196
- type: "by_id";
197
- eventPayloadKey: "stripe_customer_id";
198
- }, {
199
- type: "by_id";
200
- eventPayloadKey: "stripe_customer_id";
201
- }>>;
202
- valueSettings: z.ZodOptional<z.ZodObject<{
203
- eventPayloadKey: z.ZodLiteral<"value">;
204
- }, "strip", z.ZodTypeAny, {
205
- eventPayloadKey: "value";
206
- }, {
207
- eventPayloadKey: "value";
208
- }>>;
209
- prices: z.ZodRecord<z.ZodEnum<["month", "year"]>, z.ZodObject<{
184
+ prices: z.ZodRecord<z.ZodString, z.ZodObject<{
210
185
  unitAmount: z.ZodNumber;
211
186
  currency: z.ZodEnum<["usd"]>;
212
187
  interval: z.ZodEnum<["month", "year"]>;
@@ -225,7 +200,8 @@ export declare const meterSchema: z.ZodObject<{
225
200
  unitAmount: number;
226
201
  metadata?: Record<string, string> | undefined;
227
202
  }>>;
228
- meterType: z.ZodEnum<["payAsYouGo", "creditGrant"]>;
203
+ increments: z.ZodRecord<z.ZodEnum<["ai_spend"]>, z.ZodNumber>;
204
+ autoRechargeable: z.ZodOptional<z.ZodBoolean>;
229
205
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
230
206
  providerProductId: z.ZodString;
231
207
  providerMeterId: z.ZodString;
@@ -233,52 +209,34 @@ export declare const meterSchema: z.ZodObject<{
233
209
  id: string;
234
210
  name: string;
235
211
  description: string;
236
- prices: Partial<Record<"month" | "year", {
212
+ prices: Record<string, {
237
213
  currency: "usd";
238
214
  interval: "month" | "year";
239
215
  providerPriceId: string;
240
216
  unitAmount: number;
241
217
  metadata?: Record<string, string> | undefined;
242
- }>>;
218
+ }>;
243
219
  providerProductId: string;
244
- meterType: "creditGrant" | "payAsYouGo";
220
+ increments: Partial<Record<"ai_spend", number>>;
245
221
  providerMeterId: string;
246
222
  metadata?: Record<string, string> | undefined;
247
- defaultAggregation?: {
248
- formula: "count" | "sum";
249
- } | undefined;
250
- customerMapping?: {
251
- type: "by_id";
252
- eventPayloadKey: "stripe_customer_id";
253
- } | undefined;
254
- valueSettings?: {
255
- eventPayloadKey: "value";
256
- } | undefined;
223
+ autoRechargeable?: boolean | undefined;
257
224
  }, {
258
225
  id: string;
259
226
  name: string;
260
227
  description: string;
261
- prices: Partial<Record<"month" | "year", {
228
+ prices: Record<string, {
262
229
  currency: "usd";
263
230
  interval: "month" | "year";
264
231
  providerPriceId: string;
265
232
  unitAmount: number;
266
233
  metadata?: Record<string, string> | undefined;
267
- }>>;
234
+ }>;
268
235
  providerProductId: string;
269
- meterType: "creditGrant" | "payAsYouGo";
236
+ increments: Partial<Record<"ai_spend", number>>;
270
237
  providerMeterId: string;
271
238
  metadata?: Record<string, string> | undefined;
272
- defaultAggregation?: {
273
- formula: "count" | "sum";
274
- } | undefined;
275
- customerMapping?: {
276
- type: "by_id";
277
- eventPayloadKey: "stripe_customer_id";
278
- } | undefined;
279
- valueSettings?: {
280
- eventPayloadKey: "value";
281
- } | undefined;
239
+ autoRechargeable?: boolean | undefined;
282
240
  }>;
283
241
  export type BillingVersion = z.infer<typeof billingVersionConfigSchema>;
284
242
  export declare const billingVersionConfigSchema: z.ZodObject<{
@@ -407,35 +365,11 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
407
365
  autoRechargeable?: boolean | undefined;
408
366
  hidden?: boolean | undefined;
409
367
  }>>;
410
- meters: z.ZodRecord<z.ZodString, z.ZodObject<{
368
+ creditGrants: z.ZodRecord<z.ZodString, z.ZodObject<{
411
369
  id: z.ZodString;
412
370
  name: z.ZodString;
413
371
  description: z.ZodString;
414
- defaultAggregation: z.ZodOptional<z.ZodObject<{
415
- formula: z.ZodEnum<["sum", "count"]>;
416
- }, "strip", z.ZodTypeAny, {
417
- formula: "count" | "sum";
418
- }, {
419
- formula: "count" | "sum";
420
- }>>;
421
- customerMapping: z.ZodOptional<z.ZodObject<{
422
- eventPayloadKey: z.ZodLiteral<"stripe_customer_id">;
423
- type: z.ZodLiteral<"by_id">;
424
- }, "strip", z.ZodTypeAny, {
425
- type: "by_id";
426
- eventPayloadKey: "stripe_customer_id";
427
- }, {
428
- type: "by_id";
429
- eventPayloadKey: "stripe_customer_id";
430
- }>>;
431
- valueSettings: z.ZodOptional<z.ZodObject<{
432
- eventPayloadKey: z.ZodLiteral<"value">;
433
- }, "strip", z.ZodTypeAny, {
434
- eventPayloadKey: "value";
435
- }, {
436
- eventPayloadKey: "value";
437
- }>>;
438
- prices: z.ZodRecord<z.ZodEnum<["month", "year"]>, z.ZodObject<{
372
+ prices: z.ZodRecord<z.ZodString, z.ZodObject<{
439
373
  unitAmount: z.ZodNumber;
440
374
  currency: z.ZodEnum<["usd"]>;
441
375
  interval: z.ZodEnum<["month", "year"]>;
@@ -454,7 +388,8 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
454
388
  unitAmount: number;
455
389
  metadata?: Record<string, string> | undefined;
456
390
  }>>;
457
- meterType: z.ZodEnum<["payAsYouGo", "creditGrant"]>;
391
+ increments: z.ZodRecord<z.ZodEnum<["ai_spend"]>, z.ZodNumber>;
392
+ autoRechargeable: z.ZodOptional<z.ZodBoolean>;
458
393
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
459
394
  providerProductId: z.ZodString;
460
395
  providerMeterId: z.ZodString;
@@ -462,52 +397,34 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
462
397
  id: string;
463
398
  name: string;
464
399
  description: string;
465
- prices: Partial<Record<"month" | "year", {
400
+ prices: Record<string, {
466
401
  currency: "usd";
467
402
  interval: "month" | "year";
468
403
  providerPriceId: string;
469
404
  unitAmount: number;
470
405
  metadata?: Record<string, string> | undefined;
471
- }>>;
406
+ }>;
472
407
  providerProductId: string;
473
- meterType: "creditGrant" | "payAsYouGo";
408
+ increments: Partial<Record<"ai_spend", number>>;
474
409
  providerMeterId: string;
475
410
  metadata?: Record<string, string> | undefined;
476
- defaultAggregation?: {
477
- formula: "count" | "sum";
478
- } | undefined;
479
- customerMapping?: {
480
- type: "by_id";
481
- eventPayloadKey: "stripe_customer_id";
482
- } | undefined;
483
- valueSettings?: {
484
- eventPayloadKey: "value";
485
- } | undefined;
411
+ autoRechargeable?: boolean | undefined;
486
412
  }, {
487
413
  id: string;
488
414
  name: string;
489
415
  description: string;
490
- prices: Partial<Record<"month" | "year", {
416
+ prices: Record<string, {
491
417
  currency: "usd";
492
418
  interval: "month" | "year";
493
419
  providerPriceId: string;
494
420
  unitAmount: number;
495
421
  metadata?: Record<string, string> | undefined;
496
- }>>;
422
+ }>;
497
423
  providerProductId: string;
498
- meterType: "creditGrant" | "payAsYouGo";
424
+ increments: Partial<Record<"ai_spend", number>>;
499
425
  providerMeterId: string;
500
426
  metadata?: Record<string, string> | undefined;
501
- defaultAggregation?: {
502
- formula: "count" | "sum";
503
- } | undefined;
504
- customerMapping?: {
505
- type: "by_id";
506
- eventPayloadKey: "stripe_customer_id";
507
- } | undefined;
508
- valueSettings?: {
509
- eventPayloadKey: "value";
510
- } | undefined;
427
+ autoRechargeable?: boolean | undefined;
511
428
  }>>;
512
429
  isActive: z.ZodBoolean;
513
430
  createdAt: z.ZodString;
@@ -549,31 +466,22 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
549
466
  autoRechargeable?: boolean | undefined;
550
467
  hidden?: boolean | undefined;
551
468
  }>;
552
- meters: Record<string, {
469
+ creditGrants: Record<string, {
553
470
  id: string;
554
471
  name: string;
555
472
  description: string;
556
- prices: Partial<Record<"month" | "year", {
473
+ prices: Record<string, {
557
474
  currency: "usd";
558
475
  interval: "month" | "year";
559
476
  providerPriceId: string;
560
477
  unitAmount: number;
561
478
  metadata?: Record<string, string> | undefined;
562
- }>>;
479
+ }>;
563
480
  providerProductId: string;
564
- meterType: "creditGrant" | "payAsYouGo";
481
+ increments: Partial<Record<"ai_spend", number>>;
565
482
  providerMeterId: string;
566
483
  metadata?: Record<string, string> | undefined;
567
- defaultAggregation?: {
568
- formula: "count" | "sum";
569
- } | undefined;
570
- customerMapping?: {
571
- type: "by_id";
572
- eventPayloadKey: "stripe_customer_id";
573
- } | undefined;
574
- valueSettings?: {
575
- eventPayloadKey: "value";
576
- } | undefined;
484
+ autoRechargeable?: boolean | undefined;
577
485
  }>;
578
486
  isActive: boolean;
579
487
  createdAt: string;
@@ -615,31 +523,22 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
615
523
  autoRechargeable?: boolean | undefined;
616
524
  hidden?: boolean | undefined;
617
525
  }>;
618
- meters: Record<string, {
526
+ creditGrants: Record<string, {
619
527
  id: string;
620
528
  name: string;
621
529
  description: string;
622
- prices: Partial<Record<"month" | "year", {
530
+ prices: Record<string, {
623
531
  currency: "usd";
624
532
  interval: "month" | "year";
625
533
  providerPriceId: string;
626
534
  unitAmount: number;
627
535
  metadata?: Record<string, string> | undefined;
628
- }>>;
536
+ }>;
629
537
  providerProductId: string;
630
- meterType: "creditGrant" | "payAsYouGo";
538
+ increments: Partial<Record<"ai_spend", number>>;
631
539
  providerMeterId: string;
632
540
  metadata?: Record<string, string> | undefined;
633
- defaultAggregation?: {
634
- formula: "count" | "sum";
635
- } | undefined;
636
- customerMapping?: {
637
- type: "by_id";
638
- eventPayloadKey: "stripe_customer_id";
639
- } | undefined;
640
- valueSettings?: {
641
- eventPayloadKey: "value";
642
- } | undefined;
541
+ autoRechargeable?: boolean | undefined;
643
542
  }>;
644
543
  isActive: boolean;
645
544
  createdAt: string;
@@ -771,35 +670,11 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
771
670
  autoRechargeable?: boolean | undefined;
772
671
  hidden?: boolean | undefined;
773
672
  }>>;
774
- meters: z.ZodRecord<z.ZodString, z.ZodObject<{
673
+ creditGrants: z.ZodRecord<z.ZodString, z.ZodObject<{
775
674
  id: z.ZodString;
776
675
  name: z.ZodString;
777
676
  description: z.ZodString;
778
- defaultAggregation: z.ZodOptional<z.ZodObject<{
779
- formula: z.ZodEnum<["sum", "count"]>;
780
- }, "strip", z.ZodTypeAny, {
781
- formula: "count" | "sum";
782
- }, {
783
- formula: "count" | "sum";
784
- }>>;
785
- customerMapping: z.ZodOptional<z.ZodObject<{
786
- eventPayloadKey: z.ZodLiteral<"stripe_customer_id">;
787
- type: z.ZodLiteral<"by_id">;
788
- }, "strip", z.ZodTypeAny, {
789
- type: "by_id";
790
- eventPayloadKey: "stripe_customer_id";
791
- }, {
792
- type: "by_id";
793
- eventPayloadKey: "stripe_customer_id";
794
- }>>;
795
- valueSettings: z.ZodOptional<z.ZodObject<{
796
- eventPayloadKey: z.ZodLiteral<"value">;
797
- }, "strip", z.ZodTypeAny, {
798
- eventPayloadKey: "value";
799
- }, {
800
- eventPayloadKey: "value";
801
- }>>;
802
- prices: z.ZodRecord<z.ZodEnum<["month", "year"]>, z.ZodObject<{
677
+ prices: z.ZodRecord<z.ZodString, z.ZodObject<{
803
678
  unitAmount: z.ZodNumber;
804
679
  currency: z.ZodEnum<["usd"]>;
805
680
  interval: z.ZodEnum<["month", "year"]>;
@@ -818,7 +693,8 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
818
693
  unitAmount: number;
819
694
  metadata?: Record<string, string> | undefined;
820
695
  }>>;
821
- meterType: z.ZodEnum<["payAsYouGo", "creditGrant"]>;
696
+ increments: z.ZodRecord<z.ZodEnum<["ai_spend"]>, z.ZodNumber>;
697
+ autoRechargeable: z.ZodOptional<z.ZodBoolean>;
822
698
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
823
699
  providerProductId: z.ZodString;
824
700
  providerMeterId: z.ZodString;
@@ -826,52 +702,34 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
826
702
  id: string;
827
703
  name: string;
828
704
  description: string;
829
- prices: Partial<Record<"month" | "year", {
705
+ prices: Record<string, {
830
706
  currency: "usd";
831
707
  interval: "month" | "year";
832
708
  providerPriceId: string;
833
709
  unitAmount: number;
834
710
  metadata?: Record<string, string> | undefined;
835
- }>>;
711
+ }>;
836
712
  providerProductId: string;
837
- meterType: "creditGrant" | "payAsYouGo";
713
+ increments: Partial<Record<"ai_spend", number>>;
838
714
  providerMeterId: string;
839
715
  metadata?: Record<string, string> | undefined;
840
- defaultAggregation?: {
841
- formula: "count" | "sum";
842
- } | undefined;
843
- customerMapping?: {
844
- type: "by_id";
845
- eventPayloadKey: "stripe_customer_id";
846
- } | undefined;
847
- valueSettings?: {
848
- eventPayloadKey: "value";
849
- } | undefined;
716
+ autoRechargeable?: boolean | undefined;
850
717
  }, {
851
718
  id: string;
852
719
  name: string;
853
720
  description: string;
854
- prices: Partial<Record<"month" | "year", {
721
+ prices: Record<string, {
855
722
  currency: "usd";
856
723
  interval: "month" | "year";
857
724
  providerPriceId: string;
858
725
  unitAmount: number;
859
726
  metadata?: Record<string, string> | undefined;
860
- }>>;
727
+ }>;
861
728
  providerProductId: string;
862
- meterType: "creditGrant" | "payAsYouGo";
729
+ increments: Partial<Record<"ai_spend", number>>;
863
730
  providerMeterId: string;
864
731
  metadata?: Record<string, string> | undefined;
865
- defaultAggregation?: {
866
- formula: "count" | "sum";
867
- } | undefined;
868
- customerMapping?: {
869
- type: "by_id";
870
- eventPayloadKey: "stripe_customer_id";
871
- } | undefined;
872
- valueSettings?: {
873
- eventPayloadKey: "value";
874
- } | undefined;
732
+ autoRechargeable?: boolean | undefined;
875
733
  }>>;
876
734
  isActive: z.ZodBoolean;
877
735
  createdAt: z.ZodString;
@@ -913,31 +771,22 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
913
771
  autoRechargeable?: boolean | undefined;
914
772
  hidden?: boolean | undefined;
915
773
  }>;
916
- meters: Record<string, {
774
+ creditGrants: Record<string, {
917
775
  id: string;
918
776
  name: string;
919
777
  description: string;
920
- prices: Partial<Record<"month" | "year", {
778
+ prices: Record<string, {
921
779
  currency: "usd";
922
780
  interval: "month" | "year";
923
781
  providerPriceId: string;
924
782
  unitAmount: number;
925
783
  metadata?: Record<string, string> | undefined;
926
- }>>;
784
+ }>;
927
785
  providerProductId: string;
928
- meterType: "creditGrant" | "payAsYouGo";
786
+ increments: Partial<Record<"ai_spend", number>>;
929
787
  providerMeterId: string;
930
788
  metadata?: Record<string, string> | undefined;
931
- defaultAggregation?: {
932
- formula: "count" | "sum";
933
- } | undefined;
934
- customerMapping?: {
935
- type: "by_id";
936
- eventPayloadKey: "stripe_customer_id";
937
- } | undefined;
938
- valueSettings?: {
939
- eventPayloadKey: "value";
940
- } | undefined;
789
+ autoRechargeable?: boolean | undefined;
941
790
  }>;
942
791
  isActive: boolean;
943
792
  createdAt: string;
@@ -979,31 +828,22 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
979
828
  autoRechargeable?: boolean | undefined;
980
829
  hidden?: boolean | undefined;
981
830
  }>;
982
- meters: Record<string, {
831
+ creditGrants: Record<string, {
983
832
  id: string;
984
833
  name: string;
985
834
  description: string;
986
- prices: Partial<Record<"month" | "year", {
835
+ prices: Record<string, {
987
836
  currency: "usd";
988
837
  interval: "month" | "year";
989
838
  providerPriceId: string;
990
839
  unitAmount: number;
991
840
  metadata?: Record<string, string> | undefined;
992
- }>>;
841
+ }>;
993
842
  providerProductId: string;
994
- meterType: "creditGrant" | "payAsYouGo";
843
+ increments: Partial<Record<"ai_spend", number>>;
995
844
  providerMeterId: string;
996
845
  metadata?: Record<string, string> | undefined;
997
- defaultAggregation?: {
998
- formula: "count" | "sum";
999
- } | undefined;
1000
- customerMapping?: {
1001
- type: "by_id";
1002
- eventPayloadKey: "stripe_customer_id";
1003
- } | undefined;
1004
- valueSettings?: {
1005
- eventPayloadKey: "value";
1006
- } | undefined;
846
+ autoRechargeable?: boolean | undefined;
1007
847
  }>;
1008
848
  isActive: boolean;
1009
849
  createdAt: string;
@@ -1012,7 +852,8 @@ export type BillingPriceDefinition = BillingPrice;
1012
852
  export type BillingMeteredPriceDefinition = BillingMeteredPrice;
1013
853
  export type BillingPlanDefinition = BillingPlan;
1014
854
  export type BillingAddonDefinition = BillingAddon;
1015
- export type BillingMeterDefinition = BillingMeter;
855
+ export type BillingCreditGrantDefinition = CreditGrant;
1016
856
  export type BillingVersionDefinition = BillingVersion;
1017
857
  export type BillingVersionConfig = BillingVersion;
1018
858
  export type BillingDefinition = BillingConfig;
859
+ //# sourceMappingURL=schemas.d.ts.map
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.billingConfigSchema = exports.billingVersionConfigSchema = exports.meterSchema = exports.addOnSchema = exports.planSchema = exports.meteredPriceSchema = exports.priceSchema = exports.meterTypeSchema = exports.aggregationSchema = exports.unitAmountSchema = exports.intervalSchema = exports.featureSchema = exports.UNKNOWN_STRIPE_ID = void 0;
3
+ exports.billingConfigSchema = exports.billingVersionConfigSchema = exports.creditGrantSchema = exports.addOnSchema = exports.planSchema = exports.creditGrantPriceSchema = exports.priceSchema = exports.aggregationSchema = exports.unitAmountSchema = exports.intervalSchema = exports.creditGrantFeatureSchema = exports.featureSchema = exports.UNKNOWN_STRIPE_ID = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const features_1 = require("../features");
6
6
  /**
@@ -9,10 +9,10 @@ const features_1 = require("../features");
9
9
  */
10
10
  exports.UNKNOWN_STRIPE_ID = '__UNKNOWN_STRIPE_ID__';
11
11
  exports.featureSchema = zod_1.z.enum(features_1.BILLING_FEATURE_IDS);
12
+ exports.creditGrantFeatureSchema = zod_1.z.enum(features_1.CREDIT_GRANT_BILLING_FEATURE_IDS);
12
13
  exports.intervalSchema = zod_1.z.enum(['month', 'year']);
13
14
  exports.unitAmountSchema = zod_1.z.number().int().min(1);
14
15
  exports.aggregationSchema = zod_1.z.enum(['sum', 'count']);
15
- exports.meterTypeSchema = zod_1.z.enum(['payAsYouGo', 'creditGrant']);
16
16
  exports.priceSchema = zod_1.z.object({
17
17
  amount: zod_1.z.number(),
18
18
  currency: zod_1.z.enum(['usd']),
@@ -20,7 +20,7 @@ exports.priceSchema = zod_1.z.object({
20
20
  metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
21
21
  providerPriceId: zod_1.z.string(), // pulumi
22
22
  });
23
- exports.meteredPriceSchema = zod_1.z.object({
23
+ exports.creditGrantPriceSchema = zod_1.z.object({
24
24
  unitAmount: exports.unitAmountSchema,
25
25
  currency: zod_1.z.enum(['usd']),
26
26
  interval: exports.intervalSchema,
@@ -49,15 +49,13 @@ exports.addOnSchema = zod_1.z.object({
49
49
  hidden: zod_1.z.boolean().optional(),
50
50
  providerProductId: zod_1.z.string(), // pulumi
51
51
  });
52
- exports.meterSchema = zod_1.z.object({
52
+ exports.creditGrantSchema = zod_1.z.object({
53
53
  id: zod_1.z.string(),
54
54
  name: zod_1.z.string(),
55
55
  description: zod_1.z.string(),
56
- defaultAggregation: zod_1.z.object({ formula: exports.aggregationSchema }).optional(),
57
- customerMapping: zod_1.z.object({ eventPayloadKey: zod_1.z.literal('stripe_customer_id'), type: zod_1.z.literal('by_id') }).optional(),
58
- valueSettings: zod_1.z.object({ eventPayloadKey: zod_1.z.literal('value') }).optional(),
59
- prices: zod_1.z.record(exports.intervalSchema, exports.meteredPriceSchema),
60
- meterType: exports.meterTypeSchema,
56
+ prices: zod_1.z.record(zod_1.z.string(), exports.creditGrantPriceSchema),
57
+ increments: zod_1.z.record(exports.creditGrantFeatureSchema, zod_1.z.number().positive()),
58
+ autoRechargeable: zod_1.z.boolean().optional(),
61
59
  metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
62
60
  providerProductId: zod_1.z.string(), // pulumi
63
61
  providerMeterId: zod_1.z.string(), // pulumi
@@ -68,7 +66,7 @@ exports.billingVersionConfigSchema = zod_1.z.object({
68
66
  description: zod_1.z.string(),
69
67
  plans: zod_1.z.record(zod_1.z.string(), exports.planSchema),
70
68
  addons: zod_1.z.record(zod_1.z.string(), exports.addOnSchema),
71
- meters: zod_1.z.record(zod_1.z.string(), exports.meterSchema),
69
+ creditGrants: zod_1.z.record(zod_1.z.string(), exports.creditGrantSchema),
72
70
  isActive: zod_1.z.boolean(),
73
71
  createdAt: zod_1.z.string(),
74
72
  });
@@ -208,56 +208,24 @@ export declare const billingConfig: {
208
208
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
209
209
  };
210
210
  };
211
- readonly meters: {
211
+ readonly creditGrants: {
212
212
  readonly ai_spend_credit_grant: {
213
213
  readonly id: "ai_spend_credit_grant";
214
214
  readonly name: "AI Spend - Credit grant";
215
215
  readonly description: "Pre-purchased credits applied toward AI usage";
216
- readonly defaultAggregation: {
217
- readonly formula: "sum";
218
- };
219
- readonly customerMapping: {
220
- readonly eventPayloadKey: "stripe_customer_id";
221
- readonly type: "by_id";
222
- };
223
- readonly valueSettings: {
224
- readonly eventPayloadKey: "value";
225
- };
226
216
  readonly prices: {
227
- readonly month: {
228
- readonly unitAmount: 1;
229
- readonly currency: "usd";
230
- readonly interval: "month";
231
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
217
+ readonly [x: string]: {
218
+ currency: "usd";
219
+ interval: "month" | "year";
220
+ providerPriceId: string;
221
+ unitAmount: number;
222
+ metadata?: Record<string, string> | undefined;
232
223
  };
233
224
  };
234
- readonly meterType: "creditGrant";
235
- readonly providerMeterId: "__UNKNOWN_STRIPE_ID__";
236
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
237
- };
238
- readonly ai_spend_pay_as_you_go: {
239
- readonly id: "ai_spend_pay_as_you_go";
240
- readonly name: "AI Spend - Pay as you go";
241
- readonly description: "Usage-based charges for AI spend, billed monthly";
242
- readonly defaultAggregation: {
243
- readonly formula: "sum";
244
- };
245
- readonly customerMapping: {
246
- readonly eventPayloadKey: "stripe_customer_id";
247
- readonly type: "by_id";
248
- };
249
- readonly valueSettings: {
250
- readonly eventPayloadKey: "value";
251
- };
252
- readonly prices: {
253
- readonly month: {
254
- readonly unitAmount: 1;
255
- readonly currency: "usd";
256
- readonly interval: "month";
257
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
258
- };
225
+ readonly increments: {
226
+ readonly ai_spend: number;
259
227
  };
260
- readonly meterType: "payAsYouGo";
228
+ readonly autoRechargeable: true;
261
229
  readonly providerMeterId: "__UNKNOWN_STRIPE_ID__";
262
230
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
263
231
  };
@@ -479,56 +447,24 @@ export declare const billingDefinitions: {
479
447
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
480
448
  };
481
449
  };
482
- readonly meters: {
450
+ readonly creditGrants: {
483
451
  readonly ai_spend_credit_grant: {
484
452
  readonly id: "ai_spend_credit_grant";
485
453
  readonly name: "AI Spend - Credit grant";
486
454
  readonly description: "Pre-purchased credits applied toward AI usage";
487
- readonly defaultAggregation: {
488
- readonly formula: "sum";
489
- };
490
- readonly customerMapping: {
491
- readonly eventPayloadKey: "stripe_customer_id";
492
- readonly type: "by_id";
493
- };
494
- readonly valueSettings: {
495
- readonly eventPayloadKey: "value";
496
- };
497
455
  readonly prices: {
498
- readonly month: {
499
- readonly unitAmount: 1;
500
- readonly currency: "usd";
501
- readonly interval: "month";
502
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
456
+ readonly [x: string]: {
457
+ currency: "usd";
458
+ interval: "month" | "year";
459
+ providerPriceId: string;
460
+ unitAmount: number;
461
+ metadata?: Record<string, string> | undefined;
503
462
  };
504
463
  };
505
- readonly meterType: "creditGrant";
506
- readonly providerMeterId: "__UNKNOWN_STRIPE_ID__";
507
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
508
- };
509
- readonly ai_spend_pay_as_you_go: {
510
- readonly id: "ai_spend_pay_as_you_go";
511
- readonly name: "AI Spend - Pay as you go";
512
- readonly description: "Usage-based charges for AI spend, billed monthly";
513
- readonly defaultAggregation: {
514
- readonly formula: "sum";
515
- };
516
- readonly customerMapping: {
517
- readonly eventPayloadKey: "stripe_customer_id";
518
- readonly type: "by_id";
519
- };
520
- readonly valueSettings: {
521
- readonly eventPayloadKey: "value";
522
- };
523
- readonly prices: {
524
- readonly month: {
525
- readonly unitAmount: 1;
526
- readonly currency: "usd";
527
- readonly interval: "month";
528
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
529
- };
464
+ readonly increments: {
465
+ readonly ai_spend: number;
530
466
  };
531
- readonly meterType: "payAsYouGo";
467
+ readonly autoRechargeable: true;
532
468
  readonly providerMeterId: "__UNKNOWN_STRIPE_ID__";
533
469
  readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
534
470
  };
@@ -537,3 +473,4 @@ export declare const billingDefinitions: {
537
473
  readonly createdAt: string;
538
474
  };
539
475
  };
476
+ //# sourceMappingURL=versions.d.ts.map
@@ -7,7 +7,7 @@ exports.billingDefinitions = exports.billingConfig = void 0;
7
7
  */
8
8
  const plans_1 = require("./plans");
9
9
  const addons_1 = require("./addons");
10
- const meters_1 = require("./meters");
10
+ const grants_1 = require("./grants");
11
11
  exports.billingConfig = {
12
12
  v4: {
13
13
  version: 'v4',
@@ -15,7 +15,7 @@ exports.billingConfig = {
15
15
  description: 'New billing system with credit grants and entitlements',
16
16
  plans: plans_1.plans,
17
17
  addons: addons_1.addons,
18
- meters: meters_1.meters,
18
+ creditGrants: grants_1.creditGrants,
19
19
  isActive: true,
20
20
  createdAt: new Date().toISOString(),
21
21
  },
@@ -11,3 +11,4 @@ export declare const NANO_DOLLAR_PER_CENT = 10000000;
11
11
  export declare const YEAR_MONTHS = 12;
12
12
  export declare const MESSAGES_PER_CONVERSATION = 30000;
13
13
  export declare const AI_SPEND_PER_CONVERSATION: number;
14
+ //# sourceMappingURL=consts.d.ts.map
@@ -105,3 +105,4 @@ export declare const ATOMIC_BILLING_FEATURE_IDS: AtomicBillingFeatureIds;
105
105
  export declare const NON_ATOMIC_BILLING_FEATURE_IDS: EventualBillingFeatureIds;
106
106
  export declare const NON_RESETTING_BILLING_FEATURE_IDS: StaticBillingFeatureIds;
107
107
  export declare const CREDIT_GRANT_BILLING_FEATURE_IDS: GrantableBillingFeatureIds;
108
+ //# sourceMappingURL=features.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export * from './features';
2
2
  export * from './config';
3
3
  export * from './consts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -2,3 +2,4 @@ export type MapTuple<T extends readonly object[], K extends keyof T[number]> = T
2
2
  [I in keyof Items]: Items[I] extends Record<K, infer Value> ? Value : never;
3
3
  } : never;
4
4
  export type FilterTuple<T extends readonly unknown[], F> = T extends readonly [infer Head, ...infer Tail] ? Head extends F ? [Head, ...FilterTuple<Tail, F>] : FilterTuple<Tail, F> : [];
5
+ //# sourceMappingURL=type-utils.d.ts.map
@@ -5,3 +5,4 @@ export declare const BOT_USE_CASES: {
5
5
  readonly OTHER: "other";
6
6
  };
7
7
  export type BotUseCase = (typeof BOT_USE_CASES)[keyof typeof BOT_USE_CASES];
8
+ //# sourceMappingURL=bot-use-cases.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export type CancellationReason = (typeof CANCELLATION_REASONS)[number];
2
2
  export declare const CANCELLATION_REASONS: readonly ["too_expensive", "not_using_enough", "missing_feature", "switched_tool", "technical_issues", "support_expectations", "temporary_need"];
3
+ //# sourceMappingURL=cancellation-reasons.d.ts.map
package/dist/index.d.ts CHANGED
@@ -6,3 +6,4 @@ export * from './tags';
6
6
  export * from './workflow-names';
7
7
  export * from './cancellation-reasons';
8
8
  export * from './billing-next';
9
+ //# sourceMappingURL=index.d.ts.map
package/dist/limits.d.ts CHANGED
@@ -86,3 +86,4 @@ export declare const limitConfigs: {
86
86
  readonly unit: "count";
87
87
  };
88
88
  };
89
+ //# sourceMappingURL=limits.d.ts.map
package/dist/limits.js CHANGED
@@ -42,6 +42,13 @@ exports.limitConfigs = {
42
42
  value: 50,
43
43
  unit: 'count',
44
44
  },
45
+ // Increasing this limit significantly could degrade performance in two places:
46
+ // 1. bridge webhook.ts: getLatestIntegrationVersion sorts all versions for a given name using split_part()::int on
47
+ // the hot /integration/global/:name path — O(n) sort that PostgreSQL cannot satisfy with an existing index.
48
+ // 2. cdm-backend: breaking-change validation and semver range resolution fetch all versions without a LIMIT.
49
+ // One option to mitigate both would be to add indexed integer semver columns (semverMajor, semverMinor, semverPatch)
50
+ // to IntegrationDefinition with a backfill migration, but that migration cost may not be worth it depending on how
51
+ // high the limit needs to go.
45
52
  integration_version_count: {
46
53
  value: 200,
47
54
  unit: 'count',
@@ -57,6 +57,7 @@ export declare const prefixToObjectMap: {
57
57
  readonly wksqtaadd: "workspaceQuotaAddition";
58
58
  readonly wksplan: "workspacePlan";
59
59
  readonly wrkflow: "workflow";
60
+ readonly wrkiter: "workflowIteration";
60
61
  readonly wkspacepf: "workspacePreference";
61
62
  readonly trial: "trial";
62
63
  readonly evlrun: "evalRun";
@@ -114,6 +115,7 @@ export type UsageId = Ids['UsageId'];
114
115
  export type UserId = Ids['UserId'];
115
116
  export type WebhookId = Ids['WebhookId'];
116
117
  export type WorkflowId = Ids['WorkflowId'];
118
+ export type WorkflowIterationId = Ids['WorkflowIterationId'];
117
119
  export type WorkspaceAddonId = Ids['WorkspaceAddonId'];
118
120
  export type WorkspaceQuotaAdditionId = Ids['WorkspaceQuotaAdditionId'];
119
121
  export type WorkspaceId = Ids['WorkspaceId'];
@@ -125,3 +127,4 @@ type Reverser<T extends Record<PropertyKey, PropertyKey>> = {
125
127
  [P in keyof T as T[P]]: P;
126
128
  };
127
129
  export {};
130
+ //# sourceMappingURL=prefixes.d.ts.map
package/dist/prefixes.js CHANGED
@@ -60,6 +60,7 @@ exports.prefixToObjectMap = {
60
60
  wksqtaadd: 'workspaceQuotaAddition',
61
61
  wksplan: 'workspacePlan',
62
62
  wrkflow: 'workflow',
63
+ wrkiter: 'workflowIteration',
63
64
  wkspacepf: 'workspacePreference',
64
65
  trial: 'trial',
65
66
  evlrun: 'evalRun',
@@ -121,6 +122,7 @@ exports.objectToPrefixMap = {
121
122
  user: 'user',
122
123
  webhook: 'webhook',
123
124
  workflow: 'wrkflow',
125
+ workflowIteration: 'wrkiter',
124
126
  workspace: 'wkspace',
125
127
  workspaceAddon: 'wksadd',
126
128
  workspaceQuotaAddition: 'wksqtaadd',
package/dist/tags.d.ts CHANGED
@@ -78,3 +78,4 @@ export declare const Tags: {
78
78
  };
79
79
  };
80
80
  };
81
+ //# sourceMappingURL=tags.d.ts.map
@@ -0,0 +1 @@
1
+ {"fileNames":["../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/bot-use-cases.ts","../src/cancellation-reasons.ts","../src/limits.ts","../src/prefixes.ts","../src/billing-legacy/quotas.ts","../src/billing-legacy/consts.ts","../src/billing-legacy/index.ts","../src/tags.ts","../src/workflow-names.ts","../src/billing-next/type-utils.ts","../src/billing-next/features.ts","../src/billing-next/consts.ts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/typeAliases.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/index.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/enumUtil.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/partialUtil.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/standard-schema.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.d.cts","../src/billing-next/config/schemas.ts","../src/billing-next/config/plans.ts","../src/billing-next/config/addons.ts","../src/billing-next/config/grants.ts","../src/billing-next/config/versions.ts","../src/billing-next/config/index.ts","../src/billing-next/index.ts","../src/index.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/dom-events.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/globals.global.d.ts","../../../node_modules/.pnpm/@types+node@18.15.5/node_modules/@types/node/index.d.ts"],"fileIdsList":[[93,139],[96,139],[97,102,130,139],[98,109,110,117,127,138,139],[98,99,109,117,139],[100,139],[101,102,110,118,139],[102,127,135,139],[103,105,109,117,139],[104,139],[105,106,139],[109,139],[107,109,139],[109,110,111,127,138,139],[109,110,111,124,127,130,139],[139,143],[139],[105,112,117,127,138,139],[109,110,112,113,117,127,135,138,139],[112,114,127,135,138,139],[93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145],[109,115,139],[116,138,139],[105,109,117,127,139],[118,139],[119,139],[96,120,139],[121,137,139,143],[122,139],[123,139],[109,124,125,139],[124,126,139,141],[97,109,127,128,129,130,139],[97,127,129,139],[127,128,139],[130,139],[131,139],[109,133,134,139],[133,134,139],[102,117,127,135,139],[136,139],[117,137,139],[97,112,123,138,139],[102,139],[127,139,140],[139,141],[139,142],[97,102,109,111,120,127,138,139,141,143],[127,139,144],[83,139],[71,72,73,139],[74,75,139],[71,72,74,76,77,82,139],[72,74,139],[82,139],[74,139],[71,72,74,77,78,79,80,81,139],[63,64,139],[70,85,86,139],[85,86,87,88,89,139],[69,70,85,139],[69,84,139],[85,86,87,88,139],[68,139],[69,70,90,139],[59,60,61,62,65,66,67,91,139]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"0919f7c651725a47791db56f285240822f0346ac5a5f4591d1a03709fdac6242","signature":"2031f8e6d6156ac1fd87f41f7931a5f49276d30a999e22c65e7c9abd0994d81e"},{"version":"e5444f3b34fde2cdd9cd463815aca9269d1137c3527722a5b2cc792ee6719c7f","signature":"fc9fec3b7a55140bea9c1a1705be54f73c2baaab472480f6fedd4b7da9e9191f"},{"version":"cbaa01bde9611d74b285205faeaa5c9f276cfe5cc3d28343d38d89d9e7456cb8","signature":"e56820840fac42d88f3c0bc1bef3117aa6fbe1551714e9e2e21621bbbd629bd7"},{"version":"3315f234976f32e91e63be72b468fc6c5dfa5dabd25485efefc479bc42190602","signature":"3da6418f37017e6e3ff168e89c572f9d15b331fb24ab79f7e3f94acd49eeba34"},{"version":"b06181410e9a829e4656ceaa6c14a2bd80f7fe41adc0615c99b4de14ec4acab4","signature":"b986d27536c3c550d71602a46e41458ca6bc03a960fb49cf9d3399d78f6173db"},{"version":"370332338c1599de6d8598f2e5c8d8fde774341a07c5bf252c62752ff040273c","signature":"5a87aabfaaa00394ba27c0be0f900631482abf66f2d68c39a31d37106fa1b1b9"},{"version":"cbf59e0f38bfa35c7c0e73a9a0264de6cb06193bfbb42888ee4b6314534cb9fd","signature":"253038693941e553110fe00a936b9c6b53a03627a591ed9d6ecb27476728b1b0"},{"version":"fd9ee193cf4184f58ae5c1e6c4e42ca754eddccd61d19fc7b2dc3abcc1bb45ce","signature":"ba88d42dc7f2a707325a3b6151bfff4c0322b3767ccd41d1dc663adcb83550e2"},{"version":"68ce78532e48e1cb70b3b76ea3f48990a00af6b459004d6b291d3b8b1f53a524","signature":"69c2b87b95a0f9d15b9b8dd518025730941883004618bc3d55597f9f9af6dcb8"},{"version":"898d24246f0d95696d600bcc55e0260ec81baffdac3289d0de764a36fdc26609","signature":"488e850b1d9251df3e0102a8af1e9df07e8c2fa19b2b07f83e8b1a29ef0cc1d6"},{"version":"11c2d31f40e1e48f146e4fea61e0411b3af1cf5b1b8138de60411590fc78730d","signature":"1e21be05141b42437e3e48051cff9952d0d8fb1a09a9f602c7830ebc522b4df9"},{"version":"ea8c7eafc3d86d3c2aae0298d08d18903ba21c1ab0757db86e792d07c2b99fda","signature":"dbac497fa902c7a1b902d2a71b98f5847a9d81534d1176f14967b6ded997dd9b"},{"version":"d3cfde44f8089768ebb08098c96d01ca260b88bccf238d55eee93f1c620ff5a5","impliedFormat":1},{"version":"293eadad9dead44c6fd1db6de552663c33f215c55a1bfa2802a1bceed88ff0ec","impliedFormat":1},{"version":"833e92c058d033cde3f29a6c7603f517001d1ddd8020bc94d2067a3bc69b2a8e","impliedFormat":1},{"version":"08b2fae7b0f553ad9f79faec864b179fc58bc172e295a70943e8585dd85f600c","impliedFormat":1},{"version":"f12edf1672a94c578eca32216839604f1e1c16b40a1896198deabf99c882b340","impliedFormat":1},{"version":"e3498cf5e428e6c6b9e97bd88736f26d6cf147dedbfa5a8ad3ed8e05e059af8a","impliedFormat":1},{"version":"dba3f34531fd9b1b6e072928b6f885aa4d28dd6789cbd0e93563d43f4b62da53","impliedFormat":1},{"version":"f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","impliedFormat":1},{"version":"e4b03ddcf8563b1c0aee782a185286ed85a255ce8a30df8453aade2188bbc904","impliedFormat":1},{"version":"2329d90062487e1eaca87b5e06abcbbeeecf80a82f65f949fd332cfcf824b87b","impliedFormat":1},{"version":"25b3f581e12ede11e5739f57a86e8668fbc0124f6649506def306cad2c59d262","impliedFormat":1},{"version":"4fdb529707247a1a917a4626bfb6a293d52cd8ee57ccf03830ec91d39d606d6d","impliedFormat":1},{"version":"a9ebb67d6bbead6044b43714b50dcb77b8f7541ffe803046fdec1714c1eba206","impliedFormat":1},{"version":"5780b706cece027f0d4444fbb4e1af62dc51e19da7c3d3719f67b22b033859b9","impliedFormat":1},{"version":"259cabbc592b9b4ced4cd6f6c6f4bdab905604f86fb4c5beb747eb0ae60c34dc","signature":"c47abb0b155ad218fc41386f3a1a14898257153d95a0dbaf64b4f25ae91c6791"},{"version":"a4e83fccdc8dca5fd4a99c04669a24cd2db6ccbc6229f8f6f49bc8446486508d","signature":"742e95f5bfb1db320bab8fa8f1f6ba1d690a598bf81a85da6d2322a064d436ed"},{"version":"034e5167aabdf2b7d6c88657d94928a7827ff27050864df51d0033fee3c0dc46","signature":"f47c680c41c7c7f98569553a9d56286451d3c92508f759a0ef0ee86b52eca8a0"},{"version":"ed301fff2730cf47de41ddb020d7e2351c9598b03e6566ee0edcaee10f4212b4","signature":"4b53b5664cd4650d846ba17f002c39a2253a356136b1628a41e5ba45f555278c"},{"version":"bedd4770a2ae0a8e052aacfda4f7a0c199a46b89b54d3c9f587518c391e0ff6b","signature":"228d69ce9828fd2fd3598553157a58210f026016dd41b49385db41802584f758"},{"version":"1de800409208abbaa7f06a64a054ea0e8839dd68eff9b4745d0318d43940259b","signature":"519ca8b9520e377987c1e246be417dd5e497502524162f550db5e5e450a1a10b"},{"version":"53f2b7063a47f7a54c9d467c253154920e5e71c34c0846b4808026895995bab7","signature":"b2721d24b4f1a7479b6ddbfc717157ed172d4d80bf76add016dd999b269cb4be"},{"version":"3d459dc4efcbb4dc88ceb9297de84810fa0effbed369e2cc3ab9a022e6443dba","signature":"0f9146a00ad1fd625b6127b488df658362fdf48d88dc8c900d09ecaea6a387ea"},{"version":"7e771891adaa85b690266bc37bd6eb43bc57eecc4b54693ead36467e7369952a","impliedFormat":1},{"version":"a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a","impliedFormat":1},{"version":"54ba7456adb777a685250cd144115ea51379784012ba1311255b715c6bdcff2a","affectsGlobalScope":true,"impliedFormat":1},{"version":"11e2d554398d2bd460e7d06b2fa5827a297c8acfbe00b4f894a224ac0862857f","impliedFormat":1},{"version":"e193e634a99c9c1d71f1c6e4e1567a4a73584328d21ea02dd5cddbaad6693f61","affectsGlobalScope":true,"impliedFormat":1},{"version":"374ca798f244e464346f14301dc2a8b4b111af1a83b49fffef5906c338a1f922","impliedFormat":1},{"version":"5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713","impliedFormat":1},{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true,"impliedFormat":1},{"version":"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","impliedFormat":1},{"version":"e596c9bb2f29a2699fdd4ae89139612652245192f67f45617c5a4b20832aaae9","impliedFormat":1},{"version":"bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","impliedFormat":1},{"version":"489532ff54b714f0e0939947a1c560e516d3ae93d51d639ab02e907a0e950114","impliedFormat":1},{"version":"f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","impliedFormat":1},{"version":"14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","impliedFormat":1},{"version":"5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea","impliedFormat":1},{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true,"impliedFormat":1},{"version":"816ad2e607a96de5bcac7d437f843f5afd8957f1fa5eefa6bba8e4ed7ca8fd84","affectsGlobalScope":true,"impliedFormat":1},{"version":"80473bd0dd90ca1e166514c2dfead9d5803f9c51418864ca35abbeec6e6847e1","impliedFormat":1},{"version":"1c84b46267610a34028edfd0d035509341751262bac1062857f3c8df7aff7153","impliedFormat":1},{"version":"5eec82ac21f84d83586c59a16b9b8502d34505d1393393556682fe7e7fde9ef2","impliedFormat":1},{"version":"04eb6578a588d6a46f50299b55f30e3a04ef27d0c5a46c57d8fcc211cd530faa","impliedFormat":1},{"version":"8d3c583a07e0c37e876908c2d5da575019f689df8d9fa4c081d99119d53dba22","impliedFormat":1},{"version":"2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58","impliedFormat":1},{"version":"e630e5528e899219ae319e83bef54bf3bcb91b01d76861ecf881e8e614b167f0","affectsGlobalScope":true,"impliedFormat":1},{"version":"bcebb922784739bdb34c18ee51095d25a92b560c78ccd2eaacd6bd00f7443d83","impliedFormat":1},{"version":"7ee6ed878c4528215c82b664fe0cfe80e8b4da6c0d4cc80869367868774db8b1","impliedFormat":1},{"version":"b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30","impliedFormat":1},{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true,"impliedFormat":1},{"version":"b3624aed92dab6da8484280d3cb3e2f4130ec3f4ef3f8201c95144ae9e898bb6","affectsGlobalScope":true,"impliedFormat":1},{"version":"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","impliedFormat":1},{"version":"210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","impliedFormat":1},{"version":"36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","impliedFormat":1},{"version":"0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","impliedFormat":1},{"version":"25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","impliedFormat":1},{"version":"7d55d78cd47cf5280643b53434b16c2d9d11d144126932759fbdd51da525eec4","impliedFormat":1},{"version":"1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","impliedFormat":1},{"version":"69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","impliedFormat":1},{"version":"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","impliedFormat":1},{"version":"23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","impliedFormat":1},{"version":"09326ae5f7e3d49be5cd9ea00eb814770e71870a438faa2efd8bdd9b4db21320","impliedFormat":1},{"version":"3c4ba1dd9b12ffa284b565063108f2f031d150ea15b8fafbdc17f5d2a07251f3","affectsGlobalScope":true,"impliedFormat":1},{"version":"e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6","impliedFormat":1},{"version":"c4577fb855ca259bdbf3ea663ca73988ce5f84251a92b4aef80a1f4122b6f98e","impliedFormat":1},{"version":"3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","impliedFormat":1},{"version":"5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2","impliedFormat":1},{"version":"f0900cd5d00fe1263ff41201fb8073dbeb984397e4af3b8002a5c207a30bdc33","affectsGlobalScope":true,"impliedFormat":1},{"version":"ff07a9a03c65732ccc59b3c65bc584173da093bd563a6565411c01f5703bd3cb","affectsGlobalScope":true,"impliedFormat":1},{"version":"06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","impliedFormat":1},{"version":"ec4bd1b200670fb567920db572d6701ed42a9641d09c4ff6869768c8f81b404c","impliedFormat":1},{"version":"e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa","impliedFormat":1},{"version":"da26af7362f53d122283bc69fed862b9a9fe27e01bc6a69d1d682e0e5a4df3e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e","impliedFormat":1},{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true,"impliedFormat":1},{"version":"d8d555f3d607ecaa18d55de6995ea8f206342ecc93305919eac945c7c78c78c6","impliedFormat":1}],"root":[[59,70],[85,92]],"options":{"allowUnreachableCode":false,"allowUnusedLabels":false,"checkJs":true,"composite":true,"declaration":true,"declarationDir":"./","declarationMap":true,"esModuleInterop":true,"exactOptionalPropertyTypes":false,"module":1,"noErrorTruncation":true,"noFallthroughCasesInSwitch":true,"noImplicitOverride":false,"noImplicitReturns":true,"noPropertyAccessFromIndexSignature":false,"noUncheckedIndexedAccess":true,"noUnusedLocals":false,"noUnusedParameters":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"target":9,"tsBuildInfoFile":"./tsconfig.tsbuildinfo"},"referencedMap":[[93,1],[94,1],[96,2],[97,3],[98,4],[99,5],[100,6],[101,7],[102,8],[103,9],[104,10],[105,11],[106,11],[108,12],[107,13],[109,12],[110,14],[111,15],[95,16],[145,17],[112,18],[113,19],[114,20],[146,21],[115,22],[116,23],[117,24],[118,25],[119,26],[120,27],[121,28],[122,29],[123,30],[124,31],[125,31],[126,32],[127,33],[129,34],[128,35],[130,36],[131,37],[132,17],[133,38],[134,39],[135,40],[136,41],[137,42],[138,43],[139,44],[140,45],[141,46],[142,47],[143,48],[144,49],[57,17],[58,17],[11,17],[10,17],[2,17],[12,17],[13,17],[14,17],[15,17],[16,17],[17,17],[18,17],[19,17],[3,17],[20,17],[21,17],[4,17],[22,17],[26,17],[23,17],[24,17],[25,17],[27,17],[28,17],[29,17],[5,17],[30,17],[31,17],[32,17],[33,17],[6,17],[37,17],[34,17],[35,17],[36,17],[38,17],[7,17],[39,17],[44,17],[45,17],[40,17],[41,17],[42,17],[43,17],[8,17],[49,17],[46,17],[47,17],[48,17],[50,17],[9,17],[51,17],[52,17],[53,17],[55,17],[54,17],[1,17],[56,17],[84,50],[74,51],[76,52],[83,53],[78,17],[79,17],[77,54],[80,55],[71,17],[72,17],[73,50],[75,56],[81,17],[82,57],[64,17],[65,58],[63,17],[87,59],[88,59],[90,60],[86,61],[85,62],[89,63],[70,17],[69,64],[91,65],[68,17],[59,17],[60,17],[92,66],[61,17],[62,17],[66,17],[67,17]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
@@ -3,3 +3,4 @@ export declare const ONBOARDING_DEPLOY_WORKFLOW = "onboarding-deploy";
3
3
  export declare const IDENTITY_TEXT_WORKFLOW = "identity-text-workflow";
4
4
  export declare const IDENTITY_WEBSITE_WORKFLOW = "identity-website-workflow";
5
5
  export declare const KNOWLEDGE_WORKFLOW = "knowledge-workflow";
6
+ //# sourceMappingURL=workflow-names.d.ts.map
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@bpinternal/const",
3
- "version": "0.28.0",
4
- "description": "Shared constants for Skynet billing refactor (vendored copy of upstream packages/const)",
3
+ "version": "0.30.0",
4
+ "description": "Shared constants for Skynet (plans, features, billing, object id prefixes)",
5
5
  "license": "UNLICENSED",
6
6
  "files": [
7
- "dist"
7
+ "dist",
8
+ "!dist/**/*.d.ts.map"
8
9
  ],
9
10
  "main": "dist/index.js",
10
11
  "types": "dist/index.d.ts",
@@ -1,55 +0,0 @@
1
- export type BillingMeterId = keyof typeof meters;
2
- export declare const meters: {
3
- readonly ai_spend_credit_grant: {
4
- readonly id: "ai_spend_credit_grant";
5
- readonly name: "AI Spend - Credit grant";
6
- readonly description: "Pre-purchased credits applied toward AI usage";
7
- readonly defaultAggregation: {
8
- readonly formula: "sum";
9
- };
10
- readonly customerMapping: {
11
- readonly eventPayloadKey: "stripe_customer_id";
12
- readonly type: "by_id";
13
- };
14
- readonly valueSettings: {
15
- readonly eventPayloadKey: "value";
16
- };
17
- readonly prices: {
18
- readonly month: {
19
- readonly unitAmount: 1;
20
- readonly currency: "usd";
21
- readonly interval: "month";
22
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
23
- };
24
- };
25
- readonly meterType: "creditGrant";
26
- readonly providerMeterId: "__UNKNOWN_STRIPE_ID__";
27
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
28
- };
29
- readonly ai_spend_pay_as_you_go: {
30
- readonly id: "ai_spend_pay_as_you_go";
31
- readonly name: "AI Spend - Pay as you go";
32
- readonly description: "Usage-based charges for AI spend, billed monthly";
33
- readonly defaultAggregation: {
34
- readonly formula: "sum";
35
- };
36
- readonly customerMapping: {
37
- readonly eventPayloadKey: "stripe_customer_id";
38
- readonly type: "by_id";
39
- };
40
- readonly valueSettings: {
41
- readonly eventPayloadKey: "value";
42
- };
43
- readonly prices: {
44
- readonly month: {
45
- readonly unitAmount: 1;
46
- readonly currency: "usd";
47
- readonly interval: "month";
48
- readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
49
- };
50
- };
51
- readonly meterType: "payAsYouGo";
52
- readonly providerMeterId: "__UNKNOWN_STRIPE_ID__";
53
- readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
54
- };
55
- };
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.meters = void 0;
4
- const schemas_1 = require("./schemas");
5
- exports.meters = {
6
- ai_spend_credit_grant: {
7
- id: 'ai_spend_credit_grant',
8
- name: 'AI Spend - Credit grant',
9
- description: 'Pre-purchased credits applied toward AI usage',
10
- defaultAggregation: { formula: 'sum' },
11
- customerMapping: { eventPayloadKey: 'stripe_customer_id', type: 'by_id' },
12
- valueSettings: { eventPayloadKey: 'value' },
13
- prices: {
14
- month: {
15
- unitAmount: 1,
16
- currency: 'usd',
17
- interval: 'month',
18
- providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
19
- },
20
- },
21
- meterType: 'creditGrant',
22
- providerMeterId: schemas_1.UNKNOWN_STRIPE_ID,
23
- providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
24
- },
25
- ai_spend_pay_as_you_go: {
26
- id: 'ai_spend_pay_as_you_go',
27
- name: 'AI Spend - Pay as you go',
28
- description: 'Usage-based charges for AI spend, billed monthly',
29
- defaultAggregation: { formula: 'sum' },
30
- customerMapping: { eventPayloadKey: 'stripe_customer_id', type: 'by_id' },
31
- valueSettings: { eventPayloadKey: 'value' },
32
- prices: {
33
- month: {
34
- unitAmount: 1,
35
- currency: 'usd',
36
- interval: 'month',
37
- providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
38
- },
39
- },
40
- meterType: 'payAsYouGo',
41
- providerMeterId: schemas_1.UNKNOWN_STRIPE_ID,
42
- providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
43
- },
44
- };