@openmeter/sdk 1.0.0-beta.200 → 1.0.0-beta.202

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.
@@ -119,12 +119,12 @@ export interface paths {
119
119
  * @description Get a customer override by customer id.
120
120
  */
121
121
  get: operations['getBillingProfileCustomerOverride'];
122
- put?: never;
123
122
  /**
124
123
  * Create a new or update a customer override
125
124
  * @description Create a new or update an existing customer override.
126
125
  */
127
- post: operations['upsertBillingProfileCustomerOverride'];
126
+ put: operations['upsertBillingProfileCustomerOverride'];
127
+ post?: never;
128
128
  /**
129
129
  * Delete a customer override
130
130
  * @description Delete a customer override by customer id.
@@ -527,6 +527,26 @@ export interface paths {
527
527
  patch?: never;
528
528
  trace?: never;
529
529
  };
530
+ '/api/v1/customers/{customerId}/subscriptions': {
531
+ parameters: {
532
+ query?: never;
533
+ header?: never;
534
+ path?: never;
535
+ cookie?: never;
536
+ };
537
+ /**
538
+ * List customer subscriptions
539
+ * @description Lists all subscriptions for a customer.
540
+ */
541
+ get: operations['listCustomerSubscriptions'];
542
+ put?: never;
543
+ post?: never;
544
+ delete?: never;
545
+ options?: never;
546
+ head?: never;
547
+ patch?: never;
548
+ trace?: never;
549
+ };
530
550
  '/api/v1/customers/{id}': {
531
551
  parameters: {
532
552
  query?: never;
@@ -920,7 +940,11 @@ export interface paths {
920
940
  * @description Get a meter by ID or slug.
921
941
  */
922
942
  get: operations['getMeter'];
923
- put?: never;
943
+ /**
944
+ * Update meter
945
+ * @description Update a meter.
946
+ */
947
+ put: operations['updateMeter'];
924
948
  post?: never;
925
949
  /**
926
950
  * Delete meter
@@ -1642,6 +1666,7 @@ export interface paths {
1642
1666
  /**
1643
1667
  * Cancel subscription
1644
1668
  * @description Cancels the subscription.
1669
+ * Will result in a scheduling conflict if there are other subscriptions scheduled to start after the cancellation time.
1645
1670
  */
1646
1671
  post: operations['cancelSubscription'];
1647
1672
  delete?: never;
@@ -1693,6 +1718,27 @@ export interface paths {
1693
1718
  patch?: never;
1694
1719
  trace?: never;
1695
1720
  };
1721
+ '/api/v1/subscriptions/{subscriptionId}/restore': {
1722
+ parameters: {
1723
+ query?: never;
1724
+ header?: never;
1725
+ path?: never;
1726
+ cookie?: never;
1727
+ };
1728
+ get?: never;
1729
+ put?: never;
1730
+ /**
1731
+ * Restore subscription
1732
+ * @description Restores a canceled subscription.
1733
+ * Any subscription scheduled to start later will be deleted and this subscription will be continued indefinitely.
1734
+ */
1735
+ post: operations['restoreSubscription'];
1736
+ delete?: never;
1737
+ options?: never;
1738
+ head?: never;
1739
+ patch?: never;
1740
+ trace?: never;
1741
+ };
1696
1742
  '/api/v1/subscriptions/{subscriptionId}/unschedule-cancelation': {
1697
1743
  parameters: {
1698
1744
  query?: never;
@@ -1848,6 +1894,21 @@ export interface components {
1848
1894
  */
1849
1895
  readonly balanceAtStart: number;
1850
1896
  };
1897
+ /** @description Customer specific merged profile.
1898
+ *
1899
+ * This profile is calculated from the customer override and the billing profile it references or the default.
1900
+ *
1901
+ * Thus this does not have any kind of resource fields, only the calculated values. */
1902
+ BillingCustomerProfile: {
1903
+ /** @description The name and contact information for the supplier this billing profile represents */
1904
+ readonly supplier: components['schemas']['BillingParty'];
1905
+ /** @description The billing workflow settings for this profile */
1906
+ readonly workflow: components['schemas']['BillingWorkflow'];
1907
+ /** @description The applications used by this billing profile.
1908
+ *
1909
+ * Expand settings govern if this includes the whole app object or just the ID references. */
1910
+ readonly apps: components['schemas']['BillingProfileAppsOrReference'];
1911
+ };
1851
1912
  /** @description InvoiceLineCharge represents an amount added to the line, and will be applied before taxes. */
1852
1913
  BillingLineCharge: {
1853
1914
  /**
@@ -2023,7 +2084,7 @@ export interface components {
2023
2084
  /** @description The apps used by this billing profile. */
2024
2085
  apps: components['schemas']['BillingProfileAppsCreate'];
2025
2086
  };
2026
- /** @description Customer specific workflow overrides. */
2087
+ /** @description Customer override values. */
2027
2088
  BillingProfileCustomerOverride: {
2028
2089
  /**
2029
2090
  * Creation Time
@@ -2039,27 +2100,21 @@ export interface components {
2039
2100
  * @example 2024-01-01T01:01:01.001Z
2040
2101
  */
2041
2102
  readonly updatedAt: Date;
2042
- /**
2043
- * Deletion Time
2044
- * Format: date-time
2045
- * @description Timestamp of when the resource was permanently deleted.
2046
- * @example 2024-01-01T01:01:01.001Z
2047
- */
2048
- readonly deletedAt?: Date;
2049
- /** @description The details of the overrides active for this specific customer. */
2050
- workflow?: components['schemas']['BillingProfileCustomerWorkflowOverride'];
2051
2103
  /**
2052
2104
  * @description The billing profile this override is associated with.
2053
2105
  *
2054
- * If not provided, the default billing profile is chosen if available.
2106
+ * If empty the default profile is looked up dynamically.
2055
2107
  * @example 01G65Z755AFWAKHE12NY0CQ9FH
2056
2108
  */
2057
- billingProfile?: string;
2109
+ billingProfileId?: string;
2110
+ /**
2111
+ * @description The customer id this override is associated with.
2112
+ * @example 01G65Z755AFWAKHE12NY0CQ9FH
2113
+ */
2114
+ customerId: string;
2058
2115
  };
2059
2116
  /** @description Payload for creating a new or updating an existing customer override. */
2060
2117
  BillingProfileCustomerOverrideCreate: {
2061
- /** @description The details of the overrides active for this specific customer. */
2062
- workflow?: components['schemas']['BillingProfileCustomerWorkflowOverrideCreate'];
2063
2118
  /**
2064
2119
  * @description The billing profile this override is associated with.
2065
2120
  *
@@ -2068,13 +2123,37 @@ export interface components {
2068
2123
  */
2069
2124
  billingProfile?: string;
2070
2125
  };
2126
+ /**
2127
+ * @description CustomerOverrideExpand specifies the parts of the profile to expand.
2128
+ * @enum {string}
2129
+ */
2130
+ BillingProfileCustomerOverrideExpand: 'apps' | 'customer';
2071
2131
  /**
2072
2132
  * @description Order by options for customers.
2073
2133
  * @enum {string}
2074
2134
  */
2075
- BillingProfileCustomerOverrideOrderBy: 'id';
2135
+ BillingProfileCustomerOverrideOrderBy: 'customerId' | 'customerName' | 'customerKey' | 'customerPrimaryEmail' | 'customerCreatedAt';
2136
+ /** @description Customer specific workflow overrides. */
2137
+ BillingProfileCustomerOverrideWithDetails: {
2138
+ /** @description The customer override values.
2139
+ *
2140
+ * If empty the merged values are calculated based on the default profile. */
2141
+ customerOverride?: components['schemas']['BillingProfileCustomerOverride'];
2142
+ /**
2143
+ * @description The billing profile the customerProfile is associated with at the time of query.
2144
+ *
2145
+ * customerOverride contains the explicit mapping set in the customer override object. If that is
2146
+ * empty, then the baseBillingProfileId is the default profile.
2147
+ * @example 01G65Z755AFWAKHE12NY0CQ9FH
2148
+ */
2149
+ baseBillingProfileId: string;
2150
+ /** @description Merged billing profile with the customer specific overrides. */
2151
+ customerProfile?: components['schemas']['BillingCustomerProfile'];
2152
+ /** @description The customer this override belongs to. */
2153
+ customer?: components['schemas']['Customer'];
2154
+ };
2076
2155
  /** @description Paginated response */
2077
- BillingProfileCustomerOverridePaginatedResponse: {
2156
+ BillingProfileCustomerOverrideWithDetailsPaginatedResponse: {
2078
2157
  /**
2079
2158
  * @description The items in the current page.
2080
2159
  * @example 500
@@ -2091,37 +2170,13 @@ export interface components {
2091
2170
  */
2092
2171
  pageSize: number;
2093
2172
  /** @description The items in the current page. */
2094
- items: components['schemas']['BillingProfileCustomerOverride'][];
2095
- };
2096
- /** @description Customer specific workflow overrides. */
2097
- BillingProfileCustomerWorkflowOverride: {
2098
- /** @description The collection settings for this workflow */
2099
- collection?: components['schemas']['BillingWorkflowCollectionSettings'];
2100
- /** @description The invoicing settings for this workflow */
2101
- invoicing?: components['schemas']['BillingWorkflowInvoicingSettings'];
2102
- /** @description The payment settings for this workflow */
2103
- payment?: components['schemas']['BillingWorkflowPaymentSettings'];
2104
- /** @description The tax app used for this workflow */
2105
- readonly taxApp: components['schemas']['App'];
2106
- /** @description The invoicing app used for this workflow */
2107
- readonly invoicingApp: components['schemas']['App'];
2108
- /** @description The payment app used for this workflow */
2109
- readonly paymentApp: components['schemas']['App'];
2110
- };
2111
- /** @description Resource create operation model. */
2112
- BillingProfileCustomerWorkflowOverrideCreate: {
2113
- /** @description The collection settings for this workflow */
2114
- collection?: components['schemas']['BillingWorkflowCollectionSettings'];
2115
- /** @description The invoicing settings for this workflow */
2116
- invoicing?: components['schemas']['BillingWorkflowInvoicingSettings'];
2117
- /** @description The payment settings for this workflow */
2118
- payment?: components['schemas']['BillingWorkflowPaymentSettings'];
2173
+ items: components['schemas']['BillingProfileCustomerOverrideWithDetails'][];
2119
2174
  };
2120
2175
  /**
2121
2176
  * @description BillingProfileExpand details what profile fields to expand
2122
2177
  * @enum {string}
2123
2178
  */
2124
- BillingProfileExpand: 'apps' | '*';
2179
+ BillingProfileExpand: 'apps';
2125
2180
  /**
2126
2181
  * @description BillingProfileOrderBy specifies the ordering options for profiles
2127
2182
  * @enum {string}
@@ -4153,7 +4208,7 @@ export interface components {
4153
4208
  * @description InvoiceExpand specifies the parts of the invoice to expand in the list output.
4154
4209
  * @enum {string}
4155
4210
  */
4156
- InvoiceExpand: '*' | 'lines' | 'preceding' | 'workflow.apps';
4211
+ InvoiceExpand: 'lines' | 'preceding' | 'workflow.apps';
4157
4212
  /**
4158
4213
  * @description InvoiceFlatFeeCategory determines if the flat fee is a regular fee due to use due to a
4159
4214
  * commitment.
@@ -5212,7 +5267,7 @@ export interface components {
5212
5267
  */
5213
5268
  MeterAggregation: 'SUM' | 'COUNT' | 'UNIQUE_COUNT' | 'AVG' | 'MIN' | 'MAX';
5214
5269
  /**
5215
- * @description A meter is a configuration that defines how to match and aggregate events.
5270
+ * @description A meter create model.
5216
5271
  * @example {
5217
5272
  * "slug": "tokens_total",
5218
5273
  * "name": "Tokens Total",
@@ -5371,6 +5426,51 @@ export interface components {
5371
5426
  [key: string]: string | null;
5372
5427
  };
5373
5428
  };
5429
+ /**
5430
+ * @description A meter update model.
5431
+ *
5432
+ * Only the properties that can be updated are included.
5433
+ * For example, the slug and aggregation cannot be updated.
5434
+ * @example {
5435
+ * "name": "Tokens Total",
5436
+ * "description": "AI Token Usage",
5437
+ * "groupBy": {
5438
+ * "model": "$.model",
5439
+ * "type": "$.type"
5440
+ * }
5441
+ * }
5442
+ */
5443
+ MeterUpdate: {
5444
+ /**
5445
+ * Description
5446
+ * @description Optional description of the resource. Maximum 1024 characters.
5447
+ */
5448
+ description?: string;
5449
+ /**
5450
+ * Metadata
5451
+ * @description Additional metadata for the resource.
5452
+ */
5453
+ metadata?: components['schemas']['Metadata'] | null;
5454
+ /**
5455
+ * Display name
5456
+ * @description Human-readable name for the resource. Between 1 and 256 characters.
5457
+ * Defaults to the slug if not specified.
5458
+ */
5459
+ name?: string;
5460
+ /**
5461
+ * @description Named JSONPath expressions to extract the group by values from the event data.
5462
+ *
5463
+ * Keys must be unique and consist only alphanumeric and underscore characters.
5464
+ *
5465
+ * TODO: add key format enforcement
5466
+ * @example {
5467
+ * "type": "$.type"
5468
+ * }
5469
+ */
5470
+ groupBy?: {
5471
+ [key: string]: string;
5472
+ };
5473
+ };
5374
5474
  /** @description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. */
5375
5475
  NotFoundProblemResponse: components['schemas']['UnexpectedProblemResponse'];
5376
5476
  /** @description The server does not support the functionality required to fulfill the request. */
@@ -7191,6 +7291,26 @@ export interface components {
7191
7291
  /** @description The entitlement of the Subscription Item. */
7192
7292
  entitlement?: components['schemas']['Entitlement'];
7193
7293
  };
7294
+ /** @description Paginated response */
7295
+ SubscriptionPaginatedResponse: {
7296
+ /**
7297
+ * @description The items in the current page.
7298
+ * @example 500
7299
+ */
7300
+ totalCount: number;
7301
+ /**
7302
+ * @description The items in the current page.
7303
+ * @example 1
7304
+ */
7305
+ page: number;
7306
+ /**
7307
+ * @description The items in the current page.
7308
+ * @example 100
7309
+ */
7310
+ pageSize: number;
7311
+ /** @description The items in the current page. */
7312
+ items: components['schemas']['Subscription'][];
7313
+ };
7194
7314
  /** @description Subscription phase create input. */
7195
7315
  SubscriptionPhaseCreate: {
7196
7316
  /**
@@ -7605,6 +7725,24 @@ export interface components {
7605
7725
  'BillingProfileCustomerOverrideOrderByOrdering.order': components['schemas']['SortOrder'];
7606
7726
  /** @description The order by field. */
7607
7727
  'BillingProfileCustomerOverrideOrderByOrdering.orderBy': components['schemas']['BillingProfileCustomerOverrideOrderBy'];
7728
+ /** @description Filter by billing profile. */
7729
+ 'BillingProfileListCustomerOverridesParams.billingProfile': string[];
7730
+ /** @description Filter by customer id. */
7731
+ 'BillingProfileListCustomerOverridesParams.customerId': string[];
7732
+ /** @description Filter by customer key */
7733
+ 'BillingProfileListCustomerOverridesParams.customerKey': string;
7734
+ /** @description Filter by customer name. */
7735
+ 'BillingProfileListCustomerOverridesParams.customerName': string;
7736
+ /** @description Filter by customer primary email */
7737
+ 'BillingProfileListCustomerOverridesParams.customerPrimaryEmail': string;
7738
+ /** @description Expand the response with additional details. */
7739
+ 'BillingProfileListCustomerOverridesParams.expand': components['schemas']['BillingProfileCustomerOverrideExpand'][];
7740
+ /** @description Include customers without customer overrides.
7741
+ *
7742
+ * If set to false only the customers specifically associated with a billing profile will be returned.
7743
+ *
7744
+ * If set to true, in case of the default billing profile, all customers will be returned. */
7745
+ 'BillingProfileListCustomerOverridesParams.includeAllCustomers': boolean;
7608
7746
  /** @description The order direction. */
7609
7747
  'BillingProfileOrderByOrdering.order': components['schemas']['SortOrder'];
7610
7748
  /** @description The order by field. */
@@ -7763,6 +7901,7 @@ export type AppStatus = components['schemas']['AppStatus'];
7763
7901
  export type AppType = components['schemas']['AppType'];
7764
7902
  export type BadRequestProblemResponse = components['schemas']['BadRequestProblemResponse'];
7765
7903
  export type BalanceHistoryWindow = components['schemas']['BalanceHistoryWindow'];
7904
+ export type BillingCustomerProfile = components['schemas']['BillingCustomerProfile'];
7766
7905
  export type BillingLineCharge = components['schemas']['BillingLineCharge'];
7767
7906
  export type BillingParty = components['schemas']['BillingParty'];
7768
7907
  export type BillingPartyReplaceUpdate = components['schemas']['BillingPartyReplaceUpdate'];
@@ -7775,10 +7914,10 @@ export type BillingProfileAppsOrReference = components['schemas']['BillingProfil
7775
7914
  export type BillingProfileCreate = components['schemas']['BillingProfileCreate'];
7776
7915
  export type BillingProfileCustomerOverride = components['schemas']['BillingProfileCustomerOverride'];
7777
7916
  export type BillingProfileCustomerOverrideCreate = components['schemas']['BillingProfileCustomerOverrideCreate'];
7917
+ export type BillingProfileCustomerOverrideExpand = components['schemas']['BillingProfileCustomerOverrideExpand'];
7778
7918
  export type BillingProfileCustomerOverrideOrderBy = components['schemas']['BillingProfileCustomerOverrideOrderBy'];
7779
- export type BillingProfileCustomerOverridePaginatedResponse = components['schemas']['BillingProfileCustomerOverridePaginatedResponse'];
7780
- export type BillingProfileCustomerWorkflowOverride = components['schemas']['BillingProfileCustomerWorkflowOverride'];
7781
- export type BillingProfileCustomerWorkflowOverrideCreate = components['schemas']['BillingProfileCustomerWorkflowOverrideCreate'];
7919
+ export type BillingProfileCustomerOverrideWithDetails = components['schemas']['BillingProfileCustomerOverrideWithDetails'];
7920
+ export type BillingProfileCustomerOverrideWithDetailsPaginatedResponse = components['schemas']['BillingProfileCustomerOverrideWithDetailsPaginatedResponse'];
7782
7921
  export type BillingProfileExpand = components['schemas']['BillingProfileExpand'];
7783
7922
  export type BillingProfileOrderBy = components['schemas']['BillingProfileOrderBy'];
7784
7923
  export type BillingProfilePaginatedResponse = components['schemas']['BillingProfilePaginatedResponse'];
@@ -7930,6 +8069,7 @@ export type MeterAggregation = components['schemas']['MeterAggregation'];
7930
8069
  export type MeterCreate = components['schemas']['MeterCreate'];
7931
8070
  export type MeterQueryResult = components['schemas']['MeterQueryResult'];
7932
8071
  export type MeterQueryRow = components['schemas']['MeterQueryRow'];
8072
+ export type MeterUpdate = components['schemas']['MeterUpdate'];
7933
8073
  export type NotFoundProblemResponse = components['schemas']['NotFoundProblemResponse'];
7934
8074
  export type NotImplementedProblemResponse = components['schemas']['NotImplementedProblemResponse'];
7935
8075
  export type NotificationChannel = components['schemas']['NotificationChannel'];
@@ -8018,6 +8158,7 @@ export type SubscriptionEditOperation = components['schemas']['SubscriptionEditO
8018
8158
  export type SubscriptionExpanded = components['schemas']['SubscriptionExpanded'];
8019
8159
  export type SubscriptionItem = components['schemas']['SubscriptionItem'];
8020
8160
  export type SubscriptionItemIncluded = components['schemas']['SubscriptionItemIncluded'];
8161
+ export type SubscriptionPaginatedResponse = components['schemas']['SubscriptionPaginatedResponse'];
8021
8162
  export type SubscriptionPhaseCreate = components['schemas']['SubscriptionPhaseCreate'];
8022
8163
  export type SubscriptionPhaseExpanded = components['schemas']['SubscriptionPhaseExpanded'];
8023
8164
  export type SubscriptionStatus = components['schemas']['SubscriptionStatus'];
@@ -8047,6 +8188,13 @@ export type WindowSize = components['schemas']['WindowSize'];
8047
8188
  export type WindowedBalanceHistory = components['schemas']['WindowedBalanceHistory'];
8048
8189
  export type ParameterBillingProfileCustomerOverrideOrderByOrderingOrder = components['parameters']['BillingProfileCustomerOverrideOrderByOrdering.order'];
8049
8190
  export type ParameterBillingProfileCustomerOverrideOrderByOrderingOrderBy = components['parameters']['BillingProfileCustomerOverrideOrderByOrdering.orderBy'];
8191
+ export type ParameterBillingProfileListCustomerOverridesParamsBillingProfile = components['parameters']['BillingProfileListCustomerOverridesParams.billingProfile'];
8192
+ export type ParameterBillingProfileListCustomerOverridesParamsCustomerId = components['parameters']['BillingProfileListCustomerOverridesParams.customerId'];
8193
+ export type ParameterBillingProfileListCustomerOverridesParamsCustomerKey = components['parameters']['BillingProfileListCustomerOverridesParams.customerKey'];
8194
+ export type ParameterBillingProfileListCustomerOverridesParamsCustomerName = components['parameters']['BillingProfileListCustomerOverridesParams.customerName'];
8195
+ export type ParameterBillingProfileListCustomerOverridesParamsCustomerPrimaryEmail = components['parameters']['BillingProfileListCustomerOverridesParams.customerPrimaryEmail'];
8196
+ export type ParameterBillingProfileListCustomerOverridesParamsExpand = components['parameters']['BillingProfileListCustomerOverridesParams.expand'];
8197
+ export type ParameterBillingProfileListCustomerOverridesParamsIncludeAllCustomers = components['parameters']['BillingProfileListCustomerOverridesParams.includeAllCustomers'];
8050
8198
  export type ParameterBillingProfileOrderByOrderingOrder = components['parameters']['BillingProfileOrderByOrdering.order'];
8051
8199
  export type ParameterBillingProfileOrderByOrderingOrderBy = components['parameters']['BillingProfileOrderByOrdering.orderBy'];
8052
8200
  export type ParameterCustomerOrderByOrderingOrder = components['parameters']['CustomerOrderByOrdering.order'];
@@ -8610,7 +8758,28 @@ export interface operations {
8610
8758
  listBillingProfileCustomerOverrides: {
8611
8759
  parameters: {
8612
8760
  query?: {
8613
- billingProfile?: string[];
8761
+ /** @description Filter by billing profile. */
8762
+ billingProfile?: components['parameters']['BillingProfileListCustomerOverridesParams.billingProfile'];
8763
+ /** @description Include customers without customer overrides.
8764
+ *
8765
+ * If set to false only the customers specifically associated with a billing profile will be returned.
8766
+ *
8767
+ * If set to true, in case of the default billing profile, all customers will be returned. */
8768
+ includeAllCustomers?: components['parameters']['BillingProfileListCustomerOverridesParams.includeAllCustomers'];
8769
+ /** @description Filter by customer id. */
8770
+ customerId?: components['parameters']['BillingProfileListCustomerOverridesParams.customerId'];
8771
+ /** @description Filter by customer name. */
8772
+ customerName?: components['parameters']['BillingProfileListCustomerOverridesParams.customerName'];
8773
+ /** @description Filter by customer key */
8774
+ customerKey?: components['parameters']['BillingProfileListCustomerOverridesParams.customerKey'];
8775
+ /** @description Filter by customer primary email */
8776
+ customerPrimaryEmail?: components['parameters']['BillingProfileListCustomerOverridesParams.customerPrimaryEmail'];
8777
+ /** @description Expand the response with additional details. */
8778
+ expand?: components['parameters']['BillingProfileListCustomerOverridesParams.expand'];
8779
+ /** @description The order direction. */
8780
+ order?: components['parameters']['BillingProfileCustomerOverrideOrderByOrdering.order'];
8781
+ /** @description The order by field. */
8782
+ orderBy?: components['parameters']['BillingProfileCustomerOverrideOrderByOrdering.orderBy'];
8614
8783
  /** @description Start date-time in RFC 3339 format.
8615
8784
  *
8616
8785
  * Inclusive. */
@@ -8619,18 +8788,6 @@ export interface operations {
8619
8788
  *
8620
8789
  * Default is 100. */
8621
8790
  pageSize?: components['parameters']['Pagination.pageSize'];
8622
- /** @description Number of items to skip.
8623
- *
8624
- * Default is 0. */
8625
- offset?: components['parameters']['LimitOffset.offset'];
8626
- /** @description Number of items to return.
8627
- *
8628
- * Default is 100. */
8629
- limit?: components['parameters']['LimitOffset.limit'];
8630
- /** @description The order direction. */
8631
- order?: components['parameters']['BillingProfileCustomerOverrideOrderByOrdering.order'];
8632
- /** @description The order by field. */
8633
- orderBy?: components['parameters']['BillingProfileCustomerOverrideOrderByOrdering.orderBy'];
8634
8791
  };
8635
8792
  header?: never;
8636
8793
  path?: never;
@@ -8644,7 +8801,7 @@ export interface operations {
8644
8801
  [name: string]: unknown;
8645
8802
  };
8646
8803
  content: {
8647
- 'application/json': components['schemas']['BillingProfileCustomerOverridePaginatedResponse'];
8804
+ 'application/json': components['schemas']['BillingProfileCustomerOverrideWithDetailsPaginatedResponse'];
8648
8805
  };
8649
8806
  };
8650
8807
  /** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
@@ -8705,7 +8862,9 @@ export interface operations {
8705
8862
  };
8706
8863
  getBillingProfileCustomerOverride: {
8707
8864
  parameters: {
8708
- query?: never;
8865
+ query?: {
8866
+ expand?: components['schemas']['BillingProfileCustomerOverrideExpand'][];
8867
+ };
8709
8868
  header?: never;
8710
8869
  path: {
8711
8870
  customerId: string;
@@ -8720,7 +8879,7 @@ export interface operations {
8720
8879
  [name: string]: unknown;
8721
8880
  };
8722
8881
  content: {
8723
- 'application/json': components['schemas']['BillingProfileCustomerOverride'];
8882
+ 'application/json': components['schemas']['BillingProfileCustomerOverrideWithDetails'];
8724
8883
  };
8725
8884
  };
8726
8885
  /** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
@@ -8809,16 +8968,7 @@ export interface operations {
8809
8968
  [name: string]: unknown;
8810
8969
  };
8811
8970
  content: {
8812
- 'application/json': components['schemas']['BillingProfileCustomerOverride'] | components['schemas']['BillingProfileCustomerOverride'];
8813
- };
8814
- };
8815
- /** @description The request has succeeded and a new resource has been created as a result. */
8816
- 201: {
8817
- headers: {
8818
- [name: string]: unknown;
8819
- };
8820
- content: {
8821
- 'application/json': components['schemas']['BillingProfileCustomerOverride'];
8971
+ 'application/json': components['schemas']['BillingProfileCustomerOverrideWithDetails'];
8822
8972
  };
8823
8973
  };
8824
8974
  /** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
@@ -9074,14 +9224,6 @@ export interface operations {
9074
9224
  *
9075
9225
  * Default is 100. */
9076
9226
  pageSize?: components['parameters']['Pagination.pageSize'];
9077
- /** @description Number of items to skip.
9078
- *
9079
- * Default is 0. */
9080
- offset?: components['parameters']['LimitOffset.offset'];
9081
- /** @description Number of items to return.
9082
- *
9083
- * Default is 100. */
9084
- limit?: components['parameters']['LimitOffset.limit'];
9085
9227
  /** @description The order direction. */
9086
9228
  order?: components['parameters']['InvoiceOrderByOrdering.order'];
9087
9229
  /** @description The order by field. */
@@ -10016,14 +10158,6 @@ export interface operations {
10016
10158
  *
10017
10159
  * Default is 100. */
10018
10160
  pageSize?: components['parameters']['Pagination.pageSize'];
10019
- /** @description Number of items to skip.
10020
- *
10021
- * Default is 0. */
10022
- offset?: components['parameters']['LimitOffset.offset'];
10023
- /** @description Number of items to return.
10024
- *
10025
- * Default is 100. */
10026
- limit?: components['parameters']['LimitOffset.limit'];
10027
10161
  /** @description The order direction. */
10028
10162
  order?: components['parameters']['BillingProfileOrderByOrdering.order'];
10029
10163
  /** @description The order by field. */
@@ -10967,6 +11101,96 @@ export interface operations {
10967
11101
  };
10968
11102
  };
10969
11103
  };
11104
+ listCustomerSubscriptions: {
11105
+ parameters: {
11106
+ query?: {
11107
+ /** @description The page number. */
11108
+ page?: components['parameters']['PaginatedQuery.page'];
11109
+ /** @description The number of items in the page. */
11110
+ pageSize?: components['parameters']['PaginatedQuery.pageSize'];
11111
+ };
11112
+ header?: never;
11113
+ path: {
11114
+ customerId: string;
11115
+ };
11116
+ cookie?: never;
11117
+ };
11118
+ requestBody?: never;
11119
+ responses: {
11120
+ /** @description The request has succeeded. */
11121
+ 200: {
11122
+ headers: {
11123
+ [name: string]: unknown;
11124
+ };
11125
+ content: {
11126
+ 'application/json': components['schemas']['SubscriptionPaginatedResponse'];
11127
+ };
11128
+ };
11129
+ /** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
11130
+ 400: {
11131
+ headers: {
11132
+ [name: string]: unknown;
11133
+ };
11134
+ content: {
11135
+ 'application/problem+json': components['schemas']['BadRequestProblemResponse'];
11136
+ };
11137
+ };
11138
+ /** @description The request has not been applied because it lacks valid authentication credentials for the target resource. */
11139
+ 401: {
11140
+ headers: {
11141
+ [name: string]: unknown;
11142
+ };
11143
+ content: {
11144
+ 'application/problem+json': components['schemas']['UnauthorizedProblemResponse'];
11145
+ };
11146
+ };
11147
+ /** @description The server understood the request but refuses to authorize it. */
11148
+ 403: {
11149
+ headers: {
11150
+ [name: string]: unknown;
11151
+ };
11152
+ content: {
11153
+ 'application/problem+json': components['schemas']['ForbiddenProblemResponse'];
11154
+ };
11155
+ };
11156
+ /** @description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. */
11157
+ 404: {
11158
+ headers: {
11159
+ [name: string]: unknown;
11160
+ };
11161
+ content: {
11162
+ 'application/problem+json': components['schemas']['NotFoundProblemResponse'];
11163
+ };
11164
+ };
11165
+ /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */
11166
+ 500: {
11167
+ headers: {
11168
+ [name: string]: unknown;
11169
+ };
11170
+ content: {
11171
+ 'application/problem+json': components['schemas']['InternalServerErrorProblemResponse'];
11172
+ };
11173
+ };
11174
+ /** @description The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay. */
11175
+ 503: {
11176
+ headers: {
11177
+ [name: string]: unknown;
11178
+ };
11179
+ content: {
11180
+ 'application/problem+json': components['schemas']['ServiceUnavailableProblemResponse'];
11181
+ };
11182
+ };
11183
+ /** @description An unexpected error response. */
11184
+ default: {
11185
+ headers: {
11186
+ [name: string]: unknown;
11187
+ };
11188
+ content: {
11189
+ 'application/problem+json': components['schemas']['UnexpectedProblemResponse'];
11190
+ };
11191
+ };
11192
+ };
11193
+ };
10970
11194
  getCustomer: {
10971
11195
  parameters: {
10972
11196
  query?: never;
@@ -11506,12 +11730,6 @@ export interface operations {
11506
11730
  *
11507
11731
  * Inclusive. */
11508
11732
  ingestedAtTo?: Date | string;
11509
- /** @description If not provided lists all events.
11510
- *
11511
- * If provided with true, only list events with processing error.
11512
- *
11513
- * If provided with false, only list events without processing error. */
11514
- hasError?: boolean;
11515
11733
  /** @description The event ID.
11516
11734
  *
11517
11735
  * Accepts partial ID. */
@@ -13033,6 +13251,86 @@ export interface operations {
13033
13251
  };
13034
13252
  };
13035
13253
  };
13254
+ updateMeter: {
13255
+ parameters: {
13256
+ query?: never;
13257
+ header?: never;
13258
+ path: {
13259
+ meterIdOrSlug: string;
13260
+ };
13261
+ cookie?: never;
13262
+ };
13263
+ requestBody: {
13264
+ content: {
13265
+ 'application/json': components['schemas']['MeterUpdate'];
13266
+ };
13267
+ };
13268
+ responses: {
13269
+ /** @description The request has succeeded. */
13270
+ 200: {
13271
+ headers: {
13272
+ [name: string]: unknown;
13273
+ };
13274
+ content: {
13275
+ 'application/json': components['schemas']['Meter'];
13276
+ };
13277
+ };
13278
+ /** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
13279
+ 400: {
13280
+ headers: {
13281
+ [name: string]: unknown;
13282
+ };
13283
+ content: {
13284
+ 'application/problem+json': components['schemas']['BadRequestProblemResponse'];
13285
+ };
13286
+ };
13287
+ /** @description The request has not been applied because it lacks valid authentication credentials for the target resource. */
13288
+ 401: {
13289
+ headers: {
13290
+ [name: string]: unknown;
13291
+ };
13292
+ content: {
13293
+ 'application/problem+json': components['schemas']['UnauthorizedProblemResponse'];
13294
+ };
13295
+ };
13296
+ /** @description The server understood the request but refuses to authorize it. */
13297
+ 403: {
13298
+ headers: {
13299
+ [name: string]: unknown;
13300
+ };
13301
+ content: {
13302
+ 'application/problem+json': components['schemas']['ForbiddenProblemResponse'];
13303
+ };
13304
+ };
13305
+ /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */
13306
+ 500: {
13307
+ headers: {
13308
+ [name: string]: unknown;
13309
+ };
13310
+ content: {
13311
+ 'application/problem+json': components['schemas']['InternalServerErrorProblemResponse'];
13312
+ };
13313
+ };
13314
+ /** @description The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay. */
13315
+ 503: {
13316
+ headers: {
13317
+ [name: string]: unknown;
13318
+ };
13319
+ content: {
13320
+ 'application/problem+json': components['schemas']['ServiceUnavailableProblemResponse'];
13321
+ };
13322
+ };
13323
+ /** @description An unexpected error response. */
13324
+ default: {
13325
+ headers: {
13326
+ [name: string]: unknown;
13327
+ };
13328
+ content: {
13329
+ 'application/problem+json': components['schemas']['UnexpectedProblemResponse'];
13330
+ };
13331
+ };
13332
+ };
13333
+ };
13036
13334
  deleteMeter: {
13037
13335
  parameters: {
13038
13336
  query?: never;
@@ -17403,6 +17701,91 @@ export interface operations {
17403
17701
  };
17404
17702
  };
17405
17703
  };
17704
+ restoreSubscription: {
17705
+ parameters: {
17706
+ query?: never;
17707
+ header?: never;
17708
+ path: {
17709
+ subscriptionId: string;
17710
+ };
17711
+ cookie?: never;
17712
+ };
17713
+ requestBody?: never;
17714
+ responses: {
17715
+ /** @description The request has succeeded. */
17716
+ 200: {
17717
+ headers: {
17718
+ [name: string]: unknown;
17719
+ };
17720
+ content: {
17721
+ 'application/json': components['schemas']['Subscription'];
17722
+ };
17723
+ };
17724
+ /** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
17725
+ 400: {
17726
+ headers: {
17727
+ [name: string]: unknown;
17728
+ };
17729
+ content: {
17730
+ 'application/problem+json': components['schemas']['BadRequestProblemResponse'];
17731
+ };
17732
+ };
17733
+ /** @description The request has not been applied because it lacks valid authentication credentials for the target resource. */
17734
+ 401: {
17735
+ headers: {
17736
+ [name: string]: unknown;
17737
+ };
17738
+ content: {
17739
+ 'application/problem+json': components['schemas']['UnauthorizedProblemResponse'];
17740
+ };
17741
+ };
17742
+ /** @description The server understood the request but refuses to authorize it. */
17743
+ 403: {
17744
+ headers: {
17745
+ [name: string]: unknown;
17746
+ };
17747
+ content: {
17748
+ 'application/problem+json': components['schemas']['ForbiddenProblemResponse'];
17749
+ };
17750
+ };
17751
+ /** @description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. */
17752
+ 404: {
17753
+ headers: {
17754
+ [name: string]: unknown;
17755
+ };
17756
+ content: {
17757
+ 'application/problem+json': components['schemas']['NotFoundProblemResponse'];
17758
+ };
17759
+ };
17760
+ /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */
17761
+ 500: {
17762
+ headers: {
17763
+ [name: string]: unknown;
17764
+ };
17765
+ content: {
17766
+ 'application/problem+json': components['schemas']['InternalServerErrorProblemResponse'];
17767
+ };
17768
+ };
17769
+ /** @description The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay. */
17770
+ 503: {
17771
+ headers: {
17772
+ [name: string]: unknown;
17773
+ };
17774
+ content: {
17775
+ 'application/problem+json': components['schemas']['ServiceUnavailableProblemResponse'];
17776
+ };
17777
+ };
17778
+ /** @description An unexpected error response. */
17779
+ default: {
17780
+ headers: {
17781
+ [name: string]: unknown;
17782
+ };
17783
+ content: {
17784
+ 'application/problem+json': components['schemas']['UnexpectedProblemResponse'];
17785
+ };
17786
+ };
17787
+ };
17788
+ };
17406
17789
  unscheduleCancelation: {
17407
17790
  parameters: {
17408
17791
  query?: never;