@opusdns/api 1.43.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.43.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",
@@ -4,6 +4,7 @@ import type {
4
4
  AttributeType,
5
5
  BatchSortField,
6
6
  BatchStatus,
7
+ BillingMode,
7
8
  BillingTransactionAction,
8
9
  BillingTransactionProductType,
9
10
  BillingTransactionSortField,
@@ -183,6 +184,16 @@ export const BATCH_STATUS_VALUES = [
183
184
  'complete',
184
185
  ] as const satisfies ReadonlyArray<BatchStatus>;
185
186
 
187
+ export const BILLING_MODE = {
188
+ CONSOLIDATED: "consolidated",
189
+ INDEPENDENT: "independent",
190
+ } as const satisfies Record<string, BillingMode>;
191
+
192
+ export const BILLING_MODE_VALUES = [
193
+ 'consolidated',
194
+ 'independent',
195
+ ] as const satisfies ReadonlyArray<BillingMode>;
196
+
186
197
  export const BILLING_TRANSACTION_ACTION = {
187
198
  CREATE: "create",
188
199
  TRANSFER: "transfer",
@@ -3797,6 +3797,7 @@ export const KEYS_OBJECT_TAG_CHANGES2 = [
3797
3797
  export const KEY_ORGANIZATION_ADDRESS_1 = 'address_1' satisfies keyof Organization;
3798
3798
  export const KEY_ORGANIZATION_ADDRESS_2 = 'address_2' satisfies keyof Organization;
3799
3799
  export const KEY_ORGANIZATION_ATTRIBUTES = 'attributes' satisfies keyof Organization;
3800
+ export const KEY_ORGANIZATION_BILLING_MODE = 'billing_mode' satisfies keyof Organization;
3800
3801
  export const KEY_ORGANIZATION_BUSINESS_NUMBER = 'business_number' satisfies keyof Organization;
3801
3802
  export const KEY_ORGANIZATION_CITY = 'city' satisfies keyof Organization;
3802
3803
  export const KEY_ORGANIZATION_COUNTRY_CODE = 'country_code' satisfies keyof Organization;
@@ -3820,6 +3821,7 @@ export const KEYS_ORGANIZATION = [
3820
3821
  KEY_ORGANIZATION_ADDRESS_1,
3821
3822
  KEY_ORGANIZATION_ADDRESS_2,
3822
3823
  KEY_ORGANIZATION_ATTRIBUTES,
3824
+ KEY_ORGANIZATION_BILLING_MODE,
3823
3825
  KEY_ORGANIZATION_BUSINESS_NUMBER,
3824
3826
  KEY_ORGANIZATION_CITY,
3825
3827
  KEY_ORGANIZATION_COUNTRY_CODE,
@@ -3901,6 +3903,7 @@ export const KEYS_ORGANIZATION_ATTRIBUTE_UPDATE = [
3901
3903
  export const KEY_ORGANIZATION_CREATE_ADDRESS_1 = 'address_1' satisfies keyof OrganizationCreate;
3902
3904
  export const KEY_ORGANIZATION_CREATE_ADDRESS_2 = 'address_2' satisfies keyof OrganizationCreate;
3903
3905
  export const KEY_ORGANIZATION_CREATE_ATTRIBUTES = 'attributes' satisfies keyof OrganizationCreate;
3906
+ export const KEY_ORGANIZATION_CREATE_BILLING_MODE = 'billing_mode' satisfies keyof OrganizationCreate;
3904
3907
  export const KEY_ORGANIZATION_CREATE_BUSINESS_NUMBER = 'business_number' satisfies keyof OrganizationCreate;
3905
3908
  export const KEY_ORGANIZATION_CREATE_CITY = 'city' satisfies keyof OrganizationCreate;
3906
3909
  export const KEY_ORGANIZATION_CREATE_COUNTRY_CODE = 'country_code' satisfies keyof OrganizationCreate;
@@ -3919,6 +3922,7 @@ export const KEYS_ORGANIZATION_CREATE = [
3919
3922
  KEY_ORGANIZATION_CREATE_ADDRESS_1,
3920
3923
  KEY_ORGANIZATION_CREATE_ADDRESS_2,
3921
3924
  KEY_ORGANIZATION_CREATE_ATTRIBUTES,
3925
+ KEY_ORGANIZATION_CREATE_BILLING_MODE,
3922
3926
  KEY_ORGANIZATION_CREATE_BUSINESS_NUMBER,
3923
3927
  KEY_ORGANIZATION_CREATE_CITY,
3924
3928
  KEY_ORGANIZATION_CREATE_COUNTRY_CODE,
@@ -4002,6 +4006,7 @@ export const KEY_ORGANIZATION_WITH_BILLING_DATA_ADDRESS_1 = 'address_1' satisfie
4002
4006
  export const KEY_ORGANIZATION_WITH_BILLING_DATA_ADDRESS_2 = 'address_2' satisfies keyof OrganizationWithBillingData;
4003
4007
  export const KEY_ORGANIZATION_WITH_BILLING_DATA_ATTRIBUTES = 'attributes' satisfies keyof OrganizationWithBillingData;
4004
4008
  export const KEY_ORGANIZATION_WITH_BILLING_DATA_BILLING_METADATA = 'billing_metadata' satisfies keyof OrganizationWithBillingData;
4009
+ export const KEY_ORGANIZATION_WITH_BILLING_DATA_BILLING_MODE = 'billing_mode' satisfies keyof OrganizationWithBillingData;
4005
4010
  export const KEY_ORGANIZATION_WITH_BILLING_DATA_BUSINESS_NUMBER = 'business_number' satisfies keyof OrganizationWithBillingData;
4006
4011
  export const KEY_ORGANIZATION_WITH_BILLING_DATA_CITY = 'city' satisfies keyof OrganizationWithBillingData;
4007
4012
  export const KEY_ORGANIZATION_WITH_BILLING_DATA_COUNTRY_CODE = 'country_code' satisfies keyof OrganizationWithBillingData;
@@ -4028,6 +4033,7 @@ export const KEYS_ORGANIZATION_WITH_BILLING_DATA = [
4028
4033
  KEY_ORGANIZATION_WITH_BILLING_DATA_ADDRESS_2,
4029
4034
  KEY_ORGANIZATION_WITH_BILLING_DATA_ATTRIBUTES,
4030
4035
  KEY_ORGANIZATION_WITH_BILLING_DATA_BILLING_METADATA,
4036
+ KEY_ORGANIZATION_WITH_BILLING_DATA_BILLING_MODE,
4031
4037
  KEY_ORGANIZATION_WITH_BILLING_DATA_BUSINESS_NUMBER,
4032
4038
  KEY_ORGANIZATION_WITH_BILLING_DATA_CITY,
4033
4039
  KEY_ORGANIZATION_WITH_BILLING_DATA_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
 
@@ -8,6 +8,7 @@ export type AttributeType = components['schemas']['AttributeType'];
8
8
  export type BatchSortField = components['schemas']['BatchSortField'];
9
9
  export type BatchStatus = components['schemas']['BatchStatus'];
10
10
  export type BillingMetadata = components['schemas']['BillingMetadata'];
11
+ export type BillingMode = components['schemas']['BillingMode'];
11
12
  export type BillingPlan = components['schemas']['BillingPlan'];
12
13
  export type BillingTransactionAction = components['schemas']['BillingTransactionAction'];
13
14
  export type BillingTransactionProductType = components['schemas']['BillingTransactionProductType'];
package/src/openapi.yaml CHANGED
@@ -100,6 +100,12 @@ components:
100
100
  title: Customer Number
101
101
  title: BillingMetadata
102
102
  type: object
103
+ BillingMode:
104
+ enum:
105
+ - consolidated
106
+ - independent
107
+ title: BillingMode
108
+ type: string
103
109
  BillingPlan:
104
110
  properties:
105
111
  amount:
@@ -8972,6 +8978,11 @@ components:
8972
8978
  $ref: '#/components/schemas/OrganizationAttribute'
8973
8979
  title: Attributes
8974
8980
  type: array
8981
+ billing_mode:
8982
+ $ref: '#/components/schemas/BillingMode'
8983
+ default: consolidated
8984
+ description: Whether the organization is billed on its own account (INDEPENDENT)
8985
+ or rolled up to its parent (CONSOLIDATED).
8975
8986
  business_number:
8976
8987
  anyOf:
8977
8988
  - maxLength: 100
@@ -9261,6 +9272,12 @@ components:
9261
9272
  $ref: '#/components/schemas/OrganizationAttributeCreate'
9262
9273
  title: Attributes
9263
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.
9264
9281
  business_number:
9265
9282
  anyOf:
9266
9283
  - maxLength: 100
@@ -9618,6 +9635,11 @@ components:
9618
9635
  type: array
9619
9636
  billing_metadata:
9620
9637
  $ref: '#/components/schemas/BillingMetadata'
9638
+ billing_mode:
9639
+ $ref: '#/components/schemas/BillingMode'
9640
+ default: consolidated
9641
+ description: Whether the organization is billed on its own account (INDEPENDENT)
9642
+ or rolled up to its parent (CONSOLIDATED).
9621
9643
  business_number:
9622
9644
  anyOf:
9623
9645
  - maxLength: 100
@@ -13806,7 +13828,7 @@ info:
13806
13828
  \n\n"
13807
13829
  summary: OpusDNS - your gateway to a seamless domain management experience.
13808
13830
  title: OpusDNS API
13809
- version: 2026-06-30-103725
13831
+ version: 2026-06-30-185809
13810
13832
  x-logo:
13811
13833
  altText: OpusDNS API Reference
13812
13834
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -25848,9 +25870,16 @@ paths:
25848
25870
  '422':
25849
25871
  content:
25850
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
25851
25880
  schema:
25852
- $ref: '#/components/schemas/HTTPValidationError'
25853
- description: Validation Error
25881
+ $ref: '#/components/schemas/Problem'
25882
+ description: Unprocessable Content
25854
25883
  security:
25855
25884
  - OAuth2PasswordBearer: []
25856
25885
  - APIKeyHeader: []
package/src/schema.d.ts CHANGED
@@ -2790,6 +2790,11 @@ export interface components {
2790
2790
  */
2791
2791
  customer_number?: number | null;
2792
2792
  };
2793
+ /**
2794
+ * BillingMode
2795
+ * @enum {string}
2796
+ */
2797
+ BillingMode: "consolidated" | "independent";
2793
2798
  /** BillingPlan */
2794
2799
  BillingPlan: {
2795
2800
  /**
@@ -8655,6 +8660,11 @@ export interface components {
8655
8660
  address_2?: string | null;
8656
8661
  /** Attributes */
8657
8662
  attributes?: components["schemas"]["OrganizationAttribute"][];
8663
+ /**
8664
+ * @description Whether the organization is billed on its own account (INDEPENDENT) or rolled up to its parent (CONSOLIDATED).
8665
+ * @default consolidated
8666
+ */
8667
+ billing_mode: components["schemas"]["BillingMode"];
8658
8668
  /**
8659
8669
  * Business Number
8660
8670
  * @description Government issued business identifier for the organization issued.
@@ -8870,6 +8880,11 @@ export interface components {
8870
8880
  * @description List of attributes for the organization.
8871
8881
  */
8872
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"];
8873
8888
  /**
8874
8889
  * Business Number
8875
8890
  * @description Government issued business identifier for the organization issued.
@@ -9097,6 +9112,11 @@ export interface components {
9097
9112
  /** Attributes */
9098
9113
  attributes?: components["schemas"]["OrganizationAttribute"][];
9099
9114
  billing_metadata?: components["schemas"]["BillingMetadata"];
9115
+ /**
9116
+ * @description Whether the organization is billed on its own account (INDEPENDENT) or rolled up to its parent (CONSOLIDATED).
9117
+ * @default consolidated
9118
+ */
9119
+ billing_mode: components["schemas"]["BillingMode"];
9100
9120
  /**
9101
9121
  * Business Number
9102
9122
  * @description Government issued business identifier for the organization issued.
@@ -20426,13 +20446,20 @@ export interface operations {
20426
20446
  "application/problem+json": components["schemas"]["Problem"];
20427
20447
  };
20428
20448
  };
20429
- /** @description Validation Error */
20449
+ /** @description Unprocessable Content */
20430
20450
  422: {
20431
20451
  headers: {
20432
20452
  [name: string]: unknown;
20433
20453
  };
20434
20454
  content: {
20435
- "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"];
20436
20463
  };
20437
20464
  };
20438
20465
  };