atmn 2.0.149 → 2.0.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +28 -18
- package/dist/index.js +4 -1
- package/package.json +2 -2
- package/src/generated/apiRoutes.ts +8 -1
- package/src/generated/client.ts +767 -4831
- package/src/generated/emit.ts +1 -0
- package/src/generated/features.ts +2 -48
- package/src/generated/licenses.ts +2 -48
- package/src/generated/lintRules.ts +4 -1
- package/src/generated/plans.ts +10 -240
- package/src/generated/skills.ts +9 -9
- package/src/generated/variants.ts +6 -144
package/src/generated/emit.ts
CHANGED
|
@@ -290,6 +290,7 @@ export const COLLECTIONS: Readonly<Record<string, CollectionSpec>> = {
|
|
|
290
290
|
"variants.customize.upsertLicenses.customize.addItems.featureOverride.creditSchema.dimensions.*.tierBehavior",
|
|
291
291
|
"variants.customize.upsertLicenses.customize.addItems.featureOverride.creditSchema.dimensions.*.tiers",
|
|
292
292
|
"variants.customize.upsertLicenses.customize.addItems.featureOverride.creditSchema.dimensions.*.tiers.creditCost",
|
|
293
|
+
"variants.customize.upsertLicenses.customize.addItems.featureOverride.creditSchema.dimensions.*.tiers.to",
|
|
293
294
|
"variants.customize.upsertLicenses.customize.addItems.featureOverride.creditSchema.excluded",
|
|
294
295
|
"variants.customize.upsertLicenses.customize.addItems.featureOverride.creditSchema.meteredFeatureId",
|
|
295
296
|
"variants.customize.upsertLicenses.customize.addItems.featureOverride.creditSchema.multipliers.*.match",
|
|
@@ -18,30 +18,7 @@ export type Feature = {
|
|
|
18
18
|
/** Number of metered-feature units priced together. Defaults to one when omitted. */
|
|
19
19
|
billingUnits?: number;
|
|
20
20
|
/** Named rates chosen by event properties. The most specific match sets the rate; with no match the item's own rate applies. */
|
|
21
|
-
dimensions?: Record<
|
|
22
|
-
string,
|
|
23
|
-
| {
|
|
24
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
25
|
-
match: Record<string, string | number | boolean>;
|
|
26
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
27
|
-
priority?: number;
|
|
28
|
-
tierBehavior: "graduated";
|
|
29
|
-
tiers: Array<{
|
|
30
|
-
/** Inclusive upper usage boundary for this graduated tier. The final tier must be 'inf'. */
|
|
31
|
-
to: number | "inf";
|
|
32
|
-
/** Credits consumed per billing-unit group within this tier. */
|
|
33
|
-
creditCost: number;
|
|
34
|
-
}>;
|
|
35
|
-
}
|
|
36
|
-
| {
|
|
37
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
38
|
-
match: Record<string, string | number | boolean>;
|
|
39
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
40
|
-
priority?: number;
|
|
41
|
-
/** Credits consumed per billing-unit group when this dimension matches. */
|
|
42
|
-
creditCost: number;
|
|
43
|
-
}
|
|
44
|
-
>;
|
|
21
|
+
dimensions?: Record<string, unknown>;
|
|
45
22
|
/** Named adjustments chosen by event properties. Every match applies: factors multiply, then adds are summed. */
|
|
46
23
|
multipliers?: Record<
|
|
47
24
|
string,
|
|
@@ -68,30 +45,7 @@ export type Feature = {
|
|
|
68
45
|
/** Number of metered-feature units priced together. Defaults to one when omitted. */
|
|
69
46
|
billingUnits?: number;
|
|
70
47
|
/** Named rates chosen by event properties. The most specific match sets the rate; with no match the item's own rate applies. */
|
|
71
|
-
dimensions?: Record<
|
|
72
|
-
string,
|
|
73
|
-
| {
|
|
74
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
75
|
-
match: Record<string, string | number | boolean>;
|
|
76
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
77
|
-
priority?: number;
|
|
78
|
-
tierBehavior: "graduated";
|
|
79
|
-
tiers: Array<{
|
|
80
|
-
/** Inclusive upper usage boundary for this graduated tier. The final tier must be 'inf'. */
|
|
81
|
-
to: number | "inf";
|
|
82
|
-
/** Credits consumed per billing-unit group within this tier. */
|
|
83
|
-
creditCost: number;
|
|
84
|
-
}>;
|
|
85
|
-
}
|
|
86
|
-
| {
|
|
87
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
88
|
-
match: Record<string, string | number | boolean>;
|
|
89
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
90
|
-
priority?: number;
|
|
91
|
-
/** Credits consumed per billing-unit group when this dimension matches. */
|
|
92
|
-
creditCost: number;
|
|
93
|
-
}
|
|
94
|
-
>;
|
|
48
|
+
dimensions?: Record<string, unknown>;
|
|
95
49
|
/** Named adjustments chosen by event properties. Every match applies: factors multiply, then adds are summed. */
|
|
96
50
|
multipliers?: Record<
|
|
97
51
|
string,
|
|
@@ -145,30 +145,7 @@ export type License = {
|
|
|
145
145
|
/** Number of metered-feature units priced together. Defaults to one when omitted. */
|
|
146
146
|
billingUnits?: number;
|
|
147
147
|
/** Named rates chosen by event properties. The most specific match sets the rate; with no match the item's own rate applies. */
|
|
148
|
-
dimensions?: Record<
|
|
149
|
-
string,
|
|
150
|
-
| {
|
|
151
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
152
|
-
match: Record<string, string | number | boolean>;
|
|
153
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
154
|
-
priority?: number;
|
|
155
|
-
tierBehavior: "graduated";
|
|
156
|
-
tiers: Array<{
|
|
157
|
-
/** Inclusive upper usage boundary for this graduated tier. The final tier must be 'inf'. */
|
|
158
|
-
to: number | "inf";
|
|
159
|
-
/** Credits consumed per billing-unit group within this tier. */
|
|
160
|
-
creditCost: number;
|
|
161
|
-
}>;
|
|
162
|
-
}
|
|
163
|
-
| {
|
|
164
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
165
|
-
match: Record<string, string | number | boolean>;
|
|
166
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
167
|
-
priority?: number;
|
|
168
|
-
/** Credits consumed per billing-unit group when this dimension matches. */
|
|
169
|
-
creditCost: number;
|
|
170
|
-
}
|
|
171
|
-
>;
|
|
148
|
+
dimensions?: Record<string, unknown>;
|
|
172
149
|
/** Named adjustments chosen by event properties. Every match applies: factors multiply, then adds are summed. */
|
|
173
150
|
multipliers?: Record<
|
|
174
151
|
string,
|
|
@@ -195,30 +172,7 @@ export type License = {
|
|
|
195
172
|
/** Number of metered-feature units priced together. Defaults to one when omitted. */
|
|
196
173
|
billingUnits?: number;
|
|
197
174
|
/** Named rates chosen by event properties. The most specific match sets the rate; with no match the item's own rate applies. */
|
|
198
|
-
dimensions?: Record<
|
|
199
|
-
string,
|
|
200
|
-
| {
|
|
201
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
202
|
-
match: Record<string, string | number | boolean>;
|
|
203
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
204
|
-
priority?: number;
|
|
205
|
-
tierBehavior: "graduated";
|
|
206
|
-
tiers: Array<{
|
|
207
|
-
/** Inclusive upper usage boundary for this graduated tier. The final tier must be 'inf'. */
|
|
208
|
-
to: number | "inf";
|
|
209
|
-
/** Credits consumed per billing-unit group within this tier. */
|
|
210
|
-
creditCost: number;
|
|
211
|
-
}>;
|
|
212
|
-
}
|
|
213
|
-
| {
|
|
214
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
215
|
-
match: Record<string, string | number | boolean>;
|
|
216
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
217
|
-
priority?: number;
|
|
218
|
-
/** Credits consumed per billing-unit group when this dimension matches. */
|
|
219
|
-
creditCost: number;
|
|
220
|
-
}
|
|
221
|
-
>;
|
|
175
|
+
dimensions?: Record<string, unknown>;
|
|
222
176
|
/** Named adjustments chosen by event properties. Every match applies: factors multiply, then adds are summed. */
|
|
223
177
|
multipliers?: Record<
|
|
224
178
|
string,
|
|
@@ -1743,8 +1743,11 @@ export const LINT_RULES: LintRules = {
|
|
|
1743
1743
|
},
|
|
1744
1744
|
"plans.variants.customize.upsertLicenses.customize.addItems.featureOverride.creditSchema.dimensions.*.tiers":
|
|
1745
1745
|
{
|
|
1746
|
-
required: ["creditCost"],
|
|
1746
|
+
required: ["creditCost", "to"],
|
|
1747
1747
|
fields: {
|
|
1748
|
+
to: {
|
|
1749
|
+
exclusiveMinimum: 0,
|
|
1750
|
+
},
|
|
1748
1751
|
creditCost: {
|
|
1749
1752
|
minimum: 0,
|
|
1750
1753
|
},
|
package/src/generated/plans.ts
CHANGED
|
@@ -190,30 +190,7 @@ export type Plan = {
|
|
|
190
190
|
/** Number of metered-feature units priced together. Defaults to one when omitted. */
|
|
191
191
|
billingUnits?: number;
|
|
192
192
|
/** Named rates chosen by event properties. The most specific match sets the rate; with no match the item's own rate applies. */
|
|
193
|
-
dimensions?: Record<
|
|
194
|
-
string,
|
|
195
|
-
| {
|
|
196
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
197
|
-
match: Record<string, string | number | boolean>;
|
|
198
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
199
|
-
priority?: number;
|
|
200
|
-
tierBehavior: "graduated";
|
|
201
|
-
tiers: Array<{
|
|
202
|
-
/** Inclusive upper usage boundary for this graduated tier. The final tier must be 'inf'. */
|
|
203
|
-
to: number | "inf";
|
|
204
|
-
/** Credits consumed per billing-unit group within this tier. */
|
|
205
|
-
creditCost: number;
|
|
206
|
-
}>;
|
|
207
|
-
}
|
|
208
|
-
| {
|
|
209
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
210
|
-
match: Record<string, string | number | boolean>;
|
|
211
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
212
|
-
priority?: number;
|
|
213
|
-
/** Credits consumed per billing-unit group when this dimension matches. */
|
|
214
|
-
creditCost: number;
|
|
215
|
-
}
|
|
216
|
-
>;
|
|
193
|
+
dimensions?: Record<string, unknown>;
|
|
217
194
|
/** Named adjustments chosen by event properties. Every match applies: factors multiply, then adds are summed. */
|
|
218
195
|
multipliers?: Record<
|
|
219
196
|
string,
|
|
@@ -240,30 +217,7 @@ export type Plan = {
|
|
|
240
217
|
/** Number of metered-feature units priced together. Defaults to one when omitted. */
|
|
241
218
|
billingUnits?: number;
|
|
242
219
|
/** Named rates chosen by event properties. The most specific match sets the rate; with no match the item's own rate applies. */
|
|
243
|
-
dimensions?: Record<
|
|
244
|
-
string,
|
|
245
|
-
| {
|
|
246
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
247
|
-
match: Record<string, string | number | boolean>;
|
|
248
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
249
|
-
priority?: number;
|
|
250
|
-
tierBehavior: "graduated";
|
|
251
|
-
tiers: Array<{
|
|
252
|
-
/** Inclusive upper usage boundary for this graduated tier. The final tier must be 'inf'. */
|
|
253
|
-
to: number | "inf";
|
|
254
|
-
/** Credits consumed per billing-unit group within this tier. */
|
|
255
|
-
creditCost: number;
|
|
256
|
-
}>;
|
|
257
|
-
}
|
|
258
|
-
| {
|
|
259
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
260
|
-
match: Record<string, string | number | boolean>;
|
|
261
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
262
|
-
priority?: number;
|
|
263
|
-
/** Credits consumed per billing-unit group when this dimension matches. */
|
|
264
|
-
creditCost: number;
|
|
265
|
-
}
|
|
266
|
-
>;
|
|
220
|
+
dimensions?: Record<string, unknown>;
|
|
267
221
|
/** Named adjustments chosen by event properties. Every match applies: factors multiply, then adds are summed. */
|
|
268
222
|
multipliers?: Record<
|
|
269
223
|
string,
|
|
@@ -601,30 +555,7 @@ export type Plan = {
|
|
|
601
555
|
/** Number of metered-feature units priced together. Defaults to one when omitted. */
|
|
602
556
|
billingUnits?: number;
|
|
603
557
|
/** Named rates chosen by event properties. The most specific match sets the rate; with no match the item's own rate applies. */
|
|
604
|
-
dimensions?: Record<
|
|
605
|
-
string,
|
|
606
|
-
| {
|
|
607
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
608
|
-
match: Record<string, string | number | boolean>;
|
|
609
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
610
|
-
priority?: number;
|
|
611
|
-
tierBehavior: "graduated";
|
|
612
|
-
tiers: Array<{
|
|
613
|
-
/** Inclusive upper usage boundary for this graduated tier. The final tier must be 'inf'. */
|
|
614
|
-
to: number | "inf";
|
|
615
|
-
/** Credits consumed per billing-unit group within this tier. */
|
|
616
|
-
creditCost: number;
|
|
617
|
-
}>;
|
|
618
|
-
}
|
|
619
|
-
| {
|
|
620
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
621
|
-
match: Record<string, string | number | boolean>;
|
|
622
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
623
|
-
priority?: number;
|
|
624
|
-
/** Credits consumed per billing-unit group when this dimension matches. */
|
|
625
|
-
creditCost: number;
|
|
626
|
-
}
|
|
627
|
-
>;
|
|
558
|
+
dimensions?: Record<string, unknown>;
|
|
628
559
|
/** Named adjustments chosen by event properties. Every match applies: factors multiply, then adds are summed. */
|
|
629
560
|
multipliers?: Record<
|
|
630
561
|
string,
|
|
@@ -651,30 +582,7 @@ export type Plan = {
|
|
|
651
582
|
/** Number of metered-feature units priced together. Defaults to one when omitted. */
|
|
652
583
|
billingUnits?: number;
|
|
653
584
|
/** Named rates chosen by event properties. The most specific match sets the rate; with no match the item's own rate applies. */
|
|
654
|
-
dimensions?: Record<
|
|
655
|
-
string,
|
|
656
|
-
| {
|
|
657
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
658
|
-
match: Record<string, string | number | boolean>;
|
|
659
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
660
|
-
priority?: number;
|
|
661
|
-
tierBehavior: "graduated";
|
|
662
|
-
tiers: Array<{
|
|
663
|
-
/** Inclusive upper usage boundary for this graduated tier. The final tier must be 'inf'. */
|
|
664
|
-
to: number | "inf";
|
|
665
|
-
/** Credits consumed per billing-unit group within this tier. */
|
|
666
|
-
creditCost: number;
|
|
667
|
-
}>;
|
|
668
|
-
}
|
|
669
|
-
| {
|
|
670
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
671
|
-
match: Record<string, string | number | boolean>;
|
|
672
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
673
|
-
priority?: number;
|
|
674
|
-
/** Credits consumed per billing-unit group when this dimension matches. */
|
|
675
|
-
creditCost: number;
|
|
676
|
-
}
|
|
677
|
-
>;
|
|
585
|
+
dimensions?: Record<string, unknown>;
|
|
678
586
|
/** Named adjustments chosen by event properties. Every match applies: factors multiply, then adds are summed. */
|
|
679
587
|
multipliers?: Record<
|
|
680
588
|
string,
|
|
@@ -839,30 +747,7 @@ export type Plan = {
|
|
|
839
747
|
/** Number of metered-feature units priced together. Defaults to one when omitted. */
|
|
840
748
|
billingUnits?: number;
|
|
841
749
|
/** Named rates chosen by event properties. The most specific match sets the rate; with no match the item's own rate applies. */
|
|
842
|
-
dimensions?: Record<
|
|
843
|
-
string,
|
|
844
|
-
| {
|
|
845
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
846
|
-
match: Record<string, string | number | boolean>;
|
|
847
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
848
|
-
priority?: number;
|
|
849
|
-
tierBehavior: "graduated";
|
|
850
|
-
tiers: Array<{
|
|
851
|
-
/** Inclusive upper usage boundary for this graduated tier. The final tier must be 'inf'. */
|
|
852
|
-
to: number | "inf";
|
|
853
|
-
/** Credits consumed per billing-unit group within this tier. */
|
|
854
|
-
creditCost: number;
|
|
855
|
-
}>;
|
|
856
|
-
}
|
|
857
|
-
| {
|
|
858
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
859
|
-
match: Record<string, string | number | boolean>;
|
|
860
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
861
|
-
priority?: number;
|
|
862
|
-
/** Credits consumed per billing-unit group when this dimension matches. */
|
|
863
|
-
creditCost: number;
|
|
864
|
-
}
|
|
865
|
-
>;
|
|
750
|
+
dimensions?: Record<string, unknown>;
|
|
866
751
|
/** Named adjustments chosen by event properties. Every match applies: factors multiply, then adds are summed. */
|
|
867
752
|
multipliers?: Record<
|
|
868
753
|
string,
|
|
@@ -889,30 +774,7 @@ export type Plan = {
|
|
|
889
774
|
/** Number of metered-feature units priced together. Defaults to one when omitted. */
|
|
890
775
|
billingUnits?: number;
|
|
891
776
|
/** Named rates chosen by event properties. The most specific match sets the rate; with no match the item's own rate applies. */
|
|
892
|
-
dimensions?: Record<
|
|
893
|
-
string,
|
|
894
|
-
| {
|
|
895
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
896
|
-
match: Record<string, string | number | boolean>;
|
|
897
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
898
|
-
priority?: number;
|
|
899
|
-
tierBehavior: "graduated";
|
|
900
|
-
tiers: Array<{
|
|
901
|
-
/** Inclusive upper usage boundary for this graduated tier. The final tier must be 'inf'. */
|
|
902
|
-
to: number | "inf";
|
|
903
|
-
/** Credits consumed per billing-unit group within this tier. */
|
|
904
|
-
creditCost: number;
|
|
905
|
-
}>;
|
|
906
|
-
}
|
|
907
|
-
| {
|
|
908
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
909
|
-
match: Record<string, string | number | boolean>;
|
|
910
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
911
|
-
priority?: number;
|
|
912
|
-
/** Credits consumed per billing-unit group when this dimension matches. */
|
|
913
|
-
creditCost: number;
|
|
914
|
-
}
|
|
915
|
-
>;
|
|
777
|
+
dimensions?: Record<string, unknown>;
|
|
916
778
|
/** Named adjustments chosen by event properties. Every match applies: factors multiply, then adds are summed. */
|
|
917
779
|
multipliers?: Record<
|
|
918
780
|
string,
|
|
@@ -1230,30 +1092,7 @@ export type Plan = {
|
|
|
1230
1092
|
/** Number of metered-feature units priced together. Defaults to one when omitted. */
|
|
1231
1093
|
billingUnits?: number;
|
|
1232
1094
|
/** Named rates chosen by event properties. The most specific match sets the rate; with no match the item's own rate applies. */
|
|
1233
|
-
dimensions?: Record<
|
|
1234
|
-
string,
|
|
1235
|
-
| {
|
|
1236
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
1237
|
-
match: Record<string, string | number | boolean>;
|
|
1238
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
1239
|
-
priority?: number;
|
|
1240
|
-
tierBehavior: "graduated";
|
|
1241
|
-
tiers: Array<{
|
|
1242
|
-
/** Inclusive upper usage boundary for this graduated tier. The final tier must be 'inf'. */
|
|
1243
|
-
to?: unknown;
|
|
1244
|
-
/** Credits consumed per billing-unit group within this tier. */
|
|
1245
|
-
creditCost: number;
|
|
1246
|
-
}>;
|
|
1247
|
-
}
|
|
1248
|
-
| {
|
|
1249
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
1250
|
-
match: Record<string, string | number | boolean>;
|
|
1251
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
1252
|
-
priority?: number;
|
|
1253
|
-
/** Credits consumed per billing-unit group when this dimension matches. */
|
|
1254
|
-
creditCost: number;
|
|
1255
|
-
}
|
|
1256
|
-
>;
|
|
1095
|
+
dimensions?: Record<string, unknown>;
|
|
1257
1096
|
/** Named adjustments chosen by event properties. Every match applies: factors multiply, then adds are summed. */
|
|
1258
1097
|
multipliers?: Record<
|
|
1259
1098
|
string,
|
|
@@ -1280,30 +1119,7 @@ export type Plan = {
|
|
|
1280
1119
|
/** Number of metered-feature units priced together. Defaults to one when omitted. */
|
|
1281
1120
|
billingUnits?: number;
|
|
1282
1121
|
/** Named rates chosen by event properties. The most specific match sets the rate; with no match the item's own rate applies. */
|
|
1283
|
-
dimensions?: Record<
|
|
1284
|
-
string,
|
|
1285
|
-
| {
|
|
1286
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
1287
|
-
match: Record<string, string | number | boolean>;
|
|
1288
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
1289
|
-
priority?: number;
|
|
1290
|
-
tierBehavior: "graduated";
|
|
1291
|
-
tiers: Array<{
|
|
1292
|
-
/** Inclusive upper usage boundary for this graduated tier. The final tier must be 'inf'. */
|
|
1293
|
-
to?: unknown;
|
|
1294
|
-
/** Credits consumed per billing-unit group within this tier. */
|
|
1295
|
-
creditCost: number;
|
|
1296
|
-
}>;
|
|
1297
|
-
}
|
|
1298
|
-
| {
|
|
1299
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
1300
|
-
match: Record<string, string | number | boolean>;
|
|
1301
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
1302
|
-
priority?: number;
|
|
1303
|
-
/** Credits consumed per billing-unit group when this dimension matches. */
|
|
1304
|
-
creditCost: number;
|
|
1305
|
-
}
|
|
1306
|
-
>;
|
|
1122
|
+
dimensions?: Record<string, unknown>;
|
|
1307
1123
|
/** Named adjustments chosen by event properties. Every match applies: factors multiply, then adds are summed. */
|
|
1308
1124
|
multipliers?: Record<
|
|
1309
1125
|
string,
|
|
@@ -1531,30 +1347,7 @@ export type Plan = {
|
|
|
1531
1347
|
/** Number of metered-feature units priced together. Defaults to one when omitted. */
|
|
1532
1348
|
billingUnits?: number;
|
|
1533
1349
|
/** Named rates chosen by event properties. The most specific match sets the rate; with no match the item's own rate applies. */
|
|
1534
|
-
dimensions?: Record<
|
|
1535
|
-
string,
|
|
1536
|
-
| {
|
|
1537
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
1538
|
-
match: Record<string, string | number | boolean>;
|
|
1539
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
1540
|
-
priority?: number;
|
|
1541
|
-
tierBehavior: "graduated";
|
|
1542
|
-
tiers: Array<{
|
|
1543
|
-
/** Inclusive upper usage boundary for this graduated tier. The final tier must be 'inf'. */
|
|
1544
|
-
to: number | "inf";
|
|
1545
|
-
/** Credits consumed per billing-unit group within this tier. */
|
|
1546
|
-
creditCost: number;
|
|
1547
|
-
}>;
|
|
1548
|
-
}
|
|
1549
|
-
| {
|
|
1550
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
1551
|
-
match: Record<string, string | number | boolean>;
|
|
1552
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
1553
|
-
priority?: number;
|
|
1554
|
-
/** Credits consumed per billing-unit group when this dimension matches. */
|
|
1555
|
-
creditCost: number;
|
|
1556
|
-
}
|
|
1557
|
-
>;
|
|
1350
|
+
dimensions?: Record<string, unknown>;
|
|
1558
1351
|
/** Named adjustments chosen by event properties. Every match applies: factors multiply, then adds are summed. */
|
|
1559
1352
|
multipliers?: Record<
|
|
1560
1353
|
string,
|
|
@@ -1581,30 +1374,7 @@ export type Plan = {
|
|
|
1581
1374
|
/** Number of metered-feature units priced together. Defaults to one when omitted. */
|
|
1582
1375
|
billingUnits?: number;
|
|
1583
1376
|
/** Named rates chosen by event properties. The most specific match sets the rate; with no match the item's own rate applies. */
|
|
1584
|
-
dimensions?: Record<
|
|
1585
|
-
string,
|
|
1586
|
-
| {
|
|
1587
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
1588
|
-
match: Record<string, string | number | boolean>;
|
|
1589
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
1590
|
-
priority?: number;
|
|
1591
|
-
tierBehavior: "graduated";
|
|
1592
|
-
tiers: Array<{
|
|
1593
|
-
/** Inclusive upper usage boundary for this graduated tier. The final tier must be 'inf'. */
|
|
1594
|
-
to: number | "inf";
|
|
1595
|
-
/** Credits consumed per billing-unit group within this tier. */
|
|
1596
|
-
creditCost: number;
|
|
1597
|
-
}>;
|
|
1598
|
-
}
|
|
1599
|
-
| {
|
|
1600
|
-
/** Event properties this entry applies to. Every key must equal the tracked property, compared as strings. */
|
|
1601
|
-
match: Record<string, string | number | boolean>;
|
|
1602
|
-
/** Breaks ties between dimensions that match the same number of keys. Higher wins. */
|
|
1603
|
-
priority?: number;
|
|
1604
|
-
/** Credits consumed per billing-unit group when this dimension matches. */
|
|
1605
|
-
creditCost: number;
|
|
1606
|
-
}
|
|
1607
|
-
>;
|
|
1377
|
+
dimensions?: Record<string, unknown>;
|
|
1608
1378
|
/** Named adjustments chosen by event properties. Every match applies: factors multiply, then adds are summed. */
|
|
1609
1379
|
multipliers?: Record<
|
|
1610
1380
|
string,
|