@opusdns/api 0.53.0 → 0.54.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 +57 -1
- package/src/helpers/keys.ts +50 -0
- package/src/helpers/requests.d.ts +53 -1
- package/src/helpers/responses.d.ts +55 -0
- package/src/helpers/schemas.d.ts +32 -0
- package/src/openapi.yaml +56 -1
- package/src/schema.d.ts +62 -0
package/package.json
CHANGED
package/src/helpers/constants.ts
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
import { AgreementType, 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, RegistryHandleAttributeType, Relation, RenewalMode, ReservedSourceType, SortOrder, SyncOperationType, TLDType, TransferAckType, UserNotificationStatus, UserStatus, VerificationType, ZoneSortField } from './schemas';
|
|
24
|
+
import { AgreementType, 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, PlanRelation, PostTransferRequirements, PostalAddressType, PremiumAffectsType, PremiumSourceType, RegistrantChangeType, RegistryHandleAttributeType, Relation, RenewalMode, ReservedSourceType, SortOrder, SyncOperationType, TLDType, TransferAckType, UserNotificationStatus, UserStatus, VerificationType, ZoneSortField } from './schemas';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* AgreementType. Auto-generated enum for AgreementType
|
|
@@ -1809,6 +1809,62 @@ export const PERMISSION_VALUES = [
|
|
|
1809
1809
|
'view_events'
|
|
1810
1810
|
] as const satisfies [string, ...string[]] | Permission[];
|
|
1811
1811
|
|
|
1812
|
+
/**
|
|
1813
|
+
* PlanRelation. Auto-generated enum for PlanRelation
|
|
1814
|
+
*
|
|
1815
|
+
* @remarks
|
|
1816
|
+
* This constant provides both object and array forms for the PlanRelation enum.
|
|
1817
|
+
* The object form allows key-value access, while the array form enables iteration and validation.
|
|
1818
|
+
*
|
|
1819
|
+
* @example
|
|
1820
|
+
* ```typescript
|
|
1821
|
+
* // Using the object form for key-value access
|
|
1822
|
+
* const status = PLAN_RELATION.SUCCESS;
|
|
1823
|
+
*
|
|
1824
|
+
* // Using the array form for iteration
|
|
1825
|
+
* const allStatuses = PLAN_RELATION_VALUES;
|
|
1826
|
+
* console.log(`Available statuses: ${allStatuses.join(', ')}`);
|
|
1827
|
+
* ```
|
|
1828
|
+
*
|
|
1829
|
+
* @see {@link PlanRelation} - The TypeScript type definition
|
|
1830
|
+
*/
|
|
1831
|
+
export const PLAN_RELATION = {
|
|
1832
|
+
BASIC: "basic",
|
|
1833
|
+
ENTERPRISE: "enterprise",
|
|
1834
|
+
CORPORATE: "corporate",
|
|
1835
|
+
PREMIUM: "premium",
|
|
1836
|
+
STARTER: "starter",
|
|
1837
|
+
} as const satisfies Record<string, PlanRelation>;
|
|
1838
|
+
|
|
1839
|
+
/**
|
|
1840
|
+
* Array of all PlanRelation enum values
|
|
1841
|
+
*
|
|
1842
|
+
* @remarks
|
|
1843
|
+
* This constant provides a array containing all valid PlanRelation enum values.
|
|
1844
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
1845
|
+
*
|
|
1846
|
+
* @example
|
|
1847
|
+
* ```typescript
|
|
1848
|
+
* // Iterating through all values
|
|
1849
|
+
* for (const value of PLAN_RELATION_VALUES) {
|
|
1850
|
+
* console.log(`Processing: ${value}`);
|
|
1851
|
+
* }
|
|
1852
|
+
*
|
|
1853
|
+
* // Validation
|
|
1854
|
+
* const isValid = PLAN_RELATION_VALUES.includes(someValue);
|
|
1855
|
+
* ```
|
|
1856
|
+
*
|
|
1857
|
+
* @see {@link PlanRelation} - The TypeScript type definition
|
|
1858
|
+
* @see {@link PLAN_RELATION} - The object form of this enum
|
|
1859
|
+
*/
|
|
1860
|
+
export const PLAN_RELATION_VALUES = [
|
|
1861
|
+
'basic',
|
|
1862
|
+
'enterprise',
|
|
1863
|
+
'corporate',
|
|
1864
|
+
'premium',
|
|
1865
|
+
'starter'
|
|
1866
|
+
] as const satisfies [string, ...string[]] | PlanRelation[];
|
|
1867
|
+
|
|
1812
1868
|
/**
|
|
1813
1869
|
* PostTransferRequirements. Auto-generated enum for PostTransferRequirements
|
|
1814
1870
|
*
|
package/src/helpers/keys.ts
CHANGED
|
@@ -121,6 +121,7 @@ import { PasswordUpdate } from './schemas';
|
|
|
121
121
|
import { Period } from './schemas';
|
|
122
122
|
import { PermissionSet } from './schemas';
|
|
123
123
|
import { PlanInfo } from './schemas';
|
|
124
|
+
import { PlanUpdate } from './schemas';
|
|
124
125
|
import { PremiumDomainsBase } from './schemas';
|
|
125
126
|
import { PriceInfo } from './schemas';
|
|
126
127
|
import { Problem } from './schemas';
|
|
@@ -15081,6 +15082,55 @@ export const KEYS_PLAN_INFO = [
|
|
|
15081
15082
|
KEY_PLAN_INFO_PLAN_TYPE,
|
|
15082
15083
|
] as const satisfies (keyof PlanInfo)[];
|
|
15083
15084
|
|
|
15085
|
+
/**
|
|
15086
|
+
* plan property
|
|
15087
|
+
*
|
|
15088
|
+
*
|
|
15089
|
+
*
|
|
15090
|
+
*
|
|
15091
|
+
* @remarks
|
|
15092
|
+
* This key constant provides type-safe access to the `plan` property of PlanUpdate objects.
|
|
15093
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
15094
|
+
*
|
|
15095
|
+
* @example
|
|
15096
|
+
* ```typescript
|
|
15097
|
+
* // Direct property access
|
|
15098
|
+
* const value = planupdate[KEY_PLAN_UPDATE_PLAN];
|
|
15099
|
+
*
|
|
15100
|
+
* // Dynamic property access
|
|
15101
|
+
* const propertyName = KEY_PLAN_UPDATE_PLAN;
|
|
15102
|
+
* const value = planupdate[propertyName];
|
|
15103
|
+
* ```
|
|
15104
|
+
*
|
|
15105
|
+
* @see {@link PlanUpdate} - The TypeScript type definition
|
|
15106
|
+
* @see {@link KEYS_PLAN_UPDATE} - Array of all keys for this type
|
|
15107
|
+
*/
|
|
15108
|
+
export const KEY_PLAN_UPDATE_PLAN = 'plan' as keyof PlanUpdate;
|
|
15109
|
+
|
|
15110
|
+
/**
|
|
15111
|
+
* Array of all PlanUpdate property keys
|
|
15112
|
+
*
|
|
15113
|
+
* @remarks
|
|
15114
|
+
* This constant provides a readonly array containing all valid property keys for PlanUpdate objects.
|
|
15115
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
15116
|
+
*
|
|
15117
|
+
* @example
|
|
15118
|
+
* ```typescript
|
|
15119
|
+
* // Iterating through all keys
|
|
15120
|
+
* for (const key of KEYS_PLAN_UPDATE) {
|
|
15121
|
+
* console.log(`Property: ${key}, Value: ${planupdate[key]}`);
|
|
15122
|
+
* }
|
|
15123
|
+
*
|
|
15124
|
+
* // Validation
|
|
15125
|
+
* const isValidKey = KEYS_PLAN_UPDATE.includes(someKey);
|
|
15126
|
+
* ```
|
|
15127
|
+
*
|
|
15128
|
+
* @see {@link PlanUpdate} - The TypeScript type definition
|
|
15129
|
+
*/
|
|
15130
|
+
export const KEYS_PLAN_UPDATE = [
|
|
15131
|
+
KEY_PLAN_UPDATE_PLAN,
|
|
15132
|
+
] as const satisfies (keyof PlanUpdate)[];
|
|
15133
|
+
|
|
15084
15134
|
/**
|
|
15085
15135
|
* Affects
|
|
15086
15136
|
*
|
|
@@ -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, DomainRestoreRequest, DomainTransferIn, EmailForwardAlias, EmailForwardAliasUpdate, NotificationCreate, NotificationUpdate, OrganizationCreate, IpRestrictionCreate, IpRestrictionUpdate, OrganizationUpdate, UserCreate, StartPasswordReset, PasswordUpdate, UserUpdate, SpiceDbRelationshipUpdate } from './schemas.d';
|
|
37
|
+
import { OrganizationCredentialExtra, SignupCreate, ContactCreate, DnsZoneCreate, DnsZoneRecordsPatchOps, DnsZoneRrsetsPatchOps, DnsZoneRrsetsCreate, DomainCreate, DomainUpdate, DomainRenewRequest, DomainRestoreRequest, DomainTransferIn, EmailForwardAlias, EmailForwardAliasUpdate, NotificationCreate, NotificationUpdate, OrganizationCreate, IpRestrictionCreate, IpRestrictionUpdate, OrganizationUpdate, PlanUpdate, UserCreate, StartPasswordReset, PasswordUpdate, UserUpdate, SpiceDbRelationshipUpdate } from './schemas.d';
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* Request type for GET AuthClientCredentials endpoint
|
|
@@ -3281,6 +3281,58 @@ export type PATCH_OrganizationsOrganizationId_Request_Path = PATCH_Organizations
|
|
|
3281
3281
|
*/
|
|
3282
3282
|
export type PATCH_OrganizationsOrganizationId_Request_Body = PATCH_OrganizationsOrganizationId_Request['requestBody'];
|
|
3283
3283
|
|
|
3284
|
+
/**
|
|
3285
|
+
* Request type for PATCH OrganizationsOrganizationIdPlan endpoint
|
|
3286
|
+
*
|
|
3287
|
+
* Change Plan
|
|
3288
|
+
*
|
|
3289
|
+
* @remarks
|
|
3290
|
+
* This type defines the complete request structure for the PATCH OrganizationsOrganizationIdPlan endpoint.
|
|
3291
|
+
* It includes all parameters (query, path) and request body types as defined in the OpenAPI specification.
|
|
3292
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
3293
|
+
*
|
|
3294
|
+
* @example
|
|
3295
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
3296
|
+
*
|
|
3297
|
+
* @path /v1/organizations/{organization_id}/plan
|
|
3298
|
+
*
|
|
3299
|
+
* @see {@link PATCH_OrganizationsOrganizationIdPlan_Request_Query} - Query parameters type
|
|
3300
|
+
* @see {@link PATCH_OrganizationsOrganizationIdPlan_Request_Path} - Path parameters type
|
|
3301
|
+
* @see {@link PATCH_OrganizationsOrganizationIdPlan_Request_Body} - Request body type
|
|
3302
|
+
*/
|
|
3303
|
+
export type PATCH_OrganizationsOrganizationIdPlan_Request = {
|
|
3304
|
+
parameters: {
|
|
3305
|
+
path: operations['change_plan_v1_organizations__organization_id__plan_patch']['parameters']['path'];
|
|
3306
|
+
};
|
|
3307
|
+
requestBody: PlanUpdate;
|
|
3308
|
+
}
|
|
3309
|
+
/**
|
|
3310
|
+
* Path parameters for PATCH /v1/organizations/{organization_id}/plan
|
|
3311
|
+
*
|
|
3312
|
+
* @remarks
|
|
3313
|
+
* This type defines the path parameters for the PATCH /v1/organizations/{organization_id}/plan endpoint.
|
|
3314
|
+
* It provides type safety for all path parameters as defined in the OpenAPI specification.
|
|
3315
|
+
*
|
|
3316
|
+
* @example
|
|
3317
|
+
* Use this type to ensure type safety for path parameters.
|
|
3318
|
+
*
|
|
3319
|
+
* @path /v1/organizations/{organization_id}/plan
|
|
3320
|
+
*/
|
|
3321
|
+
export type PATCH_OrganizationsOrganizationIdPlan_Request_Path = PATCH_OrganizationsOrganizationIdPlan_Request['parameters']['path'];
|
|
3322
|
+
/**
|
|
3323
|
+
* Request body for PATCH /v1/organizations/{organization_id}/plan
|
|
3324
|
+
*
|
|
3325
|
+
* @remarks
|
|
3326
|
+
* This type defines the request body structure for the PATCH /v1/organizations/{organization_id}/plan endpoint.
|
|
3327
|
+
* It provides type safety for the request body as defined in the OpenAPI specification.
|
|
3328
|
+
*
|
|
3329
|
+
* @example
|
|
3330
|
+
* Use this type to ensure type safety for request body structure.
|
|
3331
|
+
*
|
|
3332
|
+
* @path /v1/organizations/{organization_id}/plan
|
|
3333
|
+
*/
|
|
3334
|
+
export type PATCH_OrganizationsOrganizationIdPlan_Request_Body = PATCH_OrganizationsOrganizationIdPlan_Request['requestBody'];
|
|
3335
|
+
|
|
3284
3336
|
/**
|
|
3285
3337
|
* Request type for GET OrganizationsOrganizationIdPlans endpoint
|
|
3286
3338
|
*
|
|
@@ -4645,6 +4645,61 @@ export type PATCH_OrganizationsByOrganizationId_Response_200 = Organization
|
|
|
4645
4645
|
*/
|
|
4646
4646
|
export type PATCH_OrganizationsByOrganizationId_Response_422 = HTTPValidationError
|
|
4647
4647
|
|
|
4648
|
+
/**
|
|
4649
|
+
* Response types for PATCH OrganizationsByOrganizationIdPlan endpoint
|
|
4650
|
+
*
|
|
4651
|
+
* Change Plan
|
|
4652
|
+
*
|
|
4653
|
+
* @remarks
|
|
4654
|
+
* This type defines all possible response structures for the PATCH OrganizationsByOrganizationIdPlan endpoint.
|
|
4655
|
+
* Each response code maps to a specific response type as defined in the OpenAPI specification.
|
|
4656
|
+
* Use this type to ensure type safety when handling API responses from this endpoint.
|
|
4657
|
+
*
|
|
4658
|
+
|
|
4659
|
+
*
|
|
4660
|
+
* @path /v1/organizations/{organization_id}/plan
|
|
4661
|
+
*
|
|
4662
|
+
* @see {@link PATCH_OrganizationsByOrganizationIdPlan_Response_200} - 200 response type
|
|
4663
|
+
* @see {@link PATCH_OrganizationsByOrganizationIdPlan_Response_422} - 422 response type
|
|
4664
|
+
*
|
|
4665
|
+
|
|
4666
|
+
*/
|
|
4667
|
+
export type PATCH_OrganizationsByOrganizationIdPlan_Response = PATCH_OrganizationsByOrganizationIdPlan_Response_200 | PATCH_OrganizationsByOrganizationIdPlan_Response_422;
|
|
4668
|
+
|
|
4669
|
+
/**
|
|
4670
|
+
* 200 response for PATCH OrganizationsByOrganizationIdPlan endpoint
|
|
4671
|
+
*
|
|
4672
|
+
* @remarks
|
|
4673
|
+
* This type defines the response structure for the 200 status code
|
|
4674
|
+
* of the PATCH OrganizationsByOrganizationIdPlan endpoint.
|
|
4675
|
+
* It provides type safety for handling this specific response as defined in the OpenAPI specification.
|
|
4676
|
+
*
|
|
4677
|
+
|
|
4678
|
+
*
|
|
4679
|
+
* @path /v1/organizations/{organization_id}/plan
|
|
4680
|
+
*
|
|
4681
|
+
* @see {@link PATCH_OrganizationsByOrganizationIdPlan_Response} - The main response type definition
|
|
4682
|
+
* @see {@link OrganizationWithBillingData} - The actual schema type definition
|
|
4683
|
+
*/
|
|
4684
|
+
export type PATCH_OrganizationsByOrganizationIdPlan_Response_200 = OrganizationWithBillingData
|
|
4685
|
+
|
|
4686
|
+
/**
|
|
4687
|
+
* 422 response for PATCH OrganizationsByOrganizationIdPlan endpoint
|
|
4688
|
+
*
|
|
4689
|
+
* @remarks
|
|
4690
|
+
* This type defines the response structure for the 422 status code
|
|
4691
|
+
* of the PATCH OrganizationsByOrganizationIdPlan endpoint.
|
|
4692
|
+
* It provides type safety for handling this specific response as defined in the OpenAPI specification.
|
|
4693
|
+
*
|
|
4694
|
+
|
|
4695
|
+
*
|
|
4696
|
+
* @path /v1/organizations/{organization_id}/plan
|
|
4697
|
+
*
|
|
4698
|
+
* @see {@link PATCH_OrganizationsByOrganizationIdPlan_Response} - The main response type definition
|
|
4699
|
+
* @see {@link HTTPValidationError} - The actual schema type definition
|
|
4700
|
+
*/
|
|
4701
|
+
export type PATCH_OrganizationsByOrganizationIdPlan_Response_422 = HTTPValidationError
|
|
4702
|
+
|
|
4648
4703
|
/**
|
|
4649
4704
|
* Response types for GET OrganizationsByOrganizationIdPlans endpoint
|
|
4650
4705
|
*
|
package/src/helpers/schemas.d.ts
CHANGED
|
@@ -2239,6 +2239,38 @@ export type PermissionSet = components['schemas']['PermissionSet'];
|
|
|
2239
2239
|
* @see {@link components} - The OpenAPI components schema definition
|
|
2240
2240
|
*/
|
|
2241
2241
|
export type PlanInfo = components['schemas']['PlanInfo'];
|
|
2242
|
+
/**
|
|
2243
|
+
* PlanRelation
|
|
2244
|
+
*
|
|
2245
|
+
* @remarks
|
|
2246
|
+
* Type alias for the `PlanRelation` OpenAPI schema.
|
|
2247
|
+
* This type represents planrelation data structures used in API requests and responses.
|
|
2248
|
+
*
|
|
2249
|
+
* @example
|
|
2250
|
+
* ```typescript
|
|
2251
|
+
* const response = await api.getPlanRelation();
|
|
2252
|
+
* const item: PlanRelation = response.results;
|
|
2253
|
+
* ```
|
|
2254
|
+
*
|
|
2255
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
2256
|
+
*/
|
|
2257
|
+
export type PlanRelation = components['schemas']['PlanRelation'];
|
|
2258
|
+
/**
|
|
2259
|
+
* PlanUpdate
|
|
2260
|
+
*
|
|
2261
|
+
* @remarks
|
|
2262
|
+
* Type alias for the `PlanUpdate` OpenAPI schema.
|
|
2263
|
+
* This type represents planupdate data structures used in API requests and responses.
|
|
2264
|
+
*
|
|
2265
|
+
* @example
|
|
2266
|
+
* ```typescript
|
|
2267
|
+
* const response = await api.getPlanUpdate();
|
|
2268
|
+
* const item: PlanUpdate = response.results;
|
|
2269
|
+
* ```
|
|
2270
|
+
*
|
|
2271
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
2272
|
+
*/
|
|
2273
|
+
export type PlanUpdate = components['schemas']['PlanUpdate'];
|
|
2242
2274
|
/**
|
|
2243
2275
|
* PostTransferRequirements
|
|
2244
2276
|
*
|
package/src/openapi.yaml
CHANGED
|
@@ -3880,6 +3880,22 @@ components:
|
|
|
3880
3880
|
- amount
|
|
3881
3881
|
title: PlanInfo
|
|
3882
3882
|
type: object
|
|
3883
|
+
PlanRelation:
|
|
3884
|
+
enum:
|
|
3885
|
+
- basic
|
|
3886
|
+
- enterprise
|
|
3887
|
+
- corporate
|
|
3888
|
+
- premium
|
|
3889
|
+
- starter
|
|
3890
|
+
title: PlanRelation
|
|
3891
|
+
type: string
|
|
3892
|
+
PlanUpdate:
|
|
3893
|
+
properties:
|
|
3894
|
+
plan:
|
|
3895
|
+
$ref: '#/components/schemas/PlanRelation'
|
|
3896
|
+
default: basic
|
|
3897
|
+
title: PlanUpdate
|
|
3898
|
+
type: object
|
|
3883
3899
|
PostTransferRequirements:
|
|
3884
3900
|
enum:
|
|
3885
3901
|
- update_contacts
|
|
@@ -5357,7 +5373,7 @@ info:
|
|
|
5357
5373
|
'
|
|
5358
5374
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
5359
5375
|
title: OpusDNS API
|
|
5360
|
-
version: 2025-09-18-
|
|
5376
|
+
version: 2025-09-18-175712
|
|
5361
5377
|
x-logo:
|
|
5362
5378
|
altText: OpusDNS API Reference
|
|
5363
5379
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
|
@@ -9213,6 +9229,45 @@ paths:
|
|
|
9213
9229
|
summary: Update Organization
|
|
9214
9230
|
tags:
|
|
9215
9231
|
- organization
|
|
9232
|
+
/v1/organizations/{organization_id}/plan:
|
|
9233
|
+
patch:
|
|
9234
|
+
operationId: change_plan_v1_organizations__organization_id__plan_patch
|
|
9235
|
+
parameters:
|
|
9236
|
+
- in: path
|
|
9237
|
+
name: organization_id
|
|
9238
|
+
required: true
|
|
9239
|
+
schema:
|
|
9240
|
+
examples:
|
|
9241
|
+
- organization_01h45ytscbebyvny4gc8cr8ma2
|
|
9242
|
+
format: typeid
|
|
9243
|
+
pattern: ^organization_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
9244
|
+
title: Organization Id
|
|
9245
|
+
type: string
|
|
9246
|
+
x-typeid-prefix: organization
|
|
9247
|
+
requestBody:
|
|
9248
|
+
content:
|
|
9249
|
+
application/json:
|
|
9250
|
+
schema:
|
|
9251
|
+
$ref: '#/components/schemas/PlanUpdate'
|
|
9252
|
+
required: true
|
|
9253
|
+
responses:
|
|
9254
|
+
'200':
|
|
9255
|
+
content:
|
|
9256
|
+
application/json:
|
|
9257
|
+
schema:
|
|
9258
|
+
$ref: '#/components/schemas/OrganizationWithBillingData'
|
|
9259
|
+
description: Successful Response
|
|
9260
|
+
'422':
|
|
9261
|
+
content:
|
|
9262
|
+
application/problem+json:
|
|
9263
|
+
schema:
|
|
9264
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
9265
|
+
description: Validation Error
|
|
9266
|
+
security:
|
|
9267
|
+
- OAuth2PasswordBearer: []
|
|
9268
|
+
summary: Change Plan
|
|
9269
|
+
tags:
|
|
9270
|
+
- organization
|
|
9216
9271
|
/v1/organizations/{organization_id}/plans:
|
|
9217
9272
|
get:
|
|
9218
9273
|
operationId: get_current_available_plans_v1_organizations__organization_id__plans_get
|
package/src/schema.d.ts
CHANGED
|
@@ -971,6 +971,23 @@ export interface paths {
|
|
|
971
971
|
patch: operations["update_organization_v1_organizations__organization_id__patch"];
|
|
972
972
|
trace?: never;
|
|
973
973
|
};
|
|
974
|
+
"/v1/organizations/{organization_id}/plan": {
|
|
975
|
+
parameters: {
|
|
976
|
+
query?: never;
|
|
977
|
+
header?: never;
|
|
978
|
+
path?: never;
|
|
979
|
+
cookie?: never;
|
|
980
|
+
};
|
|
981
|
+
get?: never;
|
|
982
|
+
put?: never;
|
|
983
|
+
post?: never;
|
|
984
|
+
delete?: never;
|
|
985
|
+
options?: never;
|
|
986
|
+
head?: never;
|
|
987
|
+
/** Change Plan */
|
|
988
|
+
patch: operations["change_plan_v1_organizations__organization_id__plan_patch"];
|
|
989
|
+
trace?: never;
|
|
990
|
+
};
|
|
974
991
|
"/v1/organizations/{organization_id}/plans": {
|
|
975
992
|
parameters: {
|
|
976
993
|
query?: never;
|
|
@@ -3801,6 +3818,16 @@ export interface components {
|
|
|
3801
3818
|
*/
|
|
3802
3819
|
plan_type?: string | null;
|
|
3803
3820
|
};
|
|
3821
|
+
/**
|
|
3822
|
+
* PlanRelation
|
|
3823
|
+
* @enum {string}
|
|
3824
|
+
*/
|
|
3825
|
+
PlanRelation: "basic" | "enterprise" | "corporate" | "premium" | "starter";
|
|
3826
|
+
/** PlanUpdate */
|
|
3827
|
+
PlanUpdate: {
|
|
3828
|
+
/** @default basic */
|
|
3829
|
+
plan: components["schemas"]["PlanRelation"];
|
|
3830
|
+
};
|
|
3804
3831
|
/**
|
|
3805
3832
|
* PostTransferRequirements
|
|
3806
3833
|
* @enum {string}
|
|
@@ -8287,6 +8314,41 @@ export interface operations {
|
|
|
8287
8314
|
};
|
|
8288
8315
|
};
|
|
8289
8316
|
};
|
|
8317
|
+
change_plan_v1_organizations__organization_id__plan_patch: {
|
|
8318
|
+
parameters: {
|
|
8319
|
+
query?: never;
|
|
8320
|
+
header?: never;
|
|
8321
|
+
path: {
|
|
8322
|
+
organization_id: TypeId<"organization">;
|
|
8323
|
+
};
|
|
8324
|
+
cookie?: never;
|
|
8325
|
+
};
|
|
8326
|
+
requestBody: {
|
|
8327
|
+
content: {
|
|
8328
|
+
"application/json": components["schemas"]["PlanUpdate"];
|
|
8329
|
+
};
|
|
8330
|
+
};
|
|
8331
|
+
responses: {
|
|
8332
|
+
/** @description Successful Response */
|
|
8333
|
+
200: {
|
|
8334
|
+
headers: {
|
|
8335
|
+
[name: string]: unknown;
|
|
8336
|
+
};
|
|
8337
|
+
content: {
|
|
8338
|
+
"application/json": components["schemas"]["OrganizationWithBillingData"];
|
|
8339
|
+
};
|
|
8340
|
+
};
|
|
8341
|
+
/** @description Validation Error */
|
|
8342
|
+
422: {
|
|
8343
|
+
headers: {
|
|
8344
|
+
[name: string]: unknown;
|
|
8345
|
+
};
|
|
8346
|
+
content: {
|
|
8347
|
+
"application/problem+json": components["schemas"]["HTTPValidationError"];
|
|
8348
|
+
};
|
|
8349
|
+
};
|
|
8350
|
+
};
|
|
8351
|
+
};
|
|
8290
8352
|
get_current_available_plans_v1_organizations__organization_id__plans_get: {
|
|
8291
8353
|
parameters: {
|
|
8292
8354
|
query?: never;
|