@leaflow/sdk 0.139.0 → 0.141.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (439) hide show
  1. package/README.md +8 -2
  2. package/dist/billing/type/order/v1/generated/models.d.ts +4 -0
  3. package/dist/billing/type/order/v1/generated/validators/order.zod.d.ts +1 -0
  4. package/dist/billing/type/order/v1/generated/validators/orderItem.zod.d.ts +1 -0
  5. package/dist/billing/type/order/v1/generated/validators/orderItem.zod.js +4 -0
  6. package/dist/billing/type/order/v1/generated/validators/orderItemList.zod.d.ts +1 -0
  7. package/dist/billing/type/order/v1/generated/validators/orderList.zod.d.ts +1 -0
  8. package/dist/billing/type/order/v1/generated/validators/subscription.zod.d.ts +1 -0
  9. package/dist/billing/type/order/v1/generated/validators/subscription.zod.js +4 -0
  10. package/dist/billing/type/order/v1/generated/validators/subscriptionList.zod.d.ts +1 -0
  11. package/dist/billing/v1/generated/models.d.ts +4 -0
  12. package/dist/billing/v1/generated/validators/order.zod.d.ts +1 -0
  13. package/dist/billing/v1/generated/validators/orderItem.zod.d.ts +1 -0
  14. package/dist/billing/v1/generated/validators/orderItem.zod.js +4 -0
  15. package/dist/billing/v1/generated/validators/orderItemList.zod.d.ts +1 -0
  16. package/dist/billing/v1/generated/validators/orderList.zod.d.ts +1 -0
  17. package/dist/billing/v1/generated/validators/subscription.zod.d.ts +1 -0
  18. package/dist/billing/v1/generated/validators/subscription.zod.js +4 -0
  19. package/dist/billing/v1/generated/validators/subscriptionList.zod.d.ts +1 -0
  20. package/dist/canopy/v1/generated/functions.d.ts +97 -9
  21. package/dist/canopy/v1/generated/functions.js +100 -0
  22. package/dist/canopy/v1/generated/models.d.ts +81 -8
  23. package/dist/canopy/v1/generated/models.js +4 -0
  24. package/dist/canopy/v1/generated/schemas.zod.d.ts +42 -8
  25. package/dist/canopy/v1/generated/schemas.zod.js +28 -8
  26. package/dist/canopy/v1/generated/validators/aPIKeyResource.zod.d.ts +10 -8
  27. package/dist/canopy/v1/generated/validators/aPIKeyResource.zod.js +10 -8
  28. package/dist/canopy/v1/generated/validators/aPIKeyUsageListResponseBody.zod.d.ts +10 -8
  29. package/dist/canopy/v1/generated/validators/aPIKeyUsageListResponseBody.zod.js +10 -8
  30. package/dist/canopy/v1/generated/validators/aPIKeyUsageResource.zod.d.ts +10 -8
  31. package/dist/canopy/v1/generated/validators/aPIKeyUsageResource.zod.js +10 -8
  32. package/dist/canopy/v1/generated/validators/accountBalance.zod.d.ts +10 -8
  33. package/dist/canopy/v1/generated/validators/accountBalance.zod.js +10 -8
  34. package/dist/canopy/v1/generated/validators/accountIdentity.zod.d.ts +10 -8
  35. package/dist/canopy/v1/generated/validators/accountIdentity.zod.js +10 -8
  36. package/dist/canopy/v1/generated/validators/activeResource.zod.d.ts +10 -8
  37. package/dist/canopy/v1/generated/validators/activeResource.zod.js +10 -8
  38. package/dist/canopy/v1/generated/validators/activeResourceList.zod.d.ts +10 -8
  39. package/dist/canopy/v1/generated/validators/activeResourceList.zod.js +10 -8
  40. package/dist/canopy/v1/generated/validators/allowance.zod.d.ts +10 -8
  41. package/dist/canopy/v1/generated/validators/allowance.zod.js +10 -8
  42. package/dist/canopy/v1/generated/validators/allowanceList.zod.d.ts +10 -8
  43. package/dist/canopy/v1/generated/validators/allowanceList.zod.js +10 -8
  44. package/dist/canopy/v1/generated/validators/applicability.zod.d.ts +10 -8
  45. package/dist/canopy/v1/generated/validators/applicability.zod.js +10 -8
  46. package/dist/canopy/v1/generated/validators/applicablePlan.zod.d.ts +10 -8
  47. package/dist/canopy/v1/generated/validators/applicablePlan.zod.js +10 -8
  48. package/dist/canopy/v1/generated/validators/appliedCredit.zod.d.ts +10 -8
  49. package/dist/canopy/v1/generated/validators/appliedCredit.zod.js +10 -8
  50. package/dist/canopy/v1/generated/validators/autoRenewSet.zod.d.ts +10 -8
  51. package/dist/canopy/v1/generated/validators/autoRenewSet.zod.js +10 -8
  52. package/dist/canopy/v1/generated/validators/billingAccount.zod.d.ts +10 -8
  53. package/dist/canopy/v1/generated/validators/billingAccount.zod.js +10 -8
  54. package/dist/canopy/v1/generated/validators/billingAccountCreate.zod.d.ts +10 -8
  55. package/dist/canopy/v1/generated/validators/billingAccountCreate.zod.js +10 -8
  56. package/dist/canopy/v1/generated/validators/billingAccountList.zod.d.ts +10 -8
  57. package/dist/canopy/v1/generated/validators/billingAccountList.zod.js +10 -8
  58. package/dist/canopy/v1/generated/validators/billingAccountUpdate.zod.d.ts +10 -8
  59. package/dist/canopy/v1/generated/validators/billingAccountUpdate.zod.js +10 -8
  60. package/dist/canopy/v1/generated/validators/cancelSubscriptionRequest.zod.d.ts +10 -8
  61. package/dist/canopy/v1/generated/validators/cancelSubscriptionRequest.zod.js +10 -8
  62. package/dist/canopy/v1/generated/validators/cancellation.zod.d.ts +10 -8
  63. package/dist/canopy/v1/generated/validators/cancellation.zod.js +10 -8
  64. package/dist/canopy/v1/generated/validators/cancellationCreate.zod.d.ts +10 -8
  65. package/dist/canopy/v1/generated/validators/cancellationCreate.zod.js +10 -8
  66. package/dist/canopy/v1/generated/validators/cancellationItem.zod.d.ts +10 -8
  67. package/dist/canopy/v1/generated/validators/cancellationItem.zod.js +10 -8
  68. package/dist/canopy/v1/generated/validators/cancellationList.zod.d.ts +10 -8
  69. package/dist/canopy/v1/generated/validators/cancellationList.zod.js +10 -8
  70. package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.d.ts +10 -8
  71. package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.js +10 -8
  72. package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +10 -8
  73. package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.js +10 -8
  74. package/dist/canopy/v1/generated/validators/chatCompletion.zod.d.ts +36 -0
  75. package/dist/canopy/v1/generated/validators/chatCompletion.zod.js +34 -0
  76. package/dist/canopy/v1/generated/validators/chatCompletionRequest.zod.d.ts +43 -0
  77. package/dist/canopy/v1/generated/validators/chatCompletionRequest.zod.js +41 -0
  78. package/dist/canopy/v1/generated/validators/checkoutMode.zod.d.ts +10 -8
  79. package/dist/canopy/v1/generated/validators/checkoutMode.zod.js +10 -8
  80. package/dist/canopy/v1/generated/validators/checkoutOptions.zod.d.ts +10 -8
  81. package/dist/canopy/v1/generated/validators/checkoutOptions.zod.js +10 -8
  82. package/dist/canopy/v1/generated/validators/contact.zod.d.ts +10 -8
  83. package/dist/canopy/v1/generated/validators/contact.zod.js +10 -8
  84. package/dist/canopy/v1/generated/validators/contactCreate.zod.d.ts +10 -8
  85. package/dist/canopy/v1/generated/validators/contactCreate.zod.js +10 -8
  86. package/dist/canopy/v1/generated/validators/contactList.zod.d.ts +10 -8
  87. package/dist/canopy/v1/generated/validators/contactList.zod.js +10 -8
  88. package/dist/canopy/v1/generated/validators/contactUpdate.zod.d.ts +10 -8
  89. package/dist/canopy/v1/generated/validators/contactUpdate.zod.js +10 -8
  90. package/dist/canopy/v1/generated/validators/createAPIKeyRequestBody.zod.d.ts +10 -8
  91. package/dist/canopy/v1/generated/validators/createAPIKeyRequestBody.zod.js +10 -8
  92. package/dist/canopy/v1/generated/validators/createServiceRequestBody.zod.d.ts +10 -8
  93. package/dist/canopy/v1/generated/validators/createServiceRequestBody.zod.js +10 -8
  94. package/dist/canopy/v1/generated/validators/createServiceResponseBody.zod.d.ts +10 -8
  95. package/dist/canopy/v1/generated/validators/createServiceResponseBody.zod.js +10 -8
  96. package/dist/canopy/v1/generated/validators/creditGrant.zod.d.ts +10 -8
  97. package/dist/canopy/v1/generated/validators/creditGrant.zod.js +10 -8
  98. package/dist/canopy/v1/generated/validators/creditGrantList.zod.d.ts +10 -8
  99. package/dist/canopy/v1/generated/validators/creditGrantList.zod.js +10 -8
  100. package/dist/canopy/v1/generated/validators/creditGroup.zod.d.ts +10 -8
  101. package/dist/canopy/v1/generated/validators/creditGroup.zod.js +10 -8
  102. package/dist/canopy/v1/generated/validators/creditNote.zod.d.ts +10 -8
  103. package/dist/canopy/v1/generated/validators/creditNote.zod.js +10 -8
  104. package/dist/canopy/v1/generated/validators/creditNoteItem.zod.d.ts +10 -8
  105. package/dist/canopy/v1/generated/validators/creditNoteItem.zod.js +10 -8
  106. package/dist/canopy/v1/generated/validators/creditNoteItemList.zod.d.ts +10 -8
  107. package/dist/canopy/v1/generated/validators/creditNoteItemList.zod.js +10 -8
  108. package/dist/canopy/v1/generated/validators/creditNoteList.zod.d.ts +10 -8
  109. package/dist/canopy/v1/generated/validators/creditNoteList.zod.js +10 -8
  110. package/dist/canopy/v1/generated/validators/currency.zod.d.ts +10 -8
  111. package/dist/canopy/v1/generated/validators/currency.zod.js +10 -8
  112. package/dist/canopy/v1/generated/validators/currencyList.zod.d.ts +10 -8
  113. package/dist/canopy/v1/generated/validators/currencyList.zod.js +10 -8
  114. package/dist/canopy/v1/generated/validators/cursorPageRequestResource.zod.d.ts +10 -8
  115. package/dist/canopy/v1/generated/validators/cursorPageRequestResource.zod.js +10 -8
  116. package/dist/canopy/v1/generated/validators/cursorPagination.zod.d.ts +10 -8
  117. package/dist/canopy/v1/generated/validators/cursorPagination.zod.js +10 -8
  118. package/dist/canopy/v1/generated/validators/discount.zod.d.ts +10 -8
  119. package/dist/canopy/v1/generated/validators/discount.zod.js +10 -8
  120. package/dist/canopy/v1/generated/validators/discountList.zod.d.ts +10 -8
  121. package/dist/canopy/v1/generated/validators/discountList.zod.js +10 -8
  122. package/dist/canopy/v1/generated/validators/embeddingRequest.zod.d.ts +45 -0
  123. package/dist/canopy/v1/generated/validators/embeddingRequest.zod.js +42 -0
  124. package/dist/canopy/v1/generated/validators/embeddingResponse.zod.d.ts +36 -0
  125. package/dist/canopy/v1/generated/validators/embeddingResponse.zod.js +34 -0
  126. package/dist/canopy/v1/generated/validators/entitlement.zod.d.ts +10 -8
  127. package/dist/canopy/v1/generated/validators/entitlement.zod.js +10 -8
  128. package/dist/canopy/v1/generated/validators/entitlementList.zod.d.ts +10 -8
  129. package/dist/canopy/v1/generated/validators/entitlementList.zod.js +10 -8
  130. package/dist/canopy/v1/generated/validators/error.zod.d.ts +10 -8
  131. package/dist/canopy/v1/generated/validators/error.zod.js +10 -8
  132. package/dist/canopy/v1/generated/validators/errorA200529.zod.d.ts +10 -8
  133. package/dist/canopy/v1/generated/validators/errorA200529.zod.js +10 -8
  134. package/dist/canopy/v1/generated/validators/featureGrant.zod.d.ts +10 -8
  135. package/dist/canopy/v1/generated/validators/featureGrant.zod.js +10 -8
  136. package/dist/canopy/v1/generated/validators/featureGrantList.zod.d.ts +10 -8
  137. package/dist/canopy/v1/generated/validators/featureGrantList.zod.js +10 -8
  138. package/dist/canopy/v1/generated/validators/featureGrantStatus.zod.d.ts +10 -8
  139. package/dist/canopy/v1/generated/validators/featureGrantStatus.zod.js +10 -8
  140. package/dist/canopy/v1/generated/validators/funds.zod.d.ts +10 -8
  141. package/dist/canopy/v1/generated/validators/funds.zod.js +10 -8
  142. package/dist/canopy/v1/generated/validators/getUsageSummaryParams.zod.d.ts +10 -8
  143. package/dist/canopy/v1/generated/validators/getUsageSummaryParams.zod.js +10 -8
  144. package/dist/canopy/v1/generated/validators/getUsageTimelineParams.zod.d.ts +10 -8
  145. package/dist/canopy/v1/generated/validators/getUsageTimelineParams.zod.js +10 -8
  146. package/dist/canopy/v1/generated/validators/inferenceError.zod.d.ts +43 -0
  147. package/dist/canopy/v1/generated/validators/inferenceError.zod.js +41 -0
  148. package/dist/canopy/v1/generated/validators/invoice.zod.d.ts +10 -8
  149. package/dist/canopy/v1/generated/validators/invoice.zod.js +10 -8
  150. package/dist/canopy/v1/generated/validators/invoiceItem.zod.d.ts +10 -8
  151. package/dist/canopy/v1/generated/validators/invoiceItem.zod.js +10 -8
  152. package/dist/canopy/v1/generated/validators/invoiceItemList.zod.d.ts +10 -8
  153. package/dist/canopy/v1/generated/validators/invoiceItemList.zod.js +10 -8
  154. package/dist/canopy/v1/generated/validators/invoiceItemProration.zod.d.ts +10 -8
  155. package/dist/canopy/v1/generated/validators/invoiceItemProration.zod.js +10 -8
  156. package/dist/canopy/v1/generated/validators/invoiceList.zod.d.ts +10 -8
  157. package/dist/canopy/v1/generated/validators/invoiceList.zod.js +10 -8
  158. package/dist/canopy/v1/generated/validators/invoiceStatus.zod.d.ts +10 -8
  159. package/dist/canopy/v1/generated/validators/invoiceStatus.zod.js +10 -8
  160. package/dist/canopy/v1/generated/validators/invoiceSummary.zod.d.ts +10 -8
  161. package/dist/canopy/v1/generated/validators/invoiceSummary.zod.js +10 -8
  162. package/dist/canopy/v1/generated/validators/issuedAPIKeyResource.zod.d.ts +10 -8
  163. package/dist/canopy/v1/generated/validators/issuedAPIKeyResource.zod.js +10 -8
  164. package/dist/canopy/v1/generated/validators/lengthAwarePageAPIKeyResource.zod.d.ts +10 -8
  165. package/dist/canopy/v1/generated/validators/lengthAwarePageAPIKeyResource.zod.js +10 -8
  166. package/dist/canopy/v1/generated/validators/listApiKeysParams.zod.d.ts +10 -8
  167. package/dist/canopy/v1/generated/validators/listApiKeysParams.zod.js +10 -8
  168. package/dist/canopy/v1/generated/validators/listRequestsParams.zod.d.ts +10 -8
  169. package/dist/canopy/v1/generated/validators/listRequestsParams.zod.js +10 -8
  170. package/dist/canopy/v1/generated/validators/listUsageByApiKeyParams.zod.d.ts +10 -8
  171. package/dist/canopy/v1/generated/validators/listUsageByApiKeyParams.zod.js +10 -8
  172. package/dist/canopy/v1/generated/validators/listUsageByModelParams.zod.d.ts +10 -8
  173. package/dist/canopy/v1/generated/validators/listUsageByModelParams.zod.js +10 -8
  174. package/dist/canopy/v1/generated/validators/model.zod.d.ts +48 -0
  175. package/dist/canopy/v1/generated/validators/model.zod.js +46 -0
  176. package/dist/canopy/v1/generated/validators/modelList.zod.d.ts +51 -0
  177. package/dist/canopy/v1/generated/validators/modelList.zod.js +38 -0
  178. package/dist/canopy/v1/generated/validators/modelListResponseBody.zod.d.ts +10 -8
  179. package/dist/canopy/v1/generated/validators/modelListResponseBody.zod.js +10 -8
  180. package/dist/canopy/v1/generated/validators/modelPricing.zod.d.ts +10 -8
  181. package/dist/canopy/v1/generated/validators/modelPricing.zod.js +10 -8
  182. package/dist/canopy/v1/generated/validators/modelResource.zod.d.ts +10 -8
  183. package/dist/canopy/v1/generated/validators/modelResource.zod.js +10 -8
  184. package/dist/canopy/v1/generated/validators/modelUsageListResponseBody.zod.d.ts +10 -8
  185. package/dist/canopy/v1/generated/validators/modelUsageListResponseBody.zod.js +10 -8
  186. package/dist/canopy/v1/generated/validators/modelUsageResource.zod.d.ts +10 -8
  187. package/dist/canopy/v1/generated/validators/modelUsageResource.zod.js +10 -8
  188. package/dist/canopy/v1/generated/validators/money.zod.d.ts +10 -8
  189. package/dist/canopy/v1/generated/validators/money.zod.js +10 -8
  190. package/dist/canopy/v1/generated/validators/monthlyStatement.zod.d.ts +10 -8
  191. package/dist/canopy/v1/generated/validators/monthlyStatement.zod.js +10 -8
  192. package/dist/canopy/v1/generated/validators/monthlyStatementList.zod.d.ts +10 -8
  193. package/dist/canopy/v1/generated/validators/monthlyStatementList.zod.js +10 -8
  194. package/dist/canopy/v1/generated/validators/namedIdentity.zod.d.ts +10 -8
  195. package/dist/canopy/v1/generated/validators/namedIdentity.zod.js +10 -8
  196. package/dist/canopy/v1/generated/validators/objectIdentity.zod.d.ts +10 -8
  197. package/dist/canopy/v1/generated/validators/objectIdentity.zod.js +10 -8
  198. package/dist/canopy/v1/generated/validators/offsetPagination.zod.d.ts +10 -8
  199. package/dist/canopy/v1/generated/validators/offsetPagination.zod.js +10 -8
  200. package/dist/canopy/v1/generated/validators/order.zod.d.ts +11 -8
  201. package/dist/canopy/v1/generated/validators/order.zod.js +10 -8
  202. package/dist/canopy/v1/generated/validators/orderCancel.zod.d.ts +10 -8
  203. package/dist/canopy/v1/generated/validators/orderCancel.zod.js +10 -8
  204. package/dist/canopy/v1/generated/validators/orderItem.zod.d.ts +11 -8
  205. package/dist/canopy/v1/generated/validators/orderItem.zod.js +14 -8
  206. package/dist/canopy/v1/generated/validators/orderItemList.zod.d.ts +11 -8
  207. package/dist/canopy/v1/generated/validators/orderItemList.zod.js +10 -8
  208. package/dist/canopy/v1/generated/validators/orderItemStatus.zod.d.ts +10 -8
  209. package/dist/canopy/v1/generated/validators/orderItemStatus.zod.js +10 -8
  210. package/dist/canopy/v1/generated/validators/orderList.zod.d.ts +11 -8
  211. package/dist/canopy/v1/generated/validators/orderList.zod.js +10 -8
  212. package/dist/canopy/v1/generated/validators/orderRefundQuote.zod.d.ts +10 -8
  213. package/dist/canopy/v1/generated/validators/orderRefundQuote.zod.js +10 -8
  214. package/dist/canopy/v1/generated/validators/orderRefundQuoteInput.zod.d.ts +10 -8
  215. package/dist/canopy/v1/generated/validators/orderRefundQuoteInput.zod.js +10 -8
  216. package/dist/canopy/v1/generated/validators/orderStatus.zod.d.ts +10 -8
  217. package/dist/canopy/v1/generated/validators/orderStatus.zod.js +10 -8
  218. package/dist/canopy/v1/generated/validators/paidWith.zod.d.ts +10 -8
  219. package/dist/canopy/v1/generated/validators/paidWith.zod.js +10 -8
  220. package/dist/canopy/v1/generated/validators/payInvoiceRequest.zod.d.ts +10 -8
  221. package/dist/canopy/v1/generated/validators/payInvoiceRequest.zod.js +10 -8
  222. package/dist/canopy/v1/generated/validators/payTogetherRequest.zod.d.ts +10 -8
  223. package/dist/canopy/v1/generated/validators/payTogetherRequest.zod.js +10 -8
  224. package/dist/canopy/v1/generated/validators/paymentAction.zod.d.ts +10 -8
  225. package/dist/canopy/v1/generated/validators/paymentAction.zod.js +10 -8
  226. package/dist/canopy/v1/generated/validators/paymentCancellationReason.zod.d.ts +10 -8
  227. package/dist/canopy/v1/generated/validators/paymentCancellationReason.zod.js +10 -8
  228. package/dist/canopy/v1/generated/validators/paymentMethod.zod.d.ts +10 -8
  229. package/dist/canopy/v1/generated/validators/paymentMethod.zod.js +10 -8
  230. package/dist/canopy/v1/generated/validators/paymentMethodList.zod.d.ts +10 -8
  231. package/dist/canopy/v1/generated/validators/paymentMethodList.zod.js +10 -8
  232. package/dist/canopy/v1/generated/validators/paymentMethodSetup.zod.d.ts +10 -8
  233. package/dist/canopy/v1/generated/validators/paymentMethodSetup.zod.js +10 -8
  234. package/dist/canopy/v1/generated/validators/paymentMethodSetupResult.zod.d.ts +10 -8
  235. package/dist/canopy/v1/generated/validators/paymentMethodSetupResult.zod.js +10 -8
  236. package/dist/canopy/v1/generated/validators/paymentOption.zod.d.ts +10 -8
  237. package/dist/canopy/v1/generated/validators/paymentOption.zod.js +10 -8
  238. package/dist/canopy/v1/generated/validators/paymentOptionList.zod.d.ts +10 -8
  239. package/dist/canopy/v1/generated/validators/paymentOptionList.zod.js +10 -8
  240. package/dist/canopy/v1/generated/validators/paymentOptionMethod.zod.d.ts +10 -8
  241. package/dist/canopy/v1/generated/validators/paymentOptionMethod.zod.js +10 -8
  242. package/dist/canopy/v1/generated/validators/paymentPreview.zod.d.ts +10 -8
  243. package/dist/canopy/v1/generated/validators/paymentPreview.zod.js +10 -8
  244. package/dist/canopy/v1/generated/validators/paymentPreviewInvoice.zod.d.ts +10 -8
  245. package/dist/canopy/v1/generated/validators/paymentPreviewInvoice.zod.js +10 -8
  246. package/dist/canopy/v1/generated/validators/paymentResult.zod.d.ts +10 -8
  247. package/dist/canopy/v1/generated/validators/paymentResult.zod.js +10 -8
  248. package/dist/canopy/v1/generated/validators/paymentStatus.zod.d.ts +10 -8
  249. package/dist/canopy/v1/generated/validators/paymentStatus.zod.js +10 -8
  250. package/dist/canopy/v1/generated/validators/placedOrder.zod.d.ts +10 -8
  251. package/dist/canopy/v1/generated/validators/placedOrder.zod.js +10 -8
  252. package/dist/canopy/v1/generated/validators/plan.zod.d.ts +10 -8
  253. package/dist/canopy/v1/generated/validators/plan.zod.js +10 -8
  254. package/dist/canopy/v1/generated/validators/planFeature.zod.d.ts +10 -8
  255. package/dist/canopy/v1/generated/validators/planFeature.zod.js +10 -8
  256. package/dist/canopy/v1/generated/validators/planList.zod.d.ts +10 -8
  257. package/dist/canopy/v1/generated/validators/planList.zod.js +10 -8
  258. package/dist/canopy/v1/generated/validators/price.zod.d.ts +10 -8
  259. package/dist/canopy/v1/generated/validators/price.zod.js +10 -8
  260. package/dist/canopy/v1/generated/validators/priceList.zod.d.ts +10 -8
  261. package/dist/canopy/v1/generated/validators/priceList.zod.js +10 -8
  262. package/dist/canopy/v1/generated/validators/priceOption.zod.d.ts +10 -8
  263. package/dist/canopy/v1/generated/validators/priceOption.zod.js +10 -8
  264. package/dist/canopy/v1/generated/validators/product.zod.d.ts +10 -8
  265. package/dist/canopy/v1/generated/validators/product.zod.js +10 -8
  266. package/dist/canopy/v1/generated/validators/productID.zod.d.ts +10 -8
  267. package/dist/canopy/v1/generated/validators/productID.zod.js +10 -8
  268. package/dist/canopy/v1/generated/validators/productList.zod.d.ts +10 -8
  269. package/dist/canopy/v1/generated/validators/productList.zod.js +10 -8
  270. package/dist/canopy/v1/generated/validators/projectAssignment.zod.d.ts +10 -8
  271. package/dist/canopy/v1/generated/validators/projectAssignment.zod.js +10 -8
  272. package/dist/canopy/v1/generated/validators/projectAssignmentList.zod.d.ts +10 -8
  273. package/dist/canopy/v1/generated/validators/projectAssignmentList.zod.js +10 -8
  274. package/dist/canopy/v1/generated/validators/purchaseOperation.zod.d.ts +10 -8
  275. package/dist/canopy/v1/generated/validators/purchaseOperation.zod.js +10 -8
  276. package/dist/canopy/v1/generated/validators/quote.zod.d.ts +10 -8
  277. package/dist/canopy/v1/generated/validators/quote.zod.js +10 -8
  278. package/dist/canopy/v1/generated/validators/quote5f60d00.zod.d.ts +10 -8
  279. package/dist/canopy/v1/generated/validators/quote5f60d00.zod.js +10 -8
  280. package/dist/canopy/v1/generated/validators/quoteA200529.zod.d.ts +10 -8
  281. package/dist/canopy/v1/generated/validators/quoteA200529.zod.js +10 -8
  282. package/dist/canopy/v1/generated/validators/quoteCancellation.zod.d.ts +10 -8
  283. package/dist/canopy/v1/generated/validators/quoteCancellation.zod.js +10 -8
  284. package/dist/canopy/v1/generated/validators/quoteItem.zod.d.ts +10 -8
  285. package/dist/canopy/v1/generated/validators/quoteItem.zod.js +10 -8
  286. package/dist/canopy/v1/generated/validators/quoteItemDc1fddb.zod.d.ts +10 -8
  287. package/dist/canopy/v1/generated/validators/quoteItemDc1fddb.zod.js +10 -8
  288. package/dist/canopy/v1/generated/validators/quoteItemInput.zod.d.ts +10 -8
  289. package/dist/canopy/v1/generated/validators/quoteItemInput.zod.js +10 -8
  290. package/dist/canopy/v1/generated/validators/quoteRenewal.zod.d.ts +10 -8
  291. package/dist/canopy/v1/generated/validators/quoteRenewal.zod.js +10 -8
  292. package/dist/canopy/v1/generated/validators/quoteRenewalResult.zod.d.ts +10 -8
  293. package/dist/canopy/v1/generated/validators/quoteRenewalResult.zod.js +10 -8
  294. package/dist/canopy/v1/generated/validators/quoteRequest.zod.d.ts +10 -8
  295. package/dist/canopy/v1/generated/validators/quoteRequest.zod.js +10 -8
  296. package/dist/canopy/v1/generated/validators/quotedDiscount.zod.d.ts +10 -8
  297. package/dist/canopy/v1/generated/validators/quotedDiscount.zod.js +10 -8
  298. package/dist/canopy/v1/generated/validators/rate.zod.d.ts +10 -8
  299. package/dist/canopy/v1/generated/validators/rate.zod.js +10 -8
  300. package/dist/canopy/v1/generated/validators/rateList.zod.d.ts +10 -8
  301. package/dist/canopy/v1/generated/validators/rateList.zod.js +10 -8
  302. package/dist/canopy/v1/generated/validators/refund.zod.d.ts +10 -8
  303. package/dist/canopy/v1/generated/validators/refund.zod.js +10 -8
  304. package/dist/canopy/v1/generated/validators/refundList.zod.d.ts +10 -8
  305. package/dist/canopy/v1/generated/validators/refundList.zod.js +10 -8
  306. package/dist/canopy/v1/generated/validators/refundPolicy.zod.d.ts +10 -8
  307. package/dist/canopy/v1/generated/validators/refundPolicy.zod.js +10 -8
  308. package/dist/canopy/v1/generated/validators/refundReason.zod.d.ts +10 -8
  309. package/dist/canopy/v1/generated/validators/refundReason.zod.js +10 -8
  310. package/dist/canopy/v1/generated/validators/renewRequest.zod.d.ts +10 -8
  311. package/dist/canopy/v1/generated/validators/renewRequest.zod.js +10 -8
  312. package/dist/canopy/v1/generated/validators/renewalOrderRequest.zod.d.ts +10 -8
  313. package/dist/canopy/v1/generated/validators/renewalOrderRequest.zod.js +10 -8
  314. package/dist/canopy/v1/generated/validators/renewalPrice.zod.d.ts +10 -8
  315. package/dist/canopy/v1/generated/validators/renewalPrice.zod.js +10 -8
  316. package/dist/canopy/v1/generated/validators/renewalPriceList.zod.d.ts +10 -8
  317. package/dist/canopy/v1/generated/validators/renewalPriceList.zod.js +10 -8
  318. package/dist/canopy/v1/generated/validators/requestResource.zod.d.ts +10 -8
  319. package/dist/canopy/v1/generated/validators/requestResource.zod.js +10 -8
  320. package/dist/canopy/v1/generated/validators/scheduledChange.zod.d.ts +10 -8
  321. package/dist/canopy/v1/generated/validators/scheduledChange.zod.js +10 -8
  322. package/dist/canopy/v1/generated/validators/serviceResource.zod.d.ts +10 -8
  323. package/dist/canopy/v1/generated/validators/serviceResource.zod.js +10 -8
  324. package/dist/canopy/v1/generated/validators/setProjectAssignmentRequest.zod.d.ts +10 -8
  325. package/dist/canopy/v1/generated/validators/setProjectAssignmentRequest.zod.js +10 -8
  326. package/dist/canopy/v1/generated/validators/spendRow.zod.d.ts +10 -8
  327. package/dist/canopy/v1/generated/validators/spendRow.zod.js +10 -8
  328. package/dist/canopy/v1/generated/validators/spendRowList.zod.d.ts +10 -8
  329. package/dist/canopy/v1/generated/validators/spendRowList.zod.js +10 -8
  330. package/dist/canopy/v1/generated/validators/statement.zod.d.ts +10 -8
  331. package/dist/canopy/v1/generated/validators/statement.zod.js +10 -8
  332. package/dist/canopy/v1/generated/validators/statementAmounts.zod.d.ts +10 -8
  333. package/dist/canopy/v1/generated/validators/statementAmounts.zod.js +10 -8
  334. package/dist/canopy/v1/generated/validators/statementItem.zod.d.ts +10 -8
  335. package/dist/canopy/v1/generated/validators/statementItem.zod.js +10 -8
  336. package/dist/canopy/v1/generated/validators/statementList.zod.d.ts +10 -8
  337. package/dist/canopy/v1/generated/validators/statementList.zod.js +10 -8
  338. package/dist/canopy/v1/generated/validators/statementStatus.zod.d.ts +10 -8
  339. package/dist/canopy/v1/generated/validators/statementStatus.zod.js +10 -8
  340. package/dist/canopy/v1/generated/validators/statementSummary.zod.d.ts +10 -8
  341. package/dist/canopy/v1/generated/validators/statementSummary.zod.js +10 -8
  342. package/dist/canopy/v1/generated/validators/statementType.zod.d.ts +10 -8
  343. package/dist/canopy/v1/generated/validators/statementType.zod.js +10 -8
  344. package/dist/canopy/v1/generated/validators/subscription.zod.d.ts +11 -8
  345. package/dist/canopy/v1/generated/validators/subscription.zod.js +14 -8
  346. package/dist/canopy/v1/generated/validators/subscriptionCancellation.zod.d.ts +10 -8
  347. package/dist/canopy/v1/generated/validators/subscriptionCancellation.zod.js +10 -8
  348. package/dist/canopy/v1/generated/validators/subscriptionList.zod.d.ts +11 -8
  349. package/dist/canopy/v1/generated/validators/subscriptionList.zod.js +10 -8
  350. package/dist/canopy/v1/generated/validators/subscriptionRestriction.zod.d.ts +10 -8
  351. package/dist/canopy/v1/generated/validators/subscriptionRestriction.zod.js +10 -8
  352. package/dist/canopy/v1/generated/validators/taxItem.zod.d.ts +10 -8
  353. package/dist/canopy/v1/generated/validators/taxItem.zod.js +10 -8
  354. package/dist/canopy/v1/generated/validators/terminationPolicy.zod.d.ts +10 -8
  355. package/dist/canopy/v1/generated/validators/terminationPolicy.zod.js +10 -8
  356. package/dist/canopy/v1/generated/validators/tier.zod.d.ts +10 -8
  357. package/dist/canopy/v1/generated/validators/tier.zod.js +10 -8
  358. package/dist/canopy/v1/generated/validators/tokenPrice.zod.d.ts +10 -8
  359. package/dist/canopy/v1/generated/validators/tokenPrice.zod.js +10 -8
  360. package/dist/canopy/v1/generated/validators/topUp.zod.d.ts +10 -8
  361. package/dist/canopy/v1/generated/validators/topUp.zod.js +10 -8
  362. package/dist/canopy/v1/generated/validators/topUpCreate.zod.d.ts +10 -8
  363. package/dist/canopy/v1/generated/validators/topUpCreate.zod.js +10 -8
  364. package/dist/canopy/v1/generated/validators/topUpList.zod.d.ts +10 -8
  365. package/dist/canopy/v1/generated/validators/topUpList.zod.js +10 -8
  366. package/dist/canopy/v1/generated/validators/totalsResource.zod.d.ts +10 -8
  367. package/dist/canopy/v1/generated/validators/totalsResource.zod.js +10 -8
  368. package/dist/canopy/v1/generated/validators/transaction.zod.d.ts +10 -8
  369. package/dist/canopy/v1/generated/validators/transaction.zod.js +10 -8
  370. package/dist/canopy/v1/generated/validators/transactionList.zod.d.ts +10 -8
  371. package/dist/canopy/v1/generated/validators/transactionList.zod.js +10 -8
  372. package/dist/canopy/v1/generated/validators/transactionType.zod.d.ts +10 -8
  373. package/dist/canopy/v1/generated/validators/transactionType.zod.js +10 -8
  374. package/dist/canopy/v1/generated/validators/updateAPIKeyRequestBody.zod.d.ts +10 -8
  375. package/dist/canopy/v1/generated/validators/updateAPIKeyRequestBody.zod.js +10 -8
  376. package/dist/canopy/v1/generated/validators/usageBucketResource.zod.d.ts +10 -8
  377. package/dist/canopy/v1/generated/validators/usageBucketResource.zod.js +10 -8
  378. package/dist/canopy/v1/generated/validators/usageCharge.zod.d.ts +10 -8
  379. package/dist/canopy/v1/generated/validators/usageCharge.zod.js +10 -8
  380. package/dist/canopy/v1/generated/validators/usageChargeList.zod.d.ts +10 -8
  381. package/dist/canopy/v1/generated/validators/usageChargeList.zod.js +10 -8
  382. package/dist/canopy/v1/generated/validators/usageTimelineResponseBody.zod.d.ts +10 -8
  383. package/dist/canopy/v1/generated/validators/usageTimelineResponseBody.zod.js +10 -8
  384. package/dist/canopy/v1/generated/validators/withdrawal.zod.d.ts +10 -8
  385. package/dist/canopy/v1/generated/validators/withdrawal.zod.js +10 -8
  386. package/dist/canopy/v1/generated/validators/withdrawalAllocation.zod.d.ts +10 -8
  387. package/dist/canopy/v1/generated/validators/withdrawalAllocation.zod.js +10 -8
  388. package/dist/canopy/v1/generated/validators/withdrawalCreate.zod.d.ts +10 -8
  389. package/dist/canopy/v1/generated/validators/withdrawalCreate.zod.js +10 -8
  390. package/dist/canopy/v1/generated/validators/withdrawalItem.zod.d.ts +10 -8
  391. package/dist/canopy/v1/generated/validators/withdrawalItem.zod.js +10 -8
  392. package/dist/canopy/v1/generated/validators/withdrawalItemList.zod.d.ts +10 -8
  393. package/dist/canopy/v1/generated/validators/withdrawalItemList.zod.js +10 -8
  394. package/dist/canopy/v1/generated/validators/withdrawalList.zod.d.ts +10 -8
  395. package/dist/canopy/v1/generated/validators/withdrawalList.zod.js +10 -8
  396. package/dist/canopy/v1/generated/validators/withdrawalPreview.zod.d.ts +10 -8
  397. package/dist/canopy/v1/generated/validators/withdrawalPreview.zod.js +10 -8
  398. package/dist/canopy/v1/generated/validators/withdrawalPreviewItem.zod.d.ts +10 -8
  399. package/dist/canopy/v1/generated/validators/withdrawalPreviewItem.zod.js +10 -8
  400. package/dist/canopy/v1/generated/validators/withdrawalPreviewRequest.zod.d.ts +10 -8
  401. package/dist/canopy/v1/generated/validators/withdrawalPreviewRequest.zod.js +10 -8
  402. package/dist/canopy/v1/generated/validators/withdrawalSource.zod.d.ts +10 -8
  403. package/dist/canopy/v1/generated/validators/withdrawalSource.zod.js +10 -8
  404. package/dist/index.d.ts +0 -1
  405. package/dist/index.js +0 -1
  406. package/dist/membership/v1/generated/models.d.ts +4 -0
  407. package/dist/membership/v1/generated/validators/order.zod.d.ts +1 -0
  408. package/dist/membership/v1/generated/validators/orderItem.zod.d.ts +1 -0
  409. package/dist/membership/v1/generated/validators/orderItem.zod.js +4 -0
  410. package/dist/membership/v1/generated/validators/orderItemList.zod.d.ts +1 -0
  411. package/dist/membership/v1/generated/validators/orderList.zod.d.ts +1 -0
  412. package/dist/membership/v1/generated/validators/subscription.zod.d.ts +1 -0
  413. package/dist/membership/v1/generated/validators/subscription.zod.js +4 -0
  414. package/dist/membership/v1/generated/validators/subscriptionList.zod.d.ts +1 -0
  415. package/dist/routes.d.ts +4 -4
  416. package/dist/routes.js +4 -4
  417. package/package.json +1 -1
  418. package/dist/canopy/inference/v1/generated/functions.d.ts +0 -100
  419. package/dist/canopy/inference/v1/generated/functions.js +0 -100
  420. package/dist/canopy/inference/v1/generated/models.d.ts +0 -74
  421. package/dist/canopy/inference/v1/generated/models.js +0 -4
  422. package/dist/canopy/inference/v1/generated/schemas.zod.d.ts +0 -40
  423. package/dist/canopy/inference/v1/generated/schemas.zod.js +0 -26
  424. package/dist/canopy/inference/v1/generated/validators/chatCompletion.zod.d.ts +0 -11
  425. package/dist/canopy/inference/v1/generated/validators/chatCompletion.zod.js +0 -9
  426. package/dist/canopy/inference/v1/generated/validators/chatCompletionRequest.zod.d.ts +0 -18
  427. package/dist/canopy/inference/v1/generated/validators/chatCompletionRequest.zod.js +0 -16
  428. package/dist/canopy/inference/v1/generated/validators/embeddingRequest.zod.d.ts +0 -20
  429. package/dist/canopy/inference/v1/generated/validators/embeddingRequest.zod.js +0 -17
  430. package/dist/canopy/inference/v1/generated/validators/embeddingResponse.zod.d.ts +0 -11
  431. package/dist/canopy/inference/v1/generated/validators/embeddingResponse.zod.js +0 -9
  432. package/dist/canopy/inference/v1/generated/validators/error.zod.d.ts +0 -18
  433. package/dist/canopy/inference/v1/generated/validators/error.zod.js +0 -16
  434. package/dist/canopy/inference/v1/generated/validators/model.zod.d.ts +0 -23
  435. package/dist/canopy/inference/v1/generated/validators/model.zod.js +0 -21
  436. package/dist/canopy/inference/v1/generated/validators/modelList.zod.d.ts +0 -26
  437. package/dist/canopy/inference/v1/generated/validators/modelList.zod.js +0 -13
  438. package/dist/canopy/inference/v1/index.d.ts +0 -3
  439. package/dist/canopy/inference/v1/index.js +0 -3
