@activepieces/shared 0.41.0 → 0.42.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 (350) hide show
  1. package/package.json +4 -4
  2. package/src/index.js +0 -4
  3. package/src/index.js.map +1 -1
  4. package/src/lib/automation/agents/index.d.ts +105 -118
  5. package/src/lib/automation/agents/index.js +23 -22
  6. package/src/lib/automation/agents/index.js.map +1 -1
  7. package/src/lib/automation/agents/mcp-tool-name-util.d.ts +15 -0
  8. package/src/lib/automation/agents/mcp-tool-name-util.js +40 -0
  9. package/src/lib/automation/agents/mcp-tool-name-util.js.map +1 -0
  10. package/src/lib/automation/agents/tools.d.ts +141 -144
  11. package/src/lib/automation/agents/tools.js +30 -43
  12. package/src/lib/automation/agents/tools.js.map +1 -1
  13. package/src/lib/automation/app-connection/app-connection.d.ts +40 -42
  14. package/src/lib/automation/app-connection/app-connection.js +6 -8
  15. package/src/lib/automation/app-connection/app-connection.js.map +1 -1
  16. package/src/lib/automation/app-connection/dto/read-app-connection-request.d.ts +28 -28
  17. package/src/lib/automation/app-connection/dto/read-app-connection-request.js +15 -14
  18. package/src/lib/automation/app-connection/dto/read-app-connection-request.js.map +1 -1
  19. package/src/lib/automation/app-connection/dto/upsert-app-connection-request.d.ts +365 -365
  20. package/src/lib/automation/app-connection/dto/upsert-app-connection-request.js +61 -102
  21. package/src/lib/automation/app-connection/dto/upsert-app-connection-request.js.map +1 -1
  22. package/src/lib/automation/engine/engine-operation.d.ts +21 -21
  23. package/src/lib/automation/engine/engine-operation.js +14 -14
  24. package/src/lib/automation/engine/engine-operation.js.map +1 -1
  25. package/src/lib/automation/engine/execution-errors.d.ts +3 -0
  26. package/src/lib/automation/engine/execution-errors.js +7 -1
  27. package/src/lib/automation/engine/execution-errors.js.map +1 -1
  28. package/src/lib/automation/engine/requests.d.ts +88 -88
  29. package/src/lib/automation/engine/requests.js +35 -35
  30. package/src/lib/automation/engine/requests.js.map +1 -1
  31. package/src/lib/automation/flow-run/dto/list-flow-runs-request.d.ts +15 -15
  32. package/src/lib/automation/flow-run/dto/list-flow-runs-request.js +13 -12
  33. package/src/lib/automation/flow-run/dto/list-flow-runs-request.js.map +1 -1
  34. package/src/lib/automation/flow-run/execution/execution-output.d.ts +5 -4
  35. package/src/lib/automation/flow-run/execution/execution-output.js +4 -4
  36. package/src/lib/automation/flow-run/execution/execution-output.js.map +1 -1
  37. package/src/lib/automation/flow-run/execution/flow-execution.d.ts +55 -54
  38. package/src/lib/automation/flow-run/execution/flow-execution.js +24 -22
  39. package/src/lib/automation/flow-run/execution/flow-execution.js.map +1 -1
  40. package/src/lib/automation/flow-run/flow-run.d.ts +54 -56
  41. package/src/lib/automation/flow-run/flow-run.js +12 -12
  42. package/src/lib/automation/flow-run/flow-run.js.map +1 -1
  43. package/src/lib/automation/flow-run/test-flow-run-request.d.ts +43 -43
  44. package/src/lib/automation/flow-run/test-flow-run-request.js +31 -31
  45. package/src/lib/automation/flow-run/test-flow-run-request.js.map +1 -1
  46. package/src/lib/automation/flows/actions/action.d.ts +483 -571
  47. package/src/lib/automation/flows/actions/action.js +113 -118
  48. package/src/lib/automation/flows/actions/action.js.map +1 -1
  49. package/src/lib/automation/flows/dto/count-flows-request.d.ts +6 -6
  50. package/src/lib/automation/flows/dto/count-flows-request.js +4 -4
  51. package/src/lib/automation/flows/dto/count-flows-request.js.map +1 -1
  52. package/src/lib/automation/flows/dto/create-flow-request.d.ts +10 -11
  53. package/src/lib/automation/flows/dto/create-flow-request.js +8 -8
  54. package/src/lib/automation/flows/dto/create-flow-request.js.map +1 -1
  55. package/src/lib/automation/flows/dto/flow-mcp.requests.d.ts +7 -7
  56. package/src/lib/automation/flows/dto/flow-mcp.requests.js +5 -5
  57. package/src/lib/automation/flows/dto/flow-mcp.requests.js.map +1 -1
  58. package/src/lib/automation/flows/dto/list-flows-request.d.ts +23 -23
  59. package/src/lib/automation/flows/dto/list-flows-request.js +18 -17
  60. package/src/lib/automation/flows/dto/list-flows-request.js.map +1 -1
  61. package/src/lib/automation/flows/flow-version.d.ts +89 -91
  62. package/src/lib/automation/flows/flow-version.js +4 -4
  63. package/src/lib/automation/flows/flow-version.js.map +1 -1
  64. package/src/lib/automation/flows/flow.d.ts +135 -143
  65. package/src/lib/automation/flows/flow.js +9 -15
  66. package/src/lib/automation/flows/flow.js.map +1 -1
  67. package/src/lib/automation/flows/folders/folder-requests.d.ts +20 -20
  68. package/src/lib/automation/flows/folders/folder-requests.js +12 -12
  69. package/src/lib/automation/flows/folders/folder-requests.js.map +1 -1
  70. package/src/lib/automation/flows/folders/folder.d.ts +10 -10
  71. package/src/lib/automation/flows/folders/folder.js +2 -2
  72. package/src/lib/automation/flows/folders/folder.js.map +1 -1
  73. package/src/lib/automation/flows/form.d.ts +49 -49
  74. package/src/lib/automation/flows/form.js +22 -22
  75. package/src/lib/automation/flows/form.js.map +1 -1
  76. package/src/lib/automation/flows/note.d.ts +18 -18
  77. package/src/lib/automation/flows/note.js +14 -14
  78. package/src/lib/automation/flows/note.js.map +1 -1
  79. package/src/lib/automation/flows/operations/add-action.js +2 -3
  80. package/src/lib/automation/flows/operations/add-action.js.map +1 -1
  81. package/src/lib/automation/flows/operations/index.d.ts +1117 -1133
  82. package/src/lib/automation/flows/operations/index.js +132 -178
  83. package/src/lib/automation/flows/operations/index.js.map +1 -1
  84. package/src/lib/automation/flows/operations/paste-operations.d.ts +205 -217
  85. package/src/lib/automation/flows/operations/update-action.js +2 -3
  86. package/src/lib/automation/flows/operations/update-action.js.map +1 -1
  87. package/src/lib/automation/flows/operations/update-trigger.js +2 -3
  88. package/src/lib/automation/flows/operations/update-trigger.js.map +1 -1
  89. package/src/lib/automation/flows/properties/property.d.ts +6 -6
  90. package/src/lib/automation/flows/properties/property.js +4 -4
  91. package/src/lib/automation/flows/properties/property.js.map +1 -1
  92. package/src/lib/automation/flows/sample-data/index.d.ts +46 -46
  93. package/src/lib/automation/flows/sample-data/index.js +31 -33
  94. package/src/lib/automation/flows/sample-data/index.js.map +1 -1
  95. package/src/lib/automation/flows/step-file/step-file.d.ts +16 -16
  96. package/src/lib/automation/flows/step-file/step-file.js +10 -10
  97. package/src/lib/automation/flows/step-file/step-file.js.map +1 -1
  98. package/src/lib/automation/flows/test-trigger.d.ts +13 -13
  99. package/src/lib/automation/flows/test-trigger.js +4 -4
  100. package/src/lib/automation/flows/test-trigger.js.map +1 -1
  101. package/src/lib/automation/flows/triggers/trigger-events/trigger-event.d.ts +18 -18
  102. package/src/lib/automation/flows/triggers/trigger-events/trigger-event.js +10 -13
  103. package/src/lib/automation/flows/triggers/trigger-events/trigger-event.js.map +1 -1
  104. package/src/lib/automation/flows/triggers/trigger-events/trigger-events-dto.d.ts +14 -14
  105. package/src/lib/automation/flows/triggers/trigger-events/trigger-events-dto.js +8 -8
  106. package/src/lib/automation/flows/triggers/trigger-events/trigger-events-dto.js.map +1 -1
  107. package/src/lib/automation/flows/triggers/trigger-run.d.ts +11 -11
  108. package/src/lib/automation/flows/triggers/trigger-run.js +7 -7
  109. package/src/lib/automation/flows/triggers/trigger-run.js.map +1 -1
  110. package/src/lib/automation/flows/triggers/trigger.d.ts +82 -82
  111. package/src/lib/automation/flows/triggers/trigger.js +15 -15
  112. package/src/lib/automation/flows/triggers/trigger.js.map +1 -1
  113. package/src/lib/automation/flows/util/flow-structure-util.d.ts +5 -5
  114. package/src/lib/automation/forms/index.d.ts +42 -42
  115. package/src/lib/automation/forms/index.js +21 -21
  116. package/src/lib/automation/forms/index.js.map +1 -1
  117. package/src/lib/automation/mcp/mcp.d.ts +105 -109
  118. package/src/lib/automation/mcp/mcp.js +7 -7
  119. package/src/lib/automation/mcp/mcp.js.map +1 -1
  120. package/src/lib/automation/mcp/pieces/mcp-piece.d.ts +24 -24
  121. package/src/lib/automation/mcp/pieces/mcp-piece.js +14 -14
  122. package/src/lib/automation/mcp/pieces/mcp-piece.js.map +1 -1
  123. package/src/lib/automation/pieces/dto/piece-requests.d.ts +67 -67
  124. package/src/lib/automation/pieces/dto/piece-requests.js +47 -58
  125. package/src/lib/automation/pieces/dto/piece-requests.js.map +1 -1
  126. package/src/lib/automation/pieces/piece.d.ts +56 -56
  127. package/src/lib/automation/pieces/piece.js +21 -21
  128. package/src/lib/automation/pieces/piece.js.map +1 -1
  129. package/src/lib/automation/project-release/project-release.d.ts +27 -27
  130. package/src/lib/automation/project-release/project-release.js +2 -2
  131. package/src/lib/automation/project-release/project-release.js.map +1 -1
  132. package/src/lib/automation/project-release/project-release.request.d.ts +65 -65
  133. package/src/lib/automation/project-release/project-release.request.js +25 -25
  134. package/src/lib/automation/project-release/project-release.request.js.map +1 -1
  135. package/src/lib/automation/project-release/project-state.d.ts +1246 -1286
  136. package/src/lib/automation/project-release/project-state.js +73 -73
  137. package/src/lib/automation/project-release/project-state.js.map +1 -1
  138. package/src/lib/automation/tables/cell.d.ts +11 -11
  139. package/src/lib/automation/tables/cell.js +2 -2
  140. package/src/lib/automation/tables/cell.js.map +1 -1
  141. package/src/lib/automation/tables/dto/fields.dto.d.ts +26 -26
  142. package/src/lib/automation/tables/dto/fields.dto.js +18 -18
  143. package/src/lib/automation/tables/dto/fields.dto.js.map +1 -1
  144. package/src/lib/automation/tables/dto/records.dto.d.ts +40 -40
  145. package/src/lib/automation/tables/dto/records.dto.js +26 -25
  146. package/src/lib/automation/tables/dto/records.dto.js.map +1 -1
  147. package/src/lib/automation/tables/dto/tables.dto.d.ts +55 -46
  148. package/src/lib/automation/tables/dto/tables.dto.js +35 -25
  149. package/src/lib/automation/tables/dto/tables.dto.js.map +1 -1
  150. package/src/lib/automation/tables/field.d.ts +26 -26
  151. package/src/lib/automation/tables/field.js +5 -5
  152. package/src/lib/automation/tables/field.js.map +1 -1
  153. package/src/lib/automation/tables/record.d.ts +23 -23
  154. package/src/lib/automation/tables/record.js +7 -13
  155. package/src/lib/automation/tables/record.js.map +1 -1
  156. package/src/lib/automation/tables/table-webhook.d.ts +11 -11
  157. package/src/lib/automation/tables/table-webhook.js +2 -2
  158. package/src/lib/automation/tables/table-webhook.js.map +1 -1
  159. package/src/lib/automation/tables/table.d.ts +49 -47
  160. package/src/lib/automation/tables/table.js +5 -8
  161. package/src/lib/automation/tables/table.js.map +1 -1
  162. package/src/lib/automation/trigger/index.d.ts +32 -32
  163. package/src/lib/automation/trigger/index.js +9 -9
  164. package/src/lib/automation/trigger/index.js.map +1 -1
  165. package/src/lib/automation/webhook/dto.d.ts +5 -5
  166. package/src/lib/automation/webhook/dto.js +2 -2
  167. package/src/lib/automation/webhook/dto.js.map +1 -1
  168. package/src/lib/automation/websocket/index.d.ts +6 -6
  169. package/src/lib/automation/websocket/index.js +4 -4
  170. package/src/lib/automation/websocket/index.js.map +1 -1
  171. package/src/lib/automation/workers/index.d.ts +365 -367
  172. package/src/lib/automation/workers/index.js +75 -75
  173. package/src/lib/automation/workers/index.js.map +1 -1
  174. package/src/lib/automation/workers/job-data.d.ts +773 -781
  175. package/src/lib/automation/workers/job-data.js +106 -106
  176. package/src/lib/automation/workers/job-data.js.map +1 -1
  177. package/src/lib/automation/workers/queue-metrics.d.ts +25 -25
  178. package/src/lib/automation/workers/queue-metrics.js +11 -11
  179. package/src/lib/automation/workers/queue-metrics.js.map +1 -1
  180. package/src/lib/core/authentication/dto/authentication-response.d.ts +25 -25
  181. package/src/lib/core/authentication/dto/authentication-response.js +6 -10
  182. package/src/lib/core/authentication/dto/authentication-response.js.map +1 -1
  183. package/src/lib/core/authentication/dto/sign-in-request.d.ts +6 -6
  184. package/src/lib/core/authentication/dto/sign-in-request.js +2 -2
  185. package/src/lib/core/authentication/dto/sign-in-request.js.map +1 -1
  186. package/src/lib/core/authentication/dto/sign-up-request.d.ts +14 -14
  187. package/src/lib/core/authentication/dto/sign-up-request.js +7 -11
  188. package/src/lib/core/authentication/dto/sign-up-request.js.map +1 -1
  189. package/src/lib/core/authentication/user-identity.d.ts +17 -17
  190. package/src/lib/core/authentication/user-identity.js +2 -2
  191. package/src/lib/core/authentication/user-identity.js.map +1 -1
  192. package/src/lib/core/common/activepieces-error.d.ts +6 -1
  193. package/src/lib/core/common/activepieces-error.js +1 -0
  194. package/src/lib/core/common/activepieces-error.js.map +1 -1
  195. package/src/lib/core/common/base-model.d.ts +9 -22
  196. package/src/lib/core/common/base-model.js +12 -21
  197. package/src/lib/core/common/base-model.js.map +1 -1
  198. package/src/lib/core/common/color.d.ts +3 -3
  199. package/src/lib/core/common/color.js +2 -4
  200. package/src/lib/core/common/color.js.map +1 -1
  201. package/src/lib/core/common/id-generator.d.ts +3 -3
  202. package/src/lib/core/common/id-generator.js +2 -4
  203. package/src/lib/core/common/id-generator.js.map +1 -1
  204. package/src/lib/core/common/metadata.d.ts +3 -3
  205. package/src/lib/core/common/metadata.js +2 -2
  206. package/src/lib/core/common/metadata.js.map +1 -1
  207. package/src/lib/core/common/multipart-file.d.ts +8 -8
  208. package/src/lib/core/common/multipart-file.js +6 -6
  209. package/src/lib/core/common/multipart-file.js.map +1 -1
  210. package/src/lib/core/common/seek-page.d.ts +2 -2
  211. package/src/lib/core/common/seek-page.js +5 -5
  212. package/src/lib/core/common/seek-page.js.map +1 -1
  213. package/src/lib/core/federated-authn/index.d.ts +50 -50
  214. package/src/lib/core/federated-authn/index.js +20 -20
  215. package/src/lib/core/federated-authn/index.js.map +1 -1
  216. package/src/lib/core/file/index.d.ts +17 -17
  217. package/src/lib/core/file/index.js +2 -2
  218. package/src/lib/core/file/index.js.map +1 -1
  219. package/src/lib/core/flag/flag.requests.d.ts +5 -5
  220. package/src/lib/core/flag/flag.requests.js +3 -3
  221. package/src/lib/core/flag/flag.requests.js.map +1 -1
  222. package/src/lib/core/health/index.d.ts +8 -8
  223. package/src/lib/core/health/index.js +6 -6
  224. package/src/lib/core/health/index.js.map +1 -1
  225. package/src/lib/core/license-keys/index.d.ts +58 -58
  226. package/src/lib/core/license-keys/index.js +35 -35
  227. package/src/lib/core/license-keys/index.js.map +1 -1
  228. package/src/lib/core/store-entry/dto/store-entry-request.d.ts +14 -14
  229. package/src/lib/core/store-entry/dto/store-entry-request.js +8 -10
  230. package/src/lib/core/store-entry/dto/store-entry-request.js.map +1 -1
  231. package/src/lib/core/tag/index.d.ts +32 -32
  232. package/src/lib/core/tag/index.js +11 -11
  233. package/src/lib/core/tag/index.js.map +1 -1
  234. package/src/lib/core/user/badges/index.d.ts +9 -9
  235. package/src/lib/core/user/badges/index.js +2 -2
  236. package/src/lib/core/user/badges/index.js.map +1 -1
  237. package/src/lib/core/user/index.d.ts +13 -13
  238. package/src/lib/core/user/index.js +9 -9
  239. package/src/lib/core/user/index.js.map +1 -1
  240. package/src/lib/core/user/user.d.ts +62 -62
  241. package/src/lib/core/user/user.js +27 -32
  242. package/src/lib/core/user/user.js.map +1 -1
  243. package/src/lib/ee/alerts/alerts-dto.d.ts +10 -10
  244. package/src/lib/ee/alerts/alerts-dto.js +2 -2
  245. package/src/lib/ee/alerts/alerts-dto.js.map +1 -1
  246. package/src/lib/ee/alerts/alerts-requests.d.ts +13 -13
  247. package/src/lib/ee/alerts/alerts-requests.js +7 -7
  248. package/src/lib/ee/alerts/alerts-requests.js.map +1 -1
  249. package/src/lib/ee/api-key/index.d.ts +37 -37
  250. package/src/lib/ee/api-key/index.js +8 -11
  251. package/src/lib/ee/api-key/index.js.map +1 -1
  252. package/src/lib/ee/audit-events/index.d.ts +1499 -1487
  253. package/src/lib/ee/audit-events/index.js +140 -113
  254. package/src/lib/ee/audit-events/index.js.map +1 -1
  255. package/src/lib/ee/authn/enterprise-local-authn/requests.d.ts +21 -21
  256. package/src/lib/ee/authn/enterprise-local-authn/requests.js +9 -12
  257. package/src/lib/ee/authn/enterprise-local-authn/requests.js.map +1 -1
  258. package/src/lib/ee/billing/index.d.ts +23 -23
  259. package/src/lib/ee/billing/index.js +15 -15
  260. package/src/lib/ee/billing/index.js.map +1 -1
  261. package/src/lib/ee/custom-domains/index.d.ts +19 -19
  262. package/src/lib/ee/custom-domains/index.js +7 -9
  263. package/src/lib/ee/custom-domains/index.js.map +1 -1
  264. package/src/lib/ee/event-destinations/dto.d.ts +20 -20
  265. package/src/lib/ee/event-destinations/dto.js +9 -9
  266. package/src/lib/ee/event-destinations/dto.js.map +1 -1
  267. package/src/lib/ee/event-destinations/index.d.ts +29 -29
  268. package/src/lib/ee/event-destinations/index.js +5 -5
  269. package/src/lib/ee/event-destinations/index.js.map +1 -1
  270. package/src/lib/ee/git-repo/index.d.ts +63 -63
  271. package/src/lib/ee/git-repo/index.js +22 -38
  272. package/src/lib/ee/git-repo/index.js.map +1 -1
  273. package/src/lib/ee/managed-authn/managed-authn-requests.d.ts +5 -5
  274. package/src/lib/ee/managed-authn/managed-authn-requests.js +4 -4
  275. package/src/lib/ee/managed-authn/managed-authn-requests.js.map +1 -1
  276. package/src/lib/ee/oauth-apps/oauth-app.d.ts +21 -21
  277. package/src/lib/ee/oauth-apps/oauth-app.js +9 -9
  278. package/src/lib/ee/oauth-apps/oauth-app.js.map +1 -1
  279. package/src/lib/ee/otp/otp-model.d.ts +11 -11
  280. package/src/lib/ee/otp/otp-model.js +2 -2
  281. package/src/lib/ee/otp/otp-model.js.map +1 -1
  282. package/src/lib/ee/otp/otp-requests.d.ts +6 -6
  283. package/src/lib/ee/otp/otp-requests.js +4 -4
  284. package/src/lib/ee/otp/otp-requests.js.map +1 -1
  285. package/src/lib/ee/product-embed/app-credentials/app-credentials-requests.d.ts +50 -50
  286. package/src/lib/ee/product-embed/app-credentials/app-credentials-requests.js +24 -24
  287. package/src/lib/ee/product-embed/app-credentials/app-credentials-requests.js.map +1 -1
  288. package/src/lib/ee/product-embed/connection-keys/connection-requests.d.ts +46 -46
  289. package/src/lib/ee/product-embed/connection-keys/connection-requests.js +24 -24
  290. package/src/lib/ee/product-embed/connection-keys/connection-requests.js.map +1 -1
  291. package/src/lib/ee/project-members/project-member-request.d.ts +24 -24
  292. package/src/lib/ee/project-members/project-member-request.js +14 -14
  293. package/src/lib/ee/project-members/project-member-request.js.map +1 -1
  294. package/src/lib/ee/project-members/project-member.d.ts +49 -49
  295. package/src/lib/ee/project-members/project-member.js +6 -8
  296. package/src/lib/ee/project-members/project-member.js.map +1 -1
  297. package/src/lib/ee/scim/index.d.ts +167 -172
  298. package/src/lib/ee/scim/index.js +79 -79
  299. package/src/lib/ee/scim/index.js.map +1 -1
  300. package/src/lib/ee/secret-managers/dto.d.ts +59 -59
  301. package/src/lib/ee/secret-managers/dto.js +28 -29
  302. package/src/lib/ee/secret-managers/dto.js.map +1 -1
  303. package/src/lib/ee/secret-managers/index.d.ts +160 -208
  304. package/src/lib/ee/secret-managers/index.js +27 -27
  305. package/src/lib/ee/secret-managers/index.js.map +1 -1
  306. package/src/lib/ee/signing-key/signing-key-model.d.ts +11 -11
  307. package/src/lib/ee/signing-key/signing-key-model.js +3 -3
  308. package/src/lib/ee/signing-key/signing-key-model.js.map +1 -1
  309. package/src/lib/ee/signing-key/signing-key.request.d.ts +5 -5
  310. package/src/lib/ee/signing-key/signing-key.request.js +3 -3
  311. package/src/lib/ee/signing-key/signing-key.request.js.map +1 -1
  312. package/src/lib/management/ai-providers/index.d.ts +412 -419
  313. package/src/lib/management/ai-providers/index.js +74 -84
  314. package/src/lib/management/ai-providers/index.js.map +1 -1
  315. package/src/lib/management/analytics/index.d.ts +91 -91
  316. package/src/lib/management/analytics/index.js +29 -29
  317. package/src/lib/management/analytics/index.js.map +1 -1
  318. package/src/lib/management/invitations/index.d.ts +71 -71
  319. package/src/lib/management/invitations/index.js +23 -23
  320. package/src/lib/management/invitations/index.js.map +1 -1
  321. package/src/lib/management/platform/platform.model.d.ts +264 -270
  322. package/src/lib/management/platform/platform.model.js +39 -41
  323. package/src/lib/management/platform/platform.model.js.map +1 -1
  324. package/src/lib/management/platform/platform.request.d.ts +66 -66
  325. package/src/lib/management/platform/platform.request.js +28 -30
  326. package/src/lib/management/platform/platform.request.js.map +1 -1
  327. package/src/lib/management/project/project-requests.d.ts +32 -34
  328. package/src/lib/management/project/project-requests.js +23 -27
  329. package/src/lib/management/project/project-requests.js.map +1 -1
  330. package/src/lib/management/project/project.d.ts +118 -124
  331. package/src/lib/management/project/project.js +26 -31
  332. package/src/lib/management/project/project.js.map +1 -1
  333. package/src/lib/management/project-role/project-role.d.ts +12 -12
  334. package/src/lib/management/project-role/project-role.js +2 -2
  335. package/src/lib/management/project-role/project-role.js.map +1 -1
  336. package/src/lib/management/project-role/project-role.request.d.ts +17 -17
  337. package/src/lib/management/project-role/project-role.request.js +11 -15
  338. package/src/lib/management/project-role/project-role.request.js.map +1 -1
  339. package/src/lib/management/template/flow-template/flow-template.request.d.ts +5 -5
  340. package/src/lib/management/template/flow-template/flow-template.request.js +3 -3
  341. package/src/lib/management/template/flow-template/flow-template.request.js.map +1 -1
  342. package/src/lib/management/template/template-telemetry.d.ts +21 -21
  343. package/src/lib/management/template/template-telemetry.js +20 -21
  344. package/src/lib/management/template/template-telemetry.js.map +1 -1
  345. package/src/lib/management/template/template.d.ts +282 -286
  346. package/src/lib/management/template/template.js +44 -20
  347. package/src/lib/management/template/template.js.map +1 -1
  348. package/src/lib/management/template/template.requests.d.ts +219 -225
  349. package/src/lib/management/template/template.requests.js +26 -26
  350. package/src/lib/management/template/template.requests.js.map +1 -1
