@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,23 +1,23 @@
1
- import { Static } from '@sinclair/typebox';
1
+ import { z } from 'zod';
2
2
  export declare enum CustomDomainStatus {
3
3
  ACTIVE = "ACTIVE",
4
4
  PENDING = "PENDING"
5
5
  }
6
- export declare const CustomDomain: import("@sinclair/typebox").TObject<{
7
- domain: import("@sinclair/typebox").TString;
8
- platformId: import("@sinclair/typebox").TString;
9
- status: import("@sinclair/typebox").TEnum<typeof CustomDomainStatus>;
10
- id: import("@sinclair/typebox").TString;
11
- created: import("@sinclair/typebox").TString;
12
- updated: import("@sinclair/typebox").TString;
13
- }>;
14
- export type CustomDomain = Static<typeof CustomDomain>;
15
- export declare const AddDomainRequest: import("@sinclair/typebox").TObject<{
16
- domain: import("@sinclair/typebox").TString;
17
- }>;
18
- export type AddDomainRequest = Static<typeof AddDomainRequest>;
19
- export declare const ListCustomDomainsRequest: import("@sinclair/typebox").TObject<{
20
- limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
21
- cursor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
22
- }>;
23
- export type ListCustomDomainsRequest = Static<typeof ListCustomDomainsRequest>;
6
+ export declare const CustomDomain: z.ZodObject<{
7
+ domain: z.ZodString;
8
+ platformId: z.ZodString;
9
+ status: z.ZodEnum<typeof CustomDomainStatus>;
10
+ id: z.ZodString;
11
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
12
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
13
+ }, z.core.$strip>;
14
+ export type CustomDomain = z.infer<typeof CustomDomain>;
15
+ export declare const AddDomainRequest: z.ZodObject<{
16
+ domain: z.ZodString;
17
+ }, z.core.$strip>;
18
+ export type AddDomainRequest = z.infer<typeof AddDomainRequest>;
19
+ export declare const ListCustomDomainsRequest: z.ZodObject<{
20
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
21
+ cursor: z.ZodOptional<z.ZodString>;
22
+ }, z.core.$strip>;
23
+ export type ListCustomDomainsRequest = z.infer<typeof ListCustomDomainsRequest>;
@@ -1,21 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ListCustomDomainsRequest = exports.AddDomainRequest = exports.CustomDomain = exports.CustomDomainStatus = 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
  var CustomDomainStatus;
7
7
  (function (CustomDomainStatus) {
8
8
  CustomDomainStatus["ACTIVE"] = "ACTIVE";
9
9
  CustomDomainStatus["PENDING"] = "PENDING";
10
10
  })(CustomDomainStatus || (exports.CustomDomainStatus = CustomDomainStatus = {}));
11
- exports.CustomDomain = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { domain: typebox_1.Type.String(), platformId: typebox_1.Type.String(), status: typebox_1.Type.Enum(CustomDomainStatus) }));
12
- exports.AddDomainRequest = typebox_1.Type.Object({
13
- domain: typebox_1.Type.String({
14
- pattern: '^(?!.*\\.example\\.com$)(?!.*\\.example\\.net$).*',
15
- }),
11
+ exports.CustomDomain = zod_1.z.object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { domain: zod_1.z.string(), platformId: zod_1.z.string(), status: zod_1.z.nativeEnum(CustomDomainStatus) }));
12
+ exports.AddDomainRequest = zod_1.z.object({
13
+ domain: zod_1.z.string().regex(/^(?!.*\.example\.com$)(?!.*\.example\.net$).*/),
16
14
  });