@@ -2,21 +2,23 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Canopy API
5
- * Management of API keys, together with the models available and the usage recorded against them.
5
+ * Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
6
6
  *
7
- * **These endpoints do not perform inference.** Requests are issued to the forwarding address, which accepts the OpenAI, Anthropic and Gemini request formats:
7
+ * OpenAI-compatible project inference is served on this host at `/v1/chat/completions`,
8
+ * `/v1/embeddings`, `/v1/models` and `/v1/models/{model}`. Use `https://canopy.leaflow.cloud/v1`
9
+ * as the OpenAI SDK base URL. Chat completions support `stream=true` SSE.
8
10
  *
9
- * ```
10
- * POST /v1/chat/completions OpenAI
11
- * POST /v1/messages Anthropic
12
- * POST /v1beta/models/{model}:generateContent Gemini
13
- * ```
11
+ * Management operations use `/api/v1`. The management model catalogue includes pricing;
12
+ * `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
14
13
  *
15
14
  * ## Authentication
16
15
  *
17
16
  * Every request carries a scoped token; see the `bearerAuth` security scheme.
18
17
  *
19
- * These management endpoints do not accept a Canopy API key. On this userapi host, the OpenAI-compatible `/v1/chat/completions`, `/v1/embeddings`, `/v1/models` and `/v1/models/{model}` endpoints accept the same project token; see the project inference contract. The separate API-key gateway continues to accept Canopy API keys.
18
+ * Management and project inference accept the same verified IAM scoped token. The token is the
19
+ * sole billing project authority; `OpenAI-Project` and historical identity headers cannot
20
+ * override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
21
+ * accepts Canopy API keys and supports OpenAI, Anthropic and Gemini request formats.
20
22
  *
21
23
  * ## Conventions
22
24
  *
@@ -2,21 +2,23 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Canopy API
5
- * Management of API keys, together with the models available and the usage recorded against them.
5
+ * Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
6
6
  *
7
- * **These endpoints do not perform inference.** Requests are issued to the forwarding address, which accepts the OpenAI, Anthropic and Gemini request formats:
7
+ * OpenAI-compatible project inference is served on this host at `/v1/chat/completions`,
8
+ * `/v1/embeddings`, `/v1/models` and `/v1/models/{model}`. Use `https://canopy.leaflow.cloud/v1`
9
+ * as the OpenAI SDK base URL. Chat completions support `stream=true` SSE.
8
10
  *
