@opusdns/api 1.12.0 → 1.14.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
@@ -1568,6 +1568,54 @@ export interface paths {
1568
1568
  patch: operations["acknowledge_event_v1_events__event_id__patch"];
1569
1569
  trace?: never;
1570
1570
  };
1571
+ "/v1/hosts": {
1572
+ parameters: {
1573
+ query?: never;
1574
+ header?: never;
1575
+ path?: never;
1576
+ cookie?: never;
1577
+ };
1578
+ get?: never;
1579
+ put?: never;
1580
+ /**
1581
+ * Create a Host Object
1582
+ * @description Create a new host object
1583
+ */
1584
+ post: operations["create_host_v1_hosts_post"];
1585
+ delete?: never;
1586
+ options?: never;
1587
+ head?: never;
1588
+ patch?: never;
1589
+ trace?: never;
1590
+ };
1591
+ "/v1/hosts/{host_reference}": {
1592
+ parameters: {
1593
+ query?: never;
1594
+ header?: never;
1595
+ path?: never;
1596
+ cookie?: never;
1597
+ };
1598
+ /**
1599
+ * Retrieve a Host Object
1600
+ * @description Retrieves a host object by either its ID or hostname
1601
+ */
1602
+ get: operations["get_host_v1_hosts__host_reference__get"];
1603
+ /**
1604
+ * Update a Host Object
1605
+ * @description Updates the IP addresses of a host object, referenced by either its ID or hostname
1606
+ */
1607
+ put: operations["update_host_v1_hosts__host_reference__put"];
1608
+ post?: never;
1609
+ /**
1610
+ * Delete a Host Object
1611
+ * @description Deletes a host object; only possible if the host is not in use
1612
+ */
1613
+ delete: operations["delete_host_v1_hosts__host_reference__delete"];
1614
+ options?: never;
1615
+ head?: never;
1616
+ patch?: never;
1617
+ trace?: never;
1618
+ };
1571
1619
  "/v1/job/{job_id}": {
1572
1620
  parameters: {
1573
1621
  query?: never;
@@ -3936,6 +3984,8 @@ export interface components {
3936
3984
  };
3937
3985
  /** CreateReportReq */
3938
3986
  CreateReportReq: {
3987
+ /** Registrar Credential Id */
3988
+ registrar_credential_id?: TypeId<"registrar_credential"> | null;
3939
3989
  /** @default domain_inventory */
3940
3990
  report_type: components["schemas"]["ReportType"];
3941
3991
  };
@@ -6729,6 +6779,93 @@ export interface components {
6729
6779
  * @enum {string}
6730
6780
  */
6731
6781
  HolderEntitlement: "owner" | "assignee" | "licensee";
6782
+ /** HostCreate */
6783
+ HostCreate: {
6784
+ /**
6785
+ * Hostname
6786
+ * @description Hostname of the host object
6787
+ * @example ns1.example.com
6788
+ */
6789
+ hostname: string;
6790
+ /**
6791
+ * Ip Addresses
6792
+ * @description List of IP addresses for the host object
6793
+ * @example [
6794
+ * "192.0.2.53",
6795
+ * "2001:db8::53"
6796
+ * ]
6797
+ */
6798
+ ip_addresses: string[];
6799
+ };
6800
+ /** HostIpSchema */
6801
+ HostIpSchema: {
6802
+ /**
6803
+ * Address
6804
+ * Format: ipvanyaddress
6805
+ * @description IP address of the host object
6806
+ */
6807
+ address: string;
6808
+ /**
6809
+ * Created On
6810
+ * Format: date-time
6811
+ * @description The date/time the entry was created on
6812
+ */
6813
+ created_on?: Date;
6814
+ /**
6815
+ * Host Id
6816
+ * Format: typeid
6817
+ * @default None
6818
+ * @example host_01h45ytscbebyvny4gc8cr8ma2
6819
+ */
6820
+ host_id: TypeId<"host">;
6821
+ /**
6822
+ * Host Ip Id
6823
+ * Format: typeid
6824
+ * @example host_ip_01h45ytscbebyvny4gc8cr8ma2
6825
+ */
6826
+ host_ip_id?: TypeId<"host_ip">;
6827
+ /** @description IP address type */
6828
+ type: components["schemas"]["IPAddressType"];
6829
+ /**
6830
+ * Updated On
6831
+ * Format: date-time
6832
+ * @description The date/time the entry was last updated on
6833
+ */
6834
+ updated_on?: Date;
6835
+ };
6836
+ /** HostResponse */
6837
+ HostResponse: {
6838
+ /**
6839
+ * Created On
6840
+ * Format: date-time
6841
+ * @description Timestamp when the host was created
6842
+ */
6843
+ created_on: Date;
6844
+ /**
6845
+ * Host Id
6846
+ * Format: typeid
6847
+ * @description Unique identifier of the host object
6848
+ * @example host_01h45ytscbebyvny4gc8cr8ma2
6849
+ */
6850
+ host_id: TypeId<"host">;
6851
+ /**
6852
+ * Hostname
6853
+ * @description Hostname of the host object
6854
+ * @example ns1.example.com
6855
+ */
6856
+ hostname: string;
6857
+ /**
6858
+ * Ip Addresses
6859
+ * @description The ip addresses of the Host Object
6860
+ */
6861
+ ip_addresses?: string[];
6862
+ /**
6863
+ * Updated On
6864
+ * Format: date-time
6865
+ * @description Timestamp when the host was last updated
6866
+ */
6867
+ updated_on: Date;
6868
+ };
6732
6869
  /** HostSchema */
6733
6870
  HostSchema: {
6734
6871
  /**
@@ -6778,6 +6915,18 @@ export interface components {
6778
6915
  * @enum {string}
6779
6916
  */
6780
6917
  HostStatus: "requested_create" | "pending_create" | "active" | "inactive" | "pending_delete";
6918
+ /** HostUpdate */
6919
+ HostUpdate: {
6920
+ /**
6921
+ * Ip Addresses
6922
+ * @description List of IP addresses for the host object
6923
+ * @example [
6924
+ * "192.0.2.53",
6925
+ * "2001:db8::53"
6926
+ * ]
6927
+ */
6928
+ ip_addresses: string[];
6929
+ };
6781
6930
  /**
6782
6931
  * HttpProtocol
6783
6932
  * @enum {string}
@@ -6841,6 +6990,11 @@ export interface components {
6841
6990
  target_path: string;
6842
6991
  target_protocol: components["schemas"]["HttpProtocol"];
6843
6992
  };
6993
+ /**
6994
+ * IPAddressType
6995
+ * @enum {string}
6996
+ */
6997
+ IPAddressType: "v4" | "v6";
6844
6998
  /** IdnBase */
6845
6999
  IdnBase: {
6846
7000
  /**
@@ -9010,7 +9164,7 @@ export interface components {
9010
9164
  * ReportType
9011
9165
  * @enum {string}
9012
9166
  */
9013
- ReportType: "domain_inventory" | "dns_zone_summary" | "dns_zone_records" | "domain_forwards" | "expiring_domains" | "email_forwards" | "billing_transactions" | "billing_transactions_monthly";
9167
+ ReportType: "domain_inventory" | "dns_zone_summary" | "dns_zone_records" | "domain_forwards" | "expiring_domains" | "email_forwards" | "registrar_portfolio_pdf" | "billing_transactions" | "billing_transactions_monthly";
9014
9168
  /** RequestHistory */
9015
9169
  RequestHistory: {
9016
9170
  /**
@@ -17685,6 +17839,349 @@ export interface operations {
17685
17839
  };
17686
17840
  };
17687
17841
  };
17842
+ create_host_v1_hosts_post: {
17843
+ parameters: {
17844
+ query?: never;
17845
+ header?: never;
17846
+ path?: never;
17847
+ cookie?: never;
17848
+ };
17849
+ requestBody: {
17850
+ content: {
17851
+ "application/json": components["schemas"]["HostCreate"];
17852
+ };
17853
+ };
17854
+ responses: {
17855
+ /** @description Successful Response */
17856
+ 201: {
17857
+ headers: {
17858
+ [name: string]: unknown;
17859
+ };
17860
+ content: {
17861
+ "application/json": components["schemas"]["HostResponse"];
17862
+ };
17863
+ };
17864
+ /** @description Unauthorized */
17865
+ 401: {
17866
+ headers: {
17867
+ [name: string]: unknown;
17868
+ };
17869
+ content: {
17870
+ /** @example {
17871
+ * "code": "ERROR_AUTHENTICATION",
17872
+ * "detail": "Additional error context.",
17873
+ * "status": 401,
17874
+ * "title": "Authentication Error",
17875
+ * "type": "authentication"
17876
+ * } */
17877
+ "application/problem+json": components["schemas"]["Problem"];
17878
+ };
17879
+ };
17880
+ /** @description Forbidden */
17881
+ 403: {
17882
+ headers: {
17883
+ [name: string]: unknown;
17884
+ };
17885
+ content: {
17886
+ /** @example {
17887
+ * "code": "ERROR_PERMISSION_DENIED",
17888
+ * "detail": "Additional error context.",
17889
+ * "status": 403,
17890
+ * "title": "Permission Denied",
17891
+ * "type": "permission-denied"
17892
+ * } */
17893
+ "application/problem+json": components["schemas"]["Problem"];
17894
+ };
17895
+ };
17896
+ /** @description Not Found */
17897
+ 404: {
17898
+ headers: {
17899
+ [name: string]: unknown;
17900
+ };
17901
+ content: {
17902
+ /** @example {
17903
+ * "code": "ERROR_PARENT_DOMAIN_NOT_FOUND",
17904
+ * "detail": "Parent domain not found for host 'Additional error context.'",
17905
+ * "hostname": "Additional error context.",
17906
+ * "parent_domain": "",
17907
+ * "status": 404,
17908
+ * "title": "Host Management Error",
17909
+ * "type": "parent-domain-not-found"
17910
+ * } */
17911
+ "application/problem+json": components["schemas"]["Problem"];
17912
+ };
17913
+ };
17914
+ /** @description Conflict */
17915
+ 409: {
17916
+ headers: {
17917
+ [name: string]: unknown;
17918
+ };
17919
+ content: {
17920
+ /** @example {
17921
+ * "code": "ERROR_HOST_ALREADY_EXISTS",
17922
+ * "detail": "Host already exists",
17923
+ * "hostname": "Additional error context.",
17924
+ * "status": 409,
17925
+ * "title": "Host Management Error",
17926
+ * "type": "host-already-exists"
17927
+ * } */
17928
+ "application/problem+json": components["schemas"]["Problem"];
17929
+ };
17930
+ };
17931
+ /** @description Unprocessable Content */
17932
+ 422: {
17933
+ headers: {
17934
+ [name: string]: unknown;
17935
+ };
17936
+ content: {
17937
+ /** @example {
17938
+ * "code": "ERROR_HOST_OBJECTS_NOT_SUPPORTED",
17939
+ * "detail": "Host objects are not supported for this tld",
17940
+ * "status": 422,
17941
+ * "title": "Host Management Error",
17942
+ * "tld": "Additional error context.",
17943
+ * "type": "host-object-not-supported"
17944
+ * } */
17945
+ "application/problem+json": components["schemas"]["Problem"];
17946
+ };
17947
+ };
17948
+ };
17949
+ };
17950
+ get_host_v1_hosts__host_reference__get: {
17951
+ parameters: {
17952
+ query?: never;
17953
+ header?: never;
17954
+ path: {
17955
+ host_reference: TypeId<"host"> | string;
17956
+ };
17957
+ cookie?: never;
17958
+ };
17959
+ requestBody?: never;
17960
+ responses: {
17961
+ /** @description Successful Response */
17962
+ 200: {
17963
+ headers: {
17964
+ [name: string]: unknown;
17965
+ };
17966
+ content: {
17967
+ "application/json": components["schemas"]["HostResponse"];
17968
+ };
17969
+ };
17970
+ /** @description Unauthorized */
17971
+ 401: {
17972
+ headers: {
17973
+ [name: string]: unknown;
17974
+ };
17975
+ content: {
17976
+ /** @example {
17977
+ * "code": "ERROR_AUTHENTICATION",
17978
+ * "detail": "Additional error context.",
17979
+ * "status": 401,
17980
+ * "title": "Authentication Error",
17981
+ * "type": "authentication"
17982
+ * } */
17983
+ "application/problem+json": components["schemas"]["Problem"];
17984
+ };
17985
+ };
17986
+ /** @description Forbidden */
17987
+ 403: {
17988
+ headers: {
17989
+ [name: string]: unknown;
17990
+ };
17991
+ content: {
17992
+ /** @example {
17993
+ * "code": "ERROR_PERMISSION_DENIED",
17994
+ * "detail": "Additional error context.",
17995
+ * "status": 403,
17996
+ * "title": "Permission Denied",
17997
+ * "type": "permission-denied"
17998
+ * } */
17999
+ "application/problem+json": components["schemas"]["Problem"];
18000
+ };
18001
+ };
18002
+ /** @description Not Found */
18003
+ 404: {
18004
+ headers: {
18005
+ [name: string]: unknown;
18006
+ };
18007
+ content: {
18008
+ "application/problem+json": components["schemas"]["Problem"];
18009
+ };
18010
+ };
18011
+ /** @description Validation Error */
18012
+ 422: {
18013
+ headers: {
18014
+ [name: string]: unknown;
18015
+ };
18016
+ content: {
18017
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
18018
+ };
18019
+ };
18020
+ };
18021
+ };
18022
+ update_host_v1_hosts__host_reference__put: {
18023
+ parameters: {
18024
+ query?: never;
18025
+ header?: never;
18026
+ path: {
18027
+ host_reference: TypeId<"host"> | string;
18028
+ };
18029
+ cookie?: never;
18030
+ };
18031
+ requestBody: {
18032
+ content: {
18033
+ "application/json": components["schemas"]["HostUpdate"];
18034
+ };
18035
+ };
18036
+ responses: {
18037
+ /** @description Successful Response */
18038
+ 200: {
18039
+ headers: {
18040
+ [name: string]: unknown;
18041
+ };
18042
+ content: {
18043
+ "application/json": components["schemas"]["HostResponse"];
18044
+ };
18045
+ };
18046
+ /** @description Unauthorized */
18047
+ 401: {
18048
+ headers: {
18049
+ [name: string]: unknown;
18050
+ };
18051
+ content: {
18052
+ /** @example {
18053
+ * "code": "ERROR_AUTHENTICATION",
18054
+ * "detail": "Additional error context.",
18055
+ * "status": 401,
18056
+ * "title": "Authentication Error",
18057
+ * "type": "authentication"
18058
+ * } */
18059
+ "application/problem+json": components["schemas"]["Problem"];
18060
+ };
18061
+ };
18062
+ /** @description Forbidden */
18063
+ 403: {
18064
+ headers: {
18065
+ [name: string]: unknown;
18066
+ };
18067
+ content: {
18068
+ /** @example {
18069
+ * "code": "ERROR_PERMISSION_DENIED",
18070
+ * "detail": "Additional error context.",
18071
+ * "status": 403,
18072
+ * "title": "Permission Denied",
18073
+ * "type": "permission-denied"
18074
+ * } */
18075
+ "application/problem+json": components["schemas"]["Problem"];
18076
+ };
18077
+ };
18078
+ /** @description Not Found */
18079
+ 404: {
18080
+ headers: {
18081
+ [name: string]: unknown;
18082
+ };
18083
+ content: {
18084
+ "application/problem+json": components["schemas"]["Problem"];
18085
+ };
18086
+ };
18087
+ /** @description Validation Error */
18088
+ 422: {
18089
+ headers: {
18090
+ [name: string]: unknown;
18091
+ };
18092
+ content: {
18093
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
18094
+ };
18095
+ };
18096
+ };
18097
+ };
18098
+ delete_host_v1_hosts__host_reference__delete: {
18099
+ parameters: {
18100
+ query?: never;
18101
+ header?: never;
18102
+ path: {
18103
+ host_reference: TypeId<"host"> | string;
18104
+ };
18105
+ cookie?: never;
18106
+ };
18107
+ requestBody?: never;
18108
+ responses: {
18109
+ /** @description Successful Response */
18110
+ 204: {
18111
+ headers: {
18112
+ [name: string]: unknown;
18113
+ };
18114
+ content?: never;
18115
+ };
18116
+ /** @description Unauthorized */
18117
+ 401: {
18118
+ headers: {
18119
+ [name: string]: unknown;
18120
+ };
18121
+ content: {
18122
+ /** @example {
18123
+ * "code": "ERROR_AUTHENTICATION",
18124
+ * "detail": "Additional error context.",
18125
+ * "status": 401,
18126
+ * "title": "Authentication Error",
18127
+ * "type": "authentication"
18128
+ * } */
18129
+ "application/problem+json": components["schemas"]["Problem"];
18130
+ };
18131
+ };
18132
+ /** @description Forbidden */
18133
+ 403: {
18134
+ headers: {
18135
+ [name: string]: unknown;
18136
+ };
18137
+ content: {
18138
+ /** @example {
18139
+ * "code": "ERROR_PERMISSION_DENIED",
18140
+ * "detail": "Additional error context.",
18141
+ * "status": 403,
18142
+ * "title": "Permission Denied",
18143
+ * "type": "permission-denied"
18144
+ * } */
18145
+ "application/problem+json": components["schemas"]["Problem"];
18146
+ };
18147
+ };
18148
+ /** @description Not Found */
18149
+ 404: {
18150
+ headers: {
18151
+ [name: string]: unknown;
18152
+ };
18153
+ content: {
18154
+ "application/problem+json": components["schemas"]["Problem"];
18155
+ };
18156
+ };
18157
+ /** @description Conflict */
18158
+ 409: {
18159
+ headers: {
18160
+ [name: string]: unknown;
18161
+ };
18162
+ content: {
18163
+ /** @example {
18164
+ * "code": "ERROR_HOST_IN_USE",
18165
+ * "detail": "Host is linked to one or more domains",
18166
+ * "host_reference": "Additional error context.",
18167
+ * "status": 409,
18168
+ * "title": "Host Management Error",
18169
+ * "type": "host-in-use"
18170
+ * } */
18171
+ "application/problem+json": components["schemas"]["Problem"];
18172
+ };
18173
+ };
18174
+ /** @description Validation Error */
18175
+ 422: {
18176
+ headers: {
18177
+ [name: string]: unknown;
18178
+ };
18179
+ content: {
18180
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
18181
+ };
18182
+ };
18183
+ };
18184
+ };
17688
18185
  get_job_v1_job__job_id__get: {
17689
18186
  parameters: {
17690
18187
  query?: never;