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
@@ -74,26 +74,23 @@ class ExecutionsClient {
74
74
  list(flow_id_1) {
75
75
  return __awaiter(this, arguments, void 0, function* (flow_id, request = {}, requestOptions) {
76
76
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
77
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
77
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
78
78
  const { from: from_, take = 50 } = request;
79
- const _queryParams = {};
80
- if (from_ !== undefined) {
81
- _queryParams["from"] = from_;
82
- }
83
- if (take !== undefined) {
84
- _queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
85
- }
79
+ const _queryParams = {
80
+ from: from_,
81
+ take,
82
+ };
86
83
  const _authRequest = yield this._options.authProvider.getAuthRequest();
87
- 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);
88
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
89
- 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, `flows/${core.url.encodePathParam(flow_id)}/executions`),
84
+ 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);
85
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
86
+ 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, `flows/${core.url.encodePathParam(flow_id)}/executions`),
90
87
  method: "GET",
91
88
  headers: _headers,
92
89
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
93
- 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,
94
- 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,
90
+ 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,
91
+ 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
92
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
96
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
93
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
97
94
  logging: this._options.logging,
98
95
  });
99
96
  if (_response.ok) {
@@ -155,15 +152,9 @@ class ExecutionsClient {
155
152
  return __awaiter(this, arguments, void 0, function* (flow_id, execution_id, request = {}, requestOptions) {
156
153
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
157
154
  const { hydrate } = request;
158
- const _queryParams = {};
159
- if (hydrate !== undefined) {
160
- if (Array.isArray(hydrate)) {
161
- _queryParams["hydrate"] = hydrate.map((item) => item);
162
- }
163
- else {
164
- _queryParams["hydrate"] = hydrate;
165
- }
166
- }
155
+ const _queryParams = {
156
+ hydrate: Array.isArray(hydrate) ? hydrate.map((item) => item) : hydrate !== undefined ? hydrate : undefined,
157
+ };
167
158
  const _authRequest = yield this._options.authProvider.getAuthRequest();
168
159
  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);
169
160
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -74,29 +74,24 @@ class ConnectionsClient {
74
74
  list() {
75
75
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
76
76
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
77
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
77
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
78
78
  const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true } = request;
79
- const _queryParams = {};
80
- if (page !== undefined) {
81
- _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
82
- }
83
- if (perPage !== undefined) {
84
- _queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
85
- }
86
- if (includeTotals !== undefined) {
87
- _queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
88
- }
79
+ const _queryParams = {
80
+ page,
81
+ per_page: perPage,
82
+ include_totals: includeTotals,
83
+ };
89
84
  const _authRequest = yield this._options.authProvider.getAuthRequest();
90
- 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);
91
- const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
92
- 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, "flows/vault/connections"),
85
+ let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
86
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
87
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "flows/vault/connections"),
93
88
  method: "GET",
94
89
  headers: _headers,
95
90
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
96
- 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,
97
- 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,
91
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
92
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
98
93
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
99
- fetchFn: (_o = this._options) === null || _o === void 0 ? void 0 : _o.fetch,
94
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
100
95
  logging: this._options.logging,
101
96
  });
102
97
  if (_response.ok) {
@@ -74,37 +74,29 @@ class FormsClient {
74
74
  list() {
75
75
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
76
76
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
77
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
77
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
78
78
  const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true, hydrate } = request;
79
- const _queryParams = {};
80
- if (page !== undefined) {
81
- _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
82
- }
83
- if (perPage !== undefined) {
84
- _queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
85
- }
86
- if (includeTotals !== undefined) {
87
- _queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
88
- }
89
- if (hydrate !== undefined) {
90
- if (Array.isArray(hydrate)) {
91
- _queryParams["hydrate"] = hydrate.map((item) => item);
92
- }
93
- else {
94
- _queryParams["hydrate"] = hydrate;
95
- }
96
- }
79
+ const _queryParams = {
80
+ page,
81
+ per_page: perPage,
82
+ include_totals: includeTotals,
83
+ hydrate: Array.isArray(hydrate)
84
+ ? hydrate.map((item) => item)
85
+ : hydrate !== undefined
86
+ ? hydrate
87
+ : undefined,
88
+ };
97
89
  const _authRequest = yield this._options.authProvider.getAuthRequest();
98
- 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);
99
- const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
100
- 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, "forms"),
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, "forms"),
101
93
  method: "GET",
