@opusdns/api 0.138.0 → 0.140.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 +666 -450
- package/src/helpers/requests.d.ts +8 -8
- package/src/helpers/responses.d.ts +15 -15
- package/src/helpers/schemas-arrays.d.ts +15 -1
- package/src/helpers/schemas.d.ts +44 -28
- package/src/openapi.yaml +196 -235
- package/src/schema.d.ts +135 -78
|
@@ -34,7 +34,7 @@ import { operations } from '../schema';
|
|
|
34
34
|
|
|
35
35
|
import { DomainDnssecDataCreateArray, OrganizationAttributeUpdateArray } from './schemas-arrays.d';
|
|
36
36
|
|
|
37
|
-
import { ContactCreate, DnsZoneCreate, DnsZoneRecordsPatchOps, DnsZoneRrsetsPatchOps, DnsZoneRrsetsCreate, DomainForwardPatchOps, DomainForwardCreateRequest,
|
|
37
|
+
import { ContactCreate, DnsZoneCreate, DnsZoneRecordsPatchOps, DnsZoneRrsetsPatchOps, DnsZoneRrsetsCreate, DomainForwardPatchOps, DomainForwardCreateRequest, DomainForwardSetCreateRequest, DomainForwardSetRequest, DomainCreate, DomainUpdate, DomainRenewRequest, DomainRestoreRequest, DomainWithdrawRequest, DomainTransitRequest, DomainTransferIn, EmailForwardCreate, EmailForwardAliasCreate, EmailForwardAliasUpdate, OrganizationCreate, IpRestrictionCreate, IpRestrictionUpdate, OrganizationUpdate, UserCreate, PasswordUpdate, UserUpdate, SpiceDbRelationshipUpdate } from './schemas.d';
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* Request type for GET ArchiveEmailForwardLogsAliasesEmailForwardAliasId endpoint
|
|
@@ -1609,8 +1609,8 @@ export type GET_DomainForwardsHostname_Request_Path = GET_DomainForwardsHostname
|
|
|
1609
1609
|
/**
|
|
1610
1610
|
* Request type for POST DomainForwardsHostname endpoint
|
|
1611
1611
|
*
|
|
1612
|
-
* Create
|
|
1613
|
-
*
|
|
1612
|
+
* Create domain forward set
|
|
1613
|
+
* Creates a new domain forward set for a specific protocol (HTTP or HTTPS). Raises an error if the set already exists.
|
|
1614
1614
|
*
|
|
1615
1615
|
* @remarks
|
|
1616
1616
|
* This type defines the complete request structure for the POST DomainForwardsHostname endpoint.
|
|
@@ -1629,9 +1629,9 @@ export type GET_DomainForwardsHostname_Request_Path = GET_DomainForwardsHostname
|
|
|
1629
1629
|
*/
|
|
1630
1630
|
export type POST_DomainForwardsHostname_Request = {
|
|
1631
1631
|
parameters: {
|
|
1632
|
-
path: operations['
|
|
1632
|
+
path: operations['create_domain_forward_set_v1_domain_forwards__hostname__post']['parameters']['path'];
|
|
1633
1633
|
};
|
|
1634
|
-
requestBody:
|
|
1634
|
+
requestBody: DomainForwardSetCreateRequest;
|
|
1635
1635
|
}
|
|
1636
1636
|
/**
|
|
1637
1637
|
* Path parameters for POST /v1/domain-forwards/{hostname}
|
|
@@ -1828,8 +1828,8 @@ export type GET_DomainForwardsHostnameProtocol_Request_Path = GET_DomainForwards
|
|
|
1828
1828
|
/**
|
|
1829
1829
|
* Request type for POST DomainForwardsHostnameProtocol endpoint
|
|
1830
1830
|
*
|
|
1831
|
-
* Create domain forward set
|
|
1832
|
-
* Creates a new domain forward set for a specific protocol (HTTP or HTTPS).
|
|
1831
|
+
* Create domain forward set (deprecated)
|
|
1832
|
+
* Deprecated: Use POST /{hostname} with protocol in body instead. Creates a new domain forward set for a specific protocol (HTTP or HTTPS).
|
|
1833
1833
|
*
|
|
1834
1834
|
* @remarks
|
|
1835
1835
|
* This type defines the complete request structure for the POST DomainForwardsHostnameProtocol endpoint.
|
|
@@ -1848,7 +1848,7 @@ export type GET_DomainForwardsHostnameProtocol_Request_Path = GET_DomainForwards
|
|
|
1848
1848
|
*/
|
|
1849
1849
|
export type POST_DomainForwardsHostnameProtocol_Request = {
|
|
1850
1850
|
parameters: {
|
|
1851
|
-
path: operations['
|
|
1851
|
+
path: operations['create_domain_forward_set_deprecated_v1_domain_forwards__hostname___protocol__post']['parameters']['path'];
|
|
1852
1852
|
};
|
|
1853
1853
|
requestBody: DomainForwardSetRequest;
|
|
1854
1854
|
}
|
|
@@ -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, RequestAuthcode2, Pagination_EmailForward, EmailForward, EmailForwardAlias, Pagination_Event, EventSchema, Pagination_Organization, Organization, OrganizationWithBillingData, Pagination_Invoice, GetPrices, Pagination_BillingTransaction, BillingTransaction, IpRestriction,
|
|
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_UserPublic, TldSpecification, UserPublic, UserPublicWithAttributes, PermissionSet, RelationSet, UserWithRelationPermissions } from './schemas.d';
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* Response types for GET ArchiveEmailForwardLogsAliasesByEmailForwardAliasId endpoint
|
|
@@ -2903,8 +2903,8 @@ export type GET_DomainForwardsByHostname_Response_422 = HTTPValidationError
|
|
|
2903
2903
|
/**
|
|
2904
2904
|
* Response types for POST DomainForwardsByHostname endpoint
|
|
2905
2905
|
*
|
|
2906
|
-
* Create
|
|
2907
|
-
*
|
|
2906
|
+
* Create domain forward set
|
|
2907
|
+
* Creates a new domain forward set for a specific protocol (HTTP or HTTPS). Raises an error if the set already exists.
|
|
2908
2908
|
*
|
|
2909
2909
|
* @remarks
|
|
2910
2910
|
* This type defines all possible response structures for the POST DomainForwardsByHostname endpoint.
|
|
@@ -2941,9 +2941,9 @@ export type POST_DomainForwardsByHostname_Response = POST_DomainForwardsByHostna
|
|
|
2941
2941
|
* @param hostname (path) - Hostname
|
|
2942
2942
|
*
|
|
2943
2943
|
* @see {@link POST_DomainForwardsByHostname_Response} - The main response type definition
|
|
2944
|
-
* @see {@link
|
|
2944
|
+
* @see {@link DomainForwardSet} - The actual schema type definition
|
|
2945
2945
|
*/
|
|
2946
|
-
export type POST_DomainForwardsByHostname_Response_201 =
|
|
2946
|
+
export type POST_DomainForwardsByHostname_Response_201 = DomainForwardSet
|
|
2947
2947
|
|
|
2948
2948
|
/**
|
|
2949
2949
|
* 401 response for POST DomainForwardsByHostname endpoint
|
|
@@ -3251,8 +3251,8 @@ export type GET_DomainForwardsByHostnameByProtocol_Response_422 = HTTPValidation
|
|
|
3251
3251
|
/**
|
|
3252
3252
|
* Response types for POST DomainForwardsByHostnameByProtocol endpoint
|
|
3253
3253
|
*
|
|
3254
|
-
* Create domain forward set
|
|
3255
|
-
* Creates a new domain forward set for a specific protocol (HTTP or HTTPS).
|
|
3254
|
+
* Create domain forward set (deprecated)
|
|
3255
|
+
* Deprecated: Use POST /{hostname} with protocol in body instead. Creates a new domain forward set for a specific protocol (HTTP or HTTPS).
|
|
3256
3256
|
*
|
|
3257
3257
|
* @remarks
|
|
3258
3258
|
* This type defines all possible response structures for the POST DomainForwardsByHostnameByProtocol endpoint.
|
|
@@ -8135,9 +8135,9 @@ export type GET_OrganizationsUsers_Response = GET_OrganizationsUsers_Response_20
|
|
|
8135
8135
|
* @path /v1/organizations/users
|
|
8136
8136
|
*
|
|
8137
8137
|
* @see {@link GET_OrganizationsUsers_Response} - The main response type definition
|
|
8138
|
-
* @see {@link
|
|
8138
|
+
* @see {@link Pagination_UserPublic} - The actual schema type definition
|
|
8139
8139
|
*/
|
|
8140
|
-
export type GET_OrganizationsUsers_Response_200 =
|
|
8140
|
+
export type GET_OrganizationsUsers_Response_200 = Pagination_UserPublic
|
|
8141
8141
|
|
|
8142
8142
|
/**
|
|
8143
8143
|
* 401 response for GET OrganizationsUsers endpoint
|
|
@@ -8393,9 +8393,9 @@ export type POST_Users_Response = POST_Users_Response_200 | POST_Users_Response_
|
|
|
8393
8393
|
* @path /v1/users
|
|
8394
8394
|
*
|
|
8395
8395
|
* @see {@link POST_Users_Response} - The main response type definition
|
|
8396
|
-
* @see {@link
|
|
8396
|
+
* @see {@link UserPublic} - The actual schema type definition
|
|
8397
8397
|
*/
|
|
8398
|
-
export type POST_Users_Response_200 =
|
|
8398
|
+
export type POST_Users_Response_200 = UserPublic
|
|
8399
8399
|
|
|
8400
8400
|
/**
|
|
8401
8401
|
* 422 response for POST Users endpoint
|
|
@@ -8505,9 +8505,9 @@ export type GET_UsersByUserId_Response = GET_UsersByUserId_Response_200 | GET_Us
|
|
|
8505
8505
|
* @path /v1/users/{user_id}
|
|
8506
8506
|
*
|
|
8507
8507
|
* @see {@link GET_UsersByUserId_Response} - The main response type definition
|
|
8508
|
-
* @see {@link
|
|
8508
|
+
* @see {@link UserPublicWithAttributes} - The actual schema type definition
|
|
8509
8509
|
*/
|
|
8510
|
-
export type GET_UsersByUserId_Response_200 =
|
|
8510
|
+
export type GET_UsersByUserId_Response_200 = UserPublicWithAttributes
|
|
8511
8511
|
|
|
8512
8512
|
/**
|
|
8513
8513
|
* 422 response for GET UsersByUserId endpoint
|
|
@@ -8561,9 +8561,9 @@ export type PATCH_UsersByUserId_Response = PATCH_UsersByUserId_Response_200 | PA
|
|
|
8561
8561
|
* @path /v1/users/{user_id}
|
|
8562
8562
|
*
|
|
8563
8563
|
* @see {@link PATCH_UsersByUserId_Response} - The main response type definition
|
|
8564
|
-
* @see {@link
|
|
8564
|
+
* @see {@link UserPublicWithAttributes} - The actual schema type definition
|
|
8565
8565
|
*/
|
|
8566
|
-
export type PATCH_UsersByUserId_Response_200 =
|
|
8566
|
+
export type PATCH_UsersByUserId_Response_200 = UserPublicWithAttributes
|
|
8567
8567
|
|
|
8568
8568
|
/**
|
|
8569
8569
|
* 422 response for PATCH UsersByUserId endpoint
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* This file is auto-generated from the OpenAPI specification.
|
|
22
22
|
* Do not edit manually.
|
|
23
23
|
*/
|
|
24
|
-
import { DomainDnssecData, DomainDnssecDataCreate, OrganizationAttribute, OrganizationAttributeUpdate, IpRestriction, TldResponseShort, RegistryHandleAttributeType, ContactAttributeDefinition, ContactRoleAttributeRequirement, PostalAddressType, ContactConfigBase, DnsChange, DnsRecordCreate, DnsRecord, DnsRrsetCreate, DnsRecordPatchOp, DnsRrset, DnsRrsetPatchOp, DomainAvailabilityCheck, ContactHandle, Nameserver, DomainForwardPatchOp, HttpRedirectList, DomainForward, DeletePolicyType, SyncOperationType, DomainContact, DomainHost, DomainSearchSuggestionWithPrice, DomainStatus, DomainClientStatus, EmailForwardAliasCreate, EmailForwardLogEvent, EmailForwardAlias, EmailForward, PriceInfo, ValidationError, LaunchPhaseBase, LocalPresenceRequirementType, DomainContactType, OrganizationAttribute2, User, OrganizationAttributeCreate, UserCreate, BillingTransaction, ContactSchema, DnsZone, DomainForwardZone, Domain, EmailForwardLog, EmailForwardZone, EventResponse, Invoice, ObjectLog, Organization, RequestHistory, Period, Permission, PremiumAffectsType, Relation, TldBase, PostTransferRequirements, UserAttributeBase, DomainAvailability } from './schemas.d';
|
|
24
|
+
import { DomainDnssecData, DomainDnssecDataCreate, OrganizationAttribute, OrganizationAttributeUpdate, IpRestriction, TldResponseShort, RegistryHandleAttributeType, ContactAttributeDefinition, ContactRoleAttributeRequirement, PostalAddressType, ContactConfigBase, DnsChange, DnsRecordCreate, DnsRecord, DnsRrsetCreate, DnsRecordPatchOp, DnsRrset, DnsRrsetPatchOp, DomainAvailabilityCheck, ContactHandle, Nameserver, DomainForwardPatchOp, HttpRedirectList, DomainForward, DeletePolicyType, SyncOperationType, DomainContact, DomainHost, DomainSearchSuggestionWithPrice, DomainStatus, DomainClientStatus, EmailForwardAliasCreate, EmailForwardLogEvent, EmailForwardAlias, EmailForward, PriceInfo, ValidationError, LaunchPhaseBase, LocalPresenceRequirementType, DomainContactType, OrganizationAttribute2, User, OrganizationAttributeCreate, UserCreate, BillingTransaction, ContactSchema, DnsZone, DomainForwardZone, Domain, EmailForwardLog, EmailForwardZone, EventResponse, Invoice, ObjectLog, Organization, RequestHistory, UserPublic, Period, Permission, PremiumAffectsType, Relation, TldBase, PostTransferRequirements, UserAttributeBase, DomainAvailability } from './schemas.d';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* DomainDnssecDataResponse
|
|
@@ -807,6 +807,20 @@ export type OrganizationArray = Organization[];
|
|
|
807
807
|
* @see {@link RequestHistory} - The individual RequestHistory type definition
|
|
808
808
|
*/
|
|
809
809
|
export type RequestHistoryArray = RequestHistory[];
|
|
810
|
+
/**
|
|
811
|
+
* UserPublic
|
|
812
|
+
*
|
|
813
|
+
* @remarks
|
|
814
|
+
* Array type for UserPublic objects. Used when the API returns a collection of UserPublic instances.
|
|
815
|
+
*
|
|
816
|
+
* @example
|
|
817
|
+
* ```typescript
|
|
818
|
+
* const items: UserPublicArray = await api.getUserPublics();
|
|
819
|
+
* ```
|
|
820
|
+
*
|
|
821
|
+
* @see {@link UserPublic} - The individual UserPublic type definition
|
|
822
|
+
*/
|
|
823
|
+
export type UserPublicArray = UserPublic[];
|
|
810
824
|
/**
|
|
811
825
|
* Period
|
|
812
826
|
*
|
package/src/helpers/schemas.d.ts
CHANGED
|
@@ -1115,21 +1115,21 @@ export type DomainForwardProtocolSetRequest = components['schemas']['DomainForwa
|
|
|
1115
1115
|
*/
|
|
1116
1116
|
export type DomainForwardProtocolSet = components['schemas']['DomainForwardProtocolSetResponse'];
|
|
1117
1117
|
/**
|
|
1118
|
-
*
|
|
1118
|
+
* DomainForwardSetCreateRequest
|
|
1119
1119
|
*
|
|
1120
1120
|
* @remarks
|
|
1121
|
-
* Type alias for the `
|
|
1122
|
-
* This type represents
|
|
1121
|
+
* Type alias for the `DomainForwardSetCreateRequest` OpenAPI schema.
|
|
1122
|
+
* This type represents domainforwardsetcreaterequest data structures used in API requests and responses.
|
|
1123
1123
|
*
|
|
1124
1124
|
* @example
|
|
1125
1125
|
* ```typescript
|
|
1126
|
-
* const response = await api.
|
|
1127
|
-
* const item:
|
|
1126
|
+
* const response = await api.getDomainForwardSetCreateRequest();
|
|
1127
|
+
* const item: DomainForwardSetCreateRequest = response.results;
|
|
1128
1128
|
* ```
|
|
1129
1129
|
*
|
|
1130
1130
|
* @see {@link components} - The OpenAPI components schema definition
|
|
1131
1131
|
*/
|
|
1132
|
-
export type
|
|
1132
|
+
export type DomainForwardSetCreateRequest = components['schemas']['DomainForwardSetCreateRequest'];
|
|
1133
1133
|
/**
|
|
1134
1134
|
* DomainForwardSetRequest
|
|
1135
1135
|
*
|
|
@@ -2816,21 +2816,21 @@ export type Pagination_Organization = components['schemas']['Pagination_Organiza
|
|
|
2816
2816
|
*/
|
|
2817
2817
|
export type Pagination_RequestHistory = components['schemas']['Pagination_RequestHistory_'];
|
|
2818
2818
|
/**
|
|
2819
|
-
* Pagination[
|
|
2819
|
+
* Pagination[UserPublic]
|
|
2820
2820
|
*
|
|
2821
2821
|
* @remarks
|
|
2822
|
-
* Type alias for the `
|
|
2823
|
-
* This type represents pagination[
|
|
2822
|
+
* Type alias for the `Pagination_UserPublic_` OpenAPI schema.
|
|
2823
|
+
* This type represents pagination[userpublic] data structures used in API requests and responses.
|
|
2824
2824
|
*
|
|
2825
2825
|
* @example
|
|
2826
2826
|
* ```typescript
|
|
2827
|
-
* const response = await api.
|
|
2828
|
-
* const item:
|
|
2827
|
+
* const response = await api.getPagination_UserPublic();
|
|
2828
|
+
* const item: Pagination_UserPublic = response.results;
|
|
2829
2829
|
* ```
|
|
2830
2830
|
*
|
|
2831
2831
|
* @see {@link components} - The OpenAPI components schema definition
|
|
2832
2832
|
*/
|
|
2833
|
-
export type
|
|
2833
|
+
export type Pagination_UserPublic = components['schemas']['Pagination_UserPublic_'];
|
|
2834
2834
|
/**
|
|
2835
2835
|
* PasswordUpdate
|
|
2836
2836
|
*
|
|
@@ -3583,6 +3583,38 @@ export type UserAttribute = components['schemas']['UserAttributeResponse'];
|
|
|
3583
3583
|
* @see {@link components} - The OpenAPI components schema definition
|
|
3584
3584
|
*/
|
|
3585
3585
|
export type UserCreate = components['schemas']['UserCreate'];
|
|
3586
|
+
/**
|
|
3587
|
+
* UserPublic
|
|
3588
|
+
*
|
|
3589
|
+
* @remarks
|
|
3590
|
+
* Type alias for the `UserPublic` OpenAPI schema.
|
|
3591
|
+
* This type represents userpublic data structures used in API requests and responses.
|
|
3592
|
+
*
|
|
3593
|
+
* @example
|
|
3594
|
+
* ```typescript
|
|
3595
|
+
* const response = await api.getUserPublic();
|
|
3596
|
+
* const item: UserPublic = response.results;
|
|
3597
|
+
* ```
|
|
3598
|
+
*
|
|
3599
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
3600
|
+
*/
|
|
3601
|
+
export type UserPublic = components['schemas']['UserPublic'];
|
|
3602
|
+
/**
|
|
3603
|
+
* UserPublicWithAttributes
|
|
3604
|
+
*
|
|
3605
|
+
* @remarks
|
|
3606
|
+
* Type alias for the `UserPublicWithAttributes` OpenAPI schema.
|
|
3607
|
+
* This type represents userpublicwithattributes data structures used in API requests and responses.
|
|
3608
|
+
*
|
|
3609
|
+
* @example
|
|
3610
|
+
* ```typescript
|
|
3611
|
+
* const response = await api.getUserPublicWithAttributes();
|
|
3612
|
+
* const item: UserPublicWithAttributes = response.results;
|
|
3613
|
+
* ```
|
|
3614
|
+
*
|
|
3615
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
3616
|
+
*/
|
|
3617
|
+
export type UserPublicWithAttributes = components['schemas']['UserPublicWithAttributes'];
|
|
3586
3618
|
/**
|
|
3587
3619
|
* UserStatus
|
|
3588
3620
|
*
|
|
@@ -3631,22 +3663,6 @@ export type UserToken = components['schemas']['UserTokenResponse'];
|
|
|
3631
3663
|
* @see {@link components} - The OpenAPI components schema definition
|
|
3632
3664
|
*/
|
|
3633
3665
|
export type UserUpdate = components['schemas']['UserUpdate'];
|
|
3634
|
-
/**
|
|
3635
|
-
* UserWithAttributes
|
|
3636
|
-
*
|
|
3637
|
-
* @remarks
|
|
3638
|
-
* Type alias for the `UserWithAttributes` OpenAPI schema.
|
|
3639
|
-
* This type represents userwithattributes data structures used in API requests and responses.
|
|
3640
|
-
*
|
|
3641
|
-
* @example
|
|
3642
|
-
* ```typescript
|
|
3643
|
-
* const response = await api.getUserWithAttributes();
|
|
3644
|
-
* const item: UserWithAttributes = response.results;
|
|
3645
|
-
* ```
|
|
3646
|
-
*
|
|
3647
|
-
* @see {@link components} - The OpenAPI components schema definition
|
|
3648
|
-
*/
|
|
3649
|
-
export type UserWithAttributes = components['schemas']['UserWithAttributes'];
|
|
3650
3666
|
/**
|
|
3651
3667
|
* UserWithRelationPermissions
|
|
3652
3668
|
*
|