@opusdns/api 0.30.0 → 0.31.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.30.0",
11
+ "version": "0.31.0",
12
12
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
13
13
  "main": "./src/index.ts",
14
14
  "module": "./src/index.ts",
@@ -5178,11 +5178,29 @@ export type POST_Users_Response_422 = HTTPValidationError
5178
5178
  *
5179
5179
  * @path /v1/users/{user_id}
5180
5180
  *
5181
+ * @see {@link DELETE_UsersByUserId_Response_409} - 409 response type
5181
5182
  * @see {@link DELETE_UsersByUserId_Response_422} - 422 response type
5182
5183
  *
5183
5184
 
5184
5185
  */
5185
- export type DELETE_UsersByUserId_Response = DELETE_UsersByUserId_Response_422;
5186
+ export type DELETE_UsersByUserId_Response = DELETE_UsersByUserId_Response_409 | DELETE_UsersByUserId_Response_422;
5187
+
5188
+ /**
5189
+ * 409 response for DELETE UsersByUserId endpoint
5190
+ *
5191
+ * @remarks
5192
+ * This type defines the response structure for the 409 status code
5193
+ * of the DELETE UsersByUserId endpoint.
5194
+ * It provides type safety for handling this specific response as defined in the OpenAPI specification.
5195
+ *
5196
+
5197
+ *
5198
+ * @path /v1/users/{user_id}
5199
+ *
5200
+ * @see {@link DELETE_UsersByUserId_Response} - The main response type definition
5201
+ * @see {@link Problem} - The actual schema type definition
5202
+ */
5203
+ export type DELETE_UsersByUserId_Response_409 = Problem
5186
5204
 
5187
5205
  /**
5188
5206
  * 422 response for DELETE UsersByUserId endpoint
package/src/openapi.yaml CHANGED
@@ -4910,7 +4910,7 @@ info:
4910
4910
  '
4911
4911
  summary: OpusDNS - your gateway to a seamless domain management experience.
4912
4912
  title: OpusDNS API
4913
- version: 2025-09-03-232034
4913
+ version: 2025-09-05-075426
4914
4914
  x-logo:
4915
4915
  altText: OpusDNS API Reference
4916
4916
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -8905,6 +8905,18 @@ paths:
8905
8905
  responses:
8906
8906
  '204':
8907
8907
  description: Successful Response
8908
+ '409':
8909
+ content:
8910
+ application/problem+json:
8911
+ example:
8912
+ code: ERROR_USER_IS_LAST_ADMIN
8913
+ detail: User is the last admin for the organization
8914
+ status: 409
8915
+ title: User Management Error
8916
+ type: user-is-last-admin
8917
+ schema:
8918
+ $ref: '#/components/schemas/Problem'
8919
+ description: Conflict
8908
8920
  '422':
8909
8921
  content:
8910
8922
  application/problem+json:
package/src/schema.d.ts CHANGED
@@ -8031,6 +8031,22 @@ export interface operations {
8031
8031
  };
8032
8032
  content?: never;
8033
8033
  };
8034
+ /** @description Conflict */
8035
+ 409: {
8036
+ headers: {
8037
+ [name: string]: unknown;
8038
+ };
8039
+ content: {
8040
+ /** @example {
8041
+ * "code": "ERROR_USER_IS_LAST_ADMIN",
8042
+ * "detail": "User is the last admin for the organization",
8043
+ * "status": 409,
8044
+ * "title": "User Management Error",
8045
+ * "type": "user-is-last-admin"
8046
+ * } */
8047
+ "application/problem+json": components["schemas"]["Problem"];
8048
+ };
8049
+ };
8034
8050
  /** @description Validation Error */
8035
8051
  422: {
8036
8052
  headers: {