auth0 5.3.0 → 5.4.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 (218) hide show
  1. package/dist/cjs/management/BaseClient.d.ts +4 -4
  2. package/dist/cjs/management/api/requests/requests.d.ts +50 -134
  3. package/dist/cjs/management/api/requests/requests.js +0 -108
  4. package/dist/cjs/management/api/resources/actions/client/Client.js +25 -37
  5. package/dist/cjs/management/api/resources/actions/resources/modules/client/Client.js +22 -28
  6. package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/Client.d.ts +6 -3
  7. package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/Client.js +65 -45
  8. package/dist/cjs/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.js +11 -14
  9. package/dist/cjs/management/api/resources/actions/resources/versions/client/Client.d.ts +2 -2
  10. package/dist/cjs/management/api/resources/actions/resources/versions/client/Client.js +13 -16
  11. package/dist/cjs/management/api/resources/branding/resources/phone/resources/providers/client/Client.js +10 -11
  12. package/dist/cjs/management/api/resources/branding/resources/phone/resources/templates/client/Client.js +10 -11
  13. package/dist/cjs/management/api/resources/clientGrants/client/Client.js +15 -26
  14. package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.js +11 -14
  15. package/dist/cjs/management/api/resources/clients/client/Client.js +29 -49
  16. package/dist/cjs/management/api/resources/clients/resources/connections/client/Client.js +18 -28
  17. package/dist/cjs/management/api/resources/connectionProfiles/client/Client.js +11 -14
  18. package/dist/cjs/management/api/resources/connections/client/Client.d.ts +2 -2
  19. package/dist/cjs/management/api/resources/connections/client/Client.js +34 -49
  20. package/dist/cjs/management/api/resources/connections/resources/clients/client/Client.js +11 -14
  21. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.js +13 -16
  22. package/dist/cjs/management/api/resources/connections/resources/keys/client/Client.d.ts +19 -0
  23. package/dist/cjs/management/api/resources/connections/resources/keys/client/Client.js +71 -1
  24. package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/client/Client.d.ts +18 -0
  25. package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/client/Client.js +78 -1
  26. package/dist/cjs/management/api/resources/connections/resources/users/client/Client.js +3 -2
  27. package/dist/cjs/management/api/resources/customDomains/client/Client.js +13 -20
  28. package/dist/cjs/management/api/resources/deviceCredentials/client/Client.js +17 -32
  29. package/dist/cjs/management/api/resources/emails/resources/provider/client/Client.js +11 -14
  30. package/dist/cjs/management/api/resources/eventStreams/client/Client.js +11 -14
  31. package/dist/cjs/management/api/resources/eventStreams/resources/deliveries/client/Client.js +15 -26
  32. package/dist/cjs/management/api/resources/flows/client/Client.d.ts +2 -2
  33. package/dist/cjs/management/api/resources/flows/client/Client.js +22 -38
  34. package/dist/cjs/management/api/resources/flows/index.d.ts +0 -1
  35. package/dist/cjs/management/api/resources/flows/index.js +0 -1
  36. package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.d.ts +4 -4
  37. package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.js +16 -25
  38. package/dist/cjs/management/api/resources/flows/resources/executions/index.d.ts +0 -1
  39. package/dist/cjs/management/api/resources/flows/resources/executions/index.js +0 -1
  40. package/dist/cjs/management/api/resources/flows/resources/index.d.ts +0 -1
  41. package/dist/cjs/management/api/resources/flows/resources/index.js +0 -4
  42. package/dist/cjs/management/api/resources/flows/resources/vault/resources/connections/client/Client.js +12 -17
  43. package/dist/cjs/management/api/resources/forms/client/Client.js +20 -34
  44. package/dist/cjs/management/api/resources/groups/client/Client.js +16 -29
  45. package/dist/cjs/management/api/resources/groups/resources/members/client/Client.js +13 -20
  46. package/dist/cjs/management/api/resources/hooks/client/Client.js +18 -30
  47. package/dist/cjs/management/api/resources/index.d.ts +0 -1
  48. package/dist/cjs/management/api/resources/index.js +0 -1
  49. package/dist/cjs/management/api/resources/jobs/resources/usersImports/client/Client.js +14 -14
  50. package/dist/cjs/management/api/resources/keys/resources/encryption/client/Client.js +12 -17
  51. package/dist/cjs/management/api/resources/logs/client/Client.js +16 -29
  52. package/dist/cjs/management/api/resources/networkAcls/client/Client.js +12 -17
  53. package/dist/cjs/management/api/resources/organizations/client/Client.js +12 -17
  54. package/dist/cjs/management/api/resources/organizations/resources/clientGrants/client/Client.js +15 -31
  55. package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.js +11 -14
  56. package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.js +12 -17
  57. package/dist/cjs/management/api/resources/organizations/resources/invitations/client/Client.js +26 -40
  58. package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.js +13 -20
  59. package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.js +12 -17
  60. package/dist/cjs/management/api/resources/prompts/resources/rendering/client/Client.js +17 -32
  61. package/dist/cjs/management/api/resources/resourceServers/client/Client.js +24 -39
  62. package/dist/cjs/management/api/resources/roles/client/Client.js +13 -20
  63. package/dist/cjs/management/api/resources/roles/resources/permissions/client/Client.js +12 -17
  64. package/dist/cjs/management/api/resources/roles/resources/users/client/Client.js +11 -14
  65. package/dist/cjs/management/api/resources/rules/client/Client.js +26 -40
  66. package/dist/cjs/management/api/resources/selfServiceProfiles/client/Client.js +12 -17
  67. package/dist/cjs/management/api/resources/stats/client/Client.js +4 -7
  68. package/dist/cjs/management/api/resources/tenants/resources/settings/client/Client.js +11 -14
  69. package/dist/cjs/management/api/resources/tokenExchangeProfiles/client/Client.js +11 -14
  70. package/dist/cjs/management/api/resources/userAttributeProfiles/client/Client.js +11 -14
  71. package/dist/cjs/management/api/resources/userBlocks/client/Client.js +24 -25
  72. package/dist/cjs/management/api/resources/userGrants/client/Client.js +18 -28
  73. package/dist/cjs/management/api/resources/users/client/Client.js +42 -67
  74. package/dist/cjs/management/api/resources/users/resources/authenticationMethods/client/Client.js +12 -17
  75. package/dist/cjs/management/api/resources/users/resources/connectedAccounts/client/Client.js +11 -14
  76. package/dist/cjs/management/api/resources/users/resources/groups/client/Client.js +13 -20
  77. package/dist/cjs/management/api/resources/users/resources/logs/client/Client.js +13 -20
  78. package/dist/cjs/management/api/resources/users/resources/organizations/client/Client.js +12 -17
  79. package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.js +12 -17
  80. package/dist/cjs/management/api/resources/users/resources/refreshToken/client/Client.js +11 -14
  81. package/dist/cjs/management/api/resources/users/resources/roles/client/Client.js +12 -17
  82. package/dist/cjs/management/api/resources/users/resources/sessions/client/Client.js +11 -14
  83. package/dist/cjs/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.js +11 -14
  84. package/dist/cjs/management/api/types/types.d.ts +5257 -4642
  85. package/dist/cjs/management/api/types/types.js +457 -431
  86. package/dist/cjs/management/auth/BearerAuthProvider.d.ts +14 -10
  87. package/dist/cjs/management/auth/BearerAuthProvider.js +15 -6
  88. package/dist/cjs/management/core/fetcher/EndpointSupplier.d.ts +2 -2
  89. package/dist/cjs/management/core/fetcher/Fetcher.d.ts +1 -2
  90. package/dist/cjs/management/core/fetcher/Fetcher.js +7 -1
  91. package/dist/cjs/management/core/form-data-utils/FormDataWrapper.js +1 -1
  92. package/dist/cjs/management/core/headers.d.ts +2 -2
  93. package/dist/cjs/management/core/pagination/CustomPager.d.ts +29 -44
  94. package/dist/cjs/management/core/pagination/CustomPager.js +60 -42
  95. package/dist/cjs/management/core/pagination/exports.d.ts +0 -1
  96. package/dist/cjs/management/core/pagination/exports.js +0 -3
  97. package/dist/cjs/management/core/pagination/index.d.ts +1 -1
  98. package/dist/cjs/management/core/pagination/index.js +2 -1
  99. package/dist/cjs/management/version.d.ts +1 -1
  100. package/dist/cjs/management/version.js +1 -1
  101. package/dist/esm/management/BaseClient.d.mts +4 -4
  102. package/dist/esm/management/api/requests/requests.d.mts +50 -134
  103. package/dist/esm/management/api/requests/requests.mjs +1 -107
  104. package/dist/esm/management/api/resources/actions/client/Client.mjs +25 -37
  105. package/dist/esm/management/api/resources/actions/resources/modules/client/Client.mjs +22 -28
  106. package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/Client.d.mts +6 -3
  107. package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/Client.mjs +65 -45
  108. package/dist/esm/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.mjs +11 -14
  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 +13 -16
  111. package/dist/esm/management/api/resources/branding/resources/phone/resources/providers/client/Client.mjs +10 -11
  112. package/dist/esm/management/api/resources/branding/resources/phone/resources/templates/client/Client.mjs +10 -11
  113. package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +15 -26
  114. package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.mjs +11 -14
  115. package/dist/esm/management/api/resources/clients/client/Client.mjs +29 -49
  116. package/dist/esm/management/api/resources/clients/resources/connections/client/Client.mjs +18 -28
  117. package/dist/esm/management/api/resources/connectionProfiles/client/Client.mjs +11 -14
  118. package/dist/esm/management/api/resources/connections/client/Client.d.mts +2 -2
  119. package/dist/esm/management/api/resources/connections/client/Client.mjs +34 -49
  120. package/dist/esm/management/api/resources/connections/resources/clients/client/Client.mjs +11 -14
  121. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.mjs +13 -16
  122. package/dist/esm/management/api/resources/connections/resources/keys/client/Client.d.mts +19 -0
  123. package/dist/esm/management/api/resources/connections/resources/keys/client/Client.mjs +71 -1
  124. package/dist/esm/management/api/resources/connections/resources/scimConfiguration/client/Client.d.mts +18 -0
  125. package/dist/esm/management/api/resources/connections/resources/scimConfiguration/client/Client.mjs +78 -1
  126. package/dist/esm/management/api/resources/connections/resources/users/client/Client.mjs +3 -2
  127. package/dist/esm/management/api/resources/customDomains/client/Client.mjs +13 -20
  128. package/dist/esm/management/api/resources/deviceCredentials/client/Client.mjs +17 -32
  129. package/dist/esm/management/api/resources/emails/resources/provider/client/Client.mjs +11 -14
  130. package/dist/esm/management/api/resources/eventStreams/client/Client.mjs +11 -14
  131. package/dist/esm/management/api/resources/eventStreams/resources/deliveries/client/Client.mjs +15 -26
  132. package/dist/esm/management/api/resources/flows/client/Client.d.mts +2 -2
  133. package/dist/esm/management/api/resources/flows/client/Client.mjs +22 -38
  134. package/dist/esm/management/api/resources/flows/index.d.mts +0 -1
  135. package/dist/esm/management/api/resources/flows/index.mjs +0 -1
  136. package/dist/esm/management/api/resources/flows/resources/executions/client/Client.d.mts +4 -4
  137. package/dist/esm/management/api/resources/flows/resources/executions/client/Client.mjs +16 -25
  138. package/dist/esm/management/api/resources/flows/resources/executions/index.d.mts +0 -1
  139. package/dist/esm/management/api/resources/flows/resources/executions/index.mjs +0 -1
  140. package/dist/esm/management/api/resources/flows/resources/index.d.mts +0 -1
  141. package/dist/esm/management/api/resources/flows/resources/index.mjs +0 -1
  142. package/dist/esm/management/api/resources/flows/resources/vault/resources/connections/client/Client.mjs +12 -17
  143. package/dist/esm/management/api/resources/forms/client/Client.mjs +20 -34
  144. package/dist/esm/management/api/resources/groups/client/Client.mjs +16 -29
  145. package/dist/esm/management/api/resources/groups/resources/members/client/Client.mjs +13 -20
  146. package/dist/esm/management/api/resources/hooks/client/Client.mjs +18 -30
  147. package/dist/esm/management/api/resources/index.d.mts +0 -1
  148. package/dist/esm/management/api/resources/index.mjs +0 -1
  149. package/dist/esm/management/api/resources/jobs/resources/usersImports/client/Client.mjs +14 -14
  150. package/dist/esm/management/api/resources/keys/resources/encryption/client/Client.mjs +12 -17
  151. package/dist/esm/management/api/resources/logs/client/Client.mjs +16 -29
  152. package/dist/esm/management/api/resources/networkAcls/client/Client.mjs +12 -17
  153. package/dist/esm/management/api/resources/organizations/client/Client.mjs +12 -17
  154. package/dist/esm/management/api/resources/organizations/resources/clientGrants/client/Client.mjs +15 -31
  155. package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.mjs +11 -14
  156. package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.mjs +12 -17
  157. package/dist/esm/management/api/resources/organizations/resources/invitations/client/Client.mjs +26 -40
  158. package/dist/esm/management/api/resources/organizations/resources/members/client/Client.mjs +13 -20
  159. package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.mjs +12 -17
  160. package/dist/esm/management/api/resources/prompts/resources/rendering/client/Client.mjs +17 -32
  161. package/dist/esm/management/api/resources/resourceServers/client/Client.mjs +24 -39
  162. package/dist/esm/management/api/resources/roles/client/Client.mjs +13 -20
  163. package/dist/esm/management/api/resources/roles/resources/permissions/client/Client.mjs +12 -17
  164. package/dist/esm/management/api/resources/roles/resources/users/client/Client.mjs +11 -14
  165. package/dist/esm/management/api/resources/rules/client/Client.mjs +26 -40
  166. package/dist/esm/management/api/resources/selfServiceProfiles/client/Client.mjs +12 -17
  167. package/dist/esm/management/api/resources/stats/client/Client.mjs +4 -7
  168. package/dist/esm/management/api/resources/tenants/resources/settings/client/Client.mjs +11 -14
  169. package/dist/esm/management/api/resources/tokenExchangeProfiles/client/Client.mjs +11 -14
  170. package/dist/esm/management/api/resources/userAttributeProfiles/client/Client.mjs +11 -14
  171. package/dist/esm/management/api/resources/userBlocks/client/Client.mjs +24 -25
  172. package/dist/esm/management/api/resources/userGrants/client/Client.mjs +18 -28
  173. package/dist/esm/management/api/resources/users/client/Client.mjs +42 -67
  174. package/dist/esm/management/api/resources/users/resources/authenticationMethods/client/Client.mjs +12 -17
  175. package/dist/esm/management/api/resources/users/resources/connectedAccounts/client/Client.mjs +11 -14
  176. package/dist/esm/management/api/resources/users/resources/groups/client/Client.mjs +13 -20
  177. package/dist/esm/management/api/resources/users/resources/logs/client/Client.mjs +13 -20
  178. package/dist/esm/management/api/resources/users/resources/organizations/client/Client.mjs +12 -17
  179. package/dist/esm/management/api/resources/users/resources/permissions/client/Client.mjs +12 -17
  180. package/dist/esm/management/api/resources/users/resources/refreshToken/client/Client.mjs +11 -14
  181. package/dist/esm/management/api/resources/users/resources/roles/client/Client.mjs +12 -17
  182. package/dist/esm/management/api/resources/users/resources/sessions/client/Client.mjs +11 -14
  183. package/dist/esm/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.mjs +11 -14
  184. package/dist/esm/management/api/types/types.d.mts +5257 -4642
  185. package/dist/esm/management/api/types/types.mjs +447 -421
  186. package/dist/esm/management/auth/BearerAuthProvider.d.mts +14 -10
  187. package/dist/esm/management/auth/BearerAuthProvider.mjs +15 -6
  188. package/dist/esm/management/core/fetcher/EndpointSupplier.d.mts +2 -2
  189. package/dist/esm/management/core/fetcher/Fetcher.d.mts +1 -2
  190. package/dist/esm/management/core/fetcher/Fetcher.mjs +7 -1
  191. package/dist/esm/management/core/form-data-utils/FormDataWrapper.mjs +1 -1
  192. package/dist/esm/management/core/headers.d.mts +2 -2
  193. package/dist/esm/management/core/pagination/CustomPager.d.mts +29 -44
  194. package/dist/esm/management/core/pagination/CustomPager.mjs +58 -41
  195. package/dist/esm/management/core/pagination/exports.d.mts +0 -1
  196. package/dist/esm/management/core/pagination/exports.mjs +1 -1
  197. package/dist/esm/management/core/pagination/index.d.mts +1 -1
  198. package/dist/esm/management/core/pagination/index.mjs +1 -1
  199. package/dist/esm/management/version.d.mts +1 -1
  200. package/dist/esm/management/version.mjs +1 -1
  201. package/package.json +4 -3
  202. package/reference.md +302 -124
  203. package/dist/cjs/management/api/resources/flows/resources/executions/types/index.d.ts +0 -1
  204. package/dist/cjs/management/api/resources/flows/resources/executions/types/index.js +0 -17
  205. package/dist/cjs/management/api/resources/flows/resources/executions/types/types.d.ts +0 -4
  206. package/dist/cjs/management/api/resources/flows/resources/executions/types/types.js +0 -7
  207. package/dist/cjs/management/api/resources/flows/types/index.d.ts +0 -1
  208. package/dist/cjs/management/api/resources/flows/types/index.js +0 -17
  209. package/dist/cjs/management/api/resources/flows/types/types.d.ts +0 -4
  210. package/dist/cjs/management/api/resources/flows/types/types.js +0 -7
  211. package/dist/esm/management/api/resources/flows/resources/executions/types/index.d.mts +0 -1
  212. package/dist/esm/management/api/resources/flows/resources/executions/types/index.mjs +0 -1
  213. package/dist/esm/management/api/resources/flows/resources/executions/types/types.d.mts +0 -4
  214. package/dist/esm/management/api/resources/flows/resources/executions/types/types.mjs +0 -4
  215. package/dist/esm/management/api/resources/flows/types/index.d.mts +0 -1
  216. package/dist/esm/management/api/resources/flows/types/index.mjs +0 -1
  217. package/dist/esm/management/api/resources/flows/types/types.d.mts +0 -4
  218. package/dist/esm/management/api/resources/flows/types/types.mjs +0 -4
