atmn 2.0.142 → 2.0.144
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 +50 -85
- package/dist/index.js +30 -75
- package/package.json +2 -2
- package/src/generated/client.ts +912 -158
- package/src/generated/emit.ts +10 -0
- package/src/generated/licenses.ts +7 -1
- package/src/generated/lintRules.ts +30 -75
- package/src/generated/plans.ts +35 -5
- package/src/generated/skills.ts +9 -9
- package/src/generated/variants.ts +21 -3
package/src/generated/emit.ts
CHANGED
|
@@ -143,6 +143,7 @@ export const COLLECTIONS: Readonly<Record<string, CollectionSpec>> = {
|
|
|
143
143
|
"items.featureOverride.creditSchema.dimensions.*.tiers",
|
|
144
144
|
"items.featureOverride.creditSchema.dimensions.*.tiers.creditCost",
|
|
145
145
|
"items.featureOverride.creditSchema.dimensions.*.tiers.to",
|
|
146
|
+
"items.featureOverride.creditSchema.excluded",
|
|
146
147
|
"items.featureOverride.creditSchema.meteredFeatureId",
|
|
147
148
|
"items.featureOverride.creditSchema.multipliers.*.match",
|
|
148
149
|
"items.featureOverride.creditSchema.tierBehavior",
|
|
@@ -171,6 +172,7 @@ export const COLLECTIONS: Readonly<Record<string, CollectionSpec>> = {
|
|
|
171
172
|
"licenses.customize.addItems.featureOverride.creditSchema.dimensions.*.tiers",
|
|
172
173
|
"licenses.customize.addItems.featureOverride.creditSchema.dimensions.*.tiers.creditCost",
|
|
173
174
|
"licenses.customize.addItems.featureOverride.creditSchema.dimensions.*.tiers.to",
|
|
175
|
+
"licenses.customize.addItems.featureOverride.creditSchema.excluded",
|
|
174
176
|
"licenses.customize.addItems.featureOverride.creditSchema.meteredFeatureId",
|
|
175
177
|
"licenses.customize.addItems.featureOverride.creditSchema.multipliers.*.match",
|
|
176
178
|
"licenses.customize.addItems.featureOverride.creditSchema.tierBehavior",
|
|
@@ -214,6 +216,7 @@ export const COLLECTIONS: Readonly<Record<string, CollectionSpec>> = {
|
|
|
214
216
|
"variants.customize.addItems.featureOverride.creditSchema.dimensions.*.tiers",
|
|
215
217
|
"variants.customize.addItems.featureOverride.creditSchema.dimensions.*.tiers.creditCost",
|
|
216
218
|
"variants.customize.addItems.featureOverride.creditSchema.dimensions.*.tiers.to",
|
|
219
|
+
"variants.customize.addItems.featureOverride.creditSchema.excluded",
|
|
217
220
|
"variants.customize.addItems.featureOverride.creditSchema.meteredFeatureId",
|
|
218
221
|
"variants.customize.addItems.featureOverride.creditSchema.multipliers.*.match",
|
|
219
222
|
"variants.customize.addItems.featureOverride.creditSchema.tierBehavior",
|
|
@@ -255,6 +258,7 @@ export const COLLECTIONS: Readonly<Record<string, CollectionSpec>> = {
|
|
|
255
258
|
"variants.customize.items.featureOverride.creditSchema.dimensions.*.tiers",
|
|
256
259
|
"variants.customize.items.featureOverride.creditSchema.dimensions.*.tiers.creditCost",
|
|
257
260
|
"variants.customize.items.featureOverride.creditSchema.dimensions.*.tiers.to",
|
|
261
|
+
"variants.customize.items.featureOverride.creditSchema.excluded",
|
|
258
262
|
"variants.customize.items.featureOverride.creditSchema.meteredFeatureId",
|
|
259
263
|
"variants.customize.items.featureOverride.creditSchema.multipliers.*.match",
|
|
260
264
|
"variants.customize.items.featureOverride.creditSchema.tierBehavior",
|
|
@@ -286,6 +290,7 @@ export const COLLECTIONS: Readonly<Record<string, CollectionSpec>> = {
|
|
|
286
290
|
"variants.customize.upsertLicenses.customize.addItems.featureOverride.creditSchema.dimensions.*.tierBehavior",
|
|
287
291
|
"variants.customize.upsertLicenses.customize.addItems.featureOverride.creditSchema.dimensions.*.tiers",
|
|
288
292
|
"variants.customize.upsertLicenses.customize.addItems.featureOverride.creditSchema.dimensions.*.tiers.creditCost",
|
|
293
|
+
"variants.customize.upsertLicenses.customize.addItems.featureOverride.creditSchema.excluded",
|
|
289
294
|
"variants.customize.upsertLicenses.customize.addItems.featureOverride.creditSchema.meteredFeatureId",
|
|
290
295
|
"variants.customize.upsertLicenses.customize.addItems.featureOverride.creditSchema.multipliers.*.match",
|
|
291
296
|
"variants.customize.upsertLicenses.customize.addItems.featureOverride.creditSchema.tierBehavior",
|
|
@@ -388,6 +393,7 @@ export const COLLECTIONS: Readonly<Record<string, CollectionSpec>> = {
|
|
|
388
393
|
"items.featureOverride.creditSchema.dimensions.*.tiers",
|
|
389
394
|
"items.featureOverride.creditSchema.dimensions.*.tiers.creditCost",
|
|
390
395
|
"items.featureOverride.creditSchema.dimensions.*.tiers.to",
|
|
396
|
+
"items.featureOverride.creditSchema.excluded",
|
|
391
397
|
"items.featureOverride.creditSchema.meteredFeatureId",
|
|
392
398
|
"items.featureOverride.creditSchema.multipliers",
|
|
393
399
|
"items.featureOverride.creditSchema.multipliers.*.add",
|
|
@@ -464,6 +470,7 @@ export const COLLECTIONS: Readonly<Record<string, CollectionSpec>> = {
|
|
|
464
470
|
"licenses.customize.addItems.featureOverride.creditSchema.dimensions.*.tiers",
|
|
465
471
|
"licenses.customize.addItems.featureOverride.creditSchema.dimensions.*.tiers.creditCost",
|
|
466
472
|
"licenses.customize.addItems.featureOverride.creditSchema.dimensions.*.tiers.to",
|
|
473
|
+
"licenses.customize.addItems.featureOverride.creditSchema.excluded",
|
|
467
474
|
"licenses.customize.addItems.featureOverride.creditSchema.meteredFeatureId",
|
|
468
475
|
"licenses.customize.addItems.featureOverride.creditSchema.multipliers",
|
|
469
476
|
"licenses.customize.addItems.featureOverride.creditSchema.multipliers.*.add",
|
|
@@ -579,6 +586,7 @@ export const COLLECTIONS: Readonly<Record<string, CollectionSpec>> = {
|
|
|
579
586
|
"variants.customize.addItems.featureOverride.creditSchema.dimensions.*.tiers",
|
|
580
587
|
"variants.customize.addItems.featureOverride.creditSchema.dimensions.*.tiers.creditCost",
|
|
581
588
|
"variants.customize.addItems.featureOverride.creditSchema.dimensions.*.tiers.to",
|
|
589
|
+
"variants.customize.addItems.featureOverride.creditSchema.excluded",
|
|
582
590
|
"variants.customize.addItems.featureOverride.creditSchema.meteredFeatureId",
|
|
583
591
|
"variants.customize.addItems.featureOverride.creditSchema.multipliers",
|
|
584
592
|
"variants.customize.addItems.featureOverride.creditSchema.multipliers.*.add",
|
|
@@ -693,6 +701,7 @@ export const COLLECTIONS: Readonly<Record<string, CollectionSpec>> = {
|
|
|
693
701
|
"variants.customize.items.featureOverride.creditSchema.dimensions.*.tiers",
|
|
694
702
|
"variants.customize.items.featureOverride.creditSchema.dimensions.*.tiers.creditCost",
|
|
695
703
|
"variants.customize.items.featureOverride.creditSchema.dimensions.*.tiers.to",
|
|
704
|
+
"variants.customize.items.featureOverride.creditSchema.excluded",
|
|
696
705
|
"variants.customize.items.featureOverride.creditSchema.meteredFeatureId",
|
|
697
706
|
"variants.customize.items.featureOverride.creditSchema.multipliers",
|
|
698
707
|
"variants.customize.items.featureOverride.creditSchema.multipliers.*.add",
|
|
@@ -781,6 +790,7 @@ export const COLLECTIONS: Readonly<Record<string, CollectionSpec>> = {
|
|
|
781
790
|
"variants.customize.upsertLicenses.customize.addItems.featureOverride.creditSchema.dimensions.*.tiers",
|
|
782
791
|
"variants.customize.upsertLicenses.customize.addItems.featureOverride.creditSchema.dimensions.*.tiers.creditCost",
|
|
783
792
|
"variants.customize.upsertLicenses.customize.addItems.featureOverride.creditSchema.dimensions.*.tiers.to",
|
|
793
|
+
"variants.customize.upsertLicenses.customize.addItems.featureOverride.creditSchema.excluded",
|
|
784
794
|
"variants.customize.upsertLicenses.customize.addItems.featureOverride.creditSchema.meteredFeatureId",
|
|
785
795
|
"variants.customize.upsertLicenses.customize.addItems.featureOverride.creditSchema.multipliers",
|
|
786
796
|
"variants.customize.upsertLicenses.customize.addItems.featureOverride.creditSchema.multipliers.*.add",
|
|
@@ -137,7 +137,7 @@ export type License = {
|
|
|
137
137
|
};
|
|
138
138
|
/** Overrides fields of this item's feature for customers on this plan (e.g. a credit system's credit_schema). */
|
|
139
139
|
featureOverride?: {
|
|
140
|
-
/** For credit system features:
|
|
140
|
+
/** For credit system features: merges into the feature's credit_schema by metered_feature_id for customers on this plan. A row with a rate overrides or adds that feature, a row with `excluded: true` removes it, and unlisted features keep the credit system's rate. */
|
|
141
141
|
creditSchema?: Array<
|
|
142
142
|
| {
|
|
143
143
|
/** ID of the metered feature that draws from this credit system. */
|
|
@@ -234,6 +234,12 @@ export type License = {
|
|
|
234
234
|
/** Credits consumed per billing-unit group. */
|
|
235
235
|
creditCost: number;
|
|
236
236
|
}
|
|
237
|
+
| {
|
|
238
|
+
/** ID of the metered feature to remove from the credit system. */
|
|
239
|
+
meteredFeatureId: string;
|
|
240
|
+
/** Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate. */
|
|
241
|
+
excluded: true;
|
|
242
|
+
}
|
|
237
243
|
>;
|
|
238
244
|
/** For AI credit system features: replaces the feature's markup chain entirely for customers on this plan. An unset level means no markup at that level rather than inheriting the feature's. */
|
|
239
245
|
markups?: {
|
|
@@ -429,28 +429,22 @@ export const LINT_RULES: LintRules = {
|
|
|
429
429
|
},
|
|
430
430
|
"plans.items.featureOverride.creditSchema": {
|
|
431
431
|
variants: {
|
|
432
|
-
on: "
|
|
432
|
+
on: "excluded",
|
|
433
433
|
byValue: {
|
|
434
|
-
|
|
435
|
-
required: ["
|
|
434
|
+
true: {
|
|
435
|
+
required: ["excluded", "meteredFeatureId"],
|
|
436
436
|
fields: {
|
|
437
437
|
meteredFeatureId: {
|
|
438
438
|
minLength: 1,
|
|
439
439
|
},
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
},
|
|
443
|
-
tierBehavior: {
|
|
444
|
-
enum: ["graduated"],
|
|
445
|
-
},
|
|
446
|
-
tiers: {
|
|
447
|
-
minItems: 1,
|
|
440
|
+
excluded: {
|
|
441
|
+
enum: [true],
|
|
448
442
|
},
|
|
449
443
|
},
|
|
450
444
|
},
|
|
451
445
|
},
|
|
452
446
|
fallback: {
|
|
453
|
-
required: ["
|
|
447
|
+
required: ["meteredFeatureId"],
|
|
454
448
|
fields: {
|
|
455
449
|
meteredFeatureId: {
|
|
456
450
|
minLength: 1,
|
|
@@ -458,9 +452,6 @@ export const LINT_RULES: LintRules = {
|
|
|
458
452
|
billingUnits: {
|
|
459
453
|
exclusiveMinimum: 0,
|
|
460
454
|
},
|
|
461
|
-
creditCost: {
|
|
462
|
-
minimum: 0,
|
|
463
|
-
},
|
|
464
455
|
},
|
|
465
456
|
},
|
|
466
457
|
},
|
|
@@ -702,28 +693,22 @@ export const LINT_RULES: LintRules = {
|
|
|
702
693
|
},
|
|
703
694
|
"plans.licenses.customize.addItems.featureOverride.creditSchema": {
|
|
704
695
|
variants: {
|
|
705
|
-
on: "
|
|
696
|
+
on: "excluded",
|
|
706
697
|
byValue: {
|
|
707
|
-
|
|
708
|
-
required: ["
|
|
698
|
+
true: {
|
|
699
|
+
required: ["excluded", "meteredFeatureId"],
|
|
709
700
|
fields: {
|
|
710
701
|
meteredFeatureId: {
|
|
711
702
|
minLength: 1,
|
|
712
703
|
},
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
},
|
|
716
|
-
tierBehavior: {
|
|
717
|
-
enum: ["graduated"],
|
|
718
|
-
},
|
|
719
|
-
tiers: {
|
|
720
|
-
minItems: 1,
|
|
704
|
+
excluded: {
|
|
705
|
+
enum: [true],
|
|
721
706
|
},
|
|
722
707
|
},
|
|
723
708
|
},
|
|
724
709
|
},
|
|
725
710
|
fallback: {
|
|
726
|
-
required: ["
|
|
711
|
+
required: ["meteredFeatureId"],
|
|
727
712
|
fields: {
|
|
728
713
|
meteredFeatureId: {
|
|
729
714
|
minLength: 1,
|
|
@@ -731,9 +716,6 @@ export const LINT_RULES: LintRules = {
|
|
|
731
716
|
billingUnits: {
|
|
732
717
|
exclusiveMinimum: 0,
|
|
733
718
|
},
|
|
734
|
-
creditCost: {
|
|
735
|
-
minimum: 0,
|
|
736
|
-
},
|
|
737
719
|
},
|
|
738
720
|
},
|
|
739
721
|
},
|
|
@@ -1052,28 +1034,22 @@ export const LINT_RULES: LintRules = {
|
|
|
1052
1034
|
},
|
|
1053
1035
|
"plans.variants.customize.addItems.featureOverride.creditSchema": {
|
|
1054
1036
|
variants: {
|
|
1055
|
-
on: "
|
|
1037
|
+
on: "excluded",
|
|
1056
1038
|
byValue: {
|
|
1057
|
-
|
|
1058
|
-
required: ["
|
|
1039
|
+
true: {
|
|
1040
|
+
required: ["excluded", "meteredFeatureId"],
|
|
1059
1041
|
fields: {
|
|
1060
1042
|
meteredFeatureId: {
|
|
1061
1043
|
minLength: 1,
|
|
1062
1044
|
},
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
},
|
|
1066
|
-
tierBehavior: {
|
|
1067
|
-
enum: ["graduated"],
|
|
1068
|
-
},
|
|
1069
|
-
tiers: {
|
|
1070
|
-
minItems: 1,
|
|
1045
|
+
excluded: {
|
|
1046
|
+
enum: [true],
|
|
1071
1047
|
},
|
|
1072
1048
|
},
|
|
1073
1049
|
},
|
|
1074
1050
|
},
|
|
1075
1051
|
fallback: {
|
|
1076
|
-
required: ["
|
|
1052
|
+
required: ["meteredFeatureId"],
|
|
1077
1053
|
fields: {
|
|
1078
1054
|
meteredFeatureId: {
|
|
1079
1055
|
minLength: 1,
|
|
@@ -1081,9 +1057,6 @@ export const LINT_RULES: LintRules = {
|
|
|
1081
1057
|
billingUnits: {
|
|
1082
1058
|
exclusiveMinimum: 0,
|
|
1083
1059
|
},
|
|
1084
|
-
creditCost: {
|
|
1085
|
-
minimum: 0,
|
|
1086
|
-
},
|
|
1087
1060
|
},
|
|
1088
1061
|
},
|
|
1089
1062
|
},
|
|
@@ -1410,28 +1383,22 @@ export const LINT_RULES: LintRules = {
|
|
|
1410
1383
|
},
|
|
1411
1384
|
"plans.variants.customize.items.featureOverride.creditSchema": {
|
|
1412
1385
|
variants: {
|
|
1413
|
-
on: "
|
|
1386
|
+
on: "excluded",
|
|
1414
1387
|
byValue: {
|
|
1415
|
-
|
|
1416
|
-
required: ["
|
|
1388
|
+
true: {
|
|
1389
|
+
required: ["excluded", "meteredFeatureId"],
|
|
1417
1390
|
fields: {
|
|
1418
1391
|
meteredFeatureId: {
|
|
1419
1392
|
minLength: 1,
|
|
1420
1393
|
},
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
},
|
|
1424
|
-
tierBehavior: {
|
|
1425
|
-
enum: ["graduated"],
|
|
1426
|
-
},
|
|
1427
|
-
tiers: {
|
|
1428
|
-
minItems: 1,
|
|
1394
|
+
excluded: {
|
|
1395
|
+
enum: [true],
|
|
1429
1396
|
},
|
|
1430
1397
|
},
|
|
1431
1398
|
},
|
|
1432
1399
|
},
|
|
1433
1400
|
fallback: {
|
|
1434
|
-
required: ["
|
|
1401
|
+
required: ["meteredFeatureId"],
|
|
1435
1402
|
fields: {
|
|
1436
1403
|
meteredFeatureId: {
|
|
1437
1404
|
minLength: 1,
|
|
@@ -1439,9 +1406,6 @@ export const LINT_RULES: LintRules = {
|
|
|
1439
1406
|
billingUnits: {
|
|
1440
1407
|
exclusiveMinimum: 0,
|
|
1441
1408
|
},
|
|
1442
|
-
creditCost: {
|
|
1443
|
-
minimum: 0,
|
|
1444
|
-
},
|
|
1445
1409
|
},
|
|
1446
1410
|
},
|
|
1447
1411
|
},
|
|
@@ -1708,28 +1672,22 @@ export const LINT_RULES: LintRules = {
|
|
|
1708
1672
|
"plans.variants.customize.upsertLicenses.customize.addItems.featureOverride.creditSchema":
|
|
1709
1673
|
{
|
|
1710
1674
|
variants: {
|
|
1711
|
-
on: "
|
|
1675
|
+
on: "excluded",
|
|
1712
1676
|
byValue: {
|
|
1713
|
-
|
|
1714
|
-
required: ["
|
|
1677
|
+
true: {
|
|
1678
|
+
required: ["excluded", "meteredFeatureId"],
|
|
1715
1679
|
fields: {
|
|
1716
1680
|
meteredFeatureId: {
|
|
1717
1681
|
minLength: 1,
|
|
1718
1682
|
},
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
},
|
|
1722
|
-
tierBehavior: {
|
|
1723
|
-
enum: ["graduated"],
|
|
1724
|
-
},
|
|
1725
|
-
tiers: {
|
|
1726
|
-
minItems: 1,
|
|
1683
|
+
excluded: {
|
|
1684
|
+
enum: [true],
|
|
1727
1685
|
},
|
|
1728
1686
|
},
|
|
1729
1687
|
},
|
|
1730
1688
|
},
|
|
1731
1689
|
fallback: {
|
|
1732
|
-
required: ["
|
|
1690
|
+
required: ["meteredFeatureId"],
|
|
1733
1691
|
fields: {
|
|
1734
1692
|
meteredFeatureId: {
|
|
1735
1693
|
minLength: 1,
|
|
@@ -1737,9 +1695,6 @@ export const LINT_RULES: LintRules = {
|
|
|
1737
1695
|
billingUnits: {
|
|
1738
1696
|
exclusiveMinimum: 0,
|
|
1739
1697
|
},
|
|
1740
|
-
creditCost: {
|
|
1741
|
-
minimum: 0,
|
|
1742
|
-
},
|
|
1743
1698
|
},
|
|
1744
1699
|
},
|
|
1745
1700
|
},
|
package/src/generated/plans.ts
CHANGED
|
@@ -182,7 +182,7 @@ export type Plan = {
|
|
|
182
182
|
};
|
|
183
183
|
/** Overrides fields of this item's feature for customers on this plan (e.g. a credit system's credit_schema). */
|
|
184
184
|
featureOverride?: {
|
|
185
|
-
/** For credit system features:
|
|
185
|
+
/** For credit system features: merges into the feature's credit_schema by metered_feature_id for customers on this plan. A row with a rate overrides or adds that feature, a row with `excluded: true` removes it, and unlisted features keep the credit system's rate. */
|
|
186
186
|
creditSchema?: Array<
|
|
187
187
|
| {
|
|
188
188
|
/** ID of the metered feature that draws from this credit system. */
|
|
@@ -279,6 +279,12 @@ export type Plan = {
|
|
|
279
279
|
/** Credits consumed per billing-unit group. */
|
|
280
280
|
creditCost: number;
|
|
281
281
|
}
|
|
282
|
+
| {
|
|
283
|
+
/** ID of the metered feature to remove from the credit system. */
|
|
284
|
+
meteredFeatureId: string;
|
|
285
|
+
/** Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate. */
|
|
286
|
+
excluded: true;
|
|
287
|
+
}
|
|
282
288
|
>;
|
|
283
289
|
/** For AI credit system features: replaces the feature's markup chain entirely for customers on this plan. An unset level means no markup at that level rather than inheriting the feature's. */
|
|
284
290
|
markups?: {
|
|
@@ -587,7 +593,7 @@ export type Plan = {
|
|
|
587
593
|
};
|
|
588
594
|
/** Overrides fields of this item's feature for customers on this plan (e.g. a credit system's credit_schema). */
|
|
589
595
|
featureOverride?: {
|
|
590
|
-
/** For credit system features:
|
|
596
|
+
/** For credit system features: merges into the feature's credit_schema by metered_feature_id for customers on this plan. A row with a rate overrides or adds that feature, a row with `excluded: true` removes it, and unlisted features keep the credit system's rate. */
|
|
591
597
|
creditSchema?: Array<
|
|
592
598
|
| {
|
|
593
599
|
/** ID of the metered feature that draws from this credit system. */
|
|
@@ -684,6 +690,12 @@ export type Plan = {
|
|
|
684
690
|
/** Credits consumed per billing-unit group. */
|
|
685
691
|
creditCost: number;
|
|
686
692
|
}
|
|
693
|
+
| {
|
|
694
|
+
/** ID of the metered feature to remove from the credit system. */
|
|
695
|
+
meteredFeatureId: string;
|
|
696
|
+
/** Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate. */
|
|
697
|
+
excluded: true;
|
|
698
|
+
}
|
|
687
699
|
>;
|
|
688
700
|
/** For AI credit system features: replaces the feature's markup chain entirely for customers on this plan. An unset level means no markup at that level rather than inheriting the feature's. */
|
|
689
701
|
markups?: {
|
|
@@ -819,7 +831,7 @@ export type Plan = {
|
|
|
819
831
|
};
|
|
820
832
|
/** Overrides fields of this item's feature for customers on this plan (e.g. a credit system's credit_schema). */
|
|
821
833
|
featureOverride?: {
|
|
822
|
-
/** For credit system features:
|
|
834
|
+
/** For credit system features: merges into the feature's credit_schema by metered_feature_id for customers on this plan. A row with a rate overrides or adds that feature, a row with `excluded: true` removes it, and unlisted features keep the credit system's rate. */
|
|
823
835
|
creditSchema?: Array<
|
|
824
836
|
| {
|
|
825
837
|
/** ID of the metered feature that draws from this credit system. */
|
|
@@ -916,6 +928,12 @@ export type Plan = {
|
|
|
916
928
|
/** Credits consumed per billing-unit group. */
|
|
917
929
|
creditCost: number;
|
|
918
930
|
}
|
|
931
|
+
| {
|
|
932
|
+
/** ID of the metered feature to remove from the credit system. */
|
|
933
|
+
meteredFeatureId: string;
|
|
934
|
+
/** Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate. */
|
|
935
|
+
excluded: true;
|
|
936
|
+
}
|
|
919
937
|
>;
|
|
920
938
|
/** For AI credit system features: replaces the feature's markup chain entirely for customers on this plan. An unset level means no markup at that level rather than inheriting the feature's. */
|
|
921
939
|
markups?: {
|
|
@@ -1204,7 +1222,7 @@ export type Plan = {
|
|
|
1204
1222
|
};
|
|
1205
1223
|
/** Overrides fields of this item's feature for customers on this plan (e.g. a credit system's credit_schema). */
|
|
1206
1224
|
featureOverride?: {
|
|
1207
|
-
/** For credit system features:
|
|
1225
|
+
/** For credit system features: merges into the feature's credit_schema by metered_feature_id for customers on this plan. A row with a rate overrides or adds that feature, a row with `excluded: true` removes it, and unlisted features keep the credit system's rate. */
|
|
1208
1226
|
creditSchema?: Array<
|
|
1209
1227
|
| {
|
|
1210
1228
|
/** ID of the metered feature that draws from this credit system. */
|
|
@@ -1301,6 +1319,12 @@ export type Plan = {
|
|
|
1301
1319
|
/** Credits consumed per billing-unit group. */
|
|
1302
1320
|
creditCost: number;
|
|
1303
1321
|
}
|
|
1322
|
+
| {
|
|
1323
|
+
/** ID of the metered feature to remove from the credit system. */
|
|
1324
|
+
meteredFeatureId: string;
|
|
1325
|
+
/** Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate. */
|
|
1326
|
+
excluded: true;
|
|
1327
|
+
}
|
|
1304
1328
|
>;
|
|
1305
1329
|
/** For AI credit system features: replaces the feature's markup chain entirely for customers on this plan. An unset level means no markup at that level rather than inheriting the feature's. */
|
|
1306
1330
|
markups?: {
|
|
@@ -1499,7 +1523,7 @@ export type Plan = {
|
|
|
1499
1523
|
};
|
|
1500
1524
|
/** Overrides fields of this item's feature for customers on this plan (e.g. a credit system's credit_schema). */
|
|
1501
1525
|
featureOverride?: {
|
|
1502
|
-
/** For credit system features:
|
|
1526
|
+
/** For credit system features: merges into the feature's credit_schema by metered_feature_id for customers on this plan. A row with a rate overrides or adds that feature, a row with `excluded: true` removes it, and unlisted features keep the credit system's rate. */
|
|
1503
1527
|
creditSchema?: Array<
|
|
1504
1528
|
| {
|
|
1505
1529
|
/** ID of the metered feature that draws from this credit system. */
|
|
@@ -1596,6 +1620,12 @@ export type Plan = {
|
|
|
1596
1620
|
/** Credits consumed per billing-unit group. */
|
|
1597
1621
|
creditCost: number;
|
|
1598
1622
|
}
|
|
1623
|
+
| {
|
|
1624
|
+
/** ID of the metered feature to remove from the credit system. */
|
|
1625
|
+
meteredFeatureId: string;
|
|
1626
|
+
/** Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate. */
|
|
1627
|
+
excluded: true;
|
|
1628
|
+
}
|
|
1599
1629
|
>;
|
|
1600
1630
|
/** For AI credit system features: replaces the feature's markup chain entirely for customers on this plan. An unset level means no markup at that level rather than inheriting the feature's. */
|
|
1601
1631
|
markups?: {
|