@openmeter/client 1.0.0-beta-5409ebc86207 → 1.0.0-beta-d457312a36e1

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 +1 @@
1
- export declare const SDK_VERSION = "1.0.0-beta-5409ebc86207";
1
+ export declare const SDK_VERSION = "1.0.0-beta-d457312a36e1";
@@ -2,4 +2,4 @@
2
2
  // The committed value is a dev placeholder. The publish flow
3
3
  // (`make -C api/spec publish-aip-sdk`) stamps the real release version here
4
4
  // before `pnpm publish`, after `pnpm version` updates package.json.
5
- export const SDK_VERSION = '1.0.0-beta-5409ebc86207';
5
+ export const SDK_VERSION = '1.0.0-beta-d457312a36e1';
@@ -38,8 +38,10 @@ export interface ListChargesQuery {
38
38
  *
39
39
  * Supported values are:
40
40
  *
41
- * - `real_time_usage`: Expand the charge's real-time usage; it sets the `usage`
42
- * and the `totals.realtime` fields.
41
+ * - `real_time_usage`: Set `usage` and `totals.realtime` for active usage-based
42
+ * charges and created usage-based charges whose effective service period
43
+ * contains the current time (inclusive start, exclusive end). Deleted charges
44
+ * are skipped.
43
45
  * - `customer`: Expand the charge's customer to the complete entity.
44
46
  * - `feature`: Expand the charge's feature to the complete entity.
45
47
  * - `subscription`: Expand the charge's subscription to the complete entity.
@@ -284,8 +284,10 @@ export interface ListCustomerChargesQuery {
284
284
  *
285
285
  * Supported values are:
286
286
  *
287
- * - `real_time_usage`: Expand the charge's real-time usage; it sets the `usage`
288
- * and the `totals.realtime` fields.
287
+ * - `real_time_usage`: Set `usage` and `totals.realtime` for active usage-based
288
+ * charges and created usage-based charges whose effective service period
289
+ * contains the current time (inclusive start, exclusive end). Deleted charges
290
+ * are skipped.
289
291
  * - `customer`: Expand the charge's customer to the complete entity.
290
292
  * - `feature`: Expand the charge's feature to the complete entity.
291
293
  * - `subscription`: Expand the charge's subscription to the complete entity.
@@ -506,7 +506,7 @@ export const chargesExpand = z
506
506
  'realization.totals',
507
507
  'realization.detailed_lines',
508
508
  ])
509
- .describe("Expands for customer charges. Values: - `real_time_usage`: The charge's real-time usage; it sets the `usage` and the `totals.realtime` fields, and fills the `outstanding` realization's `usage` with the not-yet-booked remainder of the live read. - `customer`: The complete customer entity of the charge. - `feature`: The complete feature entity of the charge. - `subscription`: The complete subscription of the charge, when present. - `realization.invoice`: The invoice header of each realization (the invoice entity without its `lines` and `customer` snapshot), in place of the ID reference. - `realization.totals`: The `totals` of each realization run, including credit allocations. - `realization.detailed_lines`: The `detailed_lines` of each realization run.");
509
+ .describe("Expands for customer charges. Values: - `real_time_usage`: Sets `usage` and `totals.realtime` for active usage-based charges and created usage-based charges whose effective service period contains the current time (inclusive start, exclusive end). Deleted charges are skipped. When present, the `outstanding` realization's `usage` shows the unbooked remainder of the live read. - `customer`: The complete customer entity of the charge. - `feature`: The complete feature entity of the charge. - `subscription`: The complete subscription of the charge, when present. - `realization.invoice`: The invoice header of each realization (the invoice entity without its `lines` and `customer` snapshot), in place of the ID reference. - `realization.totals`: The `totals` of each realization run, including credit allocations. - `realization.detailed_lines`: The `detailed_lines` of each realization run.");
510
510
  export const lifecycleController = z
511
511
  .enum(['system', 'manual'])
512
512
  .describe('Identifies whether a resource lifecycle is controlled by OpenMeter or manually overridden by the API user. Values: - `system`: The resource lifecycle is controlled by OpenMeter. - `manual`: The resource lifecycle was manually overridden by the API user.');
