auth0 5.2.0 → 5.3.1

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 (165) hide show
  1. package/LICENSE +1 -1
  2. package/dist/cjs/management/Client.d.ts +3 -0
  3. package/dist/cjs/management/Client.js +59 -54
  4. package/dist/cjs/management/api/errors/PreconditionFailedError.d.ts +5 -0
  5. package/dist/cjs/management/api/errors/PreconditionFailedError.js +54 -0
  6. package/dist/cjs/management/api/errors/index.d.ts +1 -0
  7. package/dist/cjs/management/api/errors/index.js +1 -0
  8. package/dist/cjs/management/api/requests/requests.d.ts +212 -134
  9. package/dist/cjs/management/api/requests/requests.js +0 -108
  10. package/dist/cjs/management/api/resources/actions/client/Client.d.ts +3 -0
  11. package/dist/cjs/management/api/resources/actions/client/Client.js +9 -4
  12. package/dist/cjs/management/api/resources/actions/resources/index.d.ts +1 -0
  13. package/dist/cjs/management/api/resources/actions/resources/index.js +2 -1
  14. package/dist/cjs/management/api/resources/actions/resources/modules/client/Client.d.ts +149 -0
  15. package/dist/cjs/management/api/resources/actions/resources/modules/client/Client.js +569 -0
  16. package/dist/cjs/management/api/resources/actions/resources/modules/client/index.d.ts +1 -0
  17. package/dist/cjs/management/api/resources/actions/resources/modules/client/index.js +2 -0
  18. package/dist/cjs/management/api/resources/actions/resources/modules/index.d.ts +2 -0
  19. package/dist/cjs/management/api/resources/actions/resources/modules/index.js +18 -0
  20. package/dist/cjs/management/api/resources/actions/resources/modules/resources/index.d.ts +1 -0
  21. package/dist/cjs/management/api/resources/actions/resources/modules/resources/index.js +37 -0
  22. package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/Client.d.ts +69 -0
  23. package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/Client.js +275 -0
  24. package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/index.d.ts +1 -0
  25. package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/index.js +2 -0
  26. package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/index.d.ts +1 -0
  27. package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/index.js +17 -0
  28. package/dist/cjs/management/api/resources/actions/resources/versions/client/Client.d.ts +2 -2
  29. package/dist/cjs/management/api/resources/actions/resources/versions/client/Client.js +1 -1
  30. package/dist/cjs/management/api/resources/clientGrants/client/Client.d.ts +17 -0
  31. package/dist/cjs/management/api/resources/clientGrants/client/Client.js +61 -0
  32. package/dist/cjs/management/api/resources/connections/client/Client.d.ts +7 -3
  33. package/dist/cjs/management/api/resources/connections/client/Client.js +9 -5
  34. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.ts +18 -0
  35. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.js +80 -0
  36. package/dist/cjs/management/api/resources/deviceCredentials/client/Client.d.ts +1 -0
  37. package/dist/cjs/management/api/resources/deviceCredentials/client/Client.js +2 -1
  38. package/dist/cjs/management/api/resources/eventStreams/client/Client.d.ts +1 -2
  39. package/dist/cjs/management/api/resources/eventStreams/client/Client.js +59 -50
  40. package/dist/cjs/management/api/resources/flows/client/Client.d.ts +2 -2
  41. package/dist/cjs/management/api/resources/flows/client/Client.js +1 -1
  42. package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.d.ts +4 -4
  43. package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.js +2 -2
  44. package/dist/cjs/management/api/resources/groups/client/Client.d.ts +56 -0
  45. package/dist/cjs/management/api/resources/groups/client/Client.js +224 -0
  46. package/dist/cjs/management/api/resources/groups/client/index.d.ts +1 -0
  47. package/dist/cjs/management/api/resources/groups/client/index.js +2 -0
  48. package/dist/cjs/management/api/resources/groups/index.d.ts +2 -0
  49. package/dist/cjs/management/api/resources/groups/index.js +18 -0
  50. package/dist/cjs/management/api/resources/groups/resources/index.d.ts +1 -0
  51. package/dist/cjs/management/api/resources/groups/resources/index.js +37 -0
  52. package/dist/cjs/management/api/resources/groups/resources/members/client/Client.d.ts +34 -0
  53. package/dist/cjs/management/api/resources/groups/resources/members/client/Client.js +148 -0
  54. package/dist/cjs/management/api/resources/groups/resources/members/client/index.d.ts +1 -0
  55. package/dist/cjs/management/api/resources/groups/resources/members/client/index.js +2 -0
  56. package/dist/cjs/management/api/resources/groups/resources/members/index.d.ts +1 -0
  57. package/dist/cjs/management/api/resources/groups/resources/members/index.js +17 -0
  58. package/dist/cjs/management/api/resources/index.d.ts +1 -0
  59. package/dist/cjs/management/api/resources/index.js +2 -1
  60. package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.d.ts +20 -1
  61. package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.js +66 -1
  62. package/dist/cjs/management/api/resources/prompts/resources/rendering/client/Client.d.ts +1 -1
  63. package/dist/cjs/management/api/resources/refreshTokens/client/Client.d.ts +18 -0
  64. package/dist/cjs/management/api/resources/refreshTokens/client/Client.js +67 -0
  65. package/dist/cjs/management/api/resources/roles/client/Client.d.ts +1 -0
  66. package/dist/cjs/management/api/resources/roles/client/Client.js +3 -0
  67. package/dist/cjs/management/api/resources/tokenExchangeProfiles/client/Client.d.ts +2 -1
  68. package/dist/cjs/management/api/resources/tokenExchangeProfiles/client/Client.js +3 -2
  69. package/dist/cjs/management/api/resources/users/client/Client.d.ts +3 -0
  70. package/dist/cjs/management/api/resources/users/client/Client.js +23 -18
  71. package/dist/cjs/management/api/resources/users/resources/groups/client/Client.d.ts +34 -0
  72. package/dist/cjs/management/api/resources/users/resources/groups/client/Client.js +148 -0
  73. package/dist/cjs/management/api/resources/users/resources/groups/client/index.d.ts +1 -0
  74. package/dist/cjs/management/api/resources/users/resources/groups/client/index.js +2 -0
  75. package/dist/cjs/management/api/resources/users/resources/groups/index.d.ts +1 -0
  76. package/dist/cjs/management/api/resources/users/resources/groups/index.js +17 -0
  77. package/dist/cjs/management/api/resources/users/resources/index.d.ts +1 -0
  78. package/dist/cjs/management/api/resources/users/resources/index.js +2 -1
  79. package/dist/cjs/management/api/types/types.d.ts +5277 -1396
  80. package/dist/cjs/management/api/types/types.js +2143 -442
  81. package/dist/cjs/management/version.d.ts +1 -1
  82. package/dist/cjs/management/version.js +1 -1
  83. package/dist/esm/management/Client.d.mts +3 -0
  84. package/dist/esm/management/Client.mjs +5 -0
  85. package/dist/esm/management/api/errors/PreconditionFailedError.d.mts +5 -0
  86. package/dist/esm/management/api/errors/PreconditionFailedError.mjs +17 -0
  87. package/dist/esm/management/api/errors/index.d.mts +1 -0
  88. package/dist/esm/management/api/errors/index.mjs +1 -0
  89. package/dist/esm/management/api/requests/requests.d.mts +212 -134
  90. package/dist/esm/management/api/requests/requests.mjs +1 -107
  91. package/dist/esm/management/api/resources/actions/client/Client.d.mts +3 -0
  92. package/dist/esm/management/api/resources/actions/client/Client.mjs +5 -0
  93. package/dist/esm/management/api/resources/actions/resources/index.d.mts +1 -0
  94. package/dist/esm/management/api/resources/actions/resources/index.mjs +1 -0
  95. package/dist/esm/management/api/resources/actions/resources/modules/client/Client.d.mts +149 -0
  96. package/dist/esm/management/api/resources/actions/resources/modules/client/Client.mjs +532 -0
  97. package/dist/esm/management/api/resources/actions/resources/modules/client/index.d.mts +1 -0
  98. package/dist/esm/management/api/resources/actions/resources/modules/client/index.mjs +1 -0
  99. package/dist/esm/management/api/resources/actions/resources/modules/index.d.mts +2 -0
  100. package/dist/esm/management/api/resources/actions/resources/modules/index.mjs +2 -0
  101. package/dist/esm/management/api/resources/actions/resources/modules/resources/index.d.mts +1 -0
  102. package/dist/esm/management/api/resources/actions/resources/modules/resources/index.mjs +1 -0
  103. package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/Client.d.mts +69 -0
  104. package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/Client.mjs +238 -0
  105. package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/index.d.mts +1 -0
  106. package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/index.mjs +1 -0
  107. package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/index.d.mts +1 -0
  108. package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/index.mjs +1 -0
  109. package/dist/esm/management/api/resources/actions/resources/versions/client/Client.d.mts +2 -2
  110. package/dist/esm/management/api/resources/actions/resources/versions/client/Client.mjs +1 -1
  111. package/dist/esm/management/api/resources/clientGrants/client/Client.d.mts +17 -0
  112. package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +61 -0
  113. package/dist/esm/management/api/resources/connections/client/Client.d.mts +7 -3
  114. package/dist/esm/management/api/resources/connections/client/Client.mjs +9 -5
  115. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.mts +18 -0
  116. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.mjs +80 -0
  117. package/dist/esm/management/api/resources/deviceCredentials/client/Client.d.mts +1 -0
  118. package/dist/esm/management/api/resources/deviceCredentials/client/Client.mjs +2 -1
  119. package/dist/esm/management/api/resources/eventStreams/client/Client.d.mts +1 -2
  120. package/dist/esm/management/api/resources/eventStreams/client/Client.mjs +59 -50
  121. package/dist/esm/management/api/resources/flows/client/Client.d.mts +2 -2
  122. package/dist/esm/management/api/resources/flows/client/Client.mjs +1 -1
  123. package/dist/esm/management/api/resources/flows/resources/executions/client/Client.d.mts +4 -4
  124. package/dist/esm/management/api/resources/flows/resources/executions/client/Client.mjs +2 -2
  125. package/dist/esm/management/api/resources/groups/client/Client.d.mts +56 -0
  126. package/dist/esm/management/api/resources/groups/client/Client.mjs +187 -0
  127. package/dist/esm/management/api/resources/groups/client/index.d.mts +1 -0
  128. package/dist/esm/management/api/resources/groups/client/index.mjs +1 -0
  129. package/dist/esm/management/api/resources/groups/index.d.mts +2 -0
  130. package/dist/esm/management/api/resources/groups/index.mjs +2 -0
  131. package/dist/esm/management/api/resources/groups/resources/index.d.mts +1 -0
  132. package/dist/esm/management/api/resources/groups/resources/index.mjs +1 -0
  133. package/dist/esm/management/api/resources/groups/resources/members/client/Client.d.mts +34 -0
  134. package/dist/esm/management/api/resources/groups/resources/members/client/Client.mjs +111 -0
  135. package/dist/esm/management/api/resources/groups/resources/members/client/index.d.mts +1 -0
  136. package/dist/esm/management/api/resources/groups/resources/members/client/index.mjs +1 -0
  137. package/dist/esm/management/api/resources/groups/resources/members/index.d.mts +1 -0
  138. package/dist/esm/management/api/resources/groups/resources/members/index.mjs +1 -0
  139. package/dist/esm/management/api/resources/index.d.mts +1 -0
  140. package/dist/esm/management/api/resources/index.mjs +1 -0
  141. package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.d.mts +20 -1
  142. package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.mjs +66 -1
  143. package/dist/esm/management/api/resources/prompts/resources/rendering/client/Client.d.mts +1 -1
  144. package/dist/esm/management/api/resources/refreshTokens/client/Client.d.mts +18 -0
  145. package/dist/esm/management/api/resources/refreshTokens/client/Client.mjs +67 -0
  146. package/dist/esm/management/api/resources/roles/client/Client.d.mts +1 -0
  147. package/dist/esm/management/api/resources/roles/client/Client.mjs +3 -0
  148. package/dist/esm/management/api/resources/tokenExchangeProfiles/client/Client.d.mts +2 -1
  149. package/dist/esm/management/api/resources/tokenExchangeProfiles/client/Client.mjs +3 -2
  150. package/dist/esm/management/api/resources/users/client/Client.d.mts +3 -0
  151. package/dist/esm/management/api/resources/users/client/Client.mjs +5 -0
  152. package/dist/esm/management/api/resources/users/resources/groups/client/Client.d.mts +34 -0
  153. package/dist/esm/management/api/resources/users/resources/groups/client/Client.mjs +111 -0
  154. package/dist/esm/management/api/resources/users/resources/groups/client/index.d.mts +1 -0
  155. package/dist/esm/management/api/resources/users/resources/groups/client/index.mjs +1 -0
  156. package/dist/esm/management/api/resources/users/resources/groups/index.d.mts +1 -0
  157. package/dist/esm/management/api/resources/users/resources/groups/index.mjs +1 -0
  158. package/dist/esm/management/api/resources/users/resources/index.d.mts +1 -0
  159. package/dist/esm/management/api/resources/users/resources/index.mjs +1 -0
  160. package/dist/esm/management/api/types/types.d.mts +5277 -1396
  161. package/dist/esm/management/api/types/types.mjs +2133 -438
  162. package/dist/esm/management/version.d.mts +1 -1
  163. package/dist/esm/management/version.mjs +1 -1
  164. package/package.json +1 -1
  165. package/reference.md +1572 -185
