@qlik/api 0.0.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 (160) hide show
  1. package/LICENSE +17 -0
  2. package/README.md +8 -0
  3. package/api-keys.d.mts +313 -0
  4. package/api-keys.d.ts +313 -0
  5. package/api-keys.js +76 -0
  6. package/api-keys.mjs +76 -0
  7. package/apps.d.mts +1921 -0
  8. package/apps.d.ts +1921 -0
  9. package/apps.js +331 -0
  10. package/apps.mjs +331 -0
  11. package/audits.d.mts +262 -0
  12. package/audits.d.ts +262 -0
  13. package/audits.js +63 -0
  14. package/audits.mjs +63 -0
  15. package/auth-CSVTXOZX.js +36 -0
  16. package/auth-TE272Q34.mjs +36 -0
  17. package/auth-types-nnUcWhuU.d.mts +98 -0
  18. package/auth-types-nnUcWhuU.d.ts +98 -0
  19. package/auth.d.mts +26 -0
  20. package/auth.d.ts +26 -0
  21. package/auth.js +13 -0
  22. package/auth.mjs +13 -0
  23. package/automations.d.mts +638 -0
  24. package/automations.d.ts +638 -0
  25. package/automations.js +166 -0
  26. package/automations.mjs +166 -0
  27. package/brands.d.mts +614 -0
  28. package/brands.d.ts +614 -0
  29. package/brands.js +118 -0
  30. package/brands.mjs +118 -0
  31. package/chunk-3YE7EI7I.mjs +17 -0
  32. package/chunk-4ES65KO3.js +57 -0
  33. package/chunk-4FLMND6T.js +25 -0
  34. package/chunk-4OMEH5SW.mjs +1337 -0
  35. package/chunk-CKPJE4IA.mjs +57 -0
  36. package/chunk-GUQBHY3H.mjs +25 -0
  37. package/chunk-OULT3V2U.js +17 -0
  38. package/chunk-WM7FQU2U.mjs +21 -0
  39. package/chunk-XASXL2NC.js +1337 -0
  40. package/chunk-ZT4C7KCQ.js +21 -0
  41. package/collections.d.mts +535 -0
  42. package/collections.d.ts +535 -0
  43. package/collections.js +100 -0
  44. package/collections.mjs +100 -0
  45. package/csp-origins.d.mts +258 -0
  46. package/csp-origins.d.ts +258 -0
  47. package/csp-origins.js +66 -0
  48. package/csp-origins.mjs +66 -0
  49. package/data-assets.d.mts +195 -0
  50. package/data-assets.d.ts +195 -0
  51. package/data-assets.js +61 -0
  52. package/data-assets.mjs +61 -0
  53. package/data-connections.d.mts +527 -0
  54. package/data-connections.d.ts +527 -0
  55. package/data-connections.js +96 -0
  56. package/data-connections.mjs +96 -0
  57. package/data-credentials.d.mts +188 -0
  58. package/data-credentials.d.ts +188 -0
  59. package/data-credentials.js +56 -0
  60. package/data-credentials.mjs +56 -0
  61. package/data-files.d.mts +471 -0
  62. package/data-files.d.ts +471 -0
  63. package/data-files.js +116 -0
  64. package/data-files.mjs +116 -0
  65. package/docs/examples.md +4 -0
  66. package/enigma-session-4L373ALV.mjs +10196 -0
  67. package/enigma-session-TEB53FAF.js +10196 -0
  68. package/esm-4X3DKK5D.js +63 -0
  69. package/esm-SOWVJKOQ.mjs +63 -0
  70. package/extensions.d.mts +257 -0
  71. package/extensions.d.ts +257 -0
  72. package/extensions.js +74 -0
  73. package/extensions.mjs +74 -0
  74. package/global.types-Eto4uYwy.d.mts +102 -0
  75. package/global.types-hIvp-WdX.d.ts +102 -0
  76. package/glossaries.d.mts +1041 -0
  77. package/glossaries.d.ts +1041 -0
  78. package/glossaries.js +225 -0
  79. package/glossaries.mjs +225 -0
  80. package/groups.d.mts +379 -0
  81. package/groups.d.ts +379 -0
  82. package/groups.js +83 -0
  83. package/groups.mjs +83 -0
  84. package/identity-providers.d.mts +492 -0
  85. package/identity-providers.d.ts +492 -0
  86. package/identity-providers.js +80 -0
  87. package/identity-providers.mjs +80 -0
  88. package/index.d.mts +142 -0
  89. package/index.d.ts +142 -0
  90. package/index.js +678 -0
  91. package/index.mjs +678 -0
  92. package/invoke-fetch-MSSJAZ7K.mjs +14 -0
  93. package/invoke-fetch-PEI54KZO.js +14 -0
  94. package/items.d.mts +501 -0
  95. package/items.d.ts +501 -0
  96. package/items.js +84 -0
  97. package/items.mjs +84 -0
  98. package/licenses.d.mts +436 -0
  99. package/licenses.d.ts +436 -0
  100. package/licenses.js +87 -0
  101. package/licenses.mjs +87 -0
  102. package/package.json +264 -0
  103. package/qix-EU7PXRZ6.mjs +573 -0
  104. package/qix-RLTISYTB.js +573 -0
  105. package/qix.d.mts +11543 -0
  106. package/qix.d.ts +11543 -0
  107. package/qix.js +9 -0
  108. package/qix.mjs +9 -0
  109. package/quotas.d.mts +105 -0
  110. package/quotas.d.ts +105 -0
  111. package/quotas.js +31 -0
  112. package/quotas.mjs +31 -0
  113. package/reload-tasks.d.mts +222 -0
  114. package/reload-tasks.d.ts +222 -0
  115. package/reload-tasks.js +59 -0
  116. package/reload-tasks.mjs +59 -0
  117. package/reloads.d.mts +189 -0
  118. package/reloads.d.ts +189 -0
  119. package/reloads.js +44 -0
  120. package/reloads.mjs +44 -0
  121. package/roles.d.mts +150 -0
  122. package/roles.d.ts +150 -0
  123. package/roles.js +30 -0
  124. package/roles.mjs +30 -0
  125. package/spaces.d.mts +524 -0
  126. package/spaces.d.ts +524 -0
  127. package/spaces.js +118 -0
  128. package/spaces.mjs +118 -0
  129. package/temp-contents.d.mts +222 -0
  130. package/temp-contents.d.ts +222 -0
  131. package/temp-contents.js +60 -0
  132. package/temp-contents.mjs +60 -0
  133. package/tenants.d.mts +276 -0
  134. package/tenants.d.ts +276 -0
  135. package/tenants.js +68 -0
  136. package/tenants.mjs +68 -0
  137. package/themes.d.mts +235 -0
  138. package/themes.d.ts +235 -0
  139. package/themes.js +74 -0
  140. package/themes.mjs +74 -0
  141. package/transports.d.mts +298 -0
  142. package/transports.d.ts +298 -0
  143. package/transports.js +62 -0
  144. package/transports.mjs +62 -0
  145. package/users.d.mts +544 -0
  146. package/users.d.ts +544 -0
  147. package/users.js +99 -0
  148. package/users.mjs +99 -0
  149. package/web-integrations.d.mts +246 -0
  150. package/web-integrations.d.ts +246 -0
  151. package/web-integrations.js +59 -0
  152. package/web-integrations.mjs +59 -0
  153. package/web-notifications.d.mts +220 -0
  154. package/web-notifications.d.ts +220 -0
  155. package/web-notifications.js +66 -0
  156. package/web-notifications.mjs +66 -0
  157. package/webhooks.d.mts +422 -0
  158. package/webhooks.d.ts +422 -0
  159. package/webhooks.js +100 -0
  160. package/webhooks.mjs +100 -0
