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.
Files changed (192) hide show
  1. package/dist/cjs/management/Client.d.ts +3 -0
  2. package/dist/cjs/management/Client.js +93 -88
  3. package/dist/cjs/management/api/requests/requests.d.ts +203 -14
  4. package/dist/cjs/management/api/resources/agents/client/Client.d.ts +100 -0
  5. package/dist/cjs/management/api/resources/agents/client/Client.js +383 -0
  6. package/dist/cjs/management/api/resources/agents/client/index.d.ts +1 -0
  7. package/dist/cjs/management/api/resources/agents/client/index.js +2 -0
  8. package/dist/cjs/management/api/resources/agents/exports.d.ts +2 -0
  9. package/dist/cjs/management/api/resources/agents/exports.js +21 -0
  10. package/dist/cjs/management/api/resources/agents/index.d.ts +1 -0
  11. package/dist/cjs/management/api/resources/agents/index.js +17 -0
  12. package/dist/cjs/management/api/resources/clientGrants/client/Client.d.ts +1 -0
  13. package/dist/cjs/management/api/resources/clientGrants/client/Client.js +3 -1
  14. package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.d.ts +1 -0
  15. package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.js +3 -1
  16. package/dist/cjs/management/api/resources/clients/client/Client.d.ts +2 -2
  17. package/dist/cjs/management/api/resources/clients/client/Client.js +2 -2
  18. package/dist/cjs/management/api/resources/connections/client/Client.d.ts +2 -1
  19. package/dist/cjs/management/api/resources/connections/client/Client.js +4 -2
  20. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.ts +46 -1
  21. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.js +140 -2
  22. package/dist/cjs/management/api/resources/eventStreams/resources/deliveries/client/Client.d.ts +1 -2
  23. package/dist/cjs/management/api/resources/eventStreams/resources/deliveries/client/Client.js +66 -54
  24. package/dist/cjs/management/api/resources/flows/client/Client.d.ts +2 -0
  25. package/dist/cjs/management/api/resources/flows/client/Client.js +6 -0
  26. package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.d.ts +3 -0
  27. package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.js +9 -1
  28. package/dist/cjs/management/api/resources/forms/client/Client.d.ts +2 -0
  29. package/dist/cjs/management/api/resources/forms/client/Client.js +6 -0
  30. package/dist/cjs/management/api/resources/groups/client/Client.d.ts +1 -0
  31. package/dist/cjs/management/api/resources/groups/client/Client.js +3 -1
  32. package/dist/cjs/management/api/resources/index.d.ts +1 -0
  33. package/dist/cjs/management/api/resources/index.js +2 -1
  34. package/dist/cjs/management/api/resources/keys/client/Client.d.ts +3 -0
  35. package/dist/cjs/management/api/resources/keys/client/Client.js +7 -2
  36. package/dist/cjs/management/api/resources/keys/resources/index.d.ts +1 -0
  37. package/dist/cjs/management/api/resources/keys/resources/index.js +2 -1
  38. package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/Client.d.ts +67 -0
  39. package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/Client.js +251 -0
  40. package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/index.d.ts +1 -0
  41. package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/index.js +2 -0
  42. package/dist/cjs/management/api/resources/keys/resources/networkAcls/exports.d.ts +2 -0
  43. package/dist/cjs/management/api/resources/keys/resources/networkAcls/exports.js +21 -0
  44. package/dist/cjs/management/api/resources/keys/resources/networkAcls/index.d.ts +1 -0
  45. package/dist/cjs/management/api/resources/keys/resources/networkAcls/index.js +17 -0
  46. package/dist/cjs/management/api/resources/organizations/client/Client.d.ts +6 -1
  47. package/dist/cjs/management/api/resources/organizations/client/Client.js +25 -16
  48. package/dist/cjs/management/api/resources/organizations/resources/clients/client/Client.d.ts +119 -0
  49. package/dist/cjs/management/api/resources/organizations/resources/clients/client/Client.js +422 -0
  50. package/dist/cjs/management/api/resources/organizations/resources/clients/client/index.d.ts +1 -0
  51. package/dist/cjs/management/api/resources/organizations/resources/clients/client/index.js +2 -0
  52. package/dist/cjs/management/api/resources/organizations/resources/clients/exports.d.ts +2 -0
  53. package/dist/cjs/management/api/resources/organizations/resources/clients/exports.js +21 -0
  54. package/dist/cjs/management/api/resources/organizations/resources/clients/index.d.ts +1 -0
  55. package/dist/cjs/management/api/resources/organizations/resources/clients/index.js +17 -0
  56. package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.d.ts +1 -0
  57. package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.js +3 -0
  58. package/dist/cjs/management/api/resources/organizations/resources/index.d.ts +1 -0
  59. package/dist/cjs/management/api/resources/organizations/resources/index.js +2 -1
  60. package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.d.ts +2 -1
  61. package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.js +4 -2
  62. package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.d.ts +2 -0
  63. package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.js +2 -0
  64. package/dist/cjs/management/api/resources/organizations/resources/roles/client/Client.d.ts +3 -0
  65. package/dist/cjs/management/api/resources/organizations/resources/roles/client/Client.js +7 -2
  66. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/client/Client.d.ts +34 -0
  67. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/client/Client.js +145 -0
  68. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/client/index.d.ts +1 -0
  69. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/client/index.js +2 -0
  70. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/exports.d.ts +2 -0
  71. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/exports.js +21 -0
  72. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/index.d.ts +1 -0
  73. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/index.js +17 -0
  74. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/index.d.ts +1 -0
  75. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/index.js +2 -1
  76. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/members/client/Client.d.ts +5 -0
  77. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/members/client/Client.js +5 -0
  78. package/dist/cjs/management/api/resources/roles/client/Client.d.ts +3 -1
  79. package/dist/cjs/management/api/resources/roles/client/Client.js +6 -2
  80. package/dist/cjs/management/api/resources/roles/resources/users/client/Client.d.ts +3 -0
  81. package/dist/cjs/management/api/resources/roles/resources/users/client/Client.js +5 -1
  82. package/dist/cjs/management/api/resources/users/resources/groups/client/Client.d.ts +1 -0
  83. package/dist/cjs/management/api/resources/users/resources/groups/client/Client.js +3 -1
  84. package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.d.ts +2 -0
  85. package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.js +2 -0
  86. package/dist/cjs/management/api/resources/users/resources/refreshToken/client/Client.d.ts +1 -0
  87. package/dist/cjs/management/api/resources/users/resources/refreshToken/client/Client.js +3 -1
  88. package/dist/cjs/management/api/resources/users/resources/roles/client/Client.d.ts +2 -0
  89. package/dist/cjs/management/api/resources/users/resources/roles/client/Client.js +2 -0
  90. package/dist/cjs/management/api/resources/users/resources/sessions/client/Client.d.ts +1 -0
  91. package/dist/cjs/management/api/resources/users/resources/sessions/client/Client.js +3 -1
  92. package/dist/cjs/management/api/types/types.d.ts +387 -34
  93. package/dist/cjs/management/api/types/types.js +92 -15
  94. package/dist/cjs/management/version.d.ts +1 -1
  95. package/dist/cjs/management/version.js +1 -1
  96. package/dist/esm/management/Client.d.mts +3 -0
  97. package/dist/esm/management/Client.mjs +5 -0
  98. package/dist/esm/management/api/requests/requests.d.mts +203 -14
  99. package/dist/esm/management/api/resources/agents/client/Client.d.mts +100 -0
  100. package/dist/esm/management/api/resources/agents/client/Client.mjs +346 -0
  101. package/dist/esm/management/api/resources/agents/client/index.d.mts +1 -0
  102. package/dist/esm/management/api/resources/agents/client/index.mjs +1 -0
  103. package/dist/esm/management/api/resources/agents/exports.d.mts +2 -0
  104. package/dist/esm/management/api/resources/agents/exports.mjs +3 -0
  105. package/dist/esm/management/api/resources/agents/index.d.mts +1 -0
  106. package/dist/esm/management/api/resources/agents/index.mjs +1 -0
  107. package/dist/esm/management/api/resources/clientGrants/client/Client.d.mts +1 -0
  108. package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +3 -1
  109. package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.d.mts +1 -0
  110. package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.mjs +3 -1
  111. package/dist/esm/management/api/resources/clients/client/Client.d.mts +2 -2
  112. package/dist/esm/management/api/resources/clients/client/Client.mjs +2 -2
  113. package/dist/esm/management/api/resources/connections/client/Client.d.mts +2 -1
  114. package/dist/esm/management/api/resources/connections/client/Client.mjs +4 -2
  115. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.mts +46 -1
  116. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.mjs +140 -2
  117. package/dist/esm/management/api/resources/eventStreams/resources/deliveries/client/Client.d.mts +1 -2
  118. package/dist/esm/management/api/resources/eventStreams/resources/deliveries/client/Client.mjs +66 -54
  119. package/dist/esm/management/api/resources/flows/client/Client.d.mts +2 -0
  120. package/dist/esm/management/api/resources/flows/client/Client.mjs +6 -0
  121. package/dist/esm/management/api/resources/flows/resources/executions/client/Client.d.mts +3 -0
  122. package/dist/esm/management/api/resources/flows/resources/executions/client/Client.mjs +9 -1
  123. package/dist/esm/management/api/resources/forms/client/Client.d.mts +2 -0
  124. package/dist/esm/management/api/resources/forms/client/Client.mjs +6 -0
  125. package/dist/esm/management/api/resources/groups/client/Client.d.mts +1 -0
  126. package/dist/esm/management/api/resources/groups/client/Client.mjs +3 -1
  127. package/dist/esm/management/api/resources/index.d.mts +1 -0
  128. package/dist/esm/management/api/resources/index.mjs +1 -0
  129. package/dist/esm/management/api/resources/keys/client/Client.d.mts +3 -0
  130. package/dist/esm/management/api/resources/keys/client/Client.mjs +5 -0
  131. package/dist/esm/management/api/resources/keys/resources/index.d.mts +1 -0
  132. package/dist/esm/management/api/resources/keys/resources/index.mjs +1 -0
  133. package/dist/esm/management/api/resources/keys/resources/networkAcls/client/Client.d.mts +67 -0
  134. package/dist/esm/management/api/resources/keys/resources/networkAcls/client/Client.mjs +214 -0
  135. package/dist/esm/management/api/resources/keys/resources/networkAcls/client/index.d.mts +1 -0
  136. package/dist/esm/management/api/resources/keys/resources/networkAcls/client/index.mjs +1 -0
  137. package/dist/esm/management/api/resources/keys/resources/networkAcls/exports.d.mts +2 -0
  138. package/dist/esm/management/api/resources/keys/resources/networkAcls/exports.mjs +3 -0
  139. package/dist/esm/management/api/resources/keys/resources/networkAcls/index.d.mts +1 -0
  140. package/dist/esm/management/api/resources/keys/resources/networkAcls/index.mjs +1 -0
  141. package/dist/esm/management/api/resources/organizations/client/Client.d.mts +6 -1
  142. package/dist/esm/management/api/resources/organizations/client/Client.mjs +11 -2
  143. package/dist/esm/management/api/resources/organizations/resources/clients/client/Client.d.mts +119 -0
  144. package/dist/esm/management/api/resources/organizations/resources/clients/client/Client.mjs +385 -0
  145. package/dist/esm/management/api/resources/organizations/resources/clients/client/index.d.mts +1 -0
  146. package/dist/esm/management/api/resources/organizations/resources/clients/client/index.mjs +1 -0
  147. package/dist/esm/management/api/resources/organizations/resources/clients/exports.d.mts +2 -0
  148. package/dist/esm/management/api/resources/organizations/resources/clients/exports.mjs +3 -0
  149. package/dist/esm/management/api/resources/organizations/resources/clients/index.d.mts +1 -0
  150. package/dist/esm/management/api/resources/organizations/resources/clients/index.mjs +1 -0
  151. package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.d.mts +1 -0
  152. package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.mjs +3 -0
  153. package/dist/esm/management/api/resources/organizations/resources/index.d.mts +1 -0
  154. package/dist/esm/management/api/resources/organizations/resources/index.mjs +1 -0
  155. package/dist/esm/management/api/resources/organizations/resources/members/client/Client.d.mts +2 -1
  156. package/dist/esm/management/api/resources/organizations/resources/members/client/Client.mjs +4 -2
  157. package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.d.mts +2 -0
  158. package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.mjs +2 -0
  159. package/dist/esm/management/api/resources/organizations/resources/roles/client/Client.d.mts +3 -0
  160. package/dist/esm/management/api/resources/organizations/resources/roles/client/Client.mjs +5 -0
  161. package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/client/Client.d.mts +34 -0
  162. package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/client/Client.mjs +108 -0
  163. package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/client/index.d.mts +1 -0
  164. package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/client/index.mjs +1 -0
  165. package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/exports.d.mts +2 -0
  166. package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/exports.mjs +3 -0
  167. package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/index.d.mts +1 -0
  168. package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/index.mjs +1 -0
  169. package/dist/esm/management/api/resources/organizations/resources/roles/resources/index.d.mts +1 -0
  170. package/dist/esm/management/api/resources/organizations/resources/roles/resources/index.mjs +1 -0
  171. package/dist/esm/management/api/resources/organizations/resources/roles/resources/members/client/Client.d.mts +5 -0
  172. package/dist/esm/management/api/resources/organizations/resources/roles/resources/members/client/Client.mjs +5 -0
  173. package/dist/esm/management/api/resources/roles/client/Client.d.mts +3 -1
  174. package/dist/esm/management/api/resources/roles/client/Client.mjs +6 -2
  175. package/dist/esm/management/api/resources/roles/resources/users/client/Client.d.mts +3 -0
  176. package/dist/esm/management/api/resources/roles/resources/users/client/Client.mjs +5 -1
  177. package/dist/esm/management/api/resources/users/resources/groups/client/Client.d.mts +1 -0
  178. package/dist/esm/management/api/resources/users/resources/groups/client/Client.mjs +3 -1
  179. package/dist/esm/management/api/resources/users/resources/permissions/client/Client.d.mts +2 -0
  180. package/dist/esm/management/api/resources/users/resources/permissions/client/Client.mjs +2 -0
  181. package/dist/esm/management/api/resources/users/resources/refreshToken/client/Client.d.mts +1 -0
  182. package/dist/esm/management/api/resources/users/resources/refreshToken/client/Client.mjs +3 -1
  183. package/dist/esm/management/api/resources/users/resources/roles/client/Client.d.mts +2 -0
  184. package/dist/esm/management/api/resources/users/resources/roles/client/Client.mjs +2 -0
  185. package/dist/esm/management/api/resources/users/resources/sessions/client/Client.d.mts +1 -0
  186. package/dist/esm/management/api/resources/users/resources/sessions/client/Client.mjs +3 -1
  187. package/dist/esm/management/api/types/types.d.mts +387 -34
  188. package/dist/esm/management/api/types/types.mjs +77 -0
  189. package/dist/esm/management/version.d.mts +1 -1
  190. package/dist/esm/management/version.mjs +1 -1
  191. package/package.json +56 -12
  192. package/reference.md +3088 -1844
