@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.
- package/README.md +52 -14
- package/dist/funcs/customers.d.ts +112 -1
- package/dist/funcs/customers.js +430 -0
- package/dist/funcs/entitlements.d.ts +38 -1
- package/dist/funcs/entitlements.js +169 -6
- package/dist/funcs/grants.d.ts +24 -0
- package/dist/funcs/grants.js +78 -0
- package/dist/funcs/index.d.ts +2 -0
- package/dist/funcs/index.js +2 -0
- package/dist/funcs/notifications.d.ts +43 -0
- package/dist/funcs/notifications.js +163 -0
- package/dist/index.d.ts +3 -1
- package/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/dist/models/operations/customers.d.ts +109 -1
- package/dist/models/operations/entitlements.d.ts +59 -4
- package/dist/models/operations/grants.d.ts +43 -0
- package/dist/models/operations/grants.js +2 -0
- package/dist/models/operations/notifications.d.ts +46 -0
- package/dist/models/operations/notifications.js +2 -0
- package/dist/models/schemas.d.ts +6549 -2716
- package/dist/models/schemas.js +1795 -360
- package/dist/models/types.d.ts +1175 -228
- package/dist/sdk/apps.d.ts +20 -1
- package/dist/sdk/apps.js +24 -1
- package/dist/sdk/entitlements.d.ts +1 -9
- package/dist/sdk/entitlements.js +1 -11
- package/dist/sdk/internal.d.ts +324 -22
- package/dist/sdk/internal.js +397 -25
- package/dist/sdk/notifications.d.ts +58 -0
- package/dist/sdk/notifications.js +72 -0
- package/dist/sdk/subscriptions.d.ts +1 -9
- package/dist/sdk/subscriptions.js +1 -11
- package/package.json +1 -1
|
@@ -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;
|