@contractspec/lib.metering 1.48.0 → 1.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import * as _contractspec_lib_schema317 from "@contractspec/lib.schema";
2
- import * as _contractspec_lib_contracts18 from "@contractspec/lib.contracts";
2
+ import * as _contractspec_lib_contracts15 from "@contractspec/lib.contracts";
3
3
 
4
4
  //#region src/contracts/index.d.ts
5
5
  declare const MetricDefinitionModel: _contractspec_lib_schema317.SchemaModel<{
@@ -201,7 +201,7 @@ declare const UsageThresholdModel: _contractspec_lib_schema317.SchemaModel<{
201
201
  /**
202
202
  * Define a metric.
203
203
  */
204
- declare const DefineMetricContract: _contractspec_lib_contracts18.OperationSpec<_contractspec_lib_schema317.SchemaModel<{
204
+ declare const DefineMetricContract: _contractspec_lib_contracts15.OperationSpec<_contractspec_lib_schema317.SchemaModel<{
205
205
  key: {
206
206
  type: _contractspec_lib_schema317.FieldType<string, string>;
207
207
  isOptional: false;
@@ -291,7 +291,7 @@ declare const DefineMetricContract: _contractspec_lib_contracts18.OperationSpec<
291
291
  /**
292
292
  * Update a metric.
293
293
  */
294
- declare const UpdateMetricContract: _contractspec_lib_contracts18.OperationSpec<_contractspec_lib_schema317.SchemaModel<{
294
+ declare const UpdateMetricContract: _contractspec_lib_contracts15.OperationSpec<_contractspec_lib_schema317.SchemaModel<{
295
295
  metricId: {
296
296
  type: _contractspec_lib_schema317.FieldType<string, string>;
297
297
  isOptional: false;
@@ -369,7 +369,7 @@ declare const UpdateMetricContract: _contractspec_lib_contracts18.OperationSpec<
369
369
  /**
370
370
  * Delete a metric.
371
371
  */
372
- declare const DeleteMetricContract: _contractspec_lib_contracts18.OperationSpec<_contractspec_lib_schema317.SchemaModel<{
372
+ declare const DeleteMetricContract: _contractspec_lib_contracts15.OperationSpec<_contractspec_lib_schema317.SchemaModel<{
373
373
  metricId: {
374
374
  type: _contractspec_lib_schema317.FieldType<string, string>;
375
375
  isOptional: false;
@@ -383,7 +383,7 @@ declare const DeleteMetricContract: _contractspec_lib_contracts18.OperationSpec<
383
383
  /**
384
384
  * Get a metric by key.
385
385
  */
386
- declare const GetMetricContract: _contractspec_lib_contracts18.OperationSpec<_contractspec_lib_schema317.SchemaModel<{
386
+ declare const GetMetricContract: _contractspec_lib_contracts15.OperationSpec<_contractspec_lib_schema317.SchemaModel<{
387
387
  key: {
388
388
  type: _contractspec_lib_schema317.FieldType<string, string>;
389
389
  isOptional: false;
@@ -445,7 +445,7 @@ declare const GetMetricContract: _contractspec_lib_contracts18.OperationSpec<_co
445
445
  /**
446
446
  * List metrics.
447
447
  */
448
- declare const ListMetricsContract: _contractspec_lib_contracts18.OperationSpec<_contractspec_lib_schema317.SchemaModel<{
448
+ declare const ListMetricsContract: _contractspec_lib_contracts15.OperationSpec<_contractspec_lib_schema317.SchemaModel<{
449
449
  orgId: {
450
450
  type: _contractspec_lib_schema317.FieldType<string, string>;
451
451
  isOptional: true;
@@ -529,7 +529,7 @@ declare const ListMetricsContract: _contractspec_lib_contracts18.OperationSpec<_
529
529
  /**
530
530
  * Record usage.
531
531
  */
532
- declare const RecordUsageContract: _contractspec_lib_contracts18.OperationSpec<_contractspec_lib_schema317.SchemaModel<{
532
+ declare const RecordUsageContract: _contractspec_lib_contracts15.OperationSpec<_contractspec_lib_schema317.SchemaModel<{
533
533
  metricKey: {
534
534
  type: _contractspec_lib_schema317.FieldType<string, string>;
535
535
  isOptional: false;
@@ -619,7 +619,7 @@ declare const RecordUsageContract: _contractspec_lib_contracts18.OperationSpec<_
619
619
  /**
620
620
  * Record batch usage.
621
621
  */
622
- declare const RecordBatchUsageContract: _contractspec_lib_contracts18.OperationSpec<_contractspec_lib_schema317.SchemaModel<{
622
+ declare const RecordBatchUsageContract: _contractspec_lib_contracts15.OperationSpec<_contractspec_lib_schema317.SchemaModel<{
623
623
  records: {
624
624
  type: _contractspec_lib_schema317.SchemaModel<{
625
625
  metricKey: {
@@ -683,7 +683,7 @@ declare const RecordBatchUsageContract: _contractspec_lib_contracts18.OperationS
683
683
  /**
684
684
  * Get usage records.
685
685
  */
686
- declare const GetUsageContract: _contractspec_lib_contracts18.OperationSpec<_contractspec_lib_schema317.SchemaModel<{
686
+ declare const GetUsageContract: _contractspec_lib_contracts15.OperationSpec<_contractspec_lib_schema317.SchemaModel<{
687
687
  metricKey: {
688
688
  type: _contractspec_lib_schema317.FieldType<string, string>;
689
689
  isOptional: false;
@@ -775,7 +775,7 @@ declare const GetUsageContract: _contractspec_lib_contracts18.OperationSpec<_con
775
775
  /**
776
776
  * Get usage summary.
777
777
  */
778
- declare const GetUsageSummaryContract: _contractspec_lib_contracts18.OperationSpec<_contractspec_lib_schema317.SchemaModel<{
778
+ declare const GetUsageSummaryContract: _contractspec_lib_contracts15.OperationSpec<_contractspec_lib_schema317.SchemaModel<{
779
779
  metricKey: {
780
780
  type: _contractspec_lib_schema317.FieldType<string, string>;
781
781
  isOptional: false;
@@ -863,7 +863,7 @@ declare const GetUsageSummaryContract: _contractspec_lib_contracts18.OperationSp
863
863
  /**
864
864
  * Create a threshold.
865
865
  */
866
- declare const CreateThresholdContract: _contractspec_lib_contracts18.OperationSpec<_contractspec_lib_schema317.SchemaModel<{
866
+ declare const CreateThresholdContract: _contractspec_lib_contracts15.OperationSpec<_contractspec_lib_schema317.SchemaModel<{
867
867
  metricKey: {
868
868
  type: _contractspec_lib_schema317.FieldType<string, string>;
869
869
  isOptional: false;
@@ -957,7 +957,7 @@ declare const CreateThresholdContract: _contractspec_lib_contracts18.OperationSp
957
957
  /**
958
958
  * Update a threshold.
959
959
  */
960
- declare const UpdateThresholdContract: _contractspec_lib_contracts18.OperationSpec<_contractspec_lib_schema317.SchemaModel<{
960
+ declare const UpdateThresholdContract: _contractspec_lib_contracts15.OperationSpec<_contractspec_lib_schema317.SchemaModel<{
961
961
  thresholdId: {
962
962
  type: _contractspec_lib_schema317.FieldType<string, string>;
963
963
  isOptional: false;
@@ -1043,7 +1043,7 @@ declare const UpdateThresholdContract: _contractspec_lib_contracts18.OperationSp
1043
1043
  /**
1044
1044
  * Delete a threshold.
1045
1045
  */
1046
- declare const DeleteThresholdContract: _contractspec_lib_contracts18.OperationSpec<_contractspec_lib_schema317.SchemaModel<{
1046
+ declare const DeleteThresholdContract: _contractspec_lib_contracts15.OperationSpec<_contractspec_lib_schema317.SchemaModel<{
1047
1047
  thresholdId: {
1048
1048
  type: _contractspec_lib_schema317.FieldType<string, string>;
1049
1049
  isOptional: false;
@@ -1057,7 +1057,7 @@ declare const DeleteThresholdContract: _contractspec_lib_contracts18.OperationSp
1057
1057
  /**
1058
1058
  * List thresholds.
1059
1059
  */
1060
- declare const ListThresholdsContract: _contractspec_lib_contracts18.OperationSpec<_contractspec_lib_schema317.SchemaModel<{
1060
+ declare const ListThresholdsContract: _contractspec_lib_contracts15.OperationSpec<_contractspec_lib_schema317.SchemaModel<{
1061
1061
  metricKey: {
1062
1062
  type: _contractspec_lib_schema317.FieldType<string, string>;
1063
1063
  isOptional: true;
@@ -1,8 +1,8 @@
1
- import * as _contractspec_lib_contracts15 from "@contractspec/lib.contracts";
1
+ import * as _contractspec_lib_contracts29 from "@contractspec/lib.contracts";
2
2
 
3
3
  //#region src/metering.capability.d.ts
4
- declare const MeteringCapability: _contractspec_lib_contracts15.CapabilitySpec;
5
- declare const ThresholdsCapability: _contractspec_lib_contracts15.CapabilitySpec;
4
+ declare const MeteringCapability: _contractspec_lib_contracts29.CapabilitySpec;
5
+ declare const ThresholdsCapability: _contractspec_lib_contracts29.CapabilitySpec;
6
6
  //#endregion
7
7
  export { MeteringCapability, ThresholdsCapability };
8
8
  //# sourceMappingURL=metering.capability.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as _contractspec_lib_contracts17 from "@contractspec/lib.contracts";
1
+ import * as _contractspec_lib_contracts28 from "@contractspec/lib.contracts";
2
2
 
3
3
  //#region src/metering.feature.d.ts
4
4
 
@@ -6,7 +6,7 @@ import * as _contractspec_lib_contracts17 from "@contractspec/lib.contracts";
6
6
  * Metering feature module that bundles usage tracking,
7
7
  * metrics definitions, and billing capabilities.
8
8
  */
9
- declare const MeteringFeature: _contractspec_lib_contracts17.FeatureModuleSpec;
9
+ declare const MeteringFeature: _contractspec_lib_contracts28.FeatureModuleSpec;
10
10
  //#endregion
11
11
  export { MeteringFeature };
12
12
  //# sourceMappingURL=metering.feature.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/lib.metering",
3
- "version": "1.48.0",
3
+ "version": "1.49.0",
4
4
  "description": "Usage metering and billing core module for ContractSpec applications",
5
5
  "keywords": [
6
6
  "contractspec",
@@ -25,13 +25,13 @@
25
25
  "lint:check": "eslint src"
26
26
  },
27
27
  "dependencies": {
28
- "@contractspec/lib.schema": "1.48.0",
29
- "@contractspec/lib.contracts": "1.48.0",
28
+ "@contractspec/lib.schema": "1.49.0",
29
+ "@contractspec/lib.contracts": "1.49.0",
30
30
  "zod": "^4.3.5"
31
31
  },
32
32
  "devDependencies": {
33
- "@contractspec/tool.typescript": "1.48.0",
34
- "@contractspec/tool.tsdown": "1.48.0",
33
+ "@contractspec/tool.typescript": "1.49.0",
34
+ "@contractspec/tool.tsdown": "1.49.0",
35
35
  "typescript": "^5.9.3"
36
36
  },
37
37
  "exports": {