@openmeter/client 1.0.0-beta-93c878ce5648 → 1.0.0-beta-8239676745d4

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.
@@ -7179,7 +7179,7 @@ export const queryEntitlementAccessQueryParams = z.object({
7179
7179
  });
7180
7180
  export const queryEntitlementAccessBody = entitlementAccessQueryRequest;
7181
7181
  export const queryEntitlementAccessResponse = entitlementAccessQueryResponse;
7182
- export const listNotificationChannelsQueryParams = z.object({
7182
+ export const listBillingNotificationChannelsQueryParams = z.object({
7183
7183
  page: z
7184
7184
  .object({
7185
7185
  size: z.coerce
@@ -7194,25 +7194,25 @@ export const listNotificationChannelsQueryParams = z.object({
7194
7194
  sort: sortQuery.optional(),
7195
7195
  filter: listNotificationChannelsParamsFilter.optional(),
7196
7196
  });
7197
- export const listNotificationChannelsResponse = z.object({
7197
+ export const listBillingNotificationChannelsResponse = z.object({
7198
7198
  data: z.array(notificationChannel),
7199
7199
  meta: paginatedMeta,
7200
7200
  });
7201
- export const createNotificationChannelBody = createNotificationChannelRequest;
7202
- export const createNotificationChannelResponse = notificationChannel;
7203
- export const getNotificationChannelPathParams = z.object({
7201
+ export const createBillingNotificationChannelBody = createNotificationChannelRequest;
7202
+ export const createBillingNotificationChannelResponse = notificationChannel;
7203
+ export const getBillingNotificationChannelPathParams = z.object({
7204
7204
  notificationChannelId: ulid,
7205
7205
  });
7206
- export const getNotificationChannelResponse = notificationChannel;
7207
- export const updateNotificationChannelPathParams = z.object({
7206
+ export const getBillingNotificationChannelResponse = notificationChannel;
7207
+ export const updateBillingNotificationChannelPathParams = z.object({
7208
7208
  notificationChannelId: ulid,
7209
7209
  });
7210
- export const updateNotificationChannelBody = updateBillingNotificationChannelRequest;
7211
- export const updateNotificationChannelResponse = notificationChannel;
7212
- export const deleteNotificationChannelPathParams = z.object({
7210
+ export const updateBillingNotificationChannelBody = updateBillingNotificationChannelRequest;
7211
+ export const updateBillingNotificationChannelResponse = notificationChannel;
7212
+ export const deleteBillingNotificationChannelPathParams = z.object({
7213
7213
  notificationChannelId: ulid,
7214
7214
  });
7215
- export const listNotificationRulesQueryParams = z.object({
7215
+ export const listBillingNotificationRulesQueryParams = z.object({
7216
7216
  page: z
7217
7217
  .object({
7218
7218
  size: z.coerce
@@ -7227,29 +7227,29 @@ export const listNotificationRulesQueryParams = z.object({
7227
7227
  sort: sortQuery.optional(),
7228
7228
  filter: listNotificationRulesParamsFilter.optional(),
7229
7229
  });
7230
- export const listNotificationRulesResponse = z.object({
7230
+ export const listBillingNotificationRulesResponse = z.object({
7231
7231
  data: z.array(notificationRule),
7232
7232
  meta: paginatedMeta,
7233
7233
  });
7234
- export const createNotificationRuleBody = notificationRuleRequest;
7235
- export const createNotificationRuleResponse = notificationRule;
7236
- export const getNotificationRulePathParams = z.object({
7234
+ export const createBillingNotificationRuleBody = notificationRuleRequest;
7235
+ export const createBillingNotificationRuleResponse = notificationRule;
7236
+ export const getBillingNotificationRulePathParams = z.object({
7237
7237
  notificationRuleId: ulid,
7238
7238
  });
7239
- export const getNotificationRuleResponse = notificationRule;
7240
- export const updateNotificationRulePathParams = z.object({
7239
+ export const getBillingNotificationRuleResponse = notificationRule;
7240
+ export const updateBillingNotificationRulePathParams = z.object({
7241
7241
  notificationRuleId: ulid,
7242
7242
  });
7243
- export const updateNotificationRuleBody = notificationRuleRequest;
7244
- export const updateNotificationRuleResponse = notificationRule;
7245
- export const deleteNotificationRulePathParams = z.object({
7243
+ export const updateBillingNotificationRuleBody = notificationRuleRequest;
7244
+ export const updateBillingNotificationRuleResponse = notificationRule;
7245
+ export const deleteBillingNotificationRulePathParams = z.object({
7246
7246
  notificationRuleId: ulid,
7247
7247
  });
7248
- export const testNotificationRulePathParams = z.object({
7248
+ export const testBillingNotificationRulePathParams = z.object({
7249
7249
  notificationRuleId: ulid,
7250
7250
  });
7251
- export const testNotificationRuleResponse = notificationEvent;
7252
- export const listNotificationEventsQueryParams = z.object({
7251
+ export const testBillingNotificationRuleResponse = notificationEvent;
7252
+ export const listBillingNotificationEventsQueryParams = z.object({
7253
7253
  page: z
7254
7254
  .object({
7255
7255
  size: z.coerce
@@ -7264,18 +7264,18 @@ export const listNotificationEventsQueryParams = z.object({
7264
7264
  sort: sortQuery.optional(),
7265
7265
  filter: listNotificationEventsParamsFilter.optional(),
7266
7266
  });
7267
- export const listNotificationEventsResponse = z.object({
7267
+ export const listBillingNotificationEventsResponse = z.object({
7268
7268
  data: z.array(notificationEvent),
7269
7269
  meta: paginatedMeta,
7270
7270
  });
7271
- export const getNotificationEventPathParams = z.object({
7271
+ export const getBillingNotificationEventPathParams = z.object({
7272
7272
  notificationEventId: ulid,
7273
7273
  });
7274
- export const getNotificationEventResponse = notificationEvent;
7275
- export const resendNotificationEventPathParams = z.object({
7274
+ export const getBillingNotificationEventResponse = notificationEvent;
7275
+ export const resendBillingNotificationEventPathParams = z.object({
7276
7276
  notificationEventId: ulid,
7277
7277
  });
7278
- export const resendNotificationEventBody = resendBillingNotificationEventRequest;
7278
+ export const resendBillingNotificationEventBody = resendBillingNotificationEventRequest;
7279
7279
  export const labelsWire = z
7280
7280
  .record(z.string(), z.string())
7281
7281
  .describe('Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "\\_".');
@@ -14471,7 +14471,7 @@ export const queryEntitlementAccessQueryParamsWire = z.object({
14471
14471
  });
14472
14472
  export const queryEntitlementAccessBodyWire = entitlementAccessQueryRequestWire;
14473
14473
  export const queryEntitlementAccessResponseWire = entitlementAccessQueryResponseWire;
14474
- export const listNotificationChannelsQueryParamsWire = z.object({
14474
+ export const listBillingNotificationChannelsQueryParamsWire = z.object({
14475
14475
  page: z
14476
14476
  .strictObject({
14477
14477
  size: z.coerce
@@ -14489,25 +14489,25 @@ export const listNotificationChannelsQueryParamsWire = z.object({
14489
14489
  .describe('Sort notification channels returned in the response. Supported sort attributes are: - `id` (default) - `type` - `created_at` - `updated_at` The `asc` suffix is optional as the default sort order is ascending. The `desc` suffix is used to specify a descending order.'),
14490
14490
  filter: listNotificationChannelsParamsFilterWire.optional(),
14491
14491
  });
14492
- export const listNotificationChannelsResponseWire = z.strictObject({
14492
+ export const listBillingNotificationChannelsResponseWire = z.strictObject({
14493
14493
  data: z.array(notificationChannelWire),
14494
14494
  meta: paginatedMetaWire,
14495
14495
  });
14496
- export const createNotificationChannelBodyWire = createNotificationChannelRequestWire;
14497
- export const createNotificationChannelResponseWire = notificationChannelWire;
14498
- export const getNotificationChannelPathParamsWire = z.object({
14496
+ export const createBillingNotificationChannelBodyWire = createNotificationChannelRequestWire;
14497
+ export const createBillingNotificationChannelResponseWire = notificationChannelWire;
14498
+ export const getBillingNotificationChannelPathParamsWire = z.object({
14499
14499
  notificationChannelId: ulidWire,
14500
14500
  });
14501
- export const getNotificationChannelResponseWire = notificationChannelWire;
14502
- export const updateNotificationChannelPathParamsWire = z.object({
14501
+ export const getBillingNotificationChannelResponseWire = notificationChannelWire;
14502
+ export const updateBillingNotificationChannelPathParamsWire = z.object({
14503
14503
  notificationChannelId: ulidWire,
14504
14504
  });
14505
- export const updateNotificationChannelBodyWire = updateBillingNotificationChannelRequestWire;
14506
- export const updateNotificationChannelResponseWire = notificationChannelWire;
14507
- export const deleteNotificationChannelPathParamsWire = z.object({
14505
+ export const updateBillingNotificationChannelBodyWire = updateBillingNotificationChannelRequestWire;
14506
+ export const updateBillingNotificationChannelResponseWire = notificationChannelWire;
14507
+ export const deleteBillingNotificationChannelPathParamsWire = z.object({
14508
14508
  notificationChannelId: ulidWire,
14509
14509
  });
14510
- export const listNotificationRulesQueryParamsWire = z.object({
14510
+ export const listBillingNotificationRulesQueryParamsWire = z.object({
14511
14511
  page: z
14512
14512
  .strictObject({
14513
14513
  size: z.coerce
@@ -14525,29 +14525,29 @@ export const listNotificationRulesQueryParamsWire = z.object({
14525
14525
  .describe('Sort notification rules returned in the response. Supported sort attributes are: - `id` (default) - `type` - `created_at` - `updated_at` The `asc` suffix is optional as the default sort order is ascending. The `desc` suffix is used to specify a descending order.'),
14526
14526
  filter: listNotificationRulesParamsFilterWire.optional(),
14527
14527
  });
14528
- export const listNotificationRulesResponseWire = z.strictObject({
14528
+ export const listBillingNotificationRulesResponseWire = z.strictObject({
14529
14529
  data: z.array(notificationRuleWire),
14530
14530
  meta: paginatedMetaWire,
14531
14531
  });
14532
- export const createNotificationRuleBodyWire = notificationRuleRequestWire;
14533
- export const createNotificationRuleResponseWire = notificationRuleWire;
14534
- export const getNotificationRulePathParamsWire = z.object({
14532
+ export const createBillingNotificationRuleBodyWire = notificationRuleRequestWire;
14533
+ export const createBillingNotificationRuleResponseWire = notificationRuleWire;
14534
+ export const getBillingNotificationRulePathParamsWire = z.object({
14535
14535
  notificationRuleId: ulidWire,
14536
14536
  });
14537
- export const getNotificationRuleResponseWire = notificationRuleWire;
14538
- export const updateNotificationRulePathParamsWire = z.object({
14537
+ export const getBillingNotificationRuleResponseWire = notificationRuleWire;
14538
+ export const updateBillingNotificationRulePathParamsWire = z.object({
14539
14539
  notificationRuleId: ulidWire,
14540
14540
  });
14541
- export const updateNotificationRuleBodyWire = notificationRuleRequestWire;
14542
- export const updateNotificationRuleResponseWire = notificationRuleWire;
14543
- export const deleteNotificationRulePathParamsWire = z.object({
14541
+ export const updateBillingNotificationRuleBodyWire = notificationRuleRequestWire;
14542
+ export const updateBillingNotificationRuleResponseWire = notificationRuleWire;
14543
+ export const deleteBillingNotificationRulePathParamsWire = z.object({
14544
14544
  notificationRuleId: ulidWire,
14545
14545
  });
14546
- export const testNotificationRulePathParamsWire = z.object({
14546
+ export const testBillingNotificationRulePathParamsWire = z.object({
14547
14547
  notificationRuleId: ulidWire,
14548
14548
  });
14549
- export const testNotificationRuleResponseWire = notificationEventWire;
14550
- export const listNotificationEventsQueryParamsWire = z.object({
14549
+ export const testBillingNotificationRuleResponseWire = notificationEventWire;
14550
+ export const listBillingNotificationEventsQueryParamsWire = z.object({
14551
14551
  page: z
14552
14552
  .strictObject({
14553
14553
  size: z.coerce
@@ -14565,15 +14565,15 @@ export const listNotificationEventsQueryParamsWire = z.object({
14565
14565
  .describe('Sort notification events returned in the response. Supported sort attributes are: - `created_at` (default) - `id` - `type` The `asc` suffix is optional as the default sort order is ascending. The `desc` suffix is used to specify a descending order. Without a `sort` parameter, events are returned newest first.'),
14566
14566
  filter: listNotificationEventsParamsFilterWire.optional(),
14567
14567
  });
14568
- export const listNotificationEventsResponseWire = z.strictObject({
14568
+ export const listBillingNotificationEventsResponseWire = z.strictObject({
14569
14569
  data: z.array(notificationEventWire),
14570
14570
  meta: paginatedMetaWire,
14571
14571
  });
14572
- export const getNotificationEventPathParamsWire = z.object({
14572
+ export const getBillingNotificationEventPathParamsWire = z.object({
14573
14573
  notificationEventId: ulidWire,
14574
14574
  });
14575
- export const getNotificationEventResponseWire = notificationEventWire;
14576
- export const resendNotificationEventPathParamsWire = z.object({
14575
+ export const getBillingNotificationEventResponseWire = notificationEventWire;
14576
+ export const resendBillingNotificationEventPathParamsWire = z.object({
14577
14577
  notificationEventId: ulidWire,
14578
14578
  });
14579
- export const resendNotificationEventBodyWire = resendBillingNotificationEventRequestWire;
14579
+ export const resendBillingNotificationEventBodyWire = resendBillingNotificationEventRequestWire;
@@ -2,7 +2,7 @@ import { type Client } from '../core.js';
2
2
  import { type RequestOptions } from '../lib/types.js';
3
3
  import type { CreateSubscriptionAddonRequest, CreateSubscriptionAddonResponse, UpdateSubscriptionAddonRequest, UpdateSubscriptionAddonResponse } from '../models/operations/subscriptions.js';
4
4
  import type { ExecuteAppActionRequest, ExecuteAppActionResponse } from '../models/operations/apps.js';
5
- import type { ListNotificationRulesRequest, ListNotificationRulesResponse, CreateNotificationRuleRequest, CreateNotificationRuleResponse, GetNotificationRuleRequest, GetNotificationRuleResponse, UpdateNotificationRuleRequest, UpdateNotificationRuleResponse, DeleteNotificationRuleRequest, DeleteNotificationRuleResponse, TestNotificationRuleRequest, TestNotificationRuleResponse, ListNotificationEventsRequest, ListNotificationEventsResponse, GetNotificationEventRequest, GetNotificationEventResponse, ResendNotificationEventRequest, ResendNotificationEventResponse } from '../models/operations/notifications.js';
5
+ import type { ListBillingNotificationRulesRequest, ListBillingNotificationRulesResponse, CreateBillingNotificationRuleRequest, CreateBillingNotificationRuleResponse, GetBillingNotificationRuleRequest, GetBillingNotificationRuleResponse, UpdateBillingNotificationRuleRequest, UpdateBillingNotificationRuleResponse, DeleteBillingNotificationRuleRequest, DeleteBillingNotificationRuleResponse, TestBillingNotificationRuleRequest, TestBillingNotificationRuleResponse, ListBillingNotificationEventsRequest, ListBillingNotificationEventsResponse, GetBillingNotificationEventRequest, GetBillingNotificationEventResponse, ResendBillingNotificationEventRequest, ResendBillingNotificationEventResponse } from '../models/operations/notifications.js';
6
6
  import type { NotificationEvent, NotificationRule } from '../models/types.js';
7
7
  /**
8
8
  * Operations marked internal in the API definition. They are not part of
@@ -64,7 +64,7 @@ export declare class InternalNotifications {
64
64
  *
65
65
  * GET /openmeter/notification/rules
66
66
  */
67
- listRules(request?: ListNotificationRulesRequest, options?: RequestOptions): Promise<ListNotificationRulesResponse>;
67
+ listBillingRules(request?: ListBillingNotificationRulesRequest, options?: RequestOptions): Promise<ListBillingNotificationRulesResponse>;
68
68
  /**
69
69
  * List notification rules
70
70
  *
@@ -74,7 +74,7 @@ export declare class InternalNotifications {
74
74
  *
75
75
  * GET /openmeter/notification/rules
76
76
  */
77
- listRulesAll(request?: ListNotificationRulesRequest, options?: RequestOptions): AsyncIterable<NotificationRule>;
77
+ listBillingRulesAll(request?: ListBillingNotificationRulesRequest, options?: RequestOptions): AsyncIterable<NotificationRule>;
78
78
  /**
79
79
  * Create notification rule
80
80
  *
@@ -82,7 +82,7 @@ export declare class InternalNotifications {
82
82
  *
83
83
  * POST /openmeter/notification/rules
84
84
  */
85
- createRule(request: CreateNotificationRuleRequest, options?: RequestOptions): Promise<CreateNotificationRuleResponse>;
85
+ createBillingRule(request: CreateBillingNotificationRuleRequest, options?: RequestOptions): Promise<CreateBillingNotificationRuleResponse>;
86
86
  /**
87
87
  * Get notification rule
88
88
  *
@@ -90,7 +90,7 @@ export declare class InternalNotifications {
90
90
  *
91
91
  * GET /openmeter/notification/rules/{notificationRuleId}
92
92
  */
93
- getRule(request: GetNotificationRuleRequest, options?: RequestOptions): Promise<GetNotificationRuleResponse>;
93
+ getBillingRule(request: GetBillingNotificationRuleRequest, options?: RequestOptions): Promise<GetBillingNotificationRuleResponse>;
94
94
  /**
95
95
  * Update notification rule
96
96
  *
@@ -98,7 +98,7 @@ export declare class InternalNotifications {
98
98
  *
99
99
  * PUT /openmeter/notification/rules/{notificationRuleId}
100
100
  */
101
- updateRule(request: UpdateNotificationRuleRequest, options?: RequestOptions): Promise<UpdateNotificationRuleResponse>;
101
+ updateBillingRule(request: UpdateBillingNotificationRuleRequest, options?: RequestOptions): Promise<UpdateBillingNotificationRuleResponse>;
102
102
  /**
103
103
  * Delete notification rule
104
104
  *
@@ -106,7 +106,7 @@ export declare class InternalNotifications {
106
106
  *
107
107
  * DELETE /openmeter/notification/rules/{notificationRuleId}
108
108
  */
109
- deleteRule(request: DeleteNotificationRuleRequest, options?: RequestOptions): Promise<DeleteNotificationRuleResponse>;
109
+ deleteBillingRule(request: DeleteBillingNotificationRuleRequest, options?: RequestOptions): Promise<DeleteBillingNotificationRuleResponse>;
110
110
  /**
111
111
  * Test notification rule
112
112
  *
@@ -116,7 +116,7 @@ export declare class InternalNotifications {
116
116
  *
117
117
  * POST /openmeter/notification/rules/{notificationRuleId}/test
118
118
  */
119
- testRule(request: TestNotificationRuleRequest, options?: RequestOptions): Promise<TestNotificationRuleResponse>;
119
+ testBillingRule(request: TestBillingNotificationRuleRequest, options?: RequestOptions): Promise<TestBillingNotificationRuleResponse>;
120
120
  /**
121
121
  * List notification events
122
122
  *
@@ -124,7 +124,7 @@ export declare class InternalNotifications {
124
124
  *
125
125
  * GET /openmeter/notification/events
126
126
  */
127
- listEvents(request?: ListNotificationEventsRequest, options?: RequestOptions): Promise<ListNotificationEventsResponse>;
127
+ listBillingEvents(request?: ListBillingNotificationEventsRequest, options?: RequestOptions): Promise<ListBillingNotificationEventsResponse>;
128
128
  /**
129
129
  * List notification events
130
130
  *
@@ -134,7 +134,7 @@ export declare class InternalNotifications {
134
134
  *
135
135
  * GET /openmeter/notification/events
136
136
  */
137
- listEventsAll(request?: ListNotificationEventsRequest, options?: RequestOptions): AsyncIterable<NotificationEvent>;
137
+ listBillingEventsAll(request?: ListBillingNotificationEventsRequest, options?: RequestOptions): AsyncIterable<NotificationEvent>;
138
138
  /**
139
139
  * Get notification event
140
140
  *
@@ -142,7 +142,7 @@ export declare class InternalNotifications {
142
142
  *
143
143
  * GET /openmeter/notification/events/{notificationEventId}
144
144
  */
145
- getEvent(request: GetNotificationEventRequest, options?: RequestOptions): Promise<GetNotificationEventResponse>;
145
+ getBillingEvent(request: GetBillingNotificationEventRequest, options?: RequestOptions): Promise<GetBillingNotificationEventResponse>;
146
146
  /**
147
147
  * Resend notification event
148
148
  *
@@ -154,5 +154,5 @@ export declare class InternalNotifications {
154
154
  *
155
155
  * POST /openmeter/notification/events/{notificationEventId}/resend
156
156
  */
157
- resendEvent(request: ResendNotificationEventRequest, options?: RequestOptions): Promise<ResendNotificationEventResponse>;
157
+ resendBillingEvent(request: ResendBillingNotificationEventRequest, options?: RequestOptions): Promise<ResendBillingNotificationEventResponse>;
158
158
  }
@@ -3,7 +3,7 @@ import { unwrap } from '../lib/types.js';
3
3
  import { paginatePages } from '../lib/paginate.js';
4
4
  import { createSubscriptionAddon, updateSubscriptionAddon, } from '../funcs/subscriptions.js';
5
5
  import { executeAppAction } from '../funcs/apps.js';
6
- import { listNotificationRules, createNotificationRule, getNotificationRule, updateNotificationRule, deleteNotificationRule, testNotificationRule, listNotificationEvents, getNotificationEvent, resendNotificationEvent, } from '../funcs/notifications.js';
6
+ import { listBillingNotificationRules, createBillingNotificationRule, getBillingNotificationRule, updateBillingNotificationRule, deleteBillingNotificationRule, testBillingNotificationRule, listBillingNotificationEvents, getBillingNotificationEvent, resendBillingNotificationEvent, } from '../funcs/notifications.js';
7
7
  /**
8
8
  * Operations marked internal in the API definition. They are not part of
9
9
  * the customer surface: they may require additional permissions, and they
@@ -84,8 +84,8 @@ export class InternalNotifications {
84
84
  *
85
85
  * GET /openmeter/notification/rules
86
86
  */
87
- async listRules(request, options) {
88
- return unwrap(await listNotificationRules(this._client, request, options));
87
+ async listBillingRules(request, options) {
88
+ return unwrap(await listBillingNotificationRules(this._client, request, options));
89
89
  }
90
90
  /**
91
91
  * List notification rules
@@ -96,8 +96,8 @@ export class InternalNotifications {
96
96
  *
97
97
  * GET /openmeter/notification/rules
98
98
  */
99
- listRulesAll(request, options) {
100
- return paginatePages((req, opts) => listNotificationRules(this._client, req, opts), request ?? {}, options);
99
+ listBillingRulesAll(request, options) {
100
+ return paginatePages((req, opts) => listBillingNotificationRules(this._client, req, opts), request ?? {}, options);
101
101
  }
102
102
  /**
103
103
  * Create notification rule
@@ -106,8 +106,8 @@ export class InternalNotifications {
106
106
  *
107
107
  * POST /openmeter/notification/rules
108
108
  */
109
- async createRule(request, options) {
110
- return unwrap(await createNotificationRule(this._client, request, options));
109
+ async createBillingRule(request, options) {
110
+ return unwrap(await createBillingNotificationRule(this._client, request, options));
111
111
  }
112
112
  /**
113
113
  * Get notification rule
@@ -116,8 +116,8 @@ export class InternalNotifications {
116
116
  *
117
117
  * GET /openmeter/notification/rules/{notificationRuleId}
118
118
  */
119
- async getRule(request, options) {
120
- return unwrap(await getNotificationRule(this._client, request, options));
119
+ async getBillingRule(request, options) {
120
+ return unwrap(await getBillingNotificationRule(this._client, request, options));
121
121
  }
122
122
  /**
123
123
  * Update notification rule
@@ -126,8 +126,8 @@ export class InternalNotifications {
126
126
  *
127
127
  * PUT /openmeter/notification/rules/{notificationRuleId}
128
128
  */
129
- async updateRule(request, options) {
130
- return unwrap(await updateNotificationRule(this._client, request, options));
129
+ async updateBillingRule(request, options) {
130
+ return unwrap(await updateBillingNotificationRule(this._client, request, options));
131
131
  }
132
132
  /**
133
133
  * Delete notification rule
@@ -136,8 +136,8 @@ export class InternalNotifications {
136
136
  *
137
137
  * DELETE /openmeter/notification/rules/{notificationRuleId}
138
138
  */
139
- async deleteRule(request, options) {
140
- return unwrap(await deleteNotificationRule(this._client, request, options));
139
+ async deleteBillingRule(request, options) {
140
+ return unwrap(await deleteBillingNotificationRule(this._client, request, options));
141
141
  }
142
142
  /**
143
143
  * Test notification rule
@@ -148,8 +148,8 @@ export class InternalNotifications {
148
148
  *
149
149
  * POST /openmeter/notification/rules/{notificationRuleId}/test
150
150
  */
151
- async testRule(request, options) {
152
- return unwrap(await testNotificationRule(this._client, request, options));
151
+ async testBillingRule(request, options) {
152
+ return unwrap(await testBillingNotificationRule(this._client, request, options));
153
153
  }
154
154
  /**
155
155
  * List notification events
@@ -158,8 +158,8 @@ export class InternalNotifications {
158
158
  *
159
159
  * GET /openmeter/notification/events
160
160
  */
161
- async listEvents(request, options) {
162
- return unwrap(await listNotificationEvents(this._client, request, options));
161
+ async listBillingEvents(request, options) {
162
+ return unwrap(await listBillingNotificationEvents(this._client, request, options));
163
163
  }
164
164
  /**
165
165
  * List notification events
@@ -170,8 +170,8 @@ export class InternalNotifications {
170
170
  *
171
171
  * GET /openmeter/notification/events
172
172
  */
173
- listEventsAll(request, options) {
174
- return paginatePages((req, opts) => listNotificationEvents(this._client, req, opts), request ?? {}, options);
173
+ listBillingEventsAll(request, options) {
174
+ return paginatePages((req, opts) => listBillingNotificationEvents(this._client, req, opts), request ?? {}, options);
175
175
  }
176
176
  /**
177
177
  * Get notification event
@@ -180,8 +180,8 @@ export class InternalNotifications {
180
180
  *
181
181
  * GET /openmeter/notification/events/{notificationEventId}
182
182
  */
183
- async getEvent(request, options) {
184
- return unwrap(await getNotificationEvent(this._client, request, options));
183
+ async getBillingEvent(request, options) {
184
+ return unwrap(await getBillingNotificationEvent(this._client, request, options));
185
185
  }
186
186
  /**
187
187
  * Resend notification event
@@ -194,7 +194,7 @@ export class InternalNotifications {
194
194
  *
195
195
  * POST /openmeter/notification/events/{notificationEventId}/resend
196
196
  */
197
- async resendEvent(request, options) {
198
- return unwrap(await resendNotificationEvent(this._client, request, options));
197
+ async resendBillingEvent(request, options) {
198
+ return unwrap(await resendBillingNotificationEvent(this._client, request, options));
199
199
  }
200
200
  }
@@ -1,6 +1,6 @@
1
1
  import { type Client } from '../core.js';
2
2
  import { type RequestOptions } from '../lib/types.js';
3
- import type { ListNotificationChannelsRequest, ListNotificationChannelsResponse, CreateNotificationChannelRequest, CreateNotificationChannelResponse, GetNotificationChannelRequest, GetNotificationChannelResponse, UpdateNotificationChannelRequest, UpdateNotificationChannelResponse, DeleteNotificationChannelRequest, DeleteNotificationChannelResponse } from '../models/operations/notifications.js';
3
+ import type { ListBillingNotificationChannelsRequest, ListBillingNotificationChannelsResponse, CreateBillingNotificationChannelRequest, CreateBillingNotificationChannelResponse, GetBillingNotificationChannelRequest, GetBillingNotificationChannelResponse, UpdateBillingNotificationChannelRequest, UpdateBillingNotificationChannelResponse, DeleteBillingNotificationChannelRequest, DeleteBillingNotificationChannelResponse } from '../models/operations/notifications.js';
4
4
  import type { NotificationChannel } from '../models/types.js';
5
5
  export declare class Notifications {
6
6
  private readonly _client;
@@ -12,7 +12,7 @@ export declare class Notifications {
12
12
  *
13
13
  * GET /openmeter/notification/channels
14
14
  */
15
- listChannels(request?: ListNotificationChannelsRequest, options?: RequestOptions): Promise<ListNotificationChannelsResponse>;
15
+ listBillingChannels(request?: ListBillingNotificationChannelsRequest, options?: RequestOptions): Promise<ListBillingNotificationChannelsResponse>;
16
16
  /**
17
17
  * List notification channels
18
18
  *
@@ -22,7 +22,7 @@ export declare class Notifications {
22
22
  *
23
23
  * GET /openmeter/notification/channels
24
24
  */
25
- listChannelsAll(request?: ListNotificationChannelsRequest, options?: RequestOptions): AsyncIterable<NotificationChannel>;
25
+ listBillingChannelsAll(request?: ListBillingNotificationChannelsRequest, options?: RequestOptions): AsyncIterable<NotificationChannel>;
26
26
  /**
27
27
  * Create notification channel
28
28
  *
@@ -30,7 +30,7 @@ export declare class Notifications {
30
30
  *
31
31
  * POST /openmeter/notification/channels
32
32
  */
33
- createChannel(request: CreateNotificationChannelRequest, options?: RequestOptions): Promise<CreateNotificationChannelResponse>;
33
+ createBillingChannel(request: CreateBillingNotificationChannelRequest, options?: RequestOptions): Promise<CreateBillingNotificationChannelResponse>;
34
34
  /**
35
35
  * Get notification channel
36
36
  *
@@ -38,7 +38,7 @@ export declare class Notifications {
38
38
  *
39
39
  * GET /openmeter/notification/channels/{notificationChannelId}
40
40
  */
41
- getChannel(request: GetNotificationChannelRequest, options?: RequestOptions): Promise<GetNotificationChannelResponse>;
41
+ getBillingChannel(request: GetBillingNotificationChannelRequest, options?: RequestOptions): Promise<GetBillingNotificationChannelResponse>;
42
42
  /**
43
43
  * Update notification channel
44
44
  *
@@ -46,7 +46,7 @@ export declare class Notifications {
46
46
  *
47
47
  * PUT /openmeter/notification/channels/{notificationChannelId}
48
48
  */
49
- updateChannel(request: UpdateNotificationChannelRequest, options?: RequestOptions): Promise<UpdateNotificationChannelResponse>;
49
+ updateBillingChannel(request: UpdateBillingNotificationChannelRequest, options?: RequestOptions): Promise<UpdateBillingNotificationChannelResponse>;
50
50
  /**
51
51
  * Delete notification channel
52
52
  *
@@ -54,5 +54,5 @@ export declare class Notifications {
54
54
  *
55
55
  * DELETE /openmeter/notification/channels/{notificationChannelId}
56
56
  */
57
- deleteChannel(request: DeleteNotificationChannelRequest, options?: RequestOptions): Promise<DeleteNotificationChannelResponse>;
57
+ deleteBillingChannel(request: DeleteBillingNotificationChannelRequest, options?: RequestOptions): Promise<DeleteBillingNotificationChannelResponse>;
58
58
  }
@@ -1,7 +1,7 @@
1
1
  // Code generated by @openmeter/typespec-typescript. DO NOT EDIT.
2
2
  import { unwrap } from '../lib/types.js';
3
3
  import { paginatePages } from '../lib/paginate.js';
4
- import { listNotificationChannels, createNotificationChannel, getNotificationChannel, updateNotificationChannel, deleteNotificationChannel, } from '../funcs/notifications.js';
4
+ import { listBillingNotificationChannels, createBillingNotificationChannel, getBillingNotificationChannel, updateBillingNotificationChannel, deleteBillingNotificationChannel, } from '../funcs/notifications.js';
5
5
  export class Notifications {
6
6
  _client;
7
7
  constructor(_client) {
@@ -14,8 +14,8 @@ export class Notifications {
14
14
  *
15
15
  * GET /openmeter/notification/channels
16
16
  */
17
- async listChannels(request, options) {
18
- return unwrap(await listNotificationChannels(this._client, request, options));
17
+ async listBillingChannels(request, options) {
18
+ return unwrap(await listBillingNotificationChannels(this._client, request, options));
19
19
  }
20
20
  /**
21
21
  * List notification channels
@@ -26,8 +26,8 @@ export class Notifications {
26
26
  *
27
27
  * GET /openmeter/notification/channels
28
28
  */
29
- listChannelsAll(request, options) {
30
- return paginatePages((req, opts) => listNotificationChannels(this._client, req, opts), request ?? {}, options);
29
+ listBillingChannelsAll(request, options) {
30
+ return paginatePages((req, opts) => listBillingNotificationChannels(this._client, req, opts), request ?? {}, options);
31
31
  }
32
32
  /**
33
33
  * Create notification channel
@@ -36,8 +36,8 @@ export class Notifications {
36
36
  *
37
37
  * POST /openmeter/notification/channels
38
38
  */
39
- async createChannel(request, options) {
40
- return unwrap(await createNotificationChannel(this._client, request, options));
39
+ async createBillingChannel(request, options) {
40
+ return unwrap(await createBillingNotificationChannel(this._client, request, options));
41
41
  }
42
42
  /**
43
43
  * Get notification channel
@@ -46,8 +46,8 @@ export class Notifications {
46
46
  *
47
47
  * GET /openmeter/notification/channels/{notificationChannelId}
48
48
  */
49
- async getChannel(request, options) {
50
- return unwrap(await getNotificationChannel(this._client, request, options));
49
+ async getBillingChannel(request, options) {
50
+ return unwrap(await getBillingNotificationChannel(this._client, request, options));
51
51
  }
52
52
  /**
53
53
  * Update notification channel
@@ -56,8 +56,8 @@ export class Notifications {
56
56
  *
57
57
  * PUT /openmeter/notification/channels/{notificationChannelId}
58
58
  */
59
- async updateChannel(request, options) {
60
- return unwrap(await updateNotificationChannel(this._client, request, options));
59
+ async updateBillingChannel(request, options) {
60
+ return unwrap(await updateBillingNotificationChannel(this._client, request, options));
61
61
  }
62
62
  /**
63
63
  * Delete notification channel
@@ -66,7 +66,7 @@ export class Notifications {
66
66
  *
67
67
  * DELETE /openmeter/notification/channels/{notificationChannelId}
68
68
  */
69
- async deleteChannel(request, options) {
70
- return unwrap(await deleteNotificationChannel(this._client, request, options));
69
+ async deleteBillingChannel(request, options) {
70
+ return unwrap(await deleteBillingNotificationChannel(this._client, request, options));
71
71
  }
72
72
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmeter/client",
3
- "version": "1.0.0-beta-93c878ce5648",
3
+ "version": "1.0.0-beta-8239676745d4",
4
4
  "description": "Official TypeScript SDK for the OpenMeter API — usage metering and billing",
5
5
  "keywords": [
6
6
  "openmeter",