package/brands.d.mts ADDED
@@ -0,0 +1,614 @@
1
+ import { A as ApiCallOptions } from './global.types-Eto4uYwy.mjs';
2
+ import './auth-types-nnUcWhuU.mjs';
3
+
4
+ type Brand = {
5
+ readonly active?: boolean;
6
+ /** The UTC timestamp when the brand was created. */
7
+ readonly createdAt?: string;
8
+ /** ID of a user that created the brand. */
9
+ readonly createdBy?: string;
10
+ description: string;
11
+ /** Collection of resources that make up the brand. */
12
+ files: BrandFile[];
13
+ readonly id: string;
14
+ name: string;
15
+ /** The UTC timestamp when the brand was last updated. */
16
+ readonly updatedAt?: string;
17
+ /** ID of a user that last updated the brand. */
18
+ readonly updatedBy?: string;
19
+ };
20
+ type BrandFile = {
21
+ contentType?: string;
22
+ eTag?: string;
23
+ id?: "logo" | "favIcon" | "styles";
24
+ path?: string;
25
+ };
26
+ type BrandPatch = {
27
+ /** The operation to be performed. */
28
+ op: "add" | "remove" | "replace";
29
+ /** The path for the given resource field to patch. */
30
+ path: "/name" | "/description";
31
+ /** The value to be used for this operation. */
32
+ value?: string;
33
+ };
34
+ type BrandsList = {
35
+ data?: Brand[];
36
+ links?: {
37
+ next?: Link;
38
+ prev?: Link;
39
+ self?: Link;
40
+ };
41
+ };
42
+ type ErrorResponse400 = {
43
+ errors?: {
44
+ code?: string;
45
+ detail?: string;
46
+ title?: string;
47
+ }[];
48
+ traceId?: string;
49
+ };
50
+ type ErrorResponse401 = {
51
+ errors?: {
52
+ code?: string;
53
+ detail?: string;
54
+ title?: string;
55
+ }[];
56
+ traceId?: string;
57
+ };
58
+ type ErrorResponse403 = {
59
+ errors?: {
60
+ code?: string;
61
+ detail?: string;
62
+ title?: string;
63
+ }[];
64
+ traceId?: string;
65
+ };
66
+ type ErrorResponse404 = {
67
+ errors?: {
68
+ code?: string;
69
+ detail?: string;
70
+ title?: string;
71
+ }[];
72
+ traceId?: string;
73
+ };
74
+ type ErrorResponse500 = {
75
+ errors?: {
76
+ code?: string;
77
+ detail?: string;
78
+ title?: string;
79
+ }[];
80
+ traceId?: string;
81
+ };
82
+ type Link = {
83
+ /** URL of a resource request. */
84
+ href: string;
85
+ };
86
+ type NoActiveBrand = unknown;
87
+ /**
88
+ * Lists all brand entries for a tenant
89
+ * @param query an object with query parameters
90
+ * @throws GetBrandsHttpError
91
+ */
92
+ declare const getBrands: (query: {
93
+ /** Cursor to previous. */
94
+ endingBefore?: string;
95
+ /** Maximum number of brands to retrieve. */
96
+ limit?: number;
97
+ /** Field to sort by, prefixed with -/+ to indicate the order. */
98
+ sort?: "id" | "+id" | "-id" | "createdAt" | "+createdAt" | "-createdAt" | "updatedAt" | "+updatedAt" | "-updatedAt";
99
+ /** Cursor to the next page. */
100
+ startingAfter?: string;
101
+ }, options?: ApiCallOptions) => Promise<GetBrandsHttpResponse>;
102
+ type GetBrandsHttpResponse = {
103
+ data: BrandsList;
104
+ headers: Headers;
105
+ status: number;
106
+ prev?: (options?: ApiCallOptions) => Promise<GetBrandsHttpResponse>;
107
+ next?: (options?: ApiCallOptions) => Promise<GetBrandsHttpResponse>;
108
+ };
109
+ type GetBrands400HttpError = {
110
+ data: ErrorResponse400;
111
+ headers: Headers;
112
+ status: 400;
113
+ };
114
+ type GetBrands401HttpError = {
115
+ data: ErrorResponse401;
116
+ headers: Headers;
117
+ status: 401;
118
+ };
119
+ type GetBrands403HttpError = {
120
+ data: ErrorResponse403;
121
+ headers: Headers;
122
+ status: 403;
123
+ };
124
+ type GetBrands500HttpError = {
125
+ data: ErrorResponse500;
126
+ headers: Headers;
127
+ status: 500;
128
+ };
129
+ type GetBrandsHttpError = GetBrands400HttpError | GetBrands401HttpError | GetBrands403HttpError | GetBrands500HttpError;
130
+ /**
131
+ * Creates a new brand
132
+ * @param body an object with the body content
133
+ * @throws CreateBrandHttpError
134
+ */
135
+ declare const createBrand: (body: unknown, options?: ApiCallOptions) => Promise<CreateBrandHttpResponse>;
136
+ type CreateBrandHttpResponse = {
137
+ data: Brand;
138
+ headers: Headers;
139
+ status: number;
140
+ };
141
+ type CreateBrand400HttpError = {
142
+ data: ErrorResponse400;
143
+ headers: Headers;
144
+ status: 400;
145
+ };
146
+ type CreateBrand401HttpError = {
147
+ data: ErrorResponse401;
148
+ headers: Headers;
149
+ status: 401;
150
+ };
151
+ type CreateBrand403HttpError = {
152
+ data: ErrorResponse403;
153
+ headers: Headers;
154
+ status: 403;
155
+ };
156
+ type CreateBrand500HttpError = {
157
+ data: ErrorResponse500;
158
+ headers: Headers;
159
+ status: 500;
160
+ };
161
+ type CreateBrandHttpError = CreateBrand400HttpError | CreateBrand401HttpError | CreateBrand403HttpError | CreateBrand500HttpError;
162
+ /**
163
+ * Retrieves the current active brand
164
+ * @throws GetActiveBrandHttpError
165
+ */
166
+ declare const getActiveBrand: (options?: ApiCallOptions) => Promise<GetActiveBrandHttpResponse>;
167
+ type GetActiveBrandHttpResponse = {
168
+ data: NoActiveBrand;
169
+ headers: Headers;
170
+ status: number;
171
+ };
172
+ type GetActiveBrandHttpError = {
173
+ data: void;
174
+ headers: Headers;
175
+ status: number;
176
+ };
177
+ /**
178
+ * Deletes a specific brand
179
+ * @param brandId The brand's unique identifier.
180
+ * @throws DeleteBrandHttpError
181
+ */
182
+ declare const deleteBrand: (brandId: string, options?: ApiCallOptions) => Promise<DeleteBrandHttpResponse>;
183
+ type DeleteBrandHttpResponse = {
184
+ data: void;
185
+ headers: Headers;
186
+ status: number;
187
+ };
188
+ type DeleteBrand400HttpError = {
189
+ data: ErrorResponse400;
190
+ headers: Headers;
191
+ status: 400;
192
+ };
193
+ type DeleteBrand401HttpError = {
194
+ data: ErrorResponse401;
195
+ headers: Headers;
196
+ status: 401;
197
+ };
198
+ type DeleteBrand403HttpError = {
199
+ data: ErrorResponse403;
200
+ headers: Headers;
201
+ status: 403;
202
+ };
203
+ type DeleteBrand404HttpError = {
204
+ data: ErrorResponse404;
205
+ headers: Headers;
206
+ status: 404;
207
+ };
208
+ type DeleteBrand500HttpError = {
209
+ data: ErrorResponse500;
210
+ headers: Headers;
211
+ status: 500;
212
+ };
213
+ type DeleteBrandHttpError = DeleteBrand400HttpError | DeleteBrand401HttpError | DeleteBrand403HttpError | DeleteBrand404HttpError | DeleteBrand500HttpError;
214
+ /**
215
+ * Retrieves a specific brand
216
+ * @param brandId The brand's unique identifier.
217
+ * @throws GetBrandHttpError
218
+ */
219
+ declare const getBrand: (brandId: string, options?: ApiCallOptions) => Promise<GetBrandHttpResponse>;
220
+ type GetBrandHttpResponse = {
221
+ data: Brand;
222
+ headers: Headers;
223
+ status: number;
224
+ };
225
+ type GetBrand400HttpError = {
226
+ data: ErrorResponse400;
227
+ headers: Headers;
228
+ status: 400;
229
+ };
230
+ type GetBrand401HttpError = {
231
+ data: ErrorResponse401;
232
+ headers: Headers;
233
+ status: 401;
234
+ };
235
+ type GetBrand403HttpError = {
236
+ data: ErrorResponse403;
237
+ headers: Headers;
238
+ status: 403;
239
+ };
240
+ type GetBrand404HttpError = {
241
+ data: ErrorResponse404;
242
+ headers: Headers;
243
+ status: 404;
244
+ };
245
+ type GetBrand500HttpError = {
246
+ data: ErrorResponse500;
247
+ headers: Headers;
248
+ status: 500;
249
+ };
250
+ type GetBrandHttpError = GetBrand400HttpError | GetBrand401HttpError | GetBrand403HttpError | GetBrand404HttpError | GetBrand500HttpError;
251
+ /**
252
+ * Patches a brand
253
+ * @param brandId The brand's unique identifier.
254
+ * @param body an object with the body content
255
+ * @throws PatchBrandHttpError
256
+ */
257
+ declare const patchBrand: (brandId: string, body: BrandPatch[], options?: ApiCallOptions) => Promise<PatchBrandHttpResponse>;
258
+ type PatchBrandHttpResponse = {
259
+ data: void;
260
+ headers: Headers;
261
+ status: number;
262
+ };
263
+ type PatchBrand400HttpError = {
264
+ data: ErrorResponse400;
265
+ headers: Headers;
266
+ status: 400;
267
+ };
268
+ type PatchBrand401HttpError = {
269
+ data: ErrorResponse401;
270
+ headers: Headers;
271
+ status: 401;
272
+ };
273
+ type PatchBrand403HttpError = {
274
+ data: ErrorResponse403;
275
+ headers: Headers;
276
+ status: 403;
277
+ };
278
+ type PatchBrand404HttpError = {
279
+ data: ErrorResponse404;
280
+ headers: Headers;
281
+ status: 404;
282
+ };
283
+ type PatchBrand500HttpError = {
284
+ data: ErrorResponse500;
285
+ headers: Headers;
286
+ status: 500;
287
+ };
288
+ type PatchBrandHttpError = PatchBrand400HttpError | PatchBrand401HttpError | PatchBrand403HttpError | PatchBrand404HttpError | PatchBrand500HttpError;
289
+ /**
290
+ * Sets the brand active and de-activates any other active brand. If the brand is already active, no action is taken.
291
+ * @param brandId The brand's unique identifier.
292
+ * @param body an object with the body content
293
+ * @throws ActivateBrandHttpError
294
+ */
295
+ declare const activateBrand: (brandId: string, body: unknown, options?: ApiCallOptions) => Promise<ActivateBrandHttpResponse>;
296
+ type ActivateBrandHttpResponse = {
297
+ data: Brand;
298
+ headers: Headers;
299
+ status: number;
300
+ };
301
+ type ActivateBrand400HttpError = {
302
+ data: ErrorResponse400;
303
+ headers: Headers;
304
+ status: 400;
305
+ };
306
+ type ActivateBrand401HttpError = {
307
+ data: ErrorResponse401;
308
+ headers: Headers;
309
+ status: 401;
310
+ };
311
+ type ActivateBrand403HttpError = {
312
+ data: ErrorResponse403;
313
+ headers: Headers;
314
+ status: 403;
315
+ };
316
+ type ActivateBrand404HttpError = {
317
+ data: ErrorResponse404;
318
+ headers: Headers;
319
+ status: 404;
320
+ };
321
+ type ActivateBrand500HttpError = {
322
+ data: ErrorResponse500;
323
+ headers: Headers;
324
+ status: 500;
325
+ };
326
+ type ActivateBrandHttpError = ActivateBrand400HttpError | ActivateBrand401HttpError | ActivateBrand403HttpError | ActivateBrand404HttpError | ActivateBrand500HttpError;
327
+ /**
328
+ * Sets the brand so it is no longer active. If the brand is already inactive, no action is taken.
329
+ * @param brandId The brand's unique identifier.
330
+ * @param body an object with the body content
331
+ * @throws DeactivateBrandHttpError
332
+ */
333
+ declare const deactivateBrand: (brandId: string, body: unknown, options?: ApiCallOptions) => Promise<DeactivateBrandHttpResponse>;
334
+ type DeactivateBrandHttpResponse = {
335
+ data: Brand;
336
+ headers: Headers;
337
+ status: number;
338
+ };
339
+ type DeactivateBrand400HttpError = {
340
+ data: ErrorResponse400;
341
+ headers: Headers;
342
+ status: 400;
343
+ };
344
+ type DeactivateBrand401HttpError = {
345
+ data: ErrorResponse401;
346
+ headers: Headers;
347
+ status: 401;
348
+ };
349
+ type DeactivateBrand403HttpError = {
350
+ data: ErrorResponse403;
351
+ headers: Headers;
352
+ status: 403;
353
+ };
354
+ type DeactivateBrand404HttpError = {
355
+ data: ErrorResponse404;
356
+ headers: Headers;
357
+ status: 404;
358
+ };
359
+ type DeactivateBrand500HttpError = {
360
+ data: ErrorResponse500;
361
+ headers: Headers;
362
+ status: 500;
363
+ };
364
+ type DeactivateBrandHttpError = DeactivateBrand400HttpError | DeactivateBrand401HttpError | DeactivateBrand403HttpError | DeactivateBrand404HttpError | DeactivateBrand500HttpError;
365
+ /**
366
+ * Deletes a specific brand file
367
+ * @param brandId The brand's unique identifier.
368
+ * @param brandFileId The unique identifier of a file within a brand.
369
+ * @throws DeleteBrandFileHttpError
370
+ */
371
+ declare const deleteBrandFile: (brandId: string, brandFileId: string, options?: ApiCallOptions) => Promise<DeleteBrandFileHttpResponse>;
372
+ type DeleteBrandFileHttpResponse = {
373
+ data: void;
374
+ headers: Headers;
375
+ status: number;
376
+ };
377
+ type DeleteBrandFile400HttpError = {
378
+ data: ErrorResponse400;
379
+ headers: Headers;
380
+ status: 400;
381
+ };
382
+ type DeleteBrandFile401HttpError = {
383
+ data: ErrorResponse401;
384
+ headers: Headers;
385
+ status: 401;
386
+ };
387
+ type DeleteBrandFile403HttpError = {
388
+ data: ErrorResponse403;
389
+ headers: Headers;
390
+ status: 403;
391
+ };
392
+ type DeleteBrandFile404HttpError = {
393
+ data: ErrorResponse404;
394
+ headers: Headers;
395
+ status: 404;
396
+ };
397
+ type DeleteBrandFile500HttpError = {
398
+ data: ErrorResponse500;
399
+ headers: Headers;
400
+ status: 500;
401
+ };
402
+ type DeleteBrandFileHttpError = DeleteBrandFile400HttpError | DeleteBrandFile401HttpError | DeleteBrandFile403HttpError | DeleteBrandFile404HttpError | DeleteBrandFile500HttpError;
403
+ /**
404
+ * Downloads the brand file
405
+ * @param brandId The brand's unique identifier.
406
+ * @param brandFileId The unique identifier of a file within a brand.
407
+ * @throws GetBrandFileHttpError
408
+ */
409
+ declare const getBrandFile: (brandId: string, brandFileId: string, options?: ApiCallOptions) => Promise<GetBrandFileHttpResponse>;
410
+ type GetBrandFileHttpResponse = {
411
+ data: string;
412
+ headers: Headers;
413
+ status: number;
414
+ };
415
+ type GetBrandFile400HttpError = {
416
+ data: ErrorResponse400;
417
+ headers: Headers;
418
+ status: 400;
419
+ };
420
+ type GetBrandFile401HttpError = {
421
+ data: ErrorResponse401;
422
+ headers: Headers;
423
+ status: 401;
424
+ };
425
+ type GetBrandFile403HttpError = {
426
+ data: ErrorResponse403;
427
+ headers: Headers;
428
+ status: 403;
429
+ };
430
+ type GetBrandFile404HttpError = {
431
+ data: ErrorResponse404;
432
+ headers: Headers;
433
+ status: 404;
434
+ };
435
+ type GetBrandFile500HttpError = {
436
+ data: ErrorResponse500;
437
+ headers: Headers;
438
+ status: 500;
439
+ };
440
+ type GetBrandFileHttpError = GetBrandFile400HttpError | GetBrandFile401HttpError | GetBrandFile403HttpError | GetBrandFile404HttpError | GetBrandFile500HttpError;
441
+ /**
442
+ * Creates a brand file
443
+ * @param brandId The brand's unique identifier.
444
+ * @param brandFileId The unique identifier of a file within a brand.
445
+ * @param body an object with the body content
446
+ * @throws CreateBrandFileHttpError
447
+ */
448
+ declare const createBrandFile: (brandId: string, brandFileId: string, body: unknown, options?: ApiCallOptions) => Promise<CreateBrandFileHttpResponse>;
449
+ type CreateBrandFileHttpResponse = {
450
+ data: BrandFile;
451
+ headers: Headers;
452
+ status: number;
453
+ };
454
+ type CreateBrandFile400HttpError = {
455
+ data: ErrorResponse400;
456
+ headers: Headers;
457
+ status: 400;
458
+ };
459
+ type CreateBrandFile401HttpError = {
460
+ data: ErrorResponse401;
461
+ headers: Headers;
462
+ status: 401;
463
+ };
464
+ type CreateBrandFile403HttpError = {
465
+ data: ErrorResponse403;
466
+ headers: Headers;
467
+ status: 403;
468
+ };
469
+ type CreateBrandFile404HttpError = {
470
+ data: ErrorResponse404;
471
+ headers: Headers;
472
+ status: 404;
473
+ };
474
+ type CreateBrandFile500HttpError = {
475
+ data: ErrorResponse500;
476
+ headers: Headers;
477
+ status: 500;
478
+ };
479
+ type CreateBrandFileHttpError = CreateBrandFile400HttpError | CreateBrandFile401HttpError | CreateBrandFile403HttpError | CreateBrandFile404HttpError | CreateBrandFile500HttpError;
480
+ /**
481
+ * Updates existing file
482
+ * @param brandId The brand's unique identifier.
483
+ * @param brandFileId The unique identifier of a file within a brand.
484
+ * @param body an object with the body content
485
+ * @throws UpdateBrandFileHttpError
486
+ */
487
+ declare const updateBrandFile: (brandId: string, brandFileId: string, body: unknown, options?: ApiCallOptions) => Promise<UpdateBrandFileHttpResponse>;
488
+ type UpdateBrandFileHttpResponse = {
489
+ data: BrandFile;
490
+ headers: Headers;
491
+ status: number;
492
+ };
493
+ type UpdateBrandFile400HttpError = {
494
+ data: ErrorResponse400;
495
+ headers: Headers;
496
+ status: 400;
497
+ };
498
+ type UpdateBrandFile401HttpError = {
499
+ data: ErrorResponse401;
500
+ headers: Headers;
501
+ status: 401;
502
+ };
503
+ type UpdateBrandFile403HttpError = {
504
+ data: ErrorResponse403;
505
+ headers: Headers;
506
+ status: 403;
507
+ };
508
+ type UpdateBrandFile404HttpError = {
509
+ data: ErrorResponse404;
510
+ headers: Headers;
511
+ status: 404;
512
+ };
513
+ type UpdateBrandFile500HttpError = {
514
+ data: ErrorResponse500;
515
+ headers: Headers;
516
+ status: 500;
517
+ };
518
+ type UpdateBrandFileHttpError = UpdateBrandFile400HttpError | UpdateBrandFile401HttpError | UpdateBrandFile403HttpError | UpdateBrandFile404HttpError | UpdateBrandFile500HttpError;
519
+ /**
520
+ * Clears the cache for brands api requests.
521
+ */
522
+ declare function clearCache(): void;
523
+ interface BrandsAPI {
524
+ /**
525
+ * Lists all brand entries for a tenant
526
+ * @param query an object with query parameters
527
+ * @throws GetBrandsHttpError
528
+ */
529
+ getBrands: typeof getBrands;
530
+ /**
531
+ * Creates a new brand
532
+ * @param body an object with the body content
533
+ * @throws CreateBrandHttpError
534
+ */
535
+ createBrand: typeof createBrand;
536
+ /**
537
+ * Retrieves the current active brand
538
+ * @throws GetActiveBrandHttpError
539
+ */
540
+ getActiveBrand: typeof getActiveBrand;
541
+ /**
542
+ * Deletes a specific brand
543
+ * @param brandId The brand's unique identifier.
544
+ * @throws DeleteBrandHttpError
545
+ */
546
+ deleteBrand: typeof deleteBrand;
547
+ /**
548
+ * Retrieves a specific brand
549
+ * @param brandId The brand's unique identifier.
550
+ * @throws GetBrandHttpError
551
+ */
552
+ getBrand: typeof getBrand;
553
+ /**
554
+ * Patches a brand
555
+ * @param brandId The brand's unique identifier.
556
+ * @param body an object with the body content
557
+ * @throws PatchBrandHttpError
558
+ */
559
+ patchBrand: typeof patchBrand;
560
+ /**
561
+ * Sets the brand active and de-activates any other active brand. If the brand is already active, no action is taken.
562
+ * @param brandId The brand's unique identifier.
563
+ * @param body an object with the body content
564
+ * @throws ActivateBrandHttpError
565
+ */
566
+ activateBrand: typeof activateBrand;
567
+ /**
568
+ * Sets the brand so it is no longer active. If the brand is already inactive, no action is taken.
569
+ * @param brandId The brand's unique identifier.
570
+ * @param body an object with the body content
571
+ * @throws DeactivateBrandHttpError
572
+ */
573
+ deactivateBrand: typeof deactivateBrand;
574
+ /**
575
+ * Deletes a specific brand file
576
+ * @param brandId The brand's unique identifier.
577
+ * @param brandFileId The unique identifier of a file within a brand.
578
+ * @throws DeleteBrandFileHttpError
579
+ */
580
+ deleteBrandFile: typeof deleteBrandFile;
581
+ /**
582
+ * Downloads the brand file
583
+ * @param brandId The brand's unique identifier.
584
+ * @param brandFileId The unique identifier of a file within a brand.
585
+ * @throws GetBrandFileHttpError
586
+ */
587
+ getBrandFile: typeof getBrandFile;
588
+ /**
589
+ * Creates a brand file
590
+ * @param brandId The brand's unique identifier.
591
+ * @param brandFileId The unique identifier of a file within a brand.
592
+ * @param body an object with the body content
593
+ * @throws CreateBrandFileHttpError
594
+ */
595
+ createBrandFile: typeof createBrandFile;
596
+ /**
597
+ * Updates existing file
598
+ * @param brandId The brand's unique identifier.
599
+ * @param brandFileId The unique identifier of a file within a brand.
600
+ * @param body an object with the body content
601
+ * @throws UpdateBrandFileHttpError
602
+ */
603
+ updateBrandFile: typeof updateBrandFile;
604
+ /**
605
+ * Clears the cache for brands api requests.
606
+ */
607
+ clearCache: typeof clearCache;
608
+ }
609
+ /**
610
+ * Functions for the brands api
611
+ */
612
+ declare const brandsExport: BrandsAPI;
613
+
614
+ export { type ActivateBrand400HttpError, type ActivateBrand401HttpError, type ActivateBrand403HttpError, type ActivateBrand404HttpError, type ActivateBrand500HttpError, type ActivateBrandHttpError, type ActivateBrandHttpResponse, type Brand, type BrandFile, type BrandPatch, type BrandsAPI, type BrandsList, type CreateBrand400HttpError, type CreateBrand401HttpError, type CreateBrand403HttpError, type CreateBrand500HttpError, type CreateBrandFile400HttpError, type CreateBrandFile401HttpError, type CreateBrandFile403HttpError, type CreateBrandFile404HttpError, type CreateBrandFile500HttpError, type CreateBrandFileHttpError, type CreateBrandFileHttpResponse, type CreateBrandHttpError, type CreateBrandHttpResponse, type DeactivateBrand400HttpError, type DeactivateBrand401HttpError, type DeactivateBrand403HttpError, type DeactivateBrand404HttpError, type DeactivateBrand500HttpError, type DeactivateBrandHttpError, type DeactivateBrandHttpResponse, type DeleteBrand400HttpError, type DeleteBrand401HttpError, type DeleteBrand403HttpError, type DeleteBrand404HttpError, type DeleteBrand500HttpError, type DeleteBrandFile400HttpError, type DeleteBrandFile401HttpError, type DeleteBrandFile403HttpError, type DeleteBrandFile404HttpError, type DeleteBrandFile500HttpError, type DeleteBrandFileHttpError, type DeleteBrandFileHttpResponse, type DeleteBrandHttpError, type DeleteBrandHttpResponse, type ErrorResponse400, type ErrorResponse401, type ErrorResponse403, type ErrorResponse404, type ErrorResponse500, type GetActiveBrandHttpError, type GetActiveBrandHttpResponse, type GetBrand400HttpError, type GetBrand401HttpError, type GetBrand403HttpError, type GetBrand404HttpError, type GetBrand500HttpError, type GetBrandFile400HttpError, type GetBrandFile401HttpError, type GetBrandFile403HttpError, type GetBrandFile404HttpError, type GetBrandFile500HttpError, type GetBrandFileHttpError, type GetBrandFileHttpResponse, type GetBrandHttpError, type GetBrandHttpResponse, type GetBrands400HttpError, type GetBrands401HttpError, type GetBrands403HttpError, type GetBrands500HttpError, type GetBrandsHttpError, type GetBrandsHttpResponse, type Link, type NoActiveBrand, type PatchBrand400HttpError, type PatchBrand401HttpError, type PatchBrand403HttpError, type PatchBrand404HttpError, type PatchBrand500HttpError, type PatchBrandHttpError, type PatchBrandHttpResponse, type UpdateBrandFile400HttpError, type UpdateBrandFile401HttpError, type UpdateBrandFile403HttpError, type UpdateBrandFile404HttpError, type UpdateBrandFile500HttpError, type UpdateBrandFileHttpError, type UpdateBrandFileHttpResponse, activateBrand, clearCache, createBrand, createBrandFile, deactivateBrand, brandsExport as default, deleteBrand, deleteBrandFile, getActiveBrand, getBrand, getBrandFile, getBrands, patchBrand, updateBrandFile };