17
- exports.ListCustomDomainsRequest = typebox_1.Type.Object({
18
- limit: typebox_1.Type.Optional(typebox_1.Type.Number()),
19
- cursor: typebox_1.Type.Optional(typebox_1.Type.String()),
15
+ exports.ListCustomDomainsRequest = zod_1.z.object({
16
+ limit: zod_1.z.coerce.number().optional(),
17
+ cursor: zod_1.z.string().optional(),
20
18
  });
21
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/ee/custom-domains/index.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,6DAA8D;AAE9D,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,uCAAiB,CAAA;IACjB,yCAAmB,CAAA;AACvB,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAEY,QAAA,YAAY,GAAG,cAAI,CAAC,MAAM,iCAChC,4BAAe,KAClB,MAAM,EAAE,cAAI,CAAC,MAAM,EAAE,EACrB,UAAU,EAAE,cAAI,CAAC,MAAM,EAAE,EACzB,MAAM,EAAE,cAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,IACvC,CAAA;AAKW,QAAA,gBAAgB,GAAG,cAAI,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,cAAI,CAAC,MAAM,CAAC;QAChB,OAAO,EAAE,mDAAmD;KAC/D,CAAC;CACL,CAAC,CAAA;AAIW,QAAA,wBAAwB,GAAG,cAAI,CAAC,MAAM,CAAC;IAChD,KAAK,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;IACnC,MAAM,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;CACvC,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/ee/custom-domains/index.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,6DAA8D;AAE9D,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,uCAAiB,CAAA;IACjB,yCAAmB,CAAA;AACvB,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAEY,QAAA,YAAY,GAAG,OAAC,CAAC,MAAM,iCAC7B,4BAAe,KAClB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,EAClB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,EACtB,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAC1C,CAAA;AAKW,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,+CAA+C,CAAC;CAC5E,CAAC,CAAA;AAIW,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAA"}
@@ -1,25 +1,25 @@
1
- import { Static } from '@sinclair/typebox';
1
+ import { z } from 'zod';
2
2
  import { ApplicationEventName } from '../audit-events';
3
3
  export declare enum EventDestinationScope {
4
4
  PLATFORM = "PLATFORM",
5
5
  PROJECT = "PROJECT"
6
6
  }
7
- export declare const ListPlatformEventDestinationsRequestBody: import("@sinclair/typebox").TObject<{
8
- cursor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
9
- limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
10
- }>;
11
- export type ListPlatformEventDestinationsRequestBody = Static<typeof ListPlatformEventDestinationsRequestBody>;
12
- export declare const CreatePlatformEventDestinationRequestBody: import("@sinclair/typebox").TObject<{
13
- events: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TEnum<typeof ApplicationEventName>>;
14
- url: import("@sinclair/typebox").TString;
15
- }>;
16
- export type CreatePlatformEventDestinationRequestBody = Static<typeof CreatePlatformEventDestinationRequestBody>;
17
- export declare const UpdatePlatformEventDestinationRequestBody: import("@sinclair/typebox").TObject<{
18
- events: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TEnum<typeof ApplicationEventName>>;
19
- url: import("@sinclair/typebox").TString;
20
- }>;
21
- export type UpdatePlatformEventDestinationRequestBody = Static<typeof UpdatePlatformEventDestinationRequestBody>;
22
- export declare const TestPlatformEventDestinationRequestBody: import("@sinclair/typebox").TObject<{
23
- url: import("@sinclair/typebox").TString;
24
- }>;
25
- export type TestPlatformEventDestinationRequestBody = Static<typeof TestPlatformEventDestinationRequestBody>;
7
+ export declare const ListPlatformEventDestinationsRequestBody: z.ZodObject<{
8
+ cursor: z.ZodOptional<z.ZodString>;
9
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
10
+ }, z.core.$strip>;
11
+ export type ListPlatformEventDestinationsRequestBody = z.infer<typeof ListPlatformEventDestinationsRequestBody>;
12
+ export declare const CreatePlatformEventDestinationRequestBody: z.ZodObject<{
13
+ events: z.ZodArray<z.ZodEnum<typeof ApplicationEventName>>;
14
+ url: z.ZodString;
15
+ }, z.core.$strip>;
16
+ export type CreatePlatformEventDestinationRequestBody = z.infer<typeof CreatePlatformEventDestinationRequestBody>;
17
+ export declare const UpdatePlatformEventDestinationRequestBody: z.ZodObject<{
18
+ events: z.ZodArray<z.ZodEnum<typeof ApplicationEventName>>;
19
+ url: z.ZodString;
20
+ }, z.core.$strip>;
21
+ export type UpdatePlatformEventDestinationRequestBody = z.infer<typeof UpdatePlatformEventDestinationRequestBody>;
22
+ export declare const TestPlatformEventDestinationRequestBody: z.ZodObject<{
23
+ url: z.ZodString;
24
+ }, z.core.$strip>;
25
+ export type TestPlatformEventDestinationRequestBody = z.infer<typeof TestPlatformEventDestinationRequestBody>;
@@ -1,23 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TestPlatformEventDestinationRequestBody = exports.UpdatePlatformEventDestinationRequestBody = exports.CreatePlatformEventDestinationRequestBody = exports.ListPlatformEventDestinationsRequestBody = exports.EventDestinationScope = void 0;
4
- const typebox_1 = require("@sinclair/typebox");
4
+ const zod_1 = require("zod");
5
5
  const audit_events_1 = require("../audit-events");
6
6
  var EventDestinationScope;
7
7
  (function (EventDestinationScope) {
8
8
  EventDestinationScope["PLATFORM"] = "PLATFORM";
9
9
  EventDestinationScope["PROJECT"] = "PROJECT";
10
10
  })(EventDestinationScope || (exports.EventDestinationScope = EventDestinationScope = {}));
11
- exports.ListPlatformEventDestinationsRequestBody = typebox_1.Type.Object({
12
- cursor: typebox_1.Type.Optional(typebox_1.Type.String()),
13
- limit: typebox_1.Type.Optional(typebox_1.Type.Number()),
11
+ exports.ListPlatformEventDestinationsRequestBody = zod_1.z.object({
12
+ cursor: zod_1.z.string().optional(),
13
+ limit: zod_1.z.coerce.number().optional(),
14
14
  });
15
- exports.CreatePlatformEventDestinationRequestBody = typebox_1.Type.Object({
16
- events: typebox_1.Type.Array(typebox_1.Type.Enum(audit_events_1.ApplicationEventName)),
17
- url: typebox_1.Type.String({ format: 'uri' }),
15
+ exports.CreatePlatformEventDestinationRequestBody = zod_1.z.object({
16
+ events: zod_1.z.array(zod_1.z.nativeEnum(audit_events_1.ApplicationEventName)),
17
+ url: zod_1.z.string().url(),
18
18
  });
19
19
  exports.UpdatePlatformEventDestinationRequestBody = exports.CreatePlatformEventDestinationRequestBody;
20
- exports.TestPlatformEventDestinationRequestBody = typebox_1.Type.Object({
21
- url: typebox_1.Type.String({ format: 'uri' }),
20
+ exports.TestPlatformEventDestinationRequestBody = zod_1.z.object({
21
+ url: zod_1.z.string().url(),
22
22
  });
23
23
  //# sourceMappingURL=dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dto.js","sourceRoot":"","sources":["../../../../../src/lib/ee/event-destinations/dto.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,kDAAsD;AAEtD,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,8CAAqB,CAAA;IACrB,4CAAmB,CAAA;AACvB,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC;AAEY,QAAA,wCAAwC,GAAG,cAAI,CAAC,MAAM,CAAC;IAChE,MAAM,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;IACpC,KAAK,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;CACtC,CAAC,CAAA;AAMW,QAAA,yCAAyC,GAAG,cAAI,CAAC,MAAM,CAAC;IACjE,MAAM,EAAE,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,IAAI,CAAC,mCAAoB,CAAC,CAAC;IACnD,GAAG,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;CACtC,CAAC,CAAA;AAKW,QAAA,yCAAyC,GAAG,iDAAyC,CAAA;AAIrF,QAAA,uCAAuC,GAAG,cAAI,CAAC,MAAM,CAAC;IAC/D,GAAG,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;CACtC,CAAC,CAAA"}
1
+ {"version":3,"file":"dto.js","sourceRoot":"","sources":["../../../../../src/lib/ee/event-destinations/dto.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,kDAAsD;AAEtD,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,8CAAqB,CAAA;IACrB,4CAAmB,CAAA;AACvB,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC;AAEY,QAAA,wCAAwC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7D,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAA;AAMW,QAAA,yCAAyC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,UAAU,CAAC,mCAAoB,CAAC,CAAC;IACnD,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACxB,CAAC,CAAA;AAKW,QAAA,yCAAyC,GAAG,iDAAyC,CAAA;AAIrF,QAAA,uCAAuC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5D,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACxB,CAAC,CAAA"}
@@ -1,32 +1,32 @@
1
- import { Static } from '@sinclair/typebox';
1
+ import { z } from 'zod';
2
2
  import { ApplicationEventName } from '../audit-events/index';
3
3
  import { EventDestinationScope } from './dto';
4
- export declare const EventDestinationPlatformScope: import("@sinclair/typebox").TObject<{
5
- scope: import("@sinclair/typebox").TLiteral<EventDestinationScope.PLATFORM>;
6
- platformId: import("@sinclair/typebox").TString;
7
- events: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TEnum<typeof ApplicationEventName>>;
8
- url: 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 declare const EventDestination: import("../../core/common/base-model").TDiscriminatedUnion<[import("@sinclair/typebox").TObject<{
14
- scope: import("@sinclair/typebox").TLiteral<EventDestinationScope.PLATFORM>;
15
- platformId: import("@sinclair/typebox").TString;
16
- events: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TEnum<typeof ApplicationEventName>>;
17
- url: import("@sinclair/typebox").TString;
18
- id: import("@sinclair/typebox").TString;
19
- created: import("@sinclair/typebox").TString;
20
- updated: import("@sinclair/typebox").TString;
21
- }>, import("@sinclair/typebox").TObject<{
22
- scope: import("@sinclair/typebox").TLiteral<EventDestinationScope.PROJECT>;
23
- projectId: import("@sinclair/typebox").TString;
24
- platformId: import("@sinclair/typebox").TString;
25
- events: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TEnum<typeof ApplicationEventName>>;
26
- url: import("@sinclair/typebox").TString;
27
- id: import("@sinclair/typebox").TString;
28
- created: import("@sinclair/typebox").TString;
29
- updated: import("@sinclair/typebox").TString;
30
- }>]>;
31
- export type EventDestination = Static<typeof EventDestination>;
4
+ export declare const EventDestinationPlatformScope: z.ZodObject<{
5
+ scope: z.ZodLiteral<EventDestinationScope.PLATFORM>;
6
+ platformId: z.ZodString;
7
+ events: z.ZodArray<z.ZodEnum<typeof ApplicationEventName>>;
8
+ url: 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 declare const EventDestination: z.ZodDiscriminatedUnion<[z.ZodObject<{
14
+ scope: z.ZodLiteral<EventDestinationScope.PLATFORM>;
15
+ platformId: z.ZodString;
16
+ events: z.ZodArray<z.ZodEnum<typeof ApplicationEventName>>;
17
+ url: z.ZodString;
18
+ id: z.ZodString;
19
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
20
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
21
+ }, z.core.$strip>, z.ZodObject<{
22
+ scope: z.ZodLiteral<EventDestinationScope.PROJECT>;
23
+ projectId: z.ZodString;
24
+ platformId: z.ZodString;
25
+ events: z.ZodArray<z.ZodEnum<typeof ApplicationEventName>>;
26
+ url: z.ZodString;
27
+ id: z.ZodString;
28
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
29
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
30
+ }, z.core.$strip>], "scope">;
31
+ export type EventDestination = z.infer<typeof EventDestination>;
32
32
  export * from './dto';
@@ -2,14 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EventDestination = exports.EventDestinationPlatformScope = 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 base_model_1 = require("../../core/common/base-model");
7
7
  const index_1 = require("../audit-events/index");
8
8
  const dto_1 = require("./dto");
9
- const EventDestinationBase = Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { platformId: typebox_1.Type.String(), events: typebox_1.Type.Array(typebox_1.Type.Enum(index_1.ApplicationEventName)), url: typebox_1.Type.String({ format: 'uri' }) });
10
- const EventDestinationProjectScope = typebox_1.Type.Object(Object.assign(Object.assign({}, EventDestinationBase), { scope: typebox_1.Type.Literal(dto_1.EventDestinationScope.PROJECT), projectId: typebox_1.Type.String() }));
11
- exports.EventDestinationPlatformScope = typebox_1.Type.Object(Object.assign(Object.assign({}, EventDestinationBase), { scope: typebox_1.Type.Literal(dto_1.EventDestinationScope.PLATFORM) }));
12
- exports.EventDestination = (0, base_model_1.DiscriminatedUnion)('scope', [
9
+ const EventDestinationBase = Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { platformId: zod_1.z.string(), events: zod_1.z.array(zod_1.z.nativeEnum(index_1.ApplicationEventName)), url: zod_1.z.string().url() });
10
+ const EventDestinationProjectScope = zod_1.z.object(Object.assign(Object.assign({}, EventDestinationBase), { scope: zod_1.z.literal(dto_1.EventDestinationScope.PROJECT), projectId: zod_1.z.string() }));
11
+ exports.EventDestinationPlatformScope = zod_1.z.object(Object.assign(Object.assign({}, EventDestinationBase), { scope: zod_1.z.literal(dto_1.EventDestinationScope.PLATFORM) }));
12
+ exports.EventDestination = zod_1.z.discriminatedUnion('scope', [
13
13
  exports.EventDestinationPlatformScope,
14
14
  EventDestinationProjectScope,
15
15
  ]);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/ee/event-destinations/index.ts"],"names":[],"mappings":";;;;AAAA,+CAAgD;AAChD,6DAAkF;AAClF,iDAA4D;AAC5D,+BAA6C;AAE7C,MAAM,oBAAoB,mCACnB,4BAAe,KAClB,UAAU,EAAE,cAAI,CAAC,MAAM,EAAE,EACzB,MAAM,EAAE,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,IAAI,CAAC,4BAAoB,CAAC,CAAC,EACnD,GAAG,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GACtC,CAAA;AAID,MAAM,4BAA4B,GAAG,cAAI,CAAC,MAAM,iCACzC,oBAAoB,KACvB,KAAK,EAAE,cAAI,CAAC,OAAO,CAAC,2BAAqB,CAAC,OAAO,CAAC,EAClD,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE,IAC1B,CAAA;AAEW,QAAA,6BAA6B,GAAG,cAAI,CAAC,MAAM,iCACjD,oBAAoB,KACvB,KAAK,EAAE,cAAI,CAAC,OAAO,CAAC,2BAAqB,CAAC,QAAQ,CAAC,IACrD,CAAA;AAEW,QAAA,gBAAgB,GAAG,IAAA,+BAAkB,EAAC,OAAO,EAAE;IACxD,qCAA6B;IAC7B,4BAA4B;CAC/B,CAAC,CAAA;AAIF,gDAAqB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/ee/event-destinations/index.ts"],"names":[],"mappings":";;;;AAAA,6BAAuB;AACvB,6DAA8D;AAC9D,iDAA4D;AAC5D,+BAA6C;AAE7C,MAAM,oBAAoB,mCACnB,4BAAe,KAClB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,EACtB,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,UAAU,CAAC,4BAAoB,CAAC,CAAC,EACnD,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,GACxB,CAAA;AAID,MAAM,4BAA4B,GAAG,OAAC,CAAC,MAAM,iCACtC,oBAAoB,KACvB,KAAK,EAAE,OAAC,CAAC,OAAO,CAAC,2BAAqB,CAAC,OAAO,CAAC,EAC/C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,IACvB,CAAA;AAEW,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,iCAC9C,oBAAoB,KACvB,KAAK,EAAE,OAAC,CAAC,OAAO,CAAC,2BAAqB,CAAC,QAAQ,CAAC,IAClD,CAAA;AAEW,QAAA,gBAAgB,GAAG,OAAC,CAAC,kBAAkB,CAAC,OAAO,EAAE;IAC1D,qCAA6B;IAC7B,4BAA4B;CAC/B,CAAC,CAAA;AAIF,gDAAqB"}
@@ -1,31 +1,31 @@
1
- import { Static } from '@sinclair/typebox';
1
+ import { z } from 'zod';
2
2
  export declare enum GitBranchType {
3
3
  PRODUCTION = "PRODUCTION",
4
4
  DEVELOPMENT = "DEVELOPMENT"
5
5
  }
6
- export declare const GitRepo: import("@sinclair/typebox").TObject<{
7
- remoteUrl: import("@sinclair/typebox").TString;
8
- branch: import("@sinclair/typebox").TString;
9
- branchType: import("@sinclair/typebox").TEnum<typeof GitBranchType>;
10
- projectId: import("@sinclair/typebox").TString;
11
- sshPrivateKey: import("@sinclair/typebox").TString;
12
- slug: import("@sinclair/typebox").TString;
13
- id: import("@sinclair/typebox").TString;
14
- created: import("@sinclair/typebox").TString;
15
- updated: import("@sinclair/typebox").TString;
16
- }>;
17
- export type GitRepo = Static<typeof GitRepo>;
18
- export declare const GitRepoWithoutSensitiveData: import("@sinclair/typebox").TObject<{
19
- projectId: import("@sinclair/typebox").TString;
20
- id: import("@sinclair/typebox").TString;
21
- created: import("@sinclair/typebox").TString;
22
- updated: import("@sinclair/typebox").TString;
23
- branchType: import("@sinclair/typebox").TEnum<typeof GitBranchType>;
24
- remoteUrl: import("@sinclair/typebox").TString;
25
- branch: import("@sinclair/typebox").TString;
26
- slug: import("@sinclair/typebox").TString;
27
- }>;
28
- export type GitRepoWithoutSensitiveData = Static<typeof GitRepoWithoutSensitiveData>;
6
+ export declare const GitRepo: z.ZodObject<{
7
+ remoteUrl: z.ZodString;
8
+ branch: z.ZodString;
9
+ branchType: z.ZodEnum<typeof GitBranchType>;
10
+ projectId: z.ZodString;
11
+ sshPrivateKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ slug: z.ZodString;
13
+ id: z.ZodString;
14
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
15
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
16
+ }, z.core.$strip>;
17
+ export type GitRepo = z.infer<typeof GitRepo>;
18
+ export declare const GitRepoWithoutSensitiveData: z.ZodObject<{
19
+ projectId: z.ZodString;
20
+ id: z.ZodString;
21
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
22
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
23
+ branchType: z.ZodEnum<typeof GitBranchType>;
24
+ remoteUrl: z.ZodString;
25
+ branch: z.ZodString;
26
+ slug: z.ZodString;
27
+ }, z.core.$strip>;
28
+ export type GitRepoWithoutSensitiveData = z.infer<typeof GitRepoWithoutSensitiveData>;
29
29
  export declare enum GitPushOperationType {
30
30
  PUSH_FLOW = "PUSH_FLOW",
31
31
  DELETE_FLOW = "DELETE_FLOW",
@@ -33,42 +33,42 @@ export declare enum GitPushOperationType {
33
33
  DELETE_TABLE = "DELETE_TABLE",
34
34
  PUSH_EVERYTHING = "PUSH_EVERYTHING"
35
35
  }
36
- export declare const PushFlowsGitRepoRequest: import("@sinclair/typebox").TObject<{
37
- type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<GitPushOperationType.PUSH_FLOW>, import("@sinclair/typebox").TLiteral<GitPushOperationType.DELETE_FLOW>]>;
38
- commitMessage: import("@sinclair/typebox").TString;
39
- externalFlowIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
40
- }>;
41
- export type PushFlowsGitRepoRequest = Static<typeof PushFlowsGitRepoRequest>;
42
- export declare const PushTablesGitRepoRequest: import("@sinclair/typebox").TObject<{
43
- type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<GitPushOperationType.PUSH_TABLE>, import("@sinclair/typebox").TLiteral<GitPushOperationType.DELETE_TABLE>]>;
44
- commitMessage: import("@sinclair/typebox").TString;
45
- externalTableIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
46
- }>;
47
- export type PushTablesGitRepoRequest = Static<typeof PushTablesGitRepoRequest>;
48
- export declare const PushEverythingGitRepoRequest: import("@sinclair/typebox").TObject<{
49
- type: import("@sinclair/typebox").TLiteral<GitPushOperationType.PUSH_EVERYTHING>;
50
- commitMessage: import("@sinclair/typebox").TString;
51
- }>;
52
- export type PushEverythingGitRepoRequest = Static<typeof PushEverythingGitRepoRequest>;
53
- export declare const PushGitRepoRequest: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
54
- type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<GitPushOperationType.PUSH_FLOW>, import("@sinclair/typebox").TLiteral<GitPushOperationType.DELETE_FLOW>]>;
55
- commitMessage: import("@sinclair/typebox").TString;
56
- externalFlowIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
57
- }>, import("@sinclair/typebox").TObject<{
58
- type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<GitPushOperationType.PUSH_TABLE>, import("@sinclair/typebox").TLiteral<GitPushOperationType.DELETE_TABLE>]>;
59
- commitMessage: import("@sinclair/typebox").TString;
60
- externalTableIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
61
- }>, import("@sinclair/typebox").TObject<{
62
- type: import("@sinclair/typebox").TLiteral<GitPushOperationType.PUSH_EVERYTHING>;
63
- commitMessage: import("@sinclair/typebox").TString;
64
- }>]>;
65
- export type PushGitRepoRequest = Static<typeof PushGitRepoRequest>;
66
- export declare const ConfigureRepoRequest: import("@sinclair/typebox").TObject<{
67
- projectId: import("@sinclair/typebox").TString;
68
- remoteUrl: import("@sinclair/typebox").TString;
69
- branch: import("@sinclair/typebox").TString;
70
- branchType: import("@sinclair/typebox").TEnum<typeof GitBranchType>;
71
- sshPrivateKey: import("@sinclair/typebox").TString;
72
- slug: import("@sinclair/typebox").TString;
73
- }>;
74
- export type ConfigureRepoRequest = Static<typeof ConfigureRepoRequest>;
36
+ export declare const PushFlowsGitRepoRequest: z.ZodObject<{
37
+ type: z.ZodUnion<readonly [z.ZodLiteral<GitPushOperationType.PUSH_FLOW>, z.ZodLiteral<GitPushOperationType.DELETE_FLOW>]>;
38
+ commitMessage: z.ZodString;
39
+ externalFlowIds: z.ZodArray<z.ZodString>;
40
+ }, z.core.$strip>;
41
+ export type PushFlowsGitRepoRequest = z.infer<typeof PushFlowsGitRepoRequest>;
42
+ export declare const PushTablesGitRepoRequest: z.ZodObject<{
43
+ type: z.ZodUnion<readonly [z.ZodLiteral<GitPushOperationType.PUSH_TABLE>, z.ZodLiteral<GitPushOperationType.DELETE_TABLE>]>;
44
+ commitMessage: z.ZodString;
45
+ externalTableIds: z.ZodArray<z.ZodString>;
46
+ }, z.core.$strip>;
47
+ export type PushTablesGitRepoRequest = z.infer<typeof PushTablesGitRepoRequest>;
48
+ export declare const PushEverythingGitRepoRequest: z.ZodObject<{
49
+ type: z.ZodLiteral<GitPushOperationType.PUSH_EVERYTHING>;
50
+ commitMessage: z.ZodString;
51
+ }, z.core.$strip>;
52
+ export type PushEverythingGitRepoRequest = z.infer<typeof PushEverythingGitRepoRequest>;
53
+ export declare const PushGitRepoRequest: z.ZodUnion<readonly [z.ZodObject<{
54
+ type: z.ZodUnion<readonly [z.ZodLiteral<GitPushOperationType.PUSH_FLOW>, z.ZodLiteral<GitPushOperationType.DELETE_FLOW>]>;
55
+ commitMessage: z.ZodString;
56
+ externalFlowIds: z.ZodArray<z.ZodString>;
57
+ }, z.core.$strip>, z.ZodObject<{
58
+ type: z.ZodUnion<readonly [z.ZodLiteral<GitPushOperationType.PUSH_TABLE>, z.ZodLiteral<GitPushOperationType.DELETE_TABLE>]>;
59
+ commitMessage: z.ZodString;
60
+ externalTableIds: z.ZodArray<z.ZodString>;
61
+ }, z.core.$strip>, z.ZodObject<{
62
+ type: z.ZodLiteral<GitPushOperationType.PUSH_EVERYTHING>;
63
+ commitMessage: z.ZodString;
64
+ }, z.core.$strip>]>;
65
+ export type PushGitRepoRequest = z.infer<typeof PushGitRepoRequest>;
66
+ export declare const ConfigureRepoRequest: z.ZodObject<{
67
+ projectId: z.ZodString;
68
+ remoteUrl: z.ZodString;
69
+ branch: z.ZodString;
70
+ branchType: z.ZodEnum<typeof GitBranchType>;
71
+ sshPrivateKey: z.ZodString;
72
+ slug: z.ZodString;
73
+ }, z.core.$strip>;
74
+ export type ConfigureRepoRequest = z.infer<typeof ConfigureRepoRequest>;
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ConfigureRepoRequest = exports.PushGitRepoRequest = exports.PushEverythingGitRepoRequest = exports.PushTablesGitRepoRequest = exports.PushFlowsGitRepoRequest = exports.GitPushOperationType = exports.GitRepoWithoutSensitiveData = exports.GitRepo = exports.GitBranchType = 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
  var GitBranchType;
7
7
  (function (GitBranchType) {
8
8
  GitBranchType["PRODUCTION"] = "PRODUCTION";
9
9
  GitBranchType["DEVELOPMENT"] = "DEVELOPMENT";
10
10
  })(GitBranchType || (exports.GitBranchType = GitBranchType = {}));
11
- exports.GitRepo = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { remoteUrl: typebox_1.Type.String(), branch: typebox_1.Type.String(), branchType: typebox_1.Type.Enum(GitBranchType), projectId: typebox_1.Type.String(), sshPrivateKey: typebox_1.Type.String(), slug: typebox_1.Type.String() }));
12
- exports.GitRepoWithoutSensitiveData = typebox_1.Type.Omit(exports.GitRepo, ['sshPrivateKey']);
11
+ exports.GitRepo = zod_1.z.object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { remoteUrl: zod_1.z.string(), branch: zod_1.z.string(), branchType: zod_1.z.nativeEnum(GitBranchType), projectId: zod_1.z.string(), sshPrivateKey: (0, base_model_1.Nullable)(zod_1.z.string()), slug: zod_1.z.string() }));
12
+ exports.GitRepoWithoutSensitiveData = exports.GitRepo.omit({ sshPrivateKey: true });
13
13
  var GitPushOperationType;
14
14
  (function (GitPushOperationType) {
15
15
  GitPushOperationType["PUSH_FLOW"] = "PUSH_FLOW";
@@ -18,43 +18,27 @@ var GitPushOperationType;
18
18
  GitPushOperationType["DELETE_TABLE"] = "DELETE_TABLE";
19
19
  GitPushOperationType["PUSH_EVERYTHING"] = "PUSH_EVERYTHING";
20
20
  })(GitPushOperationType || (exports.GitPushOperationType = GitPushOperationType = {}));
21
- exports.PushFlowsGitRepoRequest = typebox_1.Type.Object({
22
- type: typebox_1.Type.Union([typebox_1.Type.Literal(GitPushOperationType.PUSH_FLOW), typebox_1.Type.Literal(GitPushOperationType.DELETE_FLOW)]),
23
- commitMessage: typebox_1.Type.String({
24
- minLength: 1,
25
- }),
26
- externalFlowIds: typebox_1.Type.Array(typebox_1.Type.String()),
21
+ exports.PushFlowsGitRepoRequest = zod_1.z.object({
22
+ type: zod_1.z.union([zod_1.z.literal(GitPushOperationType.PUSH_FLOW), zod_1.z.literal(GitPushOperationType.DELETE_FLOW)]),
23
+ commitMessage: zod_1.z.string().min(1),
24
+ externalFlowIds: zod_1.z.array(zod_1.z.string()),
27
25
  });
28
- exports.PushTablesGitRepoRequest = typebox_1.Type.Object({
29
- type: typebox_1.Type.Union([typebox_1.Type.Literal(GitPushOperationType.PUSH_TABLE), typebox_1.Type.Literal(GitPushOperationType.DELETE_TABLE)]),
30
- commitMessage: typebox_1.Type.String({
31
- minLength: 1,
32
- }),
33
- externalTableIds: typebox_1.Type.Array(typebox_1.Type.String()),
26
+ exports.PushTablesGitRepoRequest = zod_1.z.object({
27
+ type: zod_1.z.union([zod_1.z.literal(GitPushOperationType.PUSH_TABLE), zod_1.z.literal(GitPushOperationType.DELETE_TABLE)]),
28
+ commitMessage: zod_1.z.string().min(1),
29
+ externalTableIds: zod_1.z.array(zod_1.z.string()),
34
30
  });
35
- exports.PushEverythingGitRepoRequest = typebox_1.Type.Object({
36
- type: typebox_1.Type.Literal(GitPushOperationType.PUSH_EVERYTHING),
37
- commitMessage: typebox_1.Type.String({
38
- minLength: 1,
39
- }),
31
+ exports.PushEverythingGitRepoRequest = zod_1.z.object({
32
+ type: zod_1.z.literal(GitPushOperationType.PUSH_EVERYTHING),
33
+ commitMessage: zod_1.z.string().min(1),
40
34
  });
41
- exports.PushGitRepoRequest = typebox_1.Type.Union([exports.PushFlowsGitRepoRequest, exports.PushTablesGitRepoRequest, exports.PushEverythingGitRepoRequest]);
42
- exports.ConfigureRepoRequest = typebox_1.Type.Object({
43
- projectId: typebox_1.Type.String({
44
- minLength: 1,
45
- }),
46
- remoteUrl: typebox_1.Type.String({
47
- pattern: '^git@',
48
- }),
49
- branch: typebox_1.Type.String({
50
- minLength: 1,
51
- }),
52
- branchType: typebox_1.Type.Enum(GitBranchType),
53
- sshPrivateKey: typebox_1.Type.String({
54
- minLength: 1,
55
- }),
56
- slug: typebox_1.Type.String({
57
- minLength: 1,
58
- }),
35
+ exports.PushGitRepoRequest = zod_1.z.union([exports.PushFlowsGitRepoRequest, exports.PushTablesGitRepoRequest, exports.PushEverythingGitRepoRequest]);
36
+ exports.ConfigureRepoRequest = zod_1.z.object({
37
+ projectId: zod_1.z.string().min(1),
38
+ remoteUrl: zod_1.z.string().regex(/^git@/),
39
+ branch: zod_1.z.string().min(1),
40
+ branchType: zod_1.z.nativeEnum(GitBranchType),
41
+ sshPrivateKey: zod_1.z.string().min(1),
42
+ slug: zod_1.z.string().min(1),
59
43
  });
60
44
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/ee/git-repo/index.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/ee/git-repo/index.ts"],"names":[],"mappings":"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"}
@@ -1,5 +1,5 @@
1
- import { Static } from '@sinclair/typebox';
2
- export declare const ManagedAuthnRequestBody: import("@sinclair/typebox").TObject<{
3
- externalAccessToken: import("@sinclair/typebox").TString;
4
- }>;
5
- export type ManagedAuthnRequestBody = Static<typeof ManagedAuthnRequestBody>;
1
+ import { z } from 'zod';
2
+ export declare const ManagedAuthnRequestBody: z.ZodObject<{
3
+ externalAccessToken: z.ZodString;
4
+ }, z.core.$strip>;
5
+ export type ManagedAuthnRequestBody = z.infer<typeof ManagedAuthnRequestBody>;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ManagedAuthnRequestBody = void 0;
4
- const typebox_1 = require("@sinclair/typebox");
5
- exports.ManagedAuthnRequestBody = typebox_1.Type.Object({
6
- //if you change this you need to update the embed-sdk I can't import it there because it can't have dependencies
7
- externalAccessToken: typebox_1.Type.String(),
4
+ const zod_1 = require("zod");
5
+ exports.ManagedAuthnRequestBody = zod_1.z.object({
6
+ //if you change this you need to update the embed-sdk I can't import it there because it can't have dependencies
7
+ externalAccessToken: zod_1.z.string(),
8
8
  });
9
9
  //# sourceMappingURL=managed-authn-requests.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"managed-authn-requests.js","sourceRoot":"","sources":["../../../../../src/lib/ee/managed-authn/managed-authn-requests.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAEnC,QAAA,uBAAuB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC/C,iHAAiH;IACjH,mBAAmB,EAAE,cAAI,CAAC,MAAM,EAAE;CACrC,CAAC,CAAA"}
1
+ {"version":3,"file":"managed-authn-requests.js","sourceRoot":"","sources":["../../../../../src/lib/ee/managed-authn/managed-authn-requests.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,gHAAgH;IAChH,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE;CAClC,CAAC,CAAA"}
@@ -1,21 +1,21 @@
1
- import { Static } from '@sinclair/typebox';
2
- export declare const OAuthApp: import("@sinclair/typebox").TObject<{
3
- pieceName: import("@sinclair/typebox").TString;
4
- platformId: import("@sinclair/typebox").TString;
5
- clientId: import("@sinclair/typebox").TString;
6
- id: import("@sinclair/typebox").TString;
7
- created: import("@sinclair/typebox").TString;
8
- updated: import("@sinclair/typebox").TString;
9
- }>;
10
- export type OAuthApp = Static<typeof OAuthApp>;
11
- export declare const UpsertOAuth2AppRequest: import("@sinclair/typebox").TObject<{
12
- pieceName: import("@sinclair/typebox").TString;
13
- clientId: import("@sinclair/typebox").TString;
14
- clientSecret: import("@sinclair/typebox").TString;
15
- }>;
16
- export type UpsertOAuth2AppRequest = Static<typeof UpsertOAuth2AppRequest>;
17
- export declare const ListOAuth2AppRequest: import("@sinclair/typebox").TObject<{
18
- limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
19
- cursor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
20
- }>;
21
- export type ListOAuth2AppRequest = Static<typeof ListOAuth2AppRequest>;
1
+ import { z } from 'zod';
2
+ export declare const OAuthApp: z.ZodObject<{
3
+ pieceName: z.ZodString;
4
+ platformId: z.ZodString;
5
+ clientId: z.ZodString;
6
+ id: z.ZodString;
7
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
8
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
9
+ }, z.core.$strip>;
10
+ export type OAuthApp = z.infer<typeof OAuthApp>;
11
+ export declare const UpsertOAuth2AppRequest: z.ZodObject<{
12
+ pieceName: z.ZodString;
13
+ clientId: z.ZodString;
14
+ clientSecret: z.ZodString;
15
+ }, z.core.$strip>;
16
+ export type UpsertOAuth2AppRequest = z.infer<typeof UpsertOAuth2AppRequest>;
17
+ export declare const ListOAuth2AppRequest: z.ZodObject<{
18
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
19
+ cursor: z.ZodOptional<z.ZodString>;
20
+ }, z.core.$strip>;
21
+ export type ListOAuth2AppRequest = z.infer<typeof ListOAuth2AppRequest>;