@qlik/api 0.0.8 → 0.0.10
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/api-keys.d.mts +10 -1
- package/api-keys.d.ts +10 -1
- package/api-keys.js +11 -11
- package/api-keys.mjs +3 -3
- package/apps.d.mts +134 -8
- package/apps.d.ts +134 -8
- package/apps.js +47 -47
- package/apps.mjs +3 -3
- package/audits.d.mts +14 -1
- package/audits.d.ts +14 -1
- package/audits.js +10 -10
- package/audits.mjs +3 -3
- package/auth.js +4 -4
- package/auth.mjs +3 -3
- package/automations.d.mts +9 -1
- package/automations.d.ts +9 -1
- package/automations.js +22 -22
- package/automations.mjs +3 -3
- package/brands.d.mts +19 -4
- package/brands.d.ts +19 -4
- package/brands.js +16 -16
- package/brands.mjs +3 -3
- package/{enigma-session-VSFGLOYW.mjs → chunks/34FMVD4C.mjs} +165 -21
- package/{chunk-QTCDGPKS.js → chunks/37PLWNAN.js} +82 -60
- package/{chunk-GY2TAYQH.js → chunks/3MHXEHLQ.js} +2 -2
- package/{invoke-fetch-X42FV2FS.mjs → chunks/42LZKDDD.mjs} +2 -2
- package/{enigma-session-VTHT4O6N.js → chunks/AVQ3WHH7.js} +168 -24
- package/{chunk-BRDPNGQ7.js → chunks/FG5GDUSZ.js} +3 -3
- package/{chunk-4R2XCEVK.mjs → chunks/FUU5VIC4.mjs} +1 -1
- package/{esm-HMY2LVVZ.mjs → chunks/H32EGPZN.mjs} +1 -1
- package/{qix-57OF6A7B.mjs → chunks/HFNJ3ERI.mjs} +3 -3
- package/{chunk-4MWB2T3C.mjs → chunks/HWZC3PIL.mjs} +1 -1
- package/{chunk-RYBRKLOY.js → chunks/ILOY5QEA.js} +4 -4
- package/{chunk-YILVC32M.mjs → chunks/KEPPVUY3.mjs} +1 -1
- package/{auth-U6QTT3H4.mjs → chunks/MMUU2CQM.mjs} +2 -2
- package/{chunk-LLLEO6K6.mjs → chunks/O5POHH2Q.mjs} +3 -3
- package/{chunk-EALMXU6S.js → chunks/QMWU5E4D.js} +3 -3
- package/chunks/RMNAO4DP.js +17 -0
- package/chunks/SUYUL6MB.js +41 -0
- package/{chunk-F24SLAYP.mjs → chunks/VMS4MOCI.mjs} +79 -57
- package/{qix-QWSMFPQY.js → chunks/WCJ4JQHA.js} +9 -9
- package/{esm-PXQUPJYJ.js → chunks/WM2VCN4G.js} +1 -1
- package/collections.d.mts +34 -22
- package/collections.d.ts +34 -22
- package/collections.js +15 -15
- package/collections.mjs +3 -3
- package/csp-origins.d.mts +1 -1
- package/csp-origins.d.ts +1 -1
- package/csp-origins.js +10 -10
- package/csp-origins.mjs +3 -3
- package/data-assets.d.mts +1 -1
- package/data-assets.d.ts +1 -1
- package/data-assets.js +9 -9
- package/data-assets.mjs +3 -3
- package/data-connections.d.mts +13 -2
- package/data-connections.d.ts +13 -2
- package/data-connections.js +13 -13
- package/data-connections.mjs +3 -3
- package/data-credentials.d.mts +6 -1
- package/data-credentials.d.ts +6 -1
- package/data-credentials.js +8 -8
- package/data-credentials.mjs +3 -3
- package/data-files.d.mts +7 -1
- package/data-files.d.ts +7 -1
- package/data-files.js +16 -16
- package/data-files.mjs +3 -3
- package/extensions.d.mts +13 -1
- package/extensions.d.ts +13 -1
- package/extensions.js +11 -11
- package/extensions.mjs +3 -3
- package/{global.types-4jzAvW7R.d.mts → global.types-5iFvFJvX.d.mts} +5 -1
- package/{global.types-1rNhDH7j.d.ts → global.types-TzVhFPid.d.ts} +5 -1
- package/glossaries.d.mts +51 -1
- package/glossaries.d.ts +51 -1
- package/glossaries.js +28 -28
- package/glossaries.mjs +3 -3
- package/groups.d.mts +40 -1
- package/groups.d.ts +40 -1
- package/groups.js +12 -12
- package/groups.mjs +3 -3
- package/identity-providers.d.mts +43 -1
- package/identity-providers.d.ts +43 -1
- package/identity-providers.js +12 -12
- package/identity-providers.mjs +3 -3
- package/index.d.mts +1 -1
- package/index.d.ts +1 -1
- package/index.js +9 -9
- package/index.mjs +5 -5
- package/items.d.mts +33 -2
- package/items.d.ts +33 -2
- package/items.js +12 -12
- package/items.mjs +3 -3
- package/licenses.d.mts +8 -5
- package/licenses.d.ts +8 -5
- package/licenses.js +13 -13
- package/licenses.mjs +3 -3
- package/package.json +4 -1
- package/qix.d.mts +20 -2
- package/qix.d.ts +20 -2
- package/qix.js +4 -4
- package/qix.mjs +3 -3
- package/quotas.d.mts +4 -1
- package/quotas.d.ts +4 -1
- package/quotas.js +6 -6
- package/quotas.mjs +3 -3
- package/reload-tasks.d.mts +7 -4
- package/reload-tasks.d.ts +7 -4
- package/reload-tasks.js +9 -9
- package/reload-tasks.mjs +3 -3
- package/reloads.d.mts +10 -1
- package/reloads.d.ts +10 -1
- package/reloads.js +8 -8
- package/reloads.mjs +3 -3
- package/roles.d.mts +11 -2
- package/roles.d.ts +11 -2
- package/roles.js +6 -6
- package/roles.mjs +3 -3
- package/spaces.d.mts +38 -6
- package/spaces.d.ts +38 -6
- package/spaces.js +16 -16
- package/spaces.mjs +3 -3
- package/temp-contents.d.mts +7 -1
- package/temp-contents.d.ts +7 -1
- package/temp-contents.js +7 -7
- package/temp-contents.mjs +3 -3
- package/tenants.d.mts +18 -6
- package/tenants.d.ts +18 -6
- package/tenants.js +10 -10
- package/tenants.mjs +3 -3
- package/themes.d.mts +10 -1
- package/themes.d.ts +10 -1
- package/themes.js +11 -11
- package/themes.mjs +3 -3
- package/transports.d.mts +21 -12
- package/transports.d.ts +21 -12
- package/transports.js +10 -10
- package/transports.mjs +3 -3
- package/users.d.mts +90 -25
- package/users.d.ts +90 -25
- package/users.js +14 -14
- package/users.mjs +3 -3
- package/web-integrations.d.mts +19 -1
- package/web-integrations.d.ts +19 -1
- package/web-integrations.js +9 -9
- package/web-integrations.mjs +3 -3
- package/web-notifications.d.mts +19 -1
- package/web-notifications.d.ts +19 -1
- package/web-notifications.js +10 -10
- package/web-notifications.mjs +3 -3
- package/webhooks.d.mts +4 -1
- package/webhooks.d.ts +4 -1
- package/webhooks.js +14 -14
- package/webhooks.mjs +3 -3
- package/auth-XY6FVSVM.js +0 -41
- package/invoke-fetch-FRLO3CK6.js +0 -17
- /package/{chunk-P57PW2II.js → chunks/4HB3TAEO.js} +0 -0
- /package/{chunk-ZFXKCRJC.mjs → chunks/VSY5YIQY.mjs} +0 -0
package/groups.d.mts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { A as ApiCallOptions } from './global.types-
|
|
1
|
+
import { A as ApiCallOptions } from './global.types-5iFvFJvX.mjs';
|
|
2
2
|
import './auth-types-nnUcWhuU.mjs';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* An array of role references.
|
|
6
|
+
*/
|
|
4
7
|
type AssignedRoles = {
|
|
5
8
|
/** The unique role identitier */
|
|
6
9
|
id: string;
|
|
@@ -13,14 +16,23 @@ type AssignedRoles = {
|
|
|
13
16
|
/** The type of role */
|
|
14
17
|
readonly type: "default";
|
|
15
18
|
}[];
|
|
19
|
+
/**
|
|
20
|
+
* An array of role reference identifiers.
|
|
21
|
+
*/
|
|
16
22
|
type AssignedRolesRefIDs = {
|
|
17
23
|
/** The unique role identitier */
|
|
18
24
|
id: string;
|
|
19
25
|
}[];
|
|
26
|
+
/**
|
|
27
|
+
* An array of role reference names.
|
|
28
|
+
*/
|
|
20
29
|
type AssignedRolesRefNames = {
|
|
21
30
|
/** The name of the role */
|
|
22
31
|
name: string;
|
|
23
32
|
}[];
|
|
33
|
+
/**
|
|
34
|
+
* An error object describing the error.
|
|
35
|
+
*/
|
|
24
36
|
type Error = {
|
|
25
37
|
/** The error code. */
|
|
26
38
|
code: string;
|
|
@@ -40,16 +52,25 @@ type Error = {
|
|
|
40
52
|
/** Summary of the problem. */
|
|
41
53
|
title: string;
|
|
42
54
|
};
|
|
55
|
+
/**
|
|
56
|
+
* The error response object describing the error from the handling of an HTTP request.
|
|
57
|
+
*/
|
|
43
58
|
type Errors = {
|
|
44
59
|
/** An array of errors related to the operation. */
|
|
45
60
|
errors?: Error[];
|
|
46
61
|
/** A unique identifier for tracing the error. */
|
|
47
62
|
traceId?: string;
|
|
48
63
|
};
|
|
64
|
+
/**
|
|
65
|
+
* An advanced query filter to be used for complex user querying in the tenant.
|
|
66
|
+
*/
|
|
49
67
|
type Filter = {
|
|
50
68
|
/** The advanced filtering to be applied the query. All conditional statements within this query parameter are case insensitive. */
|
|
51
69
|
filter?: string;
|
|
52
70
|
};
|
|
71
|
+
/**
|
|
72
|
+
* represents a Group document
|
|
73
|
+
*/
|
|
53
74
|
type Group = {
|
|
54
75
|
assignedRoles?: {
|
|
55
76
|
id: string;
|
|
@@ -78,6 +99,9 @@ type Group = {
|
|
|
78
99
|
/** The tenant identifier associated with the given group */
|
|
79
100
|
tenantId: string;
|
|
80
101
|
};
|
|
102
|
+
/**
|
|
103
|
+
* A JSON Patch document.
|
|
104
|
+
*/
|
|
81
105
|
type GroupPatch = {
|
|
82
106
|
/** The operation to be performed. Currently "replace" is the only supported operation. */
|
|
83
107
|
op: "replace";
|
|
@@ -86,6 +110,9 @@ type GroupPatch = {
|
|
|
86
110
|
/** The roles to assign to the group (limit of 100 roles per group). */
|
|
87
111
|
value: AssignedRolesRefIDs | AssignedRolesRefNames;
|
|
88
112
|
};
|
|
113
|
+
/**
|
|
114
|
+
* An array of JSON Patches for a group.
|
|
115
|
+
*/
|
|
89
116
|
type GroupPatchSchema = GroupPatch[];
|
|
90
117
|
type GroupPostSchema = {
|
|
91
118
|
/** The roles to assign to the group (limit of 100 roles per group). */
|
|
@@ -95,6 +122,9 @@ type GroupPostSchema = {
|
|
|
95
122
|
/** The status of the created group within the tenant. Defaults to active if empty. */
|
|
96
123
|
status?: "active";
|
|
97
124
|
};
|
|
125
|
+
/**
|
|
126
|
+
* represents a GroupSetting document
|
|
127
|
+
*/
|
|
98
128
|
type GroupSettings = {
|
|
99
129
|
/** Determines if groups should be created on login. */
|
|
100
130
|
autoCreateGroups: boolean;
|
|
@@ -126,6 +156,9 @@ type GroupSettings = {
|
|
|
126
156
|
/** The unique tenant identifier. */
|
|
127
157
|
tenantId: string;
|
|
128
158
|
};
|
|
159
|
+
/**
|
|
160
|
+
* A result object when listing groups.
|
|
161
|
+
*/
|
|
129
162
|
type Groups = {
|
|
130
163
|
/** An array of groups. */
|
|
131
164
|
data?: Group[];
|
|
@@ -146,6 +179,9 @@ type Groups = {
|
|
|
146
179
|
/** Indicates the total number of matching documents. Will only be returned if the query parameter "totalResults" is true. */
|
|
147
180
|
totalResults?: number;
|
|
148
181
|
};
|
|
182
|
+
/**
|
|
183
|
+
* A JSON Patch document as defined in http://tools.ietf.org/html/rfc6902.
|
|
184
|
+
*/
|
|
149
185
|
type SettingsPatch = {
|
|
150
186
|
/** The operation to be performed. */
|
|
151
187
|
op: "replace";
|
|
@@ -154,6 +190,9 @@ type SettingsPatch = {
|
|
|
154
190
|
/** The value to be used for this operation. */
|
|
155
191
|
value: boolean | AssignedRolesRefIDs | AssignedRolesRefNames;
|
|
156
192
|
};
|
|
193
|
+
/**
|
|
194
|
+
* An array of JSON Patches for the groups settings.
|
|
195
|
+
*/
|
|
157
196
|
type SettingsPatchSchema = SettingsPatch[];
|
|
158
197
|
/**
|
|
159
198
|
* Returns a list of groups with cursor-based pagination.
|
package/groups.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { A as ApiCallOptions } from './global.types-
|
|
1
|
+
import { A as ApiCallOptions } from './global.types-TzVhFPid.js';
|
|
2
2
|
import './auth-types-nnUcWhuU.js';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* An array of role references.
|
|
6
|
+
*/
|
|
4
7
|
type AssignedRoles = {
|
|
5
8
|
/** The unique role identitier */
|
|
6
9
|
id: string;
|
|
@@ -13,14 +16,23 @@ type AssignedRoles = {
|
|
|
13
16
|
/** The type of role */
|
|
14
17
|
readonly type: "default";
|
|
15
18
|
}[];
|
|
19
|
+
/**
|
|
20
|
+
* An array of role reference identifiers.
|
|
21
|
+
*/
|
|
16
22
|
type AssignedRolesRefIDs = {
|
|
17
23
|
/** The unique role identitier */
|
|
18
24
|
id: string;
|
|
19
25
|
}[];
|
|
26
|
+
/**
|
|
27
|
+
* An array of role reference names.
|
|
28
|
+
*/
|
|
20
29
|
type AssignedRolesRefNames = {
|
|
21
30
|
/** The name of the role */
|
|
22
31
|
name: string;
|
|
23
32
|
}[];
|
|
33
|
+
/**
|
|
34
|
+
* An error object describing the error.
|
|
35
|
+
*/
|
|
24
36
|
type Error = {
|
|
25
37
|
/** The error code. */
|
|
26
38
|
code: string;
|
|
@@ -40,16 +52,25 @@ type Error = {
|
|
|
40
52
|
/** Summary of the problem. */
|
|
41
53
|
title: string;
|
|
42
54
|
};
|
|
55
|
+
/**
|
|
56
|
+
* The error response object describing the error from the handling of an HTTP request.
|
|
57
|
+
*/
|
|
43
58
|
type Errors = {
|
|
44
59
|
/** An array of errors related to the operation. */
|
|
45
60
|
errors?: Error[];
|
|
46
61
|
/** A unique identifier for tracing the error. */
|
|
47
62
|
traceId?: string;
|
|
48
63
|
};
|
|
64
|
+
/**
|
|
65
|
+
* An advanced query filter to be used for complex user querying in the tenant.
|
|
66
|
+
*/
|
|
49
67
|
type Filter = {
|
|
50
68
|
/** The advanced filtering to be applied the query. All conditional statements within this query parameter are case insensitive. */
|
|
51
69
|
filter?: string;
|
|
52
70
|
};
|
|
71
|
+
/**
|
|
72
|
+
* represents a Group document
|
|
73
|
+
*/
|
|
53
74
|
type Group = {
|
|
54
75
|
assignedRoles?: {
|
|
55
76
|
id: string;
|
|
@@ -78,6 +99,9 @@ type Group = {
|
|
|
78
99
|
/** The tenant identifier associated with the given group */
|
|
79
100
|
tenantId: string;
|
|
80
101
|
};
|
|
102
|
+
/**
|
|
103
|
+
* A JSON Patch document.
|
|
104
|
+
*/
|
|
81
105
|
type GroupPatch = {
|
|
82
106
|
/** The operation to be performed. Currently "replace" is the only supported operation. */
|
|
83
107
|
op: "replace";
|
|
@@ -86,6 +110,9 @@ type GroupPatch = {
|
|
|
86
110
|
/** The roles to assign to the group (limit of 100 roles per group). */
|
|
87
111
|
value: AssignedRolesRefIDs | AssignedRolesRefNames;
|
|
88
112
|
};
|
|
113
|
+
/**
|
|
114
|
+
* An array of JSON Patches for a group.
|
|
115
|
+
*/
|
|
89
116
|
type GroupPatchSchema = GroupPatch[];
|
|
90
117
|
type GroupPostSchema = {
|
|
91
118
|
/** The roles to assign to the group (limit of 100 roles per group). */
|
|
@@ -95,6 +122,9 @@ type GroupPostSchema = {
|
|
|
95
122
|
/** The status of the created group within the tenant. Defaults to active if empty. */
|
|
96
123
|
status?: "active";
|
|
97
124
|
};
|
|
125
|
+
/**
|
|
126
|
+
* represents a GroupSetting document
|
|
127
|
+
*/
|
|
98
128
|
type GroupSettings = {
|
|
99
129
|
/** Determines if groups should be created on login. */
|
|
100
130
|
autoCreateGroups: boolean;
|
|
@@ -126,6 +156,9 @@ type GroupSettings = {
|
|
|
126
156
|
/** The unique tenant identifier. */
|
|
127
157
|
tenantId: string;
|
|
128
158
|
};
|
|
159
|
+
/**
|
|
160
|
+
* A result object when listing groups.
|
|
161
|
+
*/
|
|
129
162
|
type Groups = {
|
|
130
163
|
/** An array of groups. */
|
|
131
164
|
data?: Group[];
|
|
@@ -146,6 +179,9 @@ type Groups = {
|
|
|
146
179
|
/** Indicates the total number of matching documents. Will only be returned if the query parameter "totalResults" is true. */
|
|
147
180
|
totalResults?: number;
|
|
148
181
|
};
|
|
182
|
+
/**
|
|
183
|
+
* A JSON Patch document as defined in http://tools.ietf.org/html/rfc6902.
|
|
184
|
+
*/
|
|
149
185
|
type SettingsPatch = {
|
|
150
186
|
/** The operation to be performed. */
|
|
151
187
|
op: "replace";
|
|
@@ -154,6 +190,9 @@ type SettingsPatch = {
|
|
|
154
190
|
/** The value to be used for this operation. */
|
|
155
191
|
value: boolean | AssignedRolesRefIDs | AssignedRolesRefNames;
|
|
156
192
|
};
|
|
193
|
+
/**
|
|
194
|
+
* An array of JSON Patches for the groups settings.
|
|
195
|
+
*/
|
|
157
196
|
type SettingsPatchSchema = SettingsPatch[];
|
|
158
197
|
/**
|
|
159
198
|
* Returns a list of groups with cursor-based pagination.
|
package/groups.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./
|
|
6
|
-
require('./
|
|
4
|
+
var _QMWU5E4Djs = require('./chunks/QMWU5E4D.js');
|
|
5
|
+
require('./chunks/FG5GDUSZ.js');
|
|
6
|
+
require('./chunks/4HB3TAEO.js');
|
|
7
7
|
|
|
8
8
|
// src/public/rest/groups.ts
|
|
9
|
-
var getGroups = async (query, options) =>
|
|
9
|
+
var getGroups = async (query, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "groups", {
|
|
10
10
|
method: "get",
|
|
11
11
|
pathTemplate: "/api/v1/groups",
|
|
12
12
|
query,
|
|
13
13
|
options
|
|
14
14
|
});
|
|
15
|
-
var createGroup = async (body, options) =>
|
|
15
|
+
var createGroup = async (body, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "groups", {
|
|
16
16
|
method: "post",
|
|
17
17
|
pathTemplate: "/api/v1/groups",
|
|
18
18
|
body,
|
|
19
19
|
contentType: "application/json",
|
|
20
20
|
options
|
|
21
21
|
});
|
|
22
|
-
var filterGroups = async (query, body, options) =>
|
|
22
|
+
var filterGroups = async (query, body, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "groups", {
|
|
23
23
|
method: "post",
|
|
24
24
|
pathTemplate: "/api/v1/groups/actions/filter",
|
|
25
25
|
query,
|
|
@@ -27,31 +27,31 @@ var filterGroups = async (query, body, options) => _chunkEALMXU6Sjs.invokeFetch.
|
|
|
27
27
|
contentType: "application/json",
|
|
28
28
|
options
|
|
29
29
|
});
|
|
30
|
-
var getGroupsSettings = async (options) =>
|
|
30
|
+
var getGroupsSettings = async (options) => _QMWU5E4Djs.invokeFetch.call(void 0, "groups", {
|
|
31
31
|
method: "get",
|
|
32
32
|
pathTemplate: "/api/v1/groups/settings",
|
|
33
33
|
options
|
|
34
34
|
});
|
|
35
|
-
var patchGroupsSettings = async (body, options) =>
|
|
35
|
+
var patchGroupsSettings = async (body, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "groups", {
|
|
36
36
|
method: "patch",
|
|
37
37
|
pathTemplate: "/api/v1/groups/settings",
|
|
38
38
|
body,
|
|
39
39
|
contentType: "application/json",
|
|
40
40
|
options
|
|
41
41
|
});
|
|
42
|
-
var deleteGroup = async (groupId, options) =>
|
|
42
|
+
var deleteGroup = async (groupId, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "groups", {
|
|
43
43
|
method: "delete",
|
|
44
44
|
pathTemplate: "/api/v1/groups/{groupId}",
|
|
45
45
|
pathVariables: { groupId },
|
|
46
46
|
options
|
|
47
47
|
});
|
|
48
|
-
var getGroup = async (groupId, options) =>
|
|
48
|
+
var getGroup = async (groupId, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "groups", {
|
|
49
49
|
method: "get",
|
|
50
50
|
pathTemplate: "/api/v1/groups/{groupId}",
|
|
51
51
|
pathVariables: { groupId },
|
|
52
52
|
options
|
|
53
53
|
});
|
|
54
|
-
var patchGroup = async (groupId, body, options) =>
|
|
54
|
+
var patchGroup = async (groupId, body, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "groups", {
|
|
55
55
|
method: "patch",
|
|
56
56
|
pathTemplate: "/api/v1/groups/{groupId}",
|
|
57
57
|
pathVariables: { groupId },
|
|
@@ -60,7 +60,7 @@ var patchGroup = async (groupId, body, options) => _chunkEALMXU6Sjs.invokeFetch.
|
|
|
60
60
|
options
|
|
61
61
|
});
|
|
62
62
|
function clearCache() {
|
|
63
|
-
return
|
|
63
|
+
return _QMWU5E4Djs.clearApiCache.call(void 0, "groups");
|
|
64
64
|
}
|
|
65
65
|
var groupsExport = {
|
|
66
66
|
getGroups,
|
package/groups.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearApiCache,
|
|
3
3
|
invokeFetch
|
|
4
|
-
} from "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
4
|
+
} from "./chunks/HWZC3PIL.mjs";
|
|
5
|
+
import "./chunks/O5POHH2Q.mjs";
|
|
6
|
+
import "./chunks/VSY5YIQY.mjs";
|
|
7
7
|
|
|
8
8
|
// src/public/rest/groups.ts
|
|
9
9
|
var getGroups = async (query, options) => invokeFetch("groups", {
|
package/identity-providers.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ApiCallOptions } from './global.types-
|
|
1
|
+
import { A as ApiCallOptions } from './global.types-5iFvFJvX.mjs';
|
|
2
2
|
import './auth-types-nnUcWhuU.mjs';
|
|
3
3
|
|
|
4
4
|
type BaseIDP = {
|
|
@@ -26,6 +26,9 @@ type BaseIDP = {
|
|
|
26
26
|
/** The tenant identifiers associated with the given IdP. */
|
|
27
27
|
tenantIds?: string[];
|
|
28
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Payload for creating an identity provider using JWT authentication.
|
|
31
|
+
*/
|
|
29
32
|
type CreateJWTAuthPayload = {
|
|
30
33
|
/** There can be clock skew between the IdP and Qlik's login server, in these cases a tolerance can be set, decimals will be rounded off. */
|
|
31
34
|
clockToleranceSec?: number;
|
|
@@ -49,6 +52,9 @@ type CreateJWTAuthPayload = {
|
|
|
49
52
|
/** The tenant identifiers that map to the given IdP. */
|
|
50
53
|
tenantIds?: string[];
|
|
51
54
|
};
|
|
55
|
+
/**
|
|
56
|
+
* Payload for creating an OIDC-compatible identity provider.
|
|
57
|
+
*/
|
|
52
58
|
type CreateOIDCPayload = {
|
|
53
59
|
/** There can be clock skew between the IdP and Qlik's login server. In these cases, a tolerance can be set, decimals will be rounded off. */
|
|
54
60
|
clockToleranceSec?: number;
|
|
@@ -106,6 +112,9 @@ type CreateOIDCPayload = {
|
|
|
106
112
|
/** The tenant identifiers that map to the given IdP. */
|
|
107
113
|
tenantIds?: string[];
|
|
108
114
|
};
|
|
115
|
+
/**
|
|
116
|
+
* An error object.
|
|
117
|
+
*/
|
|
109
118
|
type Error = {
|
|
110
119
|
/** The error code. */
|
|
111
120
|
code: string;
|
|
@@ -125,6 +134,9 @@ type Error = {
|
|
|
125
134
|
/** Summary of the problem. */
|
|
126
135
|
title: string;
|
|
127
136
|
};
|
|
137
|
+
/**
|
|
138
|
+
* A representation of the errors encountered from the HTTP request.
|
|
139
|
+
*/
|
|
128
140
|
type Errors = {
|
|
129
141
|
errors?: Error[];
|
|
130
142
|
};
|
|
@@ -135,6 +147,9 @@ type IDPArray = {
|
|
|
135
147
|
/** Contains pagination links. */
|
|
136
148
|
links?: Links;
|
|
137
149
|
};
|
|
150
|
+
/**
|
|
151
|
+
* An identity provider for JWT authentication.
|
|
152
|
+
*/
|
|
138
153
|
type IDPJWTAuth = BaseIDP & {
|
|
139
154
|
options?: {
|
|
140
155
|
/** The expected JWT issuer */
|
|
@@ -153,6 +168,9 @@ type IDPMeta = {
|
|
|
153
168
|
/** A link to direct you to where you can manage your Qlik account. Only available if the default identity provider is used (no custom interactive identity providers are active). */
|
|
154
169
|
userPortalLink?: string;
|
|
155
170
|
};
|
|
171
|
+
/**
|
|
172
|
+
* An OIDC-compliant identity provider.
|
|
173
|
+
*/
|
|
156
174
|
type IDPOIDC = BaseIDP & {
|
|
157
175
|
options?: IDPOptions;
|
|
158
176
|
pendingOptions?: IDPOptions;
|
|
@@ -184,7 +202,13 @@ type IDPOptions = {
|
|
|
184
202
|
};
|
|
185
203
|
type IDPPatchSchema = PatchOIDCPayload[] | PatchJWTAuthPayload[];
|
|
186
204
|
type IDPPostSchema = CreateOIDCPayload | CreateJWTAuthPayload;
|
|
205
|
+
/**
|
|
206
|
+
* The protocol to be used for communicating with the identity provider. Valid values are `OIDC`, `jwtAuth`, and `qsefw-local-bearer-token`.
|
|
207
|
+
*/
|
|
187
208
|
type IDPProtocol = "OIDC" | "jwtAuth" | "qsefw-local-bearer-token";
|
|
209
|
+
/**
|
|
210
|
+
* The identity provider to be used. If protocol is `OIDC`, the valid values are `auth0`, `okta`, `generic`, `salesforce`, `keycloak`, `adfs`, and `azureAD`. If protocol is `jwtAuth`, the valid value is `external`.
|
|
211
|
+
*/
|
|
188
212
|
type IDPProvider = "auth0" | "okta" | "qlik" | "generic" | "salesforce" | "keycloak" | "adfs" | "external" | "azureAD";
|
|
189
213
|
type IDPsStatus = {
|
|
190
214
|
/** The number of active interactive IdPs. */
|
|
@@ -199,6 +223,9 @@ type IDPsStatus = {
|
|
|
199
223
|
provider?: IDPProvider;
|
|
200
224
|
}[];
|
|
201
225
|
};
|
|
226
|
+
/**
|
|
227
|
+
* Contains pagination links.
|
|
228
|
+
*/
|
|
202
229
|
type Links = {
|
|
203
230
|
next?: {
|
|
204
231
|
/** Link to the next page of items. */
|
|
@@ -213,6 +240,9 @@ type Links = {
|
|
|
213
240
|
href?: string;
|
|
214
241
|
};
|
|
215
242
|
};
|
|
243
|
+
/**
|
|
244
|
+
* OpenID configuration
|
|
245
|
+
*/
|
|
216
246
|
type OpenIDConfiguration = {
|
|
217
247
|
/** OAuth 2.0 Authorization Endpoint */
|
|
218
248
|
authorization_endpoint: string;
|
|
@@ -229,6 +259,9 @@ type OpenIDConfiguration = {
|
|
|
229
259
|
/** URL of the OP's UserInfo Endpoint */
|
|
230
260
|
userinfo_endpoint?: string;
|
|
231
261
|
};
|
|
262
|
+
/**
|
|
263
|
+
* A patch request for an identity provider using the `jwtAuth` protocol.
|
|
264
|
+
*/
|
|
232
265
|
type PatchJWTAuthPayload = {
|
|
233
266
|
/** The "operation" to be performed on a given IdP. */
|
|
234
267
|
op: "replace";
|
|
@@ -237,6 +270,9 @@ type PatchJWTAuthPayload = {
|
|
|
237
270
|
/** The "value" data type is dependent on the path value being used. */
|
|
238
271
|
value?: unknown;
|
|
239
272
|
};
|
|
273
|
+
/**
|
|
274
|
+
* A patch request for an identity provider using the `OIDC` protocol.
|
|
275
|
+
*/
|
|
240
276
|
type PatchOIDCPayload = {
|
|
241
277
|
/** The "operation" to be performed on a given IdP. Currently supports a custom operation value called "promote-options" that allows the test configuration to be promoted to the current configuration used for login. */
|
|
242
278
|
op: "replace" | "promote-options";
|
|
@@ -265,6 +301,9 @@ type PendingResult = {
|
|
|
265
301
|
/** The status of the IdP configuration being tested. */
|
|
266
302
|
status: "success" | "pending" | "error" | "claimsError" | "callbackError" | "tokenError" | "protocolError" | "networkError" | "configChangedDuringTestError";
|
|
267
303
|
};
|
|
304
|
+
/**
|
|
305
|
+
* Mappings from claim name to an array of JSON pointers that point to locations in the claims from the IdP to retrieve the value from.
|
|
306
|
+
*/
|
|
268
307
|
type ClaimsMappingInteractive = {
|
|
269
308
|
/** A list of JSON pointers used to map the user's client ID. */
|
|
270
309
|
client_id?: string[];
|
|
@@ -285,6 +324,9 @@ type ClaimsMappingInteractive = {
|
|
|
285
324
|
/** A list of JSON pointers used to map the user's zoneinfo. */
|
|
286
325
|
zoneinfo?: string[];
|
|
287
326
|
};
|
|
327
|
+
/**
|
|
328
|
+
* Mappings from claim name to an array of JSON pointers that point to locations in the claims from the IdP to retrieve the value from.
|
|
329
|
+
*/
|
|
288
330
|
type ClaimsMappingNonInteractive = {
|
|
289
331
|
/** A list of JSON pointers used to map the user's client ID. */
|
|
290
332
|
client_id?: string[];
|
package/identity-providers.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ApiCallOptions } from './global.types-
|
|
1
|
+
import { A as ApiCallOptions } from './global.types-TzVhFPid.js';
|
|
2
2
|
import './auth-types-nnUcWhuU.js';
|
|
3
3
|
|
|
4
4
|
type BaseIDP = {
|
|
@@ -26,6 +26,9 @@ type BaseIDP = {
|
|
|
26
26
|
/** The tenant identifiers associated with the given IdP. */
|
|
27
27
|
tenantIds?: string[];
|
|
28
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Payload for creating an identity provider using JWT authentication.
|
|
31
|
+
*/
|
|
29
32
|
type CreateJWTAuthPayload = {
|
|
30
33
|
/** There can be clock skew between the IdP and Qlik's login server, in these cases a tolerance can be set, decimals will be rounded off. */
|
|
31
34
|
clockToleranceSec?: number;
|
|
@@ -49,6 +52,9 @@ type CreateJWTAuthPayload = {
|
|
|
49
52
|
/** The tenant identifiers that map to the given IdP. */
|
|
50
53
|
tenantIds?: string[];
|
|
51
54
|
};
|
|
55
|
+
/**
|
|
56
|
+
* Payload for creating an OIDC-compatible identity provider.
|
|
57
|
+
*/
|
|
52
58
|
type CreateOIDCPayload = {
|
|
53
59
|
/** There can be clock skew between the IdP and Qlik's login server. In these cases, a tolerance can be set, decimals will be rounded off. */
|
|
54
60
|
clockToleranceSec?: number;
|
|
@@ -106,6 +112,9 @@ type CreateOIDCPayload = {
|
|
|
106
112
|
/** The tenant identifiers that map to the given IdP. */
|
|
107
113
|
tenantIds?: string[];
|
|
108
114
|
};
|
|
115
|
+
/**
|
|
116
|
+
* An error object.
|
|
117
|
+
*/
|
|
109
118
|
type Error = {
|
|
110
119
|
/** The error code. */
|
|
111
120
|
code: string;
|
|
@@ -125,6 +134,9 @@ type Error = {
|
|
|
125
134
|
/** Summary of the problem. */
|
|
126
135
|
title: string;
|
|
127
136
|
};
|
|
137
|
+
/**
|
|
138
|
+
* A representation of the errors encountered from the HTTP request.
|
|
139
|
+
*/
|
|
128
140
|
type Errors = {
|
|
129
141
|
errors?: Error[];
|
|
130
142
|
};
|
|
@@ -135,6 +147,9 @@ type IDPArray = {
|
|
|
135
147
|
/** Contains pagination links. */
|
|
136
148
|
links?: Links;
|
|
137
149
|
};
|
|
150
|
+
/**
|
|
151
|
+
* An identity provider for JWT authentication.
|
|
152
|
+
*/
|
|
138
153
|
type IDPJWTAuth = BaseIDP & {
|
|
139
154
|
options?: {
|
|
140
155
|
/** The expected JWT issuer */
|
|
@@ -153,6 +168,9 @@ type IDPMeta = {
|
|
|
153
168
|
/** A link to direct you to where you can manage your Qlik account. Only available if the default identity provider is used (no custom interactive identity providers are active). */
|
|
154
169
|
userPortalLink?: string;
|
|
155
170
|
};
|
|
171
|
+
/**
|
|
172
|
+
* An OIDC-compliant identity provider.
|
|
173
|
+
*/
|
|
156
174
|
type IDPOIDC = BaseIDP & {
|
|
157
175
|
options?: IDPOptions;
|
|
158
176
|
pendingOptions?: IDPOptions;
|
|
@@ -184,7 +202,13 @@ type IDPOptions = {
|
|
|
184
202
|
};
|
|
185
203
|
type IDPPatchSchema = PatchOIDCPayload[] | PatchJWTAuthPayload[];
|
|
186
204
|
type IDPPostSchema = CreateOIDCPayload | CreateJWTAuthPayload;
|
|
205
|
+
/**
|
|
206
|
+
* The protocol to be used for communicating with the identity provider. Valid values are `OIDC`, `jwtAuth`, and `qsefw-local-bearer-token`.
|
|
207
|
+
*/
|
|
187
208
|
type IDPProtocol = "OIDC" | "jwtAuth" | "qsefw-local-bearer-token";
|
|
209
|
+
/**
|
|
210
|
+
* The identity provider to be used. If protocol is `OIDC`, the valid values are `auth0`, `okta`, `generic`, `salesforce`, `keycloak`, `adfs`, and `azureAD`. If protocol is `jwtAuth`, the valid value is `external`.
|
|
211
|
+
*/
|
|
188
212
|
type IDPProvider = "auth0" | "okta" | "qlik" | "generic" | "salesforce" | "keycloak" | "adfs" | "external" | "azureAD";
|
|
189
213
|
type IDPsStatus = {
|
|
190
214
|
/** The number of active interactive IdPs. */
|
|
@@ -199,6 +223,9 @@ type IDPsStatus = {
|
|
|
199
223
|
provider?: IDPProvider;
|
|
200
224
|
}[];
|
|
201
225
|
};
|
|
226
|
+
/**
|
|
227
|
+
* Contains pagination links.
|
|
228
|
+
*/
|
|
202
229
|
type Links = {
|
|
203
230
|
next?: {
|
|
204
231
|
/** Link to the next page of items. */
|
|
@@ -213,6 +240,9 @@ type Links = {
|
|
|
213
240
|
href?: string;
|
|
214
241
|
};
|
|
215
242
|
};
|
|
243
|
+
/**
|
|
244
|
+
* OpenID configuration
|
|
245
|
+
*/
|
|
216
246
|
type OpenIDConfiguration = {
|
|
217
247
|
/** OAuth 2.0 Authorization Endpoint */
|
|
218
248
|
authorization_endpoint: string;
|
|
@@ -229,6 +259,9 @@ type OpenIDConfiguration = {
|
|
|
229
259
|
/** URL of the OP's UserInfo Endpoint */
|
|
230
260
|
userinfo_endpoint?: string;
|
|
231
261
|
};
|
|
262
|
+
/**
|
|
263
|
+
* A patch request for an identity provider using the `jwtAuth` protocol.
|
|
264
|
+
*/
|
|
232
265
|
type PatchJWTAuthPayload = {
|
|
233
266
|
/** The "operation" to be performed on a given IdP. */
|
|
234
267
|
op: "replace";
|
|
@@ -237,6 +270,9 @@ type PatchJWTAuthPayload = {
|
|
|
237
270
|
/** The "value" data type is dependent on the path value being used. */
|
|
238
271
|
value?: unknown;
|
|
239
272
|
};
|
|
273
|
+
/**
|
|
274
|
+
* A patch request for an identity provider using the `OIDC` protocol.
|
|
275
|
+
*/
|
|
240
276
|
type PatchOIDCPayload = {
|
|
241
277
|
/** The "operation" to be performed on a given IdP. Currently supports a custom operation value called "promote-options" that allows the test configuration to be promoted to the current configuration used for login. */
|
|
242
278
|
op: "replace" | "promote-options";
|
|
@@ -265,6 +301,9 @@ type PendingResult = {
|
|
|
265
301
|
/** The status of the IdP configuration being tested. */
|
|
266
302
|
status: "success" | "pending" | "error" | "claimsError" | "callbackError" | "tokenError" | "protocolError" | "networkError" | "configChangedDuringTestError";
|
|
267
303
|
};
|
|
304
|
+
/**
|
|
305
|
+
* Mappings from claim name to an array of JSON pointers that point to locations in the claims from the IdP to retrieve the value from.
|
|
306
|
+
*/
|
|
268
307
|
type ClaimsMappingInteractive = {
|
|
269
308
|
/** A list of JSON pointers used to map the user's client ID. */
|
|
270
309
|
client_id?: string[];
|
|
@@ -285,6 +324,9 @@ type ClaimsMappingInteractive = {
|
|
|
285
324
|
/** A list of JSON pointers used to map the user's zoneinfo. */
|
|
286
325
|
zoneinfo?: string[];
|
|
287
326
|
};
|
|
327
|
+
/**
|
|
328
|
+
* Mappings from claim name to an array of JSON pointers that point to locations in the claims from the IdP to retrieve the value from.
|
|
329
|
+
*/
|
|
288
330
|
type ClaimsMappingNonInteractive = {
|
|
289
331
|
/** A list of JSON pointers used to map the user's client ID. */
|
|
290
332
|
client_id?: string[];
|
package/identity-providers.js
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./
|
|
6
|
-
require('./
|
|
4
|
+
var _QMWU5E4Djs = require('./chunks/QMWU5E4D.js');
|
|
5
|
+
require('./chunks/FG5GDUSZ.js');
|
|
6
|
+
require('./chunks/4HB3TAEO.js');
|
|
7
7
|
|
|
8
8
|
// src/public/rest/identity-providers.ts
|
|
9
|
-
var getIdps = async (query, options) =>
|
|
9
|
+
var getIdps = async (query, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "identity-providers", {
|
|
10
10
|
method: "get",
|
|
11
11
|
pathTemplate: "/api/v1/identity-providers",
|
|
12
12
|
query,
|
|
13
13
|
options
|
|
14
14
|
});
|
|
15
|
-
var createIdp = async (body, options) =>
|
|
15
|
+
var createIdp = async (body, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "identity-providers", {
|
|
16
16
|
method: "post",
|
|
17
17
|
pathTemplate: "/api/v1/identity-providers",
|
|
18
18
|
body,
|
|
19
19
|
contentType: "application/json",
|
|
20
20
|
options
|
|
21
21
|
});
|
|
22
|
-
var getIdpWellKnownMetaData = async (options) =>
|
|
22
|
+
var getIdpWellKnownMetaData = async (options) => _QMWU5E4Djs.invokeFetch.call(void 0, "identity-providers", {
|
|
23
23
|
method: "get",
|
|
24
24
|
pathTemplate: "/api/v1/identity-providers/.well-known/metadata.json",
|
|
25
25
|
options
|
|
26
26
|
});
|
|
27
|
-
var getMyIdpMeta = async (options) =>
|
|
27
|
+
var getMyIdpMeta = async (options) => _QMWU5E4Djs.invokeFetch.call(void 0, "identity-providers", {
|
|
28
28
|
method: "get",
|
|
29
29
|
pathTemplate: "/api/v1/identity-providers/me/meta",
|
|
30
30
|
options
|
|
31
31
|
});
|
|
32
|
-
var getIdpStatuses = async (options) =>
|
|
32
|
+
var getIdpStatuses = async (options) => _QMWU5E4Djs.invokeFetch.call(void 0, "identity-providers", {
|
|
33
33
|
method: "get",
|
|
34
34
|
pathTemplate: "/api/v1/identity-providers/status",
|
|
35
35
|
options
|
|
36
36
|
});
|
|
37
|
-
var deleteIdp = async (id, options) =>
|
|
37
|
+
var deleteIdp = async (id, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "identity-providers", {
|
|
38
38
|
method: "delete",
|
|
39
39
|
pathTemplate: "/api/v1/identity-providers/{id}",
|
|
40
40
|
pathVariables: { id },
|
|
41
41
|
options
|
|
42
42
|
});
|
|
43
|
-
var getIdp = async (id, options) =>
|
|
43
|
+
var getIdp = async (id, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "identity-providers", {
|
|
44
44
|
method: "get",
|
|
45
45
|
pathTemplate: "/api/v1/identity-providers/{id}",
|
|
46
46
|
pathVariables: { id },
|
|
47
47
|
options
|
|
48
48
|
});
|
|
49
|
-
var patchIdp = async (id, body, options) =>
|
|
49
|
+
var patchIdp = async (id, body, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "identity-providers", {
|
|
50
50
|
method: "patch",
|
|
51
51
|
pathTemplate: "/api/v1/identity-providers/{id}",
|
|
52
52
|
pathVariables: { id },
|
|
@@ -55,7 +55,7 @@ var patchIdp = async (id, body, options) => _chunkEALMXU6Sjs.invokeFetch.call(vo
|
|
|
55
55
|
options
|
|
56
56
|
});
|
|
57
57
|
function clearCache() {
|
|
58
|
-
return
|
|
58
|
+
return _QMWU5E4Djs.clearApiCache.call(void 0, "identity-providers");
|
|
59
59
|
}
|
|
60
60
|
var identityProvidersExport = {
|
|
61
61
|
getIdps,
|
package/identity-providers.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearApiCache,
|
|
3
3
|
invokeFetch
|
|
4
|
-
} from "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
4
|
+
} from "./chunks/HWZC3PIL.mjs";
|
|
5
|
+
import "./chunks/O5POHH2Q.mjs";
|
|
6
|
+
import "./chunks/VSY5YIQY.mjs";
|
|
7
7
|
|
|
8
8
|
// src/public/rest/identity-providers.ts
|
|
9
9
|
var getIdps = async (query, options) => invokeFetch("identity-providers", {
|