@opusdns/api 0.82.0 → 0.84.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 +798 -0
- package/src/helpers/requests.d.ts +347 -1
- package/src/helpers/responses.d.ts +329 -1
- package/src/helpers/schemas-arrays.d.ts +43 -1
- package/src/helpers/schemas.d.ts +112 -0
- package/src/openapi.yaml +541 -36
- package/src/schema.d.ts +405 -1
package/src/helpers/keys.ts
CHANGED
|
@@ -120,6 +120,12 @@ import { PricingPeriod } from './schemas';
|
|
|
120
120
|
import { Problem } from './schemas';
|
|
121
121
|
import { PublicAuthRequestForm } from './schemas';
|
|
122
122
|
import { RdapBase } from './schemas';
|
|
123
|
+
import { Redirect } from './schemas';
|
|
124
|
+
import { RedirectPatchOp } from './schemas';
|
|
125
|
+
import { RedirectPatchOps } from './schemas';
|
|
126
|
+
import { RedirectRemove } from './schemas';
|
|
127
|
+
import { RedirectSet } from './schemas';
|
|
128
|
+
import { RedirectUpdate } from './schemas';
|
|
123
129
|
import { RegistryLockBase } from './schemas';
|
|
124
130
|
import { RelationSet } from './schemas';
|
|
125
131
|
import { ReservedDomainsBase } from './schemas';
|
|
@@ -14445,6 +14451,798 @@ export const KEYS_RDAP_BASE = [
|
|
|
14445
14451
|
KEY_RDAP_BASE_RDAP_SERVER,
|
|
14446
14452
|
] as const satisfies (keyof RdapBase)[];
|
|
14447
14453
|
|
|
14454
|
+
/**
|
|
14455
|
+
* Redirect Code
|
|
14456
|
+
*
|
|
14457
|
+
*
|
|
14458
|
+
* @type {integer}
|
|
14459
|
+
*
|
|
14460
|
+
*
|
|
14461
|
+
* @remarks
|
|
14462
|
+
* This key constant provides type-safe access to the `redirect_code` property of Redirect objects.
|
|
14463
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14464
|
+
*
|
|
14465
|
+
* @example
|
|
14466
|
+
* ```typescript
|
|
14467
|
+
* // Direct property access
|
|
14468
|
+
* const value = redirect[KEY_REDIRECT_REDIRECT_CODE];
|
|
14469
|
+
*
|
|
14470
|
+
* // Dynamic property access
|
|
14471
|
+
* const propertyName = KEY_REDIRECT_REDIRECT_CODE;
|
|
14472
|
+
* const value = redirect[propertyName];
|
|
14473
|
+
* ```
|
|
14474
|
+
*
|
|
14475
|
+
* @see {@link Redirect} - The TypeScript type definition
|
|
14476
|
+
* @see {@link KEYS_REDIRECT} - Array of all keys for this type
|
|
14477
|
+
*/
|
|
14478
|
+
export const KEY_REDIRECT_REDIRECT_CODE = 'redirect_code' as keyof Redirect;
|
|
14479
|
+
/**
|
|
14480
|
+
* Request Domain
|
|
14481
|
+
*
|
|
14482
|
+
*
|
|
14483
|
+
* @type {string}
|
|
14484
|
+
*
|
|
14485
|
+
*
|
|
14486
|
+
* @remarks
|
|
14487
|
+
* This key constant provides type-safe access to the `request_domain` property of Redirect objects.
|
|
14488
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14489
|
+
*
|
|
14490
|
+
* @example
|
|
14491
|
+
* ```typescript
|
|
14492
|
+
* // Direct property access
|
|
14493
|
+
* const value = redirect[KEY_REDIRECT_REQUEST_DOMAIN];
|
|
14494
|
+
*
|
|
14495
|
+
* // Dynamic property access
|
|
14496
|
+
* const propertyName = KEY_REDIRECT_REQUEST_DOMAIN;
|
|
14497
|
+
* const value = redirect[propertyName];
|
|
14498
|
+
* ```
|
|
14499
|
+
*
|
|
14500
|
+
* @see {@link Redirect} - The TypeScript type definition
|
|
14501
|
+
* @see {@link KEYS_REDIRECT} - Array of all keys for this type
|
|
14502
|
+
*/
|
|
14503
|
+
export const KEY_REDIRECT_REQUEST_DOMAIN = 'request_domain' as keyof Redirect;
|
|
14504
|
+
/**
|
|
14505
|
+
* Request Path
|
|
14506
|
+
*
|
|
14507
|
+
*
|
|
14508
|
+
* @type {string}
|
|
14509
|
+
*
|
|
14510
|
+
*
|
|
14511
|
+
* @remarks
|
|
14512
|
+
* This key constant provides type-safe access to the `request_path` property of Redirect objects.
|
|
14513
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14514
|
+
*
|
|
14515
|
+
* @example
|
|
14516
|
+
* ```typescript
|
|
14517
|
+
* // Direct property access
|
|
14518
|
+
* const value = redirect[KEY_REDIRECT_REQUEST_PATH];
|
|
14519
|
+
*
|
|
14520
|
+
* // Dynamic property access
|
|
14521
|
+
* const propertyName = KEY_REDIRECT_REQUEST_PATH;
|
|
14522
|
+
* const value = redirect[propertyName];
|
|
14523
|
+
* ```
|
|
14524
|
+
*
|
|
14525
|
+
* @see {@link Redirect} - The TypeScript type definition
|
|
14526
|
+
* @see {@link KEYS_REDIRECT} - Array of all keys for this type
|
|
14527
|
+
*/
|
|
14528
|
+
export const KEY_REDIRECT_REQUEST_PATH = 'request_path' as keyof Redirect;
|
|
14529
|
+
/**
|
|
14530
|
+
* Request Protocol
|
|
14531
|
+
*
|
|
14532
|
+
*
|
|
14533
|
+
* @type {string}
|
|
14534
|
+
*
|
|
14535
|
+
*
|
|
14536
|
+
* @remarks
|
|
14537
|
+
* This key constant provides type-safe access to the `request_protocol` property of Redirect objects.
|
|
14538
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14539
|
+
*
|
|
14540
|
+
* @example
|
|
14541
|
+
* ```typescript
|
|
14542
|
+
* // Direct property access
|
|
14543
|
+
* const value = redirect[KEY_REDIRECT_REQUEST_PROTOCOL];
|
|
14544
|
+
*
|
|
14545
|
+
* // Dynamic property access
|
|
14546
|
+
* const propertyName = KEY_REDIRECT_REQUEST_PROTOCOL;
|
|
14547
|
+
* const value = redirect[propertyName];
|
|
14548
|
+
* ```
|
|
14549
|
+
*
|
|
14550
|
+
* @see {@link Redirect} - The TypeScript type definition
|
|
14551
|
+
* @see {@link KEYS_REDIRECT} - Array of all keys for this type
|
|
14552
|
+
*/
|
|
14553
|
+
export const KEY_REDIRECT_REQUEST_PROTOCOL = 'request_protocol' as keyof Redirect;
|
|
14554
|
+
/**
|
|
14555
|
+
* Request Subdomain
|
|
14556
|
+
*
|
|
14557
|
+
*
|
|
14558
|
+
* @type {string}
|
|
14559
|
+
*
|
|
14560
|
+
*
|
|
14561
|
+
* @remarks
|
|
14562
|
+
* This key constant provides type-safe access to the `request_subdomain` property of Redirect objects.
|
|
14563
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14564
|
+
*
|
|
14565
|
+
* @example
|
|
14566
|
+
* ```typescript
|
|
14567
|
+
* // Direct property access
|
|
14568
|
+
* const value = redirect[KEY_REDIRECT_REQUEST_SUBDOMAIN];
|
|
14569
|
+
*
|
|
14570
|
+
* // Dynamic property access
|
|
14571
|
+
* const propertyName = KEY_REDIRECT_REQUEST_SUBDOMAIN;
|
|
14572
|
+
* const value = redirect[propertyName];
|
|
14573
|
+
* ```
|
|
14574
|
+
*
|
|
14575
|
+
* @see {@link Redirect} - The TypeScript type definition
|
|
14576
|
+
* @see {@link KEYS_REDIRECT} - Array of all keys for this type
|
|
14577
|
+
*/
|
|
14578
|
+
export const KEY_REDIRECT_REQUEST_SUBDOMAIN = 'request_subdomain' as keyof Redirect;
|
|
14579
|
+
/**
|
|
14580
|
+
* Target Domain
|
|
14581
|
+
*
|
|
14582
|
+
*
|
|
14583
|
+
* @type {string}
|
|
14584
|
+
*
|
|
14585
|
+
*
|
|
14586
|
+
* @remarks
|
|
14587
|
+
* This key constant provides type-safe access to the `target_domain` property of Redirect objects.
|
|
14588
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14589
|
+
*
|
|
14590
|
+
* @example
|
|
14591
|
+
* ```typescript
|
|
14592
|
+
* // Direct property access
|
|
14593
|
+
* const value = redirect[KEY_REDIRECT_TARGET_DOMAIN];
|
|
14594
|
+
*
|
|
14595
|
+
* // Dynamic property access
|
|
14596
|
+
* const propertyName = KEY_REDIRECT_TARGET_DOMAIN;
|
|
14597
|
+
* const value = redirect[propertyName];
|
|
14598
|
+
* ```
|
|
14599
|
+
*
|
|
14600
|
+
* @see {@link Redirect} - The TypeScript type definition
|
|
14601
|
+
* @see {@link KEYS_REDIRECT} - Array of all keys for this type
|
|
14602
|
+
*/
|
|
14603
|
+
export const KEY_REDIRECT_TARGET_DOMAIN = 'target_domain' as keyof Redirect;
|
|
14604
|
+
/**
|
|
14605
|
+
* Target Path
|
|
14606
|
+
*
|
|
14607
|
+
*
|
|
14608
|
+
* @type {string}
|
|
14609
|
+
*
|
|
14610
|
+
*
|
|
14611
|
+
* @remarks
|
|
14612
|
+
* This key constant provides type-safe access to the `target_path` property of Redirect objects.
|
|
14613
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14614
|
+
*
|
|
14615
|
+
* @example
|
|
14616
|
+
* ```typescript
|
|
14617
|
+
* // Direct property access
|
|
14618
|
+
* const value = redirect[KEY_REDIRECT_TARGET_PATH];
|
|
14619
|
+
*
|
|
14620
|
+
* // Dynamic property access
|
|
14621
|
+
* const propertyName = KEY_REDIRECT_TARGET_PATH;
|
|
14622
|
+
* const value = redirect[propertyName];
|
|
14623
|
+
* ```
|
|
14624
|
+
*
|
|
14625
|
+
* @see {@link Redirect} - The TypeScript type definition
|
|
14626
|
+
* @see {@link KEYS_REDIRECT} - Array of all keys for this type
|
|
14627
|
+
*/
|
|
14628
|
+
export const KEY_REDIRECT_TARGET_PATH = 'target_path' as keyof Redirect;
|
|
14629
|
+
/**
|
|
14630
|
+
* Target Protocol
|
|
14631
|
+
*
|
|
14632
|
+
*
|
|
14633
|
+
* @type {string}
|
|
14634
|
+
*
|
|
14635
|
+
*
|
|
14636
|
+
* @remarks
|
|
14637
|
+
* This key constant provides type-safe access to the `target_protocol` property of Redirect objects.
|
|
14638
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14639
|
+
*
|
|
14640
|
+
* @example
|
|
14641
|
+
* ```typescript
|
|
14642
|
+
* // Direct property access
|
|
14643
|
+
* const value = redirect[KEY_REDIRECT_TARGET_PROTOCOL];
|
|
14644
|
+
*
|
|
14645
|
+
* // Dynamic property access
|
|
14646
|
+
* const propertyName = KEY_REDIRECT_TARGET_PROTOCOL;
|
|
14647
|
+
* const value = redirect[propertyName];
|
|
14648
|
+
* ```
|
|
14649
|
+
*
|
|
14650
|
+
* @see {@link Redirect} - The TypeScript type definition
|
|
14651
|
+
* @see {@link KEYS_REDIRECT} - Array of all keys for this type
|
|
14652
|
+
*/
|
|
14653
|
+
export const KEY_REDIRECT_TARGET_PROTOCOL = 'target_protocol' as keyof Redirect;
|
|
14654
|
+
/**
|
|
14655
|
+
* Target Subdomain
|
|
14656
|
+
*
|
|
14657
|
+
*
|
|
14658
|
+
* @type {string}
|
|
14659
|
+
*
|
|
14660
|
+
*
|
|
14661
|
+
* @remarks
|
|
14662
|
+
* This key constant provides type-safe access to the `target_subdomain` property of Redirect objects.
|
|
14663
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14664
|
+
*
|
|
14665
|
+
* @example
|
|
14666
|
+
* ```typescript
|
|
14667
|
+
* // Direct property access
|
|
14668
|
+
* const value = redirect[KEY_REDIRECT_TARGET_SUBDOMAIN];
|
|
14669
|
+
*
|
|
14670
|
+
* // Dynamic property access
|
|
14671
|
+
* const propertyName = KEY_REDIRECT_TARGET_SUBDOMAIN;
|
|
14672
|
+
* const value = redirect[propertyName];
|
|
14673
|
+
* ```
|
|
14674
|
+
*
|
|
14675
|
+
* @see {@link Redirect} - The TypeScript type definition
|
|
14676
|
+
* @see {@link KEYS_REDIRECT} - Array of all keys for this type
|
|
14677
|
+
*/
|
|
14678
|
+
export const KEY_REDIRECT_TARGET_SUBDOMAIN = 'target_subdomain' as keyof Redirect;
|
|
14679
|
+
|
|
14680
|
+
/**
|
|
14681
|
+
* Array of all Redirect property keys
|
|
14682
|
+
*
|
|
14683
|
+
* @remarks
|
|
14684
|
+
* This constant provides a readonly array containing all valid property keys for Redirect objects.
|
|
14685
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
14686
|
+
*
|
|
14687
|
+
* @example
|
|
14688
|
+
* ```typescript
|
|
14689
|
+
* // Iterating through all keys
|
|
14690
|
+
* for (const key of KEYS_REDIRECT) {
|
|
14691
|
+
* console.log(`Property: ${key}, Value: ${redirect[key]}`);
|
|
14692
|
+
* }
|
|
14693
|
+
*
|
|
14694
|
+
* // Validation
|
|
14695
|
+
* const isValidKey = KEYS_REDIRECT.includes(someKey);
|
|
14696
|
+
* ```
|
|
14697
|
+
*
|
|
14698
|
+
* @see {@link Redirect} - The TypeScript type definition
|
|
14699
|
+
*/
|
|
14700
|
+
export const KEYS_REDIRECT = [
|
|
14701
|
+
KEY_REDIRECT_REDIRECT_CODE,
|
|
14702
|
+
KEY_REDIRECT_REQUEST_DOMAIN,
|
|
14703
|
+
KEY_REDIRECT_REQUEST_PATH,
|
|
14704
|
+
KEY_REDIRECT_REQUEST_PROTOCOL,
|
|
14705
|
+
KEY_REDIRECT_REQUEST_SUBDOMAIN,
|
|
14706
|
+
KEY_REDIRECT_TARGET_DOMAIN,
|
|
14707
|
+
KEY_REDIRECT_TARGET_PATH,
|
|
14708
|
+
KEY_REDIRECT_TARGET_PROTOCOL,
|
|
14709
|
+
KEY_REDIRECT_TARGET_SUBDOMAIN,
|
|
14710
|
+
] as const satisfies (keyof Redirect)[];
|
|
14711
|
+
|
|
14712
|
+
/**
|
|
14713
|
+
* op property
|
|
14714
|
+
*
|
|
14715
|
+
*
|
|
14716
|
+
*
|
|
14717
|
+
*
|
|
14718
|
+
* @remarks
|
|
14719
|
+
* This key constant provides type-safe access to the `op` property of RedirectPatchOp objects.
|
|
14720
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14721
|
+
*
|
|
14722
|
+
* @example
|
|
14723
|
+
* ```typescript
|
|
14724
|
+
* // Direct property access
|
|
14725
|
+
* const value = redirectpatchop[KEY_REDIRECT_PATCH_OP_OP];
|
|
14726
|
+
*
|
|
14727
|
+
* // Dynamic property access
|
|
14728
|
+
* const propertyName = KEY_REDIRECT_PATCH_OP_OP;
|
|
14729
|
+
* const value = redirectpatchop[propertyName];
|
|
14730
|
+
* ```
|
|
14731
|
+
*
|
|
14732
|
+
* @see {@link RedirectPatchOp} - The TypeScript type definition
|
|
14733
|
+
* @see {@link KEYS_REDIRECT_PATCH_OP} - Array of all keys for this type
|
|
14734
|
+
*/
|
|
14735
|
+
export const KEY_REDIRECT_PATCH_OP_OP = 'op' as keyof RedirectPatchOp;
|
|
14736
|
+
/**
|
|
14737
|
+
* Redirect
|
|
14738
|
+
*
|
|
14739
|
+
*
|
|
14740
|
+
*
|
|
14741
|
+
*
|
|
14742
|
+
* @remarks
|
|
14743
|
+
* This key constant provides type-safe access to the `redirect` property of RedirectPatchOp objects.
|
|
14744
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14745
|
+
*
|
|
14746
|
+
* @example
|
|
14747
|
+
* ```typescript
|
|
14748
|
+
* // Direct property access
|
|
14749
|
+
* const value = redirectpatchop[KEY_REDIRECT_PATCH_OP_REDIRECT];
|
|
14750
|
+
*
|
|
14751
|
+
* // Dynamic property access
|
|
14752
|
+
* const propertyName = KEY_REDIRECT_PATCH_OP_REDIRECT;
|
|
14753
|
+
* const value = redirectpatchop[propertyName];
|
|
14754
|
+
* ```
|
|
14755
|
+
*
|
|
14756
|
+
* @see {@link RedirectPatchOp} - The TypeScript type definition
|
|
14757
|
+
* @see {@link KEYS_REDIRECT_PATCH_OP} - Array of all keys for this type
|
|
14758
|
+
*/
|
|
14759
|
+
export const KEY_REDIRECT_PATCH_OP_REDIRECT = 'redirect' as keyof RedirectPatchOp;
|
|
14760
|
+
|
|
14761
|
+
/**
|
|
14762
|
+
* Array of all RedirectPatchOp property keys
|
|
14763
|
+
*
|
|
14764
|
+
* @remarks
|
|
14765
|
+
* This constant provides a readonly array containing all valid property keys for RedirectPatchOp objects.
|
|
14766
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
14767
|
+
*
|
|
14768
|
+
* @example
|
|
14769
|
+
* ```typescript
|
|
14770
|
+
* // Iterating through all keys
|
|
14771
|
+
* for (const key of KEYS_REDIRECT_PATCH_OP) {
|
|
14772
|
+
* console.log(`Property: ${key}, Value: ${redirectpatchop[key]}`);
|
|
14773
|
+
* }
|
|
14774
|
+
*
|
|
14775
|
+
* // Validation
|
|
14776
|
+
* const isValidKey = KEYS_REDIRECT_PATCH_OP.includes(someKey);
|
|
14777
|
+
* ```
|
|
14778
|
+
*
|
|
14779
|
+
* @see {@link RedirectPatchOp} - The TypeScript type definition
|
|
14780
|
+
*/
|
|
14781
|
+
export const KEYS_REDIRECT_PATCH_OP = [
|
|
14782
|
+
KEY_REDIRECT_PATCH_OP_OP,
|
|
14783
|
+
KEY_REDIRECT_PATCH_OP_REDIRECT,
|
|
14784
|
+
] as const satisfies (keyof RedirectPatchOp)[];
|
|
14785
|
+
|
|
14786
|
+
/**
|
|
14787
|
+
* Ops
|
|
14788
|
+
*
|
|
14789
|
+
*
|
|
14790
|
+
* @type {array}
|
|
14791
|
+
*
|
|
14792
|
+
*
|
|
14793
|
+
* @remarks
|
|
14794
|
+
* This key constant provides type-safe access to the `ops` property of RedirectPatchOps objects.
|
|
14795
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14796
|
+
*
|
|
14797
|
+
* @example
|
|
14798
|
+
* ```typescript
|
|
14799
|
+
* // Direct property access
|
|
14800
|
+
* const value = redirectpatchops[KEY_REDIRECT_PATCH_OPS_OPS];
|
|
14801
|
+
*
|
|
14802
|
+
* // Dynamic property access
|
|
14803
|
+
* const propertyName = KEY_REDIRECT_PATCH_OPS_OPS;
|
|
14804
|
+
* const value = redirectpatchops[propertyName];
|
|
14805
|
+
* ```
|
|
14806
|
+
*
|
|
14807
|
+
* @see {@link RedirectPatchOps} - The TypeScript type definition
|
|
14808
|
+
* @see {@link KEYS_REDIRECT_PATCH_OPS} - Array of all keys for this type
|
|
14809
|
+
*/
|
|
14810
|
+
export const KEY_REDIRECT_PATCH_OPS_OPS = 'ops' as keyof RedirectPatchOps;
|
|
14811
|
+
|
|
14812
|
+
/**
|
|
14813
|
+
* Array of all RedirectPatchOps property keys
|
|
14814
|
+
*
|
|
14815
|
+
* @remarks
|
|
14816
|
+
* This constant provides a readonly array containing all valid property keys for RedirectPatchOps objects.
|
|
14817
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
14818
|
+
*
|
|
14819
|
+
* @example
|
|
14820
|
+
* ```typescript
|
|
14821
|
+
* // Iterating through all keys
|
|
14822
|
+
* for (const key of KEYS_REDIRECT_PATCH_OPS) {
|
|
14823
|
+
* console.log(`Property: ${key}, Value: ${redirectpatchops[key]}`);
|
|
14824
|
+
* }
|
|
14825
|
+
*
|
|
14826
|
+
* // Validation
|
|
14827
|
+
* const isValidKey = KEYS_REDIRECT_PATCH_OPS.includes(someKey);
|
|
14828
|
+
* ```
|
|
14829
|
+
*
|
|
14830
|
+
* @see {@link RedirectPatchOps} - The TypeScript type definition
|
|
14831
|
+
*/
|
|
14832
|
+
export const KEYS_REDIRECT_PATCH_OPS = [
|
|
14833
|
+
KEY_REDIRECT_PATCH_OPS_OPS,
|
|
14834
|
+
] as const satisfies (keyof RedirectPatchOps)[];
|
|
14835
|
+
|
|
14836
|
+
/**
|
|
14837
|
+
* Request Domain
|
|
14838
|
+
*
|
|
14839
|
+
*
|
|
14840
|
+
* @type {string}
|
|
14841
|
+
*
|
|
14842
|
+
*
|
|
14843
|
+
* @remarks
|
|
14844
|
+
* This key constant provides type-safe access to the `request_domain` property of RedirectRemove objects.
|
|
14845
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14846
|
+
*
|
|
14847
|
+
* @example
|
|
14848
|
+
* ```typescript
|
|
14849
|
+
* // Direct property access
|
|
14850
|
+
* const value = redirectremove[KEY_REDIRECT_REMOVE_REQUEST_DOMAIN];
|
|
14851
|
+
*
|
|
14852
|
+
* // Dynamic property access
|
|
14853
|
+
* const propertyName = KEY_REDIRECT_REMOVE_REQUEST_DOMAIN;
|
|
14854
|
+
* const value = redirectremove[propertyName];
|
|
14855
|
+
* ```
|
|
14856
|
+
*
|
|
14857
|
+
* @see {@link RedirectRemove} - The TypeScript type definition
|
|
14858
|
+
* @see {@link KEYS_REDIRECT_REMOVE} - Array of all keys for this type
|
|
14859
|
+
*/
|
|
14860
|
+
export const KEY_REDIRECT_REMOVE_REQUEST_DOMAIN = 'request_domain' as keyof RedirectRemove;
|
|
14861
|
+
/**
|
|
14862
|
+
* Request Path
|
|
14863
|
+
*
|
|
14864
|
+
*
|
|
14865
|
+
* @type {string}
|
|
14866
|
+
*
|
|
14867
|
+
*
|
|
14868
|
+
* @remarks
|
|
14869
|
+
* This key constant provides type-safe access to the `request_path` property of RedirectRemove objects.
|
|
14870
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14871
|
+
*
|
|
14872
|
+
* @example
|
|
14873
|
+
* ```typescript
|
|
14874
|
+
* // Direct property access
|
|
14875
|
+
* const value = redirectremove[KEY_REDIRECT_REMOVE_REQUEST_PATH];
|
|
14876
|
+
*
|
|
14877
|
+
* // Dynamic property access
|
|
14878
|
+
* const propertyName = KEY_REDIRECT_REMOVE_REQUEST_PATH;
|
|
14879
|
+
* const value = redirectremove[propertyName];
|
|
14880
|
+
* ```
|
|
14881
|
+
*
|
|
14882
|
+
* @see {@link RedirectRemove} - The TypeScript type definition
|
|
14883
|
+
* @see {@link KEYS_REDIRECT_REMOVE} - Array of all keys for this type
|
|
14884
|
+
*/
|
|
14885
|
+
export const KEY_REDIRECT_REMOVE_REQUEST_PATH = 'request_path' as keyof RedirectRemove;
|
|
14886
|
+
/**
|
|
14887
|
+
* Request Protocol
|
|
14888
|
+
*
|
|
14889
|
+
*
|
|
14890
|
+
* @type {string}
|
|
14891
|
+
*
|
|
14892
|
+
*
|
|
14893
|
+
* @remarks
|
|
14894
|
+
* This key constant provides type-safe access to the `request_protocol` property of RedirectRemove objects.
|
|
14895
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14896
|
+
*
|
|
14897
|
+
* @example
|
|
14898
|
+
* ```typescript
|
|
14899
|
+
* // Direct property access
|
|
14900
|
+
* const value = redirectremove[KEY_REDIRECT_REMOVE_REQUEST_PROTOCOL];
|
|
14901
|
+
*
|
|
14902
|
+
* // Dynamic property access
|
|
14903
|
+
* const propertyName = KEY_REDIRECT_REMOVE_REQUEST_PROTOCOL;
|
|
14904
|
+
* const value = redirectremove[propertyName];
|
|
14905
|
+
* ```
|
|
14906
|
+
*
|
|
14907
|
+
* @see {@link RedirectRemove} - The TypeScript type definition
|
|
14908
|
+
* @see {@link KEYS_REDIRECT_REMOVE} - Array of all keys for this type
|
|
14909
|
+
*/
|
|
14910
|
+
export const KEY_REDIRECT_REMOVE_REQUEST_PROTOCOL = 'request_protocol' as keyof RedirectRemove;
|
|
14911
|
+
/**
|
|
14912
|
+
* Request Subdomain
|
|
14913
|
+
*
|
|
14914
|
+
*
|
|
14915
|
+
* @type {string}
|
|
14916
|
+
*
|
|
14917
|
+
*
|
|
14918
|
+
* @remarks
|
|
14919
|
+
* This key constant provides type-safe access to the `request_subdomain` property of RedirectRemove objects.
|
|
14920
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14921
|
+
*
|
|
14922
|
+
* @example
|
|
14923
|
+
* ```typescript
|
|
14924
|
+
* // Direct property access
|
|
14925
|
+
* const value = redirectremove[KEY_REDIRECT_REMOVE_REQUEST_SUBDOMAIN];
|
|
14926
|
+
*
|
|
14927
|
+
* // Dynamic property access
|
|
14928
|
+
* const propertyName = KEY_REDIRECT_REMOVE_REQUEST_SUBDOMAIN;
|
|
14929
|
+
* const value = redirectremove[propertyName];
|
|
14930
|
+
* ```
|
|
14931
|
+
*
|
|
14932
|
+
* @see {@link RedirectRemove} - The TypeScript type definition
|
|
14933
|
+
* @see {@link KEYS_REDIRECT_REMOVE} - Array of all keys for this type
|
|
14934
|
+
*/
|
|
14935
|
+
export const KEY_REDIRECT_REMOVE_REQUEST_SUBDOMAIN = 'request_subdomain' as keyof RedirectRemove;
|
|
14936
|
+
|
|
14937
|
+
/**
|
|
14938
|
+
* Array of all RedirectRemove property keys
|
|
14939
|
+
*
|
|
14940
|
+
* @remarks
|
|
14941
|
+
* This constant provides a readonly array containing all valid property keys for RedirectRemove objects.
|
|
14942
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
14943
|
+
*
|
|
14944
|
+
* @example
|
|
14945
|
+
* ```typescript
|
|
14946
|
+
* // Iterating through all keys
|
|
14947
|
+
* for (const key of KEYS_REDIRECT_REMOVE) {
|
|
14948
|
+
* console.log(`Property: ${key}, Value: ${redirectremove[key]}`);
|
|
14949
|
+
* }
|
|
14950
|
+
*
|
|
14951
|
+
* // Validation
|
|
14952
|
+
* const isValidKey = KEYS_REDIRECT_REMOVE.includes(someKey);
|
|
14953
|
+
* ```
|
|
14954
|
+
*
|
|
14955
|
+
* @see {@link RedirectRemove} - The TypeScript type definition
|
|
14956
|
+
*/
|
|
14957
|
+
export const KEYS_REDIRECT_REMOVE = [
|
|
14958
|
+
KEY_REDIRECT_REMOVE_REQUEST_DOMAIN,
|
|
14959
|
+
KEY_REDIRECT_REMOVE_REQUEST_PATH,
|
|
14960
|
+
KEY_REDIRECT_REMOVE_REQUEST_PROTOCOL,
|
|
14961
|
+
KEY_REDIRECT_REMOVE_REQUEST_SUBDOMAIN,
|
|
14962
|
+
] as const satisfies (keyof RedirectRemove)[];
|
|
14963
|
+
|
|
14964
|
+
/**
|
|
14965
|
+
* Redirects
|
|
14966
|
+
*
|
|
14967
|
+
*
|
|
14968
|
+
* @type {array}
|
|
14969
|
+
*
|
|
14970
|
+
*
|
|
14971
|
+
* @remarks
|
|
14972
|
+
* This key constant provides type-safe access to the `redirects` property of RedirectSet objects.
|
|
14973
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14974
|
+
*
|
|
14975
|
+
* @example
|
|
14976
|
+
* ```typescript
|
|
14977
|
+
* // Direct property access
|
|
14978
|
+
* const value = redirectset[KEY_REDIRECT_SET_REDIRECTS];
|
|
14979
|
+
*
|
|
14980
|
+
* // Dynamic property access
|
|
14981
|
+
* const propertyName = KEY_REDIRECT_SET_REDIRECTS;
|
|
14982
|
+
* const value = redirectset[propertyName];
|
|
14983
|
+
* ```
|
|
14984
|
+
*
|
|
14985
|
+
* @see {@link RedirectSet} - The TypeScript type definition
|
|
14986
|
+
* @see {@link KEYS_REDIRECT_SET} - Array of all keys for this type
|
|
14987
|
+
*/
|
|
14988
|
+
export const KEY_REDIRECT_SET_REDIRECTS = 'redirects' as keyof RedirectSet;
|
|
14989
|
+
|
|
14990
|
+
/**
|
|
14991
|
+
* Array of all RedirectSet property keys
|
|
14992
|
+
*
|
|
14993
|
+
* @remarks
|
|
14994
|
+
* This constant provides a readonly array containing all valid property keys for RedirectSet objects.
|
|
14995
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
14996
|
+
*
|
|
14997
|
+
* @example
|
|
14998
|
+
* ```typescript
|
|
14999
|
+
* // Iterating through all keys
|
|
15000
|
+
* for (const key of KEYS_REDIRECT_SET) {
|
|
15001
|
+
* console.log(`Property: ${key}, Value: ${redirectset[key]}`);
|
|
15002
|
+
* }
|
|
15003
|
+
*
|
|
15004
|
+
* // Validation
|
|
15005
|
+
* const isValidKey = KEYS_REDIRECT_SET.includes(someKey);
|
|
15006
|
+
* ```
|
|
15007
|
+
*
|
|
15008
|
+
* @see {@link RedirectSet} - The TypeScript type definition
|
|
15009
|
+
*/
|
|
15010
|
+
export const KEYS_REDIRECT_SET = [
|
|
15011
|
+
KEY_REDIRECT_SET_REDIRECTS,
|
|
15012
|
+
] as const satisfies (keyof RedirectSet)[];
|
|
15013
|
+
|
|
15014
|
+
/**
|
|
15015
|
+
* Redirect Code
|
|
15016
|
+
*
|
|
15017
|
+
*
|
|
15018
|
+
* @type {integer}
|
|
15019
|
+
*
|
|
15020
|
+
*
|
|
15021
|
+
* @remarks
|
|
15022
|
+
* This key constant provides type-safe access to the `redirect_code` property of RedirectUpdate objects.
|
|
15023
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
15024
|
+
*
|
|
15025
|
+
* @example
|
|
15026
|
+
* ```typescript
|
|
15027
|
+
* // Direct property access
|
|
15028
|
+
* const value = redirectupdate[KEY_REDIRECT_UPDATE_REDIRECT_CODE];
|
|
15029
|
+
*
|
|
15030
|
+
* // Dynamic property access
|
|
15031
|
+
* const propertyName = KEY_REDIRECT_UPDATE_REDIRECT_CODE;
|
|
15032
|
+
* const value = redirectupdate[propertyName];
|
|
15033
|
+
* ```
|
|
15034
|
+
*
|
|
15035
|
+
* @see {@link RedirectUpdate} - The TypeScript type definition
|
|
15036
|
+
* @see {@link KEYS_REDIRECT_UPDATE} - Array of all keys for this type
|
|
15037
|
+
*/
|
|
15038
|
+
export const KEY_REDIRECT_UPDATE_REDIRECT_CODE = 'redirect_code' as keyof RedirectUpdate;
|
|
15039
|
+
/**
|
|
15040
|
+
* Request Path
|
|
15041
|
+
*
|
|
15042
|
+
*
|
|
15043
|
+
* @type {string}
|
|
15044
|
+
*
|
|
15045
|
+
*
|
|
15046
|
+
* @remarks
|
|
15047
|
+
* This key constant provides type-safe access to the `request_path` property of RedirectUpdate objects.
|
|
15048
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
15049
|
+
*
|
|
15050
|
+
* @example
|
|
15051
|
+
* ```typescript
|
|
15052
|
+
* // Direct property access
|
|
15053
|
+
* const value = redirectupdate[KEY_REDIRECT_UPDATE_REQUEST_PATH];
|
|
15054
|
+
*
|
|
15055
|
+
* // Dynamic property access
|
|
15056
|
+
* const propertyName = KEY_REDIRECT_UPDATE_REQUEST_PATH;
|
|
15057
|
+
* const value = redirectupdate[propertyName];
|
|
15058
|
+
* ```
|
|
15059
|
+
*
|
|
15060
|
+
* @see {@link RedirectUpdate} - The TypeScript type definition
|
|
15061
|
+
* @see {@link KEYS_REDIRECT_UPDATE} - Array of all keys for this type
|
|
15062
|
+
*/
|
|
15063
|
+
export const KEY_REDIRECT_UPDATE_REQUEST_PATH = 'request_path' as keyof RedirectUpdate;
|
|
15064
|
+
/**
|
|
15065
|
+
* Request Protocol
|
|
15066
|
+
*
|
|
15067
|
+
*
|
|
15068
|
+
* @type {string}
|
|
15069
|
+
*
|
|
15070
|
+
*
|
|
15071
|
+
* @remarks
|
|
15072
|
+
* This key constant provides type-safe access to the `request_protocol` property of RedirectUpdate objects.
|
|
15073
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
15074
|
+
*
|
|
15075
|
+
* @example
|
|
15076
|
+
* ```typescript
|
|
15077
|
+
* // Direct property access
|
|
15078
|
+
* const value = redirectupdate[KEY_REDIRECT_UPDATE_REQUEST_PROTOCOL];
|
|
15079
|
+
*
|
|
15080
|
+
* // Dynamic property access
|
|
15081
|
+
* const propertyName = KEY_REDIRECT_UPDATE_REQUEST_PROTOCOL;
|
|
15082
|
+
* const value = redirectupdate[propertyName];
|
|
15083
|
+
* ```
|
|
15084
|
+
*
|
|
15085
|
+
* @see {@link RedirectUpdate} - The TypeScript type definition
|
|
15086
|
+
* @see {@link KEYS_REDIRECT_UPDATE} - Array of all keys for this type
|
|
15087
|
+
*/
|
|
15088
|
+
export const KEY_REDIRECT_UPDATE_REQUEST_PROTOCOL = 'request_protocol' as keyof RedirectUpdate;
|
|
15089
|
+
/**
|
|
15090
|
+
* Request Subdomain
|
|
15091
|
+
*
|
|
15092
|
+
*
|
|
15093
|
+
* @type {string}
|
|
15094
|
+
*
|
|
15095
|
+
*
|
|
15096
|
+
* @remarks
|
|
15097
|
+
* This key constant provides type-safe access to the `request_subdomain` property of RedirectUpdate objects.
|
|
15098
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
15099
|
+
*
|
|
15100
|
+
* @example
|
|
15101
|
+
* ```typescript
|
|
15102
|
+
* // Direct property access
|
|
15103
|
+
* const value = redirectupdate[KEY_REDIRECT_UPDATE_REQUEST_SUBDOMAIN];
|
|
15104
|
+
*
|
|
15105
|
+
* // Dynamic property access
|
|
15106
|
+
* const propertyName = KEY_REDIRECT_UPDATE_REQUEST_SUBDOMAIN;
|
|
15107
|
+
* const value = redirectupdate[propertyName];
|
|
15108
|
+
* ```
|
|
15109
|
+
*
|
|
15110
|
+
* @see {@link RedirectUpdate} - The TypeScript type definition
|
|
15111
|
+
* @see {@link KEYS_REDIRECT_UPDATE} - Array of all keys for this type
|
|
15112
|
+
*/
|
|
15113
|
+
export const KEY_REDIRECT_UPDATE_REQUEST_SUBDOMAIN = 'request_subdomain' as keyof RedirectUpdate;
|
|
15114
|
+
/**
|
|
15115
|
+
* Target Domain
|
|
15116
|
+
*
|
|
15117
|
+
*
|
|
15118
|
+
* @type {string}
|
|
15119
|
+
*
|
|
15120
|
+
*
|
|
15121
|
+
* @remarks
|
|
15122
|
+
* This key constant provides type-safe access to the `target_domain` property of RedirectUpdate objects.
|
|
15123
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
15124
|
+
*
|
|
15125
|
+
* @example
|
|
15126
|
+
* ```typescript
|
|
15127
|
+
* // Direct property access
|
|
15128
|
+
* const value = redirectupdate[KEY_REDIRECT_UPDATE_TARGET_DOMAIN];
|
|
15129
|
+
*
|
|
15130
|
+
* // Dynamic property access
|
|
15131
|
+
* const propertyName = KEY_REDIRECT_UPDATE_TARGET_DOMAIN;
|
|
15132
|
+
* const value = redirectupdate[propertyName];
|
|
15133
|
+
* ```
|
|
15134
|
+
*
|
|
15135
|
+
* @see {@link RedirectUpdate} - The TypeScript type definition
|
|
15136
|
+
* @see {@link KEYS_REDIRECT_UPDATE} - Array of all keys for this type
|
|
15137
|
+
*/
|
|
15138
|
+
export const KEY_REDIRECT_UPDATE_TARGET_DOMAIN = 'target_domain' as keyof RedirectUpdate;
|
|
15139
|
+
/**
|
|
15140
|
+
* Target Path
|
|
15141
|
+
*
|
|
15142
|
+
*
|
|
15143
|
+
* @type {string}
|
|
15144
|
+
*
|
|
15145
|
+
*
|
|
15146
|
+
* @remarks
|
|
15147
|
+
* This key constant provides type-safe access to the `target_path` property of RedirectUpdate objects.
|
|
15148
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
15149
|
+
*
|
|
15150
|
+
* @example
|
|
15151
|
+
* ```typescript
|
|
15152
|
+
* // Direct property access
|
|
15153
|
+
* const value = redirectupdate[KEY_REDIRECT_UPDATE_TARGET_PATH];
|
|
15154
|
+
*
|
|
15155
|
+
* // Dynamic property access
|
|
15156
|
+
* const propertyName = KEY_REDIRECT_UPDATE_TARGET_PATH;
|
|
15157
|
+
* const value = redirectupdate[propertyName];
|
|
15158
|
+
* ```
|
|
15159
|
+
*
|
|
15160
|
+
* @see {@link RedirectUpdate} - The TypeScript type definition
|
|
15161
|
+
* @see {@link KEYS_REDIRECT_UPDATE} - Array of all keys for this type
|
|
15162
|
+
*/
|
|
15163
|
+
export const KEY_REDIRECT_UPDATE_TARGET_PATH = 'target_path' as keyof RedirectUpdate;
|
|
15164
|
+
/**
|
|
15165
|
+
* Target Protocol
|
|
15166
|
+
*
|
|
15167
|
+
*
|
|
15168
|
+
* @type {string}
|
|
15169
|
+
*
|
|
15170
|
+
*
|
|
15171
|
+
* @remarks
|
|
15172
|
+
* This key constant provides type-safe access to the `target_protocol` property of RedirectUpdate objects.
|
|
15173
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
15174
|
+
*
|
|
15175
|
+
* @example
|
|
15176
|
+
* ```typescript
|
|
15177
|
+
* // Direct property access
|
|
15178
|
+
* const value = redirectupdate[KEY_REDIRECT_UPDATE_TARGET_PROTOCOL];
|
|
15179
|
+
*
|
|
15180
|
+
* // Dynamic property access
|
|
15181
|
+
* const propertyName = KEY_REDIRECT_UPDATE_TARGET_PROTOCOL;
|
|
15182
|
+
* const value = redirectupdate[propertyName];
|
|
15183
|
+
* ```
|
|
15184
|
+
*
|
|
15185
|
+
* @see {@link RedirectUpdate} - The TypeScript type definition
|
|
15186
|
+
* @see {@link KEYS_REDIRECT_UPDATE} - Array of all keys for this type
|
|
15187
|
+
*/
|
|
15188
|
+
export const KEY_REDIRECT_UPDATE_TARGET_PROTOCOL = 'target_protocol' as keyof RedirectUpdate;
|
|
15189
|
+
/**
|
|
15190
|
+
* Target Subdomain
|
|
15191
|
+
*
|
|
15192
|
+
*
|
|
15193
|
+
* @type {string}
|
|
15194
|
+
*
|
|
15195
|
+
*
|
|
15196
|
+
* @remarks
|
|
15197
|
+
* This key constant provides type-safe access to the `target_subdomain` property of RedirectUpdate objects.
|
|
15198
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
15199
|
+
*
|
|
15200
|
+
* @example
|
|
15201
|
+
* ```typescript
|
|
15202
|
+
* // Direct property access
|
|
15203
|
+
* const value = redirectupdate[KEY_REDIRECT_UPDATE_TARGET_SUBDOMAIN];
|
|
15204
|
+
*
|
|
15205
|
+
* // Dynamic property access
|
|
15206
|
+
* const propertyName = KEY_REDIRECT_UPDATE_TARGET_SUBDOMAIN;
|
|
15207
|
+
* const value = redirectupdate[propertyName];
|
|
15208
|
+
* ```
|
|
15209
|
+
*
|
|
15210
|
+
* @see {@link RedirectUpdate} - The TypeScript type definition
|
|
15211
|
+
* @see {@link KEYS_REDIRECT_UPDATE} - Array of all keys for this type
|
|
15212
|
+
*/
|
|
15213
|
+
export const KEY_REDIRECT_UPDATE_TARGET_SUBDOMAIN = 'target_subdomain' as keyof RedirectUpdate;
|
|
15214
|
+
|
|
15215
|
+
/**
|
|
15216
|
+
* Array of all RedirectUpdate property keys
|
|
15217
|
+
*
|
|
15218
|
+
* @remarks
|
|
15219
|
+
* This constant provides a readonly array containing all valid property keys for RedirectUpdate objects.
|
|
15220
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
15221
|
+
*
|
|
15222
|
+
* @example
|
|
15223
|
+
* ```typescript
|
|
15224
|
+
* // Iterating through all keys
|
|
15225
|
+
* for (const key of KEYS_REDIRECT_UPDATE) {
|
|
15226
|
+
* console.log(`Property: ${key}, Value: ${redirectupdate[key]}`);
|
|
15227
|
+
* }
|
|
15228
|
+
*
|
|
15229
|
+
* // Validation
|
|
15230
|
+
* const isValidKey = KEYS_REDIRECT_UPDATE.includes(someKey);
|
|
15231
|
+
* ```
|
|
15232
|
+
*
|
|
15233
|
+
* @see {@link RedirectUpdate} - The TypeScript type definition
|
|
15234
|
+
*/
|
|
15235
|
+
export const KEYS_REDIRECT_UPDATE = [
|
|
15236
|
+
KEY_REDIRECT_UPDATE_REDIRECT_CODE,
|
|
15237
|
+
KEY_REDIRECT_UPDATE_REQUEST_PATH,
|
|
15238
|
+
KEY_REDIRECT_UPDATE_REQUEST_PROTOCOL,
|
|
15239
|
+
KEY_REDIRECT_UPDATE_REQUEST_SUBDOMAIN,
|
|
15240
|
+
KEY_REDIRECT_UPDATE_TARGET_DOMAIN,
|
|
15241
|
+
KEY_REDIRECT_UPDATE_TARGET_PATH,
|
|
15242
|
+
KEY_REDIRECT_UPDATE_TARGET_PROTOCOL,
|
|
15243
|
+
KEY_REDIRECT_UPDATE_TARGET_SUBDOMAIN,
|
|
15244
|
+
] as const satisfies (keyof RedirectUpdate)[];
|
|
15245
|
+
|
|
14448
15246
|
/**
|
|
14449
15247
|
* Prevents
|
|
14450
15248
|
*
|