@opusdns/api 0.82.0 → 0.83.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.
@@ -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, DeletePolicyType, SyncOperationType, DomainContact, DomainSearchSuggestionWithPrice, DomainStatus, DomainClientStatus, PriceInfo, ValidationError, LaunchPhaseBase, LocalPresenceRequirementType, ContactRoleType, OrganizationAttribute2, User, OrganizationAttributeCreate, UserCreate, BillingTransaction, ContactSchema, DnsZone, Domain, EmailForwardAlias, EventResponse, Organization, 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, DeletePolicyType, SyncOperationType, DomainContact, DomainSearchSuggestionWithPrice, DomainStatus, DomainClientStatus, PriceInfo, ValidationError, LaunchPhaseBase, LocalPresenceRequirementType, ContactRoleType, OrganizationAttribute2, User, OrganizationAttributeCreate, UserCreate, BillingTransaction, ContactSchema, DnsZone, Domain, EmailForwardAlias, EventResponse, Organization, Redirect, Period, Permission, PremiumAffectsType, RedirectPatchOp, RedirectUpdate, Relation, TldBase, PostTransferRequirements, UserAttributeBase, DomainAvailability } from './schemas.d';
25
25
 
26
26
  /**
27
27
  * DomainDnssecDataResponse
@@ -625,6 +625,20 @@ export type EventResponseArray = EventResponse[];
625
625
  * @see {@link Organization} - The individual Organization type definition
626
626
  */
627
627
  export type OrganizationArray = Organization[];
628
+ /**
629
+ * Redirect
630
+ *
631
+ * @remarks
632
+ * Array type for Redirect objects. Used when the API returns a collection of Redirect instances.
633
+ *
634
+ * @example
635
+ * ```typescript
636
+ * const items: RedirectArray = await api.getRedirects();
637
+ * ```
638
+ *
639
+ * @see {@link Redirect} - The individual Redirect type definition
640
+ */
641
+ export type RedirectArray = Redirect[];
628
642
  /**
629
643
  * Period
630
644
  *
@@ -667,6 +681,34 @@ export type PermissionArray = Permission[];
667
681
  * @see {@link PremiumAffectsType} - The individual PremiumAffectsType type definition
668
682
  */
669
683
  export type PremiumAffectsTypeArray = PremiumAffectsType[];
684
+ /**
685
+ * RedirectPatchOp
686
+ *
687
+ * @remarks
688
+ * Array type for RedirectPatchOp objects. Used when the API returns a collection of RedirectPatchOp instances.
689
+ *
690
+ * @example
691
+ * ```typescript
692
+ * const items: RedirectPatchOpArray = await api.getRedirectPatchOps();
693
+ * ```
694
+ *
695
+ * @see {@link RedirectPatchOp} - The individual RedirectPatchOp type definition
696
+ */
697
+ export type RedirectPatchOpArray = RedirectPatchOp[];
698
+ /**
699
+ * RedirectUpdate
700
+ *
701
+ * @remarks
702
+ * Array type for RedirectUpdate objects. Used when the API returns a collection of RedirectUpdate instances.
703
+ *
704
+ * @example
705
+ * ```typescript
706
+ * const items: RedirectUpdateArray = await api.getRedirectUpdates();
707
+ * ```
708
+ *
709
+ * @see {@link RedirectUpdate} - The individual RedirectUpdate type definition
710
+ */
711
+ export type RedirectUpdateArray = RedirectUpdate[];
670
712
  /**
671
713
  * Relation
672
714
  *
@@ -2015,6 +2015,22 @@ export type Pagination_Event = components['schemas']['Pagination_EventResponse_'
2015
2015
  * @see {@link components} - The OpenAPI components schema definition
2016
2016
  */
2017
2017
  export type Pagination_Organization = components['schemas']['Pagination_Organization_'];
2018
+ /**
2019
+ * Pagination[Redirect]
2020
+ *
2021
+ * @remarks
2022
+ * Type alias for the `Pagination_Redirect_` OpenAPI schema.
2023
+ * This type represents pagination[redirect] data structures used in API requests and responses.
2024
+ *
2025
+ * @example
2026
+ * ```typescript
2027
+ * const response = await api.getPagination_Redirect();
2028
+ * const item: Pagination_Redirect = response.results;
2029
+ * ```
2030
+ *
2031
+ * @see {@link components} - The OpenAPI components schema definition
2032
+ */
2033
+ export type Pagination_Redirect = components['schemas']['Pagination_Redirect_'];
2018
2034
  /**
2019
2035
  * Pagination[User]
2020
2036
  *
@@ -2303,6 +2319,102 @@ export type PublicAuthRequestForm = components['schemas']['PublicAuthRequestForm
2303
2319
  * @see {@link components} - The OpenAPI components schema definition
2304
2320
  */
