@qlik/api 2.2.0 → 2.3.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/analytics/change-stores.d.ts +386 -0
- package/analytics/change-stores.js +123 -0
- package/analytics.d.ts +14 -0
- package/analytics.js +13 -0
- package/api-keys.d.ts +362 -3
- package/api-keys.js +2 -3
- package/apps.d.ts +2673 -3
- package/apps.js +2 -3
- package/assistants.d.ts +1370 -3
- package/assistants.js +2 -3
- package/audits.d.ts +318 -3
- package/audits.js +4 -4
- package/auth-types.d.ts +1 -1
- package/auth-types.js +1 -2
- package/auth.d.ts +94 -2
- package/auth.js +63 -3
- package/automation-connections.d.ts +366 -3
- package/automation-connections.js +2 -3
- package/automation-connectors.d.ts +84 -3
- package/automation-connectors.js +2 -3
- package/automations.d.ts +805 -3
- package/automations.js +2 -3
- package/automl-deployments.d.ts +101 -3
- package/automl-deployments.js +2 -3
- package/automl-predictions.d.ts +238 -3
- package/automl-predictions.js +2 -3
- package/banners.d.ts +184 -3
- package/banners.js +2 -3
- package/brands.d.ts +670 -3
- package/brands.js +2 -3
- package/chunks/auth-XusKk8IA.js +32 -0
- package/chunks/{chunk-EtTptKIv.js → chunk-D3vHIbds.js} +2 -2
- package/chunks/{dist-gXLIqDJW.js → dist-n3iOVn1W.js} +4 -4
- package/chunks/{auth-functions-BmZgZYSs.js → interceptors-2VSXImC9.js} +498 -146
- package/chunks/{invoke-fetch-PcVIxLW4.js → invoke-fetch-CckTK7bh.js} +3 -3
- package/chunks/{invoke-fetch-CucBpA1C.js → invoke-fetch-D9lpiAb-.js} +1 -5
- package/chunks/{public-runtime-modules-Dwjzb3l8.js → public-runtime-modules-BqxAMJ9M.js} +7 -7
- package/chunks/{qix-DI5o5XF4.d.ts → qix-CrqXv44x.d.ts} +6 -2
- package/chunks/{qix-DjxuPCX0.js → qix-DpvHvpx7.js} +11 -10
- package/chunks/{qix-chunk-entrypoint-tmTo-kpa.js → qix-chunk-entrypoint-BXZPnE6J.js} +48 -50
- package/collections.d.ts +582 -3
- package/collections.js +2 -3
- package/conditions.d.ts +662 -3
- package/conditions.js +2 -3
- package/consumption.d.ts +182 -3
- package/consumption.js +2 -3
- package/core/ip-policies.d.ts +328 -4
- package/core/ip-policies.js +108 -5
- package/core.d.ts +13 -4
- package/core.js +3 -4
- package/csp-origins.d.ts +273 -3
- package/csp-origins.js +2 -3
- package/csrf-token.d.ts +62 -3
- package/csrf-token.js +2 -3
- package/data-alerts.d.ts +1004 -3
- package/data-alerts.js +2 -3
- package/data-assets.d.ts +207 -3
- package/data-assets.js +2 -3
- package/data-connections.d.ts +678 -3
- package/data-connections.js +2 -3
- package/data-credentials.d.ts +292 -3
- package/data-credentials.js +2 -3
- package/data-files.d.ts +860 -3
- package/data-files.js +2 -3
- package/data-qualities.d.ts +175 -3
- package/data-qualities.js +2 -3
- package/data-sets.d.ts +424 -3
- package/data-sets.js +2 -3
- package/data-sources.d.ts +348 -3
- package/data-sources.js +2 -3
- package/data-stores.d.ts +537 -3
- package/data-stores.js +2 -3
- package/dcaas.d.ts +192 -3
- package/dcaas.js +2 -3
- package/di-projects.d.ts +812 -4
- package/di-projects.js +25 -4
- package/direct-access-agents.d.ts +710 -4
- package/direct-access-agents.js +37 -5
- package/docs/authentication.md +1 -1
- package/encryption.d.ts +372 -3
- package/encryption.js +2 -3
- package/extensions.d.ts +295 -3
- package/extensions.js +2 -3
- package/global-types.d.ts +1 -1
- package/global-types.js +0 -2
- package/glossaries.d.ts +1223 -3
- package/glossaries.js +2 -3
- package/groups.d.ts +510 -3
- package/groups.js +2 -3
- package/identity-providers.d.ts +711 -3
- package/identity-providers.js +2 -3
- package/index.d.ts +78 -69
- package/index.js +28 -10
- package/interceptors.d.ts +52 -3
- package/interceptors.js +1 -2
- package/invoke-fetch-types.d.ts +1 -1
- package/items.d.ts +536 -3
- package/items.js +2 -3
- package/knowledgebases.d.ts +976 -3
- package/knowledgebases.js +2 -3
- package/licenses.d.ts +663 -3
- package/licenses.js +2 -3
- package/lineage-graphs.d.ts +704 -3
- package/lineage-graphs.js +2 -3
- package/ml.d.ts +2808 -3
- package/ml.js +2 -3
- package/notes.d.ts +110 -3
- package/notes.js +2 -3
- package/notifications.d.ts +98 -3
- package/notifications.js +2 -3
- package/oauth-callback.iife.js +1151 -0
- package/oauth-clients.d.ts +562 -3
- package/oauth-clients.js +2 -3
- package/oauth-tokens.d.ts +126 -3
- package/oauth-tokens.js +2 -3
- package/package.json +5 -4
- package/qix.d.ts +3 -3
- package/qix.js +38 -3
- package/questions.d.ts +364 -3
- package/questions.js +2 -3
- package/quotas.d.ts +112 -3
- package/quotas.js +2 -3
- package/reload-tasks.d.ts +249 -3
- package/reload-tasks.js +2 -3
- package/reloads.d.ts +260 -3
- package/reloads.js +2 -3
- package/report-templates.d.ts +287 -3
- package/report-templates.js +2 -3
- package/reports.d.ts +863 -3
- package/reports.js +2 -3
- package/roles.d.ts +312 -3
- package/roles.js +2 -3
- package/sharing-tasks.d.ts +1164 -3
- package/sharing-tasks.js +2 -3
- package/spaces.d.ts +779 -3
- package/spaces.js +2 -3
- package/tasks.d.ts +564 -3
- package/tasks.js +2 -3
- package/temp-contents.d.ts +167 -3
- package/temp-contents.js +2 -3
- package/tenants.d.ts +360 -3
- package/tenants.js +2 -3
- package/themes.d.ts +270 -3
- package/themes.js +2 -3
- package/transports.d.ts +435 -4
- package/transports.js +20 -5
- package/ui-config.d.ts +274 -3
- package/ui-config.js +2 -3
- package/users.d.ts +674 -3
- package/users.js +2 -3
- package/web-integrations.d.ts +294 -3
- package/web-integrations.js +2 -3
- package/web-notifications.d.ts +273 -3
- package/web-notifications.js +2 -3
- package/webhooks.d.ts +505 -3
- package/webhooks.js +2 -3
- package/chunks/api-keys-D6Rqaov4.d.ts +0 -365
- package/chunks/apps-BwpXUGDb.d.ts +0 -2673
- package/chunks/assistants-wh6Qe7l6.d.ts +0 -1366
- package/chunks/audits-DakwzT97.d.ts +0 -316
- package/chunks/auth-6mptVm5Q.d.ts +0 -95
- package/chunks/auth-Cle0_tmz.js +0 -32
- package/chunks/auth-D11iO7ZV.js +0 -65
- package/chunks/automation-connections-k2G_n9rj.d.ts +0 -366
- package/chunks/automation-connectors-J5OE-1P0.d.ts +0 -84
- package/chunks/automations-BGy83EBO.d.ts +0 -797
- package/chunks/automl-deployments-CWEpX2pk.d.ts +0 -101
- package/chunks/automl-predictions-BNIjRhBm.d.ts +0 -238
- package/chunks/banners-CgBRnZGv.d.ts +0 -184
- package/chunks/brands-DCgk6Gqx.d.ts +0 -671
- package/chunks/collections-BpYjcpIY.d.ts +0 -582
- package/chunks/conditions-CJJG7Uph.d.ts +0 -662
- package/chunks/consumption-DerFk437.d.ts +0 -182
- package/chunks/core-DQXNZdnf.d.ts +0 -12
- package/chunks/csp-origins-3NJlh_n9.d.ts +0 -273
- package/chunks/csrf-token-DoaoOQzH.d.ts +0 -63
- package/chunks/data-alerts-CILSEFbQ.d.ts +0 -1004
- package/chunks/data-assets-CJDcssoX.d.ts +0 -207
- package/chunks/data-connections-VSB13K6g.d.ts +0 -678
- package/chunks/data-credentials-ChEp_hyU.d.ts +0 -292
- package/chunks/data-files-CVzn9M6V.d.ts +0 -860
- package/chunks/data-qualities-DBrot957.d.ts +0 -176
- package/chunks/data-sets-CFzxgWnO.d.ts +0 -424
- package/chunks/data-sources-IsAaof_C.d.ts +0 -346
- package/chunks/data-stores-DFOPdgfz.d.ts +0 -537
- package/chunks/dcaas-qyv7YlrN.d.ts +0 -192
- package/chunks/di-projects-DVQTxASr.d.ts +0 -777
- package/chunks/direct-access-agents-B77OhzZi.d.ts +0 -580
- package/chunks/encryption-BjA6xbCO.d.ts +0 -372
- package/chunks/extensions-OO0WtInj.d.ts +0 -294
- package/chunks/glossaries-CIX7-KT_.d.ts +0 -1213
- package/chunks/groups-C86-UG7S.d.ts +0 -511
- package/chunks/identity-providers-h0dKNxGZ.d.ts +0 -711
- package/chunks/interceptors-Csx2tEi5.d.ts +0 -52
- package/chunks/interceptors-DTYm37AU.js +0 -104
- package/chunks/ip-policies-CKRIlbP7.d.ts +0 -327
- package/chunks/ip-policies-DXlf172B.js +0 -108
- package/chunks/items-C-jzqvFW.d.ts +0 -536
- package/chunks/knowledgebases-CyQtVcZN.d.ts +0 -977
- package/chunks/licenses-xzjnkitW.d.ts +0 -663
- package/chunks/lineage-graphs-CViCCzKy.d.ts +0 -697
- package/chunks/ml-Abt2MUva.d.ts +0 -2809
- package/chunks/notes-BZxuyDgt.d.ts +0 -111
- package/chunks/notifications-Bd_gp4jU.d.ts +0 -99
- package/chunks/oauth-clients-B5QPr4IM.d.ts +0 -563
- package/chunks/oauth-tokens-1b7V8182.d.ts +0 -127
- package/chunks/qix-CYQsLyGQ.js +0 -40
- package/chunks/questions-BVp0tvNs.d.ts +0 -364
- package/chunks/quotas-CfAebRJd.d.ts +0 -113
- package/chunks/reload-tasks-DfwUTetn.d.ts +0 -249
- package/chunks/reloads-CwmagnFx.d.ts +0 -260
- package/chunks/report-templates-DjQYj5dn.d.ts +0 -287
- package/chunks/reports-DzNC6Uq3.d.ts +0 -861
- package/chunks/roles-BYFIY6E7.d.ts +0 -312
- package/chunks/sharing-tasks-BMGIQ-FO.d.ts +0 -1164
- package/chunks/spaces-BK823t-b.d.ts +0 -780
- package/chunks/tasks-COKDfShO.d.ts +0 -564
- package/chunks/temp-contents-zDomB-g6.d.ts +0 -168
- package/chunks/tenants-Bhn86519.d.ts +0 -361
- package/chunks/themes-v9NbhiBo.d.ts +0 -269
- package/chunks/transports-CqEiFxD3.d.ts +0 -362
- package/chunks/ui-config-Crs0mVMp.d.ts +0 -274
- package/chunks/users-BSOBU_fg.d.ts +0 -675
- package/chunks/web-integrations-MisPAHod.d.ts +0 -295
- package/chunks/web-notifications-DVy6FHYh.d.ts +0 -274
- package/chunks/webhooks-Dr4EiXqy.d.ts +0 -505
- /package/chunks/{auth-types-E99tzdN0.d.ts → auth-types-YrlH_R9f.d.ts} +0 -0
- /package/chunks/{auth-types-JehqruDP.js → auth-types-h43TVDpB.js} +0 -0
- /package/chunks/{global-types-CrOvI33z.js → global-types-CEVAJebk.js} +0 -0
- /package/chunks/{invoke-fetch-CbU2Dgqr.d.ts → invoke-fetch-C1Z0RJYU.d.ts} +0 -0
- /package/chunks/{utils-BnC4lrlq.js → utils-vv-xFm06.js} +0 -0
- /package/chunks/{websocket-errors-DSbO6kDZ.js → websocket-errors-CRTDTtBL.js} +0 -0
package/identity-providers.d.ts
CHANGED
|
@@ -1,4 +1,712 @@
|
|
|
1
|
-
import "./chunks/auth-types-
|
|
2
|
-
import "./chunks/invoke-fetch-
|
|
3
|
-
|
|
1
|
+
import { y as ApiCallOptions } from "./chunks/auth-types-YrlH_R9f.js";
|
|
2
|
+
import "./chunks/invoke-fetch-C1Z0RJYU.js";
|
|
3
|
+
|
|
4
|
+
//#region src/public/rest/identity-providers.d.ts
|
|
5
|
+
type BaseIDP = {
|
|
6
|
+
/** Indicates whether the IdP is available for use. */
|
|
7
|
+
active?: boolean;
|
|
8
|
+
clockToleranceSec?: number;
|
|
9
|
+
/** When the flag is true, new users should be created when logging in for the first time. */
|
|
10
|
+
createNewUsersOnLogin?: boolean;
|
|
11
|
+
/** The timestamp for when the IdP was created. */
|
|
12
|
+
created?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
/** The unique identifier for the IdP. */
|
|
15
|
+
id?: string;
|
|
16
|
+
/** Indicates the type of connection with the IdP, either interactive login or a machine to machine connection. */
|
|
17
|
+
interactive?: boolean;
|
|
18
|
+
/** The timestamp for when the IdP was last updated. */
|
|
19
|
+
lastUpdated?: string;
|
|
20
|
+
meta?: unknown;
|
|
21
|
+
/** Direct the user on logout to a specific URI. */
|
|
22
|
+
postLogoutRedirectUri?: string;
|
|
23
|
+
/** The protocol to be used for communicating with the identity provider. Valid values are `OIDC`, `SAML`, `jwtAuth`, and `qsefw-local-bearer-token`. */
|
|
24
|
+
protocol?: IDPProtocol;
|
|
25
|
+
/** 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`. */
|
|
26
|
+
provider?: IDPProvider;
|
|
27
|
+
/** The tenant identifiers associated with the given IdP. */
|
|
28
|
+
tenantIds?: string[];
|
|
29
|
+
};
|
|
30
|
+
type CertificateInfo = {
|
|
31
|
+
/** The X.509 certificate for validating signed SAML responses. */
|
|
32
|
+
certificate: string;
|
|
33
|
+
/** Indicates whether the certificate is used for encryption. */
|
|
34
|
+
encryption?: boolean;
|
|
35
|
+
/** Given name for this certificate. */
|
|
36
|
+
name?: string;
|
|
37
|
+
/** Indicates whether the certificate is used for the signature. */
|
|
38
|
+
signature?: boolean;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Payload for creating an identity provider using JWT authentication.
|
|
42
|
+
*/
|
|
43
|
+
type CreateJWTAuthPayload = {
|
|
44
|
+
/** There can be clock skew between the IdP and Qlik's login server. In these cases, a tolerance can be set. */
|
|
45
|
+
clockToleranceSec?: number;
|
|
46
|
+
description?: string;
|
|
47
|
+
/** Required IdP configurations. */
|
|
48
|
+
options: {
|
|
49
|
+
/** The JWT issuer. */
|
|
50
|
+
issuer: string;
|
|
51
|
+
/** Keys for verifying JWTs. Limited to 1 key per identity provider. */
|
|
52
|
+
staticKeys: {
|
|
53
|
+
/** Key ID used to sign the JWTs. */
|
|
54
|
+
kid: string;
|
|
55
|
+
/** Pem-encoded public key for verifying the JWTs. */
|
|
56
|
+
pem: string;
|
|
57
|
+
}[];
|
|
58
|
+
};
|
|
59
|
+
/** The protocol to be used for communicating with the identity provider. */
|
|
60
|
+
protocol: "jwtAuth";
|
|
61
|
+
/** The identity provider to be used. */
|
|
62
|
+
provider: "external";
|
|
63
|
+
/** The tenant identifiers that map to the given IdP. */
|
|
64
|
+
tenantIds?: string[];
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Payload for creating an OIDC-compatible identity provider.
|
|
68
|
+
*/
|
|
69
|
+
type CreateOIDCPayload = {
|
|
70
|
+
/** There can be clock skew between the IdP and Qlik's login server. In these cases, a tolerance can be set. */
|
|
71
|
+
clockToleranceSec?: number;
|
|
72
|
+
/** Tells the consumer of the IdP that new users should be created on login if they don't exist. */
|
|
73
|
+
createNewUsersOnLogin?: boolean;
|
|
74
|
+
description?: string;
|
|
75
|
+
/** Indicates whether the IdP is meant for interactive login. */
|
|
76
|
+
interactive: boolean;
|
|
77
|
+
/** Required OIDC configurations for non-interactive IdPs and interactive IdPs with `skipVerify` flag enabled. */
|
|
78
|
+
options?: {
|
|
79
|
+
/** Only clients with IDs in this list will be allowed API access. A blank list or empty value means any client IDs authenticated against the IdP will be allowed access. */
|
|
80
|
+
allowedClientIds?: string[];
|
|
81
|
+
/** Allows for setting audience in access tokens. */
|
|
82
|
+
audience?: string;
|
|
83
|
+
/** 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. */
|
|
84
|
+
claimsMapping: ClaimsMappingNonInteractive;
|
|
85
|
+
/** The OpenID configuration endpoint. (Ex: https://<domain>/.well-known/openid-configuration). Required if openid_configuration is not given. */
|
|
86
|
+
discoveryUrl?: string;
|
|
87
|
+
/** OpenID configuration */
|
|
88
|
+
openid_configuration?: OpenIDConfiguration;
|
|
89
|
+
/** The realm identifier for the IdP. */
|
|
90
|
+
realm?: string;
|
|
91
|
+
};
|
|
92
|
+
/** Required OIDC configurations for interactive IdPs that require verification. */
|
|
93
|
+
pendingOptions?: {
|
|
94
|
+
/** When true, the `offline_access` scope will not be requested from the IdP where applicable. */
|
|
95
|
+
blockOfflineAccessScope?: boolean;
|
|
96
|
+
/** 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. */
|
|
97
|
+
claimsMapping: ClaimsMappingInteractive;
|
|
98
|
+
/** The client identifier used as part of authenticating an interactive identity provider. */
|
|
99
|
+
clientId: string;
|
|
100
|
+
/** The client secret used as part of authenticating an interactive identity provider. */
|
|
101
|
+
clientSecret: string;
|
|
102
|
+
/** A decrypting key used to decrypt OIDC encrypted assertions */
|
|
103
|
+
decryptingKey?: DecryptingKey;
|
|
104
|
+
/** The OpenID configuration endpoint. (Ex: https://<domain>/.well-known/openid-configuration). Required if openid_configuration is not given. */
|
|
105
|
+
discoveryUrl?: string;
|
|
106
|
+
/** Only ADFS and AzureAD IdPs can set this property. For ADFS and AzureAD, it defaults to false. For other IdPs, it defaults to undefined. */
|
|
107
|
+
emailVerifiedAlwaysTrue?: boolean;
|
|
108
|
+
/** The algorithm used to sign the ID token. The default algorithm is RS256. */
|
|
109
|
+
idTokenSignatureAlg?: "RS256" | "RS512";
|
|
110
|
+
/** OpenID configuration */
|
|
111
|
+
openid_configuration?: OpenIDConfiguration;
|
|
112
|
+
/** The realm identifier for the IdP. */
|
|
113
|
+
realm?: string;
|
|
114
|
+
/** Scope which will be sent along with token requests to the IdP. Scopes should be space delimited. Will default to certain values depending on the IdP provider. */
|
|
115
|
+
scope?: string;
|
|
116
|
+
/** If true, will use the claims from the ID token. By default it is set to true for ADFS and AzureAD. */
|
|
117
|
+
useClaimsFromIdToken?: boolean;
|
|
118
|
+
};
|
|
119
|
+
/** Direct the user on logout to a specific URI. */
|
|
120
|
+
postLogoutRedirectUri?: string;
|
|
121
|
+
/** The protocol to be used for communicating with the identity provider. */
|
|
122
|
+
protocol: "OIDC";
|
|
123
|
+
/** The identity provider to be used. */
|
|
124
|
+
provider: "auth0" | "okta" | "generic" | "salesforce" | "keycloak" | "adfs" | "azureAD";
|
|
125
|
+
/** If set to `true`, skips IdP verification process and assumes the IdP is verified. */
|
|
126
|
+
skipVerify?: boolean;
|
|
127
|
+
/** The tenant identifiers that map to the given IdP. */
|
|
128
|
+
tenantIds?: string[];
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Payload for creating a SAML compatible identity provider.
|
|
132
|
+
*/
|
|
133
|
+
type CreateSAMLPayload = {
|
|
134
|
+
/** There can be clock skew between the IdP and Qlik's login server. In these cases, a tolerance can be set. */
|
|
135
|
+
clockToleranceSec?: number;
|
|
136
|
+
/** Tells the consumer of the IdP that new users should be created on login if they don't exist. */
|
|
137
|
+
createNewUsersOnLogin?: boolean;
|
|
138
|
+
description?: string;
|
|
139
|
+
/** Indicates whether the IdP is meant for interactive login. Must be true for SAML IdPs. */
|
|
140
|
+
interactive: boolean;
|
|
141
|
+
/** Required SAML configurations for IdPs with `skipVerify` flag enabled. */
|
|
142
|
+
options?: {
|
|
143
|
+
/** Toggle to allow IdP initated login by the SAML IdP. */
|
|
144
|
+
allowIdpInitiatedLogin?: boolean;
|
|
145
|
+
/** The certificates used for validating signed responses. Required if metadata is not provided. */
|
|
146
|
+
certificates?: CertificateInfo[];
|
|
147
|
+
/** Mappings from claim name to an array of SAML attribute names that point to locations in the claims from the IdP to retrieve the value from. */
|
|
148
|
+
claimsMapping: ClaimsMappingSAML;
|
|
149
|
+
/** The entity ID for the SAML IdP. Required if metadata is not provided. */
|
|
150
|
+
entityId?: string;
|
|
151
|
+
/** Metadata for the SAML IdP. Required if individual SAML parameters are not provided. */
|
|
152
|
+
metadata?: {
|
|
153
|
+
/** The IDP metadata XML in base64-encoded format. */
|
|
154
|
+
raw: string;
|
|
155
|
+
};
|
|
156
|
+
/** The name identifier format that will be requested from the identity provider. */
|
|
157
|
+
nameIdFormat?: "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress" | "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent" | "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified";
|
|
158
|
+
/** The sign on URL for the SAML IdP. Required if metadata is not provided. */
|
|
159
|
+
signOnUrl?: string;
|
|
160
|
+
};
|
|
161
|
+
/** Required configurations for SAML IdPs that require verification. */
|
|
162
|
+
pendingOptions?: {
|
|
163
|
+
/** Toggle to allow IdP initated login by the SAML IdP. */
|
|
164
|
+
allowIdpInitiatedLogin?: boolean;
|
|
165
|
+
/** The certificates used for validating signed responses. Required if metadata is not provided. */
|
|
166
|
+
certificates?: CertificateInfo[];
|
|
167
|
+
/** Mappings from claim name to an array of SAML attribute names that point to locations in the claims from the IdP to retrieve the value from. */
|
|
168
|
+
claimsMapping: ClaimsMappingSAML;
|
|
169
|
+
/** The entity ID for the SAML IdP. Required if metadata is not provided. */
|
|
170
|
+
entityId?: string;
|
|
171
|
+
/** Metadata for the SAML IdP. Required if individual SAML parameters are not provided. */
|
|
172
|
+
metadata?: {
|
|
173
|
+
/** The IDP metadata XML in base64-encoded format. */
|
|
174
|
+
raw: string;
|
|
175
|
+
};
|
|
176
|
+
/** The name identifier format that will be requested from the identity provider. */
|
|
177
|
+
nameIdFormat?: "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress" | "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent" | "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified";
|
|
178
|
+
/** The sign on URL for the SAML IdP. Required if metadata is not provided. */
|
|
179
|
+
signOnUrl?: string;
|
|
180
|
+
};
|
|
181
|
+
/** Direct the user on logout to a specific URI. */
|
|
182
|
+
postLogoutRedirectUri?: string;
|
|
183
|
+
/** The protocol to be used for communicating with the identity provider. */
|
|
184
|
+
protocol: "SAML";
|
|
185
|
+
/** The identity provider to be used. */
|
|
186
|
+
provider: "okta" | "generic" | "adfs" | "azureAD";
|
|
187
|
+
/** If set to `true`, skips IdP verification process and assumes the IdP is verified. */
|
|
188
|
+
skipVerify?: boolean;
|
|
189
|
+
/** The tenant identifiers that map to the given IdP. */
|
|
190
|
+
tenantIds?: string[];
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* An error object.
|
|
194
|
+
*/
|
|
195
|
+
type Error = {
|
|
196
|
+
/** The error code. */
|
|
197
|
+
code: string;
|
|
198
|
+
/** A human-readable explanation specific to this occurrence of the problem. */
|
|
199
|
+
detail?: string;
|
|
200
|
+
/** Additional properties relating to the error. */
|
|
201
|
+
meta?: unknown;
|
|
202
|
+
/** References to the source of the error. */
|
|
203
|
+
source?: {
|
|
204
|
+
/** The URI query parameter that caused the error. */
|
|
205
|
+
parameter?: string;
|
|
206
|
+
/** A JSON pointer to the property that caused the error. */
|
|
207
|
+
pointer?: string;
|
|
208
|
+
};
|
|
209
|
+
/** The HTTP status code. */
|
|
210
|
+
status?: number;
|
|
211
|
+
/** Summary of the problem. */
|
|
212
|
+
title: string;
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* A representation of the errors encountered from the HTTP request.
|
|
216
|
+
*/
|
|
217
|
+
type Errors = {
|
|
218
|
+
errors?: Error[];
|
|
219
|
+
};
|
|
220
|
+
type IDP = IDPOIDC | IDPSAML | IDPJWTAuth;
|
|
221
|
+
type IDPArray = {
|
|
222
|
+
/** An array of IdPs. */
|
|
223
|
+
data?: IDP[];
|
|
224
|
+
/** Contains pagination links. */
|
|
225
|
+
links?: Links;
|
|
226
|
+
};
|
|
227
|
+
/**
|
|
228
|
+
* An identity provider for JWT authentication.
|
|
229
|
+
*/
|
|
230
|
+
type IDPJWTAuth = BaseIDP & {
|
|
231
|
+
options?: {
|
|
232
|
+
/** The expected JWT issuer */
|
|
233
|
+
issuer?: string;
|
|
234
|
+
staticKeys?: {
|
|
235
|
+
/** Key ID used to sign the JWTs. */
|
|
236
|
+
kid?: string;
|
|
237
|
+
/** Pem-encoded public key for verifying the JWTs. */
|
|
238
|
+
pem?: string;
|
|
239
|
+
}[];
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
type IDPMeta = {
|
|
243
|
+
/** A link to direct you to where you can upgrade your trial or manage your subscriptions. Only available if the default identity provider is used (no custom interactive identity providers are active). */
|
|
244
|
+
upgradeSubscriptionLink?: string;
|
|
245
|
+
/** 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). */
|
|
246
|
+
userPortalLink?: string;
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
249
|
+
* An OIDC-compliant identity provider.
|
|
250
|
+
*/
|
|
251
|
+
type IDPOIDC = BaseIDP & {
|
|
252
|
+
options?: IDPOIDCOptions;
|
|
253
|
+
pendingOptions?: IDPOIDCOptions;
|
|
254
|
+
pendingResult?: PendingResult;
|
|
255
|
+
/** The state of pendingOptions. This represents the latest IdP test result. */
|
|
256
|
+
pendingState?: "verified" | "pending" | "error";
|
|
257
|
+
};
|
|
258
|
+
type IDPOIDCOptions = {
|
|
259
|
+
/** If true, the `offline_access` scope will not be requested from the IdP, where applicable. */
|
|
260
|
+
blockOfflineAccessScope?: boolean;
|
|
261
|
+
/** 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. */
|
|
262
|
+
claimsMapping?: ClaimsMappingInteractive;
|
|
263
|
+
/** The client identifier used as part of authenticating an interactive identity provider. */
|
|
264
|
+
clientId?: string;
|
|
265
|
+
/** The client secret used as part of authenticating an interactive identity provider. */
|
|
266
|
+
clientSecret?: string;
|
|
267
|
+
/** A decrypting key used to decrypt OIDC encrypted assertions */
|
|
268
|
+
decryptingKey?: DecryptingKey;
|
|
269
|
+
/** The OpenID configuration endpoint. (Ex: https://<domain>/.well-known/openid-configuration). */
|
|
270
|
+
discoveryUrl?: string;
|
|
271
|
+
/** Determines if email_verified should be always true. This field is only used in ADFS and AzureAD IdPs. */
|
|
272
|
+
emailVerifiedAlwaysTrue?: boolean;
|
|
273
|
+
/** This field is only used in Qlik Sense Enterprise Client-Managed IdPs. */
|
|
274
|
+
issuer?: string;
|
|
275
|
+
/** OpenID configuration */
|
|
276
|
+
openid_configuration?: OpenIDConfiguration;
|
|
277
|
+
/** The realm identifier for the IdP. */
|
|
278
|
+
realm?: string;
|
|
279
|
+
/** Scope that will be sent along with token requests to the IdP. */
|
|
280
|
+
scope?: string;
|
|
281
|
+
};
|
|
282
|
+
type IDPPatchSchema = PatchOIDCPayload[] | PatchSAMLPayload[] | PatchJWTAuthPayload[];
|
|
283
|
+
type IDPPostSchema = CreateOIDCPayload | CreateJWTAuthPayload | CreateSAMLPayload;
|
|
284
|
+
/**
|
|
285
|
+
* The protocol to be used for communicating with the identity provider. Valid values are `OIDC`, `SAML`, `jwtAuth`, and `qsefw-local-bearer-token`.
|
|
286
|
+
*/
|
|
287
|
+
type IDPProtocol = "OIDC" | "SAML" | "jwtAuth" | "qsefw-local-bearer-token";
|
|
288
|
+
/**
|
|
289
|
+
* 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`.
|
|
290
|
+
*/
|
|
291
|
+
type IDPProvider = "auth0" | "okta" | "qlik" | "generic" | "salesforce" | "keycloak" | "adfs" | "external" | "azureAD";
|
|
292
|
+
/**
|
|
293
|
+
* A SAML-compliant identity provider.
|
|
294
|
+
*/
|
|
295
|
+
type IDPSAML = BaseIDP & {
|
|
296
|
+
options?: IDPSAMLOptions;
|
|
297
|
+
pendingOptions?: IDPSAMLOptions;
|
|
298
|
+
pendingResult?: PendingResult;
|
|
299
|
+
/** The state of pendingOptions. This represents the latest IdP test result. */
|
|
300
|
+
pendingState?: "verified" | "pending" | "error";
|
|
301
|
+
};
|
|
302
|
+
type IDPSAMLOptions = {
|
|
303
|
+
/** Toggle to allow IdP initated login by the SAML IdP. */
|
|
304
|
+
allowIdpInitiatedLogin?: boolean;
|
|
305
|
+
/** The certificates used for validating signed responses. */
|
|
306
|
+
certificates?: CertificateInfo[];
|
|
307
|
+
/** Mappings from claim name to an array of SAML attribute names that point to locations in the claims from the IdP to retrieve the value from. */
|
|
308
|
+
claimsMapping?: ClaimsMappingSAML;
|
|
309
|
+
/** The entity URL for the SAML IdP. */
|
|
310
|
+
entityId?: string;
|
|
311
|
+
/** The name identifier format that will be requested from the identity provider. */
|
|
312
|
+
nameIdFormat?: "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress" | "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent" | "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified";
|
|
313
|
+
/** The sign on URL for the SAML IdP. */
|
|
314
|
+
signOnUrl?: string;
|
|
315
|
+
/** The reference ID of the chosen signing key pair. */
|
|
316
|
+
signingKeySelectedRefId?: string;
|
|
317
|
+
/** Set of certificates used to sign SAMLRequest payloads. Not present in `pendingOptions`. */
|
|
318
|
+
signingKeys?: SigningKey[];
|
|
319
|
+
};
|
|
320
|
+
type IDPsStatus = {
|
|
321
|
+
/** The number of active interactive IdPs. */
|
|
322
|
+
active_interactive_idps_count?: number;
|
|
323
|
+
/** A list of IdP metadata. */
|
|
324
|
+
idps_metadata?: {
|
|
325
|
+
/** Indicates whether the IdP is available for use. */
|
|
326
|
+
active?: boolean;
|
|
327
|
+
/** Indicates whether the IdP is meant for interactive login. */
|
|
328
|
+
interactive?: boolean;
|
|
329
|
+
/** 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`. */
|
|
330
|
+
provider?: IDPProvider;
|
|
331
|
+
}[];
|
|
332
|
+
};
|
|
333
|
+
/**
|
|
334
|
+
* Contains pagination links.
|
|
335
|
+
*/
|
|
336
|
+
type Links = {
|
|
337
|
+
next?: {
|
|
338
|
+
/** Link to the next page of items. */
|
|
339
|
+
href?: string;
|
|
340
|
+
};
|
|
341
|
+
prev?: {
|
|
342
|
+
/** Link to the previous page of items. */
|
|
343
|
+
href?: string;
|
|
344
|
+
};
|
|
345
|
+
self?: {
|
|
346
|
+
/** Link to the current page of items. */
|
|
347
|
+
href?: string;
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
/**
|
|
351
|
+
* OpenID configuration
|
|
352
|
+
*/
|
|
353
|
+
type OpenIDConfiguration = {
|
|
354
|
+
/** OAuth 2.0 Authorization Endpoint */
|
|
355
|
+
authorization_endpoint: string;
|
|
356
|
+
/** URL at the OP to which an RP can perform a redirect to request that the End-User be logged out at the OP. */
|
|
357
|
+
end_session_endpoint?: string;
|
|
358
|
+
/** The introspection endpoint is an OAuth 2.0 endpoint that takes a parameter representing an OAuth 2.0 token and returns a JSON [RFC7159] document representing the meta information. */
|
|
359
|
+
introspection_endpoint?: string;
|
|
360
|
+
/** OpenID Provider issuer */
|
|
361
|
+
issuer: string;
|
|
362
|
+
/** URL of the OP's JSON Web Key Set [JWK] document */
|
|
363
|
+
jwks_uri: string;
|
|
364
|
+
/** OAuth 2.0 Token Endpoint */
|
|
365
|
+
token_endpoint: string;
|
|
366
|
+
/** URL of the OP's UserInfo Endpoint */
|
|
367
|
+
userinfo_endpoint?: string;
|
|
368
|
+
};
|
|
369
|
+
/**
|
|
370
|
+
* A patch request for an identity provider using the `jwtAuth` protocol.
|
|
371
|
+
*/
|
|
372
|
+
type PatchJWTAuthPayload = {
|
|
373
|
+
/** The "operation" to be performed on a given IdP. */
|
|
374
|
+
op: "replace";
|
|
375
|
+
/** The "path" to the part of the IdP document. */
|
|
376
|
+
path?: "/description";
|
|
377
|
+
/** The "value" data type is dependent on the path value being used. */
|
|
378
|
+
value?: unknown;
|
|
379
|
+
};
|
|
380
|
+
/**
|
|
381
|
+
* A patch request for an identity provider using the `OIDC` protocol.
|
|
382
|
+
*/
|
|
383
|
+
type PatchOIDCPayload = {
|
|
384
|
+
/** 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. */
|
|
385
|
+
op: "replace" | "promote-options";
|
|
386
|
+
/** The "path" to the part of the IdP document. */
|
|
387
|
+
path?: "/active" | "/description" | "/meta" | "/options" | "/options/realm" | "/options/discoveryUrl" | "/options/claimsMapping" | "/pendingOptions" | "/pendingOptions/realm" | "/pendingOptions/discoveryUrl" | "/pendingOptions/clientId" | "/pendingOptions/clientSecret" | "/pendingOptions/emailVerifiedAlwaysTrue" | "/pendingOptions/claimsMapping" | "/postLogoutRedirectUri" | "/clockToleranceSec" | "/pendingOptions/idTokenSignatureAlg" | "/pendingOptions/decryptingKey";
|
|
388
|
+
/** The "value" data type is dependent on the path value being used. */
|
|
389
|
+
value?: unknown;
|
|
390
|
+
};
|
|
391
|
+
/**
|
|
392
|
+
* A patch request for an identity provider using the `SAML` protocol. Supports a custom operation value called `promote-options` that allows the test configuration (`pendingOptions`) to be promoted to the live configuration (`options`) used for login.'
|
|
393
|
+
*/
|
|
394
|
+
type PatchSAMLPayload = {
|
|
395
|
+
/** The "operation" to be performed on a given IdP. */
|
|
396
|
+
op: "replace" | "promote-options";
|
|
397
|
+
/** The "path" to the part of the IdP document. */
|
|
398
|
+
path?: "/active" | "/description" | "/pendingOptions" | "/pendingOptions/nameIdFormat" | "/pendingOptions/allowIdpInitiatedLogin" | "/pendingOptions/entityId" | "/pendingOptions/signOnUrl" | "/pendingOptions/metadata" | "/pendingOptions/certificates" | "/pendingOptions/claimsMapping" | "/postLogoutRedirectUri" | "/clockToleranceSec";
|
|
399
|
+
/** The "value" data type is dependent on the path value being used. */
|
|
400
|
+
value?: unknown;
|
|
401
|
+
};
|
|
402
|
+
type PendingResult = {
|
|
403
|
+
/** A unique readable error message based on the error that has occurred. */
|
|
404
|
+
error?: string;
|
|
405
|
+
/** The claims retrieved from the external IdP. */
|
|
406
|
+
idpClaims?: unknown;
|
|
407
|
+
oauth2Error?: {
|
|
408
|
+
/** An error code to identity the authentication error. */
|
|
409
|
+
error: string;
|
|
410
|
+
/** An optional human-readable description for the given error code. */
|
|
411
|
+
errorDescription?: string;
|
|
412
|
+
/** An optional URI that includes additional information about the given error. */
|
|
413
|
+
errorURI?: string;
|
|
414
|
+
};
|
|
415
|
+
/** The protocol used to communicate with the IdP during the test flow. */
|
|
416
|
+
protocol?: "OIDC" | "SAML";
|
|
417
|
+
/** The resultant claims based on the claims received from the external IdP. */
|
|
418
|
+
resultantClaims?: unknown;
|
|
419
|
+
/** The timestamp for when the test was started for an IdP configuration. This field is only available during lifespan of the test. */
|
|
420
|
+
started?: string;
|
|
421
|
+
/** The status of the IdP configuration being tested. */
|
|
422
|
+
status: "success" | "pending" | "error" | "claimsError" | "callbackError" | "tokenError" | "protocolError" | "networkError" | "configChangedDuringTestError";
|
|
423
|
+
};
|
|
424
|
+
type SigningKey = {
|
|
425
|
+
/** The certificate to be uploaded to the identity provider for verifying SAML requests. */
|
|
426
|
+
certificate?: string;
|
|
427
|
+
/** The reference ID for choosing this key pair. */
|
|
428
|
+
refId?: string;
|
|
429
|
+
};
|
|
430
|
+
/**
|
|
431
|
+
* 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.
|
|
432
|
+
*/
|
|
433
|
+
type ClaimsMappingInteractive = {
|
|
434
|
+
/** A list of JSON pointers used to map the user's client ID. */
|
|
435
|
+
client_id?: string[];
|
|
436
|
+
/** A list of JSON pointers used to map the user's email. */
|
|
437
|
+
email?: string[];
|
|
438
|
+
/** A list of JSON pointers used to map the user's email_verified claim. */
|
|
439
|
+
email_verified?: string[];
|
|
440
|
+
/** A list of JSON pointers used to map the user's groups. */
|
|
441
|
+
groups?: string[];
|
|
442
|
+
/** A list of JSON pointers used to map the user's locale. */
|
|
443
|
+
locale?: string[];
|
|
444
|
+
/** A list of JSON pointers used to map the user's name. */
|
|
445
|
+
name?: string[];
|
|
446
|
+
/** A list of JSON pointers used to map the user's picture. */
|
|
447
|
+
picture?: string[];
|
|
448
|
+
/** A list of JSON pointers used to map the user's subject. */
|
|
449
|
+
sub?: string[];
|
|
450
|
+
/** A list of JSON pointers used to map the user's zoneinfo. */
|
|
451
|
+
zoneinfo?: string[];
|
|
452
|
+
};
|
|
453
|
+
/**
|
|
454
|
+
* 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.
|
|
455
|
+
*/
|
|
456
|
+
type ClaimsMappingNonInteractive = {
|
|
457
|
+
/** A list of JSON pointers used to map the user's client ID. */
|
|
458
|
+
client_id?: string[];
|
|
459
|
+
/** A list of JSON pointers used to map the user's subject. */
|
|
460
|
+
sub?: string[];
|
|
461
|
+
};
|
|
462
|
+
/**
|
|
463
|
+
* Mappings from claim name to an array of SAML attribute names that point to locations in the claims from the IdP to retrieve the value from.
|
|
464
|
+
*/
|
|
465
|
+
type ClaimsMappingSAML = {
|
|
466
|
+
/** A list of SAML attributes used to map the user's email. */
|
|
467
|
+
email: string[];
|
|
468
|
+
/** A list of SAML attributes used to map the user's groups. */
|
|
469
|
+
groups: string[];
|
|
470
|
+
/** A list of SAML attributes used to map the user's name. */
|
|
471
|
+
name: string[];
|
|
472
|
+
/** A list of SAML attributes used to map the user's picture. */
|
|
473
|
+
picture: string[];
|
|
474
|
+
/** A list of SAML attributes used to map the user's subject. */
|
|
475
|
+
sub: string[];
|
|
476
|
+
};
|
|
477
|
+
/**
|
|
478
|
+
* A decrypting key used to decrypt OIDC encrypted assertions
|
|
479
|
+
*/
|
|
480
|
+
type DecryptingKey = {
|
|
481
|
+
/** The key's certificate in pem format */
|
|
482
|
+
certificate?: string;
|
|
483
|
+
/** The timestamp for when the decrypting key was created. */
|
|
484
|
+
createdAt?: string;
|
|
485
|
+
/** The user id of the user who created the decrypting key */
|
|
486
|
+
createdBy?: string;
|
|
487
|
+
/** The public key in jwk format */
|
|
488
|
+
jwks?: string;
|
|
489
|
+
/** The id of the decrypting key */
|
|
490
|
+
keyId?: string;
|
|
491
|
+
/** The algorithm size of the decrypting key */
|
|
492
|
+
keySize: number;
|
|
493
|
+
/** The algorithm type of the decrypting key */
|
|
494
|
+
keyType: string;
|
|
495
|
+
/** The public key in pem format */
|
|
496
|
+
publicKey?: string;
|
|
497
|
+
};
|
|
498
|
+
/**
|
|
499
|
+
* This endpoint retrieves any IdPs registered on the tenant.
|
|
500
|
+
*
|
|
501
|
+
* @param query an object with query parameters
|
|
502
|
+
* @throws GetIdpsHttpError
|
|
503
|
+
*/
|
|
504
|
+
declare function getIdps(query: {
|
|
505
|
+
/** If provided, filters the results by the active field. */
|
|
506
|
+
active?: boolean;
|
|
507
|
+
/** The number of IdP entries to retrieve. */
|
|
508
|
+
limit?: number;
|
|
509
|
+
/** The next page cursor. */
|
|
510
|
+
next?: string;
|
|
511
|
+
/** The previous page cursor. */
|
|
512
|
+
prev?: string;
|
|
513
|
+
}, options?: ApiCallOptions): Promise<GetIdpsHttpResponse>;
|
|
514
|
+
type GetIdpsHttpResponse = {
|
|
515
|
+
data: IDPArray;
|
|
516
|
+
headers: Headers;
|
|
517
|
+
status: 200;
|
|
518
|
+
prev?: (options?: ApiCallOptions) => Promise<GetIdpsHttpResponse>;
|
|
519
|
+
next?: (options?: ApiCallOptions) => Promise<GetIdpsHttpResponse>;
|
|
520
|
+
};
|
|
521
|
+
type GetIdpsHttpError = {
|
|
522
|
+
data: Errors;
|
|
523
|
+
headers: Headers;
|
|
524
|
+
status: 404;
|
|
525
|
+
};
|
|
526
|
+
/**
|
|
527
|
+
* Creates a new IdP on a tenant. Requesting user must be assigned the `TenantAdmin` role. For non-interactive IdPs (e.g. JWT), IdP must be created by sending `options` payload. For interactive IdPs (e.g. SAML or OIDC), send `pendingOptions` payload to require the interactive verification step; or send `options` payload with `skipVerify` set to `true` to skip validation step and make IdP immediately available.
|
|
528
|
+
*
|
|
529
|
+
* @param body an object with the body content
|
|
530
|
+
* @throws CreateIdpHttpError
|
|
531
|
+
*/
|
|
532
|
+
declare function createIdp(body: IDPPostSchema, options?: ApiCallOptions): Promise<CreateIdpHttpResponse>;
|
|
533
|
+
type CreateIdpHttpResponse = {
|
|
534
|
+
data: IDP;
|
|
535
|
+
headers: Headers;
|
|
536
|
+
status: 201;
|
|
537
|
+
};
|
|
538
|
+
type CreateIdpHttpError = {
|
|
539
|
+
data: Errors;
|
|
540
|
+
headers: Headers;
|
|
541
|
+
status: 400 | 403;
|
|
542
|
+
};
|
|
543
|
+
/**
|
|
544
|
+
* Returns IdP configuration metadata supported on the tenant. Clients can use this information to programmatically configure their interactions with Qlik Cloud.
|
|
545
|
+
*
|
|
546
|
+
* @throws GetIdpWellKnownMetaDataHttpError
|
|
547
|
+
*/
|
|
548
|
+
declare function getIdpWellKnownMetaData(options?: ApiCallOptions): Promise<GetIdpWellKnownMetaDataHttpResponse>;
|
|
549
|
+
type GetIdpWellKnownMetaDataHttpResponse = {
|
|
550
|
+
data: unknown;
|
|
551
|
+
headers: Headers;
|
|
552
|
+
status: 200;
|
|
553
|
+
};
|
|
554
|
+
type GetIdpWellKnownMetaDataHttpError = {
|
|
555
|
+
data: unknown;
|
|
556
|
+
headers: Headers;
|
|
557
|
+
status: number;
|
|
558
|
+
};
|
|
559
|
+
/**
|
|
560
|
+
* Retrieves default IdP metadata when no interactive IdP is enabled.
|
|
561
|
+
*
|
|
562
|
+
* @throws GetMyIdpMetaHttpError
|
|
563
|
+
*/
|
|
564
|
+
declare function getMyIdpMeta(options?: ApiCallOptions): Promise<GetMyIdpMetaHttpResponse>;
|
|
565
|
+
type GetMyIdpMetaHttpResponse = {
|
|
566
|
+
data: IDPMeta;
|
|
567
|
+
headers: Headers;
|
|
568
|
+
status: 200;
|
|
569
|
+
};
|
|
570
|
+
type GetMyIdpMetaHttpError = {
|
|
571
|
+
data: Errors;
|
|
572
|
+
headers: Headers;
|
|
573
|
+
status: 403 | 404 | 500;
|
|
574
|
+
};
|
|
575
|
+
/**
|
|
576
|
+
* Retrieves the status of all IdP configurations. Requires `TenantAdmin` role.
|
|
577
|
+
*
|
|
578
|
+
* @throws GetIdpStatusesHttpError
|
|
579
|
+
*/
|
|
580
|
+
declare function getIdpStatuses(options?: ApiCallOptions): Promise<GetIdpStatusesHttpResponse>;
|
|
581
|
+
type GetIdpStatusesHttpResponse = {
|
|
582
|
+
data: IDPsStatus;
|
|
583
|
+
headers: Headers;
|
|
584
|
+
status: 200;
|
|
585
|
+
};
|
|
586
|
+
type GetIdpStatusesHttpError = {
|
|
587
|
+
data: Errors;
|
|
588
|
+
headers: Headers;
|
|
589
|
+
status: 403 | 404 | 500;
|
|
590
|
+
};
|
|
591
|
+
/**
|
|
592
|
+
* Deletes an identity provider. Requesting user must be assigned the `TenantAdmin` role.
|
|
593
|
+
*
|
|
594
|
+
* @param id The identity provider ID.
|
|
595
|
+
* @throws DeleteIdpHttpError
|
|
596
|
+
*/
|
|
597
|
+
declare function deleteIdp(id: string, options?: ApiCallOptions): Promise<DeleteIdpHttpResponse>;
|
|
598
|
+
type DeleteIdpHttpResponse = {
|
|
599
|
+
data: void;
|
|
600
|
+
headers: Headers;
|
|
601
|
+
status: 204;
|
|
602
|
+
};
|
|
603
|
+
type DeleteIdpHttpError = {
|
|
604
|
+
data: Errors;
|
|
605
|
+
headers: Headers;
|
|
606
|
+
status: 400 | 404;
|
|
607
|
+
};
|
|
608
|
+
/**
|
|
609
|
+
* Retrieves a specific IdP. Requesting user must be assigned the `TenantAdmin` role.
|
|
610
|
+
*
|
|
611
|
+
* @param id The identity provider ID.
|
|
612
|
+
* @throws GetIdpHttpError
|
|
613
|
+
*/
|
|
614
|
+
declare function getIdp(id: string, options?: ApiCallOptions): Promise<GetIdpHttpResponse>;
|
|
615
|
+
type GetIdpHttpResponse = {
|
|
616
|
+
data: IDP;
|
|
617
|
+
headers: Headers;
|
|
618
|
+
status: 200;
|
|
619
|
+
};
|
|
620
|
+
type GetIdpHttpError = {
|
|
621
|
+
data: Errors;
|
|
622
|
+
headers: Headers;
|
|
623
|
+
status: 401 | 404;
|
|
624
|
+
};
|
|
625
|
+
/**
|
|
626
|
+
* Updates the configuration of an IdP. Requesting user must be assigned the `TenantAdmin` role. Partial failure is treated as complete failure and returns an error.
|
|
627
|
+
*
|
|
628
|
+
* @param id The identity provider ID.
|
|
629
|
+
* @param body an object with the body content
|
|
630
|
+
* @throws PatchIdpHttpError
|
|
631
|
+
*/
|
|
632
|
+
declare function patchIdp(id: string, body: IDPPatchSchema, options?: ApiCallOptions): Promise<PatchIdpHttpResponse>;
|
|
633
|
+
type PatchIdpHttpResponse = {
|
|
634
|
+
data: void;
|
|
635
|
+
headers: Headers;
|
|
636
|
+
status: 204;
|
|
637
|
+
};
|
|
638
|
+
type PatchIdpHttpError = {
|
|
639
|
+
data: Errors;
|
|
640
|
+
headers: Headers;
|
|
641
|
+
status: 400 | 401 | 403 | 404 | 412 | 500;
|
|
642
|
+
};
|
|
643
|
+
/**
|
|
644
|
+
* Clears the cache for identity-providers api requests.
|
|
645
|
+
*/
|
|
646
|
+
declare function clearCache(): void;
|
|
647
|
+
type IdentityProvidersAPI = {
|
|
648
|
+
/**
|
|
649
|
+
* This endpoint retrieves any IdPs registered on the tenant.
|
|
650
|
+
*
|
|
651
|
+
* @param query an object with query parameters
|
|
652
|
+
* @throws GetIdpsHttpError
|
|
653
|
+
*/
|
|
654
|
+
getIdps: typeof getIdps;
|
|
655
|
+
/**
|
|
656
|
+
* Creates a new IdP on a tenant. Requesting user must be assigned the `TenantAdmin` role. For non-interactive IdPs (e.g. JWT), IdP must be created by sending `options` payload. For interactive IdPs (e.g. SAML or OIDC), send `pendingOptions` payload to require the interactive verification step; or send `options` payload with `skipVerify` set to `true` to skip validation step and make IdP immediately available.
|
|
657
|
+
*
|
|
658
|
+
* @param body an object with the body content
|
|
659
|
+
* @throws CreateIdpHttpError
|
|
660
|
+
*/
|
|
661
|
+
createIdp: typeof createIdp;
|
|
662
|
+
/**
|
|
663
|
+
* Returns IdP configuration metadata supported on the tenant. Clients can use this information to programmatically configure their interactions with Qlik Cloud.
|
|
664
|
+
*
|
|
665
|
+
* @throws GetIdpWellKnownMetaDataHttpError
|
|
666
|
+
*/
|
|
667
|
+
getIdpWellKnownMetaData: typeof getIdpWellKnownMetaData;
|
|
668
|
+
/**
|
|
669
|
+
* Retrieves default IdP metadata when no interactive IdP is enabled.
|
|
670
|
+
*
|
|
671
|
+
* @throws GetMyIdpMetaHttpError
|
|
672
|
+
*/
|
|
673
|
+
getMyIdpMeta: typeof getMyIdpMeta;
|
|
674
|
+
/**
|
|
675
|
+
* Retrieves the status of all IdP configurations. Requires `TenantAdmin` role.
|
|
676
|
+
*
|
|
677
|
+
* @throws GetIdpStatusesHttpError
|
|
678
|
+
*/
|
|
679
|
+
getIdpStatuses: typeof getIdpStatuses;
|
|
680
|
+
/**
|
|
681
|
+
* Deletes an identity provider. Requesting user must be assigned the `TenantAdmin` role.
|
|
682
|
+
*
|
|
683
|
+
* @param id The identity provider ID.
|
|
684
|
+
* @throws DeleteIdpHttpError
|
|
685
|
+
*/
|
|
686
|
+
deleteIdp: typeof deleteIdp;
|
|
687
|
+
/**
|
|
688
|
+
* Retrieves a specific IdP. Requesting user must be assigned the `TenantAdmin` role.
|
|
689
|
+
*
|
|
690
|
+
* @param id The identity provider ID.
|
|
691
|
+
* @throws GetIdpHttpError
|
|
692
|
+
*/
|
|
693
|
+
getIdp: typeof getIdp;
|
|
694
|
+
/**
|
|
695
|
+
* Updates the configuration of an IdP. Requesting user must be assigned the `TenantAdmin` role. Partial failure is treated as complete failure and returns an error.
|
|
696
|
+
*
|
|
697
|
+
* @param id The identity provider ID.
|
|
698
|
+
* @param body an object with the body content
|
|
699
|
+
* @throws PatchIdpHttpError
|
|
700
|
+
*/
|
|
701
|
+
patchIdp: typeof patchIdp;
|
|
702
|
+
/**
|
|
703
|
+
* Clears the cache for identity-providers api requests.
|
|
704
|
+
*/
|
|
705
|
+
clearCache: typeof clearCache;
|
|
706
|
+
};
|
|
707
|
+
/**
|
|
708
|
+
* Functions for the identity-providers api
|
|
709
|
+
*/
|
|
710
|
+
declare const identityProvidersExport: IdentityProvidersAPI;
|
|
711
|
+
//#endregion
|
|
4
712
|
export { BaseIDP, CertificateInfo, ClaimsMappingInteractive, ClaimsMappingNonInteractive, ClaimsMappingSAML, CreateIdpHttpError, CreateIdpHttpResponse, CreateJWTAuthPayload, CreateOIDCPayload, CreateSAMLPayload, DecryptingKey, DeleteIdpHttpError, DeleteIdpHttpResponse, Error, Errors, GetIdpHttpError, GetIdpHttpResponse, GetIdpStatusesHttpError, GetIdpStatusesHttpResponse, GetIdpWellKnownMetaDataHttpError, GetIdpWellKnownMetaDataHttpResponse, GetIdpsHttpError, GetIdpsHttpResponse, GetMyIdpMetaHttpError, GetMyIdpMetaHttpResponse, IDP, IDPArray, IDPJWTAuth, IDPMeta, IDPOIDC, IDPOIDCOptions, IDPPatchSchema, IDPPostSchema, IDPProtocol, IDPProvider, IDPSAML, IDPSAMLOptions, IDPsStatus, IdentityProvidersAPI, Links, OpenIDConfiguration, PatchIdpHttpError, PatchIdpHttpResponse, PatchJWTAuthPayload, PatchOIDCPayload, PatchSAMLPayload, PendingResult, SigningKey, clearCache, createIdp, identityProvidersExport as default, deleteIdp, getIdp, getIdpStatuses, getIdpWellKnownMetaData, getIdps, getMyIdpMeta, patchIdp };
|