@@ -136,50 +136,31 @@ export class UsersClient {
136
136
  list() {
137
137
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
138
138
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
139
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
139
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
140
140
  const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true, sort, connection, fields, include_fields: includeFields, q, search_engine: searchEngine, primary_order: primaryOrder, } = request;
141
- const _queryParams = {};
142
- if (page !== undefined) {
143
- _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
144
- }
145
- if (perPage !== undefined) {
146
- _queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
147
- }
148
- if (includeTotals !== undefined) {
149
- _queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
150
- }
151
- if (sort !== undefined) {
152
- _queryParams["sort"] = sort;
153
- }
154
- if (connection !== undefined) {
155
- _queryParams["connection"] = connection;
156
- }
157
- if (fields !== undefined) {
158
- _queryParams["fields"] = fields;
159
- }
160
- if (includeFields !== undefined) {
161
- _queryParams["include_fields"] = (_d = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _d !== void 0 ? _d : null;
162
- }
163
- if (q !== undefined) {
164
- _queryParams["q"] = q;
165
- }
166
- if (searchEngine !== undefined) {
167
- _queryParams["search_engine"] = searchEngine;
168
- }
169
- if (primaryOrder !== undefined) {
170
- _queryParams["primary_order"] = (_e = primaryOrder === null || primaryOrder === void 0 ? void 0 : primaryOrder.toString()) !== null && _e !== void 0 ? _e : null;
171
- }
141
+ const _queryParams = {
142
+ page,
143
+ per_page: perPage,
144
+ include_totals: includeTotals,
145
+ sort,
146
+ connection,
147
+ fields,
148
+ include_fields: includeFields,
149
+ q,
150
+ search_engine: searchEngine !== undefined ? searchEngine : undefined,
151
+ primary_order: primaryOrder,
152
+ };
172
153
  const _authRequest = yield this._options.authProvider.getAuthRequest();
173
- let _headers = mergeHeaders(_authRequest.headers, (_f = this._options) === null || _f === void 0 ? void 0 : _f.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
174
- const _response = yield ((_g = this._options.fetcher) !== null && _g !== void 0 ? _g : core.fetcher)({
175
- url: core.url.join((_j = (_h = (yield core.Supplier.get(this._options.baseUrl))) !== null && _h !== void 0 ? _h : (yield core.Supplier.get(this._options.environment))) !== null && _j !== void 0 ? _j : environments.ManagementEnvironment.Default, "users"),
154
+ 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);
155
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
156
+ 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, "users"),
176
157
  method: "GET",
177
158
  headers: _headers,
178
159
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
179
- timeoutMs: ((_m = (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.timeoutInSeconds) !== null && _m !== void 0 ? _m : 60) * 1000,
180
- maxRetries: (_o = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _o !== void 0 ? _o : (_p = this._options) === null || _p === void 0 ? void 0 : _p.maxRetries,
160
+ 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,
161
+ 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,
181
162
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
182
- fetchFn: (_q = this._options) === null || _q === void 0 ? void 0 : _q.fetch,
163
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
183
164
  logging: this._options.logging,
184
165
  });
185
166
  if (_response.ok) {
@@ -318,27 +299,24 @@ export class UsersClient {
318
299
  }
319
300
  __listUsersByEmail(request, requestOptions) {
320
301
  return __awaiter(this, void 0, void 0, function* () {
321
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
302
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
322
303
  const { fields, include_fields: includeFields, email } = request;
323
- const _queryParams = {};
324
- if (fields !== undefined) {
325
- _queryParams["fields"] = fields;
326
- }
327
- if (includeFields !== undefined) {
328
- _queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
329
- }
330
- _queryParams["email"] = email;
304
+ const _queryParams = {
305
+ fields,
306
+ include_fields: includeFields,
307
+ email,
308
+ };
331
309
  const _authRequest = yield this._options.authProvider.getAuthRequest();
332
- 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);
333
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
334
- 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, "users-by-email"),
310
+ 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);
311
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
312
+ 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, "users-by-email"),
335
313
  method: "GET",
336
314
  headers: _headers,
337
315
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
338
- 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,
339
- 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,
316
+ 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,
317
+ 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,
340
318
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
341
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
319
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
342
320
  logging: this._options.logging,
343
321
  });
344
322
  if (_response.ok) {
@@ -389,26 +367,23 @@ export class UsersClient {
389
367
  }
390
368
  __get(id_1) {
391
369
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
392
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
370
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
393
371
  const { fields, include_fields: includeFields } = request;
394
- const _queryParams = {};
395
- if (fields !== undefined) {
396
- _queryParams["fields"] = fields;
397
- }
398
- if (includeFields !== undefined) {
399
- _queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
400
- }
372
+ const _queryParams = {
373
+ fields,
374
+ include_fields: includeFields,
375
+ };
401
376
  const _authRequest = yield this._options.authProvider.getAuthRequest();
402
- 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);
403
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
404
- 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, `users/${core.url.encodePathParam(id)}`),
377
+ 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);
378
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
379
+ 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, `users/${core.url.encodePathParam(id)}`),
405
380
  method: "GET",
