auth0 5.3.1 → 5.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/dist/cjs/management/BaseClient.d.ts +4 -4
  2. package/dist/cjs/management/api/requests/requests.d.ts +37 -8
  3. package/dist/cjs/management/api/resources/actions/client/Client.js +25 -37
  4. package/dist/cjs/management/api/resources/actions/resources/modules/client/Client.js +22 -28
  5. package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/Client.js +11 -14
  6. package/dist/cjs/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.js +11 -14
  7. package/dist/cjs/management/api/resources/actions/resources/versions/client/Client.js +12 -15
  8. package/dist/cjs/management/api/resources/branding/resources/phone/resources/providers/client/Client.js +10 -11
  9. package/dist/cjs/management/api/resources/branding/resources/phone/resources/templates/client/Client.js +10 -11
  10. package/dist/cjs/management/api/resources/clientGrants/client/Client.js +15 -26
  11. package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.js +11 -14
  12. package/dist/cjs/management/api/resources/clients/client/Client.js +29 -49
  13. package/dist/cjs/management/api/resources/clients/resources/connections/client/Client.js +18 -28
  14. package/dist/cjs/management/api/resources/connectionProfiles/client/Client.js +11 -14
  15. package/dist/cjs/management/api/resources/connections/client/Client.d.ts +2 -2
  16. package/dist/cjs/management/api/resources/connections/client/Client.js +34 -49
  17. package/dist/cjs/management/api/resources/connections/resources/clients/client/Client.js +11 -14
  18. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.js +13 -16
  19. package/dist/cjs/management/api/resources/connections/resources/keys/client/Client.d.ts +19 -0
  20. package/dist/cjs/management/api/resources/connections/resources/keys/client/Client.js +71 -1
  21. package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/client/Client.d.ts +18 -0
  22. package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/client/Client.js +78 -1
  23. package/dist/cjs/management/api/resources/connections/resources/users/client/Client.js +3 -2
  24. package/dist/cjs/management/api/resources/customDomains/client/Client.js +13 -20
  25. package/dist/cjs/management/api/resources/deviceCredentials/client/Client.js +17 -32
  26. package/dist/cjs/management/api/resources/emails/resources/provider/client/Client.js +11 -14
  27. package/dist/cjs/management/api/resources/eventStreams/client/Client.js +11 -14
  28. package/dist/cjs/management/api/resources/eventStreams/resources/deliveries/client/Client.js +15 -26
  29. package/dist/cjs/management/api/resources/flows/client/Client.js +21 -37
  30. package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.js +14 -23
  31. package/dist/cjs/management/api/resources/flows/resources/vault/resources/connections/client/Client.js +12 -17
  32. package/dist/cjs/management/api/resources/forms/client/Client.js +20 -34
  33. package/dist/cjs/management/api/resources/groups/client/Client.js +16 -29
  34. package/dist/cjs/management/api/resources/groups/resources/members/client/Client.js +13 -20
  35. package/dist/cjs/management/api/resources/hooks/client/Client.js +18 -30
  36. package/dist/cjs/management/api/resources/jobs/resources/usersImports/client/Client.js +14 -14
  37. package/dist/cjs/management/api/resources/keys/resources/encryption/client/Client.js +12 -17
  38. package/dist/cjs/management/api/resources/logs/client/Client.js +16 -29
  39. package/dist/cjs/management/api/resources/networkAcls/client/Client.js +12 -17
  40. package/dist/cjs/management/api/resources/organizations/client/Client.js +12 -17
  41. package/dist/cjs/management/api/resources/organizations/resources/clientGrants/client/Client.js +15 -31
  42. package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.js +11 -14
  43. package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.js +12 -17
  44. package/dist/cjs/management/api/resources/organizations/resources/invitations/client/Client.js +26 -40
  45. package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.js +13 -20
  46. package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.js +12 -17
  47. package/dist/cjs/management/api/resources/prompts/resources/rendering/client/Client.js +17 -32
  48. package/dist/cjs/management/api/resources/resourceServers/client/Client.js +24 -39
  49. package/dist/cjs/management/api/resources/roles/client/Client.js +13 -20
  50. package/dist/cjs/management/api/resources/roles/resources/permissions/client/Client.js +12 -17
  51. package/dist/cjs/management/api/resources/roles/resources/users/client/Client.js +11 -14
  52. package/dist/cjs/management/api/resources/rules/client/Client.js +26 -40
  53. package/dist/cjs/management/api/resources/selfServiceProfiles/client/Client.js +12 -17
  54. package/dist/cjs/management/api/resources/stats/client/Client.js +4 -7
  55. package/dist/cjs/management/api/resources/tenants/resources/settings/client/Client.js +11 -14
  56. package/dist/cjs/management/api/resources/tokenExchangeProfiles/client/Client.js +11 -14
  57. package/dist/cjs/management/api/resources/userAttributeProfiles/client/Client.js +11 -14
  58. package/dist/cjs/management/api/resources/userBlocks/client/Client.js +24 -25
  59. package/dist/cjs/management/api/resources/userGrants/client/Client.js +18 -28
  60. package/dist/cjs/management/api/resources/users/client/Client.js +42 -67
  61. package/dist/cjs/management/api/resources/users/resources/authenticationMethods/client/Client.js +12 -17
  62. package/dist/cjs/management/api/resources/users/resources/connectedAccounts/client/Client.js +11 -14
  63. package/dist/cjs/management/api/resources/users/resources/groups/client/Client.js +13 -20
  64. package/dist/cjs/management/api/resources/users/resources/logs/client/Client.js +13 -20
  65. package/dist/cjs/management/api/resources/users/resources/organizations/client/Client.js +12 -17
  66. package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.js +12 -17
  67. package/dist/cjs/management/api/resources/users/resources/refreshToken/client/Client.js +11 -14
  68. package/dist/cjs/management/api/resources/users/resources/roles/client/Client.js +12 -17
  69. package/dist/cjs/management/api/resources/users/resources/sessions/client/Client.js +11 -14
  70. package/dist/cjs/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.js +11 -14
  71. package/dist/cjs/management/api/types/types.d.ts +4464 -4299
  72. package/dist/cjs/management/api/types/types.js +46 -12
  73. package/dist/cjs/management/auth/BearerAuthProvider.d.ts +14 -10
  74. package/dist/cjs/management/auth/BearerAuthProvider.js +15 -6
  75. package/dist/cjs/management/core/fetcher/EndpointSupplier.d.ts +2 -2
  76. package/dist/cjs/management/core/fetcher/Fetcher.d.ts +1 -2
  77. package/dist/cjs/management/core/fetcher/Fetcher.js +7 -1
  78. package/dist/cjs/management/core/form-data-utils/FormDataWrapper.js +1 -1
  79. package/dist/cjs/management/core/headers.d.ts +2 -2
  80. package/dist/cjs/management/core/pagination/CustomPager.d.ts +29 -44
  81. package/dist/cjs/management/core/pagination/CustomPager.js +60 -42
  82. package/dist/cjs/management/core/pagination/exports.d.ts +0 -1
  83. package/dist/cjs/management/core/pagination/exports.js +0 -3
  84. package/dist/cjs/management/core/pagination/index.d.ts +1 -1
  85. package/dist/cjs/management/core/pagination/index.js +2 -1
  86. package/dist/cjs/management/version.d.ts +1 -1
  87. package/dist/cjs/management/version.js +1 -1
  88. package/dist/esm/management/BaseClient.d.mts +4 -4
  89. package/dist/esm/management/api/requests/requests.d.mts +37 -8
  90. package/dist/esm/management/api/resources/actions/client/Client.mjs +25 -37
  91. package/dist/esm/management/api/resources/actions/resources/modules/client/Client.mjs +22 -28
  92. package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/Client.mjs +11 -14
  93. package/dist/esm/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.mjs +11 -14
  94. package/dist/esm/management/api/resources/actions/resources/versions/client/Client.mjs +12 -15
  95. package/dist/esm/management/api/resources/branding/resources/phone/resources/providers/client/Client.mjs +10 -11
  96. package/dist/esm/management/api/resources/branding/resources/phone/resources/templates/client/Client.mjs +10 -11
  97. package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +15 -26
  98. package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.mjs +11 -14
  99. package/dist/esm/management/api/resources/clients/client/Client.mjs +29 -49
  100. package/dist/esm/management/api/resources/clients/resources/connections/client/Client.mjs +18 -28
  101. package/dist/esm/management/api/resources/connectionProfiles/client/Client.mjs +11 -14
  102. package/dist/esm/management/api/resources/connections/client/Client.d.mts +2 -2
  103. package/dist/esm/management/api/resources/connections/client/Client.mjs +34 -49
  104. package/dist/esm/management/api/resources/connections/resources/clients/client/Client.mjs +11 -14
  105. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.mjs +13 -16
  106. package/dist/esm/management/api/resources/connections/resources/keys/client/Client.d.mts +19 -0
  107. package/dist/esm/management/api/resources/connections/resources/keys/client/Client.mjs +71 -1
  108. package/dist/esm/management/api/resources/connections/resources/scimConfiguration/client/Client.d.mts +18 -0
  109. package/dist/esm/management/api/resources/connections/resources/scimConfiguration/client/Client.mjs +78 -1
  110. package/dist/esm/management/api/resources/connections/resources/users/client/Client.mjs +3 -2
  111. package/dist/esm/management/api/resources/customDomains/client/Client.mjs +13 -20
  112. package/dist/esm/management/api/resources/deviceCredentials/client/Client.mjs +17 -32
  113. package/dist/esm/management/api/resources/emails/resources/provider/client/Client.mjs +11 -14
  114. package/dist/esm/management/api/resources/eventStreams/client/Client.mjs +11 -14
  115. package/dist/esm/management/api/resources/eventStreams/resources/deliveries/client/Client.mjs +15 -26
  116. package/dist/esm/management/api/resources/flows/client/Client.mjs +21 -37
  117. package/dist/esm/management/api/resources/flows/resources/executions/client/Client.mjs +14 -23
  118. package/dist/esm/management/api/resources/flows/resources/vault/resources/connections/client/Client.mjs +12 -17
  119. package/dist/esm/management/api/resources/forms/client/Client.mjs +20 -34
  120. package/dist/esm/management/api/resources/groups/client/Client.mjs +16 -29
  121. package/dist/esm/management/api/resources/groups/resources/members/client/Client.mjs +13 -20
  122. package/dist/esm/management/api/resources/hooks/client/Client.mjs +18 -30
  123. package/dist/esm/management/api/resources/jobs/resources/usersImports/client/Client.mjs +14 -14
  124. package/dist/esm/management/api/resources/keys/resources/encryption/client/Client.mjs +12 -17
  125. package/dist/esm/management/api/resources/logs/client/Client.mjs +16 -29
  126. package/dist/esm/management/api/resources/networkAcls/client/Client.mjs +12 -17
  127. package/dist/esm/management/api/resources/organizations/client/Client.mjs +12 -17
  128. package/dist/esm/management/api/resources/organizations/resources/clientGrants/client/Client.mjs +15 -31
  129. package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.mjs +11 -14
  130. package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.mjs +12 -17
  131. package/dist/esm/management/api/resources/organizations/resources/invitations/client/Client.mjs +26 -40
  132. package/dist/esm/management/api/resources/organizations/resources/members/client/Client.mjs +13 -20
  133. package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.mjs +12 -17
  134. package/dist/esm/management/api/resources/prompts/resources/rendering/client/Client.mjs +17 -32
  135. package/dist/esm/management/api/resources/resourceServers/client/Client.mjs +24 -39
  136. package/dist/esm/management/api/resources/roles/client/Client.mjs +13 -20
  137. package/dist/esm/management/api/resources/roles/resources/permissions/client/Client.mjs +12 -17
  138. package/dist/esm/management/api/resources/roles/resources/users/client/Client.mjs +11 -14
  139. package/dist/esm/management/api/resources/rules/client/Client.mjs +26 -40
  140. package/dist/esm/management/api/resources/selfServiceProfiles/client/Client.mjs +12 -17
  141. package/dist/esm/management/api/resources/stats/client/Client.mjs +4 -7
  142. package/dist/esm/management/api/resources/tenants/resources/settings/client/Client.mjs +11 -14
  143. package/dist/esm/management/api/resources/tokenExchangeProfiles/client/Client.mjs +11 -14
  144. package/dist/esm/management/api/resources/userAttributeProfiles/client/Client.mjs +11 -14
  145. package/dist/esm/management/api/resources/userBlocks/client/Client.mjs +24 -25
  146. package/dist/esm/management/api/resources/userGrants/client/Client.mjs +18 -28
  147. package/dist/esm/management/api/resources/users/client/Client.mjs +42 -67
  148. package/dist/esm/management/api/resources/users/resources/authenticationMethods/client/Client.mjs +12 -17
  149. package/dist/esm/management/api/resources/users/resources/connectedAccounts/client/Client.mjs +11 -14
  150. package/dist/esm/management/api/resources/users/resources/groups/client/Client.mjs +13 -20
  151. package/dist/esm/management/api/resources/users/resources/logs/client/Client.mjs +13 -20
  152. package/dist/esm/management/api/resources/users/resources/organizations/client/Client.mjs +12 -17
  153. package/dist/esm/management/api/resources/users/resources/permissions/client/Client.mjs +12 -17
  154. package/dist/esm/management/api/resources/users/resources/refreshToken/client/Client.mjs +11 -14
  155. package/dist/esm/management/api/resources/users/resources/roles/client/Client.mjs +12 -17
  156. package/dist/esm/management/api/resources/users/resources/sessions/client/Client.mjs +11 -14
  157. package/dist/esm/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.mjs +11 -14
  158. package/dist/esm/management/api/types/types.d.mts +4464 -4299
  159. package/dist/esm/management/api/types/types.mjs +37 -3
  160. package/dist/esm/management/auth/BearerAuthProvider.d.mts +14 -10
  161. package/dist/esm/management/auth/BearerAuthProvider.mjs +15 -6
  162. package/dist/esm/management/core/fetcher/EndpointSupplier.d.mts +2 -2
  163. package/dist/esm/management/core/fetcher/Fetcher.d.mts +1 -2
  164. package/dist/esm/management/core/fetcher/Fetcher.mjs +7 -1
  165. package/dist/esm/management/core/form-data-utils/FormDataWrapper.mjs +1 -1
  166. package/dist/esm/management/core/headers.d.mts +2 -2
  167. package/dist/esm/management/core/pagination/CustomPager.d.mts +29 -44
  168. package/dist/esm/management/core/pagination/CustomPager.mjs +58 -41
  169. package/dist/esm/management/core/pagination/exports.d.mts +0 -1
  170. package/dist/esm/management/core/pagination/exports.mjs +1 -1
  171. package/dist/esm/management/core/pagination/index.d.mts +1 -1
  172. package/dist/esm/management/core/pagination/index.mjs +1 -1
  173. package/dist/esm/management/version.d.mts +1 -1
  174. package/dist/esm/management/version.mjs +1 -1
  175. package/package.json +4 -3
  176. package/reference.md +271 -119
