@emilgroup/tenant-sdk 1.42.1-beta.13 → 1.42.1-beta.131

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 (198) hide show
  1. package/.openapi-generator/FILES +33 -0
  2. package/README.md +2 -2
  3. package/api/custom-schema-api.ts +32 -12
  4. package/api/dashboard-api.ts +96 -36
  5. package/api/dashboard-group-api.ts +40 -15
  6. package/api/data-report-api.ts +32 -12
  7. package/api/data-report-executor-api.ts +8 -3
  8. package/api/delete-organization-invitations-api.ts +8 -3
  9. package/api/health-check-api.ts +1 -1
  10. package/api/invitation-controller-rest-api.ts +32 -12
  11. package/api/invite-organizations-api.ts +8 -3
  12. package/api/invite-users-api.ts +40 -20
  13. package/api/list-organization-invitations-api.ts +8 -3
  14. package/api/organization-migration-api.ts +40 -15
  15. package/api/organizations-api.ts +24 -9
  16. package/api/re-invite-an-organization-api.ts +8 -3
  17. package/api/report-schedule-api.ts +40 -15
  18. package/api/report-schedule-logs-api.ts +8 -3
  19. package/api/roles-api.ts +8 -3
  20. package/api/settings-api.ts +32 -12
  21. package/api/ssoconnection-api.ts +824 -0
  22. package/api/ssoid-pgroups-api.ts +829 -0
  23. package/api/user-controller-rest-api.ts +116 -57
  24. package/api/user-group-api.ts +64 -24
  25. package/api/users-api.ts +76 -37
  26. package/api.ts +4 -0
  27. package/base.ts +239 -43
  28. package/common.ts +3 -2
  29. package/configuration.ts +20 -0
  30. package/dist/api/custom-schema-api.d.ts +4 -4
  31. package/dist/api/custom-schema-api.js +52 -30
  32. package/dist/api/dashboard-api.d.ts +12 -12
  33. package/dist/api/dashboard-api.js +176 -95
  34. package/dist/api/dashboard-group-api.d.ts +5 -5
  35. package/dist/api/dashboard-group-api.js +71 -39
  36. package/dist/api/data-report-api.d.ts +4 -4
  37. package/dist/api/data-report-api.js +52 -30
  38. package/dist/api/data-report-executor-api.d.ts +1 -1
  39. package/dist/api/data-report-executor-api.js +15 -8
  40. package/dist/api/delete-organization-invitations-api.d.ts +1 -1
  41. package/dist/api/delete-organization-invitations-api.js +15 -8
  42. package/dist/api/health-check-api.d.ts +1 -1
  43. package/dist/api/health-check-api.js +1 -1
  44. package/dist/api/invitation-controller-rest-api.d.ts +4 -4
  45. package/dist/api/invitation-controller-rest-api.js +56 -31
  46. package/dist/api/invite-organizations-api.d.ts +1 -1
  47. package/dist/api/invite-organizations-api.js +15 -8
  48. package/dist/api/invite-users-api.d.ts +12 -12
  49. package/dist/api/invite-users-api.js +62 -37
  50. package/dist/api/list-organization-invitations-api.d.ts +1 -1
  51. package/dist/api/list-organization-invitations-api.js +11 -7
  52. package/dist/api/organization-migration-api.d.ts +5 -5
  53. package/dist/api/organization-migration-api.js +67 -38
  54. package/dist/api/organizations-api.d.ts +3 -3
  55. package/dist/api/organizations-api.js +41 -23
  56. package/dist/api/re-invite-an-organization-api.d.ts +1 -1
  57. package/dist/api/re-invite-an-organization-api.js +15 -8
  58. package/dist/api/report-schedule-api.d.ts +5 -5
  59. package/dist/api/report-schedule-api.js +67 -38
  60. package/dist/api/report-schedule-logs-api.d.ts +1 -1
  61. package/dist/api/report-schedule-logs-api.js +11 -7
  62. package/dist/api/roles-api.d.ts +1 -1
  63. package/dist/api/roles-api.js +11 -7
  64. package/dist/api/settings-api.d.ts +4 -4
  65. package/dist/api/settings-api.js +52 -30
  66. package/dist/api/ssoconnection-api.d.ts +434 -0
  67. package/dist/api/ssoconnection-api.js +829 -0
  68. package/dist/api/ssoid-pgroups-api.d.ts +451 -0
  69. package/dist/api/ssoid-pgroups-api.js +774 -0
  70. package/dist/api/user-controller-rest-api.d.ts +39 -35
  71. package/dist/api/user-controller-rest-api.js +177 -105
  72. package/dist/api/user-group-api.d.ts +8 -8
  73. package/dist/api/user-group-api.js +112 -62
  74. package/dist/api/users-api.d.ts +27 -23
  75. package/dist/api/users-api.js +115 -68
  76. package/dist/api.d.ts +2 -0
  77. package/dist/api.js +2 -0
  78. package/dist/base.d.ts +26 -0
  79. package/dist/base.js +243 -60
  80. package/dist/common.d.ts +1 -1
  81. package/dist/common.js +1 -0
  82. package/dist/configuration.d.ts +17 -0
  83. package/dist/configuration.js +2 -0
  84. package/dist/models/admin-initial-tenant-config-dto.d.ts +4 -2
  85. package/dist/models/create-admin-tenant-request-dto.d.ts +11 -0
  86. package/dist/models/create-admin-tenant-request-dto.js +5 -0
  87. package/dist/models/create-sso-connection-request-dto.d.ts +67 -0
  88. package/dist/models/create-sso-connection-request-dto.js +24 -0
  89. package/dist/models/create-sso-connection-response-class.d.ts +25 -0
  90. package/dist/models/create-sso-connection-response-class.js +15 -0
  91. package/dist/models/create-sso-idp-group-request-dto.d.ts +37 -0
  92. package/dist/models/create-sso-idp-group-request-dto.js +15 -0
  93. package/dist/models/create-sso-idp-group-response-class.d.ts +25 -0
  94. package/dist/models/create-sso-idp-group-response-class.js +15 -0
  95. package/dist/models/create-tenant-request-dto.d.ts +11 -0
  96. package/dist/models/create-tenant-request-dto.js +5 -0
  97. package/dist/models/custom-field-dto.d.ts +8 -4
  98. package/dist/models/delete-by-code-response-class.d.ts +24 -0
  99. package/dist/models/delete-by-code-response-class.js +15 -0
  100. package/dist/models/get-sso-connection-response-class.d.ts +25 -0
  101. package/dist/models/get-sso-connection-response-class.js +15 -0
  102. package/dist/models/get-sso-connection-setup-response-class.d.ts +25 -0
  103. package/dist/models/get-sso-connection-setup-response-class.js +15 -0
  104. package/dist/models/get-sso-idp-group-response-class.d.ts +25 -0
  105. package/dist/models/get-sso-idp-group-response-class.js +15 -0
  106. package/dist/models/index.d.ts +31 -0
  107. package/dist/models/index.js +31 -0
  108. package/dist/models/invite-class.d.ts +6 -0
  109. package/dist/models/list-sso-idp-groups-response-class.d.ts +43 -0
  110. package/dist/models/list-sso-idp-groups-response-class.js +15 -0
  111. package/dist/models/oidc-sso-details-input-dto.d.ts +42 -0
  112. package/dist/models/oidc-sso-details-input-dto.js +15 -0
  113. package/dist/models/oidc-sso-details-update-dto.d.ts +42 -0
  114. package/dist/models/oidc-sso-details-update-dto.js +15 -0
  115. package/dist/models/oidc-sso-setup-class.d.ts +37 -0
  116. package/dist/models/oidc-sso-setup-class.js +15 -0
  117. package/dist/models/org-invitation-class.d.ts +6 -0
  118. package/dist/models/role-class.d.ts +7 -0
  119. package/dist/models/role-source-class.d.ts +35 -0
  120. package/dist/models/role-source-class.js +20 -0
  121. package/dist/models/saml-sso-details-dto.d.ts +24 -0
  122. package/dist/models/saml-sso-details-dto.js +15 -0
  123. package/dist/models/saml-sso-setup-class.d.ts +37 -0
  124. package/dist/models/saml-sso-setup-class.js +15 -0
  125. package/dist/models/shared-oidc-sso-details-class.d.ts +42 -0
  126. package/dist/models/shared-oidc-sso-details-class.js +15 -0
  127. package/dist/models/shared-saml-sso-details-class.d.ts +24 -0
  128. package/dist/models/shared-saml-sso-details-class.js +15 -0
  129. package/dist/models/shared-sso-attribute-mapping-class.d.ts +30 -0
  130. package/dist/models/shared-sso-attribute-mapping-class.js +15 -0
  131. package/dist/models/sso-attribute-mapping-dto.d.ts +30 -0
  132. package/dist/models/sso-attribute-mapping-dto.js +15 -0
  133. package/dist/models/sso-attribute-mapping-template-class.d.ts +36 -0
  134. package/dist/models/sso-attribute-mapping-template-class.js +15 -0
  135. package/dist/models/sso-connection-class.d.ts +103 -0
  136. package/dist/models/sso-connection-class.js +24 -0
  137. package/dist/models/sso-connection-setup-class.d.ts +32 -0
  138. package/dist/models/sso-connection-setup-class.js +15 -0
  139. package/dist/models/sso-idp-group-class.d.ts +73 -0
  140. package/dist/models/sso-idp-group-class.js +15 -0
  141. package/dist/models/update-sso-connection-body-dto.d.ts +45 -0
  142. package/dist/models/update-sso-connection-body-dto.js +15 -0
  143. package/dist/models/update-sso-connection-response-class.d.ts +25 -0
  144. package/dist/models/update-sso-connection-response-class.js +15 -0
  145. package/dist/models/update-sso-connection-status-body-dto.d.ts +24 -0
  146. package/dist/models/update-sso-connection-status-body-dto.js +15 -0
  147. package/dist/models/update-sso-connection-status-response-class.d.ts +25 -0
  148. package/dist/models/update-sso-connection-status-response-class.js +15 -0
  149. package/dist/models/update-sso-idp-group-body-dto.d.ts +31 -0
  150. package/dist/models/update-sso-idp-group-body-dto.js +15 -0
  151. package/dist/models/update-sso-idp-group-response-class.d.ts +25 -0
  152. package/dist/models/update-sso-idp-group-response-class.js +15 -0
  153. package/dist/models/update-sso-idp-group-status-body-dto.d.ts +24 -0
  154. package/dist/models/update-sso-idp-group-status-body-dto.js +15 -0
  155. package/dist/models/update-sso-idp-group-status-response-class.d.ts +25 -0
  156. package/dist/models/update-sso-idp-group-status-response-class.js +15 -0
  157. package/dist/models/user-class.d.ts +7 -0
  158. package/models/admin-initial-tenant-config-dto.ts +2 -2
  159. package/models/create-admin-tenant-request-dto.ts +14 -0
  160. package/models/create-sso-connection-request-dto.ts +77 -0
  161. package/models/create-sso-connection-response-class.ts +31 -0
  162. package/models/create-sso-idp-group-request-dto.ts +43 -0
  163. package/models/create-sso-idp-group-response-class.ts +31 -0
  164. package/models/create-tenant-request-dto.ts +14 -0
  165. package/models/custom-field-dto.ts +4 -4
  166. package/models/delete-by-code-response-class.ts +30 -0
  167. package/models/get-sso-connection-response-class.ts +31 -0
  168. package/models/get-sso-connection-setup-response-class.ts +31 -0
  169. package/models/get-sso-idp-group-response-class.ts +31 -0
  170. package/models/index.ts +31 -0
  171. package/models/invite-class.ts +6 -0
  172. package/models/list-sso-idp-groups-response-class.ts +49 -0
  173. package/models/oidc-sso-details-input-dto.ts +48 -0
  174. package/models/oidc-sso-details-update-dto.ts +48 -0
  175. package/models/oidc-sso-setup-class.ts +43 -0
  176. package/models/org-invitation-class.ts +6 -0
  177. package/models/role-class.ts +7 -0
  178. package/models/role-source-class.ts +44 -0
  179. package/models/saml-sso-details-dto.ts +30 -0
  180. package/models/saml-sso-setup-class.ts +43 -0
  181. package/models/shared-oidc-sso-details-class.ts +48 -0
  182. package/models/shared-saml-sso-details-class.ts +30 -0
  183. package/models/shared-sso-attribute-mapping-class.ts +36 -0
  184. package/models/sso-attribute-mapping-dto.ts +36 -0
  185. package/models/sso-attribute-mapping-template-class.ts +42 -0
  186. package/models/sso-connection-class.ts +113 -0
  187. package/models/sso-connection-setup-class.ts +38 -0
  188. package/models/sso-idp-group-class.ts +79 -0
  189. package/models/update-sso-connection-body-dto.ts +51 -0
  190. package/models/update-sso-connection-response-class.ts +31 -0
  191. package/models/update-sso-connection-status-body-dto.ts +30 -0
  192. package/models/update-sso-connection-status-response-class.ts +31 -0
  193. package/models/update-sso-idp-group-body-dto.ts +37 -0
  194. package/models/update-sso-idp-group-response-class.ts +31 -0
  195. package/models/update-sso-idp-group-status-body-dto.ts +30 -0
  196. package/models/update-sso-idp-group-status-response-class.ts +31 -0
  197. package/models/user-class.ts +7 -0
  198. package/package.json +2 -2
