auth0 5.3.1 → 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 (176) hide show
  1. package/dist/cjs/management/BaseClient.d.ts +4 -4
  2. package/dist/cjs/management/api/requests/requests.d.ts +21 -8
  3. package/dist/cjs/management/api/resources/actions/client/Client.js +25 -37
  4. package/dist/cjs/management/api/resources/actions/resources/modules/client/Client.js +22 -28
  5. package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/Client.js +11 -14
  6. package/dist/cjs/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.js +11 -14
  7. package/dist/cjs/management/api/resources/actions/resources/versions/client/Client.js +12 -15
  8. package/dist/cjs/management/api/resources/branding/resources/phone/resources/providers/client/Client.js +10 -11
  9. package/dist/cjs/management/api/resources/branding/resources/phone/resources/templates/client/Client.js +10 -11
  10. package/dist/cjs/management/api/resources/clientGrants/client/Client.js +15 -26
  11. package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.js +11 -14
  12. package/dist/cjs/management/api/resources/clients/client/Client.js +29 -49
  13. package/dist/cjs/management/api/resources/clients/resources/connections/client/Client.js +18 -28
  14. package/dist/cjs/management/api/resources/connectionProfiles/client/Client.js +11 -14
  15. package/dist/cjs/management/api/resources/connections/client/Client.d.ts +2 -2
  16. package/dist/cjs/management/api/resources/connections/client/Client.js +34 -49
  17. package/dist/cjs/management/api/resources/connections/resources/clients/client/Client.js +11 -14
  18. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.js +13 -16
  19. package/dist/cjs/management/api/resources/connections/resources/keys/client/Client.d.ts +19 -0
  20. package/dist/cjs/management/api/resources/connections/resources/keys/client/Client.js +71 -1
  21. package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/client/Client.d.ts +18 -0
  22. package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/client/Client.js +78 -1
  23. package/dist/cjs/management/api/resources/connections/resources/users/client/Client.js +3 -2
  24. package/dist/cjs/management/api/resources/customDomains/client/Client.js +13 -20
  25. package/dist/cjs/management/api/resources/deviceCredentials/client/Client.js +17 -32
  26. package/dist/cjs/management/api/resources/emails/resources/provider/client/Client.js +11 -14
  27. package/dist/cjs/management/api/resources/eventStreams/client/Client.js +11 -14
  28. package/dist/cjs/management/api/resources/eventStreams/resources/deliveries/client/Client.js +15 -26
  29. package/dist/cjs/management/api/resources/flows/client/Client.js +21 -37
  30. package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.js +14 -23
  31. package/dist/cjs/management/api/resources/flows/resources/vault/resources/connections/client/Client.js +12 -17
  32. package/dist/cjs/management/api/resources/forms/client/Client.js +20 -34
  33. package/dist/cjs/management/api/resources/groups/client/Client.js +16 -29
  34. package/dist/cjs/management/api/resources/groups/resources/members/client/Client.js +13 -20
  35. package/dist/cjs/management/api/resources/hooks/client/Client.js +18 -30
  36. package/dist/cjs/management/api/resources/jobs/resources/usersImports/client/Client.js +14 -14
  37. package/dist/cjs/management/api/resources/keys/resources/encryption/client/Client.js +12 -17
  38. package/dist/cjs/management/api/resources/logs/client/Client.js +16 -29
  39. package/dist/cjs/management/api/resources/networkAcls/client/Client.js +12 -17
  40. package/dist/cjs/management/api/resources/organizations/client/Client.js +12 -17
  41. package/dist/cjs/management/api/resources/organizations/resources/clientGrants/client/Client.js +15 -31
  42. package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.js +11 -14
  43. package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.js +12 -17
  44. package/dist/cjs/management/api/resources/organizations/resources/invitations/client/Client.js +26 -40
  45. package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.js +13 -20
  46. package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.js +12 -17
  47. package/dist/cjs/management/api/resources/prompts/resources/rendering/client/Client.js +17 -32
  48. package/dist/cjs/management/api/resources/resourceServers/client/Client.js +24 -39
  49. package/dist/cjs/management/api/resources/roles/client/Client.js +13 -20
  50. package/dist/cjs/management/api/resources/roles/resources/permissions/client/Client.js +12 -17
  51. package/dist/cjs/management/api/resources/roles/resources/users/client/Client.js +11 -14
  52. package/dist/cjs/management/api/resources/rules/client/Client.js +26 -40
  53. package/dist/cjs/management/api/resources/selfServiceProfiles/client/Client.js +12 -17
  54. package/dist/cjs/management/api/resources/stats/client/Client.js +4 -7
  55. package/dist/cjs/management/api/resources/tenants/resources/settings/client/Client.js +11 -14
  56. package/dist/cjs/management/api/resources/tokenExchangeProfiles/client/Client.js +11 -14
  57. package/dist/cjs/management/api/resources/userAttributeProfiles/client/Client.js +11 -14
  58. package/dist/cjs/management/api/resources/userBlocks/client/Client.js +24 -25
  59. package/dist/cjs/management/api/resources/userGrants/client/Client.js +18 -28
  60. package/dist/cjs/management/api/resources/users/client/Client.js +42 -67
  61. package/dist/cjs/management/api/resources/users/resources/authenticationMethods/client/Client.js +12 -17
  62. package/dist/cjs/management/api/resources/users/resources/connectedAccounts/client/Client.js +11 -14
  63. package/dist/cjs/management/api/resources/users/resources/groups/client/Client.js +13 -20
  64. package/dist/cjs/management/api/resources/users/resources/logs/client/Client.js +13 -20
  65. package/dist/cjs/management/api/resources/users/resources/organizations/client/Client.js +12 -17
  66. package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.js +12 -17
  67. package/dist/cjs/management/api/resources/users/resources/refreshToken/client/Client.js +11 -14
  68. package/dist/cjs/management/api/resources/users/resources/roles/client/Client.js +12 -17
  69. package/dist/cjs/management/api/resources/users/resources/sessions/client/Client.js +11 -14
  70. package/dist/cjs/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.js +11 -14
  71. package/dist/cjs/management/api/types/types.d.ts +4448 -4299
  72. package/dist/cjs/management/api/types/types.js +41 -12
  73. package/dist/cjs/management/auth/BearerAuthProvider.d.ts +14 -10
  74. package/dist/cjs/management/auth/BearerAuthProvider.js +15 -6
  75. package/dist/cjs/management/core/fetcher/EndpointSupplier.d.ts +2 -2
  76. package/dist/cjs/management/core/fetcher/Fetcher.d.ts +1 -2
  77. package/dist/cjs/management/core/fetcher/Fetcher.js +7 -1
  78. package/dist/cjs/management/core/form-data-utils/FormDataWrapper.js +1 -1
  79. package/dist/cjs/management/core/headers.d.ts +2 -2
  80. package/dist/cjs/management/core/pagination/CustomPager.d.ts +29 -44
  81. package/dist/cjs/management/core/pagination/CustomPager.js +60 -42
  82. package/dist/cjs/management/core/pagination/exports.d.ts +0 -1
  83. package/dist/cjs/management/core/pagination/exports.js +0 -3
  84. package/dist/cjs/management/core/pagination/index.d.ts +1 -1
  85. package/dist/cjs/management/core/pagination/index.js +2 -1
  86. package/dist/cjs/management/version.d.ts +1 -1
  87. package/dist/cjs/management/version.js +1 -1
  88. package/dist/esm/management/BaseClient.d.mts +4 -4
  89. package/dist/esm/management/api/requests/requests.d.mts +21 -8
  90. package/dist/esm/management/api/resources/actions/client/Client.mjs +25 -37
  91. package/dist/esm/management/api/resources/actions/resources/modules/client/Client.mjs +22 -28
  92. package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/Client.mjs +11 -14
  93. package/dist/esm/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.mjs +11 -14
  94. package/dist/esm/management/api/resources/actions/resources/versions/client/Client.mjs +12 -15
  95. package/dist/esm/management/api/resources/branding/resources/phone/resources/providers/client/Client.mjs +10 -11
  96. package/dist/esm/management/api/resources/branding/resources/phone/resources/templates/client/Client.mjs +10 -11
  97. package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +15 -26
  98. package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.mjs +11 -14
  99. package/dist/esm/management/api/resources/clients/client/Client.mjs +29 -49
  100. package/dist/esm/management/api/resources/clients/resources/connections/client/Client.mjs +18 -28
  101. package/dist/esm/management/api/resources/connectionProfiles/client/Client.mjs +11 -14
  102. package/dist/esm/management/api/resources/connections/client/Client.d.mts +2 -2
  103. package/dist/esm/management/api/resources/connections/client/Client.mjs +34 -49
  104. package/dist/esm/management/api/resources/connections/resources/clients/client/Client.mjs +11 -14
  105. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.mjs +13 -16
  106. package/dist/esm/management/api/resources/connections/resources/keys/client/Client.d.mts +19 -0
  107. package/dist/esm/management/api/resources/connections/resources/keys/client/Client.mjs +71 -1
  108. package/dist/esm/management/api/resources/connections/resources/scimConfiguration/client/Client.d.mts +18 -0
  109. package/dist/esm/management/api/resources/connections/resources/scimConfiguration/client/Client.mjs +78 -1
  110. package/dist/esm/management/api/resources/connections/resources/users/client/Client.mjs +3 -2
  111. package/dist/esm/management/api/resources/customDomains/client/Client.mjs +13 -20
  112. package/dist/esm/management/api/resources/deviceCredentials/client/Client.mjs +17 -32
  113. package/dist/esm/management/api/resources/emails/resources/provider/client/Client.mjs +11 -14
  114. package/dist/esm/management/api/resources/eventStreams/client/Client.mjs +11 -14
  115. package/dist/esm/management/api/resources/eventStreams/resources/deliveries/client/Client.mjs +15 -26
  116. package/dist/esm/management/api/resources/flows/client/Client.mjs +21 -37
  117. package/dist/esm/management/api/resources/flows/resources/executions/client/Client.mjs +14 -23
  118. package/dist/esm/management/api/resources/flows/resources/vault/resources/connections/client/Client.mjs +12 -17
  119. package/dist/esm/management/api/resources/forms/client/Client.mjs +20 -34
  120. package/dist/esm/management/api/resources/groups/client/Client.mjs +16 -29
  121. package/dist/esm/management/api/resources/groups/resources/members/client/Client.mjs +13 -20
  122. package/dist/esm/management/api/resources/hooks/client/Client.mjs +18 -30
  123. package/dist/esm/management/api/resources/jobs/resources/usersImports/client/Client.mjs +14 -14
  124. package/dist/esm/management/api/resources/keys/resources/encryption/client/Client.mjs +12 -17
  125. package/dist/esm/management/api/resources/logs/client/Client.mjs +16 -29
  126. package/dist/esm/management/api/resources/networkAcls/client/Client.mjs +12 -17
  127. package/dist/esm/management/api/resources/organizations/client/Client.mjs +12 -17
  128. package/dist/esm/management/api/resources/organizations/resources/clientGrants/client/Client.mjs +15 -31
  129. package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.mjs +11 -14
  130. package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.mjs +12 -17
  131. package/dist/esm/management/api/resources/organizations/resources/invitations/client/Client.mjs +26 -40
  132. package/dist/esm/management/api/resources/organizations/resources/members/client/Client.mjs +13 -20
  133. package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.mjs +12 -17
  134. package/dist/esm/management/api/resources/prompts/resources/rendering/client/Client.mjs +17 -32
  135. package/dist/esm/management/api/resources/resourceServers/client/Client.mjs +24 -39
  136. package/dist/esm/management/api/resources/roles/client/Client.mjs +13 -20
  137. package/dist/esm/management/api/resources/roles/resources/permissions/client/Client.mjs +12 -17
  138. package/dist/esm/management/api/resources/roles/resources/users/client/Client.mjs +11 -14
  139. package/dist/esm/management/api/resources/rules/client/Client.mjs +26 -40
  140. package/dist/esm/management/api/resources/selfServiceProfiles/client/Client.mjs +12 -17
  141. package/dist/esm/management/api/resources/stats/client/Client.mjs +4 -7
  142. package/dist/esm/management/api/resources/tenants/resources/settings/client/Client.mjs +11 -14
  143. package/dist/esm/management/api/resources/tokenExchangeProfiles/client/Client.mjs +11 -14
  144. package/dist/esm/management/api/resources/userAttributeProfiles/client/Client.mjs +11 -14
  145. package/dist/esm/management/api/resources/userBlocks/client/Client.mjs +24 -25
  146. package/dist/esm/management/api/resources/userGrants/client/Client.mjs +18 -28
  147. package/dist/esm/management/api/resources/users/client/Client.mjs +42 -67
  148. package/dist/esm/management/api/resources/users/resources/authenticationMethods/client/Client.mjs +12 -17
  149. package/dist/esm/management/api/resources/users/resources/connectedAccounts/client/Client.mjs +11 -14
  150. package/dist/esm/management/api/resources/users/resources/groups/client/Client.mjs +13 -20
  151. package/dist/esm/management/api/resources/users/resources/logs/client/Client.mjs +13 -20
  152. package/dist/esm/management/api/resources/users/resources/organizations/client/Client.mjs +12 -17
  153. package/dist/esm/management/api/resources/users/resources/permissions/client/Client.mjs +12 -17
  154. package/dist/esm/management/api/resources/users/resources/refreshToken/client/Client.mjs +11 -14
  155. package/dist/esm/management/api/resources/users/resources/roles/client/Client.mjs +12 -17
  156. package/dist/esm/management/api/resources/users/resources/sessions/client/Client.mjs +11 -14
  157. package/dist/esm/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.mjs +11 -14
  158. package/dist/esm/management/api/types/types.d.mts +4448 -4299
  159. package/dist/esm/management/api/types/types.mjs +32 -3
  160. package/dist/esm/management/auth/BearerAuthProvider.d.mts +14 -10
  161. package/dist/esm/management/auth/BearerAuthProvider.mjs +15 -6
  162. package/dist/esm/management/core/fetcher/EndpointSupplier.d.mts +2 -2
  163. package/dist/esm/management/core/fetcher/Fetcher.d.mts +1 -2
  164. package/dist/esm/management/core/fetcher/Fetcher.mjs +7 -1
  165. package/dist/esm/management/core/form-data-utils/FormDataWrapper.mjs +1 -1
  166. package/dist/esm/management/core/headers.d.mts +2 -2
  167. package/dist/esm/management/core/pagination/CustomPager.d.mts +29 -44
  168. package/dist/esm/management/core/pagination/CustomPager.mjs +58 -41
  169. package/dist/esm/management/core/pagination/exports.d.mts +0 -1
  170. package/dist/esm/management/core/pagination/exports.mjs +1 -1
  171. package/dist/esm/management/core/pagination/index.d.mts +1 -1
  172. package/dist/esm/management/core/pagination/index.mjs +1 -1
  173. package/dist/esm/management/version.d.mts +1 -1
  174. package/dist/esm/management/version.mjs +1 -1
  175. package/package.json +4 -3
  176. package/reference.md +271 -119
