@opusdns/api 0.90.0 → 0.92.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/src/schema.d.ts CHANGED
@@ -282,6 +282,24 @@ 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
+ /** List Domain Forwards */
293
+ get: operations["list_domain_forwards_v1_domain_forwards_get"];
294
+ put?: never;
295
+ post?: never;
296
+ delete?: never;
297
+ options?: never;
298
+ head?: never;
299
+ /** Patch Redirects */
300
+ patch: operations["patch_redirects_v1_domain_forwards_patch"];
301
+ trace?: never;
302
+ };
285
303
  "/v1/domain-forwards/{zone_name}/disable": {
286
304
  parameters: {
287
305
  query?: never;
@@ -2266,17 +2284,52 @@ export interface components {
2266
2284
  * Format: date-time
2267
2285
  */
2268
2286
  updated_on: Date;
2269
- /** Wildcard */
2287
+ /**
2288
+ * Wildcard
2289
+ * @default false
2290
+ */
2270
2291
  wildcard: boolean;
2271
2292
  /** Zone Name */
2272
2293
  zone_name: string;
2273
2294
  };
2295
+ /** DomainForwardPatchOp */
2296
+ DomainForwardPatchOp: {
2297
+ op: components["schemas"]["PatchOp"];
2298
+ /** Redirect */
2299
+ redirect: components["schemas"]["HttpRedirect"] | components["schemas"]["HttpRedirectRemove"];
2300
+ request_protocol: components["schemas"]["HttpProtocol"];
2301
+ /** Zone Name */
2302
+ zone_name: string;
2303
+ };
2304
+ /** DomainForwardPatchOps */
2305
+ DomainForwardPatchOps: {
2306
+ /** Ops */
2307
+ ops: components["schemas"]["DomainForwardPatchOp"][];
2308
+ };
2309
+ /** DomainForwardProtocols */
2310
+ DomainForwardProtocols: {
2311
+ http?: components["schemas"]["ProtocolRedirects"] | null;
2312
+ https?: components["schemas"]["ProtocolRedirects"] | null;
2313
+ };
2274
2314
  /** DomainForwardRequest */
2275
2315
  DomainForwardRequest: {
2276
2316
  /** Redirects */
2277
2317
  redirects: components["schemas"]["HttpRedirect"][];
2318
+ /**
2319
+ * Wildcard
2320
+ * @default false
2321
+ */
2322
+ wildcard: boolean;
2323
+ };
2324
+ /** DomainForwardZone */
2325
+ DomainForwardZone: {
2326
+ /** Enabled */
2327
+ enabled: boolean;
2328
+ protocols: components["schemas"]["DomainForwardProtocols"];
2278
2329
  /** Wildcard */
2279
2330
  wildcard: boolean;
2331
+ /** Zone Name */
2332
+ zone_name: string;
2280
2333
  };
2281
2334
  /** DomainLifecycleBase */
2282
2335
  DomainLifecycleBase: {
@@ -2914,6 +2967,13 @@ export interface components {
2914
2967
  /** Target Subdomain */
2915
2968
  target_subdomain?: string | null;
2916
2969
  };
2970
+ /** HttpRedirectRemove */
2971
+ HttpRedirectRemove: {
2972
+ /** Request Path */
2973
+ request_path: string;
2974
+ /** Request Subdomain */
2975
+ request_subdomain?: string | null;
2976
+ };
2917
2977
  /** IdnBase */
2918
2978
  IdnBase: {
2919
2979
  /**
@@ -3666,6 +3726,12 @@ export interface components {
3666
3726
  /** Results */
3667
3727
  results: components["schemas"]["DnsZoneResponse"][];
3668
3728
  };
3729
+ /** Pagination[DomainForwardZone] */
3730
+ Pagination_DomainForwardZone_: {
3731
+ pagination: components["schemas"]["PaginationMetadata"];
3732
+ /** Results */
3733
+ results: components["schemas"]["DomainForwardZone"][];
3734
+ };
3669
3735
  /** Pagination[DomainResponse] */
3670
3736
  Pagination_DomainResponse_: {
3671
3737
  pagination: components["schemas"]["PaginationMetadata"];
@@ -3812,6 +3878,11 @@ export interface components {
3812
3878
  /** Problem type */
3813
3879
  type: string;
3814
3880
  };
3881
+ /** ProtocolRedirects */
3882
+ ProtocolRedirects: {
3883
+ /** Redirects */
3884
+ redirects: components["schemas"]["HttpRedirect"][];
3885
+ };
3815
3886
  /** PublicAuthRequestForm */
3816
3887
  PublicAuthRequestForm: {
3817
3888
  /**
@@ -5782,6 +5853,95 @@ export interface operations {
5782
5853
  };
5783
5854
  };
5784
5855
  };
5856
+ list_domain_forwards_v1_domain_forwards_get: {
5857
+ parameters: {
5858
+ query?: {
5859
+ sort_by?: components["schemas"]["ZoneSortField"];
5860
+ sort_order?: components["schemas"]["SortOrder"];
5861
+ dnssec_status?: components["schemas"]["DnssecStatus"] | null;
5862
+ name?: string | null;
5863
+ search?: string | null;
5864
+ suffix?: string | null;
5865
+ created_after?: Date | null;
5866
+ created_before?: Date | null;
5867
+ updated_after?: Date | null;
5868
+ updated_before?: Date | null;
5869
+ page?: number;
5870
+ page_size?: number;
5871
+ };
5872
+ header?: never;
5873
+ path?: never;
5874
+ cookie?: never;
5875
+ };
5876
+ requestBody?: never;
5877
+ responses: {
5878
+ /** @description Successful Response */
5879
+ 200: {
5880
+ headers: {
5881
+ [name: string]: unknown;
5882
+ };
5883
+ content: {
5884
+ "application/json": components["schemas"]["Pagination_DomainForwardZone_"];
5885
+ };
5886
+ };
5887
+ /** @description Validation Error */
5888
+ 422: {
5889
+ headers: {
5890
+ [name: string]: unknown;
5891
+ };
5892
+ content: {
5893
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
5894
+ };
5895
+ };
5896
+ };
5897
+ };
5898
+ patch_redirects_v1_domain_forwards_patch: {
5899
+ parameters: {
5900
+ query?: never;
5901
+ header?: never;
5902
+ path?: never;
5903
+ cookie?: never;
5904
+ };
5905
+ requestBody: {
5906
+ content: {
5907
+ "application/json": components["schemas"]["DomainForwardPatchOps"];
5908
+ };
5909
+ };
5910
+ responses: {
5911
+ /** @description Successful Response */
5912
+ 204: {
5913
+ headers: {
5914
+ [name: string]: unknown;
5915
+ };
5916
+ content?: never;
5917
+ };
5918
+ /** @description Not Found */
5919
+ 404: {
5920
+ headers: {
5921
+ [name: string]: unknown;
5922
+ };
5923
+ content: {
5924
+ /** @example {
5925
+ * "code": "ERROR_DOMAIN_FORWARD_NOT_EXISTS",
5926
+ * "detail": "Domain forward not found",
5927
+ * "status": 404,
5928
+ * "title": "Domain Forward Error",
5929
+ * "type": "domain-forward-not-found"
5930
+ * } */
5931
+ "application/problem+json": components["schemas"]["Problem"];
5932
+ };
5933
+ };
5934
+ /** @description Validation Error */
5935
+ 422: {
5936
+ headers: {
5937
+ [name: string]: unknown;
5938
+ };
5939
+ content: {
5940
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
5941
+ };
5942
+ };
5943
+ };
5944
+ };
5785
5945
  disable_domain_forward_v1_domain_forwards__zone_name__disable_patch: {
5786
5946
  parameters: {
5787
5947
  query?: never;
@@ -5815,7 +5975,10 @@ export interface operations {
5815
5975
  enable_domain_forward_v1_domain_forwards__zone_name__enable_patch: {
5816
5976
  parameters: {
5817
5977
  query?: {
5978
+ /** @description Auto create zone if it doesn't exist */
5818
5979
  auto_create_zone?: boolean;
5980
+ /** @description Wildcard domain forwarding */
5981
+ wildcard?: boolean;
5819
5982
  };
5820
5983
  header?: never;
5821
5984
  path: {