@opusdns/api 0.158.0 → 0.159.0
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/package.json +1 -1
- package/src/helpers/keys.ts +212 -28
- package/src/helpers/schemas-arrays.d.ts +15 -1
- package/src/helpers/schemas.d.ts +16 -0
- package/src/openapi.yaml +60 -16
- package/src/schema.d.ts +47 -12
package/package.json
CHANGED
package/src/helpers/keys.ts
CHANGED
|
@@ -115,6 +115,7 @@ import { DomainWithdraw } from './schemas';
|
|
|
115
115
|
import { DomainsExpiringSoon } from './schemas';
|
|
116
116
|
import { EmailForwardAlias } from './schemas';
|
|
117
117
|
import { EmailForwardAliasCreate } from './schemas';
|
|
118
|
+
import { EmailForwardAliasMetrics } from './schemas';
|
|
118
119
|
import { EmailForwardAliasUpdate } from './schemas';
|
|
119
120
|
import { EmailForwardCreate } from './schemas';
|
|
120
121
|
import { EmailForwardLog } from './schemas';
|
|
@@ -11334,6 +11335,111 @@ export const KEYS_EMAIL_FORWARD_ALIAS_CREATE = [
|
|
|
11334
11335
|
KEY_EMAIL_FORWARD_ALIAS_CREATE_FORWARD_TO,
|
|
11335
11336
|
] as const satisfies (keyof EmailForwardAliasCreate)[];
|
|
11336
11337
|
|
|
11338
|
+
/**
|
|
11339
|
+
* Alias
|
|
11340
|
+
*
|
|
11341
|
+
* Email alias address
|
|
11342
|
+
*
|
|
11343
|
+
* @type {string}
|
|
11344
|
+
*
|
|
11345
|
+
*
|
|
11346
|
+
* @remarks
|
|
11347
|
+
* This key constant provides type-safe access to the `alias` property of EmailForwardAliasMetrics objects.
|
|
11348
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
11349
|
+
*
|
|
11350
|
+
* @example
|
|
11351
|
+
* ```typescript
|
|
11352
|
+
* // Direct property access
|
|
11353
|
+
* const value = emailforwardaliasmetrics[KEY_EMAIL_FORWARD_ALIAS_METRICS_ALIAS];
|
|
11354
|
+
*
|
|
11355
|
+
* // Dynamic property access
|
|
11356
|
+
* const propertyName = KEY_EMAIL_FORWARD_ALIAS_METRICS_ALIAS;
|
|
11357
|
+
* const value = emailforwardaliasmetrics[propertyName];
|
|
11358
|
+
* ```
|
|
11359
|
+
*
|
|
11360
|
+
* @see {@link EmailForwardAliasMetrics} - The TypeScript type definition
|
|
11361
|
+
* @see {@link KEYS_EMAIL_FORWARD_ALIAS_METRICS} - Array of all keys for this type
|
|
11362
|
+
*/
|
|
11363
|
+
export const KEY_EMAIL_FORWARD_ALIAS_METRICS_ALIAS: keyof EmailForwardAliasMetrics = 'alias';
|
|
11364
|
+
/**
|
|
11365
|
+
* By Status
|
|
11366
|
+
*
|
|
11367
|
+
* Log counts grouped by status
|
|
11368
|
+
*
|
|
11369
|
+
* @type {object}
|
|
11370
|
+
*
|
|
11371
|
+
*
|
|
11372
|
+
* @remarks
|
|
11373
|
+
* This key constant provides type-safe access to the `by_status` property of EmailForwardAliasMetrics objects.
|
|
11374
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
11375
|
+
*
|
|
11376
|
+
* @example
|
|
11377
|
+
* ```typescript
|
|
11378
|
+
* // Direct property access
|
|
11379
|
+
* const value = emailforwardaliasmetrics[KEY_EMAIL_FORWARD_ALIAS_METRICS_BY_STATUS];
|
|
11380
|
+
*
|
|
11381
|
+
* // Dynamic property access
|
|
11382
|
+
* const propertyName = KEY_EMAIL_FORWARD_ALIAS_METRICS_BY_STATUS;
|
|
11383
|
+
* const value = emailforwardaliasmetrics[propertyName];
|
|
11384
|
+
* ```
|
|
11385
|
+
*
|
|
11386
|
+
* @see {@link EmailForwardAliasMetrics} - The TypeScript type definition
|
|
11387
|
+
* @see {@link KEYS_EMAIL_FORWARD_ALIAS_METRICS} - Array of all keys for this type
|
|
11388
|
+
*/
|
|
11389
|
+
export const KEY_EMAIL_FORWARD_ALIAS_METRICS_BY_STATUS: keyof EmailForwardAliasMetrics = 'by_status';
|
|
11390
|
+
/**
|
|
11391
|
+
* Total Logs
|
|
11392
|
+
*
|
|
11393
|
+
* Total number of logs for this alias
|
|
11394
|
+
*
|
|
11395
|
+
* @type {integer}
|
|
11396
|
+
*
|
|
11397
|
+
*
|
|
11398
|
+
* @remarks
|
|
11399
|
+
* This key constant provides type-safe access to the `total_logs` property of EmailForwardAliasMetrics objects.
|
|
11400
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
11401
|
+
*
|
|
11402
|
+
* @example
|
|
11403
|
+
* ```typescript
|
|
11404
|
+
* // Direct property access
|
|
11405
|
+
* const value = emailforwardaliasmetrics[KEY_EMAIL_FORWARD_ALIAS_METRICS_TOTAL_LOGS];
|
|
11406
|
+
*
|
|
11407
|
+
* // Dynamic property access
|
|
11408
|
+
* const propertyName = KEY_EMAIL_FORWARD_ALIAS_METRICS_TOTAL_LOGS;
|
|
11409
|
+
* const value = emailforwardaliasmetrics[propertyName];
|
|
11410
|
+
* ```
|
|
11411
|
+
*
|
|
11412
|
+
* @see {@link EmailForwardAliasMetrics} - The TypeScript type definition
|
|
11413
|
+
* @see {@link KEYS_EMAIL_FORWARD_ALIAS_METRICS} - Array of all keys for this type
|
|
11414
|
+
*/
|
|
11415
|
+
export const KEY_EMAIL_FORWARD_ALIAS_METRICS_TOTAL_LOGS: keyof EmailForwardAliasMetrics = 'total_logs';
|
|
11416
|
+
|
|
11417
|
+
/**
|
|
11418
|
+
* Array of all EmailForwardAliasMetrics property keys
|
|
11419
|
+
*
|
|
11420
|
+
* @remarks
|
|
11421
|
+
* This constant provides a readonly array containing all valid property keys for EmailForwardAliasMetrics objects.
|
|
11422
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
11423
|
+
*
|
|
11424
|
+
* @example
|
|
11425
|
+
* ```typescript
|
|
11426
|
+
* // Iterating through all keys
|
|
11427
|
+
* for (const key of KEYS_EMAIL_FORWARD_ALIAS_METRICS) {
|
|
11428
|
+
* console.log(`Property: ${key}, Value: ${emailforwardaliasmetrics[key]}`);
|
|
11429
|
+
* }
|
|
11430
|
+
*
|
|
11431
|
+
* // Validation
|
|
11432
|
+
* const isValidKey = KEYS_EMAIL_FORWARD_ALIAS_METRICS.includes(someKey);
|
|
11433
|
+
* ```
|
|
11434
|
+
*
|
|
11435
|
+
* @see {@link EmailForwardAliasMetrics} - The TypeScript type definition
|
|
11436
|
+
*/
|
|
11437
|
+
export const KEYS_EMAIL_FORWARD_ALIAS_METRICS = [
|
|
11438
|
+
KEY_EMAIL_FORWARD_ALIAS_METRICS_ALIAS,
|
|
11439
|
+
KEY_EMAIL_FORWARD_ALIAS_METRICS_BY_STATUS,
|
|
11440
|
+
KEY_EMAIL_FORWARD_ALIAS_METRICS_TOTAL_LOGS,
|
|
11441
|
+
] as const satisfies (keyof EmailForwardAliasMetrics)[];
|
|
11442
|
+
|
|
11337
11443
|
/**
|
|
11338
11444
|
* Forward To
|
|
11339
11445
|
*
|
|
@@ -12151,6 +12257,56 @@ export const KEYS_EMAIL_FORWARD_LOG_EVENT = [
|
|
|
12151
12257
|
KEY_EMAIL_FORWARD_LOG_EVENT_STATUS,
|
|
12152
12258
|
] as const satisfies (keyof EmailForwardLogEvent)[];
|
|
12153
12259
|
|
|
12260
|
+
/**
|
|
12261
|
+
* Alias Count
|
|
12262
|
+
*
|
|
12263
|
+
* Number of aliases
|
|
12264
|
+
*
|
|
12265
|
+
*
|
|
12266
|
+
*
|
|
12267
|
+
* @remarks
|
|
12268
|
+
* This key constant provides type-safe access to the `alias_count` property of EmailForwardMetrics objects.
|
|
12269
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12270
|
+
*
|
|
12271
|
+
* @example
|
|
12272
|
+
* ```typescript
|
|
12273
|
+
* // Direct property access
|
|
12274
|
+
* const value = emailforwardmetrics[KEY_EMAIL_FORWARD_METRICS_ALIAS_COUNT];
|
|
12275
|
+
*
|
|
12276
|
+
* // Dynamic property access
|
|
12277
|
+
* const propertyName = KEY_EMAIL_FORWARD_METRICS_ALIAS_COUNT;
|
|
12278
|
+
* const value = emailforwardmetrics[propertyName];
|
|
12279
|
+
* ```
|
|
12280
|
+
*
|
|
12281
|
+
* @see {@link EmailForwardMetrics} - The TypeScript type definition
|
|
12282
|
+
* @see {@link KEYS_EMAIL_FORWARD_METRICS} - Array of all keys for this type
|
|
12283
|
+
*/
|
|
12284
|
+
export const KEY_EMAIL_FORWARD_METRICS_ALIAS_COUNT: keyof EmailForwardMetrics = 'alias_count';
|
|
12285
|
+
/**
|
|
12286
|
+
* By Alias
|
|
12287
|
+
*
|
|
12288
|
+
* Metrics breakdown per alias
|
|
12289
|
+
*
|
|
12290
|
+
*
|
|
12291
|
+
*
|
|
12292
|
+
* @remarks
|
|
12293
|
+
* This key constant provides type-safe access to the `by_alias` property of EmailForwardMetrics objects.
|
|
12294
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12295
|
+
*
|
|
12296
|
+
* @example
|
|
12297
|
+
* ```typescript
|
|
12298
|
+
* // Direct property access
|
|
12299
|
+
* const value = emailforwardmetrics[KEY_EMAIL_FORWARD_METRICS_BY_ALIAS];
|
|
12300
|
+
*
|
|
12301
|
+
* // Dynamic property access
|
|
12302
|
+
* const propertyName = KEY_EMAIL_FORWARD_METRICS_BY_ALIAS;
|
|
12303
|
+
* const value = emailforwardmetrics[propertyName];
|
|
12304
|
+
* ```
|
|
12305
|
+
*
|
|
12306
|
+
* @see {@link EmailForwardMetrics} - The TypeScript type definition
|
|
12307
|
+
* @see {@link KEYS_EMAIL_FORWARD_METRICS} - Array of all keys for this type
|
|
12308
|
+
*/
|
|
12309
|
+
export const KEY_EMAIL_FORWARD_METRICS_BY_ALIAS: keyof EmailForwardMetrics = 'by_alias';
|
|
12154
12310
|
/**
|
|
12155
12311
|
* By Status
|
|
12156
12312
|
*
|
|
@@ -12275,6 +12431,8 @@ export const KEY_EMAIL_FORWARD_METRICS_TOTAL_LOGS: keyof EmailForwardMetrics = '
|
|
|
12275
12431
|
* @see {@link EmailForwardMetrics} - The TypeScript type definition
|
|
12276
12432
|
*/
|
|
12277
12433
|
export const KEYS_EMAIL_FORWARD_METRICS = [
|
|
12434
|
+
KEY_EMAIL_FORWARD_METRICS_ALIAS_COUNT,
|
|
12435
|
+
KEY_EMAIL_FORWARD_METRICS_BY_ALIAS,
|
|
12278
12436
|
KEY_EMAIL_FORWARD_METRICS_BY_STATUS,
|
|
12279
12437
|
KEY_EMAIL_FORWARD_METRICS_FILTERS,
|
|
12280
12438
|
KEY_EMAIL_FORWARD_METRICS_RATES,
|
|
@@ -12332,6 +12490,31 @@ export const KEY_EMAIL_FORWARD_METRICS_FILTERS_DOMAIN: keyof EmailForwardMetrics
|
|
|
12332
12490
|
* @see {@link KEYS_EMAIL_FORWARD_METRICS_FILTERS} - Array of all keys for this type
|
|
12333
12491
|
*/
|
|
12334
12492
|
export const KEY_EMAIL_FORWARD_METRICS_FILTERS_END_TIME: keyof EmailForwardMetricsFilters = 'end_time';
|
|
12493
|
+
/**
|
|
12494
|
+
* Include Aliases
|
|
12495
|
+
*
|
|
12496
|
+
* Whether alias breakdown is included
|
|
12497
|
+
*
|
|
12498
|
+
*
|
|
12499
|
+
*
|
|
12500
|
+
* @remarks
|
|
12501
|
+
* This key constant provides type-safe access to the `include_aliases` property of EmailForwardMetricsFilters objects.
|
|
12502
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12503
|
+
*
|
|
12504
|
+
* @example
|
|
12505
|
+
* ```typescript
|
|
12506
|
+
* // Direct property access
|
|
12507
|
+
* const value = emailforwardmetricsfilters[KEY_EMAIL_FORWARD_METRICS_FILTERS_INCLUDE_ALIASES];
|
|
12508
|
+
*
|
|
12509
|
+
* // Dynamic property access
|
|
12510
|
+
* const propertyName = KEY_EMAIL_FORWARD_METRICS_FILTERS_INCLUDE_ALIASES;
|
|
12511
|
+
* const value = emailforwardmetricsfilters[propertyName];
|
|
12512
|
+
* ```
|
|
12513
|
+
*
|
|
12514
|
+
* @see {@link EmailForwardMetricsFilters} - The TypeScript type definition
|
|
12515
|
+
* @see {@link KEYS_EMAIL_FORWARD_METRICS_FILTERS} - Array of all keys for this type
|
|
12516
|
+
*/
|
|
12517
|
+
export const KEY_EMAIL_FORWARD_METRICS_FILTERS_INCLUDE_ALIASES: keyof EmailForwardMetricsFilters = 'include_aliases';
|
|
12335
12518
|
/**
|
|
12336
12519
|
* Start Time
|
|
12337
12520
|
*
|
|
@@ -12381,113 +12564,114 @@ export const KEY_EMAIL_FORWARD_METRICS_FILTERS_START_TIME: keyof EmailForwardMet
|
|
|
12381
12564
|
export const KEYS_EMAIL_FORWARD_METRICS_FILTERS = [
|
|
12382
12565
|
KEY_EMAIL_FORWARD_METRICS_FILTERS_DOMAIN,
|
|
12383
12566
|
KEY_EMAIL_FORWARD_METRICS_FILTERS_END_TIME,
|
|
12567
|
+
KEY_EMAIL_FORWARD_METRICS_FILTERS_INCLUDE_ALIASES,
|
|
12384
12568
|
KEY_EMAIL_FORWARD_METRICS_FILTERS_START_TIME,
|
|
12385
12569
|
] as const satisfies (keyof EmailForwardMetricsFilters)[];
|
|
12386
12570
|
|
|
12387
12571
|
/**
|
|
12388
|
-
*
|
|
12572
|
+
* Bounce Rate
|
|
12389
12573
|
*
|
|
12390
|
-
*
|
|
12574
|
+
* Bounce rate percentage
|
|
12391
12575
|
*
|
|
12392
12576
|
* @type {number}
|
|
12393
12577
|
*
|
|
12394
12578
|
*
|
|
12395
12579
|
* @remarks
|
|
12396
|
-
* This key constant provides type-safe access to the `
|
|
12580
|
+
* This key constant provides type-safe access to the `bounce_rate` property of EmailForwardMetricsRates objects.
|
|
12397
12581
|
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12398
12582
|
*
|
|
12399
12583
|
* @example
|
|
12400
12584
|
* ```typescript
|
|
12401
12585
|
* // Direct property access
|
|
12402
|
-
* const value = emailforwardmetricsrates[
|
|
12586
|
+
* const value = emailforwardmetricsrates[KEY_EMAIL_FORWARD_METRICS_RATES_BOUNCE_RATE];
|
|
12403
12587
|
*
|
|
12404
12588
|
* // Dynamic property access
|
|
12405
|
-
* const propertyName =
|
|
12589
|
+
* const propertyName = KEY_EMAIL_FORWARD_METRICS_RATES_BOUNCE_RATE;
|
|
12406
12590
|
* const value = emailforwardmetricsrates[propertyName];
|
|
12407
12591
|
* ```
|
|
12408
12592
|
*
|
|
12409
12593
|
* @see {@link EmailForwardMetricsRates} - The TypeScript type definition
|
|
12410
12594
|
* @see {@link KEYS_EMAIL_FORWARD_METRICS_RATES} - Array of all keys for this type
|
|
12411
12595
|
*/
|
|
12412
|
-
export const
|
|
12596
|
+
export const KEY_EMAIL_FORWARD_METRICS_RATES_BOUNCE_RATE: keyof EmailForwardMetricsRates = 'bounce_rate';
|
|
12413
12597
|
/**
|
|
12414
|
-
*
|
|
12598
|
+
* Delivery Rate
|
|
12415
12599
|
*
|
|
12416
|
-
*
|
|
12600
|
+
* Delivery rate percentage
|
|
12417
12601
|
*
|
|
12418
12602
|
* @type {number}
|
|
12419
12603
|
*
|
|
12420
12604
|
*
|
|
12421
12605
|
* @remarks
|
|
12422
|
-
* This key constant provides type-safe access to the `
|
|
12606
|
+
* This key constant provides type-safe access to the `delivery_rate` property of EmailForwardMetricsRates objects.
|
|
12423
12607
|
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12424
12608
|
*
|
|
12425
12609
|
* @example
|
|
12426
12610
|
* ```typescript
|
|
12427
12611
|
* // Direct property access
|
|
12428
|
-
* const value = emailforwardmetricsrates[
|
|
12612
|
+
* const value = emailforwardmetricsrates[KEY_EMAIL_FORWARD_METRICS_RATES_DELIVERY_RATE];
|
|
12429
12613
|
*
|
|
12430
12614
|
* // Dynamic property access
|
|
12431
|
-
* const propertyName =
|
|
12615
|
+
* const propertyName = KEY_EMAIL_FORWARD_METRICS_RATES_DELIVERY_RATE;
|
|
12432
12616
|
* const value = emailforwardmetricsrates[propertyName];
|
|
12433
12617
|
* ```
|
|
12434
12618
|
*
|
|
12435
12619
|
* @see {@link EmailForwardMetricsRates} - The TypeScript type definition
|
|
12436
12620
|
* @see {@link KEYS_EMAIL_FORWARD_METRICS_RATES} - Array of all keys for this type
|
|
12437
12621
|
*/
|
|
12438
|
-
export const
|
|
12622
|
+
export const KEY_EMAIL_FORWARD_METRICS_RATES_DELIVERY_RATE: keyof EmailForwardMetricsRates = 'delivery_rate';
|
|
12439
12623
|
/**
|
|
12440
|
-
*
|
|
12624
|
+
* Queued Rate
|
|
12441
12625
|
*
|
|
12442
|
-
*
|
|
12626
|
+
* Queued rate percentage
|
|
12443
12627
|
*
|
|
12444
12628
|
* @type {number}
|
|
12445
12629
|
*
|
|
12446
12630
|
*
|
|
12447
12631
|
* @remarks
|
|
12448
|
-
* This key constant provides type-safe access to the `
|
|
12632
|
+
* This key constant provides type-safe access to the `queued_rate` property of EmailForwardMetricsRates objects.
|
|
12449
12633
|
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12450
12634
|
*
|
|
12451
12635
|
* @example
|
|
12452
12636
|
* ```typescript
|
|
12453
12637
|
* // Direct property access
|
|
12454
|
-
* const value = emailforwardmetricsrates[
|
|
12638
|
+
* const value = emailforwardmetricsrates[KEY_EMAIL_FORWARD_METRICS_RATES_QUEUED_RATE];
|
|
12455
12639
|
*
|
|
12456
12640
|
* // Dynamic property access
|
|
12457
|
-
* const propertyName =
|
|
12641
|
+
* const propertyName = KEY_EMAIL_FORWARD_METRICS_RATES_QUEUED_RATE;
|
|
12458
12642
|
* const value = emailforwardmetricsrates[propertyName];
|
|
12459
12643
|
* ```
|
|
12460
12644
|
*
|
|
12461
12645
|
* @see {@link EmailForwardMetricsRates} - The TypeScript type definition
|
|
12462
12646
|
* @see {@link KEYS_EMAIL_FORWARD_METRICS_RATES} - Array of all keys for this type
|
|
12463
12647
|
*/
|
|
12464
|
-
export const
|
|
12648
|
+
export const KEY_EMAIL_FORWARD_METRICS_RATES_QUEUED_RATE: keyof EmailForwardMetricsRates = 'queued_rate';
|
|
12465
12649
|
/**
|
|
12466
|
-
*
|
|
12650
|
+
* Refused Rate
|
|
12467
12651
|
*
|
|
12468
|
-
*
|
|
12652
|
+
* Refused rate percentage
|
|
12469
12653
|
*
|
|
12470
12654
|
* @type {number}
|
|
12471
12655
|
*
|
|
12472
12656
|
*
|
|
12473
12657
|
* @remarks
|
|
12474
|
-
* This key constant provides type-safe access to the `
|
|
12658
|
+
* This key constant provides type-safe access to the `refused_rate` property of EmailForwardMetricsRates objects.
|
|
12475
12659
|
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12476
12660
|
*
|
|
12477
12661
|
* @example
|
|
12478
12662
|
* ```typescript
|
|
12479
12663
|
* // Direct property access
|
|
12480
|
-
* const value = emailforwardmetricsrates[
|
|
12664
|
+
* const value = emailforwardmetricsrates[KEY_EMAIL_FORWARD_METRICS_RATES_REFUSED_RATE];
|
|
12481
12665
|
*
|
|
12482
12666
|
* // Dynamic property access
|
|
12483
|
-
* const propertyName =
|
|
12667
|
+
* const propertyName = KEY_EMAIL_FORWARD_METRICS_RATES_REFUSED_RATE;
|
|
12484
12668
|
* const value = emailforwardmetricsrates[propertyName];
|
|
12485
12669
|
* ```
|
|
12486
12670
|
*
|
|
12487
12671
|
* @see {@link EmailForwardMetricsRates} - The TypeScript type definition
|
|
12488
12672
|
* @see {@link KEYS_EMAIL_FORWARD_METRICS_RATES} - Array of all keys for this type
|
|
12489
12673
|
*/
|
|
12490
|
-
export const
|
|
12674
|
+
export const KEY_EMAIL_FORWARD_METRICS_RATES_REFUSED_RATE: keyof EmailForwardMetricsRates = 'refused_rate';
|
|
12491
12675
|
|
|
12492
12676
|
/**
|
|
12493
12677
|
* Array of all EmailForwardMetricsRates property keys
|
|
@@ -12510,10 +12694,10 @@ export const KEY_EMAIL_FORWARD_METRICS_RATES_SOFT_BOUNCE: keyof EmailForwardMetr
|
|
|
12510
12694
|
* @see {@link EmailForwardMetricsRates} - The TypeScript type definition
|
|
12511
12695
|
*/
|
|
12512
12696
|
export const KEYS_EMAIL_FORWARD_METRICS_RATES = [
|
|
12513
|
-
|
|
12514
|
-
|
|
12515
|
-
|
|
12516
|
-
|
|
12697
|
+
KEY_EMAIL_FORWARD_METRICS_RATES_BOUNCE_RATE,
|
|
12698
|
+
KEY_EMAIL_FORWARD_METRICS_RATES_DELIVERY_RATE,
|
|
12699
|
+
KEY_EMAIL_FORWARD_METRICS_RATES_QUEUED_RATE,
|
|
12700
|
+
KEY_EMAIL_FORWARD_METRICS_RATES_REFUSED_RATE,
|
|
12517
12701
|
] as const satisfies (keyof EmailForwardMetricsRates)[];
|
|
12518
12702
|
|
|
12519
12703
|
/**
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* This file is auto-generated from the OpenAPI specification.
|
|
22
22
|
* Do not edit manually.
|
|
23
23
|
*/
|
|
24
|
-
import { DomainDnssecData, DomainDnssecDataCreate, OrganizationAttribute, OrganizationAttributeUpdate, IpRestriction, TldResponseShort, RegistryHandleAttributeType, ContactAttributeDefinition, ContactRoleAttributeRequirement, PostalAddressType, ContactConfigBase, DnsChange, DnsRecordCreate, DnsRecord, DnsRrsetCreate, DnsRecordPatchOp, DnsRrset, DnsRrsetPatchOp, DomainAvailabilityCheck, ContactHandle, Nameserver, BrowserStatsBucket, GeoStatsBucket, TimeSeriesBucket, DomainForwardPatchOp, PlatformStatsBucket, HttpRedirectList, ReferrerStatsBucket, StatusCodeStatsBucket, UserAgentStatsBucket, VisitsByKeyBucket, DomainForward, DeletePolicyType, SyncOperationType, DomainContact, DomainHost, DomainSearchSuggestionWithPrice, DomainStatus, DomainClientStatus, EmailForwardAliasCreate, EmailForwardLogEvent, EmailForwardAlias, EmailForward, PriceInfo, ValidationError, LaunchPhaseBase, LocalPresenceRequirementType, DomainContactType, OrganizationAttribute2, User, OrganizationAttributeCreate, UserCreate, BillingTransaction, ContactSchema, DnsZone, DomainForwardZone, Domain, EmailForwardLog, EmailForwardZone, EventResponse, Invoice, ObjectLog, Organization, RequestHistory, UserPublic, Period, Permission, PremiumAffectsType, Relation, TldBase, PostTransferRequirements, UserAttributeBase, DomainAvailability } from './schemas.d';
|
|
24
|
+
import { DomainDnssecData, DomainDnssecDataCreate, OrganizationAttribute, OrganizationAttributeUpdate, IpRestriction, TldResponseShort, RegistryHandleAttributeType, ContactAttributeDefinition, ContactRoleAttributeRequirement, PostalAddressType, ContactConfigBase, DnsChange, DnsRecordCreate, DnsRecord, DnsRrsetCreate, DnsRecordPatchOp, DnsRrset, DnsRrsetPatchOp, DomainAvailabilityCheck, ContactHandle, Nameserver, BrowserStatsBucket, GeoStatsBucket, TimeSeriesBucket, DomainForwardPatchOp, PlatformStatsBucket, HttpRedirectList, ReferrerStatsBucket, StatusCodeStatsBucket, UserAgentStatsBucket, VisitsByKeyBucket, DomainForward, DeletePolicyType, SyncOperationType, DomainContact, DomainHost, DomainSearchSuggestionWithPrice, DomainStatus, DomainClientStatus, EmailForwardAliasCreate, EmailForwardLogEvent, EmailForwardAliasMetrics, EmailForwardAlias, EmailForward, PriceInfo, ValidationError, LaunchPhaseBase, LocalPresenceRequirementType, DomainContactType, OrganizationAttribute2, User, OrganizationAttributeCreate, UserCreate, BillingTransaction, ContactSchema, DnsZone, DomainForwardZone, Domain, EmailForwardLog, EmailForwardZone, EventResponse, Invoice, ObjectLog, Organization, RequestHistory, UserPublic, Period, Permission, PremiumAffectsType, Relation, TldBase, PostTransferRequirements, UserAttributeBase, DomainAvailability } from './schemas.d';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* DomainDnssecDataResponse
|
|
@@ -597,6 +597,20 @@ export type EmailForwardAliasCreateArray = EmailForwardAliasCreate[];
|
|
|
597
597
|
* @see {@link EmailForwardLogEvent} - The individual EmailForwardLogEvent type definition
|
|
598
598
|
*/
|
|
599
599
|
export type EmailForwardLogEventArray = EmailForwardLogEvent[];
|
|
600
|
+
/**
|
|
601
|
+
* EmailForwardAliasMetrics
|
|
602
|
+
*
|
|
603
|
+
* @remarks
|
|
604
|
+
* Array type for EmailForwardAliasMetrics objects. Used when the API returns a collection of EmailForwardAliasMetrics instances.
|
|
605
|
+
*
|
|
606
|
+
* @example
|
|
607
|
+
* ```typescript
|
|
608
|
+
* const items: EmailForwardAliasMetricsArray = await api.getEmailForwardAliasMetricss();
|
|
609
|
+
* ```
|
|
610
|
+
*
|
|
611
|
+
* @see {@link EmailForwardAliasMetrics} - The individual EmailForwardAliasMetrics type definition
|
|
612
|
+
*/
|
|
613
|
+
export type EmailForwardAliasMetricsArray = EmailForwardAliasMetrics[];
|
|
600
614
|
/**
|
|
601
615
|
* EmailForwardAlias
|
|
602
616
|
*
|
package/src/helpers/schemas.d.ts
CHANGED
|
@@ -1818,6 +1818,22 @@ export type EmailForwardAlias = components['schemas']['EmailForwardAlias'];
|
|
|
1818
1818
|
* @see {@link components} - The OpenAPI components schema definition
|
|
1819
1819
|
*/
|
|
1820
1820
|
export type EmailForwardAliasCreate = components['schemas']['EmailForwardAliasCreate'];
|
|
1821
|
+
/**
|
|
1822
|
+
* EmailForwardAliasMetrics
|
|
1823
|
+
*
|
|
1824
|
+
* @remarks
|
|
1825
|
+
* Type alias for the `EmailForwardAliasMetrics` OpenAPI schema.
|
|
1826
|
+
* This type represents emailforwardaliasmetrics data structures used in API requests and responses.
|
|
1827
|
+
*
|
|
1828
|
+
* @example
|
|
1829
|
+
* ```typescript
|
|
1830
|
+
* const response = await api.getEmailForwardAliasMetrics();
|
|
1831
|
+
* const item: EmailForwardAliasMetrics = response.results;
|
|
1832
|
+
* ```
|
|
1833
|
+
*
|
|
1834
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
1835
|
+
*/
|
|
1836
|
+
export type EmailForwardAliasMetrics = components['schemas']['EmailForwardAliasMetrics'];
|
|
1821
1837
|
/**
|
|
1822
1838
|
* EmailForwardAliasUpdate
|
|
1823
1839
|
*
|
package/src/openapi.yaml
CHANGED
|
@@ -2705,6 +2705,30 @@ components:
|
|
|
2705
2705
|
- forward_to
|
|
2706
2706
|
title: EmailForwardAliasCreate
|
|
2707
2707
|
type: object
|
|
2708
|
+
EmailForwardAliasMetrics:
|
|
2709
|
+
properties:
|
|
2710
|
+
alias:
|
|
2711
|
+
description: Email alias address
|
|
2712
|
+
title: Alias
|
|
2713
|
+
type: string
|
|
2714
|
+
by_status:
|
|
2715
|
+
additionalProperties:
|
|
2716
|
+
type: integer
|
|
2717
|
+
description: Log counts grouped by status
|
|
2718
|
+
propertyNames:
|
|
2719
|
+
$ref: '#/components/schemas/EmailForwardLogStatus'
|
|
2720
|
+
title: By Status
|
|
2721
|
+
type: object
|
|
2722
|
+
total_logs:
|
|
2723
|
+
description: Total number of logs for this alias
|
|
2724
|
+
title: Total Logs
|
|
2725
|
+
type: integer
|
|
2726
|
+
required:
|
|
2727
|
+
- alias
|
|
2728
|
+
- total_logs
|
|
2729
|
+
- by_status
|
|
2730
|
+
title: EmailForwardAliasMetrics
|
|
2731
|
+
type: object
|
|
2708
2732
|
EmailForwardAliasUpdate:
|
|
2709
2733
|
properties:
|
|
2710
2734
|
forward_to:
|
|
@@ -2891,6 +2915,20 @@ components:
|
|
|
2891
2915
|
type: string
|
|
2892
2916
|
EmailForwardMetrics:
|
|
2893
2917
|
properties:
|
|
2918
|
+
alias_count:
|
|
2919
|
+
anyOf:
|
|
2920
|
+
- type: integer
|
|
2921
|
+
- type: 'null'
|
|
2922
|
+
description: Number of aliases
|
|
2923
|
+
title: Alias Count
|
|
2924
|
+
by_alias:
|
|
2925
|
+
anyOf:
|
|
2926
|
+
- items:
|
|
2927
|
+
$ref: '#/components/schemas/EmailForwardAliasMetrics'
|
|
2928
|
+
type: array
|
|
2929
|
+
- type: 'null'
|
|
2930
|
+
description: Metrics breakdown per alias
|
|
2931
|
+
title: By Alias
|
|
2894
2932
|
by_status:
|
|
2895
2933
|
additionalProperties:
|
|
2896
2934
|
type: integer
|
|
@@ -2929,6 +2967,12 @@ components:
|
|
|
2929
2967
|
- type: 'null'
|
|
2930
2968
|
description: End time filter (RFC3339)
|
|
2931
2969
|
title: End Time
|
|
2970
|
+
include_aliases:
|
|
2971
|
+
anyOf:
|
|
2972
|
+
- type: boolean
|
|
2973
|
+
- type: 'null'
|
|
2974
|
+
description: Whether alias breakdown is included
|
|
2975
|
+
title: Include Aliases
|
|
2932
2976
|
start_time:
|
|
2933
2977
|
anyOf:
|
|
2934
2978
|
- type: string
|
|
@@ -2941,27 +2985,27 @@ components:
|
|
|
2941
2985
|
type: object
|
|
2942
2986
|
EmailForwardMetricsRates:
|
|
2943
2987
|
properties:
|
|
2944
|
-
|
|
2988
|
+
bounce_rate:
|
|
2989
|
+
description: Bounce rate percentage
|
|
2990
|
+
title: Bounce Rate
|
|
2991
|
+
type: number
|
|
2992
|
+
delivery_rate:
|
|
2945
2993
|
description: Delivery rate percentage
|
|
2946
|
-
title:
|
|
2994
|
+
title: Delivery Rate
|
|
2947
2995
|
type: number
|
|
2948
|
-
|
|
2949
|
-
description:
|
|
2950
|
-
title:
|
|
2996
|
+
queued_rate:
|
|
2997
|
+
description: Queued rate percentage
|
|
2998
|
+
title: Queued Rate
|
|
2951
2999
|
type: number
|
|
2952
|
-
|
|
3000
|
+
refused_rate:
|
|
2953
3001
|
description: Refused rate percentage
|
|
2954
|
-
title: Refused
|
|
2955
|
-
type: number
|
|
2956
|
-
soft_bounce:
|
|
2957
|
-
description: Soft bounce rate percentage
|
|
2958
|
-
title: Soft Bounce
|
|
3002
|
+
title: Refused Rate
|
|
2959
3003
|
type: number
|
|
2960
3004
|
required:
|
|
2961
|
-
-
|
|
2962
|
-
-
|
|
2963
|
-
-
|
|
2964
|
-
-
|
|
3005
|
+
- delivery_rate
|
|
3006
|
+
- refused_rate
|
|
3007
|
+
- queued_rate
|
|
3008
|
+
- bounce_rate
|
|
2965
3009
|
title: EmailForwardMetricsRates
|
|
2966
3010
|
type: object
|
|
2967
3011
|
EmailForwardResponse:
|
|
@@ -6613,7 +6657,7 @@ info:
|
|
|
6613
6657
|
'
|
|
6614
6658
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
6615
6659
|
title: OpusDNS API
|
|
6616
|
-
version: 2026-01-15-
|
|
6660
|
+
version: 2026-01-15-095407
|
|
6617
6661
|
x-logo:
|
|
6618
6662
|
altText: OpusDNS API Reference
|
|
6619
6663
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
package/src/schema.d.ts
CHANGED
|
@@ -3533,6 +3533,26 @@ export interface components {
|
|
|
3533
3533
|
/** Forward To */
|
|
3534
3534
|
forward_to: string[];
|
|
3535
3535
|
};
|
|
3536
|
+
/** EmailForwardAliasMetrics */
|
|
3537
|
+
EmailForwardAliasMetrics: {
|
|
3538
|
+
/**
|
|
3539
|
+
* Alias
|
|
3540
|
+
* @description Email alias address
|
|
3541
|
+
*/
|
|
3542
|
+
alias: string;
|
|
3543
|
+
/**
|
|
3544
|
+
* By Status
|
|
3545
|
+
* @description Log counts grouped by status
|
|
3546
|
+
*/
|
|
3547
|
+
by_status: {
|
|
3548
|
+
[key: string]: number;
|
|
3549
|
+
};
|
|
3550
|
+
/**
|
|
3551
|
+
* Total Logs
|
|
3552
|
+
* @description Total number of logs for this alias
|
|
3553
|
+
*/
|
|
3554
|
+
total_logs: number;
|
|
3555
|
+
};
|
|
3536
3556
|
/** EmailForwardAliasUpdate */
|
|
3537
3557
|
EmailForwardAliasUpdate: {
|
|
3538
3558
|
/** Forward To */
|
|
@@ -3686,6 +3706,16 @@ export interface components {
|
|
|
3686
3706
|
EmailForwardLogStatus: "QUEUED" | "DELIVERED" | "REFUSED" | "SOFT-BOUNCE" | "HARD-BOUNCE";
|
|
3687
3707
|
/** EmailForwardMetrics */
|
|
3688
3708
|
EmailForwardMetrics: {
|
|
3709
|
+
/**
|
|
3710
|
+
* Alias Count
|
|
3711
|
+
* @description Number of aliases
|
|
3712
|
+
*/
|
|
3713
|
+
alias_count?: number | null;
|
|
3714
|
+
/**
|
|
3715
|
+
* By Alias
|
|
3716
|
+
* @description Metrics breakdown per alias
|
|
3717
|
+
*/
|
|
3718
|
+
by_alias?: components["schemas"]["EmailForwardAliasMetrics"][] | null;
|
|
3689
3719
|
/**
|
|
3690
3720
|
* By Status
|
|
3691
3721
|
* @description Log counts grouped by status (QUEUED, DELIVERED, REFUSED, SOFT-BOUNCE, HARD-BOUNCE)
|
|
@@ -3715,6 +3745,11 @@ export interface components {
|
|
|
3715
3745
|
* @description End time filter (RFC3339)
|
|
3716
3746
|
*/
|
|
3717
3747
|
end_time?: string | null;
|
|
3748
|
+
/**
|
|
3749
|
+
* Include Aliases
|
|
3750
|
+
* @description Whether alias breakdown is included
|
|
3751
|
+
*/
|
|
3752
|
+
include_aliases?: boolean | null;
|
|
3718
3753
|
/**
|
|
3719
3754
|
* Start Time
|
|
3720
3755
|
* @description Start time filter (RFC3339)
|
|
@@ -3724,25 +3759,25 @@ export interface components {
|
|
|
3724
3759
|
/** EmailForwardMetricsRates */
|
|
3725
3760
|
EmailForwardMetricsRates: {
|
|
3726
3761
|
/**
|
|
3727
|
-
*
|
|
3728
|
-
* @description
|
|
3762
|
+
* Bounce Rate
|
|
3763
|
+
* @description Bounce rate percentage
|
|
3729
3764
|
*/
|
|
3730
|
-
|
|
3765
|
+
bounce_rate: number;
|
|
3731
3766
|
/**
|
|
3732
|
-
*
|
|
3733
|
-
* @description
|
|
3767
|
+
* Delivery Rate
|
|
3768
|
+
* @description Delivery rate percentage
|
|
3734
3769
|
*/
|
|
3735
|
-
|
|
3770
|
+
delivery_rate: number;
|
|
3736
3771
|
/**
|
|
3737
|
-
*
|
|
3738
|
-
* @description
|
|
3772
|
+
* Queued Rate
|
|
3773
|
+
* @description Queued rate percentage
|
|
3739
3774
|
*/
|
|
3740
|
-
|
|
3775
|
+
queued_rate: number;
|
|
3741
3776
|
/**
|
|
3742
|
-
*
|
|
3743
|
-
* @description
|
|
3777
|
+
* Refused Rate
|
|
3778
|
+
* @description Refused rate percentage
|
|
3744
3779
|
*/
|
|
3745
|
-
|
|
3780
|
+
refused_rate: number;
|
|
3746
3781
|
};
|
|
3747
3782
|
/** EmailForwardResponse */
|
|
3748
3783
|
EmailForwardResponse: {
|