406
381
  headers: _headers,
407
382
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
408
- 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,
409
- 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,
383
+ 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,
384
+ 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,
410
385
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
411
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
386
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
412
387
  logging: this._options.logging,
413
388
  });
414
389
  if (_response.ok) {
@@ -42,29 +42,24 @@ export class AuthenticationMethodsClient {
42
42
  list(id_1) {
43
43
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
44
44
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
45
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
45
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
46
46
  const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true } = request;
47
- const _queryParams = {};
48
- if (page !== undefined) {
49
- _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
50
- }
51
- if (perPage !== undefined) {
52
- _queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
53
- }
54
- if (includeTotals !== undefined) {
55
- _queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
56
- }
47
+ const _queryParams = {
48
+ page,
49
+ per_page: perPage,
50
+ include_totals: includeTotals,
51
+ };
57
52
  const _authRequest = yield this._options.authProvider.getAuthRequest();
58
- let _headers = mergeHeaders(_authRequest.headers, (_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
59
- const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
60
- url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.ManagementEnvironment.Default, `users/${core.url.encodePathParam(id)}/authentication-methods`),
53
+ 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);
54
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
55
+ 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, `users/${core.url.encodePathParam(id)}/authentication-methods`),
61
56
  method: "GET",
62
57
  headers: _headers,
63
58
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
64
- timeoutMs: ((_k = (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.timeoutInSeconds) !== null && _k !== void 0 ? _k : 60) * 1000,
65
- maxRetries: (_l = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _l !== void 0 ? _l : (_m = this._options) === null || _m === void 0 ? void 0 : _m.maxRetries,
59
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
60
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
66
61
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
67
- fetchFn: (_o = this._options) === null || _o === void 0 ? void 0 : _o.fetch,
62
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
68
63
  logging: this._options.logging,
69
64
  });
70
65
  if (_response.ok) {
@@ -40,26 +40,23 @@ export class ConnectedAccountsClient {
40
40
  list(id_1) {
41
41
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
42
42
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
43
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
43
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
44
44
  const { from: from_, take = 50 } = request;
45
- const _queryParams = {};
46
- if (from_ !== undefined) {
47
- _queryParams["from"] = from_;
48
- }
49
- if (take !== undefined) {
50
- _queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
51
- }
45
+ const _queryParams = {
46
+ from: from_,
47
+ take,
48
+ };
52
49
  const _authRequest = yield this._options.authProvider.getAuthRequest();
53
- 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);
54
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
55
- 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, `users/${core.url.encodePathParam(id)}/connected-accounts`),
50
+ 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);
51
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
52
+ 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, `users/${core.url.encodePathParam(id)}/connected-accounts`),
56
53
  method: "GET",