9
- * ```
10
- * POST /v1/chat/completions OpenAI
11
- * POST /v1/messages Anthropic
12
- * POST /v1beta/models/{model}:generateContent Gemini
13
- * ```
11
+ * Management operations use `/api/v1`. The management model catalogue includes pricing;
12
+ * `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
14
13
  *
15
14
  * ## Authentication
16
15
  *
17
16
  * Every request carries a scoped token; see the `bearerAuth` security scheme.
18
17
  *
19
- * These management endpoints do not accept a Canopy API key. On this userapi host, the OpenAI-compatible `/v1/chat/completions`, `/v1/embeddings`, `/v1/models` and `/v1/models/{model}` endpoints accept the same project token; see the project inference contract. The separate API-key gateway continues to accept Canopy API keys.
18
+ * Management and project inference accept the same verified IAM scoped token. The token is the
19
+ * sole billing project authority; `OpenAI-Project` and historical identity headers cannot
20
+ * override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
21
+ * accepts Canopy API keys and supports OpenAI, Anthropic and Gemini request formats.
20
22
  *
21
23
  * ## Conventions
22
24
  *
@@ -2,21 +2,23 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Canopy API
5
- * Management of API keys, together with the models available and the usage recorded against them.
5
+ * Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
6
6
  *
7
- * **These endpoints do not perform inference.** Requests are issued to the forwarding address, which accepts the OpenAI, Anthropic and Gemini request formats:
7
+ * OpenAI-compatible project inference is served on this host at `/v1/chat/completions`,
8
+ * `/v1/embeddings`, `/v1/models` and `/v1/models/{model}`. Use `https://canopy.leaflow.cloud/v1`
9
+ * as the OpenAI SDK base URL. Chat completions support `stream=true` SSE.
8
10
  *
