@leaflow/sdk 0.0.0-dev.359.gca6d1b5 → 0.0.0-dev.361.gefdc428
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.
- package/dist/assistant/v1/generated/functions.d.ts +1280 -560
- package/dist/assistant/v1/generated/functions.js +1288 -447
- package/dist/assistant/v1/generated/models.d.ts +1777 -979
- package/dist/assistant/v1/generated/models.js +196 -83
- package/dist/assistant/v1/generated/schemas.zod.d.ts +728 -313
- package/dist/assistant/v1/generated/schemas.zod.js +635 -274
- package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.d.ts +30 -0
- package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.js +28 -0
- package/dist/assistant/v1/generated/validators/approvalMode.zod.d.ts +32 -0
- package/dist/assistant/v1/generated/validators/approvalMode.zod.js +28 -0
- package/dist/assistant/v1/generated/validators/attachmentResource.zod.d.ts +19 -43
- package/dist/assistant/v1/generated/validators/attachmentResource.zod.js +23 -47
- package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/bindingResource.zod.d.ts +16 -40
- package/dist/assistant/v1/generated/validators/bindingResource.zod.js +16 -40
- package/dist/assistant/v1/generated/validators/channelResource.zod.d.ts +18 -42
- package/dist/assistant/v1/generated/validators/channelResource.zod.js +17 -41
- package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.d.ts +18 -42
- package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.js +17 -41
- package/dist/assistant/v1/generated/validators/checkSenderParams.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/checkSenderParams.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/choiceResource.zod.d.ts +31 -0
- package/dist/assistant/v1/generated/validators/choiceResource.zod.js +29 -0
- package/dist/assistant/v1/generated/validators/clientActionRequest.zod.d.ts +21 -45
- package/dist/assistant/v1/generated/validators/clientActionRequest.zod.js +20 -47
- package/dist/assistant/v1/generated/validators/clientContextPart.zod.d.ts +16 -40
- package/dist/assistant/v1/generated/validators/clientContextPart.zod.js +17 -41
- package/dist/assistant/v1/generated/validators/clientContextRequest.zod.d.ts +23 -47
- package/dist/assistant/v1/generated/validators/clientContextRequest.zod.js +24 -48
- package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.d.ts +18 -42
- package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.js +24 -50
- package/dist/assistant/v1/generated/validators/commandListResponseBody.zod.d.ts +35 -0
- package/dist/assistant/v1/generated/validators/commandListResponseBody.zod.js +29 -0
- package/dist/assistant/v1/generated/validators/commandResource.zod.d.ts +33 -0
- package/dist/assistant/v1/generated/validators/commandResource.zod.js +33 -0
- package/dist/assistant/v1/generated/validators/commandResultResource.zod.d.ts +201 -0
- package/dist/assistant/v1/generated/validators/commandResultResource.zod.js +37 -0
- package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.d.ts +30 -0
- package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.js +28 -0
- package/dist/assistant/v1/generated/validators/contextUsageResource.zod.d.ts +31 -0
- package/dist/assistant/v1/generated/validators/contextUsageResource.zod.js +37 -0
- package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.d.ts +61 -0
- package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.js +35 -0
- package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.d.ts +51 -41
- package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.js +33 -47
- package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.d.ts +118 -0
- package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.js +33 -0
- package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.d.ts +37 -0
- package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.js +35 -0
- package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/cursorPagination.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/cursorPagination.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.d.ts +33 -0
- package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.js +38 -0
- package/dist/assistant/v1/generated/validators/defaultModelResource.zod.d.ts +39 -0
- package/dist/assistant/v1/generated/validators/defaultModelResource.zod.js +38 -0
- package/dist/assistant/v1/generated/validators/error.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/error.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/fileDiffResource.zod.d.ts +18 -42
- package/dist/assistant/v1/generated/validators/fileDiffResource.zod.js +22 -46
- package/dist/assistant/v1/generated/validators/folderCountsResource.zod.d.ts +35 -0
- package/dist/assistant/v1/generated/validators/folderCountsResource.zod.js +35 -0
- package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.d.ts +28 -43
- package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.js +16 -40
- package/dist/assistant/v1/generated/validators/folderResource.zod.d.ts +27 -41
- package/dist/assistant/v1/generated/validators/folderResource.zod.js +23 -43
- package/dist/assistant/v1/generated/validators/itemFrame.zod.d.ts +36 -0
- package/dist/assistant/v1/generated/validators/itemFrame.zod.js +32 -0
- package/dist/assistant/v1/generated/validators/itemSourceResource.zod.d.ts +36 -0
- package/dist/assistant/v1/generated/validators/itemSourceResource.zod.js +31 -0
- package/dist/assistant/v1/generated/validators/lastTurnResource.zod.d.ts +43 -0
- package/dist/assistant/v1/generated/validators/lastTurnResource.zod.js +37 -0
- package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.d.ts +16 -40
- package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.d.ts +18 -42
- package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/listBindingsParams.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/listBindingsParams.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/listChannelsParams.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/listChannelsParams.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.d.ts +34 -0
- package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.js +32 -0
- package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.d.ts +38 -0
- package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.js +40 -0
- package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.d.ts +36 -0
- package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.js +38 -0
- package/dist/assistant/v1/generated/validators/loginResource.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/loginResource.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/memoryResource.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/memoryResource.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/messagePart.zod.d.ts +17 -41
- package/dist/assistant/v1/generated/validators/messagePart.zod.js +20 -47
- package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.d.ts +32 -0
- package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.js +30 -0
- package/dist/assistant/v1/generated/validators/offsetPagination.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/offsetPagination.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/openRealtimeParams.zod.d.ts +31 -0
- package/dist/assistant/v1/generated/validators/openRealtimeParams.zod.js +29 -0
- package/dist/assistant/v1/generated/validators/partResource.zod.d.ts +17 -41
- package/dist/assistant/v1/generated/validators/partResource.zod.js +21 -45
- package/dist/assistant/v1/generated/validators/pendingActionResource.zod.d.ts +35 -0
- package/dist/assistant/v1/generated/validators/pendingActionResource.zod.js +37 -0
- package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.d.ts +33 -0
- package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.js +34 -0
- package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/platformResource.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/platformResource.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/presentationResource.zod.d.ts +23 -47
- package/dist/assistant/v1/generated/validators/presentationResource.zod.js +20 -42
- package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.d.ts +30 -0
- package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.js +28 -0
- package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.d.ts +30 -0
- package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.js +28 -0
- package/dist/assistant/v1/generated/validators/questionResource.zod.d.ts +36 -0
- package/dist/assistant/v1/generated/validators/questionResource.zod.js +34 -0
- package/dist/assistant/v1/generated/validators/realtimeClientMessage.zod.d.ts +38 -0
- package/dist/assistant/v1/generated/validators/realtimeClientMessage.zod.js +42 -0
- package/dist/assistant/v1/generated/validators/realtimeExchange.zod.d.ts +278 -0
- package/dist/assistant/v1/generated/validators/realtimeExchange.zod.js +33 -0
- package/dist/assistant/v1/generated/validators/realtimeServerMessage.zod.d.ts +267 -0
- package/dist/assistant/v1/generated/validators/realtimeServerMessage.zod.js +64 -0
- package/dist/assistant/v1/generated/validators/realtimeTicketResource.zod.d.ts +32 -0
- package/dist/assistant/v1/generated/validators/realtimeTicketResource.zod.js +30 -0
- package/dist/assistant/v1/generated/validators/reasoningEffort.zod.d.ts +32 -0
- package/dist/assistant/v1/generated/validators/reasoningEffort.zod.js +28 -0
- package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/rejectionResource.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/rejectionResource.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.d.ts +31 -0
- package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.js +33 -0
- package/dist/assistant/v1/generated/validators/revertRequestBody.zod.d.ts +16 -39
- package/dist/assistant/v1/generated/validators/revertRequestBody.zod.js +18 -40
- package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.d.ts +16 -39
- package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.js +17 -40
- package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/runCommandRequestBody.zod.d.ts +33 -0
- package/dist/assistant/v1/generated/validators/runCommandRequestBody.zod.js +39 -0
- package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.d.ts +52 -0
- package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.js +45 -0
- package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.d.ts +62 -0
- package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.js +83 -0
- package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.d.ts +28 -52
- package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.js +17 -41
- package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.d.ts +33 -0
- package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.js +37 -0
- package/dist/assistant/v1/generated/validators/senderCheckResource.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/senderCheckResource.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/settingsResource.zod.d.ts +47 -0
- package/dist/assistant/v1/generated/validators/settingsResource.zod.js +34 -0
- package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/skillRequestBody.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/skillRequestBody.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/skillResource.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/skillResource.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/statusReportResource.zod.d.ts +108 -0
- package/dist/assistant/v1/generated/validators/statusReportResource.zod.js +48 -0
- package/dist/assistant/v1/generated/validators/subagentCountResource.zod.d.ts +33 -0
- package/dist/assistant/v1/generated/validators/subagentCountResource.zod.js +31 -0
- package/dist/assistant/v1/generated/validators/taskAction.zod.d.ts +41 -0
- package/dist/assistant/v1/generated/validators/taskAction.zod.js +51 -0
- package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.d.ts +89 -0
- package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.js +30 -0
- package/dist/assistant/v1/generated/validators/taskResource.zod.d.ts +86 -0
- package/dist/assistant/v1/generated/validators/taskResource.zod.js +45 -0
- package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.d.ts +47 -0
- package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.js +30 -0
- package/dist/assistant/v1/generated/validators/taskRunResource.zod.d.ts +44 -0
- package/dist/assistant/v1/generated/validators/taskRunResource.zod.js +38 -0
- package/dist/assistant/v1/generated/validators/taskTrigger.zod.d.ts +51 -0
- package/dist/assistant/v1/generated/validators/taskTrigger.zod.js +64 -0
- package/dist/assistant/v1/generated/validators/threadCountsResource.zod.d.ts +37 -0
- package/dist/assistant/v1/generated/validators/threadCountsResource.zod.js +37 -0
- package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.d.ts +234 -0
- package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.js +46 -0
- package/dist/assistant/v1/generated/validators/threadItemResource.zod.d.ts +127 -0
- package/dist/assistant/v1/generated/validators/threadItemResource.zod.js +84 -0
- package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.d.ts +102 -48
- package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.js +22 -45
- package/dist/assistant/v1/generated/validators/threadResource.zod.d.ts +116 -0
- package/dist/assistant/v1/generated/validators/threadResource.zod.js +94 -0
- package/dist/assistant/v1/generated/validators/threadStatus.zod.d.ts +35 -0
- package/dist/assistant/v1/generated/validators/threadStatus.zod.js +28 -0
- package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.d.ts +74 -0
- package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.js +30 -0
- package/dist/assistant/v1/generated/validators/threadTurnResource.zod.d.ts +72 -0
- package/dist/assistant/v1/generated/validators/threadTurnResource.zod.js +69 -0
- package/dist/assistant/v1/generated/validators/todoResource.zod.d.ts +17 -41
- package/dist/assistant/v1/generated/validators/todoResource.zod.js +18 -42
- package/dist/assistant/v1/generated/validators/toolCallResource.zod.d.ts +64 -0
- package/dist/assistant/v1/generated/validators/toolCallResource.zod.js +71 -0
- package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.d.ts +36 -0
- package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.js +48 -0
- package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.d.ts +30 -0
- package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.js +28 -0
- package/dist/assistant/v1/generated/validators/turnStatus.zod.d.ts +34 -0
- package/dist/assistant/v1/generated/validators/turnStatus.zod.js +28 -0
- package/dist/assistant/v1/generated/validators/turnType.zod.d.ts +31 -0
- package/dist/assistant/v1/generated/validators/turnType.zod.js +28 -0
- package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.d.ts +36 -0
- package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.js +31 -0
- package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.d.ts +59 -0
- package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.js +33 -0
- package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.d.ts +23 -44
- package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.js +22 -59
- package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.d.ts +31 -0
- package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.js +29 -0
- package/dist/assistant/v1/generated/validators/uploadAttachmentParams.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/uploadAttachmentParams.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.d.ts +35 -0
- package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.js +33 -0
- package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.d.ts +44 -0
- package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.js +29 -0
- package/dist/assistant/v1/generated/validators/uploadPartResource.zod.d.ts +32 -0
- package/dist/assistant/v1/generated/validators/uploadPartResource.zod.js +30 -0
- package/dist/assistant/v1/generated/validators/uploadResource.zod.d.ts +42 -0
- package/dist/assistant/v1/generated/validators/uploadResource.zod.js +37 -0
- package/dist/assistant/v1/generated/validators/uploadedResource.zod.d.ts +16 -40
- package/dist/assistant/v1/generated/validators/uploadedResource.zod.js +18 -42
- package/dist/assistant/v1/generated/validators/usage.zod.d.ts +44 -0
- package/dist/assistant/v1/generated/validators/usage.zod.js +61 -0
- package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.js +15 -39
- package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.d.ts +15 -39
- package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.js +15 -39
- package/dist/billing/type/order/v1/generated/validators/allowance.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/allowanceList.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/creditGrant.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/creditGrantList.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/discount.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/discountList.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/featureGrant.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/featureGrantList.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/featureGrantStatus.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/order.zod.d.ts +2 -2
- package/dist/billing/type/order/v1/generated/validators/orderItem.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/orderItemList.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/orderItemStatus.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/orderList.zod.d.ts +2 -2
- package/dist/billing/type/order/v1/generated/validators/orderStatus.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/paymentMethod.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/paymentMethodList.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/paymentResult.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/refund.zod.d.ts +2 -2
- package/dist/billing/type/order/v1/generated/validators/refundList.zod.d.ts +2 -2
- package/dist/billing/type/order/v1/generated/validators/scheduledChange.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/subscription.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/subscriptionList.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/topUp.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/topUpList.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/transaction.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/transactionList.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/withdrawal.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/withdrawalItem.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/withdrawalItemList.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/withdrawalList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/schemas.zod.d.ts +5 -5
- package/dist/billing/v1/generated/validators/allowance.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/allowanceList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/creditGrant.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/creditGrantList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/discount.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/discountList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/featureGrant.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/featureGrantList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/featureGrantStatus.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listAllowancesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listCancellationsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listCreditGrantsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listFeatureGrantsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listOrdersParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/order.zod.d.ts +2 -2
- package/dist/billing/v1/generated/validators/orderItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/orderItemList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/orderItemStatus.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/orderList.zod.d.ts +2 -2
- package/dist/billing/v1/generated/validators/orderStatus.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentMethod.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentMethodList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentResult.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/refund.zod.d.ts +2 -2
- package/dist/billing/v1/generated/validators/refundList.zod.d.ts +2 -2
- package/dist/billing/v1/generated/validators/scheduledChange.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/subscription.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/subscriptionList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/topUp.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/topUpList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/transaction.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/transactionList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawal.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalItemList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalList.zod.d.ts +1 -1
- package/dist/canopy/v1/generated/functions.d.ts +81 -6
- package/dist/canopy/v1/generated/functions.js +110 -6
- package/dist/canopy/v1/generated/models.d.ts +34 -16
- package/dist/canopy/v1/generated/models.js +5 -5
- package/dist/canopy/v1/generated/schemas.zod.d.ts +39 -5
- package/dist/canopy/v1/generated/schemas.zod.js +38 -5
- package/dist/canopy/v1/generated/validators/aPIKeyResource.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/aPIKeyResource.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/aPIKeyUsageListResponseBody.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/aPIKeyUsageListResponseBody.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/aPIKeyUsageResource.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/aPIKeyUsageResource.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/accountBalance.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/accountBalance.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/accountIdentity.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/accountIdentity.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/activeResource.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/activeResource.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/activeResourceList.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/activeResourceList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/allowance.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/allowance.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/allowanceList.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/allowanceList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/applicability.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/applicability.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/applicablePlan.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/applicablePlan.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/appliedCredit.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/appliedCredit.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/autoRenewSet.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/autoRenewSet.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/billingAccount.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/billingAccount.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/billingAccountCreate.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/billingAccountCreate.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/billingAccountList.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/billingAccountList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/billingAccountUpdate.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/billingAccountUpdate.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/billingScheme.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/billingScheme.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/cancelSubscriptionRequest.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/cancelSubscriptionRequest.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/cancellation.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/cancellation.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/cancellationCreate.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/cancellationCreate.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/cancellationItem.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/cancellationItem.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/cancellationList.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/cancellationList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/cancellationPolicy.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/cancellationPolicy.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/chatCompletion.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/chatCompletion.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/chatCompletionRequest.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/chatCompletionRequest.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/checkoutMode.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/checkoutMode.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/checkoutOptions.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/checkoutOptions.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/contact.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/contact.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/contactCreate.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/contactCreate.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/contactList.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/contactList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/contactUpdate.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/contactUpdate.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/createAPIKeyRequestBody.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/createAPIKeyRequestBody.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/createServiceRequestBody.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/createServiceRequestBody.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/createServiceResponseBody.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/createServiceResponseBody.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/creditGrant.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/creditGrant.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/creditGrantList.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/creditGrantList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/creditGroup.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/creditGroup.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/creditNote.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/creditNote.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/creditNoteItem.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/creditNoteItem.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/creditNoteItemList.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/creditNoteItemList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/creditNoteList.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/creditNoteList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/currency.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/currency.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/currencyList.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/currencyList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/cursorPageRequestResource.zod.d.ts +12 -10
- package/dist/canopy/v1/generated/validators/cursorPageRequestResource.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/cursorPagination.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/cursorPagination.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/discount.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/discount.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/discountList.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/discountList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/embeddingRequest.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/embeddingRequest.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/embeddingResponse.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/embeddingResponse.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/endpointCapabilities.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/endpointCapabilities.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/entitlement.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/entitlement.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/entitlementList.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/entitlementList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/error.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/error.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/errorA200529.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/errorA200529.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/featureGrant.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/featureGrant.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/featureGrantList.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/featureGrantList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/featureGrantStatus.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/featureGrantStatus.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/funds.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/funds.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/getUsageSummaryParams.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/getUsageSummaryParams.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/getUsageTimelineParams.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/getUsageTimelineParams.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/inferenceError.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/inferenceError.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/invoice.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/invoice.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/invoiceItem.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/invoiceItem.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/invoiceItemList.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/invoiceItemList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/invoiceItemProration.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/invoiceItemProration.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/invoiceList.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/invoiceList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/invoiceStatus.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/invoiceStatus.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/invoiceSummary.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/invoiceSummary.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/issuedAPIKeyResource.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/issuedAPIKeyResource.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/lengthAwarePageAPIKeyResource.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/lengthAwarePageAPIKeyResource.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/listApiKeysParams.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/listApiKeysParams.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/listRequestsParams.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/listRequestsParams.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/listUsageByApiKeyParams.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/listUsageByApiKeyParams.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/listUsageByModelParams.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/listUsageByModelParams.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/modality.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/modality.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/model.zod.d.ts +14 -4
- package/dist/canopy/v1/generated/validators/model.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/modelCapabilities.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/modelCapabilities.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/modelEndpoint.zod.d.ts +14 -4
- package/dist/canopy/v1/generated/validators/modelEndpoint.zod.js +14 -4
- package/dist/canopy/v1/generated/validators/modelList.zod.d.ts +14 -4
- package/dist/canopy/v1/generated/validators/modelList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/modelListResponseBody.zod.d.ts +14 -4
- package/dist/canopy/v1/generated/validators/modelListResponseBody.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/modelPricing.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/modelPricing.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/modelResource.zod.d.ts +14 -4
- package/dist/canopy/v1/generated/validators/modelResource.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/modelUsageListResponseBody.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/modelUsageListResponseBody.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/modelUsageResource.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/modelUsageResource.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/money.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/money.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/monthlyStatement.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/monthlyStatement.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/monthlyStatementList.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/monthlyStatementList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/namedIdentity.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/namedIdentity.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/nativeRequest.zod.d.ts +44 -0
- package/dist/canopy/v1/generated/validators/nativeRequest.zod.js +44 -0
- package/dist/canopy/v1/generated/validators/nativeResponse.zod.d.ts +44 -0
- package/dist/canopy/v1/generated/validators/nativeResponse.zod.js +44 -0
- package/dist/canopy/v1/generated/validators/objectIdentity.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/objectIdentity.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/offsetPagination.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/offsetPagination.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/order.zod.d.ts +14 -6
- package/dist/canopy/v1/generated/validators/order.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/orderCancel.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/orderCancel.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/orderItem.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/orderItem.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/orderItemList.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/orderItemList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/orderItemStatus.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/orderItemStatus.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/orderList.zod.d.ts +14 -6
- package/dist/canopy/v1/generated/validators/orderList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/orderRefundQuote.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/orderRefundQuote.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/orderRefundQuoteInput.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/orderRefundQuoteInput.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/orderStatus.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/orderStatus.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/paidWith.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/paidWith.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/payInvoiceRequest.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/payInvoiceRequest.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/payTogetherRequest.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/payTogetherRequest.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/paymentAction.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/paymentAction.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/paymentCancellationReason.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/paymentCancellationReason.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/paymentMethod.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/paymentMethod.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/paymentMethodList.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/paymentMethodList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/paymentMethodSetup.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/paymentMethodSetup.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/paymentMethodSetupResult.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/paymentMethodSetupResult.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/paymentOption.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/paymentOption.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/paymentOptionList.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/paymentOptionList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/paymentOptionMethod.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/paymentOptionMethod.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/paymentPreview.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/paymentPreview.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/paymentPreviewInvoice.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/paymentPreviewInvoice.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/paymentResult.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/paymentResult.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/paymentStatus.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/paymentStatus.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/placedOrder.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/placedOrder.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/plan.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/plan.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/planFeature.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/planFeature.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/planList.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/planList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/price.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/price.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/priceList.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/priceList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/priceOption.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/priceOption.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/priceType.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/priceType.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/product.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/product.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/productID.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/productID.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/productList.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/productList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/projectAssignment.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/projectAssignment.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/projectAssignmentList.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/projectAssignmentList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/purchaseOperation.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/purchaseOperation.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/quote.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/quote.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/quote5f60d00.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/quote5f60d00.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/quoteA200529.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/quoteA200529.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/quoteCancellation.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/quoteCancellation.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/quoteItem.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/quoteItem.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/quoteItemDc1fddb.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/quoteItemDc1fddb.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/quoteItemInput.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/quoteItemInput.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/quoteRenewal.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/quoteRenewal.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/quoteRenewalResult.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/quoteRenewalResult.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/quoteRequest.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/quoteRequest.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/quotedDiscount.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/quotedDiscount.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/rate.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/rate.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/rateList.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/rateList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/reasoningCapabilities.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/reasoningCapabilities.zod.js +13 -5
- package/dist/canopy/v1/generated/validators/reasoningDiagnostics.zod.d.ts +12 -10
- package/dist/canopy/v1/generated/validators/reasoningDiagnostics.zod.js +12 -6
- package/dist/canopy/v1/generated/validators/refund.zod.d.ts +14 -6
- package/dist/canopy/v1/generated/validators/refund.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/refundList.zod.d.ts +14 -6
- package/dist/canopy/v1/generated/validators/refundList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/refundPolicy.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/refundPolicy.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/refundReason.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/refundReason.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/renewRequest.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/renewRequest.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/renewalOrderRequest.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/renewalOrderRequest.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/renewalPrice.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/renewalPrice.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/renewalPriceList.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/renewalPriceList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/requestResource.zod.d.ts +12 -10
- package/dist/canopy/v1/generated/validators/requestResource.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/responseCreate.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/responseCreate.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/responseDeleted.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/responseDeleted.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/responseResource.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/responseResource.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/scheduledChange.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/scheduledChange.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/serviceResource.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/serviceResource.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/setProjectAssignmentRequest.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/setProjectAssignmentRequest.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/spendRow.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/spendRow.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/spendRowList.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/spendRowList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/statement.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/statement.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/statementAmounts.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/statementAmounts.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/statementItem.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/statementItem.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/statementList.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/statementList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/statementStatus.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/statementStatus.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/statementSummary.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/statementSummary.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/statementType.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/statementType.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/streamGenerateContentParams.zod.d.ts +48 -0
- package/dist/canopy/v1/generated/validators/streamGenerateContentParams.zod.js +44 -0
- package/dist/canopy/v1/generated/validators/subscription.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/subscription.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/subscriptionCancellation.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/subscriptionCancellation.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/subscriptionList.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/subscriptionList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/subscriptionRestriction.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/subscriptionRestriction.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/taxItem.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/taxItem.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/tier.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/tier.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/tokenPrice.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/tokenPrice.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/topUp.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/topUp.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/topUpCreate.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/topUpCreate.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/topUpList.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/topUpList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/totalsResource.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/totalsResource.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/transaction.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/transaction.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/transactionList.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/transactionList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/transactionType.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/transactionType.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/updateAPIKeyRequestBody.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/updateAPIKeyRequestBody.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/usageBucketResource.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/usageBucketResource.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/usageCharge.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/usageCharge.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/usageChargeList.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/usageChargeList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/usageTimelineResponseBody.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/usageTimelineResponseBody.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/usageType.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/usageType.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/withdrawal.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/withdrawal.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/withdrawalAllocation.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/withdrawalAllocation.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/withdrawalCreate.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/withdrawalCreate.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/withdrawalItem.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/withdrawalItem.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/withdrawalItemList.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/withdrawalItemList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/withdrawalList.zod.d.ts +13 -5
- package/dist/canopy/v1/generated/validators/withdrawalList.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/withdrawalPreview.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/withdrawalPreview.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/withdrawalPreviewItem.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/withdrawalPreviewItem.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/withdrawalPreviewRequest.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/withdrawalPreviewRequest.zod.js +12 -4
- package/dist/canopy/v1/generated/validators/withdrawalSource.zod.d.ts +12 -4
- package/dist/canopy/v1/generated/validators/withdrawalSource.zod.js +12 -4
- package/dist/compute/v1/generated/validators/allocateFloatingIPResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/backupCapacityPack.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/backupCapacityPackListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/backupService.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createBackupCapacityPackResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createBackupServiceResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createDiskResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createImageResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/diskListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/diskResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/floatingIPListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/floatingIPResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/imageListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/imageResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/instanceListResponseBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/instanceResource.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/launchInstanceResponseBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/peeringListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/peeringResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/rebuildInstanceResponseBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/resizeDiskResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/resizeInstanceResponseBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/setSnapshotQuotaResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/snapshotListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/snapshotQuota.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/snapshotResource.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/allowance.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/allowanceList.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/creditGrant.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/creditGrantList.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/discount.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/discountList.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/featureGrant.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/featureGrantList.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/featureGrantStatus.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/order.zod.d.ts +2 -2
- package/dist/membership/v1/generated/validators/orderItem.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/orderItemList.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/orderItemStatus.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/orderList.zod.d.ts +2 -2
- package/dist/membership/v1/generated/validators/orderStatus.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/paymentMethod.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/paymentMethodList.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/paymentResult.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/refund.zod.d.ts +2 -2
- package/dist/membership/v1/generated/validators/refundList.zod.d.ts +2 -2
- package/dist/membership/v1/generated/validators/scheduledChange.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/subscription.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/subscriptionList.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/topUp.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/topUpList.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/transaction.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/transactionList.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/withdrawal.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/withdrawalItem.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/withdrawalItemList.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/withdrawalList.zod.d.ts +1 -1
- package/dist/notification/v1/generated/schemas.zod.d.ts +3 -3
- package/dist/notification/v1/generated/validators/channelListResponseBody.zod.d.ts +1 -1
- package/dist/notification/v1/generated/validators/channelResource.zod.d.ts +1 -1
- package/dist/notification/v1/generated/validators/channelScope.zod.d.ts +1 -1
- package/dist/notification/v1/generated/validators/createChannelRequestBody.zod.d.ts +1 -1
- package/dist/notification/v1/generated/validators/listUserChannelsParams.zod.d.ts +1 -1
- package/dist/notification/v1/generated/validators/notificationChannel.zod.d.ts +1 -1
- package/dist/notification/v1/generated/validators/notificationTypeDescriptor.zod.d.ts +2 -2
- package/dist/notification/v1/generated/validators/notificationTypeListResponseBody.zod.d.ts +2 -2
- package/dist/notification/v1/generated/validators/typePreferenceListResponseBody.zod.d.ts +1 -1
- package/dist/notification/v1/generated/validators/typePreferenceResource.zod.d.ts +1 -1
- package/dist/notification/v1/generated/validators/updateTypePreferenceRequestBody.zod.d.ts +1 -1
- package/dist/routes.d.ts +350 -78
- package/dist/routes.js +384 -78
- package/dist/type/resource/v1/generated/validators/reclamationState.zod.d.ts +1 -1
- package/package.json +1 -1
- package/dist/assistant/v1/generated/validators/answerRequestBody.zod.d.ts +0 -54
- package/dist/assistant/v1/generated/validators/answerRequestBody.zod.js +0 -54
- package/dist/assistant/v1/generated/validators/choice.zod.d.ts +0 -55
- package/dist/assistant/v1/generated/validators/choice.zod.js +0 -53
- package/dist/assistant/v1/generated/validators/contextResource.zod.d.ts +0 -59
- package/dist/assistant/v1/generated/validators/contextResource.zod.js +0 -62
- package/dist/assistant/v1/generated/validators/decideRequestBody.zod.d.ts +0 -55
- package/dist/assistant/v1/generated/validators/decideRequestBody.zod.js +0 -53
- package/dist/assistant/v1/generated/validators/documentResource.zod.d.ts +0 -181
- package/dist/assistant/v1/generated/validators/documentResource.zod.js +0 -71
- package/dist/assistant/v1/generated/validators/dynamicCallResultRequestBody.zod.d.ts +0 -60
- package/dist/assistant/v1/generated/validators/dynamicCallResultRequestBody.zod.js +0 -72
- package/dist/assistant/v1/generated/validators/earlierResource.zod.d.ts +0 -55
- package/dist/assistant/v1/generated/validators/earlierResource.zod.js +0 -53
- package/dist/assistant/v1/generated/validators/earlierResponseBody.zod.d.ts +0 -130
- package/dist/assistant/v1/generated/validators/earlierResponseBody.zod.js +0 -55
- package/dist/assistant/v1/generated/validators/itemResource.zod.d.ts +0 -124
- package/dist/assistant/v1/generated/validators/itemResource.zod.js +0 -101
- package/dist/assistant/v1/generated/validators/listEarlierItemsParams.zod.d.ts +0 -55
- package/dist/assistant/v1/generated/validators/listEarlierItemsParams.zod.js +0 -56
- package/dist/assistant/v1/generated/validators/listThreadsParams.zod.d.ts +0 -63
- package/dist/assistant/v1/generated/validators/listThreadsParams.zod.js +0 -72
- package/dist/assistant/v1/generated/validators/modelListResponseBody.zod.d.ts +0 -69
- package/dist/assistant/v1/generated/validators/modelListResponseBody.zod.js +0 -65
- package/dist/assistant/v1/generated/validators/modelResource.zod.d.ts +0 -65
- package/dist/assistant/v1/generated/validators/modelResource.zod.js +0 -81
- package/dist/assistant/v1/generated/validators/question.zod.d.ts +0 -60
- package/dist/assistant/v1/generated/validators/question.zod.js +0 -56
- package/dist/assistant/v1/generated/validators/streamResource.zod.d.ts +0 -55
- package/dist/assistant/v1/generated/validators/streamResource.zod.js +0 -53
- package/dist/assistant/v1/generated/validators/threadSummaryResource.zod.d.ts +0 -68
- package/dist/assistant/v1/generated/validators/threadSummaryResource.zod.js +0 -73
- package/dist/assistant/v1/generated/validators/turnIDResponseBody.zod.d.ts +0 -56
- package/dist/assistant/v1/generated/validators/turnIDResponseBody.zod.js +0 -61
- package/dist/assistant/v1/generated/validators/turnResource.zod.d.ts +0 -58
- package/dist/assistant/v1/generated/validators/turnResource.zod.js +0 -52
- package/dist/assistant/v1/generated/validators/waitResource.zod.d.ts +0 -71
- package/dist/assistant/v1/generated/validators/waitResource.zod.js +0 -59
|
@@ -2,49 +2,25 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Assistant API
|
|
5
|
-
*
|
|
5
|
+
* Conversations with agents that operate the Leaflow platform, plus their folders, tasks, files and
|
|
6
|
+
* chat-app channels.
|
|
6
7
|
*
|
|
7
|
-
*
|
|
8
|
+
* A conversation is a thread. A person talks to the main thread; the agent in it can start subagents,
|
|
9
|
+
* which are threads too and run on their own: stopping the main thread does not stop them, and each
|
|
10
|
+
* subagent tells its parent when it ends. A thread runs in turns; each turn records the model and
|
|
11
|
+
* reasoning effort it used and its token usage.
|
|
8
12
|
*
|
|
9
|
-
*
|
|
13
|
+
* Models come from the Canopy catalogue. A new thread uses the model it names, the caller's default
|
|
14
|
+
* from /api/v1/settings, or the first catalogue model that can run an agent. Reasoning models take one
|
|
15
|
+
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
10
16
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* 4. When the assistant needs the user, the document's `wait` says which kind: approving a batch of tool calls (`POST /api/v1/threads/{thread}/approvals/{batch}`), or answering a few questions (`POST /api/v1/threads/{thread}/questions/{item}`). It continues on its own once that is handled.
|
|
17
|
+
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
+
* over the WebSocket described under /api/v1/realtime/tickets. Slash commands such as /status and
|
|
19
|
+
* /compact are listed by list-commands and work the same in the console and in chat apps.
|
|
15
20
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* Canopy owns the model catalogue and capabilities. Model ids in this API, conversation preferences and historical entries are Canopy model ids, with no separate assistant model registration. GET /api/v1/models returns the allowed, usable choices and allowModelSelection. Hide the selector when selection is disabled; the service enforces the same rule.
|
|
21
|
-
*
|
|
22
|
-
* preferredModelId is the user's choice. Null follows the platform default, including later changes. Disabled selection preserves but ignores preferences for new turns. A model removed from the allowlist, retired in Canopy or otherwise unusable falls back to the default without clearing the preference.
|
|
23
|
-
*
|
|
24
|
-
* Users can switch an existing conversation through PATCH /api/v1/threads/{thread} with preferredModelId. This preserves the transcript, starts no turn and makes no inference request. Null returns to following the default. Changes apply from the next turn; a running or waiting turn and messages queued into it retain their captured choices and fallback policy.
|
|
25
|
-
*
|
|
26
|
-
* If the chosen model cannot serve a request, the service may safely fall back to the default without confirmation or an additional switching message. If the default also fails, the turn fails normally; no third model is selected for ordinary answers. Fallback preserves executed tool results and never splices answers from different models. Invalid input, cancellation and a declined tool call do not trigger model fallback. Each entry's model records its actual Canopy author, not the saved preference.
|
|
27
|
-
*
|
|
28
|
-
* Users cannot choose a compaction model. Normal compaction reuses the effective model and reasoning settings for context-cache reuse. Only if that model cannot handle the compaction request or produce a summary fitting the target window may the service automatically use another allowed Canopy model with suitable capabilities. This does not change the preference or ordinary answer model, and is permitted even when user model selection is disabled.
|
|
29
|
-
*
|
|
30
|
-
* After compaction, the full next request, including instructions, tools and retained messages, must fit the target's usable prompt budget with room left for an answer, respecting its output limit. If still too large, further compaction attempts are bounded; exhaustion fails with CANNOT_FOLD instead of sending an oversized request or silently discarding history or images. The same checks apply when switching models or falling back. Each compaction entry records its actual author.
|
|
31
|
-
*
|
|
32
|
-
* An empty allowlist or unavailable default does not prevent reading conversations or saving permitted preference changes. A failed Canopy catalogue read is not evidence that a model was removed: use a valid cached snapshot or return MODEL_CATALOG_UNAVAILABLE, without deleting references or inventing capabilities. Catalogue presence is configuration information, not a live provider health check.
|
|
33
|
-
*
|
|
34
|
-
* ## Live output
|
|
35
|
-
*
|
|
36
|
-
* ```
|
|
37
|
-
* GET /api/v1/turns/{turn}/stream?ticket=<ticket>&cursor=<cursor>
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* This is a Server-Sent Events stream, which is why it is not in the operation list below and why generated clients have no method for it. Open it with `EventSource`, or any SSE client. It is how live output arrives; polling the document on a timer is not the intended way to follow a conversation.
|
|
41
|
-
*
|
|
42
|
-
* - `path` and `ticket` both come from the conversation document's `stream`. `path` is relative, resolved against the address the document was fetched from;
|
|
43
|
-
* - `cursor` is where to start, from the document's `cursor`. Omit it to start at the beginning of what is still available;
|
|
44
|
-
* - every event is one incremental edit to that same document, so the same rendering logic applies;
|
|
45
|
-
* - the connection has a lifetime and closes cleanly when it ends. With `EventSource` the browser reconnects with `Last-Event-ID` and resumes by itself, so nothing needs handling;
|
|
46
|
-
* - three terminal events: `done` this turn finished (carrying its final status), `paused` the assistant is waiting on the user (fetch the document again and read `wait`), `stalled` execution was interrupted and will not resume — do not reconnect.
|
|
47
|
-
* OpenAPI spec version: 1.0.0
|
|
21
|
+
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
|
+
* parts, then complete the upload and send its attachment id in a message.
|
|
23
|
+
* OpenAPI spec version: 2.0.0
|
|
48
24
|
*/
|
|
49
25
|
import * as zod from "zod";
|
|
50
26
|
import { MemoryResource } from "./memoryResource.zod.js";
|
|
@@ -2,49 +2,25 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Assistant API
|
|
5
|
-
*
|
|
5
|
+
* Conversations with agents that operate the Leaflow platform, plus their folders, tasks, files and
|
|
6
|
+
* chat-app channels.
|
|
6
7
|
*
|
|
7
|
-
*
|
|
8
|
+
* A conversation is a thread. A person talks to the main thread; the agent in it can start subagents,
|
|
9
|
+
* which are threads too and run on their own: stopping the main thread does not stop them, and each
|
|
10
|
+
* subagent tells its parent when it ends. A thread runs in turns; each turn records the model and
|
|
11
|
+
* reasoning effort it used and its token usage.
|
|
8
12
|
*
|
|
9
|
-
*
|
|
13
|
+
* Models come from the Canopy catalogue. A new thread uses the model it names, the caller's default
|
|
14
|
+
* from /api/v1/settings, or the first catalogue model that can run an agent. Reasoning models take one
|
|
15
|
+
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
10
16
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* 4. When the assistant needs the user, the document's `wait` says which kind: approving a batch of tool calls (`POST /api/v1/threads/{thread}/approvals/{batch}`), or answering a few questions (`POST /api/v1/threads/{thread}/questions/{item}`). It continues on its own once that is handled.
|
|
17
|
+
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
+
* over the WebSocket described under /api/v1/realtime/tickets. Slash commands such as /status and
|
|
19
|
+
* /compact are listed by list-commands and work the same in the console and in chat apps.
|
|
15
20
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* Canopy owns the model catalogue and capabilities. Model ids in this API, conversation preferences and historical entries are Canopy model ids, with no separate assistant model registration. GET /api/v1/models returns the allowed, usable choices and allowModelSelection. Hide the selector when selection is disabled; the service enforces the same rule.
|
|
21
|
-
*
|
|
22
|
-
* preferredModelId is the user's choice. Null follows the platform default, including later changes. Disabled selection preserves but ignores preferences for new turns. A model removed from the allowlist, retired in Canopy or otherwise unusable falls back to the default without clearing the preference.
|
|
23
|
-
*
|
|
24
|
-
* Users can switch an existing conversation through PATCH /api/v1/threads/{thread} with preferredModelId. This preserves the transcript, starts no turn and makes no inference request. Null returns to following the default. Changes apply from the next turn; a running or waiting turn and messages queued into it retain their captured choices and fallback policy.
|
|
25
|
-
*
|
|
26
|
-
* If the chosen model cannot serve a request, the service may safely fall back to the default without confirmation or an additional switching message. If the default also fails, the turn fails normally; no third model is selected for ordinary answers. Fallback preserves executed tool results and never splices answers from different models. Invalid input, cancellation and a declined tool call do not trigger model fallback. Each entry's model records its actual Canopy author, not the saved preference.
|
|
27
|
-
*
|
|
28
|
-
* Users cannot choose a compaction model. Normal compaction reuses the effective model and reasoning settings for context-cache reuse. Only if that model cannot handle the compaction request or produce a summary fitting the target window may the service automatically use another allowed Canopy model with suitable capabilities. This does not change the preference or ordinary answer model, and is permitted even when user model selection is disabled.
|
|
29
|
-
*
|
|
30
|
-
* After compaction, the full next request, including instructions, tools and retained messages, must fit the target's usable prompt budget with room left for an answer, respecting its output limit. If still too large, further compaction attempts are bounded; exhaustion fails with CANNOT_FOLD instead of sending an oversized request or silently discarding history or images. The same checks apply when switching models or falling back. Each compaction entry records its actual author.
|
|
31
|
-
*
|
|
32
|
-
* An empty allowlist or unavailable default does not prevent reading conversations or saving permitted preference changes. A failed Canopy catalogue read is not evidence that a model was removed: use a valid cached snapshot or return MODEL_CATALOG_UNAVAILABLE, without deleting references or inventing capabilities. Catalogue presence is configuration information, not a live provider health check.
|
|
33
|
-
*
|
|
34
|
-
* ## Live output
|
|
35
|
-
*
|
|
36
|
-
* ```
|
|
37
|
-
* GET /api/v1/turns/{turn}/stream?ticket=<ticket>&cursor=<cursor>
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* This is a Server-Sent Events stream, which is why it is not in the operation list below and why generated clients have no method for it. Open it with `EventSource`, or any SSE client. It is how live output arrives; polling the document on a timer is not the intended way to follow a conversation.
|
|
41
|
-
*
|
|
42
|
-
* - `path` and `ticket` both come from the conversation document's `stream`. `path` is relative, resolved against the address the document was fetched from;
|
|
43
|
-
* - `cursor` is where to start, from the document's `cursor`. Omit it to start at the beginning of what is still available;
|
|
44
|
-
* - every event is one incremental edit to that same document, so the same rendering logic applies;
|
|
45
|
-
* - the connection has a lifetime and closes cleanly when it ends. With `EventSource` the browser reconnects with `Last-Event-ID` and resumes by itself, so nothing needs handling;
|
|
46
|
-
* - three terminal events: `done` this turn finished (carrying its final status), `paused` the assistant is waiting on the user (fetch the document again and read `wait`), `stalled` execution was interrupted and will not resume — do not reconnect.
|
|
47
|
-
* OpenAPI spec version: 1.0.0
|
|
21
|
+
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
|
+
* parts, then complete the upload and send its attachment id in a message.
|
|
23
|
+
* OpenAPI spec version: 2.0.0
|
|
48
24
|
*/
|
|
49
25
|
import * as zod from "zod";
|
|
50
26
|
export declare const MemoryResource: zod.ZodObject<{
|
|
@@ -2,49 +2,25 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Assistant API
|
|
5
|
-
*
|
|
5
|
+
* Conversations with agents that operate the Leaflow platform, plus their folders, tasks, files and
|
|
6
|
+
* chat-app channels.
|
|
6
7
|
*
|
|
7
|
-
*
|
|
8
|
+
* A conversation is a thread. A person talks to the main thread; the agent in it can start subagents,
|
|
9
|
+
* which are threads too and run on their own: stopping the main thread does not stop them, and each
|
|
10
|
+
* subagent tells its parent when it ends. A thread runs in turns; each turn records the model and
|
|
11
|
+
* reasoning effort it used and its token usage.
|
|
8
12
|
*
|
|
9
|
-
*
|
|
13
|
+
* Models come from the Canopy catalogue. A new thread uses the model it names, the caller's default
|
|
14
|
+
* from /api/v1/settings, or the first catalogue model that can run an agent. Reasoning models take one
|
|
15
|
+
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
10
16
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* 4. When the assistant needs the user, the document's `wait` says which kind: approving a batch of tool calls (`POST /api/v1/threads/{thread}/approvals/{batch}`), or answering a few questions (`POST /api/v1/threads/{thread}/questions/{item}`). It continues on its own once that is handled.
|
|
17
|
+
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
+
* over the WebSocket described under /api/v1/realtime/tickets. Slash commands such as /status and
|
|
19
|
+
* /compact are listed by list-commands and work the same in the console and in chat apps.
|
|
15
20
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* Canopy owns the model catalogue and capabilities. Model ids in this API, conversation preferences and historical entries are Canopy model ids, with no separate assistant model registration. GET /api/v1/models returns the allowed, usable choices and allowModelSelection. Hide the selector when selection is disabled; the service enforces the same rule.
|
|
21
|
-
*
|
|
22
|
-
* preferredModelId is the user's choice. Null follows the platform default, including later changes. Disabled selection preserves but ignores preferences for new turns. A model removed from the allowlist, retired in Canopy or otherwise unusable falls back to the default without clearing the preference.
|
|
23
|
-
*
|
|
24
|
-
* Users can switch an existing conversation through PATCH /api/v1/threads/{thread} with preferredModelId. This preserves the transcript, starts no turn and makes no inference request. Null returns to following the default. Changes apply from the next turn; a running or waiting turn and messages queued into it retain their captured choices and fallback policy.
|
|
25
|
-
*
|
|
26
|
-
* If the chosen model cannot serve a request, the service may safely fall back to the default without confirmation or an additional switching message. If the default also fails, the turn fails normally; no third model is selected for ordinary answers. Fallback preserves executed tool results and never splices answers from different models. Invalid input, cancellation and a declined tool call do not trigger model fallback. Each entry's model records its actual Canopy author, not the saved preference.
|
|
27
|
-
*
|
|
28
|
-
* Users cannot choose a compaction model. Normal compaction reuses the effective model and reasoning settings for context-cache reuse. Only if that model cannot handle the compaction request or produce a summary fitting the target window may the service automatically use another allowed Canopy model with suitable capabilities. This does not change the preference or ordinary answer model, and is permitted even when user model selection is disabled.
|
|
29
|
-
*
|
|
30
|
-
* After compaction, the full next request, including instructions, tools and retained messages, must fit the target's usable prompt budget with room left for an answer, respecting its output limit. If still too large, further compaction attempts are bounded; exhaustion fails with CANNOT_FOLD instead of sending an oversized request or silently discarding history or images. The same checks apply when switching models or falling back. Each compaction entry records its actual author.
|
|
31
|
-
*
|
|
32
|
-
* An empty allowlist or unavailable default does not prevent reading conversations or saving permitted preference changes. A failed Canopy catalogue read is not evidence that a model was removed: use a valid cached snapshot or return MODEL_CATALOG_UNAVAILABLE, without deleting references or inventing capabilities. Catalogue presence is configuration information, not a live provider health check.
|
|
33
|
-
*
|
|
34
|
-
* ## Live output
|
|
35
|
-
*
|
|
36
|
-
* ```
|
|
37
|
-
* GET /api/v1/turns/{turn}/stream?ticket=<ticket>&cursor=<cursor>
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* This is a Server-Sent Events stream, which is why it is not in the operation list below and why generated clients have no method for it. Open it with `EventSource`, or any SSE client. It is how live output arrives; polling the document on a timer is not the intended way to follow a conversation.
|
|
41
|
-
*
|
|
42
|
-
* - `path` and `ticket` both come from the conversation document's `stream`. `path` is relative, resolved against the address the document was fetched from;
|
|
43
|
-
* - `cursor` is where to start, from the document's `cursor`. Omit it to start at the beginning of what is still available;
|
|
44
|
-
* - every event is one incremental edit to that same document, so the same rendering logic applies;
|
|
45
|
-
* - the connection has a lifetime and closes cleanly when it ends. With `EventSource` the browser reconnects with `Last-Event-ID` and resumes by itself, so nothing needs handling;
|
|
46
|
-
* - three terminal events: `done` this turn finished (carrying its final status), `paused` the assistant is waiting on the user (fetch the document again and read `wait`), `stalled` execution was interrupted and will not resume — do not reconnect.
|
|
47
|
-
* OpenAPI spec version: 1.0.0
|
|
21
|
+
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
|
+
* parts, then complete the upload and send its attachment id in a message.
|
|
23
|
+
* OpenAPI spec version: 2.0.0
|
|
48
24
|
*/
|
|
49
25
|
import * as zod from "zod";
|
|
50
26
|
export const MemoryResource = zod.strictObject({
|
|
@@ -2,57 +2,33 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Assistant API
|
|
5
|
-
*
|
|
5
|
+
* Conversations with agents that operate the Leaflow platform, plus their folders, tasks, files and
|
|
6
|
+
* chat-app channels.
|
|
6
7
|
*
|
|
7
|
-
*
|
|
8
|
+
* A conversation is a thread. A person talks to the main thread; the agent in it can start subagents,
|
|
9
|
+
* which are threads too and run on their own: stopping the main thread does not stop them, and each
|
|
10
|
+
* subagent tells its parent when it ends. A thread runs in turns; each turn records the model and
|
|
11
|
+
* reasoning effort it used and its token usage.
|
|
8
12
|
*
|
|
9
|
-
*
|
|
13
|
+
* Models come from the Canopy catalogue. A new thread uses the model it names, the caller's default
|
|
14
|
+
* from /api/v1/settings, or the first catalogue model that can run an agent. Reasoning models take one
|
|
15
|
+
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
10
16
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* 4. When the assistant needs the user, the document's `wait` says which kind: approving a batch of tool calls (`POST /api/v1/threads/{thread}/approvals/{batch}`), or answering a few questions (`POST /api/v1/threads/{thread}/questions/{item}`). It continues on its own once that is handled.
|
|
17
|
+
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
+
* over the WebSocket described under /api/v1/realtime/tickets. Slash commands such as /status and
|
|
19
|
+
* /compact are listed by list-commands and work the same in the console and in chat apps.
|
|
15
20
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* Canopy owns the model catalogue and capabilities. Model ids in this API, conversation preferences and historical entries are Canopy model ids, with no separate assistant model registration. GET /api/v1/models returns the allowed, usable choices and allowModelSelection. Hide the selector when selection is disabled; the service enforces the same rule.
|
|
21
|
-
*
|
|
22
|
-
* preferredModelId is the user's choice. Null follows the platform default, including later changes. Disabled selection preserves but ignores preferences for new turns. A model removed from the allowlist, retired in Canopy or otherwise unusable falls back to the default without clearing the preference.
|
|
23
|
-
*
|
|
24
|
-
* Users can switch an existing conversation through PATCH /api/v1/threads/{thread} with preferredModelId. This preserves the transcript, starts no turn and makes no inference request. Null returns to following the default. Changes apply from the next turn; a running or waiting turn and messages queued into it retain their captured choices and fallback policy.
|
|
25
|
-
*
|
|
26
|
-
* If the chosen model cannot serve a request, the service may safely fall back to the default without confirmation or an additional switching message. If the default also fails, the turn fails normally; no third model is selected for ordinary answers. Fallback preserves executed tool results and never splices answers from different models. Invalid input, cancellation and a declined tool call do not trigger model fallback. Each entry's model records its actual Canopy author, not the saved preference.
|
|
27
|
-
*
|
|
28
|
-
* Users cannot choose a compaction model. Normal compaction reuses the effective model and reasoning settings for context-cache reuse. Only if that model cannot handle the compaction request or produce a summary fitting the target window may the service automatically use another allowed Canopy model with suitable capabilities. This does not change the preference or ordinary answer model, and is permitted even when user model selection is disabled.
|
|
29
|
-
*
|
|
30
|
-
* After compaction, the full next request, including instructions, tools and retained messages, must fit the target's usable prompt budget with room left for an answer, respecting its output limit. If still too large, further compaction attempts are bounded; exhaustion fails with CANNOT_FOLD instead of sending an oversized request or silently discarding history or images. The same checks apply when switching models or falling back. Each compaction entry records its actual author.
|
|
31
|
-
*
|
|
32
|
-
* An empty allowlist or unavailable default does not prevent reading conversations or saving permitted preference changes. A failed Canopy catalogue read is not evidence that a model was removed: use a valid cached snapshot or return MODEL_CATALOG_UNAVAILABLE, without deleting references or inventing capabilities. Catalogue presence is configuration information, not a live provider health check.
|
|
33
|
-
*
|
|
34
|
-
* ## Live output
|
|
35
|
-
*
|
|
36
|
-
* ```
|
|
37
|
-
* GET /api/v1/turns/{turn}/stream?ticket=<ticket>&cursor=<cursor>
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* This is a Server-Sent Events stream, which is why it is not in the operation list below and why generated clients have no method for it. Open it with `EventSource`, or any SSE client. It is how live output arrives; polling the document on a timer is not the intended way to follow a conversation.
|
|
41
|
-
*
|
|
42
|
-
* - `path` and `ticket` both come from the conversation document's `stream`. `path` is relative, resolved against the address the document was fetched from;
|
|
43
|
-
* - `cursor` is where to start, from the document's `cursor`. Omit it to start at the beginning of what is still available;
|
|
44
|
-
* - every event is one incremental edit to that same document, so the same rendering logic applies;
|
|
45
|
-
* - the connection has a lifetime and closes cleanly when it ends. With `EventSource` the browser reconnects with `Last-Event-ID` and resumes by itself, so nothing needs handling;
|
|
46
|
-
* - three terminal events: `done` this turn finished (carrying its final status), `paused` the assistant is waiting on the user (fetch the document again and read `wait`), `stalled` execution was interrupted and will not resume — do not reconnect.
|
|
47
|
-
* OpenAPI spec version: 1.0.0
|
|
21
|
+
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
|
+
* parts, then complete the upload and send its attachment id in a message.
|
|
23
|
+
* OpenAPI spec version: 2.0.0
|
|
48
24
|
*/
|
|
49
25
|
import * as zod from "zod";
|
|
50
26
|
export declare const messagePartTypeMax = 64;
|
|
51
27
|
export declare const MessagePart: zod.ZodObject<{
|
|
28
|
+
type: zod.ZodString;
|
|
29
|
+
text: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
52
30
|
attachmentId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
53
31
|
data: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
|
|
54
|
-
text: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
55
|
-
type: zod.ZodString;
|
|
56
32
|
}, zod.z.core.$strict>;
|
|
57
33
|
export type MessagePart = zod.input<typeof MessagePart>;
|
|
58
34
|
export type MessagePartOutput = zod.output<typeof MessagePart>;
|
|
@@ -2,63 +2,36 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Assistant API
|
|
5
|
-
*
|
|
5
|
+
* Conversations with agents that operate the Leaflow platform, plus their folders, tasks, files and
|
|
6
|
+
* chat-app channels.
|
|
6
7
|
*
|
|
7
|
-
*
|
|
8
|
+
* A conversation is a thread. A person talks to the main thread; the agent in it can start subagents,
|
|
9
|
+
* which are threads too and run on their own: stopping the main thread does not stop them, and each
|
|
10
|
+
* subagent tells its parent when it ends. A thread runs in turns; each turn records the model and
|
|
11
|
+
* reasoning effort it used and its token usage.
|
|
8
12
|
*
|
|
9
|
-
*
|
|
13
|
+
* Models come from the Canopy catalogue. A new thread uses the model it names, the caller's default
|
|
14
|
+
* from /api/v1/settings, or the first catalogue model that can run an agent. Reasoning models take one
|
|
15
|
+
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
10
16
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* 4. When the assistant needs the user, the document's `wait` says which kind: approving a batch of tool calls (`POST /api/v1/threads/{thread}/approvals/{batch}`), or answering a few questions (`POST /api/v1/threads/{thread}/questions/{item}`). It continues on its own once that is handled.
|
|
17
|
+
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
+
* over the WebSocket described under /api/v1/realtime/tickets. Slash commands such as /status and
|
|
19
|
+
* /compact are listed by list-commands and work the same in the console and in chat apps.
|
|
15
20
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* Canopy owns the model catalogue and capabilities. Model ids in this API, conversation preferences and historical entries are Canopy model ids, with no separate assistant model registration. GET /api/v1/models returns the allowed, usable choices and allowModelSelection. Hide the selector when selection is disabled; the service enforces the same rule.
|
|
21
|
-
*
|
|
22
|
-
* preferredModelId is the user's choice. Null follows the platform default, including later changes. Disabled selection preserves but ignores preferences for new turns. A model removed from the allowlist, retired in Canopy or otherwise unusable falls back to the default without clearing the preference.
|
|
23
|
-
*
|
|
24
|
-
* Users can switch an existing conversation through PATCH /api/v1/threads/{thread} with preferredModelId. This preserves the transcript, starts no turn and makes no inference request. Null returns to following the default. Changes apply from the next turn; a running or waiting turn and messages queued into it retain their captured choices and fallback policy.
|
|
25
|
-
*
|
|
26
|
-
* If the chosen model cannot serve a request, the service may safely fall back to the default without confirmation or an additional switching message. If the default also fails, the turn fails normally; no third model is selected for ordinary answers. Fallback preserves executed tool results and never splices answers from different models. Invalid input, cancellation and a declined tool call do not trigger model fallback. Each entry's model records its actual Canopy author, not the saved preference.
|
|
27
|
-
*
|
|
28
|
-
* Users cannot choose a compaction model. Normal compaction reuses the effective model and reasoning settings for context-cache reuse. Only if that model cannot handle the compaction request or produce a summary fitting the target window may the service automatically use another allowed Canopy model with suitable capabilities. This does not change the preference or ordinary answer model, and is permitted even when user model selection is disabled.
|
|
29
|
-
*
|
|
30
|
-
* After compaction, the full next request, including instructions, tools and retained messages, must fit the target's usable prompt budget with room left for an answer, respecting its output limit. If still too large, further compaction attempts are bounded; exhaustion fails with CANNOT_FOLD instead of sending an oversized request or silently discarding history or images. The same checks apply when switching models or falling back. Each compaction entry records its actual author.
|
|
31
|
-
*
|
|
32
|
-
* An empty allowlist or unavailable default does not prevent reading conversations or saving permitted preference changes. A failed Canopy catalogue read is not evidence that a model was removed: use a valid cached snapshot or return MODEL_CATALOG_UNAVAILABLE, without deleting references or inventing capabilities. Catalogue presence is configuration information, not a live provider health check.
|
|
33
|
-
*
|
|
34
|
-
* ## Live output
|
|
35
|
-
*
|
|
36
|
-
* ```
|
|
37
|
-
* GET /api/v1/turns/{turn}/stream?ticket=<ticket>&cursor=<cursor>
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* This is a Server-Sent Events stream, which is why it is not in the operation list below and why generated clients have no method for it. Open it with `EventSource`, or any SSE client. It is how live output arrives; polling the document on a timer is not the intended way to follow a conversation.
|
|
41
|
-
*
|
|
42
|
-
* - `path` and `ticket` both come from the conversation document's `stream`. `path` is relative, resolved against the address the document was fetched from;
|
|
43
|
-
* - `cursor` is where to start, from the document's `cursor`. Omit it to start at the beginning of what is still available;
|
|
44
|
-
* - every event is one incremental edit to that same document, so the same rendering logic applies;
|
|
45
|
-
* - the connection has a lifetime and closes cleanly when it ends. With `EventSource` the browser reconnects with `Last-Event-ID` and resumes by itself, so nothing needs handling;
|
|
46
|
-
* - three terminal events: `done` this turn finished (carrying its final status), `paused` the assistant is waiting on the user (fetch the document again and read `wait`), `stalled` execution was interrupted and will not resume — do not reconnect.
|
|
47
|
-
* OpenAPI spec version: 1.0.0
|
|
21
|
+
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
|
+
* parts, then complete the upload and send its attachment id in a message.
|
|
23
|
+
* OpenAPI spec version: 2.0.0
|
|
48
24
|
*/
|
|
49
25
|
import * as zod from "zod";
|
|
50
26
|
export const messagePartTypeMax = 64;
|
|
51
27
|
export const MessagePart = zod
|
|
52
28
|
.strictObject({
|
|
29
|
+
type: zod.string().min(1).max(messagePartTypeMax),
|
|
30
|
+
text: zod.string().nullish(),
|
|
53
31
|
attachmentId: zod
|
|
54
32
|
.string()
|
|
55
33
|
.nullish()
|
|
56
|
-
.describe("
|
|
57
|
-
data: zod
|
|
58
|
-
.record(zod.string(), zod.unknown())
|
|
59
|
-
.nullish()
|
|
60
|
-
.describe("For `data-*` parts. Any object; its keys reach the assistant as they are."),
|
|
61
|
-
text: zod.string().nullish().describe("For `text` parts."),
|
|
62
|
-
type: zod.string().min(1).max(messagePartTypeMax),
|
|
34
|
+
.describe("The attachment must have been uploaded and not yet sent with another message."),
|
|
35
|
+
data: zod.record(zod.string(), zod.unknown()).nullish(),
|
|
63
36
|
})
|
|
64
|
-
.describe("One piece of a message. `type` says which
|
|
37
|
+
.describe("One piece of a message. `type` says which field carries it:\n\n- `text` — the words, in `text`\n- `file` — an attachment uploaded earlier, by id in `attachmentId`\n- `data-<name>` — context from the client, in `data`. The name is shown to the assistant so it\n can tell one block from another.");
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Assistant API
|
|
5
|
+
* Conversations with agents that operate the Leaflow platform, plus their folders, tasks, files and
|
|
6
|
+
* chat-app channels.
|
|
7
|
+
*
|
|
8
|
+
* A conversation is a thread. A person talks to the main thread; the agent in it can start subagents,
|
|
9
|
+
* which are threads too and run on their own: stopping the main thread does not stop them, and each
|
|
10
|
+
* subagent tells its parent when it ends. A thread runs in turns; each turn records the model and
|
|
11
|
+
* reasoning effort it used and its token usage.
|
|
12
|
+
*
|
|
13
|
+
* Models come from the Canopy catalogue. A new thread uses the model it names, the caller's default
|
|
14
|
+
* from /api/v1/settings, or the first catalogue model that can run an agent. Reasoning models take one
|
|
15
|
+
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
|
+
*
|
|
17
|
+
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
+
* over the WebSocket described under /api/v1/realtime/tickets. Slash commands such as /status and
|
|
19
|
+
* /compact are listed by list-commands and work the same in the console and in chat apps.
|
|
20
|
+
*
|
|
21
|
+
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
|
+
* parts, then complete the upload and send its attachment id in a message.
|
|
23
|
+
* OpenAPI spec version: 2.0.0
|
|
24
|
+
*/
|
|
25
|
+
import * as zod from "zod";
|
|
26
|
+
export declare const moveFolderRequestBodyExpectedVersionMin = 0;
|
|
27
|
+
export declare const MoveFolderRequestBody: zod.ZodObject<{
|
|
28
|
+
beforeFolderId: zod.ZodNullable<zod.ZodString>;
|
|
29
|
+
expectedVersion: zod.ZodInt;
|
|
30
|
+
}, zod.z.core.$strict>;
|
|
31
|
+
export type MoveFolderRequestBody = zod.input<typeof MoveFolderRequestBody>;
|
|
32
|
+
export type MoveFolderRequestBodyOutput = zod.output<typeof MoveFolderRequestBody>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Assistant API
|
|
5
|
+
* Conversations with agents that operate the Leaflow platform, plus their folders, tasks, files and
|
|
6
|
+
* chat-app channels.
|
|
7
|
+
*
|
|
8
|
+
* A conversation is a thread. A person talks to the main thread; the agent in it can start subagents,
|
|
9
|
+
* which are threads too and run on their own: stopping the main thread does not stop them, and each
|
|
10
|
+
* subagent tells its parent when it ends. A thread runs in turns; each turn records the model and
|
|
11
|
+
* reasoning effort it used and its token usage.
|
|
12
|
+
*
|
|
13
|
+
* Models come from the Canopy catalogue. A new thread uses the model it names, the caller's default
|
|
14
|
+
* from /api/v1/settings, or the first catalogue model that can run an agent. Reasoning models take one
|
|
15
|
+
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
|
+
*
|
|
17
|
+
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
+
* over the WebSocket described under /api/v1/realtime/tickets. Slash commands such as /status and
|
|
19
|
+
* /compact are listed by list-commands and work the same in the console and in chat apps.
|
|
20
|
+
*
|
|
21
|
+
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
|
+
* parts, then complete the upload and send its attachment id in a message.
|
|
23
|
+
* OpenAPI spec version: 2.0.0
|
|
24
|
+
*/
|
|
25
|
+
import * as zod from "zod";
|
|
26
|
+
export const moveFolderRequestBodyExpectedVersionMin = 0;
|
|
27
|
+
export const MoveFolderRequestBody = zod.strictObject({
|
|
28
|
+
beforeFolderId: zod.string().nullable(),
|
|
29
|
+
expectedVersion: zod.int().min(moveFolderRequestBodyExpectedVersionMin),
|
|
30
|
+
});
|
|
@@ -2,49 +2,25 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Assistant API
|
|
5
|
-
*
|
|
5
|
+
* Conversations with agents that operate the Leaflow platform, plus their folders, tasks, files and
|
|
6
|
+
* chat-app channels.
|
|
6
7
|
*
|
|
7
|
-
*
|
|
8
|
+
* A conversation is a thread. A person talks to the main thread; the agent in it can start subagents,
|
|
9
|
+
* which are threads too and run on their own: stopping the main thread does not stop them, and each
|
|
10
|
+
* subagent tells its parent when it ends. A thread runs in turns; each turn records the model and
|
|
11
|
+
* reasoning effort it used and its token usage.
|
|
8
12
|
*
|
|
9
|
-
*
|
|
13
|
+
* Models come from the Canopy catalogue. A new thread uses the model it names, the caller's default
|
|
14
|
+
* from /api/v1/settings, or the first catalogue model that can run an agent. Reasoning models take one
|
|
15
|
+
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
10
16
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* 4. When the assistant needs the user, the document's `wait` says which kind: approving a batch of tool calls (`POST /api/v1/threads/{thread}/approvals/{batch}`), or answering a few questions (`POST /api/v1/threads/{thread}/questions/{item}`). It continues on its own once that is handled.
|
|
17
|
+
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
+
* over the WebSocket described under /api/v1/realtime/tickets. Slash commands such as /status and
|
|
19
|
+
* /compact are listed by list-commands and work the same in the console and in chat apps.
|
|
15
20
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* Canopy owns the model catalogue and capabilities. Model ids in this API, conversation preferences and historical entries are Canopy model ids, with no separate assistant model registration. GET /api/v1/models returns the allowed, usable choices and allowModelSelection. Hide the selector when selection is disabled; the service enforces the same rule.
|
|
21
|
-
*
|
|
22
|
-
* preferredModelId is the user's choice. Null follows the platform default, including later changes. Disabled selection preserves but ignores preferences for new turns. A model removed from the allowlist, retired in Canopy or otherwise unusable falls back to the default without clearing the preference.
|
|
23
|
-
*
|
|
24
|
-
* Users can switch an existing conversation through PATCH /api/v1/threads/{thread} with preferredModelId. This preserves the transcript, starts no turn and makes no inference request. Null returns to following the default. Changes apply from the next turn; a running or waiting turn and messages queued into it retain their captured choices and fallback policy.
|
|
25
|
-
*
|
|
26
|
-
* If the chosen model cannot serve a request, the service may safely fall back to the default without confirmation or an additional switching message. If the default also fails, the turn fails normally; no third model is selected for ordinary answers. Fallback preserves executed tool results and never splices answers from different models. Invalid input, cancellation and a declined tool call do not trigger model fallback. Each entry's model records its actual Canopy author, not the saved preference.
|
|
27
|
-
*
|
|
28
|
-
* Users cannot choose a compaction model. Normal compaction reuses the effective model and reasoning settings for context-cache reuse. Only if that model cannot handle the compaction request or produce a summary fitting the target window may the service automatically use another allowed Canopy model with suitable capabilities. This does not change the preference or ordinary answer model, and is permitted even when user model selection is disabled.
|
|
29
|
-
*
|
|
30
|
-
* After compaction, the full next request, including instructions, tools and retained messages, must fit the target's usable prompt budget with room left for an answer, respecting its output limit. If still too large, further compaction attempts are bounded; exhaustion fails with CANNOT_FOLD instead of sending an oversized request or silently discarding history or images. The same checks apply when switching models or falling back. Each compaction entry records its actual author.
|
|
31
|
-
*
|
|
32
|
-
* An empty allowlist or unavailable default does not prevent reading conversations or saving permitted preference changes. A failed Canopy catalogue read is not evidence that a model was removed: use a valid cached snapshot or return MODEL_CATALOG_UNAVAILABLE, without deleting references or inventing capabilities. Catalogue presence is configuration information, not a live provider health check.
|
|
33
|
-
*
|
|
34
|
-
* ## Live output
|
|
35
|
-
*
|
|
36
|
-
* ```
|
|
37
|
-
* GET /api/v1/turns/{turn}/stream?ticket=<ticket>&cursor=<cursor>
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* This is a Server-Sent Events stream, which is why it is not in the operation list below and why generated clients have no method for it. Open it with `EventSource`, or any SSE client. It is how live output arrives; polling the document on a timer is not the intended way to follow a conversation.
|
|
41
|
-
*
|
|
42
|
-
* - `path` and `ticket` both come from the conversation document's `stream`. `path` is relative, resolved against the address the document was fetched from;
|
|
43
|
-
* - `cursor` is where to start, from the document's `cursor`. Omit it to start at the beginning of what is still available;
|
|
44
|
-
* - every event is one incremental edit to that same document, so the same rendering logic applies;
|
|
45
|
-
* - the connection has a lifetime and closes cleanly when it ends. With `EventSource` the browser reconnects with `Last-Event-ID` and resumes by itself, so nothing needs handling;
|
|
46
|
-
* - three terminal events: `done` this turn finished (carrying its final status), `paused` the assistant is waiting on the user (fetch the document again and read `wait`), `stalled` execution was interrupted and will not resume — do not reconnect.
|
|
47
|
-
* OpenAPI spec version: 1.0.0
|
|
21
|
+
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
|
+
* parts, then complete the upload and send its attachment id in a message.
|
|
23
|
+
* OpenAPI spec version: 2.0.0
|
|
48
24
|
*/
|
|
49
25
|
import * as zod from "zod";
|
|
50
26
|
export declare const offsetPaginationTotalCountMin = 0;
|
|
@@ -2,49 +2,25 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Assistant API
|
|
5
|
-
*
|
|
5
|
+
* Conversations with agents that operate the Leaflow platform, plus their folders, tasks, files and
|
|
6
|
+
* chat-app channels.
|
|
6
7
|
*
|
|
7
|
-
*
|
|
8
|
+
* A conversation is a thread. A person talks to the main thread; the agent in it can start subagents,
|
|
9
|
+
* which are threads too and run on their own: stopping the main thread does not stop them, and each
|
|
10
|
+
* subagent tells its parent when it ends. A thread runs in turns; each turn records the model and
|
|
11
|
+
* reasoning effort it used and its token usage.
|
|
8
12
|
*
|
|
9
|
-
*
|
|
13
|
+
* Models come from the Canopy catalogue. A new thread uses the model it names, the caller's default
|
|
14
|
+
* from /api/v1/settings, or the first catalogue model that can run an agent. Reasoning models take one
|
|
15
|
+
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
10
16
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* 4. When the assistant needs the user, the document's `wait` says which kind: approving a batch of tool calls (`POST /api/v1/threads/{thread}/approvals/{batch}`), or answering a few questions (`POST /api/v1/threads/{thread}/questions/{item}`). It continues on its own once that is handled.
|
|
17
|
+
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
+
* over the WebSocket described under /api/v1/realtime/tickets. Slash commands such as /status and
|
|
19
|
+
* /compact are listed by list-commands and work the same in the console and in chat apps.
|
|
15
20
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* Canopy owns the model catalogue and capabilities. Model ids in this API, conversation preferences and historical entries are Canopy model ids, with no separate assistant model registration. GET /api/v1/models returns the allowed, usable choices and allowModelSelection. Hide the selector when selection is disabled; the service enforces the same rule.
|
|
21
|
-
*
|
|
22
|
-
* preferredModelId is the user's choice. Null follows the platform default, including later changes. Disabled selection preserves but ignores preferences for new turns. A model removed from the allowlist, retired in Canopy or otherwise unusable falls back to the default without clearing the preference.
|
|
23
|
-
*
|
|
24
|
-
* Users can switch an existing conversation through PATCH /api/v1/threads/{thread} with preferredModelId. This preserves the transcript, starts no turn and makes no inference request. Null returns to following the default. Changes apply from the next turn; a running or waiting turn and messages queued into it retain their captured choices and fallback policy.
|
|
25
|
-
*
|
|
26
|
-
* If the chosen model cannot serve a request, the service may safely fall back to the default without confirmation or an additional switching message. If the default also fails, the turn fails normally; no third model is selected for ordinary answers. Fallback preserves executed tool results and never splices answers from different models. Invalid input, cancellation and a declined tool call do not trigger model fallback. Each entry's model records its actual Canopy author, not the saved preference.
|
|
27
|
-
*
|
|
28
|
-
* Users cannot choose a compaction model. Normal compaction reuses the effective model and reasoning settings for context-cache reuse. Only if that model cannot handle the compaction request or produce a summary fitting the target window may the service automatically use another allowed Canopy model with suitable capabilities. This does not change the preference or ordinary answer model, and is permitted even when user model selection is disabled.
|
|
29
|
-
*
|
|
30
|
-
* After compaction, the full next request, including instructions, tools and retained messages, must fit the target's usable prompt budget with room left for an answer, respecting its output limit. If still too large, further compaction attempts are bounded; exhaustion fails with CANNOT_FOLD instead of sending an oversized request or silently discarding history or images. The same checks apply when switching models or falling back. Each compaction entry records its actual author.
|
|
31
|
-
*
|
|
32
|
-
* An empty allowlist or unavailable default does not prevent reading conversations or saving permitted preference changes. A failed Canopy catalogue read is not evidence that a model was removed: use a valid cached snapshot or return MODEL_CATALOG_UNAVAILABLE, without deleting references or inventing capabilities. Catalogue presence is configuration information, not a live provider health check.
|
|
33
|
-
*
|
|
34
|
-
* ## Live output
|
|
35
|
-
*
|
|
36
|
-
* ```
|
|
37
|
-
* GET /api/v1/turns/{turn}/stream?ticket=<ticket>&cursor=<cursor>
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* This is a Server-Sent Events stream, which is why it is not in the operation list below and why generated clients have no method for it. Open it with `EventSource`, or any SSE client. It is how live output arrives; polling the document on a timer is not the intended way to follow a conversation.
|
|
41
|
-
*
|
|
42
|
-
* - `path` and `ticket` both come from the conversation document's `stream`. `path` is relative, resolved against the address the document was fetched from;
|
|
43
|
-
* - `cursor` is where to start, from the document's `cursor`. Omit it to start at the beginning of what is still available;
|
|
44
|
-
* - every event is one incremental edit to that same document, so the same rendering logic applies;
|
|
45
|
-
* - the connection has a lifetime and closes cleanly when it ends. With `EventSource` the browser reconnects with `Last-Event-ID` and resumes by itself, so nothing needs handling;
|
|
46
|
-
* - three terminal events: `done` this turn finished (carrying its final status), `paused` the assistant is waiting on the user (fetch the document again and read `wait`), `stalled` execution was interrupted and will not resume — do not reconnect.
|
|
47
|
-
* OpenAPI spec version: 1.0.0
|
|
21
|
+
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
|
+
* parts, then complete the upload and send its attachment id in a message.
|
|
23
|
+
* OpenAPI spec version: 2.0.0
|
|
48
24
|
*/
|
|
49
25
|
import * as zod from "zod";
|
|
50
26
|
export const offsetPaginationTotalCountMin = 0;
|