@workos-inc/node 8.4.0 → 8.6.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 (331) hide show
  1. package/lib/{action.interface-D_DJMyrq.d.cts → action.interface-BAKF6gfV.d.cts} +2 -2
  2. package/lib/{action.serializer-CWhwCinS.cjs → action.serializer-DAcb-o-1.cjs} +2 -2
  3. package/lib/{action.serializer-CWhwCinS.cjs.map → action.serializer-DAcb-o-1.cjs.map} +1 -1
  4. package/lib/actions/actions.cjs +1 -1
  5. package/lib/actions/actions.d.cts +1 -1
  6. package/lib/actions/interfaces/action.interface.d.cts +1 -1
  7. package/lib/actions/interfaces/index.d.cts +1 -1
  8. package/lib/actions/serializers/action.serializer.cjs +1 -1
  9. package/lib/actions/serializers/action.serializer.d.cts +1 -1
  10. package/lib/{actions-CVHQXngv.cjs → actions-DRojhekm.cjs} +2 -2
  11. package/lib/{actions-CVHQXngv.cjs.map → actions-DRojhekm.cjs.map} +1 -1
  12. package/lib/{actions-Ci8wakLD.d.cts → actions-yS4tXCm5.d.cts} +2 -2
  13. package/lib/api-keys/api-keys.d.cts +1 -1
  14. package/lib/api-keys/interfaces/create-organization-api-key-options.interface.d.cts +1 -1
  15. package/lib/api-keys/interfaces/index.d.cts +2 -2
  16. package/lib/api-keys/interfaces/list-organization-api-keys-options.interface.d.cts +1 -1
  17. package/lib/api-keys/serializers/create-organization-api-key-options.serializer.d.cts +1 -1
  18. package/lib/api-keys/serializers/index.d.cts +1 -1
  19. package/lib/{api-keys-5t7nLnb5.d.cts → api-keys-CSDwj0TW.d.cts} +30 -30
  20. package/lib/audit-logs/audit-logs.d.cts +1 -1
  21. package/lib/{authentication-event.serializer-mddvaOjb.cjs → authentication-event.serializer-CqD91u8L.cjs} +2 -2
  22. package/lib/authentication-event.serializer-CqD91u8L.cjs.map +1 -0
  23. package/lib/authorization/authorization.cjs +1 -1
  24. package/lib/authorization/authorization.d.cts +1 -1
  25. package/lib/authorization/index.cjs +1 -1
  26. package/lib/authorization/index.d.cts +7 -7
  27. package/lib/authorization/interfaces/index.d.cts +6 -6
  28. package/lib/authorization/interfaces/list-authorization-resources-options.interface.d.cts +1 -1
  29. package/lib/authorization/interfaces/list-memberships-for-resource-by-external-id-options.interface.d.cts +1 -1
  30. package/lib/authorization/interfaces/list-memberships-for-resource-options.interface.d.cts +1 -1
  31. package/lib/authorization/interfaces/list-permissions-options.interface.d.cts +1 -1
  32. package/lib/authorization/interfaces/list-resources-for-membership-options.interface.d.cts +1 -1
  33. package/lib/authorization/interfaces/list-role-assignments-options.interface.d.cts +1 -1
  34. package/lib/authorization/serializers/index.cjs +2 -1
  35. package/lib/authorization/serializers/index.d.cts +5 -5
  36. package/lib/authorization/serializers/index.d.ts +2 -2
  37. package/lib/authorization/serializers/index.js +2 -2
  38. package/lib/authorization/serializers/list-authorization-resources-options.serializer.d.cts +1 -1
  39. package/lib/authorization/serializers/list-memberships-for-resource-options.serializer.d.cts +1 -1
  40. package/lib/authorization/serializers/list-resources-for-membership-options.serializer.d.cts +1 -1
  41. package/lib/authorization/serializers/organization-role.serializer.cjs +2 -1
  42. package/lib/authorization/serializers/organization-role.serializer.d.cts +2 -2
  43. package/lib/authorization/serializers/organization-role.serializer.d.ts +3 -2
  44. package/lib/authorization/serializers/organization-role.serializer.js +12 -1
  45. package/lib/authorization/serializers/organization-role.serializer.js.map +1 -1
  46. package/lib/{authorization-OoyFuyjE.cjs → authorization-Ccp2pNRF.cjs} +2 -2
  47. package/lib/{authorization-OoyFuyjE.cjs.map → authorization-Ccp2pNRF.cjs.map} +1 -1
  48. package/lib/{batch-write-resources-options.serializer-AOQbeleT.d.cts → batch-write-resources-options.serializer-GM8V5Aal.d.cts} +2 -2
  49. package/lib/{check-options.serializer-5pk3sfuU.d.cts → check-options.serializer-Cas9qPez.d.cts} +2 -2
  50. package/lib/{check.interface-CiNYxsPC.d.cts → check.interface-DChTIYQh.d.cts} +3 -3
  51. package/lib/common/interfaces/event.interface.d.cts +1 -1
  52. package/lib/common/interfaces/event.interface.d.ts +7 -8
  53. package/lib/common/interfaces/index.d.cts +3 -3
  54. package/lib/common/interfaces/list.interface.d.cts +1 -1
  55. package/lib/common/interfaces/list.interface.d.ts +4 -4
  56. package/lib/common/interfaces/pagination-options.interface.d.cts +1 -1
  57. package/lib/common/interfaces/pagination-options.interface.d.ts +2 -2
  58. package/lib/common/net/fetch-client.cjs +1 -1
  59. package/lib/common/net/http-client.cjs +1 -1
  60. package/lib/common/net/http-client.js +1 -1
  61. package/lib/common/net/http-client.js.map +1 -1
  62. package/lib/common/serializers/event.serializer.cjs +1 -1
  63. package/lib/common/serializers/event.serializer.d.cts +1 -1
  64. package/lib/common/serializers/event.serializer.js +2 -2
  65. package/lib/common/serializers/event.serializer.js.map +1 -1
  66. package/lib/common/serializers/index.cjs +1 -1
  67. package/lib/common/serializers/index.d.cts +3 -3
  68. package/lib/common/serializers/list.serializer.d.cts +1 -1
  69. package/lib/common/serializers/pagination-options.serializer.d.cts +1 -1
  70. package/lib/common/utils/fetch-and-deserialize.d.cts +3 -3
  71. package/lib/common/utils/pagination.d.cts +1 -1
  72. package/lib/common/utils/pagination.d.ts +2 -2
  73. package/lib/{connection.serializer-phS0D1t9.cjs → connection.serializer-sFgaPd28.cjs} +2 -2
  74. package/lib/connection.serializer-sFgaPd28.cjs.map +1 -0
  75. package/lib/{create-organization-api-key-options.serializer-qpnAhmcm.d.cts → create-organization-api-key-options.serializer-uJAPlCtK.d.cts} +2 -2
  76. package/lib/{create-organization-options.serializer-B5Jdypic.d.cts → create-organization-options.serializer-B6uBWIo2.d.cts} +2 -2
  77. package/lib/{create-resource-options.serializer-wt7jffzB.d.cts → create-resource-options.serializer-DvsMM37G.d.cts} +2 -2
  78. package/lib/{delete-resource-options.serializer-C_7j-llT.d.cts → delete-resource-options.serializer-B7q-mf-L.d.cts} +2 -2
  79. package/lib/directory-sync/directory-sync.cjs +1 -1
  80. package/lib/directory-sync/directory-sync.d.cts +1 -1
  81. package/lib/directory-sync/interfaces/directory-user.interface.d.cts +1 -1
  82. package/lib/directory-sync/interfaces/index.d.cts +4 -4
  83. package/lib/directory-sync/interfaces/list-directories-options.interface.d.cts +1 -1
  84. package/lib/directory-sync/interfaces/list-directory-users-options.interface.d.cts +1 -1
  85. package/lib/directory-sync/interfaces/list-groups-options.interface.d.cts +1 -1
  86. package/lib/directory-sync/serializers/directory-user.serializer.cjs +1 -1
  87. package/lib/directory-sync/serializers/directory-user.serializer.d.cts +1 -1
  88. package/lib/directory-sync/serializers/directory-user.serializer.js +4 -4
  89. package/lib/directory-sync/serializers/directory-user.serializer.js.map +1 -1
  90. package/lib/directory-sync/serializers/index.cjs +1 -1
  91. package/lib/directory-sync/serializers/index.d.cts +2 -2
  92. package/lib/directory-sync/serializers/list-directories-options.serializer.d.cts +1 -1
  93. package/lib/{directory-sync-BGWLeGge.cjs → directory-sync-ClseMB3c.cjs} +2 -2
  94. package/lib/{directory-sync-BGWLeGge.cjs.map → directory-sync-ClseMB3c.cjs.map} +1 -1
  95. package/lib/{directory-user.serializer-UTYCZSSB.cjs → directory-user.serializer-BSflXAKm.cjs} +5 -5
  96. package/lib/directory-user.serializer-BSflXAKm.cjs.map +1 -0
  97. package/lib/{directory-user.serializer-p5YxJzmY.d.cts → directory-user.serializer-XxQp-UAE.d.cts} +2 -2
  98. package/lib/{event.serializer-D23ulCkG.cjs → event.serializer-Cn5xAuN9.cjs} +9 -9
  99. package/lib/event.serializer-Cn5xAuN9.cjs.map +1 -0
  100. package/lib/{event.serializer-BU87BBSJ.d.cts → event.serializer-UUziUbH3.d.cts} +2 -2
  101. package/lib/events/events.cjs +1 -1
  102. package/lib/events/events.d.cts +1 -1
  103. package/lib/events/interfaces/index.d.cts +1 -1
  104. package/lib/events/interfaces/list-events-options.interface.d.cts +1 -1
  105. package/lib/events/serializers/index.d.cts +1 -1
  106. package/lib/events/serializers/list-event-options.serializer.d.cts +1 -1
  107. package/lib/{events-Bo4Mrn6L.cjs → events-DDmTI2cj.cjs} +2 -2
  108. package/lib/{events-Bo4Mrn6L.cjs.map → events-DDmTI2cj.cjs.map} +1 -1
  109. package/lib/{factory-BycQTqX_.cjs → factory-CzXPjI1E.cjs} +2 -2
  110. package/lib/{factory-BycQTqX_.cjs.map → factory-CzXPjI1E.cjs.map} +1 -1
  111. package/lib/factory.cjs +3 -3
  112. package/lib/factory.d.cts +1 -1
  113. package/lib/feature-flags/feature-flags.d.cts +1 -1
  114. package/lib/feature-flags/interfaces/index.d.cts +1 -1
  115. package/lib/feature-flags/interfaces/list-feature-flags-options.interface.d.cts +1 -1
  116. package/lib/{fetch-client-Br9ipQ8n.cjs → fetch-client-BGoo0snw.cjs} +2 -2
  117. package/lib/{fetch-client-Br9ipQ8n.cjs.map → fetch-client-BGoo0snw.cjs.map} +1 -1
  118. package/lib/fga/fga.d.cts +1 -1
  119. package/lib/fga/interfaces/check.interface.d.cts +1 -1
  120. package/lib/fga/interfaces/index.d.cts +4 -4
  121. package/lib/fga/interfaces/list.interface.d.cts +1 -1
  122. package/lib/fga/interfaces/query.interface.d.cts +1 -1
  123. package/lib/fga/interfaces/resource.interface.d.cts +1 -1
  124. package/lib/fga/interfaces/warrant.interface.d.cts +1 -1
  125. package/lib/fga/interfaces/warrant.interface.d.ts +2 -2
  126. package/lib/fga/serializers/batch-write-resources-options.serializer.d.cts +1 -1
  127. package/lib/fga/serializers/check-options.serializer.d.cts +1 -1
  128. package/lib/fga/serializers/create-resource-options.serializer.d.cts +1 -1
  129. package/lib/fga/serializers/delete-resource-options.serializer.d.cts +1 -1
  130. package/lib/fga/serializers/index.d.cts +12 -12
  131. package/lib/fga/serializers/list-resources-options.serializer.d.cts +1 -1
  132. package/lib/fga/serializers/list-warrants-options.serializer.d.cts +1 -1
  133. package/lib/fga/serializers/list.serializer.d.cts +1 -1
  134. package/lib/fga/serializers/query-options.serializer.d.cts +1 -1
  135. package/lib/fga/serializers/query-result.serializer.d.cts +1 -1
  136. package/lib/fga/serializers/resource.serializer.d.cts +1 -1
  137. package/lib/fga/serializers/warrant.serializer.d.cts +1 -1
  138. package/lib/fga/serializers/write-warrant-options.serializer.d.cts +1 -1
  139. package/lib/fga/utils/fetch-and-deserialize-list.d.cts +4 -4
  140. package/lib/fga/utils/fga-paginatable.d.cts +1 -1
  141. package/lib/fga/utils/interface-check.d.cts +2 -2
  142. package/lib/{fga-paginatable-DYGgFxzL.d.cts → fga-paginatable-joDdx-bk.d.cts} +4 -4
  143. package/lib/{generate-portal-link-intent.interface-BQMOkPft.d.cts → generate-portal-link-intent.interface-DM9FRX0P.d.cts} +2 -1
  144. package/lib/{generate-portal-link-intent.interface-CCKgsr2O.cjs → generate-portal-link-intent.interface-K2TgL9nP.cjs} +2 -1
  145. package/lib/generate-portal-link-intent.interface-K2TgL9nP.cjs.map +1 -0
  146. package/lib/{http-client-DZQxEd4J.cjs → http-client-DTfNcqaR.cjs} +2 -2
  147. package/lib/http-client-DTfNcqaR.cjs.map +1 -0
  148. package/lib/{index-BDMqzUe6.d.cts → index-DYVTG9fR.d.cts} +31 -9
  149. package/lib/index.cjs +7 -7
  150. package/lib/index.d.cts +31 -31
  151. package/lib/index.d.ts +2 -2
  152. package/lib/index.worker.cjs +7 -7
  153. package/lib/index.worker.d.cts +26 -26
  154. package/lib/index.worker.d.ts +2 -2
  155. package/lib/{list-authorization-resources-options.interface-DGEUHL6V.d.cts → list-authorization-resources-options.interface-Bi7-RuXa.d.cts} +2 -2
  156. package/lib/{list-authorization-resources-options.serializer-LWnyxV9R.d.cts → list-authorization-resources-options.serializer-Bcr7oINk.d.cts} +2 -2
  157. package/lib/{list-connections-options.interface-DVXp4re1.d.cts → list-connections-options.interface-DMjyCQNt.d.cts} +2 -2
  158. package/lib/{list-connections-options.serializer-oZKaQIbM.d.cts → list-connections-options.serializer-CrF1Ymfh.d.cts} +2 -2
  159. package/lib/{list-directories-options.interface-CcEf0ljy.d.cts → list-directories-options.interface-BQt9KBRx.d.cts} +2 -2
  160. package/lib/{list-directories-options.serializer-wDBlMx46.d.cts → list-directories-options.serializer-C9goOgkU.d.cts} +2 -2
  161. package/lib/{list-directory-users-options.interface-ByCIBUjA.d.cts → list-directory-users-options.interface-DoyU-KHK.d.cts} +2 -2
  162. package/lib/{list-event-options.serializer-DPhp3gKz.d.cts → list-event-options.serializer-C_A6oxeu.d.cts} +2 -2
  163. package/lib/{list-events-options.interface-DJVfXCA3.d.cts → list-events-options.interface-Iyr1CHB0.d.cts} +2 -2
  164. package/lib/{list-feature-flags-options.interface-BDzOTdye.d.cts → list-feature-flags-options.interface-BCSWpNdc.d.cts} +2 -2
  165. package/lib/{list-groups-options.interface-DjW5LHiP.d.cts → list-groups-options.interface-b3GVqSII.d.cts} +2 -2
  166. package/lib/{list-memberships-for-resource-by-external-id-options.interface-2SPYpjXz.d.cts → list-memberships-for-resource-by-external-id-options.interface-J1_qZirj.d.cts} +2 -2
  167. package/lib/{list-memberships-for-resource-options.interface-DYjL4T-O.d.cts → list-memberships-for-resource-options.interface-WKyR83kP.d.cts} +2 -2
  168. package/lib/{list-memberships-for-resource-options.serializer-CZyTun33.d.cts → list-memberships-for-resource-options.serializer-DNDxpu2K.d.cts} +3 -3
  169. package/lib/{list-organization-api-keys-options.interface-DP6NjvYw.d.cts → list-organization-api-keys-options.interface-CsxRRYj6.d.cts} +2 -2
  170. package/lib/{list-organization-feature-flags-options.interface-BuY-zNS_.d.cts → list-organization-feature-flags-options.interface-M3Jmv5_Z.d.cts} +2 -2
  171. package/lib/{list-organizations-options.interface-CR5m7YfR.d.cts → list-organizations-options.interface-n4qDIe17.d.cts} +2 -2
  172. package/lib/{list-resources-for-membership-options.interface-BxIdPPlj.d.cts → list-resources-for-membership-options.interface-CCuX2l-i.d.cts} +2 -2
  173. package/lib/{list-resources-for-membership-options.serializer-Cz9gPByQ.d.cts → list-resources-for-membership-options.serializer-L3x4ttf1.d.cts} +2 -2
  174. package/lib/{list-resources-options.serializer-rf5arsbR.d.cts → list-resources-options.serializer-BR7F9KEZ.d.cts} +2 -2
  175. package/lib/{list-role-assignments-options.interface-CitVe5-E.d.cts → list-role-assignments-options.interface-G1byAUOU.d.cts} +2 -2
  176. package/lib/{list-sessions-options.interface-rRvxj4no.d.cts → list-sessions-options.interface-CZdBtY49.d.cts} +2 -2
  177. package/lib/{list-sessions-options.serializer-Bt-16Y8Y.d.cts → list-sessions-options.serializer-BVgXGaUW.d.cts} +2 -2
  178. package/lib/{list-users-options.interface-BrZWq49H.d.cts → list-users-options.interface-Bmgojx_R.d.cts} +2 -2
  179. package/lib/{list-warrants-options.serializer-DXo_srPx.d.cts → list-warrants-options.serializer-C1T1ysdg.d.cts} +2 -2
  180. package/lib/{list.interface-BMsjwGOu.d.cts → list.interface-D2Q6nKBO.d.cts} +5 -5
  181. package/lib/{list.interface-BzCMY9Yg.d.cts → list.interface-dnxfqUTZ.d.cts} +2 -2
  182. package/lib/{list.serializer-BGYIG8Hl.d.cts → list.serializer-CvYFfpso.d.cts} +3 -3
  183. package/lib/{list.serializer-DPAtA6zK.d.cts → list.serializer-DQ9MJjpQ.d.cts} +2 -2
  184. package/lib/mfa/mfa.d.cts +1 -1
  185. package/lib/{organization-domain.serializer-BuecMdCg.cjs → organization-domain.serializer-DVylNcLm.cjs} +2 -2
  186. package/lib/organization-domain.serializer-DVylNcLm.cjs.map +1 -0
  187. package/lib/organization-domains/organization-domains.cjs +1 -1
  188. package/lib/organization-domains/organization-domains.d.cts +1 -1
  189. package/lib/organization-domains/serializers/organization-domain.serializer.cjs +1 -1
  190. package/lib/organization-domains/serializers/organization-domain.serializer.js +1 -1
  191. package/lib/organization-domains/serializers/organization-domain.serializer.js.map +1 -1
  192. package/lib/{organization-domains-BINLS8SW.cjs → organization-domains-DhcxuHzd.cjs} +2 -2
  193. package/lib/{organization-domains-BINLS8SW.cjs.map → organization-domains-DhcxuHzd.cjs.map} +1 -1
  194. package/lib/{organization-role.serializer-lsSLexV6.cjs → organization-role.serializer-DFNkyIDQ.cjs} +18 -1
  195. package/lib/organization-role.serializer-DFNkyIDQ.cjs.map +1 -0
  196. package/lib/organization-role.serializer-DTDhk4Nh.d.cts +10 -0
  197. package/lib/{organization.serializer-DM6Xkk2V.cjs → organization.serializer-CVNQSfQH.cjs} +2 -2
  198. package/lib/{organization.serializer-DM6Xkk2V.cjs.map → organization.serializer-CVNQSfQH.cjs.map} +1 -1
  199. package/lib/organizations/interfaces/create-organization-options.interface.d.cts +1 -1
  200. package/lib/organizations/interfaces/index.d.cts +3 -3
  201. package/lib/organizations/interfaces/list-organization-feature-flags-options.interface.d.cts +1 -1
  202. package/lib/organizations/interfaces/list-organizations-options.interface.d.cts +1 -1
  203. package/lib/organizations/organizations.cjs +1 -1
  204. package/lib/organizations/organizations.d.cts +1 -1
  205. package/lib/organizations/serializers/create-organization-options.serializer.d.cts +1 -1
  206. package/lib/organizations/serializers/index.cjs +1 -1
  207. package/lib/organizations/serializers/index.d.cts +1 -1
  208. package/lib/organizations/serializers/organization.serializer.cjs +1 -1
  209. package/lib/{organizations-BvnCc0n6.cjs → organizations-DBZSzZs0.cjs} +2 -2
  210. package/lib/{organizations-BvnCc0n6.cjs.map → organizations-DBZSzZs0.cjs.map} +1 -1
  211. package/lib/{pagination-DARFXAuP.d.cts → pagination-HWQZtuX6.d.cts} +5 -5
  212. package/lib/{pagination-options.interface--3MwpP52.d.cts → pagination-options.interface-BzIEA3yY.d.cts} +3 -3
  213. package/lib/{pagination-options.serializer-DmyeFigF.d.cts → pagination-options.serializer-uFxSSjyn.d.cts} +2 -2
  214. package/lib/passwordless/passwordless.d.cts +1 -1
  215. package/lib/pipes/pipes.d.cts +1 -1
  216. package/lib/portal/interfaces/generate-portal-link-intent.interface.cjs +1 -1
  217. package/lib/portal/interfaces/generate-portal-link-intent.interface.d.cts +1 -1
  218. package/lib/portal/interfaces/generate-portal-link-intent.interface.d.ts +1 -0
  219. package/lib/portal/interfaces/generate-portal-link-intent.interface.js +1 -0
  220. package/lib/portal/interfaces/generate-portal-link-intent.interface.js.map +1 -1
  221. package/lib/portal/interfaces/index.cjs +1 -1
  222. package/lib/portal/interfaces/index.d.cts +1 -1
  223. package/lib/portal/portal.d.cts +1 -1
  224. package/lib/{profile-and-token.serializer-93o4nX7v.d.cts → profile-and-token.serializer-BrOalmOt.d.cts} +2 -2
  225. package/lib/{profile-and-token.serializer-CUFdGpX3.cjs → profile-and-token.serializer-DfWI_L92.cjs} +2 -2
  226. package/lib/{profile-and-token.serializer-CUFdGpX3.cjs.map → profile-and-token.serializer-DfWI_L92.cjs.map} +1 -1
  227. package/lib/profile.serializer-DM0Zpbrc.cjs +26 -0
  228. package/lib/profile.serializer-DM0Zpbrc.cjs.map +1 -0
  229. package/lib/{profile.serializer-D9q7gLof.d.cts → profile.serializer-EDpJlY-r.d.cts} +2 -2
  230. package/lib/{query-options.serializer-Cjv6DV1k.d.cts → query-options.serializer-DrRDm7He.d.cts} +2 -2
  231. package/lib/{query-result.serializer-Dy0eBy0g.d.cts → query-result.serializer-CJnHUV8v.d.cts} +3 -3
  232. package/lib/{query.interface-BSHlqTYK.d.cts → query.interface-DvI8OOX6.d.cts} +3 -3
  233. package/lib/{read-object.interface-BwzjcSVm.d.cts → read-object.interface-bYptR15L.d.cts} +2 -2
  234. package/lib/{resource.interface-D-MMSzFn.d.cts → resource.interface-DSxkG9Jg.d.cts} +2 -2
  235. package/lib/{resource.serializer-CNYCg5zr.d.cts → resource.serializer-DbjYmqjL.d.cts} +2 -2
  236. package/lib/roles/interfaces/index.d.cts +2 -2
  237. package/lib/roles/interfaces/index.d.ts +2 -2
  238. package/lib/roles/interfaces/role.interface.d.cts +2 -2
  239. package/lib/roles/interfaces/role.interface.d.ts +23 -1
  240. package/lib/roles/serializers/role.serializer.d.cts +1 -1
  241. package/lib/{session.serializer-Dmj9Hm3q.cjs → session.serializer-B63NxvRH.cjs} +3 -3
  242. package/lib/session.serializer-B63NxvRH.cjs.map +1 -0
  243. package/lib/sso/interfaces/index.d.cts +2 -2
  244. package/lib/sso/interfaces/list-connections-options.interface.d.cts +1 -1
  245. package/lib/sso/interfaces/profile-and-token.interface.d.cts +1 -1
  246. package/lib/sso/interfaces/profile.interface.d.cts +1 -1
  247. package/lib/sso/serializers/connection.serializer.cjs +1 -1
  248. package/lib/sso/serializers/connection.serializer.js +1 -1
  249. package/lib/sso/serializers/connection.serializer.js.map +1 -1
  250. package/lib/sso/serializers/index.cjs +3 -3
  251. package/lib/sso/serializers/index.d.cts +3 -3
  252. package/lib/sso/serializers/list-connections-options.serializer.d.cts +1 -1
  253. package/lib/sso/serializers/profile-and-token.serializer.cjs +1 -1
  254. package/lib/sso/serializers/profile-and-token.serializer.d.cts +1 -1
  255. package/lib/sso/serializers/profile.serializer.cjs +1 -1
  256. package/lib/sso/serializers/profile.serializer.d.cts +1 -1
  257. package/lib/sso/serializers/profile.serializer.js +8 -8
  258. package/lib/sso/serializers/profile.serializer.js.map +1 -1
  259. package/lib/sso/sso.cjs +1 -1
  260. package/lib/sso/sso.d.cts +1 -1
  261. package/lib/{sso-FWyObHDp.cjs → sso-CagxPT-U.cjs} +4 -4
  262. package/lib/{sso-FWyObHDp.cjs.map → sso-CagxPT-U.cjs.map} +1 -1
  263. package/lib/user-management/interfaces/index.d.cts +3 -3
  264. package/lib/user-management/interfaces/list-auth-factors-options.interface.d.cts +1 -1
  265. package/lib/user-management/interfaces/list-invitations-options.interface.d.cts +1 -1
  266. package/lib/user-management/interfaces/list-organization-memberships-options.interface.d.cts +1 -1
  267. package/lib/user-management/interfaces/list-sessions-options.interface.d.cts +1 -1
  268. package/lib/user-management/interfaces/list-user-feature-flags-options.interface.d.cts +1 -1
  269. package/lib/user-management/interfaces/list-users-options.interface.d.cts +1 -1
  270. package/lib/user-management/interfaces/organization-membership.interface.d.cts +1 -1
  271. package/lib/user-management/serializers/authentication-event.serializer.cjs +1 -1
  272. package/lib/user-management/serializers/authentication-event.serializer.js +1 -1
  273. package/lib/user-management/serializers/authentication-event.serializer.js.map +1 -1
  274. package/lib/user-management/serializers/index.cjs +2 -2
  275. package/lib/user-management/serializers/index.d.cts +1 -1
  276. package/lib/user-management/serializers/list-invitations-options.serializer.d.cts +1 -1
  277. package/lib/user-management/serializers/list-organization-memberships-options.serializer.d.cts +1 -1
  278. package/lib/user-management/serializers/list-sessions-options.serializer.d.cts +1 -1
  279. package/lib/user-management/serializers/list-users-options.serializer.d.cts +1 -1
  280. package/lib/user-management/serializers/organization-membership.serializer.d.cts +1 -1
  281. package/lib/user-management/serializers/role.serializer.d.cts +1 -1
  282. package/lib/user-management/serializers/session.serializer.cjs +1 -1
  283. package/lib/user-management/serializers/session.serializer.js +2 -2
  284. package/lib/user-management/serializers/session.serializer.js.map +1 -1
  285. package/lib/user-management/session.d.cts +1 -1
  286. package/lib/user-management/user-management.cjs +1 -1
  287. package/lib/user-management/user-management.d.cts +1 -1
  288. package/lib/{user-management-CTQFnn4h.cjs → user-management-DEOOSelF.cjs} +2 -2
  289. package/lib/{user-management-CTQFnn4h.cjs.map → user-management-DEOOSelF.cjs.map} +1 -1
  290. package/lib/vault/interfaces/index.d.cts +1 -1
  291. package/lib/vault/interfaces/object/read-object.interface.d.cts +1 -1
  292. package/lib/vault/interfaces/object/read-object.interface.d.ts +1 -1
  293. package/lib/vault/serializers/vault-object.serializer.cjs +1 -1
  294. package/lib/vault/serializers/vault-object.serializer.d.cts +2 -2
  295. package/lib/vault/serializers/vault-object.serializer.js +3 -3
  296. package/lib/vault/serializers/vault-object.serializer.js.map +1 -1
  297. package/lib/vault/vault.cjs +1 -1
  298. package/lib/vault/vault.d.cts +1 -1
  299. package/lib/{vault-tqn3i5Ms.cjs → vault-BR8gbCEq.cjs} +2 -2
  300. package/lib/{vault-tqn3i5Ms.cjs.map → vault-BR8gbCEq.cjs.map} +1 -1
  301. package/lib/{vault-object.serializer-CwmJwCnO.cjs → vault-object.serializer-Cx7rAuca.cjs} +4 -4
  302. package/lib/vault-object.serializer-Cx7rAuca.cjs.map +1 -0
  303. package/lib/{warrant.interface-DPnDplf7.d.cts → warrant.interface-DgQN4yxm.d.cts} +4 -4
  304. package/lib/{warrant.serializer-DSuf7fH7.d.cts → warrant.serializer-BX6Tonfl.d.cts} +2 -2
  305. package/lib/webhooks/webhooks.cjs +1 -1
  306. package/lib/webhooks/webhooks.d.cts +1 -1
  307. package/lib/{webhooks-DvyWO-Zh.d.cts → webhooks-2-hbZwWC.d.cts} +2 -2
  308. package/lib/{webhooks-CSlaxQ9R.cjs → webhooks-DX8LtZMD.cjs} +2 -2
  309. package/lib/{webhooks-CSlaxQ9R.cjs.map → webhooks-DX8LtZMD.cjs.map} +1 -1
  310. package/lib/widgets/widgets.d.cts +1 -1
  311. package/lib/{workos-DndBTCon.cjs → workos-CEha64Qs.cjs} +14 -14
  312. package/lib/{workos-DndBTCon.cjs.map → workos-CEha64Qs.cjs.map} +1 -1
  313. package/lib/workos.cjs +2 -2
  314. package/lib/workos.d.cts +1 -1
  315. package/lib/workos.js +1 -1
  316. package/lib/workos.js.map +1 -1
  317. package/lib/{write-warrant-options.serializer-BVsqqyjn.d.cts → write-warrant-options.serializer-Bk5t0x2w.d.cts} +2 -2
  318. package/package.json +1 -1
  319. package/lib/authentication-event.serializer-mddvaOjb.cjs.map +0 -1
  320. package/lib/connection.serializer-phS0D1t9.cjs.map +0 -1
  321. package/lib/directory-user.serializer-UTYCZSSB.cjs.map +0 -1
  322. package/lib/event.serializer-D23ulCkG.cjs.map +0 -1
  323. package/lib/generate-portal-link-intent.interface-CCKgsr2O.cjs.map +0 -1
  324. package/lib/http-client-DZQxEd4J.cjs.map +0 -1
  325. package/lib/organization-domain.serializer-BuecMdCg.cjs.map +0 -1
  326. package/lib/organization-role.serializer-4Qp0ZjZH.d.cts +0 -9
  327. package/lib/organization-role.serializer-lsSLexV6.cjs.map +0 -1
  328. package/lib/profile.serializer-BDlm0TRU.cjs +0 -26
  329. package/lib/profile.serializer-BDlm0TRU.cjs.map +0 -1
  330. package/lib/session.serializer-Dmj9Hm3q.cjs.map +0 -1
  331. package/lib/vault-object.serializer-CwmJwCnO.cjs.map +0 -1