9
- * ```
10
- * POST /v1/chat/completions OpenAI
11
- * POST /v1/messages Anthropic
12
- * POST /v1beta/models/{model}:generateContent Gemini
13
- * ```
11
+ * Management operations use `/api/v1`. The management model catalogue includes pricing;
12
+ * `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
14
13
  *
15
14
  * ## Authentication
16
15
  *
17
16
  * Every request carries a scoped token; see the `bearerAuth` security scheme.
18
17
  *
19
- * These management endpoints do not accept a Canopy API key. On this userapi host, the OpenAI-compatible `/v1/chat/completions`, `/v1/embeddings`, `/v1/models` and `/v1/models/{model}` endpoints accept the same project token; see the project inference contract. The separate API-key gateway continues to accept Canopy API keys.
18
+ * Management and project inference accept the same verified IAM scoped token. The token is the
19
+ * sole billing project authority; `OpenAI-Project` and historical identity headers cannot
20
+ * override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
21
+ * accepts Canopy API keys and supports OpenAI, Anthropic and Gemini request formats.
20
22
  *
21
23
  * ## Conventions
22
24
  *
@@ -2,21 +2,23 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Canopy API
5
- * Management of API keys, together with the models available and the usage recorded against them.
5
+ * Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
6
6
  *
7
- * **These endpoints do not perform inference.** Requests are issued to the forwarding address, which accepts the OpenAI, Anthropic and Gemini request formats:
7
+ * OpenAI-compatible project inference is served on this host at `/v1/chat/completions`,
8
+ * `/v1/embeddings`, `/v1/models` and `/v1/models/{model}`. Use `https://canopy.leaflow.cloud/v1`
9
+ * as the OpenAI SDK base URL. Chat completions support `stream=true` SSE.
8
10
  *
