@opusdns/api 0.138.0 → 0.140.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/src/schema.d.ts CHANGED
@@ -504,11 +504,10 @@ export interface paths {
504
504
  get: operations["get_domain_forward_v1_domain_forwards__hostname__get"];
505
505
  put?: never;
506
506
  /**
507
- * Create a domain forward (deprecated)
508
- * @deprecated
509
- * @description **DEPRECATED**: Use POST /v1/domain-forwards instead. Creates a new domain forward configuration for the specified hostname.
507
+ * Create domain forward set
508
+ * @description Creates a new domain forward set for a specific protocol (HTTP or HTTPS). Raises an error if the set already exists.
510
509
  */
511
- post: operations["create_domain_forward_v1_domain_forwards__hostname__post"];
510
+ post: operations["create_domain_forward_set_v1_domain_forwards__hostname__post"];
512
511
  /**
513
512
  * Delete a domain forward
514
513
  * @description Deletes the domain forward configuration for the specified hostname
@@ -577,10 +576,11 @@ export interface paths {
577
576
  */
578
577
  put: operations["update_domain_forward_set_v1_domain_forwards__hostname___protocol__put"];
579
578
  /**
580
- * Create domain forward set
581
- * @description Creates a new domain forward set for a specific protocol (HTTP or HTTPS). Raises an error if the set already exists.
579
+ * Create domain forward set (deprecated)
580
+ * @deprecated
581
+ * @description Deprecated: Use POST /{hostname} with protocol in body instead. Creates a new domain forward set for a specific protocol (HTTP or HTTPS).
582
582
  */
583
- post: operations["create_domain_forward_set_v1_domain_forwards__hostname___protocol__post"];
583
+ post: operations["create_domain_forward_set_deprecated_v1_domain_forwards__hostname___protocol__post"];
584
584
  /**
585
585
  * Delete domain forward set
586
586
  * @description Deletes a domain forward set for a specific protocol (HTTP or HTTPS).
@@ -2658,8 +2658,6 @@ export interface components {
2658
2658
  * Format: date-time
2659
2659
  */
2660
2660
  updated_on: Date;
2661
- /** Wildcard */
2662
- wildcard: boolean;
2663
2661
  };
2664
2662
  /** DomainForwardCreateRequest */
