@opusdns/api 0.87.0 → 0.89.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/openapi.yaml CHANGED
@@ -1531,6 +1531,53 @@ components:
1531
1531
  - algorithm
1532
1532
  title: DomainDnssecDataResponse
1533
1533
  type: object
1534
+ DomainForward:
1535
+ properties:
1536
+ created_on:
1537
+ format: date-time
1538
+ title: Created On
1539
+ type: string
1540
+ redirects:
1541
+ items:
1542
+ $ref: '#/components/schemas/HttpRedirect'
1543
+ title: Redirects
1544
+ type: array
1545
+ request_protocol:
1546
+ $ref: '#/components/schemas/HttpProtocol'
1547
+ updated_on:
1548
+ format: date-time
1549
+ title: Updated On
1550
+ type: string
1551
+ wildcard:
1552
+ title: Wildcard
1553
+ type: boolean
1554
+ zone_name:
1555
+ title: Zone Name
1556
+ type: string
1557
+ required:
1558
+ - wildcard
1559
+ - redirects
1560
+ - zone_name
1561
+ - request_protocol
1562
+ - updated_on
1563
+ - created_on
1564
+ title: DomainForward
1565
+ type: object
1566
+ DomainForwardRequest:
1567
+ properties:
1568
+ redirects:
1569
+ items:
1570
+ $ref: '#/components/schemas/HttpRedirect'
1571
+ title: Redirects
1572
+ type: array
1573
+ wildcard:
1574
+ title: Wildcard
1575
+ type: boolean
1576
+ required:
1577
+ - wildcard
1578
+ - redirects
1579
+ title: DomainForwardRequest
1580
+ type: object
1534
1581
  DomainLifecycleBase:
1535
1582
  properties:
1536
1583
  add_grace_period:
@@ -2459,6 +2506,45 @@ components:
2459
2506
  - status
2460
2507
  title: RequestValidationError
2461
2508
  type: object
2509
+ HttpProtocol:
2510
+ enum:
2511
+ - http
2512
+ - https
2513
+ title: HttpProtocol
2514
+ type: string
2515
+ HttpRedirect:
2516
+ properties:
2517
+ redirect_code:
2518
+ $ref: '#/components/schemas/RedirectCode'
2519
+ request_path:
2520
+ title: Request Path
2521
+ type: string
2522
+ request_subdomain:
2523
+ anyOf:
2524
+ - type: string
2525
+ - type: 'null'
2526
+ title: Request Subdomain
2527
+ target_domain:
2528
+ title: Target Domain
2529
+ type: string
2530
+ target_path:
2531
+ title: Target Path
2532
+ type: string
2533
+ target_protocol:
2534
+ $ref: '#/components/schemas/HttpProtocol'
2535
+ target_subdomain:
2536
+ anyOf:
2537
+ - type: string
2538
+ - type: 'null'
2539
+ title: Target Subdomain
2540
+ required:
2541
+ - request_path
2542
+ - target_protocol
2543
+ - target_domain
2544
+ - target_path
2545
+ - redirect_code
2546
+ title: HttpRedirect
2547
+ type: object
2462
2548
  IdnBase:
2463
2549
  properties:
2464
2550
  idn_capable:
@@ -2477,6 +2563,100 @@ components:
2477
2563
  - idn_capable
2478
2564
  title: IdnBase
2479
2565
  type: object