@@ -1,7 +1,7 @@
1
- import { Sn as CreateOrganizationApiKeyOptions, wn as SerializedCreateOrganizationApiKeyOptions } from "./index-BDMqzUe6.cjs";
1
+ import { Sn as CreateOrganizationApiKeyOptions, wn as SerializedCreateOrganizationApiKeyOptions } from "./index-DYVTG9fR.cjs";
2
2
 
3
3
  //#region src/api-keys/serializers/create-organization-api-key-options.serializer.d.ts
4
4
  declare function serializeCreateOrganizationApiKeyOptions(options: CreateOrganizationApiKeyOptions): SerializedCreateOrganizationApiKeyOptions;
5
5
  //#endregion
6
6
  export { serializeCreateOrganizationApiKeyOptions as t };
7
- //# sourceMappingURL=create-organization-api-key-options.serializer-qpnAhmcm.d.cts.map
7
+ //# sourceMappingURL=create-organization-api-key-options.serializer-uJAPlCtK.d.cts.map
@@ -1,7 +1,7 @@
1
- import { r as SerializedCreateOrganizationOptions, t as CreateOrganizationOptions } from "./index-BDMqzUe6.cjs";
1
+ import { r as SerializedCreateOrganizationOptions, t as CreateOrganizationOptions } from "./index-DYVTG9fR.cjs";
2
2
 
