@opusdns/api 1.44.0 → 1.45.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.44.0",
6
+ "version": "1.45.0",
7
7
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -3903,6 +3903,7 @@ export const KEYS_ORGANIZATION_ATTRIBUTE_UPDATE = [
3903
3903
  export const KEY_ORGANIZATION_CREATE_ADDRESS_1 = 'address_1' satisfies keyof OrganizationCreate;
3904
3904
  export const KEY_ORGANIZATION_CREATE_ADDRESS_2 = 'address_2' satisfies keyof OrganizationCreate;
3905
3905
  export const KEY_ORGANIZATION_CREATE_ATTRIBUTES = 'attributes' satisfies keyof OrganizationCreate;
3906
+ export const KEY_ORGANIZATION_CREATE_BILLING_MODE = 'billing_mode' satisfies keyof OrganizationCreate;
3906
3907
  export const KEY_ORGANIZATION_CREATE_BUSINESS_NUMBER = 'business_number' satisfies keyof OrganizationCreate;
3907
3908
  export const KEY_ORGANIZATION_CREATE_CITY = 'city' satisfies keyof OrganizationCreate;
3908
3909
  export const KEY_ORGANIZATION_CREATE_COUNTRY_CODE = 'country_code' satisfies keyof OrganizationCreate;
@@ -3921,6 +3922,7 @@ export const KEYS_ORGANIZATION_CREATE = [
3921
3922
  KEY_ORGANIZATION_CREATE_ADDRESS_1,
3922
3923
  KEY_ORGANIZATION_CREATE_ADDRESS_2,
3923
3924
  KEY_ORGANIZATION_CREATE_ATTRIBUTES,
3925
+ KEY_ORGANIZATION_CREATE_BILLING_MODE,
3924
3926
  KEY_ORGANIZATION_CREATE_BUSINESS_NUMBER,
3925
3927
  KEY_ORGANIZATION_CREATE_CITY,
3926
3928
  KEY_ORGANIZATION_CREATE_COUNTRY_CODE,
@@ -1213,7 +1213,7 @@ export type POST_Organizations_Response = POST_Organizations_Response_200 | POST
1213
1213
  export type POST_Organizations_Response_200 = Organization;
1214
1214
  export type POST_Organizations_Response_401 = Problem;
1215
1215
  export type POST_Organizations_Response_403 = Problem;
1216
- export type POST_Organizations_Response_422 = HTTPValidationError;
1216
+ export type POST_Organizations_Response_422 = Problem;
1217
1217
 
1218
1218
  export type POST_OrganizationsIpRestrictions_Response = POST_OrganizationsIpRestrictions_Response_200 | POST_OrganizationsIpRestrictions_Response_401 | POST_OrganizationsIpRestrictions_Response_403 | POST_OrganizationsIpRestrictions_Response_422;
1219
1219
 
package/src/openapi.yaml CHANGED
@@ -9272,6 +9272,12 @@ components:
9272
9272
  $ref: '#/components/schemas/OrganizationAttributeCreate'
9273
9273
  title: Attributes
9274
9274
  type: array
9275
+ billing_mode:
9276
+ $ref: '#/components/schemas/BillingMode'
9277
+ default: consolidated
9278
+ description: Whether the organization is billed on its own account (INDEPENDENT)
9279
+ or rolled up to its parent (CONSOLIDATED). INDEPENDENT is only permitted
9280
+ for eligible sub-organizations. Cannot be changed after creation.
9275
9281
  business_number:
9276
9282
  anyOf:
9277
9283
  - maxLength: 100
@@ -13822,7 +13828,7 @@ info:
13822
13828
  \n\n"
13823
13829
  summary: OpusDNS - your gateway to a seamless domain management experience.
13824
13830
  title: OpusDNS API
13825
- version: 2026-06-30-170126
13831
+ version: 2026-06-30-185809
13826
13832
  x-logo:
13827
13833
  altText: OpusDNS API Reference
13828
13834
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -25864,9 +25870,16 @@ paths:
25864
25870
  '422':
25865
25871
  content:
25866
25872
  application/problem+json:
25873
+ example:
25874
+ code: ERROR_INDEPENDENT_BILLING_NOT_ALLOWED
25875
+ detail: Independent billing mode is only allowed for sub-organizations
25876
+ of a billing organization.
25877
+ status: 422
25878
+ title: Organization Management Error
25879
+ type: independent-billing-not-allowed
25867
25880
  schema:
25868
- $ref: '#/components/schemas/HTTPValidationError'
25869
- description: Validation Error
25881
+ $ref: '#/components/schemas/Problem'
25882
+ description: Unprocessable Content
25870
25883
  security:
25871
25884
  - OAuth2PasswordBearer: []
25872
25885
  - APIKeyHeader: []
package/src/schema.d.ts CHANGED
@@ -8880,6 +8880,11 @@ export interface components {
8880
8880
  * @description List of attributes for the organization.
8881
8881
  */
8882
8882
  attributes?: components["schemas"]["OrganizationAttributeCreate"][];
8883
+ /**
8884
+ * @description Whether the organization is billed on its own account (INDEPENDENT) or rolled up to its parent (CONSOLIDATED). INDEPENDENT is only permitted for eligible sub-organizations. Cannot be changed after creation.
8885
+ * @default consolidated
8886
+ */
8887
+ billing_mode: components["schemas"]["BillingMode"];
8883
8888
  /**
8884
8889
  * Business Number
8885
8890
  * @description Government issued business identifier for the organization issued.
@@ -20441,13 +20446,20 @@ export interface operations {
20441
20446
  "application/problem+json": components["schemas"]["Problem"];
20442
20447
  };
20443
20448
  };
20444
- /** @description Validation Error */
20449
+ /** @description Unprocessable Content */
20445
20450
  422: {
20446
20451
  headers: {
20447
20452
  [name: string]: unknown;
20448
20453
  };
20449
20454
  content: {
20450
- "application/problem+json": components["schemas"]["HTTPValidationError"];
20455
+ /** @example {
20456
+ * "code": "ERROR_INDEPENDENT_BILLING_NOT_ALLOWED",
20457
+ * "detail": "Independent billing mode is only allowed for sub-organizations of a billing organization.",
20458
+ * "status": 422,
20459
+ * "title": "Organization Management Error",
20460
+ * "type": "independent-billing-not-allowed"
20461
+ * } */
20462
+ "application/problem+json": components["schemas"]["Problem"];
20451
20463
  };
20452
20464
  };
20453
20465
  };