@@ -119,29 +119,24 @@ class OrganizationsClient {
119
119
  list() {
120
120
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
121
121
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
122
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
122
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
123
123
  const { from: from_, take = 50, sort } = request;
124
- const _queryParams = {};
125
- if (from_ !== undefined) {
126
- _queryParams["from"] = from_;
127
- }
128
- if (take !== undefined) {
129
- _queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
130
- }
131
- if (sort !== undefined) {
132
- _queryParams["sort"] = sort;
133
- }
124
+ const _queryParams = {
125
+ from: from_,
126
+ take,
127
+ sort,
128
+ };
134
129
  const _authRequest = yield this._options.authProvider.getAuthRequest();
135
- let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
136
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
137
- 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"),
130
+ let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
131
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
132
+ 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"),
138
133
  method: "GET",
139
134
  headers: _headers,
140
135
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
141
- 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,
142
- 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,
136
+ 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,
137
+ 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,
143
138
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
144
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
139
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
145
140
  logging: this._options.logging,
146
141
  });
147
142
  if (_response.ok) {
@@ -77,43 +77,27 @@ class ClientGrantsClient {
77
77
  list(id_1) {
78
78
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
79
79
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
80
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
80
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
81
81
  const { audience, client_id: clientId, grant_ids: grantIds, page = 0, per_page: perPage = 50, include_totals: includeTotals = true, } = request;
82
- const _queryParams = {};
83
- if (audience !== undefined) {
84
- _queryParams["audience"] = audience;
85
- }
86
- if (clientId !== undefined) {
87
- _queryParams["client_id"] = clientId;
88
- }
89
- if (grantIds !== undefined) {
90
- if (Array.isArray(grantIds)) {
91
- _queryParams["grant_ids"] = grantIds.map((item) => item);
92
- }
93
- else {
94
- _queryParams["grant_ids"] = grantIds;
95
- }
96
- }
97
- if (page !== undefined) {
98
- _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
99
- }
100
- if (perPage !== undefined) {
101
- _queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
102
- }
103
- if (includeTotals !== undefined) {
104
- _queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
105
- }
82
+ const _queryParams = {
83
+ audience,
84
+ client_id: clientId,
85
+ grant_ids: grantIds,
86
+ page,
87
+ per_page: perPage,
88
+ include_totals: includeTotals,
89
+ };
106
90
  const _authRequest = yield this._options.authProvider.getAuthRequest();
107
- let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
108
- const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
109
- 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)}/client-grants`),
91
+ let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
92
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
93
+ 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)}/client-grants`),
110
94
  method: "GET",
