@openmeter/client 1.0.0-beta.235 → 1.0.0-beta.236
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 +22 -0
- package/dist/funcs/apps.d.ts +10 -1
- package/dist/funcs/apps.js +40 -0
- package/dist/funcs/notifications.d.ts +79 -1
- package/dist/funcs/notifications.js +296 -0
- package/dist/index.d.ts +1 -1
- package/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/dist/models/operations/apps.d.ts +6 -1
- package/dist/models/operations/notifications.d.ts +92 -1
- package/dist/models/schemas.d.ts +5907 -1137
- package/dist/models/schemas.js +1147 -9
- package/dist/models/types.d.ts +770 -3
- package/dist/sdk/internal.d.ts +122 -0
- package/dist/sdk/internal.js +154 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AcceptDateStrings } from '../../lib/wire.js';
|
|
2
|
-
import type { CreateNotificationChannelRequestInput, ListNotificationChannelsParamsFilter, NotificationChannel, NotificationChannelPagePaginatedResponse, SortQueryInput, UpdateBillingNotificationChannelRequestInput } from '../types.js';
|
|
2
|
+
import type { CreateNotificationChannelRequestInput, ListNotificationChannelsParamsFilter, ListNotificationEventsParamsFilter, ListNotificationRulesParamsFilter, NotificationChannel, NotificationChannelPagePaginatedResponse, NotificationEvent, NotificationEventPagePaginatedResponse, NotificationRule, NotificationRulePagePaginatedResponse, NotificationRuleRequestInput, ResendBillingNotificationEventRequest, SortQueryInput, UpdateBillingNotificationChannelRequestInput } from '../types.js';
|
|
3
3
|
export interface ListNotificationChannelsQuery {
|
|
4
4
|
/** Determines which page of the collection to retrieve. */
|
|
5
5
|
page?: {
|
|
@@ -44,3 +44,94 @@ export type DeleteNotificationChannelRequest = {
|
|
|
44
44
|
notificationChannelId: string;
|
|
45
45
|
};
|
|
46
46
|
export type DeleteNotificationChannelResponse = void;
|
|
47
|
+
export interface ListNotificationRulesQuery {
|
|
48
|
+
/** Determines which page of the collection to retrieve. */
|
|
49
|
+
page?: {
|
|
50
|
+
size?: number;
|
|
51
|
+
number?: number;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Sort notification rules returned in the response. Supported sort attributes are:
|
|
55
|
+
*
|
|
56
|
+
* - `id` (default)
|
|
57
|
+
* - `type`
|
|
58
|
+
* - `created_at`
|
|
59
|
+
* - `updated_at`
|
|
60
|
+
*
|
|
61
|
+
* The `asc` suffix is optional as the default sort order is ascending. The `desc`
|
|
62
|
+
* suffix is used to specify a descending order.
|
|
63
|
+
*/
|
|
64
|
+
sort?: SortQueryInput;
|
|
65
|
+
/**
|
|
66
|
+
* Filter notification rules returned in the response.
|
|
67
|
+
*
|
|
68
|
+
* Examples:
|
|
69
|
+
*
|
|
70
|
+
* - `filter[type]=entitlements.balance.threshold`
|
|
71
|
+
* - `filter[disabled]=false`
|
|
72
|
+
* - `filter[channel_id]=01ARZ3NDEKTSV4RRFFQ69G5FAV`
|
|
73
|
+
*/
|
|
74
|
+
filter?: ListNotificationRulesParamsFilter;
|
|
75
|
+
}
|
|
76
|
+
export type ListNotificationRulesRequest = AcceptDateStrings<ListNotificationRulesQuery>;
|
|
77
|
+
export type ListNotificationRulesResponse = NotificationRulePagePaginatedResponse;
|
|
78
|
+
export type CreateNotificationRuleRequest = AcceptDateStrings<NotificationRuleRequestInput>;
|
|
79
|
+
export type CreateNotificationRuleResponse = NotificationRule;
|
|
80
|
+
export type GetNotificationRuleRequest = {
|
|
81
|
+
notificationRuleId: string;
|
|
82
|
+
};
|
|
83
|
+
export type GetNotificationRuleResponse = NotificationRule;
|
|
84
|
+
export type UpdateNotificationRuleRequest = AcceptDateStrings<{
|
|
85
|
+
notificationRuleId: string;
|
|
86
|
+
body: NotificationRuleRequestInput;
|
|
87
|
+
}>;
|
|
88
|
+
export type UpdateNotificationRuleResponse = NotificationRule;
|
|
89
|
+
export type DeleteNotificationRuleRequest = {
|
|
90
|
+
notificationRuleId: string;
|
|
91
|
+
};
|
|
92
|
+
export type DeleteNotificationRuleResponse = void;
|
|
93
|
+
export type TestNotificationRuleRequest = {
|
|
94
|
+
notificationRuleId: string;
|
|
95
|
+
};
|
|
96
|
+
export type TestNotificationRuleResponse = NotificationEvent;
|
|
97
|
+
export interface ListNotificationEventsQuery {
|
|
98
|
+
/** Determines which page of the collection to retrieve. */
|
|
99
|
+
page?: {
|
|
100
|
+
size?: number;
|
|
101
|
+
number?: number;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Sort notification events returned in the response. Supported sort attributes
|
|
105
|
+
* are:
|
|
106
|
+
*
|
|
107
|
+
* - `created_at` (default)
|
|
108
|
+
* - `id`
|
|
109
|
+
* - `type`
|
|
110
|
+
*
|
|
111
|
+
* The `asc` suffix is optional as the default sort order is ascending. The `desc`
|
|
112
|
+
* suffix is used to specify a descending order. Without a `sort` parameter, events
|
|
113
|
+
* are returned newest first.
|
|
114
|
+
*/
|
|
115
|
+
sort?: SortQueryInput;
|
|
116
|
+
/**
|
|
117
|
+
* Filter notification events returned in the response.
|
|
118
|
+
*
|
|
119
|
+
* Examples:
|
|
120
|
+
*
|
|
121
|
+
* - `filter[type]=invoice.created`
|
|
122
|
+
* - `filter[delivery_status]=failed`
|
|
123
|
+
* - `filter[subject_key]=customer-1`
|
|
124
|
+
*/
|
|
125
|
+
filter?: ListNotificationEventsParamsFilter;
|
|
126
|
+
}
|
|
127
|
+
export type ListNotificationEventsRequest = AcceptDateStrings<ListNotificationEventsQuery>;
|
|
128
|
+
export type ListNotificationEventsResponse = NotificationEventPagePaginatedResponse;
|
|
129
|
+
export type GetNotificationEventRequest = {
|
|
130
|
+
notificationEventId: string;
|
|
131
|
+
};
|
|
132
|
+
export type GetNotificationEventResponse = NotificationEvent;
|
|
133
|
+
export type ResendNotificationEventRequest = AcceptDateStrings<{
|
|
134
|
+
notificationEventId: string;
|
|
135
|
+
body: ResendBillingNotificationEventRequest;
|
|
136
|
+
}>;
|
|
137
|
+
export type ResendNotificationEventResponse = void;
|