@icepanel/sdk 0.1.2 → 0.1.6

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.
Files changed (191) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/BaseClient.d.ts +7 -9
  3. package/dist/cjs/BaseClient.js +8 -3
  4. package/dist/cjs/Client.d.ts +2 -2
  5. package/dist/cjs/Client.js +1 -1
  6. package/dist/cjs/IcePanelClient.d.ts +7 -8
  7. package/dist/cjs/IcePanelClient.js +11 -11
  8. package/dist/cjs/api/requests/requests.d.ts +62 -142
  9. package/dist/cjs/api/resources/catalog/client/Client.d.ts +2 -2
  10. package/dist/cjs/api/resources/catalog/client/Client.js +1 -1
  11. package/dist/cjs/api/resources/catalog/resources/technologies/client/Client.d.ts +2 -71
  12. package/dist/cjs/api/resources/catalog/resources/technologies/client/Client.js +5 -262
  13. package/dist/cjs/api/resources/catalog/resources/technologies/types/types.d.ts +0 -12
  14. package/dist/cjs/api/resources/comments/client/Client.d.ts +7 -5
  15. package/dist/cjs/api/resources/comments/client/Client.js +25 -28
  16. package/dist/cjs/api/resources/comments/resources/replies/client/Client.d.ts +5 -3
  17. package/dist/cjs/api/resources/comments/resources/replies/client/Client.js +23 -26
  18. package/dist/cjs/api/resources/diagrams/client/Client.d.ts +4 -3
  19. package/dist/cjs/api/resources/diagrams/client/Client.js +31 -32
  20. package/dist/cjs/api/resources/diagrams/resources/content/client/Client.d.ts +2 -2
  21. package/dist/cjs/api/resources/diagrams/resources/content/client/Client.js +10 -7
  22. package/dist/cjs/api/resources/diagrams/resources/export/client/Client.d.ts +2 -2
  23. package/dist/cjs/api/resources/diagrams/resources/export/client/Client.js +7 -5
  24. package/dist/cjs/api/resources/diagrams/resources/groups/client/Client.d.ts +6 -4
  25. package/dist/cjs/api/resources/diagrams/resources/groups/client/Client.js +27 -29
  26. package/dist/cjs/api/resources/domains/client/Client.d.ts +5 -3
  27. package/dist/cjs/api/resources/domains/client/Client.js +26 -28
  28. package/dist/cjs/api/resources/drafts/client/Client.d.ts +2 -2
  29. package/dist/cjs/api/resources/drafts/client/Client.js +22 -15
  30. package/dist/cjs/api/resources/flows/client/Client.d.ts +2 -2
  31. package/dist/cjs/api/resources/flows/client/Client.js +28 -19
  32. package/dist/cjs/api/resources/flows/resources/export/client/Client.d.ts +2 -2
  33. package/dist/cjs/api/resources/flows/resources/export/client/Client.js +10 -7
  34. package/dist/cjs/api/resources/landscapes/client/Client.d.ts +2 -2
  35. package/dist/cjs/api/resources/landscapes/client/Client.js +19 -13
  36. package/dist/cjs/api/resources/landscapes/resources/export/client/Client.d.ts +2 -2
  37. package/dist/cjs/api/resources/landscapes/resources/export/client/Client.js +7 -5
  38. package/dist/cjs/api/resources/landscapes/resources/logs/client/Client.d.ts +2 -2
  39. package/dist/cjs/api/resources/landscapes/resources/logs/client/Client.js +10 -7
  40. package/dist/cjs/api/resources/landscapes/resources/logs/resources/stats/client/Client.d.ts +2 -2
  41. package/dist/cjs/api/resources/landscapes/resources/logs/resources/stats/client/Client.js +7 -5
  42. package/dist/cjs/api/resources/model/client/Client.d.ts +2 -2
  43. package/dist/cjs/api/resources/model/client/Client.js +1 -1
  44. package/dist/cjs/api/resources/model/resources/connections/client/Client.d.ts +28 -5
  45. package/dist/cjs/api/resources/model/resources/connections/client/Client.js +95 -17
  46. package/dist/cjs/api/resources/model/resources/connections/resources/export/client/Client.d.ts +3 -3
  47. package/dist/cjs/api/resources/model/resources/connections/resources/export/client/Client.js +6 -4
  48. package/dist/cjs/api/resources/model/resources/connections/types/types.d.ts +6 -0
  49. package/dist/cjs/api/resources/model/resources/objects/client/Client.d.ts +6 -4
  50. package/dist/cjs/api/resources/model/resources/objects/client/Client.js +24 -27
  51. package/dist/cjs/api/resources/model/resources/objects/resources/export/client/Client.d.ts +3 -3
  52. package/dist/cjs/api/resources/model/resources/objects/resources/export/client/Client.js +9 -6
  53. package/dist/cjs/api/resources/organizations/client/Client.d.ts +2 -2
  54. package/dist/cjs/api/resources/organizations/client/Client.js +16 -11
  55. package/dist/cjs/api/resources/organizations/resources/landscapes/client/Client.d.ts +2 -2
  56. package/dist/cjs/api/resources/organizations/resources/landscapes/client/Client.js +7 -5
  57. package/dist/cjs/api/resources/organizations/resources/logs/client/Client.d.ts +2 -2
  58. package/dist/cjs/api/resources/organizations/resources/logs/client/Client.js +7 -5
  59. package/dist/cjs/api/resources/organizations/resources/logs/resources/stats/client/Client.d.ts +2 -2
  60. package/dist/cjs/api/resources/organizations/resources/logs/resources/stats/client/Client.js +7 -5
  61. package/dist/cjs/api/resources/organizations/resources/technologies/client/Client.d.ts +2 -2
  62. package/dist/cjs/api/resources/organizations/resources/technologies/client/Client.js +16 -11
  63. package/dist/cjs/api/resources/organizations/resources/users/client/Client.d.ts +2 -2
  64. package/dist/cjs/api/resources/organizations/resources/users/client/Client.js +10 -7
  65. package/dist/cjs/api/resources/organizations/resources/users/resources/invites/client/Client.d.ts +2 -2
  66. package/dist/cjs/api/resources/organizations/resources/users/resources/invites/client/Client.js +10 -7
  67. package/dist/cjs/api/resources/shareLink/client/Client.d.ts +2 -2
  68. package/dist/cjs/api/resources/shareLink/client/Client.js +13 -9
  69. package/dist/cjs/api/resources/tags/client/Client.d.ts +8 -6
  70. package/dist/cjs/api/resources/tags/client/Client.js +26 -29
  71. package/dist/cjs/api/resources/tags/resources/groups/client/Client.d.ts +7 -5
  72. package/dist/cjs/api/resources/tags/resources/groups/client/Client.js +25 -28
  73. package/dist/cjs/api/resources/teams/client/Client.d.ts +2 -2
  74. package/dist/cjs/api/resources/teams/client/Client.js +22 -15
  75. package/dist/cjs/api/resources/versions/client/Client.d.ts +2 -2
  76. package/dist/cjs/api/resources/versions/client/Client.js +16 -11
  77. package/dist/cjs/api/resources/versions/resources/reverts/client/Client.d.ts +2 -2
  78. package/dist/cjs/api/resources/versions/resources/reverts/client/Client.js +13 -9
  79. package/dist/cjs/api/types/types.d.ts +187 -1487
  80. package/dist/cjs/api/types/types.js +14 -329
  81. package/dist/cjs/auth/AnyAuthProvider.d.ts +23 -0
  82. package/dist/cjs/auth/AnyAuthProvider.js +46 -0
  83. package/dist/cjs/auth/BearerAuthProvider.d.ts +23 -0
  84. package/dist/cjs/auth/BearerAuthProvider.js +82 -0
  85. package/dist/cjs/auth/HeaderAuthProvider.d.ts +17 -10
  86. package/dist/cjs/auth/HeaderAuthProvider.js +22 -9
  87. package/dist/cjs/auth/index.d.ts +2 -0
  88. package/dist/cjs/auth/index.js +5 -1
  89. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +2 -2
  90. package/dist/cjs/environments.d.ts +2 -2
  91. package/dist/cjs/environments.js +1 -1
  92. package/dist/cjs/helpers/index.d.ts +1 -1
  93. package/dist/cjs/helpers/index.js +1 -1
  94. package/dist/cjs/version.d.ts +1 -1
  95. package/dist/cjs/version.js +1 -1
  96. package/dist/esm/BaseClient.d.mts +7 -9
  97. package/dist/esm/BaseClient.mjs +8 -3
  98. package/dist/esm/Client.d.mts +2 -2
  99. package/dist/esm/Client.mjs +2 -2
  100. package/dist/esm/IcePanelClient.d.mts +7 -8
  101. package/dist/esm/IcePanelClient.mjs +10 -10
  102. package/dist/esm/api/requests/requests.d.mts +62 -142
  103. package/dist/esm/api/resources/catalog/client/Client.d.mts +2 -2
  104. package/dist/esm/api/resources/catalog/client/Client.mjs +2 -2
  105. package/dist/esm/api/resources/catalog/resources/technologies/client/Client.d.mts +2 -71
  106. package/dist/esm/api/resources/catalog/resources/technologies/client/Client.mjs +6 -263
  107. package/dist/esm/api/resources/catalog/resources/technologies/types/types.d.mts +0 -12
  108. package/dist/esm/api/resources/comments/client/Client.d.mts +7 -5
  109. package/dist/esm/api/resources/comments/client/Client.mjs +26 -29
  110. package/dist/esm/api/resources/comments/resources/replies/client/Client.d.mts +5 -3
  111. package/dist/esm/api/resources/comments/resources/replies/client/Client.mjs +24 -27
  112. package/dist/esm/api/resources/diagrams/client/Client.d.mts +4 -3
  113. package/dist/esm/api/resources/diagrams/client/Client.mjs +32 -33
  114. package/dist/esm/api/resources/diagrams/resources/content/client/Client.d.mts +2 -2
  115. package/dist/esm/api/resources/diagrams/resources/content/client/Client.mjs +11 -8
  116. package/dist/esm/api/resources/diagrams/resources/export/client/Client.d.mts +2 -2
  117. package/dist/esm/api/resources/diagrams/resources/export/client/Client.mjs +8 -6
  118. package/dist/esm/api/resources/diagrams/resources/groups/client/Client.d.mts +6 -4
  119. package/dist/esm/api/resources/diagrams/resources/groups/client/Client.mjs +28 -30
  120. package/dist/esm/api/resources/domains/client/Client.d.mts +5 -3
  121. package/dist/esm/api/resources/domains/client/Client.mjs +27 -29
  122. package/dist/esm/api/resources/drafts/client/Client.d.mts +2 -2
  123. package/dist/esm/api/resources/drafts/client/Client.mjs +23 -16
  124. package/dist/esm/api/resources/flows/client/Client.d.mts +2 -2
  125. package/dist/esm/api/resources/flows/client/Client.mjs +29 -20
  126. package/dist/esm/api/resources/flows/resources/export/client/Client.d.mts +2 -2
  127. package/dist/esm/api/resources/flows/resources/export/client/Client.mjs +11 -8
  128. package/dist/esm/api/resources/landscapes/client/Client.d.mts +2 -2
  129. package/dist/esm/api/resources/landscapes/client/Client.mjs +20 -14
  130. package/dist/esm/api/resources/landscapes/resources/export/client/Client.d.mts +2 -2
  131. package/dist/esm/api/resources/landscapes/resources/export/client/Client.mjs +8 -6
  132. package/dist/esm/api/resources/landscapes/resources/logs/client/Client.d.mts +2 -2
  133. package/dist/esm/api/resources/landscapes/resources/logs/client/Client.mjs +11 -8
  134. package/dist/esm/api/resources/landscapes/resources/logs/resources/stats/client/Client.d.mts +2 -2
  135. package/dist/esm/api/resources/landscapes/resources/logs/resources/stats/client/Client.mjs +8 -6
  136. package/dist/esm/api/resources/model/client/Client.d.mts +2 -2
  137. package/dist/esm/api/resources/model/client/Client.mjs +2 -2
  138. package/dist/esm/api/resources/model/resources/connections/client/Client.d.mts +28 -5
  139. package/dist/esm/api/resources/model/resources/connections/client/Client.mjs +96 -18
  140. package/dist/esm/api/resources/model/resources/connections/resources/export/client/Client.d.mts +3 -3
  141. package/dist/esm/api/resources/model/resources/connections/resources/export/client/Client.mjs +7 -5
  142. package/dist/esm/api/resources/model/resources/connections/types/types.d.mts +6 -0
  143. package/dist/esm/api/resources/model/resources/objects/client/Client.d.mts +6 -4
  144. package/dist/esm/api/resources/model/resources/objects/client/Client.mjs +25 -28
  145. package/dist/esm/api/resources/model/resources/objects/resources/export/client/Client.d.mts +3 -3
  146. package/dist/esm/api/resources/model/resources/objects/resources/export/client/Client.mjs +10 -7
  147. package/dist/esm/api/resources/organizations/client/Client.d.mts +2 -2
  148. package/dist/esm/api/resources/organizations/client/Client.mjs +17 -12
  149. package/dist/esm/api/resources/organizations/resources/landscapes/client/Client.d.mts +2 -2
  150. package/dist/esm/api/resources/organizations/resources/landscapes/client/Client.mjs +8 -6
  151. package/dist/esm/api/resources/organizations/resources/logs/client/Client.d.mts +2 -2
  152. package/dist/esm/api/resources/organizations/resources/logs/client/Client.mjs +8 -6
  153. package/dist/esm/api/resources/organizations/resources/logs/resources/stats/client/Client.d.mts +2 -2
  154. package/dist/esm/api/resources/organizations/resources/logs/resources/stats/client/Client.mjs +8 -6
  155. package/dist/esm/api/resources/organizations/resources/technologies/client/Client.d.mts +2 -2
  156. package/dist/esm/api/resources/organizations/resources/technologies/client/Client.mjs +17 -12
  157. package/dist/esm/api/resources/organizations/resources/users/client/Client.d.mts +2 -2
  158. package/dist/esm/api/resources/organizations/resources/users/client/Client.mjs +11 -8
  159. package/dist/esm/api/resources/organizations/resources/users/resources/invites/client/Client.d.mts +2 -2
  160. package/dist/esm/api/resources/organizations/resources/users/resources/invites/client/Client.mjs +11 -8
  161. package/dist/esm/api/resources/shareLink/client/Client.d.mts +2 -2
  162. package/dist/esm/api/resources/shareLink/client/Client.mjs +14 -10
  163. package/dist/esm/api/resources/tags/client/Client.d.mts +8 -6
  164. package/dist/esm/api/resources/tags/client/Client.mjs +27 -30
  165. package/dist/esm/api/resources/tags/resources/groups/client/Client.d.mts +7 -5
  166. package/dist/esm/api/resources/tags/resources/groups/client/Client.mjs +26 -29
  167. package/dist/esm/api/resources/teams/client/Client.d.mts +2 -2
  168. package/dist/esm/api/resources/teams/client/Client.mjs +23 -16
  169. package/dist/esm/api/resources/versions/client/Client.d.mts +2 -2
  170. package/dist/esm/api/resources/versions/client/Client.mjs +17 -12
  171. package/dist/esm/api/resources/versions/resources/reverts/client/Client.d.mts +2 -2
  172. package/dist/esm/api/resources/versions/resources/reverts/client/Client.mjs +14 -10
  173. package/dist/esm/api/types/types.d.mts +187 -1487
  174. package/dist/esm/api/types/types.mjs +11 -325
  175. package/dist/esm/auth/AnyAuthProvider.d.mts +23 -0
  176. package/dist/esm/auth/AnyAuthProvider.mjs +42 -0
  177. package/dist/esm/auth/BearerAuthProvider.d.mts +23 -0
  178. package/dist/esm/auth/BearerAuthProvider.mjs +45 -0
  179. package/dist/esm/auth/HeaderAuthProvider.d.mts +17 -10
  180. package/dist/esm/auth/HeaderAuthProvider.mjs +22 -9
  181. package/dist/esm/auth/index.d.mts +2 -0
  182. package/dist/esm/auth/index.mjs +2 -0
  183. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +2 -2
  184. package/dist/esm/environments.d.mts +2 -2
  185. package/dist/esm/environments.mjs +1 -1
  186. package/dist/esm/helpers/index.d.mts +1 -1
  187. package/dist/esm/helpers/index.mjs +1 -1
  188. package/dist/esm/version.d.mts +1 -1
  189. package/dist/esm/version.mjs +1 -1
  190. package/package.json +1 -1
  191. package/reference.md +107 -280