9
- * ```
10
- * POST /v1/chat/completions OpenAI
11
- * POST /v1/messages Anthropic
12
- * POST /v1beta/models/{model}:generateContent Gemini
13
- * ```
11
+ * Management operations use `/api/v1`. The management model catalogue includes pricing;
12
+ * `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
14
13
  *
15
14
  * ## Authentication
16
15
  *
17
16
  * Every request carries a scoped token; see the `bearerAuth` security scheme.
18
17
  *
19
- * These management endpoints do not accept a Canopy API key. On this userapi host, the OpenAI-compatible `/v1/chat/completions`, `/v1/embeddings`, `/v1/models` and `/v1/models/{model}` endpoints accept the same project token; see the project inference contract. The separate API-key gateway continues to accept Canopy API keys.
18
+ * Management and project inference accept the same verified IAM scoped token. The token is the
19
+ * sole billing project authority; `OpenAI-Project` and historical identity headers cannot
20
+ * override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
21
+ * accepts Canopy API keys and supports OpenAI, Anthropic and Gemini request formats.
20
22
  *
21
23
  * ## Conventions
22
24
  *
@@ -2,21 +2,23 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Canopy API
5
- * Management of API keys, together with the models available and the usage recorded against them.
5
+ * Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
6
6
  *
7
- * **These endpoints do not perform inference.** Requests are issued to the forwarding address, which accepts the OpenAI, Anthropic and Gemini request formats:
7
+ * OpenAI-compatible project inference is served on this host at `/v1/chat/completions`,
8
+ * `/v1/embeddings`, `/v1/models` and `/v1/models/{model}`. Use `https://canopy.leaflow.cloud/v1`
9
+ * as the OpenAI SDK base URL. Chat completions support `stream=true` SSE.
8
10
  *
