kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
feat: add websiteUrl to project config
rodzic
cd4353e052
commit
030200ce91
|
@ -72,6 +72,7 @@ export const deployments = pgTable(
|
|||
readme: text().default('').notNull(),
|
||||
iconUrl: text(),
|
||||
sourceUrl: text(),
|
||||
websiteUrl: text(),
|
||||
|
||||
userId: userId()
|
||||
.notNull()
|
||||
|
@ -168,6 +169,7 @@ export const deploymentSelectBaseSchema = createSelectSchema(deployments, {
|
|||
readme: resolvedAgenticProjectConfigSchema.shape.readme,
|
||||
iconUrl: resolvedAgenticProjectConfigSchema.shape.iconUrl,
|
||||
sourceUrl: resolvedAgenticProjectConfigSchema.shape.sourceUrl,
|
||||
websiteUrl: resolvedAgenticProjectConfigSchema.shape.websiteUrl,
|
||||
origin: resolvedAgenticProjectConfigSchema.shape.origin,
|
||||
pricingPlans: resolvedAgenticProjectConfigSchema.shape.pricingPlans,
|
||||
pricingIntervals: resolvedAgenticProjectConfigSchema.shape.pricingIntervals,
|
||||
|
|
|
@ -61,6 +61,10 @@ Examples: `1.0.0`, `0.0.1`, `5.0.1`, etc.
|
|||
Optional URL to the source code of the project (eg, GitHub repo).
|
||||
</ResponseField>
|
||||
|
||||
<ResponseField name='websiteUrl' type='string'>
|
||||
Optional URL to the product's website.
|
||||
</ResponseField>
|
||||
|
||||
<ResponseField name='origin' type='object' required>
|
||||
Origin API adapter used to configure the origin API server downstream from
|
||||
Agentic's MCP gateway.
|
||||
|
|
|
@ -135,6 +135,17 @@ export const agenticProjectConfigSchema = z
|
|||
)
|
||||
.optional(),
|
||||
|
||||
/**
|
||||
* Optional URL to the product's website.
|
||||
*
|
||||
* @example "https://my-product.com"
|
||||
*/
|
||||
websiteUrl: z
|
||||
.string()
|
||||
.url()
|
||||
.describe("Optional URL to the product's website.")
|
||||
.optional(),
|
||||
|
||||
/**
|
||||
* Origin API adapter used to configure the origin API server downstream
|
||||
* from Agentic's API gateway. It specifies whether the origin API server's
|
||||
|
|
Ładowanie…
Reference in New Issue