3
3
  //#region src/organizations/serializers/create-organization-options.serializer.d.ts
4
4
  declare const serializeCreateOrganizationOptions: (options: CreateOrganizationOptions) => SerializedCreateOrganizationOptions;
5
5
  //#endregion
6
6
  export { serializeCreateOrganizationOptions as t };
7
- //# sourceMappingURL=create-organization-options.serializer-B5Jdypic.d.cts.map
7
+ //# sourceMappingURL=create-organization-options.serializer-B6uBWIo2.d.cts.map
@@ -1,7 +1,7 @@
1
- import { f as SerializedCreateResourceOptions, r as CreateResourceOptions } from "./resource.interface-D-MMSzFn.cjs";
1
+ import { f as SerializedCreateResourceOptions, r as CreateResourceOptions } from "./resource.interface-DSxkG9Jg.cjs";
2
2
 
3
3
  //#region src/fga/serializers/create-resource-options.serializer.d.ts
4
4
  declare const serializeCreateResourceOptions: (options: CreateResourceOptions) => SerializedCreateResourceOptions;
5
5
  //#endregion
6
6
  export { serializeCreateResourceOptions as t };
7
- //# sourceMappingURL=create-resource-options.serializer-wt7jffzB.d.cts.map
7
+ //# sourceMappingURL=create-resource-options.serializer-DvsMM37G.d.cts.map
@@ -1,7 +1,7 @@
1
- import { i as DeleteResourceOptions, p as SerializedDeleteResourceOptions } from "./resource.interface-D-MMSzFn.cjs";
1
+ import { i as DeleteResourceOptions, p as SerializedDeleteResourceOptions } from "./resource.interface-DSxkG9Jg.cjs";
2
2
 
3
3
  //#region src/fga/serializers/delete-resource-options.serializer.d.ts
4
4
  declare const serializeDeleteResourceOptions: (options: DeleteResourceOptions) => SerializedDeleteResourceOptions;
5
5
  //#endregion
6
6
  export { serializeDeleteResourceOptions as t };
7
- //# sourceMappingURL=delete-resource-options.serializer-C_7j-llT.d.cts.map
7
+ //# sourceMappingURL=delete-resource-options.serializer-B7q-mf-L.d.cts.map
@@ -1,3 +1,3 @@
1
- const require_directory_sync = require('../directory-sync-BGWLeGge.cjs');
1
+ const require_directory_sync = require('../directory-sync-ClseMB3c.cjs');
2
2
 
3
3
  exports.DirectorySync = require_directory_sync.DirectorySync;
@@ -1,2 +1,2 @@
1
- import { E as DirectorySync } from "../api-keys-5t7nLnb5.cjs";
1
+ import { E as DirectorySync } from "../api-keys-CSDwj0TW.cjs";
2
2
  export { DirectorySync };
@@ -1,2 +1,2 @@
1
- import { Gn as DirectoryUser, Jn as DirectoryUserWithGroupsResponse, Kn as DirectoryUserResponse, Wn as DefaultCustomAttributes, qn as DirectoryUserWithGroups } from "../../index-BDMqzUe6.cjs";
1
+ import { Gn as DirectoryUser, Jn as DirectoryUserWithGroupsResponse, Kn as DirectoryUserResponse, Wn as DefaultCustomAttributes, qn as DirectoryUserWithGroups } from "../../index-DYVTG9fR.cjs";
2
2
  export { DefaultCustomAttributes, DirectoryUser, DirectoryUserResponse, DirectoryUserWithGroups, DirectoryUserWithGroupsResponse };
@@ -1,7 +1,7 @@
1
1
  import { a as DirectoryType, i as DirectoryStateResponse, n as DirectoryResponse, o as EventDirectory, r as DirectoryState, s as EventDirectoryResponse, t as Directory } from "../../directory.interface-oSn1IaAq.cjs";
2
2
  import { n as DirectoryGroupResponse, t as DirectoryGroup } from "../../directory-group.interface-Ds7hJJCb.cjs";
3
- import { n as SerializedListDirectoriesOptions, t as ListDirectoriesOptions } from "../../list-directories-options.interface-CcEf0ljy.cjs";
4
- import { t as ListDirectoryGroupsOptions } from "../../list-groups-options.interface-DjW5LHiP.cjs";
5
- import { t as ListDirectoryUsersOptions } from "../../list-directory-users-options.interface-ByCIBUjA.cjs";
6
- import { Gn as DirectoryUser, Jn as DirectoryUserWithGroupsResponse, Kn as DirectoryUserResponse, Wn as DefaultCustomAttributes, qn as DirectoryUserWithGroups } from "../../index-BDMqzUe6.cjs";
3
+ import { n as SerializedListDirectoriesOptions, t as ListDirectoriesOptions } from "../../list-directories-options.interface-BQt9KBRx.cjs";
4
+ import { t as ListDirectoryGroupsOptions } from "../../list-groups-options.interface-b3GVqSII.cjs";
5
+ import { t as ListDirectoryUsersOptions } from "../../list-directory-users-options.interface-DoyU-KHK.cjs";
6
+ import { Gn as DirectoryUser, Jn as DirectoryUserWithGroupsResponse, Kn as DirectoryUserResponse, Wn as DefaultCustomAttributes, qn as DirectoryUserWithGroups } from "../../index-DYVTG9fR.cjs";
7
7
  export { DefaultCustomAttributes, Directory, DirectoryGroup, DirectoryGroupResponse, DirectoryResponse, DirectoryState, DirectoryStateResponse, DirectoryType, DirectoryUser, DirectoryUserResponse, DirectoryUserWithGroups, DirectoryUserWithGroupsResponse, EventDirectory, EventDirectoryResponse, ListDirectoriesOptions, ListDirectoryGroupsOptions, ListDirectoryUsersOptions, SerializedListDirectoriesOptions };
@@ -1,2 +1,2 @@
1
- import { n as SerializedListDirectoriesOptions, t as ListDirectoriesOptions } from "../../list-directories-options.interface-CcEf0ljy.cjs";
1
+ import { n as SerializedListDirectoriesOptions, t as ListDirectoriesOptions } from "../../list-directories-options.interface-BQt9KBRx.cjs";
2
2
  export { ListDirectoriesOptions, SerializedListDirectoriesOptions };
@@ -1,2 +1,2 @@
1
- import { t as ListDirectoryUsersOptions } from "../../list-directory-users-options.interface-ByCIBUjA.cjs";
1
+ import { t as ListDirectoryUsersOptions } from "../../list-directory-users-options.interface-DoyU-KHK.cjs";
2
2
  export { ListDirectoryUsersOptions };
@@ -1,2 +1,2 @@
1
- import { t as ListDirectoryGroupsOptions } from "../../list-groups-options.interface-DjW5LHiP.cjs";
1
+ import { t as ListDirectoryGroupsOptions } from "../../list-groups-options.interface-b3GVqSII.cjs";
2
2
  export { ListDirectoryGroupsOptions };
@@ -1,4 +1,4 @@
1
- const require_directory_user_serializer = require('../../directory-user.serializer-UTYCZSSB.cjs');
1
+ const require_directory_user_serializer = require('../../directory-user.serializer-BSflXAKm.cjs');
2
2
 
3
3
  exports.deserializeDirectoryUser = require_directory_user_serializer.deserializeDirectoryUser;
4
4
  exports.deserializeDirectoryUserWithGroups = require_directory_user_serializer.deserializeDirectoryUserWithGroups;
@@ -1,2 +1,2 @@
1
- import { n as deserializeDirectoryUserWithGroups, r as deserializeUpdatedEventDirectoryUser, t as deserializeDirectoryUser } from "../../directory-user.serializer-p5YxJzmY.cjs";
1
+ import { n as deserializeDirectoryUserWithGroups, r as deserializeUpdatedEventDirectoryUser, t as deserializeDirectoryUser } from "../../directory-user.serializer-XxQp-UAE.cjs";
2
2
  export { deserializeDirectoryUser, deserializeDirectoryUserWithGroups, deserializeUpdatedEventDirectoryUser };
@@ -13,8 +13,8 @@ const deserializeDirectoryUser = (directoryUser) => ({
13
13
  email: directoryUser.email,
14
14
  lastName: directoryUser.last_name,
15
15
  state: directoryUser.state,
16
- role: directoryUser.role,
17
- roles: directoryUser.roles,
16
+ ...directoryUser.role !== void 0 && { role: directoryUser.role },
17
+ ...directoryUser.roles !== void 0 && { roles: directoryUser.roles },
18
18
  createdAt: directoryUser.created_at,
19
19
  updatedAt: directoryUser.updated_at
20
20
  });
