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,67 @@
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 NetworkAclsClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class NetworkAclsClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<NetworkAclsClient.Options>;
12
+ constructor(options: NetworkAclsClient.Options);
13
+ /**
14
+ * Retrieve all keys used to verify HTTP Message Signatures on Network ACL rules, ordered by creation time descending.
15
+ *
16
+ * @param {NetworkAclsClient.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.NotFoundError}
22
+ * @throws {@link Management.TooManyRequestsError}
23
+ *
24
+ * @example
25
+ * await client.keys.networkAcls.list()
26
+ */
27
+ list(requestOptions?: NetworkAclsClient.RequestOptions): core.HttpResponsePromise<Management.GetAllKeysNetworkAclsResponseContent>;
28
+ private __list;
29
+ /**
30
+ * Create a new key used to verify HTTP Message Signatures on Network ACL rules.
31
+ *
32
+ * @param {Management.CreateKeysNetworkAclsRequestContent} request
33
+ * @param {NetworkAclsClient.RequestOptions} requestOptions - Request-specific configuration.
34
+ *
35
+ * @throws {@link Management.BadRequestError}
36
+ * @throws {@link Management.UnauthorizedError}
37
+ * @throws {@link Management.ForbiddenError}
38
+ * @throws {@link Management.ConflictError}
39
+ * @throws {@link Management.TooManyRequestsError}
40
+ *
41
+ * @example
42
+ * await client.keys.networkAcls.create({
43
+ * name: "name",
44
+ * alg: "hmac-sha256",
45
+ * value: "value"
46
+ * })
47
+ */
48
+ create(request: Management.CreateKeysNetworkAclsRequestContent, requestOptions?: NetworkAclsClient.RequestOptions): core.HttpResponsePromise<Management.CreateKeysNetworkAclsResponseContent>;
49
+ private __create;
50
+ /**
51
+ * Retrieve a specific key used to verify HTTP Message Signatures on Network ACL rules.
52
+ *
53
+ * @param {string} id - ID of the Network ACL Key to retrieve.
54
+ * @param {NetworkAclsClient.RequestOptions} requestOptions - Request-specific configuration.
55
+ *
56
+ * @throws {@link Management.BadRequestError}
57
+ * @throws {@link Management.UnauthorizedError}
58
+ * @throws {@link Management.ForbiddenError}
59
+ * @throws {@link Management.NotFoundError}
60
+ * @throws {@link Management.TooManyRequestsError}
61
+ *
62
+ * @example
63
+ * await client.keys.networkAcls.get("id")
64
+ */
65
+ get(id: string, requestOptions?: NetworkAclsClient.RequestOptions): core.HttpResponsePromise<Management.NetworkAclKey>;
66
+ private __get;
67
+ }
@@ -0,0 +1,251 @@
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.NetworkAclsClient = 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 NetworkAclsClient {
55
+ constructor(options) {
56
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
57
+ }
58
+ /**
59
+ * Retrieve all keys used to verify HTTP Message Signatures on Network ACL rules, ordered by creation time descending.
60
+ *
61
+ * @param {NetworkAclsClient.RequestOptions} requestOptions - Request-specific configuration.
62
+ *
63
+ * @throws {@link Management.BadRequestError}
64
+ * @throws {@link Management.UnauthorizedError}
65
+ * @throws {@link Management.ForbiddenError}
66
+ * @throws {@link Management.NotFoundError}
67
+ * @throws {@link Management.TooManyRequestsError}
68
+ *
69
+ * @example
70
+ * await client.keys.networkAcls.list()
71
+ */
72
+ list(requestOptions) {
73
+ return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
74
+ }
75
+ __list(requestOptions) {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
78
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
79
+ 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);
80
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
81
+ 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, "keys/network-acls"),
82
+ method: "GET",
83
+ headers: _headers,
84
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
85
+ 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,
86
+ 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,
87
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
88
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
89
+ logging: this._options.logging,
90
+ });
91
+ if (_response.ok) {
92
+ return {
93
+ data: _response.body,
94
+ rawResponse: _response.rawResponse,
95
+ };
96
+ }
97
+ if (_response.error.reason === "status-code") {
98
+ switch (_response.error.statusCode) {
99
+ case 400:
100
+ throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
101
+ case 401:
102
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
103
+ case 403:
104
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
105
+ case 404:
106
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
107
+ case 429:
108
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
109
+ default:
110
+ throw new errors.ManagementError({
111
+ statusCode: _response.error.statusCode,
112
+ body: _response.error.body,
113
+ rawResponse: _response.rawResponse,
114
+ });
115
+ }
116
+ }
117
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/keys/network-acls");
118
+ });
119
+ }
120
+ /**
121
+ * Create a new key used to verify HTTP Message Signatures on Network ACL rules.
122
+ *
123
+ * @param {Management.CreateKeysNetworkAclsRequestContent} request
124
+ * @param {NetworkAclsClient.RequestOptions} requestOptions - Request-specific configuration.
125
+ *
126
+ * @throws {@link Management.BadRequestError}
127
+ * @throws {@link Management.UnauthorizedError}
128
+ * @throws {@link Management.ForbiddenError}
129
+ * @throws {@link Management.ConflictError}
130
+ * @throws {@link Management.TooManyRequestsError}
131
+ *
132
+ * @example
133
+ * await client.keys.networkAcls.create({
134
+ * name: "name",
135
+ * alg: "hmac-sha256",
136
+ * value: "value"
137
+ * })
138
+ */
139
+ create(request, requestOptions) {
140
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
141
+ }
142
+ __create(request, requestOptions) {
143
+ return __awaiter(this, void 0, void 0, function* () {
144
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
145
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
146
+ 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);
147
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
148
+ 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, "keys/network-acls"),
149
+ method: "POST",
150
+ headers: _headers,
151
+ contentType: "application/json",
152
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
153
+ requestType: "json",
154
+ body: request,
155
+ 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,
156
+ 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,
157
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
158
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
159
+ logging: this._options.logging,
160
+ });
161
+ if (_response.ok) {
162
+ return {
163
+ data: _response.body,
164
+ rawResponse: _response.rawResponse,
165
+ };
166
+ }
167
+ if (_response.error.reason === "status-code") {
168
+ switch (_response.error.statusCode) {
169
+ case 400:
170
+ throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
171
+ case 401:
172
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
173
+ case 403:
174
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
175
+ case 409:
176
+ throw new Management.ConflictError(_response.error.body, _response.rawResponse);
177
+ case 429:
178
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
179
+ default:
180
+ throw new errors.ManagementError({
181
+ statusCode: _response.error.statusCode,
182
+ body: _response.error.body,
183
+ rawResponse: _response.rawResponse,
184
+ });
185
+ }
186
+ }
187
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/keys/network-acls");
188
+ });
189
+ }
190
+ /**
191
+ * Retrieve a specific key used to verify HTTP Message Signatures on Network ACL rules.
192
+ *
193
+ * @param {string} id - ID of the Network ACL Key to retrieve.
194
+ * @param {NetworkAclsClient.RequestOptions} requestOptions - Request-specific configuration.
195
+ *
196
+ * @throws {@link Management.BadRequestError}
197
+ * @throws {@link Management.UnauthorizedError}
198
+ * @throws {@link Management.ForbiddenError}
199
+ * @throws {@link Management.NotFoundError}
200
+ * @throws {@link Management.TooManyRequestsError}
201
+ *
202
+ * @example
203
+ * await client.keys.networkAcls.get("id")
204
+ */
205
+ get(id, requestOptions) {
206
+ return core.HttpResponsePromise.fromPromise(this.__get(id, requestOptions));
207
+ }
208
+ __get(id, requestOptions) {
209
+ return __awaiter(this, void 0, void 0, function* () {
210
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
211
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
212
+ 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);
213
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
214
+ 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, `keys/network-acls/${core.url.encodePathParam(id)}`),
215
+ method: "GET",
216
+ headers: _headers,
217
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
218
+ 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,
219
+ 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,
220
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
221
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
222
+ logging: this._options.logging,
223
+ });
224
+ if (_response.ok) {
225
+ return { data: _response.body, rawResponse: _response.rawResponse };
226
+ }
227
+ if (_response.error.reason === "status-code") {
228
+ switch (_response.error.statusCode) {
229
+ case 400:
230
+ throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
231
+ case 401:
232
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
233
+ case 403:
234
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
235
+ case 404:
236
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
237
+ case 429:
238
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
239
+ default:
240
+ throw new errors.ManagementError({
241
+ statusCode: _response.error.statusCode,
242
+ body: _response.error.body,
243
+ rawResponse: _response.rawResponse,
244
+ });
245
+ }
246
+ }
247
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/keys/network-acls/{id}");
248
+ });
249
+ }
250
+ }
251
+ exports.NetworkAclsClient = NetworkAclsClient;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { NetworkAclsClient } from "./client/Client.js";
2
+ export * from "./client/index.js";
@@ -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.NetworkAclsClient = void 0;
19
+ var Client_js_1 = require("./client/Client.js");
20
+ Object.defineProperty(exports, "NetworkAclsClient", { enumerable: true, get: function () { return Client_js_1.NetworkAclsClient; } });
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);
@@ -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 { ClientsClient } from "../resources/clients/client/Client.js";
6
7
  import { ConnectionsClient } from "../resources/connections/client/Client.js";
