@qlik/api 2.3.1 → 2.4.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 (167) hide show
  1. package/analytics/change-stores.d.ts +40 -76
  2. package/analytics/change-stores.js +9 -10
  3. package/analytics.d.ts +1 -2
  4. package/analytics.js +5 -6
  5. package/api-keys.d.ts +46 -100
  6. package/api-keys.js +3 -4
  7. package/apps.d.ts +334 -461
  8. package/apps.js +74 -6
  9. package/assistants.d.ts +172 -337
  10. package/assistants.js +3 -4
  11. package/audits.d.ts +41 -85
  12. package/audits.js +3 -4
  13. package/auth-types.d.ts +110 -1
  14. package/auth-types.js +22 -1
  15. package/auth.d.ts +1 -2
  16. package/auth.js +1 -1
  17. package/automation-connections.d.ts +44 -95
  18. package/automation-connections.js +3 -4
  19. package/automation-connectors.d.ts +10 -20
  20. package/automation-connectors.js +3 -4
  21. package/automations.d.ts +54 -112
  22. package/automations.js +3 -4
  23. package/automl-deployments.d.ts +17 -36
  24. package/automl-deployments.js +3 -4
  25. package/automl-predictions.d.ts +12 -24
  26. package/automl-predictions.js +3 -4
  27. package/banners.d.ts +8 -14
  28. package/banners.js +3 -4
  29. package/brands.d.ts +19 -39
  30. package/brands.js +3 -4
  31. package/chunks/auth-B8lJw7rm.js +31 -0
  32. package/chunks/{interceptors-2VSXImC9.js → boot-interceptors-DqRxTczb.js} +50 -150
  33. package/chunks/{chunk-D3vHIbds.js → chunk-BdHzlgOL.js} +3 -3
  34. package/chunks/{invoke-fetch-CckTK7bh.js → invoke-fetch-DMAi6Fg3.js} +3 -3
  35. package/chunks/{invoke-fetch-D9lpiAb-.js → invoke-fetch-pMN6iqup.js} +2 -3
  36. package/chunks/platform-types-CECrZkOF.d.ts +29 -0
  37. package/chunks/{public-runtime-modules-BqxAMJ9M.js → public-runtime-modules-2KfyI2qM.js} +5 -5
  38. package/chunks/{qix-DpvHvpx7.js → qix-BdNrIA4s.js} +19 -20
  39. package/chunks/{qix-chunk-entrypoint-BXZPnE6J.js → qix-chunk-entrypoint-L9RpWwLK.js} +52 -58
  40. package/chunks/{qix-CrqXv44x.d.ts → qix-types-y_di0roE.d.ts} +33 -115
  41. package/collections.d.ts +67 -144
  42. package/collections.js +3 -4
  43. package/conditions.d.ts +87 -190
  44. package/conditions.js +3 -4
  45. package/consumption.d.ts +35 -72
  46. package/consumption.js +3 -4
  47. package/core/ip-policies.d.ts +43 -93
  48. package/core/ip-policies.js +5 -6
  49. package/core.d.ts +1 -2
  50. package/core.js +5 -6
  51. package/csp-origins.d.ts +42 -85
  52. package/csp-origins.js +3 -4
  53. package/csrf-token.d.ts +6 -11
  54. package/csrf-token.js +3 -4
  55. package/data-alerts.d.ts +152 -325
  56. package/data-alerts.js +3 -4
  57. package/data-assets.d.ts +16 -31
  58. package/data-assets.js +3 -4
  59. package/data-connections.d.ts +123 -257
  60. package/data-connections.js +3 -4
  61. package/data-credentials.d.ts +36 -76
  62. package/data-credentials.js +3 -4
  63. package/data-files.d.ts +60 -121
  64. package/data-files.js +3 -4
  65. package/data-governance/data-products.d.ts +429 -0
  66. package/data-governance/data-products.js +212 -0
  67. package/data-governance.d.ts +13 -0
  68. package/data-governance.js +12 -0
  69. package/data-qualities.d.ts +11 -25
  70. package/data-qualities.js +3 -4
  71. package/data-sets.d.ts +28 -57
  72. package/data-sets.js +3 -4
  73. package/data-sources.d.ts +45 -97
  74. package/data-sources.js +3 -4
  75. package/data-stores.d.ts +53 -107
  76. package/data-stores.js +3 -4
  77. package/dcaas.d.ts +32 -67
  78. package/dcaas.js +3 -4
  79. package/di-projects.d.ts +111 -136
  80. package/di-projects.js +25 -4
  81. package/direct-access-agents.d.ts +29 -63
  82. package/direct-access-agents.js +3 -4
  83. package/encryption.d.ts +28 -59
  84. package/encryption.js +3 -4
  85. package/extensions.d.ts +35 -73
  86. package/extensions.js +3 -4
  87. package/global-types.d.ts +139 -1
  88. package/glossaries.d.ts +75 -158
  89. package/glossaries.js +3 -4
  90. package/groups.d.ts +58 -125
  91. package/groups.js +3 -4
  92. package/identity-providers.d.ts +148 -324
  93. package/identity-providers.js +3 -4
  94. package/index.d.ts +18 -4
  95. package/index.js +64 -19
  96. package/interceptors.d.ts +2 -3
  97. package/interceptors.js +104 -2
  98. package/invoke-fetch-types.d.ts +97 -1
  99. package/items.d.ts +85 -181
  100. package/items.js +3 -4
  101. package/knowledgebases.d.ts +137 -270
  102. package/knowledgebases.js +3 -4
  103. package/licenses.d.ts +71 -153
  104. package/licenses.js +3 -4
  105. package/lineage-graphs.d.ts +39 -85
  106. package/lineage-graphs.js +3 -4
  107. package/ml.d.ts +290 -621
  108. package/ml.js +3 -4
  109. package/notes.d.ts +9 -18
  110. package/notes.js +3 -4
  111. package/notifications.d.ts +14 -30
  112. package/notifications.js +3 -4
  113. package/oauth-clients.d.ts +98 -159
  114. package/oauth-clients.js +4 -5
  115. package/oauth-tokens.d.ts +16 -33
  116. package/oauth-tokens.js +3 -4
  117. package/package.json +6 -3
  118. package/qix.d.ts +46 -2
  119. package/qix.js +2 -3
  120. package/questions.d.ts +53 -110
  121. package/questions.js +3 -4
  122. package/quotas.d.ts +13 -26
  123. package/quotas.js +3 -4
  124. package/reload-tasks.d.ts +23 -46
  125. package/reload-tasks.js +3 -4
  126. package/reloads.d.ts +26 -52
  127. package/reloads.js +3 -4
  128. package/report-templates.d.ts +30 -63
  129. package/report-templates.js +3 -4
  130. package/reports.d.ts +111 -238
  131. package/reports.js +3 -4
  132. package/roles.d.ts +36 -77
  133. package/roles.js +3 -4
  134. package/sharing-tasks.d.ts +201 -427
  135. package/sharing-tasks.js +3 -4
  136. package/spaces.d.ts +71 -157
  137. package/spaces.js +3 -4
  138. package/tasks.d.ts +76 -164
  139. package/tasks.js +3 -4
  140. package/temp-contents.d.ts +17 -35
  141. package/temp-contents.js +3 -4
  142. package/tenant-settings.d.ts +298 -0
  143. package/tenant-settings.js +107 -0
  144. package/tenants.d.ts +31 -67
  145. package/tenants.js +3 -4
  146. package/themes.d.ts +27 -55
  147. package/themes.js +3 -4
  148. package/transports.d.ts +46 -106
  149. package/transports.js +3 -4
  150. package/ui-config.d.ts +8 -17
  151. package/ui-config.js +3 -4
  152. package/users.d.ts +80 -170
  153. package/users.js +3 -4
  154. package/web-integrations.d.ts +38 -83
  155. package/web-integrations.js +3 -4
  156. package/web-notifications.d.ts +14 -29
  157. package/web-notifications.js +3 -4
  158. package/webhooks.d.ts +77 -162
  159. package/webhooks.js +3 -4
  160. package/chunks/auth-XusKk8IA.js +0 -32
  161. package/chunks/auth-types-YrlH_R9f.d.ts +0 -416
  162. package/chunks/auth-types-h43TVDpB.js +0 -24
  163. package/chunks/global-types-CEVAJebk.js +0 -1
  164. /package/chunks/{dist-n3iOVn1W.js → dist-DR758NU5.js} +0 -0
  165. /package/chunks/{invoke-fetch-C1Z0RJYU.d.ts → invoke-fetch-DFc3yzaj.d.ts} +0 -0
  166. /package/chunks/{utils-vv-xFm06.js → utils-jkpLuYZR.js} +0 -0
  167. /package/chunks/{websocket-errors-CRTDTtBL.js → websocket-errors-C5U1tba-.js} +0 -0
