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
@@ -80,38 +80,27 @@ class RulesClient {
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, _m, _o, _p, _q;
83
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
84
84
  const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true, enabled, fields, include_fields: includeFields, } = request;
85
- const _queryParams = {};
86
- if (page !== undefined) {
87
- _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
88
- }
89
- if (perPage !== undefined) {
90
- _queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
91
- }
92
- if (includeTotals !== undefined) {
93
- _queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
94
- }
95
- if (enabled !== undefined) {
96
- _queryParams["enabled"] = (_d = enabled === null || enabled === void 0 ? void 0 : enabled.toString()) !== null && _d !== void 0 ? _d : null;
97
- }
98
- if (fields !== undefined) {
99
- _queryParams["fields"] = fields;
100
- }
101
- if (includeFields !== undefined) {
102
- _queryParams["include_fields"] = (_e = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _e !== void 0 ? _e : null;
103
- }
85
+ const _queryParams = {
86
+ page,
87
+ per_page: perPage,
88
+ include_totals: includeTotals,
89
+ enabled,
90
+ fields,
91
+ include_fields: includeFields,
92
+ };
104
93
  const _authRequest = yield this._options.authProvider.getAuthRequest();
105
- let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_f = this._options) === null || _f === void 0 ? void 0 : _f.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
106
- const _response = yield ((_g = this._options.fetcher) !== null && _g !== void 0 ? _g : core.fetcher)({
107
- 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, "rules"),
94
+ 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);
95
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
96
+ 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, "rules"),
108
97
  method: "GET",
109
98
  headers: _headers,
110
99
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
111
- 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,
112
- 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,
100
+ 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,
101
+ 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,
113
102
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
114
- fetchFn: (_q = this._options) === null || _q === void 0 ? void 0 : _q.fetch,
103
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
115
104
  logging: this._options.logging,
116
105
  });
117
106
  if (_response.ok) {
@@ -248,26 +237,23 @@ class RulesClient {
248
237
  }
249
238
  __get(id_1) {
250
239
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
251
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
240
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
252
241
  const { fields, include_fields: includeFields } = request;
253
- const _queryParams = {};
254
- if (fields !== undefined) {
255
- _queryParams["fields"] = fields;
256
- }
257
- if (includeFields !== undefined) {
258
- _queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
259
- }
242
+ const _queryParams = {
243
+ fields,
244
+ include_fields: includeFields,
245
+ };
260
246
  const _authRequest = yield this._options.authProvider.getAuthRequest();
261
- 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);
262
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
263
- 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, `rules/${core.url.encodePathParam(id)}`),
247
+ 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);
248
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
249
+ 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, `rules/${core.url.encodePathParam(id)}`),
264
250
  method: "GET",
265
251
  headers: _headers,
266
252
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
267
- 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,
268
- 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,
253
+ 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,
254
+ 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,
269
255
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
270
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
256
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
271
257
  logging: this._options.logging,
272
258
  });
273
259
  if (_response.ok) {
@@ -86,29 +86,24 @@ class SelfServiceProfilesClient {
86
86
  list() {
87
87
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
88
88
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
89
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
89
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
90
90
  const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true } = request;
91
- const _queryParams = {};
92
- if (page !== undefined) {
93
- _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
94
- }
95
- if (perPage !== undefined) {
96
- _queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
97
- }
98
- if (includeTotals !== undefined) {
99
- _queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
100
- }
91
+ const _queryParams = {
92
+ page,
93
+ per_page: perPage,
94
+ include_totals: includeTotals,
95
+ };
101
96
  const _authRequest = yield this._options.authProvider.getAuthRequest();
102
- let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
103
- const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
104
- 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, "self-service-profiles"),
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, "self-service-profiles"),
105
100
  method: "GET",
106
101
  headers: _headers,
107
102
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
108
- 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,
109
- 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,
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,
110
105
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
111
- fetchFn: (_o = this._options) === null || _o === void 0 ? void 0 : _o.fetch,
106
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
112
107
  logging: this._options.logging,
113
108
  });
