@opusdns/api 0.79.0 → 0.80.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.
Files changed (2) hide show
  1. package/package.json +3 -8
  2. package/src/schema.d.ts +135 -9
package/package.json CHANGED
@@ -1,14 +1,9 @@
1
1
  {
2
2
  "devDependencies": {
3
- "@types/js-yaml": "^4.0.9",
4
- "@types/node": "^24.0.14",
5
- "js-yaml": "^4.1.0",
6
- "openapi-typescript": "^7.8.0",
7
- "tsx": "^4.20.3",
8
- "typescript": "^5.8.2"
3
+ "@opusdns/api-spec-ts-generator": "^0.9.1"
9
4
  },
10
5
  "name": "@opusdns/api",
11
- "version": "0.79.0",
6
+ "version": "0.80.0",
12
7
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
13
8
  "main": "./src/index.ts",
14
9
  "module": "./src/index.ts",
@@ -36,7 +31,7 @@
36
31
  },
37
32
  "scripts": {
38
33
  "generate:schema": "tsx scripts/generate-schema.ts",
39
- "generate:helpers": "tsx scripts/helpers/generate-all.ts"
34
+ "generate:helpers": "tsx scripts/generate-all-helpers.ts"
40
35
  },
41
36
  "homepage": "https://github.com/OpusDNS/api-spec#readme",
