@qlik/api 1.32.0 → 1.34.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 (142) hide show
  1. package/api-keys.d.ts +13 -12
  2. package/api-keys.js +64 -50
  3. package/apps.d.ts +56 -56
  4. package/apps.js +392 -304
  5. package/assistants.d.ts +34 -34
  6. package/assistants.js +257 -201
  7. package/audits.d.ts +10 -10
  8. package/audits.js +48 -36
  9. package/{auth-types-DqfMuSRX.d.ts → auth-types-Cj5bM3Yk.d.ts} +29 -9
  10. package/auth.d.ts +17 -4
  11. package/auth.js +4 -2
  12. package/automation-connections.d.ts +12 -12
  13. package/automation-connections.js +75 -59
  14. package/automations.d.ts +29 -29
  15. package/automations.js +159 -123
  16. package/automl-deployments.d.ts +4 -4
  17. package/automl-deployments.js +14 -12
  18. package/automl-predictions.d.ts +13 -13
  19. package/automl-predictions.js +56 -44
  20. package/brands.d.ts +18 -18
  21. package/brands.js +107 -83
  22. package/chunks/{LY7RP2HA.js → 4V6T7Y4L.js} +26 -8
  23. package/chunks/{RCLKKVYB.js → 6C6WMV7V.js} +9 -2
  24. package/chunks/{VVD2DPKQ.js → 6WNP7HZQ.js} +3 -3
  25. package/chunks/7MMXU6EL.js +86 -0
  26. package/chunks/{6ZONDHRN.js → EEE42MLS.js} +11 -4
  27. package/chunks/{FKDGGR2O.js → I2HA7WJB.js} +1362 -1366
  28. package/chunks/{M64RLKVG.js → M7AINAXZ.js} +7 -5
  29. package/chunks/{LTNGXTXG.js → QAOVZB27.js} +3 -3
  30. package/chunks/{YTT2FEVE.js → QZKOA6VR.js} +1 -1
  31. package/chunks/{UZTIZ4H5.js → VUYZKBT5.js} +74 -74
  32. package/chunks/{3RGGGGAR.js → ZCTVPXGO.js} +1 -1
  33. package/collections.d.ts +16 -15
  34. package/collections.js +98 -76
  35. package/conditions.d.ts +13 -13
  36. package/conditions.js +97 -75
  37. package/consumption.d.ts +4 -4
  38. package/consumption.js +11 -9
  39. package/csp-origins.d.ts +9 -9
  40. package/csp-origins.js +53 -41
  41. package/csrf-token.d.ts +3 -3
  42. package/csrf-token.js +10 -8
  43. package/data-alerts.d.ts +22 -22
  44. package/data-alerts.js +139 -107
  45. package/data-assets.d.ts +8 -8
  46. package/data-assets.js +50 -40
  47. package/data-connections.d.ts +16 -16
  48. package/data-connections.js +87 -69
  49. package/data-credentials.d.ts +11 -11
  50. package/data-credentials.js +52 -42
  51. package/data-files.d.ts +18 -18
  52. package/data-files.js +107 -83
  53. package/data-qualities.d.ts +6 -6
  54. package/data-qualities.js +28 -22
  55. package/data-sets.d.ts +10 -10
  56. package/data-sets.js +59 -47
  57. package/data-sources.d.ts +7 -7
  58. package/data-sources.js +28 -22
  59. package/data-stores.d.ts +16 -16
  60. package/data-stores.js +92 -72
  61. package/dcaas.d.ts +6 -6
  62. package/dcaas.js +28 -22
  63. package/di-projects.d.ts +22 -22
  64. package/di-projects.js +148 -116
  65. package/direct-access-agents.d.ts +328 -0
  66. package/direct-access-agents.js +108 -0
  67. package/encryption.d.ts +12 -12
  68. package/encryption.js +82 -62
  69. package/extensions.d.ts +11 -11
  70. package/extensions.js +61 -47
  71. package/glossaries.d.ts +33 -33
  72. package/glossaries.js +221 -173
  73. package/groups.d.ts +12 -12
  74. package/groups.js +72 -56
  75. package/identity-providers.d.ts +11 -11
  76. package/identity-providers.js +67 -51
  77. package/index.d.ts +9 -4
  78. package/index.js +102 -67
  79. package/interceptors.d.ts +9 -2
  80. package/interceptors.js +2 -2
  81. package/invoke-fetch-types-BYCD4pc9.d.ts +98 -0
  82. package/items.d.ts +14 -13
  83. package/items.js +71 -55
  84. package/knowledgebases.d.ts +23 -23
  85. package/knowledgebases.js +153 -119
  86. package/licenses.d.ts +16 -14
  87. package/licenses.js +76 -58
  88. package/lineage-graphs.d.ts +17 -17
  89. package/lineage-graphs.js +76 -60
  90. package/ml.d.ts +238 -60
  91. package/ml.js +391 -286
  92. package/notes.d.ts +4 -4
  93. package/notes.js +19 -15
  94. package/notifications.d.ts +4 -4
  95. package/notifications.js +11 -9
  96. package/oauth-clients.d.ts +14 -14
  97. package/oauth-clients.js +96 -74
  98. package/oauth-tokens.d.ts +5 -5
  99. package/oauth-tokens.js +19 -15
  100. package/package.json +8 -6
  101. package/qix.d.ts +145 -4
  102. package/qix.js +2 -2
  103. package/questions.d.ts +5 -5
  104. package/questions.js +22 -18
  105. package/quotas.d.ts +6 -6
  106. package/quotas.js +20 -16
  107. package/reload-tasks.d.ts +8 -8
  108. package/reload-tasks.js +46 -36
  109. package/reloads.d.ts +7 -7
  110. package/reloads.js +36 -28
  111. package/report-templates.d.ts +10 -10
  112. package/report-templates.js +64 -50
  113. package/reports.d.ts +4 -4
  114. package/reports.js +20 -16
  115. package/roles.d.ts +8 -8
  116. package/roles.js +46 -36
  117. package/sharing-tasks.d.ts +14 -14
  118. package/sharing-tasks.js +89 -69
  119. package/spaces.d.ts +27 -23
  120. package/spaces.js +153 -119
  121. package/tasks.d.ts +17 -17
  122. package/tasks.js +90 -70
  123. package/temp-contents.d.ts +7 -7
  124. package/temp-contents.js +30 -24
  125. package/tenants.d.ts +8 -8
  126. package/tenants.js +57 -45
  127. package/themes.d.ts +11 -11
  128. package/themes.js +61 -47
  129. package/transports.d.ts +8 -8
  130. package/transports.js +49 -37
  131. package/ui-config.d.ts +9 -9
  132. package/ui-config.js +61 -47
  133. package/users.d.ts +15 -15
  134. package/users.js +81 -63
  135. package/web-integrations.d.ts +8 -8
  136. package/web-integrations.js +46 -36
  137. package/web-notifications.d.ts +9 -9
  138. package/web-notifications.js +53 -41
  139. package/webhooks.d.ts +14 -14
  140. package/webhooks.js +88 -68
  141. package/chunks/2ZQ3ZX7F.js +0 -33
  142. package/invoke-fetch-types-Cq7bjkqn.d.ts +0 -243
