@leaflow/sdk 0.197.0 → 0.199.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 (280) hide show
  1. package/dist/assistant/v1/generated/functions.d.ts +104 -2
  2. package/dist/assistant/v1/generated/functions.js +115 -2
  3. package/dist/assistant/v1/generated/models.d.ts +102 -0
  4. package/dist/assistant/v1/generated/models.js +13 -0
  5. package/dist/assistant/v1/generated/schemas.zod.d.ts +36 -1
  6. package/dist/assistant/v1/generated/schemas.zod.js +35 -1
  7. package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.d.ts +3 -0
  8. package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.js +3 -0
  9. package/dist/assistant/v1/generated/validators/approvalMode.zod.d.ts +3 -0
  10. package/dist/assistant/v1/generated/validators/approvalMode.zod.js +3 -0
  11. package/dist/assistant/v1/generated/validators/attachmentCountsResource.zod.d.ts +35 -0
  12. package/dist/assistant/v1/generated/validators/attachmentCountsResource.zod.js +35 -0
  13. package/dist/assistant/v1/generated/validators/attachmentFileResource.zod.d.ts +47 -0
  14. package/dist/assistant/v1/generated/validators/attachmentFileResource.zod.js +44 -0
  15. package/dist/assistant/v1/generated/validators/attachmentListResponseBody.zod.d.ts +54 -0
  16. package/dist/assistant/v1/generated/validators/attachmentListResponseBody.zod.js +38 -0
  17. package/dist/assistant/v1/generated/validators/attachmentResource.zod.d.ts +3 -0
  18. package/dist/assistant/v1/generated/validators/attachmentResource.zod.js +3 -0
  19. package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.d.ts +3 -0
  20. package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.js +3 -0
  21. package/dist/assistant/v1/generated/validators/bindingResource.zod.d.ts +3 -0
  22. package/dist/assistant/v1/generated/validators/bindingResource.zod.js +3 -0
  23. package/dist/assistant/v1/generated/validators/channelResource.zod.d.ts +3 -0
  24. package/dist/assistant/v1/generated/validators/channelResource.zod.js +3 -0
  25. package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.d.ts +3 -0
  26. package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.js +3 -0
  27. package/dist/assistant/v1/generated/validators/checkSenderParams.zod.d.ts +3 -0
  28. package/dist/assistant/v1/generated/validators/checkSenderParams.zod.js +3 -0
  29. package/dist/assistant/v1/generated/validators/choiceResource.zod.d.ts +3 -0
  30. package/dist/assistant/v1/generated/validators/choiceResource.zod.js +3 -0
  31. package/dist/assistant/v1/generated/validators/clientActionRequest.zod.d.ts +3 -0
  32. package/dist/assistant/v1/generated/validators/clientActionRequest.zod.js +3 -0
  33. package/dist/assistant/v1/generated/validators/clientContextPart.zod.d.ts +3 -0
  34. package/dist/assistant/v1/generated/validators/clientContextPart.zod.js +3 -0
  35. package/dist/assistant/v1/generated/validators/clientContextRequest.zod.d.ts +3 -0
  36. package/dist/assistant/v1/generated/validators/clientContextRequest.zod.js +3 -0
  37. package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.d.ts +3 -0
  38. package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.js +3 -0
  39. package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.d.ts +3 -0
  40. package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.js +3 -0
  41. package/dist/assistant/v1/generated/validators/contextUsageResource.zod.d.ts +3 -0
  42. package/dist/assistant/v1/generated/validators/contextUsageResource.zod.js +3 -0
  43. package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.d.ts +3 -0
  44. package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.js +3 -0
  45. package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.d.ts +3 -0
  46. package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.js +3 -0
  47. package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.d.ts +3 -0
  48. package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.js +3 -0
  49. package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.d.ts +3 -0
  50. package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.js +3 -0
  51. package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.d.ts +3 -0
  52. package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.js +3 -0
  53. package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.d.ts +3 -0
  54. package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.js +3 -0
  55. package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.d.ts +3 -0
  56. package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.js +3 -0
  57. package/dist/assistant/v1/generated/validators/cursorPagination.zod.d.ts +3 -0
  58. package/dist/assistant/v1/generated/validators/cursorPagination.zod.js +3 -0
  59. package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.d.ts +3 -0
  60. package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.js +3 -0
  61. package/dist/assistant/v1/generated/validators/defaultModelResource.zod.d.ts +3 -0
  62. package/dist/assistant/v1/generated/validators/defaultModelResource.zod.js +3 -0
  63. package/dist/assistant/v1/generated/validators/error.zod.d.ts +3 -0
  64. package/dist/assistant/v1/generated/validators/error.zod.js +3 -0
  65. package/dist/assistant/v1/generated/validators/errorStatus.zod.d.ts +3 -0
  66. package/dist/assistant/v1/generated/validators/errorStatus.zod.js +3 -0
  67. package/dist/assistant/v1/generated/validators/fieldViolation.zod.d.ts +3 -0
  68. package/dist/assistant/v1/generated/validators/fieldViolation.zod.js +3 -0
  69. package/dist/assistant/v1/generated/validators/fileDiffResource.zod.d.ts +3 -0
  70. package/dist/assistant/v1/generated/validators/fileDiffResource.zod.js +3 -0
  71. package/dist/assistant/v1/generated/validators/folderCountsResource.zod.d.ts +3 -0
  72. package/dist/assistant/v1/generated/validators/folderCountsResource.zod.js +3 -0
  73. package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.d.ts +3 -0
  74. package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.js +3 -0
  75. package/dist/assistant/v1/generated/validators/folderResource.zod.d.ts +3 -0
  76. package/dist/assistant/v1/generated/validators/folderResource.zod.js +3 -0
  77. package/dist/assistant/v1/generated/validators/itemSourceResource.zod.d.ts +3 -0
  78. package/dist/assistant/v1/generated/validators/itemSourceResource.zod.js +3 -0
  79. package/dist/assistant/v1/generated/validators/lastTurnResource.zod.d.ts +3 -0
  80. package/dist/assistant/v1/generated/validators/lastTurnResource.zod.js +3 -0
  81. package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.d.ts +3 -0
  82. package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.js +3 -0
  83. package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.d.ts +3 -0
  84. package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.js +3 -0
  85. package/dist/assistant/v1/generated/validators/listBindingsParams.zod.d.ts +3 -0
  86. package/dist/assistant/v1/generated/validators/listBindingsParams.zod.js +3 -0
  87. package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.d.ts +3 -0
  88. package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.js +3 -0
  89. package/dist/assistant/v1/generated/validators/listChannelsParams.zod.d.ts +3 -0
  90. package/dist/assistant/v1/generated/validators/listChannelsParams.zod.js +3 -0
  91. package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.d.ts +3 -0
  92. package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.js +3 -0
  93. package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.d.ts +3 -0
  94. package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.js +3 -0
  95. package/dist/assistant/v1/generated/validators/listThreadMessagesParams.zod.d.ts +3 -0
  96. package/dist/assistant/v1/generated/validators/listThreadMessagesParams.zod.js +3 -0
  97. package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.d.ts +3 -0
  98. package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.js +3 -0
  99. package/dist/assistant/v1/generated/validators/loginResource.zod.d.ts +3 -0
  100. package/dist/assistant/v1/generated/validators/loginResource.zod.js +3 -0
  101. package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.d.ts +3 -0
  102. package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.js +3 -0
  103. package/dist/assistant/v1/generated/validators/memoryResource.zod.d.ts +3 -0
  104. package/dist/assistant/v1/generated/validators/memoryResource.zod.js +3 -0
  105. package/dist/assistant/v1/generated/validators/messagePart.zod.d.ts +3 -0
  106. package/dist/assistant/v1/generated/validators/messagePart.zod.js +3 -0
  107. package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.d.ts +3 -0
  108. package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.js +3 -0
  109. package/dist/assistant/v1/generated/validators/offsetPagination.zod.d.ts +3 -0
  110. package/dist/assistant/v1/generated/validators/offsetPagination.zod.js +3 -0
  111. package/dist/assistant/v1/generated/validators/partResource.zod.d.ts +3 -0
  112. package/dist/assistant/v1/generated/validators/partResource.zod.js +3 -0
  113. package/dist/assistant/v1/generated/validators/pendingActionResource.zod.d.ts +3 -0
  114. package/dist/assistant/v1/generated/validators/pendingActionResource.zod.js +3 -0
  115. package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.d.ts +3 -0
  116. package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.js +3 -0
  117. package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.d.ts +3 -0
  118. package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.js +3 -0
  119. package/dist/assistant/v1/generated/validators/platformResource.zod.d.ts +3 -0
  120. package/dist/assistant/v1/generated/validators/platformResource.zod.js +3 -0
  121. package/dist/assistant/v1/generated/validators/presentationResource.zod.d.ts +3 -0
  122. package/dist/assistant/v1/generated/validators/presentationResource.zod.js +3 -0
  123. package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.d.ts +3 -0
  124. package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.js +3 -0
  125. package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.d.ts +3 -0
  126. package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.js +3 -0
  127. package/dist/assistant/v1/generated/validators/questionResource.zod.d.ts +3 -0
  128. package/dist/assistant/v1/generated/validators/questionResource.zod.js +3 -0
  129. package/dist/assistant/v1/generated/validators/reasoningEffort.zod.d.ts +3 -0
  130. package/dist/assistant/v1/generated/validators/reasoningEffort.zod.js +3 -0
  131. package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.d.ts +3 -0
  132. package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.js +3 -0
  133. package/dist/assistant/v1/generated/validators/rejectionResource.zod.d.ts +3 -0
  134. package/dist/assistant/v1/generated/validators/rejectionResource.zod.js +3 -0
  135. package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.d.ts +3 -0
  136. package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.js +3 -0
  137. package/dist/assistant/v1/generated/validators/revertRequestBody.zod.d.ts +3 -0
  138. package/dist/assistant/v1/generated/validators/revertRequestBody.zod.js +3 -0
  139. package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.d.ts +3 -0
  140. package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.js +3 -0
  141. package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.d.ts +3 -0
  142. package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.js +3 -0
  143. package/dist/assistant/v1/generated/validators/searchAttachmentsRequestBody.zod.d.ts +51 -0
  144. package/dist/assistant/v1/generated/validators/searchAttachmentsRequestBody.zod.js +65 -0
  145. package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.d.ts +3 -0
  146. package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.js +3 -0
  147. package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.d.ts +3 -0
  148. package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.js +3 -0
  149. package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.d.ts +3 -0
  150. package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.js +3 -0
  151. package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.d.ts +3 -0
  152. package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.js +3 -0
  153. package/dist/assistant/v1/generated/validators/senderCheckResource.zod.d.ts +3 -0
  154. package/dist/assistant/v1/generated/validators/senderCheckResource.zod.js +3 -0
  155. package/dist/assistant/v1/generated/validators/settingsResource.zod.d.ts +3 -0
  156. package/dist/assistant/v1/generated/validators/settingsResource.zod.js +3 -0
  157. package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.d.ts +3 -0
  158. package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.js +3 -0
  159. package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.d.ts +3 -0
  160. package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.js +3 -0
  161. package/dist/assistant/v1/generated/validators/skillRequestBody.zod.d.ts +3 -0
  162. package/dist/assistant/v1/generated/validators/skillRequestBody.zod.js +3 -0
  163. package/dist/assistant/v1/generated/validators/skillResource.zod.d.ts +3 -0
  164. package/dist/assistant/v1/generated/validators/skillResource.zod.js +3 -0
  165. package/dist/assistant/v1/generated/validators/subagentCountResource.zod.d.ts +3 -0
  166. package/dist/assistant/v1/generated/validators/subagentCountResource.zod.js +3 -0
  167. package/dist/assistant/v1/generated/validators/taskAction.zod.d.ts +3 -0
  168. package/dist/assistant/v1/generated/validators/taskAction.zod.js +3 -0
  169. package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.d.ts +3 -0
  170. package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.js +3 -0
  171. package/dist/assistant/v1/generated/validators/taskResource.zod.d.ts +3 -0
  172. package/dist/assistant/v1/generated/validators/taskResource.zod.js +3 -0
  173. package/dist/assistant/v1/generated/validators/taskRunEvent.zod.d.ts +3 -0
  174. package/dist/assistant/v1/generated/validators/taskRunEvent.zod.js +3 -0
  175. package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.d.ts +3 -0
  176. package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.js +3 -0
  177. package/dist/assistant/v1/generated/validators/taskRunResource.zod.d.ts +3 -0
  178. package/dist/assistant/v1/generated/validators/taskRunResource.zod.js +3 -0
  179. package/dist/assistant/v1/generated/validators/taskTrigger.zod.d.ts +3 -0
  180. package/dist/assistant/v1/generated/validators/taskTrigger.zod.js +3 -0
  181. package/dist/assistant/v1/generated/validators/threadCountsResource.zod.d.ts +3 -0
  182. package/dist/assistant/v1/generated/validators/threadCountsResource.zod.js +3 -0
  183. package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.d.ts +3 -0
  184. package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.js +3 -0
  185. package/dist/assistant/v1/generated/validators/threadItemResource.zod.d.ts +3 -0
  186. package/dist/assistant/v1/generated/validators/threadItemResource.zod.js +3 -0
  187. package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.d.ts +3 -0
  188. package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.js +3 -0
  189. package/dist/assistant/v1/generated/validators/threadMessageListResponseBody.zod.d.ts +3 -0
  190. package/dist/assistant/v1/generated/validators/threadMessageListResponseBody.zod.js +3 -0
  191. package/dist/assistant/v1/generated/validators/threadMessageResource.zod.d.ts +3 -0
  192. package/dist/assistant/v1/generated/validators/threadMessageResource.zod.js +3 -0
  193. package/dist/assistant/v1/generated/validators/threadResource.zod.d.ts +3 -0
  194. package/dist/assistant/v1/generated/validators/threadResource.zod.js +3 -0
  195. package/dist/assistant/v1/generated/validators/threadStatus.zod.d.ts +3 -0
  196. package/dist/assistant/v1/generated/validators/threadStatus.zod.js +3 -0
  197. package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.d.ts +3 -0
  198. package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.js +3 -0
  199. package/dist/assistant/v1/generated/validators/threadTurnResource.zod.d.ts +3 -0
  200. package/dist/assistant/v1/generated/validators/threadTurnResource.zod.js +3 -0
  201. package/dist/assistant/v1/generated/validators/todoResource.zod.d.ts +3 -0
  202. package/dist/assistant/v1/generated/validators/todoResource.zod.js +3 -0
  203. package/dist/assistant/v1/generated/validators/toolCallResource.zod.d.ts +3 -0
  204. package/dist/assistant/v1/generated/validators/toolCallResource.zod.js +3 -0
  205. package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.d.ts +3 -0
  206. package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.js +3 -0
  207. package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.d.ts +3 -0
  208. package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.js +3 -0
  209. package/dist/assistant/v1/generated/validators/turnStatus.zod.d.ts +3 -0
  210. package/dist/assistant/v1/generated/validators/turnStatus.zod.js +3 -0
  211. package/dist/assistant/v1/generated/validators/turnType.zod.d.ts +3 -0
  212. package/dist/assistant/v1/generated/validators/turnType.zod.js +3 -0
  213. package/dist/assistant/v1/generated/validators/updateAttachmentRequestBody.zod.d.ts +35 -0
  214. package/dist/assistant/v1/generated/validators/updateAttachmentRequestBody.zod.js +33 -0
  215. package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.d.ts +3 -0
  216. package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.js +3 -0
  217. package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.d.ts +3 -0
  218. package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.js +3 -0
  219. package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.d.ts +3 -0
  220. package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.js +3 -0
  221. package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.d.ts +3 -0
  222. package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.js +3 -0
  223. package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.d.ts +3 -0
  224. package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.js +3 -0
  225. package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.d.ts +3 -0
  226. package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.js +3 -0
  227. package/dist/assistant/v1/generated/validators/uploadAttachmentParams.zod.d.ts +3 -0
  228. package/dist/assistant/v1/generated/validators/uploadAttachmentParams.zod.js +3 -0
  229. package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.d.ts +3 -0
  230. package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.js +3 -0
  231. package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.d.ts +3 -0
  232. package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.js +3 -0
  233. package/dist/assistant/v1/generated/validators/uploadPartResource.zod.d.ts +3 -0
  234. package/dist/assistant/v1/generated/validators/uploadPartResource.zod.js +3 -0
  235. package/dist/assistant/v1/generated/validators/uploadResource.zod.d.ts +3 -0
  236. package/dist/assistant/v1/generated/validators/uploadResource.zod.js +3 -0
  237. package/dist/assistant/v1/generated/validators/uploadedResource.zod.d.ts +3 -0
  238. package/dist/assistant/v1/generated/validators/uploadedResource.zod.js +3 -0
  239. package/dist/assistant/v1/generated/validators/usage.zod.d.ts +3 -0
  240. package/dist/assistant/v1/generated/validators/usage.zod.js +3 -0
  241. package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.d.ts +3 -0
  242. package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.js +3 -0
  243. package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.d.ts +3 -0
  244. package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.js +3 -0
  245. package/dist/iam/v1/generated/functions.d.ts +46 -103
  246. package/dist/iam/v1/generated/functions.js +29 -114
  247. package/dist/iam/v1/generated/models.d.ts +53 -118
  248. package/dist/iam/v1/generated/models.js +2 -6
  249. package/dist/iam/v1/generated/schemas.zod.d.ts +31 -62
  250. package/dist/iam/v1/generated/schemas.zod.js +35 -53
  251. package/dist/iam/v1/generated/validators/{updatePolicyRequestBody.zod.d.ts → createMemberPermissionRequestBody.zod.d.ts} +9 -11
  252. package/dist/iam/v1/generated/validators/createMemberPermissionRequestBody.zod.js +36 -0
  253. package/dist/iam/v1/generated/validators/grantResource.zod.js +1 -1
  254. package/dist/iam/v1/generated/validators/lengthAwarePageMemberResource.zod.d.ts +12 -0
  255. package/dist/iam/v1/generated/validators/{listProjectInvitationsParams.zod.d.ts → listInvitationsParams.zod.d.ts} +8 -8
  256. package/dist/iam/v1/generated/validators/{listProjectInvitationsParams.zod.js → listInvitationsParams.zod.js} +11 -11
  257. package/dist/iam/v1/generated/validators/{policyListResponseBody.zod.d.ts → memberPermissionListResponseBody.zod.d.ts} +8 -14
  258. package/dist/iam/v1/generated/validators/{catalogListResponseBody.zod.js → memberPermissionListResponseBody.zod.js} +3 -3
  259. package/dist/iam/v1/generated/validators/{policyResource.zod.d.ts → memberPermissionResource.zod.d.ts} +11 -14
  260. package/dist/iam/v1/generated/validators/memberPermissionResource.zod.js +38 -0
  261. package/dist/iam/v1/generated/validators/memberResource.zod.d.ts +12 -0
  262. package/dist/iam/v1/generated/validators/memberResource.zod.js +5 -0
  263. package/dist/iam/v1/generated/validators/ownershipTransferResponseBody.zod.d.ts +24 -0
  264. package/dist/iam/v1/generated/validators/{catalogResource.zod.d.ts → permissionListResponseBody.zod.d.ts} +4 -8
  265. package/dist/iam/v1/generated/validators/{policyListResponseBody.zod.js → permissionListResponseBody.zod.js} +3 -3
  266. package/dist/routes.d.ts +39 -31
  267. package/dist/routes.js +43 -34
  268. package/package.json +1 -1
  269. package/dist/iam/v1/generated/validators/attachPolicyRequestBody.zod.d.ts +0 -33
  270. package/dist/iam/v1/generated/validators/attachPolicyRequestBody.zod.js +0 -43
  271. package/dist/iam/v1/generated/validators/catalogListResponseBody.zod.d.ts +0 -30
  272. package/dist/iam/v1/generated/validators/catalogResource.zod.js +0 -25
  273. package/dist/iam/v1/generated/validators/listPoliciesParams.zod.d.ts +0 -21
  274. package/dist/iam/v1/generated/validators/listPoliciesParams.zod.js +0 -23
  275. package/dist/iam/v1/generated/validators/policyResource.zod.js +0 -33
  276. package/dist/iam/v1/generated/validators/resourceTypeResource.zod.d.ts +0 -20
  277. package/dist/iam/v1/generated/validators/resourceTypeResource.zod.js +0 -20
  278. package/dist/iam/v1/generated/validators/setMemberPermissionsRequestBody.zod.d.ts +0 -20
  279. package/dist/iam/v1/generated/validators/setMemberPermissionsRequestBody.zod.js +0 -21
  280. package/dist/iam/v1/generated/validators/updatePolicyRequestBody.zod.js +0 -39
