@opusdns/api 0.257.0 → 0.259.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/constants.ts +105 -1
- package/src/helpers/keys.ts +840 -0
- package/src/helpers/requests.d.ts +300 -1
- package/src/helpers/responses.d.ts +649 -1
- package/src/helpers/schemas-arrays.d.ts +29 -1
- package/src/helpers/schemas.d.ts +144 -0
- package/src/openapi.yaml +722 -1
- package/src/schema.d.ts +727 -0
|
@@ -34,7 +34,7 @@ import { operations } from '../schema';
|
|
|
34
34
|
|
|
35
35
|
import { DomainDnssecDataCreateArray, OrganizationAttributeUpdateArray } from './schemas-arrays.d';
|
|
36
36
|
|
|
37
|
-
import { PublicAuthRequestForm, DomainAvailabilityRequest, ContactCreate, ContactAttributeSetCreate, ContactAttributeSetUpdate, DnsZoneCreate, DnsZoneRecordsPatchOps, DnsZoneRrsetsPatchOps, DnsZoneRrsetsCreate, DomainForwardPatchOps, DomainForwardCreateRequest, DomainForwardSetCreateRequest, DomainForwardSetRequest, DomainCreate, DomainUpdate, DomainRenewRequest, DomainRestoreRequest, DomainWithdrawRequest, DomainTransitRequest, DomainTransferIn, EmailForwardCreate, EmailForwardAliasCreate, EmailForwardAliasUpdate, JobBatchRequest, OrganizationCreate, IpRestrictionCreate, IpRestrictionUpdate, OrganizationUpdate, ParkingSignupRequest, UserCreate, PasswordUpdate, UserUpdate, SpiceDbRelationshipUpdate } from './schemas.d';
|
|
37
|
+
import { PublicAuthRequestForm, DomainAvailabilityRequest, ContactCreate, ContactAttributeSetCreate, ContactAttributeSetUpdate, DnsZoneCreate, DnsZoneRecordsPatchOps, DnsZoneRrsetsPatchOps, DnsZoneRrsetsCreate, DomainForwardPatchOps, DomainForwardCreateRequest, DomainForwardSetCreateRequest, DomainForwardSetRequest, DomainCreate, DomainUpdate, DomainRenewRequest, DomainRestoreRequest, DomainWithdrawRequest, DomainTransitRequest, DomainTransferIn, EmailForwardCreate, EmailForwardAliasCreate, EmailForwardAliasUpdate, JobBatchRequest, OrganizationCreate, IpRestrictionCreate, IpRestrictionUpdate, OrganizationUpdate, ParkingSignupRequest, TagCreate, BulkObjectTagChanges, TagUpdate, ObjectTagChanges, UserCreate, PasswordUpdate, UserUpdate, SpiceDbRelationshipUpdate } from './schemas.d';
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* Request type for GET ArchiveEmailForwardLogsAliasesEmailForwardAliasId endpoint
|
|
@@ -5716,6 +5716,305 @@ export type GET_ReportsReportIdDownload_Request = {
|
|
|
5716
5716
|
*/
|
|
5717
5717
|
export type GET_ReportsReportIdDownload_Request_Path = GET_ReportsReportIdDownload_Request['parameters']['path'];
|
|
5718
5718
|
|
|
5719
|
+
/**
|
|
5720
|
+
* Request type for GET Tags endpoint
|
|
5721
|
+
*
|
|
5722
|
+
* List tags
|
|
5723
|
+
* Retrieves a paginated list of tags
|
|
5724
|
+
*
|
|
5725
|
+
* @remarks
|
|
5726
|
+
* This type defines the complete request structure for the GET Tags endpoint.
|
|
5727
|
+
* It includes all parameters (query, path) and request body types as defined in the OpenAPI specification.
|
|
5728
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
5729
|
+
*
|
|
5730
|
+
* @example
|
|
5731
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
5732
|
+
*
|
|
5733
|
+
* @path /v1/tags
|
|
5734
|
+
* @param tag_types (query) - Filter by tag types (OR semantics)
|
|
5735
|
+
*
|
|
5736
|
+
* @see {@link GET_Tags_Request_Query} - Query parameters type
|
|
5737
|
+
* @see {@link GET_Tags_Request_Path} - Path parameters type
|
|
5738
|
+
* @see {@link GET_Tags_Request_Body} - Request body type
|
|
5739
|
+
*/
|
|
5740
|
+
export type GET_Tags_Request = {
|
|
5741
|
+
parameters: {
|
|
5742
|
+
query: operations['list_tags_v1_tags_get']['parameters']['query'];
|
|
5743
|
+
};
|
|
5744
|
+
}
|
|
5745
|
+
/**
|
|
5746
|
+
* Query parameters for GET /v1/tags
|
|
5747
|
+
*
|
|
5748
|
+
* @remarks
|
|
5749
|
+
* This type defines the query parameters for the GET /v1/tags endpoint.
|
|
5750
|
+
* It provides type safety for all query parameters as defined in the OpenAPI specification.
|
|
5751
|
+
*
|
|
5752
|
+
* @example
|
|
5753
|
+
* Use this type to ensure type safety for query parameters.
|
|
5754
|
+
*
|
|
5755
|
+
* @path /v1/tags
|
|
5756
|
+
* @param tag_types (query) - Filter by tag types (OR semantics)
|
|
5757
|
+
*/
|
|
5758
|
+
export type GET_Tags_Request_Query = GET_Tags_Request['parameters']['query'];
|
|
5759
|
+
|
|
5760
|
+
/**
|
|
5761
|
+
* Request type for POST Tags endpoint
|
|
5762
|
+
*
|
|
5763
|
+
* Create a tag
|
|
5764
|
+
* Create a new tag
|
|
5765
|
+
*
|
|
5766
|
+
* @remarks
|
|
5767
|
+
* This type defines the complete request structure for the POST Tags endpoint.
|
|
5768
|
+
* It includes all parameters (query, path) and request body types as defined in the OpenAPI specification.
|
|
5769
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
5770
|
+
*
|
|
5771
|
+
* @example
|
|
5772
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
5773
|
+
*
|
|
5774
|
+
* @path /v1/tags
|
|
5775
|
+
*
|
|
5776
|
+
* @see {@link POST_Tags_Request_Query} - Query parameters type
|
|
5777
|
+
* @see {@link POST_Tags_Request_Path} - Path parameters type
|
|
5778
|
+
* @see {@link POST_Tags_Request_Body} - Request body type
|
|
5779
|
+
*/
|
|
5780
|
+
export type POST_Tags_Request = {
|
|
5781
|
+
requestBody: TagCreate;
|
|
5782
|
+
}
|
|
5783
|
+
/**
|
|
5784
|
+
* Request body for POST /v1/tags
|
|
5785
|
+
*
|
|
5786
|
+
* @remarks
|
|
5787
|
+
* This type defines the request body structure for the POST /v1/tags endpoint.
|
|
5788
|
+
* It provides type safety for the request body as defined in the OpenAPI specification.
|
|
5789
|
+
*
|
|
5790
|
+
* @example
|
|
5791
|
+
* Use this type to ensure type safety for request body structure.
|
|
5792
|
+
*
|
|
5793
|
+
* @path /v1/tags
|
|
5794
|
+
*/
|
|
5795
|
+
export type POST_Tags_Request_Body = POST_Tags_Request['requestBody'];
|
|
5796
|
+
|
|
5797
|
+
/**
|
|
5798
|
+
* Request type for POST TagsObjects endpoint
|
|
5799
|
+
*
|
|
5800
|
+
* Bulk tag or untag objects
|
|
5801
|
+
* Add, remove, or replace tags on multiple objects at once. 'replace' is mutually exclusive with 'add' and 'remove'.
|
|
5802
|
+
*
|
|
5803
|
+
* @remarks
|
|
5804
|
+
* This type defines the complete request structure for the POST TagsObjects endpoint.
|
|
5805
|
+
* It includes all parameters (query, path) and request body types as defined in the OpenAPI specification.
|
|
5806
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
5807
|
+
*
|
|
5808
|
+
* @example
|
|
5809
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
5810
|
+
*
|
|
5811
|
+
* @path /v1/tags/objects
|
|
5812
|
+
*
|
|
5813
|
+
* @see {@link POST_TagsObjects_Request_Query} - Query parameters type
|
|
5814
|
+
* @see {@link POST_TagsObjects_Request_Path} - Path parameters type
|
|
5815
|
+
* @see {@link POST_TagsObjects_Request_Body} - Request body type
|
|
5816
|
+
*/
|
|
5817
|
+
export type POST_TagsObjects_Request = {
|
|
5818
|
+
requestBody: BulkObjectTagChanges;
|
|
5819
|
+
}
|
|
5820
|
+
/**
|
|
5821
|
+
* Request body for POST /v1/tags/objects
|
|
5822
|
+
*
|
|
5823
|
+
* @remarks
|
|
5824
|
+
* This type defines the request body structure for the POST /v1/tags/objects endpoint.
|
|
5825
|
+
* It provides type safety for the request body as defined in the OpenAPI specification.
|
|
5826
|
+
*
|
|
5827
|
+
* @example
|
|
5828
|
+
* Use this type to ensure type safety for request body structure.
|
|
5829
|
+
*
|
|
5830
|
+
* @path /v1/tags/objects
|
|
5831
|
+
*/
|
|
5832
|
+
export type POST_TagsObjects_Request_Body = POST_TagsObjects_Request['requestBody'];
|
|
5833
|
+
|
|
5834
|
+
/**
|
|
5835
|
+
* Request type for DELETE TagsTagId endpoint
|
|
5836
|
+
*
|
|
5837
|
+
* Delete a tag
|
|
5838
|
+
* Delete a tag
|
|
5839
|
+
*
|
|
5840
|
+
* @remarks
|
|
5841
|
+
* This type defines the complete request structure for the DELETE TagsTagId endpoint.
|
|
5842
|
+
* It includes all parameters (query, path) and request body types as defined in the OpenAPI specification.
|
|
5843
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
5844
|
+
*
|
|
5845
|
+
* @example
|
|
5846
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
5847
|
+
*
|
|
5848
|
+
* @path /v1/tags/{tag_id}
|
|
5849
|
+
*
|
|
5850
|
+
* @see {@link DELETE_TagsTagId_Request_Query} - Query parameters type
|
|
5851
|
+
* @see {@link DELETE_TagsTagId_Request_Path} - Path parameters type
|
|
5852
|
+
* @see {@link DELETE_TagsTagId_Request_Body} - Request body type
|
|
5853
|
+
*/
|
|
5854
|
+
export type DELETE_TagsTagId_Request = {
|
|
5855
|
+
parameters: {
|
|
5856
|
+
path: operations['delete_tag_v1_tags__tag_id__delete']['parameters']['path'];
|
|
5857
|
+
};
|
|
5858
|
+
}
|
|
5859
|
+
/**
|
|
5860
|
+
* Path parameters for DELETE /v1/tags/{tag_id}
|
|
5861
|
+
*
|
|
5862
|
+
* @remarks
|
|
5863
|
+
* This type defines the path parameters for the DELETE /v1/tags/{tag_id} endpoint.
|
|
5864
|
+
* It provides type safety for all path parameters as defined in the OpenAPI specification.
|
|
5865
|
+
*
|
|
5866
|
+
* @example
|
|
5867
|
+
* Use this type to ensure type safety for path parameters.
|
|
5868
|
+
*
|
|
5869
|
+
* @path /v1/tags/{tag_id}
|
|
5870
|
+
*/
|
|
5871
|
+
export type DELETE_TagsTagId_Request_Path = DELETE_TagsTagId_Request['parameters']['path'];
|
|
5872
|
+
|
|
5873
|
+
/**
|
|
5874
|
+
* Request type for GET TagsTagId endpoint
|
|
5875
|
+
*
|
|
5876
|
+
* Get a tag
|
|
5877
|
+
* Retrieve a single tag by its ID
|
|
5878
|
+
*
|
|
5879
|
+
* @remarks
|
|
5880
|
+
* This type defines the complete request structure for the GET TagsTagId endpoint.
|
|
5881
|
+
* It includes all parameters (query, path) and request body types as defined in the OpenAPI specification.
|
|
5882
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
5883
|
+
*
|
|
5884
|
+
* @example
|
|
5885
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
5886
|
+
*
|
|
5887
|
+
* @path /v1/tags/{tag_id}
|
|
5888
|
+
*
|
|
5889
|
+
* @see {@link GET_TagsTagId_Request_Query} - Query parameters type
|
|
5890
|
+
* @see {@link GET_TagsTagId_Request_Path} - Path parameters type
|
|
5891
|
+
* @see {@link GET_TagsTagId_Request_Body} - Request body type
|
|
5892
|
+
*/
|
|
5893
|
+
export type GET_TagsTagId_Request = {
|
|
5894
|
+
parameters: {
|
|
5895
|
+
path: operations['get_tag_v1_tags__tag_id__get']['parameters']['path'];
|
|
5896
|
+
};
|
|
5897
|
+
}
|
|
5898
|
+
/**
|
|
5899
|
+
* Path parameters for GET /v1/tags/{tag_id}
|
|
5900
|
+
*
|
|
5901
|
+
* @remarks
|
|
5902
|
+
* This type defines the path parameters for the GET /v1/tags/{tag_id} endpoint.
|
|
5903
|
+
* It provides type safety for all path parameters as defined in the OpenAPI specification.
|
|
5904
|
+
*
|
|
5905
|
+
* @example
|
|
5906
|
+
* Use this type to ensure type safety for path parameters.
|
|
5907
|
+
*
|
|
5908
|
+
* @path /v1/tags/{tag_id}
|
|
5909
|
+
*/
|
|
5910
|
+
export type GET_TagsTagId_Request_Path = GET_TagsTagId_Request['parameters']['path'];
|
|
5911
|
+
|
|
5912
|
+
/**
|
|
5913
|
+
* Request type for PATCH TagsTagId endpoint
|
|
5914
|
+
*
|
|
5915
|
+
* Update a tag
|
|
5916
|
+
* Update a tag's label, description, or color
|
|
5917
|
+
*
|
|
5918
|
+
* @remarks
|
|
5919
|
+
* This type defines the complete request structure for the PATCH TagsTagId endpoint.
|
|
5920
|
+
* It includes all parameters (query, path) and request body types as defined in the OpenAPI specification.
|
|
5921
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
5922
|
+
*
|
|
5923
|
+
* @example
|
|
5924
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
5925
|
+
*
|
|
5926
|
+
* @path /v1/tags/{tag_id}
|
|
5927
|
+
*
|
|
5928
|
+
* @see {@link PATCH_TagsTagId_Request_Query} - Query parameters type
|
|
5929
|
+
* @see {@link PATCH_TagsTagId_Request_Path} - Path parameters type
|
|
5930
|
+
* @see {@link PATCH_TagsTagId_Request_Body} - Request body type
|
|
5931
|
+
*/
|
|
5932
|
+
export type PATCH_TagsTagId_Request = {
|
|
5933
|
+
parameters: {
|
|
5934
|
+
path: operations['update_tag_v1_tags__tag_id__patch']['parameters']['path'];
|
|
5935
|
+
};
|
|
5936
|
+
requestBody: TagUpdate;
|
|
5937
|
+
}
|
|
5938
|
+
/**
|
|
5939
|
+
* Path parameters for PATCH /v1/tags/{tag_id}
|
|
5940
|
+
*
|
|
5941
|
+
* @remarks
|
|
5942
|
+
* This type defines the path parameters for the PATCH /v1/tags/{tag_id} endpoint.
|
|
5943
|
+
* It provides type safety for all path parameters as defined in the OpenAPI specification.
|
|
5944
|
+
*
|
|
5945
|
+
* @example
|
|
5946
|
+
* Use this type to ensure type safety for path parameters.
|
|
5947
|
+
*
|
|
5948
|
+
* @path /v1/tags/{tag_id}
|
|
5949
|
+
*/
|
|
5950
|
+
export type PATCH_TagsTagId_Request_Path = PATCH_TagsTagId_Request['parameters']['path'];
|
|
5951
|
+
/**
|
|
5952
|
+
* Request body for PATCH /v1/tags/{tag_id}
|
|
5953
|
+
*
|
|
5954
|
+
* @remarks
|
|
5955
|
+
* This type defines the request body structure for the PATCH /v1/tags/{tag_id} endpoint.
|
|
5956
|
+
* It provides type safety for the request body as defined in the OpenAPI specification.
|
|
5957
|
+
*
|
|
5958
|
+
* @example
|
|
5959
|
+
* Use this type to ensure type safety for request body structure.
|
|
5960
|
+
*
|
|
5961
|
+
* @path /v1/tags/{tag_id}
|
|
5962
|
+
*/
|
|
5963
|
+
export type PATCH_TagsTagId_Request_Body = PATCH_TagsTagId_Request['requestBody'];
|
|
5964
|
+
|
|
5965
|
+
/**
|
|
5966
|
+
* Request type for POST TagsTagIdObjects endpoint
|
|
5967
|
+
*
|
|
5968
|
+
* Tag or untag objects
|
|
5969
|
+
* Add or remove objects from a tag. Objects are matched by the tag's type (e.g. a DOMAIN tag only accepts domain IDs).
|
|
5970
|
+
*
|
|
5971
|
+
* @remarks
|
|
5972
|
+
* This type defines the complete request structure for the POST TagsTagIdObjects endpoint.
|
|
5973
|
+
* It includes all parameters (query, path) and request body types as defined in the OpenAPI specification.
|
|
5974
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
5975
|
+
*
|
|
5976
|
+
* @example
|
|
5977
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
5978
|
+
*
|
|
5979
|
+
* @path /v1/tags/{tag_id}/objects
|
|
5980
|
+
*
|
|
5981
|
+
* @see {@link POST_TagsTagIdObjects_Request_Query} - Query parameters type
|
|
5982
|
+
* @see {@link POST_TagsTagIdObjects_Request_Path} - Path parameters type
|
|
5983
|
+
* @see {@link POST_TagsTagIdObjects_Request_Body} - Request body type
|
|
5984
|
+
*/
|
|
5985
|
+
export type POST_TagsTagIdObjects_Request = {
|
|
5986
|
+
parameters: {
|
|
5987
|
+
path: operations['update_tag_objects_v1_tags__tag_id__objects_post']['parameters']['path'];
|
|
5988
|
+
};
|
|
5989
|
+
requestBody: ObjectTagChanges;
|
|
5990
|
+
}
|
|
5991
|
+
/**
|
|
5992
|
+
* Path parameters for POST /v1/tags/{tag_id}/objects
|
|
5993
|
+
*
|
|
5994
|
+
* @remarks
|
|
5995
|
+
* This type defines the path parameters for the POST /v1/tags/{tag_id}/objects endpoint.
|
|
5996
|
+
* It provides type safety for all path parameters as defined in the OpenAPI specification.
|
|
5997
|
+
*
|
|
5998
|
+
* @example
|
|
5999
|
+
* Use this type to ensure type safety for path parameters.
|
|
6000
|
+
*
|
|
6001
|
+
* @path /v1/tags/{tag_id}/objects
|
|
6002
|
+
*/
|
|
6003
|
+
export type POST_TagsTagIdObjects_Request_Path = POST_TagsTagIdObjects_Request['parameters']['path'];
|
|
6004
|
+
/**
|
|
6005
|
+
* Request body for POST /v1/tags/{tag_id}/objects
|
|
6006
|
+
*
|
|
6007
|
+
* @remarks
|
|
6008
|
+
* This type defines the request body structure for the POST /v1/tags/{tag_id}/objects endpoint.
|
|
6009
|
+
* It provides type safety for the request body as defined in the OpenAPI specification.
|
|
6010
|
+
*
|
|
6011
|
+
* @example
|
|
6012
|
+
* Use this type to ensure type safety for request body structure.
|
|
6013
|
+
*
|
|
6014
|
+
* @path /v1/tags/{tag_id}/objects
|
|
6015
|
+
*/
|
|
6016
|
+
export type POST_TagsTagIdObjects_Request_Body = POST_TagsTagIdObjects_Request['requestBody'];
|
|
6017
|
+
|
|
5719
6018
|
/**
|
|
5720
6019
|
* Request type for GET Tlds endpoint
|
|
5721
6020
|
*
|