auth0 5.3.1 → 5.5.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 (176) hide show
  1. package/dist/cjs/management/BaseClient.d.ts +4 -4
  2. package/dist/cjs/management/api/requests/requests.d.ts +37 -8
  3. package/dist/cjs/management/api/resources/actions/client/Client.js +25 -37
  4. package/dist/cjs/management/api/resources/actions/resources/modules/client/Client.js +22 -28
  5. package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/Client.js +11 -14
  6. package/dist/cjs/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.js +11 -14
  7. package/dist/cjs/management/api/resources/actions/resources/versions/client/Client.js +12 -15
  8. package/dist/cjs/management/api/resources/branding/resources/phone/resources/providers/client/Client.js +10 -11
  9. package/dist/cjs/management/api/resources/branding/resources/phone/resources/templates/client/Client.js +10 -11
  10. package/dist/cjs/management/api/resources/clientGrants/client/Client.js +15 -26
  11. package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.js +11 -14
  12. package/dist/cjs/management/api/resources/clients/client/Client.js +29 -49
  13. package/dist/cjs/management/api/resources/clients/resources/connections/client/Client.js +18 -28
  14. package/dist/cjs/management/api/resources/connectionProfiles/client/Client.js +11 -14
  15. package/dist/cjs/management/api/resources/connections/client/Client.d.ts +2 -2
  16. package/dist/cjs/management/api/resources/connections/client/Client.js +34 -49
  17. package/dist/cjs/management/api/resources/connections/resources/clients/client/Client.js +11 -14
  18. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.js +13 -16
  19. package/dist/cjs/management/api/resources/connections/resources/keys/client/Client.d.ts +19 -0
  20. package/dist/cjs/management/api/resources/connections/resources/keys/client/Client.js +71 -1
  21. package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/client/Client.d.ts +18 -0
  22. package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/client/Client.js +78 -1
  23. package/dist/cjs/management/api/resources/connections/resources/users/client/Client.js +3 -2
  24. package/dist/cjs/management/api/resources/customDomains/client/Client.js +13 -20
  25. package/dist/cjs/management/api/resources/deviceCredentials/client/Client.js +17 -32
  26. package/dist/cjs/management/api/resources/emails/resources/provider/client/Client.js +11 -14
  27. package/dist/cjs/management/api/resources/eventStreams/client/Client.js +11 -14
  28. package/dist/cjs/management/api/resources/eventStreams/resources/deliveries/client/Client.js +15 -26
  29. package/dist/cjs/management/api/resources/flows/client/Client.js +21 -37
  30. package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.js +14 -23
  31. package/dist/cjs/management/api/resources/flows/resources/vault/resources/connections/client/Client.js +12 -17
  32. package/dist/cjs/management/api/resources/forms/client/Client.js +20 -34
  33. package/dist/cjs/management/api/resources/groups/client/Client.js +16 -29
  34. package/dist/cjs/management/api/resources/groups/resources/members/client/Client.js +13 -20
  35. package/dist/cjs/management/api/resources/hooks/client/Client.js +18 -30
  36. package/dist/cjs/management/api/resources/jobs/resources/usersImports/client/Client.js +14 -14
  37. package/dist/cjs/management/api/resources/keys/resources/encryption/client/Client.js +12 -17
  38. package/dist/cjs/management/api/resources/logs/client/Client.js +16 -29
  39. package/dist/cjs/management/api/resources/networkAcls/client/Client.js +12 -17
  40. package/dist/cjs/management/api/resources/organizations/client/Client.js +12 -17
  41. package/dist/cjs/management/api/resources/organizations/resources/clientGrants/client/Client.js +15 -31
  42. package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.js +11 -14
  43. package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.js +12 -17
  44. package/dist/cjs/management/api/resources/organizations/resources/invitations/client/Client.js +26 -40
  45. package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.js +13 -20
  46. package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.js +12 -17
  47. package/dist/cjs/management/api/resources/prompts/resources/rendering/client/Client.js +17 -32
  48. package/dist/cjs/management/api/resources/resourceServers/client/Client.js +24 -39
  49. package/dist/cjs/management/api/resources/roles/client/Client.js +13 -20
  50. package/dist/cjs/management/api/resources/roles/resources/permissions/client/Client.js +12 -17
  51. package/dist/cjs/management/api/resources/roles/resources/users/client/Client.js +11 -14
  52. package/dist/cjs/management/api/resources/rules/client/Client.js +26 -40
  53. package/dist/cjs/management/api/resources/selfServiceProfiles/client/Client.js +12 -17
  54. package/dist/cjs/management/api/resources/stats/client/Client.js +4 -7
  55. package/dist/cjs/management/api/resources/tenants/resources/settings/client/Client.js +11 -14
  56. package/dist/cjs/management/api/resources/tokenExchangeProfiles/client/Client.js +11 -14
  57. package/dist/cjs/management/api/resources/userAttributeProfiles/client/Client.js +11 -14
  58. package/dist/cjs/management/api/resources/userBlocks/client/Client.js +24 -25
  59. package/dist/cjs/management/api/resources/userGrants/client/Client.js +18 -28
  60. package/dist/cjs/management/api/resources/users/client/Client.js +42 -67
  61. package/dist/cjs/management/api/resources/users/resources/authenticationMethods/client/Client.js +12 -17
  62. package/dist/cjs/management/api/resources/users/resources/connectedAccounts/client/Client.js +11 -14
  63. package/dist/cjs/management/api/resources/users/resources/groups/client/Client.js +13 -20
  64. package/dist/cjs/management/api/resources/users/resources/logs/client/Client.js +13 -20
  65. package/dist/cjs/management/api/resources/users/resources/organizations/client/Client.js +12 -17
  66. package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.js +12 -17
  67. package/dist/cjs/management/api/resources/users/resources/refreshToken/client/Client.js +11 -14
  68. package/dist/cjs/management/api/resources/users/resources/roles/client/Client.js +12 -17
  69. package/dist/cjs/management/api/resources/users/resources/sessions/client/Client.js +11 -14
  70. package/dist/cjs/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.js +11 -14
  71. package/dist/cjs/management/api/types/types.d.ts +4464 -4299
  72. package/dist/cjs/management/api/types/types.js +46 -12
  73. package/dist/cjs/management/auth/BearerAuthProvider.d.ts +14 -10
  74. package/dist/cjs/management/auth/BearerAuthProvider.js +15 -6
  75. package/dist/cjs/management/core/fetcher/EndpointSupplier.d.ts +2 -2
  76. package/dist/cjs/management/core/fetcher/Fetcher.d.ts +1 -2
  77. package/dist/cjs/management/core/fetcher/Fetcher.js +7 -1
  78. package/dist/cjs/management/core/form-data-utils/FormDataWrapper.js +1 -1
  79. package/dist/cjs/management/core/headers.d.ts +2 -2
  80. package/dist/cjs/management/core/pagination/CustomPager.d.ts +29 -44
  81. package/dist/cjs/management/core/pagination/CustomPager.js +60 -42
  82. package/dist/cjs/management/core/pagination/exports.d.ts +0 -1
  83. package/dist/cjs/management/core/pagination/exports.js +0 -3
  84. package/dist/cjs/management/core/pagination/index.d.ts +1 -1
  85. package/dist/cjs/management/core/pagination/index.js +2 -1
  86. package/dist/cjs/management/version.d.ts +1 -1
  87. package/dist/cjs/management/version.js +1 -1
  88. package/dist/esm/management/BaseClient.d.mts +4 -4
  89. package/dist/esm/management/api/requests/requests.d.mts +37 -8
  90. package/dist/esm/management/api/resources/actions/client/Client.mjs +25 -37
  91. package/dist/esm/management/api/resources/actions/resources/modules/client/Client.mjs +22 -28
  92. package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/Client.mjs +11 -14
  93. package/dist/esm/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.mjs +11 -14
  94. package/dist/esm/management/api/resources/actions/resources/versions/client/Client.mjs +12 -15
  95. package/dist/esm/management/api/resources/branding/resources/phone/resources/providers/client/Client.mjs +10 -11
  96. package/dist/esm/management/api/resources/branding/resources/phone/resources/templates/client/Client.mjs +10 -11
  97. package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +15 -26
  98. package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.mjs +11 -14
  99. package/dist/esm/management/api/resources/clients/client/Client.mjs +29 -49
  100. package/dist/esm/management/api/resources/clients/resources/connections/client/Client.mjs +18 -28
  101. package/dist/esm/management/api/resources/connectionProfiles/client/Client.mjs +11 -14
  102. package/dist/esm/management/api/resources/connections/client/Client.d.mts +2 -2
  103. package/dist/esm/management/api/resources/connections/client/Client.mjs +34 -49
  104. package/dist/esm/management/api/resources/connections/resources/clients/client/Client.mjs +11 -14
  105. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.mjs +13 -16
  106. package/dist/esm/management/api/resources/connections/resources/keys/client/Client.d.mts +19 -0
  107. package/dist/esm/management/api/resources/connections/resources/keys/client/Client.mjs +71 -1
  108. package/dist/esm/management/api/resources/connections/resources/scimConfiguration/client/Client.d.mts +18 -0
  109. package/dist/esm/management/api/resources/connections/resources/scimConfiguration/client/Client.mjs +78 -1
  110. package/dist/esm/management/api/resources/connections/resources/users/client/Client.mjs +3 -2
  111. package/dist/esm/management/api/resources/customDomains/client/Client.mjs +13 -20
  112. package/dist/esm/management/api/resources/deviceCredentials/client/Client.mjs +17 -32
  113. package/dist/esm/management/api/resources/emails/resources/provider/client/Client.mjs +11 -14
  114. package/dist/esm/management/api/resources/eventStreams/client/Client.mjs +11 -14
  115. package/dist/esm/management/api/resources/eventStreams/resources/deliveries/client/Client.mjs +15 -26
  116. package/dist/esm/management/api/resources/flows/client/Client.mjs +21 -37
  117. package/dist/esm/management/api/resources/flows/resources/executions/client/Client.mjs +14 -23
  118. package/dist/esm/management/api/resources/flows/resources/vault/resources/connections/client/Client.mjs +12 -17
  119. package/dist/esm/management/api/resources/forms/client/Client.mjs +20 -34
  120. package/dist/esm/management/api/resources/groups/client/Client.mjs +16 -29
  121. package/dist/esm/management/api/resources/groups/resources/members/client/Client.mjs +13 -20
  122. package/dist/esm/management/api/resources/hooks/client/Client.mjs +18 -30
  123. package/dist/esm/management/api/resources/jobs/resources/usersImports/client/Client.mjs +14 -14
  124. package/dist/esm/management/api/resources/keys/resources/encryption/client/Client.mjs +12 -17
  125. package/dist/esm/management/api/resources/logs/client/Client.mjs +16 -29
  126. package/dist/esm/management/api/resources/networkAcls/client/Client.mjs +12 -17
  127. package/dist/esm/management/api/resources/organizations/client/Client.mjs +12 -17
  128. package/dist/esm/management/api/resources/organizations/resources/clientGrants/client/Client.mjs +15 -31
  129. package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.mjs +11 -14
  130. package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.mjs +12 -17
  131. package/dist/esm/management/api/resources/organizations/resources/invitations/client/Client.mjs +26 -40
  132. package/dist/esm/management/api/resources/organizations/resources/members/client/Client.mjs +13 -20
  133. package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.mjs +12 -17
  134. package/dist/esm/management/api/resources/prompts/resources/rendering/client/Client.mjs +17 -32
  135. package/dist/esm/management/api/resources/resourceServers/client/Client.mjs +24 -39
  136. package/dist/esm/management/api/resources/roles/client/Client.mjs +13 -20
  137. package/dist/esm/management/api/resources/roles/resources/permissions/client/Client.mjs +12 -17
  138. package/dist/esm/management/api/resources/roles/resources/users/client/Client.mjs +11 -14
  139. package/dist/esm/management/api/resources/rules/client/Client.mjs +26 -40
  140. package/dist/esm/management/api/resources/selfServiceProfiles/client/Client.mjs +12 -17
  141. package/dist/esm/management/api/resources/stats/client/Client.mjs +4 -7
  142. package/dist/esm/management/api/resources/tenants/resources/settings/client/Client.mjs +11 -14
  143. package/dist/esm/management/api/resources/tokenExchangeProfiles/client/Client.mjs +11 -14
  144. package/dist/esm/management/api/resources/userAttributeProfiles/client/Client.mjs +11 -14
  145. package/dist/esm/management/api/resources/userBlocks/client/Client.mjs +24 -25
  146. package/dist/esm/management/api/resources/userGrants/client/Client.mjs +18 -28
  147. package/dist/esm/management/api/resources/users/client/Client.mjs +42 -67
  148. package/dist/esm/management/api/resources/users/resources/authenticationMethods/client/Client.mjs +12 -17
  149. package/dist/esm/management/api/resources/users/resources/connectedAccounts/client/Client.mjs +11 -14
  150. package/dist/esm/management/api/resources/users/resources/groups/client/Client.mjs +13 -20
  151. package/dist/esm/management/api/resources/users/resources/logs/client/Client.mjs +13 -20
  152. package/dist/esm/management/api/resources/users/resources/organizations/client/Client.mjs +12 -17
  153. package/dist/esm/management/api/resources/users/resources/permissions/client/Client.mjs +12 -17
  154. package/dist/esm/management/api/resources/users/resources/refreshToken/client/Client.mjs +11 -14
  155. package/dist/esm/management/api/resources/users/resources/roles/client/Client.mjs +12 -17
  156. package/dist/esm/management/api/resources/users/resources/sessions/client/Client.mjs +11 -14
  157. package/dist/esm/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.mjs +11 -14
  158. package/dist/esm/management/api/types/types.d.mts +4464 -4299
  159. package/dist/esm/management/api/types/types.mjs +37 -3
  160. package/dist/esm/management/auth/BearerAuthProvider.d.mts +14 -10
  161. package/dist/esm/management/auth/BearerAuthProvider.mjs +15 -6
  162. package/dist/esm/management/core/fetcher/EndpointSupplier.d.mts +2 -2
  163. package/dist/esm/management/core/fetcher/Fetcher.d.mts +1 -2
  164. package/dist/esm/management/core/fetcher/Fetcher.mjs +7 -1
  165. package/dist/esm/management/core/form-data-utils/FormDataWrapper.mjs +1 -1
  166. package/dist/esm/management/core/headers.d.mts +2 -2
  167. package/dist/esm/management/core/pagination/CustomPager.d.mts +29 -44
  168. package/dist/esm/management/core/pagination/CustomPager.mjs +58 -41
  169. package/dist/esm/management/core/pagination/exports.d.mts +0 -1
  170. package/dist/esm/management/core/pagination/exports.mjs +1 -1
  171. package/dist/esm/management/core/pagination/index.d.mts +1 -1
  172. package/dist/esm/management/core/pagination/index.mjs +1 -1
  173. package/dist/esm/management/version.d.mts +1 -1
  174. package/dist/esm/management/version.mjs +1 -1
  175. package/package.json +4 -3
  176. package/reference.md +271 -119
