@opusdns/api 1.5.0 → 1.7.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
@@ -3,7 +3,7 @@
3
3
  "@opusdns/api-spec-ts-generator": "^1.2.0"
4
4
  },
5
5
  "name": "@opusdns/api",
6
- "version": "1.5.0",
6
+ "version": "1.7.0",
7
7
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -1,5 +1,6 @@
1
1
  import type {
2
2
  AllocationMethodType,
3
+ AssignablePublicRole,
3
4
  AttributeType,
4
5
  BatchSortField,
5
6
  BatchStatus,
@@ -118,6 +119,22 @@ export const ALLOCATION_METHOD_TYPE_VALUES = [
118
119
  'lottery',
119
120
  ] as const satisfies ReadonlyArray<AllocationMethodType>;
120
121
 
122
+ export const ASSIGNABLE_PUBLIC_ROLE = {
123
+ ADMIN: "admin",
124
+ VIEWER: "viewer",
125
+ DOMAIN_MANAGER: "domain_manager",
126
+ DNS_MANAGER: "dns_manager",
127
+ BILLING_MANAGER: "billing_manager",
128
+ } as const satisfies Record<string, AssignablePublicRole>;
129
+
130
+ export const ASSIGNABLE_PUBLIC_ROLE_VALUES = [
131
+ 'admin',
132
+ 'viewer',
133
+ 'domain_manager',
134
+ 'dns_manager',
135
+ 'billing_manager',
136
+ ] as const satisfies ReadonlyArray<AssignablePublicRole>;
137
+
121
138
  export const ATTRIBUTE_TYPE = {
122
139
  ENUM: "enum",
123
140
  STRING: "string",
@@ -1355,6 +1372,7 @@ export const PUBLIC_RESOURCE_VALUES = [
1355
1372
  ] as const satisfies ReadonlyArray<PublicResource>;
1356
1373
 
1357
1374
  export const PUBLIC_ROLE = {
1375
+ OWNER: "owner",
1358
1376
  ADMIN: "admin",
1359
1377
  VIEWER: "viewer",
1360
1378
  DOMAIN_MANAGER: "domain_manager",
@@ -1363,6 +1381,7 @@ export const PUBLIC_ROLE = {
1363
1381
  } as const satisfies Record<string, PublicRole>;
1364
1382
 
1365
1383
  export const PUBLIC_ROLE_VALUES = [
1384
+ 'owner',
1366
1385
  'admin',
1367
1386
  'viewer',
1368
1387
  'domain_manager',
@@ -265,6 +265,7 @@ import type {
265
265
  PublicReportListRes,
266
266
  PublicReportRes,
267
267
  PublicRoleAssignment,
268
+ PublicRoleAssignmentRequest,
268
269
  RdapBase,
269
270
  ReferrerStatsBucket,
270
271
  RegistryLockBase,
@@ -3725,6 +3726,12 @@ export const KEYS_PUBLIC_ROLE_ASSIGNMENT = [
3725
3726
  KEY_PUBLIC_ROLE_ASSIGNMENT_ROLE,
3726
3727
  ] as const satisfies (keyof PublicRoleAssignment)[];
3727
3728
 
3729
+ export const KEY_PUBLIC_ROLE_ASSIGNMENT_REQUEST_ROLE = 'role' satisfies keyof PublicRoleAssignmentRequest;
3730
+
3731
+ export const KEYS_PUBLIC_ROLE_ASSIGNMENT_REQUEST = [
3732
+ KEY_PUBLIC_ROLE_ASSIGNMENT_REQUEST_ROLE,
3733
+ ] as const satisfies (keyof PublicRoleAssignmentRequest)[];
3734
+
3728
3735
  export const KEY_RDAP_BASE_RDAP_SERVER = 'rdap_server' satisfies keyof RdapBase;
3729
3736
 
3730
3737
  export const KEYS_RDAP_BASE = [
@@ -42,7 +42,7 @@ import type {
42
42
  ParkingSignupRequest,
43
43
  PasswordUpdate,
44
44
  PublicAuthRequestForm,
45
- PublicRoleAssignment,
45
+ PublicRoleAssignmentRequest,
46
46
  TagCreate,
47
47
  TagUpdate,
48
48
  UserCreate,
@@ -953,7 +953,7 @@ export type GET_UsersByUserIdRole_Request_Path = GET_UsersByUserIdRole_Request['
953
953
 
954
954
  export type PUT_UsersByUserIdRole_Request = {
955
955
  parameters: operations['set_user_role_v1_users__user_id__role_put']['parameters'];
956
- requestBody: PublicRoleAssignment;
956
+ requestBody: PublicRoleAssignmentRequest;
957
957
  };
958
958
  export type PUT_UsersByUserIdRole_Request_Path = PUT_UsersByUserIdRole_Request['parameters']['path'];
959
959
  export type PUT_UsersByUserIdRole_Request_Body = PUT_UsersByUserIdRole_Request['requestBody'];
@@ -1197,7 +1197,8 @@ export type PUT_EmailForwardsByEmailForwardIdAliasesByAliasId_Response_403 = Pro
1197
1197
  export type PUT_EmailForwardsByEmailForwardIdAliasesByAliasId_Response_404 = Problem;
1198
1198
  export type PUT_EmailForwardsByEmailForwardIdAliasesByAliasId_Response_422 = HTTPValidationError;
1199
1199
 
1200
- export type PUT_UsersByUserIdRole_Response = PUT_UsersByUserIdRole_Response_200 | PUT_UsersByUserIdRole_Response_422;
1200
+ export type PUT_UsersByUserIdRole_Response = PUT_UsersByUserIdRole_Response_200 | PUT_UsersByUserIdRole_Response_403 | PUT_UsersByUserIdRole_Response_422;
1201
1201
 
1202
1202
  export type PUT_UsersByUserIdRole_Response_200 = PublicRoleAssignment;
1203
+ export type PUT_UsersByUserIdRole_Response_403 = Problem;
1203
1204
  export type PUT_UsersByUserIdRole_Response_422 = HTTPValidationError;
@@ -2,6 +2,7 @@ import { components } from '../schema';
2
2
 
3
3
  export type AllocationMethodType = components['schemas']['AllocationMethodType'];
4
4
  export type AllowedNumberOfNameserverBase = components['schemas']['AllowedNumberOfNameserverBase'];
5
+ export type AssignablePublicRole = components['schemas']['AssignablePublicRole'];
5
6
  export type AttributeCondition = components['schemas']['AttributeCondition'];
6
7
  export type AttributeType = components['schemas']['AttributeType'];
7
8
  export type BatchSortField = components['schemas']['BatchSortField'];
@@ -370,6 +371,7 @@ export type PublicReportRes = components['schemas']['PublicReportRes'];
370
371
  export type PublicResource = components['schemas']['PublicResource'];
371
372
  export type PublicRole = components['schemas']['PublicRole'];
372
373
  export type PublicRoleAssignment = components['schemas']['PublicRoleAssignment'];
374
+ export type PublicRoleAssignmentRequest = components['schemas']['PublicRoleAssignmentRequest'];
373
375
  export type PublicScope = components['schemas']['PublicScope'];
374
376
  export type RdapBase = components['schemas']['RdapBase'];
375
377
  export type RedirectCode = components['schemas']['RedirectCode'];
package/src/openapi.yaml CHANGED
@@ -23,6 +23,15 @@ components:
23
23
  - max
24
24
  title: AllowedNumberOfNameserverBase
25
25
  type: object
26
+ AssignablePublicRole:
27
+ enum:
28
+ - admin
29
+ - viewer
30
+ - domain_manager
31
+ - dns_manager
32
+ - billing_manager
33
+ title: AssignablePublicRole
34
+ type: string
26
35
  AttributeCondition:
27
36
  properties:
28
37
  field:
@@ -9449,6 +9458,7 @@ components:
9449
9458
  type: string
9450
9459
  PublicRole:
9451
9460
  enum:
9461
+ - owner
9452
9462
  - admin
9453
9463
  - viewer
9454
9464
  - domain_manager
@@ -9464,6 +9474,14 @@ components:
9464
9474
  - type: 'null'
9465
9475
  title: PublicRoleAssignment
9466
9476
  type: object
9477
+ PublicRoleAssignmentRequest:
9478
+ properties:
9479
+ role:
9480
+ anyOf:
9481
+ - $ref: '#/components/schemas/AssignablePublicRole'
9482
+ - type: 'null'
9483
+ title: PublicRoleAssignmentRequest
9484
+ type: object
9467
9485
  PublicScope:
9468
9486
  enum:
9469
9487
  - read
@@ -11537,7 +11555,7 @@ info:
11537
11555
  \n\n"
11538
11556
  summary: OpusDNS - your gateway to a seamless domain management experience.
11539
11557
  title: OpusDNS API
11540
- version: 2026-06-10-074321
11558
+ version: 2026-06-10-102008
11541
11559
  x-logo:
11542
11560
  altText: OpusDNS API Reference
11543
11561
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -12817,6 +12835,8 @@ paths:
12817
12835
  summary: Retrieve email forward logs by alias
12818
12836
  tags:
12819
12837
  - archive
12838
+ x-required-permissions:
12839
+ - email_forwards:read
12820
12840
  /v1/archive/email-forward-logs/{email_forward_id}:
12821
12841
  get:
12822
12842
  description: Retrieves a paginated list of email forward logs for a specific
@@ -12908,6 +12928,8 @@ paths:
12908
12928
  summary: Retrieve email forward logs
12909
12929
  tags:
12910
12930
  - archive
12931
+ x-required-permissions:
12932
+ - email_forwards:read
12911
12933
  /v1/archive/object-logs:
12912
12934
  get:
12913
12935
  description: Retrieve all paginated audit logs with optional filtering and sorting
@@ -13708,6 +13730,8 @@ paths:
13708
13730
  summary: List all contacts
13709
13731
  tags:
13710
13732
  - contact
13733
+ x-required-permissions:
13734
+ - contacts:read
13711
13735
  post:
13712
13736
  description: Create a new contact object to use for domain registration
13713
13737
  operationId: create_contact_v1_contacts_post
@@ -13736,6 +13760,8 @@ paths:
13736
13760
  summary: Create a contact
13737
13761
  tags:
13738
13762
  - contact
13763
+ x-required-permissions:
13764
+ - contacts:manage
13739
13765
  /v1/contacts/attribute-sets:
13740
13766
  get:
13741
13767
  operationId: list_attribute_sets_v1_contacts_attribute_sets_get
@@ -13804,6 +13830,8 @@ paths:
13804
13830
  summary: List contact attribute sets
13805
13831
  tags:
13806
13832
  - contact
13833
+ x-required-permissions:
13834
+ - contacts:read
13807
13835
  post:
13808
13836
  operationId: create_attribute_set_v1_contacts_attribute_sets_post
13809
13837
  requestBody:
@@ -13845,6 +13873,8 @@ paths:
13845
13873
  summary: Create a contact attribute set
13846
13874
  tags:
13847
13875
  - contact
13876
+ x-required-permissions:
13877
+ - contacts:manage
13848
13878
  /v1/contacts/attribute-sets/{contact_attribute_set_id}:
13849
13879
  delete:
13850
13880
  operationId: delete_attribute_set_v1_contacts_attribute_sets__contact_attribute_set_id__delete
@@ -13888,6 +13918,8 @@ paths:
13888
13918
  summary: Delete a contact attribute set
13889
13919
  tags:
13890
13920
  - contact
13921
+ x-required-permissions:
13922
+ - contacts:manage
13891
13923
  get:
13892
13924
  operationId: get_attribute_set_v1_contacts_attribute_sets__contact_attribute_set_id__get
13893
13925
  parameters:
@@ -13934,6 +13966,8 @@ paths:
13934
13966
  summary: Retrieve a contact attribute set
13935
13967
  tags:
13936
13968
  - contact
13969
+ x-required-permissions:
13970
+ - contacts:read
13937
13971
  patch:
13938
13972
  operationId: update_attribute_set_v1_contacts_attribute_sets__contact_attribute_set_id__patch
13939
13973
  parameters:
@@ -14000,6 +14034,8 @@ paths:
14000
14034
  summary: Update a contact attribute set
14001
14035
  tags:
14002
14036
  - contact
14037
+ x-required-permissions:
14038
+ - contacts:manage
14003
14039
  /v1/contacts/verification:
14004
14040
  get:
14005
14041
  operationId: get_verification_by_token_v1_contacts_verification_get
@@ -14194,6 +14230,8 @@ paths:
14194
14230
  summary: Delete a contact
14195
14231
  tags:
14196
14232
  - contact
14233
+ x-required-permissions:
14234
+ - contacts:delete
14197
14235
  get:
14198
14236
  operationId: get_contact_v1_contacts__contact_id__get
14199
14237
  parameters:
@@ -14250,6 +14288,8 @@ paths:
14250
14288
  summary: Retrieve a contact
14251
14289
  tags:
14252
14290
  - contact
14291
+ x-required-permissions:
14292
+ - contacts:read
14253
14293
  /v1/contacts/{contact_id}/link/{contact_attribute_set_id}:
14254
14294
  patch:
14255
14295
  operationId: create_attribute_link_v1_contacts__contact_id__link__contact_attribute_set_id__patch
@@ -14333,6 +14373,8 @@ paths:
14333
14373
  summary: Link a contact to a contact attribute set
14334
14374
  tags:
14335
14375
  - contact
14376
+ x-required-permissions:
14377
+ - contacts:manage
14336
14378
  /v1/contacts/{contact_id}/verification:
14337
14379
  delete:
14338
14380
  operationId: cancel_verification_v1_contacts__contact_id__verification_delete
@@ -14388,6 +14430,8 @@ paths:
14388
14430
  summary: Delete contact verification
14389
14431
  tags:
14390
14432
  - contact
14433
+ x-required-permissions:
14434
+ - contacts:manage
14391
14435
  get:
14392
14436
  operationId: get_verification_status_v1_contacts__contact_id__verification_get
14393
14437
  parameters:
@@ -14446,6 +14490,8 @@ paths:
14446
14490
  summary: Retrieve contact verification by contact ID
14447
14491
  tags:
14448
14492
  - contact
14493
+ x-required-permissions:
14494
+ - contacts:manage
14449
14495
  post:
14450
14496
  operationId: start_contact_verification_v1_contacts__contact_id__verification_post
14451
14497
  parameters:
@@ -14525,6 +14571,8 @@ paths:
14525
14571
  summary: Start contact verification
14526
14572
  tags:
14527
14573
  - contact
14574
+ x-required-permissions:
14575
+ - contacts:manage
14528
14576
  put:
14529
14577
  operationId: update_verification_v1_contacts__contact_id__verification_put
14530
14578
  parameters:
@@ -14613,6 +14661,8 @@ paths:
14613
14661
  summary: Complete contact verification by contact ID
14614
14662
  tags:
14615
14663
  - contact
14664
+ x-required-permissions:
14665
+ - contacts:manage
14616
14666
  /v1/contacts/{contact_id}/verifications:
14617
14667
  get:
14618
14668
  description: Retrieve the current verification state for a contact from the
@@ -14686,6 +14736,8 @@ paths:
14686
14736
  summary: Get contact verification status
14687
14737
  tags:
14688
14738
  - contact
14739
+ x-required-permissions:
14740
+ - contacts:read
14689
14741
  /v1/contacts/{contact_id}/verifications/attest:
14690
14742
  post:
14691
14743
  description: Submit one or more contact-verification attestations. Returns the
@@ -14780,6 +14832,8 @@ paths:
14780
14832
  summary: Attest a contact verification
14781
14833
  tags:
14782
14834
  - contact
14835
+ x-required-permissions:
14836
+ - contacts:manage
14783
14837
  /v1/dns:
14784
14838
  get:
14785
14839
  operationId: list_zones_v1_dns_get
@@ -14977,6 +15031,8 @@ paths:
14977
15031
  summary: List Zones
14978
15032
  tags:
14979
15033
  - dns
15034
+ x-required-permissions:
15035
+ - dns:read
14980
15036
  post:
14981
15037
  operationId: create_zone_v1_dns_post
14982
15038
  requestBody:
@@ -15231,6 +15287,8 @@ paths:
15231
15287
  summary: Create Zone
15232
15288
  tags:
15233
15289
  - dns
15290
+ x-required-permissions:
15291
+ - dns:manage
15234
15292
  /v1/dns/domain-forwards:
15235
15293
  get:
15236
15294
  description: Retrieves a paginated list of domain forwards grouped by DNS zones.
@@ -15350,6 +15408,8 @@ paths:
15350
15408
  summary: List domain forwards by zone
15351
15409
  tags:
15352
15410
  - dns
15411
+ x-required-permissions:
15412
+ - dns:read
15353
15413
  /v1/dns/email-forwards:
15354
15414
  get:
15355
15415
  description: Retrieves a paginated list of email forwards grouped by DNS zones.
@@ -15435,6 +15495,8 @@ paths:
15435
15495
  summary: List email forwards by zone
15436
15496
  tags:
15437
15497
  - dns
15498
+ x-required-permissions:
15499
+ - dns:read
15438
15500
  /v1/dns/summary:
15439
15501
  get:
15440
15502
  operationId: get_zones_summary_v1_dns_summary_get
@@ -15466,6 +15528,8 @@ paths:
15466
15528
  summary: Get Zones Summary
15467
15529
  tags:
15468
15530
  - dns
15531
+ x-required-permissions:
15532
+ - dns:read
15469
15533
  /v1/dns/{zone_name}:
15470
15534
  delete:
15471
15535
  operationId: delete_zone_v1_dns__zone_name__delete
@@ -15493,6 +15557,8 @@ paths:
15493
15557
  summary: Delete Zone
15494
15558
  tags:
15495
15559
  - dns
15560
+ x-required-permissions:
15561
+ - dns:delete
15496
15562
  get:
15497
15563
  operationId: get_zone_v1_dns__zone_name__get
15498
15564
  parameters:
@@ -15533,6 +15599,8 @@ paths:
15533
15599
  summary: Get Zone
15534
15600
  tags:
15535
15601
  - dns
15602
+ x-required-permissions:
15603
+ - dns:read
15536
15604
  /v1/dns/{zone_name}/dnssec/disable:
15537
15605
  post:
15538
15606
  operationId: disable_dnssec_v1_dns__zone_name__dnssec_disable_post
@@ -15619,6 +15687,8 @@ paths:
15619
15687
  summary: Disable Dnssec
15620
15688
  tags:
15621
15689
  - dns
15690
+ x-required-permissions:
15691
+ - dns:manage
15622
15692
  /v1/dns/{zone_name}/dnssec/enable:
15623
15693
  post:
15624
15694
  operationId: enable_dnssec_v1_dns__zone_name__dnssec_enable_post
@@ -15705,6 +15775,8 @@ paths:
15705
15775
  summary: Enable Dnssec
15706
15776
  tags:
15707
15777
  - dns
15778
+ x-required-permissions:
15779
+ - dns:manage
15708
15780
  /v1/dns/{zone_name}/domain-forwards:
15709
15781
  get:
15710
15782
  description: Retrieves all domain forwards configured for the specified DNS
@@ -15788,6 +15860,8 @@ paths:
15788
15860
  summary: List domain forwards for a zone
15789
15861
  tags:
15790
15862
  - dns
15863
+ x-required-permissions:
15864
+ - dns:read
15791
15865
  /v1/dns/{zone_name}/email-forwards:
15792
15866
  get:
15793
15867
  description: Retrieves all email forwards configured for the specified DNS zone,
@@ -15845,6 +15919,8 @@ paths:
15845
15919
  summary: List email forwards for a zone
15846
15920
  tags:
15847
15921
  - dns
15922
+ x-required-permissions:
15923
+ - dns:read
15848
15924
  /v1/dns/{zone_name}/records:
15849
15925
  patch:
15850
15926
  operationId: patch_zone_records_v1_dns__zone_name__records_patch
@@ -15944,6 +16020,8 @@ paths:
15944
16020
  summary: Patch Zone Records
15945
16021
  tags:
15946
16022
  - dns
16023
+ x-required-permissions:
16024
+ - dns:manage
15947
16025
  /v1/dns/{zone_name}/rrsets:
15948
16026
  patch:
15949
16027
  operationId: patch_zone_rrsets_v1_dns__zone_name__rrsets_patch
@@ -16089,6 +16167,8 @@ paths:
16089
16167
  summary: Patch Zone Rrsets
16090
16168
  tags:
16091
16169
  - dns
16170
+ x-required-permissions:
16171
+ - dns:manage
16092
16172
  put:
16093
16173
  operationId: update_zone_rrsets_v1_dns__zone_name__rrsets_put
16094
16174
  parameters:
@@ -16221,6 +16301,8 @@ paths:
16221
16301
  summary: Update Zone Rrsets
16222
16302
  tags:
16223
16303
  - dns
16304
+ x-required-permissions:
16305
+ - dns:manage
16224
16306
  /v1/domain-forwards:
16225
16307
  get:
16226
16308
  description: Retrieves a paginated list of domain forwards by hostname for the
@@ -16404,6 +16486,8 @@ paths:
16404
16486
  summary: List domain forwards
16405
16487
  tags:
16406
16488
  - domain_forward
16489
+ x-required-permissions:
16490
+ - domain_forwards:read
16407
16491
  patch:
16408
16492
  description: Applies patch operations to update or remove redirects across hostnames
16409
16493
  and protocols. Raises an error if the domain forward or domain forward set
@@ -16466,6 +16550,8 @@ paths:
16466
16550
  summary: Patch domain forward redirects
16467
16551
  tags:
16468
16552
  - domain_forward
16553
+ x-required-permissions:
16554
+ - domain_forwards:manage
16469
16555
  post:
16470
16556
  description: Creates a new domain forward configuration. Wildcard forwards can
16471
16557
  be created by using *.hostname (e.g., *.example.com).
@@ -16641,6 +16727,8 @@ paths:
16641
16727
  summary: Create a domain forward
16642
16728
  tags:
16643
16729
  - domain_forward
16730
+ x-required-permissions:
16731
+ - domain_forwards:manage
16644
16732
  /v1/domain-forwards/metrics:
16645
16733
  get:
16646
16734
  description: Retrieves overall metrics for domain forwards including total and
@@ -16759,6 +16847,8 @@ paths:
16759
16847
  summary: Get domain forward metrics
16760
16848
  tags:
16761
16849
  - domain_forward
16850
+ x-required-permissions:
16851
+ - domain_forwards:read
16762
16852
  /v1/domain-forwards/metrics/browser:
16763
16853
  get:
16764
16854
  description: Retrieves visitor traffic broken down by browser type (Chrome,
@@ -16900,6 +16990,8 @@ paths:
16900
16990
  summary: Get browser statistics
16901
16991
  tags:
16902
16992
  - domain_forward
16993
+ x-required-permissions:
16994
+ - domain_forwards:read
16903
16995
  /v1/domain-forwards/metrics/geo:
16904
16996
  get:
16905
16997
  description: Retrieves visitor traffic broken down by geographic location (country
@@ -17034,6 +17126,8 @@ paths:
17034
17126
  summary: Get geographic statistics
17035
17127
  tags:
17036
17128
  - domain_forward
17129
+ x-required-permissions:
17130
+ - domain_forwards:read
17037
17131
  /v1/domain-forwards/metrics/platform:
17038
17132
  get:
17039
17133
  description: Retrieves visitor traffic broken down by platform (Windows, Macintosh,
@@ -17173,6 +17267,8 @@ paths:
17173
17267
  summary: Get platform statistics
17174
17268
  tags:
17175
17269
  - domain_forward
17270
+ x-required-permissions:
17271
+ - domain_forwards:read
17176
17272
  /v1/domain-forwards/metrics/referrer:
17177
17273
  get:
17178
17274
  description: Retrieves visitor referral sources (where traffic came from) with
@@ -17314,6 +17410,8 @@ paths:
17314
17410
  summary: Get referrer statistics
17315
17411
  tags:
17316
17412
  - domain_forward
17413
+ x-required-permissions:
17414
+ - domain_forwards:read
17317
17415
  /v1/domain-forwards/metrics/status-code:
17318
17416
  get:
17319
17417
  description: Retrieves distribution of HTTP redirect status codes (301, 302,
@@ -17441,6 +17539,8 @@ paths:
17441
17539
  summary: Get HTTP status code statistics
17442
17540
  tags:
17443
17541
  - domain_forward
17542
+ x-required-permissions:
17543
+ - domain_forwards:read
17444
17544
  /v1/domain-forwards/metrics/time-series:
17445
17545
  get:
17446
17546
  description: Retrieves visit counts bucketed by time intervals (hourly, daily)
@@ -17614,6 +17714,8 @@ paths:
17614
17714
  summary: Get domain forward time series metrics
17615
17715
  tags:
17616
17716
  - domain_forward
17717
+ x-required-permissions:
17718
+ - domain_forwards:read
17617
17719
  /v1/domain-forwards/metrics/user-agent:
17618
17720
  get:
17619
17721
  description: Retrieves visitor traffic broken down by user agent string with
@@ -17747,6 +17849,8 @@ paths:
17747
17849
  summary: Get user agent statistics
17748
17850
  tags:
17749
17851
  - domain_forward
17852
+ x-required-permissions:
17853
+ - domain_forwards:read
17750
17854
  /v1/domain-forwards/metrics/visits-by-key:
17751
17855
  get:
17752
17856
  description: Retrieves visit metrics grouped by a specified key (url, fqdn,
@@ -17901,6 +18005,8 @@ paths:
17901
18005
  summary: Get visits grouped by key
17902
18006
  tags:
17903
18007
  - domain_forward
18008
+ x-required-permissions:
18009
+ - domain_forwards:read
17904
18010
  /v1/domain-forwards/{hostname}:
17905
18011
  delete:
17906
18012
  description: Deletes the domain forward configuration for the specified hostname
@@ -17965,6 +18071,8 @@ paths:
17965
18071
  summary: Delete a domain forward
17966
18072
  tags:
17967
18073
  - domain_forward
18074
+ x-required-permissions:
18075
+ - domain_forwards:delete
17968
18076
  get:
17969
18077
  description: Retrieves the domain forward configuration for the specified hostname
17970
18078
  operationId: get_domain_forward_v1_domain_forwards__hostname__get
@@ -18067,6 +18175,8 @@ paths:
18067
18175
  summary: Get a domain forward
18068
18176
  tags:
18069
18177
  - domain_forward
18178
+ x-required-permissions:
18179
+ - domain_forwards:read
18070
18180
  post:
18071
18181
  description: Creates a new domain forward set for a specific protocol (HTTP
18072
18182
  or HTTPS). Raises an error if the set already exists.
@@ -18171,6 +18281,8 @@ paths:
18171
18281
  summary: Create domain forward set
18172
18282
  tags:
18173
18283
  - domain_forward
18284
+ x-required-permissions:
18285
+ - domain_forwards:manage
18174
18286
  /v1/domain-forwards/{hostname}/disable:
18175
18287
  patch:
18176
18288
  description: Disables domain forwarding by removing DNS records. The domain
@@ -18225,6 +18337,8 @@ paths:
18225
18337
  summary: Disable domain forward
18226
18338
  tags:
18227
18339
  - domain_forward
18340
+ x-required-permissions:
18341
+ - domain_forwards:manage
18228
18342
  /v1/domain-forwards/{hostname}/enable:
18229
18343
  patch:
18230
18344
  description: Enables domain forwarding by creating necessary DNS records
@@ -18278,6 +18392,8 @@ paths:
18278
18392
  summary: Enable domain forward
18279
18393
  tags:
18280
18394
  - domain_forward
18395
+ x-required-permissions:
18396
+ - domain_forwards:manage
18281
18397
  /v1/domain-forwards/{hostname}/{protocol}:
18282
18398
  delete:
18283
18399
  description: Deletes a domain forward set for a specific protocol (HTTP or HTTPS).
@@ -18348,6 +18464,8 @@ paths:
18348
18464
  summary: Delete domain forward set
18349
18465
  tags:
18350
18466
  - domain_forward
18467
+ x-required-permissions:
18468
+ - domain_forwards:delete
18351
18469
  get:
18352
18470
  description: Retrieves all redirects for a specific protocol (HTTP or HTTPS)
18353
18471
  for the specified hostname
@@ -18456,6 +18574,8 @@ paths:
18456
18574
  summary: Get domain forward set
18457
18575
  tags:
18458
18576
  - domain_forward
18577
+ x-required-permissions:
18578
+ - domain_forwards:read
18459
18579
  put:
18460
18580
  description: Updates an existing domain forward set for a specific protocol
18461
18581
  (HTTP or HTTPS). All existing redirects for this protocol are replaced with
@@ -18555,6 +18675,8 @@ paths:
18555
18675
  summary: Update domain forward set
18556
18676
  tags:
18557
18677
  - domain_forward
18678
+ x-required-permissions:
18679
+ - domain_forwards:manage
18558
18680
  /v1/domain-search/suggest:
18559
18681
  get:
18560
18682
  description: Get a list of domain suggestions based on a search query
@@ -18918,6 +19040,8 @@ paths:
18918
19040
  summary: List all domains
18919
19041
  tags:
18920
19042
  - domain
19043
+ x-required-permissions:
19044
+ - domains:read
18921
19045
  post:
18922
19046
  description: 'Registers a new domain.
18923
19047
 
@@ -19035,6 +19159,8 @@ paths:
19035
19159
  summary: Create a domain
19036
19160
  tags:
19037
19161
  - domain
19162
+ x-required-permissions:
19163
+ - domains:manage
19038
19164
  /v1/domains/check:
19039
19165
  get:
19040
19166
  description: 'Performs a real-time check against the authoritative registry
@@ -19122,6 +19248,8 @@ paths:
19122
19248
  summary: Check domain availability and registration metadata
19123
19249
  tags:
19124
19250
  - domain
19251
+ x-required-permissions:
19252
+ - domains:read
19125
19253
  /v1/domains/claims-notices:
19126
19254
  post:
19127
19255
  description: Retrieves the trademark claims notice for a `claims_key` returned
@@ -19181,6 +19309,8 @@ paths:
19181
19309
  summary: Retrieve claims notices from claim keys
19182
19310
  tags:
19183
19311
  - domain
19312
+ x-required-permissions:
19313
+ - domains:manage
19184
19314
  /v1/domains/summary:
19185
19315
  get:
19186
19316
  description: Retrieves a summary of domains including counts by status, TLD,
@@ -19205,6 +19335,8 @@ paths:
19205
19335
  summary: Get domain summary
19206
19336
  tags:
19207
19337
  - domain
19338
+ x-required-permissions:
19339
+ - domains:read
19208
19340
  /v1/domains/tld-specific/at/{domain_reference}/withdraw:
19209
19341
  post:
19210
19342
  operationId: withdraw_domain_v1_domains_tld_specific_at__domain_reference__withdraw_post
@@ -19261,6 +19393,8 @@ paths:
19261
19393
  tags:
19262
19394
  - domain
19263
19395
  - domain_tld_specific
19396
+ x-required-permissions:
19397
+ - domains:manage
19264
19398
  /v1/domains/tld-specific/be/{domain_reference}/auth_code/request:
19265
19399
  post:
19266
19400
  operationId: request_auth_code_v1_domains_tld_specific_be__domain_reference__auth_code_request_post
@@ -19325,6 +19459,8 @@ paths:
19325
19459
  tags:
19326
19460
  - domain
19327
19461
  - domain_tld_specific
19462
+ x-required-permissions:
19463
+ - domains:manage
19328
19464
  /v1/domains/tld-specific/de/{domain_reference}/transit:
19329
19465
  post:
19330
19466
  operationId: transit_domain_v1_domains_tld_specific_de__domain_reference__transit_post
@@ -19381,6 +19517,8 @@ paths:
19381
19517
  tags:
19382
19518
  - domain
19383
19519
  - domain_tld_specific
19520
+ x-required-permissions:
19521
+ - domains:manage
19384
19522
  /v1/domains/tld-specific/eu/{domain_reference}/auth_code/request:
19385
19523
  post:
19386
19524
  operationId: request_auth_code_v1_domains_tld_specific_eu__domain_reference__auth_code_request_post
@@ -19445,6 +19583,8 @@ paths:
19445
19583
  tags:
19446
19584
  - domain
19447
19585
  - domain_tld_specific
19586
+ x-required-permissions:
19587
+ - domains:manage
19448
19588
  /v1/domains/transfer:
19449
19589
  post:
19450
19590
  description: 'Start the transfer process for a domain <br>
@@ -19588,6 +19728,8 @@ paths:
19588
19728
  summary: Transfer a domain
19589
19729
  tags:
19590
19730
  - domain
19731
+ x-required-permissions:
19732
+ - domains:manage
19591
19733
  /v1/domains/{domain_reference}:
19592
19734
  delete:
19593
19735
  description: 'Initiates the deletion process for a domain. The domain will be
@@ -19651,6 +19793,8 @@ paths:
19651
19793
  summary: Delete a domain
19652
19794
  tags:
19653
19795
  - domain
19796
+ x-required-permissions:
19797
+ - domains:delete
19654
19798
  get:
19655
19799
  description: Retrieves a single active domain by either its name or id
19656
19800
  operationId: get_domain_v1_domains__domain_reference__get
@@ -19712,6 +19856,8 @@ paths:
19712
19856
  summary: Retrieve a domain
19713
19857
  tags:
19714
19858
  - domain
19859
+ x-required-permissions:
19860
+ - domains:read
19715
19861
  patch:
19716
19862
  description: 'Updates various attributes of an existing domain. Only the fields
19717
19863
  provided in the request
@@ -19783,6 +19929,8 @@ paths:
19783
19929
  summary: Update a domain
19784
19930
  tags:
19785
19931
  - domain
19932
+ x-required-permissions:
19933
+ - domains:manage
19786
19934
  /v1/domains/{domain_reference}/dnssec:
19787
19935
  delete:
19788
19936
  description: Removes all DNSSEC data for a domain
@@ -19829,6 +19977,8 @@ paths:
19829
19977
  summary: Delete DNSSEC data
19830
19978
  tags:
19831
19979
  - domain
19980
+ x-required-permissions:
19981
+ - domains:manage
19832
19982
  get:
19833
19983
  description: Fetches all DNSSEC records associated with the specified domain.
19834
19984
  operationId: get_dnssec_v1_domains__domain_reference__dnssec_get
@@ -19881,6 +20031,8 @@ paths:
19881
20031
  summary: Retrieve DNSSEC data
19882
20032
  tags:
19883
20033
  - domain
20034
+ x-required-permissions:
20035
+ - domains:read
19884
20036
  put:
19885
20037
  description: Replaces all existing DNSSEC records for the domain with the provided
19886
20038
  records.
@@ -19950,6 +20102,8 @@ paths:
19950
20102
  summary: Update DNSSEC data
19951
20103
  tags:
19952
20104
  - domain
20105
+ x-required-permissions:
20106
+ - domains:manage
19953
20107
  /v1/domains/{domain_reference}/dnssec/disable:
19954
20108
  post:
19955
20109
  operationId: disable_and_unpublish_dnssec_records_v1_domains__domain_reference__dnssec_disable_post
@@ -19995,6 +20149,8 @@ paths:
19995
20149
  summary: Disable DNSSEC for domains using our nameservers
19996
20150
  tags:
19997
20151
  - domain
20152
+ x-required-permissions:
20153
+ - domains:manage
19998
20154
  /v1/domains/{domain_reference}/dnssec/enable:
19999
20155
  post:
20000
20156
  operationId: enable_and_publish_dnssec_records_v1_domains__domain_reference__dnssec_enable_post
@@ -20048,6 +20204,8 @@ paths:
20048
20204
  summary: Enable DNSSEC for domains using our nameservers
20049
20205
  tags:
20050
20206
  - domain
20207
+ x-required-permissions:
20208
+ - domains:manage
20051
20209
  /v1/domains/{domain_reference}/renew:
20052
20210
  post:
20053
20211
  description: 'Extends the registration period of an existing domain. The renewal
@@ -20094,6 +20252,8 @@ paths:
20094
20252
  summary: Renew a domain
20095
20253
  tags:
20096
20254
  - domain
20255
+ x-required-permissions:
20256
+ - domains:manage
20097
20257
  /v1/domains/{domain_reference}/restore:
20098
20258
  post:
20099
20259
  operationId: restore_domain_v1_domains__domain_reference__restore_post
@@ -20136,6 +20296,8 @@ paths:
20136
20296
  summary: Restore an eligible domain (during redemption period)
20137
20297
  tags:
20138
20298
  - domain
20299
+ x-required-permissions:
20300
+ - domains:manage
20139
20301
  /v1/domains/{domain_reference}/transfer:
20140
20302
  delete:
20141
20303
  description: This will cancel the in-progress domain transfer and delete the
@@ -20197,6 +20359,8 @@ paths:
20197
20359
  summary: Cancel a domain transfer
20198
20360
  tags:
20199
20361
  - domain
20362
+ x-required-permissions:
20363
+ - domains:manage
20200
20364
  /v1/email-forwards:
20201
20365
  get:
20202
20366
  description: Retrieves a paginated list of all email forwards for the organization.
@@ -20290,6 +20454,8 @@ paths:
20290
20454
  summary: List all email forwards
20291
20455
  tags:
20292
20456
  - email_forward
20457
+ x-required-permissions:
20458
+ - email_forwards:read
20293
20459
  post:
20294
20460
  description: 'Creates an email forward configuration with optional aliases.
20295
20461
  Can be created enabled or disabled (default: disabled). Includes created_on
@@ -20431,6 +20597,9 @@ paths:
20431
20597
  summary: Create email forward configuration
20432
20598
  tags:
20433
20599
  - email_forward
20600
+ x-required-permissions:
20601
+ - dns:manage
20602
+ - email_forwards:manage
20434
20603
  /v1/email-forwards/{email_forward_id}:
20435
20604
  delete:
20436
20605
  description: Permanently deletes the email forward configuration including all
@@ -20488,6 +20657,8 @@ paths:
20488
20657
  summary: Delete email forward configuration
20489
20658
  tags:
20490
20659
  - email_forward
20660
+ x-required-permissions:
20661
+ - email_forwards:delete
20491
20662
  get:
20492
20663
  description: Retrieves the email forward configuration for the specified email
20493
20664
  forward including all aliases
@@ -20559,6 +20730,8 @@ paths:
20559
20730
  summary: Get email forward configuration
20560
20731
  tags:
20561
20732
  - email_forward
20733
+ x-required-permissions:
20734
+ - email_forwards:read
20562
20735
  /v1/email-forwards/{email_forward_id}/aliases:
20563
20736
  post:
20564
20737
  description: Creates a new email forward alias for the specified email forward.
@@ -20684,6 +20857,8 @@ paths:
20684
20857
  summary: Create email forward alias
20685
20858
  tags:
20686
20859
  - email_forward
20860
+ x-required-permissions:
20861
+ - email_forwards:manage
20687
20862
  /v1/email-forwards/{email_forward_id}/aliases/{alias_id}:
20688
20863
  delete:
20689
20864
  description: Deletes a specific email forward alias specified by email_forward_alias_id
@@ -20764,6 +20939,8 @@ paths:
20764
20939
  summary: Delete email forward alias
20765
20940
  tags:
20766
20941
  - email_forward
20942
+ x-required-permissions:
20943
+ - email_forwards:manage
20767
20944
  put:
20768
20945
  description: Updates the forward_to address for a specific email forward alias
20769
20946
  specified by email_forward_alias_id
@@ -20853,6 +21030,8 @@ paths:
20853
21030
  summary: Update email forward alias
20854
21031
  tags:
20855
21032
  - email_forward
21033
+ x-required-permissions:
21034
+ - email_forwards:manage
20856
21035
  /v1/email-forwards/{email_forward_id}/disable:
20857
21036
  patch:
20858
21037
  description: Disables email forwarding by removing MX and SPF DNS records and
@@ -20922,6 +21101,8 @@ paths:
20922
21101
  summary: Disable email forwarding
20923
21102
  tags:
20924
21103
  - email_forward
21104
+ x-required-permissions:
21105
+ - email_forwards:manage
20925
21106
  /v1/email-forwards/{email_forward_id}/enable:
20926
21107
  patch:
20927
21108
  description: Enables email forwarding by creating necessary MX and SPF DNS records
@@ -20990,6 +21171,8 @@ paths:
20990
21171
  summary: Enable email forwarding
20991
21172
  tags:
20992
21173
  - email_forward
21174
+ x-required-permissions:
21175
+ - email_forwards:manage
20993
21176
  /v1/email-forwards/{email_forward_id}/metrics:
20994
21177
  get:
20995
21178
  description: Retrieves metrics and statistics for a specific email forward,
@@ -21080,6 +21263,8 @@ paths:
21080
21263
  summary: Retrieve email forward metrics
21081
21264
  tags:
21082
21265
  - email_forward
21266
+ x-required-permissions:
21267
+ - email_forwards:read
21083
21268
  /v1/events:
21084
21269
  get:
21085
21270
  description: Retrieves a paginated list of events for the organization
@@ -21186,6 +21371,8 @@ paths:
21186
21371
  summary: Get pending events
21187
21372
  tags:
21188
21373
  - event
21374
+ x-required-permissions:
21375
+ - events:read
21189
21376
  /v1/events/{event_id}:
21190
21377
  get:
21191
21378
  description: Get an event by its ID
@@ -21246,6 +21433,8 @@ paths:
21246
21433
  summary: Get event
21247
21434
  tags:
21248
21435
  - event
21436
+ x-required-permissions:
21437
+ - events:read
21249
21438
  patch:
21250
21439
  description: Acknowledge an event
21251
21440
  operationId: acknowledge_event_v1_events__event_id__patch
@@ -21301,6 +21490,8 @@ paths:
21301
21490
  summary: Acknowledge event
21302
21491
  tags:
21303
21492
  - event
21493
+ x-required-permissions:
21494
+ - events:manage
21304
21495
  /v1/job/{job_id}:
21305
21496
  delete:
21306
21497
  operationId: delete_job_v1_job__job_id__delete
@@ -21345,6 +21536,8 @@ paths:
21345
21536
  summary: Delete (cancel) a queued job
21346
21537
  tags:
21347
21538
  - jobs
21539
+ x-required-permissions:
21540
+ - jobs:manage
21348
21541
  get:
21349
21542
  operationId: get_job_v1_job__job_id__get
21350
21543
  parameters:
@@ -21392,6 +21585,8 @@ paths:
21392
21585
  summary: Get individual job details
21393
21586
  tags:
21394
21587
  - jobs
21588
+ x-required-permissions:
21589
+ - jobs:read
21395
21590
  /v1/job/{job_id}/pause:
21396
21591
  post:
21397
21592
  operationId: pause_job_v1_job__job_id__pause_post
@@ -21436,6 +21631,8 @@ paths:
21436
21631
  summary: Pause a job
21437
21632
  tags:
21438
21633
  - jobs
21634
+ x-required-permissions:
21635
+ - jobs:manage
21439
21636
  /v1/job/{job_id}/resume:
21440
21637
  post:
21441
21638
  operationId: resume_job_v1_job__job_id__resume_post
@@ -21484,6 +21681,8 @@ paths:
21484
21681
  summary: Resume a paused job
21485
21682
  tags:
21486
21683
  - jobs
21684
+ x-required-permissions:
21685
+ - jobs:manage
21487
21686
  /v1/job/{job_id}/retry:
21488
21687
  post:
21489
21688
  operationId: retry_job_v1_job__job_id__retry_post
@@ -21544,6 +21743,8 @@ paths:
21544
21743
  summary: Retry a failed or dead-lettered job
21545
21744
  tags:
21546
21745
  - jobs
21746
+ x-required-permissions:
21747
+ - jobs:manage
21547
21748
  /v1/jobs:
21548
21749
  get:
21549
21750
  operationId: list_batches_v1_jobs_get
@@ -21610,6 +21811,8 @@ paths:
21610
21811
  summary: List batches for organization
21611
21812
  tags:
21612
21813
  - jobs
21814
+ x-required-permissions:
21815
+ - jobs:read
21613
21816
  post:
21614
21817
  operationId: create_batch_v1_jobs_post
21615
21818
  requestBody:
@@ -22096,6 +22299,12 @@ paths:
22096
22299
  summary: Create a batch of commands for async execution
22097
22300
  tags:
22098
22301
  - jobs
22302
+ x-required-permissions:
22303
+ - contacts:manage
22304
+ - dns:manage
22305
+ - domains:manage
22306
+ - jobs:manage
22307
+ - parking:manage
22099
22308
  /v1/jobs/{batch_id}:
22100
22309
  delete:
22101
22310
  operationId: delete_batch_v1_jobs__batch_id__delete
@@ -22140,6 +22349,8 @@ paths:
22140
22349
  summary: Delete (cancel) all queued jobs in a batch
22141
22350
  tags:
22142
22351
  - jobs
22352
+ x-required-permissions:
22353
+ - jobs:manage
22143
22354
  get:
22144
22355
  operationId: get_batch_v1_jobs__batch_id__get
22145
22356
  parameters:
@@ -22246,6 +22457,8 @@ paths:
22246
22457
  summary: Get batch details and execution status
22247
22458
  tags:
22248
22459
  - jobs
22460
+ x-required-permissions:
22461
+ - jobs:read
22249
22462
  /v1/jobs/{batch_id}/jobs:
22250
22463
  get:
22251
22464
  operationId: get_batch_jobs_v1_jobs__batch_id__jobs_get
@@ -22529,6 +22742,8 @@ paths:
22529
22742
  summary: Get individual jobs within a batch
22530
22743
  tags:
22531
22744
  - jobs
22745
+ x-required-permissions:
22746
+ - jobs:read
22532
22747
  /v1/jobs/{batch_id}/pause:
22533
22748
  post:
22534
22749
  operationId: pause_batch_v1_jobs__batch_id__pause_post
@@ -22573,6 +22788,8 @@ paths:
22573
22788
  summary: Pause all eligible jobs in a batch
22574
22789
  tags:
22575
22790
  - jobs
22791
+ x-required-permissions:
22792
+ - jobs:manage
22576
22793
  /v1/jobs/{batch_id}/resume:
22577
22794
  post:
22578
22795
  operationId: resume_batch_v1_jobs__batch_id__resume_post
@@ -22617,6 +22834,8 @@ paths:
22617
22834
  summary: Resume all paused jobs in a batch
22618
22835
  tags:
22619
22836
  - jobs
22837
+ x-required-permissions:
22838
+ - jobs:manage
22620
22839
  /v1/jobs/{batch_id}/retry:
22621
22840
  post:
22622
22841
  operationId: retry_batch_v1_jobs__batch_id__retry_post
@@ -22683,6 +22902,8 @@ paths:
22683
22902
  summary: Retry failed and dead-lettered jobs in a batch
22684
22903
  tags:
22685
22904
  - jobs
22905
+ x-required-permissions:
22906
+ - jobs:manage
22686
22907
  /v1/organizations:
22687
22908
  get:
22688
22909
  description: Retrieves a paginated list of organizations under the current organization
@@ -23707,6 +23928,8 @@ paths:
23707
23928
  summary: List all invoices for the organization
23708
23929
  tags:
23709
23930
  - organization
23931
+ x-required-permissions:
23932
+ - billing:manage
23710
23933
  /v1/organizations/{organization_id}/pricing/product-type/{product_type}:
23711
23934
  get:
23712
23935
  description: Retrieves pricing data for a specific product type. If a product
@@ -24117,6 +24340,8 @@ paths:
24117
24340
  summary: List parking entries
24118
24341
  tags:
24119
24342
  - parking
24343
+ x-required-permissions:
24344
+ - parking:read
24120
24345
  /v1/parking/metrics:
24121
24346
  get:
24122
24347
  description: Retrieves aggregated metrics for all parking entries of the organization.
@@ -24183,6 +24408,8 @@ paths:
24183
24408
  summary: Get total metrics for all parking entries
24184
24409
  tags:
24185
24410
  - parking
24411
+ x-required-permissions:
24412
+ - parking:read
24186
24413
  /v1/parking/signup:
24187
24414
  post:
24188
24415
  description: Accept the parking agreement to enable parking features for your
@@ -24236,6 +24463,8 @@ paths:
24236
24463
  summary: Sign up for parking
24237
24464
  tags:
24238
24465
  - parking
24466
+ x-required-permissions:
24467
+ - parking:manage
24239
24468
  /v1/parking/signup/status:
24240
24469
  get:
24241
24470
  description: Check if your organization has accepted the parking agreement.
@@ -24283,6 +24512,8 @@ paths:
24283
24512
  summary: Get parking signup status
24284
24513
  tags:
24285
24514
  - parking
24515
+ x-required-permissions:
24516
+ - parking:read
24286
24517
  /v1/parking/{parking_reference}/metrics:
24287
24518
  get:
24288
24519
  description: Retrieves metrics for a specific parking entry by ID or domain
@@ -24375,6 +24606,8 @@ paths:
24375
24606
  summary: Get metrics for a parking entry
24376
24607
  tags:
24377
24608
  - parking
24609
+ x-required-permissions:
24610
+ - parking:read
24378
24611
  /v1/reports:
24379
24612
  get:
24380
24613
  operationId: list_reports_v1_reports_get
@@ -24631,6 +24864,8 @@ paths:
24631
24864
  summary: List tags
24632
24865
  tags:
24633
24866
  - tag
24867
+ x-required-permissions:
24868
+ - tags:read
24634
24869
  post:
24635
24870
  description: Create a new tag
24636
24871
  operationId: create_tag_v1_tags_post
@@ -24684,6 +24919,8 @@ paths:
24684
24919
  summary: Create a tag
24685
24920
  tags:
24686
24921
  - tag
24922
+ x-required-permissions:
24923
+ - tags:manage
24687
24924
  /v1/tags/objects:
24688
24925
  post:
24689
24926
  description: Add, remove, or replace tags on multiple objects at once. 'replace'
@@ -24752,6 +24989,8 @@ paths:
24752
24989
  summary: Bulk tag or untag objects
24753
24990
  tags:
24754
24991
  - tag
24992
+ x-required-permissions:
24993
+ - tags:manage
24755
24994
  /v1/tags/{tag_id}:
24756
24995
  delete:
24757
24996
  description: Delete a tag
@@ -24808,6 +25047,8 @@ paths:
24808
25047
  summary: Delete a tag
24809
25048
  tags:
24810
25049
  - tag
25050
+ x-required-permissions:
25051
+ - tags:delete
24811
25052
  get:
24812
25053
  description: Retrieve a single tag by its ID
24813
25054
  operationId: get_tag_v1_tags__tag_id__get
@@ -24867,6 +25108,8 @@ paths:
24867
25108
  summary: Get a tag
24868
25109
  tags:
24869
25110
  - tag
25111
+ x-required-permissions:
25112
+ - tags:read
24870
25113
  patch:
24871
25114
  description: Update a tag's label, description, or color
24872
25115
  operationId: update_tag_v1_tags__tag_id__patch
@@ -24945,6 +25188,8 @@ paths:
24945
25188
  summary: Update a tag
24946
25189
  tags:
24947
25190
  - tag
25191
+ x-required-permissions:
25192
+ - tags:manage
24948
25193
  /v1/tags/{tag_id}/objects:
24949
25194
  post:
24950
25195
  description: Add or remove objects from a tag. Objects are matched by the tag's
@@ -25012,6 +25257,8 @@ paths:
25012
25257
  summary: Tag or untag objects
25013
25258
  tags:
25014
25259
  - tag
25260
+ x-required-permissions:
25261
+ - tags:manage
25015
25262
  /v1/tlds/:
25016
25263
  get:
25017
25264
  description: Retrieves a list of TLD Specifications we have support for
@@ -25155,6 +25402,8 @@ paths:
25155
25402
  summary: Create a user
25156
25403
  tags:
25157
25404
  - user
25405
+ x-required-permissions:
25406
+ - users:manage
25158
25407
  /v1/users/me:
25159
25408
  get:
25160
25409
  description: Get the current user
@@ -25188,6 +25437,8 @@ paths:
25188
25437
  summary: Get current user
25189
25438
  tags:
25190
25439
  - user
25440
+ x-required-permissions:
25441
+ - users:read
25191
25442
  /v1/users/me/password-reset:
25192
25443
  patch:
25193
25444
  operationId: change_password_v1_users_me_password_reset_patch
@@ -25223,6 +25474,8 @@ paths:
25223
25474
  summary: Change Password
25224
25475
  tags:
25225
25476
  - user
25477
+ x-required-permissions:
25478
+ - users:manage
25226
25479
  /v1/users/{user_id}:
25227
25480
  delete:
25228
25481
  description: Delete a user by ID
@@ -25278,6 +25531,8 @@ paths:
25278
25531
  summary: Delete a user
25279
25532
  tags:
25280
25533
  - user
25534
+ x-required-permissions:
25535
+ - users:delete
25281
25536
  get:
25282
25537
  description: Get a user by ID
25283
25538
  operationId: get_user_v1_users__user_id__get
@@ -25322,6 +25577,8 @@ paths:
25322
25577
  summary: Get a user
25323
25578
  tags:
25324
25579
  - user
25580
+ x-required-permissions:
25581
+ - users:read
25325
25582
  patch:
25326
25583
  description: Update a user by ID
25327
25584
  operationId: update_user_v1_users__user_id__patch
@@ -25362,6 +25619,8 @@ paths:
25362
25619
  summary: Update a user
25363
25620
  tags:
25364
25621
  - user
25622
+ x-required-permissions:
25623
+ - users:manage
25365
25624
  /v1/users/{user_id}/permissions:
25366
25625
  get:
25367
25626
  description: Get the permissions for a user
@@ -25397,6 +25656,8 @@ paths:
25397
25656
  summary: Get user permissions
25398
25657
  tags:
25399
25658
  - user
25659
+ x-required-permissions:
25660
+ - users:read
25400
25661
  /v1/users/{user_id}/role:
25401
25662
  get:
25402
25663
  description: Get the role for a user
@@ -25432,6 +25693,8 @@ paths:
25432
25693
  summary: Get user role
25433
25694
  tags:
25434
25695
  - user
25696
+ x-required-permissions:
25697
+ - users:read
25435
25698
  put:
25436
25699
  description: Set the role for a user, replacing any existing role
25437
25700
  operationId: set_user_role_v1_users__user_id__role_put
@@ -25451,7 +25714,7 @@ paths:
25451
25714
  content:
25452
25715
  application/json:
25453
25716
  schema:
25454
- $ref: '#/components/schemas/PublicRoleAssignment'
25717
+ $ref: '#/components/schemas/PublicRoleAssignmentRequest'
25455
25718
  required: true
25456
25719
  responses:
25457
25720
  '200':
@@ -25460,6 +25723,18 @@ paths:
25460
25723
  schema:
25461
25724
  $ref: '#/components/schemas/PublicRoleAssignment'
25462
25725
  description: Successful Response
25726
+ '403':
25727
+ content:
25728
+ application/problem+json:
25729
+ example:
25730
+ code: ERROR_ONLY_OWNER_CAN_MANAGE_ADMIN_ROLE
25731
+ detail: Additional error context.
25732
+ status: 403
25733
+ title: User Management Error
25734
+ type: only-owner-can-manage-admin-role
25735
+ schema:
25736
+ $ref: '#/components/schemas/Problem'
25737
+ description: Forbidden
25463
25738
  '422':
25464
25739
  content:
25465
25740
  application/problem+json:
@@ -25468,7 +25743,6 @@ paths:
25468
25743
  description: Validation Error
25469
25744
  security:
25470
25745
  - OAuth2PasswordBearer: []
25471
- - APIKeyHeader: []
25472
25746
  summary: Set user role
25473
25747
  tags:
25474
25748
  - user
package/src/schema.d.ts CHANGED
@@ -2462,6 +2462,11 @@ export interface components {
2462
2462
  */
2463
2463
  min: number;
2464
2464
  };
2465
+ /**
2466
+ * AssignablePublicRole
2467
+ * @enum {string}
2468
+ */
2469
+ AssignablePublicRole: "admin" | "viewer" | "domain_manager" | "dns_manager" | "billing_manager";
2465
2470
  /** AttributeCondition */
2466
2471
  AttributeCondition: {
2467
2472
  /** @description The attribute key to evaluate */
@@ -8673,11 +8678,15 @@ export interface components {
8673
8678
  * PublicRole
8674
8679
  * @enum {string}
8675
8680
  */
8676
- PublicRole: "admin" | "viewer" | "domain_manager" | "dns_manager" | "billing_manager";
8681
+ PublicRole: "owner" | "admin" | "viewer" | "domain_manager" | "dns_manager" | "billing_manager";
8677
8682
  /** PublicRoleAssignment */
8678
8683
  PublicRoleAssignment: {
8679
8684
  role?: components["schemas"]["PublicRole"] | null;
8680
8685
  };
8686
+ /** PublicRoleAssignmentRequest */
8687
+ PublicRoleAssignmentRequest: {
8688
+ role?: components["schemas"]["AssignablePublicRole"] | null;
8689
+ };
8681
8690
  /**
8682
8691
  * PublicScope
8683
8692
  * @enum {string}
@@ -20649,7 +20658,7 @@ export interface operations {
20649
20658
  };
20650
20659
  requestBody: {
20651
20660
  content: {
20652
- "application/json": components["schemas"]["PublicRoleAssignment"];
20661
+ "application/json": components["schemas"]["PublicRoleAssignmentRequest"];
20653
20662
  };
20654
20663
  };
20655
20664
  responses: {
@@ -20662,6 +20671,22 @@ export interface operations {
20662
20671
  "application/json": components["schemas"]["PublicRoleAssignment"];
20663
20672
  };
20664
20673
  };
20674
+ /** @description Forbidden */
20675
+ 403: {
20676
+ headers: {
20677
+ [name: string]: unknown;
20678
+ };
20679
+ content: {
20680
+ /** @example {
20681
+ * "code": "ERROR_ONLY_OWNER_CAN_MANAGE_ADMIN_ROLE",
20682
+ * "detail": "Additional error context.",
20683
+ * "status": 403,
20684
+ * "title": "User Management Error",
20685
+ * "type": "only-owner-can-manage-admin-role"
20686
+ * } */
20687
+ "application/problem+json": components["schemas"]["Problem"];
20688
+ };
20689
+ };
20665
20690
  /** @description Validation Error */
20666
20691
  422: {
20667
20692
  headers: {