@@ -34,8 +34,8 @@ const deserializeUpdatedEventDirectoryUser = (directoryUser) => ({
34
34
  email: directoryUser.email,
35
35
  lastName: directoryUser.last_name,
36
36
  state: directoryUser.state,
37
- role: directoryUser.role,
38
- roles: directoryUser.roles,
37
+ ...directoryUser.role !== void 0 && { role: directoryUser.role },
38
+ ...directoryUser.roles !== void 0 && { roles: directoryUser.roles },
39
39
  createdAt: directoryUser.created_at,
40
40
  updatedAt: directoryUser.updated_at,
41
41
  previousAttributes: directoryUser.previous_attributes
@@ -1 +1 @@
1
- {"version":3,"file":"directory-user.serializer.js","names":[],"sources":["../../../src/directory-sync/serializers/directory-user.serializer.ts"],"sourcesContent":["import {\n DefaultCustomAttributes,\n DirectoryUser,\n DirectoryUserResponse,\n DirectoryUserWithGroups,\n DirectoryUserWithGroupsResponse,\n} from '../interfaces';\nimport { deserializeDirectoryGroup } from './directory-group.serializer';\n\nexport const deserializeDirectoryUser = <\n TCustomAttributes extends object = DefaultCustomAttributes,\n>(\n directoryUser:\n | DirectoryUserResponse<TCustomAttributes>\n | DirectoryUserWithGroupsResponse<TCustomAttributes>,\n): DirectoryUser<TCustomAttributes> => ({\n object: directoryUser.object,\n id: directoryUser.id,\n directoryId: directoryUser.directory_id,\n organizationId: directoryUser.organization_id,\n rawAttributes: directoryUser.raw_attributes,\n customAttributes: directoryUser.custom_attributes,\n idpId: directoryUser.idp_id,\n firstName: directoryUser.first_name,\n email: directoryUser.email,\n lastName: directoryUser.last_name,\n state: directoryUser.state,\n role: directoryUser.role,\n roles: directoryUser.roles,\n createdAt: directoryUser.created_at,\n updatedAt: directoryUser.updated_at,\n});\n\nexport const deserializeDirectoryUserWithGroups = <\n TCustomAttributes extends object = DefaultCustomAttributes,\n>(\n directoryUserWithGroups: DirectoryUserWithGroupsResponse<TCustomAttributes>,\n): DirectoryUserWithGroups<TCustomAttributes> => ({\n ...deserializeDirectoryUser(directoryUserWithGroups),\n groups: directoryUserWithGroups.groups.map(deserializeDirectoryGroup),\n});\n\nexport const deserializeUpdatedEventDirectoryUser = (\n directoryUser: DirectoryUserResponse & Record<'previous_attributes', any>,\n): DirectoryUser & Record<'previousAttributes', any> => ({\n object: 'directory_user',\n id: directoryUser.id,\n directoryId: directoryUser.directory_id,\n organizationId: directoryUser.organization_id,\n rawAttributes: directoryUser.raw_attributes,\n customAttributes: directoryUser.custom_attributes,\n idpId: directoryUser.idp_id,\n firstName: directoryUser.first_name,\n email: directoryUser.email,\n lastName: directoryUser.last_name,\n state: directoryUser.state,\n role: directoryUser.role,\n roles: directoryUser.roles,\n createdAt: directoryUser.created_at,\n updatedAt: directoryUser.updated_at,\n previousAttributes: directoryUser.previous_attributes,\n});\n"],"mappings":";;;AASA,MAAa,4BAGX,mBAGsC;CACtC,QAAQ,cAAc;CACtB,IAAI,cAAc;CAClB,aAAa,cAAc;CAC3B,gBAAgB,cAAc;CAC9B,eAAe,cAAc;CAC7B,kBAAkB,cAAc;CAChC,OAAO,cAAc;CACrB,WAAW,cAAc;CACzB,OAAO,cAAc;CACrB,UAAU,cAAc;CACxB,OAAO,cAAc;CACrB,MAAM,cAAc;CACpB,OAAO,cAAc;CACrB,WAAW,cAAc;CACzB,WAAW,cAAc;CAC1B;AAED,MAAa,sCAGX,6BACgD;CAChD,GAAG,yBAAyB,wBAAwB;CACpD,QAAQ,wBAAwB,OAAO,IAAI,0BAA0B;CACtE;AAED,MAAa,wCACX,mBACuD;CACvD,QAAQ;CACR,IAAI,cAAc;CAClB,aAAa,cAAc;CAC3B,gBAAgB,cAAc;CAC9B,eAAe,cAAc;CAC7B,kBAAkB,cAAc;CAChC,OAAO,cAAc;CACrB,WAAW,cAAc;CACzB,OAAO,cAAc;CACrB,UAAU,cAAc;CACxB,OAAO,cAAc;CACrB,MAAM,cAAc;CACpB,OAAO,cAAc;CACrB,WAAW,cAAc;CACzB,WAAW,cAAc;CACzB,oBAAoB,cAAc;CACnC"}
1
+ {"version":3,"file":"directory-user.serializer.js","names":[],"sources":["../../../src/directory-sync/serializers/directory-user.serializer.ts"],"sourcesContent":["import {\n DefaultCustomAttributes,\n DirectoryUser,\n DirectoryUserResponse,\n DirectoryUserWithGroups,\n DirectoryUserWithGroupsResponse,\n} from '../interfaces';\nimport { deserializeDirectoryGroup } from './directory-group.serializer';\n\nexport const deserializeDirectoryUser = <\n TCustomAttributes extends object = DefaultCustomAttributes,\n>(\n directoryUser:\n | DirectoryUserResponse<TCustomAttributes>\n | DirectoryUserWithGroupsResponse<TCustomAttributes>,\n): DirectoryUser<TCustomAttributes> => ({\n object: directoryUser.object,\n id: directoryUser.id,\n directoryId: directoryUser.directory_id,\n organizationId: directoryUser.organization_id,\n rawAttributes: directoryUser.raw_attributes,\n customAttributes: directoryUser.custom_attributes,\n idpId: directoryUser.idp_id,\n firstName: directoryUser.first_name,\n email: directoryUser.email,\n lastName: directoryUser.last_name,\n state: directoryUser.state,\n ...(directoryUser.role !== undefined && { role: directoryUser.role }),\n ...(directoryUser.roles !== undefined && { roles: directoryUser.roles }),\n createdAt: directoryUser.created_at,\n updatedAt: directoryUser.updated_at,\n});\n\nexport const deserializeDirectoryUserWithGroups = <\n TCustomAttributes extends object = DefaultCustomAttributes,\n>(\n directoryUserWithGroups: DirectoryUserWithGroupsResponse<TCustomAttributes>,\n): DirectoryUserWithGroups<TCustomAttributes> => ({\n ...deserializeDirectoryUser(directoryUserWithGroups),\n groups: directoryUserWithGroups.groups.map(deserializeDirectoryGroup),\n});\n\nexport const deserializeUpdatedEventDirectoryUser = (\n directoryUser: DirectoryUserResponse & Record<'previous_attributes', any>,\n): DirectoryUser & Record<'previousAttributes', any> => ({\n object: 'directory_user',\n id: directoryUser.id,\n directoryId: directoryUser.directory_id,\n organizationId: directoryUser.organization_id,\n rawAttributes: directoryUser.raw_attributes,\n customAttributes: directoryUser.custom_attributes,\n idpId: directoryUser.idp_id,\n firstName: directoryUser.first_name,\n email: directoryUser.email,\n lastName: directoryUser.last_name,\n state: directoryUser.state,\n ...(directoryUser.role !== undefined && { role: directoryUser.role }),\n ...(directoryUser.roles !== undefined && { roles: directoryUser.roles }),\n createdAt: directoryUser.created_at,\n updatedAt: directoryUser.updated_at,\n previousAttributes: directoryUser.previous_attributes,\n});\n"],"mappings":";;;AASA,MAAa,4BAGX,mBAGsC;CACtC,QAAQ,cAAc;CACtB,IAAI,cAAc;CAClB,aAAa,cAAc;CAC3B,gBAAgB,cAAc;CAC9B,eAAe,cAAc;CAC7B,kBAAkB,cAAc;CAChC,OAAO,cAAc;CACrB,WAAW,cAAc;CACzB,OAAO,cAAc;CACrB,UAAU,cAAc;CACxB,OAAO,cAAc;CACrB,GAAI,cAAc,SAAS,UAAa,EAAE,MAAM,cAAc,MAAM;CACpE,GAAI,cAAc,UAAU,UAAa,EAAE,OAAO,cAAc,OAAO;CACvE,WAAW,cAAc;CACzB,WAAW,cAAc;CAC1B;AAED,MAAa,sCAGX,6BACgD;CAChD,GAAG,yBAAyB,wBAAwB;CACpD,QAAQ,wBAAwB,OAAO,IAAI,0BAA0B;CACtE;AAED,MAAa,wCACX,mBACuD;CACvD,QAAQ;CACR,IAAI,cAAc;CAClB,aAAa,cAAc;CAC3B,gBAAgB,cAAc;CAC9B,eAAe,cAAc;CAC7B,kBAAkB,cAAc;CAChC,OAAO,cAAc;CACrB,WAAW,cAAc;CACzB,OAAO,cAAc;CACrB,UAAU,cAAc;CACxB,OAAO,cAAc;CACrB,GAAI,cAAc,SAAS,UAAa,EAAE,MAAM,cAAc,MAAM;CACpE,GAAI,cAAc,UAAU,UAAa,EAAE,OAAO,cAAc,OAAO;CACvE,WAAW,cAAc;CACzB,WAAW,cAAc;CACzB,oBAAoB,cAAc;CACnC"}
@@ -1,5 +1,5 @@
1
1
  const require_directory_group_serializer = require('../../directory-group.serializer-DbTTdVPB.cjs');
2
- const require_directory_user_serializer = require('../../directory-user.serializer-UTYCZSSB.cjs');
2
+ const require_directory_user_serializer = require('../../directory-user.serializer-BSflXAKm.cjs');
3
3
  const require_directory_serializer = require('../../directory.serializer-j1RV_J7z.cjs');
4
4
  const require_list_directories_options_serializer = require('../../list-directories-options.serializer-DIkuNuJB.cjs');
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { n as deserializeUpdatedEventDirectoryGroup, t as deserializeDirectoryGroup } from "../../directory-group.serializer-0TKalsuT.cjs";
2
- import { n as deserializeDirectoryUserWithGroups, r as deserializeUpdatedEventDirectoryUser, t as deserializeDirectoryUser } from "../../directory-user.serializer-p5YxJzmY.cjs";
2
+ import { n as deserializeDirectoryUserWithGroups, r as deserializeUpdatedEventDirectoryUser, t as deserializeDirectoryUser } from "../../directory-user.serializer-XxQp-UAE.cjs";
3
3
  import { i as deserializeEventDirectory, n as deserializeDirectory, r as deserializeDirectoryState, t as deserializeDeletedEventDirectory } from "../../directory.serializer-v_PXRd7z.cjs";
4
- import { t as serializeListDirectoriesOptions } from "../../list-directories-options.serializer-wDBlMx46.cjs";
4
+ import { t as serializeListDirectoriesOptions } from "../../list-directories-options.serializer-C9goOgkU.cjs";
5
5
  export { deserializeDeletedEventDirectory, deserializeDirectory, deserializeDirectoryGroup, deserializeDirectoryState, deserializeDirectoryUser, deserializeDirectoryUserWithGroups, deserializeEventDirectory, deserializeUpdatedEventDirectoryGroup, deserializeUpdatedEventDirectoryUser, serializeListDirectoriesOptions };
@@ -1,2 +1,2 @@
1
- import { t as serializeListDirectoriesOptions } from "../../list-directories-options.serializer-wDBlMx46.cjs";
1
+ import { t as serializeListDirectoriesOptions } from "../../list-directories-options.serializer-C9goOgkU.cjs";
2
2
  export { serializeListDirectoriesOptions };
@@ -1,6 +1,6 @@
1
1
  const require_pagination = require('./pagination-BG1uBuL4.cjs');
2
2
  const require_directory_group_serializer = require('./directory-group.serializer-DbTTdVPB.cjs');
3
- const require_directory_user_serializer = require('./directory-user.serializer-UTYCZSSB.cjs');
3
+ const require_directory_user_serializer = require('./directory-user.serializer-BSflXAKm.cjs');
4
4
  const require_directory_serializer = require('./directory.serializer-j1RV_J7z.cjs');
5
5
  const require_list_directories_options_serializer = require('./list-directories-options.serializer-DIkuNuJB.cjs');
6
6
  const require_fetch_and_deserialize = require('./fetch-and-deserialize-Ba2wR4ur.cjs');
@@ -43,4 +43,4 @@ Object.defineProperty(exports, 'DirectorySync', {
43
43
  return DirectorySync;
44
44
  }
45
45
  });
46
- //# sourceMappingURL=directory-sync-BGWLeGge.cjs.map
46
+ //# sourceMappingURL=directory-sync-ClseMB3c.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"directory-sync-BGWLeGge.cjs","names":["workos: WorkOS","AutoPaginatable","fetchAndDeserialize","deserializeDirectory","serializeListDirectoriesOptions","deserializeDirectoryGroup","deserializeDirectoryUserWithGroups"],"sources":["../src/directory-sync/directory-sync.ts"],"sourcesContent":["import { WorkOS } from '../workos';\nimport { AutoPaginatable } from '../common/utils/pagination';\nimport {\n DefaultCustomAttributes,\n Directory,\n DirectoryGroup,\n DirectoryGroupResponse,\n DirectoryResponse,\n DirectoryUserWithGroups,\n DirectoryUserWithGroupsResponse,\n ListDirectoriesOptions,\n ListDirectoryGroupsOptions,\n ListDirectoryUsersOptions,\n SerializedListDirectoriesOptions,\n} from './interfaces';\nimport {\n deserializeDirectory,\n deserializeDirectoryGroup,\n deserializeDirectoryUserWithGroups,\n serializeListDirectoriesOptions,\n} from './serializers';\nimport { fetchAndDeserialize } from '../common/utils/fetch-and-deserialize';\n\nexport class DirectorySync {\n constructor(private readonly workos: WorkOS) {}\n\n async listDirectories(\n options?: ListDirectoriesOptions,\n ): Promise<AutoPaginatable<Directory, SerializedListDirectoriesOptions>> {\n return new AutoPaginatable(\n await fetchAndDeserialize<DirectoryResponse, Directory>(\n this.workos,\n '/directories',\n deserializeDirectory,\n options ? serializeListDirectoriesOptions(options) : undefined,\n ),\n (params) =>\n fetchAndDeserialize<DirectoryResponse, Directory>(\n this.workos,\n '/directories',\n deserializeDirectory,\n params,\n ),\n options ? serializeListDirectoriesOptions(options) : undefined,\n );\n }\n\n async getDirectory(id: string): Promise<Directory> {\n const { data } = await this.workos.get<DirectoryResponse>(\n `/directories/${id}`,\n );\n\n return deserializeDirectory(data);\n }\n\n async deleteDirectory(id: string) {\n await this.workos.delete(`/directories/${id}`);\n }\n\n async listGroups(\n options: ListDirectoryGroupsOptions,\n ): Promise<AutoPaginatable<DirectoryGroup, ListDirectoryGroupsOptions>> {\n return new AutoPaginatable(\n await fetchAndDeserialize<DirectoryGroupResponse, DirectoryGroup>(\n this.workos,\n '/directory_groups',\n deserializeDirectoryGroup,\n options,\n ),\n (params) =>\n fetchAndDeserialize<DirectoryGroupResponse, DirectoryGroup>(\n this.workos,\n '/directory_groups',\n deserializeDirectoryGroup,\n params,\n ),\n options,\n );\n }\n\n async listUsers<TCustomAttributes extends object = DefaultCustomAttributes>(\n options: ListDirectoryUsersOptions,\n ): Promise<\n AutoPaginatable<\n DirectoryUserWithGroups<TCustomAttributes>,\n ListDirectoryUsersOptions\n >\n > {\n return new AutoPaginatable(\n await fetchAndDeserialize<\n DirectoryUserWithGroupsResponse<TCustomAttributes>,\n DirectoryUserWithGroups<TCustomAttributes>\n >(\n this.workos,\n '/directory_users',\n deserializeDirectoryUserWithGroups,\n options,\n ),\n (params) =>\n fetchAndDeserialize<\n DirectoryUserWithGroupsResponse<TCustomAttributes>,\n DirectoryUserWithGroups<TCustomAttributes>\n >(\n this.workos,\n '/directory_users',\n deserializeDirectoryUserWithGroups,\n params,\n ),\n options,\n );\n }\n\n async getUser<TCustomAttributes extends object = DefaultCustomAttributes>(\n user: string,\n ): Promise<DirectoryUserWithGroups<TCustomAttributes>> {\n const { data } = await this.workos.get<\n DirectoryUserWithGroupsResponse<TCustomAttributes>\n >(`/directory_users/${user}`);\n\n return deserializeDirectoryUserWithGroups(data);\n }\n\n async getGroup(group: string): Promise<DirectoryGroup> {\n const { data } = await this.workos.get<DirectoryGroupResponse>(\n `/directory_groups/${group}`,\n );\n\n return deserializeDirectoryGroup(data);\n }\n}\n"],"mappings":";;;;;;;;AAuBA,IAAa,gBAAb,MAA2B;CACzB,YAAY,AAAiBA,QAAgB;EAAhB;;CAE7B,MAAM,gBACJ,SACuE;AACvE,SAAO,IAAIC,mCACT,MAAMC,kDACJ,KAAK,QACL,gBACAC,mDACA,UAAUC,4EAAgC,QAAQ,GAAG,OACtD,GACA,WACCF,kDACE,KAAK,QACL,gBACAC,mDACA,OACD,EACH,UAAUC,4EAAgC,QAAQ,GAAG,OACtD;;CAGH,MAAM,aAAa,IAAgC;EACjD,MAAM,EAAE,SAAS,MAAM,KAAK,OAAO,IACjC,gBAAgB,KACjB;AAED,SAAOD,kDAAqB,KAAK;;CAGnC,MAAM,gBAAgB,IAAY;AAChC,QAAM,KAAK,OAAO,OAAO,gBAAgB,KAAK;;CAGhD,MAAM,WACJ,SACsE;AACtE,SAAO,IAAIF,mCACT,MAAMC,kDACJ,KAAK,QACL,qBACAG,8DACA,QACD,GACA,WACCH,kDACE,KAAK,QACL,qBACAG,8DACA,OACD,EACH,QACD;;CAGH,MAAM,UACJ,SAMA;AACA,SAAO,IAAIJ,mCACT,MAAMC,kDAIJ,KAAK,QACL,oBACAI,sEACA,QACD,GACA,WACCJ,kDAIE,KAAK,QACL,oBACAI,sEACA,OACD,EACH,QACD;;CAGH,MAAM,QACJ,MACqD;EACrD,MAAM,EAAE,SAAS,MAAM,KAAK,OAAO,IAEjC,oBAAoB,OAAO;AAE7B,SAAOA,qEAAmC,KAAK;;CAGjD,MAAM,SAAS,OAAwC;EACrD,MAAM,EAAE,SAAS,MAAM,KAAK,OAAO,IACjC,qBAAqB,QACtB;AAED,SAAOD,6DAA0B,KAAK"}
1
+ {"version":3,"file":"directory-sync-ClseMB3c.cjs","names":["workos: WorkOS","AutoPaginatable","fetchAndDeserialize","deserializeDirectory","serializeListDirectoriesOptions","deserializeDirectoryGroup","deserializeDirectoryUserWithGroups"],"sources":["../src/directory-sync/directory-sync.ts"],"sourcesContent":["import { WorkOS } from '../workos';\nimport { AutoPaginatable } from '../common/utils/pagination';\nimport {\n DefaultCustomAttributes,\n Directory,\n DirectoryGroup,\n DirectoryGroupResponse,\n DirectoryResponse,\n DirectoryUserWithGroups,\n DirectoryUserWithGroupsResponse,\n ListDirectoriesOptions,\n ListDirectoryGroupsOptions,\n ListDirectoryUsersOptions,\n SerializedListDirectoriesOptions,\n} from './interfaces';\nimport {\n deserializeDirectory,\n deserializeDirectoryGroup,\n deserializeDirectoryUserWithGroups,\n serializeListDirectoriesOptions,\n} from './serializers';\nimport { fetchAndDeserialize } from '../common/utils/fetch-and-deserialize';\n\nexport class DirectorySync {\n constructor(private readonly workos: WorkOS) {}\n\n async listDirectories(\n options?: ListDirectoriesOptions,\n ): Promise<AutoPaginatable<Directory, SerializedListDirectoriesOptions>> {\n return new AutoPaginatable(\n await fetchAndDeserialize<DirectoryResponse, Directory>(\n this.workos,\n '/directories',\n deserializeDirectory,\n options ? serializeListDirectoriesOptions(options) : undefined,\n ),\n (params) =>\n fetchAndDeserialize<DirectoryResponse, Directory>(\n this.workos,\n '/directories',\n deserializeDirectory,\n params,\n ),\n options ? serializeListDirectoriesOptions(options) : undefined,\n );\n }\n\n async getDirectory(id: string): Promise<Directory> {\n const { data } = await this.workos.get<DirectoryResponse>(\n `/directories/${id}`,\n );\n\n return deserializeDirectory(data);\n }\n\n async deleteDirectory(id: string) {\n await this.workos.delete(`/directories/${id}`);\n }\n\n async listGroups(\n options: ListDirectoryGroupsOptions,\n ): Promise<AutoPaginatable<DirectoryGroup, ListDirectoryGroupsOptions>> {\n return new AutoPaginatable(\n await fetchAndDeserialize<DirectoryGroupResponse, DirectoryGroup>(\n this.workos,\n '/directory_groups',\n deserializeDirectoryGroup,\n options,\n ),\n (params) =>\n fetchAndDeserialize<DirectoryGroupResponse, DirectoryGroup>(\n this.workos,\n '/directory_groups',\n deserializeDirectoryGroup,\n params,\n ),\n options,\n );\n }\n\n async listUsers<TCustomAttributes extends object = DefaultCustomAttributes>(\n options: ListDirectoryUsersOptions,\n ): Promise<\n AutoPaginatable<\n DirectoryUserWithGroups<TCustomAttributes>,\n ListDirectoryUsersOptions\n >\n > {\n return new AutoPaginatable(\n await fetchAndDeserialize<\n DirectoryUserWithGroupsResponse<TCustomAttributes>,\n DirectoryUserWithGroups<TCustomAttributes>\n >(\n this.workos,\n '/directory_users',\n deserializeDirectoryUserWithGroups,\n options,\n ),\n (params) =>\n fetchAndDeserialize<\n DirectoryUserWithGroupsResponse<TCustomAttributes>,\n DirectoryUserWithGroups<TCustomAttributes>\n >(\n this.workos,\n '/directory_users',\n deserializeDirectoryUserWithGroups,\n params,\n ),\n options,\n );\n }\n\n async getUser<TCustomAttributes extends object = DefaultCustomAttributes>(\n user: string,\n ): Promise<DirectoryUserWithGroups<TCustomAttributes>> {\n const { data } = await this.workos.get<\n DirectoryUserWithGroupsResponse<TCustomAttributes>\n >(`/directory_users/${user}`);\n\n return deserializeDirectoryUserWithGroups(data);\n }\n\n async getGroup(group: string): Promise<DirectoryGroup> {\n const { data } = await this.workos.get<DirectoryGroupResponse>(\n `/directory_groups/${group}`,\n );\n\n return deserializeDirectoryGroup(data);\n }\n}\n"],"mappings":";;;;;;;;AAuBA,IAAa,gBAAb,MAA2B;CACzB,YAAY,AAAiBA,QAAgB;EAAhB;;CAE7B,MAAM,gBACJ,SACuE;AACvE,SAAO,IAAIC,mCACT,MAAMC,kDACJ,KAAK,QACL,gBACAC,mDACA,UAAUC,4EAAgC,QAAQ,GAAG,OACtD,GACA,WACCF,kDACE,KAAK,QACL,gBACAC,mDACA,OACD,EACH,UAAUC,4EAAgC,QAAQ,GAAG,OACtD;;CAGH,MAAM,aAAa,IAAgC;EACjD,MAAM,EAAE,SAAS,MAAM,KAAK,OAAO,IACjC,gBAAgB,KACjB;AAED,SAAOD,kDAAqB,KAAK;;CAGnC,MAAM,gBAAgB,IAAY;AAChC,QAAM,KAAK,OAAO,OAAO,gBAAgB,KAAK;;CAGhD,MAAM,WACJ,SACsE;AACtE,SAAO,IAAIF,mCACT,MAAMC,kDACJ,KAAK,QACL,qBACAG,8DACA,QACD,GACA,WACCH,kDACE,KAAK,QACL,qBACAG,8DACA,OACD,EACH,QACD;;CAGH,MAAM,UACJ,SAMA;AACA,SAAO,IAAIJ,mCACT,MAAMC,kDAIJ,KAAK,QACL,oBACAI,sEACA,QACD,GACA,WACCJ,kDAIE,KAAK,QACL,oBACAI,sEACA,OACD,EACH,QACD;;CAGH,MAAM,QACJ,MACqD;EACrD,MAAM,EAAE,SAAS,MAAM,KAAK,OAAO,IAEjC,oBAAoB,OAAO;AAE7B,SAAOA,qEAAmC,KAAK;;CAGjD,MAAM,SAAS,OAAwC;EACrD,MAAM,EAAE,SAAS,MAAM,KAAK,OAAO,IACjC,qBAAqB,QACtB;AAED,SAAOD,6DAA0B,KAAK"}
@@ -13,8 +13,8 @@ const deserializeDirectoryUser = (directoryUser) => ({
13
13
  email: directoryUser.email,
14
14
  lastName: directoryUser.last_name,
15
15
  state: directoryUser.state,
16
- role: directoryUser.role,
17
- roles: directoryUser.roles,
16
+ ...directoryUser.role !== void 0 && { role: directoryUser.role },
17
+ ...directoryUser.roles !== void 0 && { roles: directoryUser.roles },
18
18
  createdAt: directoryUser.created_at,
19
19
  updatedAt: directoryUser.updated_at
20
20
  });
@@ -34,8 +34,8 @@ const deserializeUpdatedEventDirectoryUser = (directoryUser) => ({
34
34
  email: directoryUser.email,
35
35
  lastName: directoryUser.last_name,
36
36
  state: directoryUser.state,
37
- role: directoryUser.role,
38
- roles: directoryUser.roles,
37
+ ...directoryUser.role !== void 0 && { role: directoryUser.role },
38
+ ...directoryUser.roles !== void 0 && { roles: directoryUser.roles },
39
39
  createdAt: directoryUser.created_at,
40
40
  updatedAt: directoryUser.updated_at,
41
41
  previousAttributes: directoryUser.previous_attributes
@@ -60,4 +60,4 @@ Object.defineProperty(exports, 'deserializeUpdatedEventDirectoryUser', {
60
60
  return deserializeUpdatedEventDirectoryUser;
61
61
  }
62
62
  });
63
- //# sourceMappingURL=directory-user.serializer-UTYCZSSB.cjs.map
63
+ //# sourceMappingURL=directory-user.serializer-BSflXAKm.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"directory-user.serializer-BSflXAKm.cjs","names":["deserializeDirectoryGroup"],"sources":["../src/directory-sync/serializers/directory-user.serializer.ts"],"sourcesContent":["import {\n DefaultCustomAttributes,\n DirectoryUser,\n DirectoryUserResponse,\n DirectoryUserWithGroups,\n DirectoryUserWithGroupsResponse,\n} from '../interfaces';\nimport { deserializeDirectoryGroup } from './directory-group.serializer';\n\nexport const deserializeDirectoryUser = <\n TCustomAttributes extends object = DefaultCustomAttributes,\n>(\n directoryUser:\n | DirectoryUserResponse<TCustomAttributes>\n | DirectoryUserWithGroupsResponse<TCustomAttributes>,\n): DirectoryUser<TCustomAttributes> => ({\n object: directoryUser.object,\n id: directoryUser.id,\n directoryId: directoryUser.directory_id,\n organizationId: directoryUser.organization_id,\n rawAttributes: directoryUser.raw_attributes,\n customAttributes: directoryUser.custom_attributes,\n idpId: directoryUser.idp_id,\n firstName: directoryUser.first_name,\n email: directoryUser.email,\n lastName: directoryUser.last_name,\n state: directoryUser.state,\n ...(directoryUser.role !== undefined && { role: directoryUser.role }),\n ...(directoryUser.roles !== undefined && { roles: directoryUser.roles }),\n createdAt: directoryUser.created_at,\n updatedAt: directoryUser.updated_at,\n});\n\nexport const deserializeDirectoryUserWithGroups = <\n TCustomAttributes extends object = DefaultCustomAttributes,\n>(\n directoryUserWithGroups: DirectoryUserWithGroupsResponse<TCustomAttributes>,\n): DirectoryUserWithGroups<TCustomAttributes> => ({\n ...deserializeDirectoryUser(directoryUserWithGroups),\n groups: directoryUserWithGroups.groups.map(deserializeDirectoryGroup),\n});\n\nexport const deserializeUpdatedEventDirectoryUser = (\n directoryUser: DirectoryUserResponse & Record<'previous_attributes', any>,\n): DirectoryUser & Record<'previousAttributes', any> => ({\n object: 'directory_user',\n id: directoryUser.id,\n directoryId: directoryUser.directory_id,\n organizationId: directoryUser.organization_id,\n rawAttributes: directoryUser.raw_attributes,\n customAttributes: directoryUser.custom_attributes,\n idpId: directoryUser.idp_id,\n firstName: directoryUser.first_name,\n email: directoryUser.email,\n lastName: directoryUser.last_name,\n state: directoryUser.state,\n ...(directoryUser.role !== undefined && { role: directoryUser.role }),\n ...(directoryUser.roles !== undefined && { roles: directoryUser.roles }),\n createdAt: directoryUser.created_at,\n updatedAt: directoryUser.updated_at,\n previousAttributes: directoryUser.previous_attributes,\n});\n"],"mappings":";;;AASA,MAAa,4BAGX,mBAGsC;CACtC,QAAQ,cAAc;CACtB,IAAI,cAAc;CAClB,aAAa,cAAc;CAC3B,gBAAgB,cAAc;CAC9B,eAAe,cAAc;CAC7B,kBAAkB,cAAc;CAChC,OAAO,cAAc;CACrB,WAAW,cAAc;CACzB,OAAO,cAAc;CACrB,UAAU,cAAc;CACxB,OAAO,cAAc;CACrB,GAAI,cAAc,SAAS,UAAa,EAAE,MAAM,cAAc,MAAM;CACpE,GAAI,cAAc,UAAU,UAAa,EAAE,OAAO,cAAc,OAAO;CACvE,WAAW,cAAc;CACzB,WAAW,cAAc;CAC1B;AAED,MAAa,sCAGX,6BACgD;CAChD,GAAG,yBAAyB,wBAAwB;CACpD,QAAQ,wBAAwB,OAAO,IAAIA,6DAA0B;CACtE;AAED,MAAa,wCACX,mBACuD;CACvD,QAAQ;CACR,IAAI,cAAc;CAClB,aAAa,cAAc;CAC3B,gBAAgB,cAAc;CAC9B,eAAe,cAAc;CAC7B,kBAAkB,cAAc;CAChC,OAAO,cAAc;CACrB,WAAW,cAAc;CACzB,OAAO,cAAc;CACrB,UAAU,cAAc;CACxB,OAAO,cAAc;CACrB,GAAI,cAAc,SAAS,UAAa,EAAE,MAAM,cAAc,MAAM;CACpE,GAAI,cAAc,UAAU,UAAa,EAAE,OAAO,cAAc,OAAO;CACvE,WAAW,cAAc;CACzB,WAAW,cAAc;CACzB,oBAAoB,cAAc;CACnC"}
@@ -1,4 +1,4 @@
1
- import { Gn as DirectoryUser, Jn as DirectoryUserWithGroupsResponse, Kn as DirectoryUserResponse, Wn as DefaultCustomAttributes, qn as DirectoryUserWithGroups } from "./index-BDMqzUe6.cjs";
1
+ import { Gn as DirectoryUser, Jn as DirectoryUserWithGroupsResponse, Kn as DirectoryUserResponse, Wn as DefaultCustomAttributes, qn as DirectoryUserWithGroups } from "./index-DYVTG9fR.cjs";
2
2
 
3
3
  //#region src/directory-sync/serializers/directory-user.serializer.d.ts
4
4
  declare const deserializeDirectoryUser: <TCustomAttributes extends object = DefaultCustomAttributes>(directoryUser: DirectoryUserResponse<TCustomAttributes> | DirectoryUserWithGroupsResponse<TCustomAttributes>) => DirectoryUser<TCustomAttributes>;
@@ -6,4 +6,4 @@ declare const deserializeDirectoryUserWithGroups: <TCustomAttributes extends obj
6
6
  declare const deserializeUpdatedEventDirectoryUser: (directoryUser: DirectoryUserResponse & Record<"previous_attributes", any>) => DirectoryUser & Record<"previousAttributes", any>;
7
7
  //#endregion
8
8
  export { deserializeDirectoryUserWithGroups as n, deserializeUpdatedEventDirectoryUser as r, deserializeDirectoryUser as t };
9
- //# sourceMappingURL=directory-user.serializer-p5YxJzmY.d.cts.map
9
+ //# sourceMappingURL=directory-user.serializer-XxQp-UAE.d.cts.map
@@ -1,21 +1,21 @@
1
1
  const require_api_key_serializer = require('./api-key.serializer-384tUKDU.cjs');
2
2
  const require_directory_group_serializer = require('./directory-group.serializer-DbTTdVPB.cjs');
3
- const require_directory_user_serializer = require('./directory-user.serializer-UTYCZSSB.cjs');
3
+ const require_directory_user_serializer = require('./directory-user.serializer-BSflXAKm.cjs');
4
4
  const require_directory_serializer = require('./directory.serializer-j1RV_J7z.cjs');
5
- const require_organization_domain_serializer = require('./organization-domain.serializer-BuecMdCg.cjs');
6
- const require_organization_serializer = require('./organization.serializer-DM6Xkk2V.cjs');
7
- const require_connection_serializer = require('./connection.serializer-phS0D1t9.cjs');
8
- const require_authentication_event_serializer = require('./authentication-event.serializer-mddvaOjb.cjs');
5
+ const require_organization_domain_serializer = require('./organization-domain.serializer-DVylNcLm.cjs');
6
+ const require_organization_serializer = require('./organization.serializer-CVNQSfQH.cjs');
7
+ const require_connection_serializer = require('./connection.serializer-sFgaPd28.cjs');
8
+ const require_authentication_event_serializer = require('./authentication-event.serializer-CqD91u8L.cjs');
9
9
  const require_user_serializer = require('./user.serializer-Y5EM8MeK.cjs');
10
10
  const require_email_verification_serializer = require('./email-verification.serializer-e6Mbvjvd.cjs');
11
11
  const require_invitation_serializer = require('./invitation.serializer-BEVUkLP9.cjs');
12
12
  const require_magic_auth_serializer = require('./magic-auth.serializer-By4HyvgZ.cjs');
13
13
  const require_password_reset_serializer = require('./password-reset.serializer-D8Kbnirv.cjs');
14
- const require_session_serializer = require('./session.serializer-Dmj9Hm3q.cjs');
14
+ const require_session_serializer = require('./session.serializer-B63NxvRH.cjs');
15
15
  const require_organization_membership_serializer = require('./organization-membership.serializer-CgjS5BwK.cjs');
16
16
  const require_role_serializer = require('./role.serializer-yTKLys-u.cjs');
17
17
  const require_authentication_radar_risk_event_serializer = require('./authentication-radar-risk-event-serializer-CDBrk7yn.cjs');
18
- const require_organization_role_serializer = require('./organization-role.serializer-lsSLexV6.cjs');
18
+ const require_organization_role_serializer = require('./organization-role.serializer-DFNkyIDQ.cjs');
19
19
  const require_permission_serializer = require('./permission.serializer-BehT5Z93.cjs');
20
20
 
21
21
  //#region src/common/serializers/event.serializer.ts
@@ -146,7 +146,7 @@ const deserializeEvent = (event) => {
146
146
  case "organization_role.deleted": return {
147
147
  ...eventBase,
148
148
  event: event.event,
149
- data: require_organization_role_serializer.deserializeOrganizationRole(event.data)
149
+ data: require_organization_role_serializer.deserializeOrganizationRoleEvent(event.data)
150
150
  };
151
151
  case "permission.created":
152
152
  case "permission.updated":
@@ -193,4 +193,4 @@ Object.defineProperty(exports, 'deserializeEvent', {
193
193
  return deserializeEvent;
194
194
  }
195
195
  });
196
- //# sourceMappingURL=event.serializer-D23ulCkG.cjs.map
196
+ //# sourceMappingURL=event.serializer-Cn5xAuN9.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.serializer-Cn5xAuN9.cjs","names":["eventBase: EventBase","deserializeAuthenticationEvent","deserializeAuthenticationRadarRiskDetectedEvent","deserializeConnection","deserializeEventDirectory","deserializeDeletedEventDirectory","deserializeDirectoryGroup","deserializeUpdatedEventDirectoryGroup","deserializeDirectoryUser","deserializeUpdatedEventDirectoryUser","deserializeEmailVerificationEvent","deserializeInvitationEvent","deserializeMagicAuthEvent","deserializePasswordResetEvent","deserializeUser","deserializeOrganizationMembership","deserializeRoleEvent","deserializeOrganizationRoleEvent","deserializePermission","deserializeSession","deserializeOrganization","deserializeOrganizationDomain","deserializeApiKey"],"sources":["../src/common/serializers/event.serializer.ts"],"sourcesContent":["import {\n deserializeDeletedEventDirectory,\n deserializeDirectoryUser,\n deserializeEventDirectory,\n deserializeDirectoryGroup,\n deserializeUpdatedEventDirectoryGroup,\n deserializeUpdatedEventDirectoryUser,\n} from '../../directory-sync/serializers';\nimport { deserializeOrganization } from '../../organizations/serializers';\nimport { deserializeConnection } from '../../sso/serializers';\nimport {\n deserializeAuthenticationEvent,\n deserializeEmailVerificationEvent,\n deserializeInvitationEvent,\n deserializeMagicAuthEvent,\n deserializePasswordResetEvent,\n deserializeUser,\n} from '../../user-management/serializers';\nimport { deserializeOrganizationDomain } from '../../organization-domains/serializers/organization-domain.serializer';\nimport { deserializeOrganizationMembership } from '../../user-management/serializers/organization-membership.serializer';\nimport { deserializeRoleEvent } from '../../user-management/serializers/role.serializer';\nimport { deserializeSession } from '../../user-management/serializers/session.serializer';\nimport { Event, EventBase, EventResponse } from '../interfaces';\nimport { deserializeAuthenticationRadarRiskDetectedEvent } from '../../user-management/serializers/authentication-radar-risk-event-serializer';\nimport { deserializeApiKey } from '../../api-keys/serializers/api-key.serializer';\nimport { deserializeOrganizationRoleEvent } from '../../authorization/serializers/organization-role.serializer';\nimport { deserializePermission } from '../../authorization/serializers/permission.serializer';\n\nexport const deserializeEvent = (event: EventResponse): Event => {\n const eventBase: EventBase = {\n id: event.id,\n createdAt: event.created_at,\n context: event.context,\n };\n\n switch (event.event) {\n case 'authentication.email_verification_succeeded':\n case 'authentication.magic_auth_failed':\n case 'authentication.magic_auth_succeeded':\n case 'authentication.mfa_succeeded':\n case 'authentication.oauth_failed':\n case 'authentication.oauth_succeeded':\n case 'authentication.passkey_failed':\n case 'authentication.passkey_succeeded':\n case 'authentication.password_failed':\n case 'authentication.password_succeeded':\n case 'authentication.sso_failed':\n case 'authentication.sso_succeeded':\n return {\n ...eventBase,\n event: event.event,\n data: deserializeAuthenticationEvent(event.data),\n };\n case 'authentication.radar_risk_detected':\n return {\n ...eventBase,\n event: event.event,\n data: deserializeAuthenticationRadarRiskDetectedEvent(event.data),\n };\n case 'connection.activated':\n case 'connection.deactivated':\n case 'connection.deleted':\n return {\n ...eventBase,\n event: event.event,\n data: deserializeConnection(event.data),\n };\n case 'dsync.activated':\n return {\n ...eventBase,\n event: event.event,\n data: deserializeEventDirectory(event.data),\n };\n case 'dsync.deleted':\n return {\n ...eventBase,\n event: event.event,\n data: deserializeDeletedEventDirectory(event.data),\n };\n case 'dsync.group.created':\n case 'dsync.group.deleted':\n return {\n ...eventBase,\n event: event.event,\n data: deserializeDirectoryGroup(event.data),\n };\n case 'dsync.group.updated':\n return {\n ...eventBase,\n event: event.event,\n data: deserializeUpdatedEventDirectoryGroup(event.data),\n };\n case 'dsync.group.user_added':\n case 'dsync.group.user_removed':\n return {\n ...eventBase,\n event: event.event,\n data: {\n directoryId: event.data.directory_id,\n user: deserializeDirectoryUser(event.data.user),\n group: deserializeDirectoryGroup(event.data.group),\n },\n };\n case 'dsync.user.created':\n case 'dsync.user.deleted':\n return {\n ...eventBase,\n event: event.event,\n data: deserializeDirectoryUser(event.data),\n };\n case 'dsync.user.updated':\n return {\n ...eventBase,\n event: event.event,\n data: deserializeUpdatedEventDirectoryUser(event.data),\n };\n case 'email_verification.created':\n return {\n ...eventBase,\n event: event.event,\n data: deserializeEmailVerificationEvent(event.data),\n };\n case 'invitation.accepted':\n case 'invitation.created':\n case 'invitation.revoked':\n case 'invitation.resent':\n return {\n ...eventBase,\n event: event.event,\n data: deserializeInvitationEvent(event.data),\n };\n case 'magic_auth.created':\n return {\n ...eventBase,\n event: event.event,\n data: deserializeMagicAuthEvent(event.data),\n };\n case 'password_reset.created':\n case 'password_reset.succeeded':\n return {\n ...eventBase,\n event: event.event,\n data: deserializePasswordResetEvent(event.data),\n };\n case 'user.created':\n case 'user.updated':\n case 'user.deleted':\n return {\n ...eventBase,\n event: event.event,\n data: deserializeUser(event.data),\n };\n case 'organization_membership.created':\n case 'organization_membership.deleted':\n case 'organization_membership.updated':\n return {\n ...eventBase,\n event: event.event,\n data: deserializeOrganizationMembership(event.data),\n };\n case 'role.created':\n case 'role.deleted':\n case 'role.updated':\n return {\n ...eventBase,\n event: event.event,\n data: deserializeRoleEvent(event.data),\n };\n case 'organization_role.created':\n case 'organization_role.updated':\n case 'organization_role.deleted':\n return {\n ...eventBase,\n event: event.event,\n data: deserializeOrganizationRoleEvent(event.data),\n };\n case 'permission.created':\n case 'permission.updated':\n case 'permission.deleted':\n return {\n ...eventBase,\n event: event.event,\n data: deserializePermission(event.data),\n };\n case 'session.created':\n case 'session.revoked':\n return {\n ...eventBase,\n event: event.event,\n data: deserializeSession(event.data),\n };\n case 'organization.created':\n case 'organization.updated':\n case 'organization.deleted':\n return {\n ...eventBase,\n event: event.event,\n data: deserializeOrganization(event.data),\n };\n case 'organization_domain.verified':\n case 'organization_domain.verification_failed':\n case 'organization_domain.created':\n case 'organization_domain.updated':\n case 'organization_domain.deleted':\n return {\n ...eventBase,\n event: event.event,\n data: deserializeOrganizationDomain(event.data),\n };\n case 'api_key.created':\n case 'api_key.revoked':\n return {\n ...eventBase,\n event: event.event,\n data: deserializeApiKey(event.data),\n };\n }\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA4BA,MAAa,oBAAoB,UAAgC;CAC/D,MAAMA,YAAuB;EAC3B,IAAI,MAAM;EACV,WAAW,MAAM;EACjB,SAAS,MAAM;EAChB;AAED,SAAQ,MAAM,OAAd;EACE,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAA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,MAAM;GACb,MAAMC,6CAAkB,MAAM,KAAK;GACpC"}
@@ -1,7 +1,7 @@
1
- import { ct as Event, dt as EventResponse } from "./index-BDMqzUe6.cjs";
1
+ import { ct as Event, dt as EventResponse } from "./index-DYVTG9fR.cjs";
2
2
 
3
3
  //#region src/common/serializers/event.serializer.d.ts
4
4
  declare const deserializeEvent: (event: EventResponse) => Event;
5
5
  //#endregion
6
6
  export { deserializeEvent as t };
7
- //# sourceMappingURL=event.serializer-BU87BBSJ.d.cts.map
7
+ //# sourceMappingURL=event.serializer-UUziUbH3.d.cts.map
@@ -1,3 +1,3 @@
1
- const require_events = require('../events-Bo4Mrn6L.cjs');
1
+ const require_events = require('../events-DDmTI2cj.cjs');
2
2
 
3
3
  exports.Events = require_events.Events;
@@ -1,2 +1,2 @@
1
- import { T as Events } from "../api-keys-5t7nLnb5.cjs";
1
+ import { T as Events } from "../api-keys-CSDwj0TW.cjs";
2
2
  export { Events };
@@ -1,2 +1,2 @@
1
- import { n as SerializedListEventOptions, t as ListEventOptions } from "../../list-events-options.interface-DJVfXCA3.cjs";
1
+ import { n as SerializedListEventOptions, t as ListEventOptions } from "../../list-events-options.interface-Iyr1CHB0.cjs";
2
2
  export { ListEventOptions, SerializedListEventOptions };
@@ -1,2 +1,2 @@
1
- import { n as SerializedListEventOptions, t as ListEventOptions } from "../../list-events-options.interface-DJVfXCA3.cjs";
1
+ import { n as SerializedListEventOptions, t as ListEventOptions } from "../../list-events-options.interface-Iyr1CHB0.cjs";
2
2
  export { ListEventOptions, SerializedListEventOptions };
@@ -1,2 +1,2 @@
1
- import { t as serializeListEventOptions } from "../../list-event-options.serializer-DPhp3gKz.cjs";
1
+ import { t as serializeListEventOptions } from "../../list-event-options.serializer-C_A6oxeu.cjs";
2
2
  export { serializeListEventOptions };
@@ -1,2 +1,2 @@
1
- import { t as serializeListEventOptions } from "../../list-event-options.serializer-DPhp3gKz.cjs";
1
+ import { t as serializeListEventOptions } from "../../list-event-options.serializer-C_A6oxeu.cjs";
2
2
  export { serializeListEventOptions };
@@ -1,4 +1,4 @@
1
- const require_event_serializer = require('./event.serializer-D23ulCkG.cjs');
1
+ const require_event_serializer = require('./event.serializer-Cn5xAuN9.cjs');
2
2
  const require_list_serializer = require('./list.serializer-DeffIsv5.cjs');
3
3
  const require_list_event_options_serializer = require('./list-event-options.serializer-qthqqVlR.cjs');
4
4
 
@@ -20,4 +20,4 @@ Object.defineProperty(exports, 'Events', {
20
20
  return Events;
21
21
  }
22
22
  });
23
- //# sourceMappingURL=events-Bo4Mrn6L.cjs.map
23
+ //# sourceMappingURL=events-DDmTI2cj.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"events-Bo4Mrn6L.cjs","names":["workos: WorkOS","serializeListEventOptions","deserializeList","deserializeEvent"],"sources":["../src/events/events.ts"],"sourcesContent":["import { WorkOS } from '../workos';\nimport { ListEventOptions } from './interfaces';\nimport { deserializeEvent, deserializeList } from '../common/serializers';\nimport { serializeListEventOptions } from './serializers';\nimport { Event, EventResponse, List, ListResponse } from '../common/interfaces';\n\nexport class Events {\n constructor(private readonly workos: WorkOS) {}\n\n async listEvents(options: ListEventOptions): Promise<List<Event>> {\n const { data } = await this.workos.get<ListResponse<EventResponse>>(\n `/events`,\n {\n query: options ? serializeListEventOptions(options) : undefined,\n },\n );\n\n return deserializeList(data, deserializeEvent);\n }\n}\n"],"mappings":";;;;;AAMA,IAAa,SAAb,MAAoB;CAClB,YAAY,AAAiBA,QAAgB;EAAhB;;CAE7B,MAAM,WAAW,SAAiD;EAChE,MAAM,EAAE,SAAS,MAAM,KAAK,OAAO,IACjC,WACA,EACE,OAAO,UAAUC,gEAA0B,QAAQ,GAAG,QACvD,CACF;AAED,SAAOC,wCAAgB,MAAMC,0CAAiB"}
1
+ {"version":3,"file":"events-DDmTI2cj.cjs","names":["workos: WorkOS","serializeListEventOptions","deserializeList","deserializeEvent"],"sources":["../src/events/events.ts"],"sourcesContent":["import { WorkOS } from '../workos';\nimport { ListEventOptions } from './interfaces';\nimport { deserializeEvent, deserializeList } from '../common/serializers';\nimport { serializeListEventOptions } from './serializers';\nimport { Event, EventResponse, List, ListResponse } from '../common/interfaces';\n\nexport class Events {\n constructor(private readonly workos: WorkOS) {}\n\n async listEvents(options: ListEventOptions): Promise<List<Event>> {\n const { data } = await this.workos.get<ListResponse<EventResponse>>(\n `/events`,\n {\n query: options ? serializeListEventOptions(options) : undefined,\n },\n );\n\n return deserializeList(data, deserializeEvent);\n }\n}\n"],"mappings":";;;;;AAMA,IAAa,SAAb,MAAoB;CAClB,YAAY,AAAiBA,QAAgB;EAAhB;;CAE7B,MAAM,WAAW,SAAiD;EAChE,MAAM,EAAE,SAAS,MAAM,KAAK,OAAO,IACjC,WACA,EACE,OAAO,UAAUC,gEAA0B,QAAQ,GAAG,QACvD,CACF;AAED,SAAOC,wCAAgB,MAAMC,0CAAiB"}
@@ -1,4 +1,4 @@
1
- const require_workos = require('./workos-DndBTCon.cjs');
1
+ const require_workos = require('./workos-CEha64Qs.cjs');
2
2
 
3
3
  //#region src/factory.ts
4
4
  function createWorkOS(options) {
@@ -12,4 +12,4 @@ Object.defineProperty(exports, 'createWorkOS', {
12
12
  return createWorkOS;
13
13
  }
14
14
  });
15
- //# sourceMappingURL=factory-BycQTqX_.cjs.map
15
+ //# sourceMappingURL=factory-CzXPjI1E.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"factory-BycQTqX_.cjs","names":["WorkOS"],"sources":["../src/factory.ts"],"sourcesContent":["import { WorkOS } from './workos';\nimport type { UserManagement } from './user-management/user-management';\nimport type { SSO } from './sso/sso';\nimport type { PKCE } from './pkce/pkce';\nimport type { WorkOSOptions } from './common/interfaces';\n\n/**\n * Method names available without API key - single source of truth.\n * Add new public methods here to expose them on PublicUserManagement.\n */\ntype PublicUserManagementMethods =\n | 'getAuthorizationUrl'\n | 'getAuthorizationUrlWithPKCE'\n | 'authenticateWithCode'\n | 'authenticateWithCodeAndVerifier'\n | 'authenticateWithRefreshToken'\n | 'getLogoutUrl'\n | 'getJwksUrl';\n\n/**\n * SSO method names available without API key.\n */\ntype PublicSSOMethods =\n | 'getAuthorizationUrl'\n | 'getAuthorizationUrlWithPKCE'\n | 'getProfileAndToken';\n\n/**\n * Subset of UserManagement methods available without an API key.\n * Used by public clients (browser, mobile, CLI, desktop apps).\n */\nexport type PublicUserManagement = Pick<\n UserManagement,\n PublicUserManagementMethods\n>;\n\n/**\n * Subset of SSO methods available without an API key.\n */\nexport type PublicSSO = Pick<SSO, PublicSSOMethods>;\n\n/**\n * WorkOS client for public/PKCE-only usage.\n * Returned when initialized with only clientId (no API key).\n *\n * For browser, mobile, CLI, and desktop applications that cannot\n * securely store an API key.\n */\nexport interface PublicWorkOS {\n readonly baseURL: string;\n readonly clientId: string;\n readonly pkce: PKCE;\n readonly userManagement: PublicUserManagement;\n readonly sso: PublicSSO;\n}\n\n/**\n * Options for creating a public client (PKCE-only, no API key).\n */\nexport interface PublicClientOptions extends Omit<WorkOSOptions, 'apiKey'> {\n clientId: string;\n /** Discriminant: ensures TypeScript selects PublicWorkOS overload when apiKey is absent */\n apiKey?: never;\n}\n\n/**\n * Options for creating a confidential client (with API key).\n */\nexport interface ConfidentialClientOptions extends WorkOSOptions {\n apiKey: string;\n}\n\n/**\n * Create a type-safe WorkOS client.\n *\n * Returns a narrowed `PublicWorkOS` type when only `clientId` is provided,\n * ensuring compile-time safety for public client usage. Returns the full\n * `WorkOS` type when an API key is provided.\n *\n * Unlike the `WorkOS` constructor, this factory does NOT read from\n * environment variables. Pass credentials explicitly for predictable types.\n *\n * @example\n * // Public client (browser, mobile, CLI) - returns PublicWorkOS\n * const workos = createWorkOS({ clientId: 'client_123' });\n * await workos.userManagement.getAuthorizationUrlWithPKCE({...}); // OK\n * workos.userManagement.listUsers(); // TypeScript error!\n *\n * @example\n * // Confidential client (server) - returns full WorkOS\n * const workos = createWorkOS({\n * apiKey: process.env.WORKOS_API_KEY!,\n * clientId: 'client_123'\n * });\n * await workos.userManagement.listUsers(); // OK\n */\nexport function createWorkOS(options: PublicClientOptions): PublicWorkOS;\nexport function createWorkOS(options: ConfidentialClientOptions): WorkOS;\nexport function createWorkOS(\n options: PublicClientOptions | ConfidentialClientOptions,\n): PublicWorkOS | WorkOS {\n return new WorkOS(options);\n}\n"],"mappings":";;;AAkGA,SAAgB,aACd,SACuB;AACvB,QAAO,IAAIA,sBAAO,QAAQ"}
1
+ {"version":3,"file":"factory-CzXPjI1E.cjs","names":["WorkOS"],"sources":["../src/factory.ts"],"sourcesContent":["import { WorkOS } from './workos';\nimport type { UserManagement } from './user-management/user-management';\nimport type { SSO } from './sso/sso';\nimport type { PKCE } from './pkce/pkce';\nimport type { WorkOSOptions } from './common/interfaces';\n\n/**\n * Method names available without API key - single source of truth.\n * Add new public methods here to expose them on PublicUserManagement.\n */\ntype PublicUserManagementMethods =\n | 'getAuthorizationUrl'\n | 'getAuthorizationUrlWithPKCE'\n | 'authenticateWithCode'\n | 'authenticateWithCodeAndVerifier'\n | 'authenticateWithRefreshToken'\n | 'getLogoutUrl'\n | 'getJwksUrl';\n\n/**\n * SSO method names available without API key.\n */\ntype PublicSSOMethods =\n | 'getAuthorizationUrl'\n | 'getAuthorizationUrlWithPKCE'\n | 'getProfileAndToken';\n\n/**\n * Subset of UserManagement methods available without an API key.\n * Used by public clients (browser, mobile, CLI, desktop apps).\n */\nexport type PublicUserManagement = Pick<\n UserManagement,\n PublicUserManagementMethods\n>;\n\n/**\n * Subset of SSO methods available without an API key.\n */\nexport type PublicSSO = Pick<SSO, PublicSSOMethods>;\n\n/**\n * WorkOS client for public/PKCE-only usage.\n * Returned when initialized with only clientId (no API key).\n *\n * For browser, mobile, CLI, and desktop applications that cannot\n * securely store an API key.\n */\nexport interface PublicWorkOS {\n readonly baseURL: string;\n readonly clientId: string;\n readonly pkce: PKCE;\n readonly userManagement: PublicUserManagement;\n readonly sso: PublicSSO;\n}\n\n/**\n * Options for creating a public client (PKCE-only, no API key).\n */\nexport interface PublicClientOptions extends Omit<WorkOSOptions, 'apiKey'> {\n clientId: string;\n /** Discriminant: ensures TypeScript selects PublicWorkOS overload when apiKey is absent */\n apiKey?: never;\n}\n\n/**\n * Options for creating a confidential client (with API key).\n */\nexport interface ConfidentialClientOptions extends WorkOSOptions {\n apiKey: string;\n}\n\n/**\n * Create a type-safe WorkOS client.\n *\n * Returns a narrowed `PublicWorkOS` type when only `clientId` is provided,\n * ensuring compile-time safety for public client usage. Returns the full\n * `WorkOS` type when an API key is provided.\n *\n * Unlike the `WorkOS` constructor, this factory does NOT read from\n * environment variables. Pass credentials explicitly for predictable types.\n *\n * @example\n * // Public client (browser, mobile, CLI) - returns PublicWorkOS\n * const workos = createWorkOS({ clientId: 'client_123' });\n * await workos.userManagement.getAuthorizationUrlWithPKCE({...}); // OK\n * workos.userManagement.listUsers(); // TypeScript error!\n *\n * @example\n * // Confidential client (server) - returns full WorkOS\n * const workos = createWorkOS({\n * apiKey: process.env.WORKOS_API_KEY!,\n * clientId: 'client_123'\n * });\n * await workos.userManagement.listUsers(); // OK\n */\nexport function createWorkOS(options: PublicClientOptions): PublicWorkOS;\nexport function createWorkOS(options: ConfidentialClientOptions): WorkOS;\nexport function createWorkOS(\n options: PublicClientOptions | ConfidentialClientOptions,\n): PublicWorkOS | WorkOS {\n return new WorkOS(options);\n}\n"],"mappings":";;;AAkGA,SAAgB,aACd,SACuB;AACvB,QAAO,IAAIA,sBAAO,QAAQ"}
package/lib/factory.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  require('./jose-BhyqkBqW.cjs');
2
2
  require('./session-Beigw6Nc.cjs');
3
- require('./user-management-CTQFnn4h.cjs');
3
+ require('./user-management-DEOOSelF.cjs');
4
4
  require('./subtle-crypto-provider-RQC7QPlf.cjs');
5
- require('./workos-DndBTCon.cjs');
6
- const require_factory = require('./factory-BycQTqX_.cjs');
5
+ require('./workos-CEha64Qs.cjs');
6
+ const require_factory = require('./factory-CzXPjI1E.cjs');
7
7
 
8
8
  exports.createWorkOS = require_factory.createWorkOS;
package/lib/factory.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as ConfidentialClientOptions, c as PublicUserManagement, l as PublicWorkOS, o as PublicClientOptions, s as PublicSSO, u as createWorkOS } from "./api-keys-5t7nLnb5.cjs";
1
+ import { a as ConfidentialClientOptions, c as PublicUserManagement, l as PublicWorkOS, o as PublicClientOptions, s as PublicSSO, u as createWorkOS } from "./api-keys-CSDwj0TW.cjs";
2
2
  export { ConfidentialClientOptions, PublicClientOptions, PublicSSO, PublicUserManagement, PublicWorkOS, createWorkOS };
