auth0 5.7.0 → 5.9.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 (326) hide show
  1. package/dist/cjs/management/Client.d.ts +3 -0
  2. package/dist/cjs/management/Client.js +67 -62
  3. package/dist/cjs/management/api/errors/GoneError.d.ts +5 -0
  4. package/dist/cjs/management/api/errors/GoneError.js +54 -0
  5. package/dist/cjs/management/api/errors/index.d.ts +1 -0
  6. package/dist/cjs/management/api/errors/index.js +1 -0
  7. package/dist/cjs/management/api/requests/requests.d.ts +56 -10
  8. package/dist/cjs/management/api/resources/actions/client/Client.js +15 -7
  9. package/dist/cjs/management/api/resources/actions/resources/executions/client/Client.js +1 -1
  10. package/dist/cjs/management/api/resources/actions/resources/modules/client/Client.js +15 -7
  11. package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/Client.js +7 -3
  12. package/dist/cjs/management/api/resources/actions/resources/triggers/client/Client.js +1 -1
  13. package/dist/cjs/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.js +6 -2
  14. package/dist/cjs/management/api/resources/actions/resources/versions/client/Client.js +7 -3
  15. package/dist/cjs/management/api/resources/anomaly/resources/blocks/client/Client.js +2 -2
  16. package/dist/cjs/management/api/resources/attackProtection/resources/botDetection/client/Client.js +2 -2
  17. package/dist/cjs/management/api/resources/attackProtection/resources/breachedPasswordDetection/client/Client.js +2 -2
  18. package/dist/cjs/management/api/resources/attackProtection/resources/bruteForceProtection/client/Client.js +2 -2
  19. package/dist/cjs/management/api/resources/attackProtection/resources/captcha/client/Client.js +2 -2
  20. package/dist/cjs/management/api/resources/attackProtection/resources/suspiciousIpThrottling/client/Client.js +2 -2
  21. package/dist/cjs/management/api/resources/branding/client/Client.js +2 -2
  22. package/dist/cjs/management/api/resources/branding/resources/phone/resources/providers/client/Client.js +10 -6
  23. package/dist/cjs/management/api/resources/branding/resources/phone/resources/templates/client/Client.js +11 -7
  24. package/dist/cjs/management/api/resources/branding/resources/templates/client/Client.js +3 -3
  25. package/dist/cjs/management/api/resources/branding/resources/themes/client/Client.js +5 -5
  26. package/dist/cjs/management/api/resources/clientGrants/client/Client.js +9 -5
  27. package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.js +5 -1
  28. package/dist/cjs/management/api/resources/clients/client/Client.js +16 -8
  29. package/dist/cjs/management/api/resources/clients/resources/connections/client/Client.d.ts +1 -0
  30. package/dist/cjs/management/api/resources/clients/resources/connections/client/Client.js +6 -1
  31. package/dist/cjs/management/api/resources/clients/resources/credentials/client/Client.js +5 -5
  32. package/dist/cjs/management/api/resources/connectionProfiles/client/Client.js +11 -7
  33. package/dist/cjs/management/api/resources/connections/client/Client.d.ts +1 -0
  34. package/dist/cjs/management/api/resources/connections/client/Client.js +15 -6
  35. package/dist/cjs/management/api/resources/connections/resources/clients/client/Client.js +6 -2
  36. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.js +16 -8
  37. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/client/Client.js +1 -1
  38. package/dist/cjs/management/api/resources/connections/resources/keys/client/Client.js +3 -3
  39. package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/client/Client.js +10 -6
  40. package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/resources/tokens/client/Client.js +3 -3
  41. package/dist/cjs/management/api/resources/connections/resources/users/client/Client.js +5 -1
  42. package/dist/cjs/management/api/resources/customDomains/client/Client.js +13 -9
  43. package/dist/cjs/management/api/resources/deviceCredentials/client/Client.js +7 -3
  44. package/dist/cjs/management/api/resources/emailTemplates/client/Client.js +4 -4
  45. package/dist/cjs/management/api/resources/emails/resources/provider/client/Client.js +8 -4
  46. package/dist/cjs/management/api/resources/eventStreams/client/Client.js +10 -6
  47. package/dist/cjs/management/api/resources/eventStreams/resources/deliveries/client/Client.js +6 -2
  48. package/dist/cjs/management/api/resources/eventStreams/resources/redeliveries/client/Client.js +2 -2
  49. package/dist/cjs/management/api/resources/events/client/Client.d.ts +18 -0
  50. package/dist/cjs/management/api/resources/events/client/Client.js +135 -0
  51. package/dist/cjs/management/api/resources/events/client/index.d.ts +1 -0
  52. package/dist/cjs/management/api/resources/events/client/index.js +2 -0
  53. package/dist/cjs/management/api/resources/events/index.d.ts +1 -0
  54. package/dist/cjs/management/api/resources/events/index.js +17 -0
  55. package/dist/cjs/management/api/resources/flows/client/Client.d.ts +4 -1
  56. package/dist/cjs/management/api/resources/flows/client/Client.js +17 -6
  57. package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.d.ts +3 -1
  58. package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.js +14 -4
  59. package/dist/cjs/management/api/resources/flows/resources/vault/resources/connections/client/Client.js +9 -5
  60. package/dist/cjs/management/api/resources/forms/client/Client.d.ts +5 -2
  61. package/dist/cjs/management/api/resources/forms/client/Client.js +18 -7
  62. package/dist/cjs/management/api/resources/groups/client/Client.d.ts +1 -0
  63. package/dist/cjs/management/api/resources/groups/client/Client.js +10 -4
  64. package/dist/cjs/management/api/resources/groups/resources/members/client/Client.js +5 -1
  65. package/dist/cjs/management/api/resources/guardian/resources/enrollments/client/Client.js +3 -3
  66. package/dist/cjs/management/api/resources/guardian/resources/factors/client/Client.js +2 -2
  67. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/duo/resources/settings/client/Client.js +3 -3
  68. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/phone/client/Client.js +8 -8
  69. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.js +12 -12
  70. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/sms/client/Client.js +6 -6
  71. package/dist/cjs/management/api/resources/guardian/resources/policies/client/Client.js +2 -2
  72. package/dist/cjs/management/api/resources/hooks/client/Client.js +13 -5
  73. package/dist/cjs/management/api/resources/hooks/resources/secrets/client/Client.js +4 -4
  74. package/dist/cjs/management/api/resources/index.d.ts +1 -0
  75. package/dist/cjs/management/api/resources/index.js +2 -1
  76. package/dist/cjs/management/api/resources/jobs/client/Client.js +1 -1
  77. package/dist/cjs/management/api/resources/jobs/resources/errors/client/Client.js +1 -1
  78. package/dist/cjs/management/api/resources/jobs/resources/usersExports/client/Client.js +1 -1
  79. package/dist/cjs/management/api/resources/jobs/resources/usersImports/client/Client.js +1 -1
  80. package/dist/cjs/management/api/resources/jobs/resources/verificationEmail/client/Client.js +1 -1
  81. package/dist/cjs/management/api/resources/keys/resources/customSigning/client/Client.js +3 -3
  82. package/dist/cjs/management/api/resources/keys/resources/encryption/client/Client.js +11 -7
  83. package/dist/cjs/management/api/resources/keys/resources/signing/client/Client.js +4 -4
  84. package/dist/cjs/management/api/resources/logStreams/client/Client.d.ts +465 -300
  85. package/dist/cjs/management/api/resources/logStreams/client/Client.js +470 -305
  86. package/dist/cjs/management/api/resources/logs/client/Client.js +6 -2
  87. package/dist/cjs/management/api/resources/networkAcls/client/Client.js +10 -6
  88. package/dist/cjs/management/api/resources/organizations/client/Client.js +10 -6
  89. package/dist/cjs/management/api/resources/organizations/resources/clientGrants/client/Client.d.ts +1 -0
  90. package/dist/cjs/management/api/resources/organizations/resources/clientGrants/client/Client.js +8 -3
  91. package/dist/cjs/management/api/resources/organizations/resources/connections/client/Client.js +9 -5
  92. package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.js +10 -6
  93. package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.js +9 -5
  94. package/dist/cjs/management/api/resources/organizations/resources/invitations/client/Client.js +12 -4
  95. package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.js +7 -3
  96. package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.js +7 -3
  97. package/dist/cjs/management/api/resources/prompts/client/Client.js +2 -2
  98. package/dist/cjs/management/api/resources/prompts/resources/customText/client/Client.js +2 -2
  99. package/dist/cjs/management/api/resources/prompts/resources/partials/client/Client.js +2 -2
  100. package/dist/cjs/management/api/resources/prompts/resources/rendering/client/Client.js +8 -4
  101. package/dist/cjs/management/api/resources/refreshTokens/client/Client.d.ts +17 -0
  102. package/dist/cjs/management/api/resources/refreshTokens/client/Client.js +71 -4
  103. package/dist/cjs/management/api/resources/resourceServers/client/Client.d.ts +1 -0
  104. package/dist/cjs/management/api/resources/resourceServers/client/Client.js +14 -5
  105. package/dist/cjs/management/api/resources/riskAssessments/resources/settings/client/Client.js +2 -2
  106. package/dist/cjs/management/api/resources/riskAssessments/resources/settings/resources/newDevice/client/Client.js +2 -2
  107. package/dist/cjs/management/api/resources/roles/client/Client.js +9 -5
  108. package/dist/cjs/management/api/resources/roles/resources/permissions/client/Client.js +7 -3
  109. package/dist/cjs/management/api/resources/roles/resources/users/client/Client.js +6 -2
  110. package/dist/cjs/management/api/resources/rules/client/Client.js +13 -5
  111. package/dist/cjs/management/api/resources/rulesConfigs/client/Client.js +3 -3
  112. package/dist/cjs/management/api/resources/selfServiceProfiles/client/Client.js +9 -5
  113. package/dist/cjs/management/api/resources/selfServiceProfiles/resources/customText/client/Client.d.ts +2 -2
  114. package/dist/cjs/management/api/resources/selfServiceProfiles/resources/customText/client/Client.js +4 -4
  115. package/dist/cjs/management/api/resources/selfServiceProfiles/resources/ssoTicket/client/Client.d.ts +2 -2
  116. package/dist/cjs/management/api/resources/selfServiceProfiles/resources/ssoTicket/client/Client.js +4 -4
  117. package/dist/cjs/management/api/resources/sessions/client/Client.js +4 -4
  118. package/dist/cjs/management/api/resources/stats/client/Client.js +6 -2
  119. package/dist/cjs/management/api/resources/supplementalSignals/client/Client.js +2 -2
  120. package/dist/cjs/management/api/resources/tenants/resources/settings/client/Client.js +6 -2
  121. package/dist/cjs/management/api/resources/tickets/client/Client.js +2 -2
  122. package/dist/cjs/management/api/resources/tokenExchangeProfiles/client/Client.js +9 -5
  123. package/dist/cjs/management/api/resources/userAttributeProfiles/client/Client.d.ts +1 -1
  124. package/dist/cjs/management/api/resources/userAttributeProfiles/client/Client.js +12 -8
  125. package/dist/cjs/management/api/resources/userBlocks/client/Client.js +16 -4
  126. package/dist/cjs/management/api/resources/userGrants/client/Client.js +11 -3
  127. package/dist/cjs/management/api/resources/users/client/Client.js +20 -8
  128. package/dist/cjs/management/api/resources/users/resources/authenticationMethods/client/Client.js +11 -7
  129. package/dist/cjs/management/api/resources/users/resources/authenticators/client/Client.js +1 -1
  130. package/dist/cjs/management/api/resources/users/resources/connectedAccounts/client/Client.js +5 -1
  131. package/dist/cjs/management/api/resources/users/resources/enrollments/client/Client.js +1 -1
  132. package/dist/cjs/management/api/resources/users/resources/federatedConnectionsTokensets/client/Client.js +2 -2
  133. package/dist/cjs/management/api/resources/users/resources/groups/client/Client.js +5 -1
  134. package/dist/cjs/management/api/resources/users/resources/identities/client/Client.js +2 -2
  135. package/dist/cjs/management/api/resources/users/resources/logs/client/Client.js +5 -1
  136. package/dist/cjs/management/api/resources/users/resources/multifactor/client/Client.js +2 -2
  137. package/dist/cjs/management/api/resources/users/resources/organizations/client/Client.js +5 -1
  138. package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.js +7 -3
  139. package/dist/cjs/management/api/resources/users/resources/refreshToken/client/Client.js +6 -2
  140. package/dist/cjs/management/api/resources/users/resources/riskAssessments/client/Client.js +1 -1
  141. package/dist/cjs/management/api/resources/users/resources/roles/client/Client.js +7 -3
  142. package/dist/cjs/management/api/resources/users/resources/sessions/client/Client.js +6 -2
  143. package/dist/cjs/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.d.ts +1 -1
  144. package/dist/cjs/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.js +10 -6
  145. package/dist/cjs/management/api/types/types.d.ts +3481 -148
  146. package/dist/cjs/management/api/types/types.js +623 -15
  147. package/dist/cjs/management/core/fetcher/Fetcher.d.ts +6 -0
  148. package/dist/cjs/management/core/fetcher/Fetcher.js +9 -8
  149. package/dist/cjs/management/core/index.d.ts +1 -0
  150. package/dist/cjs/management/core/index.js +1 -0
  151. package/dist/cjs/management/core/stream/Stream.d.ts +56 -0
  152. package/dist/cjs/management/core/stream/Stream.js +267 -0
  153. package/dist/cjs/management/core/stream/index.d.ts +1 -0
  154. package/dist/cjs/management/core/stream/index.js +5 -0
  155. package/dist/cjs/management/core/url/QueryStringBuilder.d.ts +47 -0
  156. package/dist/cjs/management/core/url/QueryStringBuilder.js +83 -0
  157. package/dist/cjs/management/core/url/index.d.ts +1 -0
  158. package/dist/cjs/management/core/url/index.js +3 -1
  159. package/dist/cjs/management/core/url/qs.d.ts +2 -1
  160. package/dist/cjs/management/core/url/qs.js +24 -12
  161. package/dist/cjs/management/version.d.ts +1 -1
  162. package/dist/cjs/management/version.js +1 -1
  163. package/dist/esm/management/Client.d.mts +3 -0
  164. package/dist/esm/management/Client.mjs +5 -0
  165. package/dist/esm/management/api/errors/GoneError.d.mts +5 -0
  166. package/dist/esm/management/api/errors/GoneError.mjs +17 -0
  167. package/dist/esm/management/api/errors/index.d.mts +1 -0
  168. package/dist/esm/management/api/errors/index.mjs +1 -0
  169. package/dist/esm/management/api/requests/requests.d.mts +56 -10
  170. package/dist/esm/management/api/resources/actions/client/Client.mjs +15 -7
  171. package/dist/esm/management/api/resources/actions/resources/executions/client/Client.mjs +1 -1
  172. package/dist/esm/management/api/resources/actions/resources/modules/client/Client.mjs +15 -7
  173. package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/Client.mjs +7 -3
  174. package/dist/esm/management/api/resources/actions/resources/triggers/client/Client.mjs +1 -1
  175. package/dist/esm/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.mjs +6 -2
  176. package/dist/esm/management/api/resources/actions/resources/versions/client/Client.mjs +7 -3
  177. package/dist/esm/management/api/resources/anomaly/resources/blocks/client/Client.mjs +2 -2
  178. package/dist/esm/management/api/resources/attackProtection/resources/botDetection/client/Client.mjs +2 -2
  179. package/dist/esm/management/api/resources/attackProtection/resources/breachedPasswordDetection/client/Client.mjs +2 -2
  180. package/dist/esm/management/api/resources/attackProtection/resources/bruteForceProtection/client/Client.mjs +2 -2
  181. package/dist/esm/management/api/resources/attackProtection/resources/captcha/client/Client.mjs +2 -2
  182. package/dist/esm/management/api/resources/attackProtection/resources/suspiciousIpThrottling/client/Client.mjs +2 -2
  183. package/dist/esm/management/api/resources/branding/client/Client.mjs +2 -2
  184. package/dist/esm/management/api/resources/branding/resources/phone/resources/providers/client/Client.mjs +10 -6
  185. package/dist/esm/management/api/resources/branding/resources/phone/resources/templates/client/Client.mjs +11 -7
  186. package/dist/esm/management/api/resources/branding/resources/templates/client/Client.mjs +3 -3
  187. package/dist/esm/management/api/resources/branding/resources/themes/client/Client.mjs +5 -5
  188. package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +9 -5
  189. package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.mjs +5 -1
  190. package/dist/esm/management/api/resources/clients/client/Client.mjs +16 -8
  191. package/dist/esm/management/api/resources/clients/resources/connections/client/Client.d.mts +1 -0
  192. package/dist/esm/management/api/resources/clients/resources/connections/client/Client.mjs +6 -1
  193. package/dist/esm/management/api/resources/clients/resources/credentials/client/Client.mjs +5 -5
  194. package/dist/esm/management/api/resources/connectionProfiles/client/Client.mjs +11 -7
  195. package/dist/esm/management/api/resources/connections/client/Client.d.mts +1 -0
  196. package/dist/esm/management/api/resources/connections/client/Client.mjs +15 -6
  197. package/dist/esm/management/api/resources/connections/resources/clients/client/Client.mjs +6 -2
  198. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.mjs +16 -8
  199. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/client/Client.mjs +1 -1
  200. package/dist/esm/management/api/resources/connections/resources/keys/client/Client.mjs +3 -3
  201. package/dist/esm/management/api/resources/connections/resources/scimConfiguration/client/Client.mjs +10 -6
  202. package/dist/esm/management/api/resources/connections/resources/scimConfiguration/resources/tokens/client/Client.mjs +3 -3
  203. package/dist/esm/management/api/resources/connections/resources/users/client/Client.mjs +5 -1
  204. package/dist/esm/management/api/resources/customDomains/client/Client.mjs +13 -9
  205. package/dist/esm/management/api/resources/deviceCredentials/client/Client.mjs +7 -3
  206. package/dist/esm/management/api/resources/emailTemplates/client/Client.mjs +4 -4
  207. package/dist/esm/management/api/resources/emails/resources/provider/client/Client.mjs +8 -4
  208. package/dist/esm/management/api/resources/eventStreams/client/Client.mjs +10 -6
  209. package/dist/esm/management/api/resources/eventStreams/resources/deliveries/client/Client.mjs +6 -2
  210. package/dist/esm/management/api/resources/eventStreams/resources/redeliveries/client/Client.mjs +2 -2
  211. package/dist/esm/management/api/resources/events/client/Client.d.mts +18 -0
  212. package/dist/esm/management/api/resources/events/client/Client.mjs +98 -0
  213. package/dist/esm/management/api/resources/events/client/index.d.mts +1 -0
  214. package/dist/esm/management/api/resources/events/client/index.mjs +1 -0
  215. package/dist/esm/management/api/resources/events/index.d.mts +1 -0
  216. package/dist/esm/management/api/resources/events/index.mjs +1 -0
  217. package/dist/esm/management/api/resources/flows/client/Client.d.mts +4 -1
  218. package/dist/esm/management/api/resources/flows/client/Client.mjs +17 -6
  219. package/dist/esm/management/api/resources/flows/resources/executions/client/Client.d.mts +3 -1
  220. package/dist/esm/management/api/resources/flows/resources/executions/client/Client.mjs +14 -4
  221. package/dist/esm/management/api/resources/flows/resources/vault/resources/connections/client/Client.mjs +9 -5
  222. package/dist/esm/management/api/resources/forms/client/Client.d.mts +5 -2
  223. package/dist/esm/management/api/resources/forms/client/Client.mjs +18 -7
  224. package/dist/esm/management/api/resources/groups/client/Client.d.mts +1 -0
  225. package/dist/esm/management/api/resources/groups/client/Client.mjs +10 -4
  226. package/dist/esm/management/api/resources/groups/resources/members/client/Client.mjs +5 -1
  227. package/dist/esm/management/api/resources/guardian/resources/enrollments/client/Client.mjs +3 -3
  228. package/dist/esm/management/api/resources/guardian/resources/factors/client/Client.mjs +2 -2
  229. package/dist/esm/management/api/resources/guardian/resources/factors/resources/duo/resources/settings/client/Client.mjs +3 -3
  230. package/dist/esm/management/api/resources/guardian/resources/factors/resources/phone/client/Client.mjs +8 -8
  231. package/dist/esm/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.mjs +12 -12
  232. package/dist/esm/management/api/resources/guardian/resources/factors/resources/sms/client/Client.mjs +6 -6
  233. package/dist/esm/management/api/resources/guardian/resources/policies/client/Client.mjs +2 -2
  234. package/dist/esm/management/api/resources/hooks/client/Client.mjs +13 -5
  235. package/dist/esm/management/api/resources/hooks/resources/secrets/client/Client.mjs +4 -4
  236. package/dist/esm/management/api/resources/index.d.mts +1 -0
  237. package/dist/esm/management/api/resources/index.mjs +1 -0
  238. package/dist/esm/management/api/resources/jobs/client/Client.mjs +1 -1
  239. package/dist/esm/management/api/resources/jobs/resources/errors/client/Client.mjs +1 -1
  240. package/dist/esm/management/api/resources/jobs/resources/usersExports/client/Client.mjs +1 -1
  241. package/dist/esm/management/api/resources/jobs/resources/usersImports/client/Client.mjs +1 -1
  242. package/dist/esm/management/api/resources/jobs/resources/verificationEmail/client/Client.mjs +1 -1
  243. package/dist/esm/management/api/resources/keys/resources/customSigning/client/Client.mjs +3 -3
  244. package/dist/esm/management/api/resources/keys/resources/encryption/client/Client.mjs +11 -7
  245. package/dist/esm/management/api/resources/keys/resources/signing/client/Client.mjs +4 -4
  246. package/dist/esm/management/api/resources/logStreams/client/Client.d.mts +465 -300
  247. package/dist/esm/management/api/resources/logStreams/client/Client.mjs +470 -305
  248. package/dist/esm/management/api/resources/logs/client/Client.mjs +6 -2
  249. package/dist/esm/management/api/resources/networkAcls/client/Client.mjs +10 -6
  250. package/dist/esm/management/api/resources/organizations/client/Client.mjs +10 -6
  251. package/dist/esm/management/api/resources/organizations/resources/clientGrants/client/Client.d.mts +1 -0
  252. package/dist/esm/management/api/resources/organizations/resources/clientGrants/client/Client.mjs +8 -3
  253. package/dist/esm/management/api/resources/organizations/resources/connections/client/Client.mjs +9 -5
  254. package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.mjs +10 -6
  255. package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.mjs +9 -5
  256. package/dist/esm/management/api/resources/organizations/resources/invitations/client/Client.mjs +12 -4
  257. package/dist/esm/management/api/resources/organizations/resources/members/client/Client.mjs +7 -3
  258. package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.mjs +7 -3
  259. package/dist/esm/management/api/resources/prompts/client/Client.mjs +2 -2
  260. package/dist/esm/management/api/resources/prompts/resources/customText/client/Client.mjs +2 -2
  261. package/dist/esm/management/api/resources/prompts/resources/partials/client/Client.mjs +2 -2
  262. package/dist/esm/management/api/resources/prompts/resources/rendering/client/Client.mjs +8 -4
  263. package/dist/esm/management/api/resources/refreshTokens/client/Client.d.mts +17 -0
  264. package/dist/esm/management/api/resources/refreshTokens/client/Client.mjs +71 -4
  265. package/dist/esm/management/api/resources/resourceServers/client/Client.d.mts +1 -0
  266. package/dist/esm/management/api/resources/resourceServers/client/Client.mjs +14 -5
  267. package/dist/esm/management/api/resources/riskAssessments/resources/settings/client/Client.mjs +2 -2
  268. package/dist/esm/management/api/resources/riskAssessments/resources/settings/resources/newDevice/client/Client.mjs +2 -2
  269. package/dist/esm/management/api/resources/roles/client/Client.mjs +9 -5
  270. package/dist/esm/management/api/resources/roles/resources/permissions/client/Client.mjs +7 -3
  271. package/dist/esm/management/api/resources/roles/resources/users/client/Client.mjs +6 -2
  272. package/dist/esm/management/api/resources/rules/client/Client.mjs +13 -5
  273. package/dist/esm/management/api/resources/rulesConfigs/client/Client.mjs +3 -3
  274. package/dist/esm/management/api/resources/selfServiceProfiles/client/Client.mjs +9 -5
  275. package/dist/esm/management/api/resources/selfServiceProfiles/resources/customText/client/Client.d.mts +2 -2
  276. package/dist/esm/management/api/resources/selfServiceProfiles/resources/customText/client/Client.mjs +4 -4
  277. package/dist/esm/management/api/resources/selfServiceProfiles/resources/ssoTicket/client/Client.d.mts +2 -2
  278. package/dist/esm/management/api/resources/selfServiceProfiles/resources/ssoTicket/client/Client.mjs +4 -4
  279. package/dist/esm/management/api/resources/sessions/client/Client.mjs +4 -4
  280. package/dist/esm/management/api/resources/stats/client/Client.mjs +6 -2
  281. package/dist/esm/management/api/resources/supplementalSignals/client/Client.mjs +2 -2
  282. package/dist/esm/management/api/resources/tenants/resources/settings/client/Client.mjs +6 -2
  283. package/dist/esm/management/api/resources/tickets/client/Client.mjs +2 -2
  284. package/dist/esm/management/api/resources/tokenExchangeProfiles/client/Client.mjs +9 -5
  285. package/dist/esm/management/api/resources/userAttributeProfiles/client/Client.d.mts +1 -1
  286. package/dist/esm/management/api/resources/userAttributeProfiles/client/Client.mjs +12 -8
  287. package/dist/esm/management/api/resources/userBlocks/client/Client.mjs +16 -4
  288. package/dist/esm/management/api/resources/userGrants/client/Client.mjs +11 -3
  289. package/dist/esm/management/api/resources/users/client/Client.mjs +20 -8
  290. package/dist/esm/management/api/resources/users/resources/authenticationMethods/client/Client.mjs +11 -7
  291. package/dist/esm/management/api/resources/users/resources/authenticators/client/Client.mjs +1 -1
  292. package/dist/esm/management/api/resources/users/resources/connectedAccounts/client/Client.mjs +5 -1
  293. package/dist/esm/management/api/resources/users/resources/enrollments/client/Client.mjs +1 -1
  294. package/dist/esm/management/api/resources/users/resources/federatedConnectionsTokensets/client/Client.mjs +2 -2
  295. package/dist/esm/management/api/resources/users/resources/groups/client/Client.mjs +5 -1
  296. package/dist/esm/management/api/resources/users/resources/identities/client/Client.mjs +2 -2
  297. package/dist/esm/management/api/resources/users/resources/logs/client/Client.mjs +5 -1
  298. package/dist/esm/management/api/resources/users/resources/multifactor/client/Client.mjs +2 -2
  299. package/dist/esm/management/api/resources/users/resources/organizations/client/Client.mjs +5 -1
  300. package/dist/esm/management/api/resources/users/resources/permissions/client/Client.mjs +7 -3
  301. package/dist/esm/management/api/resources/users/resources/refreshToken/client/Client.mjs +6 -2
  302. package/dist/esm/management/api/resources/users/resources/riskAssessments/client/Client.mjs +1 -1
  303. package/dist/esm/management/api/resources/users/resources/roles/client/Client.mjs +7 -3
  304. package/dist/esm/management/api/resources/users/resources/sessions/client/Client.mjs +6 -2
  305. package/dist/esm/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.d.mts +1 -1
  306. package/dist/esm/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.mjs +10 -6
  307. package/dist/esm/management/api/types/types.d.mts +3481 -148
  308. package/dist/esm/management/api/types/types.mjs +610 -5
  309. package/dist/esm/management/core/fetcher/Fetcher.d.mts +6 -0
  310. package/dist/esm/management/core/fetcher/Fetcher.mjs +9 -8
  311. package/dist/esm/management/core/index.d.mts +1 -0
  312. package/dist/esm/management/core/index.mjs +1 -0
  313. package/dist/esm/management/core/stream/Stream.d.mts +56 -0
  314. package/dist/esm/management/core/stream/Stream.mjs +262 -0
  315. package/dist/esm/management/core/stream/index.d.mts +1 -0
  316. package/dist/esm/management/core/stream/index.mjs +1 -0
  317. package/dist/esm/management/core/url/QueryStringBuilder.d.mts +47 -0
  318. package/dist/esm/management/core/url/QueryStringBuilder.mjs +80 -0
  319. package/dist/esm/management/core/url/index.d.mts +1 -0
  320. package/dist/esm/management/core/url/index.mjs +1 -0
  321. package/dist/esm/management/core/url/qs.d.mts +2 -1
  322. package/dist/esm/management/core/url/qs.mjs +24 -12
  323. package/dist/esm/management/version.d.mts +1 -1
  324. package/dist/esm/management/version.mjs +1 -1
  325. package/package.json +1 -1
  326. package/reference.md +668 -331
