@openmeter/client 1.0.0-beta-52517e35f811 → 1.0.0-beta-90b8cf6e0dc8

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-52517e35f811";
1
+ export declare const SDK_VERSION = "1.0.0-beta-90b8cf6e0dc8";
@@ -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-52517e35f811';
5
+ export const SDK_VERSION = '1.0.0-beta-90b8cf6e0dc8';
@@ -437,6 +437,10 @@ export declare const workflowInvoicingSubscriptionEndProrationMode: z.ZodEnum<{
437
437
  bill_actual_period: "bill_actual_period";
438
438
  bill_full_period: "bill_full_period";
439
439
  }>;
440
+ export declare const workflowInvoicingEmptyInvoiceMode: z.ZodEnum<{
441
+ create: "create";
442
+ omit: "omit";
443
+ }>;
440
444
  export declare const updateBillingInvoiceWorkflowInvoicingSettings: z.ZodObject<{
441
445
  autoAdvance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
442
446
  draftPeriod: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -1759,6 +1763,10 @@ export declare const workflowInvoicingSettings: z.ZodObject<{
1759
1763
  bill_actual_period: "bill_actual_period";
1760
1764
  bill_full_period: "bill_full_period";
1761
1765
  }>>>;
1766
+ emptyInvoiceMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
1767
+ create: "create";
1768
+ omit: "omit";
1769
+ }>>>;
1762
1770
  }, z.core.$strip>;
1763
1771
  export declare const updateBillingWorkflowPaymentSettings: z.ZodDiscriminatedUnion<[z.ZodObject<{
1764
1772
  collectionMethod: z.ZodLiteral<"charge_automatically">;
@@ -8136,6 +8144,10 @@ export declare const workflow: z.ZodObject<{
8136
8144
  bill_actual_period: "bill_actual_period";
8137
8145
  bill_full_period: "bill_full_period";
8138
8146
  }>>>;
8147
+ emptyInvoiceMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
8148
+ create: "create";
8149
+ omit: "omit";
8150
+ }>>>;
8139
8151
  }, z.core.$strip>>;
8140
8152
  payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
8141
8153
  collectionMethod: z.ZodLiteral<"charge_automatically">;
@@ -10209,6 +10221,10 @@ export declare const profile: z.ZodObject<{
10209
10221
  bill_actual_period: "bill_actual_period";
10210
10222
  bill_full_period: "bill_full_period";
10211
10223
  }>>>;
10224
+ emptyInvoiceMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
10225
+ create: "create";
10226
+ omit: "omit";
10227
+ }>>>;
10212
10228
  }, z.core.$strip>>;
10213
10229
  payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
10214
10230
  collectionMethod: z.ZodLiteral<"charge_automatically">;
@@ -10294,6 +10310,10 @@ export declare const createBillingProfileRequest: z.ZodObject<{
10294
10310
  bill_actual_period: "bill_actual_period";
10295
10311
  bill_full_period: "bill_full_period";
10296
10312
  }>>>;
10313
+ emptyInvoiceMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
10314
+ create: "create";
10315
+ omit: "omit";
10316
+ }>>>;
10297
10317
  }, z.core.$strip>>;
10298
10318
  payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
10299
10319
  collectionMethod: z.ZodLiteral<"charge_automatically">;
@@ -10379,6 +10399,10 @@ export declare const upsertBillingProfileRequest: z.ZodObject<{
10379
10399
  bill_actual_period: "bill_actual_period";
10380
10400
  bill_full_period: "bill_full_period";
10381
10401
  }>>>;
10402
+ emptyInvoiceMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
10403
+ create: "create";
10404
+ omit: "omit";
10405
+ }>>>;
10382
10406
  }, z.core.$strip>>;
10383
10407
  payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
10384
10408
  collectionMethod: z.ZodLiteral<"charge_automatically">;
@@ -12041,6 +12065,10 @@ export declare const profilePagePaginatedResponse: z.ZodObject<{
12041
12065
  bill_actual_period: "bill_actual_period";
12042
12066
  bill_full_period: "bill_full_period";
12043
12067
  }>>>;
