@leaflow/sdk 0.0.0-dev.365.gf6f57d1 → 0.0.0-dev.369.g4b81cd7

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 (362) hide show
  1. package/dist/account/v1/generated/functions.d.ts +76 -2
  2. package/dist/account/v1/generated/functions.js +77 -1
  3. package/dist/account/v1/generated/models.d.ts +88 -43
  4. package/dist/account/v1/generated/models.js +19 -9
  5. package/dist/account/v1/generated/schemas.zod.d.ts +15 -1
  6. package/dist/account/v1/generated/schemas.zod.js +14 -1
  7. package/dist/account/v1/generated/validators/accountDeletionObjectionResource.zod.d.ts +32 -0
  8. package/dist/account/v1/generated/validators/accountDeletionObjectionResource.zod.js +32 -0
  9. package/dist/account/v1/generated/validators/accountDeletionResource.zod.d.ts +69 -0
  10. package/dist/account/v1/generated/validators/accountDeletionResource.zod.js +53 -0
  11. package/dist/account/v1/generated/validators/accountDeletionState.zod.d.ts +34 -0
  12. package/dist/account/v1/generated/validators/accountDeletionState.zod.js +29 -0
  13. package/dist/account/v1/generated/validators/requestAccountDeletionRequestBody.zod.d.ts +31 -0
  14. package/dist/account/v1/generated/validators/requestAccountDeletionRequestBody.zod.js +31 -0
  15. package/dist/assistant/v1/generated/functions.d.ts +31 -53
  16. package/dist/assistant/v1/generated/functions.js +32 -57
  17. package/dist/assistant/v1/generated/models.d.ts +102 -59
  18. package/dist/assistant/v1/generated/models.js +10 -0
  19. package/dist/assistant/v1/generated/schemas.zod.d.ts +26 -20
  20. package/dist/assistant/v1/generated/schemas.zod.js +39 -21
  21. package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.d.ts +2 -2
  22. package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.js +2 -2
  23. package/dist/assistant/v1/generated/validators/approvalMode.zod.d.ts +2 -2
  24. package/dist/assistant/v1/generated/validators/approvalMode.zod.js +2 -2
  25. package/dist/assistant/v1/generated/validators/attachmentResource.zod.d.ts +2 -2
  26. package/dist/assistant/v1/generated/validators/attachmentResource.zod.js +2 -2
  27. package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.d.ts +2 -2
  28. package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.js +2 -2
  29. package/dist/assistant/v1/generated/validators/bindingResource.zod.d.ts +2 -2
  30. package/dist/assistant/v1/generated/validators/bindingResource.zod.js +2 -2
  31. package/dist/assistant/v1/generated/validators/channelResource.zod.d.ts +2 -2
  32. package/dist/assistant/v1/generated/validators/channelResource.zod.js +2 -2
  33. package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.d.ts +2 -2
  34. package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.js +2 -2
  35. package/dist/assistant/v1/generated/validators/checkSenderParams.zod.d.ts +2 -2
  36. package/dist/assistant/v1/generated/validators/checkSenderParams.zod.js +2 -2
  37. package/dist/assistant/v1/generated/validators/choiceResource.zod.d.ts +2 -2
  38. package/dist/assistant/v1/generated/validators/choiceResource.zod.js +2 -2
  39. package/dist/assistant/v1/generated/validators/clientActionRequest.zod.d.ts +2 -2
  40. package/dist/assistant/v1/generated/validators/clientActionRequest.zod.js +2 -2
  41. package/dist/assistant/v1/generated/validators/clientContextPart.zod.d.ts +2 -2
  42. package/dist/assistant/v1/generated/validators/clientContextPart.zod.js +2 -2
  43. package/dist/assistant/v1/generated/validators/clientContextRequest.zod.d.ts +2 -2
  44. package/dist/assistant/v1/generated/validators/clientContextRequest.zod.js +2 -2
  45. package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.d.ts +2 -2
  46. package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.js +2 -2
  47. package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.d.ts +2 -2
  48. package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.js +2 -2
  49. package/dist/assistant/v1/generated/validators/contextUsageResource.zod.d.ts +2 -2
  50. package/dist/assistant/v1/generated/validators/contextUsageResource.zod.js +2 -2
  51. package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.d.ts +2 -2
  52. package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.js +2 -2
  53. package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.d.ts +2 -2
  54. package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.js +2 -2
  55. package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.d.ts +2 -2
  56. package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.js +2 -2
  57. package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.d.ts +2 -2
  58. package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.js +2 -2
  59. package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.d.ts +3 -2
  60. package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.js +2 -2
  61. package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.d.ts +2 -2
  62. package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.js +2 -2
  63. package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.d.ts +2 -2
  64. package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.js +2 -2
  65. package/dist/assistant/v1/generated/validators/cursorPagination.zod.d.ts +2 -2
  66. package/dist/assistant/v1/generated/validators/cursorPagination.zod.js +2 -2
  67. package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.d.ts +2 -2
  68. package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.js +2 -2
  69. package/dist/assistant/v1/generated/validators/defaultModelResource.zod.d.ts +2 -2
  70. package/dist/assistant/v1/generated/validators/defaultModelResource.zod.js +2 -2
  71. package/dist/assistant/v1/generated/validators/error.zod.d.ts +2 -2
  72. package/dist/assistant/v1/generated/validators/error.zod.js +2 -2
  73. package/dist/assistant/v1/generated/validators/fileDiffResource.zod.d.ts +2 -2
  74. package/dist/assistant/v1/generated/validators/fileDiffResource.zod.js +2 -2
  75. package/dist/assistant/v1/generated/validators/folderCountsResource.zod.d.ts +2 -2
  76. package/dist/assistant/v1/generated/validators/folderCountsResource.zod.js +2 -2
  77. package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.d.ts +2 -2
  78. package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.js +2 -2
  79. package/dist/assistant/v1/generated/validators/folderResource.zod.d.ts +2 -2
  80. package/dist/assistant/v1/generated/validators/folderResource.zod.js +2 -2
  81. package/dist/assistant/v1/generated/validators/itemFrame.zod.d.ts +2 -2
  82. package/dist/assistant/v1/generated/validators/itemFrame.zod.js +2 -2
  83. package/dist/assistant/v1/generated/validators/itemSourceResource.zod.d.ts +2 -2
  84. package/dist/assistant/v1/generated/validators/itemSourceResource.zod.js +2 -2
  85. package/dist/assistant/v1/generated/validators/lastTurnResource.zod.d.ts +2 -2
  86. package/dist/assistant/v1/generated/validators/lastTurnResource.zod.js +2 -2
  87. package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.d.ts +2 -2
  88. package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.js +2 -2
  89. package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.d.ts +2 -2
  90. package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.js +2 -2
  91. package/dist/assistant/v1/generated/validators/listBindingsParams.zod.d.ts +2 -2
  92. package/dist/assistant/v1/generated/validators/listBindingsParams.zod.js +2 -2
  93. package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.d.ts +2 -2
  94. package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.js +2 -2
  95. package/dist/assistant/v1/generated/validators/listChannelsParams.zod.d.ts +2 -2
  96. package/dist/assistant/v1/generated/validators/listChannelsParams.zod.js +2 -2
  97. package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.d.ts +2 -2
  98. package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.js +2 -2
  99. package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.d.ts +2 -2
  100. package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.js +2 -2
  101. package/dist/assistant/v1/generated/validators/{commandResource.zod.d.ts → listThreadMessagesParams.zod.d.ts} +12 -9
  102. package/dist/assistant/v1/generated/validators/{runCommandRequestBody.zod.js → listThreadMessagesParams.zod.js} +17 -14
  103. package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.d.ts +2 -2
  104. package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.js +2 -2
  105. package/dist/assistant/v1/generated/validators/loginResource.zod.d.ts +2 -2
  106. package/dist/assistant/v1/generated/validators/loginResource.zod.js +2 -2
  107. package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.d.ts +2 -2
  108. package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.js +2 -2
  109. package/dist/assistant/v1/generated/validators/memoryResource.zod.d.ts +2 -2
  110. package/dist/assistant/v1/generated/validators/memoryResource.zod.js +2 -2
  111. package/dist/assistant/v1/generated/validators/messagePart.zod.d.ts +2 -2
  112. package/dist/assistant/v1/generated/validators/messagePart.zod.js +2 -2
  113. package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.d.ts +2 -2
  114. package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.js +2 -2
  115. package/dist/assistant/v1/generated/validators/offsetPagination.zod.d.ts +2 -2
  116. package/dist/assistant/v1/generated/validators/offsetPagination.zod.js +2 -2
  117. package/dist/assistant/v1/generated/validators/openRealtimeParams.zod.d.ts +2 -2
  118. package/dist/assistant/v1/generated/validators/openRealtimeParams.zod.js +2 -2
  119. package/dist/assistant/v1/generated/validators/partResource.zod.d.ts +2 -2
  120. package/dist/assistant/v1/generated/validators/partResource.zod.js +2 -2
  121. package/dist/assistant/v1/generated/validators/pendingActionResource.zod.d.ts +2 -2
  122. package/dist/assistant/v1/generated/validators/pendingActionResource.zod.js +2 -2
  123. package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.d.ts +2 -2
  124. package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.js +2 -2
  125. package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.d.ts +3 -3
  126. package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.js +2 -2
  127. package/dist/assistant/v1/generated/validators/platformResource.zod.d.ts +3 -3
  128. package/dist/assistant/v1/generated/validators/platformResource.zod.js +2 -2
  129. package/dist/assistant/v1/generated/validators/presentationResource.zod.d.ts +2 -2
  130. package/dist/assistant/v1/generated/validators/presentationResource.zod.js +2 -2
  131. package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.d.ts +2 -2
  132. package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.js +2 -2
  133. package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.d.ts +2 -2
  134. package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.js +2 -2
  135. package/dist/assistant/v1/generated/validators/questionResource.zod.d.ts +2 -2
  136. package/dist/assistant/v1/generated/validators/questionResource.zod.js +2 -2
  137. package/dist/assistant/v1/generated/validators/realtimeClientMessage.zod.d.ts +2 -2
  138. package/dist/assistant/v1/generated/validators/realtimeClientMessage.zod.js +2 -2
  139. package/dist/assistant/v1/generated/validators/realtimeExchange.zod.d.ts +9 -2
  140. package/dist/assistant/v1/generated/validators/realtimeExchange.zod.js +2 -2
  141. package/dist/assistant/v1/generated/validators/realtimeServerMessage.zod.d.ts +9 -2
  142. package/dist/assistant/v1/generated/validators/realtimeServerMessage.zod.js +2 -2
  143. package/dist/assistant/v1/generated/validators/realtimeTicketResource.zod.d.ts +2 -2
  144. package/dist/assistant/v1/generated/validators/realtimeTicketResource.zod.js +2 -2
  145. package/dist/assistant/v1/generated/validators/reasoningEffort.zod.d.ts +2 -2
  146. package/dist/assistant/v1/generated/validators/reasoningEffort.zod.js +2 -2
  147. package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.d.ts +2 -2
  148. package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.js +2 -2
  149. package/dist/assistant/v1/generated/validators/rejectionResource.zod.d.ts +2 -2
  150. package/dist/assistant/v1/generated/validators/rejectionResource.zod.js +2 -2
  151. package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.d.ts +2 -2
  152. package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.js +2 -2
  153. package/dist/assistant/v1/generated/validators/revertRequestBody.zod.d.ts +2 -2
  154. package/dist/assistant/v1/generated/validators/revertRequestBody.zod.js +2 -2
  155. package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.d.ts +2 -2
  156. package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.js +2 -2
  157. package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.d.ts +2 -2
  158. package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.js +2 -2
  159. package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.d.ts +2 -2
  160. package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.js +2 -2
  161. package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.d.ts +2 -2
  162. package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.js +2 -2
  163. package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.d.ts +2 -2
  164. package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.js +2 -2
  165. package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.d.ts +2 -2
  166. package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.js +2 -2
  167. package/dist/assistant/v1/generated/validators/senderCheckResource.zod.d.ts +2 -2
  168. package/dist/assistant/v1/generated/validators/senderCheckResource.zod.js +2 -2
  169. package/dist/assistant/v1/generated/validators/settingsResource.zod.d.ts +2 -2
  170. package/dist/assistant/v1/generated/validators/settingsResource.zod.js +2 -2
  171. package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.d.ts +2 -2
  172. package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.js +2 -2
  173. package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.d.ts +2 -2
  174. package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.js +2 -2
  175. package/dist/assistant/v1/generated/validators/skillRequestBody.zod.d.ts +2 -2
  176. package/dist/assistant/v1/generated/validators/skillRequestBody.zod.js +2 -2
  177. package/dist/assistant/v1/generated/validators/skillResource.zod.d.ts +2 -2
  178. package/dist/assistant/v1/generated/validators/skillResource.zod.js +2 -2
  179. package/dist/assistant/v1/generated/validators/subagentCountResource.zod.d.ts +2 -2
  180. package/dist/assistant/v1/generated/validators/subagentCountResource.zod.js +2 -2
  181. package/dist/assistant/v1/generated/validators/taskAction.zod.d.ts +2 -2
  182. package/dist/assistant/v1/generated/validators/taskAction.zod.js +2 -2
  183. package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.d.ts +7 -2
  184. package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.js +2 -2
  185. package/dist/assistant/v1/generated/validators/taskResource.zod.d.ts +7 -2
  186. package/dist/assistant/v1/generated/validators/taskResource.zod.js +2 -2
  187. package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.d.ts +7 -2
  188. package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.js +2 -2
  189. package/dist/assistant/v1/generated/validators/taskRunResource.zod.d.ts +7 -2
  190. package/dist/assistant/v1/generated/validators/taskRunResource.zod.js +5 -2
  191. package/dist/assistant/v1/generated/validators/taskTrigger.zod.d.ts +2 -2
  192. package/dist/assistant/v1/generated/validators/taskTrigger.zod.js +2 -2
  193. package/dist/assistant/v1/generated/validators/threadCountsResource.zod.d.ts +2 -2
  194. package/dist/assistant/v1/generated/validators/threadCountsResource.zod.js +2 -2
  195. package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.d.ts +6 -2
  196. package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.js +2 -2
  197. package/dist/assistant/v1/generated/validators/threadItemResource.zod.d.ts +4 -2
  198. package/dist/assistant/v1/generated/validators/threadItemResource.zod.js +7 -2
  199. package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.d.ts +3 -2
  200. package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.js +2 -2
  201. package/dist/assistant/v1/generated/validators/{commandListResponseBody.zod.d.ts → threadMessageListResponseBody.zod.d.ts} +15 -10
  202. package/dist/assistant/v1/generated/validators/{commandListResponseBody.zod.js → threadMessageListResponseBody.zod.js} +10 -5
  203. package/dist/assistant/v1/generated/validators/{runCommandRequestBody.zod.d.ts → threadMessageResource.zod.d.ts} +13 -9
  204. package/dist/assistant/v1/generated/validators/{commandResultResource.zod.js → threadMessageResource.zod.js} +20 -13
  205. package/dist/assistant/v1/generated/validators/threadResource.zod.d.ts +4 -2
  206. package/dist/assistant/v1/generated/validators/threadResource.zod.js +7 -2
  207. package/dist/assistant/v1/generated/validators/threadStatus.zod.d.ts +2 -2
  208. package/dist/assistant/v1/generated/validators/threadStatus.zod.js +2 -2
  209. package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.d.ts +3 -2
  210. package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.js +2 -2
  211. package/dist/assistant/v1/generated/validators/threadTurnResource.zod.d.ts +4 -2
  212. package/dist/assistant/v1/generated/validators/threadTurnResource.zod.js +7 -2
  213. package/dist/assistant/v1/generated/validators/todoResource.zod.d.ts +2 -2
  214. package/dist/assistant/v1/generated/validators/todoResource.zod.js +2 -2
  215. package/dist/assistant/v1/generated/validators/toolCallResource.zod.d.ts +3 -2
  216. package/dist/assistant/v1/generated/validators/toolCallResource.zod.js +11 -2
  217. package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.d.ts +2 -2
  218. package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.js +2 -2
  219. package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.d.ts +2 -2
  220. package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.js +2 -2
  221. package/dist/assistant/v1/generated/validators/turnStatus.zod.d.ts +2 -2
  222. package/dist/assistant/v1/generated/validators/turnStatus.zod.js +2 -2
  223. package/dist/assistant/v1/generated/validators/turnType.zod.d.ts +2 -2
  224. package/dist/assistant/v1/generated/validators/turnType.zod.js +2 -2
  225. package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.d.ts +2 -2
  226. package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.js +2 -2
  227. package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.d.ts +2 -2
  228. package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.js +2 -2
  229. package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.d.ts +2 -2
  230. package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.js +2 -2
  231. package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.d.ts +2 -2
  232. package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.js +2 -2
  233. package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.d.ts +2 -2
  234. package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.js +2 -2
  235. package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.d.ts +2 -2
  236. package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.js +2 -2
  237. package/dist/assistant/v1/generated/validators/uploadAttachmentParams.zod.d.ts +2 -2
  238. package/dist/assistant/v1/generated/validators/uploadAttachmentParams.zod.js +2 -2
  239. package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.d.ts +2 -2
  240. package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.js +2 -2
  241. package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.d.ts +2 -2
  242. package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.js +2 -2
  243. package/dist/assistant/v1/generated/validators/uploadPartResource.zod.d.ts +2 -2
  244. package/dist/assistant/v1/generated/validators/uploadPartResource.zod.js +2 -2
  245. package/dist/assistant/v1/generated/validators/uploadResource.zod.d.ts +2 -2
  246. package/dist/assistant/v1/generated/validators/uploadResource.zod.js +2 -2
  247. package/dist/assistant/v1/generated/validators/uploadedResource.zod.d.ts +2 -2
  248. package/dist/assistant/v1/generated/validators/uploadedResource.zod.js +2 -2
  249. package/dist/assistant/v1/generated/validators/usage.zod.d.ts +2 -2
  250. package/dist/assistant/v1/generated/validators/usage.zod.js +2 -2
  251. package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.d.ts +2 -2
  252. package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.js +2 -2
  253. package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.d.ts +2 -2
  254. package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.js +2 -2
  255. package/dist/billing/type/order/v1/generated/models.d.ts +29 -0
  256. package/dist/billing/type/order/v1/generated/models.js +9 -0
  257. package/dist/billing/type/order/v1/generated/validators/accountDeletionObjection.zod.d.ts +19 -0
  258. package/dist/billing/type/order/v1/generated/validators/accountDeletionObjection.zod.js +19 -0
  259. package/dist/billing/type/order/v1/generated/validators/accountDeletionReadiness.zod.d.ts +45 -0
  260. package/dist/billing/type/order/v1/generated/validators/accountDeletionReadiness.zod.js +14 -0
  261. package/dist/billing/type/order/v1/generated/validators/accountDeletionReadinessItem.zod.d.ts +43 -0
  262. package/dist/billing/type/order/v1/generated/validators/accountDeletionReadinessItem.zod.js +19 -0
  263. package/dist/billing/type/order/v1/generated/validators/cancellation.zod.d.ts +2 -2
  264. package/dist/billing/type/order/v1/generated/validators/cancellationItem.zod.d.ts +1 -1
  265. package/dist/billing/type/order/v1/generated/validators/cancellationList.zod.d.ts +2 -2
  266. package/dist/billing/type/order/v1/generated/validators/contact.zod.d.ts +1 -1
  267. package/dist/billing/type/order/v1/generated/validators/contactList.zod.d.ts +1 -1
  268. package/dist/billing/type/order/v1/generated/validators/discount.zod.d.ts +1 -1
  269. package/dist/billing/type/order/v1/generated/validators/discountList.zod.d.ts +1 -1
  270. package/dist/billing/type/order/v1/generated/validators/featureGrant.zod.d.ts +1 -1
  271. package/dist/billing/type/order/v1/generated/validators/featureGrantList.zod.d.ts +1 -1
  272. package/dist/billing/type/order/v1/generated/validators/featureGrantStatus.zod.d.ts +1 -1
  273. package/dist/billing/type/order/v1/generated/validators/invoice.zod.d.ts +1 -1
  274. package/dist/billing/type/order/v1/generated/validators/invoiceList.zod.d.ts +1 -1
  275. package/dist/billing/type/order/v1/generated/validators/subscription.zod.d.ts +1 -1
  276. package/dist/billing/type/order/v1/generated/validators/subscriptionCancellation.zod.d.ts +1 -1
  277. package/dist/billing/type/order/v1/generated/validators/subscriptionList.zod.d.ts +1 -1
  278. package/dist/billing/v1/generated/functions.d.ts +27 -1
  279. package/dist/billing/v1/generated/functions.js +21 -0
  280. package/dist/billing/v1/generated/models.d.ts +29 -0
  281. package/dist/billing/v1/generated/models.js +9 -0
  282. package/dist/billing/v1/generated/schemas.zod.d.ts +2 -2
  283. package/dist/billing/v1/generated/validators/accountDeletionObjection.zod.d.ts +19 -0
  284. package/dist/billing/v1/generated/validators/accountDeletionObjection.zod.js +19 -0
  285. package/dist/billing/v1/generated/validators/accountDeletionReadiness.zod.d.ts +45 -0
  286. package/dist/billing/v1/generated/validators/accountDeletionReadiness.zod.js +14 -0
  287. package/dist/billing/v1/generated/validators/accountDeletionReadinessItem.zod.d.ts +43 -0
  288. package/dist/billing/v1/generated/validators/accountDeletionReadinessItem.zod.js +19 -0
  289. package/dist/billing/v1/generated/validators/cancellation.zod.d.ts +2 -2
  290. package/dist/billing/v1/generated/validators/cancellationItem.zod.d.ts +1 -1
  291. package/dist/billing/v1/generated/validators/cancellationList.zod.d.ts +2 -2
  292. package/dist/billing/v1/generated/validators/contact.zod.d.ts +1 -1
  293. package/dist/billing/v1/generated/validators/contactList.zod.d.ts +1 -1
  294. package/dist/billing/v1/generated/validators/discount.zod.d.ts +1 -1
  295. package/dist/billing/v1/generated/validators/discountList.zod.d.ts +1 -1
  296. package/dist/billing/v1/generated/validators/featureGrant.zod.d.ts +1 -1
  297. package/dist/billing/v1/generated/validators/featureGrantList.zod.d.ts +1 -1
  298. package/dist/billing/v1/generated/validators/featureGrantStatus.zod.d.ts +1 -1
  299. package/dist/billing/v1/generated/validators/invoice.zod.d.ts +1 -1
  300. package/dist/billing/v1/generated/validators/invoiceList.zod.d.ts +1 -1
  301. package/dist/billing/v1/generated/validators/listCancellationsParams.zod.d.ts +1 -1
  302. package/dist/billing/v1/generated/validators/listFeatureGrantsParams.zod.d.ts +1 -1
  303. package/dist/billing/v1/generated/validators/subscription.zod.d.ts +1 -1
  304. package/dist/billing/v1/generated/validators/subscriptionCancellation.zod.d.ts +1 -1
  305. package/dist/billing/v1/generated/validators/subscriptionList.zod.d.ts +1 -1
  306. package/dist/canopy/v1/generated/models.d.ts +29 -0
  307. package/dist/canopy/v1/generated/models.js +9 -0
  308. package/dist/canopy/v1/generated/validators/accountDeletionObjection.zod.d.ts +52 -0
  309. package/dist/canopy/v1/generated/validators/accountDeletionObjection.zod.js +52 -0
  310. package/dist/canopy/v1/generated/validators/accountDeletionReadiness.zod.d.ts +78 -0
  311. package/dist/canopy/v1/generated/validators/accountDeletionReadiness.zod.js +47 -0
  312. package/dist/canopy/v1/generated/validators/accountDeletionReadinessItem.zod.d.ts +76 -0
  313. package/dist/canopy/v1/generated/validators/accountDeletionReadinessItem.zod.js +52 -0
  314. package/dist/canopy/v1/generated/validators/cancellation.zod.d.ts +2 -2
  315. package/dist/canopy/v1/generated/validators/cancellationItem.zod.d.ts +1 -1
  316. package/dist/canopy/v1/generated/validators/cancellationList.zod.d.ts +2 -2
  317. package/dist/canopy/v1/generated/validators/contact.zod.d.ts +1 -1
  318. package/dist/canopy/v1/generated/validators/contactList.zod.d.ts +1 -1
  319. package/dist/canopy/v1/generated/validators/discount.zod.d.ts +1 -1
  320. package/dist/canopy/v1/generated/validators/discountList.zod.d.ts +1 -1
  321. package/dist/canopy/v1/generated/validators/featureGrant.zod.d.ts +1 -1
  322. package/dist/canopy/v1/generated/validators/featureGrantList.zod.d.ts +1 -1
  323. package/dist/canopy/v1/generated/validators/featureGrantStatus.zod.d.ts +1 -1
  324. package/dist/canopy/v1/generated/validators/invoice.zod.d.ts +1 -1
  325. package/dist/canopy/v1/generated/validators/invoiceList.zod.d.ts +1 -1
  326. package/dist/canopy/v1/generated/validators/subscription.zod.d.ts +1 -1
  327. package/dist/canopy/v1/generated/validators/subscriptionCancellation.zod.d.ts +1 -1
  328. package/dist/canopy/v1/generated/validators/subscriptionList.zod.d.ts +1 -1
  329. package/dist/membership/v1/generated/functions.d.ts +3 -3
  330. package/dist/membership/v1/generated/functions.js +3 -3
  331. package/dist/membership/v1/generated/models.d.ts +29 -0
  332. package/dist/membership/v1/generated/models.js +9 -0
  333. package/dist/membership/v1/generated/schemas.zod.d.ts +3 -3
  334. package/dist/membership/v1/generated/schemas.zod.js +3 -3
  335. package/dist/membership/v1/generated/validators/accountDeletionObjection.zod.d.ts +19 -0
  336. package/dist/membership/v1/generated/validators/accountDeletionObjection.zod.js +19 -0
  337. package/dist/membership/v1/generated/validators/accountDeletionReadiness.zod.d.ts +45 -0
  338. package/dist/membership/v1/generated/validators/accountDeletionReadiness.zod.js +14 -0
  339. package/dist/membership/v1/generated/validators/accountDeletionReadinessItem.zod.d.ts +43 -0
  340. package/dist/membership/v1/generated/validators/accountDeletionReadinessItem.zod.js +19 -0
  341. package/dist/membership/v1/generated/validators/cancellation.zod.d.ts +2 -2
  342. package/dist/membership/v1/generated/validators/cancellationItem.zod.d.ts +1 -1
  343. package/dist/membership/v1/generated/validators/cancellationList.zod.d.ts +2 -2
  344. package/dist/membership/v1/generated/validators/contact.zod.d.ts +1 -1
  345. package/dist/membership/v1/generated/validators/contactList.zod.d.ts +1 -1
  346. package/dist/membership/v1/generated/validators/discount.zod.d.ts +1 -1
  347. package/dist/membership/v1/generated/validators/discountList.zod.d.ts +1 -1
  348. package/dist/membership/v1/generated/validators/featureGrant.zod.d.ts +1 -1
  349. package/dist/membership/v1/generated/validators/featureGrantList.zod.d.ts +1 -1
  350. package/dist/membership/v1/generated/validators/featureGrantStatus.zod.d.ts +1 -1
  351. package/dist/membership/v1/generated/validators/invoice.zod.d.ts +1 -1
  352. package/dist/membership/v1/generated/validators/invoiceList.zod.d.ts +1 -1
  353. package/dist/membership/v1/generated/validators/subscription.zod.d.ts +1 -1
  354. package/dist/membership/v1/generated/validators/subscriptionCancellation.zod.d.ts +1 -1
  355. package/dist/membership/v1/generated/validators/subscriptionList.zod.d.ts +1 -1
  356. package/dist/routes.d.ts +40 -16
  357. package/dist/routes.js +45 -18
  358. package/package.json +1 -1
  359. package/dist/assistant/v1/generated/validators/commandResource.zod.js +0 -33
  360. package/dist/assistant/v1/generated/validators/commandResultResource.zod.d.ts +0 -201
  361. package/dist/assistant/v1/generated/validators/statusReportResource.zod.d.ts +0 -108
  362. package/dist/assistant/v1/generated/validators/statusReportResource.zod.js +0 -48
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Leaflow Canopy API
5
+ * Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
6
+ *
7
+ * Project inference is served on this host in each provider's own protocol:
8
+ *
9
+ * - OpenAI: `/v1/chat/completions`, `/v1/responses` and `/v1/embeddings`; use
10
+ * `https://canopy.leaflow.cloud/v1` as the OpenAI SDK base URL.
11
+ * - Anthropic: `/v1/messages`; use `https://canopy.leaflow.cloud` as the Anthropic SDK base URL.
12
+ * - Gemini: `/v1beta/models/{model}:generateContent` and `:streamGenerateContent`.
13
+ *
14
+ * Canopy does not convert between protocols. A request is accepted only for a model whose
15
+ * `supported_endpoints` lists the endpoint it was sent to, and it is forwarded unchanged except for
16
+ * the model name and the credentials. Reasoning settings such as `reasoning_effort` are passed
17
+ * through as written; a model's `capabilities` lists the values its upstream accepts.
18
+ *
19
+ * Management operations use `/api/v1`. The management model catalogue includes pricing;
20
+ * `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
21
+ *
22
+ * ## Authentication
23
+ *
24
+ * Every request carries a scoped token; see the `bearerAuth` security scheme.
25
+ *
26
+ * Management and project inference accept the same verified IAM scoped token. The token is the
27
+ * sole billing project authority; `OpenAI-Project` and historical identity headers cannot
28
+ * override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
29
+ * accepts Canopy API keys and serves the same endpoints.
30
+ *
31
+ * ## Conventions
32
+ *
33
+ * - **The plaintext of an API key is returned once.** The `secret` appears in the response that issues it and is returned by no other endpoint. A key that has been lost has to be revoked and reissued.
34
+ * - **Disabling and revoking are distinct.** A disabled key may be enabled again at any time, while a revocation is irreversible and is intended for a key that has been exposed. Neither removes the record, and the usage the key accrued remains readable.
35
+ * - **A usage query must carry a time range**, spanning no more than 31 days. `from` and `to` carry a timezone offset, which the server does not infer.
36
+ * - **The request and response bodies do not appear in the ledger.** They are not recorded. Quote the `upstream_request_id` from the response when reporting a problem.
37
+ * - **Usage may be estimated.** The upstream provider does not report usage on every request. Where it does not, `usage_source` is `estimated` and the figures are derived from the character classes of the payload, to within roughly fifteen per cent.
38
+ * - **The service is enabled before use.** A project enables the model platform once, through `create-service`; the forwarding endpoints refuse its requests until the service is `active`. Requests are then billed under the service's subscription by the tokens they use, at the rates stated in each model's `pricing`.
39
+ * OpenAPI spec version: 1.0.0
40
+ */
41
+ import * as zod from "zod";
42
+ export declare const AccountDeletionReadinessItem: zod.ZodObject<{
43
+ account: zod.ZodObject<{
44
+ invoice_contact_id: zod.ZodOptional<zod.ZodNullable<zod.ZodUUID>>;
45
+ id: zod.ZodInt;
46
+ name: zod.ZodOptional<zod.ZodString>;
47
+ currency: zod.ZodString;
48
+ status: zod.ZodEnum<{
49
+ active: "active";
50
+ suspended: "suspended";
51
+ closed: "closed";
52
+ }>;
53
+ suspended_by: zod.ZodEnum<{
54
+ none: "none";
55
+ operator: "operator";
56
+ owner: "owner";
57
+ }>;
58
+ grace_amount: zod.ZodOptional<zod.ZodString>;
59
+ grace_period_seconds: zod.ZodOptional<zod.ZodInt>;
60
+ closed_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
61
+ created_at: zod.z.ZodISODateTime;
62
+ }, zod.z.core.$strict>;
63
+ balance: zod.ZodString;
64
+ credits: zod.ZodString;
65
+ objections: zod.ZodArray<zod.ZodEnum<{
66
+ ARREARS: "ARREARS";
67
+ PROJECTS_ASSIGNED: "PROJECTS_ASSIGNED";
68
+ ACTIVE_SUBSCRIPTION: "ACTIVE_SUBSCRIPTION";
69
+ OPEN_ORDER: "OPEN_ORDER";
70
+ UNPAID_INVOICE: "UNPAID_INVOICE";
71
+ UNBILLED_USAGE: "UNBILLED_USAGE";
72
+ PENDING_TRANSACTION: "PENDING_TRANSACTION";
73
+ }>>;
74
+ }, zod.z.core.$strict>;
75
+ export type AccountDeletionReadinessItem = zod.input<typeof AccountDeletionReadinessItem>;
76
+ export type AccountDeletionReadinessItemOutput = zod.output<typeof AccountDeletionReadinessItem>;
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Leaflow Canopy API
5
+ * Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
6
+ *
7
+ * Project inference is served on this host in each provider's own protocol:
8
+ *
9
+ * - OpenAI: `/v1/chat/completions`, `/v1/responses` and `/v1/embeddings`; use
10
+ * `https://canopy.leaflow.cloud/v1` as the OpenAI SDK base URL.
11
+ * - Anthropic: `/v1/messages`; use `https://canopy.leaflow.cloud` as the Anthropic SDK base URL.
12
+ * - Gemini: `/v1beta/models/{model}:generateContent` and `:streamGenerateContent`.
13
+ *
14
+ * Canopy does not convert between protocols. A request is accepted only for a model whose
15
+ * `supported_endpoints` lists the endpoint it was sent to, and it is forwarded unchanged except for
16
+ * the model name and the credentials. Reasoning settings such as `reasoning_effort` are passed
17
+ * through as written; a model's `capabilities` lists the values its upstream accepts.
18
+ *
19
+ * Management operations use `/api/v1`. The management model catalogue includes pricing;
20
+ * `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
21
+ *
22
+ * ## Authentication
23
+ *
24
+ * Every request carries a scoped token; see the `bearerAuth` security scheme.
25
+ *
26
+ * Management and project inference accept the same verified IAM scoped token. The token is the
27
+ * sole billing project authority; `OpenAI-Project` and historical identity headers cannot
28
+ * override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
29
+ * accepts Canopy API keys and serves the same endpoints.
30
+ *
31
+ * ## Conventions
32
+ *
33
+ * - **The plaintext of an API key is returned once.** The `secret` appears in the response that issues it and is returned by no other endpoint. A key that has been lost has to be revoked and reissued.
34
+ * - **Disabling and revoking are distinct.** A disabled key may be enabled again at any time, while a revocation is irreversible and is intended for a key that has been exposed. Neither removes the record, and the usage the key accrued remains readable.
35
+ * - **A usage query must carry a time range**, spanning no more than 31 days. `from` and `to` carry a timezone offset, which the server does not infer.
36
+ * - **The request and response bodies do not appear in the ledger.** They are not recorded. Quote the `upstream_request_id` from the response when reporting a problem.
37
+ * - **Usage may be estimated.** The upstream provider does not report usage on every request. Where it does not, `usage_source` is `estimated` and the figures are derived from the character classes of the payload, to within roughly fifteen per cent.
38
+ * - **The service is enabled before use.** A project enables the model platform once, through `create-service`; the forwarding endpoints refuse its requests until the service is `active`. Requests are then billed under the service's subscription by the tokens they use, at the rates stated in each model's `pricing`.
39
+ * OpenAPI spec version: 1.0.0
40
+ */
41
+ import * as zod from "zod";
42
+ import { AccountDeletionObjection } from "./accountDeletionObjection.zod.js";
43
+ import { BillingAccount } from "./billingAccount.zod.js";
44
+ import { Money } from "./money.zod.js";
45
+ export const AccountDeletionReadinessItem = zod.strictObject({
46
+ account: BillingAccount,
47
+ balance: Money.describe("Topped-up funds, in the account's currency, forfeited when it closes. Negative means arrears."),
48
+ credits: Money.describe("Remaining credit, in the account's currency, forfeited when it closes."),
49
+ objections: zod
50
+ .array(AccountDeletionObjection)
51
+ .describe("What stops this account from closing; empty when it can close."),
52
+ });
@@ -42,10 +42,10 @@ import * as zod from "zod";
42
42
  export declare const Cancellation: zod.ZodObject<{
43
43
  id: zod.ZodUUID;
44
44
  status: zod.ZodEnum<{
45
+ scheduled: "scheduled";
45
46
  completed: "completed";
46
47
  failed: "failed";
47
48
  requested: "requested";
48
- scheduled: "scheduled";
49
49
  releasing: "releasing";
50
50
  canceled: "canceled";
51
51
  }>;
@@ -81,10 +81,10 @@ export declare const Cancellation: zod.ZodObject<{
81
81
  metered: "metered";
82
82
  }>;
83
83
  status: zod.ZodEnum<{
84
+ scheduled: "scheduled";
84
85
  completed: "completed";
85
86
  failed: "failed";
86
87
  requested: "requested";
87
- scheduled: "scheduled";
88
88
  releasing: "releasing";
89
89
  canceled: "canceled";
90
90
  }>;
@@ -53,10 +53,10 @@ export declare const CancellationItem: zod.ZodObject<{
53
53
  metered: "metered";
54
54
  }>;
55
55
  status: zod.ZodEnum<{
56
+ scheduled: "scheduled";
56
57
  completed: "completed";
57
58
  failed: "failed";
58
59
  requested: "requested";
59
- scheduled: "scheduled";
60
60
  releasing: "releasing";
61
61
  canceled: "canceled";
62
62
  }>;
@@ -43,10 +43,10 @@ export declare const CancellationList: zod.ZodObject<{
43
43
  items: zod.ZodArray<zod.ZodObject<{
44
44
  id: zod.ZodUUID;
45
45
  status: zod.ZodEnum<{
46
+ scheduled: "scheduled";
46
47
  completed: "completed";
47
48
  failed: "failed";
48
49
  requested: "requested";
49
- scheduled: "scheduled";
50
50
  releasing: "releasing";
51
51
  canceled: "canceled";
52
52
  }>;
@@ -82,10 +82,10 @@ export declare const CancellationList: zod.ZodObject<{
82
82
  metered: "metered";
83
83
  }>;
84
84
  status: zod.ZodEnum<{
85
+ scheduled: "scheduled";
85
86
  completed: "completed";
86
87
  failed: "failed";
87
88
  requested: "requested";
88
- scheduled: "scheduled";
89
89
  releasing: "releasing";
90
90
  canceled: "canceled";
91
91
  }>;
@@ -63,8 +63,8 @@ export declare const Contact: zod.ZodObject<{
63
63
  address_postal_code: zod.ZodOptional<zod.ZodString>;
64
64
  address_country: zod.ZodOptional<zod.ZodString>;
65
65
  tax_exempt: zod.ZodEnum<{
66
- reverse: "reverse";
67
66
  none: "none";
67
+ reverse: "reverse";
68
68
  exempt: "exempt";
69
69
  }>;
70
70
  active: zod.ZodBoolean;
@@ -54,8 +54,8 @@ export declare const ContactList: zod.ZodObject<{
54
54
  address_postal_code: zod.ZodOptional<zod.ZodString>;
55
55
  address_country: zod.ZodOptional<zod.ZodString>;
56
56
  tax_exempt: zod.ZodEnum<{
57
- reverse: "reverse";
58
57
  none: "none";
58
+ reverse: "reverse";
59
59
  exempt: "exempt";
60
60
  }>;
61
61
  active: zod.ZodBoolean;
@@ -45,9 +45,9 @@ export declare const Discount: zod.ZodObject<{
45
45
  coupon_id: zod.ZodUUID;
46
46
  promotion_code_id: zod.ZodOptional<zod.ZodUUID>;
47
47
  status: zod.ZodEnum<{
48
+ scheduled: "scheduled";
48
49
  active: "active";
49
50
  expired: "expired";
50
- scheduled: "scheduled";
51
51
  voided: "voided";
52
52
  }>;
53
53
  voided_at: zod.ZodOptional<zod.z.ZodISODateTime>;
@@ -46,9 +46,9 @@ export declare const DiscountList: zod.ZodObject<{
46
46
  coupon_id: zod.ZodUUID;
47
47
  promotion_code_id: zod.ZodOptional<zod.ZodUUID>;
48
48
  status: zod.ZodEnum<{
49
+ scheduled: "scheduled";
49
50
  active: "active";
50
51
  expired: "expired";
51
- scheduled: "scheduled";
52
52
  voided: "voided";
53
53
  }>;
54
54
  voided_at: zod.ZodOptional<zod.z.ZodISODateTime>;
@@ -56,9 +56,9 @@ export declare const FeatureGrant: zod.ZodObject<{
56
56
  valid_from: zod.z.ZodISODateTime;
57
57
  valid_until: zod.ZodNullable<zod.z.ZodISODateTime>;
58
58
  status: zod.ZodEnum<{
59
+ scheduled: "scheduled";
59
60
  active: "active";
60
61
  expired: "expired";
61
- scheduled: "scheduled";
62
62
  voided: "voided";
63
63
  }>;
64
64
  }, zod.z.core.$strict>;
@@ -57,9 +57,9 @@ export declare const FeatureGrantList: zod.ZodObject<{
57
57
  valid_from: zod.z.ZodISODateTime;
58
58
  valid_until: zod.ZodNullable<zod.z.ZodISODateTime>;
59
59
  status: zod.ZodEnum<{
60
+ scheduled: "scheduled";
60
61
  active: "active";
61
62
  expired: "expired";
62
- scheduled: "scheduled";
63
63
  voided: "voided";
64
64
  }>;
65
65
  }, zod.z.core.$strict>>;
@@ -40,9 +40,9 @@
40
40
  */
41
41
  import * as zod from "zod";
42
42
  export declare const FeatureGrantStatus: zod.ZodEnum<{
43
+ scheduled: "scheduled";
43
44
  active: "active";
44
45
  expired: "expired";
45
- scheduled: "scheduled";
46
46
  voided: "voided";
47
47
  }>;
48
48
  export type FeatureGrantStatus = zod.input<typeof FeatureGrantStatus>;
@@ -79,8 +79,8 @@ export declare const Invoice: zod.ZodObject<{
79
79
  customer_email: zod.ZodOptional<zod.ZodString>;
80
80
  customer_tax_id: zod.ZodOptional<zod.ZodString>;
81
81
  customer_tax_exempt: zod.ZodOptional<zod.ZodEnum<{
82
- reverse: "reverse";
83
82
  none: "none";
83
+ reverse: "reverse";
84
84
  exempt: "exempt";
85
85
  }>>;
86
86
  customer_address_line1: zod.ZodOptional<zod.ZodString>;
@@ -80,8 +80,8 @@ export declare const InvoiceList: zod.ZodObject<{
80
80
  customer_email: zod.ZodOptional<zod.ZodString>;
81
81
  customer_tax_id: zod.ZodOptional<zod.ZodString>;
82
82
  customer_tax_exempt: zod.ZodOptional<zod.ZodEnum<{
83
- reverse: "reverse";
84
83
  none: "none";
84
+ reverse: "reverse";
85
85
  exempt: "exempt";
86
86
  }>>;
87
87
  customer_address_line1: zod.ZodOptional<zod.ZodString>;
@@ -94,10 +94,10 @@ export declare const Subscription: zod.ZodObject<{
94
94
  id: zod.ZodUUID;
95
95
  subscription_id: zod.ZodUUID;
96
96
  status: zod.ZodEnum<{
97
+ scheduled: "scheduled";
97
98
  completed: "completed";
98
99
  failed: "failed";
99
100
  requested: "requested";
100
- scheduled: "scheduled";
101
101
  releasing: "releasing";
102
102
  canceled: "canceled";
103
103
  }>;
@@ -45,10 +45,10 @@ export declare const SubscriptionCancellation: zod.ZodObject<{
45
45
  id: zod.ZodUUID;
46
46
  subscription_id: zod.ZodUUID;
47
47
  status: zod.ZodEnum<{
48
+ scheduled: "scheduled";
48
49
  completed: "completed";
49
50
  failed: "failed";
50
51
  requested: "requested";
51
- scheduled: "scheduled";
52
52
  releasing: "releasing";
53
53
  canceled: "canceled";
54
54
  }>;
@@ -94,10 +94,10 @@ export declare const SubscriptionList: zod.ZodObject<{
94
94
  id: zod.ZodUUID;
95
95
  subscription_id: zod.ZodUUID;
96
96
  status: zod.ZodEnum<{
97
+ scheduled: "scheduled";
97
98
  completed: "completed";
98
99
  failed: "failed";
99
100
  requested: "requested";
100
- scheduled: "scheduled";
101
101
  releasing: "releasing";
102
102
  canceled: "canceled";
103
103
  }>;
@@ -92,7 +92,7 @@ export type createMembershipResponseError = createMembershipResponseDefault & {
92
92
  export type createMembershipResponse = createMembershipResponseSuccess | createMembershipResponseError;
93
93
  export declare const getCreateMembershipUrl: () => string;
94
94
  /**
95
- * Places a purchase order and returns the membership and invoice. Activation follows successful benefit issuance and delivery confirmation. Returns 409 MEMBERSHIP_EXISTS or 422 MEMBERSHIP_PLAN_UNAVAILABLE.
95
+ * Places a purchase order and returns the membership and invoice. Activation follows successful benefit issuance and delivery confirmation. Returns 409 MEMBERSHIP_EXISTS or 422 MEMBERSHIP_PLAN_UNAVAILABLE. Returns 403 MEMBERSHIP_ACCOUNT_DELETING while the caller's account deletion is pending, or 403 MEMBERSHIP_ACCOUNT_UNUSABLE when the account is deleted, suspended or banned.
96
96
  * @summary Buy a membership
97
97
  */
98
98
  export declare const createMembership: (membershipCreate: MembershipCreate, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<createMembershipResponse>;
@@ -154,7 +154,7 @@ export type upgradeMembershipResponseError = upgradeMembershipResponseDefault &
154
154
  export type upgradeMembershipResponse = upgradeMembershipResponseSuccess | upgradeMembershipResponseError;
155
155
  export declare const getUpgradeMembershipUrl: (membershipId: string) => string;
156
156
  /**
157
- * Places an order for the full-period price difference. The upgrade takes effect after benefit issuance and delivery confirmation; renewal uses the target tier. Returns 409 MEMBERSHIP_NOT_ACTIVE or MEMBERSHIP_CHANGE_PENDING, or 422 MEMBERSHIP_UPGRADE_UNAVAILABLE.
157
+ * Places an order for the full-period price difference. The upgrade takes effect after benefit issuance and delivery confirmation; renewal uses the target tier. Returns 409 MEMBERSHIP_NOT_ACTIVE or MEMBERSHIP_CHANGE_PENDING, or 422 MEMBERSHIP_UPGRADE_UNAVAILABLE. Returns 403 MEMBERSHIP_ACCOUNT_DELETING while the caller's account deletion is pending, or 403 MEMBERSHIP_ACCOUNT_UNUSABLE when the account is deleted, suspended or banned.
158
158
  * @summary Upgrade a membership
159
159
  */
160
160
  export declare const upgradeMembership: (membershipId: string, membershipUpgrade: MembershipUpgrade, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<upgradeMembershipResponse>;
@@ -175,7 +175,7 @@ export type scheduleMembershipDowngradeResponseError = scheduleMembershipDowngra
175
175
  export type scheduleMembershipDowngradeResponse = scheduleMembershipDowngradeResponseSuccess | scheduleMembershipDowngradeResponseError;
176
176
  export declare const getScheduleMembershipDowngradeUrl: (membershipId: string) => string;
177
177
  /**
178
- * Schedules a lower tier for the next period. Current benefits remain valid. Returns 409 MEMBERSHIP_NOT_ACTIVE or MEMBERSHIP_CHANGE_PENDING, or 422 MEMBERSHIP_DOWNGRADE_INVALID.
178
+ * Schedules a lower tier for the next period. Current benefits remain valid. Returns 409 MEMBERSHIP_NOT_ACTIVE or MEMBERSHIP_CHANGE_PENDING, or 422 MEMBERSHIP_DOWNGRADE_INVALID. Returns 403 MEMBERSHIP_ACCOUNT_DELETING while the caller's account deletion is pending, or 403 MEMBERSHIP_ACCOUNT_UNUSABLE when the account is deleted, suspended or banned.
179
179
  * @summary Schedule a downgrade
180
180
  */
181
181
  export declare const scheduleMembershipDowngrade: (membershipId: string, membershipDowngrade: MembershipDowngrade, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<scheduleMembershipDowngradeResponse>;
@@ -77,7 +77,7 @@ export const getCreateMembershipUrl = () => {
77
77
  return `https://membership.leaflow.cloud/api/v1/memberships`;
