@opusdns/api 0.24.0 → 0.26.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.24.0",
11
+ "version": "0.26.0",
12
12
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
13
13
  "main": "./src/index.ts",
14
14
  "module": "./src/index.ts",
@@ -1554,6 +1554,7 @@ export const PERMISSION = {
1554
1554
  CREATE: "create",
1555
1555
  DELETE: "delete",
1556
1556
  ENTERPRISE: "enterprise",
1557
+ HAS_ACCEPTED_TOS: "has_accepted_tos",
1557
1558
  MANAGE_API_KEYS: "manage_api_keys",
1558
1559
  MANAGE_BILLING: "manage_billing",
1559
1560
  MANAGE_CMS_CONTENT: "manage_cms_content",
@@ -1570,7 +1571,6 @@ export const PERMISSION = {
1570
1571
  PREMIUM: "premium",
1571
1572
  PREMIUM_RESELLER: "premium_reseller",
1572
1573
  RENEW_EXPIRE: "renew_expire",
1573
- SIGN_ORG_TOS: "sign_org_tos",
1574
1574
  STARTER: "starter",
1575
1575
  TRANSFER_TRADE: "transfer_trade",
1576
1576
  UPDATE: "update",
@@ -1610,6 +1610,7 @@ export const PERMISSION_VALUES = [
1610
1610
  'create',
1611
1611
  'delete',
1612
1612
  'enterprise',
1613
+ 'has_accepted_tos',
1613
1614
  'manage_api_keys',
1614
1615
  'manage_billing',
1615
1616
  'manage_cms_content',
@@ -1626,7 +1627,6 @@ export const PERMISSION_VALUES = [
1626
1627
  'premium',
1627
1628
  'premium_reseller',
1628
1629
  'renew_expire',
1629
- 'sign_org_tos',
1630
1630
  'starter',
1631
1631
  'transfer_trade',
1632
1632
  'update',
@@ -14622,7 +14622,7 @@ export const KEY_SIGNUP_CREATE_ORGANIZATION = 'organization' as keyof SignupCrea
14622
14622
  /**
14623
14623
  * terms_of_service property
14624
14624
  *
14625
- * Optional terms of service acceptance.
14625
+ * Terms of service acceptance.
14626
14626
  *
14627
14627
  *
14628
14628
  *
@@ -14851,6 +14851,7 @@ export const KEYS_SPICE_DB_RELATIONSHIP_UPDATE = [
14851
14851
  /**
14852
14852
  * Accepted
14853
14853
  *
14854
+ * The organization accepts Terms of Service.
14854
14855
  *
14855
14856
  * @type {boolean}
14856
14857
  *
@@ -34,7 +34,7 @@ import { operations } from '../schema';
34
34
 
35
35
  import { DomainDnssecDataCreateArray, OrganizationAttributeUpdateArray } from './schemas-arrays.d';
36
36
 
37
- import { OrganizationCredentialExtra, SignupCreate, ContactCreate, DnsZoneCreate, DnsZoneRecordsPatchOps, DnsZoneRrsetsPatchOps, DnsZoneRrsetsCreate, DomainCreate, DomainUpdate, DomainRenewRequest, DomainTransferIn, EmailForwardAlias, EmailForwardAliasUpdate, NotificationCreate, NotificationUpdate, OrganizationCreate, IpRestrictionCreate, IpRestrictionUpdate, OrganizationUpdate, PlanUpdate, UserCreate, TermsOfServiceAccept, UserUpdate, SpiceDbRelationshipUpdate } from './schemas.d';
37
+ import { OrganizationCredentialExtra, SignupCreate, ContactCreate, DnsZoneCreate, DnsZoneRecordsPatchOps, DnsZoneRrsetsPatchOps, DnsZoneRrsetsCreate, DomainCreate, DomainUpdate, DomainRenewRequest, DomainTransferIn, EmailForwardAlias, EmailForwardAliasUpdate, NotificationCreate, NotificationUpdate, OrganizationCreate, IpRestrictionCreate, IpRestrictionUpdate, OrganizationUpdate, PlanUpdate, UserCreate, UserUpdate, SpiceDbRelationshipUpdate } from './schemas.d';
38
38
 
39
39
  /**
40
40
  * Request type for GET AuthClientCredentials endpoint
@@ -3347,42 +3347,6 @@ export type POST_Users_Request = {
3347
3347
  */
3348
3348
  export type POST_Users_Request_Body = POST_Users_Request['requestBody'];
3349
3349
 
3350
- /**
3351
- * Request type for POST UsersAcceptTos endpoint
3352
- *
3353
- * Tos Sign
3354
- *
3355
- * @remarks
3356
- * This type defines the complete request structure for the POST UsersAcceptTos endpoint.
3357
- * It includes all parameters (query, path) and request body types as defined in the OpenAPI specification.
3358
- * Use this type to ensure type safety when making API requests to this endpoint.
3359
- *
3360
- * @example
3361
- * Use this type to ensure type safety when making API requests to this endpoint.
3362
- *
3363
- * @path /v1/users/accept-tos
3364
- *
3365
- * @see {@link POST_UsersAcceptTos_Request_Query} - Query parameters type
3366
- * @see {@link POST_UsersAcceptTos_Request_Path} - Path parameters type
3367
- * @see {@link POST_UsersAcceptTos_Request_Body} - Request body type
3368
- */
3369
- export type POST_UsersAcceptTos_Request = {
3370
- requestBody: TermsOfServiceAccept;
3371
- }
3372
- /**
3373
- * Request body for POST /v1/users/accept-tos
3374
- *
3375
- * @remarks
3376
- * This type defines the request body structure for the POST /v1/users/accept-tos endpoint.
3377
- * It provides type safety for the request body as defined in the OpenAPI specification.
3378
- *
3379
- * @example
3380
- * Use this type to ensure type safety for request body structure.
3381
- *
3382
- * @path /v1/users/accept-tos
3383
- */
3384
- export type POST_UsersAcceptTos_Request_Body = POST_UsersAcceptTos_Request['requestBody'];
3385
-
3386
3350
  /**
3387
3351
  * Request type for GET UsersMe endpoint
3388
3352
  *
@@ -4926,43 +4926,6 @@ export type POST_Users_Response_200 = User
4926
4926
  */
4927
4927
  export type POST_Users_Response_422 = HTTPValidationError
4928
4928
 
4929
- /**
4930
- * Response types for POST UsersAcceptTos endpoint
4931
- *
4932
- * Tos Sign
4933
- *
4934
- * @remarks
4935
- * This type defines all possible response structures for the POST UsersAcceptTos endpoint.
4936
- * Each response code maps to a specific response type as defined in the OpenAPI specification.
4937
- * Use this type to ensure type safety when handling API responses from this endpoint.
4938
- *
4939
-
4940
- *
4941
- * @path /v1/users/accept-tos
4942
- *
4943
- * @see {@link POST_UsersAcceptTos_Response_422} - 422 response type
4944
- *
4945
-
4946
- */
4947
- export type POST_UsersAcceptTos_Response = POST_UsersAcceptTos_Response_422;
4948
-
4949
- /**
4950
- * 422 response for POST UsersAcceptTos endpoint
4951
- *
4952
- * @remarks
4953
- * This type defines the response structure for the 422 status code
4954
- * of the POST UsersAcceptTos endpoint.
4955
- * It provides type safety for handling this specific response as defined in the OpenAPI specification.
4956
- *
4957
-
4958
- *
4959
- * @path /v1/users/accept-tos
4960
- *
4961
- * @see {@link POST_UsersAcceptTos_Response} - The main response type definition
4962
- * @see {@link HTTPValidationError} - The actual schema type definition
4963
- */
4964
- export type POST_UsersAcceptTos_Response_422 = HTTPValidationError
4965
-
4966
4929
  /**
4967
4930
  * Response types for DELETE UsersByUserId endpoint
4968
4931
  *
package/src/openapi.yaml CHANGED
@@ -3535,6 +3535,7 @@ components:
3535
3535
  - create
3536
3536
  - delete
3537
3537
  - enterprise
3538
+ - has_accepted_tos
3538
3539
  - manage_api_keys
3539
3540
  - manage_billing
3540
3541
  - manage_cms_content
@@ -3551,7 +3552,6 @@ components:
3551
3552
  - premium
3552
3553
  - premium_reseller
3553
3554
  - renew_expire
3554
- - sign_org_tos
3555
3555
  - starter
3556
3556
  - transfer_trade
3557
3557
  - update
@@ -3795,16 +3795,15 @@ components:
3795
3795
  $ref: '#/components/schemas/OrganizationCreate'
3796
3796
  description: Organization signup.
3797
3797
  terms_of_service:
3798
- anyOf:
3799
- - $ref: '#/components/schemas/TermsOfServiceAccept'
3800
- - type: 'null'
3801
- description: Optional terms of service acceptance.
3798
+ $ref: '#/components/schemas/TermsOfServiceAccept'
3799
+ description: Terms of service acceptance.
3802
3800
  user:
3803
3801
  $ref: '#/components/schemas/UserCreate'
3804
3802
  description: User signup to platform.
3805
3803
  required:
3806
3804
  - user
3807
3805
  - organization
3806
+ - terms_of_service
3808
3807
  title: SignupCreate
3809
3808
  type: object
3810
3809
  SldLength:
@@ -3864,6 +3863,7 @@ components:
3864
3863
  TermsOfServiceAccept:
3865
3864
  properties:
3866
3865
  accepted:
3866
+ description: The organization accepts Terms of Service.
3867
3867
  title: Accepted
3868
3868
  type: boolean
3869
3869
  required:
@@ -4785,7 +4785,7 @@ info:
4785
4785
  '
4786
4786
  summary: OpusDNS - your gateway to a seamless domain management experience.
4787
4787
  title: OpusDNS API
4788
- version: 2025-08-26-091019
4788
+ version: 2025-08-27-172818
4789
4789
  x-logo:
4790
4790
  altText: OpusDNS API Reference
4791
4791
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -8547,29 +8547,6 @@ paths:
8547
8547
  summary: Create User
8548
8548
  tags:
8549
8549
  - user
8550
- /v1/users/accept-tos:
8551
- post:
8552
- operationId: tos_sign_v1_users_accept_tos_post
8553
- requestBody:
8554
- content:
8555
- application/json:
8556
- schema:
8557
- $ref: '#/components/schemas/TermsOfServiceAccept'
8558
- required: true
8559
- responses:
8560
- '204':
8561
- description: Successful Response
8562
- '422':
8563
- content:
8564
- application/problem+json:
8565
- schema:
8566
- $ref: '#/components/schemas/HTTPValidationError'
8567
- description: Validation Error
8568
- security:
8569
- - OAuth2PasswordBearer: []
8570
- summary: Tos Sign
8571
- tags:
8572
- - user
8573
8550
  /v1/users/me:
8574
8551
  get:
8575
8552
  operationId: get_current_user_v1_users_me_get
package/src/schema.d.ts CHANGED
@@ -974,23 +974,6 @@ export interface paths {
974
974
  patch?: never;
975
975
  trace?: never;
976
976
  };
977
- "/v1/users/accept-tos": {
978
- parameters: {
979
- query?: never;
980
- header?: never;
981
- path?: never;
982
- cookie?: never;
983
- };
984
- get?: never;
985
- put?: never;
986
- /** Tos Sign */
987
- post: operations["tos_sign_v1_users_accept_tos_post"];
988
- delete?: never;
989
- options?: never;
990
- head?: never;
991
- patch?: never;
992
- trace?: never;
993
- };
994
977
  "/v1/users/me": {
995
978
  parameters: {
996
979
  query?: never;
@@ -3423,7 +3406,7 @@ export interface components {
3423
3406
  * Permission
3424
3407
  * @enum {string}
3425
3408
  */
3426
- Permission: "acknowledge" | "bulk_create" | "bulk_delete" | "bulk_renew_expire" | "bulk_transfer_trade" | "bulk_update" | "create" | "delete" | "enterprise" | "manage_api_keys" | "manage_billing" | "manage_cms_content" | "manage_contacts" | "manage_dns_zones" | "manage_domains" | "manage_email_forwards" | "manage_opusdns_api_keys" | "manage_products" | "manage_reseller" | "manage_user_relations" | "manage_users" | "plan_manager" | "premium" | "premium_reseller" | "renew_expire" | "sign_org_tos" | "starter" | "transfer_trade" | "update" | "verify" | "view" | "view_audit_logs";
3409
+ Permission: "acknowledge" | "bulk_create" | "bulk_delete" | "bulk_renew_expire" | "bulk_transfer_trade" | "bulk_update" | "create" | "delete" | "enterprise" | "has_accepted_tos" | "manage_api_keys" | "manage_billing" | "manage_cms_content" | "manage_contacts" | "manage_dns_zones" | "manage_domains" | "manage_email_forwards" | "manage_opusdns_api_keys" | "manage_products" | "manage_reseller" | "manage_user_relations" | "manage_users" | "plan_manager" | "premium" | "premium_reseller" | "renew_expire" | "starter" | "transfer_trade" | "update" | "verify" | "view" | "view_audit_logs";
3427
3410
  /** PermissionSet */
3428
3411
  PermissionSet: {
3429
3412
  /** Permissions */
@@ -3575,8 +3558,8 @@ export interface components {
3575
3558
  SignupCreate: {
3576
3559
  /** @description Organization signup. */
3577
3560
  organization: components["schemas"]["OrganizationCreate"];
3578
- /** @description Optional terms of service acceptance. */
3579
- terms_of_service?: components["schemas"]["TermsOfServiceAccept"] | null;
3561
+ /** @description Terms of service acceptance. */
3562
+ terms_of_service: components["schemas"]["TermsOfServiceAccept"];
3580
3563
  /** @description User signup to platform. */
3581
3564
  user: components["schemas"]["UserCreate"];
3582
3565
  };
@@ -3617,7 +3600,10 @@ export interface components {
3617
3600
  TLDType: "gTLD" | "ccTLD";
3618
3601
  /** TermsOfServiceAccept */
3619
3602
  TermsOfServiceAccept: {
3620
- /** Accepted */
3603
+ /**
3604
+ * Accepted
3605
+ * @description The organization accepts Terms of Service.
3606
+ */
3621
3607
  accepted: boolean;
3622
3608
  };
3623
3609
  /** TldBase */
@@ -7654,37 +7640,6 @@ export interface operations {
7654
7640
  };
7655
7641
  };
7656
7642
  };
7657
- tos_sign_v1_users_accept_tos_post: {
7658
- parameters: {
7659
- query?: never;
7660
- header?: never;
7661
- path?: never;
7662
- cookie?: never;
7663
- };
7664
- requestBody: {
7665
- content: {
7666
- "application/json": components["schemas"]["TermsOfServiceAccept"];
7667
- };
7668
- };
7669
- responses: {
7670
- /** @description Successful Response */
7671
- 204: {
7672
- headers: {
7673
- [name: string]: unknown;
7674
- };
7675
- content?: never;
7676
- };
7677
- /** @description Validation Error */
7678
- 422: {
7679
- headers: {
7680
- [name: string]: unknown;
7681
- };
7682
- content: {
7683
- "application/problem+json": components["schemas"]["HTTPValidationError"];
7684
- };
7685
- };
7686
- };
7687
- };
7688
7643
  get_current_user_v1_users_me_get: {
7689
7644
  parameters: {
7690
7645
  query?: {