@opusdns/api 0.214.0 → 0.216.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 +161 -1
- package/src/helpers/keys.ts +52 -0
- package/src/helpers/schemas.d.ts +48 -0
- package/src/openapi.yaml +85 -1
- package/src/schema.d.ts +26 -0
package/package.json
CHANGED
package/src/helpers/constants.ts
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
import { AllocationMethodType, AttributeType, BillingTransactionAction, BillingTransactionProductType, BillingTransactionSortField, BillingTransactionStatus, ComplianceStatus, ConditionOperator, ContactAttributeSetSortField, ContactSortField, Currency, DeletePolicyType, DnsChangeAction, DnsRrsetType, DnssecAlgorithm, DnssecDigestType, DnssecModeType, DnssecRecordType, DnssecStatus, DomainAttributeKey, DomainAvailabilityStatus, DomainClientStatus, DomainContactType, DomainForwardSortField, DomainForwardZoneSortField, DomainSortField, DomainStatus, EmailForwardLogSortField, EmailForwardLogStatus, EmailForwardSortField, EmailForwardZoneSortField, EmailVerificationStatus, EventObjectType, EventSortField, EventSubtype, EventType, ExecutingEntity, GrantType, HTTPMethod, HostStatus, HttpProtocol, InvoiceResponsePaymentStatus, InvoiceResponseStatus, InvoiceResponseType, LaunchPhaseType, LegalRequirementOperationType, LegalRequirementType, LocalPresenceRequirementType, MetricsGrouping, ObjectEventType, ObjectLogSortField, OrganizationStatus, ParkingSortField, PatchOp, PeriodUnit, Permission, PostTransferRequirements, PostalAddressType, PremiumAffectsType, PremiumSourceType, Protocol, RedirectCode, RegistrantChangeType, RegistryHandleAttributeType, Relation, RenewalMode, RequestHistorySortField, ReservedSourceType, SortOrder, SyncOperationType, TLDType, TimeRange, TransferAckType, UserStatus, VerificationType, ZoneSortField } from './schemas';
|
|
24
|
+
import { AllocationMethodType, AttributeType, BillingTransactionAction, BillingTransactionProductType, BillingTransactionSortField, BillingTransactionStatus, ComplianceStatus, ConditionOperator, ContactAttributeSetSortField, ContactSortField, Currency, DeletePolicyType, DnsChangeAction, DnsProtectedReason, DnsRrsetType, DnssecAlgorithm, DnssecDigestType, DnssecModeType, DnssecRecordType, DnssecStatus, DomainAttributeKey, DomainAvailabilityStatus, DomainClientStatus, DomainContactType, DomainForwardSortField, DomainForwardZoneSortField, DomainSortField, DomainStatus, EmailForwardLogSortField, EmailForwardLogStatus, EmailForwardSortField, EmailForwardZoneSortField, EmailVerificationStatus, EventObjectType, EventSortField, EventSubtype, EventType, ExecutingEntity, GrantType, HTTPMethod, HostStatus, HttpProtocol, InvoiceResponsePaymentStatus, InvoiceResponseStatus, InvoiceResponseType, LaunchPhaseType, LegalRequirementOperationType, LegalRequirementType, LocalPresenceRequirementType, MetricsGrouping, ObjectEventType, ObjectLogSortField, OrganizationSortField, OrganizationStatus, ParkingSortField, PatchOp, PeriodUnit, Permission, PostTransferRequirements, PostalAddressType, PremiumAffectsType, PremiumSourceType, Protocol, RedirectCode, RegistrantChangeType, RegistryHandleAttributeType, Relation, RenewalMode, RequestHistorySortField, ReservedSourceType, SortOrder, SyncOperationType, TLDType, TimeRange, TransferAckType, UserSortField, UserStatus, VerificationType, ZoneSortField } from './schemas';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* AllocationMethodType. Auto-generated enum for AllocationMethodType
|
|
@@ -733,6 +733,62 @@ export const DNS_CHANGE_ACTION_VALUES = [
|
|
|
733
733
|
'disable_dnssec'
|
|
734
734
|
] as const satisfies [string, ...string[]] | DnsChangeAction[];
|
|
735
735
|
|
|
736
|
+
/**
|
|
737
|
+
* DnsProtectedReason. Auto-generated enum for DnsProtectedReason
|
|
738
|
+
*
|
|
739
|
+
* @remarks
|
|
740
|
+
* This constant provides both object and array forms for the DnsProtectedReason enum.
|
|
741
|
+
* The object form allows key-value access, while the array form enables iteration and validation.
|
|
742
|
+
*
|
|
743
|
+
* @example
|
|
744
|
+
* ```typescript
|
|
745
|
+
* // Using the object form for key-value access
|
|
746
|
+
* const status = DNS_PROTECTED_REASON.SUCCESS;
|
|
747
|
+
*
|
|
748
|
+
* // Using the array form for iteration
|
|
749
|
+
* const allStatuses = DNS_PROTECTED_REASON_VALUES;
|
|
750
|
+
* console.log(`Available statuses: ${allStatuses.join(', ')}`);
|
|
751
|
+
* ```
|
|
752
|
+
*
|
|
753
|
+
* @see {@link DnsProtectedReason} - The TypeScript type definition
|
|
754
|
+
*/
|
|
755
|
+
export const DNS_PROTECTED_REASON = {
|
|
756
|
+
SYSTEM_MANAGED_SOA: "SYSTEM_MANAGED_SOA",
|
|
757
|
+
SYSTEM_MANAGED_NS: "SYSTEM_MANAGED_NS",
|
|
758
|
+
EMAIL_FORWARD: "EMAIL_FORWARD",
|
|
759
|
+
DOMAIN_FORWARD: "DOMAIN_FORWARD",
|
|
760
|
+
GENERIC: "GENERIC",
|
|
761
|
+
} as const satisfies Record<string, DnsProtectedReason>;
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* Array of all DnsProtectedReason enum values
|
|
765
|
+
*
|
|
766
|
+
* @remarks
|
|
767
|
+
* This constant provides a array containing all valid DnsProtectedReason enum values.
|
|
768
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
769
|
+
*
|
|
770
|
+
* @example
|
|
771
|
+
* ```typescript
|
|
772
|
+
* // Iterating through all values
|
|
773
|
+
* for (const value of DNS_PROTECTED_REASON_VALUES) {
|
|
774
|
+
* console.log(`Processing: ${value}`);
|
|
775
|
+
* }
|
|
776
|
+
*
|
|
777
|
+
* // Validation
|
|
778
|
+
* const isValid = DNS_PROTECTED_REASON_VALUES.includes(someValue);
|
|
779
|
+
* ```
|
|
780
|
+
*
|
|
781
|
+
* @see {@link DnsProtectedReason} - The TypeScript type definition
|
|
782
|
+
* @see {@link DNS_PROTECTED_REASON} - The object form of this enum
|
|
783
|
+
*/
|
|
784
|
+
export const DNS_PROTECTED_REASON_VALUES = [
|
|
785
|
+
'SYSTEM_MANAGED_SOA',
|
|
786
|
+
'SYSTEM_MANAGED_NS',
|
|
787
|
+
'EMAIL_FORWARD',
|
|
788
|
+
'DOMAIN_FORWARD',
|
|
789
|
+
'GENERIC'
|
|
790
|
+
] as const satisfies [string, ...string[]] | DnsProtectedReason[];
|
|
791
|
+
|
|
736
792
|
/**
|
|
737
793
|
* DnsRrsetType. Auto-generated enum for DnsRrsetType
|
|
738
794
|
*
|
|
@@ -2836,6 +2892,58 @@ export const OBJECT_LOG_SORT_FIELD_VALUES = [
|
|
|
2836
2892
|
'performed_by_id'
|
|
2837
2893
|
] as const satisfies [string, ...string[]] | ObjectLogSortField[];
|
|
2838
2894
|
|
|
2895
|
+
/**
|
|
2896
|
+
* OrganizationSortField. Auto-generated enum for OrganizationSortField
|
|
2897
|
+
*
|
|
2898
|
+
* @remarks
|
|
2899
|
+
* This constant provides both object and array forms for the OrganizationSortField enum.
|
|
2900
|
+
* The object form allows key-value access, while the array form enables iteration and validation.
|
|
2901
|
+
*
|
|
2902
|
+
* @example
|
|
2903
|
+
* ```typescript
|
|
2904
|
+
* // Using the object form for key-value access
|
|
2905
|
+
* const status = ORGANIZATION_SORT_FIELD.SUCCESS;
|
|
2906
|
+
*
|
|
2907
|
+
* // Using the array form for iteration
|
|
2908
|
+
* const allStatuses = ORGANIZATION_SORT_FIELD_VALUES;
|
|
2909
|
+
* console.log(`Available statuses: ${allStatuses.join(', ')}`);
|
|
2910
|
+
* ```
|
|
2911
|
+
*
|
|
2912
|
+
* @see {@link OrganizationSortField} - The TypeScript type definition
|
|
2913
|
+
*/
|
|
2914
|
+
export const ORGANIZATION_SORT_FIELD = {
|
|
2915
|
+
CREATED_ON: "created_on",
|
|
2916
|
+
NAME: "name",
|
|
2917
|
+
COUNTRY_CODE: "country_code",
|
|
2918
|
+
} as const satisfies Record<string, OrganizationSortField>;
|
|
2919
|
+
|
|
2920
|
+
/**
|
|
2921
|
+
* Array of all OrganizationSortField enum values
|
|
2922
|
+
*
|
|
2923
|
+
* @remarks
|
|
2924
|
+
* This constant provides a array containing all valid OrganizationSortField enum values.
|
|
2925
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
2926
|
+
*
|
|
2927
|
+
* @example
|
|
2928
|
+
* ```typescript
|
|
2929
|
+
* // Iterating through all values
|
|
2930
|
+
* for (const value of ORGANIZATION_SORT_FIELD_VALUES) {
|
|
2931
|
+
* console.log(`Processing: ${value}`);
|
|
2932
|
+
* }
|
|
2933
|
+
*
|
|
2934
|
+
* // Validation
|
|
2935
|
+
* const isValid = ORGANIZATION_SORT_FIELD_VALUES.includes(someValue);
|
|
2936
|
+
* ```
|
|
2937
|
+
*
|
|
2938
|
+
* @see {@link OrganizationSortField} - The TypeScript type definition
|
|
2939
|
+
* @see {@link ORGANIZATION_SORT_FIELD} - The object form of this enum
|
|
2940
|
+
*/
|
|
2941
|
+
export const ORGANIZATION_SORT_FIELD_VALUES = [
|
|
2942
|
+
'created_on',
|
|
2943
|
+
'name',
|
|
2944
|
+
'country_code'
|
|
2945
|
+
] as const satisfies [string, ...string[]] | OrganizationSortField[];
|
|
2946
|
+
|
|
2839
2947
|
/**
|
|
2840
2948
|
* OrganizationStatus. Auto-generated enum for OrganizationStatus
|
|
2841
2949
|
*
|
|
@@ -4121,6 +4229,58 @@ export const TRANSFER_ACK_TYPE_VALUES = [
|
|
|
4121
4229
|
'both'
|
|
4122
4230
|
] as const satisfies [string, ...string[]] | TransferAckType[];
|
|
4123
4231
|
|
|
4232
|
+
/**
|
|
4233
|
+
* UserSortField. Auto-generated enum for UserSortField
|
|
4234
|
+
*
|
|
4235
|
+
* @remarks
|
|
4236
|
+
* This constant provides both object and array forms for the UserSortField enum.
|
|
4237
|
+
* The object form allows key-value access, while the array form enables iteration and validation.
|
|
4238
|
+
*
|
|
4239
|
+
* @example
|
|
4240
|
+
* ```typescript
|
|
4241
|
+
* // Using the object form for key-value access
|
|
4242
|
+
* const status = USER_SORT_FIELD.SUCCESS;
|
|
4243
|
+
*
|
|
4244
|
+
* // Using the array form for iteration
|
|
4245
|
+
* const allStatuses = USER_SORT_FIELD_VALUES;
|
|
4246
|
+
* console.log(`Available statuses: ${allStatuses.join(', ')}`);
|
|
4247
|
+
* ```
|
|
4248
|
+
*
|
|
4249
|
+
* @see {@link UserSortField} - The TypeScript type definition
|
|
4250
|
+
*/
|
|
4251
|
+
export const USER_SORT_FIELD = {
|
|
4252
|
+
CREATED_ON: "created_on",
|
|
4253
|
+
USERNAME: "username",
|
|
4254
|
+
EMAIL: "email",
|
|
4255
|
+
} as const satisfies Record<string, UserSortField>;
|
|
4256
|
+
|
|
4257
|
+
/**
|
|
4258
|
+
* Array of all UserSortField enum values
|
|
4259
|
+
*
|
|
4260
|
+
* @remarks
|
|
4261
|
+
* This constant provides a array containing all valid UserSortField enum values.
|
|
4262
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
4263
|
+
*
|
|
4264
|
+
* @example
|
|
4265
|
+
* ```typescript
|
|
4266
|
+
* // Iterating through all values
|
|
4267
|
+
* for (const value of USER_SORT_FIELD_VALUES) {
|
|
4268
|
+
* console.log(`Processing: ${value}`);
|
|
4269
|
+
* }
|
|
4270
|
+
*
|
|
4271
|
+
* // Validation
|
|
4272
|
+
* const isValid = USER_SORT_FIELD_VALUES.includes(someValue);
|
|
4273
|
+
* ```
|
|
4274
|
+
*
|
|
4275
|
+
* @see {@link UserSortField} - The TypeScript type definition
|
|
4276
|
+
* @see {@link USER_SORT_FIELD} - The object form of this enum
|
|
4277
|
+
*/
|
|
4278
|
+
export const USER_SORT_FIELD_VALUES = [
|
|
4279
|
+
'created_on',
|
|
4280
|
+
'username',
|
|
4281
|
+
'email'
|
|
4282
|
+
] as const satisfies [string, ...string[]] | UserSortField[];
|
|
4283
|
+
|
|
4124
4284
|
/**
|
|
4125
4285
|
* UserStatus. Auto-generated enum for UserStatus
|
|
4126
4286
|
*
|
package/src/helpers/keys.ts
CHANGED
|
@@ -5302,6 +5302,31 @@ export const KEYS_DNS_RECORD_PATCH_OP = [
|
|
|
5302
5302
|
* @see {@link KEYS_DNS_RECORD} - Array of all keys for this type
|
|
5303
5303
|
*/
|
|
5304
5304
|
export const KEY_DNS_RECORD_PROTECTED: keyof DnsRecord = 'protected';
|
|
5305
|
+
/**
|
|
5306
|
+
* protected_reason property
|
|
5307
|
+
*
|
|
5308
|
+
* Reason why the record is protected
|
|
5309
|
+
*
|
|
5310
|
+
*
|
|
5311
|
+
*
|
|
5312
|
+
* @remarks
|
|
5313
|
+
* This key constant provides type-safe access to the `protected_reason` property of DnsRecord objects.
|
|
5314
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
5315
|
+
*
|
|
5316
|
+
* @example
|
|
5317
|
+
* ```typescript
|
|
5318
|
+
* // Direct property access
|
|
5319
|
+
* const value = dnsrecord[KEY_DNS_RECORD_PROTECTED_REASON];
|
|
5320
|
+
*
|
|
5321
|
+
* // Dynamic property access
|
|
5322
|
+
* const propertyName = KEY_DNS_RECORD_PROTECTED_REASON;
|
|
5323
|
+
* const value = dnsrecord[propertyName];
|
|
5324
|
+
* ```
|
|
5325
|
+
*
|
|
5326
|
+
* @see {@link DnsRecord} - The TypeScript type definition
|
|
5327
|
+
* @see {@link KEYS_DNS_RECORD} - Array of all keys for this type
|
|
5328
|
+
*/
|
|
5329
|
+
export const KEY_DNS_RECORD_PROTECTED_REASON: keyof DnsRecord = 'protected_reason';
|
|
5305
5330
|
/**
|
|
5306
5331
|
* Rdata
|
|
5307
5332
|
*
|
|
@@ -5350,6 +5375,7 @@ export const KEY_DNS_RECORD_RDATA: keyof DnsRecord = 'rdata';
|
|
|
5350
5375
|
*/
|
|
5351
5376
|
export const KEYS_DNS_RECORD = [
|
|
5352
5377
|
KEY_DNS_RECORD_PROTECTED,
|
|
5378
|
+
KEY_DNS_RECORD_PROTECTED_REASON,
|
|
5353
5379
|
KEY_DNS_RECORD_RDATA,
|
|
5354
5380
|
] as const satisfies (keyof DnsRecord)[];
|
|
5355
5381
|
|
|
@@ -5732,6 +5758,31 @@ export const KEY_DNS_RRSET_NAME: keyof DnsRrset = 'name';
|
|
|
5732
5758
|
* @see {@link KEYS_DNS_RRSET} - Array of all keys for this type
|
|
5733
5759
|
*/
|
|
5734
5760
|
export const KEY_DNS_RRSET_PROTECTED: keyof DnsRrset = 'protected';
|
|
5761
|
+
/**
|
|
5762
|
+
* protected_reason property
|
|
5763
|
+
*
|
|
5764
|
+
* Reason why the RRset is protected
|
|
5765
|
+
*
|
|
5766
|
+
*
|
|
5767
|
+
*
|
|
5768
|
+
* @remarks
|
|
5769
|
+
* This key constant provides type-safe access to the `protected_reason` property of DnsRrset objects.
|
|
5770
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
5771
|
+
*
|
|
5772
|
+
* @example
|
|
5773
|
+
* ```typescript
|
|
5774
|
+
* // Direct property access
|
|
5775
|
+
* const value = dnsrrset[KEY_DNS_RRSET_PROTECTED_REASON];
|
|
5776
|
+
*
|
|
5777
|
+
* // Dynamic property access
|
|
5778
|
+
* const propertyName = KEY_DNS_RRSET_PROTECTED_REASON;
|
|
5779
|
+
* const value = dnsrrset[propertyName];
|
|
5780
|
+
* ```
|
|
5781
|
+
*
|
|
5782
|
+
* @see {@link DnsRrset} - The TypeScript type definition
|
|
5783
|
+
* @see {@link KEYS_DNS_RRSET} - Array of all keys for this type
|
|
5784
|
+
*/
|
|
5785
|
+
export const KEY_DNS_RRSET_PROTECTED_REASON: keyof DnsRrset = 'protected_reason';
|
|
5735
5786
|
/**
|
|
5736
5787
|
* Records
|
|
5737
5788
|
*
|
|
@@ -5830,6 +5881,7 @@ export const KEY_DNS_RRSET_TYPE: keyof DnsRrset = 'type';
|
|
|
5830
5881
|
export const KEYS_DNS_RRSET = [
|
|
5831
5882
|
KEY_DNS_RRSET_NAME,
|
|
5832
5883
|
KEY_DNS_RRSET_PROTECTED,
|
|
5884
|
+
KEY_DNS_RRSET_PROTECTED_REASON,
|
|
5833
5885
|
KEY_DNS_RRSET_RECORDS,
|
|
5834
5886
|
KEY_DNS_RRSET_TTL,
|
|
5835
5887
|
KEY_DNS_RRSET_TYPE,
|
package/src/helpers/schemas.d.ts
CHANGED
|
@@ -650,6 +650,22 @@ export type DnsChanges = components['schemas']['DnsChangesResponse'];
|
|
|
650
650
|
* @see {@link components} - The OpenAPI components schema definition
|
|
651
651
|
*/
|
|
652
652
|
export type DnsConfigurationBase = components['schemas']['DnsConfigurationBase'];
|
|
653
|
+
/**
|
|
654
|
+
* DnsProtectedReason
|
|
655
|
+
*
|
|
656
|
+
* @remarks
|
|
657
|
+
* Type alias for the `DnsProtectedReason` OpenAPI schema.
|
|
658
|
+
* This type represents dnsprotectedreason data structures used in API requests and responses.
|
|
659
|
+
*
|
|
660
|
+
* @example
|
|
661
|
+
* ```typescript
|
|
662
|
+
* const response = await api.getDnsProtectedReason();
|
|
663
|
+
* const item: DnsProtectedReason = response.results;
|
|
664
|
+
* ```
|
|
665
|
+
*
|
|
666
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
667
|
+
*/
|
|
668
|
+
export type DnsProtectedReason = components['schemas']['DnsProtectedReason'];
|
|
653
669
|
/**
|
|
654
670
|
* DnsRecordCreate
|
|
655
671
|
*
|
|
@@ -2996,6 +3012,22 @@ export type OrganizationAttributeUpdate = components['schemas']['OrganizationAtt
|
|
|
2996
3012
|
* @see {@link components} - The OpenAPI components schema definition
|
|
2997
3013
|
*/
|
|
2998
3014
|
export type OrganizationCreate = components['schemas']['OrganizationCreate'];
|
|
3015
|
+
/**
|
|
3016
|
+
* OrganizationSortField
|
|
3017
|
+
*
|
|
3018
|
+
* @remarks
|
|
3019
|
+
* Type alias for the `OrganizationSortField` OpenAPI schema.
|
|
3020
|
+
* This type represents organizationsortfield data structures used in API requests and responses.
|
|
3021
|
+
*
|
|
3022
|
+
* @example
|
|
3023
|
+
* ```typescript
|
|
3024
|
+
* const response = await api.getOrganizationSortField();
|
|
3025
|
+
* const item: OrganizationSortField = response.results;
|
|
3026
|
+
* ```
|
|
3027
|
+
*
|
|
3028
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
3029
|
+
*/
|
|
3030
|
+
export type OrganizationSortField = components['schemas']['OrganizationSortField'];
|
|
2999
3031
|
/**
|
|
3000
3032
|
* OrganizationStatus
|
|
3001
3033
|
*
|
|
@@ -4404,6 +4436,22 @@ export type UserPublic = components['schemas']['UserPublic'];
|
|
|
4404
4436
|
* @see {@link components} - The OpenAPI components schema definition
|
|
4405
4437
|
*/
|
|
4406
4438
|
export type UserPublicWithAttributes = components['schemas']['UserPublicWithAttributes'];
|
|
4439
|
+
/**
|
|
4440
|
+
* UserSortField
|
|
4441
|
+
*
|
|
4442
|
+
* @remarks
|
|
4443
|
+
* Type alias for the `UserSortField` OpenAPI schema.
|
|
4444
|
+
* This type represents usersortfield data structures used in API requests and responses.
|
|
4445
|
+
*
|
|
4446
|
+
* @example
|
|
4447
|
+
* ```typescript
|
|
4448
|
+
* const response = await api.getUserSortField();
|
|
4449
|
+
* const item: UserSortField = response.results;
|
|
4450
|
+
* ```
|
|
4451
|
+
*
|
|
4452
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
4453
|
+
*/
|
|
4454
|
+
export type UserSortField = components['schemas']['UserSortField'];
|
|
4407
4455
|
/**
|
|
4408
4456
|
* UserStatus
|
|
4409
4457
|
*
|
package/src/openapi.yaml
CHANGED
|
@@ -1287,6 +1287,15 @@ components:
|
|
|
1287
1287
|
- host_objects
|
|
1288
1288
|
title: DnsConfigurationBase
|
|
1289
1289
|
type: object
|
|
1290
|
+
DnsProtectedReason:
|
|
1291
|
+
enum:
|
|
1292
|
+
- SYSTEM_MANAGED_SOA
|
|
1293
|
+
- SYSTEM_MANAGED_NS
|
|
1294
|
+
- EMAIL_FORWARD
|
|
1295
|
+
- DOMAIN_FORWARD
|
|
1296
|
+
- GENERIC
|
|
1297
|
+
title: DnsProtectedReason
|
|
1298
|
+
type: string
|
|
1290
1299
|
DnsRecordCreate:
|
|
1291
1300
|
properties:
|
|
1292
1301
|
rdata:
|
|
@@ -1314,6 +1323,11 @@ components:
|
|
|
1314
1323
|
description: Whether the record is protected
|
|
1315
1324
|
title: Protected
|
|
1316
1325
|
type: boolean
|
|
1326
|
+
protected_reason:
|
|
1327
|
+
anyOf:
|
|
1328
|
+
- $ref: '#/components/schemas/DnsProtectedReason'
|
|
1329
|
+
- type: 'null'
|
|
1330
|
+
description: Reason why the record is protected
|
|
1317
1331
|
rdata:
|
|
1318
1332
|
title: Rdata
|
|
1319
1333
|
type: string
|
|
@@ -1386,6 +1400,11 @@ components:
|
|
|
1386
1400
|
description: Whether the RRset is protected
|
|
1387
1401
|
title: Protected
|
|
1388
1402
|
type: boolean
|
|
1403
|
+
protected_reason:
|
|
1404
|
+
anyOf:
|
|
1405
|
+
- $ref: '#/components/schemas/DnsProtectedReason'
|
|
1406
|
+
- type: 'null'
|
|
1407
|
+
description: Reason why the RRset is protected
|
|
1389
1408
|
records:
|
|
1390
1409
|
items:
|
|
1391
1410
|
$ref: '#/components/schemas/DnsRecordResponse'
|
|
@@ -4725,6 +4744,13 @@ components:
|
|
|
4725
4744
|
- name
|
|
4726
4745
|
title: OrganizationCreate
|
|
4727
4746
|
type: object
|
|
4747
|
+
OrganizationSortField:
|
|
4748
|
+
enum:
|
|
4749
|
+
- created_on
|
|
4750
|
+
- name
|
|
4751
|
+
- country_code
|
|
4752
|
+
title: OrganizationSortField
|
|
4753
|
+
type: string
|
|
4728
4754
|
OrganizationStatus:
|
|
4729
4755
|
enum:
|
|
4730
4756
|
- active
|
|
@@ -6843,6 +6869,13 @@ components:
|
|
|
6843
6869
|
- status
|
|
6844
6870
|
title: UserPublicWithAttributes
|
|
6845
6871
|
type: object
|
|
6872
|
+
UserSortField:
|
|
6873
|
+
enum:
|
|
6874
|
+
- created_on
|
|
6875
|
+
- username
|
|
6876
|
+
- email
|
|
6877
|
+
title: UserSortField
|
|
6878
|
+
type: string
|
|
6846
6879
|
UserStatus:
|
|
6847
6880
|
enum:
|
|
6848
6881
|
- active
|
|
@@ -7277,7 +7310,7 @@ info:
|
|
|
7277
7310
|
'
|
|
7278
7311
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
7279
7312
|
title: OpusDNS API
|
|
7280
|
-
version: 2026-03-
|
|
7313
|
+
version: 2026-03-09-181800
|
|
7281
7314
|
x-logo:
|
|
7282
7315
|
altText: OpusDNS API Reference
|
|
7283
7316
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
|
@@ -15185,6 +15218,36 @@ paths:
|
|
|
15185
15218
|
description: Retrieves a paginated list of organizations under the current organization
|
|
15186
15219
|
operationId: list_organizations_v1_organizations_get
|
|
15187
15220
|
parameters:
|
|
15221
|
+
- in: query
|
|
15222
|
+
name: sort_by
|
|
15223
|
+
required: false
|
|
15224
|
+
schema:
|
|
15225
|
+
$ref: '#/components/schemas/OrganizationSortField'
|
|
15226
|
+
default: created_on
|
|
15227
|
+
- in: query
|
|
15228
|
+
name: sort_order
|
|
15229
|
+
required: false
|
|
15230
|
+
schema:
|
|
15231
|
+
$ref: '#/components/schemas/SortOrder'
|
|
15232
|
+
default: desc
|
|
15233
|
+
- in: query
|
|
15234
|
+
name: q
|
|
15235
|
+
required: false
|
|
15236
|
+
schema:
|
|
15237
|
+
anyOf:
|
|
15238
|
+
- maxLength: 200
|
|
15239
|
+
type: string
|
|
15240
|
+
- type: 'null'
|
|
15241
|
+
title: Q
|
|
15242
|
+
- in: query
|
|
15243
|
+
name: country_code
|
|
15244
|
+
required: false
|
|
15245
|
+
schema:
|
|
15246
|
+
anyOf:
|
|
15247
|
+
- pattern: ^\w{2}$
|
|
15248
|
+
type: string
|
|
15249
|
+
- type: 'null'
|
|
15250
|
+
title: Country Code
|
|
15188
15251
|
- in: query
|
|
15189
15252
|
name: page
|
|
15190
15253
|
required: false
|
|
@@ -15939,6 +16002,27 @@ paths:
|
|
|
15939
16002
|
description: Retrieves a paginated list of users under the current organization
|
|
15940
16003
|
operationId: list_users_v1_organizations_users_get
|
|
15941
16004
|
parameters:
|
|
16005
|
+
- in: query
|
|
16006
|
+
name: sort_by
|
|
16007
|
+
required: false
|
|
16008
|
+
schema:
|
|
16009
|
+
$ref: '#/components/schemas/UserSortField'
|
|
16010
|
+
default: created_on
|
|
16011
|
+
- in: query
|
|
16012
|
+
name: sort_order
|
|
16013
|
+
required: false
|
|
16014
|
+
schema:
|
|
16015
|
+
$ref: '#/components/schemas/SortOrder'
|
|
16016
|
+
default: desc
|
|
16017
|
+
- in: query
|
|
16018
|
+
name: q
|
|
16019
|
+
required: false
|
|
16020
|
+
schema:
|
|
16021
|
+
anyOf:
|
|
16022
|
+
- maxLength: 200
|
|
16023
|
+
type: string
|
|
16024
|
+
- type: 'null'
|
|
16025
|
+
title: Q
|
|
15942
16026
|
- in: query
|
|
15943
16027
|
name: page
|
|
15944
16028
|
required: false
|
package/src/schema.d.ts
CHANGED
|
@@ -2860,6 +2860,11 @@ export interface components {
|
|
|
2860
2860
|
*/
|
|
2861
2861
|
registry_root_nameserver_update: number;
|
|
2862
2862
|
};
|
|
2863
|
+
/**
|
|
2864
|
+
* DnsProtectedReason
|
|
2865
|
+
* @enum {string}
|
|
2866
|
+
*/
|
|
2867
|
+
DnsProtectedReason: "SYSTEM_MANAGED_SOA" | "SYSTEM_MANAGED_NS" | "EMAIL_FORWARD" | "DOMAIN_FORWARD" | "GENERIC";
|
|
2863
2868
|
/** DnsRecordCreate */
|
|
2864
2869
|
DnsRecordCreate: {
|
|
2865
2870
|
/** Rdata */
|
|
@@ -2878,6 +2883,8 @@ export interface components {
|
|
|
2878
2883
|
* @default false
|
|
2879
2884
|
*/
|
|
2880
2885
|
protected: boolean;
|
|
2886
|
+
/** @description Reason why the record is protected */
|
|
2887
|
+
protected_reason?: components["schemas"]["DnsProtectedReason"] | null;
|
|
2881
2888
|
/** Rdata */
|
|
2882
2889
|
rdata: string;
|
|
2883
2890
|
};
|
|
@@ -2916,6 +2923,8 @@ export interface components {
|
|
|
2916
2923
|
* @default false
|
|
2917
2924
|
*/
|
|
2918
2925
|
protected: boolean;
|
|
2926
|
+
/** @description Reason why the RRset is protected */
|
|
2927
|
+
protected_reason?: components["schemas"]["DnsProtectedReason"] | null;
|
|
2919
2928
|
/** Records */
|
|
2920
2929
|
records?: components["schemas"]["DnsRecordResponse"][];
|
|
2921
2930
|
/** Ttl */
|
|
@@ -5129,6 +5138,11 @@ export interface components {
|
|
|
5129
5138
|
*/
|
|
5130
5139
|
users?: components["schemas"]["UserCreate"][];
|
|
5131
5140
|
};
|
|
5141
|
+
/**
|
|
5142
|
+
* OrganizationSortField
|
|
5143
|
+
* @enum {string}
|
|
5144
|
+
*/
|
|
5145
|
+
OrganizationSortField: "created_on" | "name" | "country_code";
|
|
5132
5146
|
/**
|
|
5133
5147
|
* OrganizationStatus
|
|
5134
5148
|
* @enum {string}
|
|
@@ -6490,6 +6504,11 @@ export interface components {
|
|
|
6490
6504
|
*/
|
|
6491
6505
|
username: string;
|
|
6492
6506
|
};
|
|
6507
|
+
/**
|
|
6508
|
+
* UserSortField
|
|
6509
|
+
* @enum {string}
|
|
6510
|
+
*/
|
|
6511
|
+
UserSortField: "created_on" | "username" | "email";
|
|
6493
6512
|
/**
|
|
6494
6513
|
* UserStatus
|
|
6495
6514
|
* @enum {string}
|
|
@@ -12509,6 +12528,10 @@ export interface operations {
|
|
|
12509
12528
|
list_organizations_v1_organizations_get: {
|
|
12510
12529
|
parameters: {
|
|
12511
12530
|
query?: {
|
|
12531
|
+
sort_by?: components["schemas"]["OrganizationSortField"];
|
|
12532
|
+
sort_order?: components["schemas"]["SortOrder"];
|
|
12533
|
+
q?: string | null;
|
|
12534
|
+
country_code?: string | null;
|
|
12512
12535
|
page?: number;
|
|
12513
12536
|
page_size?: number;
|
|
12514
12537
|
};
|
|
@@ -13281,6 +13304,9 @@ export interface operations {
|
|
|
13281
13304
|
list_users_v1_organizations_users_get: {
|
|
13282
13305
|
parameters: {
|
|
13283
13306
|
query?: {
|
|
13307
|
+
sort_by?: components["schemas"]["UserSortField"];
|
|
13308
|
+
sort_order?: components["schemas"]["SortOrder"];
|
|
13309
|
+
q?: string | null;
|
|
13284
13310
|
page?: number;
|
|
13285
13311
|
page_size?: number;
|
|
13286
13312
|
};
|