@openmeter/client 1.0.0-beta.233 → 1.0.0-beta.234

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.
@@ -0,0 +1,2 @@
1
+ // Code generated by @openmeter/typespec-typescript. DO NOT EDIT.
2
+ export {};
@@ -0,0 +1,46 @@
1
+ import type { AcceptDateStrings } from '../../lib/wire.js';
2
+ import type { CreateNotificationChannelRequestInput, ListNotificationChannelsParamsFilter, NotificationChannel, NotificationChannelPagePaginatedResponse, SortQueryInput, UpdateNotificationChannelRequestInput } from '../types.js';
3
+ export interface ListNotificationChannelsQuery {
4
+ /** Determines which page of the collection to retrieve. */
5
+ page?: {
6
+ size?: number;
7
+ number?: number;
8
+ };
9
+ /**
10
+ * Sort notification channels returned in the response. Supported sort attributes
11
+ * are:
12
+ *
13
+ * - `id` (default)
14
+ * - `type`
15
+ * - `created_at`
16
+ * - `updated_at`
17
+ *
18
+ * The `asc` suffix is optional as the default sort order is ascending. The `desc`
19
+ * suffix is used to specify a descending order.
20
+ */
21
+ sort?: SortQueryInput;
22
+ /**
23
+ * Filter notification channels returned in the response.
24
+ *
25
+ * To filter notification channels by type add the following query param:
26
+ * filter[type]=webhook
27
+ */
28
+ filter?: ListNotificationChannelsParamsFilter;
29
+ }
30
+ export type ListNotificationChannelsRequest = AcceptDateStrings<ListNotificationChannelsQuery>;
31
+ export type ListNotificationChannelsResponse = NotificationChannelPagePaginatedResponse;
32
+ export type CreateNotificationChannelRequest = AcceptDateStrings<CreateNotificationChannelRequestInput>;
33
+ export type CreateNotificationChannelResponse = NotificationChannel;
34
+ export type GetNotificationChannelRequest = {
35
+ notificationChannelId: string;
36
+ };
37
+ export type GetNotificationChannelResponse = NotificationChannel;
38
+ export type UpdateNotificationChannelRequest = AcceptDateStrings<{
39
+ notificationChannelId: string;
40
+ body: UpdateNotificationChannelRequestInput;
41
+ }>;
42
+ export type UpdateNotificationChannelResponse = NotificationChannel;
43
+ export type DeleteNotificationChannelRequest = {
44
+ notificationChannelId: string;
45
+ };
46
+ export type DeleteNotificationChannelResponse = void;
@@ -0,0 +1,2 @@
1
+ // Code generated by @openmeter/typespec-typescript. DO NOT EDIT.
2
+ export {};