9
- * ```
10
- * POST /v1/chat/completions OpenAI
11
- * POST /v1/messages Anthropic
12
- * POST /v1beta/models/{model}:generateContent Gemini
13
- * ```
11
+ * Management operations use `/api/v1`. The management model catalogue includes pricing;
12
+ * `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
14
13
  *
15
14
  * ## Authentication
16
15
  *
17
16
  * Every request carries a scoped token; see the `bearerAuth` security scheme.
18
17
  *
19
- * These management endpoints do not accept a Canopy API key. On this userapi host, the OpenAI-compatible `/v1/chat/completions`, `/v1/embeddings`, `/v1/models` and `/v1/models/{model}` endpoints accept the same project token; see the project inference contract. The separate API-key gateway continues to accept Canopy API keys.
18
+ * Management and project inference accept the same verified IAM scoped token. The token is the
19
+ * sole billing project authority; `OpenAI-Project` and historical identity headers cannot
20
+ * override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
21
+ * accepts Canopy API keys and supports OpenAI, Anthropic and Gemini request formats.
20
22
  *
21
23
  * ## Conventions
22
24
  *
@@ -2,21 +2,23 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Canopy API
5
- * Management of API keys, together with the models available and the usage recorded against them.
5
+ * Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
6
6
  *
7
- * **These endpoints do not perform inference.** Requests are issued to the forwarding address, which accepts the OpenAI, Anthropic and Gemini request formats:
7
+ * OpenAI-compatible project inference is served on this host at `/v1/chat/completions`,
8
+ * `/v1/embeddings`, `/v1/models` and `/v1/models/{model}`. Use `https://canopy.leaflow.cloud/v1`
9
+ * as the OpenAI SDK base URL. Chat completions support `stream=true` SSE.
8
10
  *
9
- * ```
10
- * POST /v1/chat/completions OpenAI
11
- * POST /v1/messages Anthropic
12
- * POST /v1beta/models/{model}:generateContent Gemini
13
- * ```
11
+ * Management operations use `/api/v1`. The management model catalogue includes pricing;
12
+ * `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
14
13
  *
15
14
  * ## Authentication
16
15
  *
17
16
  * Every request carries a scoped token; see the `bearerAuth` security scheme.
18
17
  *
19
- * These management endpoints do not accept a Canopy API key. On this userapi host, the OpenAI-compatible `/v1/chat/completions`, `/v1/embeddings`, `/v1/models` and `/v1/models/{model}` endpoints accept the same project token; see the project inference contract. The separate API-key gateway continues to accept Canopy API keys.
18
+ * Management and project inference accept the same verified IAM scoped token. The token is the
19
+ * sole billing project authority; `OpenAI-Project` and historical identity headers cannot
20
+ * override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
21
+ * accepts Canopy API keys and supports OpenAI, Anthropic and Gemini request formats.
20
22
  *
21
23
  * ## Conventions
22
24
  *
@@ -2,21 +2,23 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Canopy API
5
- * Management of API keys, together with the models available and the usage recorded against them.
5
+ * Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
6
6
  *
7
- * **These endpoints do not perform inference.** Requests are issued to the forwarding address, which accepts the OpenAI, Anthropic and Gemini request formats:
7
+ * OpenAI-compatible project inference is served on this host at `/v1/chat/completions`,
8
+ * `/v1/embeddings`, `/v1/models` and `/v1/models/{model}`. Use `https://canopy.leaflow.cloud/v1`
9
+ * as the OpenAI SDK base URL. Chat completions support `stream=true` SSE.
8
10
  *
9
- * ```
10
- * POST /v1/chat/completions OpenAI
11
- * POST /v1/messages Anthropic
12
- * POST /v1beta/models/{model}:generateContent Gemini
13
- * ```
11
+ * Management operations use `/api/v1`. The management model catalogue includes pricing;
12
+ * `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
14
13
  *
15
14
  * ## Authentication
16
15
  *
17
16
  * Every request carries a scoped token; see the `bearerAuth` security scheme.
18
17
  *
19
- * These management endpoints do not accept a Canopy API key. On this userapi host, the OpenAI-compatible `/v1/chat/completions`, `/v1/embeddings`, `/v1/models` and `/v1/models/{model}` endpoints accept the same project token; see the project inference contract. The separate API-key gateway continues to accept Canopy API keys.
18
+ * Management and project inference accept the same verified IAM scoped token. The token is the
19
+ * sole billing project authority; `OpenAI-Project` and historical identity headers cannot
20
+ * override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
21
+ * accepts Canopy API keys and supports OpenAI, Anthropic and Gemini request formats.
20
22
  *
21
23
  * ## Conventions
22
24
  *
@@ -2,21 +2,23 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Canopy API
5
- * Management of API keys, together with the models available and the usage recorded against them.
5
+ * Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
6
6
  *
7
- * **These endpoints do not perform inference.** Requests are issued to the forwarding address, which accepts the OpenAI, Anthropic and Gemini request formats:
7
+ * OpenAI-compatible project inference is served on this host at `/v1/chat/completions`,
8
+ * `/v1/embeddings`, `/v1/models` and `/v1/models/{model}`. Use `https://canopy.leaflow.cloud/v1`
9
+ * as the OpenAI SDK base URL. Chat completions support `stream=true` SSE.
8
10
  *
9
- * ```
10
- * POST /v1/chat/completions OpenAI
11
- * POST /v1/messages Anthropic
12
- * POST /v1beta/models/{model}:generateContent Gemini
13
- * ```
11
+ * Management operations use `/api/v1`. The management model catalogue includes pricing;
12
+ * `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
14
13
  *
15
14
  * ## Authentication
16
15
  *
17
16
  * Every request carries a scoped token; see the `bearerAuth` security scheme.
18
17
  *
19
- * These management endpoints do not accept a Canopy API key. On this userapi host, the OpenAI-compatible `/v1/chat/completions`, `/v1/embeddings`, `/v1/models` and `/v1/models/{model}` endpoints accept the same project token; see the project inference contract. The separate API-key gateway continues to accept Canopy API keys.
18
+ * Management and project inference accept the same verified IAM scoped token. The token is the
19
+ * sole billing project authority; `OpenAI-Project` and historical identity headers cannot
20
+ * override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
21
+ * accepts Canopy API keys and supports OpenAI, Anthropic and Gemini request formats.
20
22
  *
21
23
  * ## Conventions
22
24
  *
@@ -2,21 +2,23 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Canopy API
5
- * Management of API keys, together with the models available and the usage recorded against them.
5
+ * Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
6
6
  *
7
- * **These endpoints do not perform inference.** Requests are issued to the forwarding address, which accepts the OpenAI, Anthropic and Gemini request formats:
7
+ * OpenAI-compatible project inference is served on this host at `/v1/chat/completions`,
8
+ * `/v1/embeddings`, `/v1/models` and `/v1/models/{model}`. Use `https://canopy.leaflow.cloud/v1`
9
+ * as the OpenAI SDK base URL. Chat completions support `stream=true` SSE.
8
10
  *
