@contractspec/lib.metering 0.0.0-canary-20260113162409 → 0.0.0-canary-20260113173657

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/events.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import * as _contractspec_lib_schema183 from "@contractspec/lib.schema";
2
- import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
2
+ import * as _contractspec_lib_contracts1 from "@contractspec/lib.contracts";
3
3
 
4
4
  //#region src/events.d.ts
5
5
  /**
6
6
  * Emitted when a metric is defined.
7
7
  */
8
- declare const MetricDefinedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema183.SchemaModel<{
8
+ declare const MetricDefinedEvent: _contractspec_lib_contracts1.EventSpec<_contractspec_lib_schema183.SchemaModel<{
9
9
  metricId: {
10
10
  type: _contractspec_lib_schema183.FieldType<string, string>;
11
11
  isOptional: false;
@@ -42,7 +42,7 @@ declare const MetricDefinedEvent: _contractspec_lib_contracts0.EventSpec<_contra
42
42
  /**
43
43
  * Emitted when a metric is updated.
44
44
  */
45
- declare const MetricUpdatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema183.SchemaModel<{
45
+ declare const MetricUpdatedEvent: _contractspec_lib_contracts1.EventSpec<_contractspec_lib_schema183.SchemaModel<{
46
46
  metricId: {
47
47
  type: _contractspec_lib_schema183.FieldType<string, string>;
48
48
  isOptional: false;
@@ -67,7 +67,7 @@ declare const MetricUpdatedEvent: _contractspec_lib_contracts0.EventSpec<_contra
67
67
  /**
68
68
  * Emitted when usage is recorded.
69
69
  */
70
- declare const UsageRecordedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema183.SchemaModel<{
70
+ declare const UsageRecordedEvent: _contractspec_lib_contracts1.EventSpec<_contractspec_lib_schema183.SchemaModel<{
71
71
  recordId: {
72
72
  type: _contractspec_lib_schema183.FieldType<string, string>;
73
73
  isOptional: false;
@@ -100,7 +100,7 @@ declare const UsageRecordedEvent: _contractspec_lib_contracts0.EventSpec<_contra
100
100
  /**
101
101
  * Emitted when a batch of usage is recorded.
102
102
  */
103
- declare const UsageBatchRecordedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema183.SchemaModel<{
103
+ declare const UsageBatchRecordedEvent: _contractspec_lib_contracts1.EventSpec<_contractspec_lib_schema183.SchemaModel<{
104
104
  recordCount: {
105
105
  type: _contractspec_lib_schema183.FieldType<number, number>;
106
106
  isOptional: false;
@@ -121,7 +121,7 @@ declare const UsageBatchRecordedEvent: _contractspec_lib_contracts0.EventSpec<_c
121
121
  /**
122
122
  * Emitted when usage is aggregated.
123
123
  */
124
- declare const UsageAggregatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema183.SchemaModel<{
124
+ declare const UsageAggregatedEvent: _contractspec_lib_contracts1.EventSpec<_contractspec_lib_schema183.SchemaModel<{
125
125
  summaryId: {
126
126
  type: _contractspec_lib_schema183.FieldType<string, string>;
127
127
  isOptional: false;
@@ -166,7 +166,7 @@ declare const UsageAggregatedEvent: _contractspec_lib_contracts0.EventSpec<_cont
166
166
  /**
167
167
  * Emitted when a threshold is created.
168
168
  */
169
- declare const ThresholdCreatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema183.SchemaModel<{
169
+ declare const ThresholdCreatedEvent: _contractspec_lib_contracts1.EventSpec<_contractspec_lib_schema183.SchemaModel<{
170
170
  thresholdId: {
171
171
  type: _contractspec_lib_schema183.FieldType<string, string>;
172
172
  isOptional: false;
@@ -199,7 +199,7 @@ declare const ThresholdCreatedEvent: _contractspec_lib_contracts0.EventSpec<_con
199
199
  /**
200
200
  * Emitted when a threshold is exceeded.
201
201
  */
202
- declare const ThresholdExceededEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema183.SchemaModel<{
202
+ declare const ThresholdExceededEvent: _contractspec_lib_contracts1.EventSpec<_contractspec_lib_schema183.SchemaModel<{
203
203
  alertId: {
204
204
  type: _contractspec_lib_schema183.FieldType<string, string>;
205
205
  isOptional: false;
@@ -244,7 +244,7 @@ declare const ThresholdExceededEvent: _contractspec_lib_contracts0.EventSpec<_co
244
244
  /**
245
245
  * Emitted when usage is approaching a threshold.
246
246
  */
247
- declare const ThresholdApproachingEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema183.SchemaModel<{
247
+ declare const ThresholdApproachingEvent: _contractspec_lib_contracts1.EventSpec<_contractspec_lib_schema183.SchemaModel<{
248
248
  thresholdId: {
249
249
  type: _contractspec_lib_schema183.FieldType<string, string>;
250
250
  isOptional: false;
@@ -282,7 +282,7 @@ declare const ThresholdApproachingEvent: _contractspec_lib_contracts0.EventSpec<
282
282
  * All metering events.
283
283
  */
284
284
  declare const MeteringEvents: {
285
- MetricDefinedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema183.SchemaModel<{
285
+ MetricDefinedEvent: _contractspec_lib_contracts1.EventSpec<_contractspec_lib_schema183.SchemaModel<{
286
286
  metricId: {
287
287
  type: _contractspec_lib_schema183.FieldType<string, string>;
288
288
  isOptional: false;
@@ -316,7 +316,7 @@ declare const MeteringEvents: {
316
316
  isOptional: false;
317
317
  };
318
318
  }>>;
319
- MetricUpdatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema183.SchemaModel<{
319
+ MetricUpdatedEvent: _contractspec_lib_contracts1.EventSpec<_contractspec_lib_schema183.SchemaModel<{
320
320
  metricId: {
321
321
  type: _contractspec_lib_schema183.FieldType<string, string>;
322
322
  isOptional: false;
@@ -338,7 +338,7 @@ declare const MeteringEvents: {
338
338
  isOptional: false;
339
339
  };
340
340
  }>>;
341
- UsageRecordedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema183.SchemaModel<{
341
+ UsageRecordedEvent: _contractspec_lib_contracts1.EventSpec<_contractspec_lib_schema183.SchemaModel<{
342
342
  recordId: {
343
343
  type: _contractspec_lib_schema183.FieldType<string, string>;
344
344
  isOptional: false;
@@ -368,7 +368,7 @@ declare const MeteringEvents: {
368
368
  isOptional: false;
369
369
  };
370
370
  }>>;
371
- UsageBatchRecordedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema183.SchemaModel<{
371
+ UsageBatchRecordedEvent: _contractspec_lib_contracts1.EventSpec<_contractspec_lib_schema183.SchemaModel<{
372
372
  recordCount: {
373
373
  type: _contractspec_lib_schema183.FieldType<number, number>;
374
374
  isOptional: false;
@@ -386,7 +386,7 @@ declare const MeteringEvents: {
386
386
  isOptional: false;
387
387
  };
388
388
  }>>;
389
- UsageAggregatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema183.SchemaModel<{
389
+ UsageAggregatedEvent: _contractspec_lib_contracts1.EventSpec<_contractspec_lib_schema183.SchemaModel<{
390
390
  summaryId: {
391
391
  type: _contractspec_lib_schema183.FieldType<string, string>;
392
392
  isOptional: false;
@@ -428,7 +428,7 @@ declare const MeteringEvents: {
428
428
  isOptional: false;
429
429
  };
430
430
  }>>;
431
- ThresholdCreatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema183.SchemaModel<{
431
+ ThresholdCreatedEvent: _contractspec_lib_contracts1.EventSpec<_contractspec_lib_schema183.SchemaModel<{
432
432
  thresholdId: {
433
433
  type: _contractspec_lib_schema183.FieldType<string, string>;
434
434
  isOptional: false;
@@ -458,7 +458,7 @@ declare const MeteringEvents: {
458
458
  isOptional: false;
459
459
  };
460
460
  }>>;
461
- ThresholdExceededEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema183.SchemaModel<{
461
+ ThresholdExceededEvent: _contractspec_lib_contracts1.EventSpec<_contractspec_lib_schema183.SchemaModel<{
462
462
  alertId: {
463
463
  type: _contractspec_lib_schema183.FieldType<string, string>;
464
464
  isOptional: false;
@@ -500,7 +500,7 @@ declare const MeteringEvents: {
500
500
  isOptional: false;
501
501
  };
502
502
  }>>;
503
- ThresholdApproachingEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema183.SchemaModel<{
503
+ ThresholdApproachingEvent: _contractspec_lib_contracts1.EventSpec<_contractspec_lib_schema183.SchemaModel<{
504
504
  thresholdId: {
505
505
  type: _contractspec_lib_schema183.FieldType<string, string>;
506
506
  isOptional: false;
@@ -1,8 +1,8 @@
1
- import * as _contractspec_lib_contracts15 from "@contractspec/lib.contracts";
1
+ import * as _contractspec_lib_contracts0 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_contracts0.CapabilitySpec;
5
+ declare const ThresholdsCapability: _contractspec_lib_contracts0.CapabilitySpec;
6
6
  //#endregion
7
7
  export { MeteringCapability, ThresholdsCapability };
8
8
  //# sourceMappingURL=metering.capability.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"metering.capability.d.ts","names":[],"sources":["../src/metering.capability.ts"],"sourcesContent":[],"mappings":";;;cAEa,oBAUX,6BAAA,CAV6B;cAYlB,sBAUX,6BAAA,CAV+B"}
1
+ {"version":3,"file":"metering.capability.d.ts","names":[],"sources":["../src/metering.capability.ts"],"sourcesContent":[],"mappings":";;;cAEa,oBAUX,4BAAA,CAV6B;cAYlB,sBAUX,4BAAA,CAV+B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/lib.metering",
3
- "version": "0.0.0-canary-20260113162409",
3
+ "version": "0.0.0-canary-20260113173657",
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": "0.0.0-canary-20260113162409",
29
- "@contractspec/lib.contracts": "0.0.0-canary-20260113162409",
28
+ "@contractspec/lib.schema": "0.0.0-canary-20260113173657",
29
+ "@contractspec/lib.contracts": "0.0.0-canary-20260113173657",
30
30
  "zod": "^4.3.5"
31
31
  },
32
32
  "devDependencies": {
33
- "@contractspec/tool.typescript": "0.0.0-canary-20260113162409",
34
- "@contractspec/tool.tsdown": "0.0.0-canary-20260113162409",
33
+ "@contractspec/tool.typescript": "0.0.0-canary-20260113173657",
34
+ "@contractspec/tool.tsdown": "0.0.0-canary-20260113173657",
35
35
  "typescript": "^5.9.3"
36
36
  },
37
37
  "exports": {