@@ -8404,7 +8404,7 @@ export const listCustomerChargesQueryParams = z.object({
8404
8404
  expand: z
8405
8405
  .array(chargesExpand)
8406
8406
  .optional()
8407
- .describe("Expand full objects for referenced entities. Supported values are: - `real_time_usage`: Expand the charge's real-time usage; it sets the `usage` and the `totals.realtime` fields. - `customer`: Expand the charge's customer to the complete entity. - `feature`: Expand the charge's feature to the complete entity. - `subscription`: Expand the charge's subscription to the complete entity. - `realization.invoice`: Expand each realization's invoice to the complete entity. - `realization.totals`: Expand each realization run's `totals`. - `realization.detailed_lines`: Expand each realization run's `detailed_lines`."),
8407
+ .describe("Expand full objects for referenced entities. Supported values are: - `real_time_usage`: Set `usage` and `totals.realtime` for active usage-based charges and created usage-based charges whose effective service period contains the current time (inclusive start, exclusive end). Deleted charges are skipped. - `customer`: Expand the charge's customer to the complete entity. - `feature`: Expand the charge's feature to the complete entity. - `subscription`: Expand the charge's subscription to the complete entity. - `realization.invoice`: Expand each realization's invoice to the complete entity. - `realization.totals`: Expand each realization run's `totals`. - `realization.detailed_lines`: Expand each realization run's `detailed_lines`."),
8408
8408
  });