111
95
  headers: _headers,
112
96
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
113
- 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,
114
- 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,
97
+ 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,
98
+ 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,
115
99
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
116
- fetchFn: (_o = this._options) === null || _o === void 0 ? void 0 : _o.fetch,
100
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
117
101
  logging: this._options.logging,
118
102
  });
119
103
  if (_response.ok) {
@@ -77,26 +77,23 @@ class DiscoveryDomainsClient {
77
77
  list(id_1) {
78
78
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
79
79
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
80
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
80
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
81
81
  const { from: from_, take = 50 } = request;
82
- const _queryParams = {};
83
- if (from_ !== undefined) {
84
- _queryParams["from"] = from_;
85
- }
86
- if (take !== undefined) {
87
- _queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
88
- }
82
+ const _queryParams = {
83
+ from: from_,
84
+ take,
85
+ };
89
86
  const _authRequest = yield this._options.authProvider.getAuthRequest();
90
- let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
91
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
92
- url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ManagementEnvironment.Default, `organizations/${core.url.encodePathParam(id)}/discovery-domains`),
87
+ let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
88
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
89
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, `organizations/${core.url.encodePathParam(id)}/discovery-domains`),
93
90
  method: "GET",
94
91
  headers: _headers,
95
92
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
96
- timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
97
- maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
93
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
94
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
98
95
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
99
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
96
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
100
97
  logging: this._options.logging,
101
98
  });
