mirror of
https://github.com/langgenius/dify.git
synced 2026-07-21 18:58:35 +08:00
33 lines
707 B
TypeScript
33 lines
707 B
TypeScript
import { billing } from '@dify/contracts/api/console/billing/orpc.gen'
|
|
import { type } from '@orpc/contract'
|
|
import { base } from '../base'
|
|
|
|
export const invoicesContract = base
|
|
.route({
|
|
path: '/billing/invoices',
|
|
method: 'GET',
|
|
})
|
|
.input(type<unknown>())
|
|
.output(type<{ url: string }>())
|
|
|
|
export const bindPartnerStackContract = base
|
|
.route({
|
|
path: '/billing/partners/{partnerKey}/tenants',
|
|
method: 'PUT',
|
|
})
|
|
.input(type<{
|
|
params: {
|
|
partnerKey: string
|
|
}
|
|
body: {
|
|
click_id: string
|
|
}
|
|
}>())
|
|
.output(type<unknown>())
|
|
|
|
export const billingRouterContract = {
|
|
...billing,
|
|
invoices: invoicesContract,
|
|
bindPartnerStack: bindPartnerStackContract,
|
|
}
|