2665
2663
  DomainForwardCreateRequest: {
@@ -2688,8 +2686,6 @@ export interface components {
2688
2686
  DomainForwardProtocolSetRequest: {
2689
2687
  /** Redirects */
2690
2688
  redirects: (components["schemas"]["HttpRedirectRequest"] | components["schemas"]["WildcardHttpRedirectRequest"])[];
2691
- /** Wildcard */
2692
- wildcard?: boolean | null;
2693
2689
  };
2694
2690
  /** DomainForwardProtocolSetResponse */
2695
2691
  DomainForwardProtocolSetResponse: {
@@ -2705,20 +2701,12 @@ export interface components {
2705
2701
  * Format: date-time
2706
2702
  */
2707
2703
  updated_on: Date;
2708
- /** Wildcard */
2709
- wildcard: boolean;
2710
2704
  };
2711
- /** DomainForwardRequest */
2712
- DomainForwardRequest: {
2713
- /**
2714
- * Enabled
2715
- * @default false
2716
- */
2717
- enabled: boolean;
2718
- http?: components["schemas"]["DomainForwardProtocolSetRequest"] | null;
2719
- https?: components["schemas"]["DomainForwardProtocolSetRequest"] | null;
2720
- /** Wildcard */
2721
- wildcard?: boolean | null;
2705
+ /** DomainForwardSetCreateRequest */
2706
+ DomainForwardSetCreateRequest: {
2707
+ protocol: components["schemas"]["HttpProtocol"];
2708
+ /** Redirects */
2709
+ redirects: (components["schemas"]["HttpRedirectRequest"] | components["schemas"]["WildcardHttpRedirectRequest"])[];
2722
2710
  };
2723
2711
  /** DomainForwardSetRequest */
2724
2712
  DomainForwardSetRequest: {
@@ -2742,8 +2730,6 @@ export interface components {
2742
2730
  * Format: date-time
2743
2731
  */
2744
2732
  updated_on: Date;
2745
- /** Wildcard */
2746
- wildcard: boolean;
2747
2733
  };
2748
2734
  /**
2749
2735
  * DomainForwardSortField
@@ -4644,11 +4630,11 @@ export interface components {
4644
4630
  /** Results */
4645
4631
  results: components["schemas"]["RequestHistory"][];
4646
4632
  };
4647
- /** Pagination[User] */
4648
- Pagination_User_: {
4633
+ /** Pagination[UserPublic] */
4634
+ Pagination_UserPublic_: {
4649
4635
  pagination: components["schemas"]["PaginationMetadata"];
4650
4636
  /** Results */
4651
- results: components["schemas"]["User"][];
4637
+ results: components["schemas"]["UserPublic"][];
4652
4638
  };
4653
4639
  /** PasswordUpdate */
4654
4640
  PasswordUpdate: {
@@ -5207,6 +5193,11 @@ export interface components {
5207
5193
  * @description The user's first name
5208
5194
  */
5209
5195
  first_name: string;
5196
+ /**
5197
+ * Keycloak User Id
5198
+ * @description Keycloak user id
5199
+ */
5200
+ keycloak_user_id?: string | null;
5210
5201
  /**
5211
5202
  * Last Name
5212
5203
  * @description The user's last name
@@ -5316,67 +5307,75 @@ export interface components {
5316
5307
  */
5317
5308
  username: string;
5318
5309
  };
5319
- /**
5320
- * UserStatus
5321
- * @enum {string}
5322
- */
5323
- UserStatus: "active" | "inactive";
5324
- /** UserTokenResponse */
5325
- UserTokenResponse: {
5326
- /** Access Token */
5327
- access_token: string;
5328
- /** Expires In */
5329
- expires_in: number;
5330
- /** Refresh Expires In */
5331
- refresh_expires_in: number;
5332
- /** Refresh Token */
5333
- refresh_token: string;
5310
+ /** UserPublic */
5311
+ UserPublic: {
5334
5312
  /**
5335
- * Token Type
5336
- * @default Bearer
5313
+ * Created On
5314
+ * Format: date-time
5315
+ * @description The date/time the entry was created on
5337
5316
  */
5338
- token_type: string;
5339
- };
5340
- /** UserUpdate */
5341
- UserUpdate: {
5317
+ created_on?: Date;
5318
+ /**
5319
+ * Deleted On
5320
+ * @description The date/time the entry was deleted on
5321
+ */
5322
+ deleted_on?: Date | null;
5342
5323
  /**
5343
5324
  * Email
5325
+ * Format: email
5344
5326
  * @description The user's email address
5345
5327
  */
5346
- email?: string | null;
5328
+ email: string;
5347
5329
  /**
5348
5330
  * First Name
5349
5331
  * @description The user's first name
5350
5332
  */
5351
- first_name?: string | null;
5333
+ first_name: string;
5352
5334
  /**
5353
5335
  * Last Name
5354
5336
  * @description The user's last name
5355
5337
  */
5356
- last_name?: string | null;
5338
+ last_name: string;
5357
5339
  /**
5358
5340
  * Locale
5359
- * @description The user's locale
5341
+ * @example en_US
5360
5342
  */
5361
- locale?: string | null;
5343
+ locale: string;
5344
+ /**
5345
+ * Organization Id
5346
+ * Format: typeid
5347
+ * @description The user's organization id
5348
+ * @default None
5349
+ * @example organization_01h45ytscbebyvny4gc8cr8ma2
5350
+ */
5351
+ organization_id: TypeId<"organization">;
5362
5352
  /**
5363
5353
  * Phone
5364
5354
  * @description The user's phone number
5355
+ * @example +1.2125552368
5365
5356
  */
5366
5357
  phone?: string | null;
5358
+ readonly status: components["schemas"]["UserStatus"];
5367
5359
  /**
5368
- * User Attributes
5369
- * @description User attributes
5360
+ * Updated On
5361
+ * Format: date-time
5362
+ * @description The date/time the entry was last updated on
5370
5363
  */
5371
- user_attributes?: components["schemas"]["UserAttributeBase"][] | null;
5364
+ updated_on?: Date;
5365
+ /**
5366
+ * User Id
5367
+ * Format: typeid
5368
+ * @example user_01h45ytscbebyvny4gc8cr8ma2
5369
+ */
5370
+ user_id?: TypeId<"user">;
5372
5371
  /**
5373
5372
  * Username
5374
5373
  * @description The user's unique username
5375
5374
  */
5376
- username?: string | null;
5375
+ username: string;
5377
5376
  };
5378
- /** UserWithAttributes */
5379
- UserWithAttributes: {
5377
+ /** UserPublicWithAttributes */
5378
+ UserPublicWithAttributes: {
5380
5379
  /**
5381
5380
  * Created On
5382
5381
  * Format: date-time
@@ -5459,6 +5458,65 @@ export interface components {
5459
5458
  */
5460
5459
  username: string;
5461
5460
  };
5461
+ /**
5462
+ * UserStatus
5463
+ * @enum {string}
5464
+ */
5465
+ UserStatus: "active" | "inactive";
5466
+ /** UserTokenResponse */
5467
+ UserTokenResponse: {
5468
+ /** Access Token */
5469
+ access_token: string;
5470
+ /** Expires In */
5471
+ expires_in: number;
5472
+ /** Refresh Expires In */
5473
+ refresh_expires_in: number;
5474
+ /** Refresh Token */
5475
+ refresh_token: string;
5476
+ /**
5477
+ * Token Type
5478
+ * @default Bearer
5479
+ */
5480
+ token_type: string;
5481
+ };
5482
+ /** UserUpdate */
5483
+ UserUpdate: {
5484
+ /**
5485
+ * Email
5486
+ * @description The user's email address
5487
+ */
5488
+ email?: string | null;
5489
+ /**
5490
+ * First Name
5491
+ * @description The user's first name
5492
+ */
5493
+ first_name?: string | null;
5494
+ /**
5495
+ * Last Name
5496
+ * @description The user's last name
5497
+ */
5498
+ last_name?: string | null;
5499
+ /**
5500
+ * Locale
5501
+ * @description The user's locale
5502
+ */
5503
+ locale?: string | null;
5504
+ /**
5505
+ * Phone
5506
+ * @description The user's phone number
5507
+ */
5508
+ phone?: string | null;
5509
+ /**
5510
+ * User Attributes
5511
+ * @description User attributes
5512
+ */
5513
+ user_attributes?: components["schemas"]["UserAttributeBase"][] | null;
5514
+ /**
5515
+ * Username
5516
+ * @description The user's unique username
5517
+ */
5518
+ username?: string | null;
5519
+ };
5462
5520
  /** UserWithRelationPermissions */
5463
5521
  UserWithRelationPermissions: {
5464
5522
  /**
@@ -7742,7 +7800,7 @@ export interface operations {
7742
7800
  };
7743
7801
  };
7744
7802
  };
7745
- create_domain_forward_v1_domain_forwards__hostname__post: {
7803
+ create_domain_forward_set_v1_domain_forwards__hostname__post: {
7746
7804
  parameters: {
7747
7805
  query?: never;
7748
7806
  header?: never;
@@ -7754,17 +7812,17 @@ export interface operations {
7754
7812
  };
7755
7813
  requestBody: {
7756
7814
  content: {
7757
- "application/json": components["schemas"]["DomainForwardRequest"];
7815
+ "application/json": components["schemas"]["DomainForwardSetCreateRequest"];
7758
7816
  };
7759
7817
  };
7760
7818
  responses: {
7761
- /** @description Domain forward created successfully */
7819
+ /** @description Successful Response */
7762
7820
  201: {
7763
7821
  headers: {
7764
7822
  [name: string]: unknown;
7765
7823
  };
7766
7824
  content: {
7767
- "application/json": components["schemas"]["DomainForward"];
7825
+ "application/json": components["schemas"]["DomainForwardSetResponse"];
7768
7826
  };
7769
7827
  };
7770
7828
  /** @description Unauthorized */
@@ -7799,24 +7857,23 @@ export interface operations {
7799
7857
  "application/problem+json": components["schemas"]["Problem"];
7800
7858
  };
7801
7859
  };
7802
- /** @description DNS zone was not found */
7860
+ /** @description Not Found */
7803
7861
  404: {
7804
7862
  headers: {
7805
7863
  [name: string]: unknown;
7806
7864
  };
7807
7865
  content: {
7808
7866
  /** @example {
7809
- * "code": "ERROR_ZONE_NOT_FOUND",
7810
- * "detail": "Zone not found",
7867
+ * "code": "ERROR_DOMAIN_FORWARD_NOT_EXISTS",
7868
+ * "detail": "Domain forward not found for Additional error context.",
7811
7869
  * "status": 404,
7812
- * "title": "DNS Error",
7813
- * "type": "dns-zone-not-found",
7814
- * "zone_name": "Zone example.com. not found"
7870
+ * "title": "Domain Forward Error",
7871
+ * "type": "domain-forward-not-found"
7815
7872
  * } */
7816
7873
  "application/problem+json": components["schemas"]["Problem"];
7817
7874
  };
7818
7875
  };
7819
- /** @description Domain forward already exists */
7876
+ /** @description Conflict */
7820
7877
  409: {
7821
7878
  headers: {
7822
7879
  [name: string]: unknown;
@@ -7824,7 +7881,7 @@ export interface operations {
7824
7881
  content: {
7825
7882
  /** @example {
7826
7883
  * "code": "ERROR_DOMAIN_FORWARD_ALREADY_EXISTS",
7827
- * "detail": "Domain forward already exists for example.com.",
7884
+ * "detail": "Domain forward already exists for Additional error context.",
7828
7885
  * "status": 409,
7829
7886
  * "title": "Domain Forward Error",
7830
7887
  * "type": "domain-forward-already-exists"
@@ -8227,7 +8284,7 @@ export interface operations {
8227
8284
  };
8228
8285
  };
8229
8286
  };
8230
- create_domain_forward_set_v1_domain_forwards__hostname___protocol__post: {
8287
+ create_domain_forward_set_deprecated_v1_domain_forwards__hostname___protocol__post: {
8231
8288
  parameters: {
8232
8289
  query?: never;
8233
8290
  header?: never;
@@ -11221,7 +11278,7 @@ export interface operations {
11221
11278
  [name: string]: unknown;
11222
11279
  };
11223
11280
  content: {
11224
- "application/json": components["schemas"]["Pagination_User_"];
11281
+ "application/json": components["schemas"]["Pagination_UserPublic_"];
11225
11282
  };
11226
11283
  };
11227
11284
  /** @description Unauthorized */
@@ -11830,7 +11887,7 @@ export interface operations {
11830
11887
  [name: string]: unknown;
11831
11888
  };
11832
11889
  content: {
11833
- "application/json": components["schemas"]["User"];
11890
+ "application/json": components["schemas"]["UserPublic"];
11834
11891
  };
11835
11892
  };
11836
11893
  /** @description Validation Error */
@@ -11941,7 +11998,7 @@ export interface operations {
11941
11998
  [name: string]: unknown;
11942
11999
  };
11943
12000
  content: {
11944
- "application/json": components["schemas"]["UserWithAttributes"];
12001
+ "application/json": components["schemas"]["UserPublicWithAttributes"];
11945
12002
  };
11946
12003
  };
11947
12004
  /** @description Validation Error */
@@ -12021,7 +12078,7 @@ export interface operations {
12021
12078
  [name: string]: unknown;
12022
12079
  };
12023
12080
  content: {
12024
- "application/json": components["schemas"]["UserWithAttributes"];
12081
+ "application/json": components["schemas"]["UserPublicWithAttributes"];
12025
12082
  };
12026
12083
  };
12027
12084
  /** @description Validation Error */