@zonastery/bursar 2.0.0 → 2.0.2

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.
Files changed (173) hide show
  1. package/README.md +21 -14
  2. package/dist/billing/auto-recharge-service.d.ts.map +1 -1
  3. package/dist/billing/auto-recharge-service.js +6 -4
  4. package/dist/billing/auto-recharge-service.js.map +1 -1
  5. package/dist/billing/billing-store.d.ts +3 -0
  6. package/dist/billing/billing-store.d.ts.map +1 -1
  7. package/dist/billing/billing-store.js +2 -0
  8. package/dist/billing/billing-store.js.map +1 -1
  9. package/dist/billing/event-handlers.d.ts +2 -3
  10. package/dist/billing/event-handlers.d.ts.map +1 -1
  11. package/dist/billing/event-handlers.js +38 -49
  12. package/dist/billing/event-handlers.js.map +1 -1
  13. package/dist/billing/event-processor.js +4 -4
  14. package/dist/billing/event-processor.js.map +1 -1
  15. package/dist/billing/financial-event-handlers.d.ts +2 -2
  16. package/dist/billing/financial-event-handlers.d.ts.map +1 -1
  17. package/dist/billing/financial-event-handlers.js +7 -7
  18. package/dist/billing/financial-event-handlers.js.map +1 -1
  19. package/dist/billing/postgres/store.d.ts +5 -1
  20. package/dist/billing/postgres/store.d.ts.map +1 -1
  21. package/dist/billing/postgres/store.js +5 -0
  22. package/dist/billing/postgres/store.js.map +1 -1
  23. package/dist/billing/service-types.d.ts +2 -15
  24. package/dist/billing/service-types.d.ts.map +1 -1
  25. package/dist/billing/service-types.js.map +1 -1
  26. package/dist/billing/types/auto-recharge.d.ts.map +1 -1
  27. package/dist/billing/types/auto-recharge.js.map +1 -1
  28. package/dist/billing/types/events.d.ts +3 -2
  29. package/dist/billing/types/events.d.ts.map +1 -1
  30. package/dist/billing/types/events.js +2 -2
  31. package/dist/billing/types/events.js.map +1 -1
  32. package/dist/billing/types/subscriptions.d.ts.map +1 -1
  33. package/dist/billing/types/subscriptions.js.map +1 -1
  34. package/dist/bursar.d.ts +21 -11
  35. package/dist/bursar.d.ts.map +1 -1
  36. package/dist/bursar.js +40 -4
  37. package/dist/bursar.js.map +1 -1
  38. package/dist/catalog.d.ts.map +1 -1
  39. package/dist/catalog.js +1 -1
  40. package/dist/catalog.js.map +1 -1
  41. package/dist/commerce/index.d.ts +0 -1
  42. package/dist/commerce/index.d.ts.map +1 -1
  43. package/dist/commerce/index.js +0 -1
  44. package/dist/commerce/index.js.map +1 -1
  45. package/dist/commerce/service.d.ts.map +1 -1
  46. package/dist/commerce/service.js +99 -59
  47. package/dist/commerce/service.js.map +1 -1
  48. package/dist/commerce/types.d.ts +8 -4
  49. package/dist/commerce/types.d.ts.map +1 -1
  50. package/dist/commerce/types.js.map +1 -1
  51. package/dist/config/parse-credits.d.ts.map +1 -1
  52. package/dist/config/parse-credits.js +0 -6
  53. package/dist/config/parse-credits.js.map +1 -1
  54. package/dist/config/types.d.ts +0 -5
  55. package/dist/config/types.d.ts.map +1 -1
  56. package/dist/config/types.js.map +1 -1
  57. package/dist/config.d.ts.map +1 -1
  58. package/dist/config.js +7 -0
  59. package/dist/config.js.map +1 -1
  60. package/dist/credits/amount.d.ts +8 -0
  61. package/dist/credits/amount.d.ts.map +1 -0
  62. package/dist/credits/amount.js +32 -0
  63. package/dist/credits/amount.js.map +1 -0
  64. package/dist/credits/catalog-runtime.d.ts +4 -6
  65. package/dist/credits/catalog-runtime.d.ts.map +1 -1
  66. package/dist/credits/catalog-runtime.js +3 -12
  67. package/dist/credits/catalog-runtime.js.map +1 -1
  68. package/dist/credits/lease-workflow.d.ts +1 -1
  69. package/dist/credits/lease-workflow.d.ts.map +1 -1
  70. package/dist/credits/lease-workflow.js +23 -20
  71. package/dist/credits/lease-workflow.js.map +1 -1
  72. package/dist/credits/low-balance-monitor.d.ts.map +1 -1
  73. package/dist/credits/low-balance-monitor.js +2 -3
  74. package/dist/credits/low-balance-monitor.js.map +1 -1
  75. package/dist/credits/postgres/repositories/balance.d.ts.map +1 -1
  76. package/dist/credits/postgres/repositories/balance.js.map +1 -1
  77. package/dist/credits/postgres/store.d.ts +15 -11
  78. package/dist/credits/postgres/store.d.ts.map +1 -1
  79. package/dist/credits/postgres/store.js +24 -15
  80. package/dist/credits/postgres/store.js.map +1 -1
  81. package/dist/credits/service-types.d.ts +17 -15
  82. package/dist/credits/service-types.d.ts.map +1 -1
  83. package/dist/credits/service-types.js.map +1 -1
  84. package/dist/credits/service.d.ts +16 -17
  85. package/dist/credits/service.d.ts.map +1 -1
  86. package/dist/credits/service.js +61 -33
  87. package/dist/credits/service.js.map +1 -1
  88. package/dist/credits/store.d.ts +16 -22
  89. package/dist/credits/store.d.ts.map +1 -1
  90. package/dist/credits/store.js +3 -1
  91. package/dist/credits/store.js.map +1 -1
  92. package/dist/credits/types/account.d.ts +1 -1
  93. package/dist/credits/types/account.d.ts.map +1 -1
  94. package/dist/credits/types/account.js.map +1 -1
  95. package/dist/credits/types/grants.d.ts.map +1 -1
  96. package/dist/credits/types/grants.js.map +1 -1
  97. package/dist/expr/ast.d.ts.map +1 -1
  98. package/dist/expr/ast.js.map +1 -1
  99. package/dist/expr/parser.d.ts +1 -0
  100. package/dist/expr/parser.d.ts.map +1 -1
  101. package/dist/expr/parser.js +15 -3
  102. package/dist/expr/parser.js.map +1 -1
  103. package/dist/generated/pricing-config.schema.json +31 -29
  104. package/dist/generated/pricing-config.types.d.ts +6 -18
  105. package/dist/generated/pricing-config.types.d.ts.map +1 -1
  106. package/dist/generated/pricing-config.types.js.map +1 -1
  107. package/dist/index.d.ts +4 -2
  108. package/dist/index.d.ts.map +1 -1
  109. package/dist/index.js +1 -0
  110. package/dist/index.js.map +1 -1
  111. package/dist/load-config-file.d.ts +2 -3
  112. package/dist/load-config-file.d.ts.map +1 -1
  113. package/dist/load-config-file.js +14 -29
  114. package/dist/load-config-file.js.map +1 -1
  115. package/dist/providers/_shared.js +1 -1
  116. package/dist/providers/_shared.js.map +1 -1
  117. package/dist/providers/dodo/client-contract.d.ts +3 -1
  118. package/dist/providers/dodo/client-contract.d.ts.map +1 -1
  119. package/dist/providers/dodo/client-contract.js.map +1 -1
  120. package/dist/providers/dodo/event-mapper.d.ts +1 -1
  121. package/dist/providers/dodo/event-mapper.d.ts.map +1 -1
  122. package/dist/providers/dodo/event-mapper.js +5 -13
  123. package/dist/providers/dodo/event-mapper.js.map +1 -1
  124. package/dist/providers/dodo/provider.d.ts +4 -6
  125. package/dist/providers/dodo/provider.d.ts.map +1 -1
  126. package/dist/providers/dodo/provider.js +22 -71
  127. package/dist/providers/dodo/provider.js.map +1 -1
  128. package/dist/providers/dodo/webhook-bridge.d.ts +1 -2
  129. package/dist/providers/dodo/webhook-bridge.d.ts.map +1 -1
  130. package/dist/providers/dodo/webhook-bridge.js +0 -1
  131. package/dist/providers/dodo/webhook-bridge.js.map +1 -1
  132. package/dist/providers/environment.d.ts +6 -0
  133. package/dist/providers/environment.d.ts.map +1 -0
  134. package/dist/providers/environment.js +10 -0
  135. package/dist/providers/environment.js.map +1 -0
  136. package/dist/providers/index.d.ts +3 -7
  137. package/dist/providers/index.d.ts.map +1 -1
  138. package/dist/providers/index.js +1 -5
  139. package/dist/providers/index.js.map +1 -1
  140. package/dist/providers/mock/provider.d.ts +6 -8
  141. package/dist/providers/mock/provider.d.ts.map +1 -1
  142. package/dist/providers/mock/provider.js +18 -50
  143. package/dist/providers/mock/provider.js.map +1 -1
  144. package/dist/providers/stripe/event-mapper.js +11 -11
  145. package/dist/providers/stripe/event-mapper.js.map +1 -1
  146. package/dist/providers/stripe/provider.d.ts +3 -3
  147. package/dist/providers/stripe/provider.d.ts.map +1 -1
  148. package/dist/providers/stripe/provider.js +37 -24
  149. package/dist/providers/stripe/provider.js.map +1 -1
  150. package/dist/providers/types.d.ts +9 -19
  151. package/dist/providers/types.d.ts.map +1 -1
  152. package/dist/providers/types.js.map +1 -1
  153. package/dist/shared/idempotency.d.ts +9 -0
  154. package/dist/shared/idempotency.d.ts.map +1 -0
  155. package/dist/shared/idempotency.js +34 -0
  156. package/dist/shared/idempotency.js.map +1 -0
  157. package/dist/shared/postgres-client.d.ts +4 -0
  158. package/dist/shared/postgres-client.d.ts.map +1 -1
  159. package/dist/shared/postgres-client.js +6 -2
  160. package/dist/shared/postgres-client.js.map +1 -1
  161. package/dist/shared/postgres-errors.d.ts.map +1 -1
  162. package/dist/shared/postgres-errors.js.map +1 -1
  163. package/dist/storage/outbox-worker.d.ts.map +1 -1
  164. package/dist/storage/outbox-worker.js +22 -21
  165. package/dist/storage/outbox-worker.js.map +1 -1
  166. package/dist/storage/postgres-repository.d.ts.map +1 -1
  167. package/dist/storage/postgres-repository.js +67 -46
  168. package/dist/storage/postgres-repository.js.map +1 -1
  169. package/dist/storage/runtime.d.ts +11 -7
  170. package/dist/storage/runtime.d.ts.map +1 -1
  171. package/dist/storage/runtime.js +52 -8
  172. package/dist/storage/runtime.js.map +1 -1
  173. package/package.json +52 -36