2566
+ InvoiceResponse:
2567
+ properties:
2568
+ amount:
2569
+ description: Total invoice amount
2570
+ title: Amount
2571
+ type: string
2572
+ currency:
2573
+ $ref: '#/components/schemas/Currency'
2574
+ description: Invoice currency
2575
+ external_id:
2576
+ description: Lago ID (external) for this invoice
2577
+ title: External Id
2578
+ type: string
2579
+ fees_amount:
2580
+ description: Fees amount
2581
+ title: Fees Amount
2582
+ type: string
2583
+ file_url:
2584
+ description: URL to invoice PDF file
2585
+ title: File Url
2586
+ type: string
2587
+ invoice_type:
2588
+ $ref: '#/components/schemas/InvoiceResponseType'
2589
+ description: Invoice type
2590
+ issuing_date:
2591
+ description: Invoice issuing date
2592
+ format: date-time
2593
+ title: Issuing Date
2594
+ type: string
2595
+ number:
2596
+ description: Invoice number
2597
+ title: Number
2598
+ type: string
2599
+ payment_due_date:
2600
+ description: Payment due date
2601
+ format: date-time
2602
+ title: Payment Due Date
2603
+ type: string
2604
+ payment_overdue:
2605
+ description: Whether payment is overdue
2606
+ title: Payment Overdue
2607
+ type: boolean
2608
+ payment_status:
2609
+ $ref: '#/components/schemas/InvoiceResponsePaymentStatus'
2610
+ description: Payment status
2611
+ status:
2612
+ $ref: '#/components/schemas/InvoiceResponseStatus'
2613
+ description: Invoice status
2614
+ taxes_amount:
2615
+ description: Taxes amount
2616
+ title: Taxes Amount
2617
+ type: string
2618
+ required:
2619
+ - external_id
2620
+ - number
2621
+ - issuing_date
2622
+ - payment_due_date
2623
+ - invoice_type
2624
+ - status
2625
+ - payment_status
2626
+ - payment_overdue
2627
+ - currency
2628
+ - amount
2629
+ - fees_amount
2630
+ - taxes_amount
2631
+ - file_url
2632
+ title: InvoiceResponse
2633
+ type: object
2634
+ InvoiceResponsePaymentStatus:
2635
+ enum:
2636
+ - pending
2637
+ - failed
2638
+ - succeeded
2639
+ title: InvoiceResponsePaymentStatus
2640
+ type: string
2641
+ InvoiceResponseStatus:
2642
+ enum:
2643
+ - draft
2644
+ - finalized
2645
+ - failed
2646
+ - pending
2647
+ - voided
2648
+ title: InvoiceResponseStatus
2649
+ type: string
2650
+ InvoiceResponseType:
2651
+ enum:
2652
+ - subscription
2653
+ - add_on
2654
+ - credit
2655
+ - one_off
2656
+ - advance_charges
2657
+ - progressive_billing
2658
+ title: InvoiceResponseType
2659
+ type: string
2480
2660
  IpRestrictionCreate:
2481
2661
  description: 'Create an IP restriction for an organization.
2482
2662
 
@@ -3490,33 +3670,33 @@ components:
3490
3670
  - pagination
3491
3671
  title: Pagination[EventResponse]
3492
3672
  type: object
3493
- Pagination_Organization_:
3673
+ Pagination_InvoiceResponse_:
3494
3674
  properties:
3495
3675
  pagination:
3496
3676
  $ref: '#/components/schemas/PaginationMetadata'
3497
3677
  results:
3498
3678
  items:
3499
- $ref: '#/components/schemas/Organization'
3679
+ $ref: '#/components/schemas/InvoiceResponse'
3500
3680
  title: Results
3501
3681
  type: array
3502
3682
  required:
3503
3683
  - results
3504
3684
  - pagination
3505
- title: Pagination[Organization]
3685
+ title: Pagination[InvoiceResponse]
3506
3686
  type: object
3507
- Pagination_Redirect_:
3687
+ Pagination_Organization_:
3508
3688
  properties:
3509
3689
  pagination:
3510
3690
  $ref: '#/components/schemas/PaginationMetadata'
3511
3691
  results:
3512
3692
  items:
3513
- $ref: '#/components/schemas/Redirect'
3693
+ $ref: '#/components/schemas/Organization'
3514
3694
  title: Results
3515
3695
  type: array
3516
3696
  required:
3517
3697
  - results
3518
3698
  - pagination
3519
- title: Pagination[Redirect]
3699
+ title: Pagination[Organization]
3520
3700
  type: object
3521
3701
  Pagination_User_:
3522
3702
  properties:
@@ -3781,141 +3961,14 @@ components:
3781
3961
  title: Rdap Server
3782
3962
  title: RdapBase
3783
3963
  type: object
