@openmeter/sdk 1.0.0-beta-80c840dff928 → 1.0.0-beta-e1ac49a0f74d

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.
@@ -21,6 +21,7 @@ export const listAddonsQueryCurrencyItemRegExp = /^[A-Z]{3}$/;
21
21
  export const listAddonsQueryPageDefault = 1;
22
22
  export const listAddonsQueryPageSizeDefault = 100;
23
23
  export const listAddonsQueryPageSizeMax = 1000;
24
+ export const listAddonsQueryOrderDefault = 'ASC';
24
25
  export const ListAddonsQueryParams = zod.object({
25
26
  currency: zod
26
27
  .array(zod.coerce
@@ -55,7 +56,11 @@ export const ListAddonsQueryParams = zod.object({
55
56
  .record(zod.string(), zod.array(zod.coerce.number()))
56
57
  .optional()
57
58
  .describe('Filter by addon.key and addon.version attributes'),
58
- order: zod.enum(['ASC', 'DESC']).optional().describe('The order direction.'),
59
+ order: zod
60
+ .enum(['ASC', 'DESC'])
61
+ .describe('The order direction.')
62
+ .default(listAddonsQueryOrderDefault)
63
+ .describe('The order direction.'),
59
64
  orderBy: zod
60
65
  .enum(['id', 'key', 'version', 'created_at', 'updated_at'])
61
66
  .optional()
@@ -1575,6 +1580,7 @@ if they have customer orverrides or not.
1575
1580
  export const listBillingProfileCustomerOverridesQueryBillingProfileItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
1576
1581
  export const listBillingProfileCustomerOverridesQueryIncludeAllCustomersDefault = true;
1577
1582
  export const listBillingProfileCustomerOverridesQueryCustomerIdItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
1583
+ export const listBillingProfileCustomerOverridesQueryOrderDefault = 'ASC';
1578
1584
  export const listBillingProfileCustomerOverridesQueryPageDefault = 1;
1579
1585
  export const listBillingProfileCustomerOverridesQueryPageSizeDefault = 100;
1580
1586
  export const listBillingProfileCustomerOverridesQueryPageSizeMax = 1000;
@@ -1619,7 +1625,11 @@ export const ListBillingProfileCustomerOverridesQueryParams = zod.object({
1619
1625
  .boolean()
1620
1626
  .default(listBillingProfileCustomerOverridesQueryIncludeAllCustomersDefault)
1621
1627
  .describe('Include customers without customer overrides.\n\nIf set to false only the customers specifically associated with a billing profile will be returned.\n\nIf set to true, in case of the default billing profile, all customers will be returned.'),
1622
- order: zod.enum(['ASC', 'DESC']).optional().describe('The order direction.'),
1628
+ order: zod
1629
+ .enum(['ASC', 'DESC'])
1630
+ .describe('The order direction.')
1631
+ .default(listBillingProfileCustomerOverridesQueryOrderDefault)
1632
+ .describe('The order direction.'),
1623
1633
  orderBy: zod
1624
1634
  .enum([
1625
1635
  'customerId',
@@ -2809,6 +2819,7 @@ export const listInvoicesQueryCustomersItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hj
2809
2819
  export const listInvoicesQueryPageDefault = 1;
2810
2820
  export const listInvoicesQueryPageSizeDefault = 100;
2811
2821
  export const listInvoicesQueryPageSizeMax = 1000;
2822
+ export const listInvoicesQueryOrderDefault = 'ASC';
2812
2823
  export const ListInvoicesQueryParams = zod.object({
2813
2824
  createdAfter: zod.coerce
2814
2825
  .date()
@@ -2847,7 +2858,11 @@ export const ListInvoicesQueryParams = zod.object({
2847
2858
  .date()
2848
2859
  .optional()
2849
2860
  .describe('Filter by invoice issued time.\nInclusive.'),
2850
- order: zod.enum(['ASC', 'DESC']).optional().describe('The order direction.'),
2861
+ order: zod
2862
+ .enum(['ASC', 'DESC'])
2863
+ .describe('The order direction.')
2864
+ .default(listInvoicesQueryOrderDefault)
2865
+ .describe('The order direction.'),
2851
2866
  orderBy: zod
2852
2867
  .enum([
2853
2868
  'customer.name',
@@ -3881,6 +3896,7 @@ export const listBillingProfilesQueryIncludeArchivedDefault = false;
3881
3896
  export const listBillingProfilesQueryPageDefault = 1;
3882
3897
  export const listBillingProfilesQueryPageSizeDefault = 100;
3883
3898
  export const listBillingProfilesQueryPageSizeMax = 1000;
3899
+ export const listBillingProfilesQueryOrderDefault = 'ASC';
3884
3900
  export const ListBillingProfilesQueryParams = zod.object({
3885
3901
  expand: zod
3886
3902
  .array(zod
@@ -3890,7 +3906,11 @@ export const ListBillingProfilesQueryParams = zod.object({
3890
3906
  includeArchived: zod.coerce
3891
3907
  .boolean()
3892
3908
  .default(listBillingProfilesQueryIncludeArchivedDefault),
3893
- order: zod.enum(['ASC', 'DESC']).optional().describe('The order direction.'),
3909
+ order: zod
3910
+ .enum(['ASC', 'DESC'])
3911
+ .describe('The order direction.')
3912
+ .default(listBillingProfilesQueryOrderDefault)
3913
+ .describe('The order direction.'),
3894
3914
  orderBy: zod
3895
3915
  .enum(['createdAt', 'updatedAt', 'default', 'name'])
3896
3916
  .optional()
@@ -4544,6 +4564,7 @@ export const CreateCustomerBody = zod
4544
4564
  export const listCustomersQueryPageDefault = 1;
4545
4565
  export const listCustomersQueryPageSizeDefault = 100;
4546
4566
  export const listCustomersQueryPageSizeMax = 1000;
4567
+ export const listCustomersQueryOrderDefault = 'ASC';
4547
4568
  export const listCustomersQueryIncludeDeletedDefault = false;
4548
4569
  export const ListCustomersQueryParams = zod.object({
4549
4570
  expand: zod
@@ -4564,7 +4585,11 @@ export const ListCustomersQueryParams = zod.object({
4564
4585
  .string()
4565
4586
  .optional()
4566
4587
  .describe('Filter customers by name.\nCase-insensitive partial match.'),
4567
- order: zod.enum(['ASC', 'DESC']).optional().describe('The order direction.'),
4588
+ order: zod
4589
+ .enum(['ASC', 'DESC'])
4590
+ .describe('The order direction.')
4591
+ .default(listCustomersQueryOrderDefault)
4592
+ .describe('The order direction.'),
4568
4593
  orderBy: zod
4569
4594
  .enum(['id', 'name', 'createdAt'])
4570
4595
  .optional()
@@ -5224,11 +5249,16 @@ export const ListCustomerSubscriptionsParams = zod.object({
5224
5249
  .describe('ExternalKey is a looser version of key.'),
5225
5250
  ]),
5226
5251
  });
5252
+ export const listCustomerSubscriptionsQueryOrderDefault = 'ASC';
5227
5253
  export const listCustomerSubscriptionsQueryPageDefault = 1;
5228
5254
  export const listCustomerSubscriptionsQueryPageSizeDefault = 100;
5229
5255
  export const listCustomerSubscriptionsQueryPageSizeMax = 1000;
5230
5256
  export const ListCustomerSubscriptionsQueryParams = zod.object({
5231
- order: zod.enum(['ASC', 'DESC']).optional().describe('The order direction.'),
5257
+ order: zod
5258
+ .enum(['ASC', 'DESC'])
5259
+ .describe('The order direction.')
5260
+ .default(listCustomerSubscriptionsQueryOrderDefault)
5261
+ .describe('The order direction.'),
5232
5262
  orderBy: zod
5233
5263
  .enum(['activeFrom', 'activeTo'])
5234
5264
  .optional()
@@ -5267,6 +5297,7 @@ export const listEntitlementsQueryOffsetDefault = 0;
5267
5297
  export const listEntitlementsQueryOffsetMin = 0;
5268
5298
  export const listEntitlementsQueryLimitDefault = 100;
5269
5299
  export const listEntitlementsQueryLimitMax = 1000;
5300
+ export const listEntitlementsQueryOrderDefault = 'ASC';
5270
5301
  export const ListEntitlementsQueryParams = zod.object({
5271
5302
  entitlementType: zod
5272
5303
  .array(zod
@@ -5293,7 +5324,11 @@ export const ListEntitlementsQueryParams = zod.object({
5293
5324
  .min(listEntitlementsQueryOffsetMin)
5294
5325
  .default(listEntitlementsQueryOffsetDefault)
5295
5326
  .describe('Number of items to skip.\n\nDefault is 0.'),
5296
- order: zod.enum(['ASC', 'DESC']).optional().describe('The order direction.'),
5327
+ order: zod
5328
+ .enum(['ASC', 'DESC'])
5329
+ .describe('The order direction.')
5330
+ .default(listEntitlementsQueryOrderDefault)
5331
+ .describe('The order direction.'),
5297
5332
  orderBy: zod
5298
5333
  .enum(['createdAt', 'updatedAt'])
5299
5334
  .optional()
@@ -5480,6 +5515,7 @@ export const listFeaturesQueryOffsetDefault = 0;
5480
5515
  export const listFeaturesQueryOffsetMin = 0;
5481
5516
  export const listFeaturesQueryLimitDefault = 100;
5482
5517
  export const listFeaturesQueryLimitMax = 1000;
5518
+ export const listFeaturesQueryOrderDefault = 'ASC';
5483
5519
  export const ListFeaturesQueryParams = zod.object({
5484
5520
  includeArchived: zod.coerce
5485
5521
  .boolean()
@@ -5500,7 +5536,11 @@ export const ListFeaturesQueryParams = zod.object({
5500
5536
  .min(listFeaturesQueryOffsetMin)
5501
5537
  .default(listFeaturesQueryOffsetDefault)
5502
5538
  .describe('Number of items to skip.\n\nDefault is 0.'),
5503
- order: zod.enum(['ASC', 'DESC']).optional().describe('The order direction.'),
5539
+ order: zod
5540
+ .enum(['ASC', 'DESC'])
5541
+ .describe('The order direction.')
5542
+ .default(listFeaturesQueryOrderDefault)
5543
+ .describe('The order direction.'),
5504
5544
  orderBy: zod
5505
5545
  .enum(['id', 'key', 'name', 'createdAt', 'updatedAt'])
5506
5546
  .optional()
@@ -5651,6 +5691,7 @@ export const listGrantsQueryOffsetDefault = 0;
5651
5691
  export const listGrantsQueryOffsetMin = 0;
5652
5692
  export const listGrantsQueryLimitDefault = 100;
5653
5693
  export const listGrantsQueryLimitMax = 1000;
5694
+ export const listGrantsQueryOrderDefault = 'ASC';
5654
5695
  export const ListGrantsQueryParams = zod.object({
5655
5696
  feature: zod
5656
5697
  .array(zod.coerce.string())
@@ -5671,7 +5712,11 @@ export const ListGrantsQueryParams = zod.object({
5671
5712
  .min(listGrantsQueryOffsetMin)
5672
5713
  .default(listGrantsQueryOffsetDefault)
5673
5714
  .describe('Number of items to skip.\n\nDefault is 0.'),
5674
- order: zod.enum(['ASC', 'DESC']).optional().describe('The order direction.'),
5715
+ order: zod
5716
+ .enum(['ASC', 'DESC'])
5717
+ .describe('The order direction.')
5718
+ .default(listGrantsQueryOrderDefault)
5719
+ .describe('The order direction.'),
5675
5720
  orderBy: zod
5676
5721
  .enum(['id', 'createdAt', 'updatedAt'])
5677
5722
  .optional()
@@ -5840,13 +5885,18 @@ export const MarketplaceOAuth2InstallAuthorizeQueryParams = zod.object({
5840
5885
  export const listMetersQueryPageDefault = 1;
5841
5886
  export const listMetersQueryPageSizeDefault = 100;
5842
5887
  export const listMetersQueryPageSizeMax = 1000;
5888
+ export const listMetersQueryOrderDefault = 'ASC';
5843
5889
  export const listMetersQueryIncludeDeletedDefault = false;
5844
5890
  export const ListMetersQueryParams = zod.object({
5845
5891
  includeDeleted: zod.coerce
5846
5892
  .boolean()
5847
5893
  .default(listMetersQueryIncludeDeletedDefault)
5848
5894
  .describe('Include deleted meters.'),
5849
- order: zod.enum(['ASC', 'DESC']).optional().describe('The order direction.'),
5895
+ order: zod
5896
+ .enum(['ASC', 'DESC'])
5897
+ .describe('The order direction.')
5898
+ .default(listMetersQueryOrderDefault)
5899
+ .describe('The order direction.'),
5850
5900
  orderBy: zod
5851
5901
  .enum(['key', 'name', 'aggregation', 'createdAt', 'updatedAt'])
5852
5902
  .optional()
@@ -6222,6 +6272,7 @@ export const listNotificationChannelsQueryIncludeDisabledDefault = false;
6222
6272
  export const listNotificationChannelsQueryPageDefault = 1;
6223
6273
  export const listNotificationChannelsQueryPageSizeDefault = 100;
6224
6274
  export const listNotificationChannelsQueryPageSizeMax = 1000;
6275
+ export const listNotificationChannelsQueryOrderDefault = 'ASC';
6225
6276
  export const ListNotificationChannelsQueryParams = zod.object({
6226
6277
  includeDeleted: zod.coerce
6227
6278
  .boolean()
@@ -6231,7 +6282,11 @@ export const ListNotificationChannelsQueryParams = zod.object({
6231
6282
  .boolean()
6232
6283
  .default(listNotificationChannelsQueryIncludeDisabledDefault)
6233
6284
  .describe('Include disabled notification channels in response.\n\nUsage: `?includeDisabled=false`'),
6234
- order: zod.enum(['ASC', 'DESC']).optional().describe('The order direction.'),
6285
+ order: zod
6286
+ .enum(['ASC', 'DESC'])
6287
+ .describe('The order direction.')
6288
+ .default(listNotificationChannelsQueryOrderDefault)
6289
+ .describe('The order direction.'),
6235
6290
  orderBy: zod
6236
6291
  .enum(['id', 'type', 'createdAt', 'updatedAt'])
6237
6292
  .optional()
@@ -6363,6 +6418,7 @@ export const listNotificationEventsQueryChannelItemRegExp = /^[0-7][0-9A-HJKMNP-
6363
6418
  export const listNotificationEventsQueryPageDefault = 1;
6364
6419
  export const listNotificationEventsQueryPageSizeDefault = 100;
6365
6420
  export const listNotificationEventsQueryPageSizeMax = 1000;
6421
+ export const listNotificationEventsQueryOrderDefault = 'ASC';
6366
6422
  export const ListNotificationEventsQueryParams = zod.object({
6367
6423
  channel: zod
6368
6424
  .array(zod.coerce
@@ -6379,7 +6435,11 @@ export const ListNotificationEventsQueryParams = zod.object({
6379
6435
  .date()
6380
6436
  .optional()
6381
6437
  .describe('Start date-time in RFC 3339 format.\nInclusive.'),
6382
- order: zod.enum(['ASC', 'DESC']).optional().describe('The order direction.'),
6438
+ order: zod
6439
+ .enum(['ASC', 'DESC'])
6440
+ .describe('The order direction.')
6441
+ .default(listNotificationEventsQueryOrderDefault)
6442
+ .describe('The order direction.'),
6383
6443
  orderBy: zod
6384
6444
  .enum(['id', 'createdAt'])
6385
6445
  .optional()
@@ -6448,6 +6508,7 @@ export const listNotificationRulesQueryFeatureItemRegExp = /^[a-z0-9]+(?:_[a-z0-
6448
6508
  export const listNotificationRulesQueryPageDefault = 1;
6449
6509
  export const listNotificationRulesQueryPageSizeDefault = 100;
6450
6510
  export const listNotificationRulesQueryPageSizeMax = 1000;
6511
+ export const listNotificationRulesQueryOrderDefault = 'ASC';
6451
6512
  export const ListNotificationRulesQueryParams = zod.object({
6452
6513
  channel: zod
6453
6514
  .array(zod.coerce.string())
@@ -6470,7 +6531,11 @@ export const ListNotificationRulesQueryParams = zod.object({
6470
6531
  .boolean()
6471
6532
  .default(listNotificationRulesQueryIncludeDisabledDefault)
6472
6533
  .describe('Include disabled notification rules in response.\n\nUsage: `?includeDisabled=false`'),
6473
- order: zod.enum(['ASC', 'DESC']).optional().describe('The order direction.'),
6534
+ order: zod
6535
+ .enum(['ASC', 'DESC'])
6536
+ .describe('The order direction.')
6537
+ .default(listNotificationRulesQueryOrderDefault)
6538
+ .describe('The order direction.'),
6474
6539
  orderBy: zod
6475
6540
  .enum(['id', 'type', 'createdAt', 'updatedAt'])
6476
6541
  .optional()
@@ -6867,6 +6932,7 @@ export const listPlansQueryCurrencyItemRegExp = /^[A-Z]{3}$/;
6867
6932
  export const listPlansQueryPageDefault = 1;
6868
6933
  export const listPlansQueryPageSizeDefault = 100;
6869
6934
  export const listPlansQueryPageSizeMax = 1000;
6935
+ export const listPlansQueryOrderDefault = 'ASC';
6870
6936
  export const ListPlansQueryParams = zod.object({
6871
6937
  currency: zod
6872
6938
  .array(zod.coerce
@@ -6901,7 +6967,11 @@ export const ListPlansQueryParams = zod.object({
6901
6967
  .record(zod.string(), zod.array(zod.coerce.number()))
6902
6968
  .optional()
6903
6969
  .describe('Filter by plan.key and plan.version attributes'),
6904
- order: zod.enum(['ASC', 'DESC']).optional().describe('The order direction.'),
6970
+ order: zod
6971
+ .enum(['ASC', 'DESC'])
6972
+ .describe('The order direction.')
6973
+ .default(listPlansQueryOrderDefault)
6974
+ .describe('The order direction.'),
6905
6975
  orderBy: zod
6906
6976
  .enum(['id', 'key', 'version', 'created_at', 'updated_at'])
6907
6977
  .optional()
@@ -8268,6 +8338,7 @@ export const listPlanAddonsQueryKeyItemRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
8268
8338
  export const listPlanAddonsQueryPageDefault = 1;
8269
8339
  export const listPlanAddonsQueryPageSizeDefault = 100;
8270
8340
  export const listPlanAddonsQueryPageSizeMax = 1000;
8341
+ export const listPlanAddonsQueryOrderDefault = 'ASC';
8271
8342
  export const ListPlanAddonsQueryParams = zod.object({
8272
8343
  id: zod
8273
8344
  .array(zod.coerce
@@ -8293,7 +8364,11 @@ export const ListPlanAddonsQueryParams = zod.object({
8293
8364
  .record(zod.string(), zod.array(zod.coerce.number()))
8294
8365
  .optional()
8295
8366
  .describe('Filter by addon.key and addon.version attributes.'),
8296
- order: zod.enum(['ASC', 'DESC']).optional().describe('The order direction.'),
8367
+ order: zod
8368
+ .enum(['ASC', 'DESC'])
8369
+ .describe('The order direction.')
8370
+ .default(listPlanAddonsQueryOrderDefault)
8371
+ .describe('The order direction.'),
8297
8372
  orderBy: zod
8298
8373
  .enum(['id', 'key', 'version', 'created_at', 'updated_at'])
8299
8374
  .optional()
@@ -9096,11 +9171,15 @@ export const ListEntitlementGrantsParams = zod.object({
9096
9171
  subjectIdOrKey: zod.coerce.string(),
9097
9172
  });
9098
9173
  export const listEntitlementGrantsQueryIncludeDeletedDefault = false;
9174
+ export const listEntitlementGrantsQueryOrderByDefault = 'updatedAt';
9099
9175
  export const ListEntitlementGrantsQueryParams = zod.object({
9100
9176
  includeDeleted: zod.coerce
9101
9177
  .boolean()
9102
9178
  .default(listEntitlementGrantsQueryIncludeDeletedDefault),
9103
- orderBy: zod.enum(['id', 'createdAt', 'updatedAt']).optional(),
9179
+ orderBy: zod
9180
+ .enum(['id', 'createdAt', 'updatedAt'])
9181
+ .describe('Order by options for grants.')
9182
+ .default(listEntitlementGrantsQueryOrderByDefault),
9104
9183
  });
9105
9184
  /**
9106
9185
  * Grants define a behavior of granting usage for a metered entitlement. They can have complicated recurrence and rollover rules, thanks to which you can define a wide range of access patterns with a single grant, in most cases you don't have to periodically create new grants. You can only issue grants for active metered entitlements.
@@ -12228,11 +12307,16 @@ export const listCustomerEntitlementsV2QueryIncludeDeletedDefault = false;
12228
12307
  export const listCustomerEntitlementsV2QueryPageDefault = 1;
12229
12308
  export const listCustomerEntitlementsV2QueryPageSizeDefault = 100;
12230
12309
  export const listCustomerEntitlementsV2QueryPageSizeMax = 1000;
12310
+ export const listCustomerEntitlementsV2QueryOrderDefault = 'ASC';
12231
12311
  export const ListCustomerEntitlementsV2QueryParams = zod.object({
12232
12312
  includeDeleted: zod.coerce
12233
12313
  .boolean()
12234
12314
  .default(listCustomerEntitlementsV2QueryIncludeDeletedDefault),
12235
- order: zod.enum(['ASC', 'DESC']).optional().describe('The order direction.'),
12315
+ order: zod
12316
+ .enum(['ASC', 'DESC'])
12317
+ .describe('The order direction.')
12318
+ .default(listCustomerEntitlementsV2QueryOrderDefault)
12319
+ .describe('The order direction.'),
12236
12320
  orderBy: zod
12237
12321
  .enum(['createdAt', 'updatedAt'])
12238
12322
  .optional()
@@ -12337,6 +12421,7 @@ export const listCustomerEntitlementGrantsV2QueryOffsetDefault = 0;
12337
12421
  export const listCustomerEntitlementGrantsV2QueryOffsetMin = 0;
12338
12422
  export const listCustomerEntitlementGrantsV2QueryLimitDefault = 100;
12339
12423
  export const listCustomerEntitlementGrantsV2QueryLimitMax = 1000;
12424
+ export const listCustomerEntitlementGrantsV2QueryOrderDefault = 'ASC';
12340
12425
  export const ListCustomerEntitlementGrantsV2QueryParams = zod.object({
12341
12426
  includeDeleted: zod.coerce
12342
12427
  .boolean()
@@ -12352,7 +12437,11 @@ export const ListCustomerEntitlementGrantsV2QueryParams = zod.object({
12352
12437
  .min(listCustomerEntitlementGrantsV2QueryOffsetMin)
12353
12438
  .default(listCustomerEntitlementGrantsV2QueryOffsetDefault)
12354
12439
  .describe('Number of items to skip.\n\nDefault is 0.'),
12355
- order: zod.enum(['ASC', 'DESC']).optional().describe('The order direction.'),
12440
+ order: zod
12441
+ .enum(['ASC', 'DESC'])
12442
+ .describe('The order direction.')
12443
+ .default(listCustomerEntitlementGrantsV2QueryOrderDefault)
12444
+ .describe('The order direction.'),
12356
12445
  orderBy: zod
12357
12446
  .enum(['id', 'createdAt', 'updatedAt'])
12358
12447
  .optional()
@@ -12930,6 +13019,7 @@ export const listEntitlementsV2QueryOffsetDefault = 0;
12930
13019
  export const listEntitlementsV2QueryOffsetMin = 0;
12931
13020
  export const listEntitlementsV2QueryLimitDefault = 100;
12932
13021
  export const listEntitlementsV2QueryLimitMax = 1000;
13022
+ export const listEntitlementsV2QueryOrderDefault = 'ASC';
12933
13023
  export const ListEntitlementsV2QueryParams = zod.object({
12934
13024
  customerIds: zod
12935
13025
  .array(zod.coerce.string())
@@ -12964,7 +13054,11 @@ export const ListEntitlementsV2QueryParams = zod.object({
12964
13054
  .min(listEntitlementsV2QueryOffsetMin)
12965
13055
  .default(listEntitlementsV2QueryOffsetDefault)
12966
13056
  .describe('Number of items to skip.\n\nDefault is 0.'),
12967
- order: zod.enum(['ASC', 'DESC']).optional().describe('The order direction.'),
13057
+ order: zod
13058
+ .enum(['ASC', 'DESC'])
13059
+ .describe('The order direction.')
13060
+ .default(listEntitlementsV2QueryOrderDefault)
13061
+ .describe('The order direction.'),
12968
13062
  orderBy: zod
12969
13063
  .enum(['createdAt', 'updatedAt'])
12970
13064
  .optional()
@@ -13032,6 +13126,7 @@ export const listGrantsV2QueryOffsetDefault = 0;
13032
13126
  export const listGrantsV2QueryOffsetMin = 0;
13033
13127
  export const listGrantsV2QueryLimitDefault = 100;
13034
13128
  export const listGrantsV2QueryLimitMax = 1000;
13129
+ export const listGrantsV2QueryOrderDefault = 'ASC';
13035
13130
  export const ListGrantsV2QueryParams = zod.object({
13036
13131
  customer: zod
13037
13132
  .array(zod
@@ -13068,7 +13163,11 @@ export const ListGrantsV2QueryParams = zod.object({
13068
13163
  .min(listGrantsV2QueryOffsetMin)
13069
13164
  .default(listGrantsV2QueryOffsetDefault)
13070
13165
  .describe('Number of items to skip.\n\nDefault is 0.'),
13071
- order: zod.enum(['ASC', 'DESC']).optional().describe('The order direction.'),
13166
+ order: zod
13167
+ .enum(['ASC', 'DESC'])
13168
+ .describe('The order direction.')
13169
+ .default(listGrantsV2QueryOrderDefault)
13170
+ .describe('The order direction.'),
13072
13171
  orderBy: zod
13073
13172
  .enum(['id', 'createdAt', 'updatedAt'])
13074
13173
  .optional()