@opusdns/api 0.14.1 → 0.15.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 CHANGED
@@ -8,7 +8,7 @@
8
8
  "typescript": "^5.8.2"
9
9
  },
10
10
  "name": "@opusdns/api",
11
- "version": "0.14.1",
11
+ "version": "0.15.0",
12
12
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
13
13
  "main": "./src/index.ts",
14
14
  "module": "./src/index.ts",
@@ -137,6 +137,7 @@ import { TrademarkClaimsBase } from './schemas';
137
137
  import { TransferEvent } from './schemas';
138
138
  import { TransferPoliciesBase } from './schemas';
139
139
  import { User } from './schemas';
140
+ import { UserAttributeBase } from './schemas';
140
141
  import { UserAttributeUpdate } from './schemas';
141
142
  import { UserCreate } from './schemas';
142
143
  import { UserNotification } from './schemas';
@@ -17101,6 +17102,83 @@ export const KEYS_USER = [
17101
17102
  KEY_USER_USERNAME,
17102
17103
  ] as const satisfies (keyof User)[];
17103
17104
 
17105
+ /**
17106
+ * Key
17107
+ *
17108
+ * Key of the attribute.
17109
+ *
17110
+ * @type {string}
17111
+ *
17112
+ *
17113
+ * @remarks
17114
+ * This key constant provides type-safe access to the `key` property of UserAttributeBase objects.
17115
+ * Use this constant when you need to access properties dynamically or ensure type safety.
17116
+ *
17117
+ * @example
17118
+ * ```typescript
17119
+ * // Direct property access
17120
+ * const value = userattributebase[KEY_USER_ATTRIBUTE_BASE_KEY];
17121
+ *
17122
+ * // Dynamic property access
17123
+ * const propertyName = KEY_USER_ATTRIBUTE_BASE_KEY;
17124
+ * const value = userattributebase[propertyName];
17125
+ * ```
17126
+ *
17127
+ * @see {@link UserAttributeBase} - The TypeScript type definition
17128
+ * @see {@link KEYS_USER_ATTRIBUTE_BASE} - Array of all keys for this type
17129
+ */
17130
+ export const KEY_USER_ATTRIBUTE_BASE_KEY = 'key' as keyof UserAttributeBase;
17131
+ /**
17132
+ * value property
17133
+ *
17134
+ * Value of the attribute.
17135
+ *
17136
+ *
17137
+ *
17138
+ * @remarks
17139
+ * This key constant provides type-safe access to the `value` property of UserAttributeBase objects.
17140
+ * Use this constant when you need to access properties dynamically or ensure type safety.
17141
+ *
17142
+ * @example
17143
+ * ```typescript
17144
+ * // Direct property access
17145
+ * const value = userattributebase[KEY_USER_ATTRIBUTE_BASE_VALUE];
17146
+ *
17147
+ * // Dynamic property access
17148
+ * const propertyName = KEY_USER_ATTRIBUTE_BASE_VALUE;
17149
+ * const value = userattributebase[propertyName];
17150
+ * ```
17151
+ *
17152
+ * @see {@link UserAttributeBase} - The TypeScript type definition
17153
+ * @see {@link KEYS_USER_ATTRIBUTE_BASE} - Array of all keys for this type
17154
+ */
17155
+ export const KEY_USER_ATTRIBUTE_BASE_VALUE = 'value' as keyof UserAttributeBase;
17156
+
17157
+ /**
17158
+ * Array of all UserAttributeBase property keys
17159
+ *
17160
+ * @remarks
17161
+ * This constant provides a readonly array containing all valid property keys for UserAttributeBase objects.
17162
+ * Useful for iteration, validation, and generating dynamic UI components.
17163
+ *
17164
+ * @example
17165
+ * ```typescript
17166
+ * // Iterating through all keys
17167
+ * for (const key of KEYS_USER_ATTRIBUTE_BASE) {
17168
+ * console.log(`Property: ${key}, Value: ${userattributebase[key]}`);
17169
+ * }
17170
+ *
17171
+ * // Validation
17172
+ * const isValidKey = KEYS_USER_ATTRIBUTE_BASE.includes(someKey);
17173
+ * ```
17174
+ *
17175
+ * @see {@link UserAttributeBase} - The TypeScript type definition
17176
+ */
17177
+ export const KEYS_USER_ATTRIBUTE_BASE = [
17178
+ KEY_USER_ATTRIBUTE_BASE_KEY,
17179
+ KEY_USER_ATTRIBUTE_BASE_VALUE,
17180
+ ] as const satisfies (keyof UserAttributeBase)[];
17181
+
17104
17182
  /**
17105
17183
  * Key
17106
17184
  *
@@ -17332,6 +17410,31 @@ export const KEY_USER_CREATE_PASSWORD = 'password' as keyof UserCreate;
17332
17410
  * @see {@link KEYS_USER_CREATE} - Array of all keys for this type
17333
17411
  */