114
109
  if (_response.ok) {
@@ -135,13 +135,10 @@ class StatsClient {
135
135
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
136
136
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
137
137
  const { from: from_, to } = request;
138
- const _queryParams = {};
139
- if (from_ !== undefined) {
140
- _queryParams["from"] = from_;
141
- }
142
- if (to !== undefined) {
143
- _queryParams["to"] = to;
144
- }
138
+ const _queryParams = {
139
+ from: from_,
140
+ to,
141
+ };
145
142
  const _authRequest = yield this._options.authProvider.getAuthRequest();
146
143
  let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
147
144
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -77,26 +77,23 @@ class SettingsClient {
77
77
  }
78
78
  __get() {
79
79
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
80
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
80
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
81
81
  const { fields, include_fields: includeFields } = request;
82
- const _queryParams = {};
83
- if (fields !== undefined) {
84
- _queryParams["fields"] = fields;
85
- }
86
- if (includeFields !== undefined) {
87
- _queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
88
- }
82
+ const _queryParams = {
83
+ fields,
84
+ include_fields: includeFields,
85
+ };
89
86
  const _authRequest = yield this._options.authProvider.getAuthRequest();
90
- 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);
91
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
92
- 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, "tenants/settings"),
87
+ 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);
88
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
89
+ 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, "tenants/settings"),
93
90
  method: "GET",
94
91
  headers: _headers,
95
92
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
96
- 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,
97
- 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,
93
+ 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,
94
+ 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,
98
95
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
99
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
96
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
100
97
  logging: this._options.logging,
101
98
  });
102
99
  if (_response.ok) {
@@ -85,26 +85,23 @@ class TokenExchangeProfilesClient {
85
85
  list() {
86
86
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
87
87
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
88
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
88
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
89
89
  const { from: from_, take = 50 } = request;
90
- const _queryParams = {};
91
- if (from_ !== undefined) {
92
- _queryParams["from"] = from_;
93
- }
94
- if (take !== undefined) {
95
- _queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
96
- }
90
+ const _queryParams = {
91
+ from: from_,
92
+ take,
93
+ };
97
94
  const _authRequest = yield this._options.authProvider.getAuthRequest();
98
- 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);
99
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
100
- 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, "token-exchange-profiles"),
95
+ 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);
96
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
97
+ 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, "token-exchange-profiles"),
101
98
  method: "GET",
102
99
  headers: _headers,
103
100
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
104
- 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,
105
- 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,
101
+ 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,
102
+ 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,
106
103
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
107
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
104
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
108
105
  logging: this._options.logging,
109
106
  });
110
107
  if (_response.ok) {
@@ -75,26 +75,23 @@ class UserAttributeProfilesClient {
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, "user-attribute-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, "user-attribute-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) {
@@ -77,24 +77,23 @@ class UserBlocksClient {
77
77
  }
78
78
  __listByIdentifier(request, requestOptions) {
79
79
  return __awaiter(this, void 0, void 0, function* () {
80
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
80
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
81
81
  const { identifier, consider_brute_force_enablement: considerBruteForceEnablement } = request;
82
- const _queryParams = {};
83
- _queryParams["identifier"] = identifier;
84
- if (considerBruteForceEnablement !== undefined) {
85
- _queryParams["consider_brute_force_enablement"] = (_a = considerBruteForceEnablement === null || considerBruteForceEnablement === void 0 ? void 0 : considerBruteForceEnablement.toString()) !== null && _a !== void 0 ? _a : null;
86
- }
82
+ const _queryParams = {
83
+ identifier,
84
+ consider_brute_force_enablement: considerBruteForceEnablement,
85
+ };
87
86
  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, "user-blocks"),
87
+ 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);
88
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
89
+ 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, "user-blocks"),
91
90
  method: "GET",
92
91
  headers: _headers,
93
92
  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,
93
+ 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,
94
+ 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
95
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
97
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
96
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
98
97
  logging: this._options.logging,
99
98
  });
