auth0 5.2.0 → 5.3.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/LICENSE +1 -1
- package/dist/cjs/management/Client.d.ts +3 -0
- package/dist/cjs/management/Client.js +59 -54
- package/dist/cjs/management/api/errors/PreconditionFailedError.d.ts +5 -0
- package/dist/cjs/management/api/errors/PreconditionFailedError.js +54 -0
- package/dist/cjs/management/api/errors/index.d.ts +1 -0
- package/dist/cjs/management/api/errors/index.js +1 -0
- package/dist/cjs/management/api/requests/requests.d.ts +185 -10
- package/dist/cjs/management/api/resources/actions/client/Client.d.ts +3 -0
- package/dist/cjs/management/api/resources/actions/client/Client.js +9 -4
- package/dist/cjs/management/api/resources/actions/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/actions/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/actions/resources/modules/client/Client.d.ts +149 -0
- package/dist/cjs/management/api/resources/actions/resources/modules/client/Client.js +569 -0
- package/dist/cjs/management/api/resources/actions/resources/modules/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/actions/resources/modules/client/index.js +2 -0
- package/dist/cjs/management/api/resources/actions/resources/modules/index.d.ts +2 -0
- package/dist/cjs/management/api/resources/actions/resources/modules/index.js +18 -0
- package/dist/cjs/management/api/resources/actions/resources/modules/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/actions/resources/modules/resources/index.js +37 -0
- package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/Client.d.ts +66 -0
- package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/Client.js +252 -0
- package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/index.js +2 -0
- package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/index.js +17 -0
- package/dist/cjs/management/api/resources/clientGrants/client/Client.d.ts +17 -0
- package/dist/cjs/management/api/resources/clientGrants/client/Client.js +61 -0
- package/dist/cjs/management/api/resources/connections/client/Client.d.ts +7 -3
- package/dist/cjs/management/api/resources/connections/client/Client.js +9 -5
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.ts +18 -0
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.js +80 -0
- package/dist/cjs/management/api/resources/deviceCredentials/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/deviceCredentials/client/Client.js +2 -1
- package/dist/cjs/management/api/resources/eventStreams/client/Client.d.ts +1 -2
- package/dist/cjs/management/api/resources/eventStreams/client/Client.js +59 -50
- package/dist/cjs/management/api/resources/flows/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/flows/index.js +1 -0
- package/dist/cjs/management/api/resources/flows/resources/executions/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/flows/resources/executions/index.js +1 -0
- package/dist/cjs/management/api/resources/flows/resources/executions/types/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/flows/resources/executions/types/index.js +17 -0
- package/dist/cjs/management/api/resources/flows/resources/executions/types/types.d.ts +4 -0
- package/dist/cjs/management/api/resources/flows/resources/executions/types/types.js +7 -0
- package/dist/cjs/management/api/resources/flows/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/flows/resources/index.js +4 -0
- package/dist/cjs/management/api/resources/flows/types/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/flows/types/index.js +17 -0
- package/dist/cjs/management/api/resources/flows/types/types.d.ts +4 -0
- package/dist/cjs/management/api/resources/flows/types/types.js +7 -0
- package/dist/cjs/management/api/resources/groups/client/Client.d.ts +56 -0
- package/dist/cjs/management/api/resources/groups/client/Client.js +224 -0
- package/dist/cjs/management/api/resources/groups/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/groups/client/index.js +2 -0
- package/dist/cjs/management/api/resources/groups/index.d.ts +2 -0
- package/dist/cjs/management/api/resources/groups/index.js +18 -0
- package/dist/cjs/management/api/resources/groups/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/groups/resources/index.js +37 -0
- package/dist/cjs/management/api/resources/groups/resources/members/client/Client.d.ts +34 -0
- package/dist/cjs/management/api/resources/groups/resources/members/client/Client.js +148 -0
- package/dist/cjs/management/api/resources/groups/resources/members/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/groups/resources/members/client/index.js +2 -0
- package/dist/cjs/management/api/resources/groups/resources/members/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/groups/resources/members/index.js +17 -0
- package/dist/cjs/management/api/resources/index.d.ts +2 -0
- package/dist/cjs/management/api/resources/index.js +3 -1
- package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.d.ts +20 -1
- package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.js +66 -1
- package/dist/cjs/management/api/resources/prompts/resources/rendering/client/Client.d.ts +1 -1
- package/dist/cjs/management/api/resources/refreshTokens/client/Client.d.ts +18 -0
- package/dist/cjs/management/api/resources/refreshTokens/client/Client.js +67 -0
- package/dist/cjs/management/api/resources/roles/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/roles/client/Client.js +3 -0
- package/dist/cjs/management/api/resources/tokenExchangeProfiles/client/Client.d.ts +2 -1
- package/dist/cjs/management/api/resources/tokenExchangeProfiles/client/Client.js +3 -2
- package/dist/cjs/management/api/resources/users/client/Client.d.ts +3 -0
- package/dist/cjs/management/api/resources/users/client/Client.js +23 -18
- package/dist/cjs/management/api/resources/users/resources/groups/client/Client.d.ts +34 -0
- package/dist/cjs/management/api/resources/users/resources/groups/client/Client.js +148 -0
- package/dist/cjs/management/api/resources/users/resources/groups/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/groups/client/index.js +2 -0
- package/dist/cjs/management/api/resources/users/resources/groups/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/groups/index.js +17 -0
- package/dist/cjs/management/api/resources/users/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/index.js +2 -1
- package/dist/cjs/management/api/types/types.d.ts +4374 -959
- package/dist/cjs/management/api/types/types.js +1715 -11
- package/dist/cjs/management/version.d.ts +1 -1
- package/dist/cjs/management/version.js +1 -1
- package/dist/esm/management/Client.d.mts +3 -0
- package/dist/esm/management/Client.mjs +5 -0
- package/dist/esm/management/api/errors/PreconditionFailedError.d.mts +5 -0
- package/dist/esm/management/api/errors/PreconditionFailedError.mjs +17 -0
- package/dist/esm/management/api/errors/index.d.mts +1 -0
- package/dist/esm/management/api/errors/index.mjs +1 -0
- package/dist/esm/management/api/requests/requests.d.mts +185 -10
- package/dist/esm/management/api/resources/actions/client/Client.d.mts +3 -0
- package/dist/esm/management/api/resources/actions/client/Client.mjs +5 -0
- package/dist/esm/management/api/resources/actions/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/actions/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/actions/resources/modules/client/Client.d.mts +149 -0
- package/dist/esm/management/api/resources/actions/resources/modules/client/Client.mjs +532 -0
- package/dist/esm/management/api/resources/actions/resources/modules/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/actions/resources/modules/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/actions/resources/modules/index.d.mts +2 -0
- package/dist/esm/management/api/resources/actions/resources/modules/index.mjs +2 -0
- package/dist/esm/management/api/resources/actions/resources/modules/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/actions/resources/modules/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/Client.d.mts +66 -0
- package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/Client.mjs +215 -0
- package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/index.d.mts +1 -0
- package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/index.mjs +1 -0
- package/dist/esm/management/api/resources/clientGrants/client/Client.d.mts +17 -0
- package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +61 -0
- package/dist/esm/management/api/resources/connections/client/Client.d.mts +7 -3
- package/dist/esm/management/api/resources/connections/client/Client.mjs +9 -5
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.mts +18 -0
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.mjs +80 -0
- package/dist/esm/management/api/resources/deviceCredentials/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/deviceCredentials/client/Client.mjs +2 -1
- package/dist/esm/management/api/resources/eventStreams/client/Client.d.mts +1 -2
- package/dist/esm/management/api/resources/eventStreams/client/Client.mjs +59 -50
- package/dist/esm/management/api/resources/flows/index.d.mts +1 -0
- package/dist/esm/management/api/resources/flows/index.mjs +1 -0
- package/dist/esm/management/api/resources/flows/resources/executions/index.d.mts +1 -0
- package/dist/esm/management/api/resources/flows/resources/executions/index.mjs +1 -0
- package/dist/esm/management/api/resources/flows/resources/executions/types/index.d.mts +1 -0
- package/dist/esm/management/api/resources/flows/resources/executions/types/index.mjs +1 -0
- package/dist/esm/management/api/resources/flows/resources/executions/types/types.d.mts +4 -0
- package/dist/esm/management/api/resources/flows/resources/executions/types/types.mjs +4 -0
- package/dist/esm/management/api/resources/flows/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/flows/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/flows/types/index.d.mts +1 -0
- package/dist/esm/management/api/resources/flows/types/index.mjs +1 -0
- package/dist/esm/management/api/resources/flows/types/types.d.mts +4 -0
- package/dist/esm/management/api/resources/flows/types/types.mjs +4 -0
- package/dist/esm/management/api/resources/groups/client/Client.d.mts +56 -0
- package/dist/esm/management/api/resources/groups/client/Client.mjs +187 -0
- package/dist/esm/management/api/resources/groups/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/groups/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/groups/index.d.mts +2 -0
- package/dist/esm/management/api/resources/groups/index.mjs +2 -0
- package/dist/esm/management/api/resources/groups/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/groups/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/groups/resources/members/client/Client.d.mts +34 -0
- package/dist/esm/management/api/resources/groups/resources/members/client/Client.mjs +111 -0
- package/dist/esm/management/api/resources/groups/resources/members/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/groups/resources/members/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/groups/resources/members/index.d.mts +1 -0
- package/dist/esm/management/api/resources/groups/resources/members/index.mjs +1 -0
- package/dist/esm/management/api/resources/index.d.mts +2 -0
- package/dist/esm/management/api/resources/index.mjs +2 -0
- package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.d.mts +20 -1
- package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.mjs +66 -1
- package/dist/esm/management/api/resources/prompts/resources/rendering/client/Client.d.mts +1 -1
- package/dist/esm/management/api/resources/refreshTokens/client/Client.d.mts +18 -0
- package/dist/esm/management/api/resources/refreshTokens/client/Client.mjs +67 -0
- package/dist/esm/management/api/resources/roles/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/roles/client/Client.mjs +3 -0
- package/dist/esm/management/api/resources/tokenExchangeProfiles/client/Client.d.mts +2 -1
- package/dist/esm/management/api/resources/tokenExchangeProfiles/client/Client.mjs +3 -2
- package/dist/esm/management/api/resources/users/client/Client.d.mts +3 -0
- package/dist/esm/management/api/resources/users/client/Client.mjs +5 -0
- package/dist/esm/management/api/resources/users/resources/groups/client/Client.d.mts +34 -0
- package/dist/esm/management/api/resources/users/resources/groups/client/Client.mjs +111 -0
- package/dist/esm/management/api/resources/users/resources/groups/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/groups/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/users/resources/groups/index.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/groups/index.mjs +1 -0
- package/dist/esm/management/api/resources/users/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/index.mjs +1 -0
- package/dist/esm/management/api/types/types.d.mts +4374 -959
- package/dist/esm/management/api/types/types.mjs +1705 -7
- package/dist/esm/management/version.d.mts +1 -1
- package/dist/esm/management/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1547 -186
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../../../core/index.js";
|
|
4
|
+
import * as Management from "../../../../../index.js";
|
|
5
|
+
export declare namespace MembersClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class MembersClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<MembersClient.Options>;
|
|
12
|
+
constructor(options: MembersClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* List all users that are a member of this group.
|
|
15
|
+
*
|
|
16
|
+
* @param {string} id - Unique identifier for the group (service-generated).
|
|
17
|
+
* @param {Management.GetGroupMembersRequestParameters} request
|
|
18
|
+
* @param {MembersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
19
|
+
*
|
|
20
|
+
* @throws {@link Management.BadRequestError}
|
|
21
|
+
* @throws {@link Management.UnauthorizedError}
|
|
22
|
+
* @throws {@link Management.ForbiddenError}
|
|
23
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* await client.groups.members.get("id", {
|
|
27
|
+
* fields: "fields",
|
|
28
|
+
* include_fields: true,
|
|
29
|
+
* from: "from",
|
|
30
|
+
* take: 1
|
|
31
|
+
* })
|
|
32
|
+
*/
|
|
33
|
+
get(id: string, request?: Management.GetGroupMembersRequestParameters, requestOptions?: MembersClient.RequestOptions): Promise<core.Page<Management.GroupMember, Management.GetGroupMembersResponseContent>>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.MembersClient = void 0;
|
|
47
|
+
const BaseClient_js_1 = require("../../../../../../BaseClient.js");
|
|
48
|
+
const core = __importStar(require("../../../../../../core/index.js"));
|
|
49
|
+
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
50
|
+
const environments = __importStar(require("../../../../../../environments.js"));
|
|
51
|
+
const handleNonStatusCodeError_js_1 = require("../../../../../../errors/handleNonStatusCodeError.js");
|
|
52
|
+
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
53
|
+
const Management = __importStar(require("../../../../../index.js"));
|
|
54
|
+
class MembersClient {
|
|
55
|
+
constructor(options) {
|
|
56
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* List all users that are a member of this group.
|
|
60
|
+
*
|
|
61
|
+
* @param {string} id - Unique identifier for the group (service-generated).
|
|
62
|
+
* @param {Management.GetGroupMembersRequestParameters} request
|
|
63
|
+
* @param {MembersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link Management.BadRequestError}
|
|
66
|
+
* @throws {@link Management.UnauthorizedError}
|
|
67
|
+
* @throws {@link Management.ForbiddenError}
|
|
68
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* await client.groups.members.get("id", {
|
|
72
|
+
* fields: "fields",
|
|
73
|
+
* include_fields: true,
|
|
74
|
+
* from: "from",
|
|
75
|
+
* take: 1
|
|
76
|
+
* })
|
|
77
|
+
*/
|
|
78
|
+
get(id_1) {
|
|
79
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
80
|
+
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
82
|
+
const { fields, include_fields: includeFields, from: from_, take = 50 } = request;
|
|
83
|
+
const _queryParams = {};
|
|
84
|
+
if (fields !== undefined) {
|
|
85
|
+
_queryParams["fields"] = fields;
|
|
86
|
+
}
|
|
87
|
+
if (includeFields !== undefined) {
|
|
88
|
+
_queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
|
|
89
|
+
}
|
|
90
|
+
if (from_ !== undefined) {
|
|
91
|
+
_queryParams["from"] = from_;
|
|
92
|
+
}
|
|
93
|
+
if (take !== undefined) {
|
|
94
|
+
_queryParams["take"] = (_b = take === null || take === void 0 ? void 0 : take.toString()) !== null && _b !== void 0 ? _b : null;
|
|
95
|
+
}
|
|
96
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
97
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
98
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
99
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ManagementEnvironment.Default, `groups/${core.url.encodePathParam(id)}/members`),
|
|
100
|
+
method: "GET",
|
|
101
|
+
headers: _headers,
|
|
102
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
103
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
104
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
105
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
106
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
107
|
+
logging: this._options.logging,
|
|
108
|
+
});
|
|
109
|
+
if (_response.ok) {
|
|
110
|
+
return {
|
|
111
|
+
data: _response.body,
|
|
112
|
+
rawResponse: _response.rawResponse,
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
if (_response.error.reason === "status-code") {
|
|
116
|
+
switch (_response.error.statusCode) {
|
|
117
|
+
case 400:
|
|
118
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
119
|
+
case 401:
|
|
120
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
121
|
+
case 403:
|
|
122
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
123
|
+
case 429:
|
|
124
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
125
|
+
default:
|
|
126
|
+
throw new errors.ManagementError({
|
|
127
|
+
statusCode: _response.error.statusCode,
|
|
128
|
+
body: _response.error.body,
|
|
129
|
+
rawResponse: _response.rawResponse,
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/groups/{id}/members");
|
|
134
|
+
}));
|
|
135
|
+
const dataWithRawResponse = yield list(request).withRawResponse();
|
|
136
|
+
return new core.Page({
|
|
137
|
+
response: dataWithRawResponse.data,
|
|
138
|
+
rawResponse: dataWithRawResponse.rawResponse,
|
|
139
|
+
hasNextPage: (response) => (response === null || response === void 0 ? void 0 : response.next) != null && !(typeof (response === null || response === void 0 ? void 0 : response.next) === "string" && (response === null || response === void 0 ? void 0 : response.next) === ""),
|
|
140
|
+
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.members) !== null && _a !== void 0 ? _a : []; },
|
|
141
|
+
loadPage: (response) => {
|
|
142
|
+
return list(core.setObjectProperty(request, "from", response === null || response === void 0 ? void 0 : response.next));
|
|
143
|
+
},
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
exports.MembersClient = MembersClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -13,7 +13,9 @@ export * as emailTemplates from "./emailTemplates/index.js";
|
|
|
13
13
|
export * as eventStreams from "./eventStreams/index.js";
|
|
14
14
|
export * from "./eventStreams/types/index.js";
|
|
15
15
|
export * as flows from "./flows/index.js";
|
|
16
|
+
export * from "./flows/types/index.js";
|
|
16
17
|
export * as forms from "./forms/index.js";
|
|
18
|
+
export * as groups from "./groups/index.js";
|
|
17
19
|
export * as guardian from "./guardian/index.js";
|
|
18
20
|
export * as hooks from "./hooks/index.js";
|
|
19
21
|
export * as jobs from "./jobs/index.js";
|
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.verifiableCredentials = exports.users = exports.userGrants = exports.userBlocks = exports.userAttributeProfiles = exports.tokenExchangeProfiles = exports.tickets = exports.tenants = exports.supplementalSignals = exports.stats = exports.sessions = exports.selfServiceProfiles = exports.rulesConfigs = exports.rules = exports.roles = exports.riskAssessments = exports.resourceServers = exports.refreshTokens = exports.prompts = exports.organizations = exports.networkAcls = exports.logStreams = exports.logs = exports.keys = exports.jobs = exports.hooks = exports.guardian = exports.forms = exports.flows = exports.eventStreams = exports.emailTemplates = exports.emails = exports.deviceCredentials = exports.customDomains = exports.connections = exports.connectionProfiles = exports.clients = exports.clientGrants = exports.branding = exports.attackProtection = exports.anomaly = exports.actions = void 0;
|
|
39
|
+
exports.verifiableCredentials = exports.users = exports.userGrants = exports.userBlocks = exports.userAttributeProfiles = exports.tokenExchangeProfiles = exports.tickets = exports.tenants = exports.supplementalSignals = exports.stats = exports.sessions = exports.selfServiceProfiles = exports.rulesConfigs = exports.rules = exports.roles = exports.riskAssessments = exports.resourceServers = exports.refreshTokens = exports.prompts = exports.organizations = exports.networkAcls = exports.logStreams = exports.logs = exports.keys = exports.jobs = exports.hooks = exports.guardian = exports.groups = exports.forms = exports.flows = exports.eventStreams = exports.emailTemplates = exports.emails = exports.deviceCredentials = exports.customDomains = exports.connections = exports.connectionProfiles = exports.clients = exports.clientGrants = exports.branding = exports.attackProtection = exports.anomaly = exports.actions = void 0;
|
|
40
40
|
exports.actions = __importStar(require("./actions/index.js"));
|
|
41
41
|
exports.anomaly = __importStar(require("./anomaly/index.js"));
|
|
42
42
|
exports.attackProtection = __importStar(require("./attackProtection/index.js"));
|
|
@@ -52,7 +52,9 @@ exports.emailTemplates = __importStar(require("./emailTemplates/index.js"));
|
|
|
52
52
|
exports.eventStreams = __importStar(require("./eventStreams/index.js"));
|
|
53
53
|
__exportStar(require("./eventStreams/types/index.js"), exports);
|
|
54
54
|
exports.flows = __importStar(require("./flows/index.js"));
|
|
55
|
+
__exportStar(require("./flows/types/index.js"), exports);
|
|
55
56
|
exports.forms = __importStar(require("./forms/index.js"));
|
|
57
|
+
exports.groups = __importStar(require("./groups/index.js"));
|
|
56
58
|
exports.guardian = __importStar(require("./guardian/index.js"));
|
|
57
59
|
exports.hooks = __importStar(require("./hooks/index.js"));
|
|
58
60
|
exports.jobs = __importStar(require("./jobs/index.js"));
|
|
@@ -31,7 +31,7 @@ export declare class DiscoveryDomainsClient {
|
|
|
31
31
|
*/
|
|
32
32
|
list(id: string, request?: Management.ListOrganizationDiscoveryDomainsRequestParameters, requestOptions?: DiscoveryDomainsClient.RequestOptions): Promise<core.Page<Management.OrganizationDiscoveryDomain, Management.ListOrganizationDiscoveryDomainsResponseContent>>;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Create a new discovery domain for an organization.
|
|
35
35
|
*
|
|
36
36
|
* @param {string} id - ID of the organization.
|
|
37
37
|
* @param {Management.CreateOrganizationDiscoveryDomainRequestContent} request
|
|
@@ -51,6 +51,25 @@ export declare class DiscoveryDomainsClient {
|
|
|
51
51
|
*/
|
|
52
52
|
create(id: string, request: Management.CreateOrganizationDiscoveryDomainRequestContent, requestOptions?: DiscoveryDomainsClient.RequestOptions): core.HttpResponsePromise<Management.CreateOrganizationDiscoveryDomainResponseContent>;
|
|
53
53
|
private __create;
|
|
54
|
+
/**
|
|
55
|
+
* Retrieve details about a single organization discovery domain specified by domain name.
|
|
56
|
+
*
|
|
57
|
+
*
|
|
58
|
+
* @param {string} id - ID of the organization.
|
|
59
|
+
* @param {string} discovery_domain - Domain name of the discovery domain.
|
|
60
|
+
* @param {DiscoveryDomainsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link Management.BadRequestError}
|
|
63
|
+
* @throws {@link Management.UnauthorizedError}
|
|
64
|
+
* @throws {@link Management.ForbiddenError}
|
|
65
|
+
* @throws {@link Management.NotFoundError}
|
|
66
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* await client.organizations.discoveryDomains.getByName("id", "discovery_domain")
|
|
70
|
+
*/
|
|
71
|
+
getByName(id: string, discovery_domain: string, requestOptions?: DiscoveryDomainsClient.RequestOptions): core.HttpResponsePromise<Management.GetOrganizationDiscoveryDomainByNameResponseContent>;
|
|
72
|
+
private __getByName;
|
|
54
73
|
/**
|
|
55
74
|
* Retrieve details about a single organization discovery domain specified by ID.
|
|
56
75
|
*
|
package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.js
CHANGED
|
@@ -140,7 +140,7 @@ class DiscoveryDomainsClient {
|
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
/**
|
|
143
|
-
*
|
|
143
|
+
* Create a new discovery domain for an organization.
|
|
144
144
|
*
|
|
145
145
|
* @param {string} id - ID of the organization.
|
|
146
146
|
* @param {Management.CreateOrganizationDiscoveryDomainRequestContent} request
|
|
@@ -211,6 +211,71 @@ class DiscoveryDomainsClient {
|
|
|
211
211
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/organizations/{id}/discovery-domains");
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
|
+
/**
|
|
215
|
+
* Retrieve details about a single organization discovery domain specified by domain name.
|
|
216
|
+
*
|
|
217
|
+
*
|
|
218
|
+
* @param {string} id - ID of the organization.
|
|
219
|
+
* @param {string} discovery_domain - Domain name of the discovery domain.
|
|
220
|
+
* @param {DiscoveryDomainsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
221
|
+
*
|
|
222
|
+
* @throws {@link Management.BadRequestError}
|
|
223
|
+
* @throws {@link Management.UnauthorizedError}
|
|
224
|
+
* @throws {@link Management.ForbiddenError}
|
|
225
|
+
* @throws {@link Management.NotFoundError}
|
|
226
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
227
|
+
*
|
|
228
|
+
* @example
|
|
229
|
+
* await client.organizations.discoveryDomains.getByName("id", "discovery_domain")
|
|
230
|
+
*/
|
|
231
|
+
getByName(id, discovery_domain, requestOptions) {
|
|
232
|
+
return core.HttpResponsePromise.fromPromise(this.__getByName(id, discovery_domain, requestOptions));
|
|
233
|
+
}
|
|
234
|
+
__getByName(id, discovery_domain, requestOptions) {
|
|
235
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
236
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
237
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
238
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
239
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
240
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, `organizations/${core.url.encodePathParam(id)}/discovery-domains/name/${core.url.encodePathParam(discovery_domain)}`),
|
|
241
|
+
method: "GET",
|
|
242
|
+
headers: _headers,
|
|
243
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
244
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
245
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
246
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
247
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
248
|
+
logging: this._options.logging,
|
|
249
|
+
});
|
|
250
|
+
if (_response.ok) {
|
|
251
|
+
return {
|
|
252
|
+
data: _response.body,
|
|
253
|
+
rawResponse: _response.rawResponse,
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
if (_response.error.reason === "status-code") {
|
|
257
|
+
switch (_response.error.statusCode) {
|
|
258
|
+
case 400:
|
|
259
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
260
|
+
case 401:
|
|
261
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
262
|
+
case 403:
|
|
263
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
264
|
+
case 404:
|
|
265
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
266
|
+
case 429:
|
|
267
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
268
|
+
default:
|
|
269
|
+
throw new errors.ManagementError({
|
|
270
|
+
statusCode: _response.error.statusCode,
|
|
271
|
+
body: _response.error.body,
|
|
272
|
+
rawResponse: _response.rawResponse,
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/organizations/{id}/discovery-domains/name/{discovery_domain}");
|
|
277
|
+
});
|
|
278
|
+
}
|
|
214
279
|
/**
|
|
215
280
|
* Retrieve details about a single organization discovery domain specified by ID.
|
|
216
281
|
*
|
|
@@ -34,7 +34,7 @@ export declare class RenderingClient {
|
|
|
34
34
|
* rendering_mode: "advanced"
|
|
35
35
|
* })
|
|
36
36
|
*/
|
|
37
|
-
list(request?: Management.ListAculsRequestParameters, requestOptions?: RenderingClient.RequestOptions): Promise<core.Page<Management.
|
|
37
|
+
list(request?: Management.ListAculsRequestParameters, requestOptions?: RenderingClient.RequestOptions): Promise<core.Page<Management.ListAculsResponseContentItem, Management.ListAculsOffsetPaginatedResponseContent>>;
|
|
38
38
|
/**
|
|
39
39
|
* Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization.
|
|
40
40
|
*
|
|
@@ -42,4 +42,22 @@ export declare class RefreshTokensClient {
|
|
|
42
42
|
*/
|
|
43
43
|
delete(id: string, requestOptions?: RefreshTokensClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
44
44
|
private __delete;
|
|
45
|
+
/**
|
|
46
|
+
* Update a refresh token by its ID.
|
|
47
|
+
*
|
|
48
|
+
* @param {string} id - ID of the refresh token to update.
|
|
49
|
+
* @param {Management.UpdateRefreshTokenRequestContent} request
|
|
50
|
+
* @param {RefreshTokensClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
51
|
+
*
|
|
52
|
+
* @throws {@link Management.BadRequestError}
|
|
53
|
+
* @throws {@link Management.UnauthorizedError}
|
|
54
|
+
* @throws {@link Management.ForbiddenError}
|
|
55
|
+
* @throws {@link Management.NotFoundError}
|
|
56
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* await client.refreshTokens.update("id")
|
|
60
|
+
*/
|
|
61
|
+
update(id: string, request?: Management.UpdateRefreshTokenRequestContent, requestOptions?: RefreshTokensClient.RequestOptions): core.HttpResponsePromise<Management.UpdateRefreshTokenResponseContent>;
|
|
62
|
+
private __update;
|
|
45
63
|
}
|
|
@@ -172,5 +172,72 @@ class RefreshTokensClient {
|
|
|
172
172
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/refresh-tokens/{id}");
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
|
+
/**
|
|
176
|
+
* Update a refresh token by its ID.
|
|
177
|
+
*
|
|
178
|
+
* @param {string} id - ID of the refresh token to update.
|
|
179
|
+
* @param {Management.UpdateRefreshTokenRequestContent} request
|
|
180
|
+
* @param {RefreshTokensClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
181
|
+
*
|
|
182
|
+
* @throws {@link Management.BadRequestError}
|
|
183
|
+
* @throws {@link Management.UnauthorizedError}
|
|
184
|
+
* @throws {@link Management.ForbiddenError}
|
|
185
|
+
* @throws {@link Management.NotFoundError}
|
|
186
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
187
|
+
*
|
|
188
|
+
* @example
|
|
189
|
+
* await client.refreshTokens.update("id")
|
|
190
|
+
*/
|
|
191
|
+
update(id, request = {}, requestOptions) {
|
|
192
|
+
return core.HttpResponsePromise.fromPromise(this.__update(id, request, requestOptions));
|
|
193
|
+
}
|
|
194
|
+
__update(id_1) {
|
|
195
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
196
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
197
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
198
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
199
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
200
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, `refresh-tokens/${core.url.encodePathParam(id)}`),
|
|
201
|
+
method: "PATCH",
|
|
202
|
+
headers: _headers,
|
|
203
|
+
contentType: "application/json",
|
|
204
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
205
|
+
requestType: "json",
|
|
206
|
+
body: request,
|
|
207
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
208
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
209
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
210
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
211
|
+
logging: this._options.logging,
|
|
212
|
+
});
|
|
213
|
+
if (_response.ok) {
|
|
214
|
+
return {
|
|
215
|
+
data: _response.body,
|
|
216
|
+
rawResponse: _response.rawResponse,
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
if (_response.error.reason === "status-code") {
|
|
220
|
+
switch (_response.error.statusCode) {
|
|
221
|
+
case 400:
|
|
222
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
223
|
+
case 401:
|
|
224
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
225
|
+
case 403:
|
|
226
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
227
|
+
case 404:
|
|
228
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
229
|
+
case 429:
|
|
230
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
231
|
+
default:
|
|
232
|
+
throw new errors.ManagementError({
|
|
233
|
+
statusCode: _response.error.statusCode,
|
|
234
|
+
body: _response.error.body,
|
|
235
|
+
rawResponse: _response.rawResponse,
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/refresh-tokens/{id}");
|
|
240
|
+
});
|
|
241
|
+
}
|
|
175
242
|
}
|
|
176
243
|
exports.RefreshTokensClient = RefreshTokensClient;
|
|
@@ -49,6 +49,7 @@ export declare class RolesClient {
|
|
|
49
49
|
* @throws {@link Management.BadRequestError}
|
|
50
50
|
* @throws {@link Management.UnauthorizedError}
|
|
51
51
|
* @throws {@link Management.ForbiddenError}
|
|
52
|
+
* @throws {@link Management.ConflictError}
|
|
52
53
|
* @throws {@link Management.TooManyRequestsError}
|
|
53
54
|
*
|
|
54
55
|
* @example
|
|
@@ -168,6 +168,7 @@ class RolesClient {
|
|
|
168
168
|
* @throws {@link Management.BadRequestError}
|
|
169
169
|
* @throws {@link Management.UnauthorizedError}
|
|
170
170
|
* @throws {@link Management.ForbiddenError}
|
|
171
|
+
* @throws {@link Management.ConflictError}
|
|
171
172
|
* @throws {@link Management.TooManyRequestsError}
|
|
172
173
|
*
|
|
173
174
|
* @example
|
|
@@ -208,6 +209,8 @@ class RolesClient {
|
|
|
208
209
|
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
209
210
|
case 403:
|
|
210
211
|
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
212
|
+
case 409:
|
|
213
|
+
throw new Management.ConflictError(_response.error.body, _response.rawResponse);
|
|
211
214
|
case 429:
|
|
212
215
|
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
213
216
|
default:
|
|
@@ -56,7 +56,8 @@ export declare class TokenExchangeProfilesClient {
|
|
|
56
56
|
* await client.tokenExchangeProfiles.create({
|
|
57
57
|
* name: "name",
|
|
58
58
|
* subject_token_type: "subject_token_type",
|
|
59
|
-
* action_id: "action_id"
|
|
59
|
+
* action_id: "action_id",
|
|
60
|
+
* type: "custom_authentication"
|
|
60
61
|
* })
|
|
61
62
|
*/
|
|
62
63
|
create(request: Management.CreateTokenExchangeProfileRequestContent, requestOptions?: TokenExchangeProfilesClient.RequestOptions): core.HttpResponsePromise<Management.CreateTokenExchangeProfileResponseContent>;
|
|
@@ -163,7 +163,8 @@ class TokenExchangeProfilesClient {
|
|
|
163
163
|
* await client.tokenExchangeProfiles.create({
|
|
164
164
|
* name: "name",
|
|
165
165
|
* subject_token_type: "subject_token_type",
|
|
166
|
-
* action_id: "action_id"
|
|
166
|
+
* action_id: "action_id",
|
|
167
|
+
* type: "custom_authentication"
|
|
167
168
|
* })
|
|
168
169
|
*/
|
|
169
170
|
create(request, requestOptions) {
|
|
@@ -181,7 +182,7 @@ class TokenExchangeProfilesClient {
|
|
|
181
182
|
contentType: "application/json",
|
|
182
183
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
183
184
|
requestType: "json",
|
|
184
|
-
body:
|
|
185
|
+
body: request,
|
|
185
186
|
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
186
187
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
187
188
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -7,6 +7,7 @@ import { AuthenticatorsClient } from "../resources/authenticators/client/Client.
|
|
|
7
7
|
import { ConnectedAccountsClient } from "../resources/connectedAccounts/client/Client.js";
|
|
8
8
|
import { EnrollmentsClient } from "../resources/enrollments/client/Client.js";
|
|
9
9
|
import { FederatedConnectionsTokensetsClient } from "../resources/federatedConnectionsTokensets/client/Client.js";
|
|
10
|
+
import { GroupsClient } from "../resources/groups/client/Client.js";
|
|
10
11
|
import { IdentitiesClient } from "../resources/identities/client/Client.js";
|
|
11
12
|
import { LogsClient } from "../resources/logs/client/Client.js";
|
|
12
13
|
import { MultifactorClient } from "../resources/multifactor/client/Client.js";
|
|
@@ -28,6 +29,7 @@ export declare class UsersClient {
|
|
|
28
29
|
protected _connectedAccounts: ConnectedAccountsClient | undefined;
|
|
29
30
|
protected _enrollments: EnrollmentsClient | undefined;
|
|
30
31
|
protected _federatedConnectionsTokensets: FederatedConnectionsTokensetsClient | undefined;
|
|
32
|
+
protected _groups: GroupsClient | undefined;
|
|
31
33
|
protected _identities: IdentitiesClient | undefined;
|
|
32
34
|
protected _logs: LogsClient | undefined;
|
|
33
35
|
protected _multifactor: MultifactorClient | undefined;
|
|
@@ -43,6 +45,7 @@ export declare class UsersClient {
|
|
|
43
45
|
get connectedAccounts(): ConnectedAccountsClient;
|
|
44
46
|
get enrollments(): EnrollmentsClient;
|
|
45
47
|
get federatedConnectionsTokensets(): FederatedConnectionsTokensetsClient;
|
|
48
|
+
get groups(): GroupsClient;
|
|
46
49
|
get identities(): IdentitiesClient;
|
|
47
50
|
get logs(): LogsClient;
|
|
48
51
|
get multifactor(): MultifactorClient;
|