@opusdns/api 0.121.0 → 0.123.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.
@@ -34,7 +34,7 @@
34
34
 
35
35
  import { DomainDnssecDataArray, OrganizationAttribute2Array, IpRestrictionArray, TldResponseShortArray } from './schemas-arrays.d';
36
36
 
37
- import { Pagination_EmailForwardLog, HTTPValidationError, Pagination_ObjectLog, Pagination_RequestHistory, Problem, DomainAvailabilityList, Pagination_ContactSchema, ContactSchema, ContactVerification, Contact, Pagination_DnsZone, DnsZone, DnsChanges, DomainForwardZone, EmailForwardZone, Pagination_DomainForwardZone, Pagination_EmailForwardZone, DnsZoneSummary, Pagination_DomainForward, DomainForward, DomainForwardSet, DomainSearch, Pagination_Domain, Domain, DomainRenew, DomainRestore, DomainCheck, DomainSummary, DomainWithdraw, RequestAuthcode, DomainTransit, Pagination_EmailForward, EmailForward, EmailForwardAlias, Pagination_Event, EventSchema, Pagination_Organization, Organization, OrganizationWithBillingData, Pagination_Invoice, GetPrices, Pagination_BillingTransaction, BillingTransaction, IpRestriction, Pagination_User, TldSpecification, User, UserWithAttributes, PermissionSet, RelationSet, UserWithRelationPermissions } from './schemas.d';
37
+ import { Pagination_EmailForwardLog, HTTPValidationError, Pagination_ObjectLog, Pagination_RequestHistory, Problem, DomainAvailabilityList, Pagination_ContactSchema, ContactSchema, ContactVerification, Contact, Pagination_DnsZone, DnsZone, DnsChanges, DomainForwardZone, EmailForwardZone, Pagination_DomainForwardZone, Pagination_EmailForwardZone, DnsZoneSummary, Pagination_DomainForward, DomainForward, DomainForwardSet, DomainSearch, Pagination_Domain, Domain, DomainRenew, DomainRestore, DomainCheck, DomainSummary, DomainWithdraw, RequestAuthcode, DomainTransit, RequestAuthcode2, Pagination_EmailForward, EmailForward, EmailForwardAlias, Pagination_Event, EventSchema, Pagination_Organization, Organization, OrganizationWithBillingData, Pagination_Invoice, GetPrices, Pagination_BillingTransaction, BillingTransaction, IpRestriction, Pagination_User, TldSpecification, User, UserWithAttributes, PermissionSet, RelationSet, UserWithRelationPermissions } from './schemas.d';
38
38
 
39
39
  /**
40
40
  * Response types for GET ArchiveEmailForwardLogsAliasesByEmailForwardAliasId endpoint
@@ -2541,6 +2541,134 @@ export type PATCH_DomainForwards_Response_404 = Problem
2541
2541
  */
2542
2542
  export type PATCH_DomainForwards_Response_422 = HTTPValidationError
2543
2543
 
