@openmeter/sdk 1.0.0-beta-59730fbb0fa1 → 1.0.0-beta-fa9c76b69824
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/cjs/src/client/schemas.d.cts +17 -0
- package/dist/cjs/src/zod/index.cjs +10 -0
- package/dist/cjs/src/zod/index.d.cts +9 -0
- package/dist/cjs/src/zod/index.js.map +1 -1
- package/dist/cjs/{tsconfig.24239831.tsbuildinfo → tsconfig.e6a28689.tsbuildinfo} +1 -1
- package/dist/cjs/{tsconfig.37f56595.tsbuildinfo → tsconfig.f7156a7c.tsbuildinfo} +1 -1
- package/dist/src/client/schemas.d.ts +17 -0
- package/dist/src/zod/index.d.ts +9 -0
- package/dist/src/zod/index.js +10 -0
- package/dist/src/zod/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -4192,6 +4192,11 @@ export interface components {
|
|
|
4192
4192
|
*/
|
|
4193
4193
|
billingAddress?: components['schemas']['Address'];
|
|
4194
4194
|
};
|
|
4195
|
+
/**
|
|
4196
|
+
* @description Order by options for customer subscriptions.
|
|
4197
|
+
* @enum {string}
|
|
4198
|
+
*/
|
|
4199
|
+
CustomerSubscriptionOrderBy: 'activeFrom' | 'activeTo';
|
|
4195
4200
|
/** @description Mapping to attribute metered usage to the customer.
|
|
4196
4201
|
* One customer can have multiple subjects,
|
|
4197
4202
|
* but one subject can only belong to one customer. */
|
|
@@ -11059,6 +11064,10 @@ export interface components {
|
|
|
11059
11064
|
/** @description The order by field. */
|
|
11060
11065
|
'CustomerOrderByOrdering.orderBy': components['schemas']['CustomerOrderBy'];
|
|
11061
11066
|
/** @description The order direction. */
|
|
11067
|
+
'CustomerSubscriptionOrderByOrdering.order': components['schemas']['SortOrder'];
|
|
11068
|
+
/** @description The order by field. */
|
|
11069
|
+
'CustomerSubscriptionOrderByOrdering.orderBy': components['schemas']['CustomerSubscriptionOrderBy'];
|
|
11070
|
+
/** @description The order direction. */
|
|
11062
11071
|
'EntitlementOrderByOrdering.order': components['schemas']['SortOrder'];
|
|
11063
11072
|
/** @description The order by field. */
|
|
11064
11073
|
'EntitlementOrderByOrdering.orderBy': components['schemas']['EntitlementOrderBy'];
|
|
@@ -11345,6 +11354,7 @@ export type CustomerKey = components['schemas']['CustomerKey'];
|
|
|
11345
11354
|
export type CustomerOrderBy = components['schemas']['CustomerOrderBy'];
|
|
11346
11355
|
export type CustomerPaginatedResponse = components['schemas']['CustomerPaginatedResponse'];
|
|
11347
11356
|
export type CustomerReplaceUpdate = components['schemas']['CustomerReplaceUpdate'];
|
|
11357
|
+
export type CustomerSubscriptionOrderBy = components['schemas']['CustomerSubscriptionOrderBy'];
|
|
11348
11358
|
export type CustomerUsageAttribution = components['schemas']['CustomerUsageAttribution'];
|
|
11349
11359
|
export type DiscountPercentage = components['schemas']['DiscountPercentage'];
|
|
11350
11360
|
export type DiscountReasonMaximumSpend = components['schemas']['DiscountReasonMaximumSpend'];
|
|
@@ -11636,6 +11646,8 @@ export type ParameterCursorPaginationCursor = components['parameters']['CursorPa
|
|
|
11636
11646
|
export type ParameterCursorPaginationLimit = components['parameters']['CursorPagination.limit'];
|
|
11637
11647
|
export type ParameterCustomerOrderByOrderingOrder = components['parameters']['CustomerOrderByOrdering.order'];
|
|
11638
11648
|
export type ParameterCustomerOrderByOrderingOrderBy = components['parameters']['CustomerOrderByOrdering.orderBy'];
|
|
11649
|
+
export type ParameterCustomerSubscriptionOrderByOrderingOrder = components['parameters']['CustomerSubscriptionOrderByOrdering.order'];
|
|
11650
|
+
export type ParameterCustomerSubscriptionOrderByOrderingOrderBy = components['parameters']['CustomerSubscriptionOrderByOrdering.orderBy'];
|
|
11639
11651
|
export type ParameterEntitlementOrderByOrderingOrder = components['parameters']['EntitlementOrderByOrdering.order'];
|
|
11640
11652
|
export type ParameterEntitlementOrderByOrderingOrderBy = components['parameters']['EntitlementOrderByOrdering.orderBy'];
|
|
11641
11653
|
export type ParameterFeatureOrderByOrderingOrder = components['parameters']['FeatureOrderByOrdering.order'];
|
|
@@ -16588,6 +16600,11 @@ export interface operations {
|
|
|
16588
16600
|
listCustomerSubscriptions: {
|
|
16589
16601
|
parameters: {
|
|
16590
16602
|
query?: {
|
|
16603
|
+
status?: components['schemas']['SubscriptionStatus'][];
|
|
16604
|
+
/** @description The order direction. */
|
|
16605
|
+
order?: components['parameters']['CustomerSubscriptionOrderByOrdering.order'];
|
|
16606
|
+
/** @description The order by field. */
|
|
16607
|
+
orderBy?: components['parameters']['CustomerSubscriptionOrderByOrdering.orderBy'];
|
|
16591
16608
|
/** @description Page index.
|
|
16592
16609
|
*
|
|
16593
16610
|
* Default is 1. */
|
|
@@ -5199,6 +5199,11 @@ exports.listCustomerSubscriptionsQueryPageDefault = 1;
|
|
|
5199
5199
|
exports.listCustomerSubscriptionsQueryPageSizeDefault = 100;
|
|
5200
5200
|
exports.listCustomerSubscriptionsQueryPageSizeMax = 1000;
|
|
5201
5201
|
exports.listCustomerSubscriptionsQueryParams = zod_1.z.object({
|
|
5202
|
+
order: zod_1.z.enum(['ASC', 'DESC']).optional().describe('The order direction.'),
|
|
5203
|
+
orderBy: zod_1.z
|
|
5204
|
+
.enum(['activeFrom', 'activeTo'])
|
|
5205
|
+
.optional()
|
|
5206
|
+
.describe('The order by field.'),
|
|
5202
5207
|
page: zod_1.z.coerce
|
|
5203
5208
|
.number()
|
|
5204
5209
|
.min(1)
|
|
@@ -5210,6 +5215,11 @@ exports.listCustomerSubscriptionsQueryParams = zod_1.z.object({
|
|
|
5210
5215
|
.max(exports.listCustomerSubscriptionsQueryPageSizeMax)
|
|
5211
5216
|
.default(exports.listCustomerSubscriptionsQueryPageSizeDefault)
|
|
5212
5217
|
.describe('The maximum number of items per page.\n\nDefault is 100.'),
|
|
5218
|
+
status: zod_1.z
|
|
5219
|
+
.array(zod_1.z
|
|
5220
|
+
.enum(['active', 'inactive', 'canceled', 'scheduled'])
|
|
5221
|
+
.describe('Subscription status.'))
|
|
5222
|
+
.optional(),
|
|
5213
5223
|
});
|
|
5214
5224
|
/**
|
|
5215
5225
|
* List all entitlements for all the subjects and features. This endpoint is intended for administrative purposes only.
|
|
@@ -8476,14 +8476,23 @@ export declare const listCustomerSubscriptionsQueryPageDefault: 1;
|
|
|
8476
8476
|
export declare const listCustomerSubscriptionsQueryPageSizeDefault: 100;
|
|
8477
8477
|
export declare const listCustomerSubscriptionsQueryPageSizeMax: 1000;
|
|
8478
8478
|
export declare const listCustomerSubscriptionsQueryParams: zod.ZodObject<{
|
|
8479
|
+
order: zod.ZodOptional<zod.ZodEnum<["ASC", "DESC"]>>;
|
|
8480
|
+
orderBy: zod.ZodOptional<zod.ZodEnum<["activeFrom", "activeTo"]>>;
|
|
8479
8481
|
page: zod.ZodDefault<zod.ZodNumber>;
|
|
8480
8482
|
pageSize: zod.ZodDefault<zod.ZodNumber>;
|
|
8483
|
+
status: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<["active", "inactive", "canceled", "scheduled"]>, "many">>;
|
|
8481
8484
|
}, "strip", zod.ZodTypeAny, {
|
|
8482
8485
|
page: number;
|
|
8483
8486
|
pageSize: number;
|
|
8487
|
+
status?: ("active" | "scheduled" | "inactive" | "canceled")[] | undefined;
|
|
8488
|
+
order?: "ASC" | "DESC" | undefined;
|
|
8489
|
+
orderBy?: "activeFrom" | "activeTo" | undefined;
|
|
8484
8490
|
}, {
|
|
8491
|
+
status?: ("active" | "scheduled" | "inactive" | "canceled")[] | undefined;
|
|
8485
8492
|
page?: number | undefined;
|
|
8486
8493
|
pageSize?: number | undefined;
|
|
8494
|
+
order?: "ASC" | "DESC" | undefined;
|
|
8495
|
+
orderBy?: "activeFrom" | "activeTo" | undefined;
|
|
8487
8496
|
}>;
|
|
8488
8497
|
/**
|
|
8489
8498
|
* List all entitlements for all the subjects and features. This endpoint is intended for administrative purposes only.
|