@opusdns/api 0.61.0 → 0.63.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
@@ -101,6 +101,73 @@ components:
101
101
  - domain_forward
102
102
  title: BillingTransactionProductType
103
103
  type: string
104
+ BillingTransactionResponse:
105
+ properties:
106
+ action:
107
+ $ref: '#/components/schemas/BillingTransactionAction'
108
+ description: The action performed in the transaction
109
+ billing_transaction_id:
110
+ examples:
111
+ - billing_transaction_01h45ytscbebyvny4gc8cr8ma2
112
+ format: typeid
113
+ pattern: ^billing_transaction_[0-7][0-9a-hjkmnpq-tv-z]{25}$
114
+ title: Billing Transaction Id
115
+ type: string
116
+ x-typeid-prefix: billing_transaction
117
+ completed_on:
118
+ anyOf:
119
+ - format: date-time
120
+ type: string
121
+ - type: 'null'
122
+ description: The date/time the transaction completed
123
+ title: Completed On
124
+ created_on:
125
+ description: The date/time the transaction was created
126
+ format: date-time
127
+ title: Created On
128
+ type: string
129
+ product_reference:
130
+ anyOf:
131
+ - minLength: 1
132
+ type: string
133
+ - type: 'null'
134
+ description: The reference of the product
135
+ title: Product Reference
136
+ product_type:
137
+ $ref: '#/components/schemas/BillingTransactionProductType'
138
+ description: The type of product
139
+ status:
140
+ $ref: '#/components/schemas/BillingTransactionStatus'
141
+ default: pending
142
+ description: The status of the transaction
143
+ updated_on:
144
+ description: The date/time the transaction was updated
145
+ format: date-time
146
+ title: Updated On
147
+ type: string
148
+ required:
149
+ - product_type
150
+ - product_reference
151
+ - action
152
+ title: BillingTransactionResponse
153
+ type: object
154
+ BillingTransactionSortField:
155
+ enum:
156
+ - product_type
157
+ - action
158
+ - status
159
+ - created_on
160
+ - completed_on
161
+ title: BillingTransactionSortField
162
+ type: string
163
+ BillingTransactionStatus:
164
+ enum:
165
+ - pending
166
+ - succeeded
167
+ - failed
168
+ - canceled
169
+ title: BillingTransactionStatus
170
+ type: string
104
171
  Body_issue_organization_token_v1_auth_token_post:
105
172
  properties:
106
173
  client_id:
@@ -137,6 +204,27 @@ components:
137
204
  title: Username
138
205
  title: Body_issue_organization_token_v1_auth_token_post
139
206
  type: object
207
+ CheckoutSessionRequest:
208
+ properties:
209
+ return_url:
210
+ description: Return URL that will be used
211
+ title: Return Url
212
+ type: string
213
+ required:
214
+ - return_url
215
+ title: CheckoutSessionRequest
216
+ type: object
217
+ CheckoutSessionResponse:
218
+ properties:
219
+ session_client_secret:
220
+ description: Checkout session client secret - meant to be used in the embedded
221
+ checkout
222
+ title: Session Client Secret
223
+ type: string
224
+ required:
225
+ - session_client_secret
226
+ title: CheckoutSessionResponse
227
+ type: object
140
228
  ContactConfigBase:
141
229
  properties:
142
230
  max:
@@ -746,6 +834,47 @@ components:
746
834
  - EUR
747
835
  title: Currency
748
836
  type: string
837
+ CustomerCreditCardPaymentMethod:
838
+ properties:
839
+ brand:
840
+ description: Card brand
841
+ title: Brand
842
+ type: string
843
+ country:
844
+ anyOf:
845
+ - type: string
846
+ - type: 'null'
847
+ description: Country code
848
+ title: Country
849
+ exp_month:
850
+ description: Expiration month
851
+ title: Exp Month
852
+ type: integer
853
+ exp_year:
854
+ description: Expiration year
855
+ title: Exp Year
856
+ type: integer
857
+ id:
858
+ description: Payment method ID
859
+ title: Id
860
+ type: string
861
+ is_default:
862
+ description: Whether this is the default payment method
863
+ title: Is Default
864
+ type: boolean
865
+ last4:
866
+ description: Last four digits of the card
867
+ title: Last4
868
+ type: string
869
+ required:
870
+ - id
871
+ - brand
872
+ - last4
873
+ - exp_month
874
+ - exp_year
875
+ - is_default
876
+ title: CustomerCreditCardPaymentMethod
877
+ type: object
749
878
  DeletePolicyType:
750
879
  enum:
751
880
  - immediate
@@ -3444,6 +3573,20 @@ components:
3444
3573
  - has_previous_page
3445
3574
  title: PaginationMetadata
3446
3575
  type: object
3576
+ Pagination_BillingTransactionResponse_:
3577
+ properties:
3578
+ pagination:
3579
+ $ref: '#/components/schemas/PaginationMetadata'
3580
+ results:
3581
+ items:
3582
+ $ref: '#/components/schemas/BillingTransactionResponse'
3583
+ title: Results
3584
+ type: array
3585
+ required:
3586
+ - results
3587
+ - pagination
3588
+ title: Pagination[BillingTransactionResponse]
3589
+ type: object
3447
3590
  Pagination_ContactSchema_:
3448
3591
  properties:
3449
3592
  pagination:
@@ -4824,6 +4967,59 @@ components:
4824
4967
  - email
4825
4968
  title: VerificationType
4826
4969
  type: string
4970
+ WalletCreditRequest:
4971
+ properties:
4972
+ amount:
4973
+ anyOf:
4974
+ - type: number
4975
+ - type: string
4976
+ description: Amount to credit the customer wallet
4977
+ title: Amount
4978
+ payment_method_id:
4979
+ description: Payment method ID that should be used
4980
+ title: Payment Method Id
4981
+ type: string
4982
+ required:
4983
+ - amount
4984
+ - payment_method_id
4985
+ title: WalletCreditRequest
4986
+ type: object
4987
+ WalletCreditResponseStatus:
4988
+ enum:
4989
+ - success
4990
+ - failed
4991
+ title: WalletCreditResponseStatus
4992
+ type: string
4993
+ WalletCreditResponseWithBalance:
4994
+ properties:
4995
+ amount:
4996
+ description: Amount credited to the customer wallet
4997
+ title: Amount
4998
+ type: string
4999
+ balance:
5000
+ description: Updated wallet balance after the credit
5001
+ title: Balance
5002
+ type: string
5003
+ credit_id:
5004
+ description: Unique identifier of the wallet credit transaction
5005
+ title: Credit Id
5006
+ type: string
5007
+ message:
5008
+ anyOf:
5009
+ - type: string
5010
+ - type: 'null'
5011
+ description: Optional human-readable message describing the result
5012
+ title: Message
5013
+ status:
5014
+ $ref: '#/components/schemas/WalletCreditResponseStatus'
5015
+ description: Status of the credit operation
5016
+ required:
5017
+ - credit_id
5018
+ - amount
5019
+ - status
5020
+ - balance
5021
+ title: WalletCreditResponseWithBalance
5022
+ type: object
4827
5023
  WhoisBase:
4828
5024
  properties:
4829
5025
  whois_server:
@@ -4928,7 +5124,7 @@ info:
4928
5124
  '
4929
5125
  summary: OpusDNS - your gateway to a seamless domain management experience.
4930
5126
  title: OpusDNS API
4931
- version: 2025-09-22-215413
5127
+ version: 2025-09-24-162647
4932
5128
  x-logo:
4933
5129
  altText: OpusDNS API Reference
4934
5130
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -8536,6 +8732,204 @@ paths:
8536
8732
  summary: Update Organization
8537
8733
  tags:
8538
8734
  - organization