2544
+ /**
2545
+ * Response types for POST DomainForwards endpoint
2546
+ *
2547
+ * Create a domain forward
2548
+ * Creates a new domain forward configuration. Wildcard forwards can be created by using *.hostname (e.g., *.example.com).
2549
+ *
2550
+ * @remarks
2551
+ * This type defines all possible response structures for the POST DomainForwards endpoint.
2552
+ * Each response code maps to a specific response type as defined in the OpenAPI specification.
2553
+ * Use this type to ensure type safety when handling API responses from this endpoint.
2554
+ *
2555
+
2556
+ *
2557
+ * @path /v1/domain-forwards
2558
+ *
2559
+ * @see {@link POST_DomainForwards_Response_201} - 201 response type
2560
+ * @see {@link POST_DomainForwards_Response_401} - 401 response type
2561
+ * @see {@link POST_DomainForwards_Response_403} - 403 response type
2562
+ * @see {@link POST_DomainForwards_Response_404} - 404 response type
2563
+ * @see {@link POST_DomainForwards_Response_409} - 409 response type
2564
+ * @see {@link POST_DomainForwards_Response_422} - 422 response type
2565
+ *
2566
+
2567
+ */
2568
+ export type POST_DomainForwards_Response = POST_DomainForwards_Response_201 | POST_DomainForwards_Response_401 | POST_DomainForwards_Response_403 | POST_DomainForwards_Response_404 | POST_DomainForwards_Response_409 | POST_DomainForwards_Response_422;
2569
+
2570
+ /**
2571
+ * 201 response for POST DomainForwards endpoint
2572
+ *
2573
+ * @remarks
2574
+ * This type defines the response structure for the 201 status code
2575
+ * of the POST DomainForwards endpoint.
2576
+ * It provides type safety for handling this specific response as defined in the OpenAPI specification.
2577
+ *
2578
+
2579
+ *
2580
+ * @path /v1/domain-forwards
2581
+ *
2582
+ * @see {@link POST_DomainForwards_Response} - The main response type definition
2583
+ * @see {@link DomainForward} - The actual schema type definition
2584
+ */
2585
+ export type POST_DomainForwards_Response_201 = DomainForward
2586
+
2587
+ /**
2588
+ * 401 response for POST DomainForwards endpoint
2589
+ *
2590
+ * @remarks
2591
+ * This type defines the response structure for the 401 status code
2592
+ * of the POST DomainForwards endpoint.
2593
+ * It provides type safety for handling this specific response as defined in the OpenAPI specification.
2594
+ *
2595
+
2596
+ *
2597
+ * @path /v1/domain-forwards
2598
+ *
2599
+ * @see {@link POST_DomainForwards_Response} - The main response type definition
2600
+ * @see {@link Problem} - The actual schema type definition
2601
+ */
2602
+ export type POST_DomainForwards_Response_401 = Problem
2603
+
2604
+ /**
2605
+ * 403 response for POST DomainForwards endpoint
2606
+ *
2607
+ * @remarks
2608
+ * This type defines the response structure for the 403 status code
2609
+ * of the POST DomainForwards endpoint.
2610
+ * It provides type safety for handling this specific response as defined in the OpenAPI specification.
2611
+ *
2612
+
2613
+ *
2614
+ * @path /v1/domain-forwards
2615
+ *
2616
+ * @see {@link POST_DomainForwards_Response} - The main response type definition
2617
+ * @see {@link Problem} - The actual schema type definition
2618
+ */
2619
+ export type POST_DomainForwards_Response_403 = Problem
2620
+
2621
+ /**
2622
+ * 404 response for POST DomainForwards endpoint
2623
+ *
2624
+ * @remarks
2625
+ * This type defines the response structure for the 404 status code
2626
+ * of the POST DomainForwards endpoint.
2627
+ * It provides type safety for handling this specific response as defined in the OpenAPI specification.
2628
+ *
2629
+
2630
+ *
2631
+ * @path /v1/domain-forwards
2632
+ *
2633
+ * @see {@link POST_DomainForwards_Response} - The main response type definition
2634
+ * @see {@link Problem} - The actual schema type definition
2635
+ */
2636
+ export type POST_DomainForwards_Response_404 = Problem
2637
+
2638
+ /**
2639
+ * 409 response for POST DomainForwards endpoint
2640
+ *
2641
+ * @remarks
2642
+ * This type defines the response structure for the 409 status code
2643
+ * of the POST DomainForwards endpoint.
2644
+ * It provides type safety for handling this specific response as defined in the OpenAPI specification.
2645
+ *
2646
+
2647
+ *
2648
+ * @path /v1/domain-forwards
2649
+ *
2650
+ * @see {@link POST_DomainForwards_Response} - The main response type definition
2651
+ * @see {@link Problem} - The actual schema type definition
2652
+ */
2653
+ export type POST_DomainForwards_Response_409 = Problem
2654
+
2655
+ /**
2656
+ * 422 response for POST DomainForwards endpoint
2657
+ *
2658
+ * @remarks
2659
+ * This type defines the response structure for the 422 status code
2660
+ * of the POST DomainForwards endpoint.
2661
+ * It provides type safety for handling this specific response as defined in the OpenAPI specification.
2662
+ *
2663
+
2664
+ *
2665
+ * @path /v1/domain-forwards
2666
+ *
2667
+ * @see {@link POST_DomainForwards_Response} - The main response type definition
2668
+ * @see {@link HTTPValidationError} - The actual schema type definition
2669
+ */
2670
+ export type POST_DomainForwards_Response_422 = HTTPValidationError
2671
+
2544
2672
  /**
2545
2673
  * Response types for DELETE DomainForwardsByHostname endpoint
2546
2674
  *
@@ -2757,8 +2885,8 @@ export type GET_DomainForwardsByHostname_Response_422 = HTTPValidationError
2757
2885
  /**
2758
2886
  * Response types for POST DomainForwardsByHostname endpoint
2759
2887
  *
2760
- * Create a domain forward
2761
- * Creates a new domain forward configuration for the specified hostname
2888
+ * Create a domain forward (deprecated)
2889
+ * **DEPRECATED**: Use POST /v1/domain-forwards instead. Creates a new domain forward configuration for the specified hostname.
2762
2890
  *
2763
2891
  * @remarks
2764
2892
  * This type defines all possible response structures for the POST DomainForwardsByHostname endpoint.
@@ -3446,7 +3574,6 @@ export type PATCH_DomainForwardsByHostnameDisable_Response_422 = HTTPValidationE
3446
3574
  *
3447
3575
  * @path /v1/domain-forwards/{hostname}/enable
3448
3576
  * @param hostname (path) - Hostname
3449
- * @param wildcard (query) - Wildcard domain forwarding
3450
3577
  *
3451
3578
  * @see {@link PATCH_DomainForwardsByHostnameEnable_Response_400} - 400 response type
3452
3579
  * @see {@link PATCH_DomainForwardsByHostnameEnable_Response_401} - 401 response type
@@ -3469,7 +3596,6 @@ export type PATCH_DomainForwardsByHostnameEnable_Response = PATCH_DomainForwards
3469
3596
  *
3470
3597
  * @path /v1/domain-forwards/{hostname}/enable
3471
3598
  * @param hostname (path) - Hostname
3472
- * @param wildcard (query) - Wildcard domain forwarding
3473
3599
  *
3474
3600
  * @see {@link PATCH_DomainForwardsByHostnameEnable_Response} - The main response type definition
3475
3601
  * @see {@link Problem} - The actual schema type definition
@@ -3488,7 +3614,6 @@ export type PATCH_DomainForwardsByHostnameEnable_Response_400 = Problem
3488
3614
  *
3489
3615
  * @path /v1/domain-forwards/{hostname}/enable
3490
3616
  * @param hostname (path) - Hostname
3491
- * @param wildcard (query) - Wildcard domain forwarding
3492
3617
  *
3493
3618
  * @see {@link PATCH_DomainForwardsByHostnameEnable_Response} - The main response type definition
3494
3619
  * @see {@link Problem} - The actual schema type definition
@@ -3507,7 +3632,6 @@ export type PATCH_DomainForwardsByHostnameEnable_Response_401 = Problem
3507
3632
  *
3508
3633
  * @path /v1/domain-forwards/{hostname}/enable
3509
3634
  * @param hostname (path) - Hostname
3510
- * @param wildcard (query) - Wildcard domain forwarding
3511
3635
  *
3512
3636
  * @see {@link PATCH_DomainForwardsByHostnameEnable_Response} - The main response type definition
3513
3637
  * @see {@link Problem} - The actual schema type definition
@@ -3526,7 +3650,6 @@ export type PATCH_DomainForwardsByHostnameEnable_Response_403 = Problem
3526
3650
  *
3527
3651
  * @path /v1/domain-forwards/{hostname}/enable
3528
3652
  * @param hostname (path) - Hostname
3529
- * @param wildcard (query) - Wildcard domain forwarding
3530
3653
  *
3531
3654
  * @see {@link PATCH_DomainForwardsByHostnameEnable_Response} - The main response type definition
3532
3655
  * @see {@link HTTPValidationError} - The actual schema type definition
@@ -4896,6 +5019,97 @@ export type POST_DomainsTldSpecificDeByDomainReferenceTransit_Response_404 = Pro
4896
5019
  */