12068
+ emptyInvoiceMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
12069
+ create: "create";
12070
+ omit: "omit";
12071
+ }>>>;
12044
12072
  }, z.core.$strip>>;
12045
12073
  payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
12046
12074
  collectionMethod: z.ZodLiteral<"charge_automatically">;
@@ -28807,6 +28835,10 @@ export declare const listBillingProfilesResponse: z.ZodObject<{
28807
28835
  bill_actual_period: "bill_actual_period";
28808
28836
  bill_full_period: "bill_full_period";
28809
28837
  }>>>;
28838
+ emptyInvoiceMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
28839
+ create: "create";
28840
+ omit: "omit";
28841
+ }>>>;
28810
28842
  }, z.core.$strip>>;
28811
28843
  payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
28812
28844
  collectionMethod: z.ZodLiteral<"charge_automatically">;
@@ -28900,6 +28932,10 @@ export declare const createBillingProfileBody: z.ZodObject<{
28900
28932
  bill_actual_period: "bill_actual_period";
28901
28933
  bill_full_period: "bill_full_period";
28902
28934
  }>>>;
28935
+ emptyInvoiceMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
28936
+ create: "create";
28937
+ omit: "omit";
28938
+ }>>>;
28903
28939
  }, z.core.$strip>>;
28904
28940
  payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
28905
28941
  collectionMethod: z.ZodLiteral<"charge_automatically">;
@@ -28989,6 +29025,10 @@ export declare const createBillingProfileResponse: z.ZodObject<{
28989
29025
  bill_actual_period: "bill_actual_period";
28990
29026
  bill_full_period: "bill_full_period";
28991
29027
  }>>>;
29028
+ emptyInvoiceMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
29029
+ create: "create";
29030
+ omit: "omit";
29031
+ }>>>;
28992
29032
  }, z.core.$strip>>;
28993
29033
  payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
28994
29034
  collectionMethod: z.ZodLiteral<"charge_automatically">;
@@ -29081,6 +29121,10 @@ export declare const getBillingProfileResponse: z.ZodObject<{
29081
29121
  bill_actual_period: "bill_actual_period";
29082
29122
  bill_full_period: "bill_full_period";
29083
29123
  }>>>;
29124
+ emptyInvoiceMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
29125
+ create: "create";
29126
+ omit: "omit";
29127
+ }>>>;
29084
29128
  }, z.core.$strip>>;
29085
29129
  payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
29086
29130
  collectionMethod: z.ZodLiteral<"charge_automatically">;
@@ -29169,6 +29213,10 @@ export declare const updateBillingProfileBody: z.ZodObject<{
29169
29213
  bill_actual_period: "bill_actual_period";
29170
29214
  bill_full_period: "bill_full_period";
29171
29215
  }>>>;
29216
+ emptyInvoiceMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
29217
+ create: "create";
29218
+ omit: "omit";
29219
+ }>>>;
29172
29220
  }, z.core.$strip>>;
29173
29221
  payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
29174
29222
  collectionMethod: z.ZodLiteral<"charge_automatically">;
@@ -29247,6 +29295,10 @@ export declare const updateBillingProfileResponse: z.ZodObject<{
29247
29295
  bill_actual_period: "bill_actual_period";
29248
29296
  bill_full_period: "bill_full_period";
29249
29297
  }>>>;
29298
+ emptyInvoiceMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
29299
+ create: "create";
29300
+ omit: "omit";
29301
+ }>>>;
29250
29302
  }, z.core.$strip>>;
29251
29303
  payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
29252
29304
  collectionMethod: z.ZodLiteral<"charge_automatically">;
@@ -38297,6 +38349,10 @@ export declare const workflowInvoicingSubscriptionEndProrationModeWire: z.ZodEnu
38297
38349
  bill_actual_period: "bill_actual_period";
38298
38350
  bill_full_period: "bill_full_period";
