@qlik/api 0.0.15 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/api-keys.js +25 -25
- package/apps.js +97 -97
- package/audits.js +23 -23
- package/auth.js +14 -14
- package/automations.js +47 -47
- package/brands.js +35 -35
- package/chunks/4HB3TAEO.js +4 -4
- package/chunks/{EHAANYDL.mjs → 4V5AAWUI.js} +3 -3
- package/chunks/{O4EAKEIN.mjs → D62LI5YU.js} +1 -1
- package/chunks/{6WX5AGKQ.mjs → L2BJNKLV.js} +2 -2
- package/chunks/{3YV6X7S6.mjs → LHCJKIEO.js} +1 -1
- package/chunks/OPRGGO4C.js +8 -8
- package/chunks/{HHOVS7QC.mjs → RNLZBOJU.js} +3 -3
- package/chunks/{BYD63JCG.mjs → SIU6HO6B.js} +5 -3
- package/chunks/{6AD3HYSF.mjs → TFSRDRRS.js} +1 -1
- package/chunks/{HOCTJESP.mjs → VK2CODYY.js} +2 -2
- package/chunks/{UKVTBYP6.mjs → XOVMZWDC.js} +2 -2
- package/collections.js +33 -33
- package/csp-origins.js +23 -23
- package/data-assets.js +21 -21
- package/data-connections.d.ts +97 -61
- package/data-connections.js +29 -29
- package/data-credentials.d.ts +3 -2
- package/data-credentials.js +19 -19
- package/data-files.js +35 -35
- package/docs/authentication.md +5 -5
- package/docs/examples/fetch-spaces.md +1 -15
- package/docs/examples/open-without-data.md +1 -1
- package/docs/examples/show-sheet-list.md +1 -1
- package/docs/features.md +1 -1
- package/extensions.js +25 -25
- package/glossaries.js +59 -59
- package/groups.d.ts +0 -3
- package/groups.js +27 -27
- package/identity-providers.js +27 -27
- package/index.js +53 -53
- package/items.js +27 -27
- package/licenses.js +29 -29
- package/package.json +36 -232
- package/qix.d.ts +1 -1
- package/qix.js +10 -10
- package/quotas.js +15 -15
- package/reload-tasks.js +21 -21
- package/reloads.js +19 -19
- package/roles.js +15 -15
- package/spaces.js +35 -35
- package/temp-contents.js +17 -17
- package/tenants.js +23 -23
- package/themes.js +25 -25
- package/transports.js +23 -23
- package/users.d.ts +1 -3
- package/users.js +31 -31
- package/web-integrations.js +21 -21
- package/web-notifications.js +23 -23
- package/webhooks.js +31 -31
- package/api-keys.d.mts +0 -336
- package/api-keys.mjs +0 -80
- package/apps.d.mts +0 -2431
- package/apps.mjs +0 -398
- package/audits.d.mts +0 -286
- package/audits.mjs +0 -64
- package/auth-types-nnUcWhuU.d.mts +0 -98
- package/auth.d.mts +0 -26
- package/auth.mjs +0 -14
- package/automations.d.mts +0 -682
- package/automations.mjs +0 -173
- package/brands.d.mts +0 -670
- package/brands.mjs +0 -123
- package/chunks/2YWCEGTS.js +0 -21
- package/chunks/34ZKUFEA.js +0 -41
- package/chunks/4WHZ4EIW.js +0 -57
- package/chunks/B4VPD3ZT.js +0 -574
- package/chunks/BM4OSDRZ.js +0 -17
- package/chunks/DCXUEDOW.mjs +0 -67
- package/chunks/MTAQE4WC.js +0 -10411
- package/chunks/PLOSYUG2.js +0 -25
- package/chunks/URIW2U5M.js +0 -17
- package/chunks/VSY5YIQY.mjs +0 -11
- package/chunks/WOYJLK4Y.js +0 -1623
- package/collections.d.mts +0 -581
- package/collections.mjs +0 -114
- package/csp-origins.d.mts +0 -273
- package/csp-origins.mjs +0 -69
- package/data-assets.d.mts +0 -205
- package/data-assets.mjs +0 -66
- package/data-connections.d.mts +0 -558
- package/data-connections.mjs +0 -103
- package/data-credentials.d.mts +0 -203
- package/data-credentials.mjs +0 -59
- package/data-files.d.mts +0 -562
- package/data-files.mjs +0 -123
- package/extensions.d.mts +0 -293
- package/extensions.mjs +0 -77
- package/global.types-5iFvFJvX.d.mts +0 -115
- package/glossaries.d.mts +0 -1173
- package/glossaries.mjs +0 -237
- package/groups.d.mts +0 -434
- package/groups.mjs +0 -88
- package/identity-providers.d.mts +0 -550
- package/identity-providers.mjs +0 -83
- package/index.d.mts +0 -142
- package/index.mjs +0 -716
- package/items.d.mts +0 -535
- package/items.mjs +0 -87
- package/licenses.d.mts +0 -459
- package/licenses.mjs +0 -92
- package/qix.d.mts +0 -11629
- package/qix.mjs +0 -10
- package/quotas.d.mts +0 -112
- package/quotas.mjs +0 -32
- package/reload-tasks.d.mts +0 -227
- package/reload-tasks.mjs +0 -62
- package/reloads.d.mts +0 -207
- package/reloads.mjs +0 -46
- package/roles.d.mts +0 -175
- package/roles.mjs +0 -31
- package/spaces.d.mts +0 -562
- package/spaces.mjs +0 -124
- package/temp-contents.d.mts +0 -167
- package/temp-contents.mjs +0 -41
- package/tenants.d.mts +0 -300
- package/tenants.mjs +0 -73
- package/themes.d.mts +0 -268
- package/themes.mjs +0 -77
- package/transports.d.mts +0 -319
- package/transports.mjs +0 -65
- package/users.d.mts +0 -631
- package/users.mjs +0 -104
- package/web-integrations.d.mts +0 -274
- package/web-integrations.mjs +0 -62
- package/web-notifications.d.mts +0 -250
- package/web-notifications.mjs +0 -69
- package/webhooks.d.mts +0 -445
- package/webhooks.mjs +0 -104
package/glossaries.mjs
DELETED
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
clearApiCache,
|
|
3
|
-
invokeFetch
|
|
4
|
-
} from "./chunks/3YV6X7S6.mjs";
|
|
5
|
-
import "./chunks/EHAANYDL.mjs";
|
|
6
|
-
import "./chunks/VSY5YIQY.mjs";
|
|
7
|
-
|
|
8
|
-
// src/public/rest/glossaries.ts
|
|
9
|
-
var getGlossaries = async (query, options) => invokeFetch("glossaries", {
|
|
10
|
-
method: "get",
|
|
11
|
-
pathTemplate: "/api/v1/glossaries",
|
|
12
|
-
query,
|
|
13
|
-
options
|
|
14
|
-
});
|
|
15
|
-
var createGlossary = async (body, options) => invokeFetch("glossaries", {
|
|
16
|
-
method: "post",
|
|
17
|
-
pathTemplate: "/api/v1/glossaries",
|
|
18
|
-
body,
|
|
19
|
-
contentType: "application/json",
|
|
20
|
-
options
|
|
21
|
-
});
|
|
22
|
-
var importGlossary = async (query, body, options) => invokeFetch("glossaries", {
|
|
23
|
-
method: "post",
|
|
24
|
-
pathTemplate: "/api/v1/glossaries/actions/import",
|
|
25
|
-
query,
|
|
26
|
-
body,
|
|
27
|
-
contentType: "application/json",
|
|
28
|
-
options
|
|
29
|
-
});
|
|
30
|
-
var deleteGlossary = async (id, options) => invokeFetch("glossaries", {
|
|
31
|
-
method: "delete",
|
|
32
|
-
pathTemplate: "/api/v1/glossaries/{id}",
|
|
33
|
-
pathVariables: { id },
|
|
34
|
-
options
|
|
35
|
-
});
|
|
36
|
-
var getGlossary = async (id, options) => invokeFetch("glossaries", {
|
|
37
|
-
method: "get",
|
|
38
|
-
pathTemplate: "/api/v1/glossaries/{id}",
|
|
39
|
-
pathVariables: { id },
|
|
40
|
-
options
|
|
41
|
-
});
|
|
42
|
-
var patchGlossary = async (id, body, options) => invokeFetch("glossaries", {
|
|
43
|
-
method: "patch",
|
|
44
|
-
pathTemplate: "/api/v1/glossaries/{id}",
|
|
45
|
-
pathVariables: { id },
|
|
46
|
-
body,
|
|
47
|
-
contentType: "application/json",
|
|
48
|
-
options
|
|
49
|
-
});
|
|
50
|
-
var updateGlossary = async (id, body, options) => invokeFetch("glossaries", {
|
|
51
|
-
method: "put",
|
|
52
|
-
pathTemplate: "/api/v1/glossaries/{id}",
|
|
53
|
-
pathVariables: { id },
|
|
54
|
-
body,
|
|
55
|
-
contentType: "application/json",
|
|
56
|
-
options
|
|
57
|
-
});
|
|
58
|
-
var exportGlossary = async (id, options) => invokeFetch("glossaries", {
|
|
59
|
-
method: "get",
|
|
60
|
-
pathTemplate: "/api/v1/glossaries/{id}/actions/export",
|
|
61
|
-
pathVariables: { id },
|
|
62
|
-
options
|
|
63
|
-
});
|
|
64
|
-
var getGlossaryCategories = async (id, query, options) => invokeFetch("glossaries", {
|
|
65
|
-
method: "get",
|
|
66
|
-
pathTemplate: "/api/v1/glossaries/{id}/categories",
|
|
67
|
-
pathVariables: { id },
|
|
68
|
-
query,
|
|
69
|
-
options
|
|
70
|
-
});
|
|
71
|
-
var createGlossaryCategory = async (id, body, options) => invokeFetch("glossaries", {
|
|
72
|
-
method: "post",
|
|
73
|
-
pathTemplate: "/api/v1/glossaries/{id}/categories",
|
|
74
|
-
pathVariables: { id },
|
|
75
|
-
body,
|
|
76
|
-
contentType: "application/json",
|
|
77
|
-
options
|
|
78
|
-
});
|
|
79
|
-
var deleteGlossaryCategory = async (id, categoryId, options) => invokeFetch("glossaries", {
|
|
80
|
-
method: "delete",
|
|
81
|
-
pathTemplate: "/api/v1/glossaries/{id}/categories/{categoryId}",
|
|
82
|
-
pathVariables: { id, categoryId },
|
|
83
|
-
options
|
|
84
|
-
});
|
|
85
|
-
var getGlossaryCategory = async (id, categoryId, options) => invokeFetch("glossaries", {
|
|
86
|
-
method: "get",
|
|
87
|
-
pathTemplate: "/api/v1/glossaries/{id}/categories/{categoryId}",
|
|
88
|
-
pathVariables: { id, categoryId },
|
|
89
|
-
options
|
|
90
|
-
});
|
|
91
|
-
var patchGlossaryCategory = async (id, categoryId, body, options) => invokeFetch("glossaries", {
|
|
92
|
-
method: "patch",
|
|
93
|
-
pathTemplate: "/api/v1/glossaries/{id}/categories/{categoryId}",
|
|
94
|
-
pathVariables: { id, categoryId },
|
|
95
|
-
body,
|
|
96
|
-
contentType: "application/json",
|
|
97
|
-
options
|
|
98
|
-
});
|
|
99
|
-
var updateGlossaryCategory = async (id, categoryId, body, options) => invokeFetch("glossaries", {
|
|
100
|
-
method: "put",
|
|
101
|
-
pathTemplate: "/api/v1/glossaries/{id}/categories/{categoryId}",
|
|
102
|
-
pathVariables: { id, categoryId },
|
|
103
|
-
body,
|
|
104
|
-
contentType: "application/json",
|
|
105
|
-
options
|
|
106
|
-
});
|
|
107
|
-
var getGlossaryTerms = async (id, query, options) => invokeFetch("glossaries", {
|
|
108
|
-
method: "get",
|
|
109
|
-
pathTemplate: "/api/v1/glossaries/{id}/terms",
|
|
110
|
-
pathVariables: { id },
|
|
111
|
-
query,
|
|
112
|
-
options
|
|
113
|
-
});
|
|
114
|
-
var createGlossaryTerm = async (id, body, options) => invokeFetch("glossaries", {
|
|
115
|
-
method: "post",
|
|
116
|
-
pathTemplate: "/api/v1/glossaries/{id}/terms",
|
|
117
|
-
pathVariables: { id },
|
|
118
|
-
body,
|
|
119
|
-
contentType: "application/json",
|
|
120
|
-
options
|
|
121
|
-
});
|
|
122
|
-
var deleteGlossaryTerm = async (id, termId, options) => invokeFetch("glossaries", {
|
|
123
|
-
method: "delete",
|
|
124
|
-
pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}",
|
|
125
|
-
pathVariables: { id, termId },
|
|
126
|
-
options
|
|
127
|
-
});
|
|
128
|
-
var getGlossaryTerm = async (id, termId, options) => invokeFetch("glossaries", {
|
|
129
|
-
method: "get",
|
|
130
|
-
pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}",
|
|
131
|
-
pathVariables: { id, termId },
|
|
132
|
-
options
|
|
133
|
-
});
|
|
134
|
-
var patchGlossaryTerm = async (id, termId, body, options) => invokeFetch("glossaries", {
|
|
135
|
-
method: "patch",
|
|
136
|
-
pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}",
|
|
137
|
-
pathVariables: { id, termId },
|
|
138
|
-
body,
|
|
139
|
-
contentType: "application/json",
|
|
140
|
-
options
|
|
141
|
-
});
|
|
142
|
-
var updateGlossaryTerm = async (id, termId, body, options) => invokeFetch("glossaries", {
|
|
143
|
-
method: "put",
|
|
144
|
-
pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}",
|
|
145
|
-
pathVariables: { id, termId },
|
|
146
|
-
body,
|
|
147
|
-
contentType: "application/json",
|
|
148
|
-
options
|
|
149
|
-
});
|
|
150
|
-
var changeGlossaryTermStatus = async (id, termId, query, options) => invokeFetch("glossaries", {
|
|
151
|
-
method: "post",
|
|
152
|
-
pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}/actions/change-status",
|
|
153
|
-
pathVariables: { id, termId },
|
|
154
|
-
query,
|
|
155
|
-
options
|
|
156
|
-
});
|
|
157
|
-
var getGlossaryTermLinks = async (id, termId, query, options) => invokeFetch("glossaries", {
|
|
158
|
-
method: "get",
|
|
159
|
-
pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}/links",
|
|
160
|
-
pathVariables: { id, termId },
|
|
161
|
-
query,
|
|
162
|
-
options
|
|
163
|
-
});
|
|
164
|
-
var createGlossaryTermLink = async (id, termId, body, options) => invokeFetch("glossaries", {
|
|
165
|
-
method: "post",
|
|
166
|
-
pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}/links",
|
|
167
|
-
pathVariables: { id, termId },
|
|
168
|
-
body,
|
|
169
|
-
contentType: "application/json",
|
|
170
|
-
options
|
|
171
|
-
});
|
|
172
|
-
var getGlossaryTermRevisions = async (id, termId, query, options) => invokeFetch("glossaries", {
|
|
173
|
-
method: "get",
|
|
174
|
-
pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}/revisions",
|
|
175
|
-
pathVariables: { id, termId },
|
|
176
|
-
query,
|
|
177
|
-
options
|
|
178
|
-
});
|
|
179
|
-
function clearCache() {
|
|
180
|
-
return clearApiCache("glossaries");
|
|
181
|
-
}
|
|
182
|
-
var glossariesExport = {
|
|
183
|
-
getGlossaries,
|
|
184
|
-
createGlossary,
|
|
185
|
-
importGlossary,
|
|
186
|
-
deleteGlossary,
|
|
187
|
-
getGlossary,
|
|
188
|
-
patchGlossary,
|
|
189
|
-
updateGlossary,
|
|
190
|
-
exportGlossary,
|
|
191
|
-
getGlossaryCategories,
|
|
192
|
-
createGlossaryCategory,
|
|
193
|
-
deleteGlossaryCategory,
|
|
194
|
-
getGlossaryCategory,
|
|
195
|
-
patchGlossaryCategory,
|
|
196
|
-
updateGlossaryCategory,
|
|
197
|
-
getGlossaryTerms,
|
|
198
|
-
createGlossaryTerm,
|
|
199
|
-
deleteGlossaryTerm,
|
|
200
|
-
getGlossaryTerm,
|
|
201
|
-
patchGlossaryTerm,
|
|
202
|
-
updateGlossaryTerm,
|
|
203
|
-
changeGlossaryTermStatus,
|
|
204
|
-
getGlossaryTermLinks,
|
|
205
|
-
createGlossaryTermLink,
|
|
206
|
-
getGlossaryTermRevisions,
|
|
207
|
-
clearCache
|
|
208
|
-
};
|
|
209
|
-
var glossaries_default = glossariesExport;
|
|
210
|
-
export {
|
|
211
|
-
changeGlossaryTermStatus,
|
|
212
|
-
clearCache,
|
|
213
|
-
createGlossary,
|
|
214
|
-
createGlossaryCategory,
|
|
215
|
-
createGlossaryTerm,
|
|
216
|
-
createGlossaryTermLink,
|
|
217
|
-
glossaries_default as default,
|
|
218
|
-
deleteGlossary,
|
|
219
|
-
deleteGlossaryCategory,
|
|
220
|
-
deleteGlossaryTerm,
|
|
221
|
-
exportGlossary,
|
|
222
|
-
getGlossaries,
|
|
223
|
-
getGlossary,
|
|
224
|
-
getGlossaryCategories,
|
|
225
|
-
getGlossaryCategory,
|
|
226
|
-
getGlossaryTerm,
|
|
227
|
-
getGlossaryTermLinks,
|
|
228
|
-
getGlossaryTermRevisions,
|
|
229
|
-
getGlossaryTerms,
|
|
230
|
-
importGlossary,
|
|
231
|
-
patchGlossary,
|
|
232
|
-
patchGlossaryCategory,
|
|
233
|
-
patchGlossaryTerm,
|
|
234
|
-
updateGlossary,
|
|
235
|
-
updateGlossaryCategory,
|
|
236
|
-
updateGlossaryTerm
|
|
237
|
-
};
|
package/groups.d.mts
DELETED
|
@@ -1,434 +0,0 @@
|
|
|
1
|
-
import { A as ApiCallOptions } from './global.types-5iFvFJvX.mjs';
|
|
2
|
-
import './auth-types-nnUcWhuU.mjs';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* An array of role references.
|
|
6
|
-
*/
|
|
7
|
-
type AssignedRoles = {
|
|
8
|
-
/** The unique role identitier */
|
|
9
|
-
id: string;
|
|
10
|
-
/** The role level */
|
|
11
|
-
readonly level: "admin" | "user";
|
|
12
|
-
/** The role name */
|
|
13
|
-
readonly name: string;
|
|
14
|
-
/** An array of permissions associated to a given role. */
|
|
15
|
-
readonly permissions: string[];
|
|
16
|
-
/** The type of role */
|
|
17
|
-
readonly type: "default";
|
|
18
|
-
}[];
|
|
19
|
-
/**
|
|
20
|
-
* An array of role reference identifiers.
|
|
21
|
-
*/
|
|
22
|
-
type AssignedRolesRefIDs = {
|
|
23
|
-
/** The unique role identitier */
|
|
24
|
-
id: string;
|
|
25
|
-
}[];
|
|
26
|
-
/**
|
|
27
|
-
* An array of role reference names.
|
|
28
|
-
*/
|
|
29
|
-
type AssignedRolesRefNames = {
|
|
30
|
-
/** The name of the role */
|
|
31
|
-
name: string;
|
|
32
|
-
}[];
|
|
33
|
-
/**
|
|
34
|
-
* An error object describing the error.
|
|
35
|
-
*/
|
|
36
|
-
type Error = {
|
|
37
|
-
/** The error code. */
|
|
38
|
-
code: string;
|
|
39
|
-
/** A human-readable explanation specific to this occurrence of the problem. */
|
|
40
|
-
detail?: string;
|
|
41
|
-
/** Additional properties relating to the error. */
|
|
42
|
-
meta?: unknown;
|
|
43
|
-
/** References to the source of the error. */
|
|
44
|
-
source?: {
|
|
45
|
-
/** The URI query parameter that caused the error. */
|
|
46
|
-
parameter?: string;
|
|
47
|
-
/** A JSON Pointer to the property that caused the error. */
|
|
48
|
-
pointer?: string;
|
|
49
|
-
};
|
|
50
|
-
/** The HTTP status code. */
|
|
51
|
-
status?: number;
|
|
52
|
-
/** Summary of the problem. */
|
|
53
|
-
title: string;
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* The error response object describing the error from the handling of an HTTP request.
|
|
57
|
-
*/
|
|
58
|
-
type Errors = {
|
|
59
|
-
/** An array of errors related to the operation. */
|
|
60
|
-
errors?: Error[];
|
|
61
|
-
/** A unique identifier for tracing the error. */
|
|
62
|
-
traceId?: string;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* An advanced query filter to be used for complex user querying in the tenant.
|
|
66
|
-
*/
|
|
67
|
-
type Filter = {
|
|
68
|
-
/** The advanced filtering to be applied the query. All conditional statements within this query parameter are case insensitive. */
|
|
69
|
-
filter?: string;
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* represents a Group document
|
|
73
|
-
*/
|
|
74
|
-
type Group = {
|
|
75
|
-
assignedRoles?: {
|
|
76
|
-
id: string;
|
|
77
|
-
readonly level: "admin" | "user";
|
|
78
|
-
readonly name: string;
|
|
79
|
-
readonly permissions: string[];
|
|
80
|
-
readonly type: "default";
|
|
81
|
-
}[];
|
|
82
|
-
/** The timestamp for when the group record was created. */
|
|
83
|
-
createdAt: string;
|
|
84
|
-
/** The unique identifier for the group */
|
|
85
|
-
readonly id: string;
|
|
86
|
-
/** The timestamp for when the group record was last updated. */
|
|
87
|
-
lastUpdatedAt: string;
|
|
88
|
-
/** Contains Links for current document */
|
|
89
|
-
links: {
|
|
90
|
-
self: {
|
|
91
|
-
/** Link to the current group document */
|
|
92
|
-
href: string;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
/** The name of the group. */
|
|
96
|
-
name: string;
|
|
97
|
-
/** The state of the group. */
|
|
98
|
-
status: "active" | "disabled";
|
|
99
|
-
/** The tenant identifier associated with the given group */
|
|
100
|
-
tenantId: string;
|
|
101
|
-
};
|
|
102
|
-
/**
|
|
103
|
-
* A JSON Patch document.
|
|
104
|
-
*/
|
|
105
|
-
type GroupPatch = {
|
|
106
|
-
/** The operation to be performed. Currently "replace" is the only supported operation. */
|
|
107
|
-
op: "replace";
|
|
108
|
-
/** Attribute name of a field of the Groups entity. */
|
|
109
|
-
path: "assignedRoles";
|
|
110
|
-
/** The roles to assign to the group (limit of 100 roles per group). */
|
|
111
|
-
value: AssignedRolesRefIDs | AssignedRolesRefNames;
|
|
112
|
-
};
|
|
113
|
-
/**
|
|
114
|
-
* An array of JSON Patches for a group.
|
|
115
|
-
*/
|
|
116
|
-
type GroupPatchSchema = GroupPatch[];
|
|
117
|
-
type GroupPostSchema = {
|
|
118
|
-
/** The roles to assign to the group (limit of 100 roles per group). */
|
|
119
|
-
assignedRoles?: AssignedRolesRefIDs | AssignedRolesRefNames;
|
|
120
|
-
/** The name of the group (maximum length of 256 characters). */
|
|
121
|
-
name: string;
|
|
122
|
-
/** The status of the created group within the tenant. Defaults to active if empty. */
|
|
123
|
-
status?: "active";
|
|
124
|
-
};
|
|
125
|
-
/**
|
|
126
|
-
* represents a GroupSetting document
|
|
127
|
-
*/
|
|
128
|
-
type GroupSettings = {
|
|
129
|
-
/** Determines if groups should be created on login. */
|
|
130
|
-
autoCreateGroups: boolean;
|
|
131
|
-
/** Contains Links for current document */
|
|
132
|
-
links: {
|
|
133
|
-
self: {
|
|
134
|
-
/** Link to the current group settings document */
|
|
135
|
-
href: string;
|
|
136
|
-
};
|
|
137
|
-
};
|
|
138
|
-
/** Determines if groups should be created on login. */
|
|
139
|
-
syncIdpGroups: boolean;
|
|
140
|
-
systemGroups?: {
|
|
141
|
-
"000000000000000000000001"?: {
|
|
142
|
-
/** An array of role references. */
|
|
143
|
-
assignedRoles?: AssignedRoles;
|
|
144
|
-
/** The timestamp for when the Everyone group was created. */
|
|
145
|
-
createdAt?: string;
|
|
146
|
-
/** For Everyone, this is always `true` and can't be patched. */
|
|
147
|
-
enabled?: boolean;
|
|
148
|
-
/** The ID of the Everyone group. This value will not change and is immutable. */
|
|
149
|
-
id?: "000000000000000000000001";
|
|
150
|
-
/** The timestamp for when the Everyone group was last updated. */
|
|
151
|
-
lastUpdatedAt?: string;
|
|
152
|
-
/** The name of the Everyone group. This value will not change and is immutable. */
|
|
153
|
-
name?: "com.qlik.Everyone";
|
|
154
|
-
};
|
|
155
|
-
};
|
|
156
|
-
/** The unique tenant identifier. */
|
|
157
|
-
tenantId: string;
|
|
158
|
-
};
|
|
159
|
-
/**
|
|
160
|
-
* A result object when listing groups.
|
|
161
|
-
*/
|
|
162
|
-
type Groups = {
|
|
163
|
-
/** An array of groups. */
|
|
164
|
-
data?: Group[];
|
|
165
|
-
links?: {
|
|
166
|
-
next?: {
|
|
167
|
-
/** Link to the next page of items */
|
|
168
|
-
href: string;
|
|
169
|
-
};
|
|
170
|
-
prev?: {
|
|
171
|
-
/** Link to the previous page of items */
|
|
172
|
-
href: string;
|
|
173
|
-
};
|
|
174
|
-
self: {
|
|
175
|
-
/** Link to the current page of items */
|
|
176
|
-
href: string;
|
|
177
|
-
};
|
|
178
|
-
};
|
|
179
|
-
/** Indicates the total number of matching documents. Will only be returned if the query parameter "totalResults" is true. */
|
|
180
|
-
totalResults?: number;
|
|
181
|
-
};
|
|
182
|
-
/**
|
|
183
|
-
* A JSON Patch document as defined in http://tools.ietf.org/html/rfc6902.
|
|
184
|
-
*/
|
|
185
|
-
type SettingsPatch = {
|
|
186
|
-
/** The operation to be performed. */
|
|
187
|
-
op: "replace";
|
|
188
|
-
/** A JSON Pointer. */
|
|
189
|
-
path: "/autoCreateGroups" | "/syncIdpGroups" | "/systemGroups/{id}/assignedRoles";
|
|
190
|
-
/** The value to be used for this operation. */
|
|
191
|
-
value: boolean | AssignedRolesRefIDs | AssignedRolesRefNames;
|
|
192
|
-
};
|
|
193
|
-
/**
|
|
194
|
-
* An array of JSON Patches for the groups settings.
|
|
195
|
-
*/
|
|
196
|
-
type SettingsPatchSchema = SettingsPatch[];
|
|
197
|
-
/**
|
|
198
|
-
* Returns a list of groups with cursor-based pagination.
|
|
199
|
-
*
|
|
200
|
-
* @param query an object with query parameters
|
|
201
|
-
* @throws GetGroupsHttpError
|
|
202
|
-
*/
|
|
203
|
-
declare const getGroups: (query: {
|
|
204
|
-
/** The advanced filtering to use for the query. Refer to [RFC 7644](https://datatracker.ietf.org/doc/rfc7644/) for the syntax. Cannot be combined with any of the fields marked as deprecated. All conditional statements within this query parameter are case insensitive. */
|
|
205
|
-
filter?: string;
|
|
206
|
-
/** The number of groups to retrieve. */
|
|
207
|
-
limit?: number;
|
|
208
|
-
/** The next page cursor. */
|
|
209
|
-
next?: string;
|
|
210
|
-
/** The previous page cursor. */
|
|
211
|
-
prev?: string;
|
|
212
|
-
/** Optional resource field name to sort on, eg. name. Can be prefixed with +/- to determine order, defaults to (+) ascending. */
|
|
213
|
-
sort?: string;
|
|
214
|
-
/** Return system groups (e.g. Everyone) instead of regular groups. Cannot be combined with any other query parameters. */
|
|
215
|
-
systemGroups?: boolean;
|
|
216
|
-
/** Whether to return a total match count in the result. Defaults to false. */
|
|
217
|
-
totalResults?: boolean;
|
|
218
|
-
}, options?: ApiCallOptions) => Promise<GetGroupsHttpResponse>;
|
|
219
|
-
type GetGroupsHttpResponse = {
|
|
220
|
-
data: Groups;
|
|
221
|
-
headers: Headers;
|
|
222
|
-
status: number;
|
|
223
|
-
prev?: (options?: ApiCallOptions) => Promise<GetGroupsHttpResponse>;
|
|
224
|
-
next?: (options?: ApiCallOptions) => Promise<GetGroupsHttpResponse>;
|
|
225
|
-
};
|
|
226
|
-
type GetGroupsHttpError = {
|
|
227
|
-
data: Errors;
|
|
228
|
-
headers: Headers;
|
|
229
|
-
status: number;
|
|
230
|
-
};
|
|
231
|
-
/**
|
|
232
|
-
* Creates a group. The maximum number of groups a tenant can have is 10,000.
|
|
233
|
-
*
|
|
234
|
-
* @param body an object with the body content
|
|
235
|
-
* @throws CreateGroupHttpError
|
|
236
|
-
*/
|
|
237
|
-
declare const createGroup: (body: GroupPostSchema, options?: ApiCallOptions) => Promise<CreateGroupHttpResponse>;
|
|
238
|
-
type CreateGroupHttpResponse = {
|
|
239
|
-
data: Group;
|
|
240
|
-
headers: Headers;
|
|
241
|
-
status: number;
|
|
242
|
-
};
|
|
243
|
-
type CreateGroupHttpError = {
|
|
244
|
-
data: Errors;
|
|
245
|
-
headers: Headers;
|
|
246
|
-
status: number;
|
|
247
|
-
};
|
|
248
|
-
/**
|
|
249
|
-
* Retrieves a list of groups matching the filter using advanced query string.
|
|
250
|
-
*
|
|
251
|
-
* @param query an object with query parameters
|
|
252
|
-
* @param body an object with the body content
|
|
253
|
-
* @throws FilterGroupsHttpError
|
|
254
|
-
*/
|
|
255
|
-
declare const filterGroups: (query: {
|
|
256
|
-
/** The number of user entries to retrieve. */
|
|
257
|
-
limit?: number;
|
|
258
|
-
/** Get users with IDs that are higher than the target user ID. Cannot be used in conjunction with prev. */
|
|
259
|
-
next?: string;
|
|
260
|
-
/** Get users with IDs that are lower than the target user ID. Cannot be used in conjunction with next. */
|
|
261
|
-
prev?: string;
|
|
262
|
-
/** The field to sort by, with +/- prefix indicating sort order */
|
|
263
|
-
sort?: "name" | "+name" | "-name";
|
|
264
|
-
}, body: Filter, options?: ApiCallOptions) => Promise<FilterGroupsHttpResponse>;
|
|
265
|
-
type FilterGroupsHttpResponse = {
|
|
266
|
-
data: Groups;
|
|
267
|
-
headers: Headers;
|
|
268
|
-
status: number;
|
|
269
|
-
prev?: (options?: ApiCallOptions) => Promise<FilterGroupsHttpResponse>;
|
|
270
|
-
next?: (options?: ApiCallOptions) => Promise<FilterGroupsHttpResponse>;
|
|
271
|
-
};
|
|
272
|
-
type FilterGroupsHttpError = {
|
|
273
|
-
data: Errors;
|
|
274
|
-
headers: Headers;
|
|
275
|
-
status: number;
|
|
276
|
-
};
|
|
277
|
-
/**
|
|
278
|
-
* Returns the active tenant's group settings.
|
|
279
|
-
*
|
|
280
|
-
* @throws GetGroupsSettingsHttpError
|
|
281
|
-
*/
|
|
282
|
-
declare const getGroupsSettings: (options?: ApiCallOptions) => Promise<GetGroupsSettingsHttpResponse>;
|
|
283
|
-
type GetGroupsSettingsHttpResponse = {
|
|
284
|
-
data: GroupSettings;
|
|
285
|
-
headers: Headers;
|
|
286
|
-
status: number;
|
|
287
|
-
};
|
|
288
|
-
type GetGroupsSettingsHttpError = {
|
|
289
|
-
data: Errors;
|
|
290
|
-
headers: Headers;
|
|
291
|
-
status: number;
|
|
292
|
-
};
|
|
293
|
-
/**
|
|
294
|
-
* Update group settings
|
|
295
|
-
*
|
|
296
|
-
* @param body an object with the body content
|
|
297
|
-
* @throws PatchGroupsSettingsHttpError
|
|
298
|
-
*/
|
|
299
|
-
declare const patchGroupsSettings: (body: SettingsPatchSchema, options?: ApiCallOptions) => Promise<PatchGroupsSettingsHttpResponse>;
|
|
300
|
-
type PatchGroupsSettingsHttpResponse = {
|
|
301
|
-
data: void;
|
|
302
|
-
headers: Headers;
|
|
303
|
-
status: number;
|
|
304
|
-
};
|
|
305
|
-
type PatchGroupsSettingsHttpError = {
|
|
306
|
-
data: Errors;
|
|
307
|
-
headers: Headers;
|
|
308
|
-
status: number;
|
|
309
|
-
};
|
|
310
|
-
/**
|
|
311
|
-
* Delete group by id
|
|
312
|
-
*
|
|
313
|
-
* @param groupId The ID of the group to delete.
|
|
314
|
-
* @throws DeleteGroupHttpError
|
|
315
|
-
*/
|
|
316
|
-
declare const deleteGroup: (groupId: string, options?: ApiCallOptions) => Promise<DeleteGroupHttpResponse>;
|
|
317
|
-
type DeleteGroupHttpResponse = {
|
|
318
|
-
data: void;
|
|
319
|
-
headers: Headers;
|
|
320
|
-
status: number;
|
|
321
|
-
};
|
|
322
|
-
type DeleteGroupHttpError = {
|
|
323
|
-
data: Errors;
|
|
324
|
-
headers: Headers;
|
|
325
|
-
status: number;
|
|
326
|
-
};
|
|
327
|
-
/**
|
|
328
|
-
* Returns the requested group.
|
|
329
|
-
*
|
|
330
|
-
* @param groupId The group's unique identifier
|
|
331
|
-
* @throws GetGroupHttpError
|
|
332
|
-
*/
|
|
333
|
-
declare const getGroup: (groupId: string, options?: ApiCallOptions) => Promise<GetGroupHttpResponse>;
|
|
334
|
-
type GetGroupHttpResponse = {
|
|
335
|
-
data: Group;
|
|
336
|
-
headers: Headers;
|
|
337
|
-
status: number;
|
|
338
|
-
};
|
|
339
|
-
type GetGroupHttpError = {
|
|
340
|
-
data: Errors;
|
|
341
|
-
headers: Headers;
|
|
342
|
-
status: number;
|
|
343
|
-
};
|
|
344
|
-
/**
|
|
345
|
-
* Update group by id
|
|
346
|
-
*
|
|
347
|
-
* @param groupId The ID of the group to update.
|
|
348
|
-
* @param body an object with the body content
|
|
349
|
-
* @throws PatchGroupHttpError
|
|
350
|
-
*/
|
|
351
|
-
declare const patchGroup: (groupId: string, body: GroupPatchSchema, options?: ApiCallOptions) => Promise<PatchGroupHttpResponse>;
|
|
352
|
-
type PatchGroupHttpResponse = {
|
|
353
|
-
data: void;
|
|
354
|
-
headers: Headers;
|
|
355
|
-
status: number;
|
|
356
|
-
};
|
|
357
|
-
type PatchGroupHttpError = {
|
|
358
|
-
data: Errors;
|
|
359
|
-
headers: Headers;
|
|
360
|
-
status: number;
|
|
361
|
-
};
|
|
362
|
-
/**
|
|
363
|
-
* Clears the cache for groups api requests.
|
|
364
|
-
*/
|
|
365
|
-
declare function clearCache(): void;
|
|
366
|
-
interface GroupsAPI {
|
|
367
|
-
/**
|
|
368
|
-
* Returns a list of groups with cursor-based pagination.
|
|
369
|
-
*
|
|
370
|
-
* @param query an object with query parameters
|
|
371
|
-
* @throws GetGroupsHttpError
|
|
372
|
-
*/
|
|
373
|
-
getGroups: typeof getGroups;
|
|
374
|
-
/**
|
|
375
|
-
* Creates a group. The maximum number of groups a tenant can have is 10,000.
|
|
376
|
-
*
|
|
377
|
-
* @param body an object with the body content
|
|
378
|
-
* @throws CreateGroupHttpError
|
|
379
|
-
*/
|
|
380
|
-
createGroup: typeof createGroup;
|
|
381
|
-
/**
|
|
382
|
-
* Retrieves a list of groups matching the filter using advanced query string.
|
|
383
|
-
*
|
|
384
|
-
* @param query an object with query parameters
|
|
385
|
-
* @param body an object with the body content
|
|
386
|
-
* @throws FilterGroupsHttpError
|
|
387
|
-
*/
|
|
388
|
-
filterGroups: typeof filterGroups;
|
|
389
|
-
/**
|
|
390
|
-
* Returns the active tenant's group settings.
|
|
391
|
-
*
|
|
392
|
-
* @throws GetGroupsSettingsHttpError
|
|
393
|
-
*/
|
|
394
|
-
getGroupsSettings: typeof getGroupsSettings;
|
|
395
|
-
/**
|
|
396
|
-
* Update group settings
|
|
397
|
-
*
|
|
398
|
-
* @param body an object with the body content
|
|
399
|
-
* @throws PatchGroupsSettingsHttpError
|
|
400
|
-
*/
|
|
401
|
-
patchGroupsSettings: typeof patchGroupsSettings;
|
|
402
|
-
/**
|
|
403
|
-
* Delete group by id
|
|
404
|
-
*
|
|
405
|
-
* @param groupId The ID of the group to delete.
|
|
406
|
-
* @throws DeleteGroupHttpError
|
|
407
|
-
*/
|
|
408
|
-
deleteGroup: typeof deleteGroup;
|
|
409
|
-
/**
|
|
410
|
-
* Returns the requested group.
|
|
411
|
-
*
|
|
412
|
-
* @param groupId The group's unique identifier
|
|
413
|
-
* @throws GetGroupHttpError
|
|
414
|
-
*/
|
|
415
|
-
getGroup: typeof getGroup;
|
|
416
|
-
/**
|
|
417
|
-
* Update group by id
|
|
418
|
-
*
|
|
419
|
-
* @param groupId The ID of the group to update.
|
|
420
|
-
* @param body an object with the body content
|
|
421
|
-
* @throws PatchGroupHttpError
|
|
422
|
-
*/
|
|
423
|
-
patchGroup: typeof patchGroup;
|
|
424
|
-
/**
|
|
425
|
-
* Clears the cache for groups api requests.
|
|
426
|
-
*/
|
|
427
|
-
clearCache: typeof clearCache;
|
|
428
|
-
}
|
|
429
|
-
/**
|
|
430
|
-
* Functions for the groups api
|
|
431
|
-
*/
|
|
432
|
-
declare const groupsExport: GroupsAPI;
|
|
433
|
-
|
|
434
|
-
export { type AssignedRoles, type AssignedRolesRefIDs, type AssignedRolesRefNames, type CreateGroupHttpError, type CreateGroupHttpResponse, type DeleteGroupHttpError, type DeleteGroupHttpResponse, type Error, type Errors, type Filter, type FilterGroupsHttpError, type FilterGroupsHttpResponse, type GetGroupHttpError, type GetGroupHttpResponse, type GetGroupsHttpError, type GetGroupsHttpResponse, type GetGroupsSettingsHttpError, type GetGroupsSettingsHttpResponse, type Group, type GroupPatch, type GroupPatchSchema, type GroupPostSchema, type GroupSettings, type Groups, type GroupsAPI, type PatchGroupHttpError, type PatchGroupHttpResponse, type PatchGroupsSettingsHttpError, type PatchGroupsSettingsHttpResponse, type SettingsPatch, type SettingsPatchSchema, clearCache, createGroup, groupsExport as default, deleteGroup, filterGroups, getGroup, getGroups, getGroupsSettings, patchGroup, patchGroupsSettings };
|