@@ -44,38 +44,27 @@ export class RulesClient {
44
44
  list() {
45
45
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
46
46
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
47
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
47
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
48
48
  const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true, enabled, fields, include_fields: includeFields, } = request;
49
- const _queryParams = {};
50
- if (page !== undefined) {
51
- _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
52
- }
53
- if (perPage !== undefined) {
54
- _queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
55
- }
56
- if (includeTotals !== undefined) {
57
- _queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
58
- }
59
- if (enabled !== undefined) {
60
- _queryParams["enabled"] = (_d = enabled === null || enabled === void 0 ? void 0 : enabled.toString()) !== null && _d !== void 0 ? _d : null;
61
- }
62
- if (fields !== undefined) {
63
- _queryParams["fields"] = fields;
64
- }
65
- if (includeFields !== undefined) {
66
- _queryParams["include_fields"] = (_e = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _e !== void 0 ? _e : null;
67
- }
49
+ const _queryParams = {
50
+ page,
51
+ per_page: perPage,
52
+ include_totals: includeTotals,
53
+ enabled,
54
+ fields,
55
+ include_fields: includeFields,
56
+ };
68
57
  const _authRequest = yield this._options.authProvider.getAuthRequest();
69
- 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);
70
- const _response = yield ((_g = this._options.fetcher) !== null && _g !== void 0 ? _g : core.fetcher)({
71
- 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"),
58
+ 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);
59
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
60
+ 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"),
72
61
  method: "GET",
73
62
  headers: _headers,
74
63
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
75
- 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,
76
- 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,
64
+ 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,
65
+ 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,
77
66
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
78
- fetchFn: (_q = this._options) === null || _q === void 0 ? void 0 : _q.fetch,
67
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
79
68
  logging: this._options.logging,
80
69
  });
