@openmeter/client 1.0.0-beta-d30d21dce71a → 1.0.0-beta-c725b4d6b371
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/dist/models/operations/addons.d.ts +12 -1
- package/dist/models/operations/currencies.d.ts +20 -3
- package/dist/models/operations/customers.d.ts +43 -6
- package/dist/models/operations/events.d.ts +17 -2
- package/dist/models/operations/features.d.ts +17 -2
- package/dist/models/operations/llmCost.d.ts +12 -1
- package/dist/models/operations/meters.d.ts +17 -2
- package/dist/models/operations/plans.d.ts +9 -1
- package/dist/models/operations/subscriptions.d.ts +21 -1
- package/dist/models/types.d.ts +2422 -454
- package/package.json +1 -1
|
@@ -5,7 +5,18 @@ export interface ListAddonsQuery {
|
|
|
5
5
|
size?: number;
|
|
6
6
|
number?: number;
|
|
7
7
|
};
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Sort add-ons returned in the response. Supported sort attributes are:
|
|
10
|
+
*
|
|
11
|
+
* - `id`
|
|
12
|
+
* - `key`
|
|
13
|
+
* - `name`
|
|
14
|
+
* - `created_at` (default)
|
|
15
|
+
* - `updated_at`
|
|
16
|
+
*
|
|
17
|
+
* The `asc` suffix is optional as the default sort order is ascending. The `desc`
|
|
18
|
+
* suffix is used to specify a descending order.
|
|
19
|
+
*/
|
|
9
20
|
sort?: SortQueryInput;
|
|
10
21
|
/** Filter add-ons returned in the response. */
|
|
11
22
|
filter?: ListAddonsParamsFilter;
|
|
@@ -5,9 +5,21 @@ export interface ListCurrenciesQuery {
|
|
|
5
5
|
size?: number;
|
|
6
6
|
number?: number;
|
|
7
7
|
};
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Sort currencies returned in the response. Supported sort attributes are:
|
|
10
|
+
*
|
|
11
|
+
* - `code` (default)
|
|
12
|
+
* - `name`
|
|
13
|
+
*
|
|
14
|
+
* The `asc` suffix is optional as the default sort order is ascending. The `desc`
|
|
15
|
+
* suffix is used to specify a descending order.
|
|
16
|
+
*/
|
|
9
17
|
sort?: SortQueryInput;
|
|
10
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* Filter currencies returned in the response.
|
|
20
|
+
*
|
|
21
|
+
* To filter currencies by type add the following query param: filter[type]=custom
|
|
22
|
+
*/
|
|
11
23
|
filter?: ListCurrenciesParamsFilter;
|
|
12
24
|
}
|
|
13
25
|
export type ListCurrenciesRequest = ListCurrenciesQuery;
|
|
@@ -15,7 +27,12 @@ export type ListCurrenciesResponse = CurrencyPagePaginatedResponse;
|
|
|
15
27
|
export type CreateCustomCurrencyRequest = CreateCurrencyCustomRequest;
|
|
16
28
|
export type CreateCustomCurrencyResponse = CurrencyCustom;
|
|
17
29
|
export interface ListCostBasesQuery {
|
|
18
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Filter cost bases returned in the response.
|
|
32
|
+
*
|
|
33
|
+
* To filter cost bases by fiat currency code add the following query param:
|
|
34
|
+
* filter[fiat_code]=USD
|
|
35
|
+
*/
|
|
19
36
|
filter?: ListCostBasesParamsFilter;
|
|
20
37
|
/** Determines which page of the collection to retrieve. */
|
|
21
38
|
page?: {
|
|
@@ -13,9 +13,22 @@ export interface ListCustomersQuery {
|
|
|
13
13
|
size?: number;
|
|
14
14
|
number?: number;
|
|
15
15
|
};
|
|
16
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Sort customers returned in the response. Supported sort attributes are:
|
|
18
|
+
*
|
|
19
|
+
* - `id`
|
|
20
|
+
* - `name` (default)
|
|
21
|
+
* - `created_at`
|
|
22
|
+
*
|
|
23
|
+
* The `asc` suffix is optional as the default sort order is ascending. The `desc`
|
|
24
|
+
* suffix is used to specify a descending order.
|
|
25
|
+
*/
|
|
17
26
|
sort?: SortQueryInput;
|
|
18
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Filter customers returned in the response.
|
|
29
|
+
*
|
|
30
|
+
* To filter customers by key add the following query param: filter[key]=my-db-id
|
|
31
|
+
*/
|
|
19
32
|
filter?: ListCustomersParamsFilter;
|
|
20
33
|
}
|
|
21
34
|
export type ListCustomersRequest = ListCustomersQuery;
|
|
@@ -77,7 +90,11 @@ export type ListCreditGrantsRequest = ListCreditGrantsQuery & {
|
|
|
77
90
|
};
|
|
78
91
|
export type ListCreditGrantsResponse = CreditGrantPagePaginatedResponse;
|
|
79
92
|
export interface GetCustomerCreditBalanceQuery {
|
|
80
|
-
/**
|
|
93
|
+
/**
|
|
94
|
+
* Return the credit balance as of this timestamp.
|
|
95
|
+
*
|
|
96
|
+
* Defaults to the current time.
|
|
97
|
+
*/
|
|
81
98
|
timestamp?: string;
|
|
82
99
|
filter?: GetCreditBalanceParamsFilter;
|
|
83
100
|
}
|
|
@@ -111,11 +128,31 @@ export interface ListCustomerChargesQuery {
|
|
|
111
128
|
size?: number;
|
|
112
129
|
number?: number;
|
|
113
130
|
};
|
|
114
|
-
/**
|
|
131
|
+
/**
|
|
132
|
+
* Sort charges returned in the response.
|
|
133
|
+
*
|
|
134
|
+
* Supported sort attributes are:
|
|
135
|
+
*
|
|
136
|
+
* - `id`
|
|
137
|
+
* - `created_at`
|
|
138
|
+
* - `service_period.from`
|
|
139
|
+
* - `billing_period.from`
|
|
140
|
+
*/
|
|
115
141
|
sort?: SortQueryInput;
|
|
116
|
-
/**
|
|
142
|
+
/**
|
|
143
|
+
* Filter charges.
|
|
144
|
+
*
|
|
145
|
+
* To filter charges by status add the following query param:
|
|
146
|
+
* `filter[status][oeq]=created,active`
|
|
147
|
+
*/
|
|
117
148
|
filter?: ListChargesParamsFilter;
|
|
118
|
-
/**
|
|
149
|
+
/**
|
|
150
|
+
* Expand full objects for referenced entities.
|
|
151
|
+
*
|
|
152
|
+
* Supported values are:
|
|
153
|
+
*
|
|
154
|
+
* - `real_time_usage`: Expand the charge's real-time usage.
|
|
155
|
+
*/
|
|
119
156
|
expand?: 'real_time_usage'[];
|
|
120
157
|
}
|
|
121
158
|
export type ListCustomerChargesRequest = ListCustomerChargesQuery & {
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import type { CursorPaginationQueryPage, EventInput, IngestedEventPaginatedResponse, ListEventsParamsFilter, SortQueryInput } from '../types.js';
|
|
2
2
|
export interface ListMeteringEventsQuery {
|
|
3
3
|
page?: CursorPaginationQueryPage;
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Filter events returned in the response.
|
|
6
|
+
*
|
|
7
|
+
* To filter events by subject add the following query param:
|
|
8
|
+
* filter[subject][eq]=customer-1
|
|
9
|
+
*/
|
|
5
10
|
filter?: ListEventsParamsFilter;
|
|
6
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Sort events returned in the response. Supported sort attributes are:
|
|
13
|
+
*
|
|
14
|
+
* - `time` (default)
|
|
15
|
+
* - `ingested_at`
|
|
16
|
+
* - `stored_at`
|
|
17
|
+
*
|
|
18
|
+
* When omitted, events are sorted by `time desc` (most recent first). When a sort
|
|
19
|
+
* field is provided without a suffix, it sorts descending. Append the `asc` suffix
|
|
20
|
+
* to sort ascending, or the `desc` suffix to sort descending.
|
|
21
|
+
*/
|
|
7
22
|
sort?: SortQueryInput;
|
|
8
23
|
}
|
|
9
24
|
export type ListMeteringEventsRequest = ListMeteringEventsQuery;
|
|
@@ -5,9 +5,24 @@ export interface ListFeaturesQuery {
|
|
|
5
5
|
size?: number;
|
|
6
6
|
number?: number;
|
|
7
7
|
};
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Sort features returned in the response. Supported sort attributes are:
|
|
10
|
+
*
|
|
11
|
+
* - `key`
|
|
12
|
+
* - `name`
|
|
13
|
+
* - `created_at` (default)
|
|
14
|
+
* - `updated_at`
|
|
15
|
+
*
|
|
16
|
+
* The `asc` suffix is optional as the default sort order is ascending. The `desc`
|
|
17
|
+
* suffix is used to specify a descending order.
|
|
18
|
+
*/
|
|
9
19
|
sort?: SortQueryInput;
|
|
10
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Filter features returned in the response.
|
|
22
|
+
*
|
|
23
|
+
* To filter features by meter_id add the following query param:
|
|
24
|
+
* filter[meter_id][oeq]=<id>
|
|
25
|
+
*/
|
|
11
26
|
filter?: ListFeatureParamsFilter;
|
|
12
27
|
}
|
|
13
28
|
export type ListFeaturesRequest = ListFeaturesQuery;
|
|
@@ -2,7 +2,18 @@ import type { ListLlmCostPricesParamsFilter, LlmCostOverrideCreate, LlmCostPrice
|
|
|
2
2
|
export interface ListLlmCostPricesQuery {
|
|
3
3
|
/** Filter prices. */
|
|
4
4
|
filter?: ListLlmCostPricesParamsFilter;
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Sort prices returned in the response. Supported sort attributes are:
|
|
7
|
+
*
|
|
8
|
+
* - `id`
|
|
9
|
+
* - `provider.id`
|
|
10
|
+
* - `model.id` (default)
|
|
11
|
+
* - `effective_from`
|
|
12
|
+
* - `effective_to`
|
|
13
|
+
*
|
|
14
|
+
* The `asc` suffix is optional as the default sort order is ascending. The `desc`
|
|
15
|
+
* suffix is used to specify a descending order.
|
|
16
|
+
*/
|
|
6
17
|
sort?: SortQueryInput;
|
|
7
18
|
/** Determines which page of the collection to retrieve. */
|
|
8
19
|
page?: {
|
|
@@ -11,9 +11,24 @@ export interface ListMetersQuery {
|
|
|
11
11
|
size?: number;
|
|
12
12
|
number?: number;
|
|
13
13
|
};
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* Sort meters returned in the response. Supported sort attributes are:
|
|
16
|
+
*
|
|
17
|
+
* - `key`
|
|
18
|
+
* - `name`
|
|
19
|
+
* - `aggregation`
|
|
20
|
+
* - `created_at` (default)
|
|
21
|
+
* - `updated_at`
|
|
22
|
+
*
|
|
23
|
+
* The `asc` suffix is optional as the default sort order is ascending. The `desc`
|
|
24
|
+
* suffix is used to specify a descending order.
|
|
25
|
+
*/
|
|
15
26
|
sort?: SortQueryInput;
|
|
16
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Filter meters returned in the response.
|
|
29
|
+
*
|
|
30
|
+
* To filter meters by key add the following query param: filter[key]=my-meter-key
|
|
31
|
+
*/
|
|
17
32
|
filter?: ListMetersParamsFilter;
|
|
18
33
|
}
|
|
19
34
|
export type ListMetersRequest = ListMetersQuery;
|
|
@@ -5,7 +5,15 @@ export interface ListPlansQuery {
|
|
|
5
5
|
size?: number;
|
|
6
6
|
number?: number;
|
|
7
7
|
};
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Sort plans returned in the response. Supported sort attributes are:
|
|
10
|
+
*
|
|
11
|
+
* - `id`
|
|
12
|
+
* - `key`
|
|
13
|
+
* - `version`
|
|
14
|
+
* - `created_at` (default)
|
|
15
|
+
* - `updated_at`
|
|
16
|
+
*/
|
|
9
17
|
sort?: SortQueryInput;
|
|
10
18
|
/** Filter plans returned in the response. */
|
|
11
19
|
filter?: ListPlansParamsFilter;
|
|
@@ -7,7 +7,16 @@ export interface ListSubscriptionsQuery {
|
|
|
7
7
|
size?: number;
|
|
8
8
|
number?: number;
|
|
9
9
|
};
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Sort subscriptions returned in the response. Supported sort attributes are:
|
|
12
|
+
*
|
|
13
|
+
* - `id`
|
|
14
|
+
* - `active_from` (default)
|
|
15
|
+
* - `active_to`
|
|
16
|
+
*
|
|
17
|
+
* The `asc` suffix is optional as the default sort order is ascending. The `desc`
|
|
18
|
+
* suffix is used to specify a descending order.
|
|
19
|
+
*/
|
|
11
20
|
sort?: SortQueryInput;
|
|
12
21
|
/** Filter subscriptions. */
|
|
13
22
|
filter?: ListSubscriptionsParamsFilter;
|
|
@@ -38,6 +47,17 @@ export interface ListSubscriptionAddonsQuery {
|
|
|
38
47
|
size?: number;
|
|
39
48
|
number?: number;
|
|
40
49
|
};
|
|
50
|
+
/**
|
|
51
|
+
* Sort subscription addons returned in the response. Supported sort attributes
|
|
52
|
+
* are:
|
|
53
|
+
*
|
|
54
|
+
* - `id`
|
|
55
|
+
* - `created_at` (default)
|
|
56
|
+
* - `updated_at`
|
|
57
|
+
*
|
|
58
|
+
* The `asc` suffix is optional as the default sort order is ascending. The `desc`
|
|
59
|
+
* suffix is used to specify a descending order.
|
|
60
|
+
*/
|
|
41
61
|
sort?: SortQueryInput;
|
|
42
62
|
}
|
|
43
63
|
export type ListSubscriptionAddonsRequest = ListSubscriptionAddonsQuery & {
|