17334
17412
  export const KEY_USER_CREATE_PHONE = 'phone' as keyof UserCreate;
17413
+ /**
17414
+ * User Attributes
17415
+ *
17416
+ * User attributes
17417
+ *
17418
+ *
17419
+ *
17420
+ * @remarks
17421
+ * This key constant provides type-safe access to the `user_attributes` property of UserCreate objects.
17422
+ * Use this constant when you need to access properties dynamically or ensure type safety.
17423
+ *
17424
+ * @example
17425
+ * ```typescript
17426
+ * // Direct property access
17427
+ * const value = usercreate[KEY_USER_CREATE_USER_ATTRIBUTES];
17428
+ *
17429
+ * // Dynamic property access
17430
+ * const propertyName = KEY_USER_CREATE_USER_ATTRIBUTES;
17431
+ * const value = usercreate[propertyName];
17432
+ * ```
17433
+ *
17434
+ * @see {@link UserCreate} - The TypeScript type definition
17435
+ * @see {@link KEYS_USER_CREATE} - Array of all keys for this type
17436
+ */
17437
+ export const KEY_USER_CREATE_USER_ATTRIBUTES = 'user_attributes' as keyof UserCreate;
17335
17438
  /**
17336
17439
  * Username
17337
17440
  *
@@ -17386,6 +17489,7 @@ export const KEYS_USER_CREATE = [
17386
17489
  KEY_USER_CREATE_LOCALE,
17387
17490
  KEY_USER_CREATE_PASSWORD,
17388
17491
  KEY_USER_CREATE_PHONE,
17492
+ KEY_USER_CREATE_USER_ATTRIBUTES,
17389
17493
  KEY_USER_CREATE_USERNAME,
17390
17494
  ] as const satisfies (keyof UserCreate)[];
17391
17495
 
@@ -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, BulkOperationResult, PostalAddressType, ContactConfigBase, DnsChange, DnsRecordCreate, DnsRecord, DnsRrsetCreate, DnsRecordPatchOp, DnsRrset, DnsRrsetPatchOp, DomainAvailabilityCheck, Nameserver, DeletePolicyType, SyncOperationType, DomainContact, DomainStatus, DomainSearchSuggestion, DomainClientStatus, EmailForwardBulkUpdateItem, ValidationError, LaunchPhaseBase, LocalPresenceRequirementType, ContactRoleType, OrganizationAttribute2, User, OrganizationAttributeCreate, UserCreate, ContactSchema, DnsZone, Domain, EmailForward, EventResponse, OrganizationCredential, Organization, UserNotificationSummary, Period, Permission, PremiumAffectsType, Relation, TldBase, PostTransferRequirements, UserAttributeUpdate, DomainAvailability } from './schemas.d';
24
+ import { DomainDnssecData, DomainDnssecDataCreate, OrganizationAttribute, OrganizationAttributeUpdate, IpRestriction, TldResponseShort, BulkOperationResult, PostalAddressType, ContactConfigBase, DnsChange, DnsRecordCreate, DnsRecord, DnsRrsetCreate, DnsRecordPatchOp, DnsRrset, DnsRrsetPatchOp, DomainAvailabilityCheck, Nameserver, DeletePolicyType, SyncOperationType, DomainContact, DomainStatus, DomainSearchSuggestion, DomainClientStatus, EmailForwardBulkUpdateItem, ValidationError, LaunchPhaseBase, LocalPresenceRequirementType, ContactRoleType, OrganizationAttribute2, User, OrganizationAttributeCreate, UserCreate, ContactSchema, DnsZone, Domain, EmailForward, EventResponse, OrganizationCredential, Organization, UserNotificationSummary, Period, Permission, PremiumAffectsType, Relation, TldBase, PostTransferRequirements, UserAttributeBase, UserAttributeUpdate, DomainAvailability } from './schemas.d';
25
25
 
26
26
  /**
27
27
  * DomainDnssecDataResponse
@@ -681,6 +681,20 @@ export type TldBaseArray = TldBase[];
681
681
  * @see {@link PostTransferRequirements} - The individual PostTransferRequirements type definition
682
682
  */