@@ -0,0 +1,346 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
12
+ import * as core from "../../../../core/index.mjs";
13
+ import { mergeHeaders } from "../../../../core/headers.mjs";
14
+ import * as environments from "../../../../environments.mjs";
15
+ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
16
+ import * as errors from "../../../../errors/index.mjs";
17
+ import * as Management from "../../../index.mjs";
18
+ export class AgentsClient {
19
+ constructor(options) {
20
+ this._options = normalizeClientOptionsWithAuth(options);
21
+ }
22
+ /**
23
+ * Get agents
24
+ *
25
+ * @param {Management.ListAgentsRequestParameters} request
26
+ * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
27
+ *
28
+ * @throws {@link Management.BadRequestError}
29
+ * @throws {@link Management.UnauthorizedError}
30
+ * @throws {@link Management.ForbiddenError}
31
+ * @throws {@link Management.TooManyRequestsError}
32
+ *
33
+ * @example
34
+ * await client.agents.list({
35
+ * from: "from",
36
+ * take: 1
37
+ * })
38
+ */
39
+ list() {
40
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
41
+ const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
42
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
43
+ const { from: from_, take = 50 } = request;
44
+ const _queryParams = {
45
+ from: from_,
46
+ take,
47
+ };
48
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
49
+ let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
50
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
51
+ 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"),
52
+ method: "GET",
53
+ headers: _headers,
54
+ queryString: core.url
55
+ .queryBuilder()
56
+ .addMany(_queryParams)
57
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
58
+ .build(),
59
+ 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,
60
+ 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,
61
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
62
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
63
+ logging: this._options.logging,
64
+ });
65
+ if (_response.ok) {
66
+ return {
67
+ data: _response.body,
68
+ rawResponse: _response.rawResponse,
69
+ };
70
+ }
71
+ if (_response.error.reason === "status-code") {
72
+ switch (_response.error.statusCode) {
73
+ case 400:
74
+ throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
75
+ case 401:
76
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
77
+ case 403:
78
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
79
+ case 429:
80
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
81
+ default:
82
+ throw new errors.ManagementError({
83
+ statusCode: _response.error.statusCode,
84
+ body: _response.error.body,
85
+ rawResponse: _response.rawResponse,
86
+ });
87
+ }
88
+ }
89
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/agents");
90
+ }));
91
+ const dataWithRawResponse = yield list(request).withRawResponse();
92
+ return new core.Page({
93
+ response: dataWithRawResponse.data,
94
+ rawResponse: dataWithRawResponse.rawResponse,
95
+ 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) === ""),
96
+ getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.agents) !== null && _a !== void 0 ? _a : []; },
97
+ loadPage: (response) => {
98
+ return list(core.setObjectProperty(request, "from", response === null || response === void 0 ? void 0 : response.next));
99
+ },
100
+ });
101
+ });
102
+ }
103
+ /**
104
+ * Create an agent
105
+ *
106
+ * @param {Management.CreateAgentRequestContent} request
107
+ * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
108
+ *
109
+ * @throws {@link Management.BadRequestError}
110
+ * @throws {@link Management.UnauthorizedError}
111
+ * @throws {@link Management.ForbiddenError}
112
+ * @throws {@link Management.ConflictError}
113
+ * @throws {@link Management.TooManyRequestsError}
114
+ *
115
+ * @example
116
+ * await client.agents.create({
117
+ * name: "name"
118
+ * })
119
+ */
120
+ create(request, requestOptions) {
121
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
122
+ }
123
+ __create(request, requestOptions) {
124
+ return __awaiter(this, void 0, void 0, function* () {
125
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
126
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
127
+ let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
128
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
129
+ 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"),
130
+ method: "POST",
131
+ headers: _headers,
132
+ contentType: "application/json",
133
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
134
+ requestType: "json",
135
+ body: request,
136
+ 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,
137
+ 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,
138
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
139
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
140
+ logging: this._options.logging,
141
+ });
142
+ if (_response.ok) {
143
+ return { data: _response.body, rawResponse: _response.rawResponse };
144
+ }
145
+ if (_response.error.reason === "status-code") {
146
+ switch (_response.error.statusCode) {
147
+ case 400:
148
+ throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
149
+ case 401:
150
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
151
+ case 403:
152
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
153
+ case 409:
154
+ throw new Management.ConflictError(_response.error.body, _response.rawResponse);
155
+ case 429:
156
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
157
+ default:
158
+ throw new errors.ManagementError({
159
+ statusCode: _response.error.statusCode,
160
+ body: _response.error.body,
161
+ rawResponse: _response.rawResponse,
162
+ });
163
+ }
164
+ }
165
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/agents");
166
+ });
167
+ }
168
+ /**
169
+ * Get an agent
170
+ *
171
+ * @param {string} id - The agent ID
172
+ * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
173
+ *
174
+ * @throws {@link Management.UnauthorizedError}
175
+ * @throws {@link Management.ForbiddenError}
176
+ * @throws {@link Management.NotFoundError}
177
+ * @throws {@link Management.TooManyRequestsError}
178
+ *
179
+ * @example
180
+ * await client.agents.read("id")
181
+ */
182
+ read(id, requestOptions) {
183
+ return core.HttpResponsePromise.fromPromise(this.__read(id, requestOptions));
184
+ }
185
+ __read(id, requestOptions) {
186
+ return __awaiter(this, void 0, void 0, function* () {
187
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
188
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
189
+ let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
190
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
191
+ 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)}`),
192
+ method: "GET",
193
+ headers: _headers,
194
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
195
+ 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,
196
+ 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,
197
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
198
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
199
+ logging: this._options.logging,
200
+ });
201
+ if (_response.ok) {
202
+ return { data: _response.body, rawResponse: _response.rawResponse };
203
+ }
204
+ if (_response.error.reason === "status-code") {
205
+ switch (_response.error.statusCode) {
206
+ case 401:
207
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
208
+ case 403:
209
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
210
+ case 404:
211
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
212
+ case 429:
213
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
214
+ default:
215
+ throw new errors.ManagementError({
216
+ statusCode: _response.error.statusCode,
217
+ body: _response.error.body,
218
+ rawResponse: _response.rawResponse,
219
+ });
220
+ }
221
+ }
222
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/agents/{id}");
223
+ });
224
+ }
225
+ /**
226
+ * Delete an agent
227
+ *
228
+ * @param {string} id - The agent ID
229
+ * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
230
+ *
231
+ * @throws {@link Management.BadRequestError}
232
+ * @throws {@link Management.UnauthorizedError}
233
+ * @throws {@link Management.ForbiddenError}
234
+ * @throws {@link Management.TooManyRequestsError}
235
+ *
236
+ * @example
237
+ * await client.agents.delete("id")
238
+ */
239
+ delete(id, requestOptions) {
240
+ return core.HttpResponsePromise.fromPromise(this.__delete(id, requestOptions));
241
+ }
242
+ __delete(id, requestOptions) {
243
+ return __awaiter(this, void 0, void 0, function* () {
244
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
245
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
246
+ let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
247
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
248
+ 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)}`),
249
+ method: "DELETE",
250
+ headers: _headers,
251
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
252
+ 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,
253
+ 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,
254
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
255
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
256
+ logging: this._options.logging,
257
+ });
258
+ if (_response.ok) {
259
+ return { data: undefined, rawResponse: _response.rawResponse };
260
+ }
261
+ if (_response.error.reason === "status-code") {
262
+ switch (_response.error.statusCode) {
263
+ case 400:
264
+ throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
265
+ case 401:
266
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
267
+ case 403:
268
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
269
+ case 429:
270
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
271
+ default:
272
+ throw new errors.ManagementError({
273
+ statusCode: _response.error.statusCode,
274
+ body: _response.error.body,
275
+ rawResponse: _response.rawResponse,
276
+ });
277
+ }
278
+ }
279
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/agents/{id}");
280
+ });
281
+ }
282
+ /**
283
+ * Update an agent
284
+ *
285
+ * @param {string} id - The agent ID
286
+ * @param {Management.PatchAgentRequestParameters} request
287
+ * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
288
+ *
289
+ * @throws {@link Management.BadRequestError}
290
+ * @throws {@link Management.UnauthorizedError}
291
+ * @throws {@link Management.ForbiddenError}
292
+ * @throws {@link Management.NotFoundError}
293
+ * @throws {@link Management.TooManyRequestsError}
294
+ *
295
+ * @example
296
+ * await client.agents.update("id")
297
+ */
298
+ update(id, request = {}, requestOptions) {
299
+ return core.HttpResponsePromise.fromPromise(this.__update(id, request, requestOptions));
300
+ }
301
+ __update(id_1) {
302
+ return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
303
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
304
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
305
+ let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
306
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
307
+ 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)}`),
308
+ method: "PATCH",
309
+ headers: _headers,
310
+ contentType: "application/json",
311
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
312
+ requestType: "json",
313
+ body: request,
314
+ 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,
315
+ 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,
316
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
317
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
318
+ logging: this._options.logging,
319
+ });
320
+ if (_response.ok) {
321
+ return { data: _response.body, rawResponse: _response.rawResponse };
322
+ }
323
+ if (_response.error.reason === "status-code") {
324
+ switch (_response.error.statusCode) {
325
+ case 400:
326
+ throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
327
+ case 401:
328
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
329
+ case 403:
330
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
331
+ case 404:
332
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
333
+ case 429:
334
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
335
+ default:
336
+ throw new errors.ManagementError({
337
+ statusCode: _response.error.statusCode,
338
+ body: _response.error.body,
339
+ rawResponse: _response.rawResponse,
340
+ });
341
+ }
342
+ }
343
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/agents/{id}");
344
+ });
345
+ }
346
+ }
@@ -0,0 +1,2 @@
1
+ export { AgentsClient } from "./client/Client.mjs";
2
+ export * from "./client/index.mjs";
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export { AgentsClient } from "./client/Client.mjs";
3
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -25,6 +25,7 @@ export declare class ClientGrantsClient {
25
25
  *
26
26
  * @example
27
27
  * await client.clientGrants.list({
28
+ * include_totals: true,
28
29
  * from: "from",
29
30
  * take: 1,
30
31
  * audience: "audience",
@@ -36,6 +36,7 @@ export class ClientGrantsClient {
36
36
  *
37
37
  * @example
38
38
  * await client.clientGrants.list({
39
+ * include_totals: true,
39
40
  * from: "from",
40
41
  * take: 1,
41
42
  * audience: "audience",
@@ -49,8 +50,9 @@ export class ClientGrantsClient {
49
50
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
50
51
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
51
52
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
52
- const { from: from_, take = 50, audience, client_id: clientId, allow_any_organization: allowAnyOrganization, subject_type: subjectType, default_for: defaultFor, } = request;
53
+ const { include_totals: includeTotals = true, from: from_, take = 50, audience, client_id: clientId, allow_any_organization: allowAnyOrganization, subject_type: subjectType, default_for: defaultFor, } = request;
53
54
  const _queryParams = {
55
+ include_totals: includeTotals,
54
56
  from: from_,
55
57
  take,
56
58
  audience,
@@ -23,6 +23,7 @@ export declare class OrganizationsClient {
23
23
  *
24
24
  * @example
25
25
  * await client.clientGrants.organizations.list("id", {
26
+ * include_totals: true,
26
27
  * from: "from",
27
28
  * take: 1
28
29
  * })
@@ -32,6 +32,7 @@ export class OrganizationsClient {
32
32
  *
33
33
  * @example
34
34
  * await client.clientGrants.organizations.list("id", {
35
+ * include_totals: true,
35
36
  * from: "from",
36
37
  * take: 1
37
38
  * })
@@ -40,8 +41,9 @@ export class OrganizationsClient {
40
41
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
41
42
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
42
43
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
43
- const { from: from_, take = 50 } = request;
44
+ const { include_totals: includeTotals = true, from: from_, take = 50 } = request;
44
45
  const _queryParams = {
46
+ include_totals: includeTotals,
45
47
  from: from_,
46
48
  take,
47
49
  };
@@ -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
- * `custom_login_page_off`, `sso`, `addons`, `form_template`,
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
- * `custom_login_page_off`, `sso`, `addons`, `form_template`,
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`,
@@ -43,7 +43,7 @@ export class ClientsClient {
43
43
  * `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`,
44
44
  * `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`,
45
45
  * `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`,
46
- * `custom_login_page_off`, `sso`, `addons`, `form_template`,
46
+ * `custom_login_page_on`, `sso`, `addons`, `form_template`,
47
47
  * `custom_login_page_codeview`, `resource_servers`, `client_metadata`,
48
48
  * `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`,
49
49
  * `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`,
@@ -404,7 +404,7 @@ export class ClientsClient {
404
404
  * `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`,
405
405
  * `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`,
406
406
  * `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`,
407
- * `custom_login_page_off`, `sso`, `addons`, `form_template`,
407
+ * `custom_login_page_on`, `sso`, `addons`, `form_template`,
408
408
  * `custom_login_page_codeview`, `resource_servers`, `client_metadata`,
409
409
  * `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`,
410
410
  * `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
@@ -73,6 +73,7 @@ export class ConnectionsClient {
73
73
  *
74
74
  * @example
75
75
  * await client.connections.list({
76
+ * include_totals: true,
76
77
  * from: "from",
77
78
  * take: 1,
78
79
  * strategy: ["ad"],
@@ -85,8 +86,9 @@ export class ConnectionsClient {
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, strategy, name, fields, include_fields: includeFields } = request;
89
+ const { include_totals: includeTotals = true, from: from_, take = 50, strategy, name, fields, include_fields: includeFields, } = request;
89
90
  const _queryParams = {
91
+ include_totals: includeTotals,
90
92
  from: from_,
91
93
  take,
92
94
  strategy: Array.isArray(strategy)
@@ -362,7 +364,7 @@ export class ConnectionsClient {
362
364
  /**
363
365
  * Update details for a specific [connection](https://auth0.com/docs/authenticate/identity-providers), including option properties for identity provider configuration.
364
366
  *
365
- * **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.
367
+ * **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.
366
368
  *
367
369
  * @param {string} id - The id of the connection to update
368
370
  * @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
  }