@openmeter/client 1.0.0-beta-277f8d3bd40a → 1.0.0-beta-fb6e0010dbd3

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.
@@ -1144,6 +1144,18 @@ export declare const getCreditBalanceParamsFilter: z.ZodObject<{
1144
1144
  oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
1145
1145
  neq: z.ZodOptional<z.ZodString>;
1146
1146
  }, z.core.$strip>]>>;
1147
+ feature_key: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1148
+ eq: z.ZodOptional<z.ZodString>;
1149
+ neq: z.ZodOptional<z.ZodString>;
1150
+ contains: z.ZodOptional<z.ZodString>;
1151
+ ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
1152
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
1153
+ gt: z.ZodOptional<z.ZodString>;
1154
+ gte: z.ZodOptional<z.ZodString>;
1155
+ lt: z.ZodOptional<z.ZodString>;
1156
+ lte: z.ZodOptional<z.ZodString>;
1157
+ exists: z.ZodOptional<z.ZodBoolean>;
1158
+ }, z.core.$strip>]>>;
1147
1159
  }, z.core.$strip>;
1148
1160
  export declare const listChargesParamsFilter: z.ZodObject<{
1149
1161
  status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
@@ -1384,6 +1396,18 @@ export declare const listCreditTransactionsParamsFilter: z.ZodObject<{
1384
1396
  consumed: "consumed";
1385
1397
  }>>;
1386
1398
  currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString]>>;
1399
+ feature_key: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1400
+ eq: z.ZodOptional<z.ZodString>;
1401
+ neq: z.ZodOptional<z.ZodString>;
1402
+ contains: z.ZodOptional<z.ZodString>;
1403
+ ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
1404
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
1405
+ gt: z.ZodOptional<z.ZodString>;
1406
+ gte: z.ZodOptional<z.ZodString>;
1407
+ lt: z.ZodOptional<z.ZodString>;
1408
+ lte: z.ZodOptional<z.ZodString>;
1409
+ exists: z.ZodOptional<z.ZodBoolean>;
1410
+ }, z.core.$strip>]>>;
1387
1411
  }, z.core.$strip>;
1388
1412
  export declare const creditTransaction: z.ZodObject<{
1389
1413
  id: z.ZodString;
@@ -7778,6 +7802,18 @@ export declare const getCustomerCreditBalanceQueryParams: z.ZodObject<{
7778
7802
  oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
7779
7803
  neq: z.ZodOptional<z.ZodString>;
7780
7804
  }, z.core.$strip>]>>;
7805
+ feature_key: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
7806
+ eq: z.ZodOptional<z.ZodString>;
7807
+ neq: z.ZodOptional<z.ZodString>;
7808
+ contains: z.ZodOptional<z.ZodString>;
7809
+ ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
7810
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
7811
+ gt: z.ZodOptional<z.ZodString>;
7812
+ gte: z.ZodOptional<z.ZodString>;
7813
+ lt: z.ZodOptional<z.ZodString>;
7814
+ lte: z.ZodOptional<z.ZodString>;
7815
+ exists: z.ZodOptional<z.ZodBoolean>;
7816
+ }, z.core.$strip>]>>;
7781
7817
  }, z.core.$strip>>;
7782
7818
  }, z.core.$strip>;
7783
7819
  export declare const getCustomerCreditBalanceResponse: z.ZodObject<{
@@ -7889,6 +7925,18 @@ export declare const listCreditTransactionsQueryParams: z.ZodObject<{
7889
7925
  consumed: "consumed";
7890
7926
  }>>;
7891
7927
  currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString]>>;
7928
+ feature_key: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
7929
+ eq: z.ZodOptional<z.ZodString>;
7930
+ neq: z.ZodOptional<z.ZodString>;
7931
+ contains: z.ZodOptional<z.ZodString>;
7932
+ ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
7933
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
7934
+ gt: z.ZodOptional<z.ZodString>;
7935
+ gte: z.ZodOptional<z.ZodString>;
7936
+ lt: z.ZodOptional<z.ZodString>;
7937
+ lte: z.ZodOptional<z.ZodString>;
7938
+ exists: z.ZodOptional<z.ZodBoolean>;
7939
+ }, z.core.$strip>]>>;
7892
7940
  }, z.core.$strip>>;
7893
7941
  }, z.core.$strip>;
7894
7942
  export declare const listCreditTransactionsResponse: z.ZodObject<{
@@ -1756,6 +1756,7 @@ export const listCreditGrantsParamsFilter = z
1756
1756
  export const getCreditBalanceParamsFilter = z
1757
1757
  .object({
1758
1758
  currency: stringFieldFilterExact.optional(),
1759
+ feature_key: stringFieldFilter.optional(),
1759
1760
  })
1760
1761
  .describe('Filter options for getting a credit balance.');
1761
1762
  export const listChargesParamsFilter = z
@@ -2001,6 +2002,7 @@ export const listCreditTransactionsParamsFilter = z
2001
2002
  .object({
2002
2003
  type: creditTransactionType.optional(),
2003
2004
  currency: billingCurrencyCode.optional(),
2005
+ feature_key: stringFieldFilter.optional(),
2004
2006
  })
2005
2007
  .describe('Filter options for listing credit transactions.');
2006
2008
  export const creditTransaction = z
@@ -1117,6 +1117,19 @@ export interface GetCreditBalanceParamsFilter {
1117
1117
  oeq?: string[];
1118
1118
  neq?: string;
1119
1119
  };
1120
+ /** Filter credit balance by feature key. Omit to return the total portfolio value. Use `exists=false` to return only unrestricted balance. */
1121
+ feature_key?: string | {
1122
+ eq?: string;
1123
+ neq?: string;
1124
+ contains?: string;
1125
+ ocontains?: string[];
1126
+ oeq?: string[];
1127
+ gt?: string;
1128
+ gte?: string;
1129
+ lt?: string;
1130
+ lte?: string;
1131
+ exists?: boolean;
1132
+ };
1120
1133
  }
1121
1134
  /** Filter options for listing charges. */
1122
1135
  export interface ListChargesParamsFilter {
@@ -1363,6 +1376,19 @@ export interface ListCreditTransactionsParamsFilter {
1363
1376
  type?: 'funded' | 'consumed' | 'expired';
1364
1377
  /** Filter credit transactions by currency. */
1365
1378
  currency?: string;
1379
+ /** Filter credit transactions by feature key. Omit to return all credit transactions. Use `exists=false` to return only unrestricted credit transactions. */
1380
+ feature_key?: string | {
1381
+ eq?: string;
1382
+ neq?: string;
1383
+ contains?: string;
1384
+ ocontains?: string[];
1385
+ oeq?: string[];
1386
+ gt?: string;
1387
+ gte?: string;
1388
+ lt?: string;
1389
+ lte?: string;
1390
+ exists?: boolean;
1391
+ };
1366
1392
  }
1367
1393
  /** A credit transaction represents a single credit movement on the customer's balance. Credit transactions are immutable. */
1368
1394
  export interface CreditTransaction {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmeter/client",
3
- "version": "1.0.0-beta-277f8d3bd40a",
3
+ "version": "1.0.0-beta-fb6e0010dbd3",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://openmeter.io",
6
6
  "repository": {