3784
- Redirect:
3785
- properties:
3786
- redirect_code:
3787
- title: Redirect Code
3788
- type: integer
3789
- request_domain:
3790
- title: Request Domain
3791
- type: string
3792
- request_path:
3793
- title: Request Path
3794
- type: string
3795
- request_protocol:
3796
- title: Request Protocol
3797
- type: string
3798
- request_subdomain:
3799
- title: Request Subdomain
3800
- type: string
3801
- target_domain:
3802
- title: Target Domain
3803
- type: string
3804
- target_path:
3805
- title: Target Path
3806
- type: string
3807
- target_protocol:
3808
- title: Target Protocol
3809
- type: string
3810
- target_subdomain:
3811
- title: Target Subdomain
3812
- type: string
3813
- required:
3814
- - request_protocol
3815
- - request_subdomain
3816
- - request_path
3817
- - target_protocol
3818
- - target_subdomain
3819
- - target_domain
3820
- - target_path
3821
- - redirect_code
3822
- - request_domain
3823
- title: Redirect
3824
- type: object
3825
- RedirectPatchOp:
3826
- properties:
3827
- op:
3828
- $ref: '#/components/schemas/PatchOp'
3829
- redirect:
3830
- anyOf:
3831
- - $ref: '#/components/schemas/Redirect'
3832
- - $ref: '#/components/schemas/RedirectRemove'
3833
- title: Redirect
3834
- required:
3835
- - op
3836
- - redirect
3837
- title: RedirectPatchOp
3838
- type: object
3839
- RedirectPatchOps:
3840
- properties:
3841
- ops:
3842
- items:
3843
- $ref: '#/components/schemas/RedirectPatchOp'
3844
- title: Ops
3845
- type: array
3846
- required:
3847
- - ops
3848
- title: RedirectPatchOps
3849
- type: object
3850
- RedirectRemove:
3851
- properties:
3852
- request_domain:
3853
- title: Request Domain
3854
- type: string
3855
- request_path:
3856
- title: Request Path
3857
- type: string
3858
- request_protocol:
3859
- title: Request Protocol
3860
- type: string
3861
- request_subdomain:
3862
- title: Request Subdomain
3863
- type: string
3864
- required:
3865
- - request_protocol
3866
- - request_subdomain
3867
- - request_path
3868
- - request_domain
3869
- title: RedirectRemove
3870
- type: object
3871
- RedirectSet:
3872
- properties:
3873
- redirects:
3874
- items:
3875
- $ref: '#/components/schemas/RedirectUpdate'
3876
- title: Redirects
3877
- type: array
3878
- required:
3879
- - redirects
3880
- title: RedirectSet
3881
- type: object
3882
- RedirectUpdate:
3883
- properties:
3884
- redirect_code:
3885
- title: Redirect Code
3886
- type: integer
3887
- request_path:
3888
- title: Request Path
3889
- type: string
3890
- request_protocol:
3891
- title: Request Protocol
3892
- type: string
3893
- request_subdomain:
3894
- title: Request Subdomain
3895
- type: string
3896
- target_domain:
3897
- title: Target Domain
3898
- type: string
3899
- target_path:
3900
- title: Target Path
3901
- type: string
3902
- target_protocol:
3903
- title: Target Protocol
3904
- type: string
3905
- target_subdomain:
3906
- title: Target Subdomain
3907
- type: string
3908
- required:
3909
- - request_protocol
3910
- - request_subdomain
3911
- - request_path
3912
- - target_protocol
3913
- - target_subdomain
3914
- - target_domain
3915
- - target_path
3916
- - redirect_code
3917
- title: RedirectUpdate
3918
- type: object
3964
+ RedirectCode:
3965
+ enum:
3966
+ - 301
3967
+ - 302
3968
+ - 307
3969
+ - 308
3970
+ title: RedirectCode
3971
+ type: integer
3919
3972
  RegistrantChangeType:
3920
3973
  enum:
3921
3974
  - update
@@ -4952,7 +5005,7 @@ info:
4952
5005
  '
4953
5006
  summary: OpusDNS - your gateway to a seamless domain management experience.
4954
5007
  title: OpusDNS API
4955
- version: 2025-10-28-111859
5008
+ version: 2025-10-29-093948
4956
5009
  x-logo:
4957
5010
  altText: OpusDNS API Reference