4897
5020
  export type POST_DomainsTldSpecificDeByDomainReferenceTransit_Response_422 = HTTPValidationError
4898
5021
 
5022
+ /**
5023
+ * Response types for POST DomainsTldSpecificEuByDomainReferenceAuthCodeRequest endpoint
5024
+ *
5025
+ * Requests your auth code directly from EURid (registry)
5026
+ *
5027
+ * @remarks
5028
+ * This type defines all possible response structures for the POST DomainsTldSpecificEuByDomainReferenceAuthCodeRequest endpoint.
5029
+ * Each response code maps to a specific response type as defined in the OpenAPI specification.
5030
+ * Use this type to ensure type safety when handling API responses from this endpoint.
5031
+ *
5032
+
5033
+ *
5034
+ * @path /v1/domains/tld-specific/eu/{domain_reference}/auth_code/request
5035
+ *
5036
+ * @see {@link POST_DomainsTldSpecificEuByDomainReferenceAuthCodeRequest_Response_200} - 200 response type
5037
+ * @see {@link POST_DomainsTldSpecificEuByDomainReferenceAuthCodeRequest_Response_400} - 400 response type
5038
+ * @see {@link POST_DomainsTldSpecificEuByDomainReferenceAuthCodeRequest_Response_404} - 404 response type
5039
+ * @see {@link POST_DomainsTldSpecificEuByDomainReferenceAuthCodeRequest_Response_422} - 422 response type
5040
+ *
5041
+
5042
+ */
5043
+ export type POST_DomainsTldSpecificEuByDomainReferenceAuthCodeRequest_Response = POST_DomainsTldSpecificEuByDomainReferenceAuthCodeRequest_Response_200 | POST_DomainsTldSpecificEuByDomainReferenceAuthCodeRequest_Response_400 | POST_DomainsTldSpecificEuByDomainReferenceAuthCodeRequest_Response_404 | POST_DomainsTldSpecificEuByDomainReferenceAuthCodeRequest_Response_422;
5044
+
5045
+ /**
5046
+ * 200 response for POST DomainsTldSpecificEuByDomainReferenceAuthCodeRequest endpoint
5047
+ *
5048
+ * @remarks
5049
+ * This type defines the response structure for the 200 status code
5050
+ * of the POST DomainsTldSpecificEuByDomainReferenceAuthCodeRequest endpoint.
5051
+ * It provides type safety for handling this specific response as defined in the OpenAPI specification.
5052
+ *
5053
+
5054
+ *
5055
+ * @path /v1/domains/tld-specific/eu/{domain_reference}/auth_code/request
5056
+ *
5057
+ * @see {@link POST_DomainsTldSpecificEuByDomainReferenceAuthCodeRequest_Response} - The main response type definition
5058
+ * @see {@link RequestAuthcode2} - The actual schema type definition
5059
+ */
5060
+ export type POST_DomainsTldSpecificEuByDomainReferenceAuthCodeRequest_Response_200 = RequestAuthcode2
5061
+
5062
+ /**
5063
+ * 400 response for POST DomainsTldSpecificEuByDomainReferenceAuthCodeRequest endpoint
5064
+ *
5065
+ * @remarks
5066
+ * This type defines the response structure for the 400 status code
5067
+ * of the POST DomainsTldSpecificEuByDomainReferenceAuthCodeRequest endpoint.
5068
+ * It provides type safety for handling this specific response as defined in the OpenAPI specification.
5069
+ *
5070
+
5071
+ *
5072
+ * @path /v1/domains/tld-specific/eu/{domain_reference}/auth_code/request
5073
+ *
5074
+ * @see {@link POST_DomainsTldSpecificEuByDomainReferenceAuthCodeRequest_Response} - The main response type definition
5075
+ * @see {@link Problem} - The actual schema type definition
5076
+ */
5077
+ export type POST_DomainsTldSpecificEuByDomainReferenceAuthCodeRequest_Response_400 = Problem
5078
+
5079
+ /**
5080
+ * 404 response for POST DomainsTldSpecificEuByDomainReferenceAuthCodeRequest endpoint
5081
+ *
5082
+ * @remarks
5083
+ * This type defines the response structure for the 404 status code
5084
+ * of the POST DomainsTldSpecificEuByDomainReferenceAuthCodeRequest endpoint.
5085
+ * It provides type safety for handling this specific response as defined in the OpenAPI specification.
5086
+ *
5087
+
5088
+ *
5089
+ * @path /v1/domains/tld-specific/eu/{domain_reference}/auth_code/request
5090
+ *
5091
+ * @see {@link POST_DomainsTldSpecificEuByDomainReferenceAuthCodeRequest_Response} - The main response type definition
5092
+ * @see {@link Problem} - The actual schema type definition
5093
+ */
5094
+ export type POST_DomainsTldSpecificEuByDomainReferenceAuthCodeRequest_Response_404 = Problem
5095
+
5096
+ /**
5097
+ * 422 response for POST DomainsTldSpecificEuByDomainReferenceAuthCodeRequest endpoint
5098
+ *
5099
+ * @remarks
5100
+ * This type defines the response structure for the 422 status code
5101
+ * of the POST DomainsTldSpecificEuByDomainReferenceAuthCodeRequest endpoint.
5102
+ * It provides type safety for handling this specific response as defined in the OpenAPI specification.
5103
+ *
5104
+
5105
+ *
5106
+ * @path /v1/domains/tld-specific/eu/{domain_reference}/auth_code/request
5107
+ *
5108
+ * @see {@link POST_DomainsTldSpecificEuByDomainReferenceAuthCodeRequest_Response} - The main response type definition
5109
+ * @see {@link HTTPValidationError} - The actual schema type definition
5110
+ */
5111
+ export type POST_DomainsTldSpecificEuByDomainReferenceAuthCodeRequest_Response_422 = HTTPValidationError
5112
+
4899
5113
  /**
4900
5114
  * Response types for POST DomainsTransfer endpoint
4901
5115
  *
@@ -1034,6 +1034,22 @@ export type DomainDnssecData = components['schemas']['DomainDnssecDataResponse']
1034
1034
  * @see {@link components} - The OpenAPI components schema definition
1035
1035
  */