@@ -59,7 +59,11 @@ export class EventStreamsClient {
59
59
  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, "event-streams"),
60
60
  method: "GET",
61
61
  headers: _headers,
62
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
62
+ queryString: core.url
63
+ .queryBuilder()
64
+ .addMany(_queryParams)
65
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
66
+ .build(),
63
67
  timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
64
68
  maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
65
69
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -141,7 +145,7 @@ export class EventStreamsClient {
141
145
  method: "POST",
142
146
  headers: _headers,
143
147
  contentType: "application/json",
144
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
148
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
145
149
  requestType: "json",
146
150
  body: request,
147
151
  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,
@@ -203,7 +207,7 @@ export class EventStreamsClient {
203
207
  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, `event-streams/${core.url.encodePathParam(id)}`),
204
208
  method: "GET",
205
209
  headers: _headers,
206
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
210
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
207
211
  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,
208
212
  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,
209
213
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -261,7 +265,7 @@ export class EventStreamsClient {
261
265
  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, `event-streams/${core.url.encodePathParam(id)}`),
262
266
  method: "DELETE",
263
267
  headers: _headers,
264
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
268
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
265
269
  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,
266
270
  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,
267
271
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -318,7 +322,7 @@ export class EventStreamsClient {
318
322
  method: "PATCH",
319
323
  headers: _headers,
320
324
  contentType: "application/json",
321
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
325
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
322
326
  requestType: "json",
323
327
  body: request,
324
328
  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,
@@ -381,7 +385,7 @@ export class EventStreamsClient {
381
385
  method: "POST",
382
386
  headers: _headers,
383
387
  contentType: "application/json",
384
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
388
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
385
389
  requestType: "json",
386
390
  body: request,
387
391
  timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
@@ -61,7 +61,11 @@ export class DeliveriesClient {
61
61
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, `event-streams/${core.url.encodePathParam(id)}/deliveries`),
62
62
  method: "GET",
63
63
  headers: _headers,
64
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
64
+ queryString: core.url
65
+ .queryBuilder()
66
+ .addMany(_queryParams)
67
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
68
+ .build(),
65
69
  timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
66
70
  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,
67
71
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -119,7 +123,7 @@ export class DeliveriesClient {
119
123
  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, `event-streams/${core.url.encodePathParam(id)}/deliveries/${core.url.encodePathParam(event_id)}`),
120
124
  method: "GET",
121
125
  headers: _headers,
122
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
126
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
123
127
  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,
124
128
  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,
125
129
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -46,7 +46,7 @@ export class RedeliveriesClient {
46
46
  method: "POST",
47
47
  headers: _headers,
48
48
  contentType: "application/json",
49
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
49
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
50
50
  requestType: "json",
51
51
  body: request,
52
52
  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,
@@ -110,7 +110,7 @@ export class RedeliveriesClient {
110
110
  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, `event-streams/${core.url.encodePathParam(id)}/redeliver/${core.url.encodePathParam(event_id)}`),
111
111
  method: "POST",
112
112
  headers: _headers,
113
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
113
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
114
114
  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,
115
115
  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,
116
116
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -0,0 +1,18 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
3
+ import * as core from "../../../../core/index.mjs";
4
+ import * as Management from "../../../index.mjs";
5
+ export declare namespace EventsClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class EventsClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<EventsClient.Options>;
12
+ constructor(options: EventsClient.Options);
13
+ /**
14
+ * Subscribe to events via Server-Sent Events (SSE)
15
+ */
16
+ subscribe(request?: Management.SubscribeEventsRequestParameters, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<core.Stream<Management.EventStreamSubscribeEventsResponseContent>>;
17
+ private __subscribe;
18
+ }
@@ -0,0 +1,98 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
12
+ import * as core from "../../../../core/index.mjs";
13
+ import { mergeHeaders } from "../../../../core/headers.mjs";
14
+ import * as environments from "../../../../environments.mjs";
15
+ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
16
+ import * as errors from "../../../../errors/index.mjs";
17
+ import * as Management from "../../../index.mjs";
18
+ export class EventsClient {
19
+ constructor(options) {
20
+ this._options = normalizeClientOptionsWithAuth(options);
21
+ }
22
+ /**
23
+ * Subscribe to events via Server-Sent Events (SSE)
24
+ */
25
+ subscribe(request = {}, requestOptions) {
26
+ return core.HttpResponsePromise.fromPromise(this.__subscribe(request, requestOptions));
27
+ }
28
+ __subscribe() {
29
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
30
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
31
+ const { from: from_, from_timestamp: fromTimestamp, event_type: eventType } = request;
32
+ const _queryParams = {
33
+ from: from_,
34
+ from_timestamp: fromTimestamp,
35
+ event_type: Array.isArray(eventType)
36
+ ? eventType.map((item) => item)
37
+ : eventType !== undefined
38
+ ? eventType
39
+ : undefined,
40
+ };
41
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
42
+ let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
43
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
44
+ 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, "events"),
45
+ method: "GET",
46
+ headers: _headers,
47
+ queryString: core.url
48
+ .queryBuilder()
49
+ .addMany(_queryParams)
50
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
51
+ .build(),
52
+ responseType: "sse",
53
+ 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,
54
+ 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,
55
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
56
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
57
+ logging: this._options.logging,
58
+ });
59
+ if (_response.ok) {
60
+ return {
61
+ data: new core.Stream({
62
+ stream: _response.body,
63
+ parse: (data) => data,
64
+ signal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
65
+ eventShape: {
66
+ type: "sse",
67
+ eventDiscriminator: "type",
68
+ },
69
+ }),
70
+ rawResponse: _response.rawResponse,
71
+ };
72
+ }
73
+ if (_response.error.reason === "status-code") {
74
+ switch (_response.error.statusCode) {
75
+ case 400:
76
+ throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
77
+ case 401:
78
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
79
+ case 403:
80
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
81
+ case 404:
82
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
83
+ case 410:
84
+ throw new Management.GoneError(_response.error.body, _response.rawResponse);
85
+ case 429:
86
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
87
+ default:
88
+ throw new errors.ManagementError({
89
+ statusCode: _response.error.statusCode,
90
+ body: _response.error.body,
91
+ rawResponse: _response.rawResponse,
92
+ });
93
+ }
94
+ }
95
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/events");
96
+ });
97
+ }
98
+ }
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -30,6 +30,7 @@ export declare class FlowsClient {
30
30
  * page: 1,
31
31
  * per_page: 1,
32
32
  * include_totals: true,
33
+ * hydrate: ["form_count"],
33
34
  * synchronous: true
34
35
  * })