@@ -103,9 +103,10 @@ var DashboardApiAxiosParamCreator = function (configuration) {
103
103
  createDashboard: function (createDashboardV2RequestDto, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
- return __generator(this, function (_a) {
108
- switch (_a.label) {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
107
+ var _a;
108
+ return __generator(this, function (_b) {
109
+ switch (_b.label) {
109
110
  case 0:
110
111
  // verify required parameter 'createDashboardV2RequestDto' is not null or undefined
111
112
  (0, common_1.assertParamExists)('createDashboard', 'createDashboardV2RequestDto', createDashboardV2RequestDto);
@@ -120,13 +121,19 @@ var DashboardApiAxiosParamCreator = function (configuration) {
120
121
  localVarQueryParameter = {};
121
122
  // authentication bearer required
122
123
  // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
124
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
125
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
126
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
127
+ ];
124
128
  case 1:
125
129
  // authentication bearer required
126
130
  // http bearer authentication required
127
- _a.sent();
128
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
131
+ _b.sent();
132
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
133
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
134
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
135
+ if (authorizationValue || authorizationKeepEmpty) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
130
137
  }
131
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
132
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -153,9 +160,10 @@ var DashboardApiAxiosParamCreator = function (configuration) {
153
160
  createDashboardLegacy: function (createDashboardRequestDto, authorization, options) {
154
161
  if (options === void 0) { options = {}; }
155
162
  return __awaiter(_this, void 0, void 0, function () {
156
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
157
- return __generator(this, function (_a) {
158
- switch (_a.label) {
163
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
164
+ var _a;
165
+ return __generator(this, function (_b) {
166
+ switch (_b.label) {
159
167
  case 0:
160
168
  // verify required parameter 'createDashboardRequestDto' is not null or undefined
161
169
  (0, common_1.assertParamExists)('createDashboardLegacy', 'createDashboardRequestDto', createDashboardRequestDto);
@@ -170,13 +178,19 @@ var DashboardApiAxiosParamCreator = function (configuration) {
170
178
  localVarQueryParameter = {};
171
179
  // authentication bearer required
172
180
  // http bearer authentication required
173
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
181
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
182
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
183
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
184
+ ];
174
185
  case 1:
175
186
  // authentication bearer required
176
187
  // http bearer authentication required
177
- _a.sent();
178
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
188
+ _b.sent();
189
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
190
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
191
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
192
+ if (authorizationValue || authorizationKeepEmpty) {
193
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
180
194
  }
181
195
  localVarHeaderParameter['Content-Type'] = 'application/json';
182
196
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -202,9 +216,10 @@ var DashboardApiAxiosParamCreator = function (configuration) {
202
216
  deleteDashboard: function (code, authorization, options) {
203
217
  if (options === void 0) { options = {}; }
204
218
  return __awaiter(_this, void 0, void 0, function () {
205
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
206
- return __generator(this, function (_a) {
207
- switch (_a.label) {
219
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
220
+ var _a;
221
+ return __generator(this, function (_b) {
222
+ switch (_b.label) {
208
223
  case 0:
209
224
  // verify required parameter 'code' is not null or undefined
210
225
  (0, common_1.assertParamExists)('deleteDashboard', 'code', code);
@@ -220,13 +235,19 @@ var DashboardApiAxiosParamCreator = function (configuration) {
220
235
  localVarQueryParameter = {};
221
236
  // authentication bearer required
222
237
  // http bearer authentication required
223
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
238
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
239
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
240
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
241
+ ];
224
242
  case 1:
225
243
  // authentication bearer required
226
244
  // http bearer authentication required
227
- _a.sent();
228
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
229
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
245
+ _b.sent();
246
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
247
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
248
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
249
+ if (authorizationValue || authorizationKeepEmpty) {
250
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
230
251
  }
231
252
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
232
253
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -251,9 +272,10 @@ var DashboardApiAxiosParamCreator = function (configuration) {
251
272
  duplicateDashboard: function (code, duplicateDashboardRequestDto, authorization, options) {
252
273
  if (options === void 0) { options = {}; }
253
274
  return __awaiter(_this, void 0, void 0, function () {
254
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
255
- return __generator(this, function (_a) {
256
- switch (_a.label) {
275
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
276
+ var _a;
277
+ return __generator(this, function (_b) {
278
+ switch (_b.label) {
257
279
  case 0:
258
280
  // verify required parameter 'code' is not null or undefined
259
281
  (0, common_1.assertParamExists)('duplicateDashboard', 'code', code);
@@ -271,13 +293,19 @@ var DashboardApiAxiosParamCreator = function (configuration) {
271
293
  localVarQueryParameter = {};
272
294
  // authentication bearer required
273
295
  // http bearer authentication required
274
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
296
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
297
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
298
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
299
+ ];
275
300
  case 1:
276
301
  // authentication bearer required
277
302
  // http bearer authentication required
278
- _a.sent();
279
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
280
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
303
+ _b.sent();
304
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
305
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
306
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
307
+ if (authorizationValue || authorizationKeepEmpty) {
308
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
281
309
  }
282
310
  localVarHeaderParameter['Content-Type'] = 'application/json';
283
311
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -303,9 +331,10 @@ var DashboardApiAxiosParamCreator = function (configuration) {
303
331
  getAnalysisEmbeddedUrl: function (providerDashboardId, authorization, options) {
304
332
  if (options === void 0) { options = {}; }
305
333
  return __awaiter(_this, void 0, void 0, function () {
306
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
307
- return __generator(this, function (_a) {
308
- switch (_a.label) {
334
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
335
+ var _a;
336
+ return __generator(this, function (_b) {
337
+ switch (_b.label) {
309
338
  case 0:
310
339
  // verify required parameter 'providerDashboardId' is not null or undefined
311
340
  (0, common_1.assertParamExists)('getAnalysisEmbeddedUrl', 'providerDashboardId', providerDashboardId);
@@ -321,13 +350,19 @@ var DashboardApiAxiosParamCreator = function (configuration) {
321
350
  localVarQueryParameter = {};
322
351
  // authentication bearer required
323
352
  // http bearer authentication required
324
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
353
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
354
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
355
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
356
+ ];
325
357
  case 1:
326
358
  // authentication bearer required
327
359
  // http bearer authentication required
328
- _a.sent();
329
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
330
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
360
+ _b.sent();
361
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
362
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
363
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
364
+ if (authorizationValue || authorizationKeepEmpty) {
365
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
331
366
  }
332
367
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
333
368
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -351,9 +386,10 @@ var DashboardApiAxiosParamCreator = function (configuration) {
351
386
  getDashboard: function (code, authorization, options) {
352
387
  if (options === void 0) { options = {}; }
353
388
  return __awaiter(_this, void 0, void 0, function () {
354
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
355
- return __generator(this, function (_a) {
356
- switch (_a.label) {
389
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
390
+ var _a;
391
+ return __generator(this, function (_b) {
392
+ switch (_b.label) {
357
393
  case 0:
358
394
  // verify required parameter 'code' is not null or undefined
359
395
  (0, common_1.assertParamExists)('getDashboard', 'code', code);
@@ -369,13 +405,19 @@ var DashboardApiAxiosParamCreator = function (configuration) {
369
405
  localVarQueryParameter = {};
370
406
  // authentication bearer required
371
407
  // http bearer authentication required
372
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
408
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
409
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
410
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
411
+ ];
373
412
  case 1:
374
413
  // authentication bearer required
375
414
  // http bearer authentication required
376
- _a.sent();
377
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
378
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
415
+ _b.sent();
416
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
417
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
418
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
419
+ if (authorizationValue || authorizationKeepEmpty) {
420
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
379
421
  }
380
422
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
381
423
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -399,9 +441,10 @@ var DashboardApiAxiosParamCreator = function (configuration) {
399
441
  getDashboardEmbeddedUrl: function (providerDashboardId, authorization, options) {
400
442
  if (options === void 0) { options = {}; }
401
443
  return __awaiter(_this, void 0, void 0, function () {
402
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
403
- return __generator(this, function (_a) {
404
- switch (_a.label) {
444
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
445
+ var _a;
446
+ return __generator(this, function (_b) {
447
+ switch (_b.label) {
405
448
  case 0:
406
449
  // verify required parameter 'providerDashboardId' is not null or undefined
407
450
  (0, common_1.assertParamExists)('getDashboardEmbeddedUrl', 'providerDashboardId', providerDashboardId);
@@ -417,13 +460,19 @@ var DashboardApiAxiosParamCreator = function (configuration) {
417
460
  localVarQueryParameter = {};
418
461
  // authentication bearer required
419
462
  // http bearer authentication required
420
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
463
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
464
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
465
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
466
+ ];
421
467
  case 1:
422
468
  // authentication bearer required
423
469
  // http bearer authentication required
424
- _a.sent();
425
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
426
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
470
+ _b.sent();
471
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
472
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
473
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
474
+ if (authorizationValue || authorizationKeepEmpty) {
475
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
427
476
  }
428
477
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
429
478
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -447,9 +496,10 @@ var DashboardApiAxiosParamCreator = function (configuration) {
447
496
  getDashboardMetadata: function (code, authorization, options) {
448
497
  if (options === void 0) { options = {}; }
449
498
  return __awaiter(_this, void 0, void 0, function () {
450
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
451
- return __generator(this, function (_a) {
452
- switch (_a.label) {
499
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
500
+ var _a;
501
+ return __generator(this, function (_b) {
502
+ switch (_b.label) {
453
503
  case 0:
454
504
  // verify required parameter 'code' is not null or undefined
455
505
  (0, common_1.assertParamExists)('getDashboardMetadata', 'code', code);
@@ -465,13 +515,19 @@ var DashboardApiAxiosParamCreator = function (configuration) {
465
515
  localVarQueryParameter = {};
466
516
  // authentication bearer required
467
517
  // http bearer authentication required
468
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
518
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
519
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
520
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
521
+ ];
469
522
  case 1:
470
523
  // authentication bearer required
471
524
  // http bearer authentication required
472
- _a.sent();
473
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
474
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
525
+ _b.sent();
526
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
527
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
528
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
529
+ if (authorizationValue || authorizationKeepEmpty) {
530
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
475
531
  }
476
532
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
477
533
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -501,9 +557,10 @@ var DashboardApiAxiosParamCreator = function (configuration) {
501
557
  listDashboards: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
502
558
  if (options === void 0) { options = {}; }
503
559
  return __awaiter(_this, void 0, void 0, function () {
504
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
505
- return __generator(this, function (_a) {
506
- switch (_a.label) {
560
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
561
+ var _a;
562
+ return __generator(this, function (_b) {
563
+ switch (_b.label) {
507
564
  case 0:
508
565
  localVarPath = "/tenantservice/v1/dashboards";
509
566
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -520,7 +577,7 @@ var DashboardApiAxiosParamCreator = function (configuration) {
520
577
  case 1:
521
578
  // authentication bearer required
522
579
  // http bearer authentication required
523
- _a.sent();
580
+ _b.sent();
524
581
  if (pageSize !== undefined) {
525
582
  localVarQueryParameter['pageSize'] = pageSize;
526
583
  }
@@ -542,8 +599,11 @@ var DashboardApiAxiosParamCreator = function (configuration) {
542
599
  if (filters !== undefined) {
543
600
  localVarQueryParameter['filters'] = filters;
544
601
  }
545
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
546
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
602
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
603
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
604
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
605
+ if (authorizationValue || authorizationKeepEmpty) {
606
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
547
607
  }
548
608
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
549
609
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -567,9 +627,10 @@ var DashboardApiAxiosParamCreator = function (configuration) {
567
627
  publishDashboard: function (publishDashboardRequestDto, authorization, options) {
568
628
  if (options === void 0) { options = {}; }
569
629
  return __awaiter(_this, void 0, void 0, function () {
570
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
571
- return __generator(this, function (_a) {
572
- switch (_a.label) {
630
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
631
+ var _a;
632
+ return __generator(this, function (_b) {
633
+ switch (_b.label) {
573
634
  case 0:
574
635
  // verify required parameter 'publishDashboardRequestDto' is not null or undefined
575
636
  (0, common_1.assertParamExists)('publishDashboard', 'publishDashboardRequestDto', publishDashboardRequestDto);
@@ -584,13 +645,19 @@ var DashboardApiAxiosParamCreator = function (configuration) {
584
645
  localVarQueryParameter = {};
585
646
  // authentication bearer required
586
647
  // http bearer authentication required
587
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
648
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
649
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
650
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
651
+ ];
588
652
  case 1:
589
653
  // authentication bearer required
590
654
  // http bearer authentication required
591
- _a.sent();
592
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
593
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
655
+ _b.sent();
656
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
657
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
658
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
659
+ if (authorizationValue || authorizationKeepEmpty) {
660
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
594
661
  }
595
662
  localVarHeaderParameter['Content-Type'] = 'application/json';
596
663
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -616,9 +683,10 @@ var DashboardApiAxiosParamCreator = function (configuration) {
616
683
  revertAnalysis: function (revertAnalysisRequestDto, authorization, options) {
617
684
  if (options === void 0) { options = {}; }
618
685
  return __awaiter(_this, void 0, void 0, function () {
619
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
620
- return __generator(this, function (_a) {
621
- switch (_a.label) {
686
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
687
+ var _a;
688
+ return __generator(this, function (_b) {
689
+ switch (_b.label) {
622
690
  case 0:
623
691
  // verify required parameter 'revertAnalysisRequestDto' is not null or undefined
624
692
  (0, common_1.assertParamExists)('revertAnalysis', 'revertAnalysisRequestDto', revertAnalysisRequestDto);
@@ -633,13 +701,19 @@ var DashboardApiAxiosParamCreator = function (configuration) {
633
701
  localVarQueryParameter = {};
634
702
  // authentication bearer required
635
703
  // http bearer authentication required
636
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
704
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
705
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
706
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
707
+ ];
637
708
  case 1:
638
709
  // authentication bearer required
639
710
  // http bearer authentication required
640
- _a.sent();
641
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
642
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
711
+ _b.sent();
712
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
713
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
714
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
715
+ if (authorizationValue || authorizationKeepEmpty) {
716
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
643
717
  }
644
718
  localVarHeaderParameter['Content-Type'] = 'application/json';
645
719
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -666,9 +740,10 @@ var DashboardApiAxiosParamCreator = function (configuration) {
666
740
  updateDashboard: function (code, updateDashboardRequestDto, authorization, options) {
667
741
  if (options === void 0) { options = {}; }
668
742
  return __awaiter(_this, void 0, void 0, function () {
669
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
670
- return __generator(this, function (_a) {
671
- switch (_a.label) {
743
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
744
+ var _a;
745
+ return __generator(this, function (_b) {
746
+ switch (_b.label) {
672
747
  case 0:
673
748
  // verify required parameter 'code' is not null or undefined
674
749
  (0, common_1.assertParamExists)('updateDashboard', 'code', code);
@@ -686,13 +761,19 @@ var DashboardApiAxiosParamCreator = function (configuration) {
686
761
  localVarQueryParameter = {};
687
762
  // authentication bearer required
688
763
  // http bearer authentication required
689
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
764
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
765
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
766
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
767
+ ];
690
768
  case 1:
691
769
  // authentication bearer required
692
770
  // http bearer authentication required
693
- _a.sent();
694
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
695
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
771
+ _b.sent();
772
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
773
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
774
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
775
+ if (authorizationValue || authorizationKeepEmpty) {
776
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
696
777
  }
697
778
  localVarHeaderParameter['Content-Type'] = 'application/json';
698
779
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -1153,7 +1234,7 @@ var DashboardApi = /** @class */ (function (_super) {
1153
1234
  */
1154
1235
  DashboardApi.prototype.createDashboard = function (requestParameters, options) {
1155
1236
  var _this = this;
1156
- return (0, exports.DashboardApiFp)(this.configuration).createDashboard(requestParameters.createDashboardV2RequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1237
+ return (0, exports.DashboardApiFp)(this.configuration).createDashboard(requestParameters.createDashboardV2RequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1157
1238
  };
1158
1239
  /**
1159
1240
  * Creates a new dashboard from a preconfigured analysis id and dashboard id. Use POST /tenantservice/v1/dashboards instead. **Required Permissions** \"reporting.dashboards.create\"
@@ -1166,7 +1247,7 @@ var DashboardApi = /** @class */ (function (_super) {
1166
1247
  */
1167
1248
  DashboardApi.prototype.createDashboardLegacy = function (requestParameters, options) {
1168
1249
  var _this = this;
1169
- return (0, exports.DashboardApiFp)(this.configuration).createDashboardLegacy(requestParameters.createDashboardRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1250
+ return (0, exports.DashboardApiFp)(this.configuration).createDashboardLegacy(requestParameters.createDashboardRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1170
1251
  };
1171
1252
  /**
1172
1253
  * Permanently removes a dashboard and all associated data by dashboard code. **Required Permissions** \"reporting.dashboards.delete\"
@@ -1178,7 +1259,7 @@ var DashboardApi = /** @class */ (function (_super) {
1178
1259
  */
1179
1260
  DashboardApi.prototype.deleteDashboard = function (requestParameters, options) {
1180
1261
  var _this = this;
1181
- return (0, exports.DashboardApiFp)(this.configuration).deleteDashboard(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1262
+ return (0, exports.DashboardApiFp)(this.configuration).deleteDashboard(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1182
1263
  };
1183
1264
  /**
1184
1265
  * Creates a copy of the specified dashboard with all its configurations and settings. **Required Permissions** \"reporting.dashboards.create\"
@@ -1190,7 +1271,7 @@ var DashboardApi = /** @class */ (function (_super) {
1190
1271
  */
1191
1272
  DashboardApi.prototype.duplicateDashboard = function (requestParameters, options) {
1192
1273
  var _this = this;
1193
- return (0, exports.DashboardApiFp)(this.configuration).duplicateDashboard(requestParameters.code, requestParameters.duplicateDashboardRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1274
+ return (0, exports.DashboardApiFp)(this.configuration).duplicateDashboard(requestParameters.code, requestParameters.duplicateDashboardRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1194
1275
  };
1195
1276
  /**
1196
1277
  * Creates a secure embedded URL that allows dashboard analysis and editing within external applications. **Required Permissions** \"reporting.dashboards.update\"
@@ -1202,7 +1283,7 @@ var DashboardApi = /** @class */ (function (_super) {
1202
1283
  */
1203
1284
  DashboardApi.prototype.getAnalysisEmbeddedUrl = function (requestParameters, options) {
1204
1285
  var _this = this;
1205
- return (0, exports.DashboardApiFp)(this.configuration).getAnalysisEmbeddedUrl(requestParameters.providerDashboardId, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1286
+ return (0, exports.DashboardApiFp)(this.configuration).getAnalysisEmbeddedUrl(requestParameters.providerDashboardId, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1206
1287
  };
1207
1288
  /**
1208
1289
  * Fetches dashboard details by code including configuration and metadata. **Required Permissions** \"reporting.dashboards.view\"
@@ -1214,7 +1295,7 @@ var DashboardApi = /** @class */ (function (_super) {
1214
1295
  */
1215
1296
  DashboardApi.prototype.getDashboard = function (requestParameters, options) {
1216
1297
  var _this = this;
1217
- return (0, exports.DashboardApiFp)(this.configuration).getDashboard(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1298
+ return (0, exports.DashboardApiFp)(this.configuration).getDashboard(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1218
1299
  };
1219
1300
  /**
1220
1301
  * Creates a secure embedded URL that allows dashboard content to be displayed within external applications. **Required Permissions** \"reporting.dashboards.view\"
@@ -1226,7 +1307,7 @@ var DashboardApi = /** @class */ (function (_super) {
1226
1307
  */
1227
1308
  DashboardApi.prototype.getDashboardEmbeddedUrl = function (requestParameters, options) {
1228
1309
  var _this = this;
1229
- return (0, exports.DashboardApiFp)(this.configuration).getDashboardEmbeddedUrl(requestParameters.providerDashboardId, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1310
+ return (0, exports.DashboardApiFp)(this.configuration).getDashboardEmbeddedUrl(requestParameters.providerDashboardId, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1230
1311
  };
1231
1312
  /**
1232
1313
  * Returns sheet names and parameter definitions for the dashboard analysis backing this record. **Required Permissions** \"reporting.dashboards.view\"
@@ -1238,7 +1319,7 @@ var DashboardApi = /** @class */ (function (_super) {
1238
1319
  */
1239
1320
  DashboardApi.prototype.getDashboardMetadata = function (requestParameters, options) {
1240
1321
  var _this = this;
1241
- return (0, exports.DashboardApiFp)(this.configuration).getDashboardMetadata(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1322
+ return (0, exports.DashboardApiFp)(this.configuration).getDashboardMetadata(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1242
1323
  };
1243
1324
  /**
1244
1325
  * Fetches a paginated list of dashboards with optional filtering and sorting capabilities. **Required Permissions** \"reporting.dashboards.view\"
@@ -1251,7 +1332,7 @@ var DashboardApi = /** @class */ (function (_super) {
1251
1332
  DashboardApi.prototype.listDashboards = function (requestParameters, options) {
1252
1333
  var _this = this;
1253
1334
  if (requestParameters === void 0) { requestParameters = {}; }
1254
- return (0, exports.DashboardApiFp)(this.configuration).listDashboards(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1335
+ return (0, exports.DashboardApiFp)(this.configuration).listDashboards(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1255
1336
  };
1256
1337
  /**
1257
1338
  * Makes a dashboard publicly available by publishing it from draft or analysis state. **Required Permissions** \"reporting.dashboards.update\"
@@ -1263,7 +1344,7 @@ var DashboardApi = /** @class */ (function (_super) {
1263
1344
  */
1264
1345
  DashboardApi.prototype.publishDashboard = function (requestParameters, options) {
1265
1346
  var _this = this;
1266
- return (0, exports.DashboardApiFp)(this.configuration).publishDashboard(requestParameters.publishDashboardRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1347
+ return (0, exports.DashboardApiFp)(this.configuration).publishDashboard(requestParameters.publishDashboardRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1267
1348
  };
1268
1349
  /**
1269
1350
  * Rolls back dashboard analysis changes to restore the previous version or state. **Required Permissions** \"reporting.dashboards.update\"
@@ -1275,7 +1356,7 @@ var DashboardApi = /** @class */ (function (_super) {
1275
1356
  */
1276
1357
  DashboardApi.prototype.revertAnalysis = function (requestParameters, options) {
1277
1358
  var _this = this;
1278
- return (0, exports.DashboardApiFp)(this.configuration).revertAnalysis(requestParameters.revertAnalysisRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1359
+ return (0, exports.DashboardApiFp)(this.configuration).revertAnalysis(requestParameters.revertAnalysisRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1279
1360
  };
1280
1361
  /**
1281
1362
  * Modifies dashboard properties, configuration, or metadata by dashboard code. **Required Permissions** \"reporting.dashboards.update\"
@@ -1287,7 +1368,7 @@ var DashboardApi = /** @class */ (function (_super) {
1287
1368
  */
1288
1369
  DashboardApi.prototype.updateDashboard = function (requestParameters, options) {
1289
1370
  var _this = this;
1290
- return (0, exports.DashboardApiFp)(this.configuration).updateDashboard(requestParameters.code, requestParameters.updateDashboardRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1371
+ return (0, exports.DashboardApiFp)(this.configuration).updateDashboard(requestParameters.code, requestParameters.updateDashboardRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1291
1372
  };
1292
1373
  return DashboardApi;
1293
1374
  }(base_1.BaseAPI));