1036
1036
  export type DomainForward = components['schemas']['DomainForward'];
1037
+ /**
1038
+ * DomainForwardCreateRequest
1039
+ *
1040
+ * @remarks
1041
+ * Type alias for the `DomainForwardCreateRequest` OpenAPI schema.
1042
+ * This type represents domainforwardcreaterequest data structures used in API requests and responses.
1043
+ *
1044
+ * @example
1045
+ * ```typescript
1046
+ * const response = await api.getDomainForwardCreateRequest();
1047
+ * const item: DomainForwardCreateRequest = response.results;
1048
+ * ```
1049
+ *
1050
+ * @see {@link components} - The OpenAPI components schema definition
1051
+ */
1052
+ export type DomainForwardCreateRequest = components['schemas']['DomainForwardCreateRequest'];
1037
1053
  /**
1038
1054
  * DomainForwardPatchOp
1039
1055
  *
@@ -3119,22 +3135,6 @@ export type RelationSet = components['schemas']['RelationSet'];
3119
3135
  * @see {@link components} - The OpenAPI components schema definition
3120
3136
  */
3121
3137
  export type RenewalMode = components['schemas']['RenewalMode'];
3122
- /**
3123
- * RequestAuthcodeResponse
3124
- *
3125
- * @remarks
3126
- * Type alias for the `RequestAuthcodeResponse` OpenAPI schema.
3127
- * This type represents requestauthcoderesponse data structures used in API requests and responses.
3128
- *
3129
- * @example
3130
- * ```typescript
3131
- * const response = await api.getRequestAuthcode();
3132
- * const item: RequestAuthcode = response.results;
3133
- * ```
3134
- *
3135
- * @see {@link components} - The OpenAPI components schema definition
3136
- */
3137
- export type RequestAuthcode = components['schemas']['RequestAuthcodeResponse'];
3138
3138
  /**
3139
3139
  * RequestHistory
3140
3140
  *
@@ -3615,6 +3615,38 @@ export type WildcardHttpRedirectRequest = components['schemas']['WildcardHttpRed
3615
3615
  * @see {@link components} - The OpenAPI components schema definition
3616
3616
  */
