@mastra/slack 1.0.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/Slack.test.ts DELETED
@@ -1,57 +0,0 @@
1
- import {
2
- describe,
3
- it,
4
- beforeAll,
5
- afterAll, //expect
6
- } from '@jest/globals';
7
- import { Mastra } from '@mastra/core';
8
-
9
- import { SlackIntegration } from '.';
10
-
11
- // We need to OAuth from admin
12
-
13
- const CLIENT_ID = process.env.CLIENT_ID!;
14
- const CLIENT_SECRET = process.env.CLIENT_SECRET!;
15
-
16
- const dbUri = process.env.DB_URL!;
17
- const connectionId = process.env.CONNECTION_ID!;
18
-
19
- const integrationName = 'SLACK';
20
-
21
- const integrationFramework = Mastra.init({
22
- name: 'TestFramework',
23
- integrations: [
24
- new SlackIntegration({
25
- config: {
26
- CLIENT_ID,
27
- CLIENT_SECRET,
28
- undefined,
29
- },
30
- }),
31
- ],
32
- workflows: {
33
- systemApis: [],
34
- blueprintDirPath: '',
35
- systemEvents: {},
36
- },
37
- db: {
38
- provider: 'postgres',
39
- uri: dbUri,
40
- },
41
- systemHostURL: 'http://localhost:3000',
42
- routeRegistrationPath: '/api/mastra',
43
- });
44
-
45
- //const integration = integrationFramework.getIntegration(integrationName) as SlackIntegration
46
-
47
- describe('slack', () => {
48
- beforeAll(async () => {});
49
-
50
- it('should 200 on some apis', async () => {
51
- //const client = await integration.getApiClient({ connectionId });
52
- //const response = await client['/2010-04-01/Accounts.json'].get();
53
- //expect(response.status).toBe(200);
54
- });
55
-
56
- afterAll(async () => {});
57
- });
Binary file
@@ -1,37 +0,0 @@
1
-
2
- <svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
3
- viewBox="0 0 297.5 297.5" xml:space="preserve">
4
- <g id="XMLID_40_">
5
- <g>
6
- <path style="fill:#ACBFC7;" d="M277.71,158.52v85.7H19.79v-85.7h6.53v40.54c0,16.98,13.81,30.78,30.78,30.78
7
- s30.78-13.8,30.78-30.78v-40.54h30.09v40.54c0,16.98,13.81,30.78,30.78,30.78c16.98,0,30.78-13.8,30.78-30.78v-40.54h30.1v40.54
8
- c0,16.98,13.8,30.78,30.78,30.78c16.97,0,30.78-13.8,30.78-30.78v-40.54H277.71z"/>
9
- <rect x="218.66" y="53.28" style="fill:#CDD9DD;" width="43.49" height="10.53"/>
10
- <rect x="229.17" y="83.35" style="fill:#CDD9DD;" width="22.48" height="23.92"/>
11
- <rect x="137.51" y="83.35" style="fill:#CDD9DD;" width="22.48" height="23.92"/>
12
- <rect x="127.01" y="53.28" style="fill:#CDD9DD;" width="43.49" height="10.53"/>
13
- <rect x="35.35" y="53.28" style="fill:#CDD9DD;" width="43.49" height="10.53"/>
14
- <rect x="45.86" y="83.35" style="fill:#CDD9DD;" width="22.48" height="23.92"/>
15
- <path style="fill:#FF4855;" d="M251.65,126.81v72.25c0,6.2-5.05,11.24-11.24,11.24c-6.2,0-11.24-5.04-11.24-11.24v-72.25H251.65z"
16
- />
17
- <path style="fill:#D61616;" d="M68.34,126.81v72.25c0,6.2-5.04,11.24-11.24,11.24s-11.24-5.04-11.24-11.24v-72.25H68.34z"/>
18
- <path style="fill:#FFD63F;" d="M159.99,126.81v72.25c0,6.2-5.04,11.24-11.24,11.24s-11.24-5.04-11.24-11.24v-72.25H159.99z"/>
19
- <path d="M297.25,148.75v105.24c0,5.4-4.37,9.77-9.77,9.77H10.02c-5.39,0-9.77-4.37-9.77-9.77V148.75c0-5.4,4.38-9.77,9.77-9.77
20
- h16.3V83.35h-0.74c-5.39,0-9.77-4.38-9.77-9.77V43.51c0-5.4,4.38-9.77,9.77-9.77h63.03c5.4,0,9.77,4.37,9.77,9.77v30.07
21
- c0,5.39-4.37,9.77-9.77,9.77h-0.73v55.63h30.09V83.35h-0.73c-5.4,0-9.77-4.38-9.77-9.77V43.51c0-5.4,4.37-9.77,9.77-9.77h63.03
22
- c5.39,0,9.77,4.37,9.77,9.77v30.07c0,5.39-4.38,9.77-9.77,9.77h-0.74v55.63h30.1V83.35h-0.74c-5.39,0-9.77-4.38-9.77-9.77V43.51
23
- c0-5.4,4.38-9.77,9.77-9.77h63.03c5.4,0,9.77,4.37,9.77,9.77v30.07c0,5.39-4.37,9.77-9.77,9.77h-0.73v55.63h16.29
24
- C292.88,138.98,297.25,143.35,297.25,148.75z M277.71,244.22v-85.7h-6.52v40.54c0,16.98-13.81,30.78-30.78,30.78
25
- c-16.98,0-30.78-13.8-30.78-30.78v-40.54h-30.1v40.54c0,16.98-13.8,30.78-30.78,30.78c-16.97,0-30.78-13.8-30.78-30.78v-40.54
26
- H87.88v40.54c0,16.98-13.81,30.78-30.78,30.78s-30.78-13.8-30.78-30.78v-40.54h-6.53v85.7H277.71z M262.15,63.81V53.28h-43.49
27
- v10.53H262.15z M251.65,199.06v-72.25h-22.48v72.25c0,6.2,5.04,11.24,11.24,11.24C246.6,210.3,251.65,205.26,251.65,199.06z
28
- M251.65,107.27V83.35h-22.48v23.92H251.65z M170.5,63.81V53.28h-43.49v10.53H170.5z M159.99,199.06v-72.25h-22.48v72.25
29
- c0,6.2,5.04,11.24,11.24,11.24S159.99,205.26,159.99,199.06z M159.99,107.27V83.35h-22.48v23.92H159.99z M78.84,63.81V53.28H35.35
30
- v10.53H78.84z M68.34,199.06v-72.25H45.86v72.25c0,6.2,5.04,11.24,11.24,11.24S68.34,205.26,68.34,199.06z M68.34,107.27V83.35
31
- H45.86v23.92H68.34z"/>
32
- </g>
33
- <g>
34
- </g>
35
- </g>
36
- </svg>
37
-
@@ -1,4 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
- export * from './schemas.gen';
3
- export * from './services.gen';
4
- export * from './types.gen';