38299
38351
  }>;
38352
+ export declare const workflowInvoicingEmptyInvoiceModeWire: z.ZodEnum<{
38353
+ create: "create";
38354
+ omit: "omit";
38355
+ }>;
38300
38356
  export declare const updateBillingInvoiceWorkflowInvoicingSettingsWire: z.ZodObject<{
38301
38357
  auto_advance: z.ZodOptional<z.ZodBoolean>;
38302
38358
  draft_period: z.ZodOptional<z.ZodString>;
@@ -39619,6 +39675,10 @@ export declare const workflowInvoicingSettingsWire: z.ZodObject<{
39619
39675
  bill_actual_period: "bill_actual_period";
39620
39676
  bill_full_period: "bill_full_period";
39621
39677
  }>>;
39678
+ empty_invoice_mode: z.ZodOptional<z.ZodEnum<{
39679
+ create: "create";
39680
+ omit: "omit";
39681
+ }>>;
39622
39682
  }, z.core.$strict>;
39623
39683
  export declare const updateBillingWorkflowPaymentSettingsWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
39624
39684
  collection_method: z.ZodLiteral<"charge_automatically">;
@@ -45996,6 +46056,10 @@ export declare const workflowWire: z.ZodObject<{
45996
46056
  bill_actual_period: "bill_actual_period";
45997
46057
  bill_full_period: "bill_full_period";
45998
46058
  }>>;
46059
+ empty_invoice_mode: z.ZodOptional<z.ZodEnum<{
46060
+ create: "create";
46061
+ omit: "omit";
46062
+ }>>;
45999
46063
  }, z.core.$strict>>;
46000
46064
  payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
46001
46065
  collection_method: z.ZodLiteral<"charge_automatically">;
@@ -48069,6 +48133,10 @@ export declare const profileWire: z.ZodObject<{
48069
48133
  bill_actual_period: "bill_actual_period";
48070
48134
  bill_full_period: "bill_full_period";
48071
48135
  }>>;
48136
+ empty_invoice_mode: z.ZodOptional<z.ZodEnum<{
48137
+ create: "create";
48138
+ omit: "omit";
48139
+ }>>;
48072
48140
  }, z.core.$strict>>;
48073
48141
  payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
48074
48142
  collection_method: z.ZodLiteral<"charge_automatically">;
@@ -48154,6 +48222,10 @@ export declare const createBillingProfileRequestWire: z.ZodObject<{
48154
48222
  bill_actual_period: "bill_actual_period";
48155
48223
  bill_full_period: "bill_full_period";
48156
48224
  }>>;
48225
+ empty_invoice_mode: z.ZodOptional<z.ZodEnum<{
48226
+ create: "create";
48227
+ omit: "omit";
48228
+ }>>;
48157
48229
  }, z.core.$strict>>;
48158
48230
  payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
48159
48231
  collection_method: z.ZodLiteral<"charge_automatically">;
@@ -48239,6 +48311,10 @@ export declare const upsertBillingProfileRequestWire: z.ZodObject<{
48239
48311
  bill_actual_period: "bill_actual_period";
48240
48312
  bill_full_period: "bill_full_period";
48241
48313
  }>>;
48314
+ empty_invoice_mode: z.ZodOptional<z.ZodEnum<{
48315
+ create: "create";
48316
+ omit: "omit";
48317
+ }>>;
48242
48318
  }, z.core.$strict>>;
48243
48319
  payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
48244
48320
  collection_method: z.ZodLiteral<"charge_automatically">;
@@ -49901,6 +49977,10 @@ export declare const profilePagePaginatedResponseWire: z.ZodObject<{
49901
49977
  bill_actual_period: "bill_actual_period";
49902
49978
  bill_full_period: "bill_full_period";
49903
49979
  }>>;
49980
+ empty_invoice_mode: z.ZodOptional<z.ZodEnum<{
49981
+ create: "create";
49982
+ omit: "omit";
49983
+ }>>;
49904
49984
  }, z.core.$strict>>;