@@ -20,6 +20,7 @@
20
20
  "max_in_flight": {
21
21
  "anyOf": [
22
22
  {
23
+ "maximum": 9007199254740991,
23
24
  "minimum": 1,
24
25
  "type": "integer"
25
26
  },
@@ -109,6 +110,7 @@
109
110
  "additionalProperties": false,
110
111
  "properties": {
111
112
  "max_purchases": {
113
+ "maximum": 9007199254740991,
112
114
  "minimum": 1,
113
115
  "title": "Max Purchases",
114
116
  "type": "integer"
@@ -125,6 +127,7 @@
125
127
  "title": "Window"
126
128
  },
127
129
  "max_charge_minor": {
130
+ "maximum": 9007199254740991,
128
131
  "minimum": 1,
129
132
  "title": "Max Charge Minor",
130
133
  "type": "integer"
@@ -134,6 +137,7 @@
134
137
  },
135
138
  "max_consecutive_failures": {
136
139
  "default": 3,
140
+ "maximum": 9007199254740991,
137
141
  "minimum": 1,
138
142
  "title": "Max Consecutive Failures",
139
143
  "type": "integer"
@@ -209,6 +213,7 @@
209
213
  },
210
214
  "count": {
211
215
  "default": 1,
216
+ "maximum": 9007199254740991,
212
217
  "minimum": 1,
213
218
  "title": "Count",
214
219
  "type": "integer"
@@ -244,6 +249,7 @@
244
249
  "additionalProperties": false,
245
250
  "properties": {
246
251
  "priority": {
252
+ "maximum": 9007199254740991,
247
253
  "minimum": 0,
248
254
  "title": "Priority",
249
255
  "type": "integer"
@@ -305,6 +311,7 @@
305
311
  },
306
312
  "count": {
307
313
  "default": 1,
314
+ "maximum": 9007199254740991,
308
315
  "minimum": 1,
309
316
  "title": "Count",
310
317
  "type": "integer"
@@ -470,31 +477,6 @@
470
477
  "title": "CommerceConfig",
471
478
  "type": "object"
472
479
  },
473
- "CreditAccounting": {
474
- "additionalProperties": false,
475
- "properties": {
476
- "unit": {
477
- "const": "credit",
478
- "default": "credit",
479
- "title": "Unit",
480
- "type": "string"
481
- },
482
- "scale": {
483
- "const": 6,
484
- "default": 6,
485
- "title": "Scale",
486
- "type": "integer"
487
- },
488
- "rounding": {
489
- "const": "half_up",
490
- "default": "half_up",
491
- "title": "Rounding",
492
- "type": "string"
493
- }
494
- },
495
- "title": "CreditAccounting",
496
- "type": "object"
497
- },
498
480
  "CreditAllowance": {
499
481
  "additionalProperties": false,
500
482
  "properties": {
@@ -508,6 +490,7 @@
508
490
  },
509
491
  "priority": {
510
492
  "description": "Spend priority shared with credit buckets. Lower values are used first.",
493
+ "maximum": 9007199254740991,
511
494
  "minimum": 0,
512
495
  "title": "Priority",
513
496
  "type": "integer"
@@ -594,10 +577,6 @@
594
577
  "CreditsConfig": {
595
578
  "additionalProperties": false,
596
579
  "properties": {
597
- "accounting": {
598
- "$ref": "#/$defs/CreditAccounting",
599
- "description": "Fixed v1 accounting convention. It may be omitted; canonical output includes the defaults."
600
- },
601
580
  "buckets": {
602
581
  "additionalProperties": {
603
582
  "$ref": "#/$defs/BucketDefinition"
@@ -884,6 +863,7 @@
884
863
  "type": "string"
885
864
  },
886
865
  "count": {
866
+ "maximum": 9007199254740991,
887
867
  "minimum": 1,
888
868
  "title": "Count",
889
869
  "type": "integer"
@@ -1280,6 +1260,7 @@
1280
1260
  },
1281
1261
  "max_awards_per_subject": {
1282
1262
  "default": 1,
1263
+ "maximum": 9007199254740991,
1283
1264
  "minimum": 1,
1284
1265
  "title": "Max Awards Per Subject",
1285
1266
  "type": "integer"
@@ -1349,11 +1330,15 @@
1349
1330
  },
1350
1331
  "default": {
1351
1332
  "type": "integer",
1333
+ "maximum": 9007199254740991,
1334
+ "minimum": -9007199254740991,
1352
1335
  "title": "Default"
1353
1336
  },
1354
1337
  "minimum": {
1355
1338
  "anyOf": [
1356
1339
  {
1340
+ "maximum": 9007199254740991,
1341
+ "minimum": -9007199254740991,
1357
1342
  "type": "integer"
1358
1343
  },
1359
1344
  {
@@ -1366,6 +1351,8 @@
1366
1351
  "maximum": {
1367
1352
  "anyOf": [
1368
1353
  {
1354
+ "maximum": 9007199254740991,
1355
+ "minimum": -9007199254740991,
1369
1356
  "type": "integer"
1370
1357
  },
1371
1358
  {
@@ -1387,17 +1374,20 @@
1387
1374
  "additionalProperties": false,
1388
1375
  "properties": {
1389
1376
  "minimum": {
1377
+ "maximum": 9007199254740991,
1390
1378
  "minimum": 1,
1391
1379
  "title": "Minimum",
1392
1380
  "type": "integer"
1393
1381
  },
1394
1382
  "maximum": {
1383
+ "maximum": 9007199254740991,
1395
1384
  "minimum": 1,
1396
1385
  "title": "Maximum",
1397
1386
  "type": "integer"
1398
1387
  },
1399
1388
  "default": {
1400
1389
  "type": "integer",
1390
+ "maximum": 9007199254740991,
1401
1391
  "minimum": 1,
1402
1392
  "title": "Default"
1403
1393
  }
@@ -1481,6 +1471,7 @@
1481
1471
  "additionalProperties": false,
1482
1472
  "properties": {
1483
1473
  "amount_minor": {
1474
+ "maximum": 9007199254740991,
1484
1475
  "minimum": 0,
1485
1476
  "title": "Amount Minor",
1486
1477
  "type": "integer"
@@ -1511,6 +1502,7 @@
1511
1502
  "additionalProperties": false,
1512
1503
  "properties": {
1513
1504
  "max_in_flight": {
1505
+ "maximum": 9007199254740991,
1514
1506
  "minimum": 1,
1515
1507
  "title": "Max In Flight",
1516
1508
  "type": "integer"
@@ -1704,6 +1696,7 @@
1704
1696
  "rank": {
1705
1697
  "default": 0,
1706
1698
  "description": "Public catalog ordering. Lower ranks appear first; ties are ordered by plan key.",
1699
+ "maximum": 9007199254740991,
1707
1700
  "minimum": 0,
1708
1701
  "title": "Rank",
1709
1702
  "type": "integer"
@@ -1746,6 +1739,8 @@
1746
1739
  "type": "boolean"
1747
1740
  },
1748
1741
  {
1742
+ "maximum": 9007199254740991,
1743
+ "minimum": -9007199254740991,
1749
1744
  "type": "integer"
1750
1745
  },
1751
1746
  {
@@ -1986,18 +1981,21 @@
1986
1981
  "properties": {
1987
1982
  "minimum": {
1988
1983
  "default": 1,
1984
+ "maximum": 9007199254740991,
1989
1985
  "minimum": 1,
1990
1986
  "title": "Minimum",
1991
1987
  "type": "integer"
1992
1988
  },
1993
1989
  "maximum": {
1994
1990
  "default": 1,
1991
+ "maximum": 9007199254740991,
1995
1992
  "minimum": 1,
1996
1993
  "title": "Maximum",
1997
1994
  "type": "integer"
1998
1995
  },
1999
1996
  "default": {
2000
1997
  "type": "integer",
1998
+ "maximum": 9007199254740991,
2001
1999
  "minimum": 1,
2002
2000
  "default": 1,
2003
2001
  "title": "Default"
@@ -2404,6 +2402,8 @@
2404
2402
  },
2405
2403
  "sort_order": {
2406
2404
  "default": 0,
2405
+ "maximum": 9007199254740991,
2406
+ "minimum": -9007199254740991,
2407
2407
  "title": "Sort Order",
2408
2408
  "type": "integer"
2409
2409
  },
@@ -2573,6 +2573,8 @@
2573
2573
  },
2574
2574
  "sort_order": {
2575
2575
  "default": 0,
2576
+ "maximum": 9007199254740991,
2577
+ "minimum": -9007199254740991,
2576
2578
  "title": "Sort Order",
2577
2579
  "type": "integer"
2578
2580
  },
@@ -81,20 +81,17 @@ export type Unmatched = RejectUnmatched | ChargeUnmatched;
81
81
  export type Action = "reject";
82
82
  export type Action1 = "charge";
83
83
  export type Charge1 = FlatCharge | PerUnitCharge | PackageCharge | GraduatedCharge | VolumeCharge | ExpressionCharge | SumCharge;
84
- export type Unit1 = "credit";
85
- export type Scale = 6;
86
- export type Rounding1 = "half_up";
87
84
  export type Priority = number;
88
85
  export type Expiry = NeverExpiry | AfterGrantExpiry | EndOfWindowExpiry | FixedExpiry | SubscriptionEndExpiry;
89
86
  export type Type8 = "never";
90
87
  export type Type9 = "after_grant";
91
- export type Unit2 = "day" | "week" | "month" | "year";
88
+ export type Unit1 = "day" | "week" | "month" | "year";
92
89
  export type Count = number;
93
90
  export type Timezone = string;
94
91
  export type Type10 = "end_of_window";
95
92
  export type Window = CalendarWindow | PlanAssignmentWindow;
96
93
  export type Type11 = "calendar";
97
- export type Unit3 = "day" | "week" | "month" | "year";
94
+ export type Unit2 = "day" | "week" | "month" | "year";
98
95
  export type Count1 = number;
99
96
  export type Timezone1 = string;
100
97
  export type Type12 = "plan_assignment";
@@ -156,7 +153,7 @@ export type Amount3 = string;
156
153
  export type Priority1 = number;
157
154
  export type Window1 = CalendarWindow | RollingWindow | PlanAssignmentWindow;
158
155
  export type Type21 = "rolling";
159
- export type Unit4 = "second" | "minute" | "hour" | "day" | "week";
156
+ export type Unit3 = "second" | "minute" | "hour" | "day" | "week";
160
157
  export type Count2 = number;
161
158
  export type Operation = string;
162
159
  export type Measure4 = string;
@@ -363,21 +360,12 @@ export interface ChargeUnmatched {
363
360
  * Credit buckets, spending policies, grants, and optional display conversion.
364
361
  */
365
362
  export interface CreditsConfig {
366
- accounting?: CreditAccounting;
367
363
  buckets?: Buckets;
368
364
  default_bucket?: DefaultBucket;
369
365
  policies?: Policies;
370
366
  grant_programs?: GrantPrograms;
371
367
  display?: CreditDisplay | null;
372
368
  }
373
- /**
374
- * Fixed v1 accounting convention. It may be omitted; canonical output includes the defaults.
375
- */
376
- export interface CreditAccounting {
377
- unit?: Unit1;
378
- scale?: Scale;
379
- rounding?: Rounding1;
380
- }
381
369
  export interface Buckets {
382
370
  [k: string]: BucketDefinition;
383
371
  }
@@ -394,7 +382,7 @@ export interface AfterGrantExpiry {
394
382
  timezone?: Timezone;
395
383
  }
396
384
  export interface BillingInterval {
397
- unit: Unit2;
385
+ unit: Unit1;
398
386
  count?: Count;
399
387
  }
400
388
  export interface EndOfWindowExpiry {
@@ -403,7 +391,7 @@ export interface EndOfWindowExpiry {
403
391
  }
404
392
  export interface CalendarWindow {
405
393
  type: Type11;
406
- unit: Unit3;
394
+ unit: Unit2;
407
395
  count?: Count1;
408
396
  timezone?: Timezone1;
409
397
  }
@@ -542,7 +530,7 @@ export interface RollingWindow {
542
530
  duration: Duration;
543
531
  }
544
532
  export interface Duration {
545
- unit: Unit4;
533
+ unit: Unit3;
546
534
  count: Count2;
547
535
  }
548
536
  export interface Quotas {
@@ -1 +1 @@
1
- {"version":3,"file":"pricing-config.types.d.ts","sourceRoot":"","sources":["../../src/generated/pricing-config.types.ts"],"names":[],"mappings":"AACA;;;;GAIG;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC;AACxB,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,IAAI,CAAC;AACxC,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC;AAC1B,MAAM,MAAM,IAAI,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AACnD,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC;AAC/B,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC;AACpC,MAAM,MAAM,EAAE,GAAG,IAAI,CAAC;AACtB,MAAM,MAAM,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAC9C,MAAM,MAAM,GAAG,GAAG,IAAI,CAAC;AACvB;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG;IACnB,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO;IAClC,GAAG,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,EAAE;CAC1C,CAAC;AACF,MAAM,MAAM,GAAG,GAAG,QAAQ,CAAC;AAC3B;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,GAAG,MAAM,GA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,EAAE,QAAQ,CAAC;IAClB,OAAO,EAAE,QAAQ,CAAC;CACnB;AACD,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,QAAQ,CAAC;IAClB,OAAO,EAAE,QAAQ,CAAC;IAClB,OAAO,EAAE,QAAQ,CAAC;CACnB;AACD,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,YAAY,CAAC;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,gBAAgB,EAAE,cAAc,CAAC;IACjC,QAAQ,EAAE,QAAQ,CAAC;IACnB,wBAAwB,CAAC,EAAE,sBAAsB,CAAC;IAClD,cAAc,CAAC,EAAE,aAAa,CAAC;CAChC"}
@@ -1 +1 @@
1
- {"version":3,"file":"pricing-config.types.js","sourceRoot":"","sources":["../../src/generated/pricing-config.types.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;GAIG","sourcesContent":["/* eslint-disable */\n/**\n * This file was automatically generated by json-schema-to-typescript.\n * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,\n * and run json-schema-to-typescript to regenerate this file.\n */\n\nexport type Version = 1;\nexport type DefaultPlan = string | null;\nexport type Unit = string;\nexport type Type = \"string\" | \"number\" | \"boolean\";\nexport type Required = boolean;\nexport type Extends = string | null;\nexport type Op = \"eq\";\nexport type Value = string | number | boolean;\nexport type Op1 = \"in\";\n/**\n * @minItems 1\n */\nexport type Values = [\n string | number | string | boolean,\n ...(string | number | string | boolean)[],\n];\nexport type Op2 = \"not_in\";\n/**\n * @minItems 1\n */\nexport type Values1 = [\n string | number | string | boolean,\n ...(string | number | string | boolean)[],\n];\nexport type Op3 = \"prefix\";\nexport type Value1 = string;\nexport type Op4 = \"range\";\nexport type Gt = string | null;\nexport type Gte = string | null;\nexport type Lt = string | null;\nexport type Lte = string | null;\nexport type Charge =\n | FlatCharge\n | PerUnitCharge\n | PackageCharge\n | GraduatedCharge\n | VolumeCharge\n | ExpressionCharge\n | SumCharge;\nexport type Type1 = \"flat\";\nexport type Amount = string;\nexport type Type2 = \"per_unit\";\nexport type Measure = string;\n/**\n * Credits charged for each unit_size units of the selected measure.\n */\nexport type Rate = string;\n/**\n * Number of measure units represented by one rate unit; use 1000000 for per-million-token rates.\n */\nexport type UnitSize = string;\nexport type Type3 = \"package\";\nexport type Measure1 = string;\nexport type Units = string;\nexport type Amount1 = string;\nexport type Rounding = \"ceil\" | \"floor\" | \"nearest\";\nexport type Type4 = \"graduated\";\nexport type Measure2 = string;\n/**\n * @minItems 1\n */\nexport type Tiers = [GraduatedTier, ...GraduatedTier[]];\nexport type UpTo = string | null;\nexport type Rate1 = string;\nexport type Type5 = \"volume\";\nexport type Measure3 = string;\n/**\n * @minItems 1\n */\nexport type Tiers1 = [GraduatedTier, ...GraduatedTier[]];\nexport type Type6 = \"expression\";\nexport type Formula = string;\nexport type Type7 = \"sum\";\n/**\n * @minItems 1\n */\nexport type Components = [\n (\n | FlatCharge\n | PerUnitCharge\n | PackageCharge\n | GraduatedCharge\n | VolumeCharge\n | ExpressionCharge\n | SumCharge\n ),\n ...(\n | FlatCharge\n | PerUnitCharge\n | PackageCharge\n | GraduatedCharge\n | VolumeCharge\n | ExpressionCharge\n | SumCharge\n )[],\n];\nexport type Rules = PriceRule[];\nexport type Unmatched = RejectUnmatched | ChargeUnmatched;\nexport type Action = \"reject\";\nexport type Action1 = \"charge\";\nexport type Charge1 =\n | FlatCharge\n | PerUnitCharge\n | PackageCharge\n | GraduatedCharge\n | VolumeCharge\n | ExpressionCharge\n | SumCharge;\nexport type Unit1 = \"credit\";\nexport type Scale = 6;\nexport type Rounding1 = \"half_up\";\nexport type Priority = number;\nexport type Expiry =\n | NeverExpiry\n | AfterGrantExpiry\n | EndOfWindowExpiry\n | FixedExpiry\n | SubscriptionEndExpiry;\nexport type Type8 = \"never\";\nexport type Type9 = \"after_grant\";\nexport type Unit2 = \"day\" | \"week\" | \"month\" | \"year\";\nexport type Count = number;\nexport type Timezone = string;\nexport type Type10 = \"end_of_window\";\nexport type Window = CalendarWindow | PlanAssignmentWindow;\nexport type Type11 = \"calendar\";\nexport type Unit3 = \"day\" | \"week\" | \"month\" | \"year\";\nexport type Count1 = number;\nexport type Timezone1 = string;\nexport type Type12 = \"plan_assignment\";\nexport type Timezone2 = string;\nexport type Type13 = \"fixed_at\";\nexport type At = string;\nexport type Type14 = \"subscription_end\";\nexport type DefaultBucket = string | null;\nexport type Type15 = \"prepaid\";\nexport type Type16 = \"credit_line\";\nexport type Limit = string;\nexport type Trigger = \"account_created\" | \"referral_completed\" | \"promo_code_redeemed\" | \"manual\";\n/**\n * @minItems 1\n */\nexport type Awards = [GrantAward, ...GrantAward[]];\nexport type Recipient = \"subject\" | \"referrer\";\nexport type Amount2 = string;\nexport type Bucket = string;\nexport type Expiry1 =\n | (NeverExpiry | AfterGrantExpiry | EndOfWindowExpiry | FixedExpiry | SubscriptionEndExpiry)\n | null;\nexport type StartsAt = string | null;\nexport type EndsAt = string | null;\nexport type Regions = string[];\nexport type Plans = string[];\nexport type Regions1 = string[];\nexport type MaxAwardsPerSubject = number;\nexport type IdempotencyScope = \"subject\" | \"event\";\nexport type Currency = string;\nexport type UnitsPerMajor = string;\nexport type Type17 = \"boolean\";\nexport type Default = boolean;\nexport type Type18 = \"enum\";\n/**\n * @minItems 1\n */\nexport type Values2 = [string, ...string[]];\nexport type Default1 = string;\nexport type Type19 = \"integer\";\nexport type Default2 = number;\nexport type Minimum = number | null;\nexport type Maximum = number | null;\nexport type Type20 = \"string\";\nexport type Default3 = string;\nexport type Pattern = string | null;\nexport type MaxInFlight = number | null;\nexport type MaxInFlight1 = number;\nexport type DisplayName = string;\n/**\n * Public catalog ordering. Lower ranks appear first; ties are ordered by plan key.\n */\nexport type Rank = number;\nexport type Description = string | null;\nexport type RateCard1 = string | null;\nexport type AllowedOperations = string[];\nexport type Amount3 = string;\n/**\n * Spend priority shared with credit buckets. Lower values are used first.\n */\nexport type Priority1 = number;\nexport type Window1 = CalendarWindow | RollingWindow | PlanAssignmentWindow;\nexport type Type21 = \"rolling\";\nexport type Unit4 = \"second\" | \"minute\" | \"hour\" | \"day\" | \"week\";\nexport type Count2 = number;\nexport type Operation = string;\nexport type Measure4 = string;\nexport type Limit1 = string;\nexport type Window2 = CalendarWindow | RollingWindow | PlanAssignmentWindow;\nexport type Enforcement = \"block\" | \"allow\";\nexport type EmitAtPercent = number[];\nexport type CreditPolicy = string | null;\nexport type AdmissionPolicy1 = string | null;\n/**\n * Default adoption timing for existing assignments when a newer catalog revision changes this plan. A catalog activation may override it for one release.\n */\nexport type DefaultRollout = \"immediate\" | \"next_renewal\" | \"new_assignments_only\";\nexport type Type22 = \"stripe\";\nexport type Type23 = \"dodo\";\nexport type Type24 = \"custom\";\nexport type Adapter = string;\nexport type DisplayName1 = string;\nexport type Description1 = string | null;\nexport type SortOrder = number;\nexport type AmountMinor = number;\nexport type Currency1 = string;\nexport type TaxBehavior = \"inclusive\" | \"exclusive\" | \"unspecified\";\nexport type Type25 = \"stripe_price\";\nexport type PriceId = string;\nexport type Type26 = \"dodo_product\";\nexport type ProductId = string;\nexport type Type27 = \"custom_object\";\nexport type ObjectKind = \"subscription\" | \"one_time\";\nexport type ExternalId = string;\nexport type Type28 = \"subscription\";\nexport type Plan = string;\nexport type Amount4 = string;\nexport type Bucket1 = string;\nexport type Renewal = \"replace_previous\" | \"accumulate\";\nexport type Expiry2 =\n | NeverExpiry\n | AfterGrantExpiry\n | EndOfWindowExpiry\n | FixedExpiry\n | SubscriptionEndExpiry;\nexport type DisplayName2 = string;\nexport type Description2 = string | null;\nexport type SortOrder1 = number;\nexport type Type29 = \"topup\";\nexport type CreditsPerUnit = string;\nexport type Minimum1 = number;\nexport type Maximum1 = number;\nexport type Default4 = number;\nexport type Bucket2 = string;\nexport type Expiry3 =\n | (NeverExpiry | AfterGrantExpiry | EndOfWindowExpiry | FixedExpiry | SubscriptionEndExpiry)\n | null;\nexport type LotBehavior = \"separate_lots\" | \"merge_and_refresh\";\nexport type Effective = \"immediate\" | \"renewal\";\nexport type Proration = \"prorated\" | \"none\";\nexport type PaymentFailure = \"prevent_change\" | \"apply_change\";\n/**\n * @minItems 1\n */\nexport type EligibleTopups = [string, ...string[]];\nexport type Minimum2 = string;\nexport type Maximum2 = string;\nexport type Default5 = string;\n/**\n * Balance that rearms auto-recharge; it must exceed balance_below.maximum.\n */\nexport type RearmAbove = string;\nexport type Minimum3 = number;\nexport type Maximum3 = number;\nexport type Default6 = number;\nexport type MaxPurchases = number;\nexport type Window3 = CalendarWindow | RollingWindow;\nexport type MaxChargeMinor = number;\nexport type MaxConsecutiveFailures = number;\nexport type FailureAction = \"pause\";\n\nexport interface BursarConfig {\n version: Version;\n catalog?: CatalogConfig;\n /**\n * Usage operations, their measures and dimensions, and reusable rate cards.\n */\n pricing?: PricingConfig | null;\n credits: CreditsConfig;\n entitlements?: EntitlementsConfig;\n admission?: AdmissionConfig;\n plans?: Plans1;\n commerce?: CommerceConfig;\n}\n/**\n * Catalog-wide publication settings such as the default signup plan.\n */\nexport interface CatalogConfig {\n default_plan?: DefaultPlan;\n}\nexport interface PricingConfig {\n operations: Operations;\n rate_cards: RateCards;\n}\nexport interface Operations {\n [k: string]: OperationDefinition;\n}\nexport interface OperationDefinition {\n measures: Measures;\n dimensions?: Dimensions;\n}\nexport interface Measures {\n [k: string]: MeasureDefinition;\n}\nexport interface MeasureDefinition {\n unit: Unit;\n}\nexport interface Dimensions {\n [k: string]: DimensionDefinition;\n}\nexport interface DimensionDefinition {\n type: Type;\n required?: Required;\n}\nexport interface RateCards {\n [k: string]: RateCard;\n}\nexport interface RateCard {\n extends?: Extends;\n operations?: Operations1;\n}\nexport interface Operations1 {\n [k: string]: OperationPricing;\n}\nexport interface OperationPricing {\n rules?: Rules;\n unmatched: Unmatched;\n}\nexport interface PriceRule {\n when: When;\n charge: Charge;\n}\nexport interface When {\n [k: string]: EqualMatcher | InMatcher | NotInMatcher | PrefixMatcher | RangeMatcher;\n}\nexport interface EqualMatcher {\n op: Op;\n value: Value;\n}\nexport interface InMatcher {\n op: Op1;\n values: Values;\n}\nexport interface NotInMatcher {\n op: Op2;\n values: Values1;\n}\nexport interface PrefixMatcher {\n op: Op3;\n value: Value1;\n}\nexport interface RangeMatcher {\n op: Op4;\n gt?: Gt;\n gte?: Gte;\n lt?: Lt;\n lte?: Lte;\n}\nexport interface FlatCharge {\n type: Type1;\n amount: Amount;\n}\nexport interface PerUnitCharge {\n type: Type2;\n measure: Measure;\n rate: Rate;\n unit_size?: UnitSize;\n}\nexport interface PackageCharge {\n type: Type3;\n measure: Measure1;\n units: Units;\n amount: Amount1;\n rounding?: Rounding;\n}\nexport interface GraduatedCharge {\n type: Type4;\n measure: Measure2;\n tiers: Tiers;\n}\nexport interface GraduatedTier {\n up_to?: UpTo;\n rate: Rate1;\n}\nexport interface VolumeCharge {\n type: Type5;\n measure: Measure3;\n tiers: Tiers1;\n}\nexport interface ExpressionCharge {\n type: Type6;\n formula: Formula;\n}\nexport interface SumCharge {\n type: Type7;\n components: Components;\n}\nexport interface RejectUnmatched {\n action: Action;\n}\nexport interface ChargeUnmatched {\n action: Action1;\n charge: Charge1;\n}\n/**\n * Credit buckets, spending policies, grants, and optional display conversion.\n */\nexport interface CreditsConfig {\n accounting?: CreditAccounting;\n buckets?: Buckets;\n default_bucket?: DefaultBucket;\n policies?: Policies;\n grant_programs?: GrantPrograms;\n display?: CreditDisplay | null;\n}\n/**\n * Fixed v1 accounting convention. It may be omitted; canonical output includes the defaults.\n */\nexport interface CreditAccounting {\n unit?: Unit1;\n scale?: Scale;\n rounding?: Rounding1;\n}\nexport interface Buckets {\n [k: string]: BucketDefinition;\n}\nexport interface BucketDefinition {\n priority: Priority;\n expiry?: Expiry;\n}\nexport interface NeverExpiry {\n type: Type8;\n}\nexport interface AfterGrantExpiry {\n type: Type9;\n interval: BillingInterval;\n timezone?: Timezone;\n}\nexport interface BillingInterval {\n unit: Unit2;\n count?: Count;\n}\nexport interface EndOfWindowExpiry {\n type: Type10;\n window: Window;\n}\nexport interface CalendarWindow {\n type: Type11;\n unit: Unit3;\n count?: Count1;\n timezone?: Timezone1;\n}\nexport interface PlanAssignmentWindow {\n type: Type12;\n interval: BillingInterval;\n timezone?: Timezone2;\n}\nexport interface FixedExpiry {\n type: Type13;\n at: At;\n}\nexport interface SubscriptionEndExpiry {\n type: Type14;\n}\nexport interface Policies {\n [k: string]: PrepaidCreditPolicy | CreditLinePolicy;\n}\nexport interface PrepaidCreditPolicy {\n type: Type15;\n}\nexport interface CreditLinePolicy {\n type: Type16;\n limit: Limit;\n}\nexport interface GrantPrograms {\n [k: string]: GrantProgram;\n}\nexport interface GrantProgram {\n trigger: Trigger;\n awards: Awards;\n availability?: Availability | null;\n eligibility?: GrantEligibility;\n max_awards_per_subject?: MaxAwardsPerSubject;\n idempotency_scope?: IdempotencyScope;\n}\nexport interface GrantAward {\n recipient?: Recipient;\n amount: Amount2;\n bucket: Bucket;\n expiry?: Expiry1;\n}\nexport interface Availability {\n starts_at?: StartsAt;\n ends_at?: EndsAt;\n regions?: Regions;\n}\nexport interface GrantEligibility {\n plans?: Plans;\n regions?: Regions1;\n}\nexport interface CreditDisplay {\n currency: Currency;\n units_per_major: UnitsPerMajor;\n}\n/**\n * Typed feature definitions referenced by plan feature values.\n */\nexport interface EntitlementsConfig {\n features?: Features;\n}\nexport interface Features {\n [k: string]: BooleanFeature | EnumFeature | IntegerFeature | StringFeature;\n}\nexport interface BooleanFeature {\n type: Type17;\n default: Default;\n}\nexport interface EnumFeature {\n type: Type18;\n values: Values2;\n default: Default1;\n}\nexport interface IntegerFeature {\n type: Type19;\n default: Default2;\n minimum?: Minimum;\n maximum?: Maximum;\n}\nexport interface StringFeature {\n type: Type20;\n default: Default3;\n pattern?: Pattern;\n}\n/**\n * Reusable global and per-operation concurrency policies.\n */\nexport interface AdmissionConfig {\n policies?: Policies1;\n}\nexport interface Policies1 {\n [k: string]: AdmissionPolicy;\n}\nexport interface AdmissionPolicy {\n max_in_flight?: MaxInFlight;\n operations?: Operations2;\n}\nexport interface Operations2 {\n [k: string]: OperationAdmission;\n}\nexport interface OperationAdmission {\n max_in_flight: MaxInFlight1;\n}\n/**\n * Product plans keyed by stable snake_case identifiers.\n */\nexport interface Plans1 {\n [k: string]: PlanDefinition;\n}\nexport interface PlanDefinition {\n display_name: DisplayName;\n rank?: Rank;\n description?: Description;\n rate_card?: RateCard1;\n allowed_operations?: AllowedOperations;\n features?: Features1;\n credit_allowance?: CreditAllowance | null;\n quotas?: Quotas;\n credit_policy?: CreditPolicy;\n admission_policy?: AdmissionPolicy1;\n /**\n * Catalog evolution defaults. When omitted, subscription-backed plans use next_renewal and other plans use immediate; canonical output materializes the default.\n */\n evolution?: PlanEvolution | null;\n}\nexport interface Features1 {\n [k: string]: boolean | number | string;\n}\nexport interface CreditAllowance {\n amount: Amount3;\n priority: Priority1;\n window: Window1;\n}\nexport interface RollingWindow {\n type: Type21;\n duration: Duration;\n}\nexport interface Duration {\n unit: Unit4;\n count: Count2;\n}\nexport interface Quotas {\n [k: string]: QuotaDefinition;\n}\nexport interface QuotaDefinition {\n operation: Operation;\n measure: Measure4;\n limit: Limit1;\n window: Window2;\n enforcement: Enforcement;\n emit_at_percent?: EmitAtPercent;\n}\nexport interface PlanEvolution {\n default_rollout: DefaultRollout;\n}\n/**\n * Payment providers, subscription and top-up offers, and purchase guardrails.\n */\nexport interface CommerceConfig {\n providers?: Providers;\n offers?: Offers;\n subscription_changes?: SubscriptionChanges | null;\n auto_recharge?: AutoRechargeGuardrails | null;\n}\nexport interface Providers {\n [k: string]: StripeProvider | DodoProvider | CustomProvider;\n}\nexport interface StripeProvider {\n type: Type22;\n}\nexport interface DodoProvider {\n type: Type23;\n}\nexport interface CustomProvider {\n type: Type24;\n adapter: Adapter;\n}\nexport interface Offers {\n [k: string]: SubscriptionOffer | TopupOffer;\n}\nexport interface SubscriptionOffer {\n display_name: DisplayName1;\n description?: Description1;\n sort_order?: SortOrder;\n availability?: Availability | null;\n price: OfferPrice;\n providers: Providers1;\n type: Type28;\n plan: Plan;\n billing_interval: BillingInterval;\n trial?: BillingInterval | null;\n cycle_grant?: CycleGrant | null;\n}\nexport interface OfferPrice {\n amount_minor: AmountMinor;\n currency: Currency1;\n tax_behavior?: TaxBehavior;\n}\nexport interface Providers1 {\n [k: string]: StripePriceReference | DodoProductReference | CustomObjectReference;\n}\nexport interface StripePriceReference {\n type: Type25;\n price_id: PriceId;\n}\nexport interface DodoProductReference {\n type: Type26;\n product_id: ProductId;\n}\nexport interface CustomObjectReference {\n type: Type27;\n object_kind: ObjectKind;\n external_id: ExternalId;\n}\nexport interface CycleGrant {\n amount: Amount4;\n bucket: Bucket1;\n renewal: Renewal;\n expiry?: Expiry2;\n}\nexport interface TopupOffer {\n display_name: DisplayName2;\n description?: Description2;\n sort_order?: SortOrder1;\n availability?: Availability | null;\n price: OfferPrice;\n providers: Providers2;\n type: Type29;\n credits_per_unit: CreditsPerUnit;\n quantity?: QuantityBounds;\n bucket: Bucket2;\n expiry?: Expiry3;\n lot_behavior?: LotBehavior;\n}\nexport interface Providers2 {\n [k: string]: StripePriceReference | DodoProductReference | CustomObjectReference;\n}\nexport interface QuantityBounds {\n minimum?: Minimum1;\n maximum?: Maximum1;\n default?: Default4;\n}\nexport interface SubscriptionChanges {\n upgrade?: SubscriptionChangePolicy | null;\n downgrade?: SubscriptionChangePolicy | null;\n lateral?: SubscriptionChangePolicy | null;\n cadence_change?: SubscriptionChangePolicy | null;\n}\nexport interface SubscriptionChangePolicy {\n effective: Effective;\n proration: Proration;\n payment_failure?: PaymentFailure;\n}\nexport interface AutoRechargeGuardrails {\n eligible_topups: EligibleTopups;\n balance_below: DecimalRange;\n rearm_above: RearmAbove;\n quantity: IntegerRange;\n limits: AutoRechargeLimits;\n}\nexport interface DecimalRange {\n minimum: Minimum2;\n maximum: Maximum2;\n default: Default5;\n}\nexport interface IntegerRange {\n minimum: Minimum3;\n maximum: Maximum3;\n default: Default6;\n}\nexport interface AutoRechargeLimits {\n max_purchases: MaxPurchases;\n window: Window3;\n max_charge_minor: MaxChargeMinor;\n cooldown: Duration;\n max_consecutive_failures?: MaxConsecutiveFailures;\n failure_action?: FailureAction;\n}\n"]}
1
+ {"version":3,"file":"pricing-config.types.js","sourceRoot":"","sources":["../../src/generated/pricing-config.types.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;GAIG","sourcesContent":["/* eslint-disable */\n/**\n * This file was automatically generated by json-schema-to-typescript.\n * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,\n * and run json-schema-to-typescript to regenerate this file.\n */\n\nexport type Version = 1;\nexport type DefaultPlan = string | null;\nexport type Unit = string;\nexport type Type = \"string\" | \"number\" | \"boolean\";\nexport type Required = boolean;\nexport type Extends = string | null;\nexport type Op = \"eq\";\nexport type Value = string | number | boolean;\nexport type Op1 = \"in\";\n/**\n * @minItems 1\n */\nexport type Values = [\n string | number | string | boolean,\n ...(string | number | string | boolean)[],\n];\nexport type Op2 = \"not_in\";\n/**\n * @minItems 1\n */\nexport type Values1 = [\n string | number | string | boolean,\n ...(string | number | string | boolean)[],\n];\nexport type Op3 = \"prefix\";\nexport type Value1 = string;\nexport type Op4 = \"range\";\nexport type Gt = string | null;\nexport type Gte = string | null;\nexport type Lt = string | null;\nexport type Lte = string | null;\nexport type Charge =\n | FlatCharge\n | PerUnitCharge\n | PackageCharge\n | GraduatedCharge\n | VolumeCharge\n | ExpressionCharge\n | SumCharge;\nexport type Type1 = \"flat\";\nexport type Amount = string;\nexport type Type2 = \"per_unit\";\nexport type Measure = string;\n/**\n * Credits charged for each unit_size units of the selected measure.\n */\nexport type Rate = string;\n/**\n * Number of measure units represented by one rate unit; use 1000000 for per-million-token rates.\n */\nexport type UnitSize = string;\nexport type Type3 = \"package\";\nexport type Measure1 = string;\nexport type Units = string;\nexport type Amount1 = string;\nexport type Rounding = \"ceil\" | \"floor\" | \"nearest\";\nexport type Type4 = \"graduated\";\nexport type Measure2 = string;\n/**\n * @minItems 1\n */\nexport type Tiers = [GraduatedTier, ...GraduatedTier[]];\nexport type UpTo = string | null;\nexport type Rate1 = string;\nexport type Type5 = \"volume\";\nexport type Measure3 = string;\n/**\n * @minItems 1\n */\nexport type Tiers1 = [GraduatedTier, ...GraduatedTier[]];\nexport type Type6 = \"expression\";\nexport type Formula = string;\nexport type Type7 = \"sum\";\n/**\n * @minItems 1\n */\nexport type Components = [\n (\n | FlatCharge\n | PerUnitCharge\n | PackageCharge\n | GraduatedCharge\n | VolumeCharge\n | ExpressionCharge\n | SumCharge\n ),\n ...(\n | FlatCharge\n | PerUnitCharge\n | PackageCharge\n | GraduatedCharge\n | VolumeCharge\n | ExpressionCharge\n | SumCharge\n )[],\n];\nexport type Rules = PriceRule[];\nexport type Unmatched = RejectUnmatched | ChargeUnmatched;\nexport type Action = \"reject\";\nexport type Action1 = \"charge\";\nexport type Charge1 =\n | FlatCharge\n | PerUnitCharge\n | PackageCharge\n | GraduatedCharge\n | VolumeCharge\n | ExpressionCharge\n | SumCharge;\nexport type Priority = number;\nexport type Expiry =\n NeverExpiry | AfterGrantExpiry | EndOfWindowExpiry | FixedExpiry | SubscriptionEndExpiry;\nexport type Type8 = \"never\";\nexport type Type9 = \"after_grant\";\nexport type Unit1 = \"day\" | \"week\" | \"month\" | \"year\";\nexport type Count = number;\nexport type Timezone = string;\nexport type Type10 = \"end_of_window\";\nexport type Window = CalendarWindow | PlanAssignmentWindow;\nexport type Type11 = \"calendar\";\nexport type Unit2 = \"day\" | \"week\" | \"month\" | \"year\";\nexport type Count1 = number;\nexport type Timezone1 = string;\nexport type Type12 = \"plan_assignment\";\nexport type Timezone2 = string;\nexport type Type13 = \"fixed_at\";\nexport type At = string;\nexport type Type14 = \"subscription_end\";\nexport type DefaultBucket = string | null;\nexport type Type15 = \"prepaid\";\nexport type Type16 = \"credit_line\";\nexport type Limit = string;\nexport type Trigger = \"account_created\" | \"referral_completed\" | \"promo_code_redeemed\" | \"manual\";\n/**\n * @minItems 1\n */\nexport type Awards = [GrantAward, ...GrantAward[]];\nexport type Recipient = \"subject\" | \"referrer\";\nexport type Amount2 = string;\nexport type Bucket = string;\nexport type Expiry1 =\n (NeverExpiry | AfterGrantExpiry | EndOfWindowExpiry | FixedExpiry | SubscriptionEndExpiry) | null;\nexport type StartsAt = string | null;\nexport type EndsAt = string | null;\nexport type Regions = string[];\nexport type Plans = string[];\nexport type Regions1 = string[];\nexport type MaxAwardsPerSubject = number;\nexport type IdempotencyScope = \"subject\" | \"event\";\nexport type Currency = string;\nexport type UnitsPerMajor = string;\nexport type Type17 = \"boolean\";\nexport type Default = boolean;\nexport type Type18 = \"enum\";\n/**\n * @minItems 1\n */\nexport type Values2 = [string, ...string[]];\nexport type Default1 = string;\nexport type Type19 = \"integer\";\nexport type Default2 = number;\nexport type Minimum = number | null;\nexport type Maximum = number | null;\nexport type Type20 = \"string\";\nexport type Default3 = string;\nexport type Pattern = string | null;\nexport type MaxInFlight = number | null;\nexport type MaxInFlight1 = number;\nexport type DisplayName = string;\n/**\n * Public catalog ordering. Lower ranks appear first; ties are ordered by plan key.\n */\nexport type Rank = number;\nexport type Description = string | null;\nexport type RateCard1 = string | null;\nexport type AllowedOperations = string[];\nexport type Amount3 = string;\n/**\n * Spend priority shared with credit buckets. Lower values are used first.\n */\nexport type Priority1 = number;\nexport type Window1 = CalendarWindow | RollingWindow | PlanAssignmentWindow;\nexport type Type21 = \"rolling\";\nexport type Unit3 = \"second\" | \"minute\" | \"hour\" | \"day\" | \"week\";\nexport type Count2 = number;\nexport type Operation = string;\nexport type Measure4 = string;\nexport type Limit1 = string;\nexport type Window2 = CalendarWindow | RollingWindow | PlanAssignmentWindow;\nexport type Enforcement = \"block\" | \"allow\";\nexport type EmitAtPercent = number[];\nexport type CreditPolicy = string | null;\nexport type AdmissionPolicy1 = string | null;\n/**\n * Default adoption timing for existing assignments when a newer catalog revision changes this plan. A catalog activation may override it for one release.\n */\nexport type DefaultRollout = \"immediate\" | \"next_renewal\" | \"new_assignments_only\";\nexport type Type22 = \"stripe\";\nexport type Type23 = \"dodo\";\nexport type Type24 = \"custom\";\nexport type Adapter = string;\nexport type DisplayName1 = string;\nexport type Description1 = string | null;\nexport type SortOrder = number;\nexport type AmountMinor = number;\nexport type Currency1 = string;\nexport type TaxBehavior = \"inclusive\" | \"exclusive\" | \"unspecified\";\nexport type Type25 = \"stripe_price\";\nexport type PriceId = string;\nexport type Type26 = \"dodo_product\";\nexport type ProductId = string;\nexport type Type27 = \"custom_object\";\nexport type ObjectKind = \"subscription\" | \"one_time\";\nexport type ExternalId = string;\nexport type Type28 = \"subscription\";\nexport type Plan = string;\nexport type Amount4 = string;\nexport type Bucket1 = string;\nexport type Renewal = \"replace_previous\" | \"accumulate\";\nexport type Expiry2 =\n NeverExpiry | AfterGrantExpiry | EndOfWindowExpiry | FixedExpiry | SubscriptionEndExpiry;\nexport type DisplayName2 = string;\nexport type Description2 = string | null;\nexport type SortOrder1 = number;\nexport type Type29 = \"topup\";\nexport type CreditsPerUnit = string;\nexport type Minimum1 = number;\nexport type Maximum1 = number;\nexport type Default4 = number;\nexport type Bucket2 = string;\nexport type Expiry3 =\n (NeverExpiry | AfterGrantExpiry | EndOfWindowExpiry | FixedExpiry | SubscriptionEndExpiry) | null;\nexport type LotBehavior = \"separate_lots\" | \"merge_and_refresh\";\nexport type Effective = \"immediate\" | \"renewal\";\nexport type Proration = \"prorated\" | \"none\";\nexport type PaymentFailure = \"prevent_change\" | \"apply_change\";\n/**\n * @minItems 1\n */\nexport type EligibleTopups = [string, ...string[]];\nexport type Minimum2 = string;\nexport type Maximum2 = string;\nexport type Default5 = string;\n/**\n * Balance that rearms auto-recharge; it must exceed balance_below.maximum.\n */\nexport type RearmAbove = string;\nexport type Minimum3 = number;\nexport type Maximum3 = number;\nexport type Default6 = number;\nexport type MaxPurchases = number;\nexport type Window3 = CalendarWindow | RollingWindow;\nexport type MaxChargeMinor = number;\nexport type MaxConsecutiveFailures = number;\nexport type FailureAction = \"pause\";\n\nexport interface BursarConfig {\n version: Version;\n catalog?: CatalogConfig;\n /**\n * Usage operations, their measures and dimensions, and reusable rate cards.\n */\n pricing?: PricingConfig | null;\n credits: CreditsConfig;\n entitlements?: EntitlementsConfig;\n admission?: AdmissionConfig;\n plans?: Plans1;\n commerce?: CommerceConfig;\n}\n/**\n * Catalog-wide publication settings such as the default signup plan.\n */\nexport interface CatalogConfig {\n default_plan?: DefaultPlan;\n}\nexport interface PricingConfig {\n operations: Operations;\n rate_cards: RateCards;\n}\nexport interface Operations {\n [k: string]: OperationDefinition;\n}\nexport interface OperationDefinition {\n measures: Measures;\n dimensions?: Dimensions;\n}\nexport interface Measures {\n [k: string]: MeasureDefinition;\n}\nexport interface MeasureDefinition {\n unit: Unit;\n}\nexport interface Dimensions {\n [k: string]: DimensionDefinition;\n}\nexport interface DimensionDefinition {\n type: Type;\n required?: Required;\n}\nexport interface RateCards {\n [k: string]: RateCard;\n}\nexport interface RateCard {\n extends?: Extends;\n operations?: Operations1;\n}\nexport interface Operations1 {\n [k: string]: OperationPricing;\n}\nexport interface OperationPricing {\n rules?: Rules;\n unmatched: Unmatched;\n}\nexport interface PriceRule {\n when: When;\n charge: Charge;\n}\nexport interface When {\n [k: string]: EqualMatcher | InMatcher | NotInMatcher | PrefixMatcher | RangeMatcher;\n}\nexport interface EqualMatcher {\n op: Op;\n value: Value;\n}\nexport interface InMatcher {\n op: Op1;\n values: Values;\n}\nexport interface NotInMatcher {\n op: Op2;\n values: Values1;\n}\nexport interface PrefixMatcher {\n op: Op3;\n value: Value1;\n}\nexport interface RangeMatcher {\n op: Op4;\n gt?: Gt;\n gte?: Gte;\n lt?: Lt;\n lte?: Lte;\n}\nexport interface FlatCharge {\n type: Type1;\n amount: Amount;\n}\nexport interface PerUnitCharge {\n type: Type2;\n measure: Measure;\n rate: Rate;\n unit_size?: UnitSize;\n}\nexport interface PackageCharge {\n type: Type3;\n measure: Measure1;\n units: Units;\n amount: Amount1;\n rounding?: Rounding;\n}\nexport interface GraduatedCharge {\n type: Type4;\n measure: Measure2;\n tiers: Tiers;\n}\nexport interface GraduatedTier {\n up_to?: UpTo;\n rate: Rate1;\n}\nexport interface VolumeCharge {\n type: Type5;\n measure: Measure3;\n tiers: Tiers1;\n}\nexport interface ExpressionCharge {\n type: Type6;\n formula: Formula;\n}\nexport interface SumCharge {\n type: Type7;\n components: Components;\n}\nexport interface RejectUnmatched {\n action: Action;\n}\nexport interface ChargeUnmatched {\n action: Action1;\n charge: Charge1;\n}\n/**\n * Credit buckets, spending policies, grants, and optional display conversion.\n */\nexport interface CreditsConfig {\n buckets?: Buckets;\n default_bucket?: DefaultBucket;\n policies?: Policies;\n grant_programs?: GrantPrograms;\n display?: CreditDisplay | null;\n}\nexport interface Buckets {\n [k: string]: BucketDefinition;\n}\nexport interface BucketDefinition {\n priority: Priority;\n expiry?: Expiry;\n}\nexport interface NeverExpiry {\n type: Type8;\n}\nexport interface AfterGrantExpiry {\n type: Type9;\n interval: BillingInterval;\n timezone?: Timezone;\n}\nexport interface BillingInterval {\n unit: Unit1;\n count?: Count;\n}\nexport interface EndOfWindowExpiry {\n type: Type10;\n window: Window;\n}\nexport interface CalendarWindow {\n type: Type11;\n unit: Unit2;\n count?: Count1;\n timezone?: Timezone1;\n}\nexport interface PlanAssignmentWindow {\n type: Type12;\n interval: BillingInterval;\n timezone?: Timezone2;\n}\nexport interface FixedExpiry {\n type: Type13;\n at: At;\n}\nexport interface SubscriptionEndExpiry {\n type: Type14;\n}\nexport interface Policies {\n [k: string]: PrepaidCreditPolicy | CreditLinePolicy;\n}\nexport interface PrepaidCreditPolicy {\n type: Type15;\n}\nexport interface CreditLinePolicy {\n type: Type16;\n limit: Limit;\n}\nexport interface GrantPrograms {\n [k: string]: GrantProgram;\n}\nexport interface GrantProgram {\n trigger: Trigger;\n awards: Awards;\n availability?: Availability | null;\n eligibility?: GrantEligibility;\n max_awards_per_subject?: MaxAwardsPerSubject;\n idempotency_scope?: IdempotencyScope;\n}\nexport interface GrantAward {\n recipient?: Recipient;\n amount: Amount2;\n bucket: Bucket;\n expiry?: Expiry1;\n}\nexport interface Availability {\n starts_at?: StartsAt;\n ends_at?: EndsAt;\n regions?: Regions;\n}\nexport interface GrantEligibility {\n plans?: Plans;\n regions?: Regions1;\n}\nexport interface CreditDisplay {\n currency: Currency;\n units_per_major: UnitsPerMajor;\n}\n/**\n * Typed feature definitions referenced by plan feature values.\n */\nexport interface EntitlementsConfig {\n features?: Features;\n}\nexport interface Features {\n [k: string]: BooleanFeature | EnumFeature | IntegerFeature | StringFeature;\n}\nexport interface BooleanFeature {\n type: Type17;\n default: Default;\n}\nexport interface EnumFeature {\n type: Type18;\n values: Values2;\n default: Default1;\n}\nexport interface IntegerFeature {\n type: Type19;\n default: Default2;\n minimum?: Minimum;\n maximum?: Maximum;\n}\nexport interface StringFeature {\n type: Type20;\n default: Default3;\n pattern?: Pattern;\n}\n/**\n * Reusable global and per-operation concurrency policies.\n */\nexport interface AdmissionConfig {\n policies?: Policies1;\n}\nexport interface Policies1 {\n [k: string]: AdmissionPolicy;\n}\nexport interface AdmissionPolicy {\n max_in_flight?: MaxInFlight;\n operations?: Operations2;\n}\nexport interface Operations2 {\n [k: string]: OperationAdmission;\n}\nexport interface OperationAdmission {\n max_in_flight: MaxInFlight1;\n}\n/**\n * Product plans keyed by stable snake_case identifiers.\n */\nexport interface Plans1 {\n [k: string]: PlanDefinition;\n}\nexport interface PlanDefinition {\n display_name: DisplayName;\n rank?: Rank;\n description?: Description;\n rate_card?: RateCard1;\n allowed_operations?: AllowedOperations;\n features?: Features1;\n credit_allowance?: CreditAllowance | null;\n quotas?: Quotas;\n credit_policy?: CreditPolicy;\n admission_policy?: AdmissionPolicy1;\n /**\n * Catalog evolution defaults. When omitted, subscription-backed plans use next_renewal and other plans use immediate; canonical output materializes the default.\n */\n evolution?: PlanEvolution | null;\n}\nexport interface Features1 {\n [k: string]: boolean | number | string;\n}\nexport interface CreditAllowance {\n amount: Amount3;\n priority: Priority1;\n window: Window1;\n}\nexport interface RollingWindow {\n type: Type21;\n duration: Duration;\n}\nexport interface Duration {\n unit: Unit3;\n count: Count2;\n}\nexport interface Quotas {\n [k: string]: QuotaDefinition;\n}\nexport interface QuotaDefinition {\n operation: Operation;\n measure: Measure4;\n limit: Limit1;\n window: Window2;\n enforcement: Enforcement;\n emit_at_percent?: EmitAtPercent;\n}\nexport interface PlanEvolution {\n default_rollout: DefaultRollout;\n}\n/**\n * Payment providers, subscription and top-up offers, and purchase guardrails.\n */\nexport interface CommerceConfig {\n providers?: Providers;\n offers?: Offers;\n subscription_changes?: SubscriptionChanges | null;\n auto_recharge?: AutoRechargeGuardrails | null;\n}\nexport interface Providers {\n [k: string]: StripeProvider | DodoProvider | CustomProvider;\n}\nexport interface StripeProvider {\n type: Type22;\n}\nexport interface DodoProvider {\n type: Type23;\n}\nexport interface CustomProvider {\n type: Type24;\n adapter: Adapter;\n}\nexport interface Offers {\n [k: string]: SubscriptionOffer | TopupOffer;\n}\nexport interface SubscriptionOffer {\n display_name: DisplayName1;\n description?: Description1;\n sort_order?: SortOrder;\n availability?: Availability | null;\n price: OfferPrice;\n providers: Providers1;\n type: Type28;\n plan: Plan;\n billing_interval: BillingInterval;\n trial?: BillingInterval | null;\n cycle_grant?: CycleGrant | null;\n}\nexport interface OfferPrice {\n amount_minor: AmountMinor;\n currency: Currency1;\n tax_behavior?: TaxBehavior;\n}\nexport interface Providers1 {\n [k: string]: StripePriceReference | DodoProductReference | CustomObjectReference;\n}\nexport interface StripePriceReference {\n type: Type25;\n price_id: PriceId;\n}\nexport interface DodoProductReference {\n type: Type26;\n product_id: ProductId;\n}\nexport interface CustomObjectReference {\n type: Type27;\n object_kind: ObjectKind;\n external_id: ExternalId;\n}\nexport interface CycleGrant {\n amount: Amount4;\n bucket: Bucket1;\n renewal: Renewal;\n expiry?: Expiry2;\n}\nexport interface TopupOffer {\n display_name: DisplayName2;\n description?: Description2;\n sort_order?: SortOrder1;\n availability?: Availability | null;\n price: OfferPrice;\n providers: Providers2;\n type: Type29;\n credits_per_unit: CreditsPerUnit;\n quantity?: QuantityBounds;\n bucket: Bucket2;\n expiry?: Expiry3;\n lot_behavior?: LotBehavior;\n}\nexport interface Providers2 {\n [k: string]: StripePriceReference | DodoProductReference | CustomObjectReference;\n}\nexport interface QuantityBounds {\n minimum?: Minimum1;\n maximum?: Maximum1;\n default?: Default4;\n}\nexport interface SubscriptionChanges {\n upgrade?: SubscriptionChangePolicy | null;\n downgrade?: SubscriptionChangePolicy | null;\n lateral?: SubscriptionChangePolicy | null;\n cadence_change?: SubscriptionChangePolicy | null;\n}\nexport interface SubscriptionChangePolicy {\n effective: Effective;\n proration: Proration;\n payment_failure?: PaymentFailure;\n}\nexport interface AutoRechargeGuardrails {\n eligible_topups: EligibleTopups;\n balance_below: DecimalRange;\n rearm_above: RearmAbove;\n quantity: IntegerRange;\n limits: AutoRechargeLimits;\n}\nexport interface DecimalRange {\n minimum: Minimum2;\n maximum: Maximum2;\n default: Default5;\n}\nexport interface IntegerRange {\n minimum: Minimum3;\n maximum: Maximum3;\n default: Default6;\n}\nexport interface AutoRechargeLimits {\n max_purchases: MaxPurchases;\n window: Window3;\n max_charge_minor: MaxChargeMinor;\n cooldown: Duration;\n max_consecutive_failures?: MaxConsecutiveFailures;\n failure_action?: FailureAction;\n}\n"]}
package/dist/index.d.ts CHANGED
@@ -12,15 +12,17 @@ export { retryBursarOperation } from "./retry.js";
12
12
  export type { BursarRetryOptions } from "./retry.js";
13
13
  export { validateExpression, evaluateExpression } from "./expr.js";
14
14
  export { AccountService, Bursar, CatalogService } from "./bursar.js";
15
- export type { AccountCreatedInput, AccountCreatedResult, BursarOptions, BillingCapability, BillingEventSink, CommerceOptions, CreditsService, } from "./bursar.js";
15
+ export type { AccountCreatedInput, AccountCreatedResult, BillingBursarOptions, BursarOptions, BillingCapability, BillingEventSink, CommerceOptions, CreditsService, CreditsOnlyBursarOptions, } from "./bursar.js";
16
16
  export * from "./commerce/index.js";
17
17
  export type { AddCreditsResult, AddTeamMemberResult, AggregateStats, AllowanceResult, AvailableResult, BalanceResult, BillingMode, CatalogRevisionSummary, CatalogRevision, BucketBalance, BucketBalancesResult, BucketDefinition, CanAffordResult, CheckFeatureResult, CreateTeamResult, CreditMetadata, DailySpendRow, DeductionResult, DeductionFailure, DeductionSuccess, DeductWithAllowanceOptions, ExecuteGrantProgramRequest, GetUserPlanResult, GrantProgramAwardResult, GrantProgramTrigger, LeaseResult, LeaseFailure, LeaseSuccess, LeasePricingContext, ListQuotaEventsOptions, PlanAllowancePolicy, PlanAdmissionPolicy, PlanCreditPolicy, PlanMigrationBatchResult, PlanMigrationStartResult, QuotaEvent, QuotaState, RefundResult, RefundFailure, RefundSuccess, RevokeCreditsResult, ReleaseResult, SetUserPlanResult, SpendByModelRow, SpendByUserRow, ListLedgerEntriesOptions, ListUsageChargesOptions, ListUsageEntriesOptions, LedgerCursor, LedgerPage, LedgerEntry, UsageCharge, UsageChargeCursor, UsageChargePage, UsageRecordResult, UsageRecordFailure, UsageRecordSuccess, SweepResult, Team, TeamBalanceResult, TeamDeductionResult, TeamDeductionFailure, TeamDeductionSuccess, TeamMember, TopUserRow, UsageAnalyticsStore, } from "./credits/types/index.js";
18
18
  export type { CreateLeaseOptions, SettleLeaseOptions } from "./credits/store.js";
19
- export type { AddCreditsOptions, BeginBilledOperationOptions, CanAffordOptions, CreditsServiceOptions, DeductCreditsOptions, DeductFlatJobOptions, DeductOptions, DeductTeamOptions, GrantSubscriptionCycleOptions, LowBalanceConfig, MetricsOrAmount, PostDeductionContext, RecordUsageOptions, RefundCreditsOptions, ReserveOptions, RunBilledOptions, SettleOptions, } from "./credits/service-types.js";
19
+ export type { AddCreditsOptions, BeginBilledOperationOptions, CanAffordOptions, CreditsServiceOptions, DeductCreditsOptions, DeductFlatJobOptions, DeductOptions, DeductTeamOptions, ExactAmount, GrantSubscriptionCycleOptions, LowBalanceConfig, MetricsOrAmount, PostDeductionContext, RecordUsageOptions, RefundCreditsOptions, ReserveOptions, RunBilledOptions, SettleOptions, } from "./credits/service-types.js";
20
20
  export { CreditStore } from "./credits/store.js";
21
21
  export { PostgresStore } from "./credits/postgres/store.js";
22
22
  export type { PostgresStoreOptions } from "./credits/postgres/store.js";
23
23
  export type { PostgresConnectionOptions } from "./shared/postgres-client.js";
24
+ export { PROVIDER_ENVIRONMENTS } from "./providers/environment.js";
25
+ export type { ProviderEnvironment } from "./providers/environment.js";
24
26
  export type { CreditEvent, CreditEventType } from "./credits/events.js";
25
27
  export { CreditEventEmitter } from "./credits/events.js";
26
28
  export { BillingStore, PostgresBillingStore } from "./billing/index.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,YAAY,EACV,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,cAAc,EACd,aAAa,EACb,WAAW,EACX,mBAAmB,EACnB,cAAc,EACd,MAAM,EACN,MAAM,EACN,iBAAiB,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,yBAAyB,EACzB,8BAA8B,EAC9B,YAAY,EACZ,WAAW,EACX,4BAA4B,EAC5B,2BAA2B,EAC3B,eAAe,EACf,qBAAqB,EACrB,WAAW,EACX,WAAW,EACX,eAAe,EACf,uBAAu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B,CAAC;AAC5E,YAAY,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAE1E,YAAY,EACV,0BAA0B,EAC1B,+BAA+B,EAC/B,0BAA0B,EAC1B,yBAAyB,EACzB,uBAAuB,EACvB,0BAA0B,EAC1B,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,2BAA2B,EAC3B,iBAAiB,EACjB,uBAAuB,EACvB,yBAAyB,EACzB,8BAA8B,EAC9B,+BAA+B,EAC/B,8BAA8B,EAC9B,wBAAwB,EACxB,yBAAyB,EACzB,eAAe,EACf,WAAW,EACX,iBAAiB,GAClB,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,YAAY,EACV,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,cAAc,EACd,aAAa,EACb,WAAW,EACX,mBAAmB,EACnB,cAAc,EACd,MAAM,EACN,MAAM,EACN,iBAAiB,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,G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AAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,YAAY,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGtE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAGzD,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,YAAY,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAE1E,YAAY,EACV,0BAA0B,EAC1B,+BAA+B,EAC/B,0BAA0B,EAC1B,yBAAyB,EACzB,uBAAuB,EACvB,0BAA0B,EAC1B,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,2BAA2B,EAC3B,iBAAiB,EACjB,uBAAuB,EACvB,yBAAyB,EACzB,8BAA8B,EAC9B,+BAA+B,EAC/B,8BAA8B,EAC9B,wBAAwB,EACxB,yBAAyB,EACzB,eAAe,EACf,WAAW,EACX,iBAAiB,GAClB,MAAM,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -11,6 +11,7 @@ export * from "./commerce/index.js";
11
11
  // Stores
12
12
  export { CreditStore } from "./credits/store.js";
13
13
  export { PostgresStore } from "./credits/postgres/store.js";
14
+ export { PROVIDER_ENVIRONMENTS } from "./providers/environment.js";
14
15
  export { CreditEventEmitter } from "./credits/events.js";
15
16
  // Billing
16
17
  export { BillingStore, PostgresBillingStore } from "./billing/index.js";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"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E,gBAAgB,EAAE,MAAM,oBAAoB,CAAC","sourcesContent":["export { PricingEngine } from \"./engine.js\";\nexport type { CostBreakdown } from \"./breakdown.js\";\nexport { makeCostBreakdown } from \"./breakdown.js\";\nexport type { UsageMetrics } from \"./metrics.js\";\nexport type {\n BursarConfigData,\n CatalogRollout,\n ParsedBursarConfig,\n PricingConfig,\n CreditsConfig,\n PlanDefinition,\n PlanEvolution,\n PlanRollout,\n PlanRolloutStrategy,\n CommerceConfig,\n Window,\n Charge,\n FeatureDefinition,\n} from \"./config.js\";\nexport {\n canonicalBursarConfigDict,\n canonicalCatalogRolloutDict,\n loadCatalogRollout,\n loadConfigFromDict,\n validateCatalogRollout,\n} from \"./config.js\";\nexport { projectPublicCatalog } from \"./catalog.js\";\nexport type {\n PublicCatalog,\n PublicCatalogOffer,\n PublicCatalogPlan,\n PublicCatalogWindow,\n} from \"./catalog.js\";\nexport {\n AutoRechargeDisabledError,\n AutoRechargeNotConfiguredError,\n BillingError,\n BursarError,\n CapabilityNotConfiguredError,\n CapabilityNotSupportedError,\n CapReachedError,\n ConcurrencyLimitError,\n CreditError,\n ConfigError,\n ExpressionError,\n FeatureNotEntitledError,\n ImportError,\n InsufficientCreditsError,\n LeaseExpiredError,\n LeaseNotFoundError,\n OperationNotAllowedError,\n PaymentMethodRequiredError,\n ProviderCapabilityNotSupportedError,\n ProviderResponseError,\n CatalogNotLoadedError,\n RefundError,\n QuotaExceededError,\n StoreError,\n StoreClosedError,\n StoreTimeoutError,\n StoreUnavailableError,\n bursarErrorHttpStatus,\n bursarErrorPublicMessage,\n isBursarError,\n isRetryableBursarError,\n} from \"./errors.js\";\nexport type {\n BursarErrorCategory,\n BursarErrorDetails,\n BursarErrorOptions,\n SerializedBursarError,\n StoreErrorOptions,\n} from \"./errors.js\";\nexport { retryBursarOperation } from \"./retry.js\";\nexport type { BursarRetryOptions } from \"./retry.js\";\nexport { validateExpression, evaluateExpression } from \"./expr.js\";\n\n// Application facade. Credit/billing orchestration is internal to Bursar.\nexport { AccountService, Bursar, CatalogService } from \"./bursar.js\";\nexport type {\n AccountCreatedInput,\n AccountCreatedResult,\n BursarOptions,\n BillingCapability,\n BillingEventSink,\n CommerceOptions,\n CreditsService,\n} from \"./bursar.js\";\nexport * from \"./commerce/index.js\";\n\n// Types\nexport type {\n AddCreditsResult,\n AddTeamMemberResult,\n AggregateStats,\n AllowanceResult,\n AvailableResult,\n BalanceResult,\n BillingMode,\n CatalogRevisionSummary,\n CatalogRevision,\n BucketBalance,\n BucketBalancesResult,\n BucketDefinition,\n CanAffordResult,\n CheckFeatureResult,\n CreateTeamResult,\n CreditMetadata,\n DailySpendRow,\n DeductionResult,\n DeductionFailure,\n DeductionSuccess,\n DeductWithAllowanceOptions,\n ExecuteGrantProgramRequest,\n GetUserPlanResult,\n GrantProgramAwardResult,\n GrantProgramTrigger,\n LeaseResult,\n LeaseFailure,\n LeaseSuccess,\n LeasePricingContext,\n ListQuotaEventsOptions,\n PlanAllowancePolicy,\n PlanAdmissionPolicy,\n PlanCreditPolicy,\n PlanMigrationBatchResult,\n PlanMigrationStartResult,\n QuotaEvent,\n QuotaState,\n RefundResult,\n RefundFailure,\n RefundSuccess,\n RevokeCreditsResult,\n ReleaseResult,\n SetUserPlanResult,\n SpendByModelRow,\n SpendByUserRow,\n ListLedgerEntriesOptions,\n ListUsageChargesOptions,\n ListUsageEntriesOptions,\n LedgerCursor,\n LedgerPage,\n LedgerEntry,\n UsageCharge,\n UsageChargeCursor,\n UsageChargePage,\n UsageRecordResult,\n UsageRecordFailure,\n UsageRecordSuccess,\n SweepResult,\n Team,\n TeamBalanceResult,\n TeamDeductionResult,\n TeamDeductionFailure,\n TeamDeductionSuccess,\n TeamMember,\n TopUserRow,\n UsageAnalyticsStore,\n} from \"./credits/types/index.js\";\n\n// Store options\nexport type { CreateLeaseOptions, SettleLeaseOptions } from \"./credits/store.js\";\nexport type {\n AddCreditsOptions,\n BeginBilledOperationOptions,\n CanAffordOptions,\n CreditsServiceOptions,\n DeductCreditsOptions,\n DeductFlatJobOptions,\n DeductOptions,\n DeductTeamOptions,\n GrantSubscriptionCycleOptions,\n LowBalanceConfig,\n MetricsOrAmount,\n PostDeductionContext,\n RecordUsageOptions,\n RefundCreditsOptions,\n ReserveOptions,\n RunBilledOptions,\n SettleOptions,\n} from \"./credits/service-types.js\";\n\n// Stores\nexport { CreditStore } from \"./credits/store.js\";\nexport { PostgresStore } from \"./credits/postgres/store.js\";\nexport type { PostgresStoreOptions } from \"./credits/postgres/store.js\";\nexport type { PostgresConnectionOptions } from \"./shared/postgres-client.js\";\n\n// Events\nexport type { CreditEvent, CreditEventType } from \"./credits/events.js\";\nexport { CreditEventEmitter } from \"./credits/events.js\";\n\n// Billing\nexport { BillingStore, PostgresBillingStore } from \"./billing/index.js\";\nexport { AUTO_RECHARGE_STATES, BillingEventType } from \"./billing/index.js\";\nexport type { BillingServiceOptions } from \"./billing/billing-service.js\";\n\nexport type {\n BillingAutoRechargeAttempt,\n BillingAutoRechargeAttemptState,\n BillingAutoRechargeProfile,\n BillingAutoRechargeStatus,\n BillingProvisioningPort,\n BillingCreditPostingResult,\n BillingCustomerInfo,\n BillingCustomerRecord,\n BillingDisputeInfo,\n BillingEvent,\n BillingEventClaim,\n BillingEventHandler,\n BillingEventResult,\n BillingInvoiceInfo,\n BillingInvoiceRecord,\n BillingOfferInterval,\n BillingPaymentInfo,\n BillingPaymentRecord,\n BillingPreferences,\n PostgresBillingStoreOptions,\n BillingRefundInfo,\n BillingSubscriptionInfo,\n BillingSubscriptionChange,\n BillingSubscriptionChangeInput,\n BillingSubscriptionOfferContext,\n BillingSubscriptionChangeState,\n BillingSubscriptionState,\n BillingSubscriptionStatus,\n EntitlementMode,\n ProviderRef,\n SubscriptionGrant,\n} from \"./billing/index.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO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AAE,MAAM,oBAAoB,CAAC","sourcesContent":["export { PricingEngine } from \"./engine.js\";\nexport type { CostBreakdown } from \"./breakdown.js\";\nexport { makeCostBreakdown } from \"./breakdown.js\";\nexport type { UsageMetrics } from \"./metrics.js\";\nexport type {\n BursarConfigData,\n CatalogRollout,\n ParsedBursarConfig,\n PricingConfig,\n CreditsConfig,\n PlanDefinition,\n PlanEvolution,\n PlanRollout,\n PlanRolloutStrategy,\n CommerceConfig,\n Window,\n Charge,\n FeatureDefinition,\n} from \"./config.js\";\nexport {\n canonicalBursarConfigDict,\n canonicalCatalogRolloutDict,\n loadCatalogRollout,\n loadConfigFromDict,\n validateCatalogRollout,\n} from \"./config.js\";\nexport { projectPublicCatalog } from \"./catalog.js\";\nexport type {\n PublicCatalog,\n PublicCatalogOffer,\n PublicCatalogPlan,\n PublicCatalogWindow,\n} from \"./catalog.js\";\nexport {\n AutoRechargeDisabledError,\n AutoRechargeNotConfiguredError,\n BillingError,\n BursarError,\n CapabilityNotConfiguredError,\n CapabilityNotSupportedError,\n CapReachedError,\n ConcurrencyLimitError,\n CreditError,\n ConfigError,\n ExpressionError,\n FeatureNotEntitledError,\n ImportError,\n InsufficientCreditsError,\n LeaseExpiredError,\n LeaseNotFoundError,\n OperationNotAllowedError,\n PaymentMethodRequiredError,\n ProviderCapabilityNotSupportedError,\n ProviderResponseError,\n CatalogNotLoadedError,\n RefundError,\n QuotaExceededError,\n StoreError,\n StoreClosedError,\n StoreTimeoutError,\n StoreUnavailableError,\n bursarErrorHttpStatus,\n bursarErrorPublicMessage,\n isBursarError,\n isRetryableBursarError,\n} from \"./errors.js\";\nexport type {\n BursarErrorCategory,\n BursarErrorDetails,\n BursarErrorOptions,\n SerializedBursarError,\n StoreErrorOptions,\n} from \"./errors.js\";\nexport { retryBursarOperation } from \"./retry.js\";\nexport type { BursarRetryOptions } from \"./retry.js\";\nexport { validateExpression, evaluateExpression } from \"./expr.js\";\n\n// Application facade. Credit/billing orchestration is internal to Bursar.\nexport { AccountService, Bursar, CatalogService } from \"./bursar.js\";\nexport type {\n AccountCreatedInput,\n AccountCreatedResult,\n BillingBursarOptions,\n BursarOptions,\n BillingCapability,\n BillingEventSink,\n CommerceOptions,\n CreditsService,\n CreditsOnlyBursarOptions,\n} from \"./bursar.js\";\nexport * from \"./commerce/index.js\";\n\n// Types\nexport type {\n AddCreditsResult,\n AddTeamMemberResult,\n AggregateStats,\n AllowanceResult,\n AvailableResult,\n BalanceResult,\n BillingMode,\n CatalogRevisionSummary,\n CatalogRevision,\n BucketBalance,\n BucketBalancesResult,\n BucketDefinition,\n CanAffordResult,\n CheckFeatureResult,\n CreateTeamResult,\n CreditMetadata,\n DailySpendRow,\n DeductionResult,\n DeductionFailure,\n DeductionSuccess,\n DeductWithAllowanceOptions,\n ExecuteGrantProgramRequest,\n GetUserPlanResult,\n GrantProgramAwardResult,\n GrantProgramTrigger,\n LeaseResult,\n LeaseFailure,\n LeaseSuccess,\n LeasePricingContext,\n ListQuotaEventsOptions,\n PlanAllowancePolicy,\n PlanAdmissionPolicy,\n PlanCreditPolicy,\n PlanMigrationBatchResult,\n PlanMigrationStartResult,\n QuotaEvent,\n QuotaState,\n RefundResult,\n RefundFailure,\n RefundSuccess,\n RevokeCreditsResult,\n ReleaseResult,\n SetUserPlanResult,\n SpendByModelRow,\n SpendByUserRow,\n ListLedgerEntriesOptions,\n ListUsageChargesOptions,\n ListUsageEntriesOptions,\n LedgerCursor,\n LedgerPage,\n LedgerEntry,\n UsageCharge,\n UsageChargeCursor,\n UsageChargePage,\n UsageRecordResult,\n UsageRecordFailure,\n UsageRecordSuccess,\n SweepResult,\n Team,\n TeamBalanceResult,\n TeamDeductionResult,\n TeamDeductionFailure,\n TeamDeductionSuccess,\n TeamMember,\n TopUserRow,\n UsageAnalyticsStore,\n} from \"./credits/types/index.js\";\n\n// Store options\nexport type { CreateLeaseOptions, SettleLeaseOptions } from \"./credits/store.js\";\nexport type {\n AddCreditsOptions,\n BeginBilledOperationOptions,\n CanAffordOptions,\n CreditsServiceOptions,\n DeductCreditsOptions,\n DeductFlatJobOptions,\n DeductOptions,\n DeductTeamOptions,\n ExactAmount,\n GrantSubscriptionCycleOptions,\n LowBalanceConfig,\n MetricsOrAmount,\n PostDeductionContext,\n RecordUsageOptions,\n RefundCreditsOptions,\n ReserveOptions,\n RunBilledOptions,\n SettleOptions,\n} from \"./credits/service-types.js\";\n\n// Stores\nexport { CreditStore } from \"./credits/store.js\";\nexport { PostgresStore } from \"./credits/postgres/store.js\";\nexport type { PostgresStoreOptions } from \"./credits/postgres/store.js\";\nexport type { PostgresConnectionOptions } from \"./shared/postgres-client.js\";\nexport { PROVIDER_ENVIRONMENTS } from \"./providers/environment.js\";\nexport type { ProviderEnvironment } from \"./providers/environment.js\";\n\n// Events\nexport type { CreditEvent, CreditEventType } from \"./credits/events.js\";\nexport { CreditEventEmitter } from \"./credits/events.js\";\n\n// Billing\nexport { BillingStore, PostgresBillingStore } from \"./billing/index.js\";\nexport { AUTO_RECHARGE_STATES, BillingEventType } from \"./billing/index.js\";\nexport type { BillingServiceOptions } from \"./billing/billing-service.js\";\n\nexport type {\n BillingAutoRechargeAttempt,\n BillingAutoRechargeAttemptState,\n BillingAutoRechargeProfile,\n BillingAutoRechargeStatus,\n BillingProvisioningPort,\n BillingCreditPostingResult,\n BillingCustomerInfo,\n BillingCustomerRecord,\n BillingDisputeInfo,\n BillingEvent,\n BillingEventClaim,\n BillingEventHandler,\n BillingEventResult,\n BillingInvoiceInfo,\n BillingInvoiceRecord,\n BillingOfferInterval,\n BillingPaymentInfo,\n BillingPaymentRecord,\n BillingPreferences,\n PostgresBillingStoreOptions,\n BillingRefundInfo,\n BillingSubscriptionInfo,\n BillingSubscriptionChange,\n BillingSubscriptionChangeInput,\n BillingSubscriptionOfferContext,\n BillingSubscriptionChangeState,\n BillingSubscriptionState,\n BillingSubscriptionStatus,\n EntitlementMode,\n ProviderRef,\n SubscriptionGrant,\n} from \"./billing/index.js\";\n"]}
@@ -4,9 +4,8 @@
4
4
  * Returns the raw parsed dict (suitable for ``loadConfigFromDict`` or
5
5
  * ``PricingEngine.fromDict``).
6
6
  *
7
- * For YAML files the optional peer dep ``js-yaml`` is loaded on demand. If it
8
- * is not installed, an {@link ImportError} is thrown so callers get a clear,
9
- * typed message.
7
+ * JSON syntax is validated by the platform parser and mapping keys are also
8
+ * checked by js-yaml so duplicate config fields cannot silently overwrite.
10
9
  */
11
10
  export declare function loadConfigFile(filepath: string): Promise<Record<string, unknown>>;
12
11
  //# sourceMappingURL=load-config-file.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"load-config-file.d.ts","sourceRoot":"","sources":["../src/load-config-file.ts"],"names":[],"mappings":"AAmEA;;;;;;;;;GASG;AACH,wBAAsB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAsCvF"}
1
+ {"version":3,"file":"load-config-file.d.ts","sourceRoot":"","sources":["../src/load-config-file.ts"],"names":[],"mappings":"AAwDA;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CA+BvF"}