81
70
  if (_response.ok) {
@@ -212,26 +201,23 @@ export class RulesClient {
212
201
  }
213
202
  __get(id_1) {
214
203
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
215
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
204
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
216
205
  const { fields, include_fields: includeFields } = request;
217
- const _queryParams = {};
218
- if (fields !== undefined) {
219
- _queryParams["fields"] = fields;
220
- }
221
- if (includeFields !== undefined) {
222
- _queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
223
- }
206
+ const _queryParams = {
207
+ fields,
208
+ include_fields: includeFields,
209
+ };
224
210
  const _authRequest = yield this._options.authProvider.getAuthRequest();
225
- 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);
226
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
227
- 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)}`),
211
+ 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);
212
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
213
+ 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)}`),
228
214
  method: "GET",
229
215
  headers: _headers,
230
216
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
231
- 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,
232
- 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,
217
+ 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,
218
+ 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,
233
219
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
234
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
220
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
235
221
  logging: this._options.logging,
236
222
  });
237
223
  if (_response.ok) {
@@ -50,29 +50,24 @@ export class SelfServiceProfilesClient {
50
50
  list() {
51
51
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
52
52
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
53
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
53
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
54
54
  const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true } = request;
55
- const _queryParams = {};
56
- if (page !== undefined) {
57
- _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
58
- }
59
- if (perPage !== undefined) {
60
- _queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
61
- }
62
- if (includeTotals !== undefined) {
63
- _queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
64
- }
55
+ const _queryParams = {
56
+ page,
57
+ per_page: perPage,
58
+ include_totals: includeTotals,
59
+ };
65
60
  const _authRequest = yield this._options.authProvider.getAuthRequest();
66
- 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);
67
- const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
68
- 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"),
61
+ 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);
62
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
63
+ 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"),
69
64
  method: "GET",
