@openmeter/client 1.0.0-beta-fd561cd8ec89 → 1.0.0-beta-622df7843cd1

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.
@@ -397,6 +397,9 @@ export const creditPurchasePaymentSettlementStatus = z
397
397
  export const creditGrantStatus = z
398
398
  .enum(['pending', 'active', 'expired', 'voided'])
399
399
  .describe('Credit grant lifecycle status. - `pending`: The credit block has been created but is not yet valid. (`effective_at` is in the future or availability_policy is not met) - `active`: The credit block is currently valid and eligible for consumption. (`effective_at` is in the past, `expires_at` is in the future and availability_policy is met) - `expired`: The credit block expired with remaining unused balance, `expires_at` time has passed. - `voided`: The credit block was voided. Remaining balance is forfeited.');
400
+ export const validationIssueSeverity = z
401
+ .enum(['critical', 'warning'])
402
+ .describe('Severity level of a billing validation issue.');
400
403
  export const stringFieldFilterExact = z
401
404
  .union([
402
405
  z.string(),
@@ -506,9 +509,6 @@ export const taxIdentificationCode = z
506
509
  .min(1)
507
510
  .max(32)
508
511
  .describe('Tax identifier code is a normalized tax code shown on the original identity document.');
509
- export const invoiceValidationIssueSeverity = z
510
- .enum(['critical', 'warning'])
511
- .describe('Severity level of an invoice validation issue.');
512
512
  export const invoiceExternalReferences = z
513
513
  .object({
514
514
  invoicingId: z
@@ -2203,6 +2203,25 @@ export const listCreditGrantsParamsFilter = z
2203
2203
  key: stringFieldFilter.optional(),
2204
2204
  })
2205
2205
  .describe('Filter options for listing credit grants.');
2206
+ export const validationIssue = z
2207
+ .object({
2208
+ code: z.string().describe('Machine-readable error code.'),
2209
+ message: z.string().describe('Human-readable description of the error.'),
2210
+ attributes: z
2211
+ .record(z.string(), z.unknown())
2212
+ .optional()
2213
+ .describe('Additional structured context.'),
2214
+ severity: validationIssueSeverity,
2215
+ field: z
2216
+ .string()
2217
+ .optional()
2218
+ .describe('JSON path to the field that caused the validation issue, if applicable.'),
2219
+ component: z
2220
+ .string()
2221
+ .optional()
2222
+ .describe('Component that reported the validation issue, if applicable.'),
2223
+ })
2224
+ .describe('A validation issue found while processing a billing resource.');
2206
2225
  export const getCreditBalanceParamsFilter = z
2207
2226
  .object({
2208
2227
  currency: stringFieldFilterExact.optional(),
@@ -2262,21 +2281,6 @@ export const updateBillingPartyTaxIdentity = z
2262
2281
  code: taxIdentificationCode.optional(),
2263
2282
  })
2264
2283
  .describe('Identity stores the details required to identify an entity for tax purposes in a specific country.');
2265
- export const invoiceValidationIssue = z
2266
- .object({
2267
- code: z.string().describe('Machine-readable error code.'),
2268
- message: z.string().describe('Human-readable description of the error.'),
2269
- attributes: z
2270
- .record(z.string(), z.unknown())
2271
- .optional()
2272
- .describe('Additional structured context.'),
2273
- severity: invoiceValidationIssueSeverity,
2274
- field: z
2275
- .string()
2276
- .optional()
2277
- .describe('JSON path to the field that caused this validation issue, if applicable. For example: `lines/0/rate_card/price`.'),
2278
- })
2279
- .describe('A validation issue found during invoice processing. Converges on the same structure used by plan and subscription validation errors: a machine-readable `code`, a human-readable `message`, optional structured `attributes`, plus a `severity` and optional `field` path.');
2280
2284
  export const invoiceAvailableActions = z
2281
2285
  .object({
2282
2286
  advance: invoiceAvailableActionDetails.optional(),
@@ -2534,6 +2538,7 @@ export const creditAdjustment = z
2534
2538
  export const creditBalance = z
2535
2539
  .object({
2536
2540
  currency: billingCurrencyCode,
2541
+ customCurrencyId: ulid.optional(),
2537
2542
  live: numeric,
2538
2543
  settled: numeric,
2539
2544
  pending: numeric,
@@ -2581,6 +2586,7 @@ export const creditTransaction = z
2581
2586
  bookedAt: dateTime,
2582
2587
  type: creditTransactionType,
2583
2588
  currency: billingCurrencyCode,
2589
+ customCurrencyId: ulid.optional(),
2584
2590
  amount: numeric,
2585
2591
  availableBalance: z
2586
2592
  .object({
@@ -4008,6 +4014,10 @@ export const creditGrant = z
4008
4014
  expiresAt: dateTime.optional(),
4009
4015
  voidedAt: dateTime.optional(),
4010
4016
  status: creditGrantStatus,
4017
+ validationIssues: z
4018
+ .array(validationIssue)
4019
+ .optional()
4020
+ .describe('Validation issues found while processing the credit grant. Present only when there are one or more validation findings. An empty list is omitted.'),
4011
4021
  })
4012
4022
  .describe('A credit grant allocates credits to a customer. Credits are drawn down against charges according to the settlement mode configured on the rate card.');
4013
4023
  export const currencyPagePaginatedResponse = z
@@ -4040,7 +4050,7 @@ export const invoiceBase = z
4040
4050
  totals: totals,
4041
4051
  servicePeriod: closedPeriod,
4042
4052
  validationIssues: z
4043
- .array(invoiceValidationIssue)
4053
+ .array(validationIssue)
4044
4054
  .optional()
4045
4055
  .describe('Validation issues found during invoice processing. Present only when there are one or more validation findings. An empty list is omitted.'),
4046
4056
  externalReferences: invoiceExternalReferences.optional(),
@@ -4081,7 +4091,7 @@ export const chargeRealizationInvoice = z
4081
4091
  totals: totals,
4082
4092
  servicePeriod: closedPeriod,
4083
4093
  validationIssues: z
4084
- .array(invoiceValidationIssue)
4094
+ .array(validationIssue)
4085
4095
  .optional()
4086
4096
  .describe('Validation issues found during invoice processing. Present only when there are one or more validation findings. An empty list is omitted.'),
4087
4097
  externalReferences: invoiceExternalReferences.optional(),
@@ -4861,7 +4871,7 @@ export const invoiceStandard = z
4861
4871
  totals: totals,
4862
4872
  servicePeriod: closedPeriod,
4863
4873
  validationIssues: z
4864
- .array(invoiceValidationIssue)
4874
+ .array(validationIssue)
4865
4875
  .optional()
4866
4876
  .describe('Validation issues found during invoice processing. Present only when there are one or more validation findings. An empty list is omitted.'),
4867
4877
  externalReferences: invoiceExternalReferences.optional(),
@@ -4948,6 +4958,10 @@ export const chargeFlatFee = z
4948
4958
  currency: billingCurrencyCode,
4949
4959
  resolvedCostBasis: chargeResolvedCostBasis.optional(),
4950
4960
  status: chargeStatus,
4961
+ validationIssues: z
4962
+ .array(validationIssue)
4963
+ .optional()
4964
+ .describe('Validation issues found while processing the charge. Present only when there are one or more validation findings. An empty list is omitted.'),
4951
4965
  invoiceAt: dateTime,
4952
4966
  servicePeriod: closedPeriod,
4953
4967
  fullServicePeriod: closedPeriod,
@@ -4995,6 +5009,10 @@ export const chargeUsageBased = z
4995
5009
  currency: billingCurrencyCode,
4996
5010
  resolvedCostBasis: chargeResolvedCostBasis.optional(),
4997
5011
  status: chargeStatus,
5012
+ validationIssues: z
5013
+ .array(validationIssue)
5014
+ .optional()
5015
+ .describe('Validation issues found while processing the charge. Present only when there are one or more validation findings. An empty list is omitted.'),
4998
5016
  invoiceAt: dateTime,
4999
5017
  servicePeriod: closedPeriod,
5000
5018
  fullServicePeriod: closedPeriod,
@@ -6153,6 +6171,9 @@ export const creditPurchasePaymentSettlementStatusWire = z
6153
6171
  export const creditGrantStatusWire = z
6154
6172
  .enum(['pending', 'active', 'expired', 'voided'])
6155
6173
  .describe('Credit grant lifecycle status. - `pending`: The credit block has been created but is not yet valid. (`effective_at` is in the future or availability_policy is not met) - `active`: The credit block is currently valid and eligible for consumption. (`effective_at` is in the past, `expires_at` is in the future and availability_policy is met) - `expired`: The credit block expired with remaining unused balance, `expires_at` time has passed. - `voided`: The credit block was voided. Remaining balance is forfeited.');
6174
+ export const validationIssueSeverityWire = z
6175
+ .enum(['critical', 'warning'])
6176
+ .describe('Severity level of a billing validation issue.');
6156
6177
  export const stringFieldFilterExactWire = z
6157
6178
  .union([
6158
6179
  z.string(),
@@ -6262,9 +6283,6 @@ export const taxIdentificationCodeWire = z
6262
6283
  .min(1)
6263
6284
  .max(32)
6264
6285
  .describe('Tax identifier code is a normalized tax code shown on the original identity document.');
6265
- export const invoiceValidationIssueSeverityWire = z
6266
- .enum(['critical', 'warning'])
6267
- .describe('Severity level of an invoice validation issue.');
6268
6286
  export const invoiceExternalReferencesWire = z
6269
6287
  .strictObject({
6270
6288
  invoicing_id: z
@@ -7942,6 +7960,25 @@ export const listCreditGrantsParamsFilterWire = z
7942
7960
  key: stringFieldFilterWire.optional(),
7943
7961
  })
7944
7962
  .describe('Filter options for listing credit grants.');
7963
+ export const validationIssueWire = z
7964
+ .strictObject({
7965
+ code: z.string().describe('Machine-readable error code.'),
7966
+ message: z.string().describe('Human-readable description of the error.'),
7967
+ attributes: z
7968
+ .record(z.string(), z.unknown())
7969
+ .optional()
7970
+ .describe('Additional structured context.'),
7971
+ severity: validationIssueSeverityWire,
7972
+ field: z
7973
+ .string()
7974
+ .optional()
7975
+ .describe('JSON path to the field that caused the validation issue, if applicable.'),
7976
+ component: z
7977
+ .string()
7978
+ .optional()
7979
+ .describe('Component that reported the validation issue, if applicable.'),
7980
+ })
7981
+ .describe('A validation issue found while processing a billing resource.');
7945
7982
  export const getCreditBalanceParamsFilterWire = z
7946
7983
  .strictObject({
7947
7984
  currency: stringFieldFilterExactWire.optional(),
@@ -7998,21 +8035,6 @@ export const updateBillingPartyTaxIdentityWire = z
7998
8035
  code: taxIdentificationCodeWire.optional(),
7999
8036
  })
8000
8037
  .describe('Identity stores the details required to identify an entity for tax purposes in a specific country.');
8001
- export const invoiceValidationIssueWire = z
8002
- .strictObject({
8003
- code: z.string().describe('Machine-readable error code.'),
8004
- message: z.string().describe('Human-readable description of the error.'),
8005
- attributes: z
8006
- .record(z.string(), z.unknown())
8007
- .optional()
8008
- .describe('Additional structured context.'),
8009
- severity: invoiceValidationIssueSeverityWire,
8010
- field: z
8011
- .string()
8012
- .optional()
8013
- .describe('JSON path to the field that caused this validation issue, if applicable. For example: `lines/0/rate_card/price`.'),
8014
- })
8015
- .describe('A validation issue found during invoice processing. Converges on the same structure used by plan and subscription validation errors: a machine-readable `code`, a human-readable `message`, optional structured `attributes`, plus a `severity` and optional `field` path.');
8016
8038
  export const invoiceAvailableActionsWire = z
8017
8039
  .strictObject({
8018
8040
  advance: invoiceAvailableActionDetailsWire.optional(),
@@ -8264,6 +8286,7 @@ export const creditAdjustmentWire = z
8264
8286
  export const creditBalanceWire = z
8265
8287
  .strictObject({
8266
8288
  currency: billingCurrencyCodeWire,
8289
+ custom_currency_id: ulidWire.optional(),
8267
8290
  live: numericWire,
8268
8291
  settled: numericWire,
8269
8292
  pending: numericWire,
@@ -8311,6 +8334,7 @@ export const creditTransactionWire = z
8311
8334
  booked_at: dateTimeWire,
8312
8335
  type: creditTransactionTypeWire,
8313
8336
  currency: billingCurrencyCodeWire,
8337
+ custom_currency_id: ulidWire.optional(),
8314
8338
  amount: numericWire,
8315
8339
  available_balance: z
8316
8340
  .strictObject({
@@ -9738,6 +9762,10 @@ export const creditGrantWire = z
9738
9762
  expires_at: dateTimeWire.optional(),
9739
9763
  voided_at: dateTimeWire.optional(),
9740
9764
  status: creditGrantStatusWire,
9765
+ validation_issues: z
9766
+ .array(validationIssueWire)
9767
+ .optional()
9768
+ .describe('Validation issues found while processing the credit grant. Present only when there are one or more validation findings. An empty list is omitted.'),
9741
9769
  })
9742
9770
  .describe('A credit grant allocates credits to a customer. Credits are drawn down against charges according to the settlement mode configured on the rate card.');
9743
9771
  export const currencyPagePaginatedResponseWire = z
@@ -9770,7 +9798,7 @@ export const invoiceBaseWire = z
9770
9798
  totals: totalsWire,
9771
9799
  service_period: closedPeriodWire,
9772
9800
  validation_issues: z
9773
- .array(invoiceValidationIssueWire)
9801
+ .array(validationIssueWire)
9774
9802
  .optional()
9775
9803
  .describe('Validation issues found during invoice processing. Present only when there are one or more validation findings. An empty list is omitted.'),
9776
9804
  external_references: invoiceExternalReferencesWire.optional(),
@@ -9808,7 +9836,7 @@ export const chargeRealizationInvoiceWire = z
9808
9836
  totals: totalsWire,
9809
9837
  service_period: closedPeriodWire,
9810
9838
  validation_issues: z
9811
- .array(invoiceValidationIssueWire)
9839
+ .array(validationIssueWire)
9812
9840
  .optional()
9813
9841
  .describe('Validation issues found during invoice processing. Present only when there are one or more validation findings. An empty list is omitted.'),
9814
9842
  external_references: invoiceExternalReferencesWire.optional(),
@@ -10586,7 +10614,7 @@ export const invoiceStandardWire = z
10586
10614
  totals: totalsWire,
10587
10615
  service_period: closedPeriodWire,
10588
10616
  validation_issues: z
10589
- .array(invoiceValidationIssueWire)
10617
+ .array(validationIssueWire)
10590
10618
  .optional()
10591
10619
  .describe('Validation issues found during invoice processing. Present only when there are one or more validation findings. An empty list is omitted.'),
10592
10620
  external_references: invoiceExternalReferencesWire.optional(),
@@ -10673,6 +10701,10 @@ export const chargeFlatFeeWire = z
10673
10701
  currency: billingCurrencyCodeWire,
10674
10702
  resolved_cost_basis: chargeResolvedCostBasisWire.optional(),
10675
10703
  status: chargeStatusWire,
10704
+ validation_issues: z
10705
+ .array(validationIssueWire)
10706
+ .optional()
10707
+ .describe('Validation issues found while processing the charge. Present only when there are one or more validation findings. An empty list is omitted.'),
10676
10708
  invoice_at: dateTimeWire,
10677
10709
  service_period: closedPeriodWire,
10678
10710
  full_service_period: closedPeriodWire,
@@ -10720,6 +10752,10 @@ export const chargeUsageBasedWire = z
10720
10752
  currency: billingCurrencyCodeWire,
10721
10753
  resolved_cost_basis: chargeResolvedCostBasisWire.optional(),
10722
10754
  status: chargeStatusWire,
10755
+ validation_issues: z
10756
+ .array(validationIssueWire)
10757
+ .optional()
10758
+ .describe('Validation issues found while processing the charge. Present only when there are one or more validation findings. An empty list is omitted.'),
10723
10759
  invoice_at: dateTimeWire,
10724
10760
  service_period: closedPeriodWire,
10725
10761
  full_service_period: closedPeriodWire,
@@ -1854,9 +1854,27 @@ export interface ListCreditGrantsParamsFilter {
1854
1854
  /** Filter credit grants by key. */
1855
1855
  key?: StringFieldFilter;
1856
1856
  }
1857
+ /** A validation issue found while processing a billing resource. */
1858
+ export interface ValidationIssue {
1859
+ /** Machine-readable error code. */
1860
+ code: string;
1861
+ /** Human-readable description of the error. */
1862
+ message: string;
1863
+ /** Additional structured context. */
1864
+ attributes?: Record<string, unknown>;
1865
+ /** Severity of the validation issue. */
1866
+ severity: 'critical' | 'warning';
1867
+ /** JSON path to the field that caused the validation issue, if applicable. */
1868
+ field?: string;
1869
+ /** Component that reported the validation issue, if applicable. */
1870
+ component?: string;
1871
+ }
1857
1872
  /** Filter options for getting a credit balance. */
1858
1873
  export interface GetCreditBalanceParamsFilter {
1859
- /** Filter credit balance by currency. */
1874
+ /**
1875
+ * Filter credit balance by currency code. When historical custom currencies reuse
1876
+ * a code, each managed currency is returned as a separate balance row.
1877
+ */
1860
1878
  currency?: StringFieldFilterExact;
1861
1879
  /**
1862
1880
  * Filter credit balance by feature key. Omit to return the total portfolio value.
@@ -1968,29 +1986,6 @@ export interface UpdateBillingPartyTaxIdentity {
1968
1986
  /** Normalized tax identification code shown on the original identity document. */
1969
1987
  code?: string;
1970
1988
  }
1971
- /**
1972
- * A validation issue found during invoice processing.
1973
- *
1974
- * Converges on the same structure used by plan and subscription validation errors:
1975
- * a machine-readable `code`, a human-readable `message`, optional structured
1976
- * `attributes`, plus a `severity` and optional `field` path.
1977
- */
1978
- export interface InvoiceValidationIssue {
1979
- /** Machine-readable error code. */
1980
- code: string;
1981
- /** Human-readable description of the error. */
1982
- message: string;
1983
- /** Additional structured context. */
1984
- attributes?: Record<string, unknown>;
1985
- /** Severity of the validation issue. */
1986
- severity: 'critical' | 'warning';
1987
- /**
1988
- * JSON path to the field that caused this validation issue, if applicable.
1989
- *
1990
- * For example: `lines/0/rate_card/price`.
1991
- */
1992
- field?: string;
1993
- }
1994
1989
  /**
1995
1990
  * The set of state-transition actions available for an invoice in its current
1996
1991
  * status.
@@ -2266,6 +2261,8 @@ export interface CreditAdjustment {
2266
2261
  /** The credit balance by currency. */
2267
2262
  export interface CreditBalance {
2268
2263
  currency: BillingCurrencyCode;
2264
+ /** Immutable managed currency identifier. Present only for custom currencies. */
2265
+ customCurrencyId?: string;
2269
2266
  /**
2270
2267
  * Credits available after applying currently live charge impacts.
2271
2268
  *
@@ -2305,7 +2302,10 @@ export interface CreateCreditAdjustmentRequest {
2305
2302
  export interface ListCreditTransactionsParamsFilter {
2306
2303
  /** Filter credit transactions by type. */
2307
2304
  type?: 'funded' | 'consumed' | 'expired' | 'voided';
2308
- /** Filter credit transactions by currency. */
2305
+ /**
2306
+ * Filter credit transactions by currency code. Custom-currency rows retain their
2307
+ * managed currency identifier.
2308
+ */
2309
2309
  currency?: BillingCurrencyCode;
2310
2310
  /**
2311
2311
  * Filter credit transactions by feature key. Omit to return all credit
@@ -2343,6 +2343,8 @@ export interface CreditTransaction {
2343
2343
  type: 'funded' | 'consumed' | 'expired' | 'voided';
2344
2344
  /** Currency of the balance affected by the transaction. */
2345
2345
  currency: BillingCurrencyCode;
2346
+ /** Immutable managed currency identifier. Present only for custom currencies. */
2347
+ customCurrencyId?: string;
2346
2348
  /**
2347
2349
  * Signed amount of the credit movement. Positive values add balance, negative
2348
2350
  * values reduce balance.
@@ -4357,6 +4359,13 @@ export interface CreditGrant {
4357
4359
  voidedAt?: Date;
4358
4360
  /** Current lifecycle status of the grant. */
4359
4361
  status: 'pending' | 'active' | 'expired' | 'voided';
4362
+ /**
4363
+ * Validation issues found while processing the credit grant.
4364
+ *
4365
+ * Present only when there are one or more validation findings. An empty list is
4366
+ * omitted.
4367
+ */
4368
+ validationIssues?: ValidationIssue[];
4360
4369
  }
4361
4370
  /** Page paginated response. */
4362
4371
  export interface CurrencyPagePaginatedResponse {
@@ -4415,7 +4424,7 @@ export interface InvoiceBase {
4415
4424
  * Present only when there are one or more validation findings. An empty list is
4416
4425
  * omitted.
4417
4426
  */
4418
- validationIssues?: InvoiceValidationIssue[];
4427
+ validationIssues?: ValidationIssue[];
4419
4428
  /** External identifiers assigned to this invoice by third-party systems. */
4420
4429
  externalReferences?: InvoiceExternalReferences;
4421
4430
  }
@@ -4500,7 +4509,7 @@ export interface ChargeRealizationInvoice {
4500
4509
  * Present only when there are one or more validation findings. An empty list is
4501
4510
  * omitted.
4502
4511
  */
4503
- validationIssues?: InvoiceValidationIssue[];
4512
+ validationIssues?: ValidationIssue[];
4504
4513
  /** External identifiers assigned to this invoice by third-party systems. */
4505
4514
  externalReferences?: InvoiceExternalReferences;
4506
4515
  /** Discriminator field identifying this as a standard invoice. */
@@ -5739,7 +5748,7 @@ export interface InvoiceStandard {
5739
5748
  * Present only when there are one or more validation findings. An empty list is
5740
5749
  * omitted.
5741
5750
  */
5742
- validationIssues?: InvoiceValidationIssue[];
5751
+ validationIssues?: ValidationIssue[];
5743
5752
  /** External identifiers assigned to this invoice by third-party systems. */
5744
5753
  externalReferences?: InvoiceExternalReferences;
5745
5754
  /** Discriminator field identifying this as a standard invoice. */
@@ -5874,6 +5883,13 @@ export interface ChargeFlatFee {
5874
5883
  resolvedCostBasis?: ChargeResolvedCostBasis;
5875
5884
  /** The lifecycle status of the charge. */
5876
5885
  status: 'created' | 'active' | 'final' | 'deleted';
5886
+ /**
5887
+ * Validation issues found while processing the charge.
5888
+ *
5889
+ * Present only when there are one or more validation findings. An empty list is
5890
+ * omitted.
5891
+ */
5892
+ validationIssues?: ValidationIssue[];
5877
5893
  /** The timestamp when the charge is intended to be invoiced. */
5878
5894
  invoiceAt: Date;
5879
5895
  /** The effective service period covered by the charge. */
@@ -5968,6 +5984,13 @@ export interface ChargeUsageBased {
5968
5984
  resolvedCostBasis?: ChargeResolvedCostBasis;
5969
5985
  /** The lifecycle status of the charge. */
5970
5986
  status: 'created' | 'active' | 'final' | 'deleted';
5987
+ /**
5988
+ * Validation issues found while processing the charge.
5989
+ *
5990
+ * Present only when there are one or more validation findings. An empty list is
5991
+ * omitted.
5992
+ */
5993
+ validationIssues?: ValidationIssue[];
5971
5994
  /** The timestamp when the charge is intended to be invoiced. */
5972
5995
  invoiceAt: Date;
5973
5996
  /** The effective service period covered by the charge. */
@@ -6989,6 +7012,13 @@ export interface CreditGrantInput {
6989
7012
  voidedAt?: Date;
6990
7013
  /** Current lifecycle status of the grant. */
6991
7014
  status: 'pending' | 'active' | 'expired' | 'voided';
7015
+ /**
7016
+ * Validation issues found while processing the credit grant.
7017
+ *
7018
+ * Present only when there are one or more validation findings. An empty list is
7019
+ * omitted.
7020
+ */
7021
+ validationIssues?: ValidationIssue[];
6992
7022
  }
6993
7023
  /** Bad Request. */
6994
7024
  export interface BadRequestInput extends BaseErrorInput {
@@ -7076,7 +7106,7 @@ export interface ChargeRealizationInvoiceInput {
7076
7106
  * Present only when there are one or more validation findings. An empty list is
7077
7107
  * omitted.
7078
7108
  */
7079
- validationIssues?: InvoiceValidationIssue[];
7109
+ validationIssues?: ValidationIssue[];
7080
7110
  /** External identifiers assigned to this invoice by third-party systems. */
7081
7111
  externalReferences?: InvoiceExternalReferences;
7082
7112
  /** Discriminator field identifying this as a standard invoice. */
@@ -8231,7 +8261,7 @@ export interface InvoiceStandardInput {
8231
8261
  * Present only when there are one or more validation findings. An empty list is
8232
8262
  * omitted.
8233
8263
  */
8234
- validationIssues?: InvoiceValidationIssue[];
8264
+ validationIssues?: ValidationIssue[];
8235
8265
  /** External identifiers assigned to this invoice by third-party systems. */
8236
8266
  externalReferences?: InvoiceExternalReferences;
8237
8267
  /** Discriminator field identifying this as a standard invoice. */
@@ -8366,6 +8396,13 @@ export interface ChargeFlatFeeInput {
8366
8396
  resolvedCostBasis?: ChargeResolvedCostBasis;
8367
8397
  /** The lifecycle status of the charge. */
8368
8398
  status: 'created' | 'active' | 'final' | 'deleted';
8399
+ /**
8400
+ * Validation issues found while processing the charge.
8401
+ *
8402
+ * Present only when there are one or more validation findings. An empty list is
8403
+ * omitted.
8404
+ */
8405
+ validationIssues?: ValidationIssue[];
8369
8406
  /** The timestamp when the charge is intended to be invoiced. */
8370
8407
  invoiceAt: Date;
8371
8408
  /** The effective service period covered by the charge. */
@@ -8460,6 +8497,13 @@ export interface ChargeUsageBasedInput {
8460
8497
  resolvedCostBasis?: ChargeResolvedCostBasis;
8461
8498
  /** The lifecycle status of the charge. */
8462
8499
  status: 'created' | 'active' | 'final' | 'deleted';
8500
+ /**
8501
+ * Validation issues found while processing the charge.
8502
+ *
8503
+ * Present only when there are one or more validation findings. An empty list is
8504
+ * omitted.
8505
+ */
8506
+ validationIssues?: ValidationIssue[];
8463
8507
  /** The timestamp when the charge is intended to be invoiced. */
8464
8508
  invoiceAt: Date;
8465
8509
  /** The effective service period covered by the charge. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmeter/client",
3
- "version": "1.0.0-beta-fd561cd8ec89",
3
+ "version": "1.0.0-beta-622df7843cd1",
4
4
  "description": "Official TypeScript SDK for the OpenMeter API — usage metering and billing",
5
5
  "keywords": [
6
6
  "openmeter",