100
99
  if (_response.ok) {
@@ -149,8 +148,9 @@ class UserBlocksClient {
149
148
  return __awaiter(this, void 0, void 0, function* () {
150
149
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
151
150
  const { identifier } = request;
152
- const _queryParams = {};
153
- _queryParams["identifier"] = identifier;
151
+ const _queryParams = {
152
+ identifier,
153
+ };
154
154
  const _authRequest = yield this._options.authProvider.getAuthRequest();
155
155
  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);
156
156
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -211,23 +211,22 @@ class UserBlocksClient {
211
211
  }
212
212
  __list(id_1) {
213
213
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
214
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
214
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
215
215
  const { consider_brute_force_enablement: considerBruteForceEnablement } = request;
216
- const _queryParams = {};
217
- if (considerBruteForceEnablement !== undefined) {
218
- _queryParams["consider_brute_force_enablement"] = (_a = considerBruteForceEnablement === null || considerBruteForceEnablement === void 0 ? void 0 : considerBruteForceEnablement.toString()) !== null && _a !== void 0 ? _a : null;
219
- }
216
+ const _queryParams = {
217
+ consider_brute_force_enablement: considerBruteForceEnablement,
218
+ };
220
219
  const _authRequest = yield this._options.authProvider.getAuthRequest();
221
- 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);
222
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
223
- 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, `user-blocks/${core.url.encodePathParam(id)}`),
220
+ 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);
221
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
222
+ 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, `user-blocks/${core.url.encodePathParam(id)}`),
224
223
  method: "GET",
225
224
  headers: _headers,
226
225
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
227
- 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,
228
- 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,
226
+ 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,
227
+ 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,
229
228
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
230
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
229
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
231
230
  logging: this._options.logging,
232
231
  });
233
232
  if (_response.ok) {
@@ -78,38 +78,27 @@ class UserGrantsClient {
78
78
  list() {
79
79
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
80
80
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
81
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
81
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
82
82
  const { per_page: perPage = 50, page = 0, include_totals: includeTotals = true, user_id: userId, client_id: clientId, audience, } = request;
83
- const _queryParams = {};
84
- if (perPage !== undefined) {
85
- _queryParams["per_page"] = (_a = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _a !== void 0 ? _a : null;
86
- }
87
- if (page !== undefined) {
88
- _queryParams["page"] = (_b = page === null || page === void 0 ? void 0 : page.toString()) !== null && _b !== void 0 ? _b : null;
89
- }
90
- if (includeTotals !== undefined) {
91
- _queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
92
- }
93
- if (userId !== undefined) {
94
- _queryParams["user_id"] = userId;
95
- }
96
- if (clientId !== undefined) {
97
- _queryParams["client_id"] = clientId;
98
- }
99
- if (audience !== undefined) {
100
- _queryParams["audience"] = audience;
101
- }
83
+ const _queryParams = {
84
+ per_page: perPage,
85
+ page,
86
+ include_totals: includeTotals,
87
+ user_id: userId,
88
+ client_id: clientId,
89
+ audience,
90
+ };
102
91
  const _authRequest = yield this._options.authProvider.getAuthRequest();
103
- let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
104
- const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
105
- 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, "grants"),
92
+ 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);
93
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
94
+ 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, "grants"),
106
95
  method: "GET",
107
96
  headers: _headers,
108
97
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
109
- 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,
110
- 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,
98
+ 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,
99
+ 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,
111
100
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
112
- fetchFn: (_o = this._options) === null || _o === void 0 ? void 0 : _o.fetch,
101
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
113
102
  logging: this._options.logging,
114
103
  });
115
104
  if (_response.ok) {
@@ -172,8 +161,9 @@ class UserGrantsClient {
172
161
  return __awaiter(this, void 0, void 0, function* () {
173
162
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
174
163
  const { user_id: userId } = request;
175
- const _queryParams = {};
176
- _queryParams["user_id"] = userId;
164
+ const _queryParams = {
165
+ user_id: userId,
166
+ };
177
167
  const _authRequest = yield this._options.authProvider.getAuthRequest();
178
168
  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);
179
169
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({