@opusdns/api 0.33.0 → 0.34.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.
@@ -34,7 +34,7 @@
34
34
 
35
35
  import { DomainDnssecDataArray, OrganizationAttribute2Array, IpRestrictionArray, TldResponseShortArray } from './schemas-arrays.d';
36
36
 
37
- import { Pagination_OrganizationCredential, Problem, HTTPValidationError, OrganizationCredentialCreated, DomainAvailabilityList, Pagination_ContactSchema, ContactSchema, ContactVerification, Contact, Pagination_DnsZone, DnsZone, DnsChanges, DnsZoneSummary, DomainSearch, Pagination_Domain, Domain, DomainRenew, DomainCheck, DomainSummary, Pagination_EmailForwardAlias, EmailForwardAlias, Pagination_Event, EventSchema, Pagination_UserNotificationSummary, Notification, UserNotification, Pagination_Organization, Organization, OrganizationWithPlan, GetCurrentAvailablePlans, GetPrices, IpRestriction, Pagination_User, TldSpecification, User, UserWithAttributes, PermissionSet, RelationSet, UserVerification, UserPasswordResetEmail, UserWithRelationPermissions } from './schemas.d';
37
+ import { Pagination_OrganizationCredential, Problem, HTTPValidationError, OrganizationCredentialCreated, DomainAvailabilityList, Pagination_ContactSchema, ContactSchema, ContactVerification, Contact, Pagination_DnsZone, DnsZone, DnsChanges, DnsZoneSummary, DomainSearch, Pagination_Domain, Domain, DomainRenew, DomainCheck, DomainSummary, Pagination_EmailForwardAlias, EmailForwardAlias, Pagination_Event, EventSchema, Pagination_UserNotificationSummary, Notification, UserNotification, Pagination_Organization, Organization, OrganizationWithBillingData, GetCurrentAvailablePlans, GetPrices, IpRestriction, Pagination_User, TldSpecification, User, UserWithAttributes, PermissionSet, RelationSet, UserVerification, UserPasswordResetEmail, UserWithRelationPermissions } from './schemas.d';
38
38
 
39
39
  /**
40
40
  * Response types for GET AuthClientCredentials endpoint
@@ -4439,9 +4439,9 @@ export type GET_OrganizationsByOrganizationId_Response = GET_OrganizationsByOrga
4439
4439
  * @path /v1/organizations/{organization_id}
4440
4440
  *
4441
4441
  * @see {@link GET_OrganizationsByOrganizationId_Response} - The main response type definition
4442
- * @see {@link OrganizationWithPlan} - The actual schema type definition
4442
+ * @see {@link OrganizationWithBillingData} - The actual schema type definition
4443
4443
  */
4444
- export type GET_OrganizationsByOrganizationId_Response_200 = OrganizationWithPlan
4444
+ export type GET_OrganizationsByOrganizationId_Response_200 = OrganizationWithBillingData
4445
4445
 
4446
4446
  /**
4447
4447
  * 422 response for GET OrganizationsByOrganizationId endpoint
@@ -4549,9 +4549,9 @@ export type PATCH_OrganizationsByOrganizationIdPlan_Response = PATCH_Organizatio
4549
4549
  * @path /v1/organizations/{organization_id}/plan
4550
4550
  *
4551
4551
  * @see {@link PATCH_OrganizationsByOrganizationIdPlan_Response} - The main response type definition
4552
- * @see {@link OrganizationWithPlan} - The actual schema type definition
4552
+ * @see {@link OrganizationWithBillingData} - The actual schema type definition
4553
4553
  */
4554
- export type PATCH_OrganizationsByOrganizationIdPlan_Response_200 = OrganizationWithPlan
4554
+ export type PATCH_OrganizationsByOrganizationIdPlan_Response_200 = OrganizationWithBillingData
4555
4555
 
4556
4556
  /**
4557
4557
  * 422 response for PATCH OrganizationsByOrganizationIdPlan endpoint
@@ -58,6 +58,38 @@ export type AllocationMethodType = components['schemas']['AllocationMethodType']
58
58
  * @see {@link components} - The OpenAPI components schema definition
59
59
  */
60
60
  export type AllowedNumberOfNameserverBase = components['schemas']['AllowedNumberOfNameserverBase'];