@@ -1,2 +1,2 @@
1
- import { p as FeatureFlags } from "../api-keys-5t7nLnb5.cjs";
1
+ import { p as FeatureFlags } from "../api-keys-CSDwj0TW.cjs";
2
2
  export { FeatureFlags };
@@ -1,5 +1,5 @@
1
1
  import { n as FeatureFlagResponse, t as FeatureFlag } from "../../feature-flag.interface-DDrAgky3.cjs";
2
2
  import { t as AddFlagTargetOptions } from "../../add-flag-target-options.interface-Bwr2zybt.cjs";
3
- import { t as ListFeatureFlagsOptions } from "../../list-feature-flags-options.interface-BDzOTdye.cjs";
3
+ import { t as ListFeatureFlagsOptions } from "../../list-feature-flags-options.interface-BCSWpNdc.cjs";
4
4
  import { t as RemoveFlagTargetOptions } from "../../remove-flag-target-options.interface-BlZtU4Qf.cjs";
5
5
  export { AddFlagTargetOptions, FeatureFlag, FeatureFlagResponse, ListFeatureFlagsOptions, RemoveFlagTargetOptions };
@@ -1,2 +1,2 @@
1
- import { t as ListFeatureFlagsOptions } from "../../list-feature-flags-options.interface-BDzOTdye.cjs";
1
+ import { t as ListFeatureFlagsOptions } from "../../list-feature-flags-options.interface-BCSWpNdc.cjs";
2
2
  export { ListFeatureFlagsOptions };