78
78
  };
79
79
  /**
80
- * Places a purchase order and returns the membership and invoice. Activation follows successful benefit issuance and delivery confirmation. Returns 409 MEMBERSHIP_EXISTS or 422 MEMBERSHIP_PLAN_UNAVAILABLE.
80
+ * Places a purchase order and returns the membership and invoice. Activation follows successful benefit issuance and delivery confirmation. Returns 409 MEMBERSHIP_EXISTS or 422 MEMBERSHIP_PLAN_UNAVAILABLE. Returns 403 MEMBERSHIP_ACCOUNT_DELETING while the caller's account deletion is pending, or 403 MEMBERSHIP_ACCOUNT_UNUSABLE when the account is deleted, suspended or banned.
81
81
  * @summary Buy a membership
82
82
  */
83
83
  export const createMembership = async (membershipCreate, options, fetchFn) => {
@@ -150,7 +150,7 @@ export const getUpgradeMembershipUrl = (membershipId) => {
150
150
  return `https://membership.leaflow.cloud/api/v1/memberships/${encodeURIComponent(String(membershipId))}/upgrade`;
151
151
  };
152
152
  /**
153
- * Places an order for the full-period price difference. The upgrade takes effect after benefit issuance and delivery confirmation; renewal uses the target tier. Returns 409 MEMBERSHIP_NOT_ACTIVE or MEMBERSHIP_CHANGE_PENDING, or 422 MEMBERSHIP_UPGRADE_UNAVAILABLE.
153
+ * Places an order for the full-period price difference. The upgrade takes effect after benefit issuance and delivery confirmation; renewal uses the target tier. Returns 409 MEMBERSHIP_NOT_ACTIVE or MEMBERSHIP_CHANGE_PENDING, or 422 MEMBERSHIP_UPGRADE_UNAVAILABLE. Returns 403 MEMBERSHIP_ACCOUNT_DELETING while the caller's account deletion is pending, or 403 MEMBERSHIP_ACCOUNT_UNUSABLE when the account is deleted, suspended or banned.
154
154
  * @summary Upgrade a membership
155
155
  */
156
156
  export const upgradeMembership = async (membershipId, membershipUpgrade, options, fetchFn) => {
@@ -183,7 +183,7 @@ export const getScheduleMembershipDowngradeUrl = (membershipId) => {
183
183
  return `https://membership.leaflow.cloud/api/v1/memberships/${encodeURIComponent(String(membershipId))}/downgrade`;
184
184
  };
185
185
  /**
186
- * Schedules a lower tier for the next period. Current benefits remain valid. Returns 409 MEMBERSHIP_NOT_ACTIVE or MEMBERSHIP_CHANGE_PENDING, or 422 MEMBERSHIP_DOWNGRADE_INVALID.
186
+ * Schedules a lower tier for the next period. Current benefits remain valid. Returns 409 MEMBERSHIP_NOT_ACTIVE or MEMBERSHIP_CHANGE_PENDING, or 422 MEMBERSHIP_DOWNGRADE_INVALID. Returns 403 MEMBERSHIP_ACCOUNT_DELETING while the caller's account deletion is pending, or 403 MEMBERSHIP_ACCOUNT_UNUSABLE when the account is deleted, suspended or banned.
187
187
  * @summary Schedule a downgrade
188
188
  */
189
189
  export const scheduleMembershipDowngrade = async (membershipId, membershipDowngrade, options, fetchFn) => {
@@ -1207,6 +1207,35 @@ export interface AccountBalance {
1207
1207
  due: Money;
1208
1208
  pending_returns_amount: Money;
1209
1209
  }
1210
+ /**
1211
+ * `ARREARS`: the balance is negative. `PROJECTS_ASSIGNED`: the account still pays for a project, yours or anyone
1212
+ * else's. `ACTIVE_SUBSCRIPTION`: a subscription it bought has not ended. `OPEN_ORDER`: an order is not finished.
1213
+ * `UNPAID_INVOICE`: an issued invoice is not settled. `UNBILLED_USAGE`: usage has not been invoiced yet; it is
1214
+ * invoiced in the next billing run. `PENDING_TRANSACTION`: a top-up, refund or withdrawal is still pending.
1215
+ */
1216
+ export type AccountDeletionObjection = (typeof AccountDeletionObjection)[keyof typeof AccountDeletionObjection];
1217
+ export declare const AccountDeletionObjection: {
1218
+ readonly ARREARS: "ARREARS";
1219
+ readonly PROJECTS_ASSIGNED: "PROJECTS_ASSIGNED";
1220
+ readonly ACTIVE_SUBSCRIPTION: "ACTIVE_SUBSCRIPTION";
1221
+ readonly OPEN_ORDER: "OPEN_ORDER";
1222
+ readonly UNPAID_INVOICE: "UNPAID_INVOICE";
1223
+ readonly UNBILLED_USAGE: "UNBILLED_USAGE";
1224
+ readonly PENDING_TRANSACTION: "PENDING_TRANSACTION";
1225
+ };
1226
+ export interface AccountDeletionReadinessItem {
1227
+ account: BillingAccount;
1228
+ /** Topped-up funds, in the account's currency, forfeited when it closes. Negative means arrears. */
1229
+ balance: Money;
1230
+ /** Remaining credit, in the account's currency, forfeited when it closes. */
1231
+ credits: Money;
1232
+ /** What stops this account from closing; empty when it can close. */
1233
+ objections: AccountDeletionObjection[];
1234
+ }
1235
+ export interface AccountDeletionReadiness {
1236
+ /** Every billing account you own that is not closed; empty when you own none. */
1237
+ accounts: AccountDeletionReadinessItem[];
1238
+ }
1210
1239
  /**
1211
1240
  * A project's assignment to a billing account from effective_from until effective_to; an open assignment has no end.
1212
1241
  */
@@ -148,6 +148,15 @@ export const PurchaseOperation = {
148
148
  renew: "renew",
149
149
  modify: "modify",
150
150
  };
151
+ export const AccountDeletionObjection = {
152
+ ARREARS: "ARREARS",
153
+ PROJECTS_ASSIGNED: "PROJECTS_ASSIGNED",
154
+ ACTIVE_SUBSCRIPTION: "ACTIVE_SUBSCRIPTION",
155
+ OPEN_ORDER: "OPEN_ORDER",
156
+ UNPAID_INVOICE: "UNPAID_INVOICE",
157
+ UNBILLED_USAGE: "UNBILLED_USAGE",
158
+ PENDING_TRANSACTION: "PENDING_TRANSACTION",
159
+ };
151
160
  export const TopUpStatus = {
152
161
  pending: "pending",
153
162
  succeeded: "succeeded",
@@ -45,7 +45,7 @@ export declare const ListMembershipsQueryParams: zod.ZodObject<{
45
45
  billing_account_id: zod.ZodInt;
46
46
  }, zod.z.core.$strict>;
47
47
  /**
48
- * Places a purchase order and returns the membership and invoice. Activation follows successful benefit issuance and delivery confirmation. Returns 409 MEMBERSHIP_EXISTS or 422 MEMBERSHIP_PLAN_UNAVAILABLE.
48
+ * Places a purchase order and returns the membership and invoice. Activation follows successful benefit issuance and delivery confirmation. Returns 409 MEMBERSHIP_EXISTS or 422 MEMBERSHIP_PLAN_UNAVAILABLE. Returns 403 MEMBERSHIP_ACCOUNT_DELETING while the caller's account deletion is pending, or 403 MEMBERSHIP_ACCOUNT_UNUSABLE when the account is deleted, suspended or banned.
49
49
  * @summary Buy a membership
50
50
  */
51
51
  export declare const CreateMembershipBody: zod.ZodObject<{
@@ -82,7 +82,7 @@ export declare const ListMembershipPeriodsQueryParams: zod.ZodObject<{
82
82
  page_size: zod.ZodDefault<zod.ZodInt>;
83
83
  }, zod.z.core.$strict>;
84
84
  /**
85
- * Places an order for the full-period price difference. The upgrade takes effect after benefit issuance and delivery confirmation; renewal uses the target tier. Returns 409 MEMBERSHIP_NOT_ACTIVE or MEMBERSHIP_CHANGE_PENDING, or 422 MEMBERSHIP_UPGRADE_UNAVAILABLE.
85
+ * Places an order for the full-period price difference. The upgrade takes effect after benefit issuance and delivery confirmation; renewal uses the target tier. Returns 409 MEMBERSHIP_NOT_ACTIVE or MEMBERSHIP_CHANGE_PENDING, or 422 MEMBERSHIP_UPGRADE_UNAVAILABLE. Returns 403 MEMBERSHIP_ACCOUNT_DELETING while the caller's account deletion is pending, or 403 MEMBERSHIP_ACCOUNT_UNUSABLE when the account is deleted, suspended or banned.
86
86
  * @summary Upgrade a membership
87
87
  */
88
88
  export declare const UpgradeMembershipParams: zod.ZodObject<{
@@ -99,7 +99,7 @@ export declare const UpgradeMembershipBody: zod.ZodObject<{
99
99
  }, zod.z.core.$strict>>;
100
100
  }, zod.z.core.$strict>;
101
101
  /**
102
- * Schedules a lower tier for the next period. Current benefits remain valid. Returns 409 MEMBERSHIP_NOT_ACTIVE or MEMBERSHIP_CHANGE_PENDING, or 422 MEMBERSHIP_DOWNGRADE_INVALID.
102
+ * Schedules a lower tier for the next period. Current benefits remain valid. Returns 409 MEMBERSHIP_NOT_ACTIVE or MEMBERSHIP_CHANGE_PENDING, or 422 MEMBERSHIP_DOWNGRADE_INVALID. Returns 403 MEMBERSHIP_ACCOUNT_DELETING while the caller's account deletion is pending, or 403 MEMBERSHIP_ACCOUNT_UNUSABLE when the account is deleted, suspended or banned.
103
103
  * @summary Schedule a downgrade
104
104
  */
105
105
  export declare const ScheduleMembershipDowngradeParams: zod.ZodObject<{
@@ -76,7 +76,7 @@ export const ListMembershipsQueryParams = zod.strictObject({
76
76
  billing_account_id: zod.int().min(1).describe("The account to query."),
77
77
  });
78
78
  /**
79
- * Places a purchase order and returns the membership and invoice. Activation follows successful benefit issuance and delivery confirmation. Returns 409 MEMBERSHIP_EXISTS or 422 MEMBERSHIP_PLAN_UNAVAILABLE.
79
+ * Places a purchase order and returns the membership and invoice. Activation follows successful benefit issuance and delivery confirmation. Returns 409 MEMBERSHIP_EXISTS or 422 MEMBERSHIP_PLAN_UNAVAILABLE. Returns 403 MEMBERSHIP_ACCOUNT_DELETING while the caller's account deletion is pending, or 403 MEMBERSHIP_ACCOUNT_UNUSABLE when the account is deleted, suspended or banned.
80
80
  * @summary Buy a membership
81
81
  */
82
82
  export const CreateMembershipBody = MembershipCreate;
@@ -112,7 +112,7 @@ export const ListMembershipPeriodsQueryParams = zod.strictObject({
112
112
  .describe("Items per page. Defaults to 50; at most 200."),
113
113
  });
114
114
  /**
115
- * Places an order for the full-period price difference. The upgrade takes effect after benefit issuance and delivery confirmation; renewal uses the target tier. Returns 409 MEMBERSHIP_NOT_ACTIVE or MEMBERSHIP_CHANGE_PENDING, or 422 MEMBERSHIP_UPGRADE_UNAVAILABLE.
115
+ * Places an order for the full-period price difference. The upgrade takes effect after benefit issuance and delivery confirmation; renewal uses the target tier. Returns 409 MEMBERSHIP_NOT_ACTIVE or MEMBERSHIP_CHANGE_PENDING, or 422 MEMBERSHIP_UPGRADE_UNAVAILABLE. Returns 403 MEMBERSHIP_ACCOUNT_DELETING while the caller's account deletion is pending, or 403 MEMBERSHIP_ACCOUNT_UNUSABLE when the account is deleted, suspended or banned.
116
116
  * @summary Upgrade a membership
117
117
  */
118
118
  export const UpgradeMembershipParams = zod.strictObject({
@@ -120,7 +120,7 @@ export const UpgradeMembershipParams = zod.strictObject({
120
120
  });
121
121
  export const UpgradeMembershipBody = MembershipUpgrade;
122
122
  /**
123
- * Schedules a lower tier for the next period. Current benefits remain valid. Returns 409 MEMBERSHIP_NOT_ACTIVE or MEMBERSHIP_CHANGE_PENDING, or 422 MEMBERSHIP_DOWNGRADE_INVALID.
123
+ * Schedules a lower tier for the next period. Current benefits remain valid. Returns 409 MEMBERSHIP_NOT_ACTIVE or MEMBERSHIP_CHANGE_PENDING, or 422 MEMBERSHIP_DOWNGRADE_INVALID. Returns 403 MEMBERSHIP_ACCOUNT_DELETING while the caller's account deletion is pending, or 403 MEMBERSHIP_ACCOUNT_UNUSABLE when the account is deleted, suspended or banned.
124
124
  * @summary Schedule a downgrade
125
125
  */
126
126
  export const ScheduleMembershipDowngradeParams = zod.strictObject({
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Leaflow Membership API
5
+ * Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
6
+ * OpenAPI spec version: 1.0.0
7
+ */
8
+ import * as zod from "zod";
9
+ export declare const AccountDeletionObjection: zod.ZodEnum<{
10
+ ARREARS: "ARREARS";
11
+ PROJECTS_ASSIGNED: "PROJECTS_ASSIGNED";
12
+ ACTIVE_SUBSCRIPTION: "ACTIVE_SUBSCRIPTION";
13
+ OPEN_ORDER: "OPEN_ORDER";
14
+ UNPAID_INVOICE: "UNPAID_INVOICE";
15
+ UNBILLED_USAGE: "UNBILLED_USAGE";
16
+ PENDING_TRANSACTION: "PENDING_TRANSACTION";
17
+ }>;
18
+ export type AccountDeletionObjection = zod.input<typeof AccountDeletionObjection>;
19
+ export type AccountDeletionObjectionOutput = zod.output<typeof AccountDeletionObjection>;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Leaflow Membership API
5
+ * Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
6
+ * OpenAPI spec version: 1.0.0
7
+ */
8
+ import * as zod from "zod";
9
+ export const AccountDeletionObjection = zod
10
+ .enum([
11
+ "ARREARS",
12
+ "PROJECTS_ASSIGNED",
13
+ "ACTIVE_SUBSCRIPTION",
14
+ "OPEN_ORDER",
15
+ "UNPAID_INVOICE",
16
+ "UNBILLED_USAGE",
17
+ "PENDING_TRANSACTION",
18
+ ])
19
+ .describe("`ARREARS`: the balance is negative. `PROJECTS_ASSIGNED`: the account still pays for a project, yours or anyone\nelse's. `ACTIVE_SUBSCRIPTION`: a subscription it bought has not ended. `OPEN_ORDER`: an order is not finished.\n`UNPAID_INVOICE`: an issued invoice is not settled. `UNBILLED_USAGE`: usage has not been invoiced yet; it is\ninvoiced in the next billing run. `PENDING_TRANSACTION`: a top-up, refund or withdrawal is still pending.");
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Leaflow Membership API
5
+ * Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
6
+ * OpenAPI spec version: 1.0.0
7
+ */
8
+ import * as zod from "zod";
9
+ export declare const AccountDeletionReadiness: zod.ZodObject<{
10
+ accounts: zod.ZodArray<zod.ZodObject<{
11
+ account: zod.ZodObject<{
12
+ invoice_contact_id: zod.ZodOptional<zod.ZodNullable<zod.ZodUUID>>;
13
+ id: zod.ZodInt;
14
+ name: zod.ZodOptional<zod.ZodString>;
15
+ currency: zod.ZodString;
16
+ status: zod.ZodEnum<{
17
+ active: "active";
18
+ suspended: "suspended";
19
+ closed: "closed";
20
+ }>;
21
+ suspended_by: zod.ZodEnum<{
22
+ none: "none";
23
+ operator: "operator";
24
+ owner: "owner";
25
+ }>;
26
+ grace_amount: zod.ZodOptional<zod.ZodString>;
27
+ grace_period_seconds: zod.ZodOptional<zod.ZodInt>;
28
+ closed_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
29
+ created_at: zod.z.ZodISODateTime;
30
+ }, zod.z.core.$strict>;
31
+ balance: zod.ZodString;
32
+ credits: zod.ZodString;
33
+ objections: zod.ZodArray<zod.ZodEnum<{
34
+ ARREARS: "ARREARS";
35
+ PROJECTS_ASSIGNED: "PROJECTS_ASSIGNED";
36
+ ACTIVE_SUBSCRIPTION: "ACTIVE_SUBSCRIPTION";
37
+ OPEN_ORDER: "OPEN_ORDER";
38
+ UNPAID_INVOICE: "UNPAID_INVOICE";
39
+ UNBILLED_USAGE: "UNBILLED_USAGE";
40
+ PENDING_TRANSACTION: "PENDING_TRANSACTION";
41
+ }>>;
42
+ }, zod.z.core.$strict>>;
43
+ }, zod.z.core.$strict>;
44
+ export type AccountDeletionReadiness = zod.input<typeof AccountDeletionReadiness>;
45
+ export type AccountDeletionReadinessOutput = zod.output<typeof AccountDeletionReadiness>;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Leaflow Membership API
5
+ * Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
6
+ * OpenAPI spec version: 1.0.0
7
+ */
8
+ import * as zod from "zod";
9
+ import { AccountDeletionReadinessItem } from "./accountDeletionReadinessItem.zod.js";
10
+ export const AccountDeletionReadiness = zod.strictObject({
11
+ accounts: zod
12
+ .array(AccountDeletionReadinessItem)
13
+ .describe("Every billing account you own that is not closed; empty when you own none."),
14
+ });