61
+ /**
62
+ * BillingMetadata
63
+ *
64
+ * @remarks
65
+ * Type alias for the `BillingMetadata` OpenAPI schema.
66
+ * This type represents billingmetadata data structures used in API requests and responses.
67
+ *
68
+ * @example
69
+ * ```typescript
70
+ * const response = await api.getBillingMetadata();
71
+ * const item: BillingMetadata = response.results;
72
+ * ```
73
+ *
74
+ * @see {@link components} - The OpenAPI components schema definition
75
+ */
76
+ export type BillingMetadata = components['schemas']['BillingMetadata'];
77
+ /**
78
+ * BillingPlan
79
+ *
80
+ * @remarks
81
+ * Type alias for the `BillingPlan` OpenAPI schema.
82
+ * This type represents billingplan data structures used in API requests and responses.
83
+ *
84
+ * @example
85
+ * ```typescript
86
+ * const response = await api.getBillingPlan();
87
+ * const item: BillingPlan = response.results;
88
+ * ```
89
+ *
90
+ * @see {@link components} - The OpenAPI components schema definition
91
+ */
92
+ export type BillingPlan = components['schemas']['BillingPlan'];
61
93
  /**
62
94
  * BillingTransactionAction
63
95
  *
@@ -1819,21 +1851,21 @@ export type OrganizationToken = components['schemas']['OrganizationTokenResponse
1819
1851
  */
1820
1852
  export type OrganizationUpdate = components['schemas']['OrganizationUpdate'];
1821
1853
  /**
1822
- * OrganizationWithPlan
1854
+ * OrganizationWithBillingData
1823
1855
  *
1824
1856
  * @remarks
1825
- * Type alias for the `OrganizationWithPlan` OpenAPI schema.
1826
- * This type represents organizationwithplan data structures used in API requests and responses.
1857
+ * Type alias for the `OrganizationWithBillingData` OpenAPI schema.
1858
+ * This type represents organizationwithbillingdata data structures used in API requests and responses.
1827
1859
  *
1828
1860
  * @example
1829
1861
  * ```typescript
1830
- * const response = await api.getOrganizationWithPlan();
1831
- * const item: OrganizationWithPlan = response.results;
1862
+ * const response = await api.getOrganizationWithBillingData();
1863
+ * const item: OrganizationWithBillingData = response.results;
1832
1864
  * ```
1833
1865
  *
1834
1866
  * @see {@link components} - The OpenAPI components schema definition
1835
1867
  */
