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
@@ -41,26 +41,23 @@ export class DiscoveryDomainsClient {
41
41
  list(id_1) {
42
42
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
43
43
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
44
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
44
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
45
45
  const { from: from_, take = 50 } = request;
46
- const _queryParams = {};
47
- if (from_ !== undefined) {
48
- _queryParams["from"] = from_;
49
- }
50
- if (take !== undefined) {
51
- _queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
52
- }
46
+ const _queryParams = {
47
+ from: from_,
48
+ take,
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, `organizations/${core.url.encodePathParam(id)}/discovery-domains`),
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, `organizations/${core.url.encodePathParam(id)}/discovery-domains`),
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) {
@@ -41,29 +41,24 @@ export class EnabledConnectionsClient {
41
41
  list(id_1) {
42
42
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
43
43
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
44
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
44
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
45
45
  const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true } = request;
46
- const _queryParams = {};
47
- if (page !== undefined) {
48
- _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
49
- }
50
- if (perPage !== undefined) {
51
- _queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
52
- }
53
- if (includeTotals !== undefined) {
54
- _queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
55
- }
46
+ const _queryParams = {
47
+ page,
48
+ per_page: perPage,
49
+ include_totals: includeTotals,
50
+ };
56
51
  const _authRequest = yield this._options.authProvider.getAuthRequest();
57
- 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);
58
- const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
59
- 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, `organizations/${core.url.encodePathParam(id)}/enabled_connections`),
52
+ 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);
53
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
54
+ 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, `organizations/${core.url.encodePathParam(id)}/enabled_connections`),
60
55
  method: "GET",
61
56
  headers: _headers,
62
57
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
63
- 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,
64
- 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,
58
+ 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,
59
+ 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,
65
60
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
66
- fetchFn: (_o = this._options) === null || _o === void 0 ? void 0 : _o.fetch,
61
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
67
62
  logging: this._options.logging,
68
63
  });
69
64
  if (_response.ok) {
@@ -45,38 +45,27 @@ export class InvitationsClient {
45
45
  list(id_1) {
46
46
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
47
47
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
48
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
48
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
49
49
  const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true, fields, include_fields: includeFields, sort, } = request;
50
- const _queryParams = {};
51
- if (page !== undefined) {
52
- _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
53
- }
54
- if (perPage !== undefined) {
55
- _queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
56
- }
57
- if (includeTotals !== undefined) {
58
- _queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
59
- }
60
- if (fields !== undefined) {
61
- _queryParams["fields"] = fields;
62
- }
63
- if (includeFields !== undefined) {
64
- _queryParams["include_fields"] = (_d = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _d !== void 0 ? _d : null;
65
- }
66
- if (sort !== undefined) {
67
- _queryParams["sort"] = sort;
68
- }
50
+ const _queryParams = {
51
+ page,
52
+ per_page: perPage,
53
+ include_totals: includeTotals,
54
+ fields,
55
+ include_fields: includeFields,
56
+ sort,
57
+ };
69
58
  const _authRequest = yield this._options.authProvider.getAuthRequest();
70
- let _headers = mergeHeaders(_authRequest.headers, (_e = this._options) === null || _e === void 0 ? void 0 : _e.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
71
- const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
72
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.ManagementEnvironment.Default, `organizations/${core.url.encodePathParam(id)}/invitations`),
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, `organizations/${core.url.encodePathParam(id)}/invitations`),
73
62
  method: "GET",
74
63
  headers: _headers,
75
64
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
76
- timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
77
- maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.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,
78
67
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
79
- fetchFn: (_p = this._options) === null || _p === void 0 ? void 0 : _p.fetch,
68
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
80
69
  logging: this._options.logging,
81
70
  });
82
71
  if (_response.ok) {
@@ -219,26 +208,23 @@ export class InvitationsClient {
219
208
  }
220
209
  __get(id_1, invitation_id_1) {
221
210
  return __awaiter(this, arguments, void 0, function* (id, invitation_id, request = {}, requestOptions) {
222
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
211
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
223
212
  const { fields, include_fields: includeFields } = request;
224
- const _queryParams = {};
225
- if (fields !== undefined) {
226
- _queryParams["fields"] = fields;
227
- }
228
- if (includeFields !== undefined) {
229
- _queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
230
- }
213
+ const _queryParams = {
214
+ fields,
215
+ include_fields: includeFields,
216
+ };
231
217
  const _authRequest = yield this._options.authProvider.getAuthRequest();
232
- 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);
233
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
234
- 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, `organizations/${core.url.encodePathParam(id)}/invitations/${core.url.encodePathParam(invitation_id)}`),
218
+ 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);
219
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
220
+ 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, `organizations/${core.url.encodePathParam(id)}/invitations/${core.url.encodePathParam(invitation_id)}`),
235
221
  method: "GET",
