@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
@@ -19,7 +19,7 @@ var __rest = (this && this.__rest) || function (s, e) {
19
19
  }
20
20
  return t;
21
21
  };
22
- import { normalizeClientOptions } from "../../../../../../BaseClient.mjs";
22
+ import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
23
23
  import { mergeHeaders } from "../../../../../../core/headers.mjs";
24
24
  import * as core from "../../../../../../core/index.mjs";
25
25
  import * as environments from "../../../../../../environments.mjs";
@@ -29,7 +29,7 @@ import * as IcePanel from "../../../../../index.mjs";
29
29
  import { ExportClient } from "../resources/export/client/Client.mjs";
30
30
  export class ConnectionsClient {
31
31
  constructor(options = {}) {
32
- this._options = normalizeClientOptions(options);
32
+ this._options = normalizeClientOptionsWithAuth(options);
33
33
  }
34
34
  get export() {
35
35
  var _a;
@@ -69,9 +69,10 @@ export class ConnectionsClient {
69
69
  _queryParams.expand = expand;
70
70
  }
71
71
  }
72
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
72
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
73
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
73
74
  const _response = yield core.fetcher({
74
- 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`),
75
+ 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`),
75
76
  method: "GET",
76
77
  headers: _headers,
77
78
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -137,9 +138,10 @@ export class ConnectionsClient {
137
138
  return __awaiter(this, void 0, void 0, function* () {
138
139
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
139
140
  const { landscapeId, versionId, body: _body } = request;
140
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
141
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
142
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
141
143
  const _response = yield core.fetcher({
142
- 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`),
144
+ 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`),
143
145
  method: "POST",
144
146
  headers: _headers,
145
147
  contentType: "application/json",
@@ -214,9 +216,10 @@ export class ConnectionsClient {
214
216
  _queryParams.expand = expand;
215
217
  }
216
218
  }
217
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
219
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
220
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
218
221
  const _response = yield core.fetcher({
219
- 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)}`),
222
+ 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)}`),
220
223
  method: "GET",
221
224
  headers: _headers,
222
225
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -270,9 +273,11 @@ export class ConnectionsClient {
270
273
  * landscapeId: "landscapeId",
271
274
  * versionId: "versionId",
272
275
  * modelConnectionId: "modelConnectionId",
273
- * name: "name",
274
- * originId: "originId",
275
- * targetId: "targetId"
276
+ * body: {
277
+ * name: "name",
278
+ * originId: "originId",
279
+ * targetId: "targetId"
280
+ * }
276
281
  * })
277
282
  */
278
283
  upsert(request, requestOptions) {
@@ -281,7 +286,7 @@ export class ConnectionsClient {
281
286
  __upsert(request, requestOptions) {
282
287
  return __awaiter(this, void 0, void 0, function* () {
283
288
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
284
- const { landscapeId, versionId, modelConnectionId, originConnector, targetConnector, updateDiagrams } = request, _body = __rest(request, ["landscapeId", "versionId", "modelConnectionId", "originConnector", "targetConnector", "updateDiagrams"]);
289
+ const { landscapeId, versionId, modelConnectionId, originConnector, targetConnector, updateDiagrams, body: _body, } = request;
285
290
  const _queryParams = {};
286
291
  if (originConnector != null) {
287
292
  _queryParams.originConnector = originConnector;
@@ -292,9 +297,10 @@ export class ConnectionsClient {
292
297
  if (updateDiagrams != null) {
293
298
  _queryParams.updateDiagrams = updateDiagrams.toString();
294
299
  }
295
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
300
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
301
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
296
302
  const _response = yield core.fetcher({
297
- 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)}`),
303
+ 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)}`),
298
304
  method: "PUT",
299
305
  headers: _headers,
300
306
  contentType: "application/json",
@@ -362,9 +368,10 @@ export class ConnectionsClient {
362
368
  return __awaiter(this, void 0, void 0, function* () {
363
369
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
364
370
  const { landscapeId, versionId, modelConnectionId } = request;
365
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
371
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
372
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
366
373
  const _response = yield core.fetcher({
367
- 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)}`),
374
+ 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)}`),
368
375
  method: "DELETE",
369
376
  headers: _headers,
370
377
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -432,9 +439,10 @@ export class ConnectionsClient {
432
439
  if (updateDiagrams != null) {
433
440
  _queryParams.updateDiagrams = updateDiagrams.toString();
434
441
  }
435
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
442
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
443
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
436
444
  const _response = yield core.fetcher({
437
- 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)}`),
445
+ 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)}`),
438
446
  method: "PATCH",
439
447
  headers: _headers,
440
448
  contentType: "application/json",
@@ -479,4 +487,74 @@ export class ConnectionsClient {
479
487
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/landscapes/{landscapeId}/versions/{versionId}/model/connections/{modelConnectionId}");
480
488
  });
481
489
  }
490
+ /**
491
+ * Generate a description for a model connection
492
+ *
493
+ * @param {IcePanel.ModelConnectionGenerateDescriptionRequest} request
494
+ * @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
495
+ *
496
+ * @throws {@link IcePanel.UnauthorizedError}
497
+ * @throws {@link IcePanel.NotFoundError}
498
+ * @throws {@link IcePanel.UnprocessableEntityError}
499
+ * @throws {@link IcePanel.InternalServerError}
500
+ *
501
+ * @example
502
+ * await client.model.connections.generateDescription({
503
+ * landscapeId: "landscapeId",
504
+ * versionId: "versionId",
505
+ * modelConnectionId: "modelConnectionId",
506
+ * type: "caption"
507
+ * })
508
+ */
509
+ generateDescription(request, requestOptions) {
510
+ return core.HttpResponsePromise.fromPromise(this.__generateDescription(request, requestOptions));
511
+ }
512
+ __generateDescription(request, requestOptions) {
513
+ return __awaiter(this, void 0, void 0, function* () {
514
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
515
+ const { landscapeId, versionId, modelConnectionId } = request, _body = __rest(request, ["landscapeId", "versionId", "modelConnectionId"]);
516
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
517
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
518
+ const _response = yield core.fetcher({
519
+ 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`),
520
+ method: "POST",
521
+ headers: _headers,
522
+ contentType: "application/json",
523
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
524
+ requestType: "json",
525
+ body: _body,
526
+ 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,
527
+ 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,
528
+ withCredentials: true,
529
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
530
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
531
+ logging: this._options.logging,
532
+ });
533
+ if (_response.ok) {
534
+ return {
535
+ data: _response.body,
536
+ rawResponse: _response.rawResponse,
537
+ };
538
+ }
539
+ if (_response.error.reason === "status-code") {
540
+ switch (_response.error.statusCode) {
541
+ case 401:
542
+ throw new IcePanel.UnauthorizedError(_response.error.body, _response.rawResponse);
543
+ case 404:
544
+ throw new IcePanel.NotFoundError(_response.error.body, _response.rawResponse);
545
+ case 422:
546
+ throw new IcePanel.UnprocessableEntityError(_response.error.body, _response.rawResponse);
547
+ case 500:
548
+ throw new IcePanel.InternalServerError(_response.error.body, _response.rawResponse);
549
+ default:
550
+ throw new errors.IcePanelError({
551
+ statusCode: _response.error.statusCode,
552
+ body: _response.error.body,
553
+ rawResponse: _response.rawResponse,
554
+ });
555
+ }
556
+ }
557
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/landscapes/{landscapeId}/versions/{versionId}/model/connections/{modelConnectionId}/generate-description");
558
+ });
559
+ }
482
560
  }
@@ -1,5 +1,5 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../BaseClient.mjs";
2
- import { type NormalizedClientOptions } from "../../../../../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../BaseClient.mjs";
3
3
  import * as core from "../../../../../../../../core/index.mjs";
4
4
  import * as IcePanel from "../../../../../../../index.mjs";
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
  }
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- import { normalizeClientOptions } from "../../../../../../../../BaseClient.mjs";
11
+ import { normalizeClientOptionsWithAuth, } from "../../../../../../../../BaseClient.mjs";
12
12
  import { mergeHeaders } from "../../../../../../../../core/headers.mjs";
13
13
  import * as core from "../../../../../../../../core/index.mjs";
14
14
  import * as environments from "../../../../../../../../environments.mjs";
@@ -17,7 +17,7 @@ import * as errors from "../../../../../../../../errors/index.mjs";
17
17
  import * as IcePanel from "../../../../../../../index.mjs";
18
18
  export class ExportClient {
19
19
  constructor(options = {}) {
20
- this._options = normalizeClientOptions(options);
20
+ this._options = normalizeClientOptionsWithAuth(options);
21
21
  }
22
22
  /**
23
23
  * @param {IcePanel.ModelConnectionsExportCsvRequest} request
@@ -41,12 +41,14 @@ export class ExportClient {
41
41
  return __awaiter(this, void 0, void 0, function* () {
42
42
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
43
43
  const { landscapeId, versionId } = request;
44
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
44
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
45
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
45
46
  const _response = yield core.fetcher({
46
- 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`),
47
+ 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`),
47
48
  method: "GET",
48
49
  headers: _headers,
49
50
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
51
+ responseType: "text",
50
52
  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,
51
53
  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,
52
54
  withCredentials: true,
@@ -55,7 +57,7 @@ export class ExportClient {
55
57
  logging: this._options.logging,
56
58
  });
57
59
  if (_response.ok) {
58
- return { data: undefined, rawResponse: _response.rawResponse };
60
+ return { data: _response.body, rawResponse: _response.rawResponse };
59
61
  }
60
62
  if (_response.error.reason === "status-code") {
61
63
  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.mjs";
2
- import { type NormalizedClientOptions } from "../../../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
3
3
  import * as core from "../../../../../../core/index.mjs";
4
4
  import * as IcePanel from "../../../../../index.mjs";
5
5
  import { ExportClient } from "../resources/export/client/Client.mjs";
@@ -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>;
@@ -8,18 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- var __rest = (this && this.__rest) || function (s, e) {
12
- var t = {};
13
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
14
- t[p] = s[p];
15
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
16
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
17
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
18
- t[p[i]] = s[p[i]];
19
- }
20
- return t;
21
- };
22
- import { normalizeClientOptions } from "../../../../../../BaseClient.mjs";
11
+ import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
23
12
  import { mergeHeaders } from "../../../../../../core/headers.mjs";
24
13
  import * as core from "../../../../../../core/index.mjs";
25
14
  import * as environments from "../../../../../../environments.mjs";
@@ -29,7 +18,7 @@ import * as IcePanel from "../../../../../index.mjs";
29
18
  import { ExportClient } from "../resources/export/client/Client.mjs";
30
19
  export class ObjectsClient {
31
20
  constructor(options = {}) {
32
- this._options = normalizeClientOptions(options);
21
+ this._options = normalizeClientOptionsWithAuth(options);
33
22
  }
34
23
  get export() {
35
24
  var _a;
@@ -69,9 +58,10 @@ export class ObjectsClient {
69
58
  _queryParams.expand = expand;
70
59
  }
71
60
  }
72
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
61
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
62
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
73
63
  const _response = yield core.fetcher({
74
- 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/objects`),
64
+ 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/objects`),
75
65
  method: "GET",
76
66
  headers: _headers,
77
67
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -133,9 +123,10 @@ export class ObjectsClient {
133
123
  return __awaiter(this, void 0, void 0, function* () {
134
124
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
135
125
  const { landscapeId, versionId, body: _body } = request;
136
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
126
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
127
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
137
128
  const _response = yield core.fetcher({
138
- 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/objects`),
129
+ 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/objects`),
139
130
  method: "POST",
140
131
  headers: _headers,
141
132
  contentType: "application/json",
@@ -207,9 +198,10 @@ export class ObjectsClient {
207
198
  _queryParams.expand = expand;
208
199
  }
209
200
  }
210
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
201
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
202
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
211
203
  const _response = yield core.fetcher({
212
- 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/objects/${core.url.encodePathParam(modelObjectId)}`),
204
+ 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/objects/${core.url.encodePathParam(modelObjectId)}`),
213
205
  method: "GET",
214
206
  headers: _headers,
215
207
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -259,8 +251,10 @@ export class ObjectsClient {
259
251
  * landscapeId: "landscapeId",
260
252
  * versionId: "versionId",
261
253
  * modelObjectId: "modelObjectId",
262
- * name: "name",
263
- * type: "actor"
254
+ * body: {
255
+ * name: "name",
256
+ * type: "actor"
257
+ * }
264
258
  * })
265
259
  */
266
260
  upsert(request, requestOptions) {
@@ -269,10 +263,11 @@ export class ObjectsClient {
269
263
  __upsert(request, requestOptions) {
270
264
  return __awaiter(this, void 0, void 0, function* () {
271
265
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
272
- const { landscapeId, versionId, modelObjectId } = request, _body = __rest(request, ["landscapeId", "versionId", "modelObjectId"]);
273
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
266
+ const { landscapeId, versionId, modelObjectId, body: _body } = request;
267
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
268
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
274
269
  const _response = yield core.fetcher({
275
- 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/objects/${core.url.encodePathParam(modelObjectId)}`),
270
+ 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/objects/${core.url.encodePathParam(modelObjectId)}`),
276
271
  method: "PUT",
277
272
  headers: _headers,
278
273
  contentType: "application/json",
@@ -335,9 +330,10 @@ export class ObjectsClient {
335
330
  return __awaiter(this, void 0, void 0, function* () {
336
331
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
337
332
  const { landscapeId, versionId, modelObjectId } = request;
338
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
333
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
334
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
339
335
  const _response = yield core.fetcher({
340
- 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/objects/${core.url.encodePathParam(modelObjectId)}`),
336
+ 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/objects/${core.url.encodePathParam(modelObjectId)}`),
341
337
  method: "DELETE",
342
338
  headers: _headers,
343
339
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -398,9 +394,10 @@ export class ObjectsClient {
398
394
  return __awaiter(this, void 0, void 0, function* () {
399
395
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
400
396
  const { landscapeId, versionId, modelObjectId, body: _body } = request;
401
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
397
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
398
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
402
399
  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/objects/${core.url.encodePathParam(modelObjectId)}`),
400
+ 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/objects/${core.url.encodePathParam(modelObjectId)}`),
404
401
  method: "PATCH",
405
402
  headers: _headers,
406
403
  contentType: "application/json",
@@ -1,5 +1,5 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../BaseClient.mjs";
2
- import { type NormalizedClientOptions } from "../../../../../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../BaseClient.mjs";
3
3
  import * as core from "../../../../../../../../core/index.mjs";
4
4
  import * as IcePanel from "../../../../../../../index.mjs";
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
  * Export object dependencies as JSON
@@ -47,6 +47,6 @@ export declare class ExportClient {
47
47
  * versionId: "versionId"
48
48
  * })
49
49
  */
50
- csv(request: IcePanel.ModelObjectsExportCsvRequest, requestOptions?: ExportClient.RequestOptions): core.HttpResponsePromise<void>;
50
+ csv(request: IcePanel.ModelObjectsExportCsvRequest, requestOptions?: ExportClient.RequestOptions): core.HttpResponsePromise<string>;
51
51
  private __csv;
52
52
  }
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- import { normalizeClientOptions } from "../../../../../../../../BaseClient.mjs";
11
+ import { normalizeClientOptionsWithAuth, } from "../../../../../../../../BaseClient.mjs";
12
12
  import { mergeHeaders } from "../../../../../../../../core/headers.mjs";
13
13
  import * as core from "../../../../../../../../core/index.mjs";
14
14
  import * as environments from "../../../../../../../../environments.mjs";
@@ -17,7 +17,7 @@ import * as errors from "../../../../../../../../errors/index.mjs";
17
17
  import * as IcePanel from "../../../../../../../index.mjs";
18
18
  export class ExportClient {
19
19
  constructor(options = {}) {
20
- this._options = normalizeClientOptions(options);
20
+ this._options = normalizeClientOptionsWithAuth(options);
21
21
  }
22
22
  /**
23
23
  * Export object dependencies as JSON
@@ -44,9 +44,10 @@ export class ExportClient {
44
44
  return __awaiter(this, void 0, void 0, function* () {
45
45
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
46
46
  const { landscapeId, versionId, modelObjectId } = request;
47
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
47
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
48
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
48
49
  const _response = yield core.fetcher({
49
- 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/objects/${core.url.encodePathParam(modelObjectId)}/dependencies/export/json`),
50
+ 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/objects/${core.url.encodePathParam(modelObjectId)}/dependencies/export/json`),
50
51
  method: "GET",
51
52
  headers: _headers,
52
53
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -108,12 +109,14 @@ export class ExportClient {
108
109
  return __awaiter(this, void 0, void 0, function* () {
109
110
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
110
111
  const { landscapeId, versionId } = request;
111
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
112
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
113
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
112
114
  const _response = yield core.fetcher({
113
- 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/objects/export/csv`),
115
+ 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/objects/export/csv`),
114
116
  method: "GET",
115
117
  headers: _headers,
116
118
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
119
+ responseType: "text",
117
120
  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,
118
121
  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,
119
122
  withCredentials: true,
@@ -122,7 +125,7 @@ export class ExportClient {
122
125
  logging: this._options.logging,
123
126
  });
124
127
  if (_response.ok) {
125
- return { data: undefined, rawResponse: _response.rawResponse };
128
+ return { data: _response.body, rawResponse: _response.rawResponse };
126
129
  }
127
130
  if (_response.error.reason === "status-code") {
128
131
  switch (_response.error.statusCode) {
@@ -1,5 +1,5 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
2
- import { type NormalizedClientOptions } from "../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
3
3
  import * as core from "../../../../core/index.mjs";
4
4
  import * as IcePanel from "../../../index.mjs";
5
5
  import { LandscapesClient } from "../resources/landscapes/client/Client.mjs";
@@ -12,7 +12,7 @@ export declare namespace OrganizationsClient {
12
12
  }
13
13
  }
14
14
  export declare class OrganizationsClient {
15
- protected readonly _options: NormalizedClientOptions<OrganizationsClient.Options>;
15
+ protected readonly _options: NormalizedClientOptionsWithAuth<OrganizationsClient.Options>;
16
16
  protected _landscapes: LandscapesClient | undefined;
17
17
  protected _logs: LogsClient | undefined;
18
18
  protected _technologies: TechnologiesClient | undefined;