683
683
  export type PostTransferRequirementsArray = PostTransferRequirements[];
684
+ /**
685
+ * UserAttributeBase
686
+ *
687
+ * @remarks
688
+ * Array type for UserAttributeBase objects. Used when the API returns a collection of UserAttributeBase instances.
689
+ *
690
+ * @example
691
+ * ```typescript
692
+ * const items: UserAttributeBaseArray = await api.getUserAttributeBases();
693
+ * ```
694
+ *
695
+ * @see {@link UserAttributeBase} - The individual UserAttributeBase type definition
696
+ */
697
+ export type UserAttributeBaseArray = UserAttributeBase[];
684
698
  /**
685
699
  * UserAttributeUpdate
686
700
  *
@@ -2666,6 +2666,22 @@ export type TransferPoliciesBase = components['schemas']['TransferPoliciesBase']
2666
2666
  * @see {@link components} - The OpenAPI components schema definition
2667
2667
  */
2668
2668
  export type User = components['schemas']['User'];
2669
+ /**
2670
+ * UserAttributeBase
2671
+ *
2672
+ * @remarks
2673
+ * Type alias for the `UserAttributeBase` OpenAPI schema.
2674
+ * This type represents userattributebase data structures used in API requests and responses.
2675
+ *
2676
+ * @example
2677
+ * ```typescript
2678
+ * const response = await api.getUserAttributeBase();
2679
+ * const item: UserAttributeBase = response.results;
2680
+ * ```
2681
+ *
2682
+ * @see {@link components} - The OpenAPI components schema definition
2683
+ */
2684
+ export type UserAttributeBase = components['schemas']['UserAttributeBase'];
2669
2685
  /**
2670
2686
  * UserAttributeUpdate
2671
2687
  *
package/src/openapi.yaml CHANGED
@@ -4404,6 +4404,22 @@ components:
4404
4404
  - status
4405
4405
  title: User
4406
4406
  type: object
4407
+ UserAttributeBase:
4408
+ properties:
4409
+ key:
4410
+ description: Key of the attribute.
4411
+ minLength: 1
4412
+ title: Key
4413
+ type: string
4414
+ value:
4415
+ anyOf:
4416
+ - $ref: '#/components/schemas/JsonValue'
4417
+ - type: 'null'
4418
+ description: Value of the attribute.
4419
+ required:
4420
+ - key
4421
+ title: UserAttributeBase
4422
+ type: object
4407
4423
  UserAttributeUpdate:
4408
4424
  properties:
4409
4425
  key:
@@ -4457,6 +4473,14 @@ components:
4457
4473
  examples:
4458
4474
  - '+1.2125552368'
4459
4475
  title: Phone
4476
+ user_attributes:
4477
+ anyOf:
4478
+ - items:
4479
+ $ref: '#/components/schemas/UserAttributeBase'
4480
+ type: array
4481
+ - type: 'null'
4482
+ description: User attributes
4483
+ title: User Attributes
4460
4484
  username:
4461
4485
  description: The user's unique username
4462
4486
  minLength: 1
@@ -4971,7 +4995,7 @@ info:
4971
4995
  '
4972
4996
  summary: OpusDNS - your gateway to a seamless domain management experience.
4973
4997
  title: OpusDNS API
4974
- version: 2025-08-01-163639
4998
+ version: 2025-08-02-000200
4975
4999
  x-logo:
4976
5000
  altText: OpusDNS API Reference
4977
5001
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
package/src/schema.d.ts CHANGED
@@ -3950,6 +3950,16 @@ export interface components {
3950
3950
  */
3951
3951
  username: string;
3952
3952
  };
3953
+ /** UserAttributeBase */
3954
+ UserAttributeBase: {
3955
+ /**
3956
+ * Key
3957
+ * @description Key of the attribute.
3958
+ */
3959
+ key: string;
3960
+ /** @description Value of the attribute. */
3961
+ value?: components["schemas"]["JsonValue"] | null;
3962
+ };
3953
3963
  /** UserAttributeUpdate */
3954
3964
  UserAttributeUpdate: {
3955
3965
  /**
@@ -3990,6 +4000,11 @@ export interface components {
3990
4000
  * @description The user's phone number
3991
4001
  */
3992
4002
  phone?: string | null;
4003
+ /**
4004
+ * User Attributes
4005
+ * @description User attributes
4006
+ */
4007
+ user_attributes?: components["schemas"]["UserAttributeBase"][] | null;
3993
4008
  /**
3994
4009
  * Username
3995
4010
  * @description The user's unique username