@taskmagic/apps-recall-ai 0.0.1

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/README.md ADDED
@@ -0,0 +1 @@
1
+ # Recall.ai
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "@taskmagic/apps-recall-ai",
3
+ "version": "0.0.1",
4
+ "dependencies": {
5
+ "@anthropic-ai/sdk": "0.33.1",
6
+ "@sinclair/typebox": "0.34.11",
7
+ "axios": "1.17.0",
8
+ "axios-retry": "4.4.1",
9
+ "deepmerge-ts": "7.1.0",
10
+ "mime-types": "2.1.35",
11
+ "nanoid": "3.3.8",
12
+ "openai": "4.67.1",
13
+ "replicate": "0.34.1",
14
+ "semver": "7.6.0",
15
+ "zod": "3.25.76",
16
+ "@taskmagic/pieces-common": "0.4.4",
17
+ "@taskmagic/pieces-framework": "0.7.46",
18
+ "@taskmagic/shared": "0.10.171",
19
+ "tslib": "1.14.1"
20
+ },
21
+ "overrides": {
22
+ "cross-spawn": "7.0.6",
23
+ "elliptic": "^6.6.1",
24
+ "fast-xml-parser": "^4.4.1",
25
+ "protobufjs": "^7.5.5",
26
+ "tmp": "^0.2.4",
27
+ "koa": "^2.16.4",
28
+ "picomatch": "^4.0.4",
29
+ "langsmith": "^0.6.0",
30
+ "serialize-javascript": "^6.0.2",
31
+ "elevenlabs": {
32
+ "form-data": "^4.0.4"
33
+ },
34
+ "@tryfabric/martian": {
35
+ "@notionhq/client": "$@notionhq/client"
36
+ },
37
+ "vite": {
38
+ "rollup": "npm:@rollup/wasm-node@^4.61.1"
39
+ }
40
+ },
41
+ "resolutions": {
42
+ "rollup": "npm:@rollup/wasm-node@^4.61.1"
43
+ },
44
+ "types": "./src/index.d.ts",
45
+ "main": "./src/index.js",
46
+ "type": "commonjs"
47
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export declare const recallAi: import("@taskmagic/pieces-framework").Piece<import("@taskmagic/pieces-framework").CustomAuthProperty<{
2
+ api_key: import("@taskmagic/pieces-framework").SecretTextProperty<true>;
3
+ server: import("@taskmagic/pieces-framework").StaticDropdownProperty<string, true>;
4
+ }>>;
package/src/index.js ADDED
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.recallAi = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@taskmagic/pieces-framework");
6
+ const shared_1 = require("@taskmagic/shared");
7
+ const pieces_common_1 = require("@taskmagic/pieces-common");
8
+ const auth_1 = require("./lib/common/auth");
9
+ const create_bot_1 = require("./lib/actions/create-bot");
10
+ const retrieve_bot_1 = require("./lib/actions/retrieve-bot");
11
+ const send_chat_message_1 = require("./lib/actions/send-chat-message");
12
+ exports.recallAi = (0, pieces_framework_1.createPiece)({
13
+ displayName: 'Recall.ai',
14
+ auth: auth_1.recallAiAuth,
15
+ minimumSupportedRelease: '0.30.0',
16
+ logoUrl: 'https://cdn.activepieces.com/pieces/recall-ai.png',
17
+ categories: [shared_1.PieceCategory.ARTIFICIAL_INTELLIGENCE],
18
+ authors: ['sanket-a11y'],
19
+ ai: {
20
+ description: 'Send Recall.ai notetaker bots into meetings: dispatch a bot to join a Zoom, Google Meet, or Microsoft Teams call, retrieve a bot\'s status, and post messages to the meeting chat.',
21
+ keywords: [
22
+ 'recall',
23
+ 'notetaker',
24
+ 'meeting bot',
25
+ 'meeting recorder',
26
+ 'transcription',
27
+ 'zoom bot',
28
+ 'google meet bot',
29
+ 'teams bot',
30
+ 'meeting chat',
31
+ ],
32
+ },
33
+ actions: [
34
+ create_bot_1.createBot,
35
+ retrieve_bot_1.retrieveBot,
36
+ send_chat_message_1.sendChatMessage,
37
+ (0, pieces_common_1.createCustomApiCallAction)({
38
+ auth: auth_1.recallAiAuth,
39
+ baseUrl: (auth) => `${auth.server}/api/v1`,
40
+ authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
41
+ return {
42
+ Authorization: `${auth.api_key}`,
43
+ };
44
+ }),
45
+ }),
46
+ ],
47
+ triggers: [],
48
+ });
49
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/recall-ai/src/index.ts"],"names":[],"mappings":";;;;AAAA,kEAA0D;AAC1D,8CAAkD;AAClD,4DAAqE;AACrE,4CAAiD;AACjD,yDAAqD;AACrD,6DAAyD;AACzD,uEAAkE;AAIrD,QAAA,QAAQ,GAAG,IAAA,8BAAW,EAAC;IAClC,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,mBAAY;IAClB,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,mDAAmD;IAC5D,UAAU,EAAE,CAAC,sBAAa,CAAC,uBAAuB,CAAC;IACnD,OAAO,EAAE,CAAC,aAAa,CAAC;IACxB,EAAE,EAAE;QACF,WAAW,EACT,oLAAoL;QACtL,QAAQ,EAAE;YACR,QAAQ;YACR,WAAW;YACX,aAAa;YACb,kBAAkB;YAClB,eAAe;YACf,UAAU;YACV,iBAAiB;YACjB,WAAW;YACX,cAAc;SACf;KACF;IACD,OAAO,EAAE;QACP,sBAAS;QACT,0BAAW;QACX,mCAAe;QACf,IAAA,yCAAyB,EAAC;YACxB,IAAI,EAAE,mBAAY;YAClB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,GAAI,IAAqB,CAAC,MAAM,SAAS;YAC5D,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAC1B,OAAO;oBACL,aAAa,EAAE,GAAI,IAAqB,CAAC,OAAO,EAAE;iBACnD,CAAC;YACJ,CAAC,CAAA;SACF,CAAC;KACH;IACD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const createBot: import("@taskmagic/pieces-framework").IAction<import("@taskmagic/pieces-framework").CustomAuthProperty<{
2
+ api_key: import("@taskmagic/pieces-framework").SecretTextProperty<true>;
3
+ server: import("@taskmagic/pieces-framework").StaticDropdownProperty<string, true>;
4
+ }>, {
5
+ meeting_url: import("@taskmagic/pieces-framework").ShortTextProperty<true>;
6
+ bot_name: import("@taskmagic/pieces-framework").ShortTextProperty<false>;
7
+ }>;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createBot = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@taskmagic/pieces-framework");
6
+ const pieces_common_1 = require("@taskmagic/pieces-common");
7
+ const auth_1 = require("../common/auth");
8
+ const client_1 = require("../common/client");
9
+ exports.createBot = (0, pieces_framework_1.createAction)({
10
+ auth: auth_1.recallAiAuth,
11
+ name: 'createBot',
12
+ displayName: 'Create Bot',
13
+ description: 'Creates a new bot that will join a meeting',
14
+ props: {
15
+ meeting_url: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Meeting URL',
17
+ description: 'The URL of the meeting (e.g., https://zoom.us/j/123?pwd=456)',
18
+ required: true,
19
+ }),
20
+ bot_name: pieces_framework_1.Property.ShortText({
21
+ displayName: 'Bot Name',
22
+ description: 'The name of the bot that will be displayed in the call (max 100 characters). Defaults to "Meeting Notetaker"',
23
+ required: false,
24
+ }),
25
+ },
26
+ run(context) {
27
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
28
+ const { meeting_url, bot_name } = context.propsValue;
29
+ const body = {
30
+ meeting_url,
31
+ };
32
+ if (bot_name) {
33
+ body['bot_name'] = bot_name;
34
+ }
35
+ const response = yield (0, client_1.makeRequest)(context.auth.server, context.auth.api_key, pieces_common_1.HttpMethod.POST, '/bot/', body);
36
+ return response;
37
+ });
38
+ },
39
+ });
40
+ //# sourceMappingURL=create-bot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-bot.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/recall-ai/src/lib/actions/create-bot.ts"],"names":[],"mappings":";;;;AAAA,kEAAqE;AACrE,4DAAsD;AACtD,yCAA8C;AAC9C,6CAA+C;AAElC,QAAA,SAAS,GAAG,IAAA,+BAAY,EAAC;IACpC,IAAI,EAAE,mBAAY;IAClB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,4CAA4C;IACzD,KAAK,EAAE;QACL,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,aAAa;YAC1B,WAAW,EACT,8DAA8D;YAChE,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,UAAU;YACvB,WAAW,EACT,8GAA8G;YAChH,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAErD,MAAM,IAAI,GAA4B;gBACpC,WAAW;aACZ,CAAC;YAEF,IAAI,QAAQ,EAAE,CAAC;gBACb,IAAI,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC;YAC9B,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAW,EAChC,OAAO,CAAC,IAAI,CAAC,MAAgB,EAC7B,OAAO,CAAC,IAAI,CAAC,OAAiB,EAC9B,0BAAU,CAAC,IAAI,EACf,OAAO,EACP,IAAI,CACL,CAAC;YAEF,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const retrieveBot: import("@taskmagic/pieces-framework").IAction<import("@taskmagic/pieces-framework").CustomAuthProperty<{
2
+ api_key: import("@taskmagic/pieces-framework").SecretTextProperty<true>;
3
+ server: import("@taskmagic/pieces-framework").StaticDropdownProperty<string, true>;
4
+ }>, {
5
+ bot_id: import("@taskmagic/pieces-framework").ShortTextProperty<true>;
6
+ }>;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.retrieveBot = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@taskmagic/pieces-framework");
6
+ const pieces_common_1 = require("@taskmagic/pieces-common");
7
+ const auth_1 = require("../common/auth");
8
+ const client_1 = require("../common/client");
9
+ exports.retrieveBot = (0, pieces_framework_1.createAction)({
10
+ auth: auth_1.recallAiAuth,
11
+ name: 'retrieveBot',
12
+ displayName: 'Retrieve Bot',
13
+ description: 'Get details about a specific bot instance',
14
+ props: {
15
+ bot_id: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Bot ID',
17
+ description: 'A UUID string identifying the bot',
18
+ required: true,
19
+ }),
20
+ },
21
+ run(context) {
22
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
23
+ const { bot_id } = context.propsValue;
24
+ const response = yield (0, client_1.makeRequest)(context.auth.server, context.auth.api_key, pieces_common_1.HttpMethod.GET, `/bot/${bot_id}`, {});
25
+ return response;
26
+ });
27
+ },
28
+ });
29
+ //# sourceMappingURL=retrieve-bot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieve-bot.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/recall-ai/src/lib/actions/retrieve-bot.ts"],"names":[],"mappings":";;;;AAAA,kEAAqE;AACrE,4DAAsD;AACtD,yCAA8C;AAC9C,6CAA+C;AAElC,QAAA,WAAW,GAAG,IAAA,+BAAY,EAAC;IACtC,IAAI,EAAE,mBAAY;IAClB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,2CAA2C;IACxD,KAAK,EAAE;QACL,MAAM,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,mCAAmC;YAChD,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEtC,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAW,EAChC,OAAO,CAAC,IAAI,CAAC,MAAgB,EAC7B,OAAO,CAAC,IAAI,CAAC,OAAiB,EAC9B,0BAAU,CAAC,GAAG,EACd,QAAQ,MAAM,EAAE,EAChB,EAAE,CACH,CAAC;YAEF,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ export declare const sendChatMessage: import("@taskmagic/pieces-framework").IAction<import("@taskmagic/pieces-framework").CustomAuthProperty<{
2
+ api_key: import("@taskmagic/pieces-framework").SecretTextProperty<true>;
3
+ server: import("@taskmagic/pieces-framework").StaticDropdownProperty<string, true>;
4
+ }>, {
5
+ bot_id: import("@taskmagic/pieces-framework").ShortTextProperty<true>;
6
+ message: import("@taskmagic/pieces-framework").LongTextProperty<true>;
7
+ to: import("@taskmagic/pieces-framework").ShortTextProperty<false>;
8
+ pin: import("@taskmagic/pieces-framework").CheckboxProperty<false>;
9
+ }>;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sendChatMessage = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@taskmagic/pieces-framework");
6
+ const pieces_common_1 = require("@taskmagic/pieces-common");
7
+ const auth_1 = require("../common/auth");
8
+ const client_1 = require("../common/client");
9
+ exports.sendChatMessage = (0, pieces_framework_1.createAction)({
10
+ auth: auth_1.recallAiAuth,
11
+ name: 'sendChatMessage',
12
+ displayName: 'Send Chat Message',
13
+ description: 'Causes the bot to send a message in the meeting chat',
14
+ props: {
15
+ bot_id: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Bot ID',
17
+ description: 'A UUID string identifying the bot',
18
+ required: true,
19
+ }),
20
+ message: pieces_framework_1.Property.LongText({
21
+ displayName: 'Message',
22
+ description: 'The message that will be sent (max 4096 characters)',
23
+ required: true,
24
+ }),
25
+ to: pieces_framework_1.Property.ShortText({
26
+ displayName: 'Send To',
27
+ description: 'The person or group that the message will be sent to. Defaults to "everyone". On non-Zoom platforms, only "everyone" is supported',
28
+ required: false,
29
+ }),
30
+ pin: pieces_framework_1.Property.Checkbox({
31
+ displayName: 'Pin Message',
32
+ description: 'Whether to pin the message in the chat',
33
+ required: false,
34
+ defaultValue: false,
35
+ }),
36
+ },
37
+ run(context) {
38
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
39
+ const { bot_id, message, to, pin } = context.propsValue;
40
+ const body = {
41
+ message,
42
+ };
43
+ if (to) {
44
+ body['to'] = to;
45
+ }
46
+ if (pin) {
47
+ body['pin'] = pin;
48
+ }
49
+ const response = yield (0, client_1.makeRequest)(context.auth.server, context.auth.api_key, pieces_common_1.HttpMethod.POST, `/bot/${bot_id}/send_chat_message/`, body);
50
+ return response;
51
+ });
52
+ },
53
+ });
54
+ //# sourceMappingURL=send-chat-message.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-chat-message.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/recall-ai/src/lib/actions/send-chat-message.ts"],"names":[],"mappings":";;;;AAAA,kEAAqE;AACrE,4DAAsD;AACtD,yCAA8C;AAC9C,6CAA+C;AAElC,QAAA,eAAe,GAAG,IAAA,+BAAY,EAAC;IAC1C,IAAI,EAAE,mBAAY;IAClB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE,sDAAsD;IACnE,KAAK,EAAE;QACL,MAAM,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,mCAAmC;YAChD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,OAAO,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACzB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,qDAAqD;YAClE,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,EAAE,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACrB,WAAW,EAAE,SAAS;YACtB,WAAW,EACT,mIAAmI;YACrI,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,GAAG,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACrB,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,KAAK;SACpB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAExD,MAAM,IAAI,GAA4B;gBACpC,OAAO;aACR,CAAC;YAEF,IAAI,EAAE,EAAE,CAAC;gBACP,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;YAClB,CAAC;YAED,IAAI,GAAG,EAAE,CAAC;gBACR,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC;YACpB,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAW,EAChC,OAAO,CAAC,IAAI,CAAC,MAAgB,EAC7B,OAAO,CAAC,IAAI,CAAC,OAAiB,EAC9B,0BAAU,CAAC,IAAI,EACf,QAAQ,MAAM,qBAAqB,EACnC,IAAI,CACL,CAAC;YAEF,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const recallAiAuth: import("@taskmagic/pieces-framework").CustomAuthProperty<{
2
+ api_key: import("@taskmagic/pieces-framework").SecretTextProperty<true>;
3
+ server: import("@taskmagic/pieces-framework").StaticDropdownProperty<string, true>;
4
+ }>;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.recallAiAuth = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@taskmagic/pieces-framework");
6
+ const pieces_common_1 = require("@taskmagic/pieces-common");
7
+ const client_1 = require("./client");
8
+ exports.recallAiAuth = pieces_framework_1.PieceAuth.CustomAuth({
9
+ description: 'Your Recall AI API Key.',
10
+ required: true,
11
+ props: {
12
+ api_key: pieces_framework_1.PieceAuth.SecretText({
13
+ displayName: 'API Key',
14
+ description: 'Your Recall AI API Key.',
15
+ required: true,
16
+ }),
17
+ server: pieces_framework_1.Property.StaticDropdown({
18
+ displayName: 'Server',
19
+ description: 'The Recall AI server to connect to.',
20
+ required: true,
21
+ options: {
22
+ options: [
23
+ { label: '(US) us-east-1', value: 'https://us-east-1.recall.ai' },
24
+ {
25
+ label: '(Pay-as-you-go) us-west-2',
26
+ value: 'https://us-west-2.recall.ai',
27
+ },
28
+ {
29
+ label: '(EU) eu-central-1',
30
+ value: 'https://eu-central-1.recall.ai',
31
+ },
32
+ {
33
+ label: '(JP) ap-northeast-1',
34
+ value: 'https://ap-northeast-1.recall.ai',
35
+ },
36
+ ],
37
+ },
38
+ defaultValue: 'https://us-east-1.recall.ai',
39
+ }),
40
+ },
41
+ validate: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
42
+ try {
43
+ yield (0, client_1.makeRequest)(auth.server, auth.api_key, pieces_common_1.HttpMethod.GET, '/bot');
44
+ return { valid: true };
45
+ }
46
+ catch (e) {
47
+ return {
48
+ valid: false,
49
+ error: 'Invalid API Key',
50
+ };
51
+ }
52
+ }),
53
+ });
54
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/recall-ai/src/lib/common/auth.ts"],"names":[],"mappings":";;;;AAAA,kEAAkE;AAClE,4DAAsD;AACtD,qCAAuC;AAE1B,QAAA,YAAY,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC/C,WAAW,EAAE,yBAAyB;IACtC,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE;QACL,OAAO,EAAE,4BAAS,CAAC,UAAU,CAAC;YAC5B,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,yBAAyB;YACtC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,MAAM,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC9B,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,qCAAqC;YAClD,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,6BAA6B,EAAE;oBACjE;wBACE,KAAK,EAAE,2BAA2B;wBAClC,KAAK,EAAE,6BAA6B;qBACrC;oBACD;wBACE,KAAK,EAAE,mBAAmB;wBAC1B,KAAK,EAAE,gCAAgC;qBACxC;oBACD;wBACE,KAAK,EAAE,qBAAqB;wBAC5B,KAAK,EAAE,kCAAkC;qBAC1C;iBACF;aACF;YACD,YAAY,EAAE,6BAA6B;SAC5C,CAAC;KACH;IACD,QAAQ,EAAE,KAAiB,EAAE,oDAAZ,EAAE,IAAI,EAAE;QACvB,IAAI,CAAC;YACH,MAAM,IAAA,oBAAW,EACf,IAAI,CAAC,MAAgB,EACrB,IAAI,CAAC,OAAiB,EACtB,0BAAU,CAAC,GAAG,EACd,MAAM,CACP,CAAC;YACF,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;QACzB,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,OAAO;gBACL,KAAK,EAAE,KAAK;gBACZ,KAAK,EAAE,iBAAiB;aACzB,CAAC;QACJ,CAAC;IACH,CAAC,CAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { HttpMethod } from '@taskmagic/pieces-common';
2
+ export declare function makeRequest(baseUrl: string, apiKey: string, method: HttpMethod, path: string, body?: unknown): Promise<any>;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.makeRequest = makeRequest;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_common_1 = require("@taskmagic/pieces-common");
6
+ function makeRequest(baseUrl, apiKey, method, path, body) {
7
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
8
+ try {
9
+ const response = yield pieces_common_1.httpClient.sendRequest({
10
+ method,
11
+ url: `${baseUrl}/api/v1${path}`,
12
+ headers: {
13
+ Authorization: `${apiKey}`,
14
+ 'Content-Type': 'application/json',
15
+ },
16
+ body,
17
+ });
18
+ return response.body;
19
+ }
20
+ catch (error) {
21
+ const message = error instanceof Error ? error.message : String(error);
22
+ throw new Error(`Unexpected error: ${message}`);
23
+ }
24
+ });
25
+ }
26
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/recall-ai/src/lib/common/client.ts"],"names":[],"mappings":";;AAEA,kCAuBC;;AAzBD,4DAAkE;AAElE,SAAsB,WAAW,CAC/B,OAAe,EACf,MAAc,EACd,MAAkB,EAClB,IAAY,EACZ,IAAc;;QAEd,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,MAAM;gBACN,GAAG,EAAE,GAAG,OAAO,UAAU,IAAI,EAAE;gBAC/B,OAAO,EAAE;oBACP,aAAa,EAAE,GAAG,MAAM,EAAE;oBAC1B,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI;aACL,CAAC,CAAC;YACH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,OAAO,GACX,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACzD,MAAM,IAAI,KAAK,CAAC,qBAAqB,OAAO,EAAE,CAAC,CAAC;QAClD,CAAC;IACH,CAAC;CAAA"}