4958
5011
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -6430,15 +6483,18 @@ paths:
6430
6483
  summary: Update Zone Rrsets
6431
6484
  tags:
6432
6485
  - dns
6433
- /v1/domain-forwards:
6486
+ /v1/domain-forwards/{zone_name}/disable:
6434
6487
  patch:
6435
- operationId: patch_redirects_v1_domain_forwards_patch
6436
- requestBody:
6437
- content:
6438
- application/json:
6439
- schema:
6440
- $ref: '#/components/schemas/RedirectPatchOps'
6488
+ operationId: disable_domain_forward_v1_domain_forwards__zone_name__disable_patch
6489
+ parameters:
6490
+ - description: DNS zone name (trailing dot optional)
6491
+ in: path
6492
+ name: zone_name
6441
6493
  required: true
6494
+ schema:
6495
+ description: DNS zone name (trailing dot optional)
6496
+ title: Zone Name
6497
+ type: string
6442
6498
  responses:
6443
6499
  '204':
6444
6500
  description: Successful Response
@@ -6450,12 +6506,12 @@ paths:
6450
6506
  description: Validation Error
6451
6507
  security:
6452
6508
  - OAuth2PasswordBearer: []
6453
- summary: Patch Redirects
6509
+ summary: Disable Domain Forward
6454
6510
  tags:
6455
6511
  - domain_forward
6456
- /v1/domain-forwards/{zone_name}:
6457
- delete:
6458
- operationId: delete_redirects_v1_domain_forwards__zone_name__delete
6512
+ /v1/domain-forwards/{zone_name}/enable:
6513
+ patch:
6514
+ operationId: enable_domain_forward_v1_domain_forwards__zone_name__enable_patch
6459
6515
  parameters:
6460
6516
  - description: DNS zone name (trailing dot optional)
6461
6517
  in: path
@@ -6465,6 +6521,13 @@ paths:
6465
6521
  description: DNS zone name (trailing dot optional)
6466
6522
  title: Zone Name
6467
6523
  type: string
6524
+ - in: query
6525
+ name: auto_create_zone
6526
+ required: false
6527
+ schema:
6528
+ default: false
6529
+ title: Auto Create Zone
6530
+ type: boolean
6468
6531
  responses:
6469
6532
  '204':
6470
6533
  description: Successful Response
@@ -6476,12 +6539,18 @@ paths:
6476
6539
  description: Validation Error
6477
6540
  security:
6478
6541
  - OAuth2PasswordBearer: []
6479
- summary: Delete Redirects
6542
+ summary: Enable Domain Forward
6480
6543
  tags:
6481
6544
  - domain_forward
6482
- get:
6483
- operationId: get_redirects_v1_domain_forwards__zone_name__get
6545
+ /v1/domain-forwards/{zone_name}/{request_protocol}:
6546
+ delete:
6547
+ operationId: delete_domain_forward_v1_domain_forwards__zone_name___request_protocol__delete
6484
6548
  parameters:
6549
+ - in: path
6550
+ name: request_protocol
6551
+ required: true
6552
+ schema:
6553
+ $ref: '#/components/schemas/HttpProtocol'
6485
6554
  - description: DNS zone name (trailing dot optional)
6486
6555
  in: path
6487
6556
  name: zone_name
@@ -6490,29 +6559,42 @@ paths:
6490
6559
  description: DNS zone name (trailing dot optional)
6491
6560
  title: Zone Name
6492
6561
  type: string
6493
- - in: query
6494
- name: page
6495
- required: false
6562
+ responses:
6563
+ '204':
6564
+ description: Successful Response
6565
+ '422':
6566
+ content:
6567
+ application/problem+json:
6568
+ schema:
6569
+ $ref: '#/components/schemas/HTTPValidationError'
6570
+ description: Validation Error
6571
+ security:
6572
+ - OAuth2PasswordBearer: []
6573
+ summary: Delete Domain Forward
6574
+ tags:
6575
+ - domain_forward
6576
+ get:
6577
+ operationId: get_domain_forward_v1_domain_forwards__zone_name___request_protocol__get
6578
+ parameters:
6579
+ - in: path
6580
+ name: request_protocol
6581
+ required: true
6496
6582
  schema:
