@qlik/api 0.0.16 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/README.md +1 -1
  2. package/api-keys.js +25 -25
  3. package/apps.js +97 -97
  4. package/audits.js +23 -23
  5. package/auth.js +14 -14
  6. package/automations.js +47 -47
  7. package/brands.js +35 -35
  8. package/chunks/4HB3TAEO.js +4 -4
  9. package/chunks/{EHAANYDL.mjs → 4V5AAWUI.js} +3 -3
  10. package/chunks/{O4EAKEIN.mjs → D62LI5YU.js} +1 -1
  11. package/chunks/{6WX5AGKQ.mjs → L2BJNKLV.js} +2 -2
  12. package/chunks/{3YV6X7S6.mjs → LHCJKIEO.js} +1 -1
  13. package/chunks/OPRGGO4C.js +8 -8
  14. package/chunks/{HHOVS7QC.mjs → RNLZBOJU.js} +3 -3
  15. package/chunks/{BYD63JCG.mjs → SIU6HO6B.js} +5 -3
  16. package/chunks/{6AD3HYSF.mjs → TFSRDRRS.js} +1 -1
  17. package/chunks/{HOCTJESP.mjs → VK2CODYY.js} +2 -2
  18. package/chunks/{UKVTBYP6.mjs → XOVMZWDC.js} +2 -2
  19. package/collections.js +33 -33
  20. package/csp-origins.js +23 -23
  21. package/data-assets.js +21 -21
  22. package/data-connections.js +29 -29
  23. package/data-credentials.js +19 -19
  24. package/data-files.js +35 -35
  25. package/docs/authentication.md +5 -5
  26. package/docs/examples/fetch-spaces.md +1 -15
  27. package/docs/examples/show-sheet-list.md +1 -1
  28. package/docs/features.md +1 -1
  29. package/extensions.js +25 -25
  30. package/glossaries.js +59 -59
  31. package/groups.d.ts +0 -3
  32. package/groups.js +27 -27
  33. package/identity-providers.js +27 -27
  34. package/index.js +53 -53
  35. package/items.js +27 -27
  36. package/licenses.js +29 -29
  37. package/package.json +36 -232
  38. package/qix.d.ts +1 -1
  39. package/qix.js +10 -10
  40. package/quotas.js +15 -15
  41. package/reload-tasks.js +21 -21
  42. package/reloads.js +19 -19
  43. package/roles.js +15 -15
  44. package/spaces.js +35 -35
  45. package/temp-contents.js +17 -17
  46. package/tenants.js +23 -23
  47. package/themes.js +25 -25
  48. package/transports.js +23 -23
  49. package/users.d.ts +1 -3
  50. package/users.js +31 -31
  51. package/web-integrations.js +21 -21
  52. package/web-notifications.js +23 -23
  53. package/webhooks.js +31 -31
  54. package/api-keys.d.mts +0 -336
  55. package/api-keys.mjs +0 -80
  56. package/apps.d.mts +0 -2431
  57. package/apps.mjs +0 -398
  58. package/audits.d.mts +0 -286
  59. package/audits.mjs +0 -64
  60. package/auth-types-nnUcWhuU.d.mts +0 -98
  61. package/auth.d.mts +0 -26
  62. package/auth.mjs +0 -14
  63. package/automations.d.mts +0 -682
  64. package/automations.mjs +0 -173
  65. package/brands.d.mts +0 -670
  66. package/brands.mjs +0 -123
  67. package/chunks/2YWCEGTS.js +0 -21
  68. package/chunks/34ZKUFEA.js +0 -41
  69. package/chunks/4WHZ4EIW.js +0 -57
  70. package/chunks/B4VPD3ZT.js +0 -574
  71. package/chunks/BM4OSDRZ.js +0 -17
  72. package/chunks/DCXUEDOW.mjs +0 -67
  73. package/chunks/MTAQE4WC.js +0 -10411
  74. package/chunks/PLOSYUG2.js +0 -25
  75. package/chunks/URIW2U5M.js +0 -17
  76. package/chunks/VSY5YIQY.mjs +0 -11
  77. package/chunks/WOYJLK4Y.js +0 -1623
  78. package/collections.d.mts +0 -581
  79. package/collections.mjs +0 -114
  80. package/csp-origins.d.mts +0 -273
  81. package/csp-origins.mjs +0 -69
  82. package/data-assets.d.mts +0 -205
  83. package/data-assets.mjs +0 -66
  84. package/data-connections.d.mts +0 -594
  85. package/data-connections.mjs +0 -103
  86. package/data-credentials.d.mts +0 -204
  87. package/data-credentials.mjs +0 -59
  88. package/data-files.d.mts +0 -562
  89. package/data-files.mjs +0 -123
  90. package/extensions.d.mts +0 -293
  91. package/extensions.mjs +0 -77
  92. package/global.types-5iFvFJvX.d.mts +0 -115
  93. package/glossaries.d.mts +0 -1173
  94. package/glossaries.mjs +0 -237
  95. package/groups.d.mts +0 -434
  96. package/groups.mjs +0 -88
  97. package/identity-providers.d.mts +0 -550
  98. package/identity-providers.mjs +0 -83
  99. package/index.d.mts +0 -142
  100. package/index.mjs +0 -716
  101. package/items.d.mts +0 -535
  102. package/items.mjs +0 -87
  103. package/licenses.d.mts +0 -459
  104. package/licenses.mjs +0 -92
  105. package/qix.d.mts +0 -11629
  106. package/qix.mjs +0 -10
  107. package/quotas.d.mts +0 -112
  108. package/quotas.mjs +0 -32
  109. package/reload-tasks.d.mts +0 -227
  110. package/reload-tasks.mjs +0 -62
  111. package/reloads.d.mts +0 -207
  112. package/reloads.mjs +0 -46
  113. package/roles.d.mts +0 -175
  114. package/roles.mjs +0 -31
  115. package/spaces.d.mts +0 -562
  116. package/spaces.mjs +0 -124
  117. package/temp-contents.d.mts +0 -167
  118. package/temp-contents.mjs +0 -41
  119. package/tenants.d.mts +0 -300
  120. package/tenants.mjs +0 -73
  121. package/themes.d.mts +0 -268
  122. package/themes.mjs +0 -77
  123. package/transports.d.mts +0 -319
  124. package/transports.mjs +0 -65
  125. package/users.d.mts +0 -631
  126. package/users.mjs +0 -104
  127. package/web-integrations.d.mts +0 -274
  128. package/web-integrations.mjs +0 -62
  129. package/web-notifications.d.mts +0 -250
  130. package/web-notifications.mjs +0 -69
  131. package/webhooks.d.mts +0 -445
  132. package/webhooks.mjs +0 -104