57
54
  headers: _headers,
58
55
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
59
- 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,
60
- 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,
56
+ 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,
57
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
61
58
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
62
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
59
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
63
60
  logging: this._options.logging,
64
61
  });
65
62
  if (_response.ok) {
@@ -42,32 +42,25 @@ export class GroupsClient {
42
42
  get(id_1) {
43
43
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
44
44
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
45
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
45
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
46
46
  const { fields, include_fields: includeFields, from: from_, take = 50 } = request;
47
- const _queryParams = {};
48
- if (fields !== undefined) {
49
- _queryParams["fields"] = fields;
50
- }
51
- if (includeFields !== undefined) {
52
- _queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
53
- }
54
- if (from_ !== undefined) {
55
- _queryParams["from"] = from_;
56
- }
57
- if (take !== undefined) {
58
- _queryParams["take"] = (_b = take === null || take === void 0 ? void 0 : take.toString()) !== null && _b !== void 0 ? _b : null;
59
- }
47
+ const _queryParams = {
48
+ fields,
49
+ include_fields: includeFields,
50
+ from: from_,
51
+ take,
52
+ };
60
53
  const _authRequest = yield this._options.authProvider.getAuthRequest();
61
- 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);
62
- const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
63
- 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, `users/${core.url.encodePathParam(id)}/groups`),
54
+ 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);
55
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
56
+ 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, `users/${core.url.encodePathParam(id)}/groups`),
64
57
  method: "GET",