@@ -1,5 +1,5 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
2
- import { type NormalizedClientOptions } from "../../../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
3
3
  import * as core from "../../../../../../core/index.js";
4
4
  import * as IcePanel from "../../../../../index.js";
5
5
  export declare namespace ExportClient {
@@ -8,7 +8,7 @@ export declare namespace ExportClient {
8
8
  }
9
9
  }
10
10
  export declare class ExportClient {
11
- protected readonly _options: NormalizedClientOptions<ExportClient.Options>;
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<ExportClient.Options>;
12
12
  constructor(options?: ExportClient.Options);
13
13
  /**
14
14
  * @param {IcePanel.LandscapeExportRequest} request
@@ -53,7 +53,7 @@ const errors = __importStar(require("../../../../../../errors/index.js"));
53
53
  const IcePanel = __importStar(require("../../../../../index.js"));
54
54
  class ExportClient {
55
55
  constructor(options = {}) {
56
- this._options = (0, BaseClient_js_1.normalizeClientOptions)(options);
56
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
59
59
  * @param {IcePanel.LandscapeExportRequest} request
@@ -85,9 +85,10 @@ class ExportClient {
85
85
  if (filter != null) {
86
86
  _queryParams.filter = filter;
87
87
  }
88
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
88
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
89
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
89
90
  const _response = yield core.fetcher({
90
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.V1, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/export`),
91
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/export`),
91
92
  method: "POST",
92
93
  headers: _headers,
93
94
  contentType: "application/json",
@@ -153,9 +154,10 @@ class ExportClient {
153
154
  return __awaiter(this, void 0, void 0, function* () {
154
155
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
155
156
  const { landscapeId, versionId, landscapeExportId } = request;
156
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
157
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
158
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
157
159
  const _response = yield core.fetcher({
158
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.V1, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/export/${core.url.encodePathParam(landscapeExportId)}`),
160
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/export/${core.url.encodePathParam(landscapeExportId)}`),
159
161
  method: "GET",
160
162
  headers: _headers,
161
163
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -1,5 +1,5 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
2
- import { type NormalizedClientOptions } from "../../../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
3
3
  import * as core from "../../../../../../core/index.js";
4
4
  import * as IcePanel from "../../../../../index.js";
5
5
  import { StatsClient } from "../resources/stats/client/Client.js";
@@ -9,7 +9,7 @@ export declare namespace LogsClient {
9
9
  }
10
10
  }
11
11
  export declare class LogsClient {
12
- protected readonly _options: NormalizedClientOptions<LogsClient.Options>;
12
+ protected readonly _options: NormalizedClientOptionsWithAuth<LogsClient.Options>;
13
13
  protected _stats: StatsClient | undefined;
14
14
  constructor(options?: LogsClient.Options);
15
15
  get stats(): StatsClient;
@@ -54,7 +54,7 @@ const IcePanel = __importStar(require("../../../../../index.js"));
54
54
  const Client_js_1 = require("../resources/stats/client/Client.js");
55
55
  class LogsClient {
56
56
  constructor(options = {}) {
57
- this._options = (0, BaseClient_js_1.normalizeClientOptions)(options);
57
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
58
58
  }
59
59
  get stats() {
60
60
  var _a;
@@ -87,9 +87,10 @@ class LogsClient {
87
87
  if (filter != null) {
88
88
  _queryParams.filter = filter;
89
89
  }
90
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
90
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
91
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
91
92
  const _response = yield core.fetcher({
92
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.V1, `landscapes/${core.url.encodePathParam(landscapeId)}/action-logs`),
93
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `landscapes/${core.url.encodePathParam(landscapeId)}/action-logs`),
93
94
  method: "GET",
94
95
  headers: _headers,
95
96
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -148,9 +149,10 @@ class LogsClient {
148
149
  return __awaiter(this, void 0, void 0, function* () {
149
150
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
150
151
  const { landscapeId, actionLogId } = request;
151
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
152
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
153
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
152
154
  const _response = yield core.fetcher({
153
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.V1, `landscapes/${core.url.encodePathParam(landscapeId)}/action-logs/${core.url.encodePathParam(actionLogId)}`),
155
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `landscapes/${core.url.encodePathParam(landscapeId)}/action-logs/${core.url.encodePathParam(actionLogId)}`),
154
156
  method: "GET",
155
157
  headers: _headers,
156
158
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -213,9 +215,10 @@ class LogsClient {
213
215
  if (filter != null) {
214
216
  _queryParams.filter = filter;
215
217
  }
216
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
218
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
219
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
217
220
  const _response = yield core.fetcher({
218
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.V1, `landscapes/${core.url.encodePathParam(landscapeId)}/action-logs/${core.url.encodePathParam(actionLogId)}/children`),
221
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `landscapes/${core.url.encodePathParam(landscapeId)}/action-logs/${core.url.encodePathParam(actionLogId)}/children`),
219
222
  method: "GET",
220
223
  headers: _headers,
221
224
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -1,5 +1,5 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../BaseClient.js";
2
- import { type NormalizedClientOptions } from "../../../../../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../BaseClient.js";
3
3
  import * as core from "../../../../../../../../core/index.js";
4
4
  import * as IcePanel from "../../../../../../../index.js";
5
5
  export declare namespace StatsClient {
@@ -8,7 +8,7 @@ export declare namespace StatsClient {
8
8
  }
9
9
  }
10
10
  export declare class StatsClient {
11
- protected readonly _options: NormalizedClientOptions<StatsClient.Options>;
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<StatsClient.Options>;
12
12
  constructor(options?: StatsClient.Options);
13
13
  /**
14
14
  * List total counts of actions for each action type (e.g. diagram-content-update, model-object-create)
@@ -53,7 +53,7 @@ const errors = __importStar(require("../../../../../../../../errors/index.js"));
53
53
  const IcePanel = __importStar(require("../../../../../../../index.js"));
54
54
  class StatsClient {
55
55
  constructor(options = {}) {
56
- this._options = (0, BaseClient_js_1.normalizeClientOptions)(options);
56
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
59
59
  * List total counts of actions for each action type (e.g. diagram-content-update, model-object-create)
@@ -85,9 +85,10 @@ class StatsClient {
85
85
  if (period != null) {
86
86
  _queryParams.period = period;
87
87
  }
88
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
88
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
89
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
89
90
  const _response = yield core.fetcher({
90
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.V1, `landscapes/${core.url.encodePathParam(landscapeId)}/action-logs/stats/by-type`),
91
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `landscapes/${core.url.encodePathParam(landscapeId)}/action-logs/stats/by-type`),
91
92
  method: "GET",
92
93
  headers: _headers,
93
94
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -152,9 +153,10 @@ class StatsClient {
152
153
  if (period != null) {
153
154
  _queryParams.period = period;
154
155
  }
155
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
156
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
157
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
156
158
  const _response = yield core.fetcher({
157
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.V1, `landscapes/${core.url.encodePathParam(landscapeId)}/action-logs/stats/by-entity`),
159
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `landscapes/${core.url.encodePathParam(landscapeId)}/action-logs/stats/by-entity`),
158
160
  method: "GET",
159
161
  headers: _headers,
160
162
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -1,12 +1,12 @@
1
1
  import type { BaseClientOptions } from "../../../../BaseClient.js";
2
- import { type NormalizedClientOptions } from "../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
3
3
  import { ConnectionsClient } from "../resources/connections/client/Client.js";
4
4
  import { ObjectsClient } from "../resources/objects/client/Client.js";
5
5
  export declare namespace ModelClient {
6
6
  type Options = BaseClientOptions;
7
7
  }
8
8
  export declare class ModelClient {
9
- protected readonly _options: NormalizedClientOptions<ModelClient.Options>;
9
+ protected readonly _options: NormalizedClientOptionsWithAuth<ModelClient.Options>;
10
10
  protected _connections: ConnectionsClient | undefined;
11
11
  protected _objects: ObjectsClient | undefined;
12
12
  constructor(options?: ModelClient.Options);
@@ -7,7 +7,7 @@ const Client_js_1 = require("../resources/connections/client/Client.js");
7
7
  const Client_js_2 = require("../resources/objects/client/Client.js");
8
8
  class ModelClient {
9
9
  constructor(options = {}) {
10
- this._options = (0, BaseClient_js_1.normalizeClientOptions)(options);
10
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
11
11
  }
12
12
  get connections() {
13
13
  var _a;
@@ -1,5 +1,5 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
2
- import { type NormalizedClientOptions } from "../../../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
3
3
  import * as core from "../../../../../../core/index.js";
4
4
  import * as IcePanel from "../../../../../index.js";
5
5
  import { ExportClient } from "../resources/export/client/Client.js";
@@ -9,7 +9,7 @@ export declare namespace ConnectionsClient {
9
9
  }
10
10
  }
11
11
  export declare class ConnectionsClient {
12
- protected readonly _options: NormalizedClientOptions<ConnectionsClient.Options>;
12
+ protected readonly _options: NormalizedClientOptionsWithAuth<ConnectionsClient.Options>;
13
13
  protected _export: ExportClient | undefined;
14
14
  constructor(options?: ConnectionsClient.Options);
15
15
  get export(): ExportClient;
@@ -87,9 +87,11 @@ export declare class ConnectionsClient {
87
87
  * landscapeId: "landscapeId",
88
88
  * versionId: "versionId",
89
89
  * modelConnectionId: "modelConnectionId",
90
- * name: "name",
91
- * originId: "originId",
92
- * targetId: "targetId"
90
+ * body: {
91
+ * name: "name",
92
+ * originId: "originId",
93
+ * targetId: "targetId"
94
+ * }
93
95
  * })
94
96
  */
95
97
  upsert(request: IcePanel.ModelConnectionUpsertRequest, requestOptions?: ConnectionsClient.RequestOptions): core.HttpResponsePromise<IcePanel.model.ConnectionsUpsertResponse>;
@@ -133,4 +135,25 @@ export declare class ConnectionsClient {
133
135
  */
134
136
  update(request: IcePanel.ModelConnectionUpdateRequest, requestOptions?: ConnectionsClient.RequestOptions): core.HttpResponsePromise<IcePanel.model.ConnectionsUpdateResponse>;
135
137
  private __update;
138
+ /**
139
+ * Generate a description for a model connection
140
+ *
141
+ * @param {IcePanel.ModelConnectionGenerateDescriptionRequest} request
142
+ * @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
143
+ *
144
+ * @throws {@link IcePanel.UnauthorizedError}
145
+ * @throws {@link IcePanel.NotFoundError}
146
+ * @throws {@link IcePanel.UnprocessableEntityError}
147
+ * @throws {@link IcePanel.InternalServerError}
148
+ *
149
+ * @example
150
+ * await client.model.connections.generateDescription({
151
+ * landscapeId: "landscapeId",
152
+ * versionId: "versionId",
153
+ * modelConnectionId: "modelConnectionId",
154
+ * type: "caption"
155
+ * })
156
+ */
157
+ generateDescription(request: IcePanel.ModelConnectionGenerateDescriptionRequest, requestOptions?: ConnectionsClient.RequestOptions): core.HttpResponsePromise<IcePanel.model.ConnectionsGenerateDescriptionResponse>;
158
+ private __generateDescription;
136
159
  }
@@ -65,7 +65,7 @@ const IcePanel = __importStar(require("../../../../../index.js"));
65
65
  const Client_js_1 = require("../resources/export/client/Client.js");
66
66
  class ConnectionsClient {
67
67
  constructor(options = {}) {
68
- this._options = (0, BaseClient_js_1.normalizeClientOptions)(options);
68
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
69
69
  }
70
70
  get export() {
71
71
  var _a;
@@ -105,9 +105,10 @@ class ConnectionsClient {
105
105
  _queryParams.expand = expand;
106
106
  }
107
107
  }
108
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
108
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
109
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
109
110
  const _response = yield core.fetcher({
110
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.V1, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/model/connections`),
111
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/model/connections`),
111
112
  method: "GET",
112
113
  headers: _headers,
113
114
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -173,9 +174,10 @@ class ConnectionsClient {
173
174
  return __awaiter(this, void 0, void 0, function* () {
174
175
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
175
176
  const { landscapeId, versionId, body: _body } = request;
176
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
177
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
178
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
177
179
  const _response = yield core.fetcher({
178
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.V1, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/model/connections`),
180
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/model/connections`),
179
181
  method: "POST",
180
182
  headers: _headers,
181
183
  contentType: "application/json",
@@ -250,9 +252,10 @@ class ConnectionsClient {
250
252
  _queryParams.expand = expand;
251
253
  }
252
254
  }
253
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
255
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
256
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
254
257
  const _response = yield core.fetcher({
255
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.V1, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/model/connections/${core.url.encodePathParam(modelConnectionId)}`),
258
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/model/connections/${core.url.encodePathParam(modelConnectionId)}`),
256
259
  method: "GET",
257
260
  headers: _headers,
258
261
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -306,9 +309,11 @@ class ConnectionsClient {
306
309
  * landscapeId: "landscapeId",
307
310
  * versionId: "versionId",
308
311
  * modelConnectionId: "modelConnectionId",
309
- * name: "name",
310
- * originId: "originId",
311
- * targetId: "targetId"
312
+ * body: {
313
+ * name: "name",
314
+ * originId: "originId",
315
+ * targetId: "targetId"
316
+ * }
312
317
  * })
313
318
  */
314
319
  upsert(request, requestOptions) {
@@ -317,7 +322,7 @@ class ConnectionsClient {
317
322
  __upsert(request, requestOptions) {
318
323
  return __awaiter(this, void 0, void 0, function* () {
319
324
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
320
- const { landscapeId, versionId, modelConnectionId, originConnector, targetConnector, updateDiagrams } = request, _body = __rest(request, ["landscapeId", "versionId", "modelConnectionId", "originConnector", "targetConnector", "updateDiagrams"]);
325
+ const { landscapeId, versionId, modelConnectionId, originConnector, targetConnector, updateDiagrams, body: _body, } = request;
321
326
  const _queryParams = {};
322
327
  if (originConnector != null) {
323
328
  _queryParams.originConnector = originConnector;
@@ -328,9 +333,10 @@ class ConnectionsClient {
328
333
  if (updateDiagrams != null) {
329
334
  _queryParams.updateDiagrams = updateDiagrams.toString();
330
335
  }
331
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
336
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
337
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
332
338
  const _response = yield core.fetcher({
333
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.V1, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/model/connections/${core.url.encodePathParam(modelConnectionId)}`),
339
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/model/connections/${core.url.encodePathParam(modelConnectionId)}`),
334
340
  method: "PUT",
335
341
  headers: _headers,
336
342
  contentType: "application/json",
@@ -398,9 +404,10 @@ class ConnectionsClient {
398
404
  return __awaiter(this, void 0, void 0, function* () {
399
405
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
400
406
  const { landscapeId, versionId, modelConnectionId } = request;
401
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
407
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
408
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
402
409
  const _response = yield core.fetcher({
403
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.V1, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/model/connections/${core.url.encodePathParam(modelConnectionId)}`),
410
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/model/connections/${core.url.encodePathParam(modelConnectionId)}`),
404
411
  method: "DELETE",
405
412
  headers: _headers,
406
413
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -468,9 +475,10 @@ class ConnectionsClient {
468
475
  if (updateDiagrams != null) {
469
476
  _queryParams.updateDiagrams = updateDiagrams.toString();
470
477
  }
471
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
478
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
479
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
472
480
  const _response = yield core.fetcher({
473
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.V1, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/model/connections/${core.url.encodePathParam(modelConnectionId)}`),
481
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/model/connections/${core.url.encodePathParam(modelConnectionId)}`),
474
482
  method: "PATCH",
475
483
  headers: _headers,
476
484
  contentType: "application/json",
@@ -515,5 +523,75 @@ class ConnectionsClient {
515
523
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/landscapes/{landscapeId}/versions/{versionId}/model/connections/{modelConnectionId}");
516
524
  });
517
525
  }
526
+ /**
527
+ * Generate a description for a model connection
528
+ *
529
+ * @param {IcePanel.ModelConnectionGenerateDescriptionRequest} request
530
+ * @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
531
+ *
532
+ * @throws {@link IcePanel.UnauthorizedError}
533
+ * @throws {@link IcePanel.NotFoundError}
534
+ * @throws {@link IcePanel.UnprocessableEntityError}
535
+ * @throws {@link IcePanel.InternalServerError}
536
+ *
537
+ * @example
538
+ * await client.model.connections.generateDescription({
539
+ * landscapeId: "landscapeId",
540
+ * versionId: "versionId",
541
+ * modelConnectionId: "modelConnectionId",
542
+ * type: "caption"
543
+ * })
544
+ */
545
+ generateDescription(request, requestOptions) {
546
+ return core.HttpResponsePromise.fromPromise(this.__generateDescription(request, requestOptions));
547
+ }
548
+ __generateDescription(request, requestOptions) {
549
+ return __awaiter(this, void 0, void 0, function* () {
550
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
551
+ const { landscapeId, versionId, modelConnectionId } = request, _body = __rest(request, ["landscapeId", "versionId", "modelConnectionId"]);
552
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
553
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
554
+ const _response = yield core.fetcher({
555
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/model/connections/${core.url.encodePathParam(modelConnectionId)}/generate-description`),
556
+ method: "POST",
557
+ headers: _headers,
558
+ contentType: "application/json",
559
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
560
+ requestType: "json",
561
+ body: _body,
562
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
563
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
564
+ withCredentials: true,
565
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
566
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
567
+ logging: this._options.logging,
568
+ });
569
+ if (_response.ok) {
570
+ return {
571
+ data: _response.body,
572
+ rawResponse: _response.rawResponse,
573
+ };
574
+ }
575
+ if (_response.error.reason === "status-code") {
576
+ switch (_response.error.statusCode) {
577
+ case 401:
578
+ throw new IcePanel.UnauthorizedError(_response.error.body, _response.rawResponse);
579
+ case 404:
580
+ throw new IcePanel.NotFoundError(_response.error.body, _response.rawResponse);
581
+ case 422:
582
+ throw new IcePanel.UnprocessableEntityError(_response.error.body, _response.rawResponse);
583
+ case 500:
584
+ throw new IcePanel.InternalServerError(_response.error.body, _response.rawResponse);
585
+ default:
586
+ throw new errors.IcePanelError({
587
+ statusCode: _response.error.statusCode,
588
+ body: _response.error.body,
589
+ rawResponse: _response.rawResponse,
590
+ });
591
+ }
592
+ }
593
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/landscapes/{landscapeId}/versions/{versionId}/model/connections/{modelConnectionId}/generate-description");
594
+ });
595
+ }
518
596
  }
519
597
  exports.ConnectionsClient = ConnectionsClient;
@@ -1,5 +1,5 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../BaseClient.js";
2
- import { type NormalizedClientOptions } from "../../../../../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../BaseClient.js";
3
3
  import * as core from "../../../../../../../../core/index.js";
4
4
  import * as IcePanel from "../../../../../../../index.js";
5
5
  export declare namespace ExportClient {
@@ -8,7 +8,7 @@ export declare namespace ExportClient {
8
8
  }
9
9
  }
10
10
  export declare class ExportClient {
11
- protected readonly _options: NormalizedClientOptions<ExportClient.Options>;
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<ExportClient.Options>;
12
12
  constructor(options?: ExportClient.Options);
13
13
  /**
14
14
  * @param {IcePanel.ModelConnectionsExportCsvRequest} request
@@ -25,6 +25,6 @@ export declare class ExportClient {
25
25
  * versionId: "versionId"
26
26
  * })
27
27
  */
28
- csv(request: IcePanel.ModelConnectionsExportCsvRequest, requestOptions?: ExportClient.RequestOptions): core.HttpResponsePromise<void>;
28
+ csv(request: IcePanel.ModelConnectionsExportCsvRequest, requestOptions?: ExportClient.RequestOptions): core.HttpResponsePromise<string>;
29
29
  private __csv;
30
30
  }
@@ -53,7 +53,7 @@ const errors = __importStar(require("../../../../../../../../errors/index.js"));
53
53
  const IcePanel = __importStar(require("../../../../../../../index.js"));
54
54
  class ExportClient {
55
55
  constructor(options = {}) {
56
- this._options = (0, BaseClient_js_1.normalizeClientOptions)(options);
56
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
59
59
  * @param {IcePanel.ModelConnectionsExportCsvRequest} request
@@ -77,12 +77,14 @@ class ExportClient {
77
77
  return __awaiter(this, void 0, void 0, function* () {
78
78
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
79
79
  const { landscapeId, versionId } = request;
80
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
80
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
81
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
81
82
  const _response = yield core.fetcher({
82
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.V1, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/model/connections/export/csv`),
83
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/model/connections/export/csv`),
83
84
  method: "GET",
84
85
  headers: _headers,
85
86
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
87
+ responseType: "text",
86
88
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
87
89
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
88
90
  withCredentials: true,
@@ -91,7 +93,7 @@ class ExportClient {
91
93
  logging: this._options.logging,
92
94
  });
93
95
  if (_response.ok) {
94
- return { data: undefined, rawResponse: _response.rawResponse };
96
+ return { data: _response.body, rawResponse: _response.rawResponse };
95
97
  }
96
98
  if (_response.error.reason === "status-code") {
97
99
  switch (_response.error.statusCode) {
@@ -47,3 +47,9 @@ export interface ConnectionsDeleteResponse {
47
47
  export interface ConnectionsUpdateResponse {
48
48
  modelConnection: IcePanel.ModelConnection;
49
49
  }
50
+ export interface ConnectionsGenerateDescriptionResponse {
51
+ /** AI-generated description of the model connection */
52
+ description: string;
53
+ /** Success message from the AI API */
54
+ message: string;
55
+ }
@@ -1,5 +1,5 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
2
- import { type NormalizedClientOptions } from "../../../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
3
3
  import * as core from "../../../../../../core/index.js";
4
4
  import * as IcePanel from "../../../../../index.js";
5
5
  import { ExportClient } from "../resources/export/client/Client.js";
@@ -9,7 +9,7 @@ export declare namespace ObjectsClient {
9
9
  }
10
10
  }
11
11
  export declare class ObjectsClient {
12
- protected readonly _options: NormalizedClientOptions<ObjectsClient.Options>;
12
+ protected readonly _options: NormalizedClientOptionsWithAuth<ObjectsClient.Options>;
13
13
  protected _export: ExportClient | undefined;
14
14
  constructor(options?: ObjectsClient.Options);
15
15
  get export(): ExportClient;
@@ -85,8 +85,10 @@ export declare class ObjectsClient {
85
85
  * landscapeId: "landscapeId",
86
86
  * versionId: "versionId",
87
87
  * modelObjectId: "modelObjectId",
88
- * name: "name",
89
- * type: "actor"
88
+ * body: {
89
+ * name: "name",
90
+ * type: "actor"
91
+ * }
90
92
  * })
91
93
  */
92
94
  upsert(request: IcePanel.ModelObjectUpsertRequest, requestOptions?: ObjectsClient.RequestOptions): core.HttpResponsePromise<IcePanel.model.ObjectsUpsertResponse>;