auth0 4.20.0 → 4.21.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/dist/cjs/auth/oauth.d.ts +45 -0
- package/dist/cjs/auth/oauth.js +38 -1
- package/dist/cjs/auth/oauth.js.map +1 -1
- package/dist/cjs/auth/tokenExchange.d.ts +0 -12
- package/dist/cjs/auth/tokenExchange.js +0 -23
- package/dist/cjs/auth/tokenExchange.js.map +1 -1
- package/dist/cjs/management/__generated/index.d.ts +2 -1
- package/dist/cjs/management/__generated/index.js +1 -0
- package/dist/cjs/management/__generated/index.js.map +1 -1
- package/dist/cjs/management/__generated/managers/attack-protection-manager.d.ts +4 -2
- package/dist/cjs/management/__generated/managers/attack-protection-manager.js +4 -2
- package/dist/cjs/management/__generated/managers/attack-protection-manager.js.map +1 -1
- package/dist/cjs/management/__generated/managers/index.d.ts +1 -0
- package/dist/cjs/management/__generated/managers/index.js +1 -0
- package/dist/cjs/management/__generated/managers/index.js.map +1 -1
- package/dist/cjs/management/__generated/managers/network-acls-manager.d.ts +48 -0
- package/dist/cjs/management/__generated/managers/network-acls-manager.js +120 -0
- package/dist/cjs/management/__generated/managers/network-acls-manager.js.map +1 -0
- package/dist/cjs/management/__generated/managers/users-manager.d.ts +14 -1
- package/dist/cjs/management/__generated/managers/users-manager.js +29 -0
- package/dist/cjs/management/__generated/managers/users-manager.js.map +1 -1
- package/dist/cjs/management/__generated/models/index.d.ts +485 -0
- package/dist/cjs/management/__generated/models/index.js +118 -5
- package/dist/cjs/management/__generated/models/index.js.map +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/auth/oauth.d.ts +45 -0
- package/dist/esm/auth/oauth.js +37 -0
- package/dist/esm/auth/oauth.js.map +1 -1
- package/dist/esm/auth/tokenExchange.d.ts +0 -12
- package/dist/esm/auth/tokenExchange.js +0 -23
- package/dist/esm/auth/tokenExchange.js.map +1 -1
- package/dist/esm/management/__generated/index.d.ts +2 -1
- package/dist/esm/management/__generated/index.js +2 -1
- package/dist/esm/management/__generated/index.js.map +1 -1
- package/dist/esm/management/__generated/managers/attack-protection-manager.d.ts +4 -2
- package/dist/esm/management/__generated/managers/attack-protection-manager.js +4 -2
- package/dist/esm/management/__generated/managers/attack-protection-manager.js.map +1 -1
- package/dist/esm/management/__generated/managers/index.d.ts +1 -0
- package/dist/esm/management/__generated/managers/index.js +1 -0
- package/dist/esm/management/__generated/managers/index.js.map +1 -1
- package/dist/esm/management/__generated/managers/network-acls-manager.d.ts +48 -0
- package/dist/esm/management/__generated/managers/network-acls-manager.js +93 -0
- package/dist/esm/management/__generated/managers/network-acls-manager.js.map +1 -0
- package/dist/esm/management/__generated/managers/users-manager.d.ts +14 -1
- package/dist/esm/management/__generated/managers/users-manager.js +29 -0
- package/dist/esm/management/__generated/managers/users-manager.js.map +1 -1
- package/dist/esm/management/__generated/models/index.d.ts +485 -0
- package/dist/esm/management/__generated/models/index.js +112 -0
- package/dist/esm/management/__generated/models/index.js.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
package/dist/esm/auth/oauth.d.ts
CHANGED
|
@@ -231,6 +231,34 @@ export interface TokenExchangeGrantRequest {
|
|
|
231
231
|
*/
|
|
232
232
|
user_profile: string;
|
|
233
233
|
}
|
|
234
|
+
/**
|
|
235
|
+
* Options to exchange a federated connection token.
|
|
236
|
+
*/
|
|
237
|
+
export interface TokenForConnectionRequest {
|
|
238
|
+
/**
|
|
239
|
+
* The subject token(refresh token in this case) to exchange for an access token for a connection.
|
|
240
|
+
*/
|
|
241
|
+
subject_token: string;
|
|
242
|
+
/**
|
|
243
|
+
* The target social provider connection (e.g., "google-oauth2").
|
|
244
|
+
*/
|
|
245
|
+
connection: string;
|
|
246
|
+
/**
|
|
247
|
+
* Optional login hint
|
|
248
|
+
*/
|
|
249
|
+
login_hint?: string;
|
|
250
|
+
}
|
|
251
|
+
export interface TokenForConnectionResponse {
|
|
252
|
+
access_token: string;
|
|
253
|
+
scope?: string;
|
|
254
|
+
expires_at: number;
|
|
255
|
+
connection: string;
|
|
256
|
+
[key: string]: unknown;
|
|
257
|
+
}
|
|
258
|
+
export declare const TOKEN_FOR_CONNECTION_GRANT_TYPE = "urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token";
|
|
259
|
+
export declare const TOKEN_FOR_CONNECTION_TOKEN_TYPE = "urn:ietf:params:oauth:token-type:refresh_token";
|
|
260
|
+
export declare const TOKEN_FOR_CONNECTION_REQUESTED_TOKEN_TYPE = "http://auth0.com/oauth/token-type/federated-connection-access-token";
|
|
261
|
+
export declare const TOKEN_URL = "/oauth/token";
|
|
234
262
|
/**
|
|
235
263
|
* OAuth 2.0 flows.
|
|
236
264
|
*/
|
|
@@ -390,4 +418,21 @@ export declare class OAuth extends BaseAuthAPI {
|
|
|
390
418
|
revokeRefreshToken(bodyParameters: RevokeRefreshTokenRequest, options?: {
|
|
391
419
|
initOverrides?: InitOverride;
|
|
392
420
|
}): Promise<VoidApiResponse>;
|
|
421
|
+
/**
|
|
422
|
+
* Exchanges a subject token (refresh token in this case) for an access token for the connection.
|
|
423
|
+
*
|
|
424
|
+
* The request body includes:
|
|
425
|
+
* - client_id (and client_secret/client_assertion via addClientAuthentication)
|
|
426
|
+
* - grant_type set to `urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token`
|
|
427
|
+
* - subject_token (refresh token) and fixed subject_token_type for refresh tokens (`urn:ietf:params:oauth:token-type:refresh_token`)
|
|
428
|
+
* - requested_token_type (`http://auth0.com/oauth/token-type/federated-connection-access-token`) indicating that a federated connection access token is desired
|
|
429
|
+
* - connection name and an optional `login_hint` if provided
|
|
430
|
+
*
|
|
431
|
+
* @param bodyParameters - The options to retrieve a token for a connection.
|
|
432
|
+
* @returns A promise with the token response data.
|
|
433
|
+
* @throws An error if the exchange fails.
|
|
434
|
+
*/
|
|
435
|
+
tokenForConnection(bodyParameters: TokenForConnectionRequest, options?: {
|
|
436
|
+
initOverrides?: InitOverride;
|
|
437
|
+
}): Promise<JSONApiResponse<TokenSet>>;
|
|
393
438
|
}
|
package/dist/esm/auth/oauth.js
CHANGED
|
@@ -2,6 +2,10 @@ import { JSONApiResponse, VoidApiResponse, validateRequiredRequestParams, } from
|
|
|
2
2
|
import { BaseAuthAPI, grant } from './base-auth-api.js';
|
|
3
3
|
import { IDTokenValidator } from './id-token-validator.js';
|
|
4
4
|
import { mtlsPrefix } from '../utils.js';
|
|
5
|
+
export const TOKEN_FOR_CONNECTION_GRANT_TYPE = 'urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token';
|
|
6
|
+
export const TOKEN_FOR_CONNECTION_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:refresh_token';
|
|
7
|
+
export const TOKEN_FOR_CONNECTION_REQUESTED_TOKEN_TYPE = 'http://auth0.com/oauth/token-type/federated-connection-access-token';
|
|
8
|
+
export const TOKEN_URL = '/oauth/token';
|
|
5
9
|
/**
|
|
6
10
|
* OAuth 2.0 flows.
|
|
7
11
|
*/
|
|
@@ -201,5 +205,38 @@ export class OAuth extends BaseAuthAPI {
|
|
|
201
205
|
}, options.initOverrides);
|
|
202
206
|
return VoidApiResponse.fromResponse(response);
|
|
203
207
|
}
|
|
208
|
+
/**
|
|
209
|
+
* Exchanges a subject token (refresh token in this case) for an access token for the connection.
|
|
210
|
+
*
|
|
211
|
+
* The request body includes:
|
|
212
|
+
* - client_id (and client_secret/client_assertion via addClientAuthentication)
|
|
213
|
+
* - grant_type set to `urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token`
|
|
214
|
+
* - subject_token (refresh token) and fixed subject_token_type for refresh tokens (`urn:ietf:params:oauth:token-type:refresh_token`)
|
|
215
|
+
* - requested_token_type (`http://auth0.com/oauth/token-type/federated-connection-access-token`) indicating that a federated connection access token is desired
|
|
216
|
+
* - connection name and an optional `login_hint` if provided
|
|
217
|
+
*
|
|
218
|
+
* @param bodyParameters - The options to retrieve a token for a connection.
|
|
219
|
+
* @returns A promise with the token response data.
|
|
220
|
+
* @throws An error if the exchange fails.
|
|
221
|
+
*/
|
|
222
|
+
async tokenForConnection(bodyParameters, options = {}) {
|
|
223
|
+
validateRequiredRequestParams(bodyParameters, ['connection', 'subject_token']);
|
|
224
|
+
const body = {
|
|
225
|
+
...bodyParameters,
|
|
226
|
+
grant_type: TOKEN_FOR_CONNECTION_GRANT_TYPE,
|
|
227
|
+
subject_token_type: TOKEN_FOR_CONNECTION_TOKEN_TYPE,
|
|
228
|
+
requested_token_type: TOKEN_FOR_CONNECTION_REQUESTED_TOKEN_TYPE,
|
|
229
|
+
};
|
|
230
|
+
await this.addClientAuthentication(body);
|
|
231
|
+
const response = await this.request({
|
|
232
|
+
path: TOKEN_URL,
|
|
233
|
+
method: 'POST',
|
|
234
|
+
headers: {
|
|
235
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
236
|
+
},
|
|
237
|
+
body: new URLSearchParams(body),
|
|
238
|
+
}, options.initOverrides);
|
|
239
|
+
return JSONApiResponse.fromResponse(response);
|
|
240
|
+
}
|
|
204
241
|
}
|
|
205
242
|
//# sourceMappingURL=oauth.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.js","sourceRoot":"","sources":["../../../src/auth/oauth.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EACf,eAAe,EACf,6BAA6B,GAC9B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,WAAW,EAA+B,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,EAA0B,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"oauth.js","sourceRoot":"","sources":["../../../src/auth/oauth.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EACf,eAAe,EACf,6BAA6B,GAC9B,MAAM,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EAAE,IAAI,CAAC,QAAQ,EAAE,GAAG,cAAc,EAAE,CAAC;SAC1F,EACD,OAAO,CAAC,aAAa,CACtB,CAAC;QAEF,OAAO,eAAe,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAChD,CAAC;IAED;;;;;;;;;;;;;OAaG;IACI,KAAK,CAAC,kBAAkB,CAC7B,cAAyC,EACzC,UAA4C,EAAE;QAE9C,6BAA6B,CAAC,cAAc,EAAE,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC,CAAC;QAE/E,MAAM,IAAI,GAA2B;YACnC,GAAG,cAAc;YACjB,UAAU,EAAE,+BAA+B;YAC3C,kBAAkB,EAAE,+BAA+B;YACnD,oBAAoB,EAAE,yCAAyC;SAChE,CAAC;QAEF,MAAM,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;QAEzC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CACjC;YACE,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,cAAc,EAAE,mCAAmC;aACpD;YACD,IAAI,EAAE,IAAI,eAAe,CAAC,IAAI,CAAC;SAChC,EACD,OAAO,CAAC,aAAa,CACtB,CAAC;QAEF,OAAO,eAAe,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAChD,CAAC;CACF"}
|
|
@@ -136,18 +136,6 @@ export declare class CustomTokenExchange extends BaseAuthAPI implements ICustomT
|
|
|
136
136
|
* - Auth0 returns error responses (4xx/5xx)
|
|
137
137
|
*/
|
|
138
138
|
exchangeToken(options: CustomTokenExchangeOptions): Promise<TokenResponse>;
|
|
139
|
-
/**
|
|
140
|
-
* Enforces namespace ownership requirements for token types
|
|
141
|
-
*
|
|
142
|
-
* @param tokenType - Proposed subject_token_type value
|
|
143
|
-
* @throws {Error} When reserved namespace pattern detected
|
|
144
|
-
*
|
|
145
|
-
* @privateRemarks
|
|
146
|
-
* Implements RFC 8693 Section 4.1 requirements for token type URIs
|
|
147
|
-
*
|
|
148
|
-
* @see {@link https://www.rfc-editor.org/rfc/rfc8693#section-4.1 | RFC 8693 Section 4.1}
|
|
149
|
-
*/
|
|
150
|
-
private validateTokenType;
|
|
151
139
|
}
|
|
152
140
|
/**
|
|
153
141
|
* Standardized token response structure for Auth0 authentication flows
|
|
@@ -43,7 +43,6 @@ export class CustomTokenExchange extends BaseAuthAPI {
|
|
|
43
43
|
* - Auth0 returns error responses (4xx/5xx)
|
|
44
44
|
*/
|
|
45
45
|
async exchangeToken(options) {
|
|
46
|
-
this.validateTokenType(options.subject_token_type);
|
|
47
46
|
const body = {
|
|
48
47
|
...options,
|
|
49
48
|
grant_type: TOKEN_EXCHANGE_GRANT_TYPE,
|
|
@@ -61,27 +60,5 @@ export class CustomTokenExchange extends BaseAuthAPI {
|
|
|
61
60
|
const r = await JSONApiResponse.fromResponse(response);
|
|
62
61
|
return r.data;
|
|
63
62
|
}
|
|
64
|
-
/**
|
|
65
|
-
* Enforces namespace ownership requirements for token types
|
|
66
|
-
*
|
|
67
|
-
* @param tokenType - Proposed subject_token_type value
|
|
68
|
-
* @throws {Error} When reserved namespace pattern detected
|
|
69
|
-
*
|
|
70
|
-
* @privateRemarks
|
|
71
|
-
* Implements RFC 8693 Section 4.1 requirements for token type URIs
|
|
72
|
-
*
|
|
73
|
-
* @see {@link https://www.rfc-editor.org/rfc/rfc8693#section-4.1 | RFC 8693 Section 4.1}
|
|
74
|
-
*/
|
|
75
|
-
validateTokenType(tokenType) {
|
|
76
|
-
const reservedPatterns = [
|
|
77
|
-
/^urn:ietf:params:oauth:/i,
|
|
78
|
-
/^https:\/\/auth0\.com\//i,
|
|
79
|
-
/^urn:auth0:/i,
|
|
80
|
-
];
|
|
81
|
-
if (reservedPatterns.some((pattern) => pattern.test(tokenType))) {
|
|
82
|
-
throw new Error(`Invalid subject_token_type '${tokenType}'. ` +
|
|
83
|
-
`Reserved namespaces are prohibited. Use URIs under your organization's control.`);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
63
|
}
|
|
87
64
|
//# sourceMappingURL=tokenExchange.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokenExchange.js","sourceRoot":"","sources":["../../../src/auth/tokenExchange.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAyHjD,qDAAqD;AACrD,MAAM,yBAAyB,GAAG,iDAAiD,CAAC;AACpF,gCAAgC;AAChC,MAAM,SAAS,GAAG,cAAc,CAAC;AAEjC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,OAAO,mBAAoB,SAAQ,WAAW;IAClD;;;;;;;;;;OAUG;IACH,KAAK,CAAC,aAAa,CAAC,OAAmC;QACrD,
|
|
1
|
+
{"version":3,"file":"tokenExchange.js","sourceRoot":"","sources":["../../../src/auth/tokenExchange.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAyHjD,qDAAqD;AACrD,MAAM,yBAAyB,GAAG,iDAAiD,CAAC;AACpF,gCAAgC;AAChC,MAAM,SAAS,GAAG,cAAc,CAAC;AAEjC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,OAAO,mBAAoB,SAAQ,WAAW;IAClD;;;;;;;;;;OAUG;IACH,KAAK,CAAC,aAAa,CAAC,OAAmC;QACrD,MAAM,IAAI,GAAmC;YAC3C,GAAG,OAAO;YACV,UAAU,EAAE,yBAAyB;YACrC,SAAS,EAAE,IAAI,CAAC,QAAQ;SACzB,CAAC;QAEF,MAAM,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;QAEzC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CACjC;YACE,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,cAAc,EAAE,mCAAmC;aACpD;YACD,IAAI,EAAE,IAAI,eAAe,CAAC,IAA8B,CAAC;SAC1D,EACD,EAAE,CACH,CAAC;QAEF,MAAM,CAAC,GAAmC,MAAM,eAAe,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QACvF,OAAO,CAAC,CAAC,IAAI,CAAC;IAChB,CAAC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from './managers/index.js';
|
|
2
2
|
export * from './models/index.js';
|
|
3
|
-
import { ActionsManager, AnomalyManager, AttackProtectionManager, BlacklistsManager, BrandingManager, ClientGrantsManager, ClientsManager, ConnectionsManager, CustomDomainsManager, DeviceCredentialsManager, EmailTemplatesManager, EmailsManager, FlowsManager, FormsManager, GrantsManager, GuardianManager, HooksManager, JobsManager, KeysManager, LogStreamsManager, LogsManager, OrganizationsManager, PromptsManager, RefreshTokensManager, ResourceServersManager, RolesManager, RulesManager, RulesConfigsManager, SelfServiceProfilesManager, SessionsManager, StatsManager, TenantsManager, TicketsManager, TokenExchangeProfilesManager, UserBlocksManager, UsersManager, UsersByEmailManager } from './managers/index.js';
|
|
3
|
+
import { ActionsManager, AnomalyManager, AttackProtectionManager, BlacklistsManager, BrandingManager, ClientGrantsManager, ClientsManager, ConnectionsManager, CustomDomainsManager, DeviceCredentialsManager, EmailTemplatesManager, EmailsManager, FlowsManager, FormsManager, GrantsManager, GuardianManager, HooksManager, JobsManager, KeysManager, LogStreamsManager, LogsManager, NetworkAclsManager, OrganizationsManager, PromptsManager, RefreshTokensManager, ResourceServersManager, RolesManager, RulesManager, RulesConfigsManager, SelfServiceProfilesManager, SessionsManager, StatsManager, TenantsManager, TicketsManager, TokenExchangeProfilesManager, UserBlocksManager, UsersManager, UsersByEmailManager } from './managers/index.js';
|
|
4
4
|
import { Configuration } from '../../lib/runtime.js';
|
|
5
5
|
export declare abstract class ManagementClientBase {
|
|
6
6
|
protected configuration: Configuration;
|
|
@@ -25,6 +25,7 @@ export declare abstract class ManagementClientBase {
|
|
|
25
25
|
readonly keys: KeysManager;
|
|
26
26
|
readonly logStreams: LogStreamsManager;
|
|
27
27
|
readonly logs: LogsManager;
|
|
28
|
+
readonly networkAcls: NetworkAclsManager;
|
|
28
29
|
readonly organizations: OrganizationsManager;
|
|
29
30
|
readonly prompts: PromptsManager;
|
|
30
31
|
readonly refreshTokens: RefreshTokensManager;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from './managers/index.js';
|
|
2
2
|
export * from './models/index.js';
|
|
3
|
-
import { ActionsManager, AnomalyManager, AttackProtectionManager, BlacklistsManager, BrandingManager, ClientGrantsManager, ClientsManager, ConnectionsManager, CustomDomainsManager, DeviceCredentialsManager, EmailTemplatesManager, EmailsManager, FlowsManager, FormsManager, GrantsManager, GuardianManager, HooksManager, JobsManager, KeysManager, LogStreamsManager, LogsManager, OrganizationsManager, PromptsManager, RefreshTokensManager, ResourceServersManager, RolesManager, RulesManager, RulesConfigsManager, SelfServiceProfilesManager, SessionsManager, StatsManager, TenantsManager, TicketsManager, TokenExchangeProfilesManager, UserBlocksManager, UsersManager, UsersByEmailManager, } from './managers/index.js';
|
|
3
|
+
import { ActionsManager, AnomalyManager, AttackProtectionManager, BlacklistsManager, BrandingManager, ClientGrantsManager, ClientsManager, ConnectionsManager, CustomDomainsManager, DeviceCredentialsManager, EmailTemplatesManager, EmailsManager, FlowsManager, FormsManager, GrantsManager, GuardianManager, HooksManager, JobsManager, KeysManager, LogStreamsManager, LogsManager, NetworkAclsManager, OrganizationsManager, PromptsManager, RefreshTokensManager, ResourceServersManager, RolesManager, RulesManager, RulesConfigsManager, SelfServiceProfilesManager, SessionsManager, StatsManager, TenantsManager, TicketsManager, TokenExchangeProfilesManager, UserBlocksManager, UsersManager, UsersByEmailManager, } from './managers/index.js';
|
|
4
4
|
export class ManagementClientBase {
|
|
5
5
|
constructor(configuration) {
|
|
6
6
|
this.configuration = configuration;
|
|
@@ -25,6 +25,7 @@ export class ManagementClientBase {
|
|
|
25
25
|
this.keys = new KeysManager(this.configuration);
|
|
26
26
|
this.logStreams = new LogStreamsManager(this.configuration);
|
|
27
27
|
this.logs = new LogsManager(this.configuration);
|
|
28
|
+
this.networkAcls = new NetworkAclsManager(this.configuration);
|
|
28
29
|
this.organizations = new OrganizationsManager(this.configuration);
|
|
29
30
|
this.prompts = new PromptsManager(this.configuration);
|
|
30
31
|
this.refreshTokens = new RefreshTokensManager(this.configuration);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/management/__generated/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAElC,OAAO,EACL,cAAc,EACd,cAAc,EACd,uBAAuB,EACvB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACxB,qBAAqB,EACrB,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,eAAe,EACf,YAAY,EACZ,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,oBAAoB,EACpB,cAAc,EACd,oBAAoB,EACpB,sBAAsB,EACtB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,0BAA0B,EAC1B,eAAe,EACf,YAAY,EACZ,cAAc,EACd,cAAc,EACd,4BAA4B,EAC5B,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAI7B,MAAM,OAAgB,oBAAoB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/management/__generated/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAElC,OAAO,EACL,cAAc,EACd,cAAc,EACd,uBAAuB,EACvB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,cAAc,EAC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AI,CAAC,aAAa,CAAC,CAAC;QAC3D,wBAAmB,GAAG,IAAI,0BAA0B,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACzE,aAAQ,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACnD,UAAK,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC7C,YAAO,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACjD,YAAO,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACjD,0BAAqB,GAAG,IAAI,4BAA4B,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC7E,eAAU,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACvD,UAAK,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC7C,iBAAY,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAEtB,CAAC;CACvD"}
|
|
@@ -7,7 +7,8 @@ declare const BaseAPI: typeof runtime.BaseAPI;
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class AttackProtectionManager extends BaseAPI {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Retrieve details of the Breached Password Detection configuration of your tenant.
|
|
11
|
+
* Get Breached Password Detection settings
|
|
11
12
|
*
|
|
12
13
|
* @throws {RequiredError}
|
|
13
14
|
*/
|
|
@@ -25,7 +26,8 @@ export declare class AttackProtectionManager extends BaseAPI {
|
|
|
25
26
|
*/
|
|
26
27
|
getSuspiciousIpThrottlingConfig(initOverrides?: InitOverride): Promise<ApiResponse<GetSuspiciousIpThrottling200Response>>;
|
|
27
28
|
/**
|
|
28
|
-
* Update
|
|
29
|
+
* Update details of the Breached Password Detection configuration of your tenant.
|
|
30
|
+
* Update Breached Password Detection settings
|
|
29
31
|
*
|
|
30
32
|
* @throws {RequiredError}
|
|
31
33
|
*/
|
|
@@ -5,7 +5,8 @@ const { BaseAPI } = runtime;
|
|
|
5
5
|
*/
|
|
6
6
|
export class AttackProtectionManager extends BaseAPI {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Retrieve details of the Breached Password Detection configuration of your tenant.
|
|
9
|
+
* Get Breached Password Detection settings
|
|
9
10
|
*
|
|
10
11
|
* @throws {RequiredError}
|
|
11
12
|
*/
|
|
@@ -41,7 +42,8 @@ export class AttackProtectionManager extends BaseAPI {
|
|
|
41
42
|
return runtime.JSONApiResponse.fromResponse(response);
|
|
42
43
|
}
|
|
43
44
|
/**
|
|
44
|
-
* Update
|
|
45
|
+
* Update details of the Breached Password Detection configuration of your tenant.
|
|
46
|
+
* Update Breached Password Detection settings
|
|
45
47
|
*
|
|
46
48
|
* @throws {RequiredError}
|
|
47
49
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attack-protection-manager.js","sourceRoot":"","sources":["../../../../../src/management/__generated/managers/attack-protection-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC;AAWnD,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;AAE5B;;GAEG;AACH,MAAM,OAAO,uBAAwB,SAAQ,OAAO;IAClD
|
|
1
|
+
{"version":3,"file":"attack-protection-manager.js","sourceRoot":"","sources":["../../../../../src/management/__generated/managers/attack-protection-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC;AAWnD,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;AAE5B;;GAEG;AACH,MAAM,OAAO,uBAAwB,SAAQ,OAAO;IAClD;;;;;OAKG;IACH,KAAK,CAAC,kCAAkC,CACtC,aAA4B;QAE5B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CACjC;YACE,IAAI,EAAE,gDAAgD;YACtD,MAAM,EAAE,KAAK;SAC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,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CACjC;YACE,IAAI,EAAE,2CAA2C;YACjD,MAAM,EAAE,OAAO;YACf,OAAO,EAAE,gBAAgB;YACzB,IAAI,EAAE,cAAc;SACrB,EACD,aAAa,CACd,CAAC;QAEF,OAAO,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IACxD,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,kCAAkC,CACtC,cAAkD,EAClD,aAA4B;QAE5B,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,gBAAgB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;QAEtD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CACjC;YACE,IAAI,EAAE,6CAA6C;YACnD,MAAM,EAAE,OAAO;YACf,OAAO,EAAE,gBAAgB;YACzB,IAAI,EAAE,cAAc;SACrB,EACD,aAAa,CACd,CAAC;QAEF,OAAO,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IACxD,CAAC;CACF"}
|
|
@@ -19,6 +19,7 @@ export * from './jobs-manager.js';
|
|
|
19
19
|
export * from './keys-manager.js';
|
|
20
20
|
export * from './log-streams-manager.js';
|
|
21
21
|
export * from './logs-manager.js';
|
|
22
|
+
export * from './network-acls-manager.js';
|
|
22
23
|
export * from './organizations-manager.js';
|
|
23
24
|
export * from './prompts-manager.js';
|
|
24
25
|
export * from './refresh-tokens-manager.js';
|
|
@@ -19,6 +19,7 @@ export * from './jobs-manager.js';
|
|
|
19
19
|
export * from './keys-manager.js';
|
|
20
20
|
export * from './log-streams-manager.js';
|
|
21
21
|
export * from './logs-manager.js';
|
|
22
|
+
export * from './network-acls-manager.js';
|
|
22
23
|
export * from './organizations-manager.js';
|
|
23
24
|
export * from './prompts-manager.js';
|
|
24
25
|
export * from './refresh-tokens-manager.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/management/__generated/managers/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sCAAsC,CAAC;AACrD,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/management/__generated/managers/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sCAAsC,CAAC;AACrD,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as runtime from '../../../lib/runtime.js';
|
|
2
|
+
import type { InitOverride, ApiResponse } from '../../../lib/runtime.js';
|
|
3
|
+
import type { GetNetworkAclsById200Response, PutNetworkAclsByIdRequest, GetNetworkAcls200ResponseOneOf, DeleteNetworkAclsByIdRequest, GetNetworkAclsRequest, GetNetworkAclsByIdRequest, PutNetworkAclsByIdOperationRequest } from '../models/index.js';
|
|
4
|
+
declare const BaseAPI: typeof runtime.BaseAPI;
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export declare class NetworkAclsManager extends BaseAPI {
|
|
9
|
+
/**
|
|
10
|
+
* Delete existing access control list for your client.
|
|
11
|
+
* Delete Access Control List
|
|
12
|
+
*
|
|
13
|
+
* @throws {RequiredError}
|
|
14
|
+
*/
|
|
15
|
+
delete(requestParameters: DeleteNetworkAclsByIdRequest, initOverrides?: InitOverride): Promise<ApiResponse<void>>;
|
|
16
|
+
/**
|
|
17
|
+
* Get all access control list entries for your client.
|
|
18
|
+
* Get all access control list entries for a tenant
|
|
19
|
+
*
|
|
20
|
+
* @throws {RequiredError}
|
|
21
|
+
*/
|
|
22
|
+
getAll(requestParameters: GetNetworkAclsRequest & {
|
|
23
|
+
include_totals: true;
|
|
24
|
+
}, initOverrides?: InitOverride): Promise<ApiResponse<GetNetworkAcls200ResponseOneOf>>;
|
|
25
|
+
getAll(requestParameters?: GetNetworkAclsRequest, initOverrides?: InitOverride): Promise<ApiResponse<Array<GetNetworkAclsById200Response>>>;
|
|
26
|
+
/**
|
|
27
|
+
* Get a specific access control list entry for your client.
|
|
28
|
+
* Get a specific access control list entry for a tenant
|
|
29
|
+
*
|
|
30
|
+
* @throws {RequiredError}
|
|
31
|
+
*/
|
|
32
|
+
get(requestParameters: GetNetworkAclsByIdRequest, initOverrides?: InitOverride): Promise<ApiResponse<GetNetworkAclsById200Response>>;
|
|
33
|
+
/**
|
|
34
|
+
* Create a new access control list for your client.
|
|
35
|
+
* Create Access Control List
|
|
36
|
+
*
|
|
37
|
+
* @throws {RequiredError}
|
|
38
|
+
*/
|
|
39
|
+
create(bodyParameters: PutNetworkAclsByIdRequest, initOverrides?: InitOverride): Promise<ApiResponse<GetNetworkAclsById200Response>>;
|
|
40
|
+
/**
|
|
41
|
+
* Update existing access control list for your client.
|
|
42
|
+
* Update Access Control List
|
|
43
|
+
*
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
*/
|
|
46
|
+
update(requestParameters: PutNetworkAclsByIdOperationRequest, bodyParameters: PutNetworkAclsByIdRequest, initOverrides?: InitOverride): Promise<ApiResponse<GetNetworkAclsById200Response>>;
|
|
47
|
+
}
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import * as runtime from '../../../lib/runtime.js';
|
|
2
|
+
const { BaseAPI } = runtime;
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
export class NetworkAclsManager extends BaseAPI {
|
|
7
|
+
/**
|
|
8
|
+
* Delete existing access control list for your client.
|
|
9
|
+
* Delete Access Control List
|
|
10
|
+
*
|
|
11
|
+
* @throws {RequiredError}
|
|
12
|
+
*/
|
|
13
|
+
async delete(requestParameters, initOverrides) {
|
|
14
|
+
runtime.validateRequiredRequestParams(requestParameters, ['id']);
|
|
15
|
+
const response = await this.request({
|
|
16
|
+
path: `/network-acls/{id}`.replace('{id}', encodeURIComponent(String(requestParameters.id))),
|
|
17
|
+
method: 'DELETE',
|
|
18
|
+
}, initOverrides);
|
|
19
|
+
return runtime.VoidApiResponse.fromResponse(response);
|
|
20
|
+
}
|
|
21
|
+
async getAll(requestParameters = {}, initOverrides) {
|
|
22
|
+
const queryParameters = runtime.applyQueryParams(requestParameters, [
|
|
23
|
+
{
|
|
24
|
+
key: 'page',
|
|
25
|
+
config: {},
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
key: 'per_page',
|
|
29
|
+
config: {},
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
key: 'include_totals',
|
|
33
|
+
config: {},
|
|
34
|
+
},
|
|
35
|
+
]);
|
|
36
|
+
const response = await this.request({
|
|
37
|
+
path: `/network-acls`,
|
|
38
|
+
method: 'GET',
|
|
39
|
+
query: queryParameters,
|
|
40
|
+
}, initOverrides);
|
|
41
|
+
return runtime.JSONApiResponse.fromResponse(response);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Get a specific access control list entry for your client.
|
|
45
|
+
* Get a specific access control list entry for a tenant
|
|
46
|
+
*
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
*/
|
|
49
|
+
async get(requestParameters, initOverrides) {
|
|
50
|
+
runtime.validateRequiredRequestParams(requestParameters, ['id']);
|
|
51
|
+
const response = await this.request({
|
|
52
|
+
path: `/network-acls/{id}`.replace('{id}', encodeURIComponent(String(requestParameters.id))),
|
|
53
|
+
method: 'GET',
|
|
54
|
+
}, initOverrides);
|
|
55
|
+
return runtime.JSONApiResponse.fromResponse(response);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Create a new access control list for your client.
|
|
59
|
+
* Create Access Control List
|
|
60
|
+
*
|
|
61
|
+
* @throws {RequiredError}
|
|
62
|
+
*/
|
|
63
|
+
async create(bodyParameters, initOverrides) {
|
|
64
|
+
const headerParameters = {};
|
|
65
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
66
|
+
const response = await this.request({
|
|
67
|
+
path: `/network-acls`,
|
|
68
|
+
method: 'POST',
|
|
69
|
+
headers: headerParameters,
|
|
70
|
+
body: bodyParameters,
|
|
71
|
+
}, initOverrides);
|
|
72
|
+
return runtime.JSONApiResponse.fromResponse(response);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Update existing access control list for your client.
|
|
76
|
+
* Update Access Control List
|
|
77
|
+
*
|
|
78
|
+
* @throws {RequiredError}
|
|
79
|
+
*/
|
|
80
|
+
async update(requestParameters, bodyParameters, initOverrides) {
|
|
81
|
+
runtime.validateRequiredRequestParams(requestParameters, ['id']);
|
|
82
|
+
const headerParameters = {};
|
|
83
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
84
|
+
const response = await this.request({
|
|
85
|
+
path: `/network-acls/{id}`.replace('{id}', encodeURIComponent(String(requestParameters.id))),
|
|
86
|
+
method: 'PUT',
|
|
87
|
+
headers: headerParameters,
|
|
88
|
+
body: bodyParameters,
|
|
89
|
+
}, initOverrides);
|
|
90
|
+
return runtime.JSONApiResponse.fromResponse(response);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=network-acls-manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"network-acls-manager.js","sourceRoot":"","sources":["../../../../../src/management/__generated/managers/network-acls-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC;AAanD,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;AAE5B;;GAEG;AACH,MAAM,OAAO,kBAAmB,SAAQ,OAAO;IAC7C;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,iBAA+C,EAC/C,aAA4B;QAE5B,OAAO,CAAC,6BAA6B,CAAC,iBAAiB,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;QAEjE,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CACjC;YACE,IAAI,EAAE,oBAAoB,CAAC,OAAO,CAChC,MAAM,EACN,kBAAkB,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC,CACjD;YACD,MAAM,EAAE,QAAQ;SACjB,EACD,aAAa,CACd,CAAC;QAEF,OAAO,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IACxD,CAAC;IAgBD,KAAK,CAAC,MAAM,CACV,oBAA2C,EAAE,EAC7C,aAA4B;QAE5B,MAAM,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC,iBAAiB,EAAE;YAClE;gBACE,GAAG,EAAE,MAAM;gBACX,MAAM,EAAE,EAAE;aACX;YACD;gBACE,GAAG,EAAE,UAAU;gBACf,MAAM,EAAE,EAAE;aACX;YACD;gBACE,GAAG,EAAE,gBAAgB;gBACrB,MAAM,EAAE,EAAE;aACX;SACF,CAAC,CAAC;QAEH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CACjC;YACE,IAAI,EAAE,eAAe;YACrB,MAAM,EAAE,KAA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AAG,kBAAkB,CAAC;QAEtD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CACjC;YACE,IAAI,EAAE,oBAAoB,CAAC,OAAO,CAChC,MAAM,EACN,kBAAkB,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC,CACjD;YACD,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,IAAI,EAAE,cAAc;SACrB,EACD,aAAa,CACd,CAAC;QAEF,OAAO,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IACxD,CAAC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as runtime from '../../../lib/runtime.js';
|
|
2
2
|
import type { InitOverride, ApiResponse } from '../../../lib/runtime.js';
|
|
3
|
-
import type { DeletePermissionsRequest, DeleteUserIdentityByUserId200ResponseInner, DeleteUserRolesRequest, GetAuthenticationMethods200ResponseOneOfInner, GetRefreshTokensForUser200Response, GetSessionsForUser200Response, GetUsers200ResponseOneOfInner, PatchAuthenticationMethodsByAuthenticationMethodIdRequest, PostAuthenticationMethods201Response, PostAuthenticationMethodsRequest, PostIdentitiesRequest, PostPermissionsRequest, PostRecoveryCodeRegeneration200Response, PostUserRolesRequest, PutAuthenticationMethods200ResponseInner, PutAuthenticationMethodsRequestInner, UserCreate, UserEnrollment, UserIdentity, UserUpdate, GetAuthenticationMethods200ResponseOneOf, GetLogs200ResponseOneOf, Log, GetPermissions200ResponseOneOf, GetPermissions200ResponseOneOfInner, GetOrganizations200ResponseOneOf, GetOrganizations200ResponseOneOfInner, GetOrganizationMemberRoles200ResponseOneOf, GetOrganizationMemberRoles200ResponseOneOfInner, GetUsers200ResponseOneOf, DeleteAuthenticationMethodsRequest, DeleteAuthenticationMethodsByAuthenticationMethodIdRequest, DeleteAuthenticatorsRequest, DeleteMultifactorByProviderRequest, DeletePermissionsOperationRequest, DeleteRefreshTokensForUserRequest, DeleteSessionsForUserRequest, DeleteUserIdentityByUserIdRequest, DeleteUserRolesOperationRequest, DeleteUsersByIdRequest, GetAuthenticationMethodsRequest, GetAuthenticationMethodsByAuthenticationMethodIdRequest, GetEnrollmentsRequest, GetLogsByUserRequest, GetPermissionsRequest, GetRefreshTokensForUserRequest, GetSessionsForUserRequest, GetUserOrganizationsRequest, GetUserRolesRequest, GetUsersRequest, GetUsersByIdRequest, PatchAuthenticationMethodsByAuthenticationMethodIdOperationRequest, PatchUsersByIdRequest, PostAuthenticationMethodsOperationRequest, PostIdentitiesOperationRequest, PostInvalidateRememberBrowserRequest, PostPermissionsOperationRequest, PostRecoveryCodeRegenerationRequest, PostUserRolesOperationRequest, PutAuthenticationMethodsRequest } from '../models/index.js';
|
|
3
|
+
import type { DeletePermissionsRequest, DeleteUserIdentityByUserId200ResponseInner, DeleteUserRolesRequest, GetAuthenticationMethods200ResponseOneOfInner, GetFederatedConnectionsTokensets200ResponseInner, GetRefreshTokensForUser200Response, GetSessionsForUser200Response, GetUsers200ResponseOneOfInner, PatchAuthenticationMethodsByAuthenticationMethodIdRequest, PostAuthenticationMethods201Response, PostAuthenticationMethodsRequest, PostIdentitiesRequest, PostPermissionsRequest, PostRecoveryCodeRegeneration200Response, PostUserRolesRequest, PutAuthenticationMethods200ResponseInner, PutAuthenticationMethodsRequestInner, UserCreate, UserEnrollment, UserIdentity, UserUpdate, GetAuthenticationMethods200ResponseOneOf, GetLogs200ResponseOneOf, Log, GetPermissions200ResponseOneOf, GetPermissions200ResponseOneOfInner, GetOrganizations200ResponseOneOf, GetOrganizations200ResponseOneOfInner, GetOrganizationMemberRoles200ResponseOneOf, GetOrganizationMemberRoles200ResponseOneOfInner, GetUsers200ResponseOneOf, DeleteAuthenticationMethodsRequest, DeleteAuthenticationMethodsByAuthenticationMethodIdRequest, DeleteAuthenticatorsRequest, DeleteFederatedConnectionsTokensetsByTokensetIdRequest, DeleteMultifactorByProviderRequest, DeletePermissionsOperationRequest, DeleteRefreshTokensForUserRequest, DeleteSessionsForUserRequest, DeleteUserIdentityByUserIdRequest, DeleteUserRolesOperationRequest, DeleteUsersByIdRequest, GetAuthenticationMethodsRequest, GetAuthenticationMethodsByAuthenticationMethodIdRequest, GetEnrollmentsRequest, GetFederatedConnectionsTokensetsRequest, GetLogsByUserRequest, GetPermissionsRequest, GetRefreshTokensForUserRequest, GetSessionsForUserRequest, GetUserOrganizationsRequest, GetUserRolesRequest, GetUsersRequest, GetUsersByIdRequest, PatchAuthenticationMethodsByAuthenticationMethodIdOperationRequest, PatchUsersByIdRequest, PostAuthenticationMethodsOperationRequest, PostIdentitiesOperationRequest, PostInvalidateRememberBrowserRequest, PostPermissionsOperationRequest, PostRecoveryCodeRegenerationRequest, PostUserRolesOperationRequest, PutAuthenticationMethodsRequest } from '../models/index.js';
|
|
4
4
|
declare const BaseAPI: typeof runtime.BaseAPI;
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
@@ -24,6 +24,12 @@ export declare class UsersManager extends BaseAPI {
|
|
|
24
24
|
* @throws {RequiredError}
|
|
25
25
|
*/
|
|
26
26
|
deleteAllAuthenticators(requestParameters: DeleteAuthenticatorsRequest, initOverrides?: InitOverride): Promise<ApiResponse<void>>;
|
|
27
|
+
/**
|
|
28
|
+
* Deletes a tokenset for federated connections by id.
|
|
29
|
+
*
|
|
30
|
+
* @throws {RequiredError}
|
|
31
|
+
*/
|
|
32
|
+
deleteTokenset(requestParameters: DeleteFederatedConnectionsTokensetsByTokensetIdRequest, initOverrides?: InitOverride): Promise<ApiResponse<void>>;
|
|
27
33
|
/**
|
|
28
34
|
* Delete a <a href="https://auth0.com/docs/multifactor-authentication">multifactor</a> configuration for a user. This forces the user to re-configure the multi-factor provider.
|
|
29
35
|
* Delete a User's Multi-factor Provider
|
|
@@ -96,6 +102,13 @@ export declare class UsersManager extends BaseAPI {
|
|
|
96
102
|
* @throws {RequiredError}
|
|
97
103
|
*/
|
|
98
104
|
getEnrollments(requestParameters: GetEnrollmentsRequest, initOverrides?: InitOverride): Promise<ApiResponse<Array<UserEnrollment>>>;
|
|
105
|
+
/**
|
|
106
|
+
* List active federated connections tokensets for a provided user
|
|
107
|
+
* Get tokensets for a user
|
|
108
|
+
*
|
|
109
|
+
* @throws {RequiredError}
|
|
110
|
+
*/
|
|
111
|
+
getAllTokensets(requestParameters: GetFederatedConnectionsTokensetsRequest, initOverrides?: InitOverride): Promise<ApiResponse<Array<GetFederatedConnectionsTokensets200ResponseInner>>>;
|
|
99
112
|
/**
|
|
100
113
|
* Retrieve log events for a specific user.
|
|
101
114
|
*
|
|
@@ -45,6 +45,21 @@ export class UsersManager extends BaseAPI {
|
|
|
45
45
|
}, initOverrides);
|
|
46
46
|
return runtime.VoidApiResponse.fromResponse(response);
|
|
47
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* Deletes a tokenset for federated connections by id.
|
|
50
|
+
*
|
|
51
|
+
* @throws {RequiredError}
|
|
52
|
+
*/
|
|
53
|
+
async deleteTokenset(requestParameters, initOverrides) {
|
|
54
|
+
runtime.validateRequiredRequestParams(requestParameters, ['id', 'tokenset_id']);
|
|
55
|
+
const response = await this.request({
|
|
56
|
+
path: `/users/{id}/federated-connections-tokensets/{tokenset_id}`
|
|
57
|
+
.replace('{id}', encodeURIComponent(String(requestParameters.id)))
|
|
58
|
+
.replace('{tokenset_id}', encodeURIComponent(String(requestParameters.tokenset_id))),
|
|
59
|
+
method: 'DELETE',
|
|
60
|
+
}, initOverrides);
|
|
61
|
+
return runtime.VoidApiResponse.fromResponse(response);
|
|
62
|
+
}
|
|
48
63
|
/**
|
|
49
64
|
* Delete a <a href="https://auth0.com/docs/multifactor-authentication">multifactor</a> configuration for a user. This forces the user to re-configure the multi-factor provider.
|
|
50
65
|
* Delete a User's Multi-factor Provider
|
|
@@ -209,6 +224,20 @@ export class UsersManager extends BaseAPI {
|
|
|
209
224
|
}, initOverrides);
|
|
210
225
|
return runtime.JSONApiResponse.fromResponse(response);
|
|
211
226
|
}
|
|
227
|
+
/**
|
|
228
|
+
* List active federated connections tokensets for a provided user
|
|
229
|
+
* Get tokensets for a user
|
|
230
|
+
*
|
|
231
|
+
* @throws {RequiredError}
|
|
232
|
+
*/
|
|
233
|
+
async getAllTokensets(requestParameters, initOverrides) {
|
|
234
|
+
runtime.validateRequiredRequestParams(requestParameters, ['id']);
|
|
235
|
+
const response = await this.request({
|
|
236
|
+
path: `/users/{id}/federated-connections-tokensets`.replace('{id}', encodeURIComponent(String(requestParameters.id))),
|
|
237
|
+
method: 'GET',
|
|
238
|
+
}, initOverrides);
|
|
239
|
+
return runtime.JSONApiResponse.fromResponse(response);
|
|
240
|
+
}
|
|
212
241
|
async getLogs(requestParameters, initOverrides) {
|
|
213
242
|
runtime.validateRequiredRequestParams(requestParameters, ['id']);
|
|
214
243
|
const queryParameters = runtime.applyQueryParams(requestParameters, [
|