42
37
  "files": [
package/src/schema.d.ts CHANGED
@@ -1319,6 +1319,7 @@ export interface components {
1319
1319
  /**
1320
1320
  * Billing Transaction Id
1321
1321
  * Format: typeid
1322
+ * @example billing_transaction_01h45ytscbebyvny4gc8cr8ma2
1322
1323
  */
1323
1324
  billing_transaction_id?: TypeId<"billing_transaction">;
1324
1325
  /**
@@ -1465,6 +1466,7 @@ export interface components {
1465
1466
  * Phone
1466
1467
  * Format: phone
1467
1468
  * @description The contact's phone number
1469
+ * @example +1.2125552368
1468
1470
  */
1469
1471
  phone: string;
1470
1472
  /**
@@ -1501,6 +1503,7 @@ export interface components {
1501
1503
  * Contact Id
1502
1504
  * Format: typeid
1503
1505
  * @description The contact id of the contact
1506
+ * @example contact_01h45ytscbebyvny4gc8cr8ma2
1504
1507
  */
1505
1508
  contact_id: TypeId<"contact">;
1506
1509
  };
@@ -1554,6 +1557,7 @@ export interface components {
1554
1557
  * Phone
1555
1558
  * Format: phone
1556
1559
  * @description The contact's phone number
1560
+ * @example +1.2125552368
1557
1561
  */
1558
1562
  phone: string;
1559
1563
  /**
@@ -1605,6 +1609,7 @@ export interface components {
1605
1609
  /**
1606
1610
  * Contact Id
1607
1611
  * Format: typeid
1612
+ * @example contact_01h45ytscbebyvny4gc8cr8ma2
1608
1613
  */
1609
1614
  contact_id?: TypeId<"contact">;
1610
1615
  /**
@@ -1659,12 +1664,14 @@ export interface components {
1659
1664
  * Format: typeid
1660
1665
  * @description The organization that owns the domain
1661
1666
  * @default None
1667
+ * @example organization_01h45ytscbebyvny4gc8cr8ma2
1662
1668
  */
1663
1669
  organization_id: TypeId<"organization">;
1664
1670
  /**
1665
1671
  * Phone
1666
1672
  * Format: phone
1667
1673
  * @description The contact's phone number
1674
+ * @example +1.2125552368
1668
1675
  */
1669
1676
  phone: string;
1670
1677
  /**
@@ -1705,11 +1712,13 @@ export interface components {
1705
1712
  * Format: typeid
1706
1713
  * @description The contact that is being verified
1707
1714
  * @default None
1715
+ * @example contact_01h45ytscbebyvny4gc8cr8ma2
1708
1716
  */
1709
1717
  contact_id: TypeId<"contact">;
1710
1718
  /**
1711
1719
  * Contact Verification Id
1712
1720
  * Format: typeid
1721
+ * @example contact_verification_01h45ytscbebyvny4gc8cr8ma2
1713
1722
  */
1714
1723
  contact_verification_id?: TypeId<"contact_verification">;
1715
1724
  /**
@@ -1754,11 +1763,13 @@ export interface components {
1754
1763
  * Format: typeid
1755
1764
  * @description The contact that is being verified
1756
1765
  * @default None
1766
+ * @example contact_01h45ytscbebyvny4gc8cr8ma2
1757
1767
  */
1758
1768
  contact_id: TypeId<"contact">;
1759
1769
  /**
1760
1770
  * Contact Verification Id
1761
1771
  * Format: typeid
1772
+ * @example contact_verification_01h45ytscbebyvny4gc8cr8ma2
1762
1773
  */
1763
1774
  contact_verification_id?: TypeId<"contact_verification">;
1764
1775
  /**
@@ -1798,11 +1809,13 @@ export interface components {
1798
1809
  * Format: typeid
1799
1810
  * @description The contact that is being verified
1800
1811
  * @default None
1812
+ * @example contact_01h45ytscbebyvny4gc8cr8ma2
1801
1813
  */
1802
1814
  contact_id: TypeId<"contact">;
1803
1815
  /**
1804
1816
  * Contact Verification Id
1805
1817
  * Format: typeid
1818
+ * @example contact_verification_01h45ytscbebyvny4gc8cr8ma2
1806
1819
  */
1807
1820
  contact_verification_id?: TypeId<"contact_verification">;
1808
1821
  /**
@@ -2194,6 +2207,7 @@ export interface components {
2194
2207
  * Contact Id
2195
2208
  * Format: typeid
2196
2209
  * @description The contact id of the contact
2210
+ * @example contact_01h45ytscbebyvny4gc8cr8ma2
2197
2211
  */
2198
2212
  contact_id: TypeId<"contact">;
2199
2213
  /** @description The type of contact */
@@ -2291,6 +2305,7 @@ export interface components {
2291
2305
  /**
2292
2306
  * Domain Dnssec Data Id
2293
2307
  * Format: typeid
2308
+ * @example domain_dnssec_01h45ytscbebyvny4gc8cr8ma2
2294
2309
  */
2295
2310
  domain_dnssec_data_id?: TypeId<"domain_dnssec">;
2296
2311
  /**
@@ -2298,6 +2313,7 @@ export interface components {
2298
2313
  * Format: typeid
2299
2314
  * @description The domain this DNSSEC record belongs to
2300
2315
  * @default None
2316
+ * @example domain_01h45ytscbebyvny4gc8cr8ma2
2301
2317
  */
2302
2318
  domain_id: TypeId<"domain">;
2303
2319
  /**
@@ -2359,6 +2375,8 @@ export interface components {
2359
2375
  /**
2360
2376
  * Grace Period
2361
2377
  * @description Grace period after expiration in ISO 8601 format (e.g., 5D, -7D)
2378
+ * @example P5D
2379
+ * @example P30D
2362
2380
  */
2363
2381
  grace_period?: string | null;
2364
2382
  /**
@@ -2390,11 +2408,20 @@ export interface components {
2390
2408
  };
2391
2409
  /** DomainNameParts */
2392
2410
  DomainNameParts: {
2393
- /** Domain */
2411
+ /**
2412
+ * Domain
2413
+ * @example example
2414
+ */
2394
2415
  domain?: string | null;
2395
- /** Subdomain */
2416
+ /**
2417
+ * Subdomain
2418
+ * @example foo
2419
+ */
2396
2420
  subdomain?: string | null;
2397
- /** Suffix */
2421
+ /**
2422
+ * Suffix
2423
+ * @example com
2424
+ */
2398
2425
  suffix?: string | null;
2399
2426
  };
2400
2427
  /** DomainPeriod */
@@ -2470,6 +2497,7 @@ export interface components {
2470
2497
  /**
2471
2498
  * Domain Id
2472
2499
  * Format: typeid
2500
+ * @example domain_01h45ytscbebyvny4gc8cr8ma2
2473
2501
  */
2474
2502
  domain_id?: TypeId<"domain">;
2475
2503
  /**
@@ -2480,6 +2508,7 @@ export interface components {
2480
2508
  /**
2481
2509
  * Name
2482
2510
  * @description The domain name
2511
+ * @example example.com
2483
2512
  */
2484
2513
  name: string;
2485
2514
  /**
@@ -2492,6 +2521,7 @@ export interface components {
2492
2521
  * Format: typeid
2493
2522
  * @description The organization that owns the domain
2494
2523
  * @default None
2524
+ * @example organization_01h45ytscbebyvny4gc8cr8ma2
2495
2525
  */
2496
2526
  owner_id: TypeId<"organization">;
2497
2527
  /**
@@ -2503,6 +2533,7 @@ export interface components {
2503
2533
  * Registry Account Id
2504
2534
  * Format: typeid
2505
2535
  * @default None
2536
+ * @example registry_account_01h45ytscbebyvny4gc8cr8ma2
2506
2537
  */
2507
2538
  registry_account_id: TypeId<"registry_account">;
2508
2539
  /**
@@ -2515,16 +2546,19 @@ export interface components {
2515
2546
  /**
2516
2547
  * Roid
2517
2548
  * @description The registry object id of the domain
2549
+ * @example D123456789-EXAMPLE-TEST
2518
2550
  */
2519
2551
  roid: string;
2520
2552
  /**
2521
2553
  * Sld
2522
2554
  * @description The second level domain
2555
+ * @example example
2523
2556
  */
2524
2557
  sld: string;
2525
2558
  /**
2526
2559
  * Tld
2527
2560
  * @description The top level domain of the domain
2561
+ * @example com
2528
2562
  */
2529
2563
  tld: string;
2530
2564
  /**
@@ -2565,6 +2599,7 @@ export interface components {
2565
2599
  * Domain Id
2566
2600
  * Format: typeid
2567
2601
  * @description The ID of the restored domain
2602
+ * @example domain_01h45ytscbebyvny4gc8cr8ma2
2568
2603
  */
2569
2604
  domain_id: TypeId<"domain">;
2570
2605
  /**
@@ -2678,6 +2713,7 @@ export interface components {
2678
2713
  * Organization Id
2679
2714
  * Format: typeid
2680
2715
  * @description The organization ID
2716
+ * @example organization_01h45ytscbebyvny4gc8cr8ma2
2681
2717
  */
2682
2718
  organization_id: TypeId<"organization">;
2683
2719
  };
@@ -2729,6 +2765,12 @@ export interface components {
2729
2765
  /**
2730
2766
  * Contacts
2731
2767
  * @description The new contacts of the domain
2768
+ * @example {
2769
+ * "admin": "contact_01h45ytscbebyvny4gc8cr8ma2",
2770
+ * "billing": "contact_01h45ytscbebyvny4gc8cr8ma2",
2771
+ * "registrant": "contact_01h45ytscbebyvny4gc8cr8ma2",
2772
+ * "tech": "contact_01h45ytscbebyvny4gc8cr8ma2"
2773
+ * }
2732
2774
  */
2733
2775
  contacts?: components["schemas"]["DomainContactHandles"] | components["schemas"]["ContactIdList"] | null;
2734
2776
  /**
@@ -2798,6 +2840,7 @@ export interface components {
2798
2840
  /**
2799
2841
  * Event Id
2800
2842
  * Format: typeid
2843
+ * @example epp_event_01h45ytscbebyvny4gc8cr8ma2
2801
2844
  */
2802
2845
  event_id?: TypeId<"epp_event">;
2803
2846
  /**
@@ -2833,6 +2876,7 @@ export interface components {
2833
2876
  /**
2834
2877
  * Event Id
2835
2878
  * Format: typeid
2879
+ * @example epp_event_01h45ytscbebyvny4gc8cr8ma2
2836
2880
  */
2837
2881
  event_id?: TypeId<"epp_event">;
2838
2882
  /**
@@ -2947,11 +2991,16 @@ export interface components {
2947
2991
  * Ip Network
2948
2992
  * Format: ipvanynetwork
2949
2993
  * @description IP address or CIDR network range. Individual IPs can be specified without CIDR notation.
2994
+ * @example 192.0.2.1
2995
+ * @example 192.0.2.0/24
2996
+ * @example 2001:db8::1
2997
+ * @example 2001:db8::/32
2950
2998
  */
2951
2999
  ip_network: string;
2952
3000
  /**
2953
3001
  * Organization Id
2954
3002
  * Format: typeid
3003
+ * @example organization_01h45ytscbebyvny4gc8cr8ma2
2955
3004
  */
2956
3005
  organization_id?: TypeId<"organization">;
2957
3006
  };
@@ -2966,6 +3015,10 @@ export interface components {
2966
3015
  * Ip Network
2967
3016
  * Format: ipvanynetwork
2968
3017
  * @description IP address or CIDR network range. Single IPs are returned with /32 (IPv4) or /128 (IPv6) notation.
3018
+ * @example 192.0.2.1/32
3019
+ * @example 192.0.2.0/24
3020
+ * @example 2001:db8::1/128
3021
+ * @example 2001:db8::/32
2969
3022
  */
2970
3023
  ip_network: string;
2971
3024
  /** Ip Restriction Id */
@@ -2975,6 +3028,7 @@ export interface components {
2975
3028
  /**
2976
3029
  * Organization Id
2977
3030
  * Format: typeid
3031
+ * @example organization_01h45ytscbebyvny4gc8cr8ma2
2978
3032
  */
2979
3033
  organization_id: TypeId<"organization">;
2980
3034
  };
@@ -2988,6 +3042,10 @@ export interface components {
2988
3042
  /**
2989
3043
  * Ip Network
2990
3044
  * @description IP address or CIDR network range to replace the existing restriction.
3045
+ * @example 192.0.2.1
3046
+ * @example 192.0.2.0/24
3047
+ * @example 2001:db8::1
3048
+ * @example 2001:db8::/32
2991
3049
  */
2992
3050
  ip_network?: string | null;
2993
3051
  /**
@@ -3072,11 +3130,20 @@ export interface components {
3072
3130
  /**
3073
3131
  * Hostname
3074
3132
  * @description The name server of the domain
3133
+ * @example ns1.example.com
3075
3134
  */
3076
3135
  hostname: string;
3077
3136
  /**
3078
3137
  * Ip Addresses
3079
3138
  * @description The ip addresses of the name server
3139
+ * @example [
3140
+ * "0.0.0.0",
3141
+ * "127.0.0.1"
3142
+ * ]
3143
+ * @example [
3144
+ * "2001:db8::1",
3145
+ * "2001:db8::2"
3146
+ * ]
3080
3147
  */
3081
3148
  ip_addresses?: string[];
3082
3149
  };
@@ -3136,6 +3203,7 @@ export interface components {
3136
3203
  * Organization Id
3137
3204
  * Format: typeid
3138
3205
  * @description Unique identifier for the organization.
3206
+ * @example organization_01h45ytscbebyvny4gc8cr8ma2
3139
3207
  */
3140
3208
  organization_id?: TypeId<"organization">;
3141
3209
  /**
@@ -3503,6 +3571,7 @@ export interface components {
3503
3571
  * Organization Id
3504
3572
  * Format: typeid
3505
3573
  * @description Unique identifier for the organization.
3574
+ * @example organization_01h45ytscbebyvny4gc8cr8ma2
3506
3575
  */
3507
3576
  organization_id?: TypeId<"organization">;
3508
3577
  /**
@@ -3608,7 +3677,10 @@ export interface components {
3608
3677
  };
3609
3678
  /** PasswordUpdate */
3610
3679
  PasswordUpdate: {
3611
- /** New Password */
3680
+ /**
3681
+ * New Password
3682
+ * @example correcthorsebatterystaple
3683
+ */
3612
3684
  new_password: string;
3613
3685
  };
3614
3686
  /**
@@ -3760,6 +3832,7 @@ export interface components {
3760
3832
  * Client Id
3761
3833
  * Format: typeid
3762
3834
  * @description The organization ID associated with the credentials.
3835
+ * @example organization_01h45ytscbebyvny4gc8cr8ma2
3763
3836
  */
3764
3837
  client_id: TypeId<"organization">;
3765
3838
  /**
@@ -3918,8 +3991,17 @@ export interface components {
3918
3991
  };
3919
3992
  /** TldResponseShort */
3920
3993
  TldResponseShort: {
3921
- /** Tld */
3994
+ /**
3995
+ * Tld
3996
+ * @example com
3997
+ * @example org
3998
+ * @example net
3999
+ */
3922
4000
  tld: string;
4001
+ /**
4002
+ * @example gTLD
4003
+ * @example ccTLD
4004
+ */
3923
4005
  type: components["schemas"]["TLDType"];
3924
4006
  };
3925
4007
  /** TldSpecificationResponse */
@@ -4087,18 +4169,23 @@ export interface components {
4087
4169
  * @description The user's last name
4088
4170
  */
4089
4171
  last_name: string;
4090
- /** Locale */
4172
+ /**
4173
+ * Locale
4174
+ * @example en_US
4175
+ */
4091
4176
  locale: string;
4092
4177
  /**
4093
4178
  * Organization Id
4094
4179
  * Format: typeid
4095
4180
  * @description The user's organization id
4096
4181
  * @default None
4182
+ * @example organization_01h45ytscbebyvny4gc8cr8ma2
4097
4183
  */
4098
4184
  organization_id: TypeId<"organization">;
4099
4185
  /**
4100
4186
  * Phone
4101
4187
  * @description The user's phone number
4188
+ * @example +1.2125552368
4102
4189
  */
4103
4190
  phone?: string | null;
4104
4191
  readonly status: components["schemas"]["UserStatus"];
@@ -4111,6 +4198,7 @@ export interface components {
4111
4198
  /**
4112
4199
  * User Id
4113
4200
  * Format: typeid
4201
+ * @example user_01h45ytscbebyvny4gc8cr8ma2
4114
4202
  */
4115
4203
  user_id?: TypeId<"user">;
4116
4204
  /**
@@ -4147,16 +4235,21 @@ export interface components {
4147
4235
  * @description The user's last name
4148
4236
  */
4149
4237
  last_name: string;
4150
- /** Locale */
4238
+ /**
4239
+ * Locale
4240
+ * @example en_US
4241
+ */
4151
4242
  locale: string;
4152
4243
  /**
4153
4244
  * Password
4154
4245
  * @description Plaintext password for hashing during creation
4246
+ * @example correcthorsebatterystaple
4155
4247
  */
4156
4248
  password: string;
4157
4249
  /**
4158
4250
  * Phone
4159
4251
  * @description The user's phone number
4252
+ * @example +1.2125552368
4160
4253
  */
4161
4254
  phone?: string | null;
4162
4255
  /**
@@ -4258,18 +4351,23 @@ export interface components {
4258
4351
  * @description The user's last name
4259
4352
  */
4260
4353
  last_name: string;
4261
- /** Locale */
4354
+ /**
4355
+ * Locale
4356
+ * @example en_US
4357
+ */
4262
4358
  locale: string;
4263
4359
  /**
4264
4360
  * Organization Id
4265
4361
  * Format: typeid
4266
4362
  * @description The user's organization id
4267
4363
  * @default None
4364
+ * @example organization_01h45ytscbebyvny4gc8cr8ma2
4268
4365
  */
4269
4366
  organization_id: TypeId<"organization">;
4270
4367
  /**
4271
4368
  * Phone
4272
4369
  * @description The user's phone number
4370
+ * @example +1.2125552368
4273
4371
  */
4274
4372
  phone?: string | null;
4275
4373
  readonly status: components["schemas"]["UserStatus"];
@@ -4282,6 +4380,16 @@ export interface components {
4282
4380
  /**
4283
4381
  * User Attributes
4284
4382
  * @description All of the user attributes
4383
+ * @example {
4384
+ * "array": [
4385
+ * 1,
4386
+ * 2,
4387
+ * 3
4388
+ * ],
4389
+ * "bool": true,
4390
+ * "number": 1,
4391
+ * "string": "value2"
4392
+ * }
4285
4393
  */
4286
4394
  user_attributes?: {
4287
4395
  [key: string]: components["schemas"]["JsonValue"];
@@ -4289,6 +4397,7 @@ export interface components {
4289
4397
  /**
4290
4398
  * User Id
4291
4399
  * Format: typeid
4400
+ * @example user_01h45ytscbebyvny4gc8cr8ma2
4292
4401
  */
4293
4402
  user_id?: TypeId<"user">;
4294
4403
  /**
@@ -4326,13 +4435,17 @@ export interface components {
4326
4435
  * @description The user's last name
4327
4436
  */
4328
4437
  last_name: string;
4329
- /** Locale */
4438
+ /**
4439
+ * Locale
4440
+ * @example en_US
4441
+ */
4330
4442
  locale: string;
4331
4443
  /**
4332
4444
  * Organization Id
4333
4445
  * Format: typeid
4334
4446
  * @description The user's organization id
4335
4447
  * @default None
4448
+ * @example organization_01h45ytscbebyvny4gc8cr8ma2
4336
4449
  */
4337
4450
  organization_id: TypeId<"organization">;
4338
4451
  /** Permissions */
@@ -4340,6 +4453,7 @@ export interface components {
4340
4453
  /**
4341
4454
  * Phone
4342
4455
  * @description The user's phone number
4456
+ * @example +1.2125552368
4343
4457
  */
4344
4458
  phone?: string | null;
4345
4459
  /** Relations */
@@ -4354,6 +4468,16 @@ export interface components {
4354
4468
  /**
4355
4469
  * User Attributes
4356
4470
  * @description All of the user attributes
4471
+ * @example {
4472
+ * "array": [
4473
+ * 1,
4474
+ * 2,
4475
+ * 3
4476
+ * ],
4477
+ * "bool": true,
4478
+ * "number": 1,
4479
+ * "string": "value2"
4480
+ * }
4357
4481
  */
4358
4482
  user_attributes?: {
4359
4483
  [key: string]: components["schemas"]["JsonValue"];
@@ -4361,6 +4485,7 @@ export interface components {
4361
4485
  /**
4362
4486
  * User Id
4363
4487
  * Format: typeid
4488
+ * @example user_01h45ytscbebyvny4gc8cr8ma2
4364
4489
  */
4365
4490
  user_id?: TypeId<"user">;
4366
4491
  /**
@@ -4457,6 +4582,7 @@ export interface components {
4457
4582
  /**
4458
4583
  * Domain
4459
4584
  * @description The domain name
4585
+ * @example example.com
4460
4586
  */
4461
4587
  domain: string;
4462
4588
  /** Reason */