236
222
  headers: _headers,
237
223
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
238
- 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,
239
- 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,
224
+ 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,
225
+ 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,
240
226
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
241
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
227
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
242
228
  logging: this._options.logging,
243
229
  });
244
230
  if (_response.ok) {
@@ -68,32 +68,25 @@ export class MembersClient {
68
68
  list(id_1) {
69
69
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
70
70
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
71
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
71
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
72
72
  const { from: from_, take = 50, fields, include_fields: includeFields } = request;
73
- const _queryParams = {};
74
- if (from_ !== undefined) {
75
- _queryParams["from"] = from_;
76
- }
77
- if (take !== undefined) {
78
- _queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
79
- }
80
- if (fields !== undefined) {
81
- _queryParams["fields"] = fields;
82
- }
83
- if (includeFields !== undefined) {
84
- _queryParams["include_fields"] = (_b = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _b !== void 0 ? _b : null;
85
- }
73
+ const _queryParams = {
74
+ from: from_,
75
+ take,
76
+ fields,
77
+ include_fields: includeFields,
78
+ };
86
79
  const _authRequest = yield this._options.authProvider.getAuthRequest();
87
- let _headers = mergeHeaders(_authRequest.headers, (_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
88
- const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
89
- url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ManagementEnvironment.Default, `organizations/${core.url.encodePathParam(id)}/members`),
80
+ 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);
81
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
82
+ 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, `organizations/${core.url.encodePathParam(id)}/members`),
90
83
  method: "GET",
91
84
  headers: _headers,
92
85
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
93
- timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
94
- maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
86
+ 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,
87
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
95
88
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
96
- fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
89
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
97
90
  logging: this._options.logging,
98
91
  });
99
92
  if (_response.ok) {
@@ -44,29 +44,24 @@ export class RolesClient {
44
44
  list(id_1, user_id_1) {
45
45
  return __awaiter(this, arguments, void 0, function* (id, user_id, 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;
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 } = 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
- }
49
+ const _queryParams = {
50
+ page,
51
+ per_page: perPage,
52
+ include_totals: includeTotals,
53
+ };
59
54
  const _authRequest = yield this._options.authProvider.getAuthRequest();
60
- 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);
61
- const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
62
- 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, `organizations/${core.url.encodePathParam(id)}/members/${core.url.encodePathParam(user_id)}/roles`),
55
+ 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);
56
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
57
+ 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, `organizations/${core.url.encodePathParam(id)}/members/${core.url.encodePathParam(user_id)}/roles`),
63
58
  method: "GET",
64
59
  headers: _headers,
65
60
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
66
- 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,
67
- 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,
61
+ 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,
62
+ 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,
68
63
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
69
- fetchFn: (_o = this._options) === null || _o === void 0 ? void 0 : _o.fetch,
64
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
70
65
  logging: this._options.logging,
71
66
  });