6497
- default: 1
6498
- minimum: 1
6499
- title: Page
6500
- type: integer
6501
- - in: query
6502
- name: page_size
6503
- required: false
6583
+ $ref: '#/components/schemas/HttpProtocol'
6584
+ - description: DNS zone name (trailing dot optional)
6585
+ in: path
6586
+ name: zone_name
6587
+ required: true
6504
6588
  schema:
6505
- default: 10
6506
- maximum: 100
6507
- minimum: 1
6508
- title: Page Size
6509
- type: integer
6589
+ description: DNS zone name (trailing dot optional)
6590
+ title: Zone Name
6591
+ type: string
6510
6592
  responses:
6511
6593
  '200':
6512
6594
  content:
6513
6595
  application/json:
6514
6596
  schema:
6515
- $ref: '#/components/schemas/Pagination_Redirect_'
6597
+ $ref: '#/components/schemas/DomainForward'
6516
6598
  description: Successful Response
6517
6599
  '422':
6518
6600
  content:
@@ -6522,12 +6604,17 @@ paths:
6522
6604
  description: Validation Error
6523
6605
  security:
6524
6606
  - OAuth2PasswordBearer: []
6525
- summary: Get Redirects
6607
+ summary: Get Domain Forward
6526
6608
  tags:
6527
6609
  - domain_forward
6528
6610
  post:
6529
- operationId: create_redirects_v1_domain_forwards__zone_name__post
6611
+ operationId: create_domain_forward_v1_domain_forwards__zone_name___request_protocol__post
6530
6612
  parameters:
6613
+ - in: path
6614
+ name: request_protocol
6615
+ required: true
6616
+ schema:
6617
+ $ref: '#/components/schemas/HttpProtocol'
6531
6618
  - description: DNS zone name (trailing dot optional)
6532
6619
  in: path
6533
6620
  name: zone_name
@@ -6540,10 +6627,14 @@ paths:
6540
6627
  content:
6541
6628
  application/json:
6542
6629
  schema:
6543
- $ref: '#/components/schemas/RedirectSet'
6630
+ $ref: '#/components/schemas/DomainForwardRequest'
6544
6631
  required: true
6545
6632
  responses:
6546
6633
  '201':
6634
+ content:
6635
+ application/json:
6636
+ schema:
6637
+ $ref: '#/components/schemas/DomainForward'
6547
6638
  description: Successful Response
6548
6639
  '409':
6549
6640
  content:
@@ -6566,12 +6657,17 @@ paths:
6566
6657
  description: Validation Error
6567
6658
  security:
6568
6659
  - OAuth2PasswordBearer: []
6569
- summary: Create Redirects
6660
+ summary: Create Domain Forward
6570
6661
  tags:
6571
6662
  - domain_forward
6572
6663
  put:
6573
- operationId: update_redirects_v1_domain_forwards__zone_name__put
6664
+ operationId: update_domain_forward_v1_domain_forwards__zone_name___request_protocol__put
6574
6665
  parameters:
6666
+ - in: path
6667
+ name: request_protocol
6668
+ required: true
6669
+ schema:
6670
+ $ref: '#/components/schemas/HttpProtocol'
6575
6671
  - description: DNS zone name (trailing dot optional)
6576
6672
  in: path
6577
6673
  name: zone_name
@@ -6584,10 +6680,14 @@ paths:
6584
6680
  content:
6585
6681
  application/json:
6586
6682
  schema:
6587
- $ref: '#/components/schemas/RedirectSet'
6683
+ $ref: '#/components/schemas/DomainForwardRequest'
6588
6684
  required: true
6589
6685
  responses:
6590
- '204':
6686
+ '200':
6687
+ content:
6688
+ application/json:
6689
+ schema:
6690
+ $ref: '#/components/schemas/DomainForward'
6591
6691
  description: Successful Response
6592
6692
  '409':
6593
6693
  content:
@@ -6610,66 +6710,7 @@ paths:
6610
6710
  description: Validation Error
6611
6711
  security:
6612
6712
  - OAuth2PasswordBearer: []