package/assistants.js CHANGED
@@ -1,5 +1,5 @@
1
- import "./chunks/public-runtime-modules-BqxAMJ9M.js";
2
- import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-CckTK7bh.js";
1
+ import "./chunks/public-runtime-modules-2KfyI2qM.js";
2
+ import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DMAi6Fg3.js";
3
3
 
4
4
  //#region src/public/rest/assistants.ts
5
5
  /**
@@ -582,7 +582,6 @@ const assistantsExport = {
582
582
  patchAssistant,
583
583
  clearCache
584
584
  };
585
- var assistants_default = assistantsExport;
586
585
 
587
586
  //#endregion
588
- export { clearCache, createAssistant, createAssistantStarter, createAssistantThread, createAssistantThreadInteraction, createAssistantThreadInteractionFeedback, createAssistantThreadInteractionReview, assistants_default as default, deleteAssistant, deleteAssistantStarter, deleteAssistantStarterFollowup, deleteAssistantThread, deleteAssistantThreadInteraction, getAssistant, getAssistantFeedback, getAssistantSources, getAssistantStarter, getAssistantStarters, getAssistantThread, getAssistantThreadInteraction, getAssistantThreadInteractions, getAssistantThreads, getAssistants, invokeAssistantThread, patchAssistant, patchAssistantThread, patchAssistantThreadInteractionFeedback, searchAssistant, streamAssistantThread, updateAssistantStarter, updateAssistantStarterFollowup };
587
+ export { clearCache, createAssistant, createAssistantStarter, createAssistantThread, createAssistantThreadInteraction, createAssistantThreadInteractionFeedback, createAssistantThreadInteractionReview, assistantsExport as default, deleteAssistant, deleteAssistantStarter, deleteAssistantStarterFollowup, deleteAssistantThread, deleteAssistantThreadInteraction, getAssistant, getAssistantFeedback, getAssistantSources, getAssistantStarter, getAssistantStarters, getAssistantThread, getAssistantThreadInteraction, getAssistantThreadInteractions, getAssistantThreads, getAssistants, invokeAssistantThread, patchAssistant, patchAssistantThread, patchAssistantThreadInteractionFeedback, searchAssistant, streamAssistantThread, updateAssistantStarter, updateAssistantStarterFollowup };
package/audits.d.ts CHANGED
@@ -1,27 +1,17 @@
1
- import { S as DownloadableBlob, y as ApiCallOptions } from "./chunks/auth-types-YrlH_R9f.js";
2
- import "./chunks/invoke-fetch-C1Z0RJYU.js";
1
+ import { ApiCallOptions, DownloadableBlob } from "./invoke-fetch-types.js";
2
+ import "./chunks/invoke-fetch-DFc3yzaj.js";
3
3
 
4
4
  //#region src/public/rest/audits.d.ts
5
5
  type ArchiveItem = {
6
- /** The type that content is encoded in, always "application/json". */
7
- contentType?: string;
8
- /** Additional information about the event's details. The structure depends on the type and version of the event. */
9
- data?: unknown;
10
- /** The event's unique identifier. */
11
- eventId?: string;
12
- /** The RFC3339 datetime when the event happened. */
13
- eventTime?: string;
14
- /** The type of event that describes committed action. */
15
- eventType?: string;
16
- /** The version of the event type. */
17
- eventTypeVersion?: string;
18
- /** The availability of the properties depends on the event and the context it was triggered in. */
19
- extensions?: EventExtensions;
20
- /** The source of the event message, usually the producing service. */
21
- source?: string;
22
- /** The ID of the tenant that owns the item. This is populated using the JWT. */
23
- tenantId?: string;
24
- /** The ID of the user who performed the action that triggered the event. */
6
+ /** The type that content is encoded in, always "application/json". */contentType?: string; /** Additional information about the event's details. The structure depends on the type and version of the event. */
7
+ data?: unknown; /** The event's unique identifier. */
8
+ eventId?: string; /** The RFC3339 datetime when the event happened. */
9
+ eventTime?: string; /** The type of event that describes committed action. */
10
+ eventType?: string; /** The version of the event type. */
11
+ eventTypeVersion?: string; /** The availability of the properties depends on the event and the context it was triggered in. */
12
+ extensions?: EventExtensions; /** The source of the event message, usually the producing service. */
13
+ source?: string; /** The ID of the tenant that owns the item. This is populated using the JWT. */
14
+ tenantId?: string; /** The ID of the user who performed the action that triggered the event. */
25
15
  userId?: string;