49905
49985
  payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
49906
49986
  collection_method: z.ZodLiteral<"charge_automatically">;
@@ -66628,6 +66708,10 @@ export declare const listBillingProfilesResponseWire: z.ZodObject<{
66628
66708
  bill_actual_period: "bill_actual_period";
66629
66709
  bill_full_period: "bill_full_period";
66630
66710
  }>>;
66711
+ empty_invoice_mode: z.ZodOptional<z.ZodEnum<{
66712
+ create: "create";
66713
+ omit: "omit";
66714
+ }>>;
66631
66715
  }, z.core.$strict>>;
66632
66716
  payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
66633
66717
  collection_method: z.ZodLiteral<"charge_automatically">;
@@ -66721,6 +66805,10 @@ export declare const createBillingProfileBodyWire: z.ZodObject<{
66721
66805
  bill_actual_period: "bill_actual_period";
66722
66806
  bill_full_period: "bill_full_period";
66723
66807
  }>>;
66808
+ empty_invoice_mode: z.ZodOptional<z.ZodEnum<{
66809
+ create: "create";
66810
+ omit: "omit";
66811
+ }>>;
66724
66812
  }, z.core.$strict>>;
66725
66813
  payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
66726
66814
  collection_method: z.ZodLiteral<"charge_automatically">;
@@ -66810,6 +66898,10 @@ export declare const createBillingProfileResponseWire: z.ZodObject<{
66810
66898
  bill_actual_period: "bill_actual_period";
66811
66899
  bill_full_period: "bill_full_period";
66812
66900
  }>>;
66901
+ empty_invoice_mode: z.ZodOptional<z.ZodEnum<{
66902
+ create: "create";
66903
+ omit: "omit";
66904
+ }>>;
66813
66905
  }, z.core.$strict>>;
66814
66906
  payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
66815
66907
  collection_method: z.ZodLiteral<"charge_automatically">;
@@ -66902,6 +66994,10 @@ export declare const getBillingProfileResponseWire: z.ZodObject<{
66902
66994
  bill_actual_period: "bill_actual_period";
66903
66995
  bill_full_period: "bill_full_period";
66904
66996
  }>>;
66997
+ empty_invoice_mode: z.ZodOptional<z.ZodEnum<{
66998
+ create: "create";
66999
+ omit: "omit";
67000
+ }>>;
66905
67001
  }, z.core.$strict>>;
66906
67002
  payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
66907
67003
  collection_method: z.ZodLiteral<"charge_automatically">;
@@ -66990,6 +67086,10 @@ export declare const updateBillingProfileBodyWire: z.ZodObject<{
66990
67086
  bill_actual_period: "bill_actual_period";
66991
67087
  bill_full_period: "bill_full_period";
66992
67088
  }>>;
67089
+ empty_invoice_mode: z.ZodOptional<z.ZodEnum<{
67090
+ create: "create";
67091
+ omit: "omit";
67092
+ }>>;
66993
67093
  }, z.core.$strict>>;
66994
67094
  payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
66995
67095
  collection_method: z.ZodLiteral<"charge_automatically">;
@@ -67068,6 +67168,10 @@ export declare const updateBillingProfileResponseWire: z.ZodObject<{
67068
67168
  bill_actual_period: "bill_actual_period";
67069
67169
  bill_full_period: "bill_full_period";
67070
67170
  }>>;
67171
+ empty_invoice_mode: z.ZodOptional<z.ZodEnum<{
67172
+ create: "create";
67173
+ omit: "omit";
67174
+ }>>;
67071
67175
  }, z.core.$strict>>;
67072
67176
  payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
67073
67177
  collection_method: z.ZodLiteral<"charge_automatically">;
@@ -786,6 +786,9 @@ export const workflowCollectionAlignmentSubscription = z
786
786
  export const workflowInvoicingSubscriptionEndProrationMode = z
787
787
  .enum(['bill_full_period', 'bill_actual_period'])
788
788
  .describe('Billing workflow subscription end proration mode.');