6613
- summary: Update Redirects
6614
- tags:
6615
- - domain_forward
6616
- /v1/domain-forwards/{zone_name}/disable:
6617
- patch:
6618
- operationId: disable_domain_forward_v1_domain_forwards__zone_name__disable_patch
6619
- parameters:
6620
- - description: DNS zone name (trailing dot optional)
6621
- in: path
6622
- name: zone_name
6623
- required: true
6624
- schema:
6625
- description: DNS zone name (trailing dot optional)
6626
- title: Zone Name
6627
- type: string
6628
- responses:
6629
- '204':
6630
- description: Successful Response
6631
- '422':
6632
- content:
6633
- application/problem+json:
6634
- schema:
6635
- $ref: '#/components/schemas/HTTPValidationError'
6636
- description: Validation Error
6637
- security:
6638
- - OAuth2PasswordBearer: []
6639
- summary: Disable Domain Forward
6640
- tags:
6641
- - domain_forward
6642
- /v1/domain-forwards/{zone_name}/enable:
6643
- patch:
6644
- operationId: enable_domain_forward_v1_domain_forwards__zone_name__enable_patch
6645
- parameters:
6646
- - description: DNS zone name (trailing dot optional)
6647
- in: path
6648
- name: zone_name
6649
- required: true
6650
- schema:
6651
- description: DNS zone name (trailing dot optional)
6652
- title: Zone Name
6653
- type: string
6654
- - in: query
6655
- name: auto_create_zone
6656
- required: false
6657
- schema:
6658
- default: false
6659
- title: Auto Create Zone
6660
- type: boolean
6661
- responses:
6662
- '204':
6663
- description: Successful Response
6664
- '422':
6665
- content:
6666
- application/problem+json:
6667
- schema:
6668
- $ref: '#/components/schemas/HTTPValidationError'
6669
- description: Validation Error
6670
- security:
6671
- - OAuth2PasswordBearer: []
6672
- summary: Enable Domain Forward
6713
+ summary: Update Domain Forward
6673
6714
  tags:
6674
6715
  - domain_forward
6675
6716
  /v1/domain-search/suggest:
@@ -9223,6 +9264,57 @@ paths:
9223
9264
  summary: Update an organization
9224
9265
  tags:
9225
9266
  - organization
9267
+ /v1/organizations/{organization_id}/billing/invoices:
9268
+ get:
9269
+ description: Retrieves a paginated list of all invoices for the organization
9270
+ operationId: list_invoices_v1_organizations__organization_id__billing_invoices_get
9271
+ parameters:
9272
+ - in: path
9273
+ name: organization_id
9274
+ required: true
9275
+ schema:
9276
+ examples:
9277
+ - organization_01h45ytscbebyvny4gc8cr8ma2
9278
+ format: typeid
9279
+ pattern: ^organization_[0-7][0-9a-hjkmnpq-tv-z]{25}$
9280
+ title: Organization Id
9281
+ type: string
9282
+ x-typeid-prefix: organization
9283
+ - in: query
9284
+ name: page
9285
+ required: false
9286
+ schema:
9287
+ default: 1
9288
+ minimum: 1
9289
+ title: Page
9290
+ type: integer
9291
+ - in: query
9292
+ name: page_size
9293
+ required: false
9294
+ schema:
9295
+ default: 10
9296
+ maximum: 100
9297
+ minimum: 1
9298
+ title: Page Size
9299
+ type: integer
9300
+ responses:
9301
+ '200':
9302
+ content:
9303
+ application/json:
9304
+ schema:
9305
+ $ref: '#/components/schemas/Pagination_InvoiceResponse_'
9306
+ description: Successful Response
9307
+ '422':
9308
+ content:
9309
+ application/problem+json:
9310
+ schema:
9311
+ $ref: '#/components/schemas/HTTPValidationError'
9312
+ description: Validation Error
9313
+ security:
9314
+ - OAuth2PasswordBearer: []
9315
+ summary: List all invoices for the organization
9316
+ tags:
9317
+ - organization
9226
9318
  /v1/organizations/{organization_id}/pricing/product-type/{product_type}:
9227
9319
  get:
9228
9320
  description: Retrieves pricing data for a specific product type. If a product