@@ -1,4 +1,4 @@
1
- const require_http_client = require('./http-client-DZQxEd4J.cjs');
1
+ const require_http_client = require('./http-client-DTfNcqaR.cjs');
2
2
  const require_parse_error = require('./parse-error-Dr-zK4Ai.cjs');
3
3
 
4
4
  //#region src/common/net/fetch-client.ts
@@ -197,4 +197,4 @@ Object.defineProperty(exports, 'FetchHttpClientResponse', {
197
197
  return FetchHttpClientResponse;
198
198
  }
199
199
  });
200
- //# sourceMappingURL=fetch-client-Br9ipQ8n.cjs.map
200
+ //# sourceMappingURL=fetch-client-BGoo0snw.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-client-Br9ipQ8n.cjs","names":["HttpClient","baseURL: string","options?: FetchHttpClientOptions","responseJson: any","ParseError","HttpClientError","response: HttpClientResponseInterface","requestError: any","HttpClientResponse","headersObj: ResponseHeaders"],"sources":["../src/common/net/fetch-client.ts"],"sourcesContent":["import {\n HttpClientInterface,\n HttpClientResponseInterface,\n RequestHeaders,\n RequestOptions,\n ResponseHeaders,\n} from '../interfaces/http-client.interface';\nimport { HttpClient, HttpClientError, HttpClientResponse } from './http-client';\nimport { ParseError } from '../exceptions/parse-error';\n\ninterface FetchHttpClientOptions extends RequestInit {\n timeout?: number;\n}\n\nconst DEFAULT_FETCH_TIMEOUT = 60_000; // 60 seconds\nexport class FetchHttpClient extends HttpClient implements HttpClientInterface {\n private readonly _fetchFn;\n\n constructor(\n readonly baseURL: string,\n readonly options?: FetchHttpClientOptions,\n fetchFn?: typeof fetch,\n ) {\n super(baseURL, options);\n\n // Default to global fetch if available\n if (!fetchFn) {\n if (!globalThis.fetch) {\n throw new Error(\n 'Fetch function not defined in the global scope and no replacement was provided.',\n );\n }\n fetchFn = globalThis.fetch;\n }\n\n this._fetchFn = fetchFn.bind(globalThis);\n }\n\n /** @override */\n getClientName(): string {\n return 'fetch';\n }\n\n async get(\n path: string,\n options: RequestOptions,\n ): Promise<HttpClientResponseInterface> {\n const resourceURL = HttpClient.getResourceURL(\n this.baseURL,\n path,\n options.params,\n );\n\n if (HttpClient.isPathRetryable(path)) {\n return await this.fetchRequestWithRetry(\n resourceURL,\n 'GET',\n null,\n options.headers,\n );\n } else {\n return await this.fetchRequest(resourceURL, 'GET', null, options.headers);\n }\n }\n\n async post<Entity = any>(\n path: string,\n entity: Entity,\n options: RequestOptions,\n ): Promise<HttpClientResponseInterface> {\n const resourceURL = HttpClient.getResourceURL(\n this.baseURL,\n path,\n options.params,\n );\n\n if (HttpClient.isPathRetryable(path)) {\n return await this.fetchRequestWithRetry(\n resourceURL,\n 'POST',\n HttpClient.getBody(entity),\n {\n ...HttpClient.getContentTypeHeader(entity),\n ...options.headers,\n },\n );\n } else {\n return await this.fetchRequest(\n resourceURL,\n 'POST',\n HttpClient.getBody(entity),\n {\n ...HttpClient.getContentTypeHeader(entity),\n ...options.headers,\n },\n );\n }\n }\n\n async put<Entity = any>(\n path: string,\n entity: Entity,\n options: RequestOptions,\n ): Promise<HttpClientResponseInterface> {\n const resourceURL = HttpClient.getResourceURL(\n this.baseURL,\n path,\n options.params,\n );\n\n if (HttpClient.isPathRetryable(path)) {\n return await this.fetchRequestWithRetry(\n resourceURL,\n 'PUT',\n HttpClient.getBody(entity),\n {\n ...HttpClient.getContentTypeHeader(entity),\n ...options.headers,\n },\n );\n } else {\n return await this.fetchRequest(\n resourceURL,\n 'PUT',\n HttpClient.getBody(entity),\n {\n ...HttpClient.getContentTypeHeader(entity),\n ...options.headers,\n },\n );\n }\n }\n\n async patch<Entity = any>(\n path: string,\n entity: Entity,\n options: RequestOptions,\n ): Promise<HttpClientResponseInterface> {\n const resourceURL = HttpClient.getResourceURL(\n this.baseURL,\n path,\n options.params,\n );\n\n if (HttpClient.isPathRetryable(path)) {\n return await this.fetchRequestWithRetry(\n resourceURL,\n 'PATCH',\n HttpClient.getBody(entity),\n {\n ...HttpClient.getContentTypeHeader(entity),\n ...options.headers,\n },\n );\n } else {\n return await this.fetchRequest(\n resourceURL,\n 'PATCH',\n HttpClient.getBody(entity),\n {\n ...HttpClient.getContentTypeHeader(entity),\n ...options.headers,\n },\n );\n }\n }\n\n async delete(\n path: string,\n options: RequestOptions,\n ): Promise<HttpClientResponseInterface> {\n const resourceURL = HttpClient.getResourceURL(\n this.baseURL,\n path,\n options.params,\n );\n\n if (HttpClient.isPathRetryable(path)) {\n return await this.fetchRequestWithRetry(\n resourceURL,\n 'DELETE',\n null,\n options.headers,\n );\n } else {\n return await this.fetchRequest(\n resourceURL,\n 'DELETE',\n null,\n options.headers,\n );\n }\n }\n\n async deleteWithBody<Entity = any>(\n path: string,\n entity: Entity,\n options: RequestOptions,\n ): Promise<HttpClientResponseInterface> {\n const resourceURL = HttpClient.getResourceURL(\n this.baseURL,\n path,\n options.params,\n );\n\n if (HttpClient.isPathRetryable(path)) {\n return await this.fetchRequestWithRetry(\n resourceURL,\n 'DELETE',\n HttpClient.getBody(entity),\n {\n ...HttpClient.getContentTypeHeader(entity),\n ...options.headers,\n },\n );\n } else {\n return await this.fetchRequest(\n resourceURL,\n 'DELETE',\n HttpClient.getBody(entity),\n {\n ...HttpClient.getContentTypeHeader(entity),\n ...options.headers,\n },\n );\n }\n }\n\n private async fetchRequest(\n url: string,\n method: string,\n body?: any,\n headers?: RequestHeaders,\n ): Promise<HttpClientResponseInterface> {\n // For methods which expect payloads, we should always pass a body value\n // even when it is empty. Without this, some JS runtimes (eg. Deno) will\n // inject a second Content-Length header.\n const methodHasPayload =\n method === 'POST' || method === 'PUT' || method === 'PATCH';\n\n const requestBody = body || (methodHasPayload ? '' : undefined);\n\n const { 'User-Agent': userAgent } = (this.options?.headers ||\n {}) as RequestHeaders;\n\n // Access timeout from the options with default of 60 seconds\n const timeout = this.options?.timeout ?? DEFAULT_FETCH_TIMEOUT; // Default 60 seconds\n const abortController = new AbortController();\n const timeoutId = setTimeout(() => {\n abortController?.abort();\n }, timeout);\n\n try {\n const res = await this._fetchFn(url, {\n method,\n headers: {\n Accept: 'application/json, text/plain, */*',\n 'Content-Type': 'application/json',\n ...this.options?.headers,\n ...headers,\n 'User-Agent': this.addClientToUserAgent(\n (userAgent || 'workos-node').toString(),\n ),\n },\n body: requestBody,\n signal: abortController?.signal,\n });\n\n // Clear timeout if request completed successfully\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n\n if (!res.ok) {\n const requestID = res.headers.get('X-Request-ID') ?? '';\n const rawBody = await res.text();\n\n let responseJson: any;\n\n try {\n responseJson = JSON.parse(rawBody);\n } catch (error) {\n if (error instanceof SyntaxError) {\n throw new ParseError({\n message: error.message,\n rawBody,\n requestID,\n rawStatus: res.status,\n });\n }\n throw error;\n }\n\n throw new HttpClientError({\n message: res.statusText,\n response: {\n status: res.status,\n headers: res.headers,\n data: responseJson,\n },\n });\n }\n return new FetchHttpClientResponse(res);\n } catch (error) {\n // Clear timeout if request failed\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n\n // Handle timeout errors\n if (error instanceof Error && error.name === 'AbortError') {\n throw new HttpClientError({\n message: `Request timeout after ${timeout}ms`,\n response: {\n status: 408,\n headers: {},\n data: { error: 'Request timeout' },\n },\n });\n }\n\n throw error;\n }\n }\n\n private async fetchRequestWithRetry(\n url: string,\n method: string,\n body?: any,\n headers?: RequestHeaders,\n ): Promise<HttpClientResponseInterface> {\n let response: HttpClientResponseInterface;\n let retryAttempts = 1;\n\n const makeRequest = async (): Promise<HttpClientResponseInterface> => {\n let requestError: any = null;\n\n try {\n response = await this.fetchRequest(url, method, body, headers);\n } catch (e) {\n requestError = e;\n }\n\n if (this.shouldRetryRequest(requestError, retryAttempts)) {\n retryAttempts++;\n await this.sleep(retryAttempts);\n return makeRequest();\n }\n\n if (requestError != null) {\n throw requestError;\n }\n\n return response;\n };\n\n return makeRequest();\n }\n\n private shouldRetryRequest(requestError: any, retryAttempt: number): boolean {\n if (retryAttempt > this.MAX_RETRY_ATTEMPTS) {\n return false;\n }\n\n if (requestError != null) {\n if (requestError instanceof TypeError) {\n return true;\n }\n\n if (\n requestError instanceof HttpClientError &&\n this.RETRY_STATUS_CODES.includes(requestError.response.status)\n ) {\n return true;\n }\n }\n\n return false;\n }\n}\n\n// tslint:disable-next-line\nexport class FetchHttpClientResponse\n extends HttpClientResponse\n implements HttpClientResponseInterface\n{\n _res: Response;\n\n constructor(res: Response) {\n super(\n res.status,\n FetchHttpClientResponse._transformHeadersToObject(res.headers),\n );\n this._res = res;\n }\n\n getRawResponse(): Response {\n return this._res;\n }\n\n toJSON(): Promise<any> | null {\n const contentType = this._res.headers.get('content-type');\n const isJsonResponse = contentType?.includes('application/json');\n\n return isJsonResponse ? this._res.json() : null;\n }\n\n static _transformHeadersToObject(headers: Headers): ResponseHeaders {\n // Fetch uses a Headers instance so this must be converted to a barebones\n // JS object to meet the HttpClient interface.\n const headersObj: ResponseHeaders = {};\n for (const entry of Object.entries(headers)) {\n if (!Array.isArray(entry) || entry.length !== 2) {\n throw new Error(\n 'Response objects produced by the fetch function given to FetchHttpClient do not have an iterable headers map. Response#headers should be an iterable object.',\n );\n }\n\n headersObj[entry[0]] = entry[1];\n }\n\n return headersObj;\n }\n}\n"],"mappings":";;;;AAcA,MAAM,wBAAwB;AAC9B,IAAa,kBAAb,cAAqCA,+BAA0C;CAC7E,AAAiB;CAEjB,YACE,AAASC,SACT,AAASC,SACT,SACA;AACA,QAAM,SAAS,QAAQ;EAJd;EACA;AAMT,MAAI,CAAC,SAAS;AACZ,OAAI,CAAC,WAAW,MACd,OAAM,IAAI,MACR,kFACD;AAEH,aAAU,WAAW;;AAGvB,OAAK,WAAW,QAAQ,KAAK,WAAW;;;CAI1C,gBAAwB;AACtB,SAAO;;CAGT,MAAM,IACJ,MACA,SACsC;EACtC,MAAM,cAAcF,+BAAW,eAC7B,KAAK,SACL,MACA,QAAQ,OACT;AAED,MAAIA,+BAAW,gBAAgB,KAAK,CAClC,QAAO,MAAM,KAAK,sBAChB,aACA,OACA,MACA,QAAQ,QACT;MAED,QAAO,MAAM,KAAK,aAAa,aAAa,OAAO,MAAM,QAAQ,QAAQ;;CAI7E,MAAM,KACJ,MACA,QACA,SACsC;EACtC,MAAM,cAAcA,+BAAW,eAC7B,KAAK,SACL,MACA,QAAQ,OACT;AAED,MAAIA,+BAAW,gBAAgB,KAAK,CAClC,QAAO,MAAM,KAAK,sBAChB,aACA,QACAA,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AGd,SAA8B;AAI5B,SAHoB,KAAK,KAAK,QAAQ,IAAI,eAAe,EACrB,SAAS,mBAAmB,GAExC,KAAK,KAAK,MAAM,GAAG;;CAG7C,OAAO,0BAA0B,SAAmC;EAGlE,MAAMC,aAA8B,EAAE;AACtC,OAAK,MAAM,SAAS,OAAO,QAAQ,QAAQ,EAAE;AAC3C,OAAI,CAAC,MAAM,QAAQ,MAAM,IAAI,MAAM,WAAW,EAC5C,OAAM,IAAI,MACR,+JACD;AAGH,cAAW,MAAM,MAAM,MAAM;;AAG/B,SAAO"}
1
+ {"version":3,"file":"fetch-client-BGoo0snw.cjs","names":["HttpClient","baseURL: string","options?: FetchHttpClientOptions","responseJson: any","ParseError","HttpClientError","response: HttpClientResponseInterface","requestError: any","HttpClientResponse","headersObj: ResponseHeaders"],"sources":["../src/common/net/fetch-client.ts"],"sourcesContent":["import {\n HttpClientInterface,\n HttpClientResponseInterface,\n RequestHeaders,\n RequestOptions,\n ResponseHeaders,\n} from '../interfaces/http-client.interface';\nimport { HttpClient, HttpClientError, HttpClientResponse } from './http-client';\nimport { ParseError } from '../exceptions/parse-error';\n\ninterface FetchHttpClientOptions extends RequestInit {\n timeout?: number;\n}\n\nconst DEFAULT_FETCH_TIMEOUT = 60_000; // 60 seconds\nexport class FetchHttpClient extends HttpClient implements HttpClientInterface {\n private readonly _fetchFn;\n\n constructor(\n readonly baseURL: string,\n readonly options?: FetchHttpClientOptions,\n fetchFn?: typeof fetch,\n ) {\n super(baseURL, options);\n\n // Default to global fetch if available\n if (!fetchFn) {\n if (!globalThis.fetch) {\n throw new Error(\n 'Fetch function not defined in the global scope and no replacement was provided.',\n );\n }\n fetchFn = globalThis.fetch;\n }\n\n this._fetchFn = fetchFn.bind(globalThis);\n }\n\n /** @override */\n getClientName(): string {\n return 'fetch';\n }\n\n async get(\n path: string,\n options: RequestOptions,\n ): Promise<HttpClientResponseInterface> {\n const resourceURL = HttpClient.getResourceURL(\n this.baseURL,\n path,\n options.params,\n );\n\n if (HttpClient.isPathRetryable(path)) {\n return await this.fetchRequestWithRetry(\n resourceURL,\n 'GET',\n null,\n options.headers,\n );\n } else {\n return await this.fetchRequest(resourceURL, 'GET', null, options.headers);\n }\n }\n\n async post<Entity = any>(\n path: string,\n entity: Entity,\n options: RequestOptions,\n ): Promise<HttpClientResponseInterface> {\n const resourceURL = HttpClient.getResourceURL(\n this.baseURL,\n path,\n options.params,\n );\n\n if (HttpClient.isPathRetryable(path)) {\n return await this.fetchRequestWithRetry(\n resourceURL,\n 'POST',\n HttpClient.getBody(entity),\n {\n ...HttpClient.getContentTypeHeader(entity),\n ...options.headers,\n },\n );\n } else {\n return await this.fetchRequest(\n resourceURL,\n 'POST',\n HttpClient.getBody(entity),\n {\n ...HttpClient.getContentTypeHeader(entity),\n ...options.headers,\n },\n );\n }\n }\n\n async put<Entity = any>(\n path: string,\n entity: Entity,\n options: RequestOptions,\n ): Promise<HttpClientResponseInterface> {\n const resourceURL = HttpClient.getResourceURL(\n this.baseURL,\n path,\n options.params,\n );\n\n if (HttpClient.isPathRetryable(path)) {\n return await this.fetchRequestWithRetry(\n resourceURL,\n 'PUT',\n HttpClient.getBody(entity),\n {\n ...HttpClient.getContentTypeHeader(entity),\n ...options.headers,\n },\n );\n } else {\n return await this.fetchRequest(\n resourceURL,\n 'PUT',\n HttpClient.getBody(entity),\n {\n ...HttpClient.getContentTypeHeader(entity),\n ...options.headers,\n },\n );\n }\n }\n\n async patch<Entity = any>(\n path: string,\n entity: Entity,\n options: RequestOptions,\n ): Promise<HttpClientResponseInterface> {\n const resourceURL = HttpClient.getResourceURL(\n this.baseURL,\n path,\n options.params,\n );\n\n if (HttpClient.isPathRetryable(path)) {\n return await this.fetchRequestWithRetry(\n resourceURL,\n 'PATCH',\n HttpClient.getBody(entity),\n {\n ...HttpClient.getContentTypeHeader(entity),\n ...options.headers,\n },\n );\n } else {\n return await this.fetchRequest(\n resourceURL,\n 'PATCH',\n HttpClient.getBody(entity),\n {\n ...HttpClient.getContentTypeHeader(entity),\n ...options.headers,\n },\n );\n }\n }\n\n async delete(\n path: string,\n options: RequestOptions,\n ): Promise<HttpClientResponseInterface> {\n const resourceURL = HttpClient.getResourceURL(\n this.baseURL,\n path,\n options.params,\n );\n\n if (HttpClient.isPathRetryable(path)) {\n return await this.fetchRequestWithRetry(\n resourceURL,\n 'DELETE',\n null,\n options.headers,\n );\n } else {\n return await this.fetchRequest(\n resourceURL,\n 'DELETE',\n null,\n options.headers,\n );\n }\n }\n\n async deleteWithBody<Entity = any>(\n path: string,\n entity: Entity,\n options: RequestOptions,\n ): Promise<HttpClientResponseInterface> {\n const resourceURL = HttpClient.getResourceURL(\n this.baseURL,\n path,\n options.params,\n );\n\n if (HttpClient.isPathRetryable(path)) {\n return await this.fetchRequestWithRetry(\n resourceURL,\n 'DELETE',\n HttpClient.getBody(entity),\n {\n ...HttpClient.getContentTypeHeader(entity),\n ...options.headers,\n },\n );\n } else {\n return await this.fetchRequest(\n resourceURL,\n 'DELETE',\n HttpClient.getBody(entity),\n {\n ...HttpClient.getContentTypeHeader(entity),\n ...options.headers,\n },\n );\n }\n }\n\n private async fetchRequest(\n url: string,\n method: string,\n body?: any,\n headers?: RequestHeaders,\n ): Promise<HttpClientResponseInterface> {\n // For methods which expect payloads, we should always pass a body value\n // even when it is empty. Without this, some JS runtimes (eg. Deno) will\n // inject a second Content-Length header.\n const methodHasPayload =\n method === 'POST' || method === 'PUT' || method === 'PATCH';\n\n const requestBody = body || (methodHasPayload ? '' : undefined);\n\n const { 'User-Agent': userAgent } = (this.options?.headers ||\n {}) as RequestHeaders;\n\n // Access timeout from the options with default of 60 seconds\n const timeout = this.options?.timeout ?? DEFAULT_FETCH_TIMEOUT; // Default 60 seconds\n const abortController = new AbortController();\n const timeoutId = setTimeout(() => {\n abortController?.abort();\n }, timeout);\n\n try {\n const res = await this._fetchFn(url, {\n method,\n headers: {\n Accept: 'application/json, text/plain, */*',\n 'Content-Type': 'application/json',\n ...this.options?.headers,\n ...headers,\n 'User-Agent': this.addClientToUserAgent(\n (userAgent || 'workos-node').toString(),\n ),\n },\n body: requestBody,\n signal: abortController?.signal,\n });\n\n // Clear timeout if request completed successfully\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n\n if (!res.ok) {\n const requestID = res.headers.get('X-Request-ID') ?? '';\n const rawBody = await res.text();\n\n let responseJson: any;\n\n try {\n responseJson = JSON.parse(rawBody);\n } catch (error) {\n if (error instanceof SyntaxError) {\n throw new ParseError({\n message: error.message,\n rawBody,\n requestID,\n rawStatus: res.status,\n });\n }\n throw error;\n }\n\n throw new HttpClientError({\n message: res.statusText,\n response: {\n status: res.status,\n headers: res.headers,\n data: responseJson,\n },\n });\n }\n return new FetchHttpClientResponse(res);\n } catch (error) {\n // Clear timeout if request failed\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n\n // Handle timeout errors\n if (error instanceof Error && error.name === 'AbortError') {\n throw new HttpClientError({\n message: `Request timeout after ${timeout}ms`,\n response: {\n status: 408,\n headers: {},\n data: { error: 'Request timeout' },\n },\n });\n }\n\n throw error;\n }\n }\n\n private async fetchRequestWithRetry(\n url: string,\n method: string,\n body?: any,\n headers?: RequestHeaders,\n ): Promise<HttpClientResponseInterface> {\n let response: HttpClientResponseInterface;\n let retryAttempts = 1;\n\n const makeRequest = async (): Promise<HttpClientResponseInterface> => {\n let requestError: any = null;\n\n try {\n response = await this.fetchRequest(url, method, body, headers);\n } catch (e) {\n requestError = e;\n }\n\n if (this.shouldRetryRequest(requestError, retryAttempts)) {\n retryAttempts++;\n await this.sleep(retryAttempts);\n return makeRequest();\n }\n\n if (requestError != null) {\n throw requestError;\n }\n\n return response;\n };\n\n return makeRequest();\n }\n\n private shouldRetryRequest(requestError: any, retryAttempt: number): boolean {\n if (retryAttempt > this.MAX_RETRY_ATTEMPTS) {\n return false;\n }\n\n if (requestError != null) {\n if (requestError instanceof TypeError) {\n return true;\n }\n\n if (\n requestError instanceof HttpClientError &&\n this.RETRY_STATUS_CODES.includes(requestError.response.status)\n ) {\n return true;\n }\n }\n\n return false;\n }\n}\n\n// tslint:disable-next-line\nexport class FetchHttpClientResponse\n extends HttpClientResponse\n implements HttpClientResponseInterface\n{\n _res: Response;\n\n constructor(res: Response) {\n super(\n res.status,\n FetchHttpClientResponse._transformHeadersToObject(res.headers),\n );\n this._res = res;\n }\n\n getRawResponse(): Response {\n return this._res;\n }\n\n toJSON(): Promise<any> | null {\n const contentType = this._res.headers.get('content-type');\n const isJsonResponse = contentType?.includes('application/json');\n\n return isJsonResponse ? this._res.json() : null;\n }\n\n static _transformHeadersToObject(headers: Headers): ResponseHeaders {\n // Fetch uses a Headers instance so this must be converted to a barebones\n // JS object to meet the HttpClient interface.\n const headersObj: ResponseHeaders = {};\n for (const entry of Object.entries(headers)) {\n if (!Array.isArray(entry) || entry.length !== 2) {\n throw new Error(\n 'Response objects produced by the fetch function given to FetchHttpClient do not have an iterable headers map. Response#headers should be an iterable object.',\n );\n }\n\n headersObj[entry[0]] = entry[1];\n }\n\n return headersObj;\n }\n}\n"],"mappings":";;;;AAcA,MAAM,wBAAwB;AAC9B,IAAa,kBAAb,cAAqCA,+BAA0C;CAC7E,AAAiB;CAEjB,YACE,AAASC,SACT,AAASC,SACT,SACA;AACA,QAAM,SAAS,QAAQ;EAJd;EACA;AAMT,MAAI,CAAC,SAAS;AACZ,OAAI,CAAC,WAAW,MACd,OAAM,IAAI,MACR,kFACD;AAEH,aAAU,WAAW;;AAGvB,OAAK,WAAW,QAAQ,KAAK,WAAW;;;CAI1C,gBAAwB;AACtB,SAAO;;CAGT,MAAM,IACJ,MACA,SACsC;EACtC,MAAM,cAAcF,+BAAW,eAC7B,KAAK,SACL,MACA,QAAQ,OACT;AAED,MAAIA,+BAAW,gBAAgB,KAAK,CAClC,QAAO,MAAM,KAAK,sBAChB,aACA,OACA,MACA,QAAQ,QACT;MAED,QAAO,MAAM,KAAK,aAAa,aAAa,OAAO,MAAM,QAAQ,QAAQ;;CAI7E,MAAM,KACJ,MACA,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