26
16
  };
27
17
  type ErrorResponse = {
@@ -36,70 +26,46 @@ type ErrorResponse = {
36
26
  * The availability of the properties depends on the event and the context it was triggered in.
37
27
  */
38
28
  type EventExtensions = {
39
- /** Specifies the entity performing the action on behalf of another party listed as triggering the action. */
40
- actor?: {
41
- /** Opaque value identifying impersonating entity. */
42
- sub?: string;
43
- /** The type of the impersonating entity. */
29
+ /** Specifies the entity performing the action on behalf of another party listed as triggering the action. */actor?: {
30
+ /** Opaque value identifying impersonating entity. */sub?: string; /** The type of the impersonating entity. */
44
31
  subType?: string;
45
- };
46
- /** Id of the owner of the resource affected by the eventContext. */
47
- ownerId?: string;
48
- /** Id of the space related to the action performed on the eventContext. */
49
- spaceId?: string;
50
- /** If the event originated from a sub resource the topLevelResourceId contains the id of the top level resource associated with the sub resource. */
51
- topLevelResourceId?: string;
52
- /** Might be present if the action is of type "updated" and should contain information about the changes made to the resource. */
32
+ }; /** Id of the owner of the resource affected by the eventContext. */
33
+ ownerId?: string; /** Id of the space related to the action performed on the eventContext. */
34
+ spaceId?: string; /** If the event originated from a sub resource the topLevelResourceId contains the id of the top level resource associated with the sub resource. */
35
+ topLevelResourceId?: string; /** Might be present if the action is of type "updated" and should contain information about the changes made to the resource. */
53
36
  updates?: unknown;
54
37
  };
55
38
  type GetArchiveResult = {
56
- /** List of archived events. The structure of the events depend on their type and version. */
57
- data?: ArchiveItem[];
39
+ /** List of archived events. The structure of the events depend on their type and version. */data?: ArchiveItem[];
58
40
  };
59
41
  type GetByIDResult = {
60
- /** The type that content is encoded in, always "application/json". */
61
- contentType?: string;
62
- /** Additional information about the event's details. The structure depends on the type and version of the event. */
63
- data?: unknown;
64
- /** The event's unique identifier. */
65
- eventId?: string;
66
- /** The RFC3339 datetime when the event happened. */
67
- eventTime?: string;
68
- /** The type of event that describes committed action. */
69
- eventType?: string;
70
- /** The version of the event type. */
71
- eventTypeVersion?: string;
72
- /** The availability of the properties depends on the event and the context it was triggered in. */
73
- extensions?: EventExtensions;
74
- /** The resource item's unique identifier. */
42
+ /** The type that content is encoded in, always "application/json". */contentType?: string; /** Additional information about the event's details. The structure depends on the type and version of the event. */
43
+ data?: unknown; /** The event's unique identifier. */
44
+ eventId?: string; /** The RFC3339 datetime when the event happened. */
45
+ eventTime?: string; /** The type of event that describes committed action. */
46
+ eventType?: string; /** The version of the event type. */
47
+ eventTypeVersion?: string; /** The availability of the properties depends on the event and the context it was triggered in. */
48
+ extensions?: EventExtensions; /** The resource item's unique identifier. */
75
49
  id?: string;
76
- links?: GetLinks;
77
- /** The source of the event message, usually the producing service. */
78
- source?: string;
79
- /** The ID of the tenant that owns the item. This is populated using the JWT. */
80
- tenantId?: string;
81
- /** The ID of the user who performed the action that triggered the event. */
50
+ links?: GetLinks; /** The source of the event message, usually the producing service. */
51
+ source?: string; /** The ID of the tenant that owns the item. This is populated using the JWT. */
52
+ tenantId?: string; /** The ID of the user who performed the action that triggered the event. */
82
53
  userId?: string;
83
54
  };
84
55
  type GetLinks = {
85
56
  self?: Href;
86
57
  };
87
58
  type GetObjectsResult = {
88
- /** List of requested resources. */
89
- data?: string[];
59
+ /** List of requested resources. */data?: string[];
90
60
  links?: ListLinks;
91
61
  };
92
62
  type GetResult = {
93
- /** List of audit items. */
94
- data?: GetByIDResult[];
63
+ /** List of audit items. */data?: GetByIDResult[];
95
64
  links?: ListLinks;
96
65
  };
97
66
  type GetSettingsResult = {
98
- /** Server configuration options. */
99
- data?: {
100
- /** Is Long Term Storage archiving enabled?. */
101
- ArchiveEnabled?: boolean;
102
- /** The events TTL in seconds. */
67
+ /** Server configuration options. */data?: {
68
+ /** Is Long Term Storage archiving enabled?. */ArchiveEnabled?: boolean; /** The events TTL in seconds. */
103
69
  EventTTL?: number;
104
70
  };
105
71
  };
@@ -118,23 +84,14 @@ type Href = {
118
84
  * @throws GetAuditsHttpError
119
85
  */
120
86
  declare function getAudits(query: {
121
- /** The start/end time interval formatted in ISO 8601 to search by eventTime. For example, "?eventTime=2021-07-14T18:41:15.00Z/2021-07-14T18:41:15.99Z". */
122
- eventTime?: string;
123
- /** The case-sensitive string used to search by eventType. Retrieve a list of possible eventTypes with `/v1/audits/types`. */
124
- eventType?: string;
125
- /** The comma separated list of audit unique identifiers. */
126
- id?: string;
127
- /** The maximum number of resources to return for a request. */
128
- limit?: number;
129
- /** The cursor to the next page of resources. Provide either the next or prev cursor, but not both. */
130
- next?: string;
131
- /** The cursor to the previous page of resources. Provide either the next or prev cursor, but not both. */
132
- prev?: string;
133
- /** The property of a resource to sort on (default sort is -eventTime). The supported properties are source, eventType, and eventTime. A property must be prefixed by + or - to indicate ascending or descending sort order respectively. */
134
- sort?: string;
135
- /** The case-sensitive string used to search by source. Retrieve a list of possible sources with `/v1/audits/sources`. */
136
- source?: string;
137
- /** The case-sensitive string used to search by userId. */
87
+ /** The start/end time interval formatted in ISO 8601 to search by eventTime. For example, "?eventTime=2021-07-14T18:41:15.00Z/2021-07-14T18:41:15.99Z". */eventTime?: string; /** The case-sensitive string used to search by eventType. Retrieve a list of possible eventTypes with `/v1/audits/types`. */
88
+ eventType?: string; /** The comma separated list of audit unique identifiers. */
89
+ id?: string; /** The maximum number of resources to return for a request. */
90
+ limit?: number; /** The cursor to the next page of resources. Provide either the next or prev cursor, but not both. */
91
+ next?: string; /** The cursor to the previous page of resources. Provide either the next or prev cursor, but not both. */
92
+ prev?: string; /** The property of a resource to sort on (default sort is -eventTime). The supported properties are source, eventType, and eventTime. A property must be prefixed by + or - to indicate ascending or descending sort order respectively. */
93
+ sort?: string; /** The case-sensitive string used to search by source. Retrieve a list of possible sources with `/v1/audits/sources`. */
94
+ source?: string; /** The case-sensitive string used to search by userId. */
138
95
  userId?: string;
139
96
  }, options?: ApiCallOptions): Promise<GetAuditsHttpResponse>;
140
97
  type GetAuditsHttpResponse = {
@@ -173,8 +130,7 @@ type FetchConsumptionAppAuditsHttpError = {
173
130
  * @throws GetArchivedAuditsHttpError
174
131
  */
175
132
  declare function getArchivedAudits(query: {
176
- /** Date to be used as filter and criteria during extraction. */
177
- date: string;
133
+ /** Date to be used as filter and criteria during extraction. */date: string;
178
134
  }, options?: ApiCallOptions): Promise<GetArchivedAuditsHttpResponse>;
179
135
  type GetArchivedAuditsHttpResponse = {
180
136
  data: GetArchiveResult;
package/audits.js CHANGED
@@ -1,5 +1,5 @@
1
- import "./chunks/public-runtime-modules-BqxAMJ9M.js";
2
- import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-CckTK7bh.js";
1
+ import "./chunks/public-runtime-modules-2KfyI2qM.js";
2
+ import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DMAi6Fg3.js";
3
3
 
4
4
  //#region src/public/rest/audits.ts
5
5
  /**
@@ -112,7 +112,6 @@ const auditsExport = {
112
112
  getAudit,
113
113
  clearCache
114
114
  };
115
- var audits_default = auditsExport;
116
115
 
117
116
  //#endregion
118
- export { clearCache, audits_default as default, fetchConsumptionAppAudits, getArchivedAudits, getAudit, getAuditSources, getAuditTypes, getAudits, getAuditsSettings };
117
+ export { clearCache, auditsExport as default, fetchConsumptionAppAudits, getArchivedAudits, getAudit, getAuditSources, getAuditTypes, getAudits, getAuditsSettings };
package/auth-types.d.ts CHANGED
@@ -1,2 +1,111 @@
1
- import { _ as hostConfigCommonProperties, a as Credentials, c as GetWebResourceAuthParamsProps, d as HostConfig, f as HostConfigCommon, g as authTypesThatCanBeOmitted, h as WebSocketAuthParams, i as AuthenticationErrorAction, l as GetWebSocketAuthParamsProps, m as WebResourceAuthParams, n as AuthType, o as GetRemoteAuthDataProps, p as RestCallAuthParams, r as AuthTypeThatCanBeOmitted, s as GetRestCallAuthParamsProps, t as AuthModule, u as HandleAuthenticationErrorProps } from "./chunks/auth-types-YrlH_R9f.js";
1
+ import "./global-types.js";
2
+
3
+ //#region src/auth/auth-types.d.ts
4
+ /** Credentials setting for http requests */
5
+ type Credentials = "include" | "same-origin" | "omit";
6
+ /** Props for function getRestCallAuthParams */
7
+ type GetRestCallAuthParamsProps<A extends AuthType = AuthType> = {
8
+ hostConfig: HostConfig<A>; /** The HTTP method in the outgoing REST call */
9
+ method: string;
10
+ };
11
+ /** Http request parameters for auth to use when making a rest call based on a host config */
12
+ type RestCallAuthParams = {
13
+ headers: Record<string, string>;
14
+ queryParams: Record<string, string>;
15
+ credentials: Credentials;
16
+ };
17
+ /** Props for function getWebsocketAuthParams */
18
+ type GetWebSocketAuthParamsProps<A extends AuthType = AuthType> = {
19
+ hostConfig: HostConfig<A>;
20
+ };
21
+ /** Websocket auth parameters to use when setting up a websocket based on a host config */
22
+ type WebSocketAuthParams = {
23
+ /** Note that headers are only applied in NodeJS environments and NOT in the browser */headers?: Record<string, string>;
24
+ queryParams?: Record<string, string>;
25
+ };
26
+ /** Props for function getWebResourceAuthParams */
27
+ type GetWebResourceAuthParamsProps<A extends AuthType = AuthType> = {
28
+ hostConfig: HostConfig<A>;
29
+ };
30
+ /** Web resource auth parameters to use when fetching a web resource with a host config */
31
+ type WebResourceAuthParams = {
32
+ queryParams: Record<string, string>;
33
+ };
34
+ type GetRemoteAuthDataProps<A extends AuthType = AuthType> = {
35
+ hostConfig: HostConfig<A>;
36
+ queryParams?: Record<string, string>;
37
+ };
38
+ /** Props for function handleAuthenticationError */
39
+ type HandleAuthenticationErrorProps<A extends AuthType = AuthType> = {
40
+ /** host config for connecting to a host */hostConfig: HostConfig<A>; /** HTTP status of the response */
41
+ status: number; /** Body of the error response */
42
+ errorBody?: Record<string, unknown>; /** HTTP response headers */
43
+ headers: Headers; /** Set to true if it is possible to perform a retry. This will be true for the first call, and false if the call is actually a retry */
44
+ canRetry: boolean;
45
+ };
46
+ /** Action to take when error occurs during authentication */
47
+ type AuthenticationErrorAction = {
48
+ /**
49
+ * If set to true the request will be retried and its AuthParams will be fetched again
50
+ */
51
+ retry?: boolean;
52
+ /**
53
+ * Set to true to prevent the api call result promise from ever resolving.
54
+ * Typically used when redirecting the window to a login page to prevent
55
+ * transient errors from happening in the page while the browser is loading the login page.
56
+ */
57
+ preventDefault?: boolean;
58
+ };
59
+ /** A typed string array with extracted required properties from a type */
60
+ type RequiredKeys<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? never : K }[keyof T];
61
+ /** A typed string array with extracted optional properties from a type */
62
+ type OptionalKeys<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? K : never }[keyof T];
63
+ /** An authentication module for a specific authentication format, like oauth, cookies etc */
64
+ type AuthModule<A extends AuthType = AuthType> = {
65
+ /** Properties required for this auth module */requiredProps?: RequiredKeys<HostConfig<A>>[]; /** Properties that are optional for this auth module */
66
+ optionalProps?: OptionalKeys<HostConfig<A>>[]; /** Get auth params for rest api calls */
67
+ getRestCallAuthParams: (props: GetRestCallAuthParamsProps<A>) => Promise<RestCallAuthParams>; /** Get auth params for websocket api calls */
68
+ getWebSocketAuthParams: (props: GetWebSocketAuthParamsProps<A>) => Promise<WebSocketAuthParams>; /** Get auth params for web resource request */
69
+ getWebResourceAuthParams?: (props: GetWebResourceAuthParamsProps<A>) => Promise<WebResourceAuthParams>; /** Callback for when auth error happens */
70
+ handleAuthenticationError: (props: HandleAuthenticationErrorProps<A>) => Promise<AuthenticationErrorAction>; /** Runtime check for validating host config */
71
+ validateHostConfig?: (hostConfig: Record<string, unknown>) => boolean;
72
+ };
73
+ /** Valid strings for known authentication types */
74
+ type AuthType = keyof QlikAuthModules;
75
+ /** Configuration object for connecting and authenticating with Qlik platform(s) */
76
+ type HostConfig<A extends AuthType = AuthType> = { [K in keyof QlikAuthModules]: QlikAuthModuleConfigUnion<K> & HostConfigCommon }[A];
77
+ type QlikAuthModuleConfigUnion<K extends keyof QlikAuthModules> = (K extends keyof ImplicitQlikAuthModules ? {
78
+ authType?: K;
79
+ } : {
80
+ authType: K;
81
+ }) & QlikAuthModules[K]["config"];
82
+ type HostConfigCommon = {
83
+ /** The URL to the cloud tenant or windows server. If scheme is excluded https is used. May include a virtual proxy prefix on windows. Any trailing slashes are stripped. */host?: string;
84
+ autoRedirect?: boolean;
85
+ authRedirectUserConfirmation?: () => Promise<void>;
86
+ /**
87
+ * Optional parameter that can be used to point to a Qlik Cloud tenant domain from which the embed runtime should be loaded. If omitted the host parameter will be used.
88
+ */
89
+ embedRuntimeUrl?: string;
90
+ onAuthFailed?: (props: {
91
+ message: string;
92
+ }) => unknown;
93
+ };
94
+ /**
95
+ * These properties are always allowed in the host config, even if they are not defined in the HostConfig interface
96
+ * for the specific auth module.
97
+ */
98
+ declare const hostConfigCommonProperties: (keyof HostConfig)[];
99
+ /** The keys in this interface are used to determine what auth types that are allowed to be set to undefined */
100
+ interface ImplicitQlikAuthModules {
101
+ apikey: object;
102
+ oauth2: object;
103
+ cookie: object;
104
+ windowscookie: object;
105
+ reference: object;
106
+ anonymous: object;
107
+ }
108
+ type AuthTypeThatCanBeOmitted = keyof ImplicitQlikAuthModules;
109
+ declare const authTypesThatCanBeOmitted: AuthTypeThatCanBeOmitted[];
110
+ //#endregion
2
111
  export { AuthModule, AuthType, AuthTypeThatCanBeOmitted, AuthenticationErrorAction, Credentials, GetRemoteAuthDataProps, GetRestCallAuthParamsProps, GetWebResourceAuthParamsProps, GetWebSocketAuthParamsProps, HandleAuthenticationErrorProps, HostConfig, HostConfigCommon, RestCallAuthParams, WebResourceAuthParams, WebSocketAuthParams, authTypesThatCanBeOmitted, hostConfigCommonProperties };
package/auth-types.js CHANGED
@@ -1,3 +1,24 @@
1
- import { n as hostConfigCommonProperties, t as authTypesThatCanBeOmitted } from "./chunks/auth-types-h43TVDpB.js";
1
+ //#region src/auth/auth-types.ts
2
+ /**
3
+ * These properties are always allowed in the host config, even if they are not defined in the HostConfig interface
4
+ * for the specific auth module.
5
+ */
6
+ const hostConfigCommonProperties = [
7
+ "authType",
8
+ "autoRedirect",
9
+ "authRedirectUserConfirmation",
10
+ "embedRuntimeUrl",
11
+ "host",
12
+ "onAuthFailed"
13
+ ];
14
+ const authTypesThatCanBeOmitted = [
15
+ "apikey",
16
+ "oauth2",
17
+ "cookie",
18
+ "windowscookie",
19
+ "reference",
20
+ "anonymous"
21
+ ];
2
22
 
23
+ //#endregion
3
24
  export { authTypesThatCanBeOmitted, hostConfigCommonProperties };
package/auth.d.ts CHANGED
@@ -1,7 +1,6 @@
1
- import { _ as hostConfigCommonProperties, a as Credentials, c as GetWebResourceAuthParamsProps, d as HostConfig, f as HostConfigCommon, g as authTypesThatCanBeOmitted, h as WebSocketAuthParams, i as AuthenticationErrorAction, l as GetWebSocketAuthParamsProps, m as WebResourceAuthParams, n as AuthType, o as GetRemoteAuthDataProps, p as RestCallAuthParams, r as AuthTypeThatCanBeOmitted, s as GetRestCallAuthParamsProps, t as AuthModule, u as HandleAuthenticationErrorProps } from "./chunks/auth-types-YrlH_R9f.js";
1
+ import { AuthModule, AuthType, AuthTypeThatCanBeOmitted, AuthenticationErrorAction, Credentials, GetRemoteAuthDataProps, GetRestCallAuthParamsProps, GetWebResourceAuthParamsProps, GetWebSocketAuthParamsProps, HandleAuthenticationErrorProps, HostConfig, HostConfigCommon, RestCallAuthParams, WebResourceAuthParams, WebSocketAuthParams, authTypesThatCanBeOmitted, hostConfigCommonProperties } from "./auth-types.js";
2
2
 
3
3
  //#region src/public/auth.d.ts
4
-
5
4
  /**
6
5
  * Registers an auth module that can handle authentication. An auth module is used by specifying its name as authType in the HostConfig passed in to api calls.
7
6
  * @param name the name of the module
package/auth.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as getAuthRuntimeModule } from "./chunks/public-runtime-modules-BqxAMJ9M.js";
1
+ import { t as getAuthRuntimeModule } from "./chunks/public-runtime-modules-2KfyI2qM.js";
2
2
 
3
3
  //#region src/public/auth.ts
4
4
  /**
@@ -1,95 +1,62 @@
1
- import { y as ApiCallOptions } from "./chunks/auth-types-YrlH_R9f.js";
2
- import "./chunks/invoke-fetch-C1Z0RJYU.js";
1
+ import { ApiCallOptions } from "./invoke-fetch-types.js";
2
+ import "./chunks/invoke-fetch-DFc3yzaj.js";
3
3
 
4
4
  //#region src/public/rest/automation-connections.d.ts
5
5
  type AutomationConnectionChangeOwnerObject = {
6
- /** The unique identifier of the new owner. */
7
- userId?: string;
6
+ /** The unique identifier of the new owner. */userId?: string;
8
7
  };
9
8
  type AutomationConnectionChangeSpaceObject = {
10
- /** The unique identifier of the new space. */
11
- spaceId?: string;
9
+ /** The unique identifier of the new space. */spaceId?: string;
12
10
  };
13
11
  type AutomationConnectionCheckObject = {
14
- /** The connection status of the automation connection. When true, the automation connection is connected. */
15
- isConnected?: boolean;
12
+ /** The connection status of the automation connection. When true, the automation connection is connected. */isConnected?: boolean;
16
13
  };
17
14
  type AutomationConnectionCreationObject = {
18
- /** The unique identifier of the connector from which the automation connection is created. */
19
- connectorId: string;
20
- /** The name of the created automation connection. */
15
+ /** The unique identifier of the connector from which the automation connection is created. */connectorId: string; /** The name of the created automation connection. */
21
16
  name?: string;
22
- params?: AutomationConnectionParamCreateObject[];
23
- /** The unique identifier of the space in which the automation connection is created. */
17
+ params?: AutomationConnectionParamCreateObject[]; /** The unique identifier of the space in which the automation connection is created. */
24
18
  spaceId?: string;
25
19
  };
26
20
  type AutomationConnectionDetailObject = {
27
- /** The unique identifier of the automation connector. */
28
- connectorId?: string;
29
- /** The timestamp when the automation connection was created. */
30
- createdAt?: string;
31
- /** This contains the error message if a connection is being created with an issue. */
32
- error?: unknown;
33
- /** The unique identifier of the automation connection. */
34
- id?: string;
35
- /** The connection status of the automation connection. When true, the automation connection is connected. */
36
- isConnected?: boolean;
37
- /** The name of the automation connection. */
38
- name?: string;
39
- /** The name of the OAuth account associated with the automation connection. */
40
- oauthAccountName?: string;
41
- /** The unique identifier of the owner of the automation connection. */
21
+ /** The unique identifier of the automation connector. */connectorId?: string; /** The timestamp when the automation connection was created. */
22
+ createdAt?: string; /** This contains the error message if a connection is being created with an issue. */
23
+ error?: unknown; /** The unique identifier of the automation connection. */
24
+ id?: string; /** The connection status of the automation connection. When true, the automation connection is connected. */
25
+ isConnected?: boolean; /** The name of the automation connection. */
26
+ name?: string; /** The name of the OAuth account associated with the automation connection. */
27
+ oauthAccountName?: string; /** The unique identifier of the owner of the automation connection. */
42
28
  ownerId?: string;
43
- params?: AutomationConnectionParamObject[];
44
- /** The redirect of the OAuth account. */
45
- redirect?: string;
46
- /** The space ID of the automation connection. */
47
- spaceId?: string;
48
- /** The timestamp when the automation connection was updated. */
29
+ params?: AutomationConnectionParamObject[]; /** The redirect of the OAuth account. */
30
+ redirect?: string; /** The space ID of the automation connection. */
31
+ spaceId?: string; /** The timestamp when the automation connection was updated. */
49
32
  updatedAt?: string;
50
33
  };
51
34
  type AutomationConnectionParamCreateObject = {
52
- /** The name of the automation connection parameter. */
53
- name?: string;
54
- /** The value of the automation connection parameter option. */
35
+ /** The name of the automation connection parameter. */name?: string; /** The value of the automation connection parameter option. */
55
36
  value?: string;
56
37
  };
57
38
  type AutomationConnectionParamObject = {
58
- /** The documentation of the automation connection parameter. */
59
- documentation?: string;
60
- /** The example value of the automation connection parameter. */
61
- exampleValue?: string;
62
- /** The field type of the automation connection parameter. */
63
- fieldType?: string;
64
- /** The unique identifier of the automation connection parameter. */
65
- id?: string;
66
- /** When true, the parameter is optional. */
67
- isOptional?: boolean;
68
- /** The metadata of the automation connection parameter. */
69
- meta?: unknown[];
70
- /** The name of the automation connection parameter. */
71
- name?: string;
72
- /** The order that the automation connection configuration fields should be displayed in. */
39
+ /** The documentation of the automation connection parameter. */documentation?: string; /** The example value of the automation connection parameter. */
40
+ exampleValue?: string; /** The field type of the automation connection parameter. */
41
+ fieldType?: string; /** The unique identifier of the automation connection parameter. */
42
+ id?: string; /** When true, the parameter is optional. */
43
+ isOptional?: boolean; /** The metadata of the automation connection parameter. */
44
+ meta?: unknown[]; /** The name of the automation connection parameter. */
45
+ name?: string; /** The order that the automation connection configuration fields should be displayed in. */
73
46
  order?: number;
74
- paramOptions?: AutomationConnectionParamOptionObject[];
75
- /** The value of the automation connection parameter. */
47
+ paramOptions?: AutomationConnectionParamOptionObject[]; /** The value of the automation connection parameter. */
76
48
  value?: string;
77
49
  };
78
50
  type AutomationConnectionParamOptionObject = {
79
- /** The unique identifier of the automation connection parameter option. */
80
- id?: string;
81
- /** The value of the automation connection parameter option. */
51
+ /** The unique identifier of the automation connection parameter option. */id?: string; /** The value of the automation connection parameter option. */
82
52
  value?: string;
83
53
  };
84
54
  type AutomationConnectionParamPutObject = {
85
- /** The unique identifier of the automation connection parameter option. */
86
- id?: string;
87
- /** The value of the automation connection parameter option. */
55
+ /** The unique identifier of the automation connection parameter option. */id?: string; /** The value of the automation connection parameter option. */
88
56
  value?: string;
89
57
  };
90
58
  type AutomationConnectionPutRequestObject = {
91
- /** The new name of the automation connection to be renamed to. */
92
- name?: string;
59
+ /** The new name of the automation connection to be renamed to. */name?: string;
93
60
  params?: AutomationConnectionParamPutObject[];
94
61
  };
95
62
  type AutomationConnectionsList = {
@@ -97,34 +64,22 @@ type AutomationConnectionsList = {
97
64
  links?: Links;
98
65
  };
99
66
  type AutomationConnectionsListObject = {
100
- /** The unique identifier of the connector the automation connection is created from. */
101
- connectorId?: string;
102
- /** The timestamp when the automation connection is created. */
103
- createdAt?: string;
104
- /** The unique identifier of an automation connection. */
105
- id?: string;
106
- /** Returns true if the automtion connection is connected. */
107
- isConnected?: boolean;
108
- /** The name of an automation connection. */
109
- name?: string;
110
- /** The unique identifier of the owner of the automation connection. */
111
- ownerId?: string;
112
- /** The space ID of the automation connection. */
113
- spaceId?: string;
114
- /** The timestamp when the automation connection is updated. */
67
+ /** The unique identifier of the connector the automation connection is created from. */connectorId?: string; /** The timestamp when the automation connection is created. */
68
+ createdAt?: string; /** The unique identifier of an automation connection. */
69
+ id?: string; /** Returns true if the automtion connection is connected. */
70
+ isConnected?: boolean; /** The name of an automation connection. */
71
+ name?: string; /** The unique identifier of the owner of the automation connection. */
72
+ ownerId?: string; /** The space ID of the automation connection. */
73
+ spaceId?: string; /** The timestamp when the automation connection is updated. */
115
74
  updatedAt?: string;
116
75
  };
117
76
  type Error = {
118
- /** The unique code for the error */
119
- code: string;
120
- /** May be used to provide additional details */
121
- detail?: string;
122
- /** A summary of what went wrong */
77
+ /** The unique code for the error */code: string; /** May be used to provide additional details */
78
+ detail?: string; /** A summary of what went wrong */
123
79
  title: string;
124
80
  };
125
81
  type ErrorResponse = {
126
- errors?: Error[];
127
- /** A way to trace the source of the error. */
82
+ errors?: Error[]; /** A way to trace the source of the error. */
128
83
  traceId?: string;
129
84
  };
130
85
  type Links = {
@@ -132,8 +87,7 @@ type Links = {
132
87
  prev?: PaginationLink;
133
88
  };
134
89
  type PaginationLink = {
135
- /** The URL to a resource request */
136
- href?: string;
90
+ /** The URL to a resource request */href?: string;
137
91
  };
138
92
  /**
139
93
  * Retrieves a list of automation connections
@@ -142,13 +96,9 @@ type PaginationLink = {
142
96
  * @throws GetAutomationConnectionsHttpError
143
97
  */
144
98
  declare function getAutomationConnections(query: {
145
- /** Filters the result based on the specified criteria: name, connectorId, ownerId, or spaceId. */
146
- filter?: string;
147
- /** The number of automation connections to retrieve. */
148
- limit?: number;
149
- /** When true, list all connections. Restricted to tenant admins and analytics admins. */
150
- listAll?: boolean;
151
- /** The field to sort by, with +- prefix indicating sort order. (?sort=-name => sort on the name field using descending order) */
99
+ /** Filters the result based on the specified criteria: name, connectorId, ownerId, or spaceId. */filter?: string; /** The number of automation connections to retrieve. */
100
+ limit?: number; /** When true, list all connections. Restricted to tenant admins and analytics admins. */
101
+ listAll?: boolean; /** The field to sort by, with +- prefix indicating sort order. (?sort=-name => sort on the name field using descending order) */
152
102
  sort?: "id" | "name" | "createdAt" | "updatedAt" | "+id" | "+name" | "+createdAt" | "+updatedAt" | "-id" | "-name" | "-createdAt" | "-updatedAt";
153
103
  }, options?: ApiCallOptions): Promise<GetAutomationConnectionsHttpResponse>;
154
104
  type GetAutomationConnectionsHttpResponse = {
@@ -188,8 +138,7 @@ type CreateAutomationConnectionHttpError = {
188
138
  * @throws DeleteAutomationConnectionHttpError
189
139
  */
190
140
  declare function deleteAutomationConnection(id: string, query: {
191
- /** When true, the automation connection will be deleted regardless of its usage by any automations. */
192
- forced?: boolean;
141
+ /** When true, the automation connection will be deleted regardless of its usage by any automations. */forced?: boolean;
193
142
  }, options?: ApiCallOptions): Promise<DeleteAutomationConnectionHttpResponse>;
194
143
  type DeleteAutomationConnectionHttpResponse = {
195
144
  data: void;
@@ -1,5 +1,5 @@
1
- import "./chunks/public-runtime-modules-BqxAMJ9M.js";
2
- import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-CckTK7bh.js";
1
+ import "./chunks/public-runtime-modules-2KfyI2qM.js";
2
+ import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DMAi6Fg3.js";
3
3
 
4
4
  //#region src/public/rest/automation-connections.ts
5
5
  /**
@@ -146,7 +146,6 @@ const automationConnectionsExport = {
146
146
  checkAutomationConnection,
147
147
  clearCache
148
148
  };
149
- var automation_connections_default = automationConnectionsExport;
150
149
 
151
150
  //#endregion
152
- export { changeOwnerAutomationConnection, changeSpaceAutomationConnection, checkAutomationConnection, clearCache, createAutomationConnection, automation_connections_default as default, deleteAutomationConnection, getAutomationConnection, getAutomationConnections, updateAutomationConnection };
151
+ export { changeOwnerAutomationConnection, changeSpaceAutomationConnection, checkAutomationConnection, clearCache, createAutomationConnection, automationConnectionsExport as default, deleteAutomationConnection, getAutomationConnection, getAutomationConnections, updateAutomationConnection };