70
65
  headers: _headers,
71
66
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
72
- 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,
73
- 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,
67
+ 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,
68
+ 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,
74
69
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
75
- fetchFn: (_o = this._options) === null || _o === void 0 ? void 0 : _o.fetch,
70
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
76
71
  logging: this._options.logging,
77
72
  });
78
73
  if (_response.ok) {
@@ -99,13 +99,10 @@ export class StatsClient {
99
99
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
100
100
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
101
101
  const { from: from_, to } = request;
102
- const _queryParams = {};
103
- if (from_ !== undefined) {
104
- _queryParams["from"] = from_;
105
- }
106
- if (to !== undefined) {
107
- _queryParams["to"] = to;
108
- }
102
+ const _queryParams = {
103
+ from: from_,
104
+ to,
105
+ };
109
106
  const _authRequest = yield this._options.authProvider.getAuthRequest();
110
107
  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);
111
108
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -41,26 +41,23 @@ export class SettingsClient {
41
41
  }
42
42
  __get() {
43
43
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
44
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
44
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
45
45
  const { fields, include_fields: includeFields } = request;
46
- const _queryParams = {};
47
- if (fields !== undefined) {
48
- _queryParams["fields"] = fields;
49
- }
50
- if (includeFields !== undefined) {
51
- _queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
52
- }
46
+ const _queryParams = {
47
+ fields,
48
+ include_fields: includeFields,
49
+ };
53
50
  const _authRequest = yield this._options.authProvider.getAuthRequest();
54
- 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);
55
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
56
- 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"),
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, "tenants/settings"),
57
54
  method: "GET",
