@opusdns/api 0.21.0 → 0.22.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/keys.ts +0 -78
- package/src/helpers/schemas-arrays.d.ts +1 -15
- package/src/helpers/schemas.d.ts +0 -16
- package/src/openapi.yaml +2 -18
- package/src/schema.d.ts +1 -11
package/package.json
CHANGED
package/src/helpers/keys.ts
CHANGED
|
@@ -130,7 +130,6 @@ import { TrademarkClaimsBase } from './schemas';
|
|
|
130
130
|
import { TransferPoliciesBase } from './schemas';
|
|
131
131
|
import { User } from './schemas';
|
|
132
132
|
import { UserAttributeBase } from './schemas';
|
|
133
|
-
import { UserAttributeUpdate } from './schemas';
|
|
134
133
|
import { UserCreate } from './schemas';
|
|
135
134
|
import { UserNotification } from './schemas';
|
|
136
135
|
import { UserNotificationSummary } from './schemas';
|
|
@@ -16404,83 +16403,6 @@ export const KEYS_USER_ATTRIBUTE_BASE = [
|
|
|
16404
16403
|
KEY_USER_ATTRIBUTE_BASE_VALUE,
|
|
16405
16404
|
] as const satisfies (keyof UserAttributeBase)[];
|
|
16406
16405
|
|
|
16407
|
-
/**
|
|
16408
|
-
* Key
|
|
16409
|
-
*
|
|
16410
|
-
* Key of the attribute.
|
|
16411
|
-
*
|
|
16412
|
-
* @type {string}
|
|
16413
|
-
*
|
|
16414
|
-
*
|
|
16415
|
-
* @remarks
|
|
16416
|
-
* This key constant provides type-safe access to the `key` property of UserAttributeUpdate objects.
|
|
16417
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
16418
|
-
*
|
|
16419
|
-
* @example
|
|
16420
|
-
* ```typescript
|
|
16421
|
-
* // Direct property access
|
|
16422
|
-
* const value = userattributeupdate[KEY_USER_ATTRIBUTE_UPDATE_KEY];
|
|
16423
|
-
*
|
|
16424
|
-
* // Dynamic property access
|
|
16425
|
-
* const propertyName = KEY_USER_ATTRIBUTE_UPDATE_KEY;
|
|
16426
|
-
* const value = userattributeupdate[propertyName];
|
|
16427
|
-
* ```
|
|
16428
|
-
*
|
|
16429
|
-
* @see {@link UserAttributeUpdate} - The TypeScript type definition
|
|
16430
|
-
* @see {@link KEYS_USER_ATTRIBUTE_UPDATE} - Array of all keys for this type
|
|
16431
|
-
*/
|
|
16432
|
-
export const KEY_USER_ATTRIBUTE_UPDATE_KEY = 'key' as keyof UserAttributeUpdate;
|
|
16433
|
-
/**
|
|
16434
|
-
* value property
|
|
16435
|
-
*
|
|
16436
|
-
* Value of the attribute.
|
|
16437
|
-
*
|
|
16438
|
-
*
|
|
16439
|
-
*
|
|
16440
|
-
* @remarks
|
|
16441
|
-
* This key constant provides type-safe access to the `value` property of UserAttributeUpdate objects.
|
|
16442
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
16443
|
-
*
|
|
16444
|
-
* @example
|
|
16445
|
-
* ```typescript
|
|
16446
|
-
* // Direct property access
|
|
16447
|
-
* const value = userattributeupdate[KEY_USER_ATTRIBUTE_UPDATE_VALUE];
|
|
16448
|
-
*
|
|
16449
|
-
* // Dynamic property access
|
|
16450
|
-
* const propertyName = KEY_USER_ATTRIBUTE_UPDATE_VALUE;
|
|
16451
|
-
* const value = userattributeupdate[propertyName];
|
|
16452
|
-
* ```
|
|
16453
|
-
*
|
|
16454
|
-
* @see {@link UserAttributeUpdate} - The TypeScript type definition
|
|
16455
|
-
* @see {@link KEYS_USER_ATTRIBUTE_UPDATE} - Array of all keys for this type
|
|
16456
|
-
*/
|
|
16457
|
-
export const KEY_USER_ATTRIBUTE_UPDATE_VALUE = 'value' as keyof UserAttributeUpdate;
|
|
16458
|
-
|
|
16459
|
-
/**
|
|
16460
|
-
* Array of all UserAttributeUpdate property keys
|
|
16461
|
-
*
|
|
16462
|
-
* @remarks
|
|
16463
|
-
* This constant provides a readonly array containing all valid property keys for UserAttributeUpdate objects.
|
|
16464
|
-
* Useful for iteration, validation, and generating dynamic UI components.
|
|
16465
|
-
*
|
|
16466
|
-
* @example
|
|
16467
|
-
* ```typescript
|
|
16468
|
-
* // Iterating through all keys
|
|
16469
|
-
* for (const key of KEYS_USER_ATTRIBUTE_UPDATE) {
|
|
16470
|
-
* console.log(`Property: ${key}, Value: ${userattributeupdate[key]}`);
|
|
16471
|
-
* }
|
|
16472
|
-
*
|
|
16473
|
-
* // Validation
|
|
16474
|
-
* const isValidKey = KEYS_USER_ATTRIBUTE_UPDATE.includes(someKey);
|
|
16475
|
-
* ```
|
|
16476
|
-
*
|
|
16477
|
-
* @see {@link UserAttributeUpdate} - The TypeScript type definition
|
|
16478
|
-
*/
|
|
16479
|
-
export const KEYS_USER_ATTRIBUTE_UPDATE = [
|
|
16480
|
-
KEY_USER_ATTRIBUTE_UPDATE_KEY,
|
|
16481
|
-
KEY_USER_ATTRIBUTE_UPDATE_VALUE,
|
|
16482
|
-
] as const satisfies (keyof UserAttributeUpdate)[];
|
|
16483
|
-
|
|
16484
16406
|
/**
|
|
16485
16407
|
* Email
|
|
16486
16408
|
*
|
|
@@ -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, Nameserver, DeletePolicyType, SyncOperationType, DomainContact, DomainStatus, DomainSearchSuggestion, DomainClientStatus, ValidationError, LaunchPhaseBase, LocalPresenceRequirementType, ContactRoleType, OrganizationAttribute2, User, OrganizationAttributeCreate, UserCreate, ContactSchema, DnsZone, Domain, EmailForwardAlias, EventResponse, OrganizationCredential, Organization, UserNotificationSummary, Period, Permission, PremiumAffectsType, Relation, TldBase, PostTransferRequirements, UserAttributeBase,
|
|
24
|
+
import { DomainDnssecData, DomainDnssecDataCreate, OrganizationAttribute, OrganizationAttributeUpdate, IpRestriction, TldResponseShort, PostalAddressType, ContactConfigBase, DnsChange, DnsRecordCreate, DnsRecord, DnsRrsetCreate, DnsRecordPatchOp, DnsRrset, DnsRrsetPatchOp, DomainAvailabilityCheck, Nameserver, DeletePolicyType, SyncOperationType, DomainContact, DomainStatus, DomainSearchSuggestion, DomainClientStatus, ValidationError, LaunchPhaseBase, LocalPresenceRequirementType, ContactRoleType, OrganizationAttribute2, User, OrganizationAttributeCreate, UserCreate, ContactSchema, DnsZone, Domain, EmailForwardAlias, EventResponse, OrganizationCredential, Organization, UserNotificationSummary, Period, Permission, PremiumAffectsType, Relation, TldBase, PostTransferRequirements, UserAttributeBase, DomainAvailability } from './schemas.d';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* DomainDnssecDataResponse
|
|
@@ -667,20 +667,6 @@ export type PostTransferRequirementsArray = PostTransferRequirements[];
|
|
|
667
667
|
* @see {@link UserAttributeBase} - The individual UserAttributeBase type definition
|
|
668
668
|
*/
|
|
669
669
|
export type UserAttributeBaseArray = UserAttributeBase[];
|
|
670
|
-
/**
|
|
671
|
-
* UserAttributeUpdate
|
|
672
|
-
*
|
|
673
|
-
* @remarks
|
|
674
|
-
* Array type for UserAttributeUpdate objects. Used when the API returns a collection of UserAttributeUpdate instances.
|
|
675
|
-
*
|
|
676
|
-
* @example
|
|
677
|
-
* ```typescript
|
|
678
|
-
* const items: UserAttributeUpdateArray = await api.getUserAttributeUpdates();
|
|
679
|
-
* ```
|
|
680
|
-
*
|
|
681
|
-
* @see {@link UserAttributeUpdate} - The individual UserAttributeUpdate type definition
|
|
682
|
-
*/
|
|
683
|
-
export type UserAttributeUpdateArray = UserAttributeUpdate[];
|
|
684
670
|
/**
|
|
685
671
|
* DomainAvailability
|
|
686
672
|
*
|
package/src/helpers/schemas.d.ts
CHANGED
|
@@ -2522,22 +2522,6 @@ export type User = components['schemas']['User'];
|
|
|
2522
2522
|
* @see {@link components} - The OpenAPI components schema definition
|
|
2523
2523
|
*/
|
|
2524
2524
|
export type UserAttributeBase = components['schemas']['UserAttributeBase'];
|
|
2525
|
-
/**
|
|
2526
|
-
* UserAttributeUpdate
|
|
2527
|
-
*
|
|
2528
|
-
* @remarks
|
|
2529
|
-
* Type alias for the `UserAttributeUpdate` OpenAPI schema.
|
|
2530
|
-
* This type represents userattributeupdate data structures used in API requests and responses.
|
|
2531
|
-
*
|
|
2532
|
-
* @example
|
|
2533
|
-
* ```typescript
|
|
2534
|
-
* const response = await api.getUserAttributeUpdate();
|
|
2535
|
-
* const item: UserAttributeUpdate = response.results;
|
|
2536
|
-
* ```
|
|
2537
|
-
*
|
|
2538
|
-
* @see {@link components} - The OpenAPI components schema definition
|
|
2539
|
-
*/
|
|
2540
|
-
export type UserAttributeUpdate = components['schemas']['UserAttributeUpdate'];
|
|
2541
2525
|
/**
|
|
2542
2526
|
* UserCreate
|
|
2543
2527
|
*
|
package/src/openapi.yaml
CHANGED
|
@@ -4229,22 +4229,6 @@ components:
|
|
|
4229
4229
|
- key
|
|
4230
4230
|
title: UserAttributeBase
|
|
4231
4231
|
type: object
|
|
4232
|
-
UserAttributeUpdate:
|
|
4233
|
-
properties:
|
|
4234
|
-
key:
|
|
4235
|
-
description: Key of the attribute.
|
|
4236
|
-
minLength: 1
|
|
4237
|
-
title: Key
|
|
4238
|
-
type: string
|
|
4239
|
-
value:
|
|
4240
|
-
anyOf:
|
|
4241
|
-
- $ref: '#/components/schemas/JsonValue'
|
|
4242
|
-
- type: 'null'
|
|
4243
|
-
description: Value of the attribute.
|
|
4244
|
-
required:
|
|
4245
|
-
- key
|
|
4246
|
-
title: UserAttributeUpdate
|
|
4247
|
-
type: object
|
|
4248
4232
|
UserCreate:
|
|
4249
4233
|
properties:
|
|
4250
4234
|
email:
|
|
@@ -4451,7 +4435,7 @@ components:
|
|
|
4451
4435
|
user_attributes:
|
|
4452
4436
|
anyOf:
|
|
4453
4437
|
- items:
|
|
4454
|
-
$ref: '#/components/schemas/
|
|
4438
|
+
$ref: '#/components/schemas/UserAttributeBase'
|
|
4455
4439
|
type: array
|
|
4456
4440
|
- type: 'null'
|
|
4457
4441
|
description: User attributes
|
|
@@ -4804,7 +4788,7 @@ info:
|
|
|
4804
4788
|
'
|
|
4805
4789
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
4806
4790
|
title: OpusDNS API
|
|
4807
|
-
version: 2025-08-
|
|
4791
|
+
version: 2025-08-19-064842
|
|
4808
4792
|
x-logo:
|
|
4809
4793
|
altText: OpusDNS API Reference
|
|
4810
4794
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
package/src/schema.d.ts
CHANGED
|
@@ -3842,16 +3842,6 @@ export interface components {
|
|
|
3842
3842
|
/** @description Value of the attribute. */
|
|
3843
3843
|
value?: components["schemas"]["JsonValue"] | null;
|
|
3844
3844
|
};
|
|
3845
|
-
/** UserAttributeUpdate */
|
|
3846
|
-
UserAttributeUpdate: {
|
|
3847
|
-
/**
|
|
3848
|
-
* Key
|
|
3849
|
-
* @description Key of the attribute.
|
|
3850
|
-
*/
|
|
3851
|
-
key: string;
|
|
3852
|
-
/** @description Value of the attribute. */
|
|
3853
|
-
value?: components["schemas"]["JsonValue"] | null;
|
|
3854
|
-
};
|
|
3855
3845
|
/** UserCreate */
|
|
3856
3846
|
UserCreate: {
|
|
3857
3847
|
/**
|
|
@@ -4003,7 +3993,7 @@ export interface components {
|
|
|
4003
3993
|
* User Attributes
|
|
4004
3994
|
* @description User attributes
|
|
4005
3995
|
*/
|
|
4006
|
-
user_attributes?: components["schemas"]["
|
|
3996
|
+
user_attributes?: components["schemas"]["UserAttributeBase"][] | null;
|
|
4007
3997
|
/**
|
|
4008
3998
|
* Username
|
|
4009
3999
|
* @description The user's unique username
|