@qlik/api 2.2.0 → 2.3.1

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 (232) hide show
  1. package/analytics/change-stores.d.ts +386 -0
  2. package/analytics/change-stores.js +123 -0
  3. package/analytics.d.ts +14 -0
  4. package/analytics.js +13 -0
  5. package/api-keys.d.ts +362 -3
  6. package/api-keys.js +2 -3
  7. package/apps.d.ts +2673 -3
  8. package/apps.js +2 -3
  9. package/assistants.d.ts +1370 -3
  10. package/assistants.js +2 -3
  11. package/audits.d.ts +318 -3
  12. package/audits.js +4 -4
  13. package/auth-types.d.ts +1 -1
  14. package/auth-types.js +1 -2
  15. package/auth.d.ts +94 -2
  16. package/auth.js +63 -3
  17. package/automation-connections.d.ts +366 -3
  18. package/automation-connections.js +2 -3
  19. package/automation-connectors.d.ts +84 -3
  20. package/automation-connectors.js +2 -3
  21. package/automations.d.ts +805 -3
  22. package/automations.js +2 -3
  23. package/automl-deployments.d.ts +101 -3
  24. package/automl-deployments.js +2 -3
  25. package/automl-predictions.d.ts +238 -3
  26. package/automl-predictions.js +2 -3
  27. package/banners.d.ts +184 -3
  28. package/banners.js +2 -3
  29. package/brands.d.ts +670 -3
  30. package/brands.js +2 -3
  31. package/chunks/auth-XusKk8IA.js +32 -0
  32. package/chunks/{chunk-EtTptKIv.js → chunk-D3vHIbds.js} +2 -2
  33. package/chunks/{dist-gXLIqDJW.js → dist-n3iOVn1W.js} +4 -4
  34. package/chunks/{auth-functions-BmZgZYSs.js → interceptors-2VSXImC9.js} +498 -146
  35. package/chunks/{invoke-fetch-PcVIxLW4.js → invoke-fetch-CckTK7bh.js} +3 -3
  36. package/chunks/{invoke-fetch-CucBpA1C.js → invoke-fetch-D9lpiAb-.js} +1 -5
  37. package/chunks/{public-runtime-modules-Dwjzb3l8.js → public-runtime-modules-BqxAMJ9M.js} +7 -7
  38. package/chunks/{qix-DI5o5XF4.d.ts → qix-CrqXv44x.d.ts} +6 -2
  39. package/chunks/{qix-DjxuPCX0.js → qix-DpvHvpx7.js} +11 -10
  40. package/chunks/{qix-chunk-entrypoint-tmTo-kpa.js → qix-chunk-entrypoint-BXZPnE6J.js} +48 -50
  41. package/collections.d.ts +582 -3
  42. package/collections.js +2 -3
  43. package/conditions.d.ts +662 -3
  44. package/conditions.js +2 -3
  45. package/consumption.d.ts +182 -3
  46. package/consumption.js +2 -3
  47. package/core/ip-policies.d.ts +328 -4
  48. package/core/ip-policies.js +108 -5
  49. package/core.d.ts +13 -4
  50. package/core.js +3 -4
  51. package/csp-origins.d.ts +273 -3
  52. package/csp-origins.js +2 -3
  53. package/csrf-token.d.ts +62 -3
  54. package/csrf-token.js +2 -3
  55. package/data-alerts.d.ts +1004 -3
  56. package/data-alerts.js +2 -3
  57. package/data-assets.d.ts +207 -3
  58. package/data-assets.js +2 -3
  59. package/data-connections.d.ts +678 -3
  60. package/data-connections.js +2 -3
  61. package/data-credentials.d.ts +292 -3
  62. package/data-credentials.js +2 -3
  63. package/data-files.d.ts +860 -3
  64. package/data-files.js +2 -3
  65. package/data-qualities.d.ts +175 -3
  66. package/data-qualities.js +2 -3
  67. package/data-sets.d.ts +424 -3
  68. package/data-sets.js +2 -3
  69. package/data-sources.d.ts +348 -3
  70. package/data-sources.js +2 -3
  71. package/data-stores.d.ts +537 -3
  72. package/data-stores.js +2 -3
  73. package/dcaas.d.ts +192 -3
  74. package/dcaas.js +2 -3
  75. package/di-projects.d.ts +812 -4
  76. package/di-projects.js +25 -4
  77. package/direct-access-agents.d.ts +710 -4
  78. package/direct-access-agents.js +37 -5
  79. package/docs/authentication.md +1 -1
  80. package/encryption.d.ts +372 -3
  81. package/encryption.js +2 -3
  82. package/extensions.d.ts +295 -3
  83. package/extensions.js +2 -3
  84. package/global-types.d.ts +1 -1
  85. package/global-types.js +0 -2
  86. package/glossaries.d.ts +1223 -3
  87. package/glossaries.js +2 -3
  88. package/groups.d.ts +510 -3
  89. package/groups.js +2 -3
  90. package/identity-providers.d.ts +711 -3
  91. package/identity-providers.js +2 -3
  92. package/index.d.ts +78 -69
  93. package/index.js +28 -10
  94. package/interceptors.d.ts +52 -3
  95. package/interceptors.js +1 -2
  96. package/invoke-fetch-types.d.ts +1 -1
  97. package/items.d.ts +536 -3
  98. package/items.js +2 -3
  99. package/knowledgebases.d.ts +976 -3
  100. package/knowledgebases.js +2 -3
  101. package/licenses.d.ts +663 -3
  102. package/licenses.js +2 -3
  103. package/lineage-graphs.d.ts +704 -3
  104. package/lineage-graphs.js +2 -3
  105. package/ml.d.ts +2808 -3
  106. package/ml.js +2 -3
  107. package/notes.d.ts +110 -3
  108. package/notes.js +2 -3
  109. package/notifications.d.ts +98 -3
  110. package/notifications.js +2 -3
  111. package/oauth-callback.iife.js +1151 -0
  112. package/oauth-clients.d.ts +562 -3
  113. package/oauth-clients.js +2 -3
  114. package/oauth-tokens.d.ts +126 -3
  115. package/oauth-tokens.js +2 -3
  116. package/package.json +5 -4
  117. package/qix.d.ts +3 -3
  118. package/qix.js +38 -3
  119. package/questions.d.ts +364 -3
  120. package/questions.js +2 -3
  121. package/quotas.d.ts +112 -3
  122. package/quotas.js +2 -3
  123. package/reload-tasks.d.ts +249 -3
  124. package/reload-tasks.js +2 -3
  125. package/reloads.d.ts +260 -3
  126. package/reloads.js +2 -3
  127. package/report-templates.d.ts +287 -3
  128. package/report-templates.js +2 -3
  129. package/reports.d.ts +863 -3
  130. package/reports.js +2 -3
  131. package/roles.d.ts +312 -3
  132. package/roles.js +2 -3
  133. package/sharing-tasks.d.ts +1164 -3
  134. package/sharing-tasks.js +2 -3
  135. package/spaces.d.ts +779 -3
  136. package/spaces.js +2 -3
  137. package/tasks.d.ts +564 -3
  138. package/tasks.js +2 -3
  139. package/temp-contents.d.ts +167 -3
  140. package/temp-contents.js +2 -3
  141. package/tenants.d.ts +360 -3
  142. package/tenants.js +2 -3
  143. package/themes.d.ts +270 -3
  144. package/themes.js +2 -3
  145. package/transports.d.ts +435 -4
  146. package/transports.js +20 -5
  147. package/ui-config.d.ts +274 -3
  148. package/ui-config.js +2 -3
  149. package/users.d.ts +674 -3
  150. package/users.js +2 -3
  151. package/web-integrations.d.ts +294 -3
  152. package/web-integrations.js +2 -3
  153. package/web-notifications.d.ts +273 -3
  154. package/web-notifications.js +2 -3
  155. package/webhooks.d.ts +505 -3
  156. package/webhooks.js +2 -3
  157. package/chunks/api-keys-D6Rqaov4.d.ts +0 -365
  158. package/chunks/apps-BwpXUGDb.d.ts +0 -2673
  159. package/chunks/assistants-wh6Qe7l6.d.ts +0 -1366
  160. package/chunks/audits-DakwzT97.d.ts +0 -316
  161. package/chunks/auth-6mptVm5Q.d.ts +0 -95
  162. package/chunks/auth-Cle0_tmz.js +0 -32
  163. package/chunks/auth-D11iO7ZV.js +0 -65
  164. package/chunks/automation-connections-k2G_n9rj.d.ts +0 -366
  165. package/chunks/automation-connectors-J5OE-1P0.d.ts +0 -84
  166. package/chunks/automations-BGy83EBO.d.ts +0 -797
  167. package/chunks/automl-deployments-CWEpX2pk.d.ts +0 -101
  168. package/chunks/automl-predictions-BNIjRhBm.d.ts +0 -238
  169. package/chunks/banners-CgBRnZGv.d.ts +0 -184
  170. package/chunks/brands-DCgk6Gqx.d.ts +0 -671
  171. package/chunks/collections-BpYjcpIY.d.ts +0 -582
  172. package/chunks/conditions-CJJG7Uph.d.ts +0 -662
  173. package/chunks/consumption-DerFk437.d.ts +0 -182
  174. package/chunks/core-DQXNZdnf.d.ts +0 -12
  175. package/chunks/csp-origins-3NJlh_n9.d.ts +0 -273
  176. package/chunks/csrf-token-DoaoOQzH.d.ts +0 -63
  177. package/chunks/data-alerts-CILSEFbQ.d.ts +0 -1004
  178. package/chunks/data-assets-CJDcssoX.d.ts +0 -207
  179. package/chunks/data-connections-VSB13K6g.d.ts +0 -678
  180. package/chunks/data-credentials-ChEp_hyU.d.ts +0 -292
  181. package/chunks/data-files-CVzn9M6V.d.ts +0 -860
  182. package/chunks/data-qualities-DBrot957.d.ts +0 -176
  183. package/chunks/data-sets-CFzxgWnO.d.ts +0 -424
  184. package/chunks/data-sources-IsAaof_C.d.ts +0 -346
  185. package/chunks/data-stores-DFOPdgfz.d.ts +0 -537
  186. package/chunks/dcaas-qyv7YlrN.d.ts +0 -192
  187. package/chunks/di-projects-DVQTxASr.d.ts +0 -777
  188. package/chunks/direct-access-agents-B77OhzZi.d.ts +0 -580
  189. package/chunks/encryption-BjA6xbCO.d.ts +0 -372
  190. package/chunks/extensions-OO0WtInj.d.ts +0 -294
  191. package/chunks/glossaries-CIX7-KT_.d.ts +0 -1213
  192. package/chunks/groups-C86-UG7S.d.ts +0 -511
  193. package/chunks/identity-providers-h0dKNxGZ.d.ts +0 -711
  194. package/chunks/interceptors-Csx2tEi5.d.ts +0 -52
  195. package/chunks/interceptors-DTYm37AU.js +0 -104
  196. package/chunks/ip-policies-CKRIlbP7.d.ts +0 -327
  197. package/chunks/ip-policies-DXlf172B.js +0 -108
  198. package/chunks/items-C-jzqvFW.d.ts +0 -536
  199. package/chunks/knowledgebases-CyQtVcZN.d.ts +0 -977
  200. package/chunks/licenses-xzjnkitW.d.ts +0 -663
  201. package/chunks/lineage-graphs-CViCCzKy.d.ts +0 -697
  202. package/chunks/ml-Abt2MUva.d.ts +0 -2809
  203. package/chunks/notes-BZxuyDgt.d.ts +0 -111
  204. package/chunks/notifications-Bd_gp4jU.d.ts +0 -99
  205. package/chunks/oauth-clients-B5QPr4IM.d.ts +0 -563
  206. package/chunks/oauth-tokens-1b7V8182.d.ts +0 -127
  207. package/chunks/qix-CYQsLyGQ.js +0 -40
  208. package/chunks/questions-BVp0tvNs.d.ts +0 -364
  209. package/chunks/quotas-CfAebRJd.d.ts +0 -113
  210. package/chunks/reload-tasks-DfwUTetn.d.ts +0 -249
  211. package/chunks/reloads-CwmagnFx.d.ts +0 -260
  212. package/chunks/report-templates-DjQYj5dn.d.ts +0 -287
  213. package/chunks/reports-DzNC6Uq3.d.ts +0 -861
  214. package/chunks/roles-BYFIY6E7.d.ts +0 -312
  215. package/chunks/sharing-tasks-BMGIQ-FO.d.ts +0 -1164
  216. package/chunks/spaces-BK823t-b.d.ts +0 -780
  217. package/chunks/tasks-COKDfShO.d.ts +0 -564
  218. package/chunks/temp-contents-zDomB-g6.d.ts +0 -168
  219. package/chunks/tenants-Bhn86519.d.ts +0 -361
  220. package/chunks/themes-v9NbhiBo.d.ts +0 -269
  221. package/chunks/transports-CqEiFxD3.d.ts +0 -362
  222. package/chunks/ui-config-Crs0mVMp.d.ts +0 -274
  223. package/chunks/users-BSOBU_fg.d.ts +0 -675
  224. package/chunks/web-integrations-MisPAHod.d.ts +0 -295
  225. package/chunks/web-notifications-DVy6FHYh.d.ts +0 -274
  226. package/chunks/webhooks-Dr4EiXqy.d.ts +0 -505
  227. /package/chunks/{auth-types-E99tzdN0.d.ts → auth-types-YrlH_R9f.d.ts} +0 -0
  228. /package/chunks/{auth-types-JehqruDP.js → auth-types-h43TVDpB.js} +0 -0
  229. /package/chunks/{global-types-CrOvI33z.js → global-types-CEVAJebk.js} +0 -0
  230. /package/chunks/{invoke-fetch-CbU2Dgqr.d.ts → invoke-fetch-C1Z0RJYU.d.ts} +0 -0
  231. /package/chunks/{utils-BnC4lrlq.js → utils-vv-xFm06.js} +0 -0
  232. /package/chunks/{websocket-errors-DSbO6kDZ.js → websocket-errors-CRTDTtBL.js} +0 -0