8735
+ /v1/organizations/{organization_id}/billing/checkout-sessions:
8736
+ post:
8737
+ operationId: get_checkout_session_v1_organizations__organization_id__billing_checkout_sessions_post
8738
+ parameters:
8739
+ - in: path
8740
+ name: organization_id
8741
+ required: true
8742
+ schema:
8743
+ examples:
8744
+ - organization_01h45ytscbebyvny4gc8cr8ma2
8745
+ format: typeid
8746
+ pattern: ^organization_[0-7][0-9a-hjkmnpq-tv-z]{25}$
8747
+ title: Organization Id
8748
+ type: string
8749
+ x-typeid-prefix: organization
8750
+ requestBody:
8751
+ content:
8752
+ application/json:
8753
+ schema:
8754
+ $ref: '#/components/schemas/CheckoutSessionRequest'
8755
+ required: true
8756
+ responses:
8757
+ '200':
8758
+ content:
8759
+ application/json:
8760
+ schema:
8761
+ $ref: '#/components/schemas/CheckoutSessionResponse'
8762
+ description: Successful Response
8763
+ '422':
8764
+ content:
8765
+ application/problem+json:
8766
+ schema:
8767
+ $ref: '#/components/schemas/HTTPValidationError'
8768
+ description: Validation Error
8769
+ security:
8770
+ - OAuth2PasswordBearer: []
8771
+ summary: Get Checkout Session
8772
+ tags:
8773
+ - organization
8774
+ - organization
8775
+ /v1/organizations/{organization_id}/billing/payment-methods:
8776
+ get:
8777
+ operationId: list_payment_methods_v1_organizations__organization_id__billing_payment_methods_get
8778
+ parameters:
8779
+ - in: path
8780
+ name: organization_id
8781
+ required: true
8782
+ schema:
8783
+ examples:
8784
+ - organization_01h45ytscbebyvny4gc8cr8ma2
8785
+ format: typeid
8786
+ pattern: ^organization_[0-7][0-9a-hjkmnpq-tv-z]{25}$
8787
+ title: Organization Id
8788
+ type: string
8789
+ x-typeid-prefix: organization
8790
+ responses:
8791
+ '200':
8792
+ content:
8793
+ application/json:
8794
+ schema:
8795
+ items:
8796
+ $ref: '#/components/schemas/CustomerCreditCardPaymentMethod'
8797
+ title: Response List Payment Methods V1 Organizations Organization
8798
+ Id Billing Payment Methods Get
8799
+ type: array
8800
+ description: Successful Response
8801
+ '422':
8802
+ content:
8803
+ application/problem+json:
8804
+ schema:
8805
+ $ref: '#/components/schemas/HTTPValidationError'
8806
+ description: Validation Error
8807
+ security:
8808
+ - OAuth2PasswordBearer: []
8809
+ summary: List Payment Methods
8810
+ tags:
8811
+ - organization
8812
+ - organization
8813
+ /v1/organizations/{organization_id}/billing/payment-methods/{payment_method_id}:
8814
+ delete:
8815
+ operationId: delete_payment_method_v1_organizations__organization_id__billing_payment_methods__payment_method_id__delete
8816
+ parameters:
8817
+ - in: path
8818
+ name: payment_method_id
8819
+ required: true
8820
+ schema:
8821
+ title: Payment Method Id
8822
+ type: string
8823
+ - in: path
8824
+ name: organization_id
8825
+ required: true
8826
+ schema:
8827
+ examples:
8828
+ - organization_01h45ytscbebyvny4gc8cr8ma2
8829
+ format: typeid
8830
+ pattern: ^organization_[0-7][0-9a-hjkmnpq-tv-z]{25}$
8831
+ title: Organization Id
8832
+ type: string
8833
+ x-typeid-prefix: organization
8834
+ responses:
8835
+ '204':
8836
+ description: Successful Response
8837
+ '422':
8838
+ content:
8839
+ application/problem+json:
8840
+ schema:
8841
+ $ref: '#/components/schemas/HTTPValidationError'
8842
+ description: Validation Error
8843
+ security:
8844
+ - OAuth2PasswordBearer: []
8845
+ summary: Delete Payment Method
8846
+ tags:
8847
+ - organization
8848
+ - organization
8849
+ /v1/organizations/{organization_id}/billing/payment-methods/{payment_method_id}/default:
8850
+ patch:
8851
+ operationId: update_default_payment_method_v1_organizations__organization_id__billing_payment_methods__payment_method_id__default_patch
8852
+ parameters:
8853
+ - in: path
8854
+ name: payment_method_id
8855
+ required: true
8856
+ schema:
8857
+ title: Payment Method Id
8858
+ type: string
8859
+ - in: path
8860
+ name: organization_id
8861
+ required: true
8862
+ schema:
8863
+ examples:
8864
+ - organization_01h45ytscbebyvny4gc8cr8ma2
8865
+ format: typeid
8866
+ pattern: ^organization_[0-7][0-9a-hjkmnpq-tv-z]{25}$
8867
+ title: Organization Id
8868
+ type: string
8869
+ x-typeid-prefix: organization
8870
+ responses:
8871
+ '200':
8872
+ content:
8873
+ application/json:
8874
+ schema:
8875
+ items:
8876
+ $ref: '#/components/schemas/CustomerCreditCardPaymentMethod'
8877
+ title: Response Update Default Payment Method V1 Organizations Organization
8878
+ Id Billing Payment Methods Payment Method Id Default Patch
8879
+ type: array
8880
+ description: Successful Response
8881
+ '422':
8882
+ content:
8883
+ application/problem+json:
8884
+ schema:
8885
+ $ref: '#/components/schemas/HTTPValidationError'
8886
+ description: Validation Error
8887
+ security:
8888
+ - OAuth2PasswordBearer: []
8889
+ summary: Update Default Payment Method
8890
+ tags:
8891
+ - organization
8892
+ - organization
8893
+ /v1/organizations/{organization_id}/billing/wallet/credits:
8894
+ post:
8895
+ operationId: credit_wallet_v1_organizations__organization_id__billing_wallet_credits_post
8896
+ parameters:
8897
+ - in: path
8898
+ name: organization_id
8899
+ required: true
8900
+ schema:
8901
+ examples:
8902
+ - organization_01h45ytscbebyvny4gc8cr8ma2
8903
+ format: typeid
8904
+ pattern: ^organization_[0-7][0-9a-hjkmnpq-tv-z]{25}$
8905
+ title: Organization Id
8906
+ type: string
8907
+ x-typeid-prefix: organization
8908
+ requestBody:
8909
+ content:
8910
+ application/json:
8911
+ schema:
8912
+ $ref: '#/components/schemas/WalletCreditRequest'
8913
+ required: true
8914
+ responses:
8915
+ '200':
8916
+ content:
8917
+ application/json:
8918
+ schema:
8919
+ $ref: '#/components/schemas/WalletCreditResponseWithBalance'
8920
+ description: Successful Response
8921
+ '422':
8922
+ content:
8923
+ application/problem+json:
8924
+ schema:
8925
+ $ref: '#/components/schemas/HTTPValidationError'
8926
+ description: Validation Error
8927
+ security:
8928
+ - OAuth2PasswordBearer: []
8929
+ summary: Credit Wallet
8930
+ tags:
8931
+ - organization
8932
+ - organization
8539
8933
  /v1/organizations/{organization_id}/plan:
8540
8934
  patch:
8541
8935
  operationId: change_plan_v1_organizations__organization_id__plan_patch
@@ -8662,6 +9056,181 @@ paths:
8662
9056
  summary: Get Pricing Plans
8663
9057
  tags:
8664
9058
  - organization
9059
+ /v1/organizations/{organization_id}/transactions:
9060
+ get:
9061
+ operationId: get_transactions_v1_organizations__organization_id__transactions_get
9062
+ parameters:
9063
+ - in: path
9064
+ name: organization_id
9065
+ required: true
9066
+ schema:
9067
+ examples:
9068
+ - organization_01h45ytscbebyvny4gc8cr8ma2
9069
+ format: typeid
9070
+ pattern: ^organization_[0-7][0-9a-hjkmnpq-tv-z]{25}$
9071
+ title: Organization Id
9072
+ type: string
9073
+ x-typeid-prefix: organization
9074
+ - in: query
9075
+ name: sort_by
9076
+ required: false
9077
+ schema:
9078
+ $ref: '#/components/schemas/BillingTransactionSortField'
9079
+ default: created_on
9080
+ - in: query
9081
+ name: sort_order
9082
+ required: false
9083
+ schema:
9084
+ $ref: '#/components/schemas/SortOrder'
9085
+ default: desc
9086
+ - in: query
9087
+ name: product_reference
9088
+ required: false
9089
+ schema:
9090
+ anyOf:
9091
+ - minLength: 1
9092
+ type: string
9093
+ - type: 'null'
9094
+ title: Product Reference
9095
+ - in: query
9096
+ name: product_type
9097
+ required: false
9098
+ schema:
9099
+ anyOf:
9100
+ - $ref: '#/components/schemas/BillingTransactionProductType'
9101
+ - type: 'null'
9102
+ title: Product Type
9103
+ - in: query
9104
+ name: action
9105
+ required: false
9106
+ schema:
9107
+ anyOf:
9108
+ - $ref: '#/components/schemas/BillingTransactionAction'
9109
+ - type: 'null'
9110
+ title: Action
9111
+ - in: query
9112
+ name: status
9113
+ required: false
9114
+ schema:
9115
+ anyOf:
9116
+ - $ref: '#/components/schemas/BillingTransactionStatus'
9117
+ - type: 'null'
9118
+ title: Status
9119
+ - in: query
9120
+ name: created_after
9121
+ required: false
9122
+ schema:
9123
+ anyOf:
9124
+ - format: date-time
9125
+ type: string
9126
+ - type: 'null'
9127
+ title: Created After
9128
+ - in: query
9129
+ name: created_before
9130
+ required: false
9131
+ schema:
9132
+ anyOf:
9133
+ - format: date-time
9134
+ type: string
9135
+ - type: 'null'
9136
+ title: Created Before
9137
+ - in: query
9138
+ name: completed_after
9139
+ required: false
9140
+ schema:
9141
+ anyOf:
9142
+ - format: date-time
9143
+ type: string
9144
+ - type: 'null'
9145
+ title: Completed After
9146
+ - in: query
9147
+ name: completed_before
9148
+ required: false
9149
+ schema:
9150
+ anyOf:
9151
+ - format: date-time
9152
+ type: string
9153
+ - type: 'null'
9154
+ title: Completed Before
9155
+ - in: query
9156
+ name: page
9157
+ required: false
9158
+ schema:
9159
+ default: 1
9160
+ minimum: 1
9161
+ title: Page
9162
+ type: integer
9163
+ - in: query
9164
+ name: page_size
9165
+ required: false
9166
+ schema:
9167
+ default: 10
9168
+ maximum: 100
9169
+ minimum: 1
9170
+ title: Page Size
9171
+ type: integer
9172
+ responses:
9173
+ '200':
9174
+ content:
9175
+ application/json:
9176
+ schema:
9177
+ $ref: '#/components/schemas/Pagination_BillingTransactionResponse_'
9178
+ description: Successful Response
9179
+ '422':
9180
+ content:
9181
+ application/problem+json:
9182
+ schema:
9183
+ $ref: '#/components/schemas/HTTPValidationError'
9184
+ description: Validation Error
9185
+ security:
9186
+ - OAuth2PasswordBearer: []
9187
+ summary: Get transactions for an organization
9188
+ tags:
9189
+ - organization
9190
+ /v1/organizations/{organization_id}/transactions/{transaction_id}:
9191
+ get:
9192
+ operationId: get_transaction_v1_organizations__organization_id__transactions__transaction_id__get
9193
+ parameters:
9194
+ - in: path
9195
+ name: organization_id
9196
+ required: true
9197
+ schema:
9198
+ examples:
9199
+ - organization_01h45ytscbebyvny4gc8cr8ma2
9200
+ format: typeid
9201
+ pattern: ^organization_[0-7][0-9a-hjkmnpq-tv-z]{25}$
9202
+ title: Organization Id
9203
+ type: string
9204
+ x-typeid-prefix: organization
9205
+ - in: path
9206
+ name: transaction_id
9207
+ required: true
9208
+ schema:
9209
+ examples:
9210
+ - billing_transaction_01h45ytscbebyvny4gc8cr8ma2
9211
+ format: typeid
9212
+ pattern: ^billing_transaction_[0-7][0-9a-hjkmnpq-tv-z]{25}$
9213
+ title: Transaction Id
9214
+ type: string
9215
+ x-typeid-prefix: billing_transaction
9216
+ responses:
9217
+ '200':
9218
+ content:
9219
+ application/json:
9220
+ schema:
9221
+ $ref: '#/components/schemas/BillingTransactionResponse'
9222
+ description: Successful Response
9223
+ '422':
9224
+ content:
9225
+ application/problem+json:
9226
+ schema:
9227
+ $ref: '#/components/schemas/HTTPValidationError'
9228
+ description: Validation Error
9229
+ security:
9230
+ - OAuth2PasswordBearer: []
9231
+ summary: Get a specific transaction for an organization
9232
+ tags:
9233
+ - organization
8665
9234
  /v1/tlds/portfolio:
8666
9235
  get:
8667
9236
  operationId: get_tld_portfolio_v1_tlds_portfolio_get