kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
old-agentic
rodzic
047af13b15
commit
44bdaf2941
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 })
|
||||
|
|
Ładowanie…
Reference in New Issue