102
94
  headers: _headers,
103
95
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
104
- 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,
105
- 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,
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,
106
98
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
107
- fetchFn: (_o = this._options) === null || _o === void 0 ? void 0 : _o.fetch,
99
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
108
100
  logging: this._options.logging,
109
101
  });
110
102
  if (_response.ok) {
@@ -228,15 +220,9 @@ class FormsClient {
228
220
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
229
221
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
230
222
  const { hydrate } = request;
231
- const _queryParams = {};
232
- if (hydrate !== undefined) {
233
- if (Array.isArray(hydrate)) {
234
- _queryParams["hydrate"] = hydrate.map((item) => item);
235
- }
236
- else {
237
- _queryParams["hydrate"] = hydrate;
238
- }
239
- }
223
+ const _queryParams = {
224
+ hydrate: Array.isArray(hydrate) ? hydrate.map((item) => item) : hydrate !== undefined ? hydrate : undefined,
225
+ };
240
226
  const _authRequest = yield this._options.authProvider.getAuthRequest();
241
227
  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);
242
228
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -85,41 +85,28 @@ class GroupsClient {
85
85
  list() {
86
86
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
87
87
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
88
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
88
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
89
89
  const { connection_id: connectionId, name, external_id: externalId, fields, include_fields: includeFields, from: from_, take = 50, } = request;
90
- const _queryParams = {};
91
- if (connectionId !== undefined) {
92
- _queryParams["connection_id"] = connectionId;
93
- }
94
- if (name !== undefined) {
95
- _queryParams["name"] = name;
96
- }
97
- if (externalId !== undefined) {
98
- _queryParams["external_id"] = externalId;
99
- }
100
- if (fields !== undefined) {
101
- _queryParams["fields"] = fields;
102
- }
103
- if (includeFields !== undefined) {
104
- _queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
105
- }
106
- if (from_ !== undefined) {
107
- _queryParams["from"] = from_;
108
- }
109
- if (take !== undefined) {
110
- _queryParams["take"] = (_b = take === null || take === void 0 ? void 0 : take.toString()) !== null && _b !== void 0 ? _b : null;
111
- }
90
+ const _queryParams = {
91
+ connection_id: connectionId,
92
+ name,
93
+ external_id: externalId,
94
+ fields,
95
+ include_fields: includeFields,
96
+ from: from_,
97
+ take,
98
+ };
112
99
  const _authRequest = yield this._options.authProvider.getAuthRequest();
113
- 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);
114
- const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
115
- 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, "groups"),
100
+ 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);
101
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
102
+ 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, "groups"),
116
103
  method: "GET",
117
104
  headers: _headers,
118
105
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
119
- 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,
120
- 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,
106
+ 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,
107
+ 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
108
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
122
- fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
109
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
123
110
  logging: this._options.logging,
124
111
  });
125
112
  if (_response.ok) {
@@ -78,32 +78,25 @@ class MembersClient {
78
78
  get(id_1) {
79
79
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
80
80
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
81
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
81
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
82
82
  const { fields, include_fields: includeFields, from: from_, take = 50 } = request;
83
- const _queryParams = {};
84
- if (fields !== undefined) {
85
- _queryParams["fields"] = fields;
86
- }
87
- if (includeFields !== undefined) {
88
- _queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
89
- }
90
- if (from_ !== undefined) {
91
- _queryParams["from"] = from_;
92
- }
93
- if (take !== undefined) {
94
- _queryParams["take"] = (_b = take === null || take === void 0 ? void 0 : take.toString()) !== null && _b !== void 0 ? _b : null;
95
- }
83
+ const _queryParams = {
84
+ fields,
85
+ include_fields: includeFields,
86
+ from: from_,
87
+ take,
88
+ };
96
89
  const _authRequest = yield this._options.authProvider.getAuthRequest();
97
- 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);
98
- const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
99
- 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, `groups/${core.url.encodePathParam(id)}/members`),
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, `groups/${core.url.encodePathParam(id)}/members`),
100
93
  method: "GET",