package/items.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
- import './auth-types-DqfMuSRX.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BYCD4pc9.js';
2
+ import './auth-types-Cj5bM3Yk.js';
3
3
 
4
4
  type CollectionTypes = "private" | "public" | "publicgoverned";
5
5
  type ErrorResponseBody = {
@@ -110,6 +110,7 @@ type CollectionsLinksResponseBody = {
110
110
  type ItemLinksResponseBody = {
111
111
  collections?: Link;
112
112
  open?: Link;
113
+ qvPlugin?: Link;
113
114
  self?: Link;
114
115
  thumbnail?: Link;
115
116
  };
@@ -251,7 +252,7 @@ type SpaceTypeEnum = "shared" | "managed" | "personal" | "data";
251
252
  * @param query an object with query parameters
252
253
  * @throws GetItemsHttpError
253
254
  */
254
- declare const getItems: (query: {
255
+ declare function getItems(query: {
255
256
  /** The collection's unique identifier. Used to filter for items with a specific tag (collection type `public`), or collection. */
256
257
  collectionId?: string;
257
258
  /** User's unique identifier. */
@@ -295,7 +296,7 @@ declare const getItems: (query: {
295
296
  spaceId?: string;
296
297
  /** The case-sensitive string used to filter items on space type(s). For example '?spaceType=shared,personal'. */
297
298
  spaceType?: SpaceTypeEnum;
298
- }, options?: ApiCallOptions) => Promise<GetItemsHttpResponse>;
299
+ }, options?: ApiCallOptions): Promise<GetItemsHttpResponse>;
299
300
  type GetItemsHttpResponse = {
300
301
  data: ItemsListItemsResponseBody;
301
302
  headers: Headers;
@@ -313,7 +314,7 @@ type GetItemsHttpError = {
313
314
  *
314
315
  * @throws GetItemsSettingsHttpError
315
316
  */
316
- declare const getItemsSettings: (options?: ApiCallOptions) => Promise<GetItemsSettingsHttpResponse>;
317
+ declare function getItemsSettings(options?: ApiCallOptions): Promise<GetItemsSettingsHttpResponse>;
317
318
  type GetItemsSettingsHttpResponse = {
318
319
  data: ItemsSettingsResponseBody;
319
320
  headers: Headers;
@@ -330,7 +331,7 @@ type GetItemsSettingsHttpError = {
330
331
  * @param body an object with the body content
331
332
  * @throws PatchItemsSettingsHttpError
332
333
  */
333
- declare const patchItemsSettings: (body: ItemsSettingsPatch, options?: ApiCallOptions) => Promise<PatchItemsSettingsHttpResponse>;
334
+ declare function patchItemsSettings(body: ItemsSettingsPatch, options?: ApiCallOptions): Promise<PatchItemsSettingsHttpResponse>;
334
335
  type PatchItemsSettingsHttpResponse = {
335
336
  data: ItemsSettingsResponseBody;
336
337
  headers: Headers;
@@ -347,7 +348,7 @@ type PatchItemsSettingsHttpError = {
347
348
  * @param itemId The item's unique identifier.
348
349
  * @throws DeleteItemHttpError
349
350
  */
350
- declare const deleteItem: (itemId: string, options?: ApiCallOptions) => Promise<DeleteItemHttpResponse>;
351
+ declare function deleteItem(itemId: string, options?: ApiCallOptions): Promise<DeleteItemHttpResponse>;
351
352
  type DeleteItemHttpResponse = {
352
353
  data: void;
353
354
  headers: Headers;
@@ -364,7 +365,7 @@ type DeleteItemHttpError = {
364
365
  * @param itemId The item's unique identifier
365
366
  * @throws GetItemHttpError
366
367
  */
367
- declare const getItem: (itemId: string, options?: ApiCallOptions) => Promise<GetItemHttpResponse>;
368
+ declare function getItem(itemId: string, options?: ApiCallOptions): Promise<GetItemHttpResponse>;
368
369
  type GetItemHttpResponse = {
369
370
  data: ItemResultResponseBody;
370
371
  headers: Headers;
@@ -382,7 +383,7 @@ type GetItemHttpError = {
382
383
  * @param body an object with the body content
383
384
  * @throws UpdateItemHttpError
384
385
  */
385
- declare const updateItem: (itemId: string, body: ItemsUpdateItemRequestBody, options?: ApiCallOptions) => Promise<UpdateItemHttpResponse>;
386
+ declare function updateItem(itemId: string, body: ItemsUpdateItemRequestBody, options?: ApiCallOptions): Promise<UpdateItemHttpResponse>;
386
387
  type UpdateItemHttpResponse = {
387
388
  data: ItemResultResponseBody;
388
389
  headers: Headers;
@@ -400,7 +401,7 @@ type UpdateItemHttpError = {
400
401
  * @param query an object with query parameters
401
402
  * @throws GetItemCollectionsHttpError
402
403
  */
403
- declare const getItemCollections: (itemId: string, query: {
404
+ declare function getItemCollections(itemId: string, query: {
404
405
  /** The maximum number of resources to return for a request. The limit must be an integer between 1 and 100 (inclusive). */
405
406
  limit?: number;
406
407
  /** The case-sensitive string used to search for a collection by name. */
@@ -415,7 +416,7 @@ declare const getItemCollections: (itemId: string, query: {
415
416
  sort?: "+createdAt" | "-createdAt" | "+name" | "-name" | "+updatedAt" | "-updatedAt";
416
417
  /** The case-sensitive string used to search for a collection by type. */
417
418
  type?: CollectionTypes;
418
- }, options?: ApiCallOptions) => Promise<GetItemCollectionsHttpResponse>;
419
+ }, options?: ApiCallOptions): Promise<GetItemCollectionsHttpResponse>;
419
420
  type GetItemCollectionsHttpResponse = {
420
421
  data: ItemsListItemCollectionsResponseBody;
421
422
  headers: Headers;
@@ -435,7 +436,7 @@ type GetItemCollectionsHttpError = {
435
436
  * @param query an object with query parameters
436
437
  * @throws GetPublishedItemsHttpError
437
438
  */
438
- declare const getPublishedItems: (itemId: string, query: {
439
+ declare function getPublishedItems(itemId: string, query: {
439
440
  /** The maximum number of resources to return for a request. The limit must be an integer between 1 and 100 (inclusive). */
440
441
  limit?: number;
441
442
  /** The cursor to the next page of resources. Provide either the next or prev cursor, but not both. */
@@ -446,7 +447,7 @@ declare const getPublishedItems: (itemId: string, query: {
446
447
  resourceType?: ItemResourceTypeEnum;
447
448
  /** The property of a resource to sort on (default sort is +createdAt). The supported properties are createdAt, updatedAt, and name. A property must be prefixed by + or - to indicate ascending or descending sort order respectively. */
448
449
  sort?: "+createdAt" | "-createdAt" | "+name" | "-name" | "+updatedAt" | "-updatedAt";
449
- }, options?: ApiCallOptions) => Promise<GetPublishedItemsHttpResponse>;
450
+ }, options?: ApiCallOptions): Promise<GetPublishedItemsHttpResponse>;
450
451
  type GetPublishedItemsHttpResponse = {
451
452
  data: ItemsListItemCollectionsResponseBody;
452
453
  headers: Headers;
package/items.js CHANGED
@@ -1,63 +1,79 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/VVD2DPKQ.js";
5
- import "./chunks/LTNGXTXG.js";
6
- import "./chunks/2ZQ3ZX7F.js";
4
+ } from "./chunks/6WNP7HZQ.js";
5
+ import "./chunks/QAOVZB27.js";
6
+ import "./chunks/7MMXU6EL.js";
7
7
 
8
8
  // src/public/rest/items.ts
9
- var getItems = async (query, options) => invokeFetch("items", {
10
- method: "get",
11
- pathTemplate: "/api/v1/items",
12
- query,
13
- options
14
- });
15
- var getItemsSettings = async (options) => invokeFetch("items", {
16
- method: "get",
17
- pathTemplate: "/api/v1/items/settings",
18
- options
19
- });
20
- var patchItemsSettings = async (body, options) => invokeFetch("items", {
21
- method: "patch",
22
- pathTemplate: "/api/v1/items/settings",
23
- body,
24
- contentType: "application/json",
25
- options
26
- });
27
- var deleteItem = async (itemId, options) => invokeFetch("items", {
28
- method: "delete",
29
- pathTemplate: "/api/v1/items/{itemId}",
30
- pathVariables: { itemId },
31
- options
32
- });
33
- var getItem = async (itemId, options) => invokeFetch("items", {
34
- method: "get",
35
- pathTemplate: "/api/v1/items/{itemId}",
36
- pathVariables: { itemId },
37
- options
38
- });
39
- var updateItem = async (itemId, body, options) => invokeFetch("items", {
40
- method: "put",
41
- pathTemplate: "/api/v1/items/{itemId}",
42
- pathVariables: { itemId },
43
- body,
44
- contentType: "application/json",
45
- options
46
- });
47
- var getItemCollections = async (itemId, query, options) => invokeFetch("items", {
48
- method: "get",
49
- pathTemplate: "/api/v1/items/{itemId}/collections",
50
- pathVariables: { itemId },
51
- query,
52
- options
53
- });
54
- var getPublishedItems = async (itemId, query, options) => invokeFetch("items", {
55
- method: "get",
56
- pathTemplate: "/api/v1/items/{itemId}/publisheditems",
57
- pathVariables: { itemId },
58
- query,
59
- options
60
- });
9
+ async function getItems(query, options) {
10
+ return invokeFetch("items", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/items",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ async function getItemsSettings(options) {
18
+ return invokeFetch("items", {
19
+ method: "get",
20
+ pathTemplate: "/api/v1/items/settings",
21
+ options
22
+ });
23
+ }
24
+ async function patchItemsSettings(body, options) {
25
+ return invokeFetch("items", {
26
+ method: "patch",
27
+ pathTemplate: "/api/v1/items/settings",
28
+ body,
29
+ contentType: "application/json",
30
+ options
31
+ });
32
+ }
33
+ async function deleteItem(itemId, options) {
34
+ return invokeFetch("items", {
35
+ method: "delete",
36
+ pathTemplate: "/api/v1/items/{itemId}",
37
+ pathVariables: { itemId },
38
+ options
39
+ });
40
+ }
41
+ async function getItem(itemId, options) {
42
+ return invokeFetch("items", {
43
+ method: "get",
44
+ pathTemplate: "/api/v1/items/{itemId}",
45
+ pathVariables: { itemId },
46
+ options
47
+ });
48
+ }
49
+ async function updateItem(itemId, body, options) {
50
+ return invokeFetch("items", {
51
+ method: "put",
52
+ pathTemplate: "/api/v1/items/{itemId}",
53
+ pathVariables: { itemId },
54
+ body,
55
+ contentType: "application/json",
56
+ options
57
+ });
58
+ }
59
+ async function getItemCollections(itemId, query, options) {
60
+ return invokeFetch("items", {
61
+ method: "get",
62
+ pathTemplate: "/api/v1/items/{itemId}/collections",
63
+ pathVariables: { itemId },
64
+ query,
65
+ options
66
+ });
67
+ }
68
+ async function getPublishedItems(itemId, query, options) {
69
+ return invokeFetch("items", {
70
+ method: "get",
71
+ pathTemplate: "/api/v1/items/{itemId}/publisheditems",
72
+ pathVariables: { itemId },
73
+ query,
74
+ options
75
+ });
76
+ }
61
77
  function clearCache() {
62
78
  return clearApiCache("items");
63
79
  }
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
- import './auth-types-DqfMuSRX.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BYCD4pc9.js';
2
+ import './auth-types-Cj5bM3Yk.js';
3
3
 
4
4
  /**
5
5
  * A JSON Patch document as defined in http://tools.ietf.org/html/rfc6902.
@@ -389,7 +389,7 @@ type SyncHistoryResult = {
389
389
  * @param query an object with query parameters
390
390
  * @throws GetKnowledgebasesHttpError
391
391
  */
392
- declare const getKnowledgebases: (query: {
392
+ declare function getKnowledgebases(query: {
393
393
  /** @deprecated
394
394
  * Optional parameter to request total count for query */
395
395
  countTotal?: boolean;
@@ -401,7 +401,7 @@ declare const getKnowledgebases: (query: {
401
401
  prev?: string;
402
402
  /** Optional resource field name to sort on, case insensitive, eg. name. Can be prefixed with - to set descending order, defaults to ascending. */
403
403
  sort?: "NAME" | "-NAME" | "DESCRIPTION" | "-DESCRIPTION" | "CREATED" | "-CREATED" | "UPDATED" | "-UPDATED";
404
- }, options?: ApiCallOptions) => Promise<GetKnowledgebasesHttpResponse>;
404
+ }, options?: ApiCallOptions): Promise<GetKnowledgebasesHttpResponse>;
405
405
  type GetKnowledgebasesHttpResponse = {
406
406
  data: KnowledgeBasesResult;
407
407
  headers: Headers;
@@ -420,7 +420,7 @@ type GetKnowledgebasesHttpError = {
420
420
  * @param body an object with the body content
421
421
  * @throws CreateKnowledgebaseHttpError
422
422
  */
423
- declare const createKnowledgebase: (body: CreateKnowledgeBase, options?: ApiCallOptions) => Promise<CreateKnowledgebaseHttpResponse>;
423
+ declare function createKnowledgebase(body: CreateKnowledgeBase, options?: ApiCallOptions): Promise<CreateKnowledgebaseHttpResponse>;
424
424
  type CreateKnowledgebaseHttpResponse = {
425
425
  data: KnowledgeBaseLight;
426
426
  headers: Headers;
@@ -437,7 +437,7 @@ type CreateKnowledgebaseHttpError = {
437
437
  * @param id The id of the knowledgebase to delete.
438
438
  * @throws DeleteKnowledgebaseHttpError
439
439
  */
440
- declare const deleteKnowledgebase: (id: string, options?: ApiCallOptions) => Promise<DeleteKnowledgebaseHttpResponse>;
440
+ declare function deleteKnowledgebase(id: string, options?: ApiCallOptions): Promise<DeleteKnowledgebaseHttpResponse>;
441
441
  type DeleteKnowledgebaseHttpResponse = {
442
442
  data: void;
443
443
  headers: Headers;
@@ -454,7 +454,7 @@ type DeleteKnowledgebaseHttpError = {
454
454
  * @param id The id of the knowledgebase to retrieve.
455
455
  * @throws GetKnowledgebaseHttpError
456
456
  */
457
- declare const getKnowledgebase: (id: string, options?: ApiCallOptions) => Promise<GetKnowledgebaseHttpResponse>;
457
+ declare function getKnowledgebase(id: string, options?: ApiCallOptions): Promise<GetKnowledgebaseHttpResponse>;
458
458
  type GetKnowledgebaseHttpResponse = {
459
459
  data: KnowledgeBase;
460
460
  headers: Headers;
@@ -472,7 +472,7 @@ type GetKnowledgebaseHttpError = {
472
472
  * @param body an object with the body content
473
473
  * @throws PatchKnowledgebaseHttpError
474
474
  */
475
- declare const patchKnowledgebase: (id: string, body: JSONPatchArray, options?: ApiCallOptions) => Promise<PatchKnowledgebaseHttpResponse>;
475
+ declare function patchKnowledgebase(id: string, body: JSONPatchArray, options?: ApiCallOptions): Promise<PatchKnowledgebaseHttpResponse>;
476
476
  type PatchKnowledgebaseHttpResponse = {
477
477
  data: void;
478
478
  headers: Headers;
@@ -490,7 +490,7 @@ type PatchKnowledgebaseHttpError = {
490
490
  * @param body an object with the body content
491
491
  * @throws CreateKnowledgebaseDatasourceHttpError
492
492
  */
493
- declare const createKnowledgebaseDatasource: (id: string, body: CreateDataSource, options?: ApiCallOptions) => Promise<CreateKnowledgebaseDatasourceHttpResponse>;
493
+ declare function createKnowledgebaseDatasource(id: string, body: CreateDataSource, options?: ApiCallOptions): Promise<CreateKnowledgebaseDatasourceHttpResponse>;
494
494
  type CreateKnowledgebaseDatasourceHttpResponse = {
495
495
  data: DataSource;
496
496
  headers: Headers;
@@ -508,7 +508,7 @@ type CreateKnowledgebaseDatasourceHttpError = {
508
508
  * @param datasourceId The id of the datasource to delete.
509
509
  * @throws DeleteKnowledgebaseDatasourceHttpError
510
510
  */
511
- declare const deleteKnowledgebaseDatasource: (id: string, datasourceId: string, options?: ApiCallOptions) => Promise<DeleteKnowledgebaseDatasourceHttpResponse>;
511
+ declare function deleteKnowledgebaseDatasource(id: string, datasourceId: string, options?: ApiCallOptions): Promise<DeleteKnowledgebaseDatasourceHttpResponse>;
512
512
  type DeleteKnowledgebaseDatasourceHttpResponse = {
513
513
  data: void;
514
514
  headers: Headers;
@@ -527,7 +527,7 @@ type DeleteKnowledgebaseDatasourceHttpError = {
527
527
  * @param body an object with the body content
528
528
  * @throws UpdateKnowledgebaseDatasourceHttpError
529
529
  */
530
- declare const updateKnowledgebaseDatasource: (id: string, datasourceId: string, body: DataSource, options?: ApiCallOptions) => Promise<UpdateKnowledgebaseDatasourceHttpResponse>;
530
+ declare function updateKnowledgebaseDatasource(id: string, datasourceId: string, body: DataSource, options?: ApiCallOptions): Promise<UpdateKnowledgebaseDatasourceHttpResponse>;
531
531
  type UpdateKnowledgebaseDatasourceHttpResponse = {
532
532
  data: DataSource;
533
533
  headers: Headers;
@@ -545,7 +545,7 @@ type UpdateKnowledgebaseDatasourceHttpError = {
545
545
  * @param datasourceId The id of the datasource to cancel sync for.
546
546
  * @throws CancelKnowledgebaseDatasourceHttpError
547
547
  */
548
- declare const cancelKnowledgebaseDatasource: (id: string, datasourceId: string, options?: ApiCallOptions) => Promise<CancelKnowledgebaseDatasourceHttpResponse>;
548
+ declare function cancelKnowledgebaseDatasource(id: string, datasourceId: string, options?: ApiCallOptions): Promise<CancelKnowledgebaseDatasourceHttpResponse>;
549
549
  type CancelKnowledgebaseDatasourceHttpResponse = {
550
550
  data: DataSourceSync;
551
551
  headers: Headers;
@@ -564,7 +564,7 @@ type CancelKnowledgebaseDatasourceHttpError = {
564
564
  * @param body an object with the body content
565
565
  * @throws DownloadKnowledgebaseDatasourceHttpError
566
566
  */
567
- declare const downloadKnowledgebaseDatasource: (id: string, datasourceId: string, body: DownloadFile, options?: ApiCallOptions) => Promise<DownloadKnowledgebaseDatasourceHttpResponse>;
567
+ declare function downloadKnowledgebaseDatasource(id: string, datasourceId: string, body: DownloadFile, options?: ApiCallOptions): Promise<DownloadKnowledgebaseDatasourceHttpResponse>;
568
568
  type DownloadKnowledgebaseDatasourceHttpResponse = {
569
569
  data: DownloadFileResponse;
570
570
  headers: Headers;
@@ -583,10 +583,10 @@ type DownloadKnowledgebaseDatasourceHttpError = {
583
583
  * @param query an object with query parameters
584
584
  * @throws SyncKnowledgebaseDatasourceHttpError
585
585
  */
586
- declare const syncKnowledgebaseDatasource: (id: string, datasourceId: string, query: {
586
+ declare function syncKnowledgebaseDatasource(id: string, datasourceId: string, query: {
587
587
  /** Optional parameter to migrate indexed files to docdetails collection */
588
588
  migrate?: boolean;
589
- }, options?: ApiCallOptions) => Promise<SyncKnowledgebaseDatasourceHttpResponse>;
589
+ }, options?: ApiCallOptions): Promise<SyncKnowledgebaseDatasourceHttpResponse>;
590
590
  type SyncKnowledgebaseDatasourceHttpResponse = {
591
591
  data: DataSourceSync;
592
592
  headers: Headers;
@@ -605,7 +605,7 @@ type SyncKnowledgebaseDatasourceHttpError = {
605
605
  * @param query an object with query parameters
606
606
  * @throws GetKnowledgebaseDatasourceHistoriesHttpError
607
607
  */
608
- declare const getKnowledgebaseDatasourceHistories: (id: string, datasourceId: string, query: {
608
+ declare function getKnowledgebaseDatasourceHistories(id: string, datasourceId: string, query: {
609
609
  /** The number of knowledgebases to get. */
610
610
  limit?: number;
611
611
  /** Optional parameter to request the next page. */
@@ -614,7 +614,7 @@ declare const getKnowledgebaseDatasourceHistories: (id: string, datasourceId: st
614
614
  prev?: string;
615
615
  /** Optional resource field name to sort on, case insensitive, eg. name. Can be prefixed with - to set descending order, defaults to ascending. */
616
616
  sort?: "COMPLETED" | "-COMPLETED";
617
- }, options?: ApiCallOptions) => Promise<GetKnowledgebaseDatasourceHistoriesHttpResponse>;
617
+ }, options?: ApiCallOptions): Promise<GetKnowledgebaseDatasourceHistoriesHttpResponse>;
618
618
  type GetKnowledgebaseDatasourceHistoriesHttpResponse = {
619
619
  data: SyncHistoryResult;
620
620
  headers: Headers;
@@ -637,7 +637,7 @@ type GetKnowledgebaseDatasourceHistoriesHttpError = {
637
637
  * @param syncId The sync identifier.
638
638
  * @throws GetKnowledgebaseDatasourceHistoryHttpError
639
639
  */
640
- declare const getKnowledgebaseDatasourceHistory: (id: string, datasourceId: string, syncId: string, options?: ApiCallOptions) => Promise<GetKnowledgebaseDatasourceHistoryHttpResponse>;
640
+ declare function getKnowledgebaseDatasourceHistory(id: string, datasourceId: string, syncId: string, options?: ApiCallOptions): Promise<GetKnowledgebaseDatasourceHistoryHttpResponse>;
641
641
  type GetKnowledgebaseDatasourceHistoryHttpResponse = {
642
642
  data: SyncHistoryDetails;
643
643
  headers: Headers;
@@ -655,7 +655,7 @@ type GetKnowledgebaseDatasourceHistoryHttpError = {
655
655
  * @param datasourceId The id of the datasource the schedule belongs to.
656
656
  * @throws DeleteKnowledgebaseDatasourceScheduleHttpError
657
657
  */
658
- declare const deleteKnowledgebaseDatasourceSchedule: (id: string, datasourceId: string, options?: ApiCallOptions) => Promise<DeleteKnowledgebaseDatasourceScheduleHttpResponse>;
658
+ declare function deleteKnowledgebaseDatasourceSchedule(id: string, datasourceId: string, options?: ApiCallOptions): Promise<DeleteKnowledgebaseDatasourceScheduleHttpResponse>;
659
659
  type DeleteKnowledgebaseDatasourceScheduleHttpResponse = {
660
660
  data: void;
661
661
  headers: Headers;
@@ -673,7 +673,7 @@ type DeleteKnowledgebaseDatasourceScheduleHttpError = {
673
673
  * @param datasourceId The id of the datasource the schedule belongs to.
674
674
  * @throws GetKnowledgebaseDatasourceScheduleHttpError
675
675
  */
676
- declare const getKnowledgebaseDatasourceSchedule: (id: string, datasourceId: string, options?: ApiCallOptions) => Promise<GetKnowledgebaseDatasourceScheduleHttpResponse>;
676
+ declare function getKnowledgebaseDatasourceSchedule(id: string, datasourceId: string, options?: ApiCallOptions): Promise<GetKnowledgebaseDatasourceScheduleHttpResponse>;
677
677
  type GetKnowledgebaseDatasourceScheduleHttpResponse = {
678
678
  data: ScheduleWithManifest;
679
679
  headers: Headers;
@@ -692,7 +692,7 @@ type GetKnowledgebaseDatasourceScheduleHttpError = {
692
692
  * @param body an object with the body content
693
693
  * @throws CreateKnowledgebaseDatasourceScheduleHttpError
694
694
  */
695
- declare const createKnowledgebaseDatasourceSchedule: (id: string, datasourceId: string, body: Schedule, options?: ApiCallOptions) => Promise<CreateKnowledgebaseDatasourceScheduleHttpResponse>;
695
+ declare function createKnowledgebaseDatasourceSchedule(id: string, datasourceId: string, body: Schedule, options?: ApiCallOptions): Promise<CreateKnowledgebaseDatasourceScheduleHttpResponse>;
696
696
  type CreateKnowledgebaseDatasourceScheduleHttpResponse = {
697
697
  data: ScheduleWithManifest;
698
698
  headers: Headers;
@@ -710,7 +710,7 @@ type CreateKnowledgebaseDatasourceScheduleHttpError = {
710
710
  * @param query an object with query parameters
711
711
  * @throws GetKnowledgebaseHistoriesHttpError
712
712
  */
713
- declare const getKnowledgebaseHistories: (id: string, query: {
713
+ declare function getKnowledgebaseHistories(id: string, query: {
714
714
  /** The number of sync histories to get. */
715
715
  limit?: number;
716
716
  /** Optional parameter to request the next page. */
@@ -719,7 +719,7 @@ declare const getKnowledgebaseHistories: (id: string, query: {
719
719
  prev?: string;
720
720
  /** Optional resource field name to sort on, case insensitive, eg. name. Can be prefixed with - to set descending order, defaults to ascending. */
721
721
  sort?: "COMPLETED" | "-COMPLETED";
722
- }, options?: ApiCallOptions) => Promise<GetKnowledgebaseHistoriesHttpResponse>;
722
+ }, options?: ApiCallOptions): Promise<GetKnowledgebaseHistoriesHttpResponse>;
723
723
  type GetKnowledgebaseHistoriesHttpResponse = {
724
724
  data: SyncHistoryResult;
725
725
  headers: Headers;