72
67
  if (_response.ok) {
@@ -46,44 +46,29 @@ export class RenderingClient {
46
46
  list() {
47
47
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
48
48
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
49
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
49
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
50
50
  const { fields, include_fields: includeFields, page = 0, per_page: perPage = 50, include_totals: includeTotals = true, prompt, screen, rendering_mode: renderingMode, } = request;
51
- const _queryParams = {};
52
- if (fields !== undefined) {
53
- _queryParams["fields"] = fields;
54
- }
55
- if (includeFields !== undefined) {
56
- _queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
57
- }
58
- if (page !== undefined) {
59
- _queryParams["page"] = (_b = page === null || page === void 0 ? void 0 : page.toString()) !== null && _b !== void 0 ? _b : null;
60
- }
61
- if (perPage !== undefined) {
62
- _queryParams["per_page"] = (_c = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _c !== void 0 ? _c : null;
63
- }
64
- if (includeTotals !== undefined) {
65
- _queryParams["include_totals"] = (_d = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _d !== void 0 ? _d : null;
66
- }
67
- if (prompt !== undefined) {
68
- _queryParams["prompt"] = prompt;
69
- }
70
- if (screen !== undefined) {
71
- _queryParams["screen"] = screen;
72
- }
73
- if (renderingMode !== undefined) {
74
- _queryParams["rendering_mode"] = renderingMode;
75
- }
51
+ const _queryParams = {
52
+ fields,
53
+ include_fields: includeFields,
54
+ page,
55
+ per_page: perPage,
56
+ include_totals: includeTotals,
57
+ prompt,
58
+ screen,
59
+ rendering_mode: renderingMode !== undefined ? renderingMode : undefined,
60
+ };
76
61
  const _authRequest = yield this._options.authProvider.getAuthRequest();
77
- let _headers = mergeHeaders(_authRequest.headers, (_e = this._options) === null || _e === void 0 ? void 0 : _e.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
78
- const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
79
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.ManagementEnvironment.Default, "prompts/rendering"),
62
+ 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);
63
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
64
+ 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, "prompts/rendering"),
80
65
  method: "GET",
81
66
  headers: _headers,
82
67
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
83
- timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
84
- maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
68
+ 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,
69
+ 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,
85
70
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
86
- fetchFn: (_p = this._options) === null || _p === void 0 ? void 0 : _p.fetch,
71
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
87
72
  logging: this._options.logging,
88
73
  });
89
74
  if (_response.ok) {
@@ -41,40 +41,26 @@ export class ResourceServersClient {
41
41
  list() {
42
42
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
43
43
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
44
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
44
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
45
45
  const { identifiers, page = 0, per_page: perPage = 50, include_totals: includeTotals = true, include_fields: includeFields, } = request;
46
- const _queryParams = {};
47
- if (identifiers !== undefined) {
48
- if (Array.isArray(identifiers)) {
49
- _queryParams["identifiers"] = identifiers.map((item) => item);
50
- }
51
- else {
52
- _queryParams["identifiers"] = identifiers;
53
- }
54
- }
55
- if (page !== undefined) {
56
- _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
57
- }
58
- if (perPage !== undefined) {
59
- _queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
60
- }
61
- if (includeTotals !== undefined) {
62
- _queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
63
- }
64
- if (includeFields !== undefined) {
65
- _queryParams["include_fields"] = (_d = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _d !== void 0 ? _d : null;
66
- }
46
+ const _queryParams = {
47
+ identifiers,
48
+ page,
49
+ per_page: perPage,
50
+ include_totals: includeTotals,
51
+ include_fields: includeFields,
52
+ };
67
53
  const _authRequest = yield this._options.authProvider.getAuthRequest();
68
- let _headers = mergeHeaders(_authRequest.headers, (_e = this._options) === null || _e === void 0 ? void 0 : _e.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
69
- const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
70
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.ManagementEnvironment.Default, "resource-servers"),
54
+ let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
55
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
56
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "resource-servers"),
71
57
  method: "GET",
72
58
  headers: _headers,
73
59
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
74
- timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
75
- maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
60
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
61
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
76
62
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
77
- fetchFn: (_p = this._options) === null || _p === void 0 ? void 0 : _p.fetch,
63
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
78
64
  logging: this._options.logging,
79
65
  });
80
66
  if (_response.ok) {
@@ -208,23 +194,22 @@ export class ResourceServersClient {
208
194
  }
209
195
  __get(id_1) {
210
196
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
211
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
197
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
212
198
  const { include_fields: includeFields } = request;
213
- const _queryParams = {};
214
- if (includeFields !== undefined) {
215
- _queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
216
- }
199
+ const _queryParams = {
200
+ include_fields: includeFields,
201
+ };
217
202
  const _authRequest = yield this._options.authProvider.getAuthRequest();
218
- 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);
219
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
220
- 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, `resource-servers/${core.url.encodePathParam(id)}`),
203
+ 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);
204
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
205
+ 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, `resource-servers/${core.url.encodePathParam(id)}`),
221
206
  method: "GET",
222
207
  headers: _headers,
223
208
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
224
- 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,
225
- 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,
209
+ 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,
210
+ 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,
226
211
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
227
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
212
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
228
213
  logging: this._options.logging,
229
214
  });