35
36
  */
@@ -62,7 +63,9 @@ export declare class FlowsClient {
62
63
  * @throws {@link Management.TooManyRequestsError}
63
64
  *
64
65
  * @example
65
- * await client.flows.get("id")
66
+ * await client.flows.get("id", {
67
+ * hydrate: ["form_count"]
68
+ * })
66
69
  */
67
70
  get(id: string, request?: Management.GetFlowRequestParameters, requestOptions?: FlowsClient.RequestOptions): core.HttpResponsePromise<Management.GetFlowResponseContent>;
68
71
  private __get;
@@ -43,6 +43,7 @@ export class FlowsClient {
43
43
  * page: 1,
44
44
  * per_page: 1,
45
45
  * include_totals: true,
46
+ * hydrate: ["form_count"],
46
47
  * synchronous: true
47
48
  * })
48
49
  */
@@ -68,7 +69,11 @@ export class FlowsClient {
68
69
  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"),
69
70
  method: "GET",
70
71
  headers: _headers,
71
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
72
+ queryString: core.url
73
+ .queryBuilder()
74
+ .addMany(_queryParams)
75
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
76
+ .build(),
72
77
  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,
73
78
  maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
74
79
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -142,7 +147,7 @@ export class FlowsClient {
142
147
  method: "POST",
143
148
  headers: _headers,
144
149
  contentType: "application/json",
145
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
150
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
146
151
  requestType: "json",
147
152
  body: request,
148
153
  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,
@@ -187,7 +192,9 @@ export class FlowsClient {
187
192
  * @throws {@link Management.TooManyRequestsError}
188
193
  *
189
194
  * @example
190
- * await client.flows.get("id")
195
+ * await client.flows.get("id", {
196
+ * hydrate: ["form_count"]
197
+ * })
191
198
  */
192
199
  get(id, request = {}, requestOptions) {
193
200
  return core.HttpResponsePromise.fromPromise(this.__get(id, request, requestOptions));
@@ -205,7 +212,11 @@ export class FlowsClient {
205
212
  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(id)}`),
206
213
  method: "GET",
207
214
  headers: _headers,
208
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
215
+ queryString: core.url
216
+ .queryBuilder()
217
+ .addMany(_queryParams)
218
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
219
+ .build(),
209
220
  timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
210
221
  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,
211
222
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -263,7 +274,7 @@ export class FlowsClient {
263
274
  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(id)}`),
264
275
  method: "DELETE",
265
276
  headers: _headers,
266
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
277
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
267
278
  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,
268
279
  maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
269
280
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -322,7 +333,7 @@ export class FlowsClient {
322
333
  method: "PATCH",
323
334
  headers: _headers,
324
335
  contentType: "application/json",
325
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
336
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
326
337
  requestType: "json",
327
338
  body: request,
328
339
  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,
@@ -39,7 +39,9 @@ export declare class ExecutionsClient {
39
39
  * @throws {@link Management.TooManyRequestsError}
40
40
  *
41
41
  * @example
42
- * await client.flows.executions.get("flow_id", "execution_id")
42
+ * await client.flows.executions.get("flow_id", "execution_id", {
43
+ * hydrate: ["debug"]
44
+ * })
43
45
  */
44
46
  get(flow_id: string, execution_id: string, request?: Management.GetFlowExecutionRequestParameters, requestOptions?: ExecutionsClient.RequestOptions): core.HttpResponsePromise<Management.GetFlowExecutionResponseContent>;
45
47
  private __get;
@@ -50,7 +50,11 @@ export class ExecutionsClient {
50
50
  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`),
51
51
  method: "GET",
52
52
  headers: _headers,
53
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
53
+ queryString: core.url
54
+ .queryBuilder()
55
+ .addMany(_queryParams)
56
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
57
+ .build(),
54
58
  timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
55
59
  maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
56
60
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -107,7 +111,9 @@ export class ExecutionsClient {
107
111
  * @throws {@link Management.TooManyRequestsError}
108
112
  *
109
113
  * @example
110
- * await client.flows.executions.get("flow_id", "execution_id")
114
+ * await client.flows.executions.get("flow_id", "execution_id", {
115
+ * hydrate: ["debug"]
116
+ * })
111
117
  */
112
118
  get(flow_id, execution_id, request = {}, requestOptions) {
113
119
  return core.HttpResponsePromise.fromPromise(this.__get(flow_id, execution_id, request, requestOptions));
@@ -125,7 +131,11 @@ export class ExecutionsClient {
125
131
  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/${core.url.encodePathParam(execution_id)}`),
126
132
  method: "GET",
127
133
  headers: _headers,
128
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
134
+ queryString: core.url
135
+ .queryBuilder()
136
+ .addMany(_queryParams)
137
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
138
+ .build(),
129
139
  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
140
  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
141
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -184,7 +194,7 @@ export class ExecutionsClient {
184
194
  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/${core.url.encodePathParam(execution_id)}`),
185
195
  method: "DELETE",
186
196
  headers: _headers,
187
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
197
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
188
198
  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,
189
199
  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,
190
200
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -51,7 +51,11 @@ export class ConnectionsClient {
51
51
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "flows/vault/connections"),
52
52
  method: "GET",
53
53
  headers: _headers,
54
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
54
+ queryString: core.url
55
+ .queryBuilder()
56
+ .addMany(_queryParams)
57
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
58
+ .build(),
55
59
  timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
56
60
  maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
57
61
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -131,7 +135,7 @@ export class ConnectionsClient {
131
135
  method: "POST",
132
136
  headers: _headers,
133
137
  contentType: "application/json",
134
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
138
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
135
139
  requestType: "json",
136
140
  body: request,
137
141
  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,
@@ -192,7 +196,7 @@ export class ConnectionsClient {
192
196
  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/${core.url.encodePathParam(id)}`),
193
197
  method: "GET",
194
198
  headers: _headers,
195
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
199
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
196
200
  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,
197
201
  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,
198
202
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -252,7 +256,7 @@ export class ConnectionsClient {
252
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, `flows/vault/connections/${core.url.encodePathParam(id)}`),
253
257
  method: "DELETE",
254
258
  headers: _headers,
255
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
259
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
256
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,
257
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,
258
262
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -310,7 +314,7 @@ export class ConnectionsClient {
310
314
  method: "PATCH",
311
315
  headers: _headers,
312
316
  contentType: "application/json",
313
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
317
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
314
318
  requestType: "json",
315
319
  body: request,
316
320
  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,
@@ -23,7 +23,8 @@ export declare class FormsClient {
23
23
  * await client.forms.list({
24
24
  * page: 1,
25
25
  * per_page: 1,
26
- * include_totals: true
26
+ * include_totals: true,
27
+ * hydrate: ["flow_count"]
27
28
  * })
28
29
  */
29
30
  list(request?: Management.ListFormsRequestParameters, requestOptions?: FormsClient.RequestOptions): Promise<core.Page<Management.FormSummary, Management.ListFormsOffsetPaginatedResponseContent>>;
@@ -55,7 +56,9 @@ export declare class FormsClient {
55
56
  * @throws {@link Management.TooManyRequestsError}
56
57
  *
57
58
  * @example
58
- * await client.forms.get("id")
59
+ * await client.forms.get("id", {
60
+ * hydrate: ["flow_count"]
61
+ * })
59
62
  */
60
63
  get(id: string, request?: Management.GetFormRequestParameters, requestOptions?: FormsClient.RequestOptions): core.HttpResponsePromise<Management.GetFormResponseContent>;
61
64
  private __get;
@@ -32,7 +32,8 @@ export class FormsClient {
32
32
  * await client.forms.list({
33
33
  * page: 1,
34
34
  * per_page: 1,
35
- * include_totals: true
35
+ * include_totals: true,
36
+ * hydrate: ["flow_count"]
36
37
  * })
37
38
  */
38
39
  list() {
@@ -56,7 +57,11 @@ export class FormsClient {
56
57
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "forms"),
57
58
  method: "GET",
58
59
  headers: _headers,
59
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
60
+ queryString: core.url
61
+ .queryBuilder()
62
+ .addMany(_queryParams)
63
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
64
+ .build(),
60
65
  timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
61
66
  maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
62
67
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -130,7 +135,7 @@ export class FormsClient {
130
135
  method: "POST",
131
136
  headers: _headers,
132
137
  contentType: "application/json",
133
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
138
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
134
139
  requestType: "json",
135
140
  body: request,
136
141
  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,
@@ -175,7 +180,9 @@ export class FormsClient {
175
180
  * @throws {@link Management.TooManyRequestsError}
176
181
  *
177
182
  * @example
178
- * await client.forms.get("id")
183
+ * await client.forms.get("id", {
184
+ * hydrate: ["flow_count"]
185
+ * })
179
186
  */
180
187
  get(id, request = {}, requestOptions) {
181
188
  return core.HttpResponsePromise.fromPromise(this.__get(id, request, requestOptions));
@@ -193,7 +200,11 @@ export class FormsClient {
193
200
  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/${core.url.encodePathParam(id)}`),
194
201
  method: "GET",
195
202
  headers: _headers,
196
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
203
+ queryString: core.url
204
+ .queryBuilder()
205
+ .addMany(_queryParams)
206
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
207
+ .build(),
197
208
  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,
198
209
  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,
199
210
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -250,7 +261,7 @@ export class FormsClient {
250
261
  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/${core.url.encodePathParam(id)}`),
251
262
  method: "DELETE",
252
263
  headers: _headers,
253
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
264
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
254
265
  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,
255
266
  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,
256
267
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -306,7 +317,7 @@ export class FormsClient {
306
317
  method: "PATCH",
307
318
  headers: _headers,
308
319
  contentType: "application/json",
309
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
320
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
310
321
  requestType: "json",
311
322
  body: request,
312
323
  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,
@@ -29,6 +29,7 @@ export declare class GroupsClient {
29
29
  * connection_id: "connection_id",
30
30
  * name: "name",
31
31
  * external_id: "external_id",
32
+ * search: "search",
32
33
  * fields: "fields",
33
34
  * include_fields: true,
34
35
  * from: "from",
@@ -40,6 +40,7 @@ export class GroupsClient {
40
40
  * connection_id: "connection_id",
41
41
  * name: "name",
42
42
  * external_id: "external_id",
43
+ * search: "search",
43
44
  * fields: "fields",
44
45
  * include_fields: true,
45
46
  * from: "from",
@@ -50,11 +51,12 @@ export class GroupsClient {
50
51
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
51
52
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
52
53
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
53
- const { connection_id: connectionId, name, external_id: externalId, fields, include_fields: includeFields, from: from_, take = 50, } = request;
54
+ const { connection_id: connectionId, name, external_id: externalId, search, fields, include_fields: includeFields, from: from_, take = 50, } = request;
54
55
  const _queryParams = {
55
56
  connection_id: connectionId,
56
57
  name,
57
58
  external_id: externalId,
59
+ search,
58
60
  fields,
59
61
  include_fields: includeFields,
60
62
  from: from_,
@@ -66,7 +68,11 @@ export class GroupsClient {
66
68
  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"),
67
69
  method: "GET",
68
70
  headers: _headers,
69
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
71
+ queryString: core.url
72
+ .queryBuilder()
73
+ .addMany(_queryParams)
74
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
75
+ .build(),
70
76
  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,
71
77
  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,
72
78
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -138,7 +144,7 @@ export class GroupsClient {
138
144
  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)}`),
139
145
  method: "GET",
140
146
  headers: _headers,
141
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
147
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
142
148
  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,
143
149
  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
150
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -197,7 +203,7 @@ export class GroupsClient {
197
203
  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)}`),
198
204
  method: "DELETE",
199
205
  headers: _headers,
200
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
206
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
201
207
  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,
202
208
  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,
203
209
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,