9
- * ```
10
- * POST /v1/chat/completions OpenAI
11
- * POST /v1/messages Anthropic
12
- * POST /v1beta/models/{model}:generateContent Gemini
13
- * ```
11
+ * Management operations use `/api/v1`. The management model catalogue includes pricing;
12
+ * `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
14
13
  *
15
14
  * ## Authentication
16
15
  *
17
16
  * Every request carries a scoped token; see the `bearerAuth` security scheme.
18
17
  *
19
- * These management endpoints do not accept a Canopy API key. On this userapi host, the OpenAI-compatible `/v1/chat/completions`, `/v1/embeddings`, `/v1/models` and `/v1/models/{model}` endpoints accept the same project token; see the project inference contract. The separate API-key gateway continues to accept Canopy API keys.
18
+ * Management and project inference accept the same verified IAM scoped token. The token is the
19
+ * sole billing project authority; `OpenAI-Project` and historical identity headers cannot
20
+ * override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
21
+ * accepts Canopy API keys and supports OpenAI, Anthropic and Gemini request formats.
20
22
  *
21
23
  * ## Conventions
22
24
  *
@@ -2,21 +2,23 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Canopy API
5
- * Management of API keys, together with the models available and the usage recorded against them.
5
+ * Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
6
6
  *
7
- * **These endpoints do not perform inference.** Requests are issued to the forwarding address, which accepts the OpenAI, Anthropic and Gemini request formats:
7
+ * OpenAI-compatible project inference is served on this host at `/v1/chat/completions`,
8
+ * `/v1/embeddings`, `/v1/models` and `/v1/models/{model}`. Use `https://canopy.leaflow.cloud/v1`
9
+ * as the OpenAI SDK base URL. Chat completions support `stream=true` SSE.
8
10
  *
9
- * ```
10
- * POST /v1/chat/completions OpenAI
11
- * POST /v1/messages Anthropic
12
- * POST /v1beta/models/{model}:generateContent Gemini
13
- * ```
11
+ * Management operations use `/api/v1`. The management model catalogue includes pricing;
12
+ * `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
14
13
  *
15
14
  * ## Authentication
16
15
  *
17
16
  * Every request carries a scoped token; see the `bearerAuth` security scheme.
18
17
  *
19
- * These management endpoints do not accept a Canopy API key. On this userapi host, the OpenAI-compatible `/v1/chat/completions`, `/v1/embeddings`, `/v1/models` and `/v1/models/{model}` endpoints accept the same project token; see the project inference contract. The separate API-key gateway continues to accept Canopy API keys.
18
+ * Management and project inference accept the same verified IAM scoped token. The token is the
19
+ * sole billing project authority; `OpenAI-Project` and historical identity headers cannot
20
+ * override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
21
+ * accepts Canopy API keys and supports OpenAI, Anthropic and Gemini request formats.
20
22
  *
21
23
  * ## Conventions
22
24
  *
@@ -2,21 +2,23 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Canopy API
5
- * Management of API keys, together with the models available and the usage recorded against them.
5
+ * Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
6
6
  *
7
- * **These endpoints do not perform inference.** Requests are issued to the forwarding address, which accepts the OpenAI, Anthropic and Gemini request formats:
7
+ * OpenAI-compatible project inference is served on this host at `/v1/chat/completions`,
8
+ * `/v1/embeddings`, `/v1/models` and `/v1/models/{model}`. Use `https://canopy.leaflow.cloud/v1`
9
+ * as the OpenAI SDK base URL. Chat completions support `stream=true` SSE.
8
10
  *
