Skip to content

Commit

Permalink
added oauth to schema (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
acedward authored Dec 18, 2024
1 parent 0035529 commit 74eda8c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions apps/shinkai-desktop/src/components/playground-tool/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,21 @@ export const ToolMetadataSchema = z.object({
sqlTables: z.array(z.string()).default([]),
sqlQueries: z.array(z.string()).default([]),
tools: z.array(z.string()).default([]),
oauth: z.array(
z.object({
name: z.string().default(''),
version: z.string().default('2.0'),
authorizationUrl: z.string().default(''),
redirectUrl: z.string().default('https://secrets.shinkai.com/redirect'),
tokenUrl: z.string().default(''),
clientId: z.string().default('YOUR_PROVIDER_CLIENT_ID'),
clientSecret: z.string().default('YOUR_PROVIDER_CLIENT_SECRET'),
scopes: z.array(z.string()).default([]),
grantType: z.string().default('authorization_code'),
refreshToken: z.string().default(''),
accessToken: z.string().default(''),
}),
).default([]),
});

export type ToolMetadataSchemaType = z.infer<typeof ToolMetadataSchema>;

0 comments on commit 74eda8c

Please sign in to comment.