1836
- export type OrganizationWithPlan = components['schemas']['OrganizationWithPlan'];
1868
+ export type OrganizationWithBillingData = components['schemas']['OrganizationWithBillingData'];
1837
1869
  /**
1838
1870
  * PaginationMetadata
1839
1871
  *
package/src/openapi.yaml CHANGED
@@ -23,6 +23,54 @@ components:
23
23
  - max
24
24
  title: AllowedNumberOfNameserverBase
25
25
  type: object
26
+ BillingMetadata:
27
+ properties:
28
+ billing_model:
29
+ anyOf:
30
+ - type: string
31
+ - type: 'null'
32
+ description: Payment terms for the organization.
33
+ title: Billing Model
34
+ customer_number:
35
+ anyOf:
36
+ - type: integer
37
+ - type: 'null'
38
+ description: Customer account number for the organization.
39
+ title: Customer Number
40
+ title: BillingMetadata
41
+ type: object
42
+ BillingPlan:
43
+ properties:
44
+ amount:
45
+ default: '0.00'
46
+ description: Price of the billing plan.
47
+ title: Amount
48
+ type: string
49
+ currency:
50
+ anyOf:
51
+ - $ref: '#/components/schemas/Currency'
52
+ - type: 'null'
53
+ description: Currency of the billing plan.
54
+ name:
55
+ anyOf:
56
+ - type: string
57
+ - type: 'null'
58
+ description: Name of the billing plan.
59
+ title: Name
60
+ plan_id:
61
+ anyOf:
62
+ - type: string
63
+ - type: 'null'
64
+ description: Billing plan ID for the organization.
65
+ title: Plan Id
66
+ type:
67
+ anyOf:
68
+ - type: string
69
+ - type: 'null'
70
+ description: Plan type or billing interval.
71
+ title: Type
72
+ title: BillingPlan
73
+ type: object
26
74
  BillingTransactionAction:
27
75
  enum:
28
76
  - create
@@ -3268,8 +3316,15 @@ components:
3268
3316
  title: Tax Rate
3269
3317
  title: OrganizationUpdate
3270
3318
  type: object
3271
- OrganizationWithPlan:
3319
+ OrganizationWithBillingData:
3272
3320
  properties:
3321
+ account_balance:
3322
+ anyOf:
3323
+ - type: string
3324
+ - type: 'null'
3325
+ title: Account Balance
3326
+ active_plan:
3327
+ $ref: '#/components/schemas/BillingPlan'
3273
3328
  address_1:
3274
3329
  anyOf:
3275
3330
  - minLength: 1
@@ -3289,6 +3344,8 @@ components:
3289
3344
  $ref: '#/components/schemas/OrganizationAttribute'
3290
3345
  title: Attributes
3291
3346
  type: array
3347
+ billing_metadata:
3348
+ $ref: '#/components/schemas/BillingMetadata'
3292
3349
  business_number:
3293
3350
  anyOf:
3294
3351
  - maxLength: 100
@@ -3363,9 +3420,6 @@ components:
3363
3420
  - type: 'null'
3364
3421
  description: ID of the parent organization.
3365
3422
  title: Parent Organization Id
3366
- plan:
3367
- $ref: '#/components/schemas/PlanRelation'
3368
- default: basic_plan
3369
3423
  postal_code:
3370
3424
  anyOf:
3371
3425
  - maxLength: 20
@@ -3414,7 +3468,7 @@ components:
3414
3468
  type: array
3415
3469
  required:
3416
3470
  - name
3417
- title: OrganizationWithPlan
3471
+ title: OrganizationWithBillingData
3418
3472
  type: object
3419
3473
  PaginationMetadata:
3420
3474
  properties:
@@ -5138,7 +5192,7 @@ info:
5138
5192
  '
5139
5193
  summary: OpusDNS - your gateway to a seamless domain management experience.
5140
5194
  title: OpusDNS API
5141
- version: 2025-09-09-123217
5195
+ version: 2025-09-10-192345
5142
5196
  x-logo:
5143
5197
  altText: OpusDNS API Reference
5144
5198
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -8821,7 +8875,7 @@ paths:
8821
8875
  content:
8822
8876
  application/json:
8823
8877
  schema:
8824
- $ref: '#/components/schemas/OrganizationWithPlan'
8878
+ $ref: '#/components/schemas/OrganizationWithBillingData'
8825
8879
  description: Successful Response
8826
8880
  '422':
8827
8881
  content:
@@ -8898,7 +8952,7 @@ paths:
8898
8952
  content:
8899
8953
  application/json:
8900
8954
  schema:
8901
- $ref: '#/components/schemas/OrganizationWithPlan'
8955
+ $ref: '#/components/schemas/OrganizationWithBillingData'
8902
8956
  description: Successful Response
8903
8957
  '422':
8904
8958
  content:
@@ -9108,7 +9162,6 @@ paths:
9108
9162
  summary: Create User Password Reset
9109
9163
  tags:
9110
9164
  - user
9111
- - user
9112
9165
  /v1/users/email/verify:
9113
9166
  get:
9114
9167
  operationId: redirect_verify_user_v1_users_email_verify_get
@@ -9134,7 +9187,6 @@ paths:
9134
9187
  summary: Redirect Verify User
9135
9188
  tags:
9136
9189
  - user
9137
- - user
9138
9190
  /v1/users/me:
9139
9191
  get:
9140
9192
  operationId: get_current_user_v1_users_me_get
@@ -9202,7 +9254,6 @@ paths:
9202
9254
  summary: Confirm User Password Reset Me
9203
9255
  tags:
9204
9256
  - user
9205
- - user
9206
9257
  /v1/users/me/verification:
9207
9258
  delete:
9208
9259
  operationId: cancel_verification_me_v1_users_me_verification_delete
@@ -9226,7 +9277,6 @@ paths:
9226
9277
  summary: Cancel Verification Me
9227
9278
  tags:
9228
9279
  - user
9229
- - user
9230
9280
  get:
9231
9281
  operationId: get_verification_status_me_v1_users_me_verification_get
9232
9282
  responses:
@@ -9253,7 +9303,6 @@ paths:
9253
9303
  summary: Get Verification Status Me
9254
9304
  tags:
9255
9305
  - user
9256
- - user
9257
9306
  patch:
9258
9307
  operationId: update_verification_me_v1_users_me_verification_patch
9259
9308
  parameters:
@@ -9316,7 +9365,6 @@ paths:
9316
9365
  summary: Update Verification Me
9317
9366
  tags:
9318
9367
  - user
9319
- - user
9320
9368
  post:
9321
9369
  operationId: create_verification_me_v1_users_me_verification_post
9322
9370
  parameters:
@@ -9382,7 +9430,6 @@ paths:
9382
9430
  summary: Create Verification Me
9383
9431
  tags:
9384
9432
  - user
9385
- - user
9386
9433
  /v1/users/{user_id}:
9387
9434
  delete:
9388
9435
  operationId: delete_user_v1_users__user_id__delete
@@ -9649,7 +9696,6 @@ paths:
9649
9696
  summary: Cancel Verification
9650
9697
  tags:
9651
9698
  - user
9652
- - user
9653
9699
  get:
9654
9700
  operationId: get_verification_status_v1_users__user_id__verification_get
9655
9701
  parameters:
@@ -9694,7 +9740,6 @@ paths:
9694
9740
  summary: Get Verification Status
9695
9741
  tags:
9696
9742
  - user
9697
- - user
9698
9743
  patch:
9699
9744
  operationId: update_verification_v1_users__user_id__verification_patch
9700
9745
  parameters:
@@ -9768,7 +9813,6 @@ paths:
9768
9813
  summary: Update Verification
9769
9814
  tags:
9770
9815
  - user
9771
- - user
9772
9816
  post:
9773
9817
  operationId: create_verification_v1_users__user_id__verification_post
9774
9818
  parameters:
@@ -9846,7 +9890,6 @@ paths:
9846
9890
  summary: Create Verification
9847
9891
  tags:
9848
9892
  - user
9849
- - user
9850
9893
  servers:
9851
9894
  - description: Production environment
9852
9895
  url: https://api.opusdns.com
package/src/schema.d.ts CHANGED
@@ -1226,6 +1226,45 @@ export interface components {
1226
1226
  */
