Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regen resend/openai #458

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 27 additions & 22 deletions integration-generator/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,18 +312,18 @@ export const sources: Source[] = [
// serverUrl: 'https://api.ragie.ai',
// openapiSpec: 'https://docs.ragie.ai/openapi/66587e474bcc890050cface6',
// },
{
name: 'claude',
logoDomain: 'anthropic.com',
authType: 'API_KEY',
apiKeys: ['ANTHROPIC_API_KEY'],
serverUrl: 'https://api.anthropic.com/v1',
authorization: { type: 'Custom_Header', headers: [{ key: 'x-api-key', value: 'ANTHROPIC_API_KEY' }] },
openapiSpec: 'https://raw.githubusercontent.com/tryAGI/Anthropic/main/docs/openapi.yaml',
categories: ['ai', 'communications'],
description:
'Claude is a next generation AI assistant built for work and trained to be safe, accurate, and secure.',
},
// {
// name: 'claude',
// logoDomain: 'anthropic.com',
// authType: 'API_KEY',
// apiKeys: ['ANTHROPIC_API_KEY'],
// serverUrl: 'https://api.anthropic.com/v1',
// authorization: { type: 'Custom_Header', headers: [{ key: 'x-api-key', value: 'ANTHROPIC_API_KEY' }] },
// openapiSpec: 'https://raw.githubusercontent.com/tryAGI/Anthropic/main/docs/openapi.yaml',
// categories: ['ai', 'communications'],
// description:
// 'Claude is a next generation AI assistant built for work and trained to be safe, accurate, and secure.',
// },
// {
// name: 'brex',
// logoDomain: 'brex.com',
Expand Down Expand Up @@ -404,6 +404,8 @@ export const sources: Source[] = [
// apiKeys: ['API_KEY'],
// serverUrl: 'https://api.resend.com',
// openapiSpec: 'https://raw.githubusercontent.com/resend/resend-openapi/main/resend.yaml',
// categories: ['communications', 'marketing'],
// description: 'Resend is a platform for sending transactional and marketing emails.',
// },
// {
// name: 'sendgrid',
Expand Down Expand Up @@ -434,16 +436,19 @@ export const sources: Source[] = [
// categories: ['crm'],
// description: 'Powerful, flexible and data-driven, Attio makes it easy to build the exact CRM your business needs.',
// },
// {
// name: 'openai',
// logoDomain: 'openai.com',
// authType: 'API_KEY',
// apiKeys: ['API_KEY'],
// authorization: { type: 'Bearer', tokenKey: 'API_KEY' },
// serverUrl: 'https://app.attio.com',
// openapiSpec:
// 'https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml',
// },
{
name: 'openai',
logoDomain: 'openai.com',
authType: 'API_KEY',
apiKeys: ['API_KEY'],
authorization: { type: 'Bearer', tokenKey: 'API_KEY' },
serverUrl: 'https://app.attio.com',
openapiSpec:
'https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/openai.com/1.2.0/openapi.yaml',
categories: ['ai'],
description:
'OpenAI is an artificial intelligence platform that provides a set of tools and APIs for building AI-powered applications.',
},
// {
// name: 'zoom',
// logoDomain: 'zoom.us',
Expand Down
9 changes: 6 additions & 3 deletions packages/openai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"lint": "dts lint",
"size": "size-limit",
"start": "dts watch",
"test": "jest"
"test": "jest",
"clean": "rm -rf dist && rm -rf node_modules",
"gen:zod:schema": "pnpx ts-to-zod src/client/types.gen.ts src/client/zodSchema.ts"
},
"husky": {
"hooks": {
Expand Down Expand Up @@ -56,8 +58,9 @@
"author": "",
"license": "ISC",
"dependencies": {
"@hey-api/client-fetch": "^0.3.3",
"@mastra/core": "workspace:*",
"fets": "*",
"zod": "^3.23.8"
"zod": "^3.23.8",
"ts-to-zod": "^3.13.0"
}
}
8 changes: 5 additions & 3 deletions packages/openai/src/Openai.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,17 @@ const integrationName = 'OPENAI';
const integrationFramework = Framework.init({
name: 'TestFramework',
integrations: [new OpenaiIntegration()],
systemApis: [],
systemEvents: {},
workflows: {
systemApis: [],
blueprintDirPath: '',
systemEvents: {},
},
db: {
provider: 'postgres',
uri: dbUri,
},
systemHostURL: 'http://localhost:3000',
routeRegistrationPath: '/api/mastra',
blueprintDirPath: '',
});

//const integration = integrationFramework.getIntegration(integrationName) as OpenaiIntegration
Expand Down
37 changes: 0 additions & 37 deletions packages/openai/src/assets/openai.svg

This file was deleted.

4 changes: 4 additions & 0 deletions packages/openai/src/client/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// This file is auto-generated by @hey-api/openapi-ts
export * from './schemas.gen';
export * from './services.gen';
export * from './types.gen';
Loading
Loading