58
55
  headers: _headers,
59
56
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
60
- 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,
61
- 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,
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,
62
59
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
63
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
60
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
64
61
  logging: this._options.logging,
65
62
  });
66
63
  if (_response.ok) {
@@ -49,26 +49,23 @@ export class TokenExchangeProfilesClient {
49
49
  list() {
50
50
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
51
51
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
52
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
52
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
53
53
  const { from: from_, take = 50 } = request;
54
- const _queryParams = {};
55
- if (from_ !== undefined) {
56
- _queryParams["from"] = from_;
57
- }
58
- if (take !== undefined) {
59
- _queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
60
- }
54
+ const _queryParams = {
55
+ from: from_,
56
+ take,
57
+ };
61
58
  const _authRequest = yield this._options.authProvider.getAuthRequest();
62
- 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);
63
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
64
- 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"),
59
+ 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);
60
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
61
+ 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"),
65
62
  method: "GET",
66
63
  headers: _headers,
67
64
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
68
- 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,
69
- maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
65
+ 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,
66
+ 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,
70
67
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
71
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
68
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
72
69
  logging: this._options.logging,
73
70
  });
74
71
  if (_response.ok) {
@@ -39,26 +39,23 @@ export class UserAttributeProfilesClient {
39
39
  list() {
40
40
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
41
41
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
42
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
42
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
43
43
  const { from: from_, take = 50 } = request;
44
- const _queryParams = {};
45
- if (from_ !== undefined) {
46
- _queryParams["from"] = from_;
47
- }
48
- if (take !== undefined) {
49
- _queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
50
- }
44
+ const _queryParams = {
45
+ from: from_,
46
+ take,
47
+ };
51
48
  const _authRequest = yield this._options.authProvider.getAuthRequest();
52
- 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);
53
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
54
- 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"),
49
+ 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);
50
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
51
+ 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"),
55
52
  method: "GET",
56
53
  headers: _headers,
57
54
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
58
- 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,
59
- 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,
55
+ 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,
56
+ 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,
60
57
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
61
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
58
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
62
59
  logging: this._options.logging,
63
60
  });