102
99
  if (_response.ok) {
@@ -77,29 +77,24 @@ class EnabledConnectionsClient {
77
77
  list(id_1) {
78
78
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
79
79
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
80
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
80
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
81
81
  const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true } = request;
82
- const _queryParams = {};
83
- if (page !== undefined) {
84
- _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
85
- }
86
- if (perPage !== undefined) {
87
- _queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
88
- }
89
- if (includeTotals !== undefined) {
90
- _queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
91
- }
82
+ const _queryParams = {
83
+ page,
84
+ per_page: perPage,
85
+ include_totals: includeTotals,
86
+ };
92
87
  const _authRequest = yield this._options.authProvider.getAuthRequest();
93
- let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
94
- const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
95
- 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`),
88
+ let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
89
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
90
+ 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`),
96
91
  method: "GET",
97
92
  headers: _headers,
98
93
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
99
- 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,
100
- 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,
94
+ 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,
95
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
101
96
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
102
- fetchFn: (_o = this._options) === null || _o === void 0 ? void 0 : _o.fetch,
97
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
103
98
  logging: this._options.logging,
104
99
  });
105
100
  if (_response.ok) {
@@ -81,38 +81,27 @@ class InvitationsClient {
81
81
  list(id_1) {
82
82
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
83
83
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
84
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
84
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
85
85
  const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true, fields, include_fields: includeFields, sort, } = request;
86
- const _queryParams = {};
87
- if (page !== undefined) {
88
- _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
89
- }
90
- if (perPage !== undefined) {
91
- _queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
92
- }
93
- if (includeTotals !== undefined) {
94
- _queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
95
- }
96
- if (fields !== undefined) {
97
- _queryParams["fields"] = fields;
98
- }
99
- if (includeFields !== undefined) {
100
- _queryParams["include_fields"] = (_d = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _d !== void 0 ? _d : null;
101
- }
102
- if (sort !== undefined) {
103
- _queryParams["sort"] = sort;
104
- }
86
+ const _queryParams = {
87
+ page,
88
+ per_page: perPage,
89
+ include_totals: includeTotals,
90
+ fields,
91
+ include_fields: includeFields,
92
+ sort,
93
+ };
105
94
  const _authRequest = yield this._options.authProvider.getAuthRequest();
106
- let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_e = this._options) === null || _e === void 0 ? void 0 : _e.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
107
- const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
108
- 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`),
95
+ let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
96
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
97
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, `organizations/${core.url.encodePathParam(id)}/invitations`),
109
98
  method: "GET",
110
99
  headers: _headers,
111
100
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
112
- 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,
113
- 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,
101
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
102
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
114
103
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
115
- fetchFn: (_p = this._options) === null || _p === void 0 ? void 0 : _p.fetch,
104
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
116
105
  logging: this._options.logging,
117
106
  });
118
107
  if (_response.ok) {
@@ -255,26 +244,23 @@ class InvitationsClient {
255
244
  }
256
245
  __get(id_1, invitation_id_1) {
257
246
  return __awaiter(this, arguments, void 0, function* (id, invitation_id, request = {}, requestOptions) {
258
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
247
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
259
248
  const { fields, include_fields: includeFields } = request;
260
- const _queryParams = {};
261
- if (fields !== undefined) {
262
- _queryParams["fields"] = fields;
263
- }
264
- if (includeFields !== undefined) {
265
- _queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
266
- }
249
+ const _queryParams = {
250
+ fields,
251
+ include_fields: includeFields,
252
+ };
267
253
  const _authRequest = yield this._options.authProvider.getAuthRequest();
268
- let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
269
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
270
- 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)}`),
254
+ let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
255
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
256
+ 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)}`),
271
257
  method: "GET",
272
258
  headers: _headers,
273
259
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
274
- 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,
275
- 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,
260
+ 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,
261
+ 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,
276
262
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
277
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
263
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
278
264
  logging: this._options.logging,
279
265
  });
280
266
  if (_response.ok) {
@@ -104,32 +104,25 @@ class MembersClient {
104
104
  list(id_1) {
105
105
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
106
106
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
107
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
107
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
108
108
  const { from: from_, take = 50, fields, include_fields: includeFields } = request;
109
- const _queryParams = {};
110
- if (from_ !== undefined) {
111
- _queryParams["from"] = from_;
112
- }
113
- if (take !== undefined) {
114
- _queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
115
- }
116
- if (fields !== undefined) {
117
- _queryParams["fields"] = fields;
118
- }
119
- if (includeFields !== undefined) {
120
- _queryParams["include_fields"] = (_b = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _b !== void 0 ? _b : null;
121
- }
109
+ const _queryParams = {
110
+ from: from_,
111
+ take,
112
+ fields,
113
+ include_fields: includeFields,
114
+ };
122
115
  const _authRequest = yield this._options.authProvider.getAuthRequest();
123
- let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
124
- const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
125
- 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`),
116
+ let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
117
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
118
+ 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`),
126
119
  method: "GET",
127
120
  headers: _headers,
128
121
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
129
- 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,
130
- 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,
122
+ 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,
123
+ 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,
131
124
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
132
- fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
125
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
133
126
  logging: this._options.logging,
134
127
  });
135
128
  if (_response.ok) {
@@ -80,29 +80,24 @@ class RolesClient {
80
80
  list(id_1, user_id_1) {
81
81
  return __awaiter(this, arguments, void 0, function* (id, user_id, request = {}, requestOptions) {
82
82
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
83
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
83
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
84
84
  const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true } = request;
85
- const _queryParams = {};
86
- if (page !== undefined) {
87
- _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
88
- }
89
- if (perPage !== undefined) {
90
- _queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
91
- }
92
- if (includeTotals !== undefined) {
93
- _queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
94
- }
85
+ const _queryParams = {
86
+ page,
87
+ per_page: perPage,
88
+ include_totals: includeTotals,
89
+ };
95
90
  const _authRequest = yield this._options.authProvider.getAuthRequest();
96
- let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
97
- const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
98
- 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`),
91
+ let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
92
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
93
+ 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`),
99
94
  method: "GET",
100
95
  headers: _headers,
101
96
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
102
- 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,
103
- 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,
97
+ 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,
98
+ 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,
104
99
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
105
- fetchFn: (_o = this._options) === null || _o === void 0 ? void 0 : _o.fetch,
100
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
106
101
  logging: this._options.logging,
107
102
  });
108
103
  if (_response.ok) {
@@ -82,44 +82,29 @@ class RenderingClient {
82
82
  list() {
83
83
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
84
84
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
85
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
85
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
86
86
  const { fields, include_fields: includeFields, page = 0, per_page: perPage = 50, include_totals: includeTotals = true, prompt, screen, rendering_mode: renderingMode, } = request;
87
- const _queryParams = {};
88
- if (fields !== undefined) {
89
- _queryParams["fields"] = fields;
90
- }
91
- if (includeFields !== undefined) {
92
- _queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
93
- }
94
- if (page !== undefined) {
95
- _queryParams["page"] = (_b = page === null || page === void 0 ? void 0 : page.toString()) !== null && _b !== void 0 ? _b : null;
96
- }
97
- if (perPage !== undefined) {
98
- _queryParams["per_page"] = (_c = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _c !== void 0 ? _c : null;
99
- }
100
- if (includeTotals !== undefined) {
101
- _queryParams["include_totals"] = (_d = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _d !== void 0 ? _d : null;
102
- }
103
- if (prompt !== undefined) {
104
- _queryParams["prompt"] = prompt;
105
- }
106
- if (screen !== undefined) {
107
- _queryParams["screen"] = screen;
108
- }
109
- if (renderingMode !== undefined) {
110
- _queryParams["rendering_mode"] = renderingMode;
111
- }
87
+ const _queryParams = {
88
+ fields,
89
+ include_fields: includeFields,
90
+ page,
91
+ per_page: perPage,
92
+ include_totals: includeTotals,
93
+ prompt,
94
+ screen,
95
+ rendering_mode: renderingMode !== undefined ? renderingMode : undefined,
96
+ };
112
97
  const _authRequest = yield this._options.authProvider.getAuthRequest();
113
- let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_e = this._options) === null || _e === void 0 ? void 0 : _e.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
114
- const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
115
- 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"),
98
+ let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
99
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
100
+ 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"),
116
101
  method: "GET",
117
102
  headers: _headers,
118
103
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
119
- 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,
120
- 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,
104
+ 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,
105
+ 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,
121
106
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
122
- fetchFn: (_p = this._options) === null || _p === void 0 ? void 0 : _p.fetch,
107
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
123
108
  logging: this._options.logging,
124
109
  });
125
110
  if (_response.ok) {
@@ -77,40 +77,26 @@ class ResourceServersClient {
77
77
  list() {
78
78
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
79
79
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
80
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
80
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
81
81
  const { identifiers, page = 0, per_page: perPage = 50, include_totals: includeTotals = true, include_fields: includeFields, } = request;
82
- const _queryParams = {};
83
- if (identifiers !== undefined) {
84
- if (Array.isArray(identifiers)) {
85
- _queryParams["identifiers"] = identifiers.map((item) => item);
86
- }
87
- else {
88
- _queryParams["identifiers"] = identifiers;
89
- }
90
- }
91
- if (page !== undefined) {
92
- _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
93
- }
94
- if (perPage !== undefined) {
95
- _queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
96
- }
97
- if (includeTotals !== undefined) {
98
- _queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
99
- }
100
- if (includeFields !== undefined) {
101
- _queryParams["include_fields"] = (_d = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _d !== void 0 ? _d : null;
102
- }
82
+ const _queryParams = {
83
+ identifiers,
84
+ page,
85
+ per_page: perPage,
86
+ include_totals: includeTotals,
87
+ include_fields: includeFields,
88
+ };
103
89
  const _authRequest = yield this._options.authProvider.getAuthRequest();
104
- let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_e = this._options) === null || _e === void 0 ? void 0 : _e.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
105
- const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
106
- 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"),
90
+ let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
91
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
92
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "resource-servers"),
107
93
  method: "GET",
108
94
  headers: _headers,
109
95
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
110
- 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,
111
- 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,
96
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
97
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
112
98
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
113
- fetchFn: (_p = this._options) === null || _p === void 0 ? void 0 : _p.fetch,
99
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
114
100
  logging: this._options.logging,
115
101
  });
116
102
  if (_response.ok) {
@@ -244,23 +230,22 @@ class ResourceServersClient {
244
230
  }
245
231
  __get(id_1) {
246
232
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
247
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
233
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
248
234
  const { include_fields: includeFields } = request;
249
- const _queryParams = {};
250
- if (includeFields !== undefined) {
251
- _queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
252
- }
235
+ const _queryParams = {
236
+ include_fields: includeFields,
237
+ };
253
238
  const _authRequest = yield this._options.authProvider.getAuthRequest();
254
- let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
255
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
256
- 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)}`),
239
+ let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
240
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
241
+ 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)}`),
257
242
  method: "GET",
258
243
  headers: _headers,
259
244
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
260
- 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,
261
- 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,
245
+ 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,
246
+ 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,
262
247
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
263
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
248
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
264
249
  logging: this._options.logging,
265
250
  });
266
251
  if (_response.ok) {