@@ -83,38 +83,27 @@ class ClientGrantsClient {
83
83
  list() {
84
84
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
85
85
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
86
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
86
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
87
87
  const { from: from_, take = 50, audience, client_id: clientId, allow_any_organization: allowAnyOrganization, subject_type: subjectType, } = request;
88
- const _queryParams = {};
89
- if (from_ !== undefined) {
90
- _queryParams["from"] = from_;
91
- }
92
- if (take !== undefined) {
93
- _queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
94
- }
95
- if (audience !== undefined) {
96
- _queryParams["audience"] = audience;
97
- }
98
- if (clientId !== undefined) {
99
- _queryParams["client_id"] = clientId;
100
- }
101
- if (allowAnyOrganization !== undefined) {
102
- _queryParams["allow_any_organization"] = (_b = allowAnyOrganization === null || allowAnyOrganization === void 0 ? void 0 : allowAnyOrganization.toString()) !== null && _b !== void 0 ? _b : null;
103
- }
104
- if (subjectType !== undefined) {
105
- _queryParams["subject_type"] = subjectType;
106
- }
88
+ const _queryParams = {
89
+ from: from_,
90
+ take,
91
+ audience,
92
+ client_id: clientId,
93
+ allow_any_organization: allowAnyOrganization,
94
+ subject_type: subjectType !== undefined ? subjectType : undefined,
95
+ };
107
96
  const _authRequest = yield this._options.authProvider.getAuthRequest();
108
- let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
109
- const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
110
- 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, "client-grants"),
97
+ 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);
98
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
99
+ 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"),
111
100
  method: "GET",