@@ -1,269 +0,0 @@
1
- import { y as ApiCallOptions } from "./auth-types-E99tzdN0.js";
2
-
3
- //#region src/public/rest/themes.d.ts
4
-
5
- /**
6
- * An error object.
7
- */
8
- type Error = {
9
- /** Object containing meta data regarding an error. It does not necessarily contain all the properties. */
10
- meta?: Meta;
11
- /** Optional JSON patch object pointing to an invalid property. */
12
- source?: unknown;
13
- /** The HTTP status code. */
14
- status?: number;
15
- /** Title of the HTTP status code. */
16
- title: string;
17
- };
18
- /**
19
- * Object containing meta data regarding an error. It does not necessarily contain all the properties.
20
- */
21
- type Meta = {
22
- /** A more detailed message explaining the error. */
23
- message?: string;
24
- /** Name of the resource related to the error. If there is a conflict, it is the name of the model attempting to be created. */
25
- resourceName?: string;
26
- /** Full stack trace of the error that was raised. */
27
- stack?: string;
28
- };
29
- /**
30
- * The theme model.
31
- */
32
- type Theme = {
33
- /** Author of the theme. */
34
- author?: string;
35
- readonly createdAt?: string;
36
- /** Map of dependencies describing version of the component it requires. */
37
- dependencies?: unknown;
38
- /** Description of the theme. */
39
- description?: string;
40
- /** The file that was uploaded with the theme. */
41
- file?: unknown;
42
- /** Home page of the theme. */
43
- homepage?: string;
44
- /** Icon to show in the client. */
45
- icon?: string;
46
- readonly id?: string;
47
- /** Keywords for the theme. */
48
- keywords?: string;
49
- /** Under which license this theme is published. */
50
- license?: string;
51
- /** The display name of this theme. */
52
- name?: string;
53
- /** The name of the qext file that was uploaded with this theme. */
54
- qextFilename?: string;
55
- /** The version from the qext file that was uploaded with this extension. */
56
- qextVersion?: string;
57
- /** Link to the theme source code. */
58
- repository?: string;
59
- /** Supplier of the theme. */
60
- supplier?: string;
61
- /** List of tags. */
62
- tags?: string[];
63
- readonly tenantId?: string;
64
- /** The type of this theme (visualization, etc.). */
65
- type?: string;
66
- readonly updateAt?: string;
67
- readonly userId?: string;
68
- /** Version of the theme. */
69
- version?: string;
70
- };
71
- type Themes = {
72
- data: Theme[];
73
- };
74
- /**
75
- * Lists all imported themes in the tenant.
76
- *
77
- * @throws GetThemesHttpError
78
- */
79
- declare function getThemes(options?: ApiCallOptions): Promise<GetThemesHttpResponse>;
80
- type GetThemesHttpResponse = {
81
- data: Themes;
82
- headers: Headers;
83
- status: 200;
84
- };
85
- type GetThemesHttpError = {
86
- data: unknown;
87
- headers: Headers;
88
- status: number;
89
- };
90
- /**
91
- * Creates a new theme. Accepts either provided file or data object. The name of the new theme must be different to any existing themes.
92
- *
93
- * @param body an object with the body content
94
- * @throws UploadThemeHttpError
95
- */
96
- declare function uploadTheme(body: {
97
- /** The theme model. */
98
- data?: Theme;
99
- /** Theme archive. */
100
- file?: BodyInit;
101
- }, options?: ApiCallOptions): Promise<UploadThemeHttpResponse>;
102
- type UploadThemeHttpResponse = {
103
- data: Theme;
104
- headers: Headers;
105
- status: 201;
106
- };
107
- type UploadThemeHttpError = {
108
- data: Error;
109
- headers: Headers;
110
- status: number;
111
- };
112
- /**
113
- * Deletes a specific theme matching either theme ID or theme name.
114
- *
115
- * @param id Theme identifier or its qextFilename.
116
- * @throws DeleteThemeHttpError
117
- */
118
- declare function deleteTheme(id: string, options?: ApiCallOptions): Promise<DeleteThemeHttpResponse>;
119
- type DeleteThemeHttpResponse = {
120
- data: void;
121
- headers: Headers;
122
- status: 204;
123
- };
124
- type DeleteThemeHttpError = {
125
- data: Error;
126
- headers: Headers;
127
- status: 403 | 404 | 410;
128
- };
129
- /**
130
- * Returns a specific theme matching either theme ID or theme name.
131
- *
132
- * @param id Theme identifier or its qextFilename
133
- * @throws GetThemeHttpError
134
- */
135
- declare function getTheme(id: string, options?: ApiCallOptions): Promise<GetThemeHttpResponse>;
136
- type GetThemeHttpResponse = {
137
- data: Theme;
138
- headers: Headers;
139
- status: 200;
140
- };
141
- type GetThemeHttpError = {
142
- data: Error;
143
- headers: Headers;
144
- status: 403 | 404 | 410;
145
- };
146
- /**
147
- * Updates a specific theme matching either theme ID or theme name. Accepts either provided file or data object.
148
- *
149
- * @param id Theme identifier or its qextFilename.
150
- * @param body an object with the body content
151
- * @throws PatchThemeHttpError
152
- */
153
- declare function patchTheme(id: string, body: {
154
- /** The theme model. */
155
- data?: Theme;
156
- /** Theme archive. */
157
- file?: BodyInit;
158
- }, options?: ApiCallOptions): Promise<PatchThemeHttpResponse>;
159
- type PatchThemeHttpResponse = {
160
- data: Themes;
161
- headers: Headers;
162
- status: 200;
163
- };
164
- type PatchThemeHttpError = {
165
- data: Error;
166
- headers: Headers;
167
- status: number;
168
- };
169
- /**
170
- * Downloads all files in the theme matching either theme ID or theme name as a `.zip` archive.
171
- *
172
- * @param id Theme identifier or its qextFilename
173
- * @throws DownloadThemeHttpError
174
- */
175
- declare function downloadTheme(id: string, options?: ApiCallOptions): Promise<DownloadThemeHttpResponse>;
176
- type DownloadThemeHttpResponse = {
177
- data: void;
178
- headers: Headers;
179
- status: 200;
180
- };
181
- type DownloadThemeHttpError = {
182
- data: Error;
183
- headers: Headers;
184
- status: 403 | 404 | 410;
185
- };
186
- /**
187
- * Downloads a file from the theme matching either theme ID or theme name, identified by the file path within the imported extension.
188
- *
189
- * @param id Theme identifier or its qextFilename.
190
- * @param filepath Path to the file location within the specified theme archive. Folders separated with forward slashes.
191
- * @throws DownloadFileFromThemeHttpError
192
- */
193
- declare function downloadFileFromTheme(id: string, filepath: string, options?: ApiCallOptions): Promise<DownloadFileFromThemeHttpResponse>;
194
- type DownloadFileFromThemeHttpResponse = {
195
- data: void;
196
- headers: Headers;
197
- status: 200;
198
- };
199
- type DownloadFileFromThemeHttpError = {
200
- data: Error;
201
- headers: Headers;
202
- status: 403 | 404 | 410;
203
- };
204
- /**
205
- * Clears the cache for themes api requests.
206
- */
207
- declare function clearCache(): void;
208
- type ThemesAPI = {
209
- /**
210
- * Lists all imported themes in the tenant.
211
- *
212
- * @throws GetThemesHttpError
213
- */
214
- getThemes: typeof getThemes;
215
- /**
216
- * Creates a new theme. Accepts either provided file or data object. The name of the new theme must be different to any existing themes.
217
- *
218
- * @param body an object with the body content
219
- * @throws UploadThemeHttpError
220
- */
221
- uploadTheme: typeof uploadTheme;
222
- /**
223
- * Deletes a specific theme matching either theme ID or theme name.
224
- *
225
- * @param id Theme identifier or its qextFilename.
226
- * @throws DeleteThemeHttpError
227
- */
228
- deleteTheme: typeof deleteTheme;
229
- /**
230
- * Returns a specific theme matching either theme ID or theme name.
231
- *
232
- * @param id Theme identifier or its qextFilename
233
- * @throws GetThemeHttpError
234
- */
235
- getTheme: typeof getTheme;
236
- /**
237
- * Updates a specific theme matching either theme ID or theme name. Accepts either provided file or data object.
238
- *
239
- * @param id Theme identifier or its qextFilename.
240
- * @param body an object with the body content
241
- * @throws PatchThemeHttpError
242
- */
243
- patchTheme: typeof patchTheme;
244
- /**
245
- * Downloads all files in the theme matching either theme ID or theme name as a `.zip` archive.
246
- *
247
- * @param id Theme identifier or its qextFilename
248
- * @throws DownloadThemeHttpError
249
- */
250
- downloadTheme: typeof downloadTheme;
251
- /**
252
- * Downloads a file from the theme matching either theme ID or theme name, identified by the file path within the imported extension.
253
- *
254
- * @param id Theme identifier or its qextFilename.
255
- * @param filepath Path to the file location within the specified theme archive. Folders separated with forward slashes.
256
- * @throws DownloadFileFromThemeHttpError
257
- */
258
- downloadFileFromTheme: typeof downloadFileFromTheme;
259
- /**
260
- * Clears the cache for themes api requests.
261
- */
262
- clearCache: typeof clearCache;
263
- };
264
- /**
265
- * Functions for the themes api
266
- */
267
- declare const themesExport: ThemesAPI;
268
- //#endregion
269
- export { downloadTheme as C, themesExport as D, patchTheme as E, uploadTheme as O, downloadFileFromTheme as S, getThemes as T, ThemesAPI as _, DownloadThemeHttpError as a, clearCache as b, GetThemeHttpError as c, GetThemesHttpResponse as d, Meta as f, Themes as g, Theme as h, DownloadFileFromThemeHttpResponse as i, GetThemeHttpResponse as l, PatchThemeHttpResponse as m, DeleteThemeHttpResponse as n, DownloadThemeHttpResponse as o, PatchThemeHttpError as p, DownloadFileFromThemeHttpError as r, Error as s, DeleteThemeHttpError as t, GetThemesHttpError as u, UploadThemeHttpError as v, getTheme as w, deleteTheme as x, UploadThemeHttpResponse as y };
@@ -1,362 +0,0 @@
1
- import { y as ApiCallOptions } from "./auth-types-E99tzdN0.js";
2
-
3
- //#region src/public/rest/transports.d.ts
4
- type DeleteConfigNotFoundError = {
5
- errors?: {
6
- /** The error code. */
7
- code: string;
8
- /** Summary of the problem */
9
- title: string;
10
- }[];
11
- };
12
- /**
13
- * An error object.
14
- */
15
- type ErrorPublic = {
16
- /** The error code. */
17
- code: string;
18
- /** Summary of the problem. */
19
- title: string;
20
- };
21
- type ErrorsPublic = {
22
- errors?: ErrorPublic[];
23
- };
24
- type SendTestMailConfigNotFoundError = {
25
- errors?: {
26
- /** The error code. */
27
- code: string;
28
- /** Summary of the problem */
29
- title: string;
30
- }[];
31
- };
32
- type TenantAdminError = {
33
- errors?: {
34
- /** The error code. */
35
- code: string;
36
- /** Summary of the problem */
37
- title: string;
38
- }[];
39
- };
40
- type UpdateEmailConfigError = {
41
- errors?: {
42
- /** The error code. */
43
- code: string;
44
- /** Summary of the problem */
45
- title: string;
46
- }[];
47
- };
48
- type VerifyConnectionConfigNotFoundError = {
49
- errors?: {
50
- /** The error code. */
51
- code: string;
52
- /** Summary of the problem */
53
- title: string;
54
- }[];
55
- };
56
- type Email = {
57
- /** email body */
58
- body?: string;
59
- /** email recipient (email address) */
60
- recipient?: string;
61
- /** email subject */
62
- subject?: string;
63
- };
64
- /**
65
- * A JSON Patch document as defined in https://datatracker.ietf.org/doc/html/rfc6902.
66
- */
67
- type EmailConfigFieldPatch = {
68
- /** The operation to be performed. */
69
- op: "replace, remove, add";
70
- /** The path for the given resource field to patch. */
71
- path: "/username" | "/serverAddress" | "/serverPort" | "/securityType" | "/emailAddress" | "/emailPassword";
72
- /** The value to be used for this operation. */
73
- value: string;
74
- };
75
- /**
76
- * @example
77
- * [
78
- * {
79
- * path: "/username",
80
- * value: "New name"
81
- * }
82
- * ]
83
- */
84
- type EmailConfigPatch = EmailConfigFieldPatch[];
85
- type GetBasicAuthConfig = {
86
- /** The email address that should appear in From field when sending emails with this account */
87
- emailAddress?: string;
88
- /** The selected SMTP security mechanism. Could be either 'none', 'StartTLS' or 'SSL/TLS' */
89
- securityType?: string;
90
- /** The name that should appear in From field when sending emails with this account */
91
- senderName?: string;
92
- /** domain name or IP address of SMTP server */
93
- serverAddress?: string;
94
- /** smtp server port */
95
- serverPort?: number;
96
- /** user name used for SMTP login */
97
- username?: string;
98
- };
99
- type GetEmailConfig = {
100
- /** Number of authentication failures */
101
- authFailures?: number;
102
- /** used for SMTP authentication */
103
- emailAddress?: string;
104
- /** Indicates error with this email configuration. OK means that no error is indicated. Possible values are OK, CONFIG_NOT_SET, INCOMPLETE_CONFIG, INVALID_CREDENTIALS, PROVIDER_ERROR */
105
- errorCode?: string;
106
- /** Is the configuration valid */
107
- isValid?: boolean;
108
- lastUpdated?: string;
109
- /** Last modification time. Formatted as a ISO 8601 string. */
110
- modificationTime?: string;
111
- /** Indicates if password is defined for this smtp config. The password itself is not returned! */
112
- passwordExists?: boolean;
113
- providerConfig?: GetMicrosoft365Config | GetBasicAuthConfig;
114
- /** one of none, StartTLS or SSL/TLS */
115
- securityType?: string;
116
- /** domain name or IP address of SMTP server */
117
- serverAddress?: string;
118
- /** smtp server listening port */
119
- serverPort?: number;
120
- /** Name of the service provider for authentication */
121
- serviceProvider?: "Microsoft365" | "BasicAuth";
122
- /** Contains statusCode and statusReason */
123
- status?: SmtpConfigStatus;
124
- /** The tenant Id */
125
- tenantId?: string;
126
- /** user name */
127
- username?: string;
128
- };
129
- type GetMicrosoft365Config = {
130
- /** Microsoft365 client identifier */
131
- clientId?: string;
132
- /** The email address that should appear in From field when sending emails with this account */
133
- emailAddress?: string;
134
- /** Microsoft365 tenant identifier */
135
- providerTenantId?: string;
136
- };
137
- type SmtpCheck = {
138
- /** Indicates error with this email configuration. OK means that no error is indicated. Possible values are OK, CONFIG_NOT_SET, INCOMPLETE_CONFIG, INVALID_CREDENTIALS, PROVIDER_ERROR */
139
- errorCode?: string;
140
- /** true if smtp config is correct and complete. Will return false if smtp-config does not exist at all */
141
- isValid?: boolean;
142
- };
143
- /**
144
- * Contains statusCode and statusReason
145
- */
146
- type SmtpConfigStatus = {
147
- /** Status code */
148
- statusCode?: number;
149
- /** Status reason */
150
- statusReason?: string;
151
- };
152
- type SmtpResult = {
153
- /** could not resolve domain name, connection refused, connection timed out, SSL mismatch */
154
- connectionFailed?: boolean;
155
- /** error message from SMTP middleware .. a bit technical but could be useful to administrator */
156
- message?: string;
157
- /** smtp result code string from the SMTP server. eg. "250 2.6.0" */
158
- smtpResponseCode?: number;
159
- /** was SMTP operation successful or not. Other fields herein provide more detail */
160
- success?: boolean;
161
- };
162
- /**
163
- * Deletes the email configuration for the tenant.
164
- *
165
- * @throws DeleteEmailConfigHttpError
166
- */
167
- declare function deleteEmailConfig(options?: ApiCallOptions): Promise<DeleteEmailConfigHttpResponse>;
168
- type DeleteEmailConfigHttpResponse = {
169
- data: void;
170
- headers: Headers;
171
- status: 204;
172
- };
173
- type DeleteEmailConfigHttpError = DeleteEmailConfig403HttpError | DeleteEmailConfig404HttpError | DeleteEmailConfigdefaultHttpError;
174
- type DeleteEmailConfig403HttpError = {
175
- data: TenantAdminError;
176
- headers: Headers;
177
- status: 403;
178
- };
179
- type DeleteEmailConfig404HttpError = {
180
- data: DeleteConfigNotFoundError;
181
- headers: Headers;
182
- status: 404;
183
- };
184
- type DeleteEmailConfigdefaultHttpError = {
185
- data: ErrorsPublic;
186
- headers: Headers;
187
- status: "default";
188
- };
189
- /**
190
- * Returns the current email configuration and configuration status for the tenant.
191
- *
192
- * @throws GetEmailConfigHttpError
193
- */
194
- declare function getEmailConfig(options?: ApiCallOptions): Promise<GetEmailConfigHttpResponse>;
195
- type GetEmailConfigHttpResponse = {
196
- data: GetEmailConfig;
197
- headers: Headers;
198
- status: 200;
199
- };
200
- type GetEmailConfigHttpError = GetEmailConfig403HttpError | GetEmailConfigdefaultHttpError;
201
- type GetEmailConfig403HttpError = {
202
- data: TenantAdminError;
203
- headers: Headers;
204
- status: 403;
205
- };
206
- type GetEmailConfigdefaultHttpError = {
207
- data: ErrorsPublic;
208
- headers: Headers;
209
- status: "default";
210
- };
211
- /**
212
- * @deprecated
213
- *
214
- * Patch the email configuration for the tenant.
215
- *
216
- * @param body an object with the body content
217
- * @throws PatchEmailConfigHttpError
218
- */
219
- declare function patchEmailConfig(body: EmailConfigPatch, options?: ApiCallOptions): Promise<PatchEmailConfigHttpResponse>;
220
- type PatchEmailConfigHttpResponse = {
221
- data: void;
222
- headers: Headers;
223
- status: 204;
224
- };
225
- type PatchEmailConfigHttpError = PatchEmailConfig400HttpError | PatchEmailConfig403HttpError | PatchEmailConfigdefaultHttpError;
226
- type PatchEmailConfig400HttpError = {
227
- data: UpdateEmailConfigError;
228
- headers: Headers;
229
- status: 400;
230
- };
231
- type PatchEmailConfig403HttpError = {
232
- data: TenantAdminError;
233
- headers: Headers;
234
- status: 403;
235
- };
236
- type PatchEmailConfigdefaultHttpError = {
237
- data: ErrorsPublic;
238
- headers: Headers;
239
- status: "default";
240
- };
241
- /**
242
- * Attempts to sends a test email using the active configuration, with the supplied email info (subject, body, recipient).
243
- *
244
- * @param body an object with the body content
245
- * @throws SendTestEmailHttpError
246
- */
247
- declare function sendTestEmail(body: Email, options?: ApiCallOptions): Promise<SendTestEmailHttpResponse>;
248
- type SendTestEmailHttpResponse = {
249
- data: SmtpResult;
250
- headers: Headers;
251
- status: 200;
252
- };
253
- type SendTestEmailHttpError = SendTestEmail403HttpError | SendTestEmail404HttpError | SendTestEmaildefaultHttpError;
254
- type SendTestEmail403HttpError = {
255
- data: TenantAdminError;
256
- headers: Headers;
257
- status: 403;
258
- };
259
- type SendTestEmail404HttpError = {
260
- data: SendTestMailConfigNotFoundError;
261
- headers: Headers;
262
- status: 404;
263
- };
264
- type SendTestEmaildefaultHttpError = {
265
- data: ErrorsPublic;
266
- headers: Headers;
267
- status: "default";
268
- };
269
- /**
270
- * Returns the current isValid value for the email configuration for the tenant. Does not attempt to connect to a server to verify the connection or send a test email. Will return false if no email configuration exists.
271
- *
272
- * @throws ValidateEmailConfigHttpError
273
- */
274
- declare function validateEmailConfig(options?: ApiCallOptions): Promise<ValidateEmailConfigHttpResponse>;
275
- type ValidateEmailConfigHttpResponse = {
276
- data: SmtpCheck;
277
- headers: Headers;
278
- status: 200;
279
- };
280
- type ValidateEmailConfigHttpError = {
281
- data: ErrorsPublic;
282
- headers: Headers;
283
- status: number;
284
- };
285
- /**
286
- * Attempts to verify connection to email server using a low-level protocol handshake to confirm the server is reachable and the credentials are valid, without sending a test email.
287
- *
288
- * @throws VerifyEmailConfigConnectionHttpError
289
- */
290
- declare function verifyEmailConfigConnection(options?: ApiCallOptions): Promise<VerifyEmailConfigConnectionHttpResponse>;
291
- type VerifyEmailConfigConnectionHttpResponse = {
292
- data: SmtpResult;
293
- headers: Headers;
294
- status: 200;
295
- };
296
- type VerifyEmailConfigConnectionHttpError = VerifyEmailConfigConnection404HttpError | VerifyEmailConfigConnectiondefaultHttpError;
297
- type VerifyEmailConfigConnection404HttpError = {
298
- data: VerifyConnectionConfigNotFoundError;
299
- headers: Headers;
300
- status: 404;
301
- };
302
- type VerifyEmailConfigConnectiondefaultHttpError = {
303
- data: ErrorsPublic;
304
- headers: Headers;
305
- status: "default";
306
- };
307
- /**
308
- * Clears the cache for transports api requests.
309
- */
310
- declare function clearCache(): void;
311
- type TransportsAPI = {
312
- /**
313
- * Deletes the email configuration for the tenant.
314
- *
315
- * @throws DeleteEmailConfigHttpError
316
- */
317
- deleteEmailConfig: typeof deleteEmailConfig;
318
- /**
319
- * Returns the current email configuration and configuration status for the tenant.
320
- *
321
- * @throws GetEmailConfigHttpError
322
- */
323
- getEmailConfig: typeof getEmailConfig;
324
- /**
325
- * @deprecated
326
- *
327
- * Patch the email configuration for the tenant.
328
- *
329
- * @param body an object with the body content
330
- * @throws PatchEmailConfigHttpError
331
- */
332
- patchEmailConfig: typeof patchEmailConfig;
333
- /**
334
- * Attempts to sends a test email using the active configuration, with the supplied email info (subject, body, recipient).
335
- *
336
- * @param body an object with the body content
337
- * @throws SendTestEmailHttpError
338
- */
339
- sendTestEmail: typeof sendTestEmail;
340
- /**
341
- * Returns the current isValid value for the email configuration for the tenant. Does not attempt to connect to a server to verify the connection or send a test email. Will return false if no email configuration exists.
342
- *
343
- * @throws ValidateEmailConfigHttpError
344
- */
345
- validateEmailConfig: typeof validateEmailConfig;
346
- /**
347
- * Attempts to verify connection to email server using a low-level protocol handshake to confirm the server is reachable and the credentials are valid, without sending a test email.
348
- *
349
- * @throws VerifyEmailConfigConnectionHttpError
350
- */
351
- verifyEmailConfigConnection: typeof verifyEmailConfigConnection;
352
- /**
353
- * Clears the cache for transports api requests.
354
- */
355
- clearCache: typeof clearCache;
356
- };
357
- /**
358
- * Functions for the transports api
359
- */
360
- declare const transportsExport: TransportsAPI;
361
- //#endregion
362
- export { SmtpCheck as A, VerifyEmailConfigConnectionHttpError as B, PatchEmailConfigdefaultHttpError as C, SendTestEmailHttpResponse as D, SendTestEmailHttpError as E, UpdateEmailConfigError as F, getEmailConfig as G, VerifyEmailConfigConnectiondefaultHttpError as H, ValidateEmailConfigHttpError as I, transportsExport as J, patchEmailConfig as K, ValidateEmailConfigHttpResponse as L, SmtpResult as M, TenantAdminError as N, SendTestEmaildefaultHttpError as O, TransportsAPI as P, VerifyConnectionConfigNotFoundError as R, PatchEmailConfigHttpResponse as S, SendTestEmail404HttpError as T, clearCache as U, VerifyEmailConfigConnectionHttpResponse as V, deleteEmailConfig as W, verifyEmailConfigConnection as X, validateEmailConfig as Y, GetEmailConfigdefaultHttpError as _, DeleteEmailConfigHttpResponse as a, PatchEmailConfig403HttpError as b, EmailConfigFieldPatch as c, ErrorsPublic as d, GetBasicAuthConfig as f, GetEmailConfigHttpResponse as g, GetEmailConfigHttpError as h, DeleteEmailConfigHttpError as i, SmtpConfigStatus as j, SendTestMailConfigNotFoundError as k, EmailConfigPatch as l, GetEmailConfig403HttpError as m, DeleteEmailConfig403HttpError as n, DeleteEmailConfigdefaultHttpError as o, GetEmailConfig as p, sendTestEmail as q, DeleteEmailConfig404HttpError as r, Email as s, DeleteConfigNotFoundError as t, ErrorPublic as u, GetMicrosoft365Config as v, SendTestEmail403HttpError as w, PatchEmailConfigHttpError as x, PatchEmailConfig400HttpError as y, VerifyEmailConfigConnection404HttpError as z };