auth0 6.1.0 → 6.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/dist/cjs/management/Client.d.ts +3 -0
- package/dist/cjs/management/Client.js +93 -88
- package/dist/cjs/management/api/requests/requests.d.ts +203 -14
- package/dist/cjs/management/api/resources/agents/client/Client.d.ts +100 -0
- package/dist/cjs/management/api/resources/agents/client/Client.js +383 -0
- package/dist/cjs/management/api/resources/agents/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/agents/client/index.js +2 -0
- package/dist/cjs/management/api/resources/agents/exports.d.ts +2 -0
- package/dist/cjs/management/api/resources/agents/exports.js +21 -0
- package/dist/cjs/management/api/resources/agents/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/agents/index.js +17 -0
- package/dist/cjs/management/api/resources/clientGrants/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/clientGrants/client/Client.js +3 -1
- package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.js +3 -1
- package/dist/cjs/management/api/resources/clients/client/Client.d.ts +2 -2
- package/dist/cjs/management/api/resources/clients/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/connections/client/Client.d.ts +2 -1
- package/dist/cjs/management/api/resources/connections/client/Client.js +4 -2
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.ts +46 -1
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.js +140 -2
- package/dist/cjs/management/api/resources/eventStreams/resources/deliveries/client/Client.d.ts +1 -2
- package/dist/cjs/management/api/resources/eventStreams/resources/deliveries/client/Client.js +66 -54
- package/dist/cjs/management/api/resources/flows/client/Client.d.ts +2 -0
- package/dist/cjs/management/api/resources/flows/client/Client.js +6 -0
- package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.d.ts +3 -0
- package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.js +9 -1
- package/dist/cjs/management/api/resources/forms/client/Client.d.ts +2 -0
- package/dist/cjs/management/api/resources/forms/client/Client.js +6 -0
- package/dist/cjs/management/api/resources/groups/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/groups/client/Client.js +3 -1
- package/dist/cjs/management/api/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/keys/client/Client.d.ts +3 -0
- package/dist/cjs/management/api/resources/keys/client/Client.js +7 -2
- package/dist/cjs/management/api/resources/keys/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/keys/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/Client.d.ts +67 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/Client.js +251 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/index.js +2 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/exports.d.ts +2 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/exports.js +21 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/index.js +17 -0
- package/dist/cjs/management/api/resources/organizations/client/Client.d.ts +6 -1
- package/dist/cjs/management/api/resources/organizations/client/Client.js +25 -16
- package/dist/cjs/management/api/resources/organizations/resources/clients/client/Client.d.ts +119 -0
- package/dist/cjs/management/api/resources/organizations/resources/clients/client/Client.js +422 -0
- package/dist/cjs/management/api/resources/organizations/resources/clients/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/clients/client/index.js +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/clients/exports.d.ts +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/clients/exports.js +21 -0
- package/dist/cjs/management/api/resources/organizations/resources/clients/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/clients/index.js +17 -0
- package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.js +3 -0
- package/dist/cjs/management/api/resources/organizations/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.d.ts +2 -1
- package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.js +4 -2
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.d.ts +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.js +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/client/Client.d.ts +3 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/client/Client.js +7 -2
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/client/Client.d.ts +34 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/client/Client.js +145 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/client/index.js +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/exports.d.ts +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/exports.js +21 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/index.js +17 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/members/client/Client.d.ts +5 -0
- package/dist/cjs/management/api/resources/organizations/resources/roles/resources/members/client/Client.js +5 -0
- package/dist/cjs/management/api/resources/roles/client/Client.d.ts +3 -1
- package/dist/cjs/management/api/resources/roles/client/Client.js +6 -2
- package/dist/cjs/management/api/resources/roles/resources/users/client/Client.d.ts +3 -0
- package/dist/cjs/management/api/resources/roles/resources/users/client/Client.js +5 -1
- package/dist/cjs/management/api/resources/users/resources/groups/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/groups/client/Client.js +3 -1
- package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.d.ts +2 -0
- package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.js +2 -0
- package/dist/cjs/management/api/resources/users/resources/refreshToken/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/refreshToken/client/Client.js +3 -1
- package/dist/cjs/management/api/resources/users/resources/roles/client/Client.d.ts +2 -0
- package/dist/cjs/management/api/resources/users/resources/roles/client/Client.js +2 -0
- package/dist/cjs/management/api/resources/users/resources/sessions/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/sessions/client/Client.js +3 -1
- package/dist/cjs/management/api/types/types.d.ts +387 -34
- package/dist/cjs/management/api/types/types.js +92 -15
- 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/requests/requests.d.mts +203 -14
- package/dist/esm/management/api/resources/agents/client/Client.d.mts +100 -0
- package/dist/esm/management/api/resources/agents/client/Client.mjs +346 -0
- package/dist/esm/management/api/resources/agents/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/agents/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/agents/exports.d.mts +2 -0
- package/dist/esm/management/api/resources/agents/exports.mjs +3 -0
- package/dist/esm/management/api/resources/agents/index.d.mts +1 -0
- package/dist/esm/management/api/resources/agents/index.mjs +1 -0
- package/dist/esm/management/api/resources/clientGrants/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +3 -1
- package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.mjs +3 -1
- package/dist/esm/management/api/resources/clients/client/Client.d.mts +2 -2
- package/dist/esm/management/api/resources/clients/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/connections/client/Client.d.mts +2 -1
- package/dist/esm/management/api/resources/connections/client/Client.mjs +4 -2
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.mts +46 -1
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.mjs +140 -2
- package/dist/esm/management/api/resources/eventStreams/resources/deliveries/client/Client.d.mts +1 -2
- package/dist/esm/management/api/resources/eventStreams/resources/deliveries/client/Client.mjs +66 -54
- package/dist/esm/management/api/resources/flows/client/Client.d.mts +2 -0
- package/dist/esm/management/api/resources/flows/client/Client.mjs +6 -0
- package/dist/esm/management/api/resources/flows/resources/executions/client/Client.d.mts +3 -0
- package/dist/esm/management/api/resources/flows/resources/executions/client/Client.mjs +9 -1
- package/dist/esm/management/api/resources/forms/client/Client.d.mts +2 -0
- package/dist/esm/management/api/resources/forms/client/Client.mjs +6 -0
- package/dist/esm/management/api/resources/groups/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/groups/client/Client.mjs +3 -1
- package/dist/esm/management/api/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/keys/client/Client.d.mts +3 -0
- package/dist/esm/management/api/resources/keys/client/Client.mjs +5 -0
- package/dist/esm/management/api/resources/keys/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/keys/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/client/Client.d.mts +67 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/client/Client.mjs +214 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/exports.d.mts +2 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/exports.mjs +3 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/index.d.mts +1 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/client/Client.d.mts +6 -1
- package/dist/esm/management/api/resources/organizations/client/Client.mjs +11 -2
- package/dist/esm/management/api/resources/organizations/resources/clients/client/Client.d.mts +119 -0
- package/dist/esm/management/api/resources/organizations/resources/clients/client/Client.mjs +385 -0
- package/dist/esm/management/api/resources/organizations/resources/clients/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/clients/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/clients/exports.d.mts +2 -0
- package/dist/esm/management/api/resources/organizations/resources/clients/exports.mjs +3 -0
- package/dist/esm/management/api/resources/organizations/resources/clients/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/clients/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.mjs +3 -0
- package/dist/esm/management/api/resources/organizations/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/members/client/Client.d.mts +2 -1
- package/dist/esm/management/api/resources/organizations/resources/members/client/Client.mjs +4 -2
- package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.d.mts +2 -0
- package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.mjs +2 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/client/Client.d.mts +3 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/client/Client.mjs +5 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/client/Client.d.mts +34 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/client/Client.mjs +108 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/exports.d.mts +2 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/exports.mjs +3 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/members/client/Client.d.mts +5 -0
- package/dist/esm/management/api/resources/organizations/resources/roles/resources/members/client/Client.mjs +5 -0
- package/dist/esm/management/api/resources/roles/client/Client.d.mts +3 -1
- package/dist/esm/management/api/resources/roles/client/Client.mjs +6 -2
- package/dist/esm/management/api/resources/roles/resources/users/client/Client.d.mts +3 -0
- package/dist/esm/management/api/resources/roles/resources/users/client/Client.mjs +5 -1
- package/dist/esm/management/api/resources/users/resources/groups/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/groups/client/Client.mjs +3 -1
- package/dist/esm/management/api/resources/users/resources/permissions/client/Client.d.mts +2 -0
- package/dist/esm/management/api/resources/users/resources/permissions/client/Client.mjs +2 -0
- package/dist/esm/management/api/resources/users/resources/refreshToken/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/refreshToken/client/Client.mjs +3 -1
- package/dist/esm/management/api/resources/users/resources/roles/client/Client.d.mts +2 -0
- package/dist/esm/management/api/resources/users/resources/roles/client/Client.mjs +2 -0
- package/dist/esm/management/api/resources/users/resources/sessions/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/sessions/client/Client.mjs +3 -1
- package/dist/esm/management/api/types/types.d.mts +387 -34
- package/dist/esm/management/api/types/types.mjs +77 -0
- package/dist/esm/management/version.d.mts +1 -1
- package/dist/esm/management/version.mjs +1 -1
- package/package.json +56 -12
- package/reference.md +3088 -1844
|
@@ -0,0 +1,383 @@
|
|
|
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.AgentsClient = 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 AgentsClient {
|
|
55
|
+
constructor(options) {
|
|
56
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Get agents
|
|
60
|
+
*
|
|
61
|
+
* @param {Management.ListAgentsRequestParameters} request
|
|
62
|
+
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link Management.BadRequestError}
|
|
65
|
+
* @throws {@link Management.UnauthorizedError}
|
|
66
|
+
* @throws {@link Management.ForbiddenError}
|
|
67
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* await client.agents.list({
|
|
71
|
+
* from: "from",
|
|
72
|
+
* take: 1
|
|
73
|
+
* })
|
|
74
|
+
*/
|
|
75
|
+
list() {
|
|
76
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
77
|
+
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
79
|
+
const { from: from_, take = 50 } = request;
|
|
80
|
+
const _queryParams = {
|
|
81
|
+
from: from_,
|
|
82
|
+
take,
|
|
83
|
+
};
|
|
84
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
85
|
+
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);
|
|
86
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
87
|
+
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, "agents"),
|
|
88
|
+
method: "GET",
|
|
89
|
+
headers: _headers,
|
|
90
|
+
queryString: core.url
|
|
91
|
+
.queryBuilder()
|
|
92
|
+
.addMany(_queryParams)
|
|
93
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
94
|
+
.build(),
|
|
95
|
+
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,
|
|
96
|
+
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,
|
|
97
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
98
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
99
|
+
logging: this._options.logging,
|
|
100
|
+
});
|
|
101
|
+
if (_response.ok) {
|
|
102
|
+
return {
|
|
103
|
+
data: _response.body,
|
|
104
|
+
rawResponse: _response.rawResponse,
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
if (_response.error.reason === "status-code") {
|
|
108
|
+
switch (_response.error.statusCode) {
|
|
109
|
+
case 400:
|
|
110
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
111
|
+
case 401:
|
|
112
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
113
|
+
case 403:
|
|
114
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
115
|
+
case 429:
|
|
116
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
117
|
+
default:
|
|
118
|
+
throw new errors.ManagementError({
|
|
119
|
+
statusCode: _response.error.statusCode,
|
|
120
|
+
body: _response.error.body,
|
|
121
|
+
rawResponse: _response.rawResponse,
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/agents");
|
|
126
|
+
}));
|
|
127
|
+
const dataWithRawResponse = yield list(request).withRawResponse();
|
|
128
|
+
return new core.Page({
|
|
129
|
+
response: dataWithRawResponse.data,
|
|
130
|
+
rawResponse: dataWithRawResponse.rawResponse,
|
|
131
|
+
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) === ""),
|
|
132
|
+
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.agents) !== null && _a !== void 0 ? _a : []; },
|
|
133
|
+
loadPage: (response) => {
|
|
134
|
+
return list(core.setObjectProperty(request, "from", response === null || response === void 0 ? void 0 : response.next));
|
|
135
|
+
},
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Create an agent
|
|
141
|
+
*
|
|
142
|
+
* @param {Management.CreateAgentRequestContent} request
|
|
143
|
+
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
144
|
+
*
|
|
145
|
+
* @throws {@link Management.BadRequestError}
|
|
146
|
+
* @throws {@link Management.UnauthorizedError}
|
|
147
|
+
* @throws {@link Management.ForbiddenError}
|
|
148
|
+
* @throws {@link Management.ConflictError}
|
|
149
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* await client.agents.create({
|
|
153
|
+
* name: "name"
|
|
154
|
+
* })
|
|
155
|
+
*/
|
|
156
|
+
create(request, requestOptions) {
|
|
157
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
158
|
+
}
|
|
159
|
+
__create(request, requestOptions) {
|
|
160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
161
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
162
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
163
|
+
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);
|
|
164
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
165
|
+
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, "agents"),
|
|
166
|
+
method: "POST",
|
|
167
|
+
headers: _headers,
|
|
168
|
+
contentType: "application/json",
|
|
169
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
170
|
+
requestType: "json",
|
|
171
|
+
body: request,
|
|
172
|
+
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,
|
|
173
|
+
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,
|
|
174
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
175
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
176
|
+
logging: this._options.logging,
|
|
177
|
+
});
|
|
178
|
+
if (_response.ok) {
|
|
179
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
180
|
+
}
|
|
181
|
+
if (_response.error.reason === "status-code") {
|
|
182
|
+
switch (_response.error.statusCode) {
|
|
183
|
+
case 400:
|
|
184
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
185
|
+
case 401:
|
|
186
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
187
|
+
case 403:
|
|
188
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
189
|
+
case 409:
|
|
190
|
+
throw new Management.ConflictError(_response.error.body, _response.rawResponse);
|
|
191
|
+
case 429:
|
|
192
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
193
|
+
default:
|
|
194
|
+
throw new errors.ManagementError({
|
|
195
|
+
statusCode: _response.error.statusCode,
|
|
196
|
+
body: _response.error.body,
|
|
197
|
+
rawResponse: _response.rawResponse,
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/agents");
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Get an agent
|
|
206
|
+
*
|
|
207
|
+
* @param {string} id - The agent ID
|
|
208
|
+
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
209
|
+
*
|
|
210
|
+
* @throws {@link Management.UnauthorizedError}
|
|
211
|
+
* @throws {@link Management.ForbiddenError}
|
|
212
|
+
* @throws {@link Management.NotFoundError}
|
|
213
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
214
|
+
*
|
|
215
|
+
* @example
|
|
216
|
+
* await client.agents.read("id")
|
|
217
|
+
*/
|
|
218
|
+
read(id, requestOptions) {
|
|
219
|
+
return core.HttpResponsePromise.fromPromise(this.__read(id, requestOptions));
|
|
220
|
+
}
|
|
221
|
+
__read(id, requestOptions) {
|
|
222
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
223
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
224
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
225
|
+
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);
|
|
226
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
227
|
+
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, `agents/${core.url.encodePathParam(id)}`),
|
|
228
|
+
method: "GET",
|
|
229
|
+
headers: _headers,
|
|
230
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
231
|
+
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,
|
|
232
|
+
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,
|
|
233
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
234
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
235
|
+
logging: this._options.logging,
|
|
236
|
+
});
|
|
237
|
+
if (_response.ok) {
|
|
238
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
239
|
+
}
|
|
240
|
+
if (_response.error.reason === "status-code") {
|
|
241
|
+
switch (_response.error.statusCode) {
|
|
242
|
+
case 401:
|
|
243
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
244
|
+
case 403:
|
|
245
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
246
|
+
case 404:
|
|
247
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
248
|
+
case 429:
|
|
249
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
250
|
+
default:
|
|
251
|
+
throw new errors.ManagementError({
|
|
252
|
+
statusCode: _response.error.statusCode,
|
|
253
|
+
body: _response.error.body,
|
|
254
|
+
rawResponse: _response.rawResponse,
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/agents/{id}");
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Delete an agent
|
|
263
|
+
*
|
|
264
|
+
* @param {string} id - The agent ID
|
|
265
|
+
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
266
|
+
*
|
|
267
|
+
* @throws {@link Management.BadRequestError}
|
|
268
|
+
* @throws {@link Management.UnauthorizedError}
|
|
269
|
+
* @throws {@link Management.ForbiddenError}
|
|
270
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
271
|
+
*
|
|
272
|
+
* @example
|
|
273
|
+
* await client.agents.delete("id")
|
|
274
|
+
*/
|
|
275
|
+
delete(id, requestOptions) {
|
|
276
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(id, requestOptions));
|
|
277
|
+
}
|
|
278
|
+
__delete(id, requestOptions) {
|
|
279
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
280
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
281
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
282
|
+
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);
|
|
283
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
284
|
+
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, `agents/${core.url.encodePathParam(id)}`),
|
|
285
|
+
method: "DELETE",
|
|
286
|
+
headers: _headers,
|
|
287
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
288
|
+
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,
|
|
289
|
+
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,
|
|
290
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
291
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
292
|
+
logging: this._options.logging,
|
|
293
|
+
});
|
|
294
|
+
if (_response.ok) {
|
|
295
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
296
|
+
}
|
|
297
|
+
if (_response.error.reason === "status-code") {
|
|
298
|
+
switch (_response.error.statusCode) {
|
|
299
|
+
case 400:
|
|
300
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
301
|
+
case 401:
|
|
302
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
303
|
+
case 403:
|
|
304
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
305
|
+
case 429:
|
|
306
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
307
|
+
default:
|
|
308
|
+
throw new errors.ManagementError({
|
|
309
|
+
statusCode: _response.error.statusCode,
|
|
310
|
+
body: _response.error.body,
|
|
311
|
+
rawResponse: _response.rawResponse,
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/agents/{id}");
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Update an agent
|
|
320
|
+
*
|
|
321
|
+
* @param {string} id - The agent ID
|
|
322
|
+
* @param {Management.PatchAgentRequestParameters} request
|
|
323
|
+
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
324
|
+
*
|
|
325
|
+
* @throws {@link Management.BadRequestError}
|
|
326
|
+
* @throws {@link Management.UnauthorizedError}
|
|
327
|
+
* @throws {@link Management.ForbiddenError}
|
|
328
|
+
* @throws {@link Management.NotFoundError}
|
|
329
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
330
|
+
*
|
|
331
|
+
* @example
|
|
332
|
+
* await client.agents.update("id")
|
|
333
|
+
*/
|
|
334
|
+
update(id, request = {}, requestOptions) {
|
|
335
|
+
return core.HttpResponsePromise.fromPromise(this.__update(id, request, requestOptions));
|
|
336
|
+
}
|
|
337
|
+
__update(id_1) {
|
|
338
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
339
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
340
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
341
|
+
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);
|
|
342
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
343
|
+
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, `agents/${core.url.encodePathParam(id)}`),
|
|
344
|
+
method: "PATCH",
|
|
345
|
+
headers: _headers,
|
|
346
|
+
contentType: "application/json",
|
|
347
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
348
|
+
requestType: "json",
|
|
349
|
+
body: request,
|
|
350
|
+
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,
|
|
351
|
+
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,
|
|
352
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
353
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
354
|
+
logging: this._options.logging,
|
|
355
|
+
});
|
|
356
|
+
if (_response.ok) {
|
|
357
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
358
|
+
}
|
|
359
|
+
if (_response.error.reason === "status-code") {
|
|
360
|
+
switch (_response.error.statusCode) {
|
|
361
|
+
case 400:
|
|
362
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
363
|
+
case 401:
|
|
364
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
365
|
+
case 403:
|
|
366
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
367
|
+
case 404:
|
|
368
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
369
|
+
case 429:
|
|
370
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
371
|
+
default:
|
|
372
|
+
throw new errors.ManagementError({
|
|
373
|
+
statusCode: _response.error.statusCode,
|
|
374
|
+
body: _response.error.body,
|
|
375
|
+
rawResponse: _response.rawResponse,
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/agents/{id}");
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
exports.AgentsClient = AgentsClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.AgentsClient = void 0;
|
|
19
|
+
var Client_js_1 = require("./client/Client.js");
|
|
20
|
+
Object.defineProperty(exports, "AgentsClient", { enumerable: true, get: function () { return Client_js_1.AgentsClient; } });
|
|
21
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -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);
|
|
@@ -72,6 +72,7 @@ class ClientGrantsClient {
|
|
|
72
72
|
*
|
|
73
73
|
* @example
|
|
74
74
|
* await client.clientGrants.list({
|
|
75
|
+
* include_totals: true,
|
|
75
76
|
* from: "from",
|
|
76
77
|
* take: 1,
|
|
77
78
|
* audience: "audience",
|
|
@@ -85,8 +86,9 @@ class ClientGrantsClient {
|
|
|
85
86
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
86
87
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
87
88
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
88
|
-
const { from: from_, take = 50, audience, client_id: clientId, allow_any_organization: allowAnyOrganization, subject_type: subjectType, default_for: defaultFor, } = request;
|
|
89
|
+
const { include_totals: includeTotals = true, from: from_, take = 50, audience, client_id: clientId, allow_any_organization: allowAnyOrganization, subject_type: subjectType, default_for: defaultFor, } = request;
|
|
89
90
|
const _queryParams = {
|
|
91
|
+
include_totals: includeTotals,
|
|
90
92
|
from: from_,
|
|
91
93
|
take,
|
|
92
94
|
audience,
|
package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.js
CHANGED
|
@@ -68,6 +68,7 @@ class OrganizationsClient {
|
|
|
68
68
|
*
|
|
69
69
|
* @example
|
|
70
70
|
* await client.clientGrants.organizations.list("id", {
|
|
71
|
+
* include_totals: true,
|
|
71
72
|
* from: "from",
|
|
72
73
|
* take: 1
|
|
73
74
|
* })
|
|
@@ -76,8 +77,9 @@ class OrganizationsClient {
|
|
|
76
77
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
77
78
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
78
79
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
79
|
-
const { from: from_, take = 50 } = request;
|
|
80
|
+
const { include_totals: includeTotals = true, from: from_, take = 50 } = request;
|
|
80
81
|
const _queryParams = {
|
|
82
|
+
include_totals: includeTotals,
|
|
81
83
|
from: from_,
|
|
82
84
|
take,
|
|
83
85
|
};
|
|
@@ -30,7 +30,7 @@ export declare class ClientsClient {
|
|
|
30
30
|
* `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`,
|
|
31
31
|
* `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`,
|
|
32
32
|
* `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`,
|
|
33
|
-
* `
|
|
33
|
+
* `custom_login_page_on`, `sso`, `addons`, `form_template`,
|
|
34
34
|
* `custom_login_page_codeview`, `resource_servers`, `client_metadata`,
|
|
35
35
|
* `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`,
|
|
36
36
|
* `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`,
|
|
@@ -165,7 +165,7 @@ export declare class ClientsClient {
|
|
|
165
165
|
* `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`,
|
|
166
166
|
* `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`,
|
|
167
167
|
* `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`,
|
|
168
|
-
* `
|
|
168
|
+
* `custom_login_page_on`, `sso`, `addons`, `form_template`,
|
|
169
169
|
* `custom_login_page_codeview`, `resource_servers`, `client_metadata`,
|
|
170
170
|
* `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`,
|
|
171
171
|
* `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`,
|
|
@@ -79,7 +79,7 @@ class ClientsClient {
|
|
|
79
79
|
* `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`,
|
|
80
80
|
* `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`,
|
|
81
81
|
* `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`,
|
|
82
|
-
* `
|
|
82
|
+
* `custom_login_page_on`, `sso`, `addons`, `form_template`,
|
|
83
83
|
* `custom_login_page_codeview`, `resource_servers`, `client_metadata`,
|
|
84
84
|
* `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`,
|
|
85
85
|
* `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`,
|
|
@@ -440,7 +440,7 @@ class ClientsClient {
|
|
|
440
440
|
* `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`,
|
|
441
441
|
* `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`,
|
|
442
442
|
* `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`,
|
|
443
|
-
* `
|
|
443
|
+
* `custom_login_page_on`, `sso`, `addons`, `form_template`,
|
|
444
444
|
* `custom_login_page_codeview`, `resource_servers`, `client_metadata`,
|
|
445
445
|
* `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`,
|
|
446
446
|
* `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`,
|
|
@@ -54,6 +54,7 @@ export declare class ConnectionsClient {
|
|
|
54
54
|
*
|
|
55
55
|
* @example
|
|
56
56
|
* await client.connections.list({
|
|
57
|
+
* include_totals: true,
|
|
57
58
|
* from: "from",
|
|
58
59
|
* take: 1,
|
|
59
60
|
* strategy: ["ad"],
|
|
@@ -127,7 +128,7 @@ export declare class ConnectionsClient {
|
|
|
127
128
|
/**
|
|
128
129
|
* Update details for a specific [connection](https://auth0.com/docs/authenticate/identity-providers), including option properties for identity provider configuration.
|
|
129
130
|
*
|
|
130
|
-
* **Note**: If you use the `options` parameter, the entire `options` object is overridden. To avoid partial data or other issues, ensure all parameters are present when using this option.
|
|
131
|
+
* **Note**: If you use the `options` parameter, the entire `options` object is overridden. To avoid partial data or other issues, ensure all parameters are present when using this option. If any options are unspecified, the default will be used, even if it differs from the existing value.
|
|
131
132
|
*
|
|
132
133
|
* @param {string} id - The id of the connection to update
|
|
133
134
|
* @param {Management.UpdateConnectionRequestContent} request
|
|
@@ -109,6 +109,7 @@ class ConnectionsClient {
|
|
|
109
109
|
*
|
|
110
110
|
* @example
|
|
111
111
|
* await client.connections.list({
|
|
112
|
+
* include_totals: true,
|
|
112
113
|
* from: "from",
|
|
113
114
|
* take: 1,
|
|
114
115
|
* strategy: ["ad"],
|
|
@@ -121,8 +122,9 @@ class ConnectionsClient {
|
|
|
121
122
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
122
123
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
123
124
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
124
|
-
const { from: from_, take = 50, strategy, name, fields, include_fields: includeFields } = request;
|
|
125
|
+
const { include_totals: includeTotals = true, from: from_, take = 50, strategy, name, fields, include_fields: includeFields, } = request;
|
|
125
126
|
const _queryParams = {
|
|
127
|
+
include_totals: includeTotals,
|
|
126
128
|
from: from_,
|
|
127
129
|
take,
|
|
128
130
|
strategy: Array.isArray(strategy)
|
|
@@ -398,7 +400,7 @@ class ConnectionsClient {
|
|
|
398
400
|
/**
|
|
399
401
|
* Update details for a specific [connection](https://auth0.com/docs/authenticate/identity-providers), including option properties for identity provider configuration.
|
|
400
402
|
*
|
|
401
|
-
* **Note**: If you use the `options` parameter, the entire `options` object is overridden. To avoid partial data or other issues, ensure all parameters are present when using this option.
|
|
403
|
+
* **Note**: If you use the `options` parameter, the entire `options` object is overridden. To avoid partial data or other issues, ensure all parameters are present when using this option. If any options are unspecified, the default will be used, even if it differs from the existing value.
|
|
402
404
|
*
|
|
403
405
|
* @param {string} id - The id of the connection to update
|
|
404
406
|
* @param {Management.UpdateConnectionRequestContent} request
|
|
@@ -135,10 +135,33 @@ export declare class DirectoryProvisioningClient {
|
|
|
135
135
|
* @example
|
|
136
136
|
* await client.connections.directoryProvisioning.listSynchronizedGroups("id", {
|
|
137
137
|
* from: "from",
|
|
138
|
-
* take: 1
|
|
138
|
+
* take: 1,
|
|
139
|
+
* q: "q"
|
|
139
140
|
* })
|
|
140
141
|
*/
|
|
141
142
|
listSynchronizedGroups(id: string, request?: Management.ListSynchronizedGroupsRequestParameters, requestOptions?: DirectoryProvisioningClient.RequestOptions): Promise<core.Page<Management.SynchronizedGroupPayload, Management.ListSynchronizedGroupsResponseContent>>;
|
|
143
|
+
/**
|
|
144
|
+
* Add synchronized group selections to a directory provisioning configuration.
|
|
145
|
+
*
|
|
146
|
+
* @param {string} id - The id of the connection to add synchronized groups to
|
|
147
|
+
* @param {Management.AddSynchronizedGroupsRequestContent} request
|
|
148
|
+
* @param {DirectoryProvisioningClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
149
|
+
*
|
|
150
|
+
* @throws {@link Management.BadRequestError}
|
|
151
|
+
* @throws {@link Management.UnauthorizedError}
|
|
152
|
+
* @throws {@link Management.ForbiddenError}
|
|
153
|
+
* @throws {@link Management.NotFoundError}
|
|
154
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* await client.connections.directoryProvisioning.addSynchronizedGroupSelections("id", {
|
|
158
|
+
* groups: [{
|
|
159
|
+
* id: "id"
|
|
160
|
+
* }]
|
|
161
|
+
* })
|
|
162
|
+
*/
|
|
163
|
+
addSynchronizedGroupSelections(id: string, request: Management.AddSynchronizedGroupsRequestContent, requestOptions?: DirectoryProvisioningClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
164
|
+
private __addSynchronizedGroupSelections;
|
|
142
165
|
/**
|
|
143
166
|
* Create or replace the selected groups for a connection directory provisioning configuration.
|
|
144
167
|
*
|
|
@@ -162,4 +185,26 @@ export declare class DirectoryProvisioningClient {
|
|
|
162
185
|
*/
|
|
163
186
|
set(id: string, request: Management.ReplaceSynchronizedGroupsRequestContent, requestOptions?: DirectoryProvisioningClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
164
187
|
private __set;
|
|
188
|
+
/**
|
|
189
|
+
* Delete synchronized group selections for a directory provisioning configuration
|
|
190
|
+
*
|
|
191
|
+
* @param {string} id - The id of the connection to delete synchronized group selections for
|
|
192
|
+
* @param {Management.DeleteSynchronizedGroupsRequestContent} request
|
|
193
|
+
* @param {DirectoryProvisioningClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
194
|
+
*
|
|
195
|
+
* @throws {@link Management.BadRequestError}
|
|
196
|
+
* @throws {@link Management.UnauthorizedError}
|
|
197
|
+
* @throws {@link Management.ForbiddenError}
|
|
198
|
+
* @throws {@link Management.NotFoundError}
|
|
199
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
200
|
+
*
|
|
201
|
+
* @example
|
|
202
|
+
* await client.connections.directoryProvisioning.deleteSynchronizedGroupSelections("id", {
|
|
203
|
+
* groups: [{
|
|
204
|
+
* id: "id"
|
|
205
|
+
* }]
|
|
206
|
+
* })
|
|
207
|
+
*/
|
|
208
|
+
deleteSynchronizedGroupSelections(id: string, request: Management.DeleteSynchronizedGroupsRequestContent, requestOptions?: DirectoryProvisioningClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
209
|
+
private __deleteSynchronizedGroupSelections;
|
|
165
210
|
}
|