@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.
- package/LICENSE +17 -0
- package/README.md +8 -0
- package/api-keys.d.mts +313 -0
- package/api-keys.d.ts +313 -0
- package/api-keys.js +76 -0
- package/api-keys.mjs +76 -0
- package/apps.d.mts +1921 -0
- package/apps.d.ts +1921 -0
- package/apps.js +331 -0
- package/apps.mjs +331 -0
- package/audits.d.mts +262 -0
- package/audits.d.ts +262 -0
- package/audits.js +63 -0
- package/audits.mjs +63 -0
- package/auth-CSVTXOZX.js +36 -0
- package/auth-TE272Q34.mjs +36 -0
- package/auth-types-nnUcWhuU.d.mts +98 -0
- package/auth-types-nnUcWhuU.d.ts +98 -0
- package/auth.d.mts +26 -0
- package/auth.d.ts +26 -0
- package/auth.js +13 -0
- package/auth.mjs +13 -0
- package/automations.d.mts +638 -0
- package/automations.d.ts +638 -0
- package/automations.js +166 -0
- package/automations.mjs +166 -0
- package/brands.d.mts +614 -0
- package/brands.d.ts +614 -0
- package/brands.js +118 -0
- package/brands.mjs +118 -0
- package/chunk-3YE7EI7I.mjs +17 -0
- package/chunk-4ES65KO3.js +57 -0
- package/chunk-4FLMND6T.js +25 -0
- package/chunk-4OMEH5SW.mjs +1337 -0
- package/chunk-CKPJE4IA.mjs +57 -0
- package/chunk-GUQBHY3H.mjs +25 -0
- package/chunk-OULT3V2U.js +17 -0
- package/chunk-WM7FQU2U.mjs +21 -0
- package/chunk-XASXL2NC.js +1337 -0
- package/chunk-ZT4C7KCQ.js +21 -0
- package/collections.d.mts +535 -0
- package/collections.d.ts +535 -0
- package/collections.js +100 -0
- package/collections.mjs +100 -0
- package/csp-origins.d.mts +258 -0
- package/csp-origins.d.ts +258 -0
- package/csp-origins.js +66 -0
- package/csp-origins.mjs +66 -0
- package/data-assets.d.mts +195 -0
- package/data-assets.d.ts +195 -0
- package/data-assets.js +61 -0
- package/data-assets.mjs +61 -0
- package/data-connections.d.mts +527 -0
- package/data-connections.d.ts +527 -0
- package/data-connections.js +96 -0
- package/data-connections.mjs +96 -0
- package/data-credentials.d.mts +188 -0
- package/data-credentials.d.ts +188 -0
- package/data-credentials.js +56 -0
- package/data-credentials.mjs +56 -0
- package/data-files.d.mts +471 -0
- package/data-files.d.ts +471 -0
- package/data-files.js +116 -0
- package/data-files.mjs +116 -0
- package/docs/examples.md +4 -0
- package/enigma-session-4L373ALV.mjs +10196 -0
- package/enigma-session-TEB53FAF.js +10196 -0
- package/esm-4X3DKK5D.js +63 -0
- package/esm-SOWVJKOQ.mjs +63 -0
- package/extensions.d.mts +257 -0
- package/extensions.d.ts +257 -0
- package/extensions.js +74 -0
- package/extensions.mjs +74 -0
- package/global.types-Eto4uYwy.d.mts +102 -0
- package/global.types-hIvp-WdX.d.ts +102 -0
- package/glossaries.d.mts +1041 -0
- package/glossaries.d.ts +1041 -0
- package/glossaries.js +225 -0
- package/glossaries.mjs +225 -0
- package/groups.d.mts +379 -0
- package/groups.d.ts +379 -0
- package/groups.js +83 -0
- package/groups.mjs +83 -0
- package/identity-providers.d.mts +492 -0
- package/identity-providers.d.ts +492 -0
- package/identity-providers.js +80 -0
- package/identity-providers.mjs +80 -0
- package/index.d.mts +142 -0
- package/index.d.ts +142 -0
- package/index.js +678 -0
- package/index.mjs +678 -0
- package/invoke-fetch-MSSJAZ7K.mjs +14 -0
- package/invoke-fetch-PEI54KZO.js +14 -0
- package/items.d.mts +501 -0
- package/items.d.ts +501 -0
- package/items.js +84 -0
- package/items.mjs +84 -0
- package/licenses.d.mts +436 -0
- package/licenses.d.ts +436 -0
- package/licenses.js +87 -0
- package/licenses.mjs +87 -0
- package/package.json +264 -0
- package/qix-EU7PXRZ6.mjs +573 -0
- package/qix-RLTISYTB.js +573 -0
- package/qix.d.mts +11543 -0
- package/qix.d.ts +11543 -0
- package/qix.js +9 -0
- package/qix.mjs +9 -0
- package/quotas.d.mts +105 -0
- package/quotas.d.ts +105 -0
- package/quotas.js +31 -0
- package/quotas.mjs +31 -0
- package/reload-tasks.d.mts +222 -0
- package/reload-tasks.d.ts +222 -0
- package/reload-tasks.js +59 -0
- package/reload-tasks.mjs +59 -0
- package/reloads.d.mts +189 -0
- package/reloads.d.ts +189 -0
- package/reloads.js +44 -0
- package/reloads.mjs +44 -0
- package/roles.d.mts +150 -0
- package/roles.d.ts +150 -0
- package/roles.js +30 -0
- package/roles.mjs +30 -0
- package/spaces.d.mts +524 -0
- package/spaces.d.ts +524 -0
- package/spaces.js +118 -0
- package/spaces.mjs +118 -0
- package/temp-contents.d.mts +222 -0
- package/temp-contents.d.ts +222 -0
- package/temp-contents.js +60 -0
- package/temp-contents.mjs +60 -0
- package/tenants.d.mts +276 -0
- package/tenants.d.ts +276 -0
- package/tenants.js +68 -0
- package/tenants.mjs +68 -0
- package/themes.d.mts +235 -0
- package/themes.d.ts +235 -0
- package/themes.js +74 -0
- package/themes.mjs +74 -0
- package/transports.d.mts +298 -0
- package/transports.d.ts +298 -0
- package/transports.js +62 -0
- package/transports.mjs +62 -0
- package/users.d.mts +544 -0
- package/users.d.ts +544 -0
- package/users.js +99 -0
- package/users.mjs +99 -0
- package/web-integrations.d.mts +246 -0
- package/web-integrations.d.ts +246 -0
- package/web-integrations.js +59 -0
- package/web-integrations.mjs +59 -0
- package/web-notifications.d.mts +220 -0
- package/web-notifications.d.ts +220 -0
- package/web-notifications.js +66 -0
- package/web-notifications.mjs +66 -0
- package/webhooks.d.mts +422 -0
- package/webhooks.d.ts +422 -0
- package/webhooks.js +100 -0
- package/webhooks.mjs +100 -0
package/audits.d.mts
ADDED
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { A as ApiCallOptions } from './global.types-Eto4uYwy.mjs';
|
|
2
|
+
import './auth-types-nnUcWhuU.mjs';
|
|
3
|
+
|
|
4
|
+
type ErrorResponse = {
|
|
5
|
+
error?: string;
|
|
6
|
+
errors?: {
|
|
7
|
+
code?: string;
|
|
8
|
+
detail?: string;
|
|
9
|
+
title?: string;
|
|
10
|
+
}[];
|
|
11
|
+
traceId?: string;
|
|
12
|
+
};
|
|
13
|
+
type EventExtensions = {
|
|
14
|
+
/** Specifies the entity performing the action on behalf of another party listed as triggering the action. */
|
|
15
|
+
actor?: {
|
|
16
|
+
/** Opaque value identifying impersonating entity. */
|
|
17
|
+
sub?: string;
|
|
18
|
+
/** The type of the impersonating entity. */
|
|
19
|
+
subType?: string;
|
|
20
|
+
};
|
|
21
|
+
/** Id of the owner of the resource affected by the eventContext. */
|
|
22
|
+
ownerId?: string;
|
|
23
|
+
/** Id of the space related to the action performed on the eventContext. */
|
|
24
|
+
spaceId?: string;
|
|
25
|
+
/** If the event originated from a sub resource the topLevelResourceId contains the id of the top level resource associated with the sub resource. */
|
|
26
|
+
topLevelResourceId?: string;
|
|
27
|
+
/** Might be present if the action is of type "updated" and should contain information about the changes made to the resource. */
|
|
28
|
+
updates?: unknown;
|
|
29
|
+
};
|
|
30
|
+
type GetArchiveResult = {
|
|
31
|
+
/** List of archived events. The structure of the events depend on their type and version. */
|
|
32
|
+
data?: unknown[];
|
|
33
|
+
};
|
|
34
|
+
type GetByIDResult = {
|
|
35
|
+
/** The type that content is encoded in, always "application/json". */
|
|
36
|
+
contentType?: string;
|
|
37
|
+
/** Additional information about the event's details. The structure depends on the type and version of the event. */
|
|
38
|
+
data?: unknown;
|
|
39
|
+
/** The event's unique identifier. */
|
|
40
|
+
eventId?: string;
|
|
41
|
+
/** The RFC3339 datetime when the event happened. */
|
|
42
|
+
eventTime?: string;
|
|
43
|
+
/** The type of event that describes committed action. */
|
|
44
|
+
eventType?: string;
|
|
45
|
+
/** The version of the event type. */
|
|
46
|
+
eventTypeVersion?: string;
|
|
47
|
+
/** The availability of the properties depends on the event and the context it was triggered in. */
|
|
48
|
+
extensions?: EventExtensions;
|
|
49
|
+
/** The resource item's unique identifier. */
|
|
50
|
+
id?: string;
|
|
51
|
+
links?: GetLinks;
|
|
52
|
+
/** The source of the event message, usually the producing service. */
|
|
53
|
+
source?: string;
|
|
54
|
+
/** The ID of the tenant that owns the item. This is populated using the JWT. */
|
|
55
|
+
tenantId?: string;
|
|
56
|
+
/** The ID of the user who performed the action that triggered the event. */
|
|
57
|
+
userId?: string;
|
|
58
|
+
};
|
|
59
|
+
type GetLinks = {
|
|
60
|
+
Self?: Href;
|
|
61
|
+
self?: Href;
|
|
62
|
+
};
|
|
63
|
+
type GetObjectsResult = {
|
|
64
|
+
/** List of requested resources. */
|
|
65
|
+
data?: string[];
|
|
66
|
+
links?: ListLinks;
|
|
67
|
+
};
|
|
68
|
+
type GetResult = {
|
|
69
|
+
/** List of audit items. */
|
|
70
|
+
data?: GetByIDResult[];
|
|
71
|
+
links?: ListLinks;
|
|
72
|
+
};
|
|
73
|
+
type GetSettingsResult = {
|
|
74
|
+
/** Server configuration options. */
|
|
75
|
+
data?: {
|
|
76
|
+
/** Is Long Term Storage archiving enabled?. */
|
|
77
|
+
ArchiveEnabled?: boolean;
|
|
78
|
+
/** The events TTL in seconds. */
|
|
79
|
+
EventTTL?: number;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
type Href = {
|
|
83
|
+
Href?: string;
|
|
84
|
+
};
|
|
85
|
+
type ListLinks = {
|
|
86
|
+
Next?: Href;
|
|
87
|
+
Prev?: Href;
|
|
88
|
+
Self?: Href;
|
|
89
|
+
next?: Href;
|
|
90
|
+
prev?: Href;
|
|
91
|
+
self?: Href;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Finds and returns the persisted audit events for the given tenant.
|
|
95
|
+
* @param query an object with query parameters
|
|
96
|
+
* @throws GetAuditsHttpError
|
|
97
|
+
*/
|
|
98
|
+
declare const getAudits: (query: {
|
|
99
|
+
/** 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". */
|
|
100
|
+
eventTime?: string;
|
|
101
|
+
/** The case-sensitive string used to search by eventType. */
|
|
102
|
+
eventType?: string;
|
|
103
|
+
/** The comma separated list of audit unique identifiers. */
|
|
104
|
+
id?: string;
|
|
105
|
+
/** The maximum number of resources to return for a request. The limit must be an integer between 1 and 100 (inclusive). */
|
|
106
|
+
limit?: number;
|
|
107
|
+
/** The cursor to the next page of resources. Provide either the next or prev cursor, but not both. */
|
|
108
|
+
next?: string;
|
|
109
|
+
/** The cursor to the previous page of resources. Provide either the next or prev cursor, but not both. */
|
|
110
|
+
prev?: string;
|
|
111
|
+
/** 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. */
|
|
112
|
+
sort?: string;
|
|
113
|
+
/** The case-sensitive string used to search by source. */
|
|
114
|
+
source?: string;
|
|
115
|
+
/** The case-sensitive string used to search by userId. */
|
|
116
|
+
userId?: string;
|
|
117
|
+
}, options?: ApiCallOptions) => Promise<GetAuditsHttpResponse>;
|
|
118
|
+
type GetAuditsHttpResponse = {
|
|
119
|
+
data: GetResult;
|
|
120
|
+
headers: Headers;
|
|
121
|
+
status: number;
|
|
122
|
+
prev?: (options?: ApiCallOptions) => Promise<GetAuditsHttpResponse>;
|
|
123
|
+
next?: (options?: ApiCallOptions) => Promise<GetAuditsHttpResponse>;
|
|
124
|
+
};
|
|
125
|
+
type GetAuditsHttpError = {
|
|
126
|
+
data: ErrorResponse;
|
|
127
|
+
headers: Headers;
|
|
128
|
+
status: number;
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Finds and returns audit events from the archive, formatted as a JSON array, for the given date and tenant (in JWT).
|
|
132
|
+
* @param query an object with query parameters
|
|
133
|
+
* @throws GetArchivedAuditsHttpError
|
|
134
|
+
*/
|
|
135
|
+
declare const getArchivedAudits: (query: {
|
|
136
|
+
/** Date to be used as filter and criteria during extraction. */
|
|
137
|
+
date?: string;
|
|
138
|
+
}, options?: ApiCallOptions) => Promise<GetArchivedAuditsHttpResponse>;
|
|
139
|
+
type GetArchivedAuditsHttpResponse = {
|
|
140
|
+
data: GetArchiveResult;
|
|
141
|
+
headers: Headers;
|
|
142
|
+
status: number;
|
|
143
|
+
};
|
|
144
|
+
type GetArchivedAuditsHttpError = {
|
|
145
|
+
data: ErrorResponse;
|
|
146
|
+
headers: Headers;
|
|
147
|
+
status: number;
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
* It includes options that represent the server configuration state and parameters that were used to run the server with certain functionality.
|
|
151
|
+
* @throws GetAuditSettingsHttpError
|
|
152
|
+
*/
|
|
153
|
+
declare const getAuditSettings: (options?: ApiCallOptions) => Promise<GetAuditSettingsHttpResponse>;
|
|
154
|
+
type GetAuditSettingsHttpResponse = {
|
|
155
|
+
data: GetSettingsResult;
|
|
156
|
+
headers: Headers;
|
|
157
|
+
status: number;
|
|
158
|
+
};
|
|
159
|
+
type GetAuditSettingsHttpError = {
|
|
160
|
+
data: ErrorResponse;
|
|
161
|
+
headers: Headers;
|
|
162
|
+
status: number;
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* Finds and returns the distinct list of unique event sources.
|
|
166
|
+
* @throws GetAuditSourcesHttpError
|
|
167
|
+
*/
|
|
168
|
+
declare const getAuditSources: (options?: ApiCallOptions) => Promise<GetAuditSourcesHttpResponse>;
|
|
169
|
+
type GetAuditSourcesHttpResponse = {
|
|
170
|
+
data: GetObjectsResult;
|
|
171
|
+
headers: Headers;
|
|
172
|
+
status: number;
|
|
173
|
+
prev?: (options?: ApiCallOptions) => Promise<GetAuditSourcesHttpResponse>;
|
|
174
|
+
next?: (options?: ApiCallOptions) => Promise<GetAuditSourcesHttpResponse>;
|
|
175
|
+
};
|
|
176
|
+
type GetAuditSourcesHttpError = {
|
|
177
|
+
data: ErrorResponse;
|
|
178
|
+
headers: Headers;
|
|
179
|
+
status: number;
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* Finds and returns the distinct list of unique event types.
|
|
183
|
+
* @throws GetAuditTypesHttpError
|
|
184
|
+
*/
|
|
185
|
+
declare const getAuditTypes: (options?: ApiCallOptions) => Promise<GetAuditTypesHttpResponse>;
|
|
186
|
+
type GetAuditTypesHttpResponse = {
|
|
187
|
+
data: GetObjectsResult;
|
|
188
|
+
headers: Headers;
|
|
189
|
+
status: number;
|
|
190
|
+
prev?: (options?: ApiCallOptions) => Promise<GetAuditTypesHttpResponse>;
|
|
191
|
+
next?: (options?: ApiCallOptions) => Promise<GetAuditTypesHttpResponse>;
|
|
192
|
+
};
|
|
193
|
+
type GetAuditTypesHttpError = {
|
|
194
|
+
data: ErrorResponse;
|
|
195
|
+
headers: Headers;
|
|
196
|
+
status: number;
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Finds and returns the persisted audit events for the given tenant.
|
|
200
|
+
* @param id The audit item's unique identifier.
|
|
201
|
+
* @throws GetAuditHttpError
|
|
202
|
+
*/
|
|
203
|
+
declare const getAudit: (id: string, options?: ApiCallOptions) => Promise<GetAuditHttpResponse>;
|
|
204
|
+
type GetAuditHttpResponse = {
|
|
205
|
+
data: GetByIDResult;
|
|
206
|
+
headers: Headers;
|
|
207
|
+
status: number;
|
|
208
|
+
};
|
|
209
|
+
type GetAuditHttpError = {
|
|
210
|
+
data: ErrorResponse;
|
|
211
|
+
headers: Headers;
|
|
212
|
+
status: number;
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* Clears the cache for audits api requests.
|
|
216
|
+
*/
|
|
217
|
+
declare function clearCache(): void;
|
|
218
|
+
interface AuditsAPI {
|
|
219
|
+
/**
|
|
220
|
+
* Finds and returns the persisted audit events for the given tenant.
|
|
221
|
+
* @param query an object with query parameters
|
|
222
|
+
* @throws GetAuditsHttpError
|
|
223
|
+
*/
|
|
224
|
+
getAudits: typeof getAudits;
|
|
225
|
+
/**
|
|
226
|
+
* Finds and returns audit events from the archive, formatted as a JSON array, for the given date and tenant (in JWT).
|
|
227
|
+
* @param query an object with query parameters
|
|
228
|
+
* @throws GetArchivedAuditsHttpError
|
|
229
|
+
*/
|
|
230
|
+
getArchivedAudits: typeof getArchivedAudits;
|
|
231
|
+
/**
|
|
232
|
+
* It includes options that represent the server configuration state and parameters that were used to run the server with certain functionality.
|
|
233
|
+
* @throws GetAuditSettingsHttpError
|
|
234
|
+
*/
|
|
235
|
+
getAuditSettings: typeof getAuditSettings;
|
|
236
|
+
/**
|
|
237
|
+
* Finds and returns the distinct list of unique event sources.
|
|
238
|
+
* @throws GetAuditSourcesHttpError
|
|
239
|
+
*/
|
|
240
|
+
getAuditSources: typeof getAuditSources;
|
|
241
|
+
/**
|
|
242
|
+
* Finds and returns the distinct list of unique event types.
|
|
243
|
+
* @throws GetAuditTypesHttpError
|
|
244
|
+
*/
|
|
245
|
+
getAuditTypes: typeof getAuditTypes;
|
|
246
|
+
/**
|
|
247
|
+
* Finds and returns the persisted audit events for the given tenant.
|
|
248
|
+
* @param id The audit item's unique identifier.
|
|
249
|
+
* @throws GetAuditHttpError
|
|
250
|
+
*/
|
|
251
|
+
getAudit: typeof getAudit;
|
|
252
|
+
/**
|
|
253
|
+
* Clears the cache for audits api requests.
|
|
254
|
+
*/
|
|
255
|
+
clearCache: typeof clearCache;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Functions for the audits api
|
|
259
|
+
*/
|
|
260
|
+
declare const auditsExport: AuditsAPI;
|
|
261
|
+
|
|
262
|
+
export { type AuditsAPI, type ErrorResponse, type EventExtensions, type GetArchiveResult, type GetArchivedAuditsHttpError, type GetArchivedAuditsHttpResponse, type GetAuditHttpError, type GetAuditHttpResponse, type GetAuditSettingsHttpError, type GetAuditSettingsHttpResponse, type GetAuditSourcesHttpError, type GetAuditSourcesHttpResponse, type GetAuditTypesHttpError, type GetAuditTypesHttpResponse, type GetAuditsHttpError, type GetAuditsHttpResponse, type GetByIDResult, type GetLinks, type GetObjectsResult, type GetResult, type GetSettingsResult, type Href, type ListLinks, clearCache, auditsExport as default, getArchivedAudits, getAudit, getAuditSettings, getAuditSources, getAuditTypes, getAudits };
|
package/audits.d.ts
ADDED
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { A as ApiCallOptions } from './global.types-hIvp-WdX.js';
|
|
2
|
+
import './auth-types-nnUcWhuU.js';
|
|
3
|
+
|
|
4
|
+
type ErrorResponse = {
|
|
5
|
+
error?: string;
|
|
6
|
+
errors?: {
|
|
7
|
+
code?: string;
|
|
8
|
+
detail?: string;
|
|
9
|
+
title?: string;
|
|
10
|
+
}[];
|
|
11
|
+
traceId?: string;
|
|
12
|
+
};
|
|
13
|
+
type EventExtensions = {
|
|
14
|
+
/** Specifies the entity performing the action on behalf of another party listed as triggering the action. */
|
|
15
|
+
actor?: {
|
|
16
|
+
/** Opaque value identifying impersonating entity. */
|
|
17
|
+
sub?: string;
|
|
18
|
+
/** The type of the impersonating entity. */
|
|
19
|
+
subType?: string;
|
|
20
|
+
};
|
|
21
|
+
/** Id of the owner of the resource affected by the eventContext. */
|
|
22
|
+
ownerId?: string;
|
|
23
|
+
/** Id of the space related to the action performed on the eventContext. */
|
|
24
|
+
spaceId?: string;
|
|
25
|
+
/** If the event originated from a sub resource the topLevelResourceId contains the id of the top level resource associated with the sub resource. */
|
|
26
|
+
topLevelResourceId?: string;
|
|
27
|
+
/** Might be present if the action is of type "updated" and should contain information about the changes made to the resource. */
|
|
28
|
+
updates?: unknown;
|
|
29
|
+
};
|
|
30
|
+
type GetArchiveResult = {
|
|
31
|
+
/** List of archived events. The structure of the events depend on their type and version. */
|
|
32
|
+
data?: unknown[];
|
|
33
|
+
};
|
|
34
|
+
type GetByIDResult = {
|
|
35
|
+
/** The type that content is encoded in, always "application/json". */
|
|
36
|
+
contentType?: string;
|
|
37
|
+
/** Additional information about the event's details. The structure depends on the type and version of the event. */
|
|
38
|
+
data?: unknown;
|
|
39
|
+
/** The event's unique identifier. */
|
|
40
|
+
eventId?: string;
|
|
41
|
+
/** The RFC3339 datetime when the event happened. */
|
|
42
|
+
eventTime?: string;
|
|
43
|
+
/** The type of event that describes committed action. */
|
|
44
|
+
eventType?: string;
|
|
45
|
+
/** The version of the event type. */
|
|
46
|
+
eventTypeVersion?: string;
|
|
47
|
+
/** The availability of the properties depends on the event and the context it was triggered in. */
|
|
48
|
+
extensions?: EventExtensions;
|
|
49
|
+
/** The resource item's unique identifier. */
|
|
50
|
+
id?: string;
|
|
51
|
+
links?: GetLinks;
|
|
52
|
+
/** The source of the event message, usually the producing service. */
|
|
53
|
+
source?: string;
|
|
54
|
+
/** The ID of the tenant that owns the item. This is populated using the JWT. */
|
|
55
|
+
tenantId?: string;
|
|
56
|
+
/** The ID of the user who performed the action that triggered the event. */
|
|
57
|
+
userId?: string;
|
|
58
|
+
};
|
|
59
|
+
type GetLinks = {
|
|
60
|
+
Self?: Href;
|
|
61
|
+
self?: Href;
|
|
62
|
+
};
|
|
63
|
+
type GetObjectsResult = {
|
|
64
|
+
/** List of requested resources. */
|
|
65
|
+
data?: string[];
|
|
66
|
+
links?: ListLinks;
|
|
67
|
+
};
|
|
68
|
+
type GetResult = {
|
|
69
|
+
/** List of audit items. */
|
|
70
|
+
data?: GetByIDResult[];
|
|
71
|
+
links?: ListLinks;
|
|
72
|
+
};
|
|
73
|
+
type GetSettingsResult = {
|
|
74
|
+
/** Server configuration options. */
|
|
75
|
+
data?: {
|
|
76
|
+
/** Is Long Term Storage archiving enabled?. */
|
|
77
|
+
ArchiveEnabled?: boolean;
|
|
78
|
+
/** The events TTL in seconds. */
|
|
79
|
+
EventTTL?: number;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
type Href = {
|
|
83
|
+
Href?: string;
|
|
84
|
+
};
|
|
85
|
+
type ListLinks = {
|
|
86
|
+
Next?: Href;
|
|
87
|
+
Prev?: Href;
|
|
88
|
+
Self?: Href;
|
|
89
|
+
next?: Href;
|
|
90
|
+
prev?: Href;
|
|
91
|
+
self?: Href;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Finds and returns the persisted audit events for the given tenant.
|
|
95
|
+
* @param query an object with query parameters
|
|
96
|
+
* @throws GetAuditsHttpError
|
|
97
|
+
*/
|
|
98
|
+
declare const getAudits: (query: {
|
|
99
|
+
/** 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". */
|
|
100
|
+
eventTime?: string;
|
|
101
|
+
/** The case-sensitive string used to search by eventType. */
|
|
102
|
+
eventType?: string;
|
|
103
|
+
/** The comma separated list of audit unique identifiers. */
|
|
104
|
+
id?: string;
|
|
105
|
+
/** The maximum number of resources to return for a request. The limit must be an integer between 1 and 100 (inclusive). */
|
|
106
|
+
limit?: number;
|
|
107
|
+
/** The cursor to the next page of resources. Provide either the next or prev cursor, but not both. */
|
|
108
|
+
next?: string;
|
|
109
|
+
/** The cursor to the previous page of resources. Provide either the next or prev cursor, but not both. */
|
|
110
|
+
prev?: string;
|
|
111
|
+
/** 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. */
|
|
112
|
+
sort?: string;
|
|
113
|
+
/** The case-sensitive string used to search by source. */
|
|
114
|
+
source?: string;
|
|
115
|
+
/** The case-sensitive string used to search by userId. */
|
|
116
|
+
userId?: string;
|
|
117
|
+
}, options?: ApiCallOptions) => Promise<GetAuditsHttpResponse>;
|
|
118
|
+
type GetAuditsHttpResponse = {
|
|
119
|
+
data: GetResult;
|
|
120
|
+
headers: Headers;
|
|
121
|
+
status: number;
|
|
122
|
+
prev?: (options?: ApiCallOptions) => Promise<GetAuditsHttpResponse>;
|
|
123
|
+
next?: (options?: ApiCallOptions) => Promise<GetAuditsHttpResponse>;
|
|
124
|
+
};
|
|
125
|
+
type GetAuditsHttpError = {
|
|
126
|
+
data: ErrorResponse;
|
|
127
|
+
headers: Headers;
|
|
128
|
+
status: number;
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Finds and returns audit events from the archive, formatted as a JSON array, for the given date and tenant (in JWT).
|
|
132
|
+
* @param query an object with query parameters
|
|
133
|
+
* @throws GetArchivedAuditsHttpError
|
|
134
|
+
*/
|
|
135
|
+
declare const getArchivedAudits: (query: {
|
|
136
|
+
/** Date to be used as filter and criteria during extraction. */
|
|
137
|
+
date?: string;
|
|
138
|
+
}, options?: ApiCallOptions) => Promise<GetArchivedAuditsHttpResponse>;
|
|
139
|
+
type GetArchivedAuditsHttpResponse = {
|
|
140
|
+
data: GetArchiveResult;
|
|
141
|
+
headers: Headers;
|
|
142
|
+
status: number;
|
|
143
|
+
};
|
|
144
|
+
type GetArchivedAuditsHttpError = {
|
|
145
|
+
data: ErrorResponse;
|
|
146
|
+
headers: Headers;
|
|
147
|
+
status: number;
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
* It includes options that represent the server configuration state and parameters that were used to run the server with certain functionality.
|
|
151
|
+
* @throws GetAuditSettingsHttpError
|
|
152
|
+
*/
|
|
153
|
+
declare const getAuditSettings: (options?: ApiCallOptions) => Promise<GetAuditSettingsHttpResponse>;
|
|
154
|
+
type GetAuditSettingsHttpResponse = {
|
|
155
|
+
data: GetSettingsResult;
|
|
156
|
+
headers: Headers;
|
|
157
|
+
status: number;
|
|
158
|
+
};
|
|
159
|
+
type GetAuditSettingsHttpError = {
|
|
160
|
+
data: ErrorResponse;
|
|
161
|
+
headers: Headers;
|
|
162
|
+
status: number;
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* Finds and returns the distinct list of unique event sources.
|
|
166
|
+
* @throws GetAuditSourcesHttpError
|
|
167
|
+
*/
|
|
168
|
+
declare const getAuditSources: (options?: ApiCallOptions) => Promise<GetAuditSourcesHttpResponse>;
|
|
169
|
+
type GetAuditSourcesHttpResponse = {
|
|
170
|
+
data: GetObjectsResult;
|
|
171
|
+
headers: Headers;
|
|
172
|
+
status: number;
|
|
173
|
+
prev?: (options?: ApiCallOptions) => Promise<GetAuditSourcesHttpResponse>;
|
|
174
|
+
next?: (options?: ApiCallOptions) => Promise<GetAuditSourcesHttpResponse>;
|
|
175
|
+
};
|
|
176
|
+
type GetAuditSourcesHttpError = {
|
|
177
|
+
data: ErrorResponse;
|
|
178
|
+
headers: Headers;
|
|
179
|
+
status: number;
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* Finds and returns the distinct list of unique event types.
|
|
183
|
+
* @throws GetAuditTypesHttpError
|
|
184
|
+
*/
|
|
185
|
+
declare const getAuditTypes: (options?: ApiCallOptions) => Promise<GetAuditTypesHttpResponse>;
|
|
186
|
+
type GetAuditTypesHttpResponse = {
|
|
187
|
+
data: GetObjectsResult;
|
|
188
|
+
headers: Headers;
|
|
189
|
+
status: number;
|
|
190
|
+
prev?: (options?: ApiCallOptions) => Promise<GetAuditTypesHttpResponse>;
|
|
191
|
+
next?: (options?: ApiCallOptions) => Promise<GetAuditTypesHttpResponse>;
|
|
192
|
+
};
|
|
193
|
+
type GetAuditTypesHttpError = {
|
|
194
|
+
data: ErrorResponse;
|
|
195
|
+
headers: Headers;
|
|
196
|
+
status: number;
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Finds and returns the persisted audit events for the given tenant.
|
|
200
|
+
* @param id The audit item's unique identifier.
|
|
201
|
+
* @throws GetAuditHttpError
|
|
202
|
+
*/
|
|
203
|
+
declare const getAudit: (id: string, options?: ApiCallOptions) => Promise<GetAuditHttpResponse>;
|
|
204
|
+
type GetAuditHttpResponse = {
|
|
205
|
+
data: GetByIDResult;
|
|
206
|
+
headers: Headers;
|
|
207
|
+
status: number;
|
|
208
|
+
};
|
|
209
|
+
type GetAuditHttpError = {
|
|
210
|
+
data: ErrorResponse;
|
|
211
|
+
headers: Headers;
|
|
212
|
+
status: number;
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* Clears the cache for audits api requests.
|
|
216
|
+
*/
|
|
217
|
+
declare function clearCache(): void;
|
|
218
|
+
interface AuditsAPI {
|
|
219
|
+
/**
|
|
220
|
+
* Finds and returns the persisted audit events for the given tenant.
|
|
221
|
+
* @param query an object with query parameters
|
|
222
|
+
* @throws GetAuditsHttpError
|
|
223
|
+
*/
|
|
224
|
+
getAudits: typeof getAudits;
|
|
225
|
+
/**
|
|
226
|
+
* Finds and returns audit events from the archive, formatted as a JSON array, for the given date and tenant (in JWT).
|
|
227
|
+
* @param query an object with query parameters
|
|
228
|
+
* @throws GetArchivedAuditsHttpError
|
|
229
|
+
*/
|
|
230
|
+
getArchivedAudits: typeof getArchivedAudits;
|
|
231
|
+
/**
|
|
232
|
+
* It includes options that represent the server configuration state and parameters that were used to run the server with certain functionality.
|
|
233
|
+
* @throws GetAuditSettingsHttpError
|
|
234
|
+
*/
|
|
235
|
+
getAuditSettings: typeof getAuditSettings;
|
|
236
|
+
/**
|
|
237
|
+
* Finds and returns the distinct list of unique event sources.
|
|
238
|
+
* @throws GetAuditSourcesHttpError
|
|
239
|
+
*/
|
|
240
|
+
getAuditSources: typeof getAuditSources;
|
|
241
|
+
/**
|
|
242
|
+
* Finds and returns the distinct list of unique event types.
|
|
243
|
+
* @throws GetAuditTypesHttpError
|
|
244
|
+
*/
|
|
245
|
+
getAuditTypes: typeof getAuditTypes;
|
|
246
|
+
/**
|
|
247
|
+
* Finds and returns the persisted audit events for the given tenant.
|
|
248
|
+
* @param id The audit item's unique identifier.
|
|
249
|
+
* @throws GetAuditHttpError
|
|
250
|
+
*/
|
|
251
|
+
getAudit: typeof getAudit;
|
|
252
|
+
/**
|
|
253
|
+
* Clears the cache for audits api requests.
|
|
254
|
+
*/
|
|
255
|
+
clearCache: typeof clearCache;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Functions for the audits api
|
|
259
|
+
*/
|
|
260
|
+
declare const auditsExport: AuditsAPI;
|
|
261
|
+
|
|
262
|
+
export { type AuditsAPI, type ErrorResponse, type EventExtensions, type GetArchiveResult, type GetArchivedAuditsHttpError, type GetArchivedAuditsHttpResponse, type GetAuditHttpError, type GetAuditHttpResponse, type GetAuditSettingsHttpError, type GetAuditSettingsHttpResponse, type GetAuditSourcesHttpError, type GetAuditSourcesHttpResponse, type GetAuditTypesHttpError, type GetAuditTypesHttpResponse, type GetAuditsHttpError, type GetAuditsHttpResponse, type GetByIDResult, type GetLinks, type GetObjectsResult, type GetResult, type GetSettingsResult, type Href, type ListLinks, clearCache, auditsExport as default, getArchivedAudits, getAudit, getAuditSettings, getAuditSources, getAuditTypes, getAudits };
|
package/audits.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkOULT3V2Ujs = require('./chunk-OULT3V2U.js');
|
|
5
|
+
require('./chunk-ZT4C7KCQ.js');
|
|
6
|
+
|
|
7
|
+
// src/public/rest/audits.ts
|
|
8
|
+
var getAudits = async (query, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "audits", {
|
|
9
|
+
method: "get",
|
|
10
|
+
pathTemplate: "/api/v1/audits",
|
|
11
|
+
query,
|
|
12
|
+
options
|
|
13
|
+
});
|
|
14
|
+
var getArchivedAudits = async (query, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "audits", {
|
|
15
|
+
method: "get",
|
|
16
|
+
pathTemplate: "/api/v1/audits/archive",
|
|
17
|
+
query,
|
|
18
|
+
options
|
|
19
|
+
});
|
|
20
|
+
var getAuditSettings = async (options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "audits", {
|
|
21
|
+
method: "get",
|
|
22
|
+
pathTemplate: "/api/v1/audits/settings",
|
|
23
|
+
options
|
|
24
|
+
});
|
|
25
|
+
var getAuditSources = async (options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "audits", {
|
|
26
|
+
method: "get",
|
|
27
|
+
pathTemplate: "/api/v1/audits/sources",
|
|
28
|
+
options
|
|
29
|
+
});
|
|
30
|
+
var getAuditTypes = async (options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "audits", {
|
|
31
|
+
method: "get",
|
|
32
|
+
pathTemplate: "/api/v1/audits/types",
|
|
33
|
+
options
|
|
34
|
+
});
|
|
35
|
+
var getAudit = async (id, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "audits", {
|
|
36
|
+
method: "get",
|
|
37
|
+
pathTemplate: "/api/v1/audits/{id}",
|
|
38
|
+
pathVariables: { id },
|
|
39
|
+
options
|
|
40
|
+
});
|
|
41
|
+
function clearCache() {
|
|
42
|
+
return _chunkOULT3V2Ujs.clearApiCache.call(void 0, "audits");
|
|
43
|
+
}
|
|
44
|
+
var auditsExport = {
|
|
45
|
+
getAudits,
|
|
46
|
+
getArchivedAudits,
|
|
47
|
+
getAuditSettings,
|
|
48
|
+
getAuditSources,
|
|
49
|
+
getAuditTypes,
|
|
50
|
+
getAudit,
|
|
51
|
+
clearCache
|
|
52
|
+
};
|
|
53
|
+
var audits_default = auditsExport;
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
exports.clearCache = clearCache; exports.default = audits_default; exports.getArchivedAudits = getArchivedAudits; exports.getAudit = getAudit; exports.getAuditSettings = getAuditSettings; exports.getAuditSources = getAuditSources; exports.getAuditTypes = getAuditTypes; exports.getAudits = getAudits;
|
package/audits.mjs
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import {
|
|
2
|
+
clearApiCache,
|
|
3
|
+
invokeFetch
|
|
4
|
+
} from "./chunk-3YE7EI7I.mjs";
|
|
5
|
+
import "./chunk-WM7FQU2U.mjs";
|
|
6
|
+
|
|
7
|
+
// src/public/rest/audits.ts
|
|
8
|
+
var getAudits = async (query, options) => invokeFetch("audits", {
|
|
9
|
+
method: "get",
|
|
10
|
+
pathTemplate: "/api/v1/audits",
|
|
11
|
+
query,
|
|
12
|
+
options
|
|
13
|
+
});
|
|
14
|
+
var getArchivedAudits = async (query, options) => invokeFetch("audits", {
|
|
15
|
+
method: "get",
|
|
16
|
+
pathTemplate: "/api/v1/audits/archive",
|
|
17
|
+
query,
|
|
18
|
+
options
|
|
19
|
+
});
|
|
20
|
+
var getAuditSettings = async (options) => invokeFetch("audits", {
|
|
21
|
+
method: "get",
|
|
22
|
+
pathTemplate: "/api/v1/audits/settings",
|
|
23
|
+
options
|
|
24
|
+
});
|
|
25
|
+
var getAuditSources = async (options) => invokeFetch("audits", {
|
|
26
|
+
method: "get",
|
|
27
|
+
pathTemplate: "/api/v1/audits/sources",
|
|
28
|
+
options
|
|
29
|
+
});
|
|
30
|
+
var getAuditTypes = async (options) => invokeFetch("audits", {
|
|
31
|
+
method: "get",
|
|
32
|
+
pathTemplate: "/api/v1/audits/types",
|
|
33
|
+
options
|
|
34
|
+
});
|
|
35
|
+
var getAudit = async (id, options) => invokeFetch("audits", {
|
|
36
|
+
method: "get",
|
|
37
|
+
pathTemplate: "/api/v1/audits/{id}",
|
|
38
|
+
pathVariables: { id },
|
|
39
|
+
options
|
|
40
|
+
});
|
|
41
|
+
function clearCache() {
|
|
42
|
+
return clearApiCache("audits");
|
|
43
|
+
}
|
|
44
|
+
var auditsExport = {
|
|
45
|
+
getAudits,
|
|
46
|
+
getArchivedAudits,
|
|
47
|
+
getAuditSettings,
|
|
48
|
+
getAuditSources,
|
|
49
|
+
getAuditTypes,
|
|
50
|
+
getAudit,
|
|
51
|
+
clearCache
|
|
52
|
+
};
|
|
53
|
+
var audits_default = auditsExport;
|
|
54
|
+
export {
|
|
55
|
+
clearCache,
|
|
56
|
+
audits_default as default,
|
|
57
|
+
getArchivedAudits,
|
|
58
|
+
getAudit,
|
|
59
|
+
getAuditSettings,
|
|
60
|
+
getAuditSources,
|
|
61
|
+
getAuditTypes,
|
|
62
|
+
getAudits
|
|
63
|
+
};
|
package/auth-CSVTXOZX.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
var _chunkXASXL2NCjs = require('./chunk-XASXL2NC.js');
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
exports.InvalidAuthTypeError = _chunkXASXL2NCjs.InvalidAuthTypeError; exports.InvalidHostConfigError = _chunkXASXL2NCjs.InvalidHostConfigError; exports.UnexpectedAuthTypeError = _chunkXASXL2NCjs.UnexpectedAuthTypeError; exports.checkForCrossDomainRequest = _chunkXASXL2NCjs.checkForCrossDomainRequest; exports.default = _chunkXASXL2NCjs.auth_default; exports.getRestCallAuthParams = _chunkXASXL2NCjs.getRestCallAuthParams; exports.getWebResourceAuthParams = _chunkXASXL2NCjs.getWebResourceAuthParams; exports.getWebSocketAuthParams = _chunkXASXL2NCjs.getWebSocketAuthParams; exports.handleAuthenticationError = _chunkXASXL2NCjs.handleAuthenticationError; exports.isHostCrossOrigin = _chunkXASXL2NCjs.isHostCrossOrigin; exports.isWindows = _chunkXASXL2NCjs.isWindows; exports.logout = _chunkXASXL2NCjs.logout; exports.registerAuthModule = _chunkXASXL2NCjs.registerAuthModule; exports.setDefaultHostConfig = _chunkXASXL2NCjs.setDefaultHostConfig; exports.toValidEnigmaLocationUrl = _chunkXASXL2NCjs.toValidEnigmaLocationUrl; exports.toValidLocationUrl = _chunkXASXL2NCjs.toValidLocationUrl;
|