@openmeter/client 1.0.0-beta-cc5b24e44326 → 1.0.0-beta-55759ef876f6
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/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.0-beta-
|
|
1
|
+
export declare const SDK_VERSION = "1.0.0-beta-55759ef876f6";
|
package/dist/lib/version.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
// The committed value is a dev placeholder. The publish flow
|
|
3
3
|
// (`make -C api/spec publish-aip-sdk`) stamps the real release version here
|
|
4
4
|
// before `pnpm publish`, after `pnpm version` updates package.json.
|
|
5
|
-
export const SDK_VERSION = '1.0.0-beta-
|
|
5
|
+
export const SDK_VERSION = '1.0.0-beta-55759ef876f6';
|
|
@@ -31,6 +31,9 @@ export interface ListChargesQuery {
|
|
|
31
31
|
* To filter charges by customer add the following query param:
|
|
32
32
|
* `filter[customer_id][eq]=<id>` or `filter[customer_id][oeq]=<id>,<id>`.
|
|
33
33
|
*
|
|
34
|
+
* To filter charges by subscription, use `filter[subscription_id][eq]=<id>` or
|
|
35
|
+
* `filter[subscription_id][oeq]=<id>,<id>`.
|
|
36
|
+
*
|
|
34
37
|
* To filter charges by status add the following query param:
|
|
35
38
|
* `filter[status][oeq]=created,active`
|
|
36
39
|
*
|
package/dist/models/schemas.d.ts
CHANGED
|
@@ -3348,6 +3348,11 @@ export declare const listChargesParamsFilter: z.ZodObject<{
|
|
|
3348
3348
|
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3349
3349
|
neq: z.ZodOptional<z.ZodString>;
|
|
3350
3350
|
}, z.core.$strip>]>>;
|
|
3351
|
+
subscriptionId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
3352
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
3353
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3354
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
3355
|
+
}, z.core.$strip>]>>;
|
|
3351
3356
|
}, z.core.$strip>;
|
|
3352
3357
|
export declare const listNotificationChannelsParamsFilter: z.ZodObject<{
|
|
3353
3358
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -49572,6 +49577,11 @@ export declare const listChargesQueryParams: z.ZodObject<{
|
|
|
49572
49577
|
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
49573
49578
|
neq: z.ZodOptional<z.ZodString>;
|
|
49574
49579
|
}, z.core.$strip>]>>;
|
|
49580
|
+
subscriptionId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
49581
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
49582
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
49583
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
49584
|
+
}, z.core.$strip>]>>;
|
|
49575
49585
|
}, z.core.$strip>>;
|
|
49576
49586
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
49577
49587
|
customer: "customer";
|
|
@@ -65847,6 +65857,11 @@ export declare const listChargesParamsFilterWire: z.ZodObject<{
|
|
|
65847
65857
|
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
65848
65858
|
neq: z.ZodOptional<z.ZodString>;
|
|
65849
65859
|
}, z.core.$strict>]>>;
|
|
65860
|
+
subscription_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
65861
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
65862
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
65863
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
65864
|
+
}, z.core.$strict>]>>;
|
|
65850
65865
|
}, z.core.$strict>;
|
|
65851
65866
|
export declare const listNotificationChannelsParamsFilterWire: z.ZodObject<{
|
|
65852
65867
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -112026,6 +112041,11 @@ export declare const listChargesQueryParamsWire: z.ZodObject<{
|
|
|
112026
112041
|
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
112027
112042
|
neq: z.ZodOptional<z.ZodString>;
|
|
112028
112043
|
}, z.core.$strict>]>>;
|
|
112044
|
+
subscription_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
112045
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
112046
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
112047
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
112048
|
+
}, z.core.$strict>]>>;
|
|
112029
112049
|
}, z.core.$strict>>;
|
|
112030
112050
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
112031
112051
|
customer: "customer";
|
package/dist/models/schemas.js
CHANGED
|
@@ -4226,6 +4226,7 @@ export const listChargesParamsFilter = z
|
|
|
4226
4226
|
servicePeriodFrom: dateTimeFieldFilter.optional(),
|
|
4227
4227
|
servicePeriodTo: dateTimeFieldFilter.optional(),
|
|
4228
4228
|
customerId: ulidFieldFilter.optional(),
|
|
4229
|
+
subscriptionId: ulidFieldFilter.optional(),
|
|
4229
4230
|
})
|
|
4230
4231
|
.describe('Filter options for listing charges across customers.');
|
|
4231
4232
|
export const listNotificationChannelsParamsFilter = z
|
|
@@ -13532,6 +13533,7 @@ export const listChargesParamsFilterWire = z
|
|
|
13532
13533
|
service_period_from: dateTimeFieldFilterWire.optional(),
|
|
13533
13534
|
service_period_to: dateTimeFieldFilterWire.optional(),
|
|
13534
13535
|
customer_id: ulidFieldFilterWire.optional(),
|
|
13536
|
+
subscription_id: ulidFieldFilterWire.optional(),
|
|
13535
13537
|
})
|
|
13536
13538
|
.describe('Filter options for listing charges across customers.');
|
|
13537
13539
|
export const listNotificationChannelsParamsFilterWire = z
|
package/dist/models/types.d.ts
CHANGED
|
@@ -4154,6 +4154,11 @@ export interface ListChargesParamsFilter {
|
|
|
4154
4154
|
servicePeriodTo?: DateTimeFieldFilter;
|
|
4155
4155
|
/** Filter charges by the ID of their customer. */
|
|
4156
4156
|
customerId?: UlidFieldFilter;
|
|
4157
|
+
/**
|
|
4158
|
+
* Filter charges by the ID of their subscription. Only charges linked to a
|
|
4159
|
+
* subscription can match, including when using `neq`.
|
|
4160
|
+
*/
|
|
4161
|
+
subscriptionId?: UlidFieldFilter;
|
|
4157
4162
|
}
|
|
4158
4163
|
/** Filter options for listing notification channels. */
|
|
4159
4164
|
export interface ListNotificationChannelsParamsFilter {
|