@opusdns/api 0.34.0 → 0.35.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 +9 -63
- package/src/helpers/keys.ts +0 -50
- package/src/helpers/requests.d.ts +1 -53
- package/src/helpers/responses.d.ts +0 -55
- package/src/helpers/schemas.d.ts +0 -32
- package/src/openapi.yaml +5 -59
- package/src/schema.d.ts +1 -63
package/package.json
CHANGED
package/src/helpers/constants.ts
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
import { AllocationMethodType, BillingTransactionAction, BillingTransactionProductType, ContactRoleType, ContactSortField, Currency, DeletePolicyType, DnsChangeAction, DnsRrsetType, DnssecAlgorithm, DnssecDigestType, DnssecModeType, DnssecRecordType, DnssecStatus, DomainAvailabilityStatus, DomainClientStatus, DomainContactType, DomainSortField, DomainStatus, EmailVerificationStatus, EventObjectType, EventSubtype, EventType, GrantType, LaunchPhaseType, LocalPresenceRequirementType, OrganizationCredentialStatus, OrganizationStatus, PatchOp, PeriodUnit, Permission,
|
|
24
|
+
import { AllocationMethodType, BillingTransactionAction, BillingTransactionProductType, ContactRoleType, ContactSortField, Currency, DeletePolicyType, DnsChangeAction, DnsRrsetType, DnssecAlgorithm, DnssecDigestType, DnssecModeType, DnssecRecordType, DnssecStatus, DomainAvailabilityStatus, DomainClientStatus, DomainContactType, DomainSortField, DomainStatus, EmailVerificationStatus, EventObjectType, EventSubtype, EventType, GrantType, LaunchPhaseType, LocalPresenceRequirementType, OrganizationCredentialStatus, OrganizationStatus, PatchOp, PeriodUnit, Permission, PostTransferRequirements, PostalAddressType, PremiumAffectsType, PremiumSourceType, RegistrantChangeType, Relation, RenewalMode, ReservedSourceType, SortOrder, SyncOperationType, TLDType, TransferAckType, UserNotificationStatus, UserStatus, VerificationType, ZoneSortField } from './schemas';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* AllocationMethodType. Auto-generated enum for AllocationMethodType
|
|
@@ -1663,9 +1663,10 @@ export const PERMISSION = {
|
|
|
1663
1663
|
BULK_RENEW_EXPIRE: "bulk_renew_expire",
|
|
1664
1664
|
BULK_TRANSFER_TRADE: "bulk_transfer_trade",
|
|
1665
1665
|
BULK_UPDATE: "bulk_update",
|
|
1666
|
+
CORPORATE_PLAN: "corporate_plan",
|
|
1666
1667
|
CREATE: "create",
|
|
1667
1668
|
DELETE: "delete",
|
|
1668
|
-
|
|
1669
|
+
ENTERPRISE_PLAN: "enterprise_plan",
|
|
1669
1670
|
HAS_ACCEPTED_TOS: "has_accepted_tos",
|
|
1670
1671
|
MANAGE_API_KEYS: "manage_api_keys",
|
|
1671
1672
|
MANAGE_BILLING: "manage_billing",
|
|
@@ -1680,10 +1681,9 @@ export const PERMISSION = {
|
|
|
1680
1681
|
MANAGE_USER_RELATIONS: "manage_user_relations",
|
|
1681
1682
|
MANAGE_USERS: "manage_users",
|
|
1682
1683
|
PLAN_MANAGER: "plan_manager",
|
|
1683
|
-
|
|
1684
|
-
PREMIUM_RESELLER: "premium_reseller",
|
|
1684
|
+
PREMIUM_PLAN: "premium_plan",
|
|
1685
1685
|
RENEW_EXPIRE: "renew_expire",
|
|
1686
|
-
|
|
1686
|
+
STARTER_PLAN: "starter_plan",
|
|
1687
1687
|
TRANSFER_TRADE: "transfer_trade",
|
|
1688
1688
|
UPDATE: "update",
|
|
1689
1689
|
VERIFY: "verify",
|
|
@@ -1719,9 +1719,10 @@ export const PERMISSION_VALUES = [
|
|
|
1719
1719
|
'bulk_renew_expire',
|
|
1720
1720
|
'bulk_transfer_trade',
|
|
1721
1721
|
'bulk_update',
|
|
1722
|
+
'corporate_plan',
|
|
1722
1723
|
'create',
|
|
1723
1724
|
'delete',
|
|
1724
|
-
'
|
|
1725
|
+
'enterprise_plan',
|
|
1725
1726
|
'has_accepted_tos',
|
|
1726
1727
|
'manage_api_keys',
|
|
1727
1728
|
'manage_billing',
|
|
@@ -1736,10 +1737,9 @@ export const PERMISSION_VALUES = [
|
|
|
1736
1737
|
'manage_user_relations',
|
|
1737
1738
|
'manage_users',
|
|
1738
1739
|
'plan_manager',
|
|
1739
|
-
'
|
|
1740
|
-
'premium_reseller',
|
|
1740
|
+
'premium_plan',
|
|
1741
1741
|
'renew_expire',
|
|
1742
|
-
'
|
|
1742
|
+
'starter_plan',
|
|
1743
1743
|
'transfer_trade',
|
|
1744
1744
|
'update',
|
|
1745
1745
|
'verify',
|
|
@@ -1747,60 +1747,6 @@ export const PERMISSION_VALUES = [
|
|
|
1747
1747
|
'view_audit_logs'
|
|
1748
1748
|
] as const satisfies [string, ...string[]] | Permission[];
|
|
1749
1749
|
|
|
1750
|
-
/**
|
|
1751
|
-
* PlanRelation. Auto-generated enum for PlanRelation
|
|
1752
|
-
*
|
|
1753
|
-
* @remarks
|
|
1754
|
-
* This constant provides both object and array forms for the PlanRelation enum.
|
|
1755
|
-
* The object form allows key-value access, while the array form enables iteration and validation.
|
|
1756
|
-
*
|
|
1757
|
-
* @example
|
|
1758
|
-
* ```typescript
|
|
1759
|
-
* // Using the object form for key-value access
|
|
1760
|
-
* const status = PLAN_RELATION.SUCCESS;
|
|
1761
|
-
*
|
|
1762
|
-
* // Using the array form for iteration
|
|
1763
|
-
* const allStatuses = PLAN_RELATION_VALUES;
|
|
1764
|
-
* console.log(`Available statuses: ${allStatuses.join(', ')}`);
|
|
1765
|
-
* ```
|
|
1766
|
-
*
|
|
1767
|
-
* @see {@link PlanRelation} - The TypeScript type definition
|
|
1768
|
-
*/
|
|
1769
|
-
export const PLAN_RELATION = {
|
|
1770
|
-
BASIC_PLAN: "basic_plan",
|
|
1771
|
-
ENTERPRISE_PLAN: "enterprise_plan",
|
|
1772
|
-
PREMIUM_PLAN: "premium_plan",
|
|
1773
|
-
STARTER_PLAN: "starter_plan",
|
|
1774
|
-
} as const satisfies Record<string, PlanRelation>;
|
|
1775
|
-
|
|
1776
|
-
/**
|
|
1777
|
-
* Array of all PlanRelation enum values
|
|
1778
|
-
*
|
|
1779
|
-
* @remarks
|
|
1780
|
-
* This constant provides a array containing all valid PlanRelation enum values.
|
|
1781
|
-
* Useful for iteration, validation, and generating dynamic UI components.
|
|
1782
|
-
*
|
|
1783
|
-
* @example
|
|
1784
|
-
* ```typescript
|
|
1785
|
-
* // Iterating through all values
|
|
1786
|
-
* for (const value of PLAN_RELATION_VALUES) {
|
|
1787
|
-
* console.log(`Processing: ${value}`);
|
|
1788
|
-
* }
|
|
1789
|
-
*
|
|
1790
|
-
* // Validation
|
|
1791
|
-
* const isValid = PLAN_RELATION_VALUES.includes(someValue);
|
|
1792
|
-
* ```
|
|
1793
|
-
*
|
|
1794
|
-
* @see {@link PlanRelation} - The TypeScript type definition
|
|
1795
|
-
* @see {@link PLAN_RELATION} - The object form of this enum
|
|
1796
|
-
*/
|
|
1797
|
-
export const PLAN_RELATION_VALUES = [
|
|
1798
|
-
'basic_plan',
|
|
1799
|
-
'enterprise_plan',
|
|
1800
|
-
'premium_plan',
|
|
1801
|
-
'starter_plan'
|
|
1802
|
-
] as const satisfies [string, ...string[]] | PlanRelation[];
|
|
1803
|
-
|
|
1804
1750
|
/**
|
|
1805
1751
|
* PostTransferRequirements. Auto-generated enum for PostTransferRequirements
|
|
1806
1752
|
*
|
package/src/helpers/keys.ts
CHANGED
|
@@ -118,7 +118,6 @@ import { PasswordUpdate } from './schemas';
|
|
|
118
118
|
import { Period } from './schemas';
|
|
119
119
|
import { PermissionSet } from './schemas';
|
|
120
120
|
import { PlanInfo } from './schemas';
|
|
121
|
-
import { PlanUpdate } from './schemas';
|
|
122
121
|
import { PremiumDomainsBase } from './schemas';
|
|
123
122
|
import { PriceInfo } from './schemas';
|
|
124
123
|
import { Problem } from './schemas';
|
|
@@ -14711,55 +14710,6 @@ export const KEYS_PLAN_INFO = [
|
|
|
14711
14710
|
KEY_PLAN_INFO_PLAN_TYPE,
|
|
14712
14711
|
] as const satisfies (keyof PlanInfo)[];
|
|
14713
14712
|
|
|
14714
|
-
/**
|
|
14715
|
-
* plan property
|
|
14716
|
-
*
|
|
14717
|
-
*
|
|
14718
|
-
*
|
|
14719
|
-
*
|
|
14720
|
-
* @remarks
|
|
14721
|
-
* This key constant provides type-safe access to the `plan` property of PlanUpdate objects.
|
|
14722
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14723
|
-
*
|
|
14724
|
-
* @example
|
|
14725
|
-
* ```typescript
|
|
14726
|
-
* // Direct property access
|
|
14727
|
-
* const value = planupdate[KEY_PLAN_UPDATE_PLAN];
|
|
14728
|
-
*
|
|
14729
|
-
* // Dynamic property access
|
|
14730
|
-
* const propertyName = KEY_PLAN_UPDATE_PLAN;
|
|
14731
|
-
* const value = planupdate[propertyName];
|
|
14732
|
-
* ```
|
|
14733
|
-
*
|
|
14734
|
-
* @see {@link PlanUpdate} - The TypeScript type definition
|
|
14735
|
-
* @see {@link KEYS_PLAN_UPDATE} - Array of all keys for this type
|
|
14736
|
-
*/
|
|
14737
|
-
export const KEY_PLAN_UPDATE_PLAN = 'plan' as keyof PlanUpdate;
|
|
14738
|
-
|
|
14739
|
-
/**
|
|
14740
|
-
* Array of all PlanUpdate property keys
|
|
14741
|
-
*
|
|
14742
|
-
* @remarks
|
|
14743
|
-
* This constant provides a readonly array containing all valid property keys for PlanUpdate objects.
|
|
14744
|
-
* Useful for iteration, validation, and generating dynamic UI components.
|
|
14745
|
-
*
|
|
14746
|
-
* @example
|
|
14747
|
-
* ```typescript
|
|
14748
|
-
* // Iterating through all keys
|
|
14749
|
-
* for (const key of KEYS_PLAN_UPDATE) {
|
|
14750
|
-
* console.log(`Property: ${key}, Value: ${planupdate[key]}`);
|
|
14751
|
-
* }
|
|
14752
|
-
*
|
|
14753
|
-
* // Validation
|
|
14754
|
-
* const isValidKey = KEYS_PLAN_UPDATE.includes(someKey);
|
|
14755
|
-
* ```
|
|
14756
|
-
*
|
|
14757
|
-
* @see {@link PlanUpdate} - The TypeScript type definition
|
|
14758
|
-
*/
|
|
14759
|
-
export const KEYS_PLAN_UPDATE = [
|
|
14760
|
-
KEY_PLAN_UPDATE_PLAN,
|
|
14761
|
-
] as const satisfies (keyof PlanUpdate)[];
|
|
14762
|
-
|
|
14763
14713
|
/**
|
|
14764
14714
|
* Affects
|
|
14765
14715
|
*
|
|
@@ -34,7 +34,7 @@ import { operations } from '../schema';
|
|
|
34
34
|
|
|
35
35
|
import { DomainDnssecDataCreateArray, OrganizationAttributeUpdateArray } from './schemas-arrays.d';
|
|
36
36
|
|
|
37
|
-
import { OrganizationCredentialExtra, SignupCreate, ContactCreate, DnsZoneCreate, DnsZoneRecordsPatchOps, DnsZoneRrsetsPatchOps, DnsZoneRrsetsCreate, DomainCreate, DomainUpdate, DomainRenewRequest, DomainTransferIn, EmailForwardAlias, EmailForwardAliasUpdate, NotificationCreate, NotificationUpdate, OrganizationCreate, IpRestrictionCreate, IpRestrictionUpdate, OrganizationUpdate,
|
|
37
|
+
import { OrganizationCredentialExtra, SignupCreate, ContactCreate, DnsZoneCreate, DnsZoneRecordsPatchOps, DnsZoneRrsetsPatchOps, DnsZoneRrsetsCreate, DomainCreate, DomainUpdate, DomainRenewRequest, DomainTransferIn, EmailForwardAlias, EmailForwardAliasUpdate, NotificationCreate, NotificationUpdate, OrganizationCreate, IpRestrictionCreate, IpRestrictionUpdate, OrganizationUpdate, UserCreate, StartPasswordReset, PasswordUpdate, UserUpdate, SpiceDbRelationshipUpdate } from './schemas.d';
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* Request type for GET AuthClientCredentials endpoint
|
|
@@ -3215,58 +3215,6 @@ export type PATCH_OrganizationsOrganizationId_Request_Path = PATCH_Organizations
|
|
|
3215
3215
|
*/
|
|
3216
3216
|
export type PATCH_OrganizationsOrganizationId_Request_Body = PATCH_OrganizationsOrganizationId_Request['requestBody'];
|
|
3217
3217
|
|
|
3218
|
-
/**
|
|
3219
|
-
* Request type for PATCH OrganizationsOrganizationIdPlan endpoint
|
|
3220
|
-
*
|
|
3221
|
-
* Change Plan
|
|
3222
|
-
*
|
|
3223
|
-
* @remarks
|
|
3224
|
-
* This type defines the complete request structure for the PATCH OrganizationsOrganizationIdPlan endpoint.
|
|
3225
|
-
* It includes all parameters (query, path) and request body types as defined in the OpenAPI specification.
|
|
3226
|
-
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
3227
|
-
*
|
|
3228
|
-
* @example
|
|
3229
|
-
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
3230
|
-
*
|
|
3231
|
-
* @path /v1/organizations/{organization_id}/plan
|
|
3232
|
-
*
|
|
3233
|
-
* @see {@link PATCH_OrganizationsOrganizationIdPlan_Request_Query} - Query parameters type
|
|
3234
|
-
* @see {@link PATCH_OrganizationsOrganizationIdPlan_Request_Path} - Path parameters type
|
|
3235
|
-
* @see {@link PATCH_OrganizationsOrganizationIdPlan_Request_Body} - Request body type
|
|
3236
|
-
*/
|
|
3237
|
-
export type PATCH_OrganizationsOrganizationIdPlan_Request = {
|
|
3238
|
-
parameters: {
|
|
3239
|
-
path: operations['change_plan_v1_organizations__organization_id__plan_patch']['parameters']['path'];
|
|
3240
|
-
};
|
|
3241
|
-
requestBody: PlanUpdate;
|
|
3242
|
-
}
|
|
3243
|
-
/**
|
|
3244
|
-
* Path parameters for PATCH /v1/organizations/{organization_id}/plan
|
|
3245
|
-
*
|
|
3246
|
-
* @remarks
|
|
3247
|
-
* This type defines the path parameters for the PATCH /v1/organizations/{organization_id}/plan endpoint.
|
|
3248
|
-
* It provides type safety for all path parameters as defined in the OpenAPI specification.
|
|
3249
|
-
*
|
|
3250
|
-
* @example
|
|
3251
|
-
* Use this type to ensure type safety for path parameters.
|
|
3252
|
-
*
|
|
3253
|
-
* @path /v1/organizations/{organization_id}/plan
|
|
3254
|
-
*/
|
|
3255
|
-
export type PATCH_OrganizationsOrganizationIdPlan_Request_Path = PATCH_OrganizationsOrganizationIdPlan_Request['parameters']['path'];
|
|
3256
|
-
/**
|
|
3257
|
-
* Request body for PATCH /v1/organizations/{organization_id}/plan
|
|
3258
|
-
*
|
|
3259
|
-
* @remarks
|
|
3260
|
-
* This type defines the request body structure for the PATCH /v1/organizations/{organization_id}/plan endpoint.
|
|
3261
|
-
* It provides type safety for the request body as defined in the OpenAPI specification.
|
|
3262
|
-
*
|
|
3263
|
-
* @example
|
|
3264
|
-
* Use this type to ensure type safety for request body structure.
|
|
3265
|
-
*
|
|
3266
|
-
* @path /v1/organizations/{organization_id}/plan
|
|
3267
|
-
*/
|
|
3268
|
-
export type PATCH_OrganizationsOrganizationIdPlan_Request_Body = PATCH_OrganizationsOrganizationIdPlan_Request['requestBody'];
|
|
3269
|
-
|
|
3270
3218
|
/**
|
|
3271
3219
|
* Request type for GET OrganizationsOrganizationIdPlans endpoint
|
|
3272
3220
|
*
|
|
@@ -4515,61 +4515,6 @@ export type PATCH_OrganizationsByOrganizationId_Response_200 = Organization
|
|
|
4515
4515
|
*/
|
|
4516
4516
|
export type PATCH_OrganizationsByOrganizationId_Response_422 = HTTPValidationError
|
|
4517
4517
|
|
|
4518
|
-
/**
|
|
4519
|
-
* Response types for PATCH OrganizationsByOrganizationIdPlan endpoint
|
|
4520
|
-
*
|
|
4521
|
-
* Change Plan
|
|
4522
|
-
*
|
|
4523
|
-
* @remarks
|
|
4524
|
-
* This type defines all possible response structures for the PATCH OrganizationsByOrganizationIdPlan endpoint.
|
|
4525
|
-
* Each response code maps to a specific response type as defined in the OpenAPI specification.
|
|
4526
|
-
* Use this type to ensure type safety when handling API responses from this endpoint.
|
|
4527
|
-
*
|
|
4528
|
-
|
|
4529
|
-
*
|
|
4530
|
-
* @path /v1/organizations/{organization_id}/plan
|
|
4531
|
-
*
|
|
4532
|
-
* @see {@link PATCH_OrganizationsByOrganizationIdPlan_Response_200} - 200 response type
|
|
4533
|
-
* @see {@link PATCH_OrganizationsByOrganizationIdPlan_Response_422} - 422 response type
|
|
4534
|
-
*
|
|
4535
|
-
|
|
4536
|
-
*/
|
|
4537
|
-
export type PATCH_OrganizationsByOrganizationIdPlan_Response = PATCH_OrganizationsByOrganizationIdPlan_Response_200 | PATCH_OrganizationsByOrganizationIdPlan_Response_422;
|
|
4538
|
-
|
|
4539
|
-
/**
|
|
4540
|
-
* 200 response for PATCH OrganizationsByOrganizationIdPlan endpoint
|
|
4541
|
-
*
|
|
4542
|
-
* @remarks
|
|
4543
|
-
* This type defines the response structure for the 200 status code
|
|
4544
|
-
* of the PATCH OrganizationsByOrganizationIdPlan endpoint.
|
|
4545
|
-
* It provides type safety for handling this specific response as defined in the OpenAPI specification.
|
|
4546
|
-
*
|
|
4547
|
-
|
|
4548
|
-
*
|
|
4549
|
-
* @path /v1/organizations/{organization_id}/plan
|
|
4550
|
-
*
|
|
4551
|
-
* @see {@link PATCH_OrganizationsByOrganizationIdPlan_Response} - The main response type definition
|
|
4552
|
-
* @see {@link OrganizationWithBillingData} - The actual schema type definition
|
|
4553
|
-
*/
|
|
4554
|
-
export type PATCH_OrganizationsByOrganizationIdPlan_Response_200 = OrganizationWithBillingData
|
|
4555
|
-
|
|
4556
|
-
/**
|
|
4557
|
-
* 422 response for PATCH OrganizationsByOrganizationIdPlan endpoint
|
|
4558
|
-
*
|
|
4559
|
-
* @remarks
|
|
4560
|
-
* This type defines the response structure for the 422 status code
|
|
4561
|
-
* of the PATCH OrganizationsByOrganizationIdPlan endpoint.
|
|
4562
|
-
* It provides type safety for handling this specific response as defined in the OpenAPI specification.
|
|
4563
|
-
*
|
|
4564
|
-
|
|
4565
|
-
*
|
|
4566
|
-
* @path /v1/organizations/{organization_id}/plan
|
|
4567
|
-
*
|
|
4568
|
-
* @see {@link PATCH_OrganizationsByOrganizationIdPlan_Response} - The main response type definition
|
|
4569
|
-
* @see {@link HTTPValidationError} - The actual schema type definition
|
|
4570
|
-
*/
|
|
4571
|
-
export type PATCH_OrganizationsByOrganizationIdPlan_Response_422 = HTTPValidationError
|
|
4572
|
-
|
|
4573
4518
|
/**
|
|
4574
4519
|
* Response types for GET OrganizationsByOrganizationIdPlans endpoint
|
|
4575
4520
|
*
|
package/src/helpers/schemas.d.ts
CHANGED
|
@@ -2154,38 +2154,6 @@ export type PermissionSet = components['schemas']['PermissionSet'];
|
|
|
2154
2154
|
* @see {@link components} - The OpenAPI components schema definition
|
|
2155
2155
|
*/
|
|
2156
2156
|
export type PlanInfo = components['schemas']['PlanInfo'];
|
|
2157
|
-
/**
|
|
2158
|
-
* PlanRelation
|
|
2159
|
-
*
|
|
2160
|
-
* @remarks
|
|
2161
|
-
* Type alias for the `PlanRelation` OpenAPI schema.
|
|
2162
|
-
* This type represents planrelation data structures used in API requests and responses.
|
|
2163
|
-
*
|
|
2164
|
-
* @example
|
|
2165
|
-
* ```typescript
|
|
2166
|
-
* const response = await api.getPlanRelation();
|
|
2167
|
-
* const item: PlanRelation = response.results;
|
|
2168
|
-
* ```
|
|
2169
|
-
*
|
|
2170
|
-
* @see {@link components} - The OpenAPI components schema definition
|
|
2171
|
-
*/
|
|
2172
|
-
export type PlanRelation = components['schemas']['PlanRelation'];
|
|
2173
|
-
/**
|
|
2174
|
-
* PlanUpdate
|
|
2175
|
-
*
|
|
2176
|
-
* @remarks
|
|
2177
|
-
* Type alias for the `PlanUpdate` OpenAPI schema.
|
|
2178
|
-
* This type represents planupdate data structures used in API requests and responses.
|
|
2179
|
-
*
|
|
2180
|
-
* @example
|
|
2181
|
-
* ```typescript
|
|
2182
|
-
* const response = await api.getPlanUpdate();
|
|
2183
|
-
* const item: PlanUpdate = response.results;
|
|
2184
|
-
* ```
|
|
2185
|
-
*
|
|
2186
|
-
* @see {@link components} - The OpenAPI components schema definition
|
|
2187
|
-
*/
|
|
2188
|
-
export type PlanUpdate = components['schemas']['PlanUpdate'];
|
|
2189
2157
|
/**
|
|
2190
2158
|
* PostTransferRequirements
|
|
2191
2159
|
*
|
package/src/openapi.yaml
CHANGED
|
@@ -3678,9 +3678,10 @@ components:
|
|
|
3678
3678
|
- bulk_renew_expire
|
|
3679
3679
|
- bulk_transfer_trade
|
|
3680
3680
|
- bulk_update
|
|
3681
|
+
- corporate_plan
|
|
3681
3682
|
- create
|
|
3682
3683
|
- delete
|
|
3683
|
-
-
|
|
3684
|
+
- enterprise_plan
|
|
3684
3685
|
- has_accepted_tos
|
|
3685
3686
|
- manage_api_keys
|
|
3686
3687
|
- manage_billing
|
|
@@ -3695,10 +3696,9 @@ components:
|
|
|
3695
3696
|
- manage_user_relations
|
|
3696
3697
|
- manage_users
|
|
3697
3698
|
- plan_manager
|
|
3698
|
-
-
|
|
3699
|
-
- premium_reseller
|
|
3699
|
+
- premium_plan
|
|
3700
3700
|
- renew_expire
|
|
3701
|
-
-
|
|
3701
|
+
- starter_plan
|
|
3702
3702
|
- transfer_trade
|
|
3703
3703
|
- update
|
|
3704
3704
|
- verify
|
|
@@ -3753,21 +3753,6 @@ components:
|
|
|
3753
3753
|
- amount
|
|
3754
3754
|
title: PlanInfo
|
|
3755
3755
|
type: object
|
|
3756
|
-
PlanRelation:
|
|
3757
|
-
enum:
|
|
3758
|
-
- basic_plan
|
|
3759
|
-
- enterprise_plan
|
|
3760
|
-
- premium_plan
|
|
3761
|
-
- starter_plan
|
|
3762
|
-
title: PlanRelation
|
|
3763
|
-
type: string
|
|
3764
|
-
PlanUpdate:
|
|
3765
|
-
properties:
|
|
3766
|
-
plan:
|
|
3767
|
-
$ref: '#/components/schemas/PlanRelation'
|
|
3768
|
-
default: basic_plan
|
|
3769
|
-
title: PlanUpdate
|
|
3770
|
-
type: object
|
|
3771
3756
|
PostTransferRequirements:
|
|
3772
3757
|
enum:
|
|
3773
3758
|
- update_contacts
|
|
@@ -5192,7 +5177,7 @@ info:
|
|
|
5192
5177
|
'
|
|
5193
5178
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
5194
5179
|
title: OpusDNS API
|
|
5195
|
-
version: 2025-09-10-
|
|
5180
|
+
version: 2025-09-10-232127
|
|
5196
5181
|
x-logo:
|
|
5197
5182
|
altText: OpusDNS API Reference
|
|
5198
5183
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
|
@@ -8926,45 +8911,6 @@ paths:
|
|
|
8926
8911
|
summary: Update Organization
|
|
8927
8912
|
tags:
|
|
8928
8913
|
- organization
|
|
8929
|
-
/v1/organizations/{organization_id}/plan:
|
|
8930
|
-
patch:
|
|
8931
|
-
operationId: change_plan_v1_organizations__organization_id__plan_patch
|
|
8932
|
-
parameters:
|
|
8933
|
-
- in: path
|
|
8934
|
-
name: organization_id
|
|
8935
|
-
required: true
|
|
8936
|
-
schema:
|
|
8937
|
-
examples:
|
|
8938
|
-
- organization_01h45ytscbebyvny4gc8cr8ma2
|
|
8939
|
-
format: typeid
|
|
8940
|
-
pattern: ^organization_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
8941
|
-
title: Organization Id
|
|
8942
|
-
type: string
|
|
8943
|
-
x-typeid-prefix: organization
|
|
8944
|
-
requestBody:
|
|
8945
|
-
content:
|
|
8946
|
-
application/json:
|
|
8947
|
-
schema:
|
|
8948
|
-
$ref: '#/components/schemas/PlanUpdate'
|
|
8949
|
-
required: true
|
|
8950
|
-
responses:
|
|
8951
|
-
'200':
|
|
8952
|
-
content:
|
|
8953
|
-
application/json:
|
|
8954
|
-
schema:
|
|
8955
|
-
$ref: '#/components/schemas/OrganizationWithBillingData'
|
|
8956
|
-
description: Successful Response
|
|
8957
|
-
'422':
|
|
8958
|
-
content:
|
|
8959
|
-
application/problem+json:
|
|
8960
|
-
schema:
|
|
8961
|
-
$ref: '#/components/schemas/HTTPValidationError'
|
|
8962
|
-
description: Validation Error
|
|
8963
|
-
security:
|
|
8964
|
-
- OAuth2PasswordBearer: []
|
|
8965
|
-
summary: Change Plan
|
|
8966
|
-
tags:
|
|
8967
|
-
- organization
|
|
8968
8914
|
/v1/organizations/{organization_id}/plans:
|
|
8969
8915
|
get:
|
|
8970
8916
|
operationId: get_current_available_plans_v1_organizations__organization_id__plans_get
|
package/src/schema.d.ts
CHANGED
|
@@ -940,23 +940,6 @@ export interface paths {
|
|
|
940
940
|
patch: operations["update_organization_v1_organizations__organization_id__patch"];
|
|
941
941
|
trace?: never;
|
|
942
942
|
};
|
|
943
|
-
"/v1/organizations/{organization_id}/plan": {
|
|
944
|
-
parameters: {
|
|
945
|
-
query?: never;
|
|
946
|
-
header?: never;
|
|
947
|
-
path?: never;
|
|
948
|
-
cookie?: never;
|
|
949
|
-
};
|
|
950
|
-
get?: never;
|
|
951
|
-
put?: never;
|
|
952
|
-
post?: never;
|
|
953
|
-
delete?: never;
|
|
954
|
-
options?: never;
|
|
955
|
-
head?: never;
|
|
956
|
-
/** Change Plan */
|
|
957
|
-
patch: operations["change_plan_v1_organizations__organization_id__plan_patch"];
|
|
958
|
-
trace?: never;
|
|
959
|
-
};
|
|
960
943
|
"/v1/organizations/{organization_id}/plans": {
|
|
961
944
|
parameters: {
|
|
962
945
|
query?: never;
|
|
@@ -3655,7 +3638,7 @@ export interface components {
|
|
|
3655
3638
|
* Permission
|
|
3656
3639
|
* @enum {string}
|
|
3657
3640
|
*/
|
|
3658
|
-
Permission: "acknowledge" | "bulk_create" | "bulk_delete" | "bulk_renew_expire" | "bulk_transfer_trade" | "bulk_update" | "create" | "delete" | "
|
|
3641
|
+
Permission: "acknowledge" | "bulk_create" | "bulk_delete" | "bulk_renew_expire" | "bulk_transfer_trade" | "bulk_update" | "corporate_plan" | "create" | "delete" | "enterprise_plan" | "has_accepted_tos" | "manage_api_keys" | "manage_billing" | "manage_cms_content" | "manage_contacts" | "manage_dns_zones" | "manage_domains" | "manage_email_forwards" | "manage_opusdns_api_keys" | "manage_products" | "manage_reseller" | "manage_user_relations" | "manage_users" | "plan_manager" | "premium_plan" | "renew_expire" | "starter_plan" | "transfer_trade" | "update" | "verify" | "view" | "view_audit_logs";
|
|
3659
3642
|
/** PermissionSet */
|
|
3660
3643
|
PermissionSet: {
|
|
3661
3644
|
/** Permissions */
|
|
@@ -3694,16 +3677,6 @@ export interface components {
|
|
|
3694
3677
|
*/
|
|
3695
3678
|
plan_type?: string | null;
|
|
3696
3679
|
};
|
|
3697
|
-
/**
|
|
3698
|
-
* PlanRelation
|
|
3699
|
-
* @enum {string}
|
|
3700
|
-
*/
|
|
3701
|
-
PlanRelation: "basic_plan" | "enterprise_plan" | "premium_plan" | "starter_plan";
|
|
3702
|
-
/** PlanUpdate */
|
|
3703
|
-
PlanUpdate: {
|
|
3704
|
-
/** @default basic_plan */
|
|
3705
|
-
plan: components["schemas"]["PlanRelation"];
|
|
3706
|
-
};
|
|
3707
3680
|
/**
|
|
3708
3681
|
* PostTransferRequirements
|
|
3709
3682
|
* @enum {string}
|
|
@@ -8048,41 +8021,6 @@ export interface operations {
|
|
|
8048
8021
|
};
|
|
8049
8022
|
};
|
|
8050
8023
|
};
|
|
8051
|
-
change_plan_v1_organizations__organization_id__plan_patch: {
|
|
8052
|
-
parameters: {
|
|
8053
|
-
query?: never;
|
|
8054
|
-
header?: never;
|
|
8055
|
-
path: {
|
|
8056
|
-
organization_id: TypeID<"organization">;
|
|
8057
|
-
};
|
|
8058
|
-
cookie?: never;
|
|
8059
|
-
};
|
|
8060
|
-
requestBody: {
|
|
8061
|
-
content: {
|
|
8062
|
-
"application/json": components["schemas"]["PlanUpdate"];
|
|
8063
|
-
};
|
|
8064
|
-
};
|
|
8065
|
-
responses: {
|
|
8066
|
-
/** @description Successful Response */
|
|
8067
|
-
200: {
|
|
8068
|
-
headers: {
|
|
8069
|
-
[name: string]: unknown;
|
|
8070
|
-
};
|
|
8071
|
-
content: {
|
|
8072
|
-
"application/json": components["schemas"]["OrganizationWithBillingData"];
|
|
8073
|
-
};
|
|
8074
|
-
};
|
|
8075
|
-
/** @description Validation Error */
|
|
8076
|
-
422: {
|
|
8077
|
-
headers: {
|
|
8078
|
-
[name: string]: unknown;
|
|
8079
|
-
};
|
|
8080
|
-
content: {
|
|
8081
|
-
"application/problem+json": components["schemas"]["HTTPValidationError"];
|
|
8082
|
-
};
|
|
8083
|
-
};
|
|
8084
|
-
};
|
|
8085
|
-
};
|
|
8086
8024
|
get_current_available_plans_v1_organizations__organization_id__plans_get: {
|
|
8087
8025
|
parameters: {
|
|
8088
8026
|
query?: never;
|