789
+ export const workflowInvoicingEmptyInvoiceMode = z
790
+ .enum(['create', 'omit'])
791
+ .describe('Billing workflow empty invoice mode.');
789
792
  export const updateBillingInvoiceWorkflowInvoicingSettings = z
790
793
  .object({
791
794
  autoAdvance: z
@@ -2673,6 +2676,9 @@ export const workflowInvoicingSettings = z
2673
2676
  subscriptionEndProrationMode: workflowInvoicingSubscriptionEndProrationMode
2674
2677
  .optional()
2675
2678
  .default('bill_actual_period'),
2679
+ emptyInvoiceMode: workflowInvoicingEmptyInvoiceMode
2680
+ .optional()
2681
+ .default('create'),
2676
2682
  })
2677
2683
  .describe('Invoice settings for a billing workflow.');
2678
2684
  export const updateBillingWorkflowPaymentSettings = z
@@ -8079,6 +8085,9 @@ export const workflowCollectionAlignmentSubscriptionWire = z
8079
8085
  export const workflowInvoicingSubscriptionEndProrationModeWire = z
8080
8086
  .enum(['bill_full_period', 'bill_actual_period'])
8081
8087
  .describe('Billing workflow subscription end proration mode.');
8088
+ export const workflowInvoicingEmptyInvoiceModeWire = z
8089
+ .enum(['create', 'omit'])
8090
+ .describe('Billing workflow empty invoice mode.');
8082
8091
  export const updateBillingInvoiceWorkflowInvoicingSettingsWire = z
8083
8092
  .strictObject({
8084
8093
  auto_advance: z
@@ -9944,6 +9953,7 @@ export const workflowInvoicingSettingsWire = z
9944
9953
  .optional()
9945
9954
  .describe('Should progressive billing be allowed for this workflow?'),
9946
9955
  subscription_end_proration_mode: workflowInvoicingSubscriptionEndProrationModeWire.optional(),
9956
+ empty_invoice_mode: workflowInvoicingEmptyInvoiceModeWire.optional(),
9947
9957
  })
9948
9958
  .describe('Invoice settings for a billing workflow.');
9949
9959
  export const updateBillingWorkflowPaymentSettingsWire = z
@@ -2328,6 +2328,11 @@ export interface WorkflowInvoicingSettings {
2328
2328
  progressiveBilling: boolean;
2329
2329
  /** Controls how subscription-ending shortened service periods are billed. */
2330
2330
  subscriptionEndProrationMode: 'bill_full_period' | 'bill_actual_period';
2331
+ /**
2332
+ * Controls whether empty invoices are created in the invoicing app. An invoice is
2333
+ * empty when it has no line items or its total is zero.
2334
+ */
2335
+ emptyInvoiceMode: 'create' | 'omit';
2331
2336
  }
2332
2337
  /** Filter options for listing currencies. */
2333
2338
  export interface ListCurrenciesParamsFilter {
@@ -8093,6 +8098,11 @@ export interface WorkflowInvoicingSettingsInput {
8093
8098
  progressiveBilling?: boolean;
8094
8099
  /** Controls how subscription-ending shortened service periods are billed. */
8095
8100
  subscriptionEndProrationMode?: 'bill_full_period' | 'bill_actual_period';
8101
+ /**
8102
+ * Controls whether empty invoices are created in the invoicing app. An invoice is
8103
+ * empty when it has no line items or its total is zero.
8104
+ */
8105
+ emptyInvoiceMode?: 'create' | 'omit';
8096
8106
  }
8097
8107
  /** Query to evaluate feature access for a list of customers. */
8098
8108
  export interface EntitlementAccessQueryRequestInput {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmeter/client",
3
- "version": "1.0.0-beta-52517e35f811",
3
+ "version": "1.0.0-beta-90b8cf6e0dc8",
4
4
  "description": "Official TypeScript SDK for the OpenMeter API — usage metering and billing",
5
5
  "keywords": [
6
6
  "openmeter",