auth0 5.5.0 → 5.7.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 +12 -0
- package/dist/cjs/management/Client.js +67 -0
- package/dist/cjs/management/api/requests/requests.d.ts +181 -24
- package/dist/cjs/management/api/resources/actions/client/Client.d.ts +2 -2
- package/dist/cjs/management/api/resources/actions/client/Client.js +3 -3
- package/dist/cjs/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.d.ts +2 -2
- package/dist/cjs/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/clientGrants/client/Client.d.ts +2 -2
- package/dist/cjs/management/api/resources/clientGrants/client/Client.js +4 -3
- package/dist/cjs/management/api/resources/clients/client/Client.d.ts +46 -0
- package/dist/cjs/management/api/resources/clients/client/Client.js +146 -1
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.ts +43 -0
- package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.js +152 -0
- package/dist/cjs/management/api/resources/customDomains/client/Client.d.ts +30 -0
- package/dist/cjs/management/api/resources/customDomains/client/Client.js +115 -0
- package/dist/cjs/management/api/resources/eventStreams/client/Client.d.ts +1 -1
- package/dist/cjs/management/api/resources/eventStreams/client/Client.js +1 -1
- package/dist/cjs/management/api/resources/groups/client/Client.d.ts +16 -0
- package/dist/cjs/management/api/resources/groups/client/Client.js +57 -0
- package/dist/cjs/management/api/resources/networkAcls/client/Client.d.ts +0 -2
- package/dist/cjs/management/api/resources/networkAcls/client/Client.js +0 -2
- package/dist/cjs/management/api/resources/organizations/client/Client.d.ts +3 -0
- package/dist/cjs/management/api/resources/organizations/client/Client.js +13 -8
- package/dist/cjs/management/api/resources/organizations/resources/connections/client/Client.d.ts +95 -0
- package/dist/cjs/management/api/resources/organizations/resources/connections/client/Client.js +383 -0
- package/dist/cjs/management/api/resources/organizations/resources/connections/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/connections/client/index.js +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/connections/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/connections/index.js +17 -0
- package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.d.ts +3 -1
- package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.js +3 -1
- 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/refreshTokens/client/Client.d.ts +23 -0
- package/dist/cjs/management/api/resources/refreshTokens/client/Client.js +88 -0
- package/dist/cjs/management/api/types/types.d.ts +673 -322
- package/dist/cjs/management/api/types/types.js +180 -134
- package/dist/cjs/management/core/auth/BasicAuth.d.ts +2 -2
- package/dist/cjs/management/core/auth/BasicAuth.js +7 -1
- package/dist/cjs/management/core/fetcher/BinaryResponse.d.ts +1 -1
- package/dist/cjs/management/core/fetcher/Fetcher.d.ts +2 -0
- package/dist/cjs/management/core/fetcher/Fetcher.js +5 -1
- package/dist/cjs/management/core/fetcher/index.d.ts +2 -0
- package/dist/cjs/management/core/fetcher/index.js +3 -1
- package/dist/cjs/management/core/fetcher/makePassthroughRequest.d.ts +49 -0
- package/dist/cjs/management/core/fetcher/makePassthroughRequest.js +135 -0
- package/dist/cjs/management/core/fetcher/makeRequest.d.ts +6 -1
- package/dist/cjs/management/core/fetcher/makeRequest.js +30 -9
- package/dist/cjs/management/core/pagination/Page.d.ts +1 -1
- package/dist/cjs/management/core/pagination/index.d.ts +0 -1
- package/dist/cjs/management/core/pagination/index.js +1 -4
- package/dist/cjs/management/core/runtime/runtime.js +8 -7
- package/dist/cjs/management/errors/ManagementError.d.ts +3 -1
- package/dist/cjs/management/errors/ManagementError.js +4 -1
- package/dist/cjs/management/errors/ManagementTimeoutError.d.ts +4 -1
- package/dist/cjs/management/errors/ManagementTimeoutError.js +4 -1
- package/dist/cjs/management/errors/handleNonStatusCodeError.js +4 -1
- package/dist/cjs/management/version.d.ts +1 -1
- package/dist/cjs/management/version.js +1 -1
- package/dist/esm/management/Client.d.mts +12 -0
- package/dist/esm/management/Client.mjs +34 -0
- package/dist/esm/management/api/requests/requests.d.mts +181 -24
- package/dist/esm/management/api/resources/actions/client/Client.d.mts +2 -2
- package/dist/esm/management/api/resources/actions/client/Client.mjs +3 -3
- package/dist/esm/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.d.mts +2 -2
- package/dist/esm/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/clientGrants/client/Client.d.mts +2 -2
- package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +4 -3
- package/dist/esm/management/api/resources/clients/client/Client.d.mts +46 -0
- package/dist/esm/management/api/resources/clients/client/Client.mjs +146 -1
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.mts +43 -0
- package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.mjs +152 -0
- package/dist/esm/management/api/resources/customDomains/client/Client.d.mts +30 -0
- package/dist/esm/management/api/resources/customDomains/client/Client.mjs +115 -0
- package/dist/esm/management/api/resources/eventStreams/client/Client.d.mts +1 -1
- package/dist/esm/management/api/resources/eventStreams/client/Client.mjs +1 -1
- package/dist/esm/management/api/resources/groups/client/Client.d.mts +16 -0
- package/dist/esm/management/api/resources/groups/client/Client.mjs +57 -0
- package/dist/esm/management/api/resources/networkAcls/client/Client.d.mts +0 -2
- package/dist/esm/management/api/resources/networkAcls/client/Client.mjs +0 -2
- package/dist/esm/management/api/resources/organizations/client/Client.d.mts +3 -0
- package/dist/esm/management/api/resources/organizations/client/Client.mjs +5 -0
- package/dist/esm/management/api/resources/organizations/resources/connections/client/Client.d.mts +95 -0
- package/dist/esm/management/api/resources/organizations/resources/connections/client/Client.mjs +346 -0
- package/dist/esm/management/api/resources/organizations/resources/connections/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/connections/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/connections/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/connections/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.d.mts +3 -1
- package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.mjs +3 -1
- 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/refreshTokens/client/Client.d.mts +23 -0
- package/dist/esm/management/api/resources/refreshTokens/client/Client.mjs +88 -0
- package/dist/esm/management/api/types/types.d.mts +673 -322
- package/dist/esm/management/api/types/types.mjs +170 -124
- package/dist/esm/management/core/auth/BasicAuth.d.mts +2 -2
- package/dist/esm/management/core/auth/BasicAuth.mjs +7 -1
- package/dist/esm/management/core/fetcher/BinaryResponse.d.mts +1 -1
- package/dist/esm/management/core/fetcher/Fetcher.d.mts +2 -0
- package/dist/esm/management/core/fetcher/Fetcher.mjs +5 -1
- package/dist/esm/management/core/fetcher/index.d.mts +2 -0
- package/dist/esm/management/core/fetcher/index.mjs +1 -0
- package/dist/esm/management/core/fetcher/makePassthroughRequest.d.mts +49 -0
- package/dist/esm/management/core/fetcher/makePassthroughRequest.mjs +132 -0
- package/dist/esm/management/core/fetcher/makeRequest.d.mts +6 -1
- package/dist/esm/management/core/fetcher/makeRequest.mjs +28 -9
- package/dist/esm/management/core/pagination/Page.d.mts +1 -1
- package/dist/esm/management/core/pagination/index.d.mts +0 -1
- package/dist/esm/management/core/pagination/index.mjs +0 -1
- package/dist/esm/management/core/runtime/runtime.mjs +8 -7
- package/dist/esm/management/errors/ManagementError.d.mts +3 -1
- package/dist/esm/management/errors/ManagementError.mjs +4 -1
- package/dist/esm/management/errors/ManagementTimeoutError.d.mts +4 -1
- package/dist/esm/management/errors/ManagementTimeoutError.mjs +4 -1
- package/dist/esm/management/errors/handleNonStatusCodeError.mjs +4 -1
- package/dist/esm/management/version.d.mts +1 -1
- package/dist/esm/management/version.mjs +1 -1
- package/package.json +5 -6
- package/reference.md +958 -68
- package/dist/cjs/management/core/pagination/CustomPager.d.ts +0 -67
- package/dist/cjs/management/core/pagination/CustomPager.js +0 -194
- package/dist/esm/management/core/pagination/CustomPager.d.mts +0 -67
- package/dist/esm/management/core/pagination/CustomPager.mjs +0 -189
|
@@ -53,4 +53,20 @@ export declare class GroupsClient {
|
|
|
53
53
|
*/
|
|
54
54
|
get(id: string, requestOptions?: GroupsClient.RequestOptions): core.HttpResponsePromise<Management.GetGroupResponseContent>;
|
|
55
55
|
private __get;
|
|
56
|
+
/**
|
|
57
|
+
* Delete a group by its ID.
|
|
58
|
+
*
|
|
59
|
+
* @param {string} id - Unique identifier for the group (service-generated).
|
|
60
|
+
* @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link Management.UnauthorizedError}
|
|
63
|
+
* @throws {@link Management.ForbiddenError}
|
|
64
|
+
* @throws {@link Management.NotFoundError}
|
|
65
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* await client.groups.delete("id")
|
|
69
|
+
*/
|
|
70
|
+
delete(id: string, requestOptions?: GroupsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
71
|
+
private __delete;
|
|
56
72
|
}
|
|
@@ -207,5 +207,62 @@ class GroupsClient {
|
|
|
207
207
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/groups/{id}");
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
|
+
/**
|
|
211
|
+
* Delete a group by its ID.
|
|
212
|
+
*
|
|
213
|
+
* @param {string} id - Unique identifier for the group (service-generated).
|
|
214
|
+
* @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
215
|
+
*
|
|
216
|
+
* @throws {@link Management.UnauthorizedError}
|
|
217
|
+
* @throws {@link Management.ForbiddenError}
|
|
218
|
+
* @throws {@link Management.NotFoundError}
|
|
219
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
220
|
+
*
|
|
221
|
+
* @example
|
|
222
|
+
* await client.groups.delete("id")
|
|
223
|
+
*/
|
|
224
|
+
delete(id, requestOptions) {
|
|
225
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(id, requestOptions));
|
|
226
|
+
}
|
|
227
|
+
__delete(id, requestOptions) {
|
|
228
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
229
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
230
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
231
|
+
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);
|
|
232
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
233
|
+
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, `groups/${core.url.encodePathParam(id)}`),
|
|
234
|
+
method: "DELETE",
|
|
235
|
+
headers: _headers,
|
|
236
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
237
|
+
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,
|
|
238
|
+
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,
|
|
239
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
240
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
241
|
+
logging: this._options.logging,
|
|
242
|
+
});
|
|
243
|
+
if (_response.ok) {
|
|
244
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
245
|
+
}
|
|
246
|
+
if (_response.error.reason === "status-code") {
|
|
247
|
+
switch (_response.error.statusCode) {
|
|
248
|
+
case 401:
|
|
249
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
250
|
+
case 403:
|
|
251
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
252
|
+
case 404:
|
|
253
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
254
|
+
case 429:
|
|
255
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
256
|
+
default:
|
|
257
|
+
throw new errors.ManagementError({
|
|
258
|
+
statusCode: _response.error.statusCode,
|
|
259
|
+
body: _response.error.body,
|
|
260
|
+
rawResponse: _response.rawResponse,
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/groups/{id}");
|
|
265
|
+
});
|
|
266
|
+
}
|
|
210
267
|
}
|
|
211
268
|
exports.GroupsClient = GroupsClient;
|
|
@@ -46,7 +46,6 @@ export declare class NetworkAclsClient {
|
|
|
46
46
|
* await client.networkAcls.create({
|
|
47
47
|
* description: "description",
|
|
48
48
|
* active: true,
|
|
49
|
-
* priority: 1.1,
|
|
50
49
|
* rule: {
|
|
51
50
|
* action: {},
|
|
52
51
|
* scope: "management"
|
|
@@ -88,7 +87,6 @@ export declare class NetworkAclsClient {
|
|
|
88
87
|
* await client.networkAcls.set("id", {
|
|
89
88
|
* description: "description",
|
|
90
89
|
* active: true,
|
|
91
|
-
* priority: 1.1,
|
|
92
90
|
* rule: {
|
|
93
91
|
* action: {},
|
|
94
92
|
* scope: "management"
|
|
@@ -153,7 +153,6 @@ class NetworkAclsClient {
|
|
|
153
153
|
* await client.networkAcls.create({
|
|
154
154
|
* description: "description",
|
|
155
155
|
* active: true,
|
|
156
|
-
* priority: 1.1,
|
|
157
156
|
* rule: {
|
|
158
157
|
* action: {},
|
|
159
158
|
* scope: "management"
|
|
@@ -287,7 +286,6 @@ class NetworkAclsClient {
|
|
|
287
286
|
* await client.networkAcls.set("id", {
|
|
288
287
|
* description: "description",
|
|
289
288
|
* active: true,
|
|
290
|
-
* priority: 1.1,
|
|
291
289
|
* rule: {
|
|
292
290
|
* action: {},
|
|
293
291
|
* scope: "management"
|
|
@@ -3,6 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"
|
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
4
|
import * as Management from "../../../index.js";
|
|
5
5
|
import { ClientGrantsClient } from "../resources/clientGrants/client/Client.js";
|
|
6
|
+
import { ConnectionsClient } from "../resources/connections/client/Client.js";
|
|
6
7
|
import { DiscoveryDomainsClient } from "../resources/discoveryDomains/client/Client.js";
|
|
7
8
|
import { EnabledConnectionsClient } from "../resources/enabledConnections/client/Client.js";
|
|
8
9
|
import { InvitationsClient } from "../resources/invitations/client/Client.js";
|
|
@@ -15,12 +16,14 @@ export declare namespace OrganizationsClient {
|
|
|
15
16
|
export declare class OrganizationsClient {
|
|
16
17
|
protected readonly _options: NormalizedClientOptionsWithAuth<OrganizationsClient.Options>;
|
|
17
18
|
protected _clientGrants: ClientGrantsClient | undefined;
|
|
19
|
+
protected _connections: ConnectionsClient | undefined;
|
|
18
20
|
protected _discoveryDomains: DiscoveryDomainsClient | undefined;
|
|
19
21
|
protected _enabledConnections: EnabledConnectionsClient | undefined;
|
|
20
22
|
protected _invitations: InvitationsClient | undefined;
|
|
21
23
|
protected _members: MembersClient | undefined;
|
|
22
24
|
constructor(options: OrganizationsClient.Options);
|
|
23
25
|
get clientGrants(): ClientGrantsClient;
|
|
26
|
+
get connections(): ConnectionsClient;
|
|
24
27
|
get discoveryDomains(): DiscoveryDomainsClient;
|
|
25
28
|
get enabledConnections(): EnabledConnectionsClient;
|
|
26
29
|
get invitations(): InvitationsClient;
|
|
@@ -52,10 +52,11 @@ const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatu
|
|
|
52
52
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
53
53
|
const Management = __importStar(require("../../../index.js"));
|
|
54
54
|
const Client_js_1 = require("../resources/clientGrants/client/Client.js");
|
|
55
|
-
const Client_js_2 = require("../resources/
|
|
56
|
-
const Client_js_3 = require("../resources/
|
|
57
|
-
const Client_js_4 = require("../resources/
|
|
58
|
-
const Client_js_5 = require("../resources/
|
|
55
|
+
const Client_js_2 = require("../resources/connections/client/Client.js");
|
|
56
|
+
const Client_js_3 = require("../resources/discoveryDomains/client/Client.js");
|
|
57
|
+
const Client_js_4 = require("../resources/enabledConnections/client/Client.js");
|
|
58
|
+
const Client_js_5 = require("../resources/invitations/client/Client.js");
|
|
59
|
+
const Client_js_6 = require("../resources/members/client/Client.js");
|
|
59
60
|
class OrganizationsClient {
|
|
60
61
|
constructor(options) {
|
|
61
62
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
@@ -64,21 +65,25 @@ class OrganizationsClient {
|
|
|
64
65
|
var _a;
|
|
65
66
|
return ((_a = this._clientGrants) !== null && _a !== void 0 ? _a : (this._clientGrants = new Client_js_1.ClientGrantsClient(this._options)));
|
|
66
67
|
}
|
|
68
|
+
get connections() {
|
|
69
|
+
var _a;
|
|
70
|
+
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Client_js_2.ConnectionsClient(this._options)));
|
|
71
|
+
}
|
|
67
72
|
get discoveryDomains() {
|
|
68
73
|
var _a;
|
|
69
|
-
return ((_a = this._discoveryDomains) !== null && _a !== void 0 ? _a : (this._discoveryDomains = new
|
|
74
|
+
return ((_a = this._discoveryDomains) !== null && _a !== void 0 ? _a : (this._discoveryDomains = new Client_js_3.DiscoveryDomainsClient(this._options)));
|
|
70
75
|
}
|
|
71
76
|
get enabledConnections() {
|
|
72
77
|
var _a;
|
|
73
|
-
return ((_a = this._enabledConnections) !== null && _a !== void 0 ? _a : (this._enabledConnections = new
|
|
78
|
+
return ((_a = this._enabledConnections) !== null && _a !== void 0 ? _a : (this._enabledConnections = new Client_js_4.EnabledConnectionsClient(this._options)));
|
|
74
79
|
}
|
|
75
80
|
get invitations() {
|
|
76
81
|
var _a;
|
|
77
|
-
return ((_a = this._invitations) !== null && _a !== void 0 ? _a : (this._invitations = new
|
|
82
|
+
return ((_a = this._invitations) !== null && _a !== void 0 ? _a : (this._invitations = new Client_js_5.InvitationsClient(this._options)));
|
|
78
83
|
}
|
|
79
84
|
get members() {
|
|
80
85
|
var _a;
|
|
81
|
-
return ((_a = this._members) !== null && _a !== void 0 ? _a : (this._members = new
|
|
86
|
+
return ((_a = this._members) !== null && _a !== void 0 ? _a : (this._members = new Client_js_6.MembersClient(this._options)));
|
|
82
87
|
}
|
|
83
88
|
/**
|
|
84
89
|
* Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations.
|
package/dist/cjs/management/api/resources/organizations/resources/connections/client/Client.d.ts
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
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 ConnectionsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class ConnectionsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<ConnectionsClient.Options>;
|
|
12
|
+
constructor(options: ConnectionsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* @param {string} id - Organization identifier.
|
|
15
|
+
* @param {Management.ListOrganizationAllConnectionsRequestParameters} request
|
|
16
|
+
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
17
|
+
*
|
|
18
|
+
* @throws {@link Management.BadRequestError}
|
|
19
|
+
* @throws {@link Management.UnauthorizedError}
|
|
20
|
+
* @throws {@link Management.ForbiddenError}
|
|
21
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* await client.organizations.connections.list("id", {
|
|
25
|
+
* page: 1,
|
|
26
|
+
* per_page: 1,
|
|
27
|
+
* include_totals: true,
|
|
28
|
+
* is_enabled: true
|
|
29
|
+
* })
|
|
30
|
+
*/
|
|
31
|
+
list(id: string, request?: Management.ListOrganizationAllConnectionsRequestParameters, requestOptions?: ConnectionsClient.RequestOptions): Promise<core.Page<Management.OrganizationAllConnectionPost, Management.ListOrganizationAllConnectionsOffsetPaginatedResponseContent>>;
|
|
32
|
+
/**
|
|
33
|
+
* @param {string} id - Organization identifier.
|
|
34
|
+
* @param {Management.CreateOrganizationAllConnectionRequestParameters} request
|
|
35
|
+
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link Management.BadRequestError}
|
|
38
|
+
* @throws {@link Management.UnauthorizedError}
|
|
39
|
+
* @throws {@link Management.ForbiddenError}
|
|
40
|
+
* @throws {@link Management.ConflictError}
|
|
41
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* await client.organizations.connections.create("id", {
|
|
45
|
+
* connection_id: "connection_id"
|
|
46
|
+
* })
|
|
47
|
+
*/
|
|
48
|
+
create(id: string, request: Management.CreateOrganizationAllConnectionRequestParameters, requestOptions?: ConnectionsClient.RequestOptions): core.HttpResponsePromise<Management.CreateOrganizationAllConnectionResponseContent>;
|
|
49
|
+
private __create;
|
|
50
|
+
/**
|
|
51
|
+
* @param {string} id - Organization identifier.
|
|
52
|
+
* @param {string} connection_id - Connection identifier.
|
|
53
|
+
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link Management.UnauthorizedError}
|
|
56
|
+
* @throws {@link Management.ForbiddenError}
|
|
57
|
+
* @throws {@link Management.NotFoundError}
|
|
58
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* await client.organizations.connections.get("id", "connection_id")
|
|
62
|
+
*/
|
|
63
|
+
get(id: string, connection_id: string, requestOptions?: ConnectionsClient.RequestOptions): core.HttpResponsePromise<Management.GetOrganizationAllConnectionResponseContent>;
|
|
64
|
+
private __get;
|
|
65
|
+
/**
|
|
66
|
+
* @param {string} id - Organization identifier.
|
|
67
|
+
* @param {string} connection_id - Connection identifier.
|
|
68
|
+
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link Management.UnauthorizedError}
|
|
71
|
+
* @throws {@link Management.ForbiddenError}
|
|
72
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* await client.organizations.connections.delete("id", "connection_id")
|
|
76
|
+
*/
|
|
77
|
+
delete(id: string, connection_id: string, requestOptions?: ConnectionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
78
|
+
private __delete;
|
|
79
|
+
/**
|
|
80
|
+
* @param {string} id - Organization identifier.
|
|
81
|
+
* @param {string} connection_id - Connection identifier.
|
|
82
|
+
* @param {Management.UpdateOrganizationConnectionRequestParameters} request
|
|
83
|
+
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link Management.BadRequestError}
|
|
86
|
+
* @throws {@link Management.UnauthorizedError}
|
|
87
|
+
* @throws {@link Management.ForbiddenError}
|
|
88
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* await client.organizations.connections.update("id", "connection_id")
|
|
92
|
+
*/
|
|
93
|
+
update(id: string, connection_id: string, request?: Management.UpdateOrganizationConnectionRequestParameters, requestOptions?: ConnectionsClient.RequestOptions): core.HttpResponsePromise<Management.UpdateOrganizationAllConnectionResponseContent>;
|
|
94
|
+
private __update;
|
|
95
|
+
}
|