@@ -1,16 +1,16 @@
1
- import { Static } from '@sinclair/typebox';
1
+ import { z } from 'zod';
2
2
  import { PlatformRole, UserStatus } from './user';
3
3
  export * from './user';
4
4
  export * from './badges';
5
- export declare const UpdateUserRequestBody: import("@sinclair/typebox").TObject<{
6
- status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<typeof UserStatus>>;
7
- platformRole: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<typeof PlatformRole>>;
8
- externalId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
9
- }>;
10
- export type UpdateUserRequestBody = Static<typeof UpdateUserRequestBody>;
11
- export declare const ListUsersRequestBody: import("@sinclair/typebox").TObject<{
12
- cursor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
13
- limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
14
- externalId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
15
- }>;
16
- export type ListUsersRequestBody = Static<typeof ListUsersRequestBody>;
5
+ export declare const UpdateUserRequestBody: z.ZodObject<{
6
+ status: z.ZodOptional<z.ZodEnum<typeof UserStatus>>;
7
+ platformRole: z.ZodOptional<z.ZodEnum<typeof PlatformRole>>;
8
+ externalId: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$strip>;
10
+ export type UpdateUserRequestBody = z.infer<typeof UpdateUserRequestBody>;
11
+ export declare const ListUsersRequestBody: z.ZodObject<{
12
+ cursor: z.ZodOptional<z.ZodString>;
13
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
14
+ externalId: z.ZodOptional<z.ZodString>;
15
+ }, z.core.$strip>;
16
+ export type ListUsersRequestBody = z.infer<typeof ListUsersRequestBody>;
@@ -2,18 +2,18 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ListUsersRequestBody = exports.UpdateUserRequestBody = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const typebox_1 = require("@sinclair/typebox");
5
+ const zod_1 = require("zod");
6
6
  const user_1 = require("./user");
7
7
  tslib_1.__exportStar(require("./user"), exports);
8
8
  tslib_1.__exportStar(require("./badges"), exports);
9
- exports.UpdateUserRequestBody = typebox_1.Type.Object({
10
- status: typebox_1.Type.Optional(typebox_1.Type.Enum(user_1.UserStatus)),
11
- platformRole: typebox_1.Type.Optional(typebox_1.Type.Enum(user_1.PlatformRole)),
12
- externalId: typebox_1.Type.Optional(typebox_1.Type.String()),
9
+ exports.UpdateUserRequestBody = zod_1.z.object({
10
+ status: zod_1.z.nativeEnum(user_1.UserStatus).optional(),
11
+ platformRole: zod_1.z.nativeEnum(user_1.PlatformRole).optional(),
12
+ externalId: zod_1.z.string().optional(),
13
13
  });
14
- exports.ListUsersRequestBody = typebox_1.Type.Object({
15
- cursor: typebox_1.Type.Optional(typebox_1.Type.String()),
16
- limit: typebox_1.Type.Optional(typebox_1.Type.Number()),
17
- externalId: typebox_1.Type.Optional(typebox_1.Type.String()),
14
+ exports.ListUsersRequestBody = zod_1.z.object({
15
+ cursor: zod_1.z.string().optional(),
16
+ limit: zod_1.z.coerce.number().optional(),
17
+ externalId: zod_1.z.string().optional(),
18
18
  });
19
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/core/user/index.ts"],"names":[],"mappings":";;;;AAAA,+CAAgD;AAChD,iCAAiD;AAEjD,iDAAsB;AACtB,mDAAwB;AAEX,QAAA,qBAAqB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC7C,MAAM,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,IAAI,CAAC,iBAAU,CAAC,CAAC;IAC5C,YAAY,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,IAAI,CAAC,mBAAY,CAAC,CAAC;IACpD,UAAU,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;CAC3C,CAAC,CAAA;AAKW,QAAA,oBAAoB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC5C,MAAM,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;IACpC,KAAK,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;IACnC,UAAU,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;CAC3C,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/core/user/index.ts"],"names":[],"mappings":";;;;AAAA,6BAAuB;AACvB,iCAAiD;AAEjD,iDAAsB;AACtB,mDAAwB;AAEX,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,iBAAU,CAAC,CAAC,QAAQ,EAAE;IAC3C,YAAY,EAAE,OAAC,CAAC,UAAU,CAAC,mBAAY,CAAC,CAAC,QAAQ,EAAE;IACnD,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAA;AAKW,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
- import { Static } from '@sinclair/typebox';
1
+ import { z } from 'zod';
2
2
  import { ApId } from '../common/id-generator';
3
3
  export type UserId = ApId;
4
4
  export declare enum PlatformRole {
@@ -22,66 +22,66 @@ export declare enum UserStatus {
22
22
  ACTIVE = "ACTIVE",
23
23
  INACTIVE = "INACTIVE"
24
24
  }
25
- export declare const EmailType: import("@sinclair/typebox").TString;
26
- export declare const PasswordType: import("@sinclair/typebox").TString;
27
- export declare const User: import("@sinclair/typebox").TObject<{
28
- platformRole: import("@sinclair/typebox").TEnum<typeof PlatformRole>;
29
- status: import("@sinclair/typebox").TEnum<typeof UserStatus>;
30
- identityId: import("@sinclair/typebox").TString;
31
- externalId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
32
- platformId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
33
- lastActiveDate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
34
- id: import("@sinclair/typebox").TString;
35
- created: import("@sinclair/typebox").TString;
36
- updated: import("@sinclair/typebox").TString;
37
- }>;
38
- export type User = Static<typeof User>;
39
- export declare const UserWithMetaInformation: import("@sinclair/typebox").TObject<{
40
- id: import("@sinclair/typebox").TString;
41
- email: import("@sinclair/typebox").TString;
42
- firstName: import("@sinclair/typebox").TString;
43
- status: import("@sinclair/typebox").TEnum<typeof UserStatus>;
44
- externalId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
45
- platformId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
46
- platformRole: import("@sinclair/typebox").TEnum<typeof PlatformRole>;
47
- lastName: import("@sinclair/typebox").TString;
48
- created: import("@sinclair/typebox").TString;
49
- updated: import("@sinclair/typebox").TString;
50
- lastActiveDate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
51
- imageUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
52
- }>;
53
- export type UserWithMetaInformation = Static<typeof UserWithMetaInformation>;
54
- export declare const UserWithBadges: import("@sinclair/typebox").TObject<{
55
- badges: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
56
- created: import("@sinclair/typebox").TString;
57
- name: import("@sinclair/typebox").TString;
58
- }>>;
59
- id: import("@sinclair/typebox").TString;
60
- email: import("@sinclair/typebox").TString;
61
- firstName: import("@sinclair/typebox").TString;
62
- status: import("@sinclair/typebox").TEnum<typeof UserStatus>;
63
- externalId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
64
- platformId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
65
- platformRole: import("@sinclair/typebox").TEnum<typeof PlatformRole>;
66
- lastName: import("@sinclair/typebox").TString;
67
- created: import("@sinclair/typebox").TString;
68
- updated: import("@sinclair/typebox").TString;
69
- lastActiveDate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
70
- imageUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
71
- }>;
72
- export type UserWithBadges = Static<typeof UserWithBadges>;
25
+ export declare const EmailType: z.ZodString;
26
+ export declare const PasswordType: z.ZodString;
27
+ export declare const User: z.ZodObject<{
28
+ platformRole: z.ZodEnum<typeof PlatformRole>;
29
+ status: z.ZodEnum<typeof UserStatus>;
30
+ identityId: z.ZodString;
31
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ platformId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ lastActiveDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>>>;
34
+ id: z.ZodString;
35
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
36
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
37
+ }, z.core.$strip>;
38
+ export type User = z.infer<typeof User>;
39
+ export declare const UserWithMetaInformation: z.ZodObject<{
40
+ id: z.ZodString;
41
+ email: z.ZodString;
42
+ firstName: z.ZodString;
43
+ status: z.ZodEnum<typeof UserStatus>;
44
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ platformId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ platformRole: z.ZodEnum<typeof PlatformRole>;
47
+ lastName: z.ZodString;
48
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
49
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
50
+ lastActiveDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>>>;
51
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ }, z.core.$strip>;
53
+ export type UserWithMetaInformation = z.infer<typeof UserWithMetaInformation>;
54
+ export declare const UserWithBadges: z.ZodObject<{
55
+ badges: z.ZodArray<z.ZodObject<{
56
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
57
+ name: z.ZodString;
58
+ }, z.core.$strip>>;
59
+ id: z.ZodString;
60
+ email: z.ZodString;
61
+ firstName: z.ZodString;
62
+ status: z.ZodEnum<typeof UserStatus>;
63
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
+ platformId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ platformRole: z.ZodEnum<typeof PlatformRole>;
66
+ lastName: z.ZodString;
67
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
68
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
69
+ lastActiveDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>>>;
70
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
+ }, z.core.$strip>;
72
+ export type UserWithBadges = z.infer<typeof UserWithBadges>;
73
73
  export declare const AP_MAXIMUM_PROFILE_PICTURE_SIZE: number;
74
74
  export declare const PROFILE_PICTURE_ALLOWED_TYPES: string[];
75
- export declare const UpdateMeRequestBody: import("@sinclair/typebox").TObject<{
76
- profilePicture: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
77
- }>;
78
- export type UpdateMeRequestBody = Static<typeof UpdateMeRequestBody>;
79
- export declare const UpdateMeResponse: import("@sinclair/typebox").TObject<{
80
- email: import("@sinclair/typebox").TString;
81
- firstName: import("@sinclair/typebox").TString;
82
- lastName: import("@sinclair/typebox").TString;
83
- trackEvents: import("@sinclair/typebox").TBoolean;
84
- newsLetter: import("@sinclair/typebox").TBoolean;
85
- imageUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
86
- }>;
87
- export type UpdateMeResponse = Static<typeof UpdateMeResponse>;
75
+ export declare const UpdateMeRequestBody: z.ZodObject<{
76
+ profilePicture: z.ZodOptional<z.ZodAny>;
77
+ }, z.core.$strip>;
78
+ export type UpdateMeRequestBody = z.infer<typeof UpdateMeRequestBody>;
79
+ export declare const UpdateMeResponse: z.ZodObject<{
80
+ email: z.ZodString;
81
+ firstName: z.ZodString;
82
+ lastName: z.ZodString;
83
+ trackEvents: z.ZodBoolean;
84
+ newsLetter: z.ZodBoolean;
85
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
86
+ }, z.core.$strip>;
87
+ export type UpdateMeResponse = z.infer<typeof UpdateMeResponse>;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateMeResponse = exports.UpdateMeRequestBody = exports.PROFILE_PICTURE_ALLOWED_TYPES = exports.AP_MAXIMUM_PROFILE_PICTURE_SIZE = exports.UserWithBadges = exports.UserWithMetaInformation = exports.User = exports.PasswordType = exports.EmailType = exports.UserStatus = exports.PlatformRole = void 0;
4
- const typebox_1 = require("@sinclair/typebox");
4
+ const zod_1 = require("zod");
5
5
  const base_model_1 = require("../common/base-model");
6
6
  const badges_1 = require("./badges");
7
7
  var PlatformRole;
@@ -29,29 +29,24 @@ var UserStatus;
29
29
  /* user account deactivated */
30
30
  UserStatus["INACTIVE"] = "INACTIVE";
31
31
  })(UserStatus || (exports.UserStatus = UserStatus = {}));
32
- exports.EmailType = typebox_1.Type.String({
33
- format: 'email',
32
+ exports.EmailType = zod_1.z.string().email();
33
+ exports.PasswordType = zod_1.z.string().min(8).max(64);
34
+ exports.User = zod_1.z.object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { platformRole: zod_1.z.nativeEnum(PlatformRole), status: zod_1.z.nativeEnum(UserStatus), identityId: zod_1.z.string(), externalId: (0, base_model_1.Nullable)(zod_1.z.string()), platformId: (0, base_model_1.Nullable)(zod_1.z.string()), lastActiveDate: (0, base_model_1.Nullable)(base_model_1.DateOrString) }));
35
+ exports.UserWithMetaInformation = zod_1.z.object({
36
+ id: zod_1.z.string(),
37
+ email: zod_1.z.string(),
38
+ firstName: zod_1.z.string(),
39
+ status: zod_1.z.nativeEnum(UserStatus),
40
+ externalId: (0, base_model_1.Nullable)(zod_1.z.string()),
41
+ platformId: (0, base_model_1.Nullable)(zod_1.z.string()),
42
+ platformRole: zod_1.z.nativeEnum(PlatformRole),
43
+ lastName: zod_1.z.string(),
44
+ created: base_model_1.DateOrString,
45
+ updated: base_model_1.DateOrString,
46
+ lastActiveDate: (0, base_model_1.Nullable)(base_model_1.DateOrString),
47
+ imageUrl: (0, base_model_1.Nullable)(zod_1.z.string()),
34
48
  });
35
- exports.PasswordType = typebox_1.Type.String({
36
- minLength: 8,
37
- maxLength: 64,
38
- });
39
- exports.User = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { platformRole: typebox_1.Type.Enum(PlatformRole), status: typebox_1.Type.Enum(UserStatus), identityId: typebox_1.Type.String(), externalId: (0, base_model_1.Nullable)(typebox_1.Type.String()), platformId: (0, base_model_1.Nullable)(typebox_1.Type.String()), lastActiveDate: (0, base_model_1.Nullable)(typebox_1.Type.String()) }));
40
- exports.UserWithMetaInformation = typebox_1.Type.Object({
41
- id: typebox_1.Type.String(),
42
- email: typebox_1.Type.String(),
43
- firstName: typebox_1.Type.String(),
44
- status: typebox_1.Type.Enum(UserStatus),
45
- externalId: (0, base_model_1.Nullable)(typebox_1.Type.String()),
46
- platformId: (0, base_model_1.Nullable)(typebox_1.Type.String()),
47
- platformRole: typebox_1.Type.Enum(PlatformRole),
48
- lastName: typebox_1.Type.String(),
49
- created: typebox_1.Type.String(),
50
- updated: typebox_1.Type.String(),
51
- lastActiveDate: (0, base_model_1.Nullable)(typebox_1.Type.String()),
52
- imageUrl: (0, base_model_1.Nullable)(typebox_1.Type.String()),
53
- });
54
- exports.UserWithBadges = typebox_1.Type.Object(Object.assign(Object.assign({}, exports.UserWithMetaInformation.properties), { badges: typebox_1.Type.Array(typebox_1.Type.Pick(badges_1.UserBadge, ['name', 'created'])) }));
49
+ exports.UserWithBadges = zod_1.z.object(Object.assign(Object.assign({}, exports.UserWithMetaInformation.shape), { badges: zod_1.z.array(badges_1.UserBadge.pick({ name: true, created: true })) }));
55
50
  exports.AP_MAXIMUM_PROFILE_PICTURE_SIZE = 5 * 1024 * 1024; // 5 MB
56
51
  exports.PROFILE_PICTURE_ALLOWED_TYPES = [
57
52
  'image/jpeg',
@@ -59,15 +54,15 @@ exports.PROFILE_PICTURE_ALLOWED_TYPES = [
59
54
  'image/gif',
60
55
  'image/webp',
61
56
  ];
62
- exports.UpdateMeRequestBody = typebox_1.Type.Object({
63
- profilePicture: typebox_1.Type.Optional(typebox_1.Type.Any()),
57
+ exports.UpdateMeRequestBody = zod_1.z.object({
58
+ profilePicture: zod_1.z.any().optional(),
64
59
  });
65
- exports.UpdateMeResponse = typebox_1.Type.Object({
66
- email: typebox_1.Type.String(),
67
- firstName: typebox_1.Type.String(),
68
- lastName: typebox_1.Type.String(),
69
- trackEvents: typebox_1.Type.Boolean(),
70
- newsLetter: typebox_1.Type.Boolean(),
71
- imageUrl: (0, base_model_1.Nullable)(typebox_1.Type.String()),
60
+ exports.UpdateMeResponse = zod_1.z.object({
61
+ email: zod_1.z.string(),
62
+ firstName: zod_1.z.string(),
63
+ lastName: zod_1.z.string(),
64
+ trackEvents: zod_1.z.boolean(),
65
+ newsLetter: zod_1.z.boolean(),
66
+ imageUrl: (0, base_model_1.Nullable)(zod_1.z.string()),
72
67
  });
73
68
  //# sourceMappingURL=user.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../../src/lib/core/user/user.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,qDAAgE;AAEhE,qCAAoC;AAIpC,IAAY,YAgBX;AAhBD,WAAY,YAAY;IACpB;;;OAGG;IACH,+BAAe,CAAA;IACf;;;OAGG;IACH,iCAAiB,CAAA;IACjB;;;OAGG;IACH,qCAAqB,CAAA;AACzB,CAAC,EAhBW,YAAY,4BAAZ,YAAY,QAgBvB;AAED,IAAY,UAKX;AALD,WAAY,UAAU;IAClB,oBAAoB;IACpB,+BAAiB,CAAA;IACjB,8BAA8B;IAC9B,mCAAqB,CAAA;AACzB,CAAC,EALW,UAAU,0BAAV,UAAU,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EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,OAAO,EAAE,yBAAY;IACrB,OAAO,EAAE,yBAAY;IACrB,cAAc,EAAE,IAAA,qBAAQ,EAAC,yBAAY,CAAC;IACtC,QAAQ,EAAE,IAAA,qBAAQ,EAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CACjC,CAAC,CAAA;AAKW,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,iCAC/B,+BAAuB,CAAC,KAAK,KAChC,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,kBAAS,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,IAChE,CAAA;AAIW,QAAA,+BAA+B,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAA,CAAC,OAAO;AAEzD,QAAA,6BAA6B,GAAG;IACzC,YAAY;IACZ,WAAW;IACX,WAAW;IACX,YAAY;CACf,CAAA;AAEY,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,cAAc,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAA;AAIW,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,WAAW,EAAE,OAAC,CAAC,OAAO,EAAE;IACxB,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE;IACvB,QAAQ,EAAE,IAAA,qBAAQ,EAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CACjC,CAAC,CAAA"}
@@ -1,13 +1,13 @@
1
- import { Static } from '@sinclair/typebox';
1
+ import { z } from 'zod';
2
2
  export declare enum AlertChannel {
3
3
  EMAIL = "EMAIL"
4
4
  }
5
- export declare const Alert: import("@sinclair/typebox").TObject<{
6
- projectId: import("@sinclair/typebox").TString;
7
- channel: import("@sinclair/typebox").TEnum<typeof AlertChannel>;
8
- receiver: import("@sinclair/typebox").TString;
9
- id: import("@sinclair/typebox").TString;
10
- created: import("@sinclair/typebox").TString;
11
- updated: import("@sinclair/typebox").TString;
12
- }>;
13
- export type Alert = Static<typeof Alert>;
5
+ export declare const Alert: z.ZodObject<{
6
+ projectId: z.ZodString;
7
+ channel: z.ZodEnum<typeof AlertChannel>;
8
+ receiver: z.ZodString;
9
+ id: z.ZodString;
10
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
11
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
12
+ }, z.core.$strip>;
13
+ export type Alert = z.infer<typeof Alert>;
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Alert = exports.AlertChannel = void 0;
4
- const typebox_1 = require("@sinclair/typebox");
4
+ const zod_1 = require("zod");
5
5
  const base_model_1 = require("../../core/common/base-model");
6
6
  const id_generator_1 = require("../../core/common/id-generator");
7
7
  var AlertChannel;
8
8
  (function (AlertChannel) {
9
9
  AlertChannel["EMAIL"] = "EMAIL";
10
10
  })(AlertChannel || (exports.AlertChannel = AlertChannel = {}));
11
- exports.Alert = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { projectId: id_generator_1.ApId, channel: typebox_1.Type.Enum(AlertChannel), receiver: typebox_1.Type.String({}) }));
11
+ exports.Alert = zod_1.z.object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { projectId: id_generator_1.ApId, channel: zod_1.z.nativeEnum(AlertChannel), receiver: zod_1.z.string() }));
12
12
  //# sourceMappingURL=alerts-dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"alerts-dto.js","sourceRoot":"","sources":["../../../../../src/lib/ee/alerts/alerts-dto.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,6DAA8D;AAC9D,iEAAqD;AAErD,IAAY,YAEX;AAFD,WAAY,YAAY;IACpB,+BAAe,CAAA;AACnB,CAAC,EAFW,YAAY,4BAAZ,YAAY,QAEvB;AAGY,QAAA,KAAK,GAAG,cAAI,CAAC,MAAM,iCACzB,4BAAe,KAClB,SAAS,EAAE,mBAAI,EACf,OAAO,EAAE,cAAI,CAAC,IAAI,CAAC,YAAY,CAAC,EAChC,QAAQ,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,IAC3B,CAAA"}
1
+ {"version":3,"file":"alerts-dto.js","sourceRoot":"","sources":["../../../../../src/lib/ee/alerts/alerts-dto.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,6DAA8D;AAC9D,iEAAqD;AAErD,IAAY,YAEX;AAFD,WAAY,YAAY;IACpB,+BAAe,CAAA;AACnB,CAAC,EAFW,YAAY,4BAAZ,YAAY,QAEvB;AAGY,QAAA,KAAK,GAAG,OAAC,CAAC,MAAM,iCACtB,4BAAe,KAClB,SAAS,EAAE,mBAAI,EACf,OAAO,EAAE,OAAC,CAAC,UAAU,CAAC,YAAY,CAAC,EACnC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,IACtB,CAAA"}
@@ -1,14 +1,14 @@
1
- import { Static } from '@sinclair/typebox';
1
+ import { z } from 'zod';
2
2
  import { AlertChannel } from './alerts-dto';
3
- export declare const ListAlertsParams: import("@sinclair/typebox").TObject<{
4
- projectId: import("@sinclair/typebox").TString;
5
- cursor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
6
- limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
7
- }>;
8
- export type ListAlertsParams = Static<typeof ListAlertsParams>;
9
- export declare const CreateAlertParams: import("@sinclair/typebox").TObject<{
10
- projectId: import("@sinclair/typebox").TString;
11
- channel: import("@sinclair/typebox").TEnum<typeof AlertChannel>;
12
- receiver: import("@sinclair/typebox").TString;
13
- }>;
14
- export type CreateAlertParams = Static<typeof CreateAlertParams>;
3
+ export declare const ListAlertsParams: z.ZodObject<{
4
+ projectId: z.ZodString;
5
+ cursor: z.ZodOptional<z.ZodString>;
6
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
7
+ }, z.core.$strip>;
8
+ export type ListAlertsParams = z.infer<typeof ListAlertsParams>;
9
+ export declare const CreateAlertParams: z.ZodObject<{
10
+ projectId: z.ZodString;
11
+ channel: z.ZodEnum<typeof AlertChannel>;
12
+ receiver: z.ZodString;
13
+ }, z.core.$strip>;
14
+ export type CreateAlertParams = z.infer<typeof CreateAlertParams>;
@@ -1,17 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CreateAlertParams = exports.ListAlertsParams = void 0;
4
- const typebox_1 = require("@sinclair/typebox");
4
+ const zod_1 = require("zod");
5
5
  const id_generator_1 = require("../../core/common/id-generator");
6
6
  const alerts_dto_1 = require("./alerts-dto");
7
- exports.ListAlertsParams = typebox_1.Type.Object({
7
+ exports.ListAlertsParams = zod_1.z.object({
8
8
  projectId: id_generator_1.ApId,
9
- cursor: typebox_1.Type.Optional(typebox_1.Type.String()),
10
- limit: typebox_1.Type.Optional(typebox_1.Type.Integer({ minimum: 1, maximum: 100 })),
9
+ cursor: zod_1.z.string().optional(),
10
+ limit: zod_1.z.coerce.number().int().min(1).max(100).optional(),
11
11
  });
12
- exports.CreateAlertParams = typebox_1.Type.Object({
12
+ exports.CreateAlertParams = zod_1.z.object({
13
13
  projectId: id_generator_1.ApId,
14
- channel: typebox_1.Type.Enum(alerts_dto_1.AlertChannel),
15
- receiver: typebox_1.Type.String({}),
14
+ channel: zod_1.z.nativeEnum(alerts_dto_1.AlertChannel),
15
+ receiver: zod_1.z.string(),
16
16
  });
17
17
  //# sourceMappingURL=alerts-requests.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"alerts-requests.js","sourceRoot":"","sources":["../../../../../src/lib/ee/alerts/alerts-requests.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,iEAAqD;AACrD,6CAA2C;AAE9B,QAAA,gBAAgB,GAAG,cAAI,CAAC,MAAM,CAAC;IACxC,SAAS,EAAE,mBAAI;IACf,MAAM,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;IACpC,KAAK,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;CACnE,CAAC,CAAA;AAGW,QAAA,iBAAiB,GAAG,cAAI,CAAC,MAAM,CAAC;IACzC,SAAS,EAAE,mBAAI;IACf,OAAO,EAAE,cAAI,CAAC,IAAI,CAAC,yBAAY,CAAC;IAChC,QAAQ,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC;CAC5B,CAAC,CAAA"}
1
+ {"version":3,"file":"alerts-requests.js","sourceRoot":"","sources":["../../../../../src/lib/ee/alerts/alerts-requests.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,iEAAqD;AACrD,6CAA2C;AAE9B,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,SAAS,EAAE,mBAAI;IACf,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CAC5D,CAAC,CAAA;AAGW,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,SAAS,EAAE,mBAAI;IACf,OAAO,EAAE,OAAC,CAAC,UAAU,CAAC,yBAAY,CAAC;IACnC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAA"}
@@ -1,37 +1,37 @@
1
- import { Static } from '@sinclair/typebox';
2
- export declare const ApiKey: import("@sinclair/typebox").TObject<{
3
- platformId: import("@sinclair/typebox").TString;
4
- displayName: import("@sinclair/typebox").TString;
5
- hashedValue: import("@sinclair/typebox").TString;
6
- truncatedValue: import("@sinclair/typebox").TString;
7
- lastUsedAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
8
- id: import("@sinclair/typebox").TString;
9
- created: import("@sinclair/typebox").TString;
10
- updated: import("@sinclair/typebox").TString;
11
- }>;
12
- export type ApiKey = Static<typeof ApiKey>;
13
- export declare const ApiKeyResponseWithValue: import("@sinclair/typebox").TObject<{
14
- id: import("@sinclair/typebox").TString;
15
- created: import("@sinclair/typebox").TString;
16
- updated: import("@sinclair/typebox").TString;
17
- platformId: import("@sinclair/typebox").TString;
18
- displayName: import("@sinclair/typebox").TString;
19
- truncatedValue: import("@sinclair/typebox").TString;
20
- lastUsedAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
21
- value: import("@sinclair/typebox").TString;
22
- }>;
23
- export type ApiKeyResponseWithValue = Static<typeof ApiKeyResponseWithValue>;
24
- export declare const ApiKeyResponseWithoutValue: import("@sinclair/typebox").TObject<{
25
- id: import("@sinclair/typebox").TString;
26
- created: import("@sinclair/typebox").TString;
27
- updated: import("@sinclair/typebox").TString;
28
- platformId: import("@sinclair/typebox").TString;
29
- displayName: import("@sinclair/typebox").TString;
30
- truncatedValue: import("@sinclair/typebox").TString;
31
- lastUsedAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
32
- }>;
33
- export type ApiKeyResponseWithoutValue = Static<typeof ApiKeyResponseWithoutValue>;
34
- export declare const CreateApiKeyRequest: import("@sinclair/typebox").TObject<{
35
- displayName: import("@sinclair/typebox").TString;
36
- }>;
37
- export type CreateApiKeyRequest = Static<typeof CreateApiKeyRequest>;
1
+ import { z } from 'zod';
2
+ export declare const ApiKey: z.ZodObject<{
3
+ platformId: z.ZodString;
4
+ displayName: z.ZodString;
5
+ hashedValue: z.ZodString;
6
+ truncatedValue: z.ZodString;
7
+ lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ id: z.ZodString;
9
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
10
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
11
+ }, z.core.$strip>;
12
+ export type ApiKey = z.infer<typeof ApiKey>;
13
+ export declare const ApiKeyResponseWithValue: z.ZodObject<{
14
+ id: z.ZodString;
15
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
16
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
17
+ platformId: z.ZodString;
18
+ displayName: z.ZodString;
19
+ truncatedValue: z.ZodString;
20
+ lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ value: z.ZodString;
22
+ }, z.core.$strip>;
23
+ export type ApiKeyResponseWithValue = z.infer<typeof ApiKeyResponseWithValue>;
24
+ export declare const ApiKeyResponseWithoutValue: z.ZodObject<{
25
+ id: z.ZodString;
26
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
27
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
28
+ platformId: z.ZodString;
29
+ displayName: z.ZodString;
30
+ truncatedValue: z.ZodString;
31
+ lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ }, z.core.$strip>;
33
+ export type ApiKeyResponseWithoutValue = z.infer<typeof ApiKeyResponseWithoutValue>;
34
+ export declare const CreateApiKeyRequest: z.ZodObject<{
35
+ displayName: z.ZodString;
36
+ }, z.core.$strip>;
37
+ export type CreateApiKeyRequest = z.infer<typeof CreateApiKeyRequest>;
@@ -1,18 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CreateApiKeyRequest = exports.ApiKeyResponseWithoutValue = exports.ApiKeyResponseWithValue = exports.ApiKey = void 0;
4
- const typebox_1 = require("@sinclair/typebox");
4
+ const zod_1 = require("zod");
5
5
  const base_model_1 = require("../../core/common/base-model");
6
6
  const id_generator_1 = require("../../core/common/id-generator");
7
- exports.ApiKey = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { platformId: id_generator_1.ApId, displayName: typebox_1.Type.String(), hashedValue: typebox_1.Type.String(), truncatedValue: typebox_1.Type.String(), lastUsedAt: typebox_1.Type.Optional(typebox_1.Type.String()) }));
8
- exports.ApiKeyResponseWithValue = typebox_1.Type.Composite([
9
- typebox_1.Type.Omit(exports.ApiKey, ['hashedValue']),
10
- typebox_1.Type.Object({
11
- value: typebox_1.Type.String(),
12
- }),
13
- ]);
14
- exports.ApiKeyResponseWithoutValue = typebox_1.Type.Omit(exports.ApiKey, ['hashedValue']);
15
- exports.CreateApiKeyRequest = typebox_1.Type.Object({
16
- displayName: typebox_1.Type.String(),
7
+ exports.ApiKey = zod_1.z.object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { platformId: id_generator_1.ApId, displayName: zod_1.z.string(), hashedValue: zod_1.z.string(), truncatedValue: zod_1.z.string(), lastUsedAt: (0, base_model_1.Nullable)(zod_1.z.string()) }));
8
+ exports.ApiKeyResponseWithValue = exports.ApiKey.omit({ hashedValue: true }).extend({
9
+ value: zod_1.z.string(),
10
+ });
11
+ exports.ApiKeyResponseWithoutValue = exports.ApiKey.omit({ hashedValue: true });
12
+ exports.CreateApiKeyRequest = zod_1.z.object({
13
+ displayName: zod_1.z.string(),
17
14
  });
18
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/ee/api-key/index.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,6DAA8D;AAC9D,iEAAqD;AAExC,QAAA,MAAM,GAAG,cAAI,CAAC,MAAM,iCAC1B,4BAAe,KAClB,UAAU,EAAE,mBAAI,EAChB,WAAW,EAAE,cAAI,CAAC,MAAM,EAAE,EAC1B,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