Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 22, 20:45 UTC
chore: fix tests
jkomyno committed
Aug 30, 2025 at 19:14 UTC
913260cf1719def1f38d8a94fa4781baf4156475
3 files changed
+99
-589
ts/packages/cli/test/src/commands/py/py.generate.cmd.test.ts
+1
-3
@@ -127,9 +127,7 @@ describe('CLI: composio py generate', () => {
127
slug: str = "gmail"
128
129
class tools:
130
- ADD_LABEL_TO_EMAIL = "GMAIL_ADD_LABEL_TO_EMAIL"
131
- CREATE_EMAIL_DRAFT = "GMAIL_CREATE_EMAIL_DRAFT"
132
- CREATE_LABEL = "GMAIL_CREATE_LABEL"
130
+ pass
131
132
class triggers:
133
NEW_GMAIL_MESSAGE = {
ts/packages/cli/test/src/commands/ts/ts.generate.cmd.test.ts
+95
-343
@@ -135,11 +135,7 @@ describe('CLI: composio ts generate', () => {
135
*/
136
export const GMAIL = {
137
slug: "gmail",
138
- tools: {
139
- ADD_LABEL_TO_EMAIL: "GMAIL_ADD_LABEL_TO_EMAIL",
140
- CREATE_EMAIL_DRAFT: "GMAIL_CREATE_EMAIL_DRAFT",
141
- CREATE_LABEL: "GMAIL_CREATE_LABEL",
142
- },
138
+ tools: {},
139
triggerTypes: {
140
/**
141
* Triggers when a new message is received in Gmail.
@@ -248,13 +244,13 @@ describe('CLI: composio ts generate', () => {
244
const stdout = yield* assertTranspiledTypeScriptIsValid({ cwd, testSourceCodePath });
245
expect(stdout).toMatchInlineSnapshot(`
246
"Test: Using generated Composio types
251
- GMAIL_CREATE_EMAIL_DRAFT
247
+ undefined
248
"
249
`);
250
})
251
);
252
257
- it.scoped.only('[Given] --type-tools [Then] it generates types for tools as well', () =>
253
+ it.scoped('[Given] --type-tools [Then] it generates types for tools as well', () =>
254
Effect.gen(function* () {
255
const process = yield* NodeProcess;
256
const cwd = process.cwd;
@@ -275,359 +271,119 @@ describe('CLI: composio ts generate', () => {
271
const indexSourceCode = yield* fs.readFileString(path.join(outputDir, 'index.ts'));
272
273
expect(gmailSourceCode).toMatchInlineSnapshot(`
278
- "import { type TriggerEvent } from "@composio/core"
274
+ "import { type TriggerEvent } from "@composio/core"
275
280
- // --------------- //
281
- // Tool types //
282
- // --------------- //
276
+ // --------------- //
277
+ // Tool types //
278
+ // --------------- //
279
+
280
+
281
+
282
+ /**
283
+ * Type map of all available tool input types for toolkit "GMAIL".
284
+ */
285
+ export type GMAIL_TOOL_INPUTS = {}
286
+
287
+ /**
288
+ * Type map of all available tool input types for toolkit "GMAIL".
289
+ */
290
+ export type GMAIL_TOOL_OUTPUTS = {}
291
292
+ // ------------------- //
293
+ // Trigger types //
294
+ // ------------------- //
295
296
297
+
298
+ /**
299
+ * Type of GMAIL's NEW_GMAIL_MESSAGE trigger payload.
300
+ */
301
+ type GMAIL_NEW_GMAIL_MESSAGE_PAYLOAD = {
302
/**
287
- * Type of GMAIL's GMAIL_ADD_LABEL_TO_EMAIL tool input.
303
+ * Attachment List
304
+ * @description The list of attachments in the message
305
+ * @default null
306
*/
289
- type GMAIL_ADD_LABEL_TO_EMAIL_INPUT = {
290
- /**
291
- * Add Label Ids
292
- * @description Label IDs to add. For custom labels, obtain IDs via 'listLabels'. System labels (e.g., 'INBOX', 'SPAM') can also be used.
293
- * @default []
294
- */
295
- add_label_ids: string[];
296
- /**
297
- * Message Id
298
- * @description Immutable ID of the message to modify (e.g., from 'fetchEmails' or 'fetchMessagesByThreadId').
299
- */
300
- message_id?: string;
301
- /**
302
- * Remove Label Ids
303
- * @description Label IDs to remove. For custom labels, obtain IDs via 'listLabels'. System labels can also be used.
304
- * @default []
305
- */
306
- remove_label_ids: string[];
307
- /**
308
- * User Id
309
- * @description User's email address or 'me' for the authenticated user.
310
- * @default me
311
- */
312
- user_id: string;
313
- };
314
-
307
+ attachment_list: unknown[] | null;
308
/**
316
- * Type of GMAIL's GMAIL_ADD_LABEL_TO_EMAIL tool output.
309
+ * Message ID
310
+ * @description The message ID of the message
311
+ * @default null
312
*/
318
- type GMAIL_ADD_LABEL_TO_EMAIL_OUTPUT = {
319
- /**
320
- * Data
321
- * @description Data from the action execution
322
- */
323
- data?: {
324
- /**
325
- * Response Data
326
- * @description Full \`Message\` resource with updated labels.
327
- */
328
- response_data: {
329
- [key: string]: unknown;
330
- };
331
- };
332
- /**
333
- * Error
334
- * @description Error if any occurred during the execution of the action
335
- * @default null
336
- */
337
- error: string | null;
338
- /**
339
- * Successful
340
- * @description Whether or not the action execution was successful or not
341
- */
342
- successful?: boolean;
343
- };
344
-
313
+ message_id: string | null;
314
/**
346
- * Type of GMAIL's GMAIL_CREATE_EMAIL_DRAFT tool input.
315
+ * Message Text
316
+ * @description The text of the message
317
+ * @default null
318
*/
348
- type GMAIL_CREATE_EMAIL_DRAFT_INPUT = {
349
- /**
350
- * FileUploadable
351
- * @description File to attach to the email.
352
- * @default null
353
- */
354
- attachment: {
355
- /** Mimetype */
356
- mimetype: string;
357
- /** Name */
358
- name: string;
359
- /** S3Key */
360
- s3key: string;
361
- } | null;
362
- /**
363
- * Bcc
364
- * @description 'Bcc' (blind carbon copy) recipient email addresses.
365
- * @default []
366
- */
367
- bcc: string[];
368
- /**
369
- * Body
370
- * @description Email body content (plain text or HTML); \`is_html\` must be True if HTML.
371
- */
372
- body?: string;
373
- /**
374
- * Cc
375
- * @description 'Cc' (carbon copy) recipient email addresses.
376
- * @default []
377
- */
378
- cc: string[];
379
- /**
380
- * Extra Recipients
381
- * @description Additional 'To' recipient email addresses.
382
- * @default []
383
- */
384
- extra_recipients: string[];
385
- /**
386
- * Is Html
387
- * @description Set to True if \`body\` is HTML, otherwise the action may fail.
388
- * @default false
389
- */
390
- is_html: boolean;
391
- /**
392
- * Recipient Email
393
- * @description Primary recipient's email address.
394
- */
395
- recipient_email?: string;
396
- /**
397
- * Subject
398
- * @description Email subject line.
399
- */
400
- subject?: string;
401
- /**
402
- * Thread Id
403
- * @description ID of an existing Gmail thread to reply to; omit for new thread.
404
- * @default null
405
- */
406
- thread_id: string | null;
407
- /**
408
- * User Id
409
- * @description User's email address or 'me' for the authenticated user.
410
- * @default me
411
- */
412
- user_id: string;
413
- };
414
-
319
+ message_text: string | null;
320
/**
416
- * Type of GMAIL's GMAIL_CREATE_EMAIL_DRAFT tool output.
321
+ * Message Timestamp
322
+ * @description The timestamp of the message
323
+ * @default null
324
*/
418
- type GMAIL_CREATE_EMAIL_DRAFT_OUTPUT = {
419
- /**
420
- * Data
421
- * @description Data from the action execution
422
- */
423
- data?: {
424
- /**
425
- * Response Data
426
- * @description Gmail API response with created draft details, including ID.
427
- * @default null
428
- */
429
- response_data: {
430
- [key: string]: unknown;
431
- } | null;
432
- };
433
- /**
434
- * Error
435
- * @description Error if any occurred during the execution of the action
436
- * @default null
437
- */
438
- error: string | null;
439
- /**
440
- * Successful
441
- * @description Whether or not the action execution was successful or not
442
- */
443
- successful?: boolean;
444
- };
445
-
325
+ message_timestamp: string | null;
326
/**
447
- * Type of GMAIL's GMAIL_CREATE_LABEL tool input.
327
+ * Payload
328
+ * @description The payload of the message
329
+ * @default null
330
*/
449
- type GMAIL_CREATE_LABEL_INPUT = {
450
- /**
451
- * Label List Visibility
452
- * @description Controls how the label is displayed in the label list in the Gmail sidebar.
453
- * @default labelShow
454
- */
455
- label_list_visibility: string;
456
- /**
457
- * Label Name
458
- * @description The name for the new label. Must be unique within the account, non-blank, maximum length 225 characters, cannot contain ',' or '/', not only whitespace, and must not be a reserved system label (e.g., INBOX, DRAFTS, SENT).
459
- */
460
- label_name?: string;
461
- /**
462
- * Message List Visibility
463
- * @description Controls how messages with this label are displayed in the message list.
464
- * @default show
465
- */
466
- message_list_visibility: string;
467
- /**
468
- * User Id
469
- * @description The email address of the user in whose account the label will be created.
470
- * @default me
471
- */
472
- user_id: string;
473
- };
474
-
331
+ payload: Record<string, never> | null;
332
/**
476
- * Type of GMAIL's GMAIL_CREATE_LABEL tool output.
333
+ * Sender
334
+ * @description The sender of the message
335
+ * @default null
336
*/
478
- type GMAIL_CREATE_LABEL_OUTPUT = {
479
- /**
480
- * Data
481
- * @description Data from the action execution
482
- */
483
- data?: {
484
- /**
485
- * Response Data
486
- * @description Full API response from Gmail for the created label.
487
- */
488
- response_data: {
489
- [key: string]: unknown;
490
- };
491
- };
492
- /**
493
- * Error
494
- * @description Error if any occurred during the execution of the action
495
- * @default null
496
- */
497
- error: string | null;
498
- /**
499
- * Successful
500
- * @description Whether or not the action execution was successful or not
501
- */
502
- successful?: boolean;
503
- };
504
-
337
+ sender: string | null;
338
/**
506
- * Type map of all available tool input types for toolkit "GMAIL".
339
+ * Subject
340
+ * @description The subject of the message
341
+ * @default null
342
*/
508
- export type GMAIL_TOOL_INPUTS = {
509
- ADD_LABEL_TO_EMAIL: GMAIL_ADD_LABEL_TO_EMAIL_INPUT
510
- CREATE_EMAIL_DRAFT: GMAIL_CREATE_EMAIL_DRAFT_INPUT
511
- CREATE_LABEL: GMAIL_CREATE_LABEL_INPUT
512
- }
513
-
343
+ subject: string | null;
344
/**
515
- * Type map of all available tool input types for toolkit "GMAIL".
345
+ * Thread ID
346
+ * @description The thread ID of the message
347
+ * @default null
348
*/
517
- export type GMAIL_TOOL_OUTPUTS = {
518
- ADD_LABEL_TO_EMAIL: GMAIL_ADD_LABEL_TO_EMAIL_OUTPUT
519
- CREATE_EMAIL_DRAFT: GMAIL_CREATE_EMAIL_DRAFT_OUTPUT
520
- CREATE_LABEL: GMAIL_CREATE_LABEL_OUTPUT
521
- }
522
-
523
- // ------------------- //
524
- // Trigger types //
525
- // ------------------- //
526
-
527
-
528
-
349
+ thread_id: string | null;
350
/**
530
- * Type of GMAIL's NEW_GMAIL_MESSAGE trigger payload.
351
+ * To
352
+ * @description The recipient of the message
353
+ * @default null
354
*/
532
- type GMAIL_NEW_GMAIL_MESSAGE_PAYLOAD = {
533
- /**
534
- * Attachment List
535
- * @description The list of attachments in the message
536
- * @default null
537
- */
538
- attachment_list: unknown[] | null;
539
- /**
540
- * Message ID
541
- * @description The message ID of the message
542
- * @default null
543
- */
544
- message_id: string | null;
545
- /**
546
- * Message Text
547
- * @description The text of the message
548
- * @default null
549
- */
550
- message_text: string | null;
551
- /**
552
- * Message Timestamp
553
- * @description The timestamp of the message
554
- * @default null
555
- */
556
- message_timestamp: string | null;
557
- /**
558
- * Payload
559
- * @description The payload of the message
560
- * @default null
561
- */
562
- payload: Record<string, never> | null;
563
- /**
564
- * Sender
565
- * @description The sender of the message
566
- * @default null
567
- */
568
- sender: string | null;
569
- /**
570
- * Subject
571
- * @description The subject of the message
572
- * @default null
573
- */
574
- subject: string | null;
575
- /**
576
- * Thread ID
577
- * @description The thread ID of the message
578
- * @default null
579
- */
580
- thread_id: string | null;
355
+ to: string | null;
356
+ };
357
+
358
+ /**
359
+ * Map of Composio's GMAIL toolkit.
360
+ */
361
+ export const GMAIL = {
362
+ slug: "gmail",
363
+ tools: {},
364
+ triggerTypes: {
365
/**
582
- * To
583
- * @description The recipient of the message
584
- * @default null
366
+ * Triggers when a new message is received in Gmail.
367
*/
586
- to: string | null;
587
- };
588
-
589
- /**
590
- * Map of Composio's GMAIL toolkit.
591
- */
592
- export const GMAIL = {
593
- slug: "gmail",
594
- tools: {
595
- /**
596
- * Adds and/or removes specified gmail labels for a message; ensure \`message id\` and all \`label ids\` are valid (use 'listlabels' for custom label ids).
597
- */
598
- ADD_LABEL_TO_EMAIL: "GMAIL_ADD_LABEL_TO_EMAIL",
599
- /**
600
- * Creates a gmail email draft, supporting to/cc/bcc, subject, plain/html body (ensure \`is html=true\` for html), attachments, and threading.
601
- */
602
- CREATE_EMAIL_DRAFT: "GMAIL_CREATE_EMAIL_DRAFT",
603
- /**
604
- * Creates a new label with a unique name in the specified user's gmail account.
605
- */
606
- CREATE_LABEL: "GMAIL_CREATE_LABEL",
607
- },
608
- triggerTypes: {
609
- /**
610
- * Triggers when a new message is received in Gmail.
611
- */
612
- NEW_GMAIL_MESSAGE: "GMAIL_NEW_GMAIL_MESSAGE",
613
- },
614
- }
368
+ NEW_GMAIL_MESSAGE: "GMAIL_NEW_GMAIL_MESSAGE",
369
+ },
370
+ }
371
616
- /**
617
- * Type map of all available trigger payloads for toolkit "GMAIL".
618
- */
619
- export type GMAIL_TRIGGER_PAYLOADS = {
620
- NEW_GMAIL_MESSAGE: GMAIL_NEW_GMAIL_MESSAGE_PAYLOAD
621
- }
372
+ /**
373
+ * Type map of all available trigger payloads for toolkit "GMAIL".
374
+ */
375
+ export type GMAIL_TRIGGER_PAYLOADS = {
376
+ NEW_GMAIL_MESSAGE: GMAIL_NEW_GMAIL_MESSAGE_PAYLOAD
377
+ }
378
623
- /**
624
- * Type map of all available trigger events for toolkit "GMAIL".
625
- */
626
- export type GMAIL_TRIGGER_EVENTS = {
627
- NEW_GMAIL_MESSAGE: TriggerEvent<GMAIL_NEW_GMAIL_MESSAGE_PAYLOAD>
628
- }
629
- "
630
- `);
379
+ /**
380
+ * Type map of all available trigger events for toolkit "GMAIL".
381
+ */
382
+ export type GMAIL_TRIGGER_EVENTS = {
383
+ NEW_GMAIL_MESSAGE: TriggerEvent<GMAIL_NEW_GMAIL_MESSAGE_PAYLOAD>
384
+ }
385
+ "
386
+ `);
387
expect(slackSourceCode).toMatchInlineSnapshot(`
388
"// --------------- //
389
// Tool types //
@@ -728,10 +484,10 @@ describe('CLI: composio ts generate', () => {
484
485
const stdout = yield* assertTranspiledTypeScriptIsValid({ cwd, testSourceCodePath });
486
expect(stdout).toMatchInlineSnapshot(`
731
- "Test: Using generated Composio types
732
- GMAIL_CREATE_EMAIL_DRAFT
733
- "
734
- `);
487
+ "Test: Using generated Composio types
488
+ undefined
489
+ "
490
+ `);
491
})
492
);
493
@@ -826,11 +582,7 @@ describe('CLI: composio ts generate', () => {
582
*/
583
export const GMAIL = {
584
slug: "gmail",
829
- tools: {
830
- ADD_LABEL_TO_EMAIL: "GMAIL_ADD_LABEL_TO_EMAIL",
831
- CREATE_EMAIL_DRAFT: "GMAIL_CREATE_EMAIL_DRAFT",
832
- CREATE_LABEL: "GMAIL_CREATE_LABEL",
833
- },
585
+ tools: {},
586
triggerTypes: {
587
/**
588
* Triggers when a new message is received in Gmail.
ts/packages/cli/test/src/generation/typescript/generate-toolkit-source.test.ts
+3
-243
@@ -655,242 +655,15 @@ describe('generateTypeScriptToolkitSources', () => {
655
656
657
658
- /**
659
- * Type of GMAIL's GMAIL_ADD_LABEL_TO_EMAIL tool input.
660
- */
661
- type GMAIL_ADD_LABEL_TO_EMAIL_INPUT = {
662
- /**
663
- * Add Label Ids
664
- * @description Label IDs to add. For custom labels, obtain IDs via 'listLabels'. System labels (e.g., 'INBOX', 'SPAM') can also be used.
665
- * @default []
666
- */
667
- add_label_ids: string[];
668
- /**
669
- * Message Id
670
- * @description Immutable ID of the message to modify (e.g., from 'fetchEmails' or 'fetchMessagesByThreadId').
671
- */
672
- message_id?: string;
673
- /**
674
- * Remove Label Ids
675
- * @description Label IDs to remove. For custom labels, obtain IDs via 'listLabels'. System labels can also be used.
676
- * @default []
677
- */
678
- remove_label_ids: string[];
679
- /**
680
- * User Id
681
- * @description User's email address or 'me' for the authenticated user.
682
- * @default me
683
- */
684
- user_id: string;
685
- };
686
-
687
- /**
688
- * Type of GMAIL's GMAIL_ADD_LABEL_TO_EMAIL tool output.
689
- */
690
- type GMAIL_ADD_LABEL_TO_EMAIL_OUTPUT = {
691
- /**
692
- * Data
693
- * @description Data from the action execution
694
- */
695
- data?: {
696
- /**
697
- * Response Data
698
- * @description Full \`Message\` resource with updated labels.
699
- */
700
- response_data: {
701
- [key: string]: unknown;
702
- };
703
- };
704
- /**
705
- * Error
706
- * @description Error if any occurred during the execution of the action
707
- * @default null
708
- */
709
- error: string | null;
710
- /**
711
- * Successful
712
- * @description Whether or not the action execution was successful or not
713
- */
714
- successful?: boolean;
715
- };
716
-
717
- /**
718
- * Type of GMAIL's GMAIL_CREATE_EMAIL_DRAFT tool input.
719
- */
720
- type GMAIL_CREATE_EMAIL_DRAFT_INPUT = {
721
- /**
722
- * FileUploadable
723
- * @description File to attach to the email.
724
- * @default null
725
- */
726
- attachment: {
727
- /** Mimetype */
728
- mimetype: string;
729
- /** Name */
730
- name: string;
731
- /** S3Key */
732
- s3key: string;
733
- } | null;
734
- /**
735
- * Bcc
736
- * @description 'Bcc' (blind carbon copy) recipient email addresses.
737
- * @default []
738
- */
739
- bcc: string[];
740
- /**
741
- * Body
742
- * @description Email body content (plain text or HTML); \`is_html\` must be True if HTML.
743
- */
744
- body?: string;
745
- /**
746
- * Cc
747
- * @description 'Cc' (carbon copy) recipient email addresses.
748
- * @default []
749
- */
750
- cc: string[];
751
- /**
752
- * Extra Recipients
753
- * @description Additional 'To' recipient email addresses.
754
- * @default []
755
- */
756
- extra_recipients: string[];
757
- /**
758
- * Is Html
759
- * @description Set to True if \`body\` is HTML, otherwise the action may fail.
760
- * @default false
761
- */
762
- is_html: boolean;
763
- /**
764
- * Recipient Email
765
- * @description Primary recipient's email address.
766
- */
767
- recipient_email?: string;
768
- /**
769
- * Subject
770
- * @description Email subject line.
771
- */
772
- subject?: string;
773
- /**
774
- * Thread Id
775
- * @description ID of an existing Gmail thread to reply to; omit for new thread.
776
- * @default null
777
- */
778
- thread_id: string | null;
779
- /**
780
- * User Id
781
- * @description User's email address or 'me' for the authenticated user.
782
- * @default me
783
- */
784
- user_id: string;
785
- };
786
-
787
- /**
788
- * Type of GMAIL's GMAIL_CREATE_EMAIL_DRAFT tool output.
789
- */
790
- type GMAIL_CREATE_EMAIL_DRAFT_OUTPUT = {
791
- /**
792
- * Data
793
- * @description Data from the action execution
794
- */
795
- data?: {
796
- /**
797
- * Response Data
798
- * @description Gmail API response with created draft details, including ID.
799
- * @default null
800
- */
801
- response_data: {
802
- [key: string]: unknown;
803
- } | null;
804
- };
805
- /**
806
- * Error
807
- * @description Error if any occurred during the execution of the action
808
- * @default null
809
- */
810
- error: string | null;
811
- /**
812
- * Successful
813
- * @description Whether or not the action execution was successful or not
814
- */
815
- successful?: boolean;
816
- };
817
-
818
- /**
819
- * Type of GMAIL's GMAIL_CREATE_LABEL tool input.
820
- */
821
- type GMAIL_CREATE_LABEL_INPUT = {
822
- /**
823
- * Label List Visibility
824
- * @description Controls how the label is displayed in the label list in the Gmail sidebar.
825
- * @default labelShow
826
- */
827
- label_list_visibility: string;
828
- /**
829
- * Label Name
830
- * @description The name for the new label. Must be unique within the account, non-blank, maximum length 225 characters, cannot contain ',' or '/', not only whitespace, and must not be a reserved system label (e.g., INBOX, DRAFTS, SENT).
831
- */
832
- label_name?: string;
833
- /**
834
- * Message List Visibility
835
- * @description Controls how messages with this label are displayed in the message list.
836
- * @default show
837
- */
838
- message_list_visibility: string;
839
- /**
840
- * User Id
841
- * @description The email address of the user in whose account the label will be created.
842
- * @default me
843
- */
844
- user_id: string;
845
- };
846
-
847
- /**
848
- * Type of GMAIL's GMAIL_CREATE_LABEL tool output.
849
- */
850
- type GMAIL_CREATE_LABEL_OUTPUT = {
851
- /**
852
- * Data
853
- * @description Data from the action execution
854
- */
855
- data?: {
856
- /**
857
- * Response Data
858
- * @description Full API response from Gmail for the created label.
859
- */
860
- response_data: {
861
- [key: string]: unknown;
862
- };
863
- };
864
- /**
865
- * Error
866
- * @description Error if any occurred during the execution of the action
867
- * @default null
868
- */
869
- error: string | null;
870
- /**
871
- * Successful
872
- * @description Whether or not the action execution was successful or not
873
- */
874
- successful?: boolean;
875
- };
876
-
658
/**
659
* Type map of all available tool input types for toolkit "GMAIL".
660
*/
880
- export type GMAIL_TOOL_INPUTS = {
881
- ADD_LABEL_TO_EMAIL: GMAIL_ADD_LABEL_TO_EMAIL_INPUT
882
- CREATE_EMAIL_DRAFT: GMAIL_CREATE_EMAIL_DRAFT_INPUT
883
- CREATE_LABEL: GMAIL_CREATE_LABEL_INPUT
884
- }
661
+ export type GMAIL_TOOL_INPUTS = {}
662
663
/**
664
* Type map of all available tool input types for toolkit "GMAIL".
665
*/
889
- export type GMAIL_TOOL_OUTPUTS = {
890
- ADD_LABEL_TO_EMAIL: GMAIL_ADD_LABEL_TO_EMAIL_OUTPUT
891
- CREATE_EMAIL_DRAFT: GMAIL_CREATE_EMAIL_DRAFT_OUTPUT
892
- CREATE_LABEL: GMAIL_CREATE_LABEL_OUTPUT
893
- }
666
+ export type GMAIL_TOOL_OUTPUTS = {}
667
668
// ------------------- //
669
// Trigger types //
@@ -963,20 +736,7 @@ describe('generateTypeScriptToolkitSources', () => {
736
*/
737
export const GMAIL = {
738
slug: "gmail",
966
- tools: {
967
- /**
968
- * Adds and/or removes specified gmail labels for a message; ensure \`message id\` and all \`label ids\` are valid (use 'listlabels' for custom label ids).
969
- */
970
- ADD_LABEL_TO_EMAIL: "GMAIL_ADD_LABEL_TO_EMAIL",
971
- /**
972
- * Creates a gmail email draft, supporting to/cc/bcc, subject, plain/html body (ensure \`is html=true\` for html), attachments, and threading.
973
- */
974
- CREATE_EMAIL_DRAFT: "GMAIL_CREATE_EMAIL_DRAFT",
975
- /**
976
- * Creates a new label with a unique name in the specified user's gmail account.
977
- */
978
- CREATE_LABEL: "GMAIL_CREATE_LABEL",
979
- },
739
+ tools: {},
740
triggerTypes: {
741
/**
742
* Triggers when a new message is received in Gmail.