@opusdns/api 0.82.0 → 0.83.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 +319 -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 +385 -1
- package/src/schema.d.ts +400 -0
package/src/schema.d.ts
CHANGED
|
@@ -282,6 +282,77 @@ export interface paths {
|
|
|
282
282
|
patch: operations["patch_zone_rrsets_v1_dns__zone_name__rrsets_patch"];
|
|
283
283
|
trace?: never;
|
|
284
284
|
};
|
|
285
|
+
"/v1/domain-forwards": {
|
|
286
|
+
parameters: {
|
|
287
|
+
query?: never;
|
|
288
|
+
header?: never;
|
|
289
|
+
path?: never;
|
|
290
|
+
cookie?: never;
|
|
291
|
+
};
|
|
292
|
+
get?: never;
|
|
293
|
+
put?: never;
|
|
294
|
+
post?: never;
|
|
295
|
+
delete?: never;
|
|
296
|
+
options?: never;
|
|
297
|
+
head?: never;
|
|
298
|
+
/** Patch Redirects */
|
|
299
|
+
patch: operations["patch_redirects_v1_domain_forwards_patch"];
|
|
300
|
+
trace?: never;
|
|
301
|
+
};
|
|
302
|
+
"/v1/domain-forwards/{zone_name}": {
|
|
303
|
+
parameters: {
|
|
304
|
+
query?: never;
|
|
305
|
+
header?: never;
|
|
306
|
+
path?: never;
|
|
307
|
+
cookie?: never;
|
|
308
|
+
};
|
|
309
|
+
/** Get Redirects */
|
|
310
|
+
get: operations["get_redirects_v1_domain_forwards__zone_name__get"];
|
|
311
|
+
/** Update Redirects */
|
|
312
|
+
put: operations["update_redirects_v1_domain_forwards__zone_name__put"];
|
|
313
|
+
/** Create Redirects */
|
|
314
|
+
post: operations["create_redirects_v1_domain_forwards__zone_name__post"];
|
|
315
|
+
/** Delete Redirects */
|
|
316
|
+
delete: operations["delete_redirects_v1_domain_forwards__zone_name__delete"];
|
|
317
|
+
options?: never;
|
|
318
|
+
head?: never;
|
|
319
|
+
patch?: never;
|
|
320
|
+
trace?: never;
|
|
321
|
+
};
|
|
322
|
+
"/v1/domain-forwards/{zone_name}/disable": {
|
|
323
|
+
parameters: {
|
|
324
|
+
query?: never;
|
|
325
|
+
header?: never;
|
|
326
|
+
path?: never;
|
|
327
|
+
cookie?: never;
|
|
328
|
+
};
|
|
329
|
+
get?: never;
|
|
330
|
+
put?: never;
|
|
331
|
+
post?: never;
|
|
332
|
+
delete?: never;
|
|
333
|
+
options?: never;
|
|
334
|
+
head?: never;
|
|
335
|
+
/** Disable Domain Forward */
|
|
336
|
+
patch: operations["disable_domain_forward_v1_domain_forwards__zone_name__disable_patch"];
|
|
337
|
+
trace?: never;
|
|
338
|
+
};
|
|
339
|
+
"/v1/domain-forwards/{zone_name}/enable": {
|
|
340
|
+
parameters: {
|
|
341
|
+
query?: never;
|
|
342
|
+
header?: never;
|
|
343
|
+
path?: never;
|
|
344
|
+
cookie?: never;
|
|
345
|
+
};
|
|
346
|
+
get?: never;
|
|
347
|
+
put?: never;
|
|
348
|
+
post?: never;
|
|
349
|
+
delete?: never;
|
|
350
|
+
options?: never;
|
|
351
|
+
head?: never;
|
|
352
|
+
/** Enable Domain Forward */
|
|
353
|
+
patch: operations["enable_domain_forward_v1_domain_forwards__zone_name__enable_patch"];
|
|
354
|
+
trace?: never;
|
|
355
|
+
};
|
|
285
356
|
"/v1/domain-search/suggest": {
|
|
286
357
|
parameters: {
|
|
287
358
|
query?: never;
|
|
@@ -3471,6 +3542,12 @@ export interface components {
|
|
|
3471
3542
|
/** Results */
|
|
3472
3543
|
results: components["schemas"]["Organization"][];
|
|
3473
3544
|
};
|
|
3545
|
+
/** Pagination[Redirect] */
|
|
3546
|
+
Pagination_Redirect_: {
|
|
3547
|
+
pagination: components["schemas"]["PaginationMetadata"];
|
|
3548
|
+
/** Results */
|
|
3549
|
+
results: components["schemas"]["Redirect"][];
|
|
3550
|
+
};
|
|
3474
3551
|
/** Pagination[User] */
|
|
3475
3552
|
Pagination_User_: {
|
|
3476
3553
|
pagination: components["schemas"]["PaginationMetadata"];
|
|
@@ -3615,6 +3692,73 @@ export interface components {
|
|
|
3615
3692
|
*/
|
|
3616
3693
|
rdap_server?: string | null;
|
|
3617
3694
|
};
|
|
3695
|
+
/** Redirect */
|
|
3696
|
+
Redirect: {
|
|
3697
|
+
/** Redirect Code */
|
|
3698
|
+
redirect_code: number;
|
|
3699
|
+
/** Request Domain */
|
|
3700
|
+
request_domain: string;
|
|
3701
|
+
/** Request Path */
|
|
3702
|
+
request_path: string;
|
|
3703
|
+
/** Request Protocol */
|
|
3704
|
+
request_protocol: string;
|
|
3705
|
+
/** Request Subdomain */
|
|
3706
|
+
request_subdomain: string;
|
|
3707
|
+
/** Target Domain */
|
|
3708
|
+
target_domain: string;
|
|
3709
|
+
/** Target Path */
|
|
3710
|
+
target_path: string;
|
|
3711
|
+
/** Target Protocol */
|
|
3712
|
+
target_protocol: string;
|
|
3713
|
+
/** Target Subdomain */
|
|
3714
|
+
target_subdomain: string;
|
|
3715
|
+
};
|
|
3716
|
+
/** RedirectPatchOp */
|
|
3717
|
+
RedirectPatchOp: {
|
|
3718
|
+
op: components["schemas"]["PatchOp"];
|
|
3719
|
+
/** Redirect */
|
|
3720
|
+
redirect: components["schemas"]["Redirect"] | components["schemas"]["RedirectRemove"];
|
|
3721
|
+
};
|
|
3722
|
+
/** RedirectPatchOps */
|
|
3723
|
+
RedirectPatchOps: {
|
|
3724
|
+
/** Ops */
|
|
3725
|
+
ops: components["schemas"]["RedirectPatchOp"][];
|
|
3726
|
+
};
|
|
3727
|
+
/** RedirectRemove */
|
|
3728
|
+
RedirectRemove: {
|
|
3729
|
+
/** Request Domain */
|
|
3730
|
+
request_domain: string;
|
|
3731
|
+
/** Request Path */
|
|
3732
|
+
request_path: string;
|
|
3733
|
+
/** Request Protocol */
|
|
3734
|
+
request_protocol: string;
|
|
3735
|
+
/** Request Subdomain */
|
|
3736
|
+
request_subdomain: string;
|
|
3737
|
+
};
|
|
3738
|
+
/** RedirectSet */
|
|
3739
|
+
RedirectSet: {
|
|
3740
|
+
/** Redirects */
|
|
3741
|
+
redirects: components["schemas"]["RedirectUpdate"][];
|
|
3742
|
+
};
|
|
3743
|
+
/** RedirectUpdate */
|
|
3744
|
+
RedirectUpdate: {
|
|
3745
|
+
/** Redirect Code */
|
|
3746
|
+
redirect_code: number;
|
|
3747
|
+
/** Request Path */
|
|
3748
|
+
request_path: string;
|
|
3749
|
+
/** Request Protocol */
|
|
3750
|
+
request_protocol: string;
|
|
3751
|
+
/** Request Subdomain */
|
|
3752
|
+
request_subdomain: string;
|
|
3753
|
+
/** Target Domain */
|
|
3754
|
+
target_domain: string;
|
|
3755
|
+
/** Target Path */
|
|
3756
|
+
target_path: string;
|
|
3757
|
+
/** Target Protocol */
|
|
3758
|
+
target_protocol: string;
|
|
3759
|
+
/** Target Subdomain */
|
|
3760
|
+
target_subdomain: string;
|
|
3761
|
+
};
|
|
3618
3762
|
/**
|
|
3619
3763
|
* RegistrantChangeType
|
|
3620
3764
|
* @enum {string}
|
|
@@ -5552,6 +5696,262 @@ export interface operations {
|
|
|
5552
5696
|
};
|
|
5553
5697
|
};
|
|
5554
5698
|
};
|
|
5699
|
+
patch_redirects_v1_domain_forwards_patch: {
|
|
5700
|
+
parameters: {
|
|
5701
|
+
query?: never;
|
|
5702
|
+
header?: never;
|
|
5703
|
+
path?: never;
|
|
5704
|
+
cookie?: never;
|
|
5705
|
+
};
|
|
5706
|
+
requestBody: {
|
|
5707
|
+
content: {
|
|
5708
|
+
"application/json": components["schemas"]["RedirectPatchOps"];
|
|
5709
|
+
};
|
|
5710
|
+
};
|
|
5711
|
+
responses: {
|
|
5712
|
+
/** @description Successful Response */
|
|
5713
|
+
204: {
|
|
5714
|
+
headers: {
|
|
5715
|
+
[name: string]: unknown;
|
|
5716
|
+
};
|
|
5717
|
+
content?: never;
|
|
5718
|
+
};
|
|
5719
|
+
/** @description Validation Error */
|
|
5720
|
+
422: {
|
|
5721
|
+
headers: {
|
|
5722
|
+
[name: string]: unknown;
|
|
5723
|
+
};
|
|
5724
|
+
content: {
|
|
5725
|
+
"application/problem+json": components["schemas"]["HTTPValidationError"];
|
|
5726
|
+
};
|
|
5727
|
+
};
|
|
5728
|
+
};
|
|
5729
|
+
};
|
|
5730
|
+
get_redirects_v1_domain_forwards__zone_name__get: {
|
|
5731
|
+
parameters: {
|
|
5732
|
+
query?: {
|
|
5733
|
+
page?: number;
|
|
5734
|
+
page_size?: number;
|
|
5735
|
+
};
|
|
5736
|
+
header?: never;
|
|
5737
|
+
path: {
|
|
5738
|
+
/** @description DNS zone name (trailing dot optional) */
|
|
5739
|
+
zone_name: string;
|
|
5740
|
+
};
|
|
5741
|
+
cookie?: never;
|
|
5742
|
+
};
|
|
5743
|
+
requestBody?: never;
|
|
5744
|
+
responses: {
|
|
5745
|
+
/** @description Successful Response */
|
|
5746
|
+
200: {
|
|
5747
|
+
headers: {
|
|
5748
|
+
[name: string]: unknown;
|
|
5749
|
+
};
|
|
5750
|
+
content: {
|
|
5751
|
+
"application/json": components["schemas"]["Pagination_Redirect_"];
|
|
5752
|
+
};
|
|
5753
|
+
};
|
|
5754
|
+
/** @description Validation Error */
|
|
5755
|
+
422: {
|
|
5756
|
+
headers: {
|
|
5757
|
+
[name: string]: unknown;
|
|
5758
|
+
};
|
|
5759
|
+
content: {
|
|
5760
|
+
"application/problem+json": components["schemas"]["HTTPValidationError"];
|
|
5761
|
+
};
|
|
5762
|
+
};
|
|
5763
|
+
};
|
|
5764
|
+
};
|
|
5765
|
+
update_redirects_v1_domain_forwards__zone_name__put: {
|
|
5766
|
+
parameters: {
|
|
5767
|
+
query?: never;
|
|
5768
|
+
header?: never;
|
|
5769
|
+
path: {
|
|
5770
|
+
/** @description DNS zone name (trailing dot optional) */
|
|
5771
|
+
zone_name: string;
|
|
5772
|
+
};
|
|
5773
|
+
cookie?: never;
|
|
5774
|
+
};
|
|
5775
|
+
requestBody: {
|
|
5776
|
+
content: {
|
|
5777
|
+
"application/json": components["schemas"]["RedirectSet"];
|
|
5778
|
+
};
|
|
5779
|
+
};
|
|
5780
|
+
responses: {
|
|
5781
|
+
/** @description Successful Response */
|
|
5782
|
+
204: {
|
|
5783
|
+
headers: {
|
|
5784
|
+
[name: string]: unknown;
|
|
5785
|
+
};
|
|
5786
|
+
content?: never;
|
|
5787
|
+
};
|
|
5788
|
+
/** @description Conflict */
|
|
5789
|
+
409: {
|
|
5790
|
+
headers: {
|
|
5791
|
+
[name: string]: unknown;
|
|
5792
|
+
};
|
|
5793
|
+
content: {
|
|
5794
|
+
/** @example {
|
|
5795
|
+
* "code": "ERROR_DOMAIN_FORWARD_REDIRECT_NOT_EXISTS",
|
|
5796
|
+
* "detail": "Redirect does not exist for A, d, d, i, t, i, o, n, a, l, , e, r, r, o, r, , c, o, n, t, e, x, t, .",
|
|
5797
|
+
* "status": 409,
|
|
5798
|
+
* "title": "Domain Forward Error",
|
|
5799
|
+
* "type": "domain-forward-redirect-not-exists"
|
|
5800
|
+
* } */
|
|
5801
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
5802
|
+
};
|
|
5803
|
+
};
|
|
5804
|
+
/** @description Validation Error */
|
|
5805
|
+
422: {
|
|
5806
|
+
headers: {
|
|
5807
|
+
[name: string]: unknown;
|
|
5808
|
+
};
|
|
5809
|
+
content: {
|
|
5810
|
+
"application/problem+json": components["schemas"]["HTTPValidationError"];
|
|
5811
|
+
};
|
|
5812
|
+
};
|
|
5813
|
+
};
|
|
5814
|
+
};
|
|
5815
|
+
create_redirects_v1_domain_forwards__zone_name__post: {
|
|
5816
|
+
parameters: {
|
|
5817
|
+
query?: never;
|
|
5818
|
+
header?: never;
|
|
5819
|
+
path: {
|
|
5820
|
+
/** @description DNS zone name (trailing dot optional) */
|
|
5821
|
+
zone_name: string;
|
|
5822
|
+
};
|
|
5823
|
+
cookie?: never;
|
|
5824
|
+
};
|
|
5825
|
+
requestBody: {
|
|
5826
|
+
content: {
|
|
5827
|
+
"application/json": components["schemas"]["RedirectSet"];
|
|
5828
|
+
};
|
|
5829
|
+
};
|
|
5830
|
+
responses: {
|
|
5831
|
+
/** @description Successful Response */
|
|
5832
|
+
201: {
|
|
5833
|
+
headers: {
|
|
5834
|
+
[name: string]: unknown;
|
|
5835
|
+
};
|
|
5836
|
+
content?: never;
|
|
5837
|
+
};
|
|
5838
|
+
/** @description Conflict */
|
|
5839
|
+
409: {
|
|
5840
|
+
headers: {
|
|
5841
|
+
[name: string]: unknown;
|
|
5842
|
+
};
|
|
5843
|
+
content: {
|
|
5844
|
+
/** @example {
|
|
5845
|
+
* "code": "ERROR_DOMAIN_FORWARD_REDIRECT_ALREADY_EXISTS",
|
|
5846
|
+
* "detail": "Redirect already exists for A, d, d, i, t, i, o, n, a, l, , e, r, r, o, r, , c, o, n, t, e, x, t, .",
|
|
5847
|
+
* "status": 409,
|
|
5848
|
+
* "title": "Domain Forward Error",
|
|
5849
|
+
* "type": "domain-forward-redirect-already-exists"
|
|
5850
|
+
* } */
|
|
5851
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
5852
|
+
};
|
|
5853
|
+
};
|
|
5854
|
+
/** @description Validation Error */
|
|
5855
|
+
422: {
|
|
5856
|
+
headers: {
|
|
5857
|
+
[name: string]: unknown;
|
|
5858
|
+
};
|
|
5859
|
+
content: {
|
|
5860
|
+
"application/problem+json": components["schemas"]["HTTPValidationError"];
|
|
5861
|
+
};
|
|
5862
|
+
};
|
|
5863
|
+
};
|
|
5864
|
+
};
|
|
5865
|
+
delete_redirects_v1_domain_forwards__zone_name__delete: {
|
|
5866
|
+
parameters: {
|
|
5867
|
+
query?: never;
|
|
5868
|
+
header?: never;
|
|
5869
|
+
path: {
|
|
5870
|
+
/** @description DNS zone name (trailing dot optional) */
|
|
5871
|
+
zone_name: string;
|
|
5872
|
+
};
|
|
5873
|
+
cookie?: never;
|
|
5874
|
+
};
|
|
5875
|
+
requestBody?: never;
|
|
5876
|
+
responses: {
|
|
5877
|
+
/** @description Successful Response */
|
|
5878
|
+
204: {
|
|
5879
|
+
headers: {
|
|
5880
|
+
[name: string]: unknown;
|
|
5881
|
+
};
|
|
5882
|
+
content?: never;
|
|
5883
|
+
};
|
|
5884
|
+
/** @description Validation Error */
|
|
5885
|
+
422: {
|
|
5886
|
+
headers: {
|
|
5887
|
+
[name: string]: unknown;
|
|
5888
|
+
};
|
|
5889
|
+
content: {
|
|
5890
|
+
"application/problem+json": components["schemas"]["HTTPValidationError"];
|
|
5891
|
+
};
|
|
5892
|
+
};
|
|
5893
|
+
};
|
|
5894
|
+
};
|
|
5895
|
+
disable_domain_forward_v1_domain_forwards__zone_name__disable_patch: {
|
|
5896
|
+
parameters: {
|
|
5897
|
+
query?: never;
|
|
5898
|
+
header?: never;
|
|
5899
|
+
path: {
|
|
5900
|
+
/** @description DNS zone name (trailing dot optional) */
|
|
5901
|
+
zone_name: string;
|
|
5902
|
+
};
|
|
5903
|
+
cookie?: never;
|
|
5904
|
+
};
|
|
5905
|
+
requestBody?: never;
|
|
5906
|
+
responses: {
|
|
5907
|
+
/** @description Successful Response */
|
|
5908
|
+
204: {
|
|
5909
|
+
headers: {
|
|
5910
|
+
[name: string]: unknown;
|
|
5911
|
+
};
|
|
5912
|
+
content?: never;
|
|
5913
|
+
};
|
|
5914
|
+
/** @description Validation Error */
|
|
5915
|
+
422: {
|
|
5916
|
+
headers: {
|
|
5917
|
+
[name: string]: unknown;
|
|
5918
|
+
};
|
|
5919
|
+
content: {
|
|
5920
|
+
"application/problem+json": components["schemas"]["HTTPValidationError"];
|
|
5921
|
+
};
|
|
5922
|
+
};
|
|
5923
|
+
};
|
|
5924
|
+
};
|
|
5925
|
+
enable_domain_forward_v1_domain_forwards__zone_name__enable_patch: {
|
|
5926
|
+
parameters: {
|
|
5927
|
+
query?: never;
|
|
5928
|
+
header?: never;
|
|
5929
|
+
path: {
|
|
5930
|
+
/** @description DNS zone name (trailing dot optional) */
|
|
5931
|
+
zone_name: string;
|
|
5932
|
+
};
|
|
5933
|
+
cookie?: never;
|
|
5934
|
+
};
|
|
5935
|
+
requestBody?: never;
|
|
5936
|
+
responses: {
|
|
5937
|
+
/** @description Successful Response */
|
|
5938
|
+
204: {
|
|
5939
|
+
headers: {
|
|
5940
|
+
[name: string]: unknown;
|
|
5941
|
+
};
|
|
5942
|
+
content?: never;
|
|
5943
|
+
};
|
|
5944
|
+
/** @description Validation Error */
|
|
5945
|
+
422: {
|
|
5946
|
+
headers: {
|
|
5947
|
+
[name: string]: unknown;
|
|
5948
|
+
};
|
|
5949
|
+
content: {
|
|
5950
|
+
"application/problem+json": components["schemas"]["HTTPValidationError"];
|
|
5951
|
+
};
|
|
5952
|
+
};
|
|
5953
|
+
};
|
|
5954
|
+
};
|
|
5555
5955
|
suggest_v1_domain_search_suggest_get: {
|
|
5556
5956
|
parameters: {
|
|
5557
5957
|
query: {
|