101
94
  headers: _headers,
102
95
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
103
- 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,
104
- 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,
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,
105
98
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
106
- fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
99
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
107
100
  logging: this._options.logging,
108
101
  });
109
102
  if (_response.ok) {
@@ -85,38 +85,27 @@ class HooksClient {
85
85
  list() {
86
86
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
87
87
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
88
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
88
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
89
89
  const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true, enabled, fields, triggerId, } = request;
90
- const _queryParams = {};
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 (enabled !== undefined) {
101
- _queryParams["enabled"] = (_d = enabled === null || enabled === void 0 ? void 0 : enabled.toString()) !== null && _d !== void 0 ? _d : null;
102
- }
103
- if (fields !== undefined) {
104
- _queryParams["fields"] = fields;
105
- }
106
- if (triggerId !== undefined) {
107
- _queryParams["triggerId"] = triggerId;
108
- }
90
+ const _queryParams = {
91
+ page,
92
+ per_page: perPage,
93
+ include_totals: includeTotals,
94
+ enabled,
95
+ fields,
96
+ triggerId: triggerId !== undefined ? triggerId : undefined,
97
+ };
109
98
  const _authRequest = yield this._options.authProvider.getAuthRequest();
110
- 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);
111
- const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
112
- 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, "hooks"),
99
+ 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);
100
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
101
+ 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, "hooks"),
113
102
  method: "GET",
114
103
  headers: _headers,
115
104
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
116
- 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,
117
- 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,
105
+ 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,
106
+ 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,
118
107
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
119
- fetchFn: (_p = this._options) === null || _p === void 0 ? void 0 : _p.fetch,
108
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
120
109
  logging: this._options.logging,
121
110
  });
122
111
  if (_response.ok) {
@@ -253,10 +242,9 @@ class HooksClient {
253
242
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
254
243
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
255
244
  const { fields } = request;
256
- const _queryParams = {};
257
- if (fields !== undefined) {
258
- _queryParams["fields"] = fields;
259
- }
245
+ const _queryParams = {
246
+ fields,
247
+ };
260
248
  const _authRequest = yield this._options.authProvider.getAuthRequest();
261
249
  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);
262
250
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -80,34 +80,34 @@ class UsersImportsClient {
80
80
  }
81
81
  __create(request, requestOptions) {
82
82
  return __awaiter(this, void 0, void 0, function* () {
83
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
84
- const _request = yield core.newFormData();
85
- yield _request.appendFile("users", request.users);
86
- _request.append("connection_id", request.connection_id);
83
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
84
+ const _body = yield core.newFormData();
85
+ yield _body.appendFile("users", request.users);
86
+ _body.append("connection_id", request.connection_id);
87
87
  if (request.upsert != null) {
88
- _request.append("upsert", request.upsert.toString());
88
+ _body.append("upsert", (_a = request.upsert) === null || _a === void 0 ? void 0 : _a.toString());
89
89
  }
90
90
  if (request.external_id != null) {
91
- _request.append("external_id", request.external_id);
91
+ _body.append("external_id", request.external_id);
92
92
  }
93
93
  if (request.send_completion_email != null) {
94
- _request.append("send_completion_email", request.send_completion_email.toString());
94
+ _body.append("send_completion_email", (_b = request.send_completion_email) === null || _b === void 0 ? void 0 : _b.toString());
95
95
  }
96
- const _maybeEncodedRequest = yield _request.getRequest();
96
+ const _maybeEncodedRequest = yield _body.getRequest();
97
97
  const _authRequest = yield this._options.authProvider.getAuthRequest();
98
- let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, _maybeEncodedRequest.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, "jobs/users-imports"),
98
+ let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
99
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
100
+ 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, "jobs/users-imports"),
101
101
  method: "POST",
102
102
  headers: _headers,
103
103
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
104
104
  requestType: "file",
105
105
  duplex: _maybeEncodedRequest.duplex,
106
106
  body: _maybeEncodedRequest.body,
107
- 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,
108
- 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,
107
+ 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,
108
+ 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,
109
109
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
110
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
110
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
111
111
  logging: this._options.logging,
112
112
  });