2305
2321
  export type RdapBase = components['schemas']['RdapBase'];
2322
+ /**
2323
+ * Redirect
2324
+ *
2325
+ * @remarks
2326
+ * Type alias for the `Redirect` OpenAPI schema.
2327
+ * This type represents redirect data structures used in API requests and responses.
2328
+ *
2329
+ * @example
2330
+ * ```typescript
2331
+ * const response = await api.getRedirect();
2332
+ * const item: Redirect = response.results;
2333
+ * ```
2334
+ *
2335
+ * @see {@link components} - The OpenAPI components schema definition
2336
+ */
2337
+ export type Redirect = components['schemas']['Redirect'];
2338
+ /**
2339
+ * RedirectPatchOp
2340
+ *
2341
+ * @remarks
2342
+ * Type alias for the `RedirectPatchOp` OpenAPI schema.
2343
+ * This type represents redirectpatchop data structures used in API requests and responses.
2344
+ *
2345
+ * @example
2346
+ * ```typescript
2347
+ * const response = await api.getRedirectPatchOp();
2348
+ * const item: RedirectPatchOp = response.results;
2349
+ * ```
2350
+ *
2351
+ * @see {@link components} - The OpenAPI components schema definition
2352
+ */
2353
+ export type RedirectPatchOp = components['schemas']['RedirectPatchOp'];
2354
+ /**
2355
+ * RedirectPatchOps
2356
+ *
2357
+ * @remarks
2358
+ * Type alias for the `RedirectPatchOps` OpenAPI schema.
2359
+ * This type represents redirectpatchops data structures used in API requests and responses.
2360
+ *
2361
+ * @example
2362
+ * ```typescript
2363
+ * const response = await api.getRedirectPatchOps();
2364
+ * const item: RedirectPatchOps = response.results;
2365
+ * ```
2366
+ *
2367
+ * @see {@link components} - The OpenAPI components schema definition
2368
+ */
2369
+ export type RedirectPatchOps = components['schemas']['RedirectPatchOps'];
2370
+ /**
2371
+ * RedirectRemove
2372
+ *
2373
+ * @remarks
2374
+ * Type alias for the `RedirectRemove` OpenAPI schema.
2375
+ * This type represents redirectremove data structures used in API requests and responses.
2376
+ *
2377
+ * @example
2378
+ * ```typescript
2379
+ * const response = await api.getRedirectRemove();
2380
+ * const item: RedirectRemove = response.results;
2381
+ * ```
2382
+ *
2383
+ * @see {@link components} - The OpenAPI components schema definition
2384
+ */
2385
+ export type RedirectRemove = components['schemas']['RedirectRemove'];
2386
+ /**
2387
+ * RedirectSet
2388
+ *
2389
+ * @remarks
2390
+ * Type alias for the `RedirectSet` OpenAPI schema.
2391
+ * This type represents redirectset data structures used in API requests and responses.
2392
+ *
2393
+ * @example
2394
+ * ```typescript
2395
+ * const response = await api.getRedirectSet();
2396
+ * const item: RedirectSet = response.results;
2397
+ * ```
2398
+ *
2399
+ * @see {@link components} - The OpenAPI components schema definition
2400
+ */
2401
+ export type RedirectSet = components['schemas']['RedirectSet'];
2402
+ /**
2403
+ * RedirectUpdate
2404
+ *
2405
+ * @remarks
2406
+ * Type alias for the `RedirectUpdate` OpenAPI schema.
2407
+ * This type represents redirectupdate data structures used in API requests and responses.
2408
+ *
2409
+ * @example
2410
+ * ```typescript
2411
+ * const response = await api.getRedirectUpdate();
2412
+ * const item: RedirectUpdate = response.results;
2413
+ * ```
2414
+ *
2415
+ * @see {@link components} - The OpenAPI components schema definition
2416
+ */
2417
+ export type RedirectUpdate = components['schemas']['RedirectUpdate'];
2306
2418
  /**
2307
2419
  * RegistrantChangeType
2308
2420
  *
package/src/openapi.yaml CHANGED
@@ -3498,6 +3498,20 @@ components:
3498
3498
  - pagination
3499
3499
  title: Pagination[Organization]
3500
3500
  type: object
3501
+ Pagination_Redirect_:
3502
+ properties:
3503
+ pagination:
3504
+ $ref: '#/components/schemas/PaginationMetadata'
3505
+ results:
3506
+ items:
3507
+ $ref: '#/components/schemas/Redirect'
3508
+ title: Results
3509
+ type: array
3510
+ required:
3511
+ - results
3512
+ - pagination
3513
+ title: Pagination[Redirect]
3514
+ type: object
3501
3515
  Pagination_User_:
3502
3516
  properties:
3503
3517
  pagination:
@@ -3761,6 +3775,141 @@ components:
3761
3775
  title: Rdap Server
3762
3776
  title: RdapBase
3763
3777
  type: object
3778
+ Redirect:
3779
+ properties:
3780
+ redirect_code:
3781
+ title: Redirect Code
3782
+ type: integer
3783
+ request_domain:
3784
+ title: Request Domain
3785
+ type: string
3786
+ request_path:
3787
+ title: Request Path
3788
+ type: string
3789
+ request_protocol:
3790
+ title: Request Protocol
3791
+ type: string
3792
+ request_subdomain:
3793
+ title: Request Subdomain
3794
+ type: string
3795
+ target_domain:
3796
+ title: Target Domain
3797
+ type: string
3798
+ target_path:
3799
+ title: Target Path
3800
+ type: string
3801
+ target_protocol:
3802
+ title: Target Protocol
3803
+ type: string
3804
+ target_subdomain:
3805
+ title: Target Subdomain
3806
+ type: string
3807
+ required:
3808
+ - request_protocol
3809
+ - request_subdomain
3810
+ - request_path
3811
+ - target_protocol
3812
+ - target_subdomain
3813
+ - target_domain
3814
+ - target_path
3815
+ - redirect_code
3816
+ - request_domain
3817
+ title: Redirect
3818
+ type: object
3819
+ RedirectPatchOp:
3820
+ properties:
3821
+ op:
3822
+ $ref: '#/components/schemas/PatchOp'
3823
+ redirect:
3824
+ anyOf:
3825
+ - $ref: '#/components/schemas/Redirect'
3826
+ - $ref: '#/components/schemas/RedirectRemove'
3827
+ title: Redirect
3828
+ required:
3829
+ - op
3830
+ - redirect
3831
+ title: RedirectPatchOp
3832
+ type: object
3833
+ RedirectPatchOps:
3834
+ properties:
3835
+ ops:
3836
+ items:
3837
+ $ref: '#/components/schemas/RedirectPatchOp'
3838
+ title: Ops
3839
+ type: array
3840
+ required:
3841
+ - ops
3842
+ title: RedirectPatchOps
3843
+ type: object
3844
+ RedirectRemove:
3845
+ properties:
3846
+ request_domain:
3847
+ title: Request Domain
3848
+ type: string
3849
+ request_path:
3850
+ title: Request Path
3851
+ type: string
3852
+ request_protocol:
3853
+ title: Request Protocol
3854
+ type: string
3855
+ request_subdomain:
3856
+ title: Request Subdomain
3857
+ type: string
3858
+ required:
3859
+ - request_protocol
3860
+ - request_subdomain
3861
+ - request_path
3862
+ - request_domain
3863
+ title: RedirectRemove
3864
+ type: object
3865
+ RedirectSet:
3866
+ properties:
3867
+ redirects:
3868
+ items:
3869
+ $ref: '#/components/schemas/RedirectUpdate'
3870
+ title: Redirects
3871
+ type: array
3872
+ required:
3873
+ - redirects
3874
+ title: RedirectSet
3875
+ type: object
3876
+ RedirectUpdate:
3877
+ properties:
3878
+ redirect_code:
3879
+ title: Redirect Code
3880
+ type: integer
3881
+ request_path:
3882
+ title: Request Path
3883
+ type: string
3884
+ request_protocol:
3885
+ title: Request Protocol
3886
+ type: string
3887
+ request_subdomain:
3888
+ title: Request Subdomain
3889
+ type: string
3890
+ target_domain:
3891
+ title: Target Domain
3892
+ type: string
3893
+ target_path:
3894
+ title: Target Path
3895
+ type: string
3896
+ target_protocol:
3897
+ title: Target Protocol
3898
+ type: string
3899
+ target_subdomain:
3900
+ title: Target Subdomain
3901
+ type: string
3902
+ required:
3903
+ - request_protocol
3904
+ - request_subdomain
3905
+ - request_path
3906
+ - target_protocol
3907
+ - target_subdomain
3908
+ - target_domain
3909
+ - target_path
3910
+ - redirect_code
3911
+ title: RedirectUpdate
3912
+ type: object
3764
3913
  RegistrantChangeType:
3765
3914
  enum:
3766
3915
  - update
@@ -4797,7 +4946,7 @@ info:
4797
4946
  '
4798
4947
  summary: OpusDNS - your gateway to a seamless domain management experience.
4799
4948
  title: OpusDNS API
4800
- version: 2025-10-10-154932
4949
+ version: 2025-10-14-131453
4801
4950
  x-logo:
4802
4951
  altText: OpusDNS API Reference
4803
4952
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -6096,6 +6245,241 @@ paths:
6096
6245
  summary: Update Zone Rrsets
6097
6246
  tags:
6098
6247
  - dns
6248
+ /v1/domain-forwards:
6249
+ patch:
6250
+ operationId: patch_redirects_v1_domain_forwards_patch
6251
+ requestBody:
6252
+ content:
6253
+ application/json:
6254
+ schema:
6255
+ $ref: '#/components/schemas/RedirectPatchOps'
6256
+ required: true
6257
+ responses:
6258
+ '204':
6259
+ description: Successful Response
6260
+ '422':
6261
+ content:
6262
+ application/problem+json:
6263
+ schema:
6264
+ $ref: '#/components/schemas/HTTPValidationError'
6265
+ description: Validation Error
6266
+ security:
6267
+ - OAuth2PasswordBearer: []
6268
+ summary: Patch Redirects
6269
+ tags:
6270
+ - domain_forward
6271
+ /v1/domain-forwards/{zone_name}:
6272
+ delete:
6273
+ operationId: delete_redirects_v1_domain_forwards__zone_name__delete
6274
+ parameters:
6275
+ - description: DNS zone name (trailing dot optional)
6276
+ in: path
6277
+ name: zone_name
6278
+ required: true
6279
+ schema:
6280
+ description: DNS zone name (trailing dot optional)
6281
+ title: Zone Name
6282
+ type: string
6283
+ responses:
6284
+ '204':
6285
+ description: Successful Response
6286
+ '422':
6287
+ content:
6288
+ application/problem+json:
6289
+ schema:
6290
+ $ref: '#/components/schemas/HTTPValidationError'
6291
+ description: Validation Error
6292
+ security:
6293
+ - OAuth2PasswordBearer: []
6294
+ summary: Delete Redirects
6295
+ tags:
6296
+ - domain_forward
6297
+ get:
6298
+ operationId: get_redirects_v1_domain_forwards__zone_name__get
6299
+ parameters:
6300
+ - description: DNS zone name (trailing dot optional)
6301
+ in: path
6302
+ name: zone_name
6303
+ required: true
6304
+ schema:
6305
+ description: DNS zone name (trailing dot optional)
6306
+ title: Zone Name
6307
+ type: string
6308
+ - in: query
6309
+ name: page
6310
+ required: false
6311
+ schema:
6312
+ default: 1
6313
+ minimum: 1
6314
+ title: Page
6315
+ type: integer
6316
+ - in: query
6317
+ name: page_size
6318
+ required: false
6319
+ schema:
6320
+ default: 10
6321
+ maximum: 100
6322
+ minimum: 1
6323
+ title: Page Size
6324
+ type: integer
6325
+ responses:
6326
+ '200':
6327
+ content:
6328
+ application/json:
6329
+ schema:
6330
+ $ref: '#/components/schemas/Pagination_Redirect_'
6331
+ description: Successful Response
6332
+ '422':
6333
+ content:
6334
+ application/problem+json:
6335
+ schema:
6336
+ $ref: '#/components/schemas/HTTPValidationError'
6337
+ description: Validation Error
6338
+ security:
6339
+ - OAuth2PasswordBearer: []
6340
+ summary: Get Redirects
6341
+ tags:
6342
+ - domain_forward
6343
+ post:
6344
+ operationId: create_redirects_v1_domain_forwards__zone_name__post
6345
+ parameters:
6346
+ - description: DNS zone name (trailing dot optional)
6347
+ in: path
6348
+ name: zone_name
6349
+ required: true
6350
+ schema:
6351
+ description: DNS zone name (trailing dot optional)
6352
+ title: Zone Name
6353
+ type: string
6354
+ requestBody:
6355
+ content:
6356
+ application/json:
6357
+ schema:
6358
+ $ref: '#/components/schemas/RedirectSet'
6359
+ required: true
6360
+ responses:
6361
+ '201':
6362
+ description: Successful Response
6363
+ '409':
6364
+ content:
6365
+ application/problem+json:
6366
+ example:
6367
+ code: ERROR_DOMAIN_FORWARD_REDIRECT_ALREADY_EXISTS
6368
+ detail: Redirect already exists for A, d, d, i, t, i, o, n, a, l, ,
6369
+ e, r, r, o, r, , c, o, n, t, e, x, t, .
6370
+ status: 409
6371
+ title: Domain Forward Error
6372
+ type: domain-forward-redirect-already-exists
6373
+ schema:
6374
+ $ref: '#/components/schemas/Problem'
6375
+ description: Conflict
6376
+ '422':
6377
+ content:
6378
+ application/problem+json:
6379
+ schema:
6380
+ $ref: '#/components/schemas/HTTPValidationError'
6381
+ description: Validation Error
6382
+ security:
6383
+ - OAuth2PasswordBearer: []
6384
+ summary: Create Redirects
6385
+ tags:
6386
+ - domain_forward
6387
+ put:
6388
+ operationId: update_redirects_v1_domain_forwards__zone_name__put
6389
+ parameters:
6390
+ - description: DNS zone name (trailing dot optional)
6391
+ in: path
6392
+ name: zone_name
6393
+ required: true
6394
+ schema:
6395
+ description: DNS zone name (trailing dot optional)
6396
+ title: Zone Name
6397
+ type: string
6398
+ requestBody:
6399
+ content:
6400
+ application/json:
6401
+ schema:
6402
+ $ref: '#/components/schemas/RedirectSet'
6403
+ required: true
6404
+ responses:
6405
+ '204':
6406
+ description: Successful Response
6407
+ '409':
6408
+ content:
6409
+ application/problem+json:
6410
+ example:
6411
+ code: ERROR_DOMAIN_FORWARD_REDIRECT_NOT_EXISTS
6412
+ detail: Redirect does not exist for A, d, d, i, t, i, o, n, a, l, ,
6413
+ e, r, r, o, r, , c, o, n, t, e, x, t, .
6414
+ status: 409
6415
+ title: Domain Forward Error
6416
+ type: domain-forward-redirect-not-exists
6417
+ schema:
6418
+ $ref: '#/components/schemas/Problem'
6419
+ description: Conflict
6420
+ '422':
6421
+ content:
6422
+ application/problem+json:
6423
+ schema:
6424
+ $ref: '#/components/schemas/HTTPValidationError'
6425
+ description: Validation Error
6426
+ security:
6427
+ - OAuth2PasswordBearer: []
6428
+ summary: Update Redirects
6429
+ tags:
6430
+ - domain_forward
6431
+ /v1/domain-forwards/{zone_name}/disable:
6432
+ patch:
6433
+ operationId: disable_domain_forward_v1_domain_forwards__zone_name__disable_patch
6434
+ parameters:
6435
+ - description: DNS zone name (trailing dot optional)
6436
+ in: path
6437
+ name: zone_name
6438
+ required: true
6439
+ schema:
6440
+ description: DNS zone name (trailing dot optional)
6441
+ title: Zone Name
6442
+ type: string
6443
+ responses:
6444
+ '204':
6445
+ description: Successful Response
6446
+ '422':
6447
+ content:
6448
+ application/problem+json:
6449
+ schema:
6450
+ $ref: '#/components/schemas/HTTPValidationError'
6451
+ description: Validation Error
6452
+ security:
6453
+ - OAuth2PasswordBearer: []
6454
+ summary: Disable Domain Forward
6455
+ tags:
6456
+ - domain_forward
6457
+ /v1/domain-forwards/{zone_name}/enable:
6458
+ patch:
6459
+ operationId: enable_domain_forward_v1_domain_forwards__zone_name__enable_patch
6460
+ parameters:
6461
+ - description: DNS zone name (trailing dot optional)
6462
+ in: path
6463
+ name: zone_name
6464
+ required: true
6465
+ schema:
6466
+ description: DNS zone name (trailing dot optional)
6467
+ title: Zone Name
6468
+ type: string
6469
+ responses:
6470
+ '204':
6471
+ description: Successful Response
6472
+ '422':
6473
+ content:
6474
+ application/problem+json:
6475
+ schema:
6476
+ $ref: '#/components/schemas/HTTPValidationError'
6477
+ description: Validation Error
6478
+ security:
6479
+ - OAuth2PasswordBearer: []
6480
+ summary: Enable Domain Forward
6481
+ tags:
6482
+ - domain_forward
6099
6483
  /v1/domain-search/suggest:
6100
6484
  get:
6101
6485
  description: Get a list of domain suggestions based on a search query