@openmeter/sdk 1.0.0-beta-b904a10a1f3d → 1.0.0-beta-89ca80a99dcf
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 +134 -4
- package/dist/cjs/src/zod/index.cjs +79 -13
- package/dist/cjs/src/zod/index.d.cts +44 -0
- package/dist/cjs/src/zod/index.js.map +1 -1
- package/dist/cjs/{tsconfig.0224c6c3.tsbuildinfo → tsconfig.5bd66586.tsbuildinfo} +1 -1
- package/dist/cjs/{tsconfig.0ae69fa2.tsbuildinfo → tsconfig.a32ebdee.tsbuildinfo} +1 -1
- package/dist/src/client/schemas.d.ts +134 -4
- package/dist/src/zod/index.d.ts +44 -0
- package/dist/src/zod/index.js +68 -2
- package/dist/src/zod/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/zod/index.js
CHANGED
|
@@ -6366,8 +6366,12 @@ export const createNotificationRuleBodyFeaturesItemMax = 64;
|
|
|
6366
6366
|
export const createNotificationRuleBodyFeaturesItemRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
|
|
6367
6367
|
export const createNotificationRuleBodyDisabledDefaultOne = false;
|
|
6368
6368
|
export const createNotificationRuleBodyChannelsItemRegExpOne = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
|
|
6369
|
+
export const createNotificationRuleBodyFeaturesItemMaxOne = 64;
|
|
6370
|
+
export const createNotificationRuleBodyFeaturesItemRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
|
|
6369
6371
|
export const createNotificationRuleBodyDisabledDefaultTwo = false;
|
|
6370
6372
|
export const createNotificationRuleBodyChannelsItemRegExpTwo = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
|
|
6373
|
+
export const createNotificationRuleBodyDisabledDefaultThree = false;
|
|
6374
|
+
export const createNotificationRuleBodyChannelsItemRegExpThree = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
|
|
6371
6375
|
export const createNotificationRuleBody = zod
|
|
6372
6376
|
.discriminatedUnion('type', [
|
|
6373
6377
|
zod
|
|
@@ -6425,6 +6429,35 @@ export const createNotificationRuleBody = zod
|
|
|
6425
6429
|
.boolean()
|
|
6426
6430
|
.optional()
|
|
6427
6431
|
.describe('Whether the rule is disabled or not.'),
|
|
6432
|
+
features: zod
|
|
6433
|
+
.array(zod
|
|
6434
|
+
.string()
|
|
6435
|
+
.min(1)
|
|
6436
|
+
.max(createNotificationRuleBodyFeaturesItemMaxOne)
|
|
6437
|
+
.regex(createNotificationRuleBodyFeaturesItemRegExpOne)
|
|
6438
|
+
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).\nA key is a unique string that is used to identify a resource.\n\nTODO: this is a temporary solution to support both ULID and Key in the same spec for codegen.'))
|
|
6439
|
+
.min(1)
|
|
6440
|
+
.optional()
|
|
6441
|
+
.describe('Optional field for defining the scope of notification by feature. It may contain features by id or key.'),
|
|
6442
|
+
name: zod
|
|
6443
|
+
.string()
|
|
6444
|
+
.describe('The user friendly name of the notification rule.'),
|
|
6445
|
+
type: zod.enum(['entitlements.reset']),
|
|
6446
|
+
})
|
|
6447
|
+
.describe('Request with input parameters for creating new notification rule with entitlements.reset type.'),
|
|
6448
|
+
zod
|
|
6449
|
+
.object({
|
|
6450
|
+
channels: zod
|
|
6451
|
+
.array(zod
|
|
6452
|
+
.string()
|
|
6453
|
+
.regex(createNotificationRuleBodyChannelsItemRegExpTwo)
|
|
6454
|
+
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'))
|
|
6455
|
+
.min(1)
|
|
6456
|
+
.describe('List of notification channels the rule is applied to.'),
|
|
6457
|
+
disabled: zod
|
|
6458
|
+
.boolean()
|
|
6459
|
+
.optional()
|
|
6460
|
+
.describe('Whether the rule is disabled or not.'),
|
|
6428
6461
|
name: zod
|
|
6429
6462
|
.string()
|
|
6430
6463
|
.describe('The user friendly name of the notification rule.'),
|
|
@@ -6436,7 +6469,7 @@ export const createNotificationRuleBody = zod
|
|
|
6436
6469
|
channels: zod
|
|
6437
6470
|
.array(zod
|
|
6438
6471
|
.string()
|
|
6439
|
-
.regex(
|
|
6472
|
+
.regex(createNotificationRuleBodyChannelsItemRegExpThree)
|
|
6440
6473
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'))
|
|
6441
6474
|
.min(1)
|
|
6442
6475
|
.describe('List of notification channels the rule is applied to.'),
|
|
@@ -6467,8 +6500,12 @@ export const updateNotificationRuleBodyFeaturesItemMax = 64;
|
|
|
6467
6500
|
export const updateNotificationRuleBodyFeaturesItemRegExp = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
|
|
6468
6501
|
export const updateNotificationRuleBodyDisabledDefaultOne = false;
|
|
6469
6502
|
export const updateNotificationRuleBodyChannelsItemRegExpOne = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
|
|
6503
|
+
export const updateNotificationRuleBodyFeaturesItemMaxOne = 64;
|
|
6504
|
+
export const updateNotificationRuleBodyFeaturesItemRegExpOne = new RegExp('^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
|
|
6470
6505
|
export const updateNotificationRuleBodyDisabledDefaultTwo = false;
|
|
6471
6506
|
export const updateNotificationRuleBodyChannelsItemRegExpTwo = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
|
|
6507
|
+
export const updateNotificationRuleBodyDisabledDefaultThree = false;
|
|
6508
|
+
export const updateNotificationRuleBodyChannelsItemRegExpThree = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
|
|
6472
6509
|
export const updateNotificationRuleBody = zod
|
|
6473
6510
|
.discriminatedUnion('type', [
|
|
6474
6511
|
zod
|
|
@@ -6526,6 +6563,35 @@ export const updateNotificationRuleBody = zod
|
|
|
6526
6563
|
.boolean()
|
|
6527
6564
|
.optional()
|
|
6528
6565
|
.describe('Whether the rule is disabled or not.'),
|
|
6566
|
+
features: zod
|
|
6567
|
+
.array(zod
|
|
6568
|
+
.string()
|
|
6569
|
+
.min(1)
|
|
6570
|
+
.max(updateNotificationRuleBodyFeaturesItemMaxOne)
|
|
6571
|
+
.regex(updateNotificationRuleBodyFeaturesItemRegExpOne)
|
|
6572
|
+
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).\nA key is a unique string that is used to identify a resource.\n\nTODO: this is a temporary solution to support both ULID and Key in the same spec for codegen.'))
|
|
6573
|
+
.min(1)
|
|
6574
|
+
.optional()
|
|
6575
|
+
.describe('Optional field for defining the scope of notification by feature. It may contain features by id or key.'),
|
|
6576
|
+
name: zod
|
|
6577
|
+
.string()
|
|
6578
|
+
.describe('The user friendly name of the notification rule.'),
|
|
6579
|
+
type: zod.enum(['entitlements.reset']),
|
|
6580
|
+
})
|
|
6581
|
+
.describe('Request with input parameters for creating new notification rule with entitlements.reset type.'),
|
|
6582
|
+
zod
|
|
6583
|
+
.object({
|
|
6584
|
+
channels: zod
|
|
6585
|
+
.array(zod
|
|
6586
|
+
.string()
|
|
6587
|
+
.regex(updateNotificationRuleBodyChannelsItemRegExpTwo)
|
|
6588
|
+
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'))
|
|
6589
|
+
.min(1)
|
|
6590
|
+
.describe('List of notification channels the rule is applied to.'),
|
|
6591
|
+
disabled: zod
|
|
6592
|
+
.boolean()
|
|
6593
|
+
.optional()
|
|
6594
|
+
.describe('Whether the rule is disabled or not.'),
|
|
6529
6595
|
name: zod
|
|
6530
6596
|
.string()
|
|
6531
6597
|
.describe('The user friendly name of the notification rule.'),
|
|
@@ -6537,7 +6603,7 @@ export const updateNotificationRuleBody = zod
|
|
|
6537
6603
|
channels: zod
|
|
6538
6604
|
.array(zod
|
|
6539
6605
|
.string()
|
|
6540
|
-
.regex(
|
|
6606
|
+
.regex(updateNotificationRuleBodyChannelsItemRegExpThree)
|
|
6541
6607
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'))
|
|
6542
6608
|
.min(1)
|
|
6543
6609
|
.describe('List of notification channels the rule is applied to.'),
|