113
113
  if (_response.ok) {
@@ -76,29 +76,24 @@ class EncryptionClient {
76
76
  list() {
77
77
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
78
78
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
79
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
79
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
80
80
  const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true } = request;
81
- const _queryParams = {};
82
- if (page !== undefined) {
83
- _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
84
- }
85
- if (perPage !== undefined) {
86
- _queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
87
- }
88
- if (includeTotals !== undefined) {
89
- _queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
90
- }
81
+ const _queryParams = {
82
+ page,
83
+ per_page: perPage,
84
+ include_totals: includeTotals,
85
+ };
91
86
  const _authRequest = yield this._options.authProvider.getAuthRequest();
92
- 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);
93
- const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
94
- 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, "keys/encryption"),
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, "keys/encryption"),
95
90
  method: "GET",
96
91
  headers: _headers,
97
92
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
98
- 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,
99
- 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,
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,
100
95
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
101
- fetchFn: (_o = this._options) === null || _o === void 0 ? void 0 : _o.fetch,
96
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
102
97
  logging: this._options.logging,
103
98
  });
104
99
  if (_response.ok) {
@@ -108,41 +108,28 @@ class LogsClient {
108
108
  list() {
109
109
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
110
110
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
111
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
111
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
112
112
  const { page = 0, per_page: perPage = 50, sort, fields, include_fields: includeFields, include_totals: includeTotals = true, search, } = request;
113
- const _queryParams = {};
114
- if (page !== undefined) {
115
- _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
116
- }
117
- if (perPage !== undefined) {
118
- _queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
119
- }
120
- if (sort !== undefined) {
121
- _queryParams["sort"] = sort;
122
- }
123
- if (fields !== undefined) {
124
- _queryParams["fields"] = fields;
125
- }
126
- if (includeFields !== undefined) {
127
- _queryParams["include_fields"] = (_c = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _c !== void 0 ? _c : null;
128
- }
129
- if (includeTotals !== undefined) {
130
- _queryParams["include_totals"] = (_d = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _d !== void 0 ? _d : null;
131
- }
132
- if (search !== undefined) {
133
- _queryParams["search"] = search;
134
- }
113
+ const _queryParams = {
114
+ page,
115
+ per_page: perPage,
116
+ sort,
117
+ fields,
118
+ include_fields: includeFields,
119
+ include_totals: includeTotals,
120
+ search,
121
+ };
135
122
  const _authRequest = yield this._options.authProvider.getAuthRequest();
136
- 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);
137
- const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
138
- 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, "logs"),
123
+ 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);
124
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
125
+ 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, "logs"),
139
126
  method: "GET",
140
127
  headers: _headers,
141
128
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
142
- 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,
143
- 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,
129
+ 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,
130
+ 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,
144
131
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
145
- fetchFn: (_p = this._options) === null || _p === void 0 ? void 0 : _p.fetch,
132
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
146
133
  logging: this._options.logging,
147
134
  });
148
135
  if (_response.ok) {
@@ -76,29 +76,24 @@ class NetworkAclsClient {
76
76
  list() {
77
77
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
78
78
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
79
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
79
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
80
80
  const { page = 0, per_page: perPage = 50, include_totals: includeTotals = true } = request;
81
- const _queryParams = {};
82
- if (page !== undefined) {
83
- _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
84
- }
85
- if (perPage !== undefined) {
86
- _queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
87
- }
88
- if (includeTotals !== undefined) {
89
- _queryParams["include_totals"] = (_c = includeTotals === null || includeTotals === void 0 ? void 0 : includeTotals.toString()) !== null && _c !== void 0 ? _c : null;
90
- }
81
+ const _queryParams = {
82
+ page,
83
+ per_page: perPage,
84
+ include_totals: includeTotals,
85
+ };
91
86
  const _authRequest = yield this._options.authProvider.getAuthRequest();
92
- 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);
93
- const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
94
- 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, "network-acls"),
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, "network-acls"),
95
90
  method: "GET",
96
91
  headers: _headers,
97
92
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
98
- 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,
99
- 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,
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,
100
95
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
101
- fetchFn: (_o = this._options) === null || _o === void 0 ? void 0 : _o.fetch,
96
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
102
97
  logging: this._options.logging,
103
98
  });
104
99
  if (_response.ok) {