64
61
  if (_response.ok) {
@@ -41,24 +41,23 @@ export class UserBlocksClient {
41
41
  }
42
42
  __listByIdentifier(request, requestOptions) {
43
43
  return __awaiter(this, void 0, void 0, function* () {
44
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
44
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
45
45
  const { identifier, consider_brute_force_enablement: considerBruteForceEnablement } = request;
46
- const _queryParams = {};
47
- _queryParams["identifier"] = identifier;
48
- if (considerBruteForceEnablement !== undefined) {
49
- _queryParams["consider_brute_force_enablement"] = (_a = considerBruteForceEnablement === null || considerBruteForceEnablement === void 0 ? void 0 : considerBruteForceEnablement.toString()) !== null && _a !== void 0 ? _a : null;
50
- }
46
+ const _queryParams = {
47
+ identifier,
48
+ consider_brute_force_enablement: considerBruteForceEnablement,
49
+ };
51
50
  const _authRequest = yield this._options.authProvider.getAuthRequest();
52
- 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);
53
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
54
- 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"),
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, "user-blocks"),
55
54
  method: "GET",
56
55
  headers: _headers,
57
56
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
58
- 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,
59
- 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,
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,
60
59
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
61
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
60
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
62
61
  logging: this._options.logging,
63
62
  });