230
215
  if (_response.ok) {
@@ -53,32 +53,25 @@ export class RolesClient {
53
53
  list() {
54
54
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
55
55
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
56
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
56
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
57
57
  const { per_page: perPage = 50, page = 0, include_totals: includeTotals = true, name_filter: nameFilter, } = request;
58
- const _queryParams = {};
59
- if (perPage !== undefined) {
60
- _queryParams["per_page"] = (_a = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _a !== void 0 ? _a : null;
61
- }
62
- if (page !== undefined) {
63
- _queryParams["page"] = (_b = page === null || page === void 0 ? void 0 : page.toString()) !== null && _b !== void 0 ? _b : null;
64
- }
65
- if (includeTotals !== undefined) {
66
- _queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
67
- }
68
- if (nameFilter !== undefined) {
69
- _queryParams["name_filter"] = nameFilter;
70
- }
58
+ const _queryParams = {
59
+ per_page: perPage,
60
+ page,
61
+ include_totals: includeTotals,
62
+ name_filter: nameFilter,
63
+ };
71
64
  const _authRequest = yield this._options.authProvider.getAuthRequest();
72
- 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);
73
- const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
74
- 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, "roles"),
65
+ 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);
66
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
67
+ 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, "roles"),
75
68
  method: "GET",
76
69
  headers: _headers,
77
70
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
78
- 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,
79
- 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,
71
+ 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,
72
+ 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,
80
73
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
81
- fetchFn: (_o = this._options) === null || _o === void 0 ? void 0 : _o.fetch,
74
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
82
75
  logging: this._options.logging,
83
76
  });
84
77
  if (_response.ok) {
@@ -42,29 +42,24 @@ export class PermissionsClient {
42
42
  list(id_1) {
43
43
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
44
44
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
45
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
45
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
46
46
  const { per_page: perPage = 50, page = 0, include_totals: includeTotals = true } = request;
47
- const _queryParams = {};
48
- if (perPage !== undefined) {
49
- _queryParams["per_page"] = (_a = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _a !== void 0 ? _a : null;
50
- }
51
- if (page !== undefined) {
52
- _queryParams["page"] = (_b = page === null || page === void 0 ? void 0 : page.toString()) !== null && _b !== void 0 ? _b : null;
53
- }
54
- if (includeTotals !== undefined) {
55
- _queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
56
- }
47
+ const _queryParams = {
48
+ per_page: perPage,
49
+ page,
50
+ include_totals: includeTotals,
51
+ };
57
52
  const _authRequest = yield this._options.authProvider.getAuthRequest();
58
- let _headers = mergeHeaders(_authRequest.headers, (_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
59
- const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
60
- url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.ManagementEnvironment.Default, `roles/${core.url.encodePathParam(id)}/permissions`),
53
+ let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
54
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
55
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, `roles/${core.url.encodePathParam(id)}/permissions`),
61
56
  method: "GET",
62
57
  headers: _headers,
63
58
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
64
- timeoutMs: ((_k = (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.timeoutInSeconds) !== null && _k !== void 0 ? _k : 60) * 1000,
65
- maxRetries: (_l = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _l !== void 0 ? _l : (_m = this._options) === null || _m === void 0 ? void 0 : _m.maxRetries,
59
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
60
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
66
61
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
67
- fetchFn: (_o = this._options) === null || _o === void 0 ? void 0 : _o.fetch,
62
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
68
63
  logging: this._options.logging,
69
64
  });
70
65
  if (_response.ok) {
@@ -59,26 +59,23 @@ export class UsersClient {
59
59
  list(id_1) {
60
60
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
61
61
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
62
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
62
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
63
63
  const { from: from_, take = 50 } = request;
64
- const _queryParams = {};
65
- if (from_ !== undefined) {
66
- _queryParams["from"] = from_;
67
- }
68
- if (take !== undefined) {
69
- _queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
70
- }
64
+ const _queryParams = {
65
+ from: from_,
66
+ take,
67
+ };
71
68
  const _authRequest = yield this._options.authProvider.getAuthRequest();
72
- 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);
73
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
74
- 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, `roles/${core.url.encodePathParam(id)}/users`),
69
+ 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);
70
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
71
+ 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, `roles/${core.url.encodePathParam(id)}/users`),
75
72
  method: "GET",
76
73
  headers: _headers,
77
74
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
78
- 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,
79
- 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,
75
+ 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,
76
+ 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,
80
77
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
81
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
78
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
82
79
  logging: this._options.logging,
83
80
  });
84
81
  if (_response.ok) {