@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.
- package/README.md +8 -2
- package/dist/billing/type/order/v1/generated/models.d.ts +4 -0
- package/dist/billing/type/order/v1/generated/validators/order.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/orderItem.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/orderItem.zod.js +4 -0
- package/dist/billing/type/order/v1/generated/validators/orderItemList.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/orderList.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/subscription.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/subscription.zod.js +4 -0
- package/dist/billing/type/order/v1/generated/validators/subscriptionList.zod.d.ts +1 -0
- package/dist/billing/v1/generated/models.d.ts +4 -0
- package/dist/billing/v1/generated/validators/order.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/orderItem.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/orderItem.zod.js +4 -0
- package/dist/billing/v1/generated/validators/orderItemList.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/orderList.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/subscription.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/subscription.zod.js +4 -0
- package/dist/billing/v1/generated/validators/subscriptionList.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/functions.d.ts +97 -9
- package/dist/canopy/v1/generated/functions.js +100 -0
- package/dist/canopy/v1/generated/models.d.ts +81 -8
- package/dist/canopy/v1/generated/models.js +4 -0
- package/dist/canopy/v1/generated/schemas.zod.d.ts +42 -8
- package/dist/canopy/v1/generated/schemas.zod.js +28 -8
- package/dist/canopy/v1/generated/validators/aPIKeyResource.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/aPIKeyResource.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/aPIKeyUsageListResponseBody.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/aPIKeyUsageListResponseBody.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/aPIKeyUsageResource.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/aPIKeyUsageResource.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/accountBalance.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/accountBalance.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/accountIdentity.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/accountIdentity.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/activeResource.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/activeResource.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/activeResourceList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/activeResourceList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/allowance.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/allowance.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/allowanceList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/allowanceList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/applicability.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/applicability.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/applicablePlan.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/applicablePlan.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/appliedCredit.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/appliedCredit.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/autoRenewSet.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/autoRenewSet.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/billingAccount.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/billingAccount.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/billingAccountCreate.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/billingAccountCreate.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/billingAccountList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/billingAccountList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/billingAccountUpdate.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/billingAccountUpdate.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/cancelSubscriptionRequest.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/cancelSubscriptionRequest.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/cancellation.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/cancellation.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/cancellationCreate.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/cancellationCreate.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/cancellationItem.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/cancellationItem.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/cancellationList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/cancellationList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/chatCompletion.zod.d.ts +36 -0
- package/dist/canopy/v1/generated/validators/chatCompletion.zod.js +34 -0
- package/dist/canopy/v1/generated/validators/chatCompletionRequest.zod.d.ts +43 -0
- package/dist/canopy/v1/generated/validators/chatCompletionRequest.zod.js +41 -0
- package/dist/canopy/v1/generated/validators/checkoutMode.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/checkoutMode.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/checkoutOptions.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/checkoutOptions.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/contact.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/contact.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/contactCreate.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/contactCreate.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/contactList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/contactList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/contactUpdate.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/contactUpdate.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/createAPIKeyRequestBody.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/createAPIKeyRequestBody.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/createServiceRequestBody.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/createServiceRequestBody.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/createServiceResponseBody.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/createServiceResponseBody.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/creditGrant.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/creditGrant.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/creditGrantList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/creditGrantList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/creditGroup.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/creditGroup.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/creditNote.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/creditNote.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/creditNoteItem.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/creditNoteItem.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/creditNoteItemList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/creditNoteItemList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/creditNoteList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/creditNoteList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/currency.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/currency.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/currencyList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/currencyList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/cursorPageRequestResource.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/cursorPageRequestResource.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/cursorPagination.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/cursorPagination.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/discount.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/discount.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/discountList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/discountList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/embeddingRequest.zod.d.ts +45 -0
- package/dist/canopy/v1/generated/validators/embeddingRequest.zod.js +42 -0
- package/dist/canopy/v1/generated/validators/embeddingResponse.zod.d.ts +36 -0
- package/dist/canopy/v1/generated/validators/embeddingResponse.zod.js +34 -0
- package/dist/canopy/v1/generated/validators/entitlement.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/entitlement.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/entitlementList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/entitlementList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/error.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/error.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/errorA200529.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/errorA200529.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/featureGrant.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/featureGrant.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/featureGrantList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/featureGrantList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/featureGrantStatus.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/featureGrantStatus.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/funds.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/funds.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/getUsageSummaryParams.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/getUsageSummaryParams.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/getUsageTimelineParams.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/getUsageTimelineParams.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/inferenceError.zod.d.ts +43 -0
- package/dist/canopy/v1/generated/validators/inferenceError.zod.js +41 -0
- package/dist/canopy/v1/generated/validators/invoice.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/invoice.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/invoiceItem.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/invoiceItem.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/invoiceItemList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/invoiceItemList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/invoiceItemProration.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/invoiceItemProration.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/invoiceList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/invoiceList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/invoiceStatus.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/invoiceStatus.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/invoiceSummary.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/invoiceSummary.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/issuedAPIKeyResource.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/issuedAPIKeyResource.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/lengthAwarePageAPIKeyResource.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/lengthAwarePageAPIKeyResource.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/listApiKeysParams.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/listApiKeysParams.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/listRequestsParams.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/listRequestsParams.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/listUsageByApiKeyParams.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/listUsageByApiKeyParams.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/listUsageByModelParams.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/listUsageByModelParams.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/model.zod.d.ts +48 -0
- package/dist/canopy/v1/generated/validators/model.zod.js +46 -0
- package/dist/canopy/v1/generated/validators/modelList.zod.d.ts +51 -0
- package/dist/canopy/v1/generated/validators/modelList.zod.js +38 -0
- package/dist/canopy/v1/generated/validators/modelListResponseBody.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/modelListResponseBody.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/modelPricing.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/modelPricing.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/modelResource.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/modelResource.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/modelUsageListResponseBody.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/modelUsageListResponseBody.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/modelUsageResource.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/modelUsageResource.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/money.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/money.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/monthlyStatement.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/monthlyStatement.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/monthlyStatementList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/monthlyStatementList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/namedIdentity.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/namedIdentity.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/objectIdentity.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/objectIdentity.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/offsetPagination.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/offsetPagination.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/order.zod.d.ts +11 -8
- package/dist/canopy/v1/generated/validators/order.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/orderCancel.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/orderCancel.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/orderItem.zod.d.ts +11 -8
- package/dist/canopy/v1/generated/validators/orderItem.zod.js +14 -8
- package/dist/canopy/v1/generated/validators/orderItemList.zod.d.ts +11 -8
- package/dist/canopy/v1/generated/validators/orderItemList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/orderItemStatus.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/orderItemStatus.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/orderList.zod.d.ts +11 -8
- package/dist/canopy/v1/generated/validators/orderList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/orderRefundQuote.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/orderRefundQuote.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/orderRefundQuoteInput.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/orderRefundQuoteInput.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/orderStatus.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/orderStatus.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/paidWith.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/paidWith.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/payInvoiceRequest.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/payInvoiceRequest.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/payTogetherRequest.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/payTogetherRequest.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/paymentAction.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/paymentAction.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/paymentCancellationReason.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/paymentCancellationReason.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/paymentMethod.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/paymentMethod.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/paymentMethodList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/paymentMethodList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/paymentMethodSetup.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/paymentMethodSetup.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/paymentMethodSetupResult.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/paymentMethodSetupResult.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/paymentOption.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/paymentOption.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/paymentOptionList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/paymentOptionList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/paymentOptionMethod.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/paymentOptionMethod.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/paymentPreview.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/paymentPreview.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/paymentPreviewInvoice.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/paymentPreviewInvoice.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/paymentResult.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/paymentResult.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/paymentStatus.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/paymentStatus.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/placedOrder.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/placedOrder.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/plan.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/plan.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/planFeature.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/planFeature.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/planList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/planList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/price.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/price.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/priceList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/priceList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/priceOption.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/priceOption.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/product.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/product.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/productID.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/productID.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/productList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/productList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/projectAssignment.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/projectAssignment.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/projectAssignmentList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/projectAssignmentList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/purchaseOperation.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/purchaseOperation.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/quote.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/quote.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/quote5f60d00.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/quote5f60d00.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/quoteA200529.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/quoteA200529.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/quoteCancellation.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/quoteCancellation.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/quoteItem.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/quoteItem.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/quoteItemDc1fddb.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/quoteItemDc1fddb.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/quoteItemInput.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/quoteItemInput.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/quoteRenewal.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/quoteRenewal.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/quoteRenewalResult.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/quoteRenewalResult.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/quoteRequest.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/quoteRequest.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/quotedDiscount.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/quotedDiscount.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/rate.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/rate.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/rateList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/rateList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/refund.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/refund.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/refundList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/refundList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/refundPolicy.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/refundPolicy.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/refundReason.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/refundReason.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/renewRequest.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/renewRequest.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/renewalOrderRequest.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/renewalOrderRequest.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/renewalPrice.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/renewalPrice.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/renewalPriceList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/renewalPriceList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/requestResource.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/requestResource.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/scheduledChange.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/scheduledChange.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/serviceResource.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/serviceResource.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/setProjectAssignmentRequest.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/setProjectAssignmentRequest.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/spendRow.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/spendRow.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/spendRowList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/spendRowList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/statement.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/statement.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/statementAmounts.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/statementAmounts.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/statementItem.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/statementItem.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/statementList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/statementList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/statementStatus.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/statementStatus.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/statementSummary.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/statementSummary.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/statementType.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/statementType.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/subscription.zod.d.ts +11 -8
- package/dist/canopy/v1/generated/validators/subscription.zod.js +14 -8
- package/dist/canopy/v1/generated/validators/subscriptionCancellation.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/subscriptionCancellation.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/subscriptionList.zod.d.ts +11 -8
- package/dist/canopy/v1/generated/validators/subscriptionList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/subscriptionRestriction.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/subscriptionRestriction.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/taxItem.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/taxItem.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/terminationPolicy.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/terminationPolicy.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/tier.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/tier.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/tokenPrice.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/tokenPrice.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/topUp.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/topUp.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/topUpCreate.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/topUpCreate.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/topUpList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/topUpList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/totalsResource.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/totalsResource.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/transaction.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/transaction.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/transactionList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/transactionList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/transactionType.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/transactionType.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/updateAPIKeyRequestBody.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/updateAPIKeyRequestBody.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/usageBucketResource.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/usageBucketResource.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/usageCharge.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/usageCharge.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/usageChargeList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/usageChargeList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/usageTimelineResponseBody.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/usageTimelineResponseBody.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/withdrawal.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/withdrawal.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/withdrawalAllocation.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/withdrawalAllocation.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/withdrawalCreate.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/withdrawalCreate.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/withdrawalItem.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/withdrawalItem.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/withdrawalItemList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/withdrawalItemList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/withdrawalList.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/withdrawalList.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/withdrawalPreview.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/withdrawalPreview.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/withdrawalPreviewItem.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/withdrawalPreviewItem.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/withdrawalPreviewRequest.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/withdrawalPreviewRequest.zod.js +10 -8
- package/dist/canopy/v1/generated/validators/withdrawalSource.zod.d.ts +10 -8
- package/dist/canopy/v1/generated/validators/withdrawalSource.zod.js +10 -8
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/membership/v1/generated/models.d.ts +4 -0
- package/dist/membership/v1/generated/validators/order.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/orderItem.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/orderItem.zod.js +4 -0
- package/dist/membership/v1/generated/validators/orderItemList.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/orderList.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/subscription.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/subscription.zod.js +4 -0
- package/dist/membership/v1/generated/validators/subscriptionList.zod.d.ts +1 -0
- package/dist/routes.d.ts +4 -4
- package/dist/routes.js +4 -4
- package/package.json +1 -1
- package/dist/canopy/inference/v1/generated/functions.d.ts +0 -100
- package/dist/canopy/inference/v1/generated/functions.js +0 -100
- package/dist/canopy/inference/v1/generated/models.d.ts +0 -74
- package/dist/canopy/inference/v1/generated/models.js +0 -4
- package/dist/canopy/inference/v1/generated/schemas.zod.d.ts +0 -40
- package/dist/canopy/inference/v1/generated/schemas.zod.js +0 -26
- package/dist/canopy/inference/v1/generated/validators/chatCompletion.zod.d.ts +0 -11
- package/dist/canopy/inference/v1/generated/validators/chatCompletion.zod.js +0 -9
- package/dist/canopy/inference/v1/generated/validators/chatCompletionRequest.zod.d.ts +0 -18
- package/dist/canopy/inference/v1/generated/validators/chatCompletionRequest.zod.js +0 -16
- package/dist/canopy/inference/v1/generated/validators/embeddingRequest.zod.d.ts +0 -20
- package/dist/canopy/inference/v1/generated/validators/embeddingRequest.zod.js +0 -17
- package/dist/canopy/inference/v1/generated/validators/embeddingResponse.zod.d.ts +0 -11
- package/dist/canopy/inference/v1/generated/validators/embeddingResponse.zod.js +0 -9
- package/dist/canopy/inference/v1/generated/validators/error.zod.d.ts +0 -18
- package/dist/canopy/inference/v1/generated/validators/error.zod.js +0 -16
- package/dist/canopy/inference/v1/generated/validators/model.zod.d.ts +0 -23
- package/dist/canopy/inference/v1/generated/validators/model.zod.js +0 -21
- package/dist/canopy/inference/v1/generated/validators/modelList.zod.d.ts +0 -26
- package/dist/canopy/inference/v1/generated/validators/modelList.zod.js +0 -13
- package/dist/canopy/inference/v1/index.d.ts +0 -3
- 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
|
-
*
|
|
5
|
+
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
5
|
+
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
5
|
+
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
5
|
+
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
5
|
+
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
5
|
+
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
5
|
+
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
5
|
+
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
5
|
+
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
5
|
+
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
5
|
+
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
5
|
+
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
5
|
+
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
5
|
+
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
5
|
+
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
5
|
+
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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,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 ChatCompletion: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
35
|
+
export type ChatCompletion = zod.input<typeof ChatCompletion>;
|
|
36
|
+
export type ChatCompletionOutput = zod.output<typeof ChatCompletion>;
|
|
@@ -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 ChatCompletion = zod.record(zod.string(), zod.unknown());
|