64
63
  if (_response.ok) {
@@ -113,8 +112,9 @@ export class UserBlocksClient {
113
112
  return __awaiter(this, void 0, void 0, function* () {
114
113
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
115
114
  const { identifier } = request;
116
- const _queryParams = {};
117
- _queryParams["identifier"] = identifier;
115
+ const _queryParams = {
116
+ identifier,
117
+ };
118
118
  const _authRequest = yield this._options.authProvider.getAuthRequest();
119
119
  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);
120
120
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -175,23 +175,22 @@ export class UserBlocksClient {
175
175
  }
176
176
  __list(id_1) {
177
177
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
178
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
178
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
179
179
  const { consider_brute_force_enablement: considerBruteForceEnablement } = request;
180
- const _queryParams = {};
181
- if (considerBruteForceEnablement !== undefined) {
182
- _queryParams["consider_brute_force_enablement"] = (_a = considerBruteForceEnablement === null || considerBruteForceEnablement === void 0 ? void 0 : considerBruteForceEnablement.toString()) !== null && _a !== void 0 ? _a : null;
183
- }
180
+ const _queryParams = {
181
+ consider_brute_force_enablement: considerBruteForceEnablement,
182
+ };
184
183
  const _authRequest = yield this._options.authProvider.getAuthRequest();
185
- 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);
186
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
187
- 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)}`),
184
+ 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);
185
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
186
+ 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)}`),
188
187
  method: "GET",
189
188
  headers: _headers,
190
189
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
191
- 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,
192
- 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,
190
+ 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,
191
+ 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,
193
192
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
194
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
193
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
195
194
  logging: this._options.logging,
196
195
  });
197
196
  if (_response.ok) {
@@ -42,38 +42,27 @@ export class UserGrantsClient {
42
42
  list() {
43
43
  return __awaiter(this, arguments, void 0, function* (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, user_id: userId, client_id: clientId, audience, } = 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
- }
57
- if (userId !== undefined) {
58
- _queryParams["user_id"] = userId;
59
- }
60
- if (clientId !== undefined) {
61
- _queryParams["client_id"] = clientId;
62
- }
63
- if (audience !== undefined) {
64
- _queryParams["audience"] = audience;
65
- }
47
+ const _queryParams = {
48
+ per_page: perPage,
49
+ page,
50
+ include_totals: includeTotals,
51
+ user_id: userId,
52
+ client_id: clientId,
53
+ audience,
54
+ };
66
55
  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, "grants"),
56
+ 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);
57
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
58
+ 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"),
70
59
  method: "GET",
71
60
  headers: _headers,
72
61
  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,
62
+ 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,
63
+ 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
64
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
76
- fetchFn: (_o = this._options) === null || _o === void 0 ? void 0 : _o.fetch,
65
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
77
66
  logging: this._options.logging,
78
67
  });
79
68
  if (_response.ok) {
@@ -136,8 +125,9 @@ export class UserGrantsClient {
136
125
  return __awaiter(this, void 0, void 0, function* () {
137
126
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
138
127
  const { user_id: userId } = request;
139
- const _queryParams = {};
140
- _queryParams["user_id"] = userId;
128
+ const _queryParams = {
129
+ user_id: userId,
130
+ };
141
131
  const _authRequest = yield this._options.authProvider.getAuthRequest();
142
132
  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);
143
133
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({