@opusdns/api 0.60.0 → 0.62.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 +1 -1
- package/src/helpers/constants.ts +111 -1
- package/src/helpers/keys.ts +320 -33
- package/src/helpers/requests.d.ts +90 -0
- package/src/helpers/responses.d.ts +111 -1
- package/src/helpers/schemas-arrays.d.ts +15 -1
- package/src/helpers/schemas.d.ts +80 -0
- package/src/openapi.yaml +275 -11
- package/src/schema.d.ts +177 -10
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
|
|
35
35
|
import { DomainDnssecDataArray, OrganizationAttribute2Array, IpRestrictionArray, TldResponseShortArray } from './schemas-arrays.d';
|
|
36
36
|
|
|
37
|
-
import { Pagination_OrganizationCredential, Problem, HTTPValidationError, OrganizationCredentialCreated, DomainAvailabilityList, Pagination_ContactSchema, ContactSchema, ContactVerification, Contact, Pagination_DnsZone, DnsZone, DnsChanges, DnsZoneSummary, DomainSearch, Pagination_Domain, Domain, DomainRenew, DomainRestore, DomainCheck, DomainSummary, Pagination_EmailForwardAlias, EmailForwardAlias, Pagination_Event, EventSchema, Pagination_Organization, Organization, OrganizationWithBillingData, GetCurrentAvailablePlans, GetPrices, IpRestriction, Pagination_User, TldSpecification, User, UserWithAttributes, PermissionSet, RelationSet, UserWithRelationPermissions } from './schemas.d';
|
|
37
|
+
import { Pagination_OrganizationCredential, Problem, HTTPValidationError, OrganizationCredentialCreated, DomainAvailabilityList, Pagination_ContactSchema, ContactSchema, ContactVerification, Contact, Pagination_DnsZone, DnsZone, DnsChanges, DnsZoneSummary, DomainSearch, Pagination_Domain, Domain, DomainRenew, DomainRestore, DomainCheck, DomainSummary, Pagination_EmailForwardAlias, EmailForwardAlias, Pagination_Event, EventSchema, Pagination_Organization, Organization, OrganizationWithBillingData, GetCurrentAvailablePlans, GetPrices, Pagination_BillingTransaction, BillingTransaction, IpRestriction, Pagination_User, TldSpecification, User, UserWithAttributes, PermissionSet, RelationSet, UserWithRelationPermissions } from './schemas.d';
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* Response types for GET AuthClientCredentials endpoint
|
|
@@ -4461,6 +4461,116 @@ export type GET_OrganizationsByOrganizationIdPricingProductTypeByProductType_Res
|
|
|
4461
4461
|
*/
|
|
4462
4462
|
export type GET_OrganizationsByOrganizationIdPricingProductTypeByProductType_Response_422 = HTTPValidationError
|
|
4463
4463
|
|
|
4464
|
+
/**
|
|
4465
|
+
* Response types for GET OrganizationsByOrganizationIdTransactions endpoint
|
|
4466
|
+
*
|
|
4467
|
+
* Get transactions for an organization
|
|
4468
|
+
*
|
|
4469
|
+
* @remarks
|
|
4470
|
+
* This type defines all possible response structures for the GET OrganizationsByOrganizationIdTransactions endpoint.
|
|
4471
|
+
* Each response code maps to a specific response type as defined in the OpenAPI specification.
|
|
4472
|
+
* Use this type to ensure type safety when handling API responses from this endpoint.
|
|
4473
|
+
*
|
|
4474
|
+
|
|
4475
|
+
*
|
|
4476
|
+
* @path /v1/organizations/{organization_id}/transactions
|
|
4477
|
+
*
|
|
4478
|
+
* @see {@link GET_OrganizationsByOrganizationIdTransactions_Response_200} - 200 response type
|
|
4479
|
+
* @see {@link GET_OrganizationsByOrganizationIdTransactions_Response_422} - 422 response type
|
|
4480
|
+
*
|
|
4481
|
+
|
|
4482
|
+
*/
|
|
4483
|
+
export type GET_OrganizationsByOrganizationIdTransactions_Response = GET_OrganizationsByOrganizationIdTransactions_Response_200 | GET_OrganizationsByOrganizationIdTransactions_Response_422;
|
|
4484
|
+
|
|
4485
|
+
/**
|
|
4486
|
+
* 200 response for GET OrganizationsByOrganizationIdTransactions endpoint
|
|
4487
|
+
*
|
|
4488
|
+
* @remarks
|
|
4489
|
+
* This type defines the response structure for the 200 status code
|
|
4490
|
+
* of the GET OrganizationsByOrganizationIdTransactions endpoint.
|
|
4491
|
+
* It provides type safety for handling this specific response as defined in the OpenAPI specification.
|
|
4492
|
+
*
|
|
4493
|
+
|
|
4494
|
+
*
|
|
4495
|
+
* @path /v1/organizations/{organization_id}/transactions
|
|
4496
|
+
*
|
|
4497
|
+
* @see {@link GET_OrganizationsByOrganizationIdTransactions_Response} - The main response type definition
|
|
4498
|
+
* @see {@link Pagination_BillingTransaction} - The actual schema type definition
|
|
4499
|
+
*/
|
|
4500
|
+
export type GET_OrganizationsByOrganizationIdTransactions_Response_200 = Pagination_BillingTransaction
|
|
4501
|
+
|
|
4502
|
+
/**
|
|
4503
|
+
* 422 response for GET OrganizationsByOrganizationIdTransactions endpoint
|
|
4504
|
+
*
|
|
4505
|
+
* @remarks
|
|
4506
|
+
* This type defines the response structure for the 422 status code
|
|
4507
|
+
* of the GET OrganizationsByOrganizationIdTransactions endpoint.
|
|
4508
|
+
* It provides type safety for handling this specific response as defined in the OpenAPI specification.
|
|
4509
|
+
*
|
|
4510
|
+
|
|
4511
|
+
*
|
|
4512
|
+
* @path /v1/organizations/{organization_id}/transactions
|
|
4513
|
+
*
|
|
4514
|
+
* @see {@link GET_OrganizationsByOrganizationIdTransactions_Response} - The main response type definition
|
|
4515
|
+
* @see {@link HTTPValidationError} - The actual schema type definition
|
|
4516
|
+
*/
|
|
4517
|
+
export type GET_OrganizationsByOrganizationIdTransactions_Response_422 = HTTPValidationError
|
|
4518
|
+
|
|
4519
|
+
/**
|
|
4520
|
+
* Response types for GET OrganizationsByOrganizationIdTransactionsByTransactionId endpoint
|
|
4521
|
+
*
|
|
4522
|
+
* Get a specific transaction for an organization
|
|
4523
|
+
*
|
|
4524
|
+
* @remarks
|
|
4525
|
+
* This type defines all possible response structures for the GET OrganizationsByOrganizationIdTransactionsByTransactionId endpoint.
|
|
4526
|
+
* Each response code maps to a specific response type as defined in the OpenAPI specification.
|
|
4527
|
+
* Use this type to ensure type safety when handling API responses from this endpoint.
|
|
4528
|
+
*
|
|
4529
|
+
|
|
4530
|
+
*
|
|
4531
|
+
* @path /v1/organizations/{organization_id}/transactions/{transaction_id}
|
|
4532
|
+
*
|
|
4533
|
+
* @see {@link GET_OrganizationsByOrganizationIdTransactionsByTransactionId_Response_200} - 200 response type
|
|
4534
|
+
* @see {@link GET_OrganizationsByOrganizationIdTransactionsByTransactionId_Response_422} - 422 response type
|
|
4535
|
+
*
|
|
4536
|
+
|
|
4537
|
+
*/
|
|
4538
|
+
export type GET_OrganizationsByOrganizationIdTransactionsByTransactionId_Response = GET_OrganizationsByOrganizationIdTransactionsByTransactionId_Response_200 | GET_OrganizationsByOrganizationIdTransactionsByTransactionId_Response_422;
|
|
4539
|
+
|
|
4540
|
+
/**
|
|
4541
|
+
* 200 response for GET OrganizationsByOrganizationIdTransactionsByTransactionId endpoint
|
|
4542
|
+
*
|
|
4543
|
+
* @remarks
|
|
4544
|
+
* This type defines the response structure for the 200 status code
|
|
4545
|
+
* of the GET OrganizationsByOrganizationIdTransactionsByTransactionId endpoint.
|
|
4546
|
+
* It provides type safety for handling this specific response as defined in the OpenAPI specification.
|
|
4547
|
+
*
|
|
4548
|
+
|
|
4549
|
+
*
|
|
4550
|
+
* @path /v1/organizations/{organization_id}/transactions/{transaction_id}
|
|
4551
|
+
*
|
|
4552
|
+
* @see {@link GET_OrganizationsByOrganizationIdTransactionsByTransactionId_Response} - The main response type definition
|
|
4553
|
+
* @see {@link BillingTransaction} - The actual schema type definition
|
|
4554
|
+
*/
|
|
4555
|
+
export type GET_OrganizationsByOrganizationIdTransactionsByTransactionId_Response_200 = BillingTransaction
|
|
4556
|
+
|
|
4557
|
+
/**
|
|
4558
|
+
* 422 response for GET OrganizationsByOrganizationIdTransactionsByTransactionId endpoint
|
|
4559
|
+
*
|
|
4560
|
+
* @remarks
|
|
4561
|
+
* This type defines the response structure for the 422 status code
|
|
4562
|
+
* of the GET OrganizationsByOrganizationIdTransactionsByTransactionId endpoint.
|
|
4563
|
+
* It provides type safety for handling this specific response as defined in the OpenAPI specification.
|
|
4564
|
+
*
|
|
4565
|
+
|
|
4566
|
+
*
|
|
4567
|
+
* @path /v1/organizations/{organization_id}/transactions/{transaction_id}
|
|
4568
|
+
*
|
|
4569
|
+
* @see {@link GET_OrganizationsByOrganizationIdTransactionsByTransactionId_Response} - The main response type definition
|
|
4570
|
+
* @see {@link HTTPValidationError} - The actual schema type definition
|
|
4571
|
+
*/
|
|
4572
|
+
export type GET_OrganizationsByOrganizationIdTransactionsByTransactionId_Response_422 = HTTPValidationError
|
|
4573
|
+
|
|
4464
4574
|
/**
|
|
4465
4575
|
* Response types for GET OrganizationsIpRestrictions endpoint
|
|
4466
4576
|
*
|
|
@@ -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, PostalAddressType, ContactConfigBase, DnsChange, DnsRecordCreate, DnsRecord, DnsRrsetCreate, DnsRecordPatchOp, DnsRrset, DnsRrsetPatchOp, DomainAvailabilityCheck, ContactHandle, Nameserver, DeletePolicyType, SyncOperationType, DomainContact, DomainSearchSuggestionWithPrice, DomainStatus, DomainClientStatus, PlanInfo, PriceInfo, ValidationError, LaunchPhaseBase, LocalPresenceRequirementType, ContactRoleType, OrganizationAttribute2, User, OrganizationAttributeCreate, UserCreate, ContactSchema, DnsZone, Domain, EmailForwardAlias, EventResponse, OrganizationCredential, Organization, Period, Permission, PremiumAffectsType, Relation, UserAgreementAcceptance, TldBase, PostTransferRequirements, UserAttributeBase, DomainAvailability } from './schemas.d';
|
|
24
|
+
import { DomainDnssecData, DomainDnssecDataCreate, OrganizationAttribute, OrganizationAttributeUpdate, IpRestriction, TldResponseShort, PostalAddressType, ContactConfigBase, DnsChange, DnsRecordCreate, DnsRecord, DnsRrsetCreate, DnsRecordPatchOp, DnsRrset, DnsRrsetPatchOp, DomainAvailabilityCheck, ContactHandle, Nameserver, DeletePolicyType, SyncOperationType, DomainContact, DomainSearchSuggestionWithPrice, DomainStatus, DomainClientStatus, PlanInfo, PriceInfo, ValidationError, LaunchPhaseBase, LocalPresenceRequirementType, ContactRoleType, OrganizationAttribute2, User, OrganizationAttributeCreate, UserCreate, BillingTransaction, ContactSchema, DnsZone, Domain, EmailForwardAlias, EventResponse, OrganizationCredential, Organization, Period, Permission, PremiumAffectsType, Relation, UserAgreementAcceptance, TldBase, PostTransferRequirements, UserAttributeBase, DomainAvailability } from './schemas.d';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* DomainDnssecDataResponse
|
|
@@ -499,6 +499,20 @@ export type OrganizationAttributeCreateArray = OrganizationAttributeCreate[];
|
|
|
499
499
|
* @see {@link UserCreate} - The individual UserCreate type definition
|
|
500
500
|
*/
|
|
501
501
|
export type UserCreateArray = UserCreate[];
|
|
502
|
+
/**
|
|
503
|
+
* BillingTransactionResponse
|
|
504
|
+
*
|
|
505
|
+
* @remarks
|
|
506
|
+
* Array type for BillingTransactionResponse objects. Used when the API returns a collection of BillingTransactionResponse instances.
|
|
507
|
+
*
|
|
508
|
+
* @example
|
|
509
|
+
* ```typescript
|
|
510
|
+
* const items: BillingTransactionArray = await api.getBillingTransactions();
|
|
511
|
+
* ```
|
|
512
|
+
*
|
|
513
|
+
* @see {@link BillingTransaction} - The individual BillingTransactionResponse type definition
|
|
514
|
+
*/
|
|
515
|
+
export type BillingTransactionArray = BillingTransaction[];
|
|
502
516
|
/**
|
|
503
517
|
* ContactSchema
|
|
504
518
|
*
|
package/src/helpers/schemas.d.ts
CHANGED
|
@@ -138,6 +138,54 @@ export type BillingTransactionAction = components['schemas']['BillingTransaction
|
|
|
138
138
|
* @see {@link components} - The OpenAPI components schema definition
|
|
139
139
|
*/
|
|
140
140
|
export type BillingTransactionProductType = components['schemas']['BillingTransactionProductType'];
|
|
141
|
+
/**
|
|
142
|
+
* BillingTransactionResponse
|
|
143
|
+
*
|
|
144
|
+
* @remarks
|
|
145
|
+
* Type alias for the `BillingTransactionResponse` OpenAPI schema.
|
|
146
|
+
* This type represents billingtransactionresponse data structures used in API requests and responses.
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* ```typescript
|
|
150
|
+
* const response = await api.getBillingTransaction();
|
|
151
|
+
* const item: BillingTransaction = response.results;
|
|
152
|
+
* ```
|
|
153
|
+
*
|
|
154
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
155
|
+
*/
|
|
156
|
+
export type BillingTransaction = components['schemas']['BillingTransactionResponse'];
|
|
157
|
+
/**
|
|
158
|
+
* BillingTransactionSortField
|
|
159
|
+
*
|
|
160
|
+
* @remarks
|
|
161
|
+
* Type alias for the `BillingTransactionSortField` OpenAPI schema.
|
|
162
|
+
* This type represents billingtransactionsortfield data structures used in API requests and responses.
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* ```typescript
|
|
166
|
+
* const response = await api.getBillingTransactionSortField();
|
|
167
|
+
* const item: BillingTransactionSortField = response.results;
|
|
168
|
+
* ```
|
|
169
|
+
*
|
|
170
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
171
|
+
*/
|
|
172
|
+
export type BillingTransactionSortField = components['schemas']['BillingTransactionSortField'];
|
|
173
|
+
/**
|
|
174
|
+
* BillingTransactionStatus
|
|
175
|
+
*
|
|
176
|
+
* @remarks
|
|
177
|
+
* Type alias for the `BillingTransactionStatus` OpenAPI schema.
|
|
178
|
+
* This type represents billingtransactionstatus data structures used in API requests and responses.
|
|
179
|
+
*
|
|
180
|
+
* @example
|
|
181
|
+
* ```typescript
|
|
182
|
+
* const response = await api.getBillingTransactionStatus();
|
|
183
|
+
* const item: BillingTransactionStatus = response.results;
|
|
184
|
+
* ```
|
|
185
|
+
*
|
|
186
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
187
|
+
*/
|
|
188
|
+
export type BillingTransactionStatus = components['schemas']['BillingTransactionStatus'];
|
|
141
189
|
/**
|
|
142
190
|
* Body_issue_organization_token_v1_auth_token_post
|
|
143
191
|
*
|
|
@@ -1903,6 +1951,22 @@ export type OrganizationWithBillingData = components['schemas']['OrganizationWit
|
|
|
1903
1951
|
* @see {@link components} - The OpenAPI components schema definition
|
|
1904
1952
|
*/
|
|
1905
1953
|
export type PaginationMetadata = components['schemas']['PaginationMetadata'];
|
|
1954
|
+
/**
|
|
1955
|
+
* Pagination[BillingTransactionResponse]
|
|
1956
|
+
*
|
|
1957
|
+
* @remarks
|
|
1958
|
+
* Type alias for the `Pagination_BillingTransactionResponse_` OpenAPI schema.
|
|
1959
|
+
* This type represents pagination[billingtransactionresponse] data structures used in API requests and responses.
|
|
1960
|
+
*
|
|
1961
|
+
* @example
|
|
1962
|
+
* ```typescript
|
|
1963
|
+
* const response = await api.getPagination_BillingTransaction();
|
|
1964
|
+
* const item: Pagination_BillingTransaction = response.results;
|
|
1965
|
+
* ```
|
|
1966
|
+
*
|
|
1967
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
1968
|
+
*/
|
|
1969
|
+
export type Pagination_BillingTransaction = components['schemas']['Pagination_BillingTransactionResponse_'];
|
|
1906
1970
|
/**
|
|
1907
1971
|
* Pagination[ContactSchema]
|
|
1908
1972
|
*
|
|
@@ -2287,6 +2351,22 @@ export type PremiumSourceType = components['schemas']['PremiumSourceType'];
|
|
|
2287
2351
|
* @see {@link components} - The OpenAPI components schema definition
|
|
2288
2352
|
*/
|
|
2289
2353
|
export type PriceInfo = components['schemas']['PriceInfo'];
|
|
2354
|
+
/**
|
|
2355
|
+
* PricingPeriod
|
|
2356
|
+
*
|
|
2357
|
+
* @remarks
|
|
2358
|
+
* Type alias for the `PricingPeriod` OpenAPI schema.
|
|
2359
|
+
* This type represents pricingperiod data structures used in API requests and responses.
|
|
2360
|
+
*
|
|
2361
|
+
* @example
|
|
2362
|
+
* ```typescript
|
|
2363
|
+
* const response = await api.getPricingPeriod();
|
|
2364
|
+
* const item: PricingPeriod = response.results;
|
|
2365
|
+
* ```
|
|
2366
|
+
*
|
|
2367
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
2368
|
+
*/
|
|
2369
|
+
export type PricingPeriod = components['schemas']['PricingPeriod'];
|
|
2290
2370
|
/**
|
|
2291
2371
|
* Problem
|
|
2292
2372
|
*
|
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:
|
|
@@ -3444,6 +3511,20 @@ components:
|
|
|
3444
3511
|
- has_previous_page
|
|
3445
3512
|
title: PaginationMetadata
|
|
3446
3513
|
type: object
|
|
3514
|
+
Pagination_BillingTransactionResponse_:
|
|
3515
|
+
properties:
|
|
3516
|
+
pagination:
|
|
3517
|
+
$ref: '#/components/schemas/PaginationMetadata'
|
|
3518
|
+
results:
|
|
3519
|
+
items:
|
|
3520
|
+
$ref: '#/components/schemas/BillingTransactionResponse'
|
|
3521
|
+
title: Results
|
|
3522
|
+
type: array
|
|
3523
|
+
required:
|
|
3524
|
+
- results
|
|
3525
|
+
- pagination
|
|
3526
|
+
title: Pagination[BillingTransactionResponse]
|
|
3527
|
+
type: object
|
|
3447
3528
|
Pagination_ContactSchema_:
|
|
3448
3529
|
properties:
|
|
3449
3530
|
pagination:
|
|
@@ -3756,18 +3837,11 @@ components:
|
|
|
3756
3837
|
currency:
|
|
3757
3838
|
title: Currency
|
|
3758
3839
|
type: string
|
|
3759
|
-
|
|
3760
|
-
anyOf:
|
|
3761
|
-
- type: string
|
|
3762
|
-
- type: 'null'
|
|
3763
|
-
description: 'Period unit: ''y'' (year), ''m'' (month), ''d'' (day)'
|
|
3764
|
-
title: Period Unit
|
|
3765
|
-
period_value:
|
|
3840
|
+
period:
|
|
3766
3841
|
anyOf:
|
|
3767
|
-
-
|
|
3842
|
+
- $ref: '#/components/schemas/PricingPeriod'
|
|
3768
3843
|
- type: 'null'
|
|
3769
|
-
description:
|
|
3770
|
-
title: Period Value
|
|
3844
|
+
description: Pricing period (e.g., 1 year, 2 months)
|
|
3771
3845
|
price:
|
|
3772
3846
|
title: Price
|
|
3773
3847
|
type: string
|
|
@@ -3790,6 +3864,21 @@ components:
|
|
|
3790
3864
|
- currency
|
|
3791
3865
|
title: PriceInfo
|
|
3792
3866
|
type: object
|
|
3867
|
+
PricingPeriod:
|
|
3868
|
+
properties:
|
|
3869
|
+
unit:
|
|
3870
|
+
$ref: '#/components/schemas/PeriodUnit'
|
|
3871
|
+
description: The unit of the period
|
|
3872
|
+
value:
|
|
3873
|
+
description: Amount of time in the unit
|
|
3874
|
+
exclusiveMinimum: 0.0
|
|
3875
|
+
title: Value
|
|
3876
|
+
type: integer
|
|
3877
|
+
required:
|
|
3878
|
+
- value
|
|
3879
|
+
- unit
|
|
3880
|
+
title: PricingPeriod
|
|
3881
|
+
type: object
|
|
3793
3882
|
Problem:
|
|
3794
3883
|
properties:
|
|
3795
3884
|
detail:
|
|
@@ -4920,7 +5009,7 @@ info:
|
|
|
4920
5009
|
'
|
|
4921
5010
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
4922
5011
|
title: OpusDNS API
|
|
4923
|
-
version: 2025-09-
|
|
5012
|
+
version: 2025-09-24-153436
|
|
4924
5013
|
x-logo:
|
|
4925
5014
|
altText: OpusDNS API Reference
|
|
4926
5015
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
|
@@ -8654,6 +8743,181 @@ paths:
|
|
|
8654
8743
|
summary: Get Pricing Plans
|
|
8655
8744
|
tags:
|
|
8656
8745
|
- organization
|
|
8746
|
+
/v1/organizations/{organization_id}/transactions:
|
|
8747
|
+
get:
|
|
8748
|
+
operationId: get_transactions_v1_organizations__organization_id__transactions_get
|
|
8749
|
+
parameters:
|
|
8750
|
+
- in: path
|
|
8751
|
+
name: organization_id
|
|
8752
|
+
required: true
|
|
8753
|
+
schema:
|
|
8754
|
+
examples:
|
|
8755
|
+
- organization_01h45ytscbebyvny4gc8cr8ma2
|
|
8756
|
+
format: typeid
|
|
8757
|
+
pattern: ^organization_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
8758
|
+
title: Organization Id
|
|
8759
|
+
type: string
|
|
8760
|
+
x-typeid-prefix: organization
|
|
8761
|
+
- in: query
|
|
8762
|
+
name: sort_by
|
|
8763
|
+
required: false
|
|
8764
|
+
schema:
|
|
8765
|
+
$ref: '#/components/schemas/BillingTransactionSortField'
|
|
8766
|
+
default: created_on
|
|
8767
|
+
- in: query
|
|
8768
|
+
name: sort_order
|
|
8769
|
+
required: false
|
|
8770
|
+
schema:
|
|
8771
|
+
$ref: '#/components/schemas/SortOrder'
|
|
8772
|
+
default: desc
|
|
8773
|
+
- in: query
|
|
8774
|
+
name: product_reference
|
|
8775
|
+
required: false
|
|
8776
|
+
schema:
|
|
8777
|
+
anyOf:
|
|
8778
|
+
- minLength: 1
|
|
8779
|
+
type: string
|
|
8780
|
+
- type: 'null'
|
|
8781
|
+
title: Product Reference
|
|
8782
|
+
- in: query
|
|
8783
|
+
name: product_type
|
|
8784
|
+
required: false
|
|
8785
|
+
schema:
|
|
8786
|
+
anyOf:
|
|
8787
|
+
- $ref: '#/components/schemas/BillingTransactionProductType'
|
|
8788
|
+
- type: 'null'
|
|
8789
|
+
title: Product Type
|
|
8790
|
+
- in: query
|
|
8791
|
+
name: action
|
|
8792
|
+
required: false
|
|
8793
|
+
schema:
|
|
8794
|
+
anyOf:
|
|
8795
|
+
- $ref: '#/components/schemas/BillingTransactionAction'
|
|
8796
|
+
- type: 'null'
|
|
8797
|
+
title: Action
|
|
8798
|
+
- in: query
|
|
8799
|
+
name: status
|
|
8800
|
+
required: false
|
|
8801
|
+
schema:
|
|
8802
|
+
anyOf:
|
|
8803
|
+
- $ref: '#/components/schemas/BillingTransactionStatus'
|
|
8804
|
+
- type: 'null'
|
|
8805
|
+
title: Status
|
|
8806
|
+
- in: query
|
|
8807
|
+
name: created_after
|
|
8808
|
+
required: false
|
|
8809
|
+
schema:
|
|
8810
|
+
anyOf:
|
|
8811
|
+
- format: date-time
|
|
8812
|
+
type: string
|
|
8813
|
+
- type: 'null'
|
|
8814
|
+
title: Created After
|
|
8815
|
+
- in: query
|
|
8816
|
+
name: created_before
|
|
8817
|
+
required: false
|
|
8818
|
+
schema:
|
|
8819
|
+
anyOf:
|
|
8820
|
+
- format: date-time
|
|
8821
|
+
type: string
|
|
8822
|
+
- type: 'null'
|
|
8823
|
+
title: Created Before
|
|
8824
|
+
- in: query
|
|
8825
|
+
name: completed_after
|
|
8826
|
+
required: false
|
|
8827
|
+
schema:
|
|
8828
|
+
anyOf:
|
|
8829
|
+
- format: date-time
|
|
8830
|
+
type: string
|
|
8831
|
+
- type: 'null'
|
|
8832
|
+
title: Completed After
|
|
8833
|
+
- in: query
|
|
8834
|
+
name: completed_before
|
|
8835
|
+
required: false
|
|
8836
|
+
schema:
|
|
8837
|
+
anyOf:
|
|
8838
|
+
- format: date-time
|
|
8839
|
+
type: string
|
|
8840
|
+
- type: 'null'
|
|
8841
|
+
title: Completed Before
|
|
8842
|
+
- in: query
|
|
8843
|
+
name: page
|
|
8844
|
+
required: false
|
|
8845
|
+
schema:
|
|
8846
|
+
default: 1
|
|
8847
|
+
minimum: 1
|
|
8848
|
+
title: Page
|
|
8849
|
+
type: integer
|
|
8850
|
+
- in: query
|
|
8851
|
+
name: page_size
|
|
8852
|
+
required: false
|
|
8853
|
+
schema:
|
|
8854
|
+
default: 10
|
|
8855
|
+
maximum: 100
|
|
8856
|
+
minimum: 1
|
|
8857
|
+
title: Page Size
|
|
8858
|
+
type: integer
|
|
8859
|
+
responses:
|
|
8860
|
+
'200':
|
|
8861
|
+
content:
|
|
8862
|
+
application/json:
|
|
8863
|
+
schema:
|
|
8864
|
+
$ref: '#/components/schemas/Pagination_BillingTransactionResponse_'
|
|
8865
|
+
description: Successful Response
|
|
8866
|
+
'422':
|
|
8867
|
+
content:
|
|
8868
|
+
application/problem+json:
|
|
8869
|
+
schema:
|
|
8870
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
8871
|
+
description: Validation Error
|
|
8872
|
+
security:
|
|
8873
|
+
- OAuth2PasswordBearer: []
|
|
8874
|
+
summary: Get transactions for an organization
|
|
8875
|
+
tags:
|
|
8876
|
+
- organization
|
|
8877
|
+
/v1/organizations/{organization_id}/transactions/{transaction_id}:
|
|
8878
|
+
get:
|
|
8879
|
+
operationId: get_transaction_v1_organizations__organization_id__transactions__transaction_id__get
|
|
8880
|
+
parameters:
|
|
8881
|
+
- in: path
|
|
8882
|
+
name: organization_id
|
|
8883
|
+
required: true
|
|
8884
|
+
schema:
|
|
8885
|
+
examples:
|
|
8886
|
+
- organization_01h45ytscbebyvny4gc8cr8ma2
|
|
8887
|
+
format: typeid
|
|
8888
|
+
pattern: ^organization_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
8889
|
+
title: Organization Id
|
|
8890
|
+
type: string
|
|
8891
|
+
x-typeid-prefix: organization
|
|
8892
|
+
- in: path
|
|
8893
|
+
name: transaction_id
|
|
8894
|
+
required: true
|
|
8895
|
+
schema:
|
|
8896
|
+
examples:
|
|
8897
|
+
- billing_transaction_01h45ytscbebyvny4gc8cr8ma2
|
|
8898
|
+
format: typeid
|
|
8899
|
+
pattern: ^billing_transaction_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
8900
|
+
title: Transaction Id
|
|
8901
|
+
type: string
|
|
8902
|
+
x-typeid-prefix: billing_transaction
|
|
8903
|
+
responses:
|
|
8904
|
+
'200':
|
|
8905
|
+
content:
|
|
8906
|
+
application/json:
|
|
8907
|
+
schema:
|
|
8908
|
+
$ref: '#/components/schemas/BillingTransactionResponse'
|
|
8909
|
+
description: Successful Response
|
|
8910
|
+
'422':
|
|
8911
|
+
content:
|
|
8912
|
+
application/problem+json:
|
|
8913
|
+
schema:
|
|
8914
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
8915
|
+
description: Validation Error
|
|
8916
|
+
security:
|
|
8917
|
+
- OAuth2PasswordBearer: []
|
|
8918
|
+
summary: Get a specific transaction for an organization
|
|
8919
|
+
tags:
|
|
8920
|
+
- organization
|
|
8657
8921
|
/v1/tlds/portfolio:
|
|
8658
8922
|
get:
|
|
8659
8923
|
operationId: get_tld_portfolio_v1_tlds_portfolio_get
|