package/themes.d.mts DELETED
@@ -1,268 +0,0 @@
1
- import { A as ApiCallOptions } from './global.types-5iFvFJvX.mjs';
2
- import './auth-types-nnUcWhuU.mjs';
3
-
4
- /**
5
- * An error object.
6
- */
7
- type Error = {
8
- /** Object containing meta data regarding an error. It does not necessarily contain all the properties. */
9
- meta?: Meta;
10
- /** Optional JSON patch object pointing to an invalid property. */
11
- source?: unknown;
12
- /** The HTTP status code. */
13
- status?: number;
14
- /** Title of the HTTP status code. */
15
- title: string;
16
- };
17
- /**
18
- * Object containing meta data regarding an error. It does not necessarily contain all the properties.
19
- */
20
- type Meta = {
21
- /** A more detailed message explaining the error. */
22
- message?: string;
23
- /** Name of the resource related to the error. If there is a conflict, it is the name of the model attempting to be created. */
24
- resourceName?: string;
25
- /** Full stack trace of the error that was raised. */
26
- stack?: string;
27
- };
28
- /**
29
- * The theme model.
30
- */
31
- type Theme = {
32
- /** Author of the theme. */
33
- author?: string;
34
- readonly createdAt?: string;
35
- /** Map of dependencies describing version of the component it requires. */
36
- dependencies?: unknown;
37
- /** Description of the theme. */
38
- description?: string;
39
- /** The file that was uploaded with the theme. */
40
- file?: unknown;
41
- /** Home page of the theme. */
42
- homepage?: string;
43
- /** Icon to show in the client. */
44
- icon?: string;
45
- readonly id?: string;
46
- /** Keywords for the theme. */
47
- keywords?: string;
48
- /** Under which license this theme is published. */
49
- license?: string;
50
- /** The display name of this theme. */
51
- name?: string;
52
- /** The name of the qext file that was uploaded with this theme. */
53
- qextFilename?: string;
54
- /** The version from the qext file that was uploaded with this extension. */
55
- qextVersion?: string;
56
- /** Link to the theme source code. */
57
- repository?: string;
58
- /** Supplier of the theme. */
59
- supplier?: string;
60
- /** List of tags. */
61
- tags?: string[];
62
- readonly tenantId?: string;
63
- /** The type of this theme (visualization, etc.). */
64
- type?: string;
65
- readonly updateAt?: string;
66
- readonly userId?: string;
67
- /** Version of the theme. */
68
- version?: string;
69
- };
70
- type Themes = {
71
- data: Theme[];
72
- };
73
- /**
74
- * Lists all themes.
75
- *
76
- * @throws GetThemesHttpError
77
- */
78
- declare const getThemes: (options?: ApiCallOptions) => Promise<GetThemesHttpResponse>;
79
- type GetThemesHttpResponse = {
80
- data: Themes;
81
- headers: Headers;
82
- status: number;
83
- };
84
- type GetThemesHttpError = {
85
- data: unknown;
86
- headers: Headers;
87
- status: number;
88
- };
89
- /**
90
- * Creates a new theme. If a file is provided, the data field is not required.
91
- *
92
- * @param body an object with the body content
93
- * @throws UploadThemeHttpError
94
- */
95
- declare const uploadTheme: (body: {
96
- /** The theme model. */
97
- data?: Theme;
98
- /** Theme archive. */
99
- file?: BodyInit;
100
- }, options?: ApiCallOptions) => Promise<UploadThemeHttpResponse>;
101
- type UploadThemeHttpResponse = {
102
- data: Theme;
103
- headers: Headers;
104
- status: number;
105
- };
106
- type UploadThemeHttpError = {
107
- data: Error;
108
- headers: Headers;
109
- status: number;
110
- };
111
- /**
112
- * Deletes a specific theme.
113
- *
114
- * @param id Theme identifier or its qextFilename.
115
- * @throws DeleteThemeHttpError
116
- */
117
- declare const deleteTheme: (id: string, options?: ApiCallOptions) => Promise<DeleteThemeHttpResponse>;
118
- type DeleteThemeHttpResponse = {
119
- data: void;
120
- headers: Headers;
121
- status: number;
122
- };
123
- type DeleteThemeHttpError = {
124
- data: Error;
125
- headers: Headers;
126
- status: number;
127
- };
128
- /**
129
- * Returns a specific theme.
130
- *
131
- * @param id Theme identifier or its qextFilename
132
- * @throws GetThemeHttpError
133
- */
134
- declare const getTheme: (id: string, options?: ApiCallOptions) => Promise<GetThemeHttpResponse>;
135
- type GetThemeHttpResponse = {
136
- data: Theme;
137
- headers: Headers;
138
- status: number;
139
- };
140
- type GetThemeHttpError = {
141
- data: Error;
142
- headers: Headers;
143
- status: number;
144
- };
145
- /**
146
- * Updates a specific theme with provided data. If a file is provided, the data field is not required.
147
- *
148
- * @param id Theme identifier or its qextFilename.
149
- * @param body an object with the body content
150
- * @throws PatchThemeHttpError
151
- */
152
- declare const patchTheme: (id: string, body: {
153
- /** The theme model. */
154
- data?: Theme;
155
- /** Theme archive. */
156
- file?: BodyInit;
157
- }, options?: ApiCallOptions) => Promise<PatchThemeHttpResponse>;
158
- type PatchThemeHttpResponse = {
159
- data: Themes;
160
- headers: Headers;
161
- status: number;
162
- };
163
- type PatchThemeHttpError = {
164
- data: Error;
165
- headers: Headers;
166
- status: number;
167
- };
168
- /**
169
- * Downloads the theme as an archive.
170
- *
171
- * @param id Theme identifier or its qextFilename
172
- * @throws DownloadThemeHttpError
173
- */
174
- declare const downloadTheme: (id: string, options?: ApiCallOptions) => Promise<DownloadThemeHttpResponse>;
175
- type DownloadThemeHttpResponse = {
176
- data: void;
177
- headers: Headers;
178
- status: number;
179
- };
180
- type DownloadThemeHttpError = {
181
- data: Error;
182
- headers: Headers;
183
- status: number;
184
- };
185
- /**
186
- * Downloads a file from the theme archive.
187
- *
188
- * @param id Theme identifier or its qextFilename.
189
- * @param filepath Path to the file archive for the specified theme archive. Folders separated with forward slashes.
190
- * @throws DownloadFileFromThemeHttpError
191
- */
192
- declare const downloadFileFromTheme: (id: string, filepath: string, options?: ApiCallOptions) => Promise<DownloadFileFromThemeHttpResponse>;
193
- type DownloadFileFromThemeHttpResponse = {
194
- data: void;
195
- headers: Headers;
196
- status: number;
197
- };
198
- type DownloadFileFromThemeHttpError = {
199
- data: Error;
200
- headers: Headers;
201
- status: number;
202
- };
203
- /**
204
- * Clears the cache for themes api requests.
205
- */
206
- declare function clearCache(): void;
207
- interface ThemesAPI {
208
- /**
209
- * Lists all themes.
210
- *
211
- * @throws GetThemesHttpError
212
- */
213
- getThemes: typeof getThemes;
214
- /**
215
- * Creates a new theme. If a file is provided, the data field is not required.
216
- *
217
- * @param body an object with the body content
218
- * @throws UploadThemeHttpError
219
- */
220
- uploadTheme: typeof uploadTheme;
221
- /**
222
- * Deletes a specific theme.
223
- *
224
- * @param id Theme identifier or its qextFilename.
225
- * @throws DeleteThemeHttpError
226
- */
227
- deleteTheme: typeof deleteTheme;
228
- /**
229
- * Returns a specific theme.
230
- *
231
- * @param id Theme identifier or its qextFilename
232
- * @throws GetThemeHttpError
233
- */
234
- getTheme: typeof getTheme;
235
- /**
236
- * Updates a specific theme with provided data. If a file is provided, the data field is not required.
237
- *
238
- * @param id Theme identifier or its qextFilename.
239
- * @param body an object with the body content
240
- * @throws PatchThemeHttpError
241
- */
242
- patchTheme: typeof patchTheme;
243
- /**
244
- * Downloads the theme as an archive.
245
- *
246
- * @param id Theme identifier or its qextFilename
247
- * @throws DownloadThemeHttpError
248
- */
249
- downloadTheme: typeof downloadTheme;
250
- /**
251
- * Downloads a file from the theme archive.
252
- *
253
- * @param id Theme identifier or its qextFilename.
254
- * @param filepath Path to the file archive for the specified theme archive. Folders separated with forward slashes.
255
- * @throws DownloadFileFromThemeHttpError
256
- */
257
- downloadFileFromTheme: typeof downloadFileFromTheme;
258
- /**
259
- * Clears the cache for themes api requests.
260
- */
261
- clearCache: typeof clearCache;
262
- }
263
- /**
264
- * Functions for the themes api
265
- */
266
- declare const themesExport: ThemesAPI;
267
-
268
- export { type DeleteThemeHttpError, type DeleteThemeHttpResponse, type DownloadFileFromThemeHttpError, type DownloadFileFromThemeHttpResponse, type DownloadThemeHttpError, type DownloadThemeHttpResponse, type Error, type GetThemeHttpError, type GetThemeHttpResponse, type GetThemesHttpError, type GetThemesHttpResponse, type Meta, type PatchThemeHttpError, type PatchThemeHttpResponse, type Theme, type Themes, type ThemesAPI, type UploadThemeHttpError, type UploadThemeHttpResponse, clearCache, themesExport as default, deleteTheme, downloadFileFromTheme, downloadTheme, getTheme, getThemes, patchTheme, uploadTheme };
package/themes.mjs DELETED
@@ -1,77 +0,0 @@
1
- import {
2
- clearApiCache,
3
- invokeFetch
4
- } from "./chunks/3YV6X7S6.mjs";
5
- import "./chunks/EHAANYDL.mjs";
6
- import "./chunks/VSY5YIQY.mjs";
7
-
8
- // src/public/rest/themes.ts
9
- var getThemes = async (options) => invokeFetch("themes", {
10
- method: "get",
11
- pathTemplate: "/api/v1/themes",
12
- options
13
- });
14
- var uploadTheme = async (body, options) => invokeFetch("themes", {
15
- method: "post",
16
- pathTemplate: "/api/v1/themes",
17
- body,
18
- contentType: "multipart/form-data",
19
- options
20
- });
21
- var deleteTheme = async (id, options) => invokeFetch("themes", {
22
- method: "delete",
23
- pathTemplate: "/api/v1/themes/{id}",
24
- pathVariables: { id },
25
- options
26
- });
27
- var getTheme = async (id, options) => invokeFetch("themes", {
28
- method: "get",
29
- pathTemplate: "/api/v1/themes/{id}",
30
- pathVariables: { id },
31
- options
32
- });
33
- var patchTheme = async (id, body, options) => invokeFetch("themes", {
34
- method: "patch",
35
- pathTemplate: "/api/v1/themes/{id}",
36
- pathVariables: { id },
37
- body,
38
- contentType: "multipart/form-data",
39
- options
40
- });
41
- var downloadTheme = async (id, options) => invokeFetch("themes", {
42
- method: "get",
43
- pathTemplate: "/api/v1/themes/{id}/file",
44
- pathVariables: { id },
45
- options
46
- });
47
- var downloadFileFromTheme = async (id, filepath, options) => invokeFetch("themes", {
48
- method: "get",
49
- pathTemplate: "/api/v1/themes/{id}/file/{filepath}",
50
- pathVariables: { id, filepath },
51
- options
52
- });
53
- function clearCache() {
54
- return clearApiCache("themes");
55
- }
56
- var themesExport = {
57
- getThemes,
58
- uploadTheme,
59
- deleteTheme,
60
- getTheme,
61
- patchTheme,
62
- downloadTheme,
63
- downloadFileFromTheme,
64
- clearCache
65
- };
66
- var themes_default = themesExport;
67
- export {
68
- clearCache,
69
- themes_default as default,
70
- deleteTheme,
71
- downloadFileFromTheme,
72
- downloadTheme,
73
- getTheme,
74
- getThemes,
75
- patchTheme,
76
- uploadTheme
77
- };
package/transports.d.mts DELETED
@@ -1,319 +0,0 @@
1
- import { A as ApiCallOptions } from './global.types-5iFvFJvX.mjs';
2
- import './auth-types-nnUcWhuU.mjs';
3
-
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 PatchEmailConfigError = {
25
- errors?: {
26
- /** The error code. */
27
- code: string;
28
- /** Summary of the problem */
29
- title: string;
30
- }[];
31
- };
32
- type SendTestMailConfigNotFoundError = {
33
- errors?: {
34
- /** The error code. */
35
- code: string;
36
- /** Summary of the problem */
37
- title: string;
38
- }[];
39
- };
40
- type TenantAdminError = {
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
- type EmailConfigGet = {
76
- /** Number of authentication failures */
77
- authFailures?: number;
78
- /** used for SMTP authentication */
79
- emailAddress?: string;
80
- /** Is the configuration valid */
81
- isValid?: boolean;
82
- /** Last modification time. Formatted as a ISO 8601 string. */
83
- modificationTime?: string;
84
- /** Indicates if password is defined for this smtp config. The password itself is not returned! */
85
- passwordExists?: boolean;
86
- /** one of none, StartTLS or SSL/TLS */
87
- securityType?: string;
88
- /** domain name or IP address of SMTP server */
89
- serverAddress?: string;
90
- /** smtp server listening port */
91
- serverPort?: number;
92
- /** Contains statusCode and statusReason */
93
- status?: SmtpConfigStatus;
94
- /** The tenant Id */
95
- tenantId?: string;
96
- /** user name */
97
- username?: string;
98
- };
99
- type EmailConfigPatch = EmailConfigFieldPatch[];
100
- type SmtpCheck = {
101
- /** true if smtp config is correct and complete. Will return false if smtp-config does not exist at all */
102
- isValid?: boolean;
103
- };
104
- /**
105
- * Contains statusCode and statusReason
106
- */
107
- type SmtpConfigStatus = {
108
- /** Status code */
109
- statusCode?: number;
110
- /** Status reason */
111
- statusReason?: string;
112
- };
113
- type SmtpResult = {
114
- /** could not resolve domain name, connection refused, connection timed out, SSL mismatch */
115
- connectionFailed?: boolean;
116
- /** error message from SMTP middleware .. a bit technical but could be useful to administrator */
117
- message?: string;
118
- /** smtp result code string from the SMTP server. eg. "250 2.6.0" */
119
- smtpResponseCode?: number;
120
- /** was SMTP operation successful or not. Other fields herein provide more detail */
121
- success?: boolean;
122
- };
123
- /**
124
- * Deletes email configuration for a given tenant id (retrieved from JWT).
125
- *
126
- * @throws DeleteEmailConfigHttpError
127
- */
128
- declare const deleteEmailConfig: (options?: ApiCallOptions) => Promise<DeleteEmailConfigHttpResponse>;
129
- type DeleteEmailConfigHttpResponse = {
130
- data: void;
131
- headers: Headers;
132
- status: number;
133
- };
134
- type DeleteEmailConfig403HttpError = {
135
- data: TenantAdminError;
136
- headers: Headers;
137
- status: 403;
138
- };
139
- type DeleteEmailConfig404HttpError = {
140
- data: DeleteConfigNotFoundError;
141
- headers: Headers;
142
- status: 404;
143
- };
144
- type DeleteEmailConfigDefaultHttpError = {
145
- data: ErrorsPublic;
146
- headers: Headers;
147
- status: "default";
148
- };
149
- type DeleteEmailConfigHttpError = DeleteEmailConfig403HttpError | DeleteEmailConfig404HttpError | DeleteEmailConfigDefaultHttpError;
150
- /**
151
- * Returns the email configuration for a given tenant id (retrieved from JWT).
152
- *
153
- * @throws GetEmailConfigHttpError
154
- */
155
- declare const getEmailConfig: (options?: ApiCallOptions) => Promise<GetEmailConfigHttpResponse>;
156
- type GetEmailConfigHttpResponse = {
157
- data: EmailConfigGet;
158
- headers: Headers;
159
- status: number;
160
- };
161
- type GetEmailConfig403HttpError = {
162
- data: TenantAdminError;
163
- headers: Headers;
164
- status: 403;
165
- };
166
- type GetEmailConfigDefaultHttpError = {
167
- data: ErrorsPublic;
168
- headers: Headers;
169
- status: "default";
170
- };
171
- type GetEmailConfigHttpError = GetEmailConfig403HttpError | GetEmailConfigDefaultHttpError;
172
- /**
173
- * Patch the email configuration for a given tenant id (retrieved from JWT).
174
- *
175
- * @param body an object with the body content
176
- * @throws PatchEmailConfigHttpError
177
- */
178
- declare const patchEmailConfig: (body: EmailConfigPatch, options?: ApiCallOptions) => Promise<PatchEmailConfigHttpResponse>;
179
- type PatchEmailConfigHttpResponse = {
180
- data: void;
181
- headers: Headers;
182
- status: number;
183
- };
184
- type PatchEmailConfig400HttpError = {
185
- data: PatchEmailConfigError;
186
- headers: Headers;
187
- status: 400;
188
- };
189
- type PatchEmailConfig403HttpError = {
190
- data: TenantAdminError;
191
- headers: Headers;
192
- status: 403;
193
- };
194
- type PatchEmailConfigDefaultHttpError = {
195
- data: ErrorsPublic;
196
- headers: Headers;
197
- status: "default";
198
- };
199
- type PatchEmailConfigHttpError = PatchEmailConfig400HttpError | PatchEmailConfig403HttpError | PatchEmailConfigDefaultHttpError;
200
- /**
201
- * Send a test mail with the supplied email info (subject, body, recipient). Email config from database is used for the connection.
202
- *
203
- * @param body an object with the body content
204
- * @throws SendTestEmailHttpError
205
- */
206
- declare const sendTestEmail: (body: Email, options?: ApiCallOptions) => Promise<SendTestEmailHttpResponse>;
207
- type SendTestEmailHttpResponse = {
208
- data: SmtpResult;
209
- headers: Headers;
210
- status: number;
211
- };
212
- type SendTestEmail403HttpError = {
213
- data: TenantAdminError;
214
- headers: Headers;
215
- status: 403;
216
- };
217
- type SendTestEmail404HttpError = {
218
- data: SendTestMailConfigNotFoundError;
219
- headers: Headers;
220
- status: 404;
221
- };
222
- type SendTestEmailDefaultHttpError = {
223
- data: ErrorsPublic;
224
- headers: Headers;
225
- status: "default";
226
- };
227
- type SendTestEmailHttpError = SendTestEmail403HttpError | SendTestEmail404HttpError | SendTestEmailDefaultHttpError;
228
- /**
229
- * Returns the isValid value for the email configuration for the tenant. Will return false if no email configuration exists.
230
- *
231
- * @throws ValidateEmailConfigHttpError
232
- */
233
- declare const validateEmailConfig: (options?: ApiCallOptions) => Promise<ValidateEmailConfigHttpResponse>;
234
- type ValidateEmailConfigHttpResponse = {
235
- data: SmtpCheck;
236
- headers: Headers;
237
- status: number;
238
- };
239
- type ValidateEmailConfigHttpError = {
240
- data: ErrorsPublic;
241
- headers: Headers;
242
- status: number;
243
- };
244
- /**
245
- * Verifies connection to email server for tenant provided via JWT
246
- *
247
- * @throws VerifyEmailConfigConnectionHttpError
248
- */
249
- declare const verifyEmailConfigConnection: (options?: ApiCallOptions) => Promise<VerifyEmailConfigConnectionHttpResponse>;
250
- type VerifyEmailConfigConnectionHttpResponse = {
251
- data: SmtpResult;
252
- headers: Headers;
253
- status: number;
254
- };
255
- type VerifyEmailConfigConnection404HttpError = {
256
- data: VerifyConnectionConfigNotFoundError;
257
- headers: Headers;
258
- status: 404;
259
- };
260
- type VerifyEmailConfigConnectionDefaultHttpError = {
261
- data: ErrorsPublic;
262
- headers: Headers;
263
- status: "default";
264
- };
265
- type VerifyEmailConfigConnectionHttpError = VerifyEmailConfigConnection404HttpError | VerifyEmailConfigConnectionDefaultHttpError;
266
- /**
267
- * Clears the cache for transports api requests.
268
- */
269
- declare function clearCache(): void;
270
- interface TransportsAPI {
271
- /**
272
- * Deletes email configuration for a given tenant id (retrieved from JWT).
273
- *
274
- * @throws DeleteEmailConfigHttpError
275
- */
276
- deleteEmailConfig: typeof deleteEmailConfig;
277
- /**
278
- * Returns the email configuration for a given tenant id (retrieved from JWT).
279
- *
280
- * @throws GetEmailConfigHttpError
281
- */
282
- getEmailConfig: typeof getEmailConfig;
283
- /**
284
- * Patch the email configuration for a given tenant id (retrieved from JWT).
285
- *
286
- * @param body an object with the body content
287
- * @throws PatchEmailConfigHttpError
288
- */
289
- patchEmailConfig: typeof patchEmailConfig;
290
- /**
291
- * Send a test mail with the supplied email info (subject, body, recipient). Email config from database is used for the connection.
292
- *
293
- * @param body an object with the body content
294
- * @throws SendTestEmailHttpError
295
- */
296
- sendTestEmail: typeof sendTestEmail;
297
- /**
298
- * Returns the isValid value for the email configuration for the tenant. Will return false if no email configuration exists.
299
- *
300
- * @throws ValidateEmailConfigHttpError
301
- */
302
- validateEmailConfig: typeof validateEmailConfig;
303
- /**
304
- * Verifies connection to email server for tenant provided via JWT
305
- *
306
- * @throws VerifyEmailConfigConnectionHttpError
307
- */
308
- verifyEmailConfigConnection: typeof verifyEmailConfigConnection;
309
- /**
310
- * Clears the cache for transports api requests.
311
- */
312
- clearCache: typeof clearCache;
313
- }
314
- /**
315
- * Functions for the transports api
316
- */
317
- declare const transportsExport: TransportsAPI;
318
-
319
- export { type DeleteConfigNotFoundError, type DeleteEmailConfig403HttpError, type DeleteEmailConfig404HttpError, type DeleteEmailConfigDefaultHttpError, type DeleteEmailConfigHttpError, type DeleteEmailConfigHttpResponse, type Email, type EmailConfigFieldPatch, type EmailConfigGet, type EmailConfigPatch, type ErrorPublic, type ErrorsPublic, type GetEmailConfig403HttpError, type GetEmailConfigDefaultHttpError, type GetEmailConfigHttpError, type GetEmailConfigHttpResponse, type PatchEmailConfig400HttpError, type PatchEmailConfig403HttpError, type PatchEmailConfigDefaultHttpError, type PatchEmailConfigError, type PatchEmailConfigHttpError, type PatchEmailConfigHttpResponse, type SendTestEmail403HttpError, type SendTestEmail404HttpError, type SendTestEmailDefaultHttpError, type SendTestEmailHttpError, type SendTestEmailHttpResponse, type SendTestMailConfigNotFoundError, type SmtpCheck, type SmtpConfigStatus, type SmtpResult, type TenantAdminError, type TransportsAPI, type ValidateEmailConfigHttpError, type ValidateEmailConfigHttpResponse, type VerifyConnectionConfigNotFoundError, type VerifyEmailConfigConnection404HttpError, type VerifyEmailConfigConnectionDefaultHttpError, type VerifyEmailConfigConnectionHttpError, type VerifyEmailConfigConnectionHttpResponse, clearCache, transportsExport as default, deleteEmailConfig, getEmailConfig, patchEmailConfig, sendTestEmail, validateEmailConfig, verifyEmailConfigConnection };