112
101
  headers: _headers,
113
102
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
114
- 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,
115
- 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,
103
+ 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,
104
+ 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,
116
105
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
117
- fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
106
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
118
107
  logging: this._options.logging,
119
108
  });
120
109
  if (_response.ok) {
@@ -74,26 +74,23 @@ class OrganizationsClient {
74
74
  list(id_1) {
75
75
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
76
76
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
77
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
77
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
78
78
  const { from: from_, take = 50 } = request;
79
- const _queryParams = {};
80
- if (from_ !== undefined) {
81
- _queryParams["from"] = from_;
82
- }
83
- if (take !== undefined) {
84
- _queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
85
- }
79
+ const _queryParams = {
80
+ from: from_,
81
+ take,
82
+ };
86
83
  const _authRequest = yield this._options.authProvider.getAuthRequest();
87
- let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
88
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
89
- 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, `client-grants/${core.url.encodePathParam(id)}/organizations`),
84
+ 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);
85
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
86
+ 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)}/organizations`),
90
87
  method: "GET",
91
88
  headers: _headers,
92
89
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
93
- 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,
94
- 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,
90
+ 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,
91
+ 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,
95
92
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
96
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
93
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
97
94
  logging: this._options.logging,
98
95
  });
99
96
  if (_response.ok) {
@@ -124,47 +124,30 @@ class ClientsClient {
124
124
  list() {
125
125
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
126
126
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
127
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
127
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
128
128
  const { fields, include_fields: includeFields, page = 0, per_page: perPage = 50, include_totals: includeTotals = true, is_global: isGlobal, is_first_party: isFirstParty, app_type: appType, q, } = request;
129
- const _queryParams = {};
130
- if (fields !== undefined) {
131
- _queryParams["fields"] = fields;
132
- }
133
- if (includeFields !== undefined) {
134
- _queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
135
- }
136
- if (page !== undefined) {
137
- _queryParams["page"] = (_b = page === null || page === void 0 ? void 0 : page.toString()) !== null && _b !== void 0 ? _b : null;
138
- }
139
- if (perPage !== undefined) {
140
- _queryParams["per_page"] = (_c = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _c !== void 0 ? _c : null;
141
- }
142
- if (includeTotals !== undefined) {
143
- _queryParams["include_totals"] = (_d = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _d !== void 0 ? _d : null;
144
- }
145
- if (isGlobal !== undefined) {
146
- _queryParams["is_global"] = (_e = isGlobal === null || isGlobal === void 0 ? void 0 : isGlobal.toString()) !== null && _e !== void 0 ? _e : null;
147
- }
148
- if (isFirstParty !== undefined) {
149
- _queryParams["is_first_party"] = (_f = isFirstParty === null || isFirstParty === void 0 ? void 0 : isFirstParty.toString()) !== null && _f !== void 0 ? _f : null;
150
- }
151
- if (appType !== undefined) {
152
- _queryParams["app_type"] = appType;
153
- }
154
- if (q !== undefined) {
155
- _queryParams["q"] = q;
156
- }
129
+ const _queryParams = {
130
+ fields,
131
+ include_fields: includeFields,
132
+ page,
133
+ per_page: perPage,
134
+ include_totals: includeTotals,
135
+ is_global: isGlobal,
136
+ is_first_party: isFirstParty,
137
+ app_type: appType,
138
+ q,
139
+ };
157
140
  const _authRequest = yield this._options.authProvider.getAuthRequest();
158
- let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_g = this._options) === null || _g === void 0 ? void 0 : _g.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
159
- const _response = yield ((_h = this._options.fetcher) !== null && _h !== void 0 ? _h : core.fetcher)({
160
- url: core.url.join((_k = (_j = (yield core.Supplier.get(this._options.baseUrl))) !== null && _j !== void 0 ? _j : (yield core.Supplier.get(this._options.environment))) !== null && _k !== void 0 ? _k : environments.ManagementEnvironment.Default, "clients"),
141
+ 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);
142
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
143
+ 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, "clients"),
161
144
  method: "GET",
162
145
  headers: _headers,
163
146
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
164
- timeoutMs: ((_o = (_l = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _l !== void 0 ? _l : (_m = this._options) === null || _m === void 0 ? void 0 : _m.timeoutInSeconds) !== null && _o !== void 0 ? _o : 60) * 1000,
165
- maxRetries: (_p = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _p !== void 0 ? _p : (_q = this._options) === null || _q === void 0 ? void 0 : _q.maxRetries,
147
+ 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,
148
+ 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,
166
149
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
167
- fetchFn: (_r = this._options) === null || _r === void 0 ? void 0 : _r.fetch,
150
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
168
151
  logging: this._options.logging,
169
152
  });
170
153
  if (_response.ok) {
@@ -342,26 +325,23 @@ class ClientsClient {
342
325
  }
343
326
  __get(id_1) {
344
327
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
345
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
328
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
346
329
  const { fields, include_fields: includeFields } = request;
347
- const _queryParams = {};
348
- if (fields !== undefined) {
349
- _queryParams["fields"] = fields;
350
- }
351
- if (includeFields !== undefined) {
352
- _queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
353
- }
330
+ const _queryParams = {
331
+ fields,
332
+ include_fields: includeFields,
333
+ };
354
334
  const _authRequest = yield this._options.authProvider.getAuthRequest();
355
- let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
356
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
357
- 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, `clients/${core.url.encodePathParam(id)}`),
335
+ 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);
336
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
337
+ 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, `clients/${core.url.encodePathParam(id)}`),
358
338
  method: "GET",
359
339
  headers: _headers,
360
340
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
361
- 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,
362
- 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,
341
+ 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,
342
+ 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,
363
343
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
364
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
344
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
365
345
  logging: this._options.logging,
366
346
  });
367
347
  if (_response.ok) {
@@ -87,40 +87,30 @@ class ConnectionsClient {
87
87
  get(id_1) {
88
88
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
89
89
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
90
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
90
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
91
91
  const { strategy, from: from_, take = 50, fields, include_fields: includeFields } = request;
92
- const _queryParams = {};
93
- if (strategy !== undefined) {
94
- if (Array.isArray(strategy)) {
95
- _queryParams["strategy"] = strategy.map((item) => item);
96
- }
97
- else {
98
- _queryParams["strategy"] = strategy;
99
- }
100
- }
101
- if (from_ !== undefined) {
102
- _queryParams["from"] = from_;
103
- }
104
- if (take !== undefined) {
105
- _queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
106
- }
107
- if (fields !== undefined) {
108
- _queryParams["fields"] = fields;
109
- }
110
- if (includeFields !== undefined) {
111
- _queryParams["include_fields"] = (_b = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _b !== void 0 ? _b : null;
112
- }
92
+ const _queryParams = {
93
+ strategy: Array.isArray(strategy)
94
+ ? strategy.map((item) => item)
95
+ : strategy !== undefined
96
+ ? strategy
97
+ : undefined,
98
+ from: from_,
99
+ take,
100
+ fields,
101
+ include_fields: includeFields,
102
+ };
113
103
  const _authRequest = yield this._options.authProvider.getAuthRequest();
114
- let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
115
- const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
116
- 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, `clients/${core.url.encodePathParam(id)}/connections`),
104
+ 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);
105
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
106
+ 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, `clients/${core.url.encodePathParam(id)}/connections`),
117
107
  method: "GET",
118
108
  headers: _headers,
119
109
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
120
- 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,
121
- 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,
110
+ 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,
111
+ 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,
122
112
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
123
- fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
113
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
124
114
  logging: this._options.logging,
125
115
  });
126
116
  if (_response.ok) {
@@ -75,26 +75,23 @@ class ConnectionProfilesClient {
75
75
  list() {
76
76
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
77
77
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
78
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
78
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
79
79
  const { from: from_, take = 50 } = request;
80
- const _queryParams = {};
81
- if (from_ !== undefined) {
82
- _queryParams["from"] = from_;
83
- }
84
- if (take !== undefined) {
85
- _queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
86
- }
80
+ const _queryParams = {
81
+ from: from_,
82
+ take,
83
+ };
87
84
  const _authRequest = yield this._options.authProvider.getAuthRequest();
88
- let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
89
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
90
- 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, "connection-profiles"),
85
+ let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
86
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
87
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "connection-profiles"),
91
88
  method: "GET",
92
89
  headers: _headers,
93
90
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
94
- 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,
95
- 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,
91
+ 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,
92
+ 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,
96
93
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
97
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
94
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
98
95
  logging: this._options.logging,
99
96
  });
100
97
  if (_response.ok) {
@@ -15,15 +15,15 @@ export declare namespace ConnectionsClient {
15
15
  export declare class ConnectionsClient {
16
16
  protected readonly _options: NormalizedClientOptionsWithAuth<ConnectionsClient.Options>;
17
17
  protected _directoryProvisioning: DirectoryProvisioningClient | undefined;
18
+ protected _scimConfiguration: ScimConfigurationClient | undefined;
18
19
  protected _clients: ClientsClient | undefined;
19
20
  protected _keys: KeysClient | undefined;
20
- protected _scimConfiguration: ScimConfigurationClient | undefined;
21
21
  protected _users: UsersClient | undefined;
22
22
  constructor(options: ConnectionsClient.Options);
23
23
  get directoryProvisioning(): DirectoryProvisioningClient;
24
+ get scimConfiguration(): ScimConfigurationClient;
24
25
  get clients(): ClientsClient;
25
26
  get keys(): KeysClient;
26
- get scimConfiguration(): ScimConfigurationClient;
27
27
  get users(): UsersClient;
28
28
  /**
29
29
  * Retrieves detailed list of all <a href="https://auth0.com/docs/authenticate/identity-providers">connections</a> that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections.
@@ -64,6 +64,10 @@ class ConnectionsClient {
64
64
  var _a;
65
65
  return ((_a = this._directoryProvisioning) !== null && _a !== void 0 ? _a : (this._directoryProvisioning = new Client_js_2.DirectoryProvisioningClient(this._options)));
66
66
  }
67
+ get scimConfiguration() {
68
+ var _a;
69
+ return ((_a = this._scimConfiguration) !== null && _a !== void 0 ? _a : (this._scimConfiguration = new Client_js_4.ScimConfigurationClient(this._options)));
70
+ }
67
71
  get clients() {
68
72
  var _a;
69
73
  return ((_a = this._clients) !== null && _a !== void 0 ? _a : (this._clients = new Client_js_1.ClientsClient(this._options)));
@@ -72,10 +76,6 @@ class ConnectionsClient {
72
76
  var _a;
73
77
  return ((_a = this._keys) !== null && _a !== void 0 ? _a : (this._keys = new Client_js_3.KeysClient(this._options)));
74
78
  }
75
- get scimConfiguration() {
76
- var _a;
77
- return ((_a = this._scimConfiguration) !== null && _a !== void 0 ? _a : (this._scimConfiguration = new Client_js_4.ScimConfigurationClient(this._options)));
78
- }
79
79
  get users() {
80
80
  var _a;
81
81
  return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_5.UsersClient(this._options)));
@@ -121,43 +121,31 @@ class ConnectionsClient {
121
121
  list() {
122
122
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
123
123
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
124
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
124
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
125
125
  const { from: from_, take = 50, strategy, name, fields, include_fields: includeFields } = request;
126
- const _queryParams = {};
127
- if (from_ !== undefined) {
128
- _queryParams["from"] = from_;
129
- }
130
- if (take !== undefined) {
131
- _queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
132
- }
133
- if (strategy !== undefined) {
134
- if (Array.isArray(strategy)) {
135
- _queryParams["strategy"] = strategy.map((item) => item);
136
- }
137
- else {
138
- _queryParams["strategy"] = strategy;
139
- }
140
- }
141
- if (name !== undefined) {
142
- _queryParams["name"] = name;
143
- }
144
- if (fields !== undefined) {
145
- _queryParams["fields"] = fields;
146
- }
147
- if (includeFields !== undefined) {
148
- _queryParams["include_fields"] = (_b = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _b !== void 0 ? _b : null;
149
- }
126
+ const _queryParams = {
127
+ from: from_,
128
+ take,
129
+ strategy: Array.isArray(strategy)
130
+ ? strategy.map((item) => item)
131
+ : strategy !== undefined
132
+ ? strategy
133
+ : undefined,
134
+ name,
135
+ fields,
136
+ include_fields: includeFields,
137
+ };
150
138
  const _authRequest = yield this._options.authProvider.getAuthRequest();
151
- let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
152
- const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
153
- 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, "connections"),
139
+ 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);
140
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
141
+ 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, "connections"),
154
142
  method: "GET",
155
143
  headers: _headers,
156
144
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
157
- 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,
158
- 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,
145
+ 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,
146
+ 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,
159
147
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
160
- fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
148
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
161
149
  logging: this._options.logging,
162
150
  });
163
151
  if (_response.ok) {
@@ -293,26 +281,23 @@ class ConnectionsClient {
293
281
  }
294
282
  __get(id_1) {
295
283
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
296
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
284
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
297
285
  const { fields, include_fields: includeFields } = request;
298
- const _queryParams = {};
299
- if (fields !== undefined) {
300
- _queryParams["fields"] = fields;
301
- }
302
- if (includeFields !== undefined) {
303
- _queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
304
- }
286
+ const _queryParams = {
287
+ fields,
288
+ include_fields: includeFields,
289
+ };
305
290
  const _authRequest = yield this._options.authProvider.getAuthRequest();
306
- let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
307
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
308
- 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/${core.url.encodePathParam(id)}`),
291
+ 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);
292
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
293
+ 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, `connections/${core.url.encodePathParam(id)}`),
309
294
  method: "GET",