package/dist/routes.js CHANGED
@@ -612,11 +612,47 @@ export const routes = [
612
612
  securityScheme: "ScopedToken",
613
613
  upstreamUrl: "https://assistant.leaflow.cloud",
614
614
  },
615
+ {
616
+ service: "assistant",
617
+ contract: "assistant",
618
+ method: "QUERY",
619
+ path: "/api/v1/attachments",
620
+ operationId: "search-attachments",
621
+ securityScheme: "ScopedToken",
622
+ upstreamUrl: "https://assistant.leaflow.cloud",
623
+ },
615
624
  {
616
625
  service: "assistant",
617
626
  contract: "assistant",
618
627
  method: "GET",
619
628
  path: "/api/v1/attachments/{attachment}",
629
+ operationId: "get-attachment",
630
+ securityScheme: "ScopedToken",
631
+ upstreamUrl: "https://assistant.leaflow.cloud",
632
+ },
633
+ {
634
+ service: "assistant",
635
+ contract: "assistant",
636
+ method: "PATCH",
637
+ path: "/api/v1/attachments/{attachment}",
638
+ operationId: "update-attachment",
639
+ securityScheme: "ScopedToken",
640
+ upstreamUrl: "https://assistant.leaflow.cloud",
641
+ },
642
+ {
643
+ service: "assistant",
644
+ contract: "assistant",
645
+ method: "DELETE",
646
+ path: "/api/v1/attachments/{attachment}",
647
+ operationId: "delete-attachment",
648
+ securityScheme: "ScopedToken",
649
+ upstreamUrl: "https://assistant.leaflow.cloud",
650
+ },
651
+ {
652
+ service: "assistant",
653
+ contract: "assistant",
654
+ method: "GET",
655
+ path: "/api/v1/attachments/{attachment}:download",
620
656
  operationId: "download-attachment",
621
657
  securityScheme: "ScopedToken",
622
658
  upstreamUrl: "https://assistant.leaflow.cloud",
@@ -3836,7 +3872,7 @@ export const routes = [
3836
3872
  contract: "iam",
3837
3873
  method: "GET",
3838
3874
  path: "/api/v1/invitations",
3839
- operationId: "list-project-invitations",
3875
+ operationId: "list-invitations",
3840
3876
  securityScheme: "ScopedToken",
3841
3877
  upstreamUrl: "https://iam.leaflow.cloud",
3842
3878
  },
@@ -3894,21 +3930,12 @@ export const routes = [
3894
3930
  securityScheme: "ScopedToken",
3895
3931
  upstreamUrl: "https://iam.leaflow.cloud",
3896
3932
  },
3897
- {
3898
- service: "iam",
3899
- contract: "iam",
3900
- method: "PUT",
3901
- path: "/api/v1/members/{userId}/permissions",
3902
- operationId: "set-member-permissions",
3903
- securityScheme: "ScopedToken",
3904
- upstreamUrl: "https://iam.leaflow.cloud",
3905
- },
3906
3933
  {
3907
3934
  service: "iam",
3908
3935
  contract: "iam",
3909
3936
  method: "GET",
3910
- path: "/api/v1/policies",
3911
- operationId: "list-policies",
3937
+ path: "/api/v1/members/{userId}/permissions",
3938
+ operationId: "list-member-permissions",
3912
3939
  securityScheme: "ScopedToken",
3913
3940
  upstreamUrl: "https://iam.leaflow.cloud",
3914
3941
  },
@@ -3916,26 +3943,8 @@ export const routes = [
3916
3943
  service: "iam",
3917
3944
  contract: "iam",
3918
3945
  method: "POST",
3919
- path: "/api/v1/policies",
3920
- operationId: "attach-policy",
3921
- securityScheme: "ScopedToken",
3922
- upstreamUrl: "https://iam.leaflow.cloud",
3923
- },
3924
- {
3925
- service: "iam",
3926
- contract: "iam",
3927
- method: "GET",
3928
- path: "/api/v1/policies/{policyId}",
3929
- operationId: "get-policy",
3930
- securityScheme: "ScopedToken",
3931
- upstreamUrl: "https://iam.leaflow.cloud",
3932
- },
3933
- {
3934
- service: "iam",
3935
- contract: "iam",
3936
- method: "PUT",
3937
- path: "/api/v1/policies/{policyId}",
3938
- operationId: "update-policy",
3946
+ path: "/api/v1/members/{userId}/permissions",
3947
+ operationId: "create-member-permission",
3939
3948
  securityScheme: "ScopedToken",
3940
3949
  upstreamUrl: "https://iam.leaflow.cloud",
3941
3950
  },
@@ -3943,8 +3952,8 @@ export const routes = [
3943
3952
  service: "iam",
3944
3953
  contract: "iam",
3945
3954
  method: "DELETE",
3946
- path: "/api/v1/policies/{policyId}",
3947
- operationId: "detach-policy",
3955
+ path: "/api/v1/members/{userId}/permissions/{permissionId}",
3956
+ operationId: "delete-member-permission",
3948
3957
  securityScheme: "ScopedToken",
3949
3958
  upstreamUrl: "https://iam.leaflow.cloud",
3950
3959
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflow/sdk",
3
- "version": "0.197.0",
3
+ "version": "0.199.0",
4
4
  "description": "Leaflow 平台 API 的 TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,33 +0,0 @@
1
- /**
2
- * Generated by orval 🍺
3
- * Do not edit manually.
4
- * Leaflow IAM API
5
- * What happens inside a project: members, roles, invitations and the SSH keys the project shares.
6
- *
7
- * Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
8
- * `projectId`, and the current project is the one the token states. Tokens are obtained from the
9
- * account API.
10
- *
11
- * `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
12
- * project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
13
- * OpenAPI spec version: 1.0.0
14
- */
15
- import * as zod from "zod";
16
- export declare const attachPolicyRequestBodyDescriptionMax = 255;
17
- export declare const attachPolicyRequestBodyUserIdMax = 255;
18
- export declare const AttachPolicyRequestBody: zod.ZodObject<{
19
- description: zod.ZodOptional<zod.ZodString>;
20
- effect: zod.ZodEnum<{
21
- allow: "allow";
22
- deny: "deny";
23
- }>;
24
- permissions: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodString>>>;
25
- resources: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodObject<{
26
- id: zod.ZodString;
27
- type: zod.ZodString;
28
- }, zod.z.core.$strict>>>>;
29
- roles: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodString>>>;
30
- user_id: zod.ZodString;
31
- }, zod.z.core.$strict>;
32
- export type AttachPolicyRequestBody = zod.input<typeof AttachPolicyRequestBody>;
33
- export type AttachPolicyRequestBodyOutput = zod.output<typeof AttachPolicyRequestBody>;
@@ -1,43 +0,0 @@
1
- /**
2
- * Generated by orval 🍺
3
- * Do not edit manually.
4
- * Leaflow IAM API
5
- * What happens inside a project: members, roles, invitations and the SSH keys the project shares.
6
- *
7
- * Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
8
- * `projectId`, and the current project is the one the token states. Tokens are obtained from the
9
- * account API.
10
- *
11
- * `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
12
- * project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
13
- * OpenAPI spec version: 1.0.0
14
- */
15
- import * as zod from "zod";
16
- import { ResourceRefResource } from "./resourceRefResource.zod.js";
17
- export const attachPolicyRequestBodyDescriptionMax = 255;
18
- export const attachPolicyRequestBodyUserIdMax = 255;
19
- export const AttachPolicyRequestBody = zod.strictObject({
20
- description: zod
21
- .string()
22
- .max(attachPolicyRequestBodyDescriptionMax)
23
- .optional()
24
- .describe("Why it was granted, written for a reader"),
25
- effect: zod.enum(["allow", "deny"]),
26
- permissions: zod
27
- .array(zod.string())
28
- .nullish()
29
- .describe("Permission names attached directly, which avoids creating a role only one person holds"),
30
- resources: zod
31
- .array(ResourceRefResource)
32
- .nullish()
33
- .describe("The policy holds only on these resources. Leaving it empty makes sense only together with `deny`, since an `allow` covering every resource is the base policy, which already exists"),
34
- roles: zod
35
- .array(zod.string())
36
- .nullish()
37
- .describe("Each must be a role already defined in this project. `OWNER` and `ADMIN` are not accepted, being rules rather than sets of permissions"),
38
- user_id: zod
39
- .string()
40
- .min(1)
41
- .max(attachPolicyRequestBodyUserIdMax)
42
- .describe("Must already be a member of this project"),
43
- });
@@ -1,30 +0,0 @@
1
- /**
2
- * Generated by orval 🍺
3
- * Do not edit manually.
4
- * Leaflow IAM API
5
- * What happens inside a project: members, roles, invitations and the SSH keys the project shares.
6
- *
7
- * Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
8
- * `projectId`, and the current project is the one the token states. Tokens are obtained from the
9
- * account API.
10
- *
11
- * `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
12
- * project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
13
- * OpenAPI spec version: 1.0.0
14
- */
15
- import * as zod from "zod";
16
- export declare const CatalogListResponseBody: zod.ZodObject<{
17
- items: zod.ZodNullable<zod.ZodArray<zod.ZodObject<{
18
- permissions: zod.ZodNullable<zod.ZodArray<zod.ZodObject<{
19
- name: zod.ZodString;
20
- owner_only: zod.ZodBoolean;
21
- resource_type: zod.ZodString;
22
- }, zod.z.core.$strict>>>;
23
- resource_types: zod.ZodNullable<zod.ZodArray<zod.ZodObject<{
24
- name: zod.ZodString;
25
- }, zod.z.core.$strict>>>;
26
- service: zod.ZodString;
27
- }, zod.z.core.$strict>>>;
28
- }, zod.z.core.$strict>;
29
- export type CatalogListResponseBody = zod.input<typeof CatalogListResponseBody>;
30
- export type CatalogListResponseBodyOutput = zod.output<typeof CatalogListResponseBody>;
@@ -1,25 +0,0 @@
1
- /**
2
- * Generated by orval 🍺
3
- * Do not edit manually.
4
- * Leaflow IAM API
5
- * What happens inside a project: members, roles, invitations and the SSH keys the project shares.
6
- *
7
- * Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
8
- * `projectId`, and the current project is the one the token states. Tokens are obtained from the
9
- * account API.
10
- *
11
- * `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
12
- * project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
13
- * OpenAPI spec version: 1.0.0
14
- */
15
- import * as zod from "zod";
16
- import { PermissionResource } from "./permissionResource.zod.js";
17
- import { ResourceTypeResource } from "./resourceTypeResource.zod.js";
18
- export const CatalogResource = zod.strictObject({
19
- permissions: zod.array(PermissionResource).nullable(),
20
- resource_types: zod
21
- .array(ResourceTypeResource)
22
- .nullable()
23
- .describe("The resource types this service declares. A scoped rule can only land on one of them"),
24
- service: zod.string(),
25
- });
@@ -1,21 +0,0 @@
1
- /**
2
- * Generated by orval 🍺
3
- * Do not edit manually.
4
- * Leaflow IAM API
5
- * What happens inside a project: members, roles, invitations and the SSH keys the project shares.
6
- *
7
- * Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
8
- * `projectId`, and the current project is the one the token states. Tokens are obtained from the
9
- * account API.
10
- *
11
- * `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
12
- * project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
13
- * OpenAPI spec version: 1.0.0
14
- */
15
- import * as zod from "zod";
16
- export declare const listPoliciesParamsUserIdMax = 255;
17
- export declare const ListPoliciesParams: zod.ZodObject<{
18
- userId: zod.ZodOptional<zod.ZodString>;
19
- }, zod.z.core.$strict>;
20
- export type ListPoliciesParams = zod.input<typeof ListPoliciesParams>;
21
- export type ListPoliciesParamsOutput = zod.output<typeof ListPoliciesParams>;
@@ -1,23 +0,0 @@
1
- /**
2
- * Generated by orval 🍺
3
- * Do not edit manually.
4
- * Leaflow IAM API
5
- * What happens inside a project: members, roles, invitations and the SSH keys the project shares.
6
- *
7
- * Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
8
- * `projectId`, and the current project is the one the token states. Tokens are obtained from the
9
- * account API.
10
- *
11
- * `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
12
- * project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
13
- * OpenAPI spec version: 1.0.0
14
- */
15
- import * as zod from "zod";
16
- export const listPoliciesParamsUserIdMax = 255;
17
- export const ListPoliciesParams = zod.strictObject({
18
- userId: zod
19
- .string()
20
- .max(listPoliciesParamsUserIdMax)
21
- .optional()
22
- .describe("Restricts the result to one person. Omitting it covers the whole project"),
23
- });
@@ -1,33 +0,0 @@
1
- /**
2
- * Generated by orval 🍺
3
- * Do not edit manually.
4
- * Leaflow IAM API
5
- * What happens inside a project: members, roles, invitations and the SSH keys the project shares.
6
- *
7
- * Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
8
- * `projectId`, and the current project is the one the token states. Tokens are obtained from the
9
- * account API.
10
- *
11
- * `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
12
- * project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
13
- * OpenAPI spec version: 1.0.0
14
- */
15
- import * as zod from "zod";
16
- import { ResourceRefResource } from "./resourceRefResource.zod.js";
17
- export const PolicyResource = zod.strictObject({
18
- base: zod
19
- .boolean()
20
- .describe("The base policy is the one whose effect is `allow` and which covers every resource. Each member holds exactly one, and it carries their ordinary roles. Change it with PUT /members/{userId}/roles and PUT /members/{userId}/permissions"),
21
- created_at: zod.iso.datetime({ offset: true }),
22
- description: zod.string().describe("Why it was granted, written for a reader"),
23
- effect: zod.enum(["allow", "deny"]),
24
- id: zod.uuid(),
25
- permissions: zod
26
- .array(zod.string())
27
- .nullable()
28
- .describe("Permission names attached directly to this person, without passing through a role"),
29
- resources: zod.array(ResourceRefResource).nullable().describe("Empty means the whole project"),
30
- roles: zod.array(zod.string()).nullable().describe("The role codes this policy carries"),
31
- updated_at: zod.iso.datetime({ offset: true }),
32
- user_id: zod.string(),
33
- });
@@ -1,20 +0,0 @@
1
- /**
2
- * Generated by orval 🍺
3
- * Do not edit manually.
4
- * Leaflow IAM API
5
- * What happens inside a project: members, roles, invitations and the SSH keys the project shares.
6
- *
7
- * Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
8
- * `projectId`, and the current project is the one the token states. Tokens are obtained from the
9
- * account API.
10
- *
11
- * `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
12
- * project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
13
- * OpenAPI spec version: 1.0.0
14
- */
15
- import * as zod from "zod";
16
- export declare const ResourceTypeResource: zod.ZodObject<{
17
- name: zod.ZodString;
18
- }, zod.z.core.$strict>;
19
- export type ResourceTypeResource = zod.input<typeof ResourceTypeResource>;
20
- export type ResourceTypeResourceOutput = zod.output<typeof ResourceTypeResource>;
@@ -1,20 +0,0 @@
1
- /**
2
- * Generated by orval 🍺
3
- * Do not edit manually.
4
- * Leaflow IAM API
5
- * What happens inside a project: members, roles, invitations and the SSH keys the project shares.
6
- *
7
- * Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
8
- * `projectId`, and the current project is the one the token states. Tokens are obtained from the
9
- * account API.
10
- *
11
- * `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
12
- * project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
13
- * OpenAPI spec version: 1.0.0
14
- */
15
- import * as zod from "zod";
16
- export const ResourceTypeResource = zod.strictObject({
17
- name: zod
18
- .string()
19
- .describe("The code of the resource type, such as dns:zone. There is no display name here either; what it reads as is decided by the layer rendering it"),
20
- });
@@ -1,20 +0,0 @@
1
- /**
2
- * Generated by orval 🍺
3
- * Do not edit manually.
4
- * Leaflow IAM API
5
- * What happens inside a project: members, roles, invitations and the SSH keys the project shares.
6
- *
7
- * Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
8
- * `projectId`, and the current project is the one the token states. Tokens are obtained from the
9
- * account API.
10
- *
11
- * `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
12
- * project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
13
- * OpenAPI spec version: 1.0.0
14
- */
15
- import * as zod from "zod";
16
- export declare const SetMemberPermissionsRequestBody: zod.ZodObject<{
17
- permissions: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
18
- }, zod.z.core.$strict>;
19
- export type SetMemberPermissionsRequestBody = zod.input<typeof SetMemberPermissionsRequestBody>;
20
- export type SetMemberPermissionsRequestBodyOutput = zod.output<typeof SetMemberPermissionsRequestBody>;
@@ -1,21 +0,0 @@
1
- /**
2
- * Generated by orval 🍺
3
- * Do not edit manually.
4
- * Leaflow IAM API
5
- * What happens inside a project: members, roles, invitations and the SSH keys the project shares.
6
- *
7
- * Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
8
- * `projectId`, and the current project is the one the token states. Tokens are obtained from the
9
- * account API.
10
- *
11
- * `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
12
- * project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
13
- * OpenAPI spec version: 1.0.0
14
- */
15
- import * as zod from "zod";
16
- export const SetMemberPermissionsRequestBody = zod.strictObject({
17
- permissions: zod
18
- .array(zod.string())
19
- .nullable()
20
- .describe("**Every** permission name to be attached directly to this person, replaced in full. The permissions a role grants are neither listed here nor touched by this write"),
21
- });
@@ -1,39 +0,0 @@
1
- /**
2
- * Generated by orval 🍺
3
- * Do not edit manually.
4
- * Leaflow IAM API
5
- * What happens inside a project: members, roles, invitations and the SSH keys the project shares.
6
- *
7
- * Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
8
- * `projectId`, and the current project is the one the token states. Tokens are obtained from the
9
- * account API.
10
- *
11
- * `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
12
- * project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
13
- * OpenAPI spec version: 1.0.0
14
- */
15
- import * as zod from "zod";
16
- import { ResourceRefResource } from "./resourceRefResource.zod.js";
17
- export const updatePolicyRequestBodyDescriptionMax = 255;
18
- export const UpdatePolicyRequestBody = zod.strictObject({
19
- description: zod
20
- .string()
21
- .max(updatePolicyRequestBodyDescriptionMax)
22
- .optional()
23
- .describe("Why it was granted, written for a reader. It is replaced together with the change, so that what remains does not explain an earlier version"),
24
- effect: zod
25
- .enum(["allow", "deny"])
26
- .describe("Must match the current effect of the policy. The effect itself cannot be changed; delete the policy and create another instead. It is still required in the request because the write replaces the policy in full, and omitting it would let a caller believe an effect had been changed while the field was ignored. A mismatch answers PROJECT_POLICY_EFFECT_IMMUTABLE"),
27
- permissions: zod
28
- .array(zod.string())
29
- .nullish()
30
- .describe("Permission names attached directly, replaced in full. Anything not listed is withdrawn rather than kept"),
31
- resources: zod
32
- .array(ResourceRefResource)
33
- .nullish()
34
- .describe("The resource scope of this policy, replaced in full. What the scope contains can change; whether the policy has one cannot. A base policy cannot take a scope, and a scoped policy cannot have its scope cleared"),
35
- roles: zod
36
- .array(zod.string())
37
- .nullish()
38
- .describe("Each must be a role already defined in this project, replaced in full. As when attaching, `OWNER` and `ADMIN` are not accepted"),
39
- });