8409
8409
  export const listCustomerChargesResponse = z.object({
8410
8410
  data: z.array(charge),
@@ -8669,7 +8669,7 @@ export const listChargesQueryParams = z.object({
8669
8669
  expand: z
8670
8670
  .array(chargesExpand)
8671
8671
  .optional()
8672
- .describe("Expand full objects for referenced entities. Supported values are: - `real_time_usage`: Expand the charge's real-time usage; it sets the `usage` and the `totals.realtime` fields. - `customer`: Expand the charge's customer to the complete entity. - `feature`: Expand the charge's feature to the complete entity. - `subscription`: Expand the charge's subscription to the complete entity. - `realization.invoice`: Expand each realization's invoice to the complete entity. - `realization.totals`: Expand each realization run's `totals`. - `realization.detailed_lines`: Expand each realization run's `detailed_lines`."),
8672
+ .describe("Expand full objects for referenced entities. Supported values are: - `real_time_usage`: Set `usage` and `totals.realtime` for active usage-based charges and created usage-based charges whose effective service period contains the current time (inclusive start, exclusive end). Deleted charges are skipped. - `customer`: Expand the charge's customer to the complete entity. - `feature`: Expand the charge's feature to the complete entity. - `subscription`: Expand the charge's subscription to the complete entity. - `realization.invoice`: Expand each realization's invoice to the complete entity. - `realization.totals`: Expand each realization run's `totals`. - `realization.detailed_lines`: Expand each realization run's `detailed_lines`."),
8673
8673
  });
8674
8674
  export const listChargesResponse = z.object({
8675
8675
  data: z.array(charge),
@@ -9583,7 +9583,7 @@ export const chargesExpandWire = z
9583
9583
  'realization.totals',
9584
9584
  'realization.detailed_lines',
9585
9585
  ])
9586
- .describe("Expands for customer charges. Values: - `real_time_usage`: The charge's real-time usage; it sets the `usage` and the `totals.realtime` fields, and fills the `outstanding` realization's `usage` with the not-yet-booked remainder of the live read. - `customer`: The complete customer entity of the charge. - `feature`: The complete feature entity of the charge. - `subscription`: The complete subscription of the charge, when present. - `realization.invoice`: The invoice header of each realization (the invoice entity without its `lines` and `customer` snapshot), in place of the ID reference. - `realization.totals`: The `totals` of each realization run, including credit allocations. - `realization.detailed_lines`: The `detailed_lines` of each realization run.");
9586
+ .describe("Expands for customer charges. Values: - `real_time_usage`: Sets `usage` and `totals.realtime` for active usage-based charges and created usage-based charges whose effective service period contains the current time (inclusive start, exclusive end). Deleted charges are skipped. When present, the `outstanding` realization's `usage` shows the unbooked remainder of the live read. - `customer`: The complete customer entity of the charge. - `feature`: The complete feature entity of the charge. - `subscription`: The complete subscription of the charge, when present. - `realization.invoice`: The invoice header of each realization (the invoice entity without its `lines` and `customer` snapshot), in place of the ID reference. - `realization.totals`: The `totals` of each realization run, including credit allocations. - `realization.detailed_lines`: The `detailed_lines` of each realization run.");
9587
9587
  export const lifecycleControllerWire = z
9588
9588
  .enum(['system', 'manual'])
9589
9589
  .describe('Identifies whether a resource lifecycle is controlled by OpenMeter or manually overridden by the API user. Values: - `system`: The resource lifecycle is controlled by OpenMeter. - `manual`: The resource lifecycle was manually overridden by the API user.');
@@ -17594,7 +17594,7 @@ export const listCustomerChargesQueryParamsWire = z.object({
17594
17594
  expand: z
17595
17595
  .array(chargesExpandWire)
17596
17596
  .optional()
17597
- .describe("Expand full objects for referenced entities. Supported values are: - `real_time_usage`: Expand the charge's real-time usage; it sets the `usage` and the `totals.realtime` fields. - `customer`: Expand the charge's customer to the complete entity. - `feature`: Expand the charge's feature to the complete entity. - `subscription`: Expand the charge's subscription to the complete entity. - `realization.invoice`: Expand each realization's invoice to the complete entity. - `realization.totals`: Expand each realization run's `totals`. - `realization.detailed_lines`: Expand each realization run's `detailed_lines`."),
17597
+ .describe("Expand full objects for referenced entities. Supported values are: - `real_time_usage`: Set `usage` and `totals.realtime` for active usage-based charges and created usage-based charges whose effective service period contains the current time (inclusive start, exclusive end). Deleted charges are skipped. - `customer`: Expand the charge's customer to the complete entity. - `feature`: Expand the charge's feature to the complete entity. - `subscription`: Expand the charge's subscription to the complete entity. - `realization.invoice`: Expand each realization's invoice to the complete entity. - `realization.totals`: Expand each realization run's `totals`. - `realization.detailed_lines`: Expand each realization run's `detailed_lines`."),
17598
17598
  });
17599
17599
  export const listCustomerChargesResponseWire = z.strictObject({
17600
17600
  data: z.array(chargeWire),
@@ -17877,7 +17877,7 @@ export const listChargesQueryParamsWire = z.object({
17877
17877
  expand: z
17878
17878
  .array(chargesExpandWire)
17879
17879
  .optional()
17880
- .describe("Expand full objects for referenced entities. Supported values are: - `real_time_usage`: Expand the charge's real-time usage; it sets the `usage` and the `totals.realtime` fields. - `customer`: Expand the charge's customer to the complete entity. - `feature`: Expand the charge's feature to the complete entity. - `subscription`: Expand the charge's subscription to the complete entity. - `realization.invoice`: Expand each realization's invoice to the complete entity. - `realization.totals`: Expand each realization run's `totals`. - `realization.detailed_lines`: Expand each realization run's `detailed_lines`."),
17880
+ .describe("Expand full objects for referenced entities. Supported values are: - `real_time_usage`: Set `usage` and `totals.realtime` for active usage-based charges and created usage-based charges whose effective service period contains the current time (inclusive start, exclusive end). Deleted charges are skipped. - `customer`: Expand the charge's customer to the complete entity. - `feature`: Expand the charge's feature to the complete entity. - `subscription`: Expand the charge's subscription to the complete entity. - `realization.invoice`: Expand each realization's invoice to the complete entity. - `realization.totals`: Expand each realization run's `totals`. - `realization.detailed_lines`: Expand each realization run's `detailed_lines`."),
17881
17881
  });
17882
17882
  export const listChargesResponseWire = z.strictObject({
17883
17883
  data: z.array(chargeWire),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmeter/client",
3
- "version": "1.0.0-beta-5409ebc86207",
3
+ "version": "1.0.0-beta-d457312a36e1",
4
4
  "description": "Official TypeScript SDK for the OpenMeter API — usage metering and billing",
5
5
  "keywords": [
6
6
  "openmeter",