@@ -0,0 +1,238 @@
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 VersionsClient {
19
+ constructor(options) {
20
+ this._options = normalizeClientOptionsWithAuth(options);
21
+ }
22
+ /**
23
+ * List all published versions of a specific Actions Module.
24
+ *
25
+ * @param {string} id - The unique ID of the module.
26
+ * @param {Management.GetActionModuleVersionsRequestParameters} request
27
+ * @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
28
+ *
29
+ * @throws {@link Management.BadRequestError}
30
+ * @throws {@link Management.UnauthorizedError}
31
+ * @throws {@link Management.ForbiddenError}
32
+ * @throws {@link Management.NotFoundError}
33
+ * @throws {@link Management.TooManyRequestsError}
34
+ *
35
+ * @example
36
+ * await client.actions.modules.versions.list("id", {
37
+ * page: 1,
38
+ * per_page: 1
39
+ * })
40
+ */
41
+ list(id_1) {
42
+ return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
43
+ const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
44
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
45
+ const { page = 0, per_page: perPage = 50 } = request;
46
+ const _queryParams = {};
47
+ if (page !== undefined) {
48
+ _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
49
+ }
50
+ if (perPage !== undefined) {
51
+ _queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
52
+ }
53
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
54
+ let _headers = mergeHeaders(_authRequest.headers, (_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
55
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
56
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ManagementEnvironment.Default, `actions/modules/${core.url.encodePathParam(id)}/versions`),
57
+ method: "GET",
58
+ headers: _headers,
59
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
60
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
61
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
62
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
63
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
64
+ logging: this._options.logging,
65
+ });
66
+ if (_response.ok) {
67
+ return {
68
+ data: _response.body,
69
+ rawResponse: _response.rawResponse,
70
+ };
71
+ }
72
+ if (_response.error.reason === "status-code") {
73
+ switch (_response.error.statusCode) {
74
+ case 400:
75
+ throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
76
+ case 401:
77
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
78
+ case 403:
79
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
80
+ case 404:
81
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
82
+ case 429:
83
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
84
+ default:
85
+ throw new errors.ManagementError({
86
+ statusCode: _response.error.statusCode,
87
+ body: _response.error.body,
88
+ rawResponse: _response.rawResponse,
89
+ });
90
+ }
91
+ }
92
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/actions/modules/{id}/versions");
93
+ }));
94
+ let _offset = (request === null || request === void 0 ? void 0 : request.page) != null ? request === null || request === void 0 ? void 0 : request.page : 0;
95
+ const dataWithRawResponse = yield list(request).withRawResponse();
96
+ return new core.Page({
97
+ response: dataWithRawResponse.data,
98
+ rawResponse: dataWithRawResponse.rawResponse,
99
+ hasNextPage: (response) => { var _a, _b; return ((_a = response === null || response === void 0 ? void 0 : response.versions) !== null && _a !== void 0 ? _a : []).length >= Math.floor((_b = request === null || request === void 0 ? void 0 : request.per_page) !== null && _b !== void 0 ? _b : 50); },
100
+ getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.versions) !== null && _a !== void 0 ? _a : []; },
101
+ loadPage: (_response) => {
102
+ _offset += 1;
103
+ return list(core.setObjectProperty(request, "page", _offset));
104
+ },
105
+ });
106
+ });
107
+ }
108
+ /**
109
+ * Creates a new immutable version of an Actions Module from the current draft version. This publishes the draft as a new version that can be referenced by actions, while maintaining the existing draft for continued development.
110
+ *
111
+ * @param {string} id - The ID of the action module to create a version for.
112
+ * @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
113
+ *
114
+ * @throws {@link Management.BadRequestError}
115
+ * @throws {@link Management.UnauthorizedError}
116
+ * @throws {@link Management.ForbiddenError}
117
+ * @throws {@link Management.NotFoundError}
118
+ * @throws {@link Management.ConflictError}
119
+ * @throws {@link Management.PreconditionFailedError}
120
+ *
121
+ * @example
122
+ * await client.actions.modules.versions.create("id")
123
+ */
124
+ create(id, requestOptions) {
125
+ return core.HttpResponsePromise.fromPromise(this.__create(id, requestOptions));
126
+ }
127
+ __create(id, requestOptions) {
128
+ return __awaiter(this, void 0, void 0, function* () {
129
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
130
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
131
+ 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);
132
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
133
+ 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, `actions/modules/${core.url.encodePathParam(id)}/versions`),
134
+ method: "POST",
135
+ headers: _headers,
136
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
137
+ 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,
138
+ 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,
139
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
140
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
141
+ logging: this._options.logging,
142
+ });
143
+ if (_response.ok) {
144
+ return {
145
+ data: _response.body,
146
+ rawResponse: _response.rawResponse,
147
+ };
148
+ }
149
+ if (_response.error.reason === "status-code") {
150
+ switch (_response.error.statusCode) {
151
+ case 400:
152
+ throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
153
+ case 401:
154
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
155
+ case 403:
156
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
157
+ case 404:
158
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
159
+ case 409:
160
+ throw new Management.ConflictError(_response.error.body, _response.rawResponse);
161
+ case 412:
162
+ throw new Management.PreconditionFailedError(_response.error.body, _response.rawResponse);
163
+ default:
164
+ throw new errors.ManagementError({
165
+ statusCode: _response.error.statusCode,
166
+ body: _response.error.body,
167
+ rawResponse: _response.rawResponse,
168
+ });
169
+ }
170
+ }
171
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/actions/modules/{id}/versions");
172
+ });
173
+ }
174
+ /**
175
+ * Retrieve the details of a specific, immutable version of an Actions Module.
176
+ *
177
+ * @param {string} id - The unique ID of the module.
178
+ * @param {string} versionId - The unique ID of the module version to retrieve.
179
+ * @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
180
+ *
181
+ * @throws {@link Management.BadRequestError}
182
+ * @throws {@link Management.UnauthorizedError}
183
+ * @throws {@link Management.ForbiddenError}
184
+ * @throws {@link Management.NotFoundError}
185
+ * @throws {@link Management.TooManyRequestsError}
186
+ *
187
+ * @example
188
+ * await client.actions.modules.versions.get("id", "versionId")
189
+ */
190
+ get(id, versionId, requestOptions) {
191
+ return core.HttpResponsePromise.fromPromise(this.__get(id, versionId, requestOptions));
192
+ }
193
+ __get(id, versionId, requestOptions) {
194
+ return __awaiter(this, void 0, void 0, function* () {
195
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
196
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
197
+ 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);
198
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
199
+ 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, `actions/modules/${core.url.encodePathParam(id)}/versions/${core.url.encodePathParam(versionId)}`),
200
+ method: "GET",
201
+ headers: _headers,
202
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
203
+ 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,
204
+ 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,
205
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
206
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
207
+ logging: this._options.logging,
208
+ });
209
+ if (_response.ok) {
210
+ return {
211
+ data: _response.body,
212
+ rawResponse: _response.rawResponse,
213
+ };
214
+ }
215
+ if (_response.error.reason === "status-code") {
216
+ switch (_response.error.statusCode) {
217
+ case 400:
218
+ throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
219
+ case 401:
220
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
221
+ case 403:
222
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
223
+ case 404:
224
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
225
+ case 429:
226
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
227
+ default:
228
+ throw new errors.ManagementError({
229
+ statusCode: _response.error.statusCode,
230
+ body: _response.error.body,
231
+ rawResponse: _response.rawResponse,
232
+ });
233
+ }
234
+ }
235
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/actions/modules/{id}/versions/{versionId}");
236
+ });
237
+ }
238
+ }
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -52,7 +52,7 @@ export declare class VersionsClient {
52
52
  *
53
53
  * @param {string} actionId - The ID of an action.
54
54
  * @param {string} id - The ID of an action version.
55
- * @param {Management.DeployActionVersionRequestContent | undefined} request
55
+ * @param {Management.DeployActionVersionRequestContent | null} request
56
56
  * @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
57
57
  *
58
58
  * @throws {@link Management.BadRequestError}
@@ -63,6 +63,6 @@ export declare class VersionsClient {
63
63
  * @example
64
64
  * await client.actions.versions.deploy("actionId", "id")
65
65
  */
66
- deploy(actionId: string, id: string, request?: Management.DeployActionVersionRequestContent | undefined, requestOptions?: VersionsClient.RequestOptions): core.HttpResponsePromise<Management.DeployActionVersionResponseContent>;
66
+ deploy(actionId: string, id: string, request?: Management.DeployActionVersionRequestContent | null, requestOptions?: VersionsClient.RequestOptions): core.HttpResponsePromise<Management.DeployActionVersionResponseContent>;
67
67
  private __deploy;
68
68
  }
@@ -171,7 +171,7 @@ export class VersionsClient {
171
171
  *
172
172
  * @param {string} actionId - The ID of an action.
173
173
  * @param {string} id - The ID of an action version.
174
- * @param {Management.DeployActionVersionRequestContent | undefined} request
174
+ * @param {Management.DeployActionVersionRequestContent | null} request
175
175
  * @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
176
176
  *
177
177
  * @throws {@link Management.BadRequestError}
@@ -55,6 +55,23 @@ export declare class ClientGrantsClient {
55
55
  */
56
56
  create(request: Management.CreateClientGrantRequestContent, requestOptions?: ClientGrantsClient.RequestOptions): core.HttpResponsePromise<Management.CreateClientGrantResponseContent>;
57
57
  private __create;
58
+ /**
59
+ * Retrieve a single <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grant</a>, including the
60
+ * scopes associated with the application/API pair.
61
+ *
62
+ * @param {string} id - The ID of the client grant to retrieve.
63
+ * @param {ClientGrantsClient.RequestOptions} requestOptions - Request-specific configuration.
64
+ *
65
+ * @throws {@link Management.UnauthorizedError}
66
+ * @throws {@link Management.ForbiddenError}
67
+ * @throws {@link Management.NotFoundError}
68
+ * @throws {@link Management.TooManyRequestsError}
69
+ *
70
+ * @example
71
+ * await client.clientGrants.get("id")
72
+ */
73
+ get(id: string, requestOptions?: ClientGrantsClient.RequestOptions): core.HttpResponsePromise<Management.GetClientGrantResponseContent>;
74
+ private __get;
58
75
  /**
59
76
  * Delete the <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a> from your machine-to-machine application.
60
77
  *
@@ -189,6 +189,67 @@ export class ClientGrantsClient {
189
189
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/client-grants");
190
190
  });
191
191
  }
192
+ /**
193
+ * Retrieve a single <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grant</a>, including the
194
+ * scopes associated with the application/API pair.
195
+ *
196
+ * @param {string} id - The ID of the client grant to retrieve.
197
+ * @param {ClientGrantsClient.RequestOptions} requestOptions - Request-specific configuration.
198
+ *
199
+ * @throws {@link Management.UnauthorizedError}
200
+ * @throws {@link Management.ForbiddenError}
201
+ * @throws {@link Management.NotFoundError}
202
+ * @throws {@link Management.TooManyRequestsError}
203
+ *
204
+ * @example
205
+ * await client.clientGrants.get("id")
206
+ */
207
+ get(id, requestOptions) {
208
+ return core.HttpResponsePromise.fromPromise(this.__get(id, requestOptions));
209
+ }
210
+ __get(id, requestOptions) {
211
+ return __awaiter(this, void 0, void 0, function* () {
212
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
213
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
214
+ 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);
215
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
216
+ 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, `client-grants/${core.url.encodePathParam(id)}`),
217
+ method: "GET",
218
+ headers: _headers,
219
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
220
+ 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,
221
+ 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,
222
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
223
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
224
+ logging: this._options.logging,
225
+ });
226
+ if (_response.ok) {
227
+ return {
228
+ data: _response.body,
229
+ rawResponse: _response.rawResponse,
230
+ };
231
+ }
232
+ if (_response.error.reason === "status-code") {
233
+ switch (_response.error.statusCode) {
234
+ case 401:
235
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
236
+ case 403:
237
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
238
+ case 404:
239
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
240
+ case 429:
241
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
242
+ default:
243
+ throw new errors.ManagementError({
244
+ statusCode: _response.error.statusCode,
245
+ body: _response.error.body,
246
+ rawResponse: _response.rawResponse,
247
+ });
248
+ }
249
+ }
250
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/client-grants/{id}");
251
+ });
252
+ }
192
253
  /**
193
254
  * Delete the <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a> from your machine-to-machine application.
194
255
  *
@@ -14,14 +14,14 @@ export declare namespace ConnectionsClient {
14
14
  }
15
15
  export declare class ConnectionsClient {
16
16
  protected readonly _options: NormalizedClientOptionsWithAuth<ConnectionsClient.Options>;
17
- protected _clients: ClientsClient | undefined;
18
17
  protected _directoryProvisioning: DirectoryProvisioningClient | undefined;
18
+ protected _clients: ClientsClient | undefined;
19
19
  protected _keys: KeysClient | undefined;
20
20
  protected _scimConfiguration: ScimConfigurationClient | undefined;
21
21
  protected _users: UsersClient | undefined;
22
22
  constructor(options: ConnectionsClient.Options);
23
- get clients(): ClientsClient;
24
23
  get directoryProvisioning(): DirectoryProvisioningClient;
24
+ get clients(): ClientsClient;
25
25
  get keys(): KeysClient;
26
26
  get scimConfiguration(): ScimConfigurationClient;
27
27
  get users(): UsersClient;
@@ -65,7 +65,9 @@ export declare class ConnectionsClient {
65
65
  */