3617
3617
  export type ZoneSortField = components['schemas']['ZoneSortField'];
3618
+ /**
3619
+ * RequestAuthcodeResponse
3620
+ *
3621
+ * @remarks
3622
+ * Type alias for the `api__domain__tld_specific__be__models__RequestAuthcodeResponse` OpenAPI schema.
3623
+ * This type represents requestauthcoderesponse data structures used in API requests and responses.
3624
+ *
3625
+ * @example
3626
+ * ```typescript
3627
+ * const response = await api.getRequestAuthcode();
3628
+ * const item: RequestAuthcode = response.results;
3629
+ * ```
3630
+ *
3631
+ * @see {@link components} - The OpenAPI components schema definition
3632
+ */
3633
+ export type RequestAuthcode = components['schemas']['api__domain__tld_specific__be__models__RequestAuthcodeResponse'];
3634
+ /**
3635
+ * RequestAuthcodeResponse
3636
+ *
3637
+ * @remarks
3638
+ * Type alias for the `api__domain__tld_specific__eu__models__RequestAuthcodeResponse` OpenAPI schema.
3639
+ * This type represents requestauthcoderesponse data structures used in API requests and responses.
3640
+ *
3641
+ * @example
3642
+ * ```typescript
3643
+ * const response = await api.getRequestAuthcode2();
3644
+ * const item: RequestAuthcode2 = response.results;
3645
+ * ```
3646
+ *
3647
+ * @see {@link components} - The OpenAPI components schema definition
3648
+ */
3649
+ export type RequestAuthcode2 = components['schemas']['api__domain__tld_specific__eu__models__RequestAuthcodeResponse'];
3618
3650
  /**
3619
3651
  * DomainAvailabilityResponse
3620
3652
  *