7
8
  import { DiscoveryDomainsClient } from "../resources/discoveryDomains/client/Client.js";
8
9
  import { EnabledConnectionsClient } from "../resources/enabledConnections/client/Client.js";
@@ -18,6 +19,7 @@ export declare namespace OrganizationsClient {
18
19
  export declare class OrganizationsClient {
19
20
  protected readonly _options: NormalizedClientOptionsWithAuth<OrganizationsClient.Options>;
20
21
  protected _clientGrants: ClientGrantsClient | undefined;
22
+ protected _clients: ClientsClient | undefined;
21
23
  protected _connections: ConnectionsClient | undefined;
22
24
  protected _discoveryDomains: DiscoveryDomainsClient | undefined;
23
25
  protected _enabledConnections: EnabledConnectionsClient | undefined;
@@ -27,6 +29,7 @@ export declare class OrganizationsClient {
27
29
  protected _roles: RolesClient | undefined;
28
30
  constructor(options: OrganizationsClient.Options);
29
31
  get clientGrants(): ClientGrantsClient;
32
+ get clients(): ClientsClient;
30
33
  get connections(): ConnectionsClient;
31
34
  get discoveryDomains(): DiscoveryDomainsClient;
32
35
  get enabledConnections(): EnabledConnectionsClient;
@@ -63,9 +66,11 @@ export declare class OrganizationsClient {
63
66
  *
64
67
  * @example
65
68
  * await client.organizations.list({
69
+ * include_totals: true,
66
70
  * from: "from",
67
71
  * take: 1,
68
- * sort: "sort"
72
+ * sort: "sort",
73
+ * include_client_association_for: "include_client_association_for"
69
74
  * })
70
75
  */
71
76
  list(request?: Management.ListOrganizationsRequestParameters, requestOptions?: OrganizationsClient.RequestOptions): Promise<core.Page<Management.Organization, Management.ListOrganizationsPaginatedResponseContent>>;
@@ -52,13 +52,14 @@ 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/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/groups/client/Client.js");
59
- const Client_js_6 = require("../resources/invitations/client/Client.js");
60
- const Client_js_7 = require("../resources/members/client/Client.js");
61
- const Client_js_8 = require("../resources/roles/client/Client.js");
55
+ const Client_js_2 = require("../resources/clients/client/Client.js");
56
+ const Client_js_3 = require("../resources/connections/client/Client.js");
57
+ const Client_js_4 = require("../resources/discoveryDomains/client/Client.js");
58
+ const Client_js_5 = require("../resources/enabledConnections/client/Client.js");
59
+ const Client_js_6 = require("../resources/groups/client/Client.js");
60
+ const Client_js_7 = require("../resources/invitations/client/Client.js");
61
+ const Client_js_8 = require("../resources/members/client/Client.js");
62
+ const Client_js_9 = require("../resources/roles/client/Client.js");
62
63
  class OrganizationsClient {
63
64
  constructor(options) {
64
65
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
@@ -67,33 +68,37 @@ class OrganizationsClient {
67
68
  var _a;
68
69
  return ((_a = this._clientGrants) !== null && _a !== void 0 ? _a : (this._clientGrants = new Client_js_1.ClientGrantsClient(this._options)));
69
70
  }
71
+ get clients() {
72
+ var _a;
73
+ return ((_a = this._clients) !== null && _a !== void 0 ? _a : (this._clients = new Client_js_2.ClientsClient(this._options)));
74
+ }
70
75
  get connections() {
71
76
  var _a;
72
- return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Client_js_2.ConnectionsClient(this._options)));
77
+ return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Client_js_3.ConnectionsClient(this._options)));
73
78
  }
74
79
  get discoveryDomains() {
75
80
  var _a;
76
- return ((_a = this._discoveryDomains) !== null && _a !== void 0 ? _a : (this._discoveryDomains = new Client_js_3.DiscoveryDomainsClient(this._options)));
81
+ return ((_a = this._discoveryDomains) !== null && _a !== void 0 ? _a : (this._discoveryDomains = new Client_js_4.DiscoveryDomainsClient(this._options)));
77
82
  }
78
83
  get enabledConnections() {
79
84
  var _a;
80
- return ((_a = this._enabledConnections) !== null && _a !== void 0 ? _a : (this._enabledConnections = new Client_js_4.EnabledConnectionsClient(this._options)));
85
+ return ((_a = this._enabledConnections) !== null && _a !== void 0 ? _a : (this._enabledConnections = new Client_js_5.EnabledConnectionsClient(this._options)));
81
86
  }
82
87
  get invitations() {
83
88
  var _a;
84
- return ((_a = this._invitations) !== null && _a !== void 0 ? _a : (this._invitations = new Client_js_6.InvitationsClient(this._options)));
89
+ return ((_a = this._invitations) !== null && _a !== void 0 ? _a : (this._invitations = new Client_js_7.InvitationsClient(this._options)));
85
90
  }
86
91
  get members() {
87
92
  var _a;
88
- return ((_a = this._members) !== null && _a !== void 0 ? _a : (this._members = new Client_js_7.MembersClient(this._options)));
93
+ return ((_a = this._members) !== null && _a !== void 0 ? _a : (this._members = new Client_js_8.MembersClient(this._options)));
89
94
  }
90
95
  get groups() {
91
96
  var _a;
92
- return ((_a = this._groups) !== null && _a !== void 0 ? _a : (this._groups = new Client_js_5.GroupsClient(this._options)));
97
+ return ((_a = this._groups) !== null && _a !== void 0 ? _a : (this._groups = new Client_js_6.GroupsClient(this._options)));
93
98
  }
94
99
  get roles() {
95
100
  var _a;
96
- return ((_a = this._roles) !== null && _a !== void 0 ? _a : (this._roles = new Client_js_8.RolesClient(this._options)));
101
+ return ((_a = this._roles) !== null && _a !== void 0 ? _a : (this._roles = new Client_js_9.RolesClient(this._options)));
97
102
  }
98
103
  /**
99
104
  * Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations.
@@ -124,20 +129,24 @@ class OrganizationsClient {
124
129
  *
125
130
  * @example
126
131
  * await client.organizations.list({
132
+ * include_totals: true,
127
133
  * from: "from",
128
134
  * take: 1,
129
- * sort: "sort"
135
+ * sort: "sort",
136
+ * include_client_association_for: "include_client_association_for"
130
137
  * })
131
138
  */
132
139
  list() {
133
140
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
134
141
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
135
142
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
136
- const { from: from_, take = 50, sort } = request;
143
+ const { include_totals: includeTotals = true, from: from_, take = 50, sort, include_client_association_for: includeClientAssociationFor, } = request;
137
144
  const _queryParams = {
145
+ include_totals: includeTotals,
138
146
  from: from_,
139
147
  take,
140
148
  sort,
149
+ include_client_association_for: includeClientAssociationFor,
141
150
  };
142
151
  const _authRequest = yield this._options.authProvider.getAuthRequest();
143
152
  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);
@@ -0,0 +1,119 @@
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 ClientsClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class ClientsClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<ClientsClient.Options>;
12
+ constructor(options: ClientsClient.Options);
13
+ /**
14
+ * List all clients associated with an organization, using checkpoint pagination.
15
+ * <ul>
16
+ * <li>
17
+ * <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.
18
+ * </li>
19
+ * </ul>
20
+ *
21
+ * @param {string} id - ID of the organization.
22
+ * @param {Management.ListOrganizationClientsRequestParameters} request
23
+ * @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.
24
+ *
25
+ * @throws {@link Management.BadRequestError}
26
+ * @throws {@link Management.UnauthorizedError}
27
+ * @throws {@link Management.ForbiddenError}
28
+ * @throws {@link Management.NotFoundError}
29
+ * @throws {@link Management.TooManyRequestsError}
30
+ *
31
+ * @example
32
+ * await client.organizations.clients.list("id", {
33
+ * from: "from",
34
+ * take: 1
35
+ * })
36
+ */
37
+ list(id: string, request?: Management.ListOrganizationClientsRequestParameters, requestOptions?: ClientsClient.RequestOptions): Promise<core.Page<Management.OrganizationClient, Management.ListOrganizationClientsResponseContent>>;
38
+ /**
39
+ * Associate one or more clients with an organization.
40
+ *
41
+ * @param {string} id - ID of the organization.
42
+ * @param {Management.CreateOrganizationClientsRequestContent} request
43
+ * @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.
44
+ *
45
+ * @throws {@link Management.BadRequestError}
46
+ * @throws {@link Management.UnauthorizedError}
47
+ * @throws {@link Management.ForbiddenError}
48
+ * @throws {@link Management.NotFoundError}
49
+ * @throws {@link Management.ConflictError}
50
+ * @throws {@link Management.TooManyRequestsError}
51
+ *
52
+ * @example
53
+ * await client.organizations.clients.create("id", {
54
+ * clients: [{
55
+ * client_id: "client_id",
56
+ * use_for_member_access: true
57
+ * }]
58
+ * })
59
+ */
60
+ create(id: string, request: Management.CreateOrganizationClientsRequestContent, requestOptions?: ClientsClient.RequestOptions): core.HttpResponsePromise<Management.CreateOrganizationClientsResponseContent>;
61
+ private __create;
62
+ /**
63
+ * Remove one or more client associations from an organization.
64
+ *
65
+ * @param {string} id - ID of the organization.
66
+ * @param {Management.DeleteOrganizationClientsRequestContent} request
67
+ * @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.
68
+ *
69
+ * @throws {@link Management.BadRequestError}
70
+ * @throws {@link Management.UnauthorizedError}
71
+ * @throws {@link Management.ForbiddenError}
72
+ * @throws {@link Management.NotFoundError}
73
+ * @throws {@link Management.TooManyRequestsError}
74
+ *
75
+ * @example
76
+ * await client.organizations.clients.delete("id", {
77
+ * clients: ["clients"]
78
+ * })
79
+ */
80
+ delete(id: string, request: Management.DeleteOrganizationClientsRequestContent, requestOptions?: ClientsClient.RequestOptions): core.HttpResponsePromise<void>;
81
+ private __delete;
82
+ /**
83
+ * Get a specific client association for an organization.
84
+ *
85
+ * @param {string} id - ID of the organization.
86
+ * @param {string} client_id - ID of the client association to retrieve.
87
+ * @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.
88
+ *
89
+ * @throws {@link Management.BadRequestError}
90
+ * @throws {@link Management.UnauthorizedError}
91
+ * @throws {@link Management.ForbiddenError}
92
+ * @throws {@link Management.NotFoundError}
93
+ * @throws {@link Management.TooManyRequestsError}
94
+ *
95
+ * @example
96
+ * await client.organizations.clients.get("id", "client_id")
97
+ */
98
+ get(id: string, client_id: string, requestOptions?: ClientsClient.RequestOptions): core.HttpResponsePromise<Management.GetOrganizationClientResponseContent>;
99
+ private __get;
100
+ /**
101
+ * Update an organization client association.
102
+ *
103
+ * @param {string} id - ID of the organization.
104
+ * @param {string} client_id - ID of the client association to update.
105
+ * @param {Management.UpdateOrganizationClientRequestContent} request
106
+ * @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.
107
+ *
108
+ * @throws {@link Management.BadRequestError}
109
+ * @throws {@link Management.UnauthorizedError}
110
+ * @throws {@link Management.ForbiddenError}
111
+ * @throws {@link Management.NotFoundError}
112
+ * @throws {@link Management.TooManyRequestsError}
113
+ *
114
+ * @example
115
+ * await client.organizations.clients.update("id", "client_id")
116
+ */
117
+ update(id: string, client_id: string, request?: Management.UpdateOrganizationClientRequestContent, requestOptions?: ClientsClient.RequestOptions): core.HttpResponsePromise<Management.UpdateOrganizationClientResponseContent>;
118
+ private __update;
119
+ }