65
58
  headers: _headers,
66
59
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
67
- 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,
68
- 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,
60
+ 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,
61
+ 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,
69
62
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
70
- fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
63
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
71
64
  logging: this._options.logging,
72
65
  });
73
66
  if (_response.ok) {
@@ -48,32 +48,25 @@ export class LogsClient {
48
48
  list(id_1) {
49
49
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
50
50
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
51
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
51
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
52
52
  const { page = 0, per_page: perPage = 50, sort, include_totals: includeTotals = true } = request;
53
- const _queryParams = {};
54
- if (page !== undefined) {
55
- _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
56
- }
57
- if (perPage !== undefined) {
58
- _queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
59
- }
60
- if (sort !== undefined) {
61
- _queryParams["sort"] = sort;
62
- }
63
- if (includeTotals !== undefined) {
64
- _queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
65
- }
53
+ const _queryParams = {
54
+ page,
55
+ per_page: perPage,
56
+ sort,
57
+ include_totals: includeTotals,
58
+ };
66
59
  const _authRequest = yield this._options.authProvider.getAuthRequest();
67
- let _headers = mergeHeaders(_authRequest.headers, (_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
68
- const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
69
- url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.ManagementEnvironment.Default, `users/${core.url.encodePathParam(id)}/logs`),
60
+ 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);
61
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
62
+ 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, `users/${core.url.encodePathParam(id)}/logs`),
70
63
  method: "GET",
71
64
  headers: _headers,
72
65
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
73
- timeoutMs: ((_k = (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.timeoutInSeconds) !== null && _k !== void 0 ? _k : 60) * 1000,
74
- maxRetries: (_l = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _l !== void 0 ? _l : (_m = this._options) === null || _m === void 0 ? void 0 : _m.maxRetries,
66
+ 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,
67
+ 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,
75
68
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
76
- fetchFn: (_o = this._options) === null || _o === void 0 ? void 0 : _o.fetch,
69
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
77
70
  logging: this._options.logging,
78
71
  });
79
72
  if (_response.ok) {
@@ -40,29 +40,24 @@ export class OrganizationsClient {
40
40
  list(id_1) {
41
41
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
42
42
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
43
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
43
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
44
44
  const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true } = request;
45
- const _queryParams = {};
46
- if (page !== undefined) {
47
- _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
48
- }
49
- if (perPage !== undefined) {
50
- _queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
51
- }
52
- if (includeTotals !== undefined) {
53
- _queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
54
- }
45
+ const _queryParams = {
46
+ page,
47
+ per_page: perPage,
48
+ include_totals: includeTotals,
49
+ };
55
50
  const _authRequest = yield this._options.authProvider.getAuthRequest();
56
- let _headers = mergeHeaders(_authRequest.headers, (_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
57
- const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
58
- url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.ManagementEnvironment.Default, `users/${core.url.encodePathParam(id)}/organizations`),
51
+ 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);
52
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
53
+ 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, `users/${core.url.encodePathParam(id)}/organizations`),
59
54
  method: "GET",
60
55
  headers: _headers,
61
56
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
62
- timeoutMs: ((_k = (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.timeoutInSeconds) !== null && _k !== void 0 ? _k : 60) * 1000,
63
- maxRetries: (_l = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _l !== void 0 ? _l : (_m = this._options) === null || _m === void 0 ? void 0 : _m.maxRetries,
57
+ 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,
58
+ 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,
64
59
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
65
- fetchFn: (_o = this._options) === null || _o === void 0 ? void 0 : _o.fetch,
60
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
66
61
  logging: this._options.logging,
67
62
  });
68
63
  if (_response.ok) {
@@ -42,29 +42,24 @@ export class PermissionsClient {
42
42
  list(id_1) {
43
43
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
44
44
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
45
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
45
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
46
46
  const { per_page: perPage = 50, page = 0, include_totals: includeTotals = true } = request;
47
- const _queryParams = {};
48
- if (perPage !== undefined) {
49
- _queryParams["per_page"] = (_a = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _a !== void 0 ? _a : null;
50
- }
51
- if (page !== undefined) {
52
- _queryParams["page"] = (_b = page === null || page === void 0 ? void 0 : page.toString()) !== null && _b !== void 0 ? _b : null;
53
- }
54
- if (includeTotals !== undefined) {
55
- _queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
56
- }
47
+ const _queryParams = {
48
+ per_page: perPage,
49
+ page,
50
+ include_totals: includeTotals,
51
+ };
57
52
  const _authRequest = yield this._options.authProvider.getAuthRequest();
58
- let _headers = mergeHeaders(_authRequest.headers, (_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
59
- const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
60
- url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.ManagementEnvironment.Default, `users/${core.url.encodePathParam(id)}/permissions`),
53
+ 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);
54
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
55
+ 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, `users/${core.url.encodePathParam(id)}/permissions`),
61
56
  method: "GET",
62
57
  headers: _headers,
63
58
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
64
- timeoutMs: ((_k = (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.timeoutInSeconds) !== null && _k !== void 0 ? _k : 60) * 1000,
65
- maxRetries: (_l = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _l !== void 0 ? _l : (_m = this._options) === null || _m === void 0 ? void 0 : _m.maxRetries,
59
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
60
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
66
61
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
67
- fetchFn: (_o = this._options) === null || _o === void 0 ? void 0 : _o.fetch,
62
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
68
63
  logging: this._options.logging,
69
64
  });
70
65
  if (_response.ok) {
@@ -40,26 +40,23 @@ export class RefreshTokenClient {
40
40
  list(user_id_1) {
41
41
  return __awaiter(this, arguments, void 0, function* (user_id, request = {}, requestOptions) {
42
42
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
43
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
43
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
44
44
  const { from: from_, take = 50 } = request;
45
- const _queryParams = {};
46
- if (from_ !== undefined) {
47
- _queryParams["from"] = from_;
48
- }
49
- if (take !== undefined) {
50
- _queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
51
- }
45
+ const _queryParams = {
46
+ from: from_,
47
+ take,
48
+ };
52
49
  const _authRequest = yield this._options.authProvider.getAuthRequest();
53
- 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);
54
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
55
- 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, `users/${core.url.encodePathParam(user_id)}/refresh-tokens`),
50
+ 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);
51
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
52
+ 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, `users/${core.url.encodePathParam(user_id)}/refresh-tokens`),
56
53
  method: "GET",
57
54
  headers: _headers,
58
55
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
59
- 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,
60
- 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,
56
+ 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,
57
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
61
58
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
62
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
59
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
63
60
  logging: this._options.logging,
64
61
  });
65
62
  if (_response.ok) {
@@ -42,29 +42,24 @@ export class RolesClient {
42
42
  list(id_1) {
43
43
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
44
44
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
45
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
45
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
46
46
  const { per_page: perPage = 50, page = 0, include_totals: includeTotals = true } = request;
47
- const _queryParams = {};
48
- if (perPage !== undefined) {
49
- _queryParams["per_page"] = (_a = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _a !== void 0 ? _a : null;
50
- }
51
- if (page !== undefined) {
52
- _queryParams["page"] = (_b = page === null || page === void 0 ? void 0 : page.toString()) !== null && _b !== void 0 ? _b : null;
53
- }
54
- if (includeTotals !== undefined) {
55
- _queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
56
- }
47
+ const _queryParams = {
48
+ per_page: perPage,
49
+ page,
50
+ include_totals: includeTotals,
51
+ };
57
52
  const _authRequest = yield this._options.authProvider.getAuthRequest();
58
- let _headers = mergeHeaders(_authRequest.headers, (_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
59
- const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
60
- url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.ManagementEnvironment.Default, `users/${core.url.encodePathParam(id)}/roles`),
53
+ 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);
54
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
55
+ 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, `users/${core.url.encodePathParam(id)}/roles`),
61
56
  method: "GET",
62
57
  headers: _headers,
63
58
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
64
- timeoutMs: ((_k = (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.timeoutInSeconds) !== null && _k !== void 0 ? _k : 60) * 1000,
65
- maxRetries: (_l = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _l !== void 0 ? _l : (_m = this._options) === null || _m === void 0 ? void 0 : _m.maxRetries,
59
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
60
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
66
61
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
67
- fetchFn: (_o = this._options) === null || _o === void 0 ? void 0 : _o.fetch,
62
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
68
63
  logging: this._options.logging,
69
64
  });
70
65
  if (_response.ok) {
@@ -40,26 +40,23 @@ export class SessionsClient {
40
40
  list(user_id_1) {
41
41
  return __awaiter(this, arguments, void 0, function* (user_id, request = {}, requestOptions) {
42
42
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
43
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
43
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
44
44
  const { from: from_, take = 50 } = request;
45
- const _queryParams = {};
46
- if (from_ !== undefined) {
47
- _queryParams["from"] = from_;
48
- }
49
- if (take !== undefined) {
50
- _queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
51
- }
45
+ const _queryParams = {
46
+ from: from_,
47
+ take,
48
+ };
52
49
  const _authRequest = yield this._options.authProvider.getAuthRequest();
53
- 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);
54
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
55
- 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, `users/${core.url.encodePathParam(user_id)}/sessions`),
50
+ 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);
51
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
52
+ 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, `users/${core.url.encodePathParam(user_id)}/sessions`),
56
53
  method: "GET",
57
54
  headers: _headers,
58
55
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
59
- 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,
60
- 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,
56
+ 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,
57
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
61
58
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
62
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
59
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
63
60
  logging: this._options.logging,
64
61
  });
65
62
  if (_response.ok) {