@opusdns/api 0.157.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/constants.ts +55 -55
- package/src/helpers/keys.ts +553 -2
- package/src/helpers/requests.d.ts +53 -0
- package/src/helpers/responses.d.ts +111 -1
- package/src/helpers/schemas-arrays.d.ts +15 -1
- package/src/helpers/schemas.d.ts +76 -12
- package/src/openapi.yaml +221 -14
- package/src/schema.d.ts +205 -11
package/src/helpers/keys.ts
CHANGED
|
@@ -115,10 +115,14 @@ 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';
|
|
121
122
|
import { EmailForwardLogEvent } from './schemas';
|
|
123
|
+
import { EmailForwardMetrics } from './schemas';
|
|
124
|
+
import { EmailForwardMetricsFilters } from './schemas';
|
|
125
|
+
import { EmailForwardMetricsRates } from './schemas';
|
|
122
126
|
import { EmailForward } from './schemas';
|
|
123
127
|
import { EmailForwardZone } from './schemas';
|
|
124
128
|
import { EventResponse } from './schemas';
|
|
@@ -11331,6 +11335,111 @@ export const KEYS_EMAIL_FORWARD_ALIAS_CREATE = [
|
|
|
11331
11335
|
KEY_EMAIL_FORWARD_ALIAS_CREATE_FORWARD_TO,
|
|
11332
11336
|
] as const satisfies (keyof EmailForwardAliasCreate)[];
|
|
11333
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
|
+
|
|
11334
11443
|
/**
|
|
11335
11444
|
* Forward To
|
|
11336
11445
|
*
|
|
@@ -11562,11 +11671,10 @@ export const KEY_EMAIL_FORWARD_LOG_DOMAIN: keyof EmailForwardLog = 'domain';
|
|
|
11562
11671
|
*/
|
|
11563
11672
|
export const KEY_EMAIL_FORWARD_LOG_EVENTS: keyof EmailForwardLog = 'events';
|
|
11564
11673
|
/**
|
|
11565
|
-
*
|
|
11674
|
+
* final_status property
|
|
11566
11675
|
*
|
|
11567
11676
|
* Final status of the email (QUEUED, DELIVERED, REFUSED, SOFT-BOUNCE, HARD-BOUNCE)
|
|
11568
11677
|
*
|
|
11569
|
-
* @type {string}
|
|
11570
11678
|
*
|
|
11571
11679
|
*
|
|
11572
11680
|
* @remarks
|
|
@@ -12149,6 +12257,449 @@ export const KEYS_EMAIL_FORWARD_LOG_EVENT = [
|
|
|
12149
12257
|
KEY_EMAIL_FORWARD_LOG_EVENT_STATUS,
|
|
12150
12258
|
] as const satisfies (keyof EmailForwardLogEvent)[];
|
|
12151
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';
|
|
12310
|
+
/**
|
|
12311
|
+
* By Status
|
|
12312
|
+
*
|
|
12313
|
+
* Log counts grouped by status (QUEUED, DELIVERED, REFUSED, SOFT-BOUNCE, HARD-BOUNCE)
|
|
12314
|
+
*
|
|
12315
|
+
* @type {object}
|
|
12316
|
+
*
|
|
12317
|
+
*
|
|
12318
|
+
* @remarks
|
|
12319
|
+
* This key constant provides type-safe access to the `by_status` property of EmailForwardMetrics objects.
|
|
12320
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12321
|
+
*
|
|
12322
|
+
* @example
|
|
12323
|
+
* ```typescript
|
|
12324
|
+
* // Direct property access
|
|
12325
|
+
* const value = emailforwardmetrics[KEY_EMAIL_FORWARD_METRICS_BY_STATUS];
|
|
12326
|
+
*
|
|
12327
|
+
* // Dynamic property access
|
|
12328
|
+
* const propertyName = KEY_EMAIL_FORWARD_METRICS_BY_STATUS;
|
|
12329
|
+
* const value = emailforwardmetrics[propertyName];
|
|
12330
|
+
* ```
|
|
12331
|
+
*
|
|
12332
|
+
* @see {@link EmailForwardMetrics} - The TypeScript type definition
|
|
12333
|
+
* @see {@link KEYS_EMAIL_FORWARD_METRICS} - Array of all keys for this type
|
|
12334
|
+
*/
|
|
12335
|
+
export const KEY_EMAIL_FORWARD_METRICS_BY_STATUS: keyof EmailForwardMetrics = 'by_status';
|
|
12336
|
+
/**
|
|
12337
|
+
* filters property
|
|
12338
|
+
*
|
|
12339
|
+
* Applied filters
|
|
12340
|
+
*
|
|
12341
|
+
*
|
|
12342
|
+
*
|
|
12343
|
+
* @remarks
|
|
12344
|
+
* This key constant provides type-safe access to the `filters` property of EmailForwardMetrics objects.
|
|
12345
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12346
|
+
*
|
|
12347
|
+
* @example
|
|
12348
|
+
* ```typescript
|
|
12349
|
+
* // Direct property access
|
|
12350
|
+
* const value = emailforwardmetrics[KEY_EMAIL_FORWARD_METRICS_FILTERS];
|
|
12351
|
+
*
|
|
12352
|
+
* // Dynamic property access
|
|
12353
|
+
* const propertyName = KEY_EMAIL_FORWARD_METRICS_FILTERS;
|
|
12354
|
+
* const value = emailforwardmetrics[propertyName];
|
|
12355
|
+
* ```
|
|
12356
|
+
*
|
|
12357
|
+
* @see {@link EmailForwardMetrics} - The TypeScript type definition
|
|
12358
|
+
* @see {@link KEYS_EMAIL_FORWARD_METRICS} - Array of all keys for this type
|
|
12359
|
+
*/
|
|
12360
|
+
export const KEY_EMAIL_FORWARD_METRICS_FILTERS: keyof EmailForwardMetrics = 'filters';
|
|
12361
|
+
/**
|
|
12362
|
+
* rates property
|
|
12363
|
+
*
|
|
12364
|
+
* Rate percentages for each status
|
|
12365
|
+
*
|
|
12366
|
+
*
|
|
12367
|
+
*
|
|
12368
|
+
* @remarks
|
|
12369
|
+
* This key constant provides type-safe access to the `rates` property of EmailForwardMetrics objects.
|
|
12370
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12371
|
+
*
|
|
12372
|
+
* @example
|
|
12373
|
+
* ```typescript
|
|
12374
|
+
* // Direct property access
|
|
12375
|
+
* const value = emailforwardmetrics[KEY_EMAIL_FORWARD_METRICS_RATES];
|
|
12376
|
+
*
|
|
12377
|
+
* // Dynamic property access
|
|
12378
|
+
* const propertyName = KEY_EMAIL_FORWARD_METRICS_RATES;
|
|
12379
|
+
* const value = emailforwardmetrics[propertyName];
|
|
12380
|
+
* ```
|
|
12381
|
+
*
|
|
12382
|
+
* @see {@link EmailForwardMetrics} - The TypeScript type definition
|
|
12383
|
+
* @see {@link KEYS_EMAIL_FORWARD_METRICS} - Array of all keys for this type
|
|
12384
|
+
*/
|
|
12385
|
+
export const KEY_EMAIL_FORWARD_METRICS_RATES: keyof EmailForwardMetrics = 'rates';
|
|
12386
|
+
/**
|
|
12387
|
+
* Total Logs
|
|
12388
|
+
*
|
|
12389
|
+
* Total number of email forward logs
|
|
12390
|
+
*
|
|
12391
|
+
* @type {integer}
|
|
12392
|
+
*
|
|
12393
|
+
*
|
|
12394
|
+
* @remarks
|
|
12395
|
+
* This key constant provides type-safe access to the `total_logs` property of EmailForwardMetrics objects.
|
|
12396
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12397
|
+
*
|
|
12398
|
+
* @example
|
|
12399
|
+
* ```typescript
|
|
12400
|
+
* // Direct property access
|
|
12401
|
+
* const value = emailforwardmetrics[KEY_EMAIL_FORWARD_METRICS_TOTAL_LOGS];
|
|
12402
|
+
*
|
|
12403
|
+
* // Dynamic property access
|
|
12404
|
+
* const propertyName = KEY_EMAIL_FORWARD_METRICS_TOTAL_LOGS;
|
|
12405
|
+
* const value = emailforwardmetrics[propertyName];
|
|
12406
|
+
* ```
|
|
12407
|
+
*
|
|
12408
|
+
* @see {@link EmailForwardMetrics} - The TypeScript type definition
|
|
12409
|
+
* @see {@link KEYS_EMAIL_FORWARD_METRICS} - Array of all keys for this type
|
|
12410
|
+
*/
|
|
12411
|
+
export const KEY_EMAIL_FORWARD_METRICS_TOTAL_LOGS: keyof EmailForwardMetrics = 'total_logs';
|
|
12412
|
+
|
|
12413
|
+
/**
|
|
12414
|
+
* Array of all EmailForwardMetrics property keys
|
|
12415
|
+
*
|
|
12416
|
+
* @remarks
|
|
12417
|
+
* This constant provides a readonly array containing all valid property keys for EmailForwardMetrics objects.
|
|
12418
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
12419
|
+
*
|
|
12420
|
+
* @example
|
|
12421
|
+
* ```typescript
|
|
12422
|
+
* // Iterating through all keys
|
|
12423
|
+
* for (const key of KEYS_EMAIL_FORWARD_METRICS) {
|
|
12424
|
+
* console.log(`Property: ${key}, Value: ${emailforwardmetrics[key]}`);
|
|
12425
|
+
* }
|
|
12426
|
+
*
|
|
12427
|
+
* // Validation
|
|
12428
|
+
* const isValidKey = KEYS_EMAIL_FORWARD_METRICS.includes(someKey);
|
|
12429
|
+
* ```
|
|
12430
|
+
*
|
|
12431
|
+
* @see {@link EmailForwardMetrics} - The TypeScript type definition
|
|
12432
|
+
*/
|
|
12433
|
+
export const KEYS_EMAIL_FORWARD_METRICS = [
|
|
12434
|
+
KEY_EMAIL_FORWARD_METRICS_ALIAS_COUNT,
|
|
12435
|
+
KEY_EMAIL_FORWARD_METRICS_BY_ALIAS,
|
|
12436
|
+
KEY_EMAIL_FORWARD_METRICS_BY_STATUS,
|
|
12437
|
+
KEY_EMAIL_FORWARD_METRICS_FILTERS,
|
|
12438
|
+
KEY_EMAIL_FORWARD_METRICS_RATES,
|
|
12439
|
+
KEY_EMAIL_FORWARD_METRICS_TOTAL_LOGS,
|
|
12440
|
+
] as const satisfies (keyof EmailForwardMetrics)[];
|
|
12441
|
+
|
|
12442
|
+
/**
|
|
12443
|
+
* Domain
|
|
12444
|
+
*
|
|
12445
|
+
* Domain name
|
|
12446
|
+
*
|
|
12447
|
+
* @type {string}
|
|
12448
|
+
*
|
|
12449
|
+
*
|
|
12450
|
+
* @remarks
|
|
12451
|
+
* This key constant provides type-safe access to the `domain` property of EmailForwardMetricsFilters objects.
|
|
12452
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12453
|
+
*
|
|
12454
|
+
* @example
|
|
12455
|
+
* ```typescript
|
|
12456
|
+
* // Direct property access
|
|
12457
|
+
* const value = emailforwardmetricsfilters[KEY_EMAIL_FORWARD_METRICS_FILTERS_DOMAIN];
|
|
12458
|
+
*
|
|
12459
|
+
* // Dynamic property access
|
|
12460
|
+
* const propertyName = KEY_EMAIL_FORWARD_METRICS_FILTERS_DOMAIN;
|
|
12461
|
+
* const value = emailforwardmetricsfilters[propertyName];
|
|
12462
|
+
* ```
|
|
12463
|
+
*
|
|
12464
|
+
* @see {@link EmailForwardMetricsFilters} - The TypeScript type definition
|
|
12465
|
+
* @see {@link KEYS_EMAIL_FORWARD_METRICS_FILTERS} - Array of all keys for this type
|
|
12466
|
+
*/
|
|
12467
|
+
export const KEY_EMAIL_FORWARD_METRICS_FILTERS_DOMAIN: keyof EmailForwardMetricsFilters = 'domain';
|
|
12468
|
+
/**
|
|
12469
|
+
* End Time
|
|
12470
|
+
*
|
|
12471
|
+
* End time filter (RFC3339)
|
|
12472
|
+
*
|
|
12473
|
+
*
|
|
12474
|
+
*
|
|
12475
|
+
* @remarks
|
|
12476
|
+
* This key constant provides type-safe access to the `end_time` property of EmailForwardMetricsFilters objects.
|
|
12477
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12478
|
+
*
|
|
12479
|
+
* @example
|
|
12480
|
+
* ```typescript
|
|
12481
|
+
* // Direct property access
|
|
12482
|
+
* const value = emailforwardmetricsfilters[KEY_EMAIL_FORWARD_METRICS_FILTERS_END_TIME];
|
|
12483
|
+
*
|
|
12484
|
+
* // Dynamic property access
|
|
12485
|
+
* const propertyName = KEY_EMAIL_FORWARD_METRICS_FILTERS_END_TIME;
|
|
12486
|
+
* const value = emailforwardmetricsfilters[propertyName];
|
|
12487
|
+
* ```
|
|
12488
|
+
*
|
|
12489
|
+
* @see {@link EmailForwardMetricsFilters} - The TypeScript type definition
|
|
12490
|
+
* @see {@link KEYS_EMAIL_FORWARD_METRICS_FILTERS} - Array of all keys for this type
|
|
12491
|
+
*/
|
|
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';
|
|
12518
|
+
/**
|
|
12519
|
+
* Start Time
|
|
12520
|
+
*
|
|
12521
|
+
* Start time filter (RFC3339)
|
|
12522
|
+
*
|
|
12523
|
+
*
|
|
12524
|
+
*
|
|
12525
|
+
* @remarks
|
|
12526
|
+
* This key constant provides type-safe access to the `start_time` property of EmailForwardMetricsFilters objects.
|
|
12527
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12528
|
+
*
|
|
12529
|
+
* @example
|
|
12530
|
+
* ```typescript
|
|
12531
|
+
* // Direct property access
|
|
12532
|
+
* const value = emailforwardmetricsfilters[KEY_EMAIL_FORWARD_METRICS_FILTERS_START_TIME];
|
|
12533
|
+
*
|
|
12534
|
+
* // Dynamic property access
|
|
12535
|
+
* const propertyName = KEY_EMAIL_FORWARD_METRICS_FILTERS_START_TIME;
|
|
12536
|
+
* const value = emailforwardmetricsfilters[propertyName];
|
|
12537
|
+
* ```
|
|
12538
|
+
*
|
|
12539
|
+
* @see {@link EmailForwardMetricsFilters} - The TypeScript type definition
|
|
12540
|
+
* @see {@link KEYS_EMAIL_FORWARD_METRICS_FILTERS} - Array of all keys for this type
|
|
12541
|
+
*/
|
|
12542
|
+
export const KEY_EMAIL_FORWARD_METRICS_FILTERS_START_TIME: keyof EmailForwardMetricsFilters = 'start_time';
|
|
12543
|
+
|
|
12544
|
+
/**
|
|
12545
|
+
* Array of all EmailForwardMetricsFilters property keys
|
|
12546
|
+
*
|
|
12547
|
+
* @remarks
|
|
12548
|
+
* This constant provides a readonly array containing all valid property keys for EmailForwardMetricsFilters objects.
|
|
12549
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
12550
|
+
*
|
|
12551
|
+
* @example
|
|
12552
|
+
* ```typescript
|
|
12553
|
+
* // Iterating through all keys
|
|
12554
|
+
* for (const key of KEYS_EMAIL_FORWARD_METRICS_FILTERS) {
|
|
12555
|
+
* console.log(`Property: ${key}, Value: ${emailforwardmetricsfilters[key]}`);
|
|
12556
|
+
* }
|
|
12557
|
+
*
|
|
12558
|
+
* // Validation
|
|
12559
|
+
* const isValidKey = KEYS_EMAIL_FORWARD_METRICS_FILTERS.includes(someKey);
|
|
12560
|
+
* ```
|
|
12561
|
+
*
|
|
12562
|
+
* @see {@link EmailForwardMetricsFilters} - The TypeScript type definition
|
|
12563
|
+
*/
|
|
12564
|
+
export const KEYS_EMAIL_FORWARD_METRICS_FILTERS = [
|
|
12565
|
+
KEY_EMAIL_FORWARD_METRICS_FILTERS_DOMAIN,
|
|
12566
|
+
KEY_EMAIL_FORWARD_METRICS_FILTERS_END_TIME,
|
|
12567
|
+
KEY_EMAIL_FORWARD_METRICS_FILTERS_INCLUDE_ALIASES,
|
|
12568
|
+
KEY_EMAIL_FORWARD_METRICS_FILTERS_START_TIME,
|
|
12569
|
+
] as const satisfies (keyof EmailForwardMetricsFilters)[];
|
|
12570
|
+
|
|
12571
|
+
/**
|
|
12572
|
+
* Bounce Rate
|
|
12573
|
+
*
|
|
12574
|
+
* Bounce rate percentage
|
|
12575
|
+
*
|
|
12576
|
+
* @type {number}
|
|
12577
|
+
*
|
|
12578
|
+
*
|
|
12579
|
+
* @remarks
|
|
12580
|
+
* This key constant provides type-safe access to the `bounce_rate` property of EmailForwardMetricsRates objects.
|
|
12581
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12582
|
+
*
|
|
12583
|
+
* @example
|
|
12584
|
+
* ```typescript
|
|
12585
|
+
* // Direct property access
|
|
12586
|
+
* const value = emailforwardmetricsrates[KEY_EMAIL_FORWARD_METRICS_RATES_BOUNCE_RATE];
|
|
12587
|
+
*
|
|
12588
|
+
* // Dynamic property access
|
|
12589
|
+
* const propertyName = KEY_EMAIL_FORWARD_METRICS_RATES_BOUNCE_RATE;
|
|
12590
|
+
* const value = emailforwardmetricsrates[propertyName];
|
|
12591
|
+
* ```
|
|
12592
|
+
*
|
|
12593
|
+
* @see {@link EmailForwardMetricsRates} - The TypeScript type definition
|
|
12594
|
+
* @see {@link KEYS_EMAIL_FORWARD_METRICS_RATES} - Array of all keys for this type
|
|
12595
|
+
*/
|
|
12596
|
+
export const KEY_EMAIL_FORWARD_METRICS_RATES_BOUNCE_RATE: keyof EmailForwardMetricsRates = 'bounce_rate';
|
|
12597
|
+
/**
|
|
12598
|
+
* Delivery Rate
|
|
12599
|
+
*
|
|
12600
|
+
* Delivery rate percentage
|
|
12601
|
+
*
|
|
12602
|
+
* @type {number}
|
|
12603
|
+
*
|
|
12604
|
+
*
|
|
12605
|
+
* @remarks
|
|
12606
|
+
* This key constant provides type-safe access to the `delivery_rate` property of EmailForwardMetricsRates objects.
|
|
12607
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12608
|
+
*
|
|
12609
|
+
* @example
|
|
12610
|
+
* ```typescript
|
|
12611
|
+
* // Direct property access
|
|
12612
|
+
* const value = emailforwardmetricsrates[KEY_EMAIL_FORWARD_METRICS_RATES_DELIVERY_RATE];
|
|
12613
|
+
*
|
|
12614
|
+
* // Dynamic property access
|
|
12615
|
+
* const propertyName = KEY_EMAIL_FORWARD_METRICS_RATES_DELIVERY_RATE;
|
|
12616
|
+
* const value = emailforwardmetricsrates[propertyName];
|
|
12617
|
+
* ```
|
|
12618
|
+
*
|
|
12619
|
+
* @see {@link EmailForwardMetricsRates} - The TypeScript type definition
|
|
12620
|
+
* @see {@link KEYS_EMAIL_FORWARD_METRICS_RATES} - Array of all keys for this type
|
|
12621
|
+
*/
|
|
12622
|
+
export const KEY_EMAIL_FORWARD_METRICS_RATES_DELIVERY_RATE: keyof EmailForwardMetricsRates = 'delivery_rate';
|
|
12623
|
+
/**
|
|
12624
|
+
* Queued Rate
|
|
12625
|
+
*
|
|
12626
|
+
* Queued rate percentage
|
|
12627
|
+
*
|
|
12628
|
+
* @type {number}
|
|
12629
|
+
*
|
|
12630
|
+
*
|
|
12631
|
+
* @remarks
|
|
12632
|
+
* This key constant provides type-safe access to the `queued_rate` property of EmailForwardMetricsRates objects.
|
|
12633
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12634
|
+
*
|
|
12635
|
+
* @example
|
|
12636
|
+
* ```typescript
|
|
12637
|
+
* // Direct property access
|
|
12638
|
+
* const value = emailforwardmetricsrates[KEY_EMAIL_FORWARD_METRICS_RATES_QUEUED_RATE];
|
|
12639
|
+
*
|
|
12640
|
+
* // Dynamic property access
|
|
12641
|
+
* const propertyName = KEY_EMAIL_FORWARD_METRICS_RATES_QUEUED_RATE;
|
|
12642
|
+
* const value = emailforwardmetricsrates[propertyName];
|
|
12643
|
+
* ```
|
|
12644
|
+
*
|
|
12645
|
+
* @see {@link EmailForwardMetricsRates} - The TypeScript type definition
|
|
12646
|
+
* @see {@link KEYS_EMAIL_FORWARD_METRICS_RATES} - Array of all keys for this type
|
|
12647
|
+
*/
|
|
12648
|
+
export const KEY_EMAIL_FORWARD_METRICS_RATES_QUEUED_RATE: keyof EmailForwardMetricsRates = 'queued_rate';
|
|
12649
|
+
/**
|
|
12650
|
+
* Refused Rate
|
|
12651
|
+
*
|
|
12652
|
+
* Refused rate percentage
|
|
12653
|
+
*
|
|
12654
|
+
* @type {number}
|
|
12655
|
+
*
|
|
12656
|
+
*
|
|
12657
|
+
* @remarks
|
|
12658
|
+
* This key constant provides type-safe access to the `refused_rate` property of EmailForwardMetricsRates objects.
|
|
12659
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12660
|
+
*
|
|
12661
|
+
* @example
|
|
12662
|
+
* ```typescript
|
|
12663
|
+
* // Direct property access
|
|
12664
|
+
* const value = emailforwardmetricsrates[KEY_EMAIL_FORWARD_METRICS_RATES_REFUSED_RATE];
|
|
12665
|
+
*
|
|
12666
|
+
* // Dynamic property access
|
|
12667
|
+
* const propertyName = KEY_EMAIL_FORWARD_METRICS_RATES_REFUSED_RATE;
|
|
12668
|
+
* const value = emailforwardmetricsrates[propertyName];
|
|
12669
|
+
* ```
|
|
12670
|
+
*
|
|
12671
|
+
* @see {@link EmailForwardMetricsRates} - The TypeScript type definition
|
|
12672
|
+
* @see {@link KEYS_EMAIL_FORWARD_METRICS_RATES} - Array of all keys for this type
|
|
12673
|
+
*/
|
|
12674
|
+
export const KEY_EMAIL_FORWARD_METRICS_RATES_REFUSED_RATE: keyof EmailForwardMetricsRates = 'refused_rate';
|
|
12675
|
+
|
|
12676
|
+
/**
|
|
12677
|
+
* Array of all EmailForwardMetricsRates property keys
|
|
12678
|
+
*
|
|
12679
|
+
* @remarks
|
|
12680
|
+
* This constant provides a readonly array containing all valid property keys for EmailForwardMetricsRates objects.
|
|
12681
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
12682
|
+
*
|
|
12683
|
+
* @example
|
|
12684
|
+
* ```typescript
|
|
12685
|
+
* // Iterating through all keys
|
|
12686
|
+
* for (const key of KEYS_EMAIL_FORWARD_METRICS_RATES) {
|
|
12687
|
+
* console.log(`Property: ${key}, Value: ${emailforwardmetricsrates[key]}`);
|
|
12688
|
+
* }
|
|
12689
|
+
*
|
|
12690
|
+
* // Validation
|
|
12691
|
+
* const isValidKey = KEYS_EMAIL_FORWARD_METRICS_RATES.includes(someKey);
|
|
12692
|
+
* ```
|
|
12693
|
+
*
|
|
12694
|
+
* @see {@link EmailForwardMetricsRates} - The TypeScript type definition
|
|
12695
|
+
*/
|
|
12696
|
+
export const KEYS_EMAIL_FORWARD_METRICS_RATES = [
|
|
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,
|
|
12701
|
+
] as const satisfies (keyof EmailForwardMetricsRates)[];
|
|
12702
|
+
|
|
12152
12703
|
/**
|
|
12153
12704
|
* Aliases
|
|
12154
12705
|
*
|
|
@@ -3589,6 +3589,59 @@ export type PATCH_EmailForwardsEmailForwardIdEnable_Request = {
|
|
|
3589
3589
|
*/
|
|
3590
3590
|
export type PATCH_EmailForwardsEmailForwardIdEnable_Request_Path = PATCH_EmailForwardsEmailForwardIdEnable_Request['parameters']['path'];
|
|
3591
3591
|
|
|
3592
|
+
/**
|
|
3593
|
+
* Request type for GET EmailForwardsEmailForwardIdMetrics endpoint
|
|
3594
|
+
*
|
|
3595
|
+
* Retrieve email forward metrics
|
|
3596
|
+
* Retrieves metrics and statistics for a specific email forward, including delivery rates and status counts.
|
|
3597
|
+
*
|
|
3598
|
+
* @remarks
|
|
3599
|
+
* This type defines the complete request structure for the GET EmailForwardsEmailForwardIdMetrics endpoint.
|
|
3600
|
+
* It includes all parameters (query, path) and request body types as defined in the OpenAPI specification.
|
|
3601
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
3602
|
+
*
|
|
3603
|
+
* @example
|
|
3604
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
3605
|
+
*
|
|
3606
|
+
* @path /v1/email-forwards/{email_forward_id}/metrics
|
|
3607
|
+
*
|
|
3608
|
+
* @see {@link GET_EmailForwardsEmailForwardIdMetrics_Request_Query} - Query parameters type
|
|
3609
|
+
* @see {@link GET_EmailForwardsEmailForwardIdMetrics_Request_Path} - Path parameters type
|
|
3610
|
+
* @see {@link GET_EmailForwardsEmailForwardIdMetrics_Request_Body} - Request body type
|
|
3611
|
+
*/
|
|
3612
|
+
export type GET_EmailForwardsEmailForwardIdMetrics_Request = {
|
|
3613
|
+
parameters: {
|
|
3614
|
+
query: operations['get_email_forward_metrics_v1_email_forwards__email_forward_id__metrics_get']['parameters']['query'];
|
|
3615
|
+
path: operations['get_email_forward_metrics_v1_email_forwards__email_forward_id__metrics_get']['parameters']['path'];
|
|
3616
|
+
};
|
|
3617
|
+
}
|
|
3618
|
+
/**
|
|
3619
|
+
* Query parameters for GET /v1/email-forwards/{email_forward_id}/metrics
|
|
3620
|
+
*
|
|
3621
|
+
* @remarks
|
|
3622
|
+
* This type defines the query parameters for the GET /v1/email-forwards/{email_forward_id}/metrics endpoint.
|
|
3623
|
+
* It provides type safety for all query parameters as defined in the OpenAPI specification.
|
|
3624
|
+
*
|
|
3625
|
+
* @example
|
|
3626
|
+
* Use this type to ensure type safety for query parameters.
|
|
3627
|
+
*
|
|
3628
|
+
* @path /v1/email-forwards/{email_forward_id}/metrics
|
|
3629
|
+
*/
|
|
3630
|
+
export type GET_EmailForwardsEmailForwardIdMetrics_Request_Query = GET_EmailForwardsEmailForwardIdMetrics_Request['parameters']['query'];
|
|
3631
|
+
/**
|
|
3632
|
+
* Path parameters for GET /v1/email-forwards/{email_forward_id}/metrics
|
|
3633
|
+
*
|
|
3634
|
+
* @remarks
|
|
3635
|
+
* This type defines the path parameters for the GET /v1/email-forwards/{email_forward_id}/metrics endpoint.
|
|
3636
|
+
* It provides type safety for all path parameters as defined in the OpenAPI specification.
|
|
3637
|
+
*
|
|
3638
|
+
* @example
|
|
3639
|
+
* Use this type to ensure type safety for path parameters.
|
|
3640
|
+
*
|
|
3641
|
+
* @path /v1/email-forwards/{email_forward_id}/metrics
|
|
3642
|
+
*/
|
|
3643
|
+
export type GET_EmailForwardsEmailForwardIdMetrics_Request_Path = GET_EmailForwardsEmailForwardIdMetrics_Request['parameters']['path'];
|
|
3644
|
+
|
|
3592
3645
|
/**
|
|
3593
3646
|
* Request type for GET Events endpoint
|
|
3594
3647
|
*
|