1227
1227
  min: number;
1228
1228
  };
1229
+ /** BillingMetadata */
1230
+ BillingMetadata: {
1231
+ /**
1232
+ * Billing Model
1233
+ * @description Payment terms for the organization.
1234
+ */
1235
+ billing_model?: string | null;
1236
+ /**
1237
+ * Customer Number
1238
+ * @description Customer account number for the organization.
1239
+ */
1240
+ customer_number?: number | null;
1241
+ };
1242
+ /** BillingPlan */
1243
+ BillingPlan: {
1244
+ /**
1245
+ * Amount
1246
+ * @description Price of the billing plan.
1247
+ * @default 0.00
1248
+ */
1249
+ amount: string;
1250
+ /** @description Currency of the billing plan. */
1251
+ currency?: components["schemas"]["Currency"] | null;
1252
+ /**
1253
+ * Name
1254
+ * @description Name of the billing plan.
1255
+ */
1256
+ name?: string | null;
1257
+ /**
1258
+ * Plan Id
1259
+ * @description Billing plan ID for the organization.
1260
+ */
1261
+ plan_id?: string | null;
1262
+ /**
1263
+ * Type
1264
+ * @description Plan type or billing interval.
1265
+ */
1266
+ type?: string | null;
1267
+ };
1229
1268
  /**
1230
1269
  * BillingTransactionAction
1231
1270
  * @enum {string}
@@ -3417,8 +3456,11 @@ export interface components {
3417
3456
  */
3418
3457
  tax_rate?: number | string | null;
3419
3458
  };
3420
- /** OrganizationWithPlan */
3421
- OrganizationWithPlan: {
3459
+ /** OrganizationWithBillingData */
3460
+ OrganizationWithBillingData: {
3461
+ /** Account Balance */
3462
+ account_balance?: string | null;
3463
+ active_plan?: components["schemas"]["BillingPlan"];
3422
3464
  /**
3423
3465
  * Address 1
3424
3466
  * @description First line of the organization's address.
@@ -3431,6 +3473,7 @@ export interface components {
3431
3473
  address_2?: string | null;
3432
3474
  /** Attributes */
3433
3475
  attributes?: components["schemas"]["OrganizationAttribute"][];
3476
+ billing_metadata?: components["schemas"]["BillingMetadata"];
3434
3477
  /**
3435
3478
  * Business Number
3436
3479
  * @description Government issued business identifier for the organization issued.
@@ -3480,8 +3523,6 @@ export interface components {
3480
3523
  * @description ID of the parent organization.
3481
3524
  */
3482
3525
  parent_organization_id?: TypeID<"organization"> | null;
3483
- /** @default basic_plan */
3484
- plan: components["schemas"]["PlanRelation"];
3485
3526
  /**
3486
3527
  * Postal Code
3487
3528
  * @description Postal code of the organization's address.
@@ -7929,7 +7970,7 @@ export interface operations {
7929
7970
  [name: string]: unknown;
7930
7971
  };
7931
7972
  content: {
7932
- "application/json": components["schemas"]["OrganizationWithPlan"];
7973
+ "application/json": components["schemas"]["OrganizationWithBillingData"];
7933
7974
  };
7934
7975
  };
7935
7976
  /** @description Validation Error */
@@ -8028,7 +8069,7 @@ export interface operations {
8028
8069
  [name: string]: unknown;
8029
8070
  };
8030
8071
  content: {
8031
- "application/json": components["schemas"]["OrganizationWithPlan"];
8072
+ "application/json": components["schemas"]["OrganizationWithBillingData"];
8032
8073
  };
8033
8074
  };
8034
8075
  /** @description Validation Error */