66
66
  list(request?: Management.ListConnectionsQueryParameters, requestOptions?: ConnectionsClient.RequestOptions): Promise<core.Page<Management.ConnectionForList, Management.ListConnectionsCheckpointPaginatedResponseContent>>;
67
67
  /**
68
- * Creates a new connection according to the JSON object received in <code>body</code>.<br/>
68
+ * Creates a new connection according to the JSON object received in <code>body</code>.
69
+ *
70
+ * <b>Note:</b> If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.
69
71
  *
70
72
  * @param {Management.CreateConnectionRequestContent} request
71
73
  * @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -108,6 +110,8 @@ export declare class ConnectionsClient {
108
110
  /**
109
111
  * Removes a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate.
110
112
  *
113
+ * <b>Note:</b> If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent <a href="https://auth0.com/docs/api/management/v2/connections/post-connections">create connection</a> requests, if they use an identical connection name.
114
+ *
111
115
  * @param {string} id - The id of the connection to delete
112
116
  * @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
113
117
  *
@@ -24,14 +24,14 @@ export class ConnectionsClient {
24
24
  constructor(options) {
25
25
  this._options = normalizeClientOptionsWithAuth(options);
26
26
  }
27
- get clients() {
28
- var _a;
29
- return ((_a = this._clients) !== null && _a !== void 0 ? _a : (this._clients = new ClientsClient(this._options)));
30
- }
31
27
  get directoryProvisioning() {
32
28
  var _a;
33
29
  return ((_a = this._directoryProvisioning) !== null && _a !== void 0 ? _a : (this._directoryProvisioning = new DirectoryProvisioningClient(this._options)));
34
30
  }
31
+ get clients() {
32
+ var _a;
33
+ return ((_a = this._clients) !== null && _a !== void 0 ? _a : (this._clients = new ClientsClient(this._options)));
34
+ }
35
35
  get keys() {
36
36
  var _a;
37
37
  return ((_a = this._keys) !== null && _a !== void 0 ? _a : (this._keys = new KeysClient(this._options)));
@@ -163,7 +163,9 @@ export class ConnectionsClient {
163
163
  });
164
164
  }
165
165
  /**
166
- * Creates a new connection according to the JSON object received in <code>body</code>.<br/>
166
+ * Creates a new connection according to the JSON object received in <code>body</code>.
167
+ *
168
+ * <b>Note:</b> If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.
167
169
  *
168
170
  * @param {Management.CreateConnectionRequestContent} request
169
171
  * @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -309,6 +311,8 @@ export class ConnectionsClient {
309
311
  /**
310
312
  * Removes a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate.
311
313
  *
314
+ * <b>Note:</b> If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent <a href="https://auth0.com/docs/api/management/v2/connections/post-connections">create connection</a> requests, if they use an identical connection name.
315
+ *
312
316
  * @param {string} id - The id of the connection to delete
313
317
  * @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
314
318
  *
@@ -13,6 +13,24 @@ export declare class DirectoryProvisioningClient {
13
13
  protected _synchronizations: SynchronizationsClient | undefined;
14
14
  constructor(options: DirectoryProvisioningClient.Options);
15
15
  get synchronizations(): SynchronizationsClient;
16
+ /**
17
+ * Retrieve a list of directory provisioning configurations of a tenant.
18
+ *
19
+ * @param {Management.ListDirectoryProvisioningsRequestParameters} request
20
+ * @param {DirectoryProvisioningClient.RequestOptions} requestOptions - Request-specific configuration.
21
+ *
22
+ * @throws {@link Management.BadRequestError}
23
+ * @throws {@link Management.UnauthorizedError}
24
+ * @throws {@link Management.ForbiddenError}
25
+ * @throws {@link Management.TooManyRequestsError}
26
+ *
27
+ * @example
28
+ * await client.connections.directoryProvisioning.list({
29
+ * from: "from",
30
+ * take: 1
31
+ * })
32
+ */
33
+ list(request?: Management.ListDirectoryProvisioningsRequestParameters, requestOptions?: DirectoryProvisioningClient.RequestOptions): Promise<core.Page<Management.DirectoryProvisioning, Management.ListDirectoryProvisioningsResponseContent>>;
16
34
  /**
17
35
  * Retrieve the directory provisioning configuration of a connection.
18
36
  *
@@ -24,6 +24,86 @@ export class DirectoryProvisioningClient {
24
24
  var _a;
25
25
  return ((_a = this._synchronizations) !== null && _a !== void 0 ? _a : (this._synchronizations = new SynchronizationsClient(this._options)));
26
26
  }
27
+ /**
28
+ * Retrieve a list of directory provisioning configurations of a tenant.
29
+ *
30
+ * @param {Management.ListDirectoryProvisioningsRequestParameters} request
31
+ * @param {DirectoryProvisioningClient.RequestOptions} requestOptions - Request-specific configuration.
32
+ *
33
+ * @throws {@link Management.BadRequestError}
34
+ * @throws {@link Management.UnauthorizedError}
35
+ * @throws {@link Management.ForbiddenError}
36
+ * @throws {@link Management.TooManyRequestsError}
37
+ *
38
+ * @example
39
+ * await client.connections.directoryProvisioning.list({
40
+ * from: "from",
41
+ * take: 1
42
+ * })
43
+ */
44
+ list() {
45
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
46
+ const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
47
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
48
+ const { from: from_, take = 50 } = request;
49
+ const _queryParams = {};
50
+ if (from_ !== undefined) {
51
+ _queryParams["from"] = from_;
52
+ }
53
+ if (take !== undefined) {
54
+ _queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
55
+ }
56
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
57
+ let _headers = mergeHeaders(_authRequest.headers, (_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
58
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
59
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ManagementEnvironment.Default, "connections-directory-provisionings"),
60
+ method: "GET",
61
+ headers: _headers,
62
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
63
+ timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
64
+ maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
65
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
66
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
67
+ logging: this._options.logging,
68
+ });
69
+ if (_response.ok) {
70
+ return {
71
+ data: _response.body,
72
+ rawResponse: _response.rawResponse,
73
+ };
74
+ }
75
+ if (_response.error.reason === "status-code") {
76
+ switch (_response.error.statusCode) {
77
+ case 400:
78
+ throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
79
+ case 401:
80
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
81
+ case 403:
82
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
83
+ case 429:
84
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
85
+ default:
86
+ throw new errors.ManagementError({
87
+ statusCode: _response.error.statusCode,
88
+ body: _response.error.body,
89
+ rawResponse: _response.rawResponse,
90
+ });
91
+ }
92
+ }
93
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/connections-directory-provisionings");
94
+ }));
95
+ const dataWithRawResponse = yield list(request).withRawResponse();
96
+ return new core.Page({
97
+ response: dataWithRawResponse.data,
98
+ rawResponse: dataWithRawResponse.rawResponse,
99
+ 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) === ""),
100
+ getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.directory_provisionings) !== null && _a !== void 0 ? _a : []; },
101
+ loadPage: (response) => {
102
+ return list(core.setObjectProperty(request, "from", response === null || response === void 0 ? void 0 : response.next));
103
+ },
104
+ });
105
+ });
106
+ }
27
107
  /**
28
108
  * Retrieve the directory provisioning configuration of a connection.
29
109
  *
@@ -51,6 +51,7 @@ export declare class DeviceCredentialsClient {
51
51
  * @example
52
52
  * await client.deviceCredentials.createPublicKey({
53
53
  * device_name: "device_name",
54
+ * type: "public_key",
54
55
  * value: "value",
55
56
  * device_id: "device_id"
56
57
  * })
@@ -142,6 +142,7 @@ export class DeviceCredentialsClient {
142
142
  * @example
143
143
  * await client.deviceCredentials.createPublicKey({
144
144
  * device_name: "device_name",
145
+ * type: "public_key",
145
146
  * value: "value",
146
147
  * device_id: "device_id"
147
148
  * })
@@ -161,7 +162,7 @@ export class DeviceCredentialsClient {
161
162
  contentType: "application/json",
162
163
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
163
164
  requestType: "json",
164
- body: Object.assign(Object.assign({}, request), { type: "public_key" }),
165
+ body: request,
165
166
  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,
166
167
  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,
167
168
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -31,8 +31,7 @@ export declare class EventStreamsClient {
31
31
  * take: 1
32
32
  * })
33
33
  */
34
- list(request?: Management.ListEventStreamsRequestParameters, requestOptions?: EventStreamsClient.RequestOptions): core.HttpResponsePromise<Management.EventStreamResponseContent[]>;
35
- private __list;
34
+ list(request?: Management.ListEventStreamsRequestParameters, requestOptions?: EventStreamsClient.RequestOptions): Promise<core.Page<Management.EventStreamResponseContent, Management.ListEventStreamsResponseContent>>;
36
35
  /**
37
36
  * @param {Management.EventStreamsCreateRequest} request
38
37
  * @param {EventStreamsClient.RequestOptions} requestOptions - Request-specific configuration.