@opusdns/api 1.13.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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "@opusdns/api-spec-ts-generator": "^1.2.0"
4
4
  },
5
5
  "name": "@opusdns/api",
6
- "version": "1.13.0",
6
+ "version": "1.14.0",
7
7
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -52,6 +52,7 @@ import type {
52
52
  HolderEntitlement,
53
53
  HostStatus,
54
54
  HttpProtocol,
55
+ IPAddressType,
55
56
  InvoiceResponsePaymentStatus,
56
57
  InvoiceResponseStatus,
57
58
  InvoiceResponseType,
@@ -989,6 +990,16 @@ export const HTTP_PROTOCOL_VALUES = [
989
990
  'https',
990
991
  ] as const satisfies ReadonlyArray<HttpProtocol>;
991
992
 
993
+ export const IP_ADDRESS_TYPE = {
994
+ V4: "v4",
995
+ V6: "v6",
996
+ } as const satisfies Record<string, IPAddressType>;
997
+
998
+ export const IP_ADDRESS_TYPE_VALUES = [
999
+ 'v4',
1000
+ 'v6',
1001
+ ] as const satisfies ReadonlyArray<IPAddressType>;
1002
+
992
1003
  export const INVOICE_RESPONSE_PAYMENT_STATUS = {
993
1004
  PENDING: "pending",
994
1005
  FAILED: "failed",
@@ -198,7 +198,11 @@ import type {
198
198
  GeoStatsBucket,
199
199
  GetPrices,
200
200
  HTTPValidationError,
201
+ HostCreate,
202
+ HostIpSchema,
203
+ Host,
201
204
  HostSchema,
205
+ HostUpdate,
202
206
  HttpRedirectList,
203
207
  HttpRedirectRemove,
204
208
  HttpRedirectRequest,
@@ -2786,6 +2790,44 @@ export const KEYS_HTTP_VALIDATION_ERROR = [
2786
2790
  KEY_HTTP_VALIDATION_ERROR_TYPE,
2787
2791
  ] as const satisfies (keyof HTTPValidationError)[];
2788
2792
 
2793
+ export const KEY_HOST_CREATE_HOSTNAME = 'hostname' satisfies keyof HostCreate;
2794
+ export const KEY_HOST_CREATE_IP_ADDRESSES = 'ip_addresses' satisfies keyof HostCreate;
2795
+
2796
+ export const KEYS_HOST_CREATE = [
2797
+ KEY_HOST_CREATE_HOSTNAME,
2798
+ KEY_HOST_CREATE_IP_ADDRESSES,
2799
+ ] as const satisfies (keyof HostCreate)[];
2800
+
2801
+ export const KEY_HOST_IP_SCHEMA_ADDRESS = 'address' satisfies keyof HostIpSchema;
2802
+ export const KEY_HOST_IP_SCHEMA_CREATED_ON = 'created_on' satisfies keyof HostIpSchema;
2803
+ export const KEY_HOST_IP_SCHEMA_HOST_ID = 'host_id' satisfies keyof HostIpSchema;
2804
+ export const KEY_HOST_IP_SCHEMA_HOST_IP_ID = 'host_ip_id' satisfies keyof HostIpSchema;
2805
+ export const KEY_HOST_IP_SCHEMA_TYPE = 'type' satisfies keyof HostIpSchema;
2806
+ export const KEY_HOST_IP_SCHEMA_UPDATED_ON = 'updated_on' satisfies keyof HostIpSchema;
2807
+
2808
+ export const KEYS_HOST_IP_SCHEMA = [
2809
+ KEY_HOST_IP_SCHEMA_ADDRESS,
2810
+ KEY_HOST_IP_SCHEMA_CREATED_ON,
2811
+ KEY_HOST_IP_SCHEMA_HOST_ID,
2812
+ KEY_HOST_IP_SCHEMA_HOST_IP_ID,
2813
+ KEY_HOST_IP_SCHEMA_TYPE,
2814
+ KEY_HOST_IP_SCHEMA_UPDATED_ON,
2815
+ ] as const satisfies (keyof HostIpSchema)[];
2816
+
2817
+ export const KEY_HOST_CREATED_ON = 'created_on' satisfies keyof Host;
2818
+ export const KEY_HOST_HOST_ID = 'host_id' satisfies keyof Host;
2819
+ export const KEY_HOST_HOSTNAME = 'hostname' satisfies keyof Host;
2820
+ export const KEY_HOST_IP_ADDRESSES = 'ip_addresses' satisfies keyof Host;
2821
+ export const KEY_HOST_UPDATED_ON = 'updated_on' satisfies keyof Host;
2822
+
2823
+ export const KEYS_HOST = [
2824
+ KEY_HOST_CREATED_ON,
2825
+ KEY_HOST_HOST_ID,
2826
+ KEY_HOST_HOSTNAME,
2827
+ KEY_HOST_IP_ADDRESSES,
2828
+ KEY_HOST_UPDATED_ON,
2829
+ ] as const satisfies (keyof Host)[];
2830
+
2789
2831
  export const KEY_HOST_SCHEMA_CREATED_ON = 'created_on' satisfies keyof HostSchema;
2790
2832
  export const KEY_HOST_SCHEMA_DOMAIN_ID = 'domain_id' satisfies keyof HostSchema;
2791
2833
  export const KEY_HOST_SCHEMA_HOST_ID = 'host_id' satisfies keyof HostSchema;
@@ -2804,6 +2846,12 @@ export const KEYS_HOST_SCHEMA = [
2804
2846
  KEY_HOST_SCHEMA_UPDATED_ON,
2805
2847
  ] as const satisfies (keyof HostSchema)[];
2806
2848
 
2849
+ export const KEY_HOST_UPDATE_IP_ADDRESSES = 'ip_addresses' satisfies keyof HostUpdate;
2850
+
2851
+ export const KEYS_HOST_UPDATE = [
2852
+ KEY_HOST_UPDATE_IP_ADDRESSES,
2853
+ ] as const satisfies (keyof HostUpdate)[];
2854
+
2807
2855
  export const KEY_HTTP_REDIRECT_LIST_PROTECTED = 'protected' satisfies keyof HttpRedirectList;
2808
2856
  export const KEY_HTTP_REDIRECT_LIST_REDIRECT_CODE = 'redirect_code' satisfies keyof HttpRedirectList;
2809
2857
  export const KEY_HTTP_REDIRECT_LIST_REQUEST_HOSTNAME = 'request_hostname' satisfies keyof HttpRedirectList;
@@ -29,6 +29,8 @@ import type {
29
29
  EmailForwardAliasCreate,
30
30
  EmailForwardAliasUpdate,
31
31
  EmailForwardCreate,
32
+ HostCreate,
33
+ HostUpdate,
32
34
  IpRestrictionCreate,
33
35
  IpRestrictionUpdate,
34
36
  JobBatchRequest,
@@ -654,6 +656,28 @@ export type PATCH_EventsByEventId_Request = {
654
656
  };
655
657
  export type PATCH_EventsByEventId_Request_Path = PATCH_EventsByEventId_Request['parameters']['path'];
656
658
 
659
+ export type POST_Hosts_Request = {
660
+ requestBody: HostCreate;
661
+ };
662
+ export type POST_Hosts_Request_Body = POST_Hosts_Request['requestBody'];
663
+
664
+ export type DELETE_HostsByHostReference_Request = {
665
+ parameters: operations['delete_host_v1_hosts__host_reference__delete']['parameters'];
666
+ };
667
+ export type DELETE_HostsByHostReference_Request_Path = DELETE_HostsByHostReference_Request['parameters']['path'];
668
+
669
+ export type GET_HostsByHostReference_Request = {
670
+ parameters: operations['get_host_v1_hosts__host_reference__get']['parameters'];
671
+ };
672
+ export type GET_HostsByHostReference_Request_Path = GET_HostsByHostReference_Request['parameters']['path'];
673
+
674
+ export type PUT_HostsByHostReference_Request = {
675
+ parameters: operations['update_host_v1_hosts__host_reference__put']['parameters'];
676
+ requestBody: HostUpdate;
677
+ };
678
+ export type PUT_HostsByHostReference_Request_Path = PUT_HostsByHostReference_Request['parameters']['path'];
679
+ export type PUT_HostsByHostReference_Request_Body = PUT_HostsByHostReference_Request['requestBody'];
680
+
657
681
  export type DELETE_JobByJobId_Request = {
658
682
  parameters: operations['delete_job_v1_job__job_id__delete']['parameters'];
659
683
  };
@@ -44,6 +44,7 @@ import type {
44
44
  EventResponse,
45
45
  GetPrices,
46
46
  HTTPValidationError,
47
+ Host,
47
48
  IpRestriction,
48
49
  Job,
49
50
  JobBatchRetry,
@@ -174,6 +175,14 @@ export type DELETE_EmailForwardsByEmailForwardIdAliasesByAliasId_Response_403 =
174
175
  export type DELETE_EmailForwardsByEmailForwardIdAliasesByAliasId_Response_404 = Problem;
175
176
  export type DELETE_EmailForwardsByEmailForwardIdAliasesByAliasId_Response_422 = HTTPValidationError;
176
177
 
178
+ export type DELETE_HostsByHostReference_Response = DELETE_HostsByHostReference_Response_401 | DELETE_HostsByHostReference_Response_403 | DELETE_HostsByHostReference_Response_404 | DELETE_HostsByHostReference_Response_409 | DELETE_HostsByHostReference_Response_422;
179
+
180
+ export type DELETE_HostsByHostReference_Response_401 = Problem;
181
+ export type DELETE_HostsByHostReference_Response_403 = Problem;
182
+ export type DELETE_HostsByHostReference_Response_404 = Problem;
183
+ export type DELETE_HostsByHostReference_Response_409 = Problem;
184
+ export type DELETE_HostsByHostReference_Response_422 = HTTPValidationError;
185
+
177
186
  export type DELETE_JobByJobId_Response = DELETE_JobByJobId_Response_404 | DELETE_JobByJobId_Response_422;
178
187
 
179
188
  export type DELETE_JobByJobId_Response_404 = Problem;
@@ -547,6 +556,14 @@ export type GET_EventsByEventId_Response_401 = Problem;
547
556
  export type GET_EventsByEventId_Response_404 = Problem;
548
557
  export type GET_EventsByEventId_Response_422 = HTTPValidationError;
549
558
 
559
+ export type GET_HostsByHostReference_Response = GET_HostsByHostReference_Response_200 | GET_HostsByHostReference_Response_401 | GET_HostsByHostReference_Response_403 | GET_HostsByHostReference_Response_404 | GET_HostsByHostReference_Response_422;
560
+
561
+ export type GET_HostsByHostReference_Response_200 = Host;
562
+ export type GET_HostsByHostReference_Response_401 = Problem;
563
+ export type GET_HostsByHostReference_Response_403 = Problem;
564
+ export type GET_HostsByHostReference_Response_404 = Problem;
565
+ export type GET_HostsByHostReference_Response_422 = HTTPValidationError;
566
+
550
567
  export type GET_JobByJobId_Response = GET_JobByJobId_Response_200 | GET_JobByJobId_Response_404 | GET_JobByJobId_Response_422;
551
568
 
552
569
  export type GET_JobByJobId_Response_200 = Job;
@@ -1062,6 +1079,15 @@ export type POST_EmailForwardsByEmailForwardIdAliases_Response_404 = Problem;
1062
1079
  export type POST_EmailForwardsByEmailForwardIdAliases_Response_409 = Problem;
1063
1080
  export type POST_EmailForwardsByEmailForwardIdAliases_Response_422 = HTTPValidationError;
1064
1081
 
1082
+ export type POST_Hosts_Response = POST_Hosts_Response_201 | POST_Hosts_Response_401 | POST_Hosts_Response_403 | POST_Hosts_Response_404 | POST_Hosts_Response_409 | POST_Hosts_Response_422;
1083
+
1084
+ export type POST_Hosts_Response_201 = Host;
1085
+ export type POST_Hosts_Response_401 = Problem;
1086
+ export type POST_Hosts_Response_403 = Problem;
1087
+ export type POST_Hosts_Response_404 = Problem;
1088
+ export type POST_Hosts_Response_409 = Problem;
1089
+ export type POST_Hosts_Response_422 = Problem;
1090
+
1065
1091
  export type POST_JobByJobIdPause_Response = POST_JobByJobIdPause_Response_404 | POST_JobByJobIdPause_Response_422;
1066
1092
 
1067
1093
  export type POST_JobByJobIdPause_Response_404 = Problem;
@@ -1197,6 +1223,14 @@ export type PUT_EmailForwardsByEmailForwardIdAliasesByAliasId_Response_403 = Pro
1197
1223
  export type PUT_EmailForwardsByEmailForwardIdAliasesByAliasId_Response_404 = Problem;
1198
1224
  export type PUT_EmailForwardsByEmailForwardIdAliasesByAliasId_Response_422 = HTTPValidationError;
1199
1225
 
1226
+ export type PUT_HostsByHostReference_Response = PUT_HostsByHostReference_Response_200 | PUT_HostsByHostReference_Response_401 | PUT_HostsByHostReference_Response_403 | PUT_HostsByHostReference_Response_404 | PUT_HostsByHostReference_Response_422;
1227
+
1228
+ export type PUT_HostsByHostReference_Response_200 = Host;
1229
+ export type PUT_HostsByHostReference_Response_401 = Problem;
1230
+ export type PUT_HostsByHostReference_Response_403 = Problem;
1231
+ export type PUT_HostsByHostReference_Response_404 = Problem;
1232
+ export type PUT_HostsByHostReference_Response_422 = HTTPValidationError;
1233
+
1200
1234
  export type PUT_UsersByUserIdRole_Response = PUT_UsersByUserIdRole_Response_200 | PUT_UsersByUserIdRole_Response_403 | PUT_UsersByUserIdRole_Response_422;
1201
1235
 
1202
1236
  export type PUT_UsersByUserIdRole_Response_200 = PublicRoleAssignment;
@@ -252,13 +252,18 @@ export type GetPrices = components['schemas']['GetPricesResponse'];
252
252
  export type HTTPMethod = components['schemas']['HTTPMethod'];
253
253
  export type HTTPValidationError = components['schemas']['HTTPValidationError'];
254
254
  export type HolderEntitlement = components['schemas']['HolderEntitlement'];
255
+ export type HostCreate = components['schemas']['HostCreate'];
256
+ export type HostIpSchema = components['schemas']['HostIpSchema'];
257
+ export type Host = components['schemas']['HostResponse'];
255
258
  export type HostSchema = components['schemas']['HostSchema'];
256
259
  export type HostStatus = components['schemas']['HostStatus'];
260
+ export type HostUpdate = components['schemas']['HostUpdate'];
257
261
  export type HttpProtocol = components['schemas']['HttpProtocol'];
258
262
  export type HttpRedirectList = components['schemas']['HttpRedirectListResponse'];
259
263
  export type HttpRedirectRemove = components['schemas']['HttpRedirectRemove'];
260
264
  export type HttpRedirectRequest = components['schemas']['HttpRedirectRequest'];
261
265
  export type HttpRedirectUpsert = components['schemas']['HttpRedirectUpsert'];
266
+ export type IPAddressType = components['schemas']['IPAddressType'];
262
267
  export type IdnBase = components['schemas']['IdnBase'];
263
268
  export type Invoice = components['schemas']['InvoiceResponse'];
264
269
  export type InvoiceResponsePaymentStatus = components['schemas']['InvoiceResponsePaymentStatus'];
package/src/openapi.yaml CHANGED
@@ -6446,6 +6446,113 @@ components:
6446
6446
  - licensee
6447
6447
  title: HolderEntitlement
6448
6448
  type: string
6449
+ HostCreate:
6450
+ properties:
6451
+ hostname:
6452
+ description: Hostname of the host object
6453
+ examples:
6454
+ - ns1.example.com
6455
+ title: Hostname
6456
+ type: string
6457
+ ip_addresses:
6458
+ description: List of IP addresses for the host object
6459
+ examples:
6460
+ - - 192.0.2.53
6461
+ - 2001:db8::53
6462
+ items:
6463
+ format: ipvanyaddress
6464
+ type: string
6465
+ minItems: 1
6466
+ title: Ip Addresses
6467
+ type: array
6468
+ required:
6469
+ - hostname
6470
+ - ip_addresses
6471
+ title: HostCreate
6472
+ type: object
6473
+ HostIpSchema:
6474
+ properties:
6475
+ address:
6476
+ description: IP address of the host object
6477
+ format: ipvanyaddress
6478
+ title: Address
6479
+ type: string
6480
+ created_on:
6481
+ description: The date/time the entry was created on
6482
+ format: date-time
6483
+ title: Created On
6484
+ type: string
6485
+ host_id:
6486
+ default: None
6487
+ examples:
6488
+ - host_01h45ytscbebyvny4gc8cr8ma2
6489
+ format: typeid
6490
+ pattern: ^host_[0-7][0-9a-hjkmnpq-tv-z]{25}$
6491
+ title: Host Id
6492
+ type: string
6493
+ x-typeid-prefix: host
6494
+ host_ip_id:
6495
+ examples:
6496
+ - host_ip_01h45ytscbebyvny4gc8cr8ma2
6497
+ format: typeid
6498
+ pattern: ^host_ip_[0-7][0-9a-hjkmnpq-tv-z]{25}$
6499
+ title: Host Ip Id
6500
+ type: string
6501
+ x-typeid-prefix: host_ip
6502
+ type:
6503
+ $ref: '#/components/schemas/IPAddressType'
6504
+ description: IP address type
6505
+ updated_on:
6506
+ description: The date/time the entry was last updated on
6507
+ format: date-time
6508
+ title: Updated On
6509
+ type: string
6510
+ required:
6511
+ - address
6512
+ - type
6513
+ title: HostIpSchema
6514
+ type: object
6515
+ HostResponse:
6516
+ properties:
6517
+ created_on:
6518
+ description: Timestamp when the host was created
6519
+ format: date-time
6520
+ title: Created On
6521
+ type: string
6522
+ host_id:
6523
+ description: Unique identifier of the host object
6524
+ examples:
6525
+ - host_01h45ytscbebyvny4gc8cr8ma2
6526
+ format: typeid
6527
+ pattern: ^host_[0-7][0-9a-hjkmnpq-tv-z]{25}$
6528
+ title: Host Id
6529
+ type: string
6530
+ x-typeid-prefix: host
6531
+ hostname:
6532
+ description: Hostname of the host object
6533
+ examples:
6534
+ - ns1.example.com
6535
+ title: Hostname
6536
+ type: string
6537
+ ip_addresses:
6538
+ description: The ip addresses of the Host Object
6539
+ items:
6540
+ format: ipvanyaddress
6541
+ type: string
6542
+ title: Ip Addresses
6543
+ type: array
6544
+ updated_on:
6545
+ description: Timestamp when the host was last updated
6546
+ format: date-time
6547
+ title: Updated On
6548
+ type: string
6549
+ required:
6550
+ - host_id
6551
+ - hostname
6552
+ - created_on
6553
+ - updated_on
6554
+ title: HostResponse
6555
+ type: object
6449
6556
  HostSchema:
6450
6557
  properties:
6451
6558
  created_on:
@@ -6508,6 +6615,23 @@ components:
6508
6615
  - pending_delete
6509
6616
  title: HostStatus
6510
6617
  type: string
6618
+ HostUpdate:
6619
+ properties:
6620
+ ip_addresses:
6621
+ description: List of IP addresses for the host object
6622
+ examples:
6623
+ - - 192.0.2.53
6624
+ - 2001:db8::53
6625
+ items:
6626
+ format: ipvanyaddress
6627
+ type: string
6628
+ minItems: 1
6629
+ title: Ip Addresses
6630
+ type: array
6631
+ required:
6632
+ - ip_addresses
6633
+ title: HostUpdate
6634
+ type: object
6511
6635
  HttpProtocol:
6512
6636
  enum:
6513
6637
  - http
@@ -6632,6 +6756,12 @@ components:
6632
6756
  - request_hostname
6633
6757
  title: HttpRedirectUpsert
6634
6758
  type: object
6759
+ IPAddressType:
6760
+ enum:
6761
+ - v4
6762
+ - v6
6763
+ title: IPAddressType
6764
+ type: string
6635
6765
  IdnBase:
6636
6766
  properties:
6637
6767
  idn_capable:
@@ -12012,7 +12142,7 @@ info:
12012
12142
  \n\n"
12013
12143
  summary: OpusDNS - your gateway to a seamless domain management experience.
12014
12144
  title: OpusDNS API
12015
- version: 2026-06-12-154603
12145
+ version: 2026-06-12-181220
12016
12146
  x-logo:
12017
12147
  altText: OpusDNS API Reference
12018
12148
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -21949,6 +22079,346 @@ paths:
21949
22079
  - event
21950
22080
  x-required-permissions:
21951
22081
  - events:manage
22082
+ /v1/hosts:
22083
+ post:
22084
+ description: Create a new host object
22085
+ operationId: create_host_v1_hosts_post
22086
+ requestBody:
22087
+ content:
22088
+ application/json:
22089
+ schema:
22090
+ $ref: '#/components/schemas/HostCreate'
22091
+ required: true
22092
+ responses:
22093
+ '201':
22094
+ content:
22095
+ application/json:
22096
+ schema:
22097
+ $ref: '#/components/schemas/HostResponse'
22098
+ description: Successful Response
22099
+ '401':
22100
+ content:
22101
+ application/problem+json:
22102
+ example:
22103
+ code: ERROR_AUTHENTICATION
22104
+ detail: Additional error context.
22105
+ status: 401
22106
+ title: Authentication Error
22107
+ type: authentication
22108
+ schema:
22109
+ $ref: '#/components/schemas/Problem'
22110
+ description: Unauthorized
22111
+ '403':
22112
+ content:
22113
+ application/problem+json:
22114
+ example:
22115
+ code: ERROR_PERMISSION_DENIED
22116
+ detail: Additional error context.
22117
+ status: 403
22118
+ title: Permission Denied
22119
+ type: permission-denied
22120
+ schema:
22121
+ $ref: '#/components/schemas/Problem'
22122
+ description: Forbidden
22123
+ '404':
22124
+ content:
22125
+ application/problem+json:
22126
+ example:
22127
+ code: ERROR_PARENT_DOMAIN_NOT_FOUND
22128
+ detail: Parent domain not found for host 'Additional error context.'
22129
+ hostname: Additional error context.
22130
+ parent_domain: ''
22131
+ status: 404
22132
+ title: Host Management Error
22133
+ type: parent-domain-not-found
22134
+ schema:
22135
+ $ref: '#/components/schemas/Problem'
22136
+ description: Not Found
22137
+ '409':
22138
+ content:
22139
+ application/problem+json:
22140
+ example:
22141
+ code: ERROR_HOST_ALREADY_EXISTS
22142
+ detail: Host already exists
22143
+ hostname: Additional error context.
22144
+ status: 409
22145
+ title: Host Management Error
22146
+ type: host-already-exists
22147
+ schema:
22148
+ $ref: '#/components/schemas/Problem'
22149
+ description: Conflict
22150
+ '422':
22151
+ content:
22152
+ application/problem+json:
22153
+ example:
22154
+ code: ERROR_HOST_OBJECTS_NOT_SUPPORTED
22155
+ detail: Host objects are not supported for this tld
22156
+ status: 422
22157
+ title: Host Management Error
22158
+ tld: Additional error context.
22159
+ type: host-object-not-supported
22160
+ schema:
22161
+ $ref: '#/components/schemas/Problem'
22162
+ description: Unprocessable Content
22163
+ security:
22164
+ - OAuth2PasswordBearer: []
22165
+ - APIKeyHeader: []
22166
+ summary: Create a Host Object
22167
+ tags:
22168
+ - host
22169
+ x-required-permissions:
22170
+ - hosts:manage
22171
+ /v1/hosts/{host_reference}:
22172
+ delete:
22173
+ description: Deletes a host object; only possible if the host is not in use
22174
+ operationId: delete_host_v1_hosts__host_reference__delete
22175
+ parameters:
22176
+ - in: path
22177
+ name: host_reference
22178
+ required: true
22179
+ schema:
22180
+ anyOf:
22181
+ - examples:
22182
+ - host_01h45ytscbebyvny4gc8cr8ma2
22183
+ format: typeid
22184
+ pattern: ^host_[0-7][0-9a-hjkmnpq-tv-z]{25}$
22185
+ type: string
22186
+ x-typeid-prefix: host
22187
+ - type: string
22188
+ title: Host Reference
22189
+ responses:
22190
+ '204':
22191
+ description: Successful Response
22192
+ '401':
22193
+ content:
22194
+ application/problem+json:
22195
+ example:
22196
+ code: ERROR_AUTHENTICATION
22197
+ detail: Additional error context.
22198
+ status: 401
22199
+ title: Authentication Error
22200
+ type: authentication
22201
+ schema:
22202
+ $ref: '#/components/schemas/Problem'
22203
+ description: Unauthorized
22204
+ '403':
22205
+ content:
22206
+ application/problem+json:
22207
+ example:
22208
+ code: ERROR_PERMISSION_DENIED
22209
+ detail: Additional error context.
22210
+ status: 403
22211
+ title: Permission Denied
22212
+ type: permission-denied
22213
+ schema:
22214
+ $ref: '#/components/schemas/Problem'
22215
+ description: Forbidden
22216
+ '404':
22217
+ content:
22218
+ application/problem+json:
22219
+ examples:
22220
+ Host Management Error:
22221
+ value:
22222
+ code: ERROR_PARENT_DOMAIN_NOT_FOUND
22223
+ detail: Parent domain not found for host 'Additional error context.'
22224
+ hostname: Additional error context.
22225
+ parent_domain: ''
22226
+ status: 404
22227
+ title: Host Management Error
22228
+ type: parent-domain-not-found
22229
+ schema:
22230
+ $ref: '#/components/schemas/Problem'
22231
+ description: Not Found
22232
+ '409':
22233
+ content:
22234
+ application/problem+json:
22235
+ example:
22236
+ code: ERROR_HOST_IN_USE
22237
+ detail: Host is linked to one or more domains
22238
+ host_reference: Additional error context.
22239
+ status: 409
22240
+ title: Host Management Error
22241
+ type: host-in-use
22242
+ schema:
22243
+ $ref: '#/components/schemas/Problem'
22244
+ description: Conflict
22245
+ '422':
22246
+ content:
22247
+ application/problem+json:
22248
+ schema:
22249
+ $ref: '#/components/schemas/HTTPValidationError'
22250
+ description: Validation Error
22251
+ security:
22252
+ - OAuth2PasswordBearer: []
22253
+ - APIKeyHeader: []
22254
+ summary: Delete a Host Object
22255
+ tags:
22256
+ - host
22257
+ x-required-permissions:
22258
+ - hosts:delete
22259
+ get:
22260
+ description: Retrieves a host object by either its ID or hostname
22261
+ operationId: get_host_v1_hosts__host_reference__get
22262
+ parameters:
22263
+ - in: path
22264
+ name: host_reference
22265
+ required: true
22266
+ schema:
22267
+ anyOf:
22268
+ - examples:
22269
+ - host_01h45ytscbebyvny4gc8cr8ma2
22270
+ format: typeid
22271
+ pattern: ^host_[0-7][0-9a-hjkmnpq-tv-z]{25}$
22272
+ type: string
22273
+ x-typeid-prefix: host
22274
+ - type: string
22275
+ title: Host Reference
22276
+ responses:
22277
+ '200':
22278
+ content:
22279
+ application/json:
22280
+ schema:
22281
+ $ref: '#/components/schemas/HostResponse'
22282
+ description: Successful Response
22283
+ '401':
22284
+ content:
22285
+ application/problem+json:
22286
+ example:
22287
+ code: ERROR_AUTHENTICATION
22288
+ detail: Additional error context.
22289
+ status: 401
22290
+ title: Authentication Error
22291
+ type: authentication
22292
+ schema:
22293
+ $ref: '#/components/schemas/Problem'
22294
+ description: Unauthorized
22295
+ '403':
22296
+ content:
22297
+ application/problem+json:
22298
+ example:
22299
+ code: ERROR_PERMISSION_DENIED
22300
+ detail: Additional error context.
22301
+ status: 403
22302
+ title: Permission Denied
22303
+ type: permission-denied
22304
+ schema:
22305
+ $ref: '#/components/schemas/Problem'
22306
+ description: Forbidden
22307
+ '404':
22308
+ content:
22309
+ application/problem+json:
22310
+ examples:
22311
+ Host Management Error:
22312
+ value:
22313
+ code: ERROR_PARENT_DOMAIN_NOT_FOUND
22314
+ detail: Parent domain not found for host 'Additional error context.'
22315
+ hostname: Additional error context.
22316
+ parent_domain: ''
22317
+ status: 404
22318
+ title: Host Management Error
22319
+ type: parent-domain-not-found
22320
+ schema:
22321
+ $ref: '#/components/schemas/Problem'
22322
+ description: Not Found
22323
+ '422':
22324
+ content:
22325
+ application/problem+json:
22326
+ schema:
22327
+ $ref: '#/components/schemas/HTTPValidationError'
22328
+ description: Validation Error
22329
+ security:
22330
+ - OAuth2PasswordBearer: []
22331
+ - APIKeyHeader: []
22332
+ summary: Retrieve a Host Object
22333
+ tags:
22334
+ - host
22335
+ x-required-permissions:
22336
+ - hosts:read
22337
+ put:
22338
+ description: Updates the IP addresses of a host object, referenced by either
22339
+ its ID or hostname
22340
+ operationId: update_host_v1_hosts__host_reference__put
22341
+ parameters:
22342
+ - in: path
22343
+ name: host_reference
22344
+ required: true
22345
+ schema:
22346
+ anyOf:
22347
+ - examples:
22348
+ - host_01h45ytscbebyvny4gc8cr8ma2
22349
+ format: typeid
22350
+ pattern: ^host_[0-7][0-9a-hjkmnpq-tv-z]{25}$
22351
+ type: string
22352
+ x-typeid-prefix: host
22353
+ - type: string
22354
+ title: Host Reference
22355
+ requestBody:
22356
+ content:
22357
+ application/json:
22358
+ schema:
22359
+ $ref: '#/components/schemas/HostUpdate'
22360
+ required: true
22361
+ responses:
22362
+ '200':
22363
+ content:
22364
+ application/json:
22365
+ schema:
22366
+ $ref: '#/components/schemas/HostResponse'
22367
+ description: Successful Response
22368
+ '401':
22369
+ content:
22370
+ application/problem+json:
22371
+ example:
22372
+ code: ERROR_AUTHENTICATION
22373
+ detail: Additional error context.
22374
+ status: 401
22375
+ title: Authentication Error
22376
+ type: authentication
22377
+ schema:
22378
+ $ref: '#/components/schemas/Problem'
22379
+ description: Unauthorized
22380
+ '403':
22381
+ content:
22382
+ application/problem+json:
22383
+ example:
22384
+ code: ERROR_PERMISSION_DENIED
22385
+ detail: Additional error context.
22386
+ status: 403
22387
+ title: Permission Denied
22388
+ type: permission-denied
22389
+ schema:
22390
+ $ref: '#/components/schemas/Problem'
22391
+ description: Forbidden
22392
+ '404':
22393
+ content:
22394
+ application/problem+json:
22395
+ examples:
22396
+ Host Management Error:
22397
+ value:
22398
+ code: ERROR_PARENT_DOMAIN_NOT_FOUND
22399
+ detail: Parent domain not found for host 'Additional error context.'
22400
+ hostname: Additional error context.
22401
+ parent_domain: ''
22402
+ status: 404
22403
+ title: Host Management Error
22404
+ type: parent-domain-not-found
22405
+ schema:
22406
+ $ref: '#/components/schemas/Problem'
22407
+ description: Not Found
22408
+ '422':
22409
+ content:
22410
+ application/problem+json:
22411
+ schema:
22412
+ $ref: '#/components/schemas/HTTPValidationError'
22413
+ description: Validation Error
22414
+ security:
22415
+ - OAuth2PasswordBearer: []
22416
+ - APIKeyHeader: []
22417
+ summary: Update a Host Object
22418
+ tags:
22419
+ - host
22420
+ x-required-permissions:
22421
+ - hosts:manage
21952
22422
  /v1/job/{job_id}:
21953
22423
  delete:
21954
22424
  operationId: delete_job_v1_job__job_id__delete
@@ -26557,6 +27027,31 @@ tags:
26557
27027
  '
26558
27028
  name: domain_search
26559
27029
  x-displayName: Domain search
27030
+ - description: "Endpoints for managing host objects (nameserver glue records).\n\n\
27031
+ ### What is a host object?\n\nA host object represents a nameserver hostname registered\
27032
+ \ at a registry. When a nameserver hostname is subordinate to a domain in your\
27033
+ \ portfolio (e.g. `ns1.example.com` under `example.com`), the registry requires\
27034
+ \ a host object carrying one or more IP addresses \u2014 commonly known as glue\
27035
+ \ records \u2014 so that resolvers can reach the nameserver even though its address\
27036
+ \ lives inside the zone it serves.\n\nThese endpoints manage **subordinate** host\
27037
+ \ objects: the parent domain of the hostname must be managed in your OpusDNS account.\
27038
+ \ Hostnames whose parent domain is not in your account are rejected with `ERROR_PARENT_DOMAIN_NOT_FOUND`.\
27039
+ \ External nameservers (e.g. your DNS provider's hostnames) do not need host objects\
27040
+ \ \u2014 simply reference them by hostname when setting a domain's nameservers.\n\
27041
+ \n### Referencing a host\n\n`GET`, `PUT` and `DELETE` accept either the host ID\
27042
+ \ (`host_...`) or the hostname as the `{host_reference}` path parameter.\n\n###\
27043
+ \ Lifecycle\n\n- **Create** \u2014 `POST /v1/hosts` with the hostname and at least\
27044
+ \ one IP address. The host object is created at the registry of the parent domain.\
27045
+ \ Creating a host that already exists returns `ERROR_HOST_ALREADY_EXISTS`.\n-\
27046
+ \ **Update** \u2014 `PUT /v1/hosts/{host_reference}` replaces the host's IP addresses\
27047
+ \ with the provided list. If the provided addresses match the current state at\
27048
+ \ the registry, the request succeeds without performing a registry update.\n-\
27049
+ \ **Delete** \u2014 `DELETE /v1/hosts/{host_reference}` removes the host object.\
27050
+ \ A host that is still in use as a nameserver by one or more domains cannot be\
27051
+ \ deleted and returns `ERROR_HOST_IN_USE`.\n\nNot all TLDs use host objects; for\
27052
+ \ TLDs without host object support, creation is rejected with `ERROR_HOST_OBJECTS_NOT_SUPPORTED`.\n"
27053
+ name: host
27054
+ x-displayName: Hosts
26560
27055
  - description: 'Endpoints for creating and managing email forwards.
26561
27056
 
26562
27057
  '
@@ -26682,6 +27177,7 @@ x-tagGroups:
26682
27177
  - domain
26683
27178
  - domain_tld_specific
26684
27179
  - tld
27180
+ - host
26685
27181
  - contact
26686
27182
  - event
26687
27183
  - availability
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;
@@ -6731,6 +6779,93 @@ export interface components {
6731
6779
  * @enum {string}
6732
6780
  */
6733
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
+ };
6734
6869
  /** HostSchema */
6735
6870
  HostSchema: {
6736
6871
  /**
@@ -6780,6 +6915,18 @@ export interface components {
6780
6915
  * @enum {string}
6781
6916
  */
6782
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
+ };
6783
6930
  /**
6784
6931
  * HttpProtocol
6785
6932
  * @enum {string}
@@ -6843,6 +6990,11 @@ export interface components {
6843
6990
  target_path: string;
6844
6991
  target_protocol: components["schemas"]["HttpProtocol"];
6845
6992
  };
6993
+ /**
6994
+ * IPAddressType
6995
+ * @enum {string}
6996
+ */
6997
+ IPAddressType: "v4" | "v6";
6846
6998
  /** IdnBase */
6847
6999
  IdnBase: {
6848
7000
  /**
@@ -17687,6 +17839,349 @@ export interface operations {
17687
17839
  };
17688
17840
  };
17689
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
+ };
17690
18185
  get_job_v1_job__job_id__get: {
17691
18186
  parameters: {
17692
18187
  query?: never;