310
295
  headers: _headers,
311
296
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
312
- 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,
313
- 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,
297
+ 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,
298
+ 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,
314
299
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
315
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
300
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
316
301
  logging: this._options.logging,
317
302
  });
318
303
  if (_response.ok) {
@@ -79,26 +79,23 @@ class ClientsClient {
79
79
  get(id_1) {
80
80
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
81
81
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
82
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
82
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
83
83
  const { take = 50, from: from_ } = request;
84
- const _queryParams = {};
85
- if (take !== undefined) {
86
- _queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
87
- }
88
- if (from_ !== undefined) {
89
- _queryParams["from"] = from_;
90
- }
84
+ const _queryParams = {
85
+ take,
86
+ from: from_,
87
+ };
91
88
  const _authRequest = yield this._options.authProvider.getAuthRequest();
92
- let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
93
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
94
- 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/${core.url.encodePathParam(id)}/clients`),
89
+ 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);
90
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
91
+ 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, `connections/${core.url.encodePathParam(id)}/clients`),
95
92
  method: "GET",
96
93
  headers: _headers,
97
94
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
98
- 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,
99
- 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,
95
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
96
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
100
97
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
101
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
98
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
102
99
  logging: this._options.logging,
103
100
  });
104
101
  if (_response.ok) {
@@ -80,26 +80,23 @@ class DirectoryProvisioningClient {
80
80
  list() {
81
81
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
82
82
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
83
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
83
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
84
84
  const { from: from_, take = 50 } = request;
85
- const _queryParams = {};
86
- if (from_ !== undefined) {
87
- _queryParams["from"] = from_;
88
- }
89
- if (take !== undefined) {
90
- _queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
91
- }
85
+ const _queryParams = {
86
+ from: from_,
87
+ take,
88
+ };
92
89
  const _authRequest = yield this._options.authProvider.getAuthRequest();
93
- let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
94
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
95
- 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"),
90
+ 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);
91
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
92
+ 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, "connections-directory-provisionings"),
96
93
  method: "GET",
97
94
  headers: _headers,
98
95
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
99
- 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,
100
- 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,
96
+ 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,
97
+ 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,
101
98
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
102
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
99
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
103
100
  logging: this._options.logging,
104
101
  });
105
102
  if (_response.ok) {
@@ -235,7 +232,7 @@ class DirectoryProvisioningClient {
235
232
  contentType: "application/json",
236
233
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
237
234
  requestType: "json",
238
- body: request != null ? request : undefined,
235
+ body: request,
239
236
  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,
240
237
  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,
241
238
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -364,7 +361,7 @@ class DirectoryProvisioningClient {
364
361
  contentType: "application/json",
365
362
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
366
363
  requestType: "json",
367
- body: request != null ? request : undefined,
364
+ body: request,
368
365
  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,
369
366
  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,
370
367
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -27,6 +27,25 @@ export declare class KeysClient {
27
27
  */
28
28
  get(id: string, requestOptions?: KeysClient.RequestOptions): core.HttpResponsePromise<Management.ConnectionKey[]>;
29
29
  private __get;
30
+ /**
31
+ * Provision initial connection keys for Okta or OIDC connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions.
32
+ *
33
+ * @param {string} id - ID of the connection
34
+ * @param {Management.PostConnectionKeysRequestContent | null} request
35
+ * @param {KeysClient.RequestOptions} requestOptions - Request-specific configuration.
36
+ *
37
+ * @throws {@link Management.BadRequestError}
38
+ * @throws {@link Management.UnauthorizedError}
39
+ * @throws {@link Management.ForbiddenError}
40
+ * @throws {@link Management.NotFoundError}
41
+ * @throws {@link Management.ConflictError}
42
+ * @throws {@link Management.TooManyRequestsError}
43
+ *
44
+ * @example
45
+ * await client.connections.keys.create("id")
46
+ */
47
+ create(id: string, request?: Management.PostConnectionKeysRequestContent | null, requestOptions?: KeysClient.RequestOptions): core.HttpResponsePromise<Management.PostConnectionsKeysResponseContent>;
48
+ private __create;
30
49
  /**
31
50
  * Rotates the connection keys for the Okta or OIDC connection strategies.
32
51
  *