9
- * ```
10
- * POST /v1/chat/completions OpenAI
11
- * POST /v1/messages Anthropic
12
- * POST /v1beta/models/{model}:generateContent Gemini
13
- * ```
11
+ * Management operations use `/api/v1`. The management model catalogue includes pricing;
12
+ * `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
14
13
  *
15
14
  * ## Authentication
16
15
  *
17
16
  * Every request carries a scoped token; see the `bearerAuth` security scheme.
18
17
  *
19
- * These management endpoints do not accept a Canopy API key. On this userapi host, the OpenAI-compatible `/v1/chat/completions`, `/v1/embeddings`, `/v1/models` and `/v1/models/{model}` endpoints accept the same project token; see the project inference contract. The separate API-key gateway continues to accept Canopy API keys.
18
+ * Management and project inference accept the same verified IAM scoped token. The token is the
19
+ * sole billing project authority; `OpenAI-Project` and historical identity headers cannot
20
+ * override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
21
+ * accepts Canopy API keys and supports OpenAI, Anthropic and Gemini request formats.
20
22
  *
21
23
  * ## Conventions
22
24
  *
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Leaflow Canopy API
5
+ * Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
6
+ *
7
+ * OpenAI-compatible project inference is served on this host at `/v1/chat/completions`,
8
+ * `/v1/embeddings`, `/v1/models` and `/v1/models/{model}`. Use `https://canopy.leaflow.cloud/v1`
9
+ * as the OpenAI SDK base URL. Chat completions support `stream=true` SSE.
10
+ *
11
+ * Management operations use `/api/v1`. The management model catalogue includes pricing;
12
+ * `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
13
+ *
14
+ * ## Authentication
15
+ *
16
+ * Every request carries a scoped token; see the `bearerAuth` security scheme.
17
+ *
18
+ * Management and project inference accept the same verified IAM scoped token. The token is the
19
+ * sole billing project authority; `OpenAI-Project` and historical identity headers cannot
20
+ * override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
21
+ * accepts Canopy API keys and supports OpenAI, Anthropic and Gemini request formats.
22
+ *
23
+ * ## Conventions
24
+ *
25
+ * - **The plaintext of an API key is returned once.** The `secret` appears in the response that issues it and is returned by no other endpoint. A key that has been lost has to be revoked and reissued.
26
+ * - **Disabling and revoking are distinct.** A disabled key may be enabled again at any time, while a revocation is irreversible and is intended for a key that has been exposed. Neither removes the record, and the usage the key accrued remains readable.
27
+ * - **A usage query must carry a time range**, spanning no more than 31 days. `from` and `to` carry a timezone offset, which the server does not infer.
28
+ * - **The request and response bodies do not appear in the ledger.** They are not recorded. Quote the `upstream_request_id` from the response when reporting a problem.
29
+ * - **Usage may be estimated.** The upstream provider does not report usage on every request. Where it does not, `usage_source` is `estimated` and the figures are derived from the character classes of the payload, to within roughly fifteen per cent.
30
+ * - **The service is enabled before use.** A project enables the model platform once, through `create-service`; the forwarding endpoints refuse its requests until the service is `active`. Requests are then billed under the service's subscription by the tokens they use, at the rates stated in each model's `pricing`.
31
+ * OpenAPI spec version: 1.0.0
32
+ */
33
+ import * as zod from "zod";
34
+ export declare const EmbeddingRequest: zod.ZodObject<{
35
+ model: zod.ZodString;
36
+ input: zod.ZodUnion<readonly [zod.ZodString, zod.ZodArray<zod.ZodUnknown>]>;
37
+ encoding_format: zod.ZodOptional<zod.ZodEnum<{
38
+ base64: "base64";
39
+ float: "float";
40
+ }>>;
41
+ dimensions: zod.ZodOptional<zod.ZodInt>;
42
+ user: zod.ZodOptional<zod.ZodString>;
43
+ }, zod.z.core.$strict>;
44
+ export type EmbeddingRequest = zod.input<typeof EmbeddingRequest>;
45
+ export type EmbeddingRequestOutput = zod.output<typeof EmbeddingRequest>;
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Leaflow Canopy API
5
+ * Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
6
+ *
7
+ * OpenAI-compatible project inference is served on this host at `/v1/chat/completions`,
8
+ * `/v1/embeddings`, `/v1/models` and `/v1/models/{model}`. Use `https://canopy.leaflow.cloud/v1`
9
+ * as the OpenAI SDK base URL. Chat completions support `stream=true` SSE.
10
+ *
11
+ * Management operations use `/api/v1`. The management model catalogue includes pricing;
12
+ * `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
13
+ *
14
+ * ## Authentication
15
+ *
16
+ * Every request carries a scoped token; see the `bearerAuth` security scheme.
17
+ *
18
+ * Management and project inference accept the same verified IAM scoped token. The token is the
19
+ * sole billing project authority; `OpenAI-Project` and historical identity headers cannot
20
+ * override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
21
+ * accepts Canopy API keys and supports OpenAI, Anthropic and Gemini request formats.
22
+ *
23
+ * ## Conventions
24
+ *
25
+ * - **The plaintext of an API key is returned once.** The `secret` appears in the response that issues it and is returned by no other endpoint. A key that has been lost has to be revoked and reissued.
26
+ * - **Disabling and revoking are distinct.** A disabled key may be enabled again at any time, while a revocation is irreversible and is intended for a key that has been exposed. Neither removes the record, and the usage the key accrued remains readable.
27
+ * - **A usage query must carry a time range**, spanning no more than 31 days. `from` and `to` carry a timezone offset, which the server does not infer.
28
+ * - **The request and response bodies do not appear in the ledger.** They are not recorded. Quote the `upstream_request_id` from the response when reporting a problem.
29
+ * - **Usage may be estimated.** The upstream provider does not report usage on every request. Where it does not, `usage_source` is `estimated` and the figures are derived from the character classes of the payload, to within roughly fifteen per cent.
30
+ * - **The service is enabled before use.** A project enables the model platform once, through `create-service`; the forwarding endpoints refuse its requests until the service is `active`. Requests are then billed under the service's subscription by the tokens they use, at the rates stated in each model's `pricing`.
31
+ * OpenAPI spec version: 1.0.0
32
+ */
33
+ import * as zod from "zod";
34
+ export const EmbeddingRequest = zod.strictObject({
35
+ model: zod.string().min(1),
36
+ input: zod
37
+ .union([zod.string().min(1), zod.array(zod.unknown()).min(1)])
38
+ .describe("A nonempty string, string array, token integer array, or array of token integer arrays."),
39
+ encoding_format: zod.enum(["float", "base64"]).optional(),
40
+ dimensions: zod.int().min(1).optional(),
41
+ user: zod.string().optional(),
42
+ });
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Leaflow Canopy API
5
+ * Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
6
+ *
7
+ * OpenAI-compatible project inference is served on this host at `/v1/chat/completions`,
8
+ * `/v1/embeddings`, `/v1/models` and `/v1/models/{model}`. Use `https://canopy.leaflow.cloud/v1`
9
+ * as the OpenAI SDK base URL. Chat completions support `stream=true` SSE.
10
+ *
11
+ * Management operations use `/api/v1`. The management model catalogue includes pricing;
12
+ * `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
13
+ *
14
+ * ## Authentication
15
+ *
16
+ * Every request carries a scoped token; see the `bearerAuth` security scheme.
17
+ *
18
+ * Management and project inference accept the same verified IAM scoped token. The token is the
19
+ * sole billing project authority; `OpenAI-Project` and historical identity headers cannot
20
+ * override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
21
+ * accepts Canopy API keys and supports OpenAI, Anthropic and Gemini request formats.
22
+ *
23
+ * ## Conventions
24
+ *
25
+ * - **The plaintext of an API key is returned once.** The `secret` appears in the response that issues it and is returned by no other endpoint. A key that has been lost has to be revoked and reissued.
26
+ * - **Disabling and revoking are distinct.** A disabled key may be enabled again at any time, while a revocation is irreversible and is intended for a key that has been exposed. Neither removes the record, and the usage the key accrued remains readable.
27
+ * - **A usage query must carry a time range**, spanning no more than 31 days. `from` and `to` carry a timezone offset, which the server does not infer.
28
+ * - **The request and response bodies do not appear in the ledger.** They are not recorded. Quote the `upstream_request_id` from the response when reporting a problem.
29
+ * - **Usage may be estimated.** The upstream provider does not report usage on every request. Where it does not, `usage_source` is `estimated` and the figures are derived from the character classes of the payload, to within roughly fifteen per cent.
30
+ * - **The service is enabled before use.** A project enables the model platform once, through `create-service`; the forwarding endpoints refuse its requests until the service is `active`. Requests are then billed under the service's subscription by the tokens they use, at the rates stated in each model's `pricing`.
31
+ * OpenAPI spec version: 1.0.0
32
+ */
33
+ import * as zod from "zod";
34
+ export declare const EmbeddingResponse: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
35
+ export type EmbeddingResponse = zod.input<typeof EmbeddingResponse>;
36
+ export type EmbeddingResponseOutput = zod.output<typeof EmbeddingResponse>;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Leaflow Canopy API
5
+ * Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
6
+ *
7
+ * OpenAI-compatible project inference is served on this host at `/v1/chat/completions`,
8
+ * `/v1/embeddings`, `/v1/models` and `/v1/models/{model}`. Use `https://canopy.leaflow.cloud/v1`
9
+ * as the OpenAI SDK base URL. Chat completions support `stream=true` SSE.
10
+ *
11
+ * Management operations use `/api/v1`. The management model catalogue includes pricing;
12
+ * `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
13
+ *
14
+ * ## Authentication
15
+ *
16
+ * Every request carries a scoped token; see the `bearerAuth` security scheme.
17
+ *
18
+ * Management and project inference accept the same verified IAM scoped token. The token is the
19
+ * sole billing project authority; `OpenAI-Project` and historical identity headers cannot
20
+ * override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
21
+ * accepts Canopy API keys and supports OpenAI, Anthropic and Gemini request formats.
22
+ *
23
+ * ## Conventions
24
+ *
25
+ * - **The plaintext of an API key is returned once.** The `secret` appears in the response that issues it and is returned by no other endpoint. A key that has been lost has to be revoked and reissued.
26
+ * - **Disabling and revoking are distinct.** A disabled key may be enabled again at any time, while a revocation is irreversible and is intended for a key that has been exposed. Neither removes the record, and the usage the key accrued remains readable.
27
+ * - **A usage query must carry a time range**, spanning no more than 31 days. `from` and `to` carry a timezone offset, which the server does not infer.
28
+ * - **The request and response bodies do not appear in the ledger.** They are not recorded. Quote the `upstream_request_id` from the response when reporting a problem.
29
+ * - **Usage may be estimated.** The upstream provider does not report usage on every request. Where it does not, `usage_source` is `estimated` and the figures are derived from the character classes of the payload, to within roughly fifteen per cent.
30
+ * - **The service is enabled before use.** A project enables the model platform once, through `create-service`; the forwarding endpoints refuse its requests until the service is `active`. Requests are then billed under the service's subscription by the tokens they use, at the rates stated in each model's `pricing`.
31
+ * OpenAPI spec version: 1.0.0
32
+ */
33
+ import * as zod from "zod";
34
+ export const EmbeddingResponse = zod.record(zod.string(), zod.unknown());
@@ -2,21 +2,23 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Canopy API
5
- * Management of API keys, together with the models available and the usage recorded against them.
5
+ * Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
6
6
  *
7
- * **These endpoints do not perform inference.** Requests are issued to the forwarding address, which accepts the OpenAI, Anthropic and Gemini request formats:
7
+ * OpenAI-compatible project inference is served on this host at `/v1/chat/completions`,
8
+ * `/v1/embeddings`, `/v1/models` and `/v1/models/{model}`. Use `https://canopy.leaflow.cloud/v1`
9
+ * as the OpenAI SDK base URL. Chat completions support `stream=true` SSE.
8
10
  *
9
- * ```
10
- * POST /v1/chat/completions OpenAI
11
- * POST /v1/messages Anthropic
12
- * POST /v1beta/models/{model}:generateContent Gemini
13
- * ```
11
+ * Management operations use `/api/v1`. The management model catalogue includes pricing;
12
+ * `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
14
13
  *
15
14
  * ## Authentication
16
15
  *
17
16
  * Every request carries a scoped token; see the `bearerAuth` security scheme.
18
17
  *
19
- * These management endpoints do not accept a Canopy API key. On this userapi host, the OpenAI-compatible `/v1/chat/completions`, `/v1/embeddings`, `/v1/models` and `/v1/models/{model}` endpoints accept the same project token; see the project inference contract. The separate API-key gateway continues to accept Canopy API keys.
18
+ * Management and project inference accept the same verified IAM scoped token. The token is the
19
+ * sole billing project authority; `OpenAI-Project` and historical identity headers cannot
20
+ * override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
21
+ * accepts Canopy API keys and supports OpenAI, Anthropic and Gemini request formats.
20
22
  *
21
23
  * ## Conventions
22
24
  *
@@ -2,21 +2,23 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Canopy API
5
- * Management of API keys, together with the models available and the usage recorded against them.
5
+ * Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
6
6
  *
7
- * **These endpoints do not perform inference.** Requests are issued to the forwarding address, which accepts the OpenAI, Anthropic and Gemini request formats:
7
+ * OpenAI-compatible project inference is served on this host at `/v1/chat/completions`,
8
+ * `/v1/embeddings`, `/v1/models` and `/v1/models/{model}`. Use `https://canopy.leaflow.cloud/v1`
9
+ * as the OpenAI SDK base URL. Chat completions support `stream=true` SSE.
8
10
  *
9
- * ```
10
- * POST /v1/chat/completions OpenAI
11
- * POST /v1/messages Anthropic
12
- * POST /v1beta/models/{model}:generateContent Gemini
13
- * ```
11
+ * Management operations use `/api/v1`. The management model catalogue includes pricing;
12
+ * `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
14
13
  *
15
14
  * ## Authentication
16
15
  *
17
16
  * Every request carries a scoped token; see the `bearerAuth` security scheme.
18
17
  *
19
- * These management endpoints do not accept a Canopy API key. On this userapi host, the OpenAI-compatible `/v1/chat/completions`, `/v1/embeddings`, `/v1/models` and `/v1/models/{model}` endpoints accept the same project token; see the project inference contract. The separate API-key gateway continues to accept Canopy API keys.
18
+ * Management and project inference accept the same verified IAM scoped token. The token is the
19
+ * sole billing project authority; `OpenAI-Project` and historical identity headers cannot
20
+ * override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
21
+ * accepts Canopy API keys and supports OpenAI, Anthropic and Gemini request formats.
20
22
  *
21
23
  * ## Conventions
22
24
  *