old-agentic
Travis Fischer 2025-03-23 04:28:12 +08:00
rodzic 047af13b15
commit 44bdaf2941
5 zmienionych plików z 19 dodań i 5 usunięć

Wyświetl plik

@ -494,6 +494,11 @@ export namespace firecrawl {
>
}
/**
* Agentic Firecrawl client.
*
* API for interacting with Firecrawl services to perform web scraping and crawling tasks.
*/
export class FirecrawlClient extends AIFunctionsProvider {
protected readonly ky: KyInstance
protected readonly apiKey: string

Wyświetl plik

@ -182,12 +182,12 @@ export namespace notion {
typeof CheckboxPropertyResponseSchema
>
export const URLPropertyResponseSchema = z.object({
export const UrlPropertyResponseSchema = z.object({
id: z.string(),
type: z.literal('url'),
url: z.record(z.any())
})
export type URLPropertyResponse = z.infer<typeof URLPropertyResponseSchema>
export type UrlPropertyResponse = z.infer<typeof UrlPropertyResponseSchema>
export const EmailPropertyResponseSchema = z.object({
id: z.string(),
@ -1465,6 +1465,11 @@ export namespace notion {
export type OauthTokenParams = z.infer<typeof OauthTokenParamsSchema>
}
/**
* Agentic Notion client.
*
* API specification for Notion
*/
export class NotionClient extends AIFunctionsProvider {
protected readonly ky: KyInstance
protected readonly apiKey: string

Wyświetl plik

@ -63,6 +63,9 @@ export namespace petstore {
export type ShowPetByIdResponse = z.infer<typeof ShowPetByIdResponseSchema>
}
/**
* Agentic PetStore client.
*/
export class PetStoreClient extends AIFunctionsProvider {
protected readonly ky: KyInstance

Wyświetl plik

@ -61497,7 +61497,8 @@ export namespace stripe {
}
/**
* Agentic client for Stripe.
* Agentic Stripe client.
*
* The Stripe REST API. Please see https://stripe.com/docs/api for more details.
*/
export class StripeClient extends AIFunctionsProvider {

Wyświetl plik

@ -611,7 +611,7 @@ import { z } from 'zod'`.trim()
`
/**
* Agentic client for ${name}.${spec.info?.description ? `\n * ${spec.info.description}` : ''}
* Agentic ${name} client.${spec.info?.description ? `\n *\n * ${spec.info.description}` : ''}
*/
export class ${clientName} extends AIFunctionsProvider {
protected readonly ky: KyInstance
@ -658,7 +658,7 @@ export class ${clientName} extends AIFunctionsProvider {
)
)
.replaceAll(/z\s*\.object\({}\)\s*\.merge\(([^)]*)\)/gm, '$1')
.replaceAll(/\/\*\*(\S.*)\*\//g, '/** $1 */')
.replaceAll(/\/\*\*(\S.*\S)\*\//g, '/** $1 */')
console.log(output)
await fs.mkdir(destFolder, { recursive: true })