@squadbase/connectors 0.1.2-dev.0 → 0.1.2-dev.2

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/dist/index.d.ts CHANGED
@@ -404,6 +404,38 @@ declare const connectors: {
404
404
  error: string;
405
405
  }>;
406
406
  }>;
407
+ googleAdsOauth: ConnectorPlugin<{
408
+ customerId: ParameterDefinition;
409
+ developerToken: ParameterDefinition;
410
+ }, {
411
+ request: ConnectorTool<{
412
+ connectionId: string;
413
+ method: "GET" | "POST";
414
+ path: string;
415
+ toolUseIntent?: string | undefined;
416
+ body?: Record<string, unknown> | undefined;
417
+ }, {
418
+ success: true;
419
+ status: number;
420
+ data: unknown;
421
+ } | {
422
+ success: false;
423
+ error: string;
424
+ }>;
425
+ listCustomers: ConnectorTool<{
426
+ connectionId: string;
427
+ toolUseIntent?: string | undefined;
428
+ }, {
429
+ success: true;
430
+ customers: {
431
+ customerId: string;
432
+ descriptiveName: string;
433
+ }[];
434
+ } | {
435
+ success: false;
436
+ error: string;
437
+ }>;
438
+ }>;
407
439
  googleAnalytics: ConnectorPlugin<{
408
440
  serviceAccountKeyJsonBase64: ParameterDefinition;
409
441
  propertyId: ParameterDefinition;
@@ -423,13 +455,12 @@ declare const connectors: {
423
455
  error: string;
424
456
  }>;
425
457
  }>;
426
- airtable: ConnectorPlugin<{
427
- baseId: ParameterDefinition;
428
- apiKey: ParameterDefinition;
458
+ googleAnalyticsOauth: ConnectorPlugin<{
459
+ propertyId: ParameterDefinition;
429
460
  }, {
430
461
  request: ConnectorTool<{
431
462
  connectionId: string;
432
- method: "GET" | "POST" | "PATCH" | "DELETE";
463
+ method: "GET" | "POST";
433
464
  path: string;
434
465
  toolUseIntent?: string | undefined;
435
466
  body?: Record<string, unknown> | undefined;
@@ -441,34 +472,60 @@ declare const connectors: {
441
472
  success: false;
442
473
  error: string;
443
474
  }>;
475
+ listAccounts: ConnectorTool<{
476
+ connectionId: string;
477
+ toolUseIntent?: string | undefined;
478
+ }, {
479
+ success: true;
480
+ accounts: {
481
+ name: string;
482
+ displayName: string;
483
+ }[];
484
+ } | {
485
+ success: false;
486
+ error: string;
487
+ }>;
488
+ listProperties: ConnectorTool<{
489
+ connectionId: string;
490
+ accountName: string;
491
+ toolUseIntent?: string | undefined;
492
+ }, {
493
+ success: true;
494
+ properties: {
495
+ name: string;
496
+ displayName: string;
497
+ propertyId: string;
498
+ }[];
499
+ } | {
500
+ success: false;
501
+ error: string;
502
+ }>;
444
503
  }>;
445
- squadbaseDb: ConnectorPlugin<{
446
- connectionUrl: ParameterDefinition;
504
+ googleSheetsOauth: ConnectorPlugin<{
505
+ spreadsheetId: ParameterDefinition;
447
506
  }, {
448
- executeQuery: ConnectorTool<{
507
+ request: ConnectorTool<{
449
508
  connectionId: string;
450
- sql: string;
509
+ method: "GET";
510
+ path: string;
451
511
  toolUseIntent?: string | undefined;
512
+ queryParams?: Record<string, string> | undefined;
452
513
  }, {
453
514
  success: true;
454
- rowCount: number;
455
- truncated: boolean;
456
- rows: Record<string, unknown>[];
515
+ status: number;
516
+ data: Record<string, unknown>;
457
517
  } | {
458
518
  success: false;
459
519
  error: string;
460
520
  }>;
461
521
  }>;
462
- kintone: ConnectorPlugin<{
463
- baseUrl: ParameterDefinition;
464
- username: ParameterDefinition;
465
- password: ParameterDefinition;
466
- }, {
522
+ hubspotOauth: ConnectorPlugin<{}, {
467
523
  request: ConnectorTool<{
468
524
  connectionId: string;
469
- method: "GET" | "POST" | "PUT" | "DELETE";
525
+ method: "GET" | "POST" | "PATCH" | "DELETE";
470
526
  path: string;
471
527
  toolUseIntent?: string | undefined;
528
+ queryParams?: Record<string, string> | undefined;
472
529
  body?: Record<string, unknown> | undefined;
473
530
  }, {
474
531
  success: true;
@@ -479,16 +536,13 @@ declare const connectors: {
479
536
  error: string;
480
537
  }>;
481
538
  }>;
482
- wixStore: ConnectorPlugin<{
483
- accountId: ParameterDefinition;
484
- siteId: ParameterDefinition;
485
- apiKey: ParameterDefinition;
486
- }, {
539
+ stripeOauth: ConnectorPlugin<{}, {
487
540
  request: ConnectorTool<{
488
541
  connectionId: string;
489
- method: "GET" | "POST";
542
+ method: "GET" | "POST" | "DELETE";
490
543
  path: string;
491
544
  toolUseIntent?: string | undefined;
545
+ queryParams?: Record<string, string> | undefined;
492
546
  body?: Record<string, unknown> | undefined;
493
547
  }, {
494
548
  success: true;
@@ -499,18 +553,16 @@ declare const connectors: {
499
553
  error: string;
500
554
  }>;
501
555
  }>;
502
- openai: ConnectorPlugin<{
556
+ airtable: ConnectorPlugin<{
557
+ baseId: ParameterDefinition;
503
558
  apiKey: ParameterDefinition;
504
- }, {}>;
505
- googleSheetsOauth: ConnectorPlugin<{
506
- spreadsheetId: ParameterDefinition;
507
559
  }, {
508
560
  request: ConnectorTool<{
509
561
  connectionId: string;
510
- method: "GET";
562
+ method: "GET" | "POST" | "PATCH" | "DELETE";
511
563
  path: string;
512
564
  toolUseIntent?: string | undefined;
513
- queryParams?: Record<string, string> | undefined;
565
+ body?: Record<string, unknown> | undefined;
514
566
  }, {
515
567
  success: true;
516
568
  status: number;
@@ -520,14 +572,15 @@ declare const connectors: {
520
572
  error: string;
521
573
  }>;
522
574
  }>;
523
- googleAnalyticsOauth: ConnectorPlugin<{
524
- propertyId: ParameterDefinition;
575
+ airtableOauth: ConnectorPlugin<{
576
+ baseId: ParameterDefinition;
525
577
  }, {
526
578
  request: ConnectorTool<{
527
579
  connectionId: string;
528
- method: "GET" | "POST";
580
+ method: "GET" | "POST" | "PATCH" | "DELETE";
529
581
  path: string;
530
582
  toolUseIntent?: string | undefined;
583
+ queryParams?: Record<string, string> | undefined;
531
584
  body?: Record<string, unknown> | undefined;
532
585
  }, {
533
586
  success: true;
@@ -537,38 +590,67 @@ declare const connectors: {
537
590
  success: false;
538
591
  error: string;
539
592
  }>;
540
- listAccounts: ConnectorTool<{
593
+ }>;
594
+ squadbaseDb: ConnectorPlugin<{
595
+ connectionUrl: ParameterDefinition;
596
+ }, {
597
+ executeQuery: ConnectorTool<{
541
598
  connectionId: string;
599
+ sql: string;
542
600
  toolUseIntent?: string | undefined;
543
601
  }, {
544
602
  success: true;
545
- accounts: {
546
- name: string;
547
- displayName: string;
548
- }[];
603
+ rowCount: number;
604
+ truncated: boolean;
605
+ rows: Record<string, unknown>[];
549
606
  } | {
550
607
  success: false;
551
608
  error: string;
552
609
  }>;
553
- listProperties: ConnectorTool<{
610
+ }>;
611
+ kintone: ConnectorPlugin<{
612
+ baseUrl: ParameterDefinition;
613
+ username: ParameterDefinition;
614
+ password: ParameterDefinition;
615
+ }, {
616
+ request: ConnectorTool<{
554
617
  connectionId: string;
555
- accountName: string;
618
+ method: "GET" | "POST" | "PUT" | "DELETE";
619
+ path: string;
556
620
  toolUseIntent?: string | undefined;
621
+ body?: Record<string, unknown> | undefined;
557
622
  }, {
558
623
  success: true;
559
- properties: {
560
- name: string;
561
- displayName: string;
562
- propertyId: string;
563
- }[];
624
+ status: number;
625
+ data: Record<string, unknown>;
564
626
  } | {
565
627
  success: false;
566
628
  error: string;
567
629
  }>;
568
630
  }>;
569
- googleAdsOauth: ConnectorPlugin<{
570
- customerId: ParameterDefinition;
571
- developerToken: ParameterDefinition;
631
+ kintoneApiToken: ConnectorPlugin<{
632
+ baseUrl: ParameterDefinition;
633
+ apiToken: ParameterDefinition;
634
+ }, {
635
+ request: ConnectorTool<{
636
+ connectionId: string;
637
+ method: "GET" | "POST" | "PUT" | "DELETE";
638
+ path: string;
639
+ toolUseIntent?: string | undefined;
640
+ body?: Record<string, unknown> | undefined;
641
+ }, {
642
+ success: true;
643
+ status: number;
644
+ data: Record<string, unknown>;
645
+ } | {
646
+ success: false;
647
+ error: string;
648
+ }>;
649
+ }>;
650
+ wixStore: ConnectorPlugin<{
651
+ accountId: ParameterDefinition;
652
+ siteId: ParameterDefinition;
653
+ apiKey: ParameterDefinition;
572
654
  }, {
573
655
  request: ConnectorTool<{
574
656
  connectionId: string;
@@ -579,20 +661,69 @@ declare const connectors: {
579
661
  }, {
580
662
  success: true;
581
663
  status: number;
582
- data: unknown;
664
+ data: Record<string, unknown>;
583
665
  } | {
584
666
  success: false;
585
667
  error: string;
586
668
  }>;
587
- listCustomers: ConnectorTool<{
669
+ }>;
670
+ openai: ConnectorPlugin<{
671
+ apiKey: ParameterDefinition;
672
+ }, {}>;
673
+ gemini: ConnectorPlugin<{
674
+ apiKey: ParameterDefinition;
675
+ }, {}>;
676
+ anthropic: ConnectorPlugin<{
677
+ apiKey: ParameterDefinition;
678
+ }, {}>;
679
+ amplitude: ConnectorPlugin<{
680
+ apiKey: ParameterDefinition;
681
+ secretKey: ParameterDefinition;
682
+ }, {}>;
683
+ attio: ConnectorPlugin<{
684
+ apiKey: ParameterDefinition;
685
+ }, {}>;
686
+ shopify: ConnectorPlugin<{
687
+ accessToken: ParameterDefinition;
688
+ storeDomain: ParameterDefinition;
689
+ }, {}>;
690
+ slack: ConnectorPlugin<{
691
+ botToken: ParameterDefinition;
692
+ }, {}>;
693
+ shopifyOauth: ConnectorPlugin<{}, {
694
+ request: ConnectorTool<{
588
695
  connectionId: string;
696
+ method: "GET" | "POST" | "PUT" | "DELETE";
697
+ path: string;
589
698
  toolUseIntent?: string | undefined;
699
+ queryParams?: Record<string, string> | undefined;
700
+ body?: Record<string, unknown> | undefined;
590
701
  }, {
591
702
  success: true;
592
- customers: {
593
- customerId: string;
594
- descriptiveName: string;
595
- }[];
703
+ status: number;
704
+ data: Record<string, unknown>;
705
+ } | {
706
+ success: false;
707
+ error: string;
708
+ }>;
709
+ }>;
710
+ msTeams: ConnectorPlugin<{
711
+ clientId: ParameterDefinition;
712
+ clientSecret: ParameterDefinition;
713
+ tenantId: ParameterDefinition;
714
+ }, {}>;
715
+ msTeamsOauth: ConnectorPlugin<{}, {
716
+ request: ConnectorTool<{
717
+ connectionId: string;
718
+ method: "GET" | "POST" | "PATCH" | "DELETE";
719
+ path: string;
720
+ toolUseIntent?: string | undefined;
721
+ queryParams?: Record<string, string> | undefined;
722
+ body?: Record<string, unknown> | undefined;
723
+ }, {
724
+ success: true;
725
+ status: number;
726
+ data: Record<string, unknown>;
596
727
  } | {
597
728
  success: false;
598
729
  error: string;
@@ -859,9 +990,9 @@ declare const airtableConnector: ConnectorPlugin<{
859
990
  }>;
860
991
  }>;
861
992
 
862
- declare const googleAnalyticsConnector: ConnectorPlugin<{
863
- serviceAccountKeyJsonBase64: ParameterDefinition;
864
- propertyId: ParameterDefinition;
993
+ declare const googleAdsOauthConnector: ConnectorPlugin<{
994
+ customerId: ParameterDefinition;
995
+ developerToken: ParameterDefinition;
865
996
  }, {
866
997
  request: ConnectorTool<{
867
998
  connectionId: string;
@@ -872,21 +1003,33 @@ declare const googleAnalyticsConnector: ConnectorPlugin<{
872
1003
  }, {
873
1004
  success: true;
874
1005
  status: number;
875
- data: Record<string, unknown>;
1006
+ data: unknown;
1007
+ } | {
1008
+ success: false;
1009
+ error: string;
1010
+ }>;
1011
+ listCustomers: ConnectorTool<{
1012
+ connectionId: string;
1013
+ toolUseIntent?: string | undefined;
1014
+ }, {
1015
+ success: true;
1016
+ customers: {
1017
+ customerId: string;
1018
+ descriptiveName: string;
1019
+ }[];
876
1020
  } | {
877
1021
  success: false;
878
1022
  error: string;
879
1023
  }>;
880
1024
  }>;
881
1025
 
882
- declare const kintoneConnector: ConnectorPlugin<{
883
- baseUrl: ParameterDefinition;
884
- username: ParameterDefinition;
885
- password: ParameterDefinition;
1026
+ declare const googleAnalyticsConnector: ConnectorPlugin<{
1027
+ serviceAccountKeyJsonBase64: ParameterDefinition;
1028
+ propertyId: ParameterDefinition;
886
1029
  }, {
887
1030
  request: ConnectorTool<{
888
1031
  connectionId: string;
889
- method: "GET" | "POST" | "PUT" | "DELETE";
1032
+ method: "GET" | "POST";
890
1033
  path: string;
891
1034
  toolUseIntent?: string | undefined;
892
1035
  body?: Record<string, unknown> | undefined;
@@ -900,10 +1043,8 @@ declare const kintoneConnector: ConnectorPlugin<{
900
1043
  }>;
901
1044
  }>;
902
1045
 
903
- declare const wixStoreConnector: ConnectorPlugin<{
904
- accountId: ParameterDefinition;
905
- siteId: ParameterDefinition;
906
- apiKey: ParameterDefinition;
1046
+ declare const googleAnalyticsOauthConnector: ConnectorPlugin<{
1047
+ propertyId: ParameterDefinition;
907
1048
  }, {
908
1049
  request: ConnectorTool<{
909
1050
  connectionId: string;
@@ -919,50 +1060,36 @@ declare const wixStoreConnector: ConnectorPlugin<{
919
1060
  success: false;
920
1061
  error: string;
921
1062
  }>;
922
- }>;
923
-
924
- declare const dbtConnector: ConnectorPlugin<{
925
- host: ParameterDefinition;
926
- accountId: ParameterDefinition;
927
- prodEnvId: ParameterDefinition;
928
- token: ParameterDefinition;
929
- }, {
930
- request: ConnectorTool<{
1063
+ listAccounts: ConnectorTool<{
931
1064
  connectionId: string;
932
- query: string;
933
1065
  toolUseIntent?: string | undefined;
934
- variables?: Record<string, unknown> | undefined;
935
1066
  }, {
936
1067
  success: true;
937
- data: Record<string, unknown>;
1068
+ accounts: {
1069
+ name: string;
1070
+ displayName: string;
1071
+ }[];
938
1072
  } | {
939
1073
  success: false;
940
1074
  error: string;
941
1075
  }>;
942
- }>;
943
-
944
- declare const squadbaseDbConnector: ConnectorPlugin<{
945
- connectionUrl: ParameterDefinition;
946
- }, {
947
- executeQuery: ConnectorTool<{
1076
+ listProperties: ConnectorTool<{
948
1077
  connectionId: string;
949
- sql: string;
1078
+ accountName: string;
950
1079
  toolUseIntent?: string | undefined;
951
1080
  }, {
952
1081
  success: true;
953
- rowCount: number;
954
- truncated: boolean;
955
- rows: Record<string, unknown>[];
1082
+ properties: {
1083
+ name: string;
1084
+ displayName: string;
1085
+ propertyId: string;
1086
+ }[];
956
1087
  } | {
957
1088
  success: false;
958
1089
  error: string;
959
1090
  }>;
960
1091
  }>;
961
1092
 
962
- declare const openaiConnector: ConnectorPlugin<{
963
- apiKey: ParameterDefinition;
964
- }, {}>;
965
-
966
1093
  declare const googleSheetsOauthConnector: ConnectorPlugin<{
967
1094
  spreadsheetId: ParameterDefinition;
968
1095
  }, {
@@ -982,12 +1109,14 @@ declare const googleSheetsOauthConnector: ConnectorPlugin<{
982
1109
  }>;
983
1110
  }>;
984
1111
 
985
- declare const googleAnalyticsOauthConnector: ConnectorPlugin<{
986
- propertyId: ParameterDefinition;
1112
+ declare const kintoneConnector: ConnectorPlugin<{
1113
+ baseUrl: ParameterDefinition;
1114
+ username: ParameterDefinition;
1115
+ password: ParameterDefinition;
987
1116
  }, {
988
1117
  request: ConnectorTool<{
989
1118
  connectionId: string;
990
- method: "GET" | "POST";
1119
+ method: "GET" | "POST" | "PUT" | "DELETE";
991
1120
  path: string;
992
1121
  toolUseIntent?: string | undefined;
993
1122
  body?: Record<string, unknown> | undefined;
@@ -999,67 +1128,111 @@ declare const googleAnalyticsOauthConnector: ConnectorPlugin<{
999
1128
  success: false;
1000
1129
  error: string;
1001
1130
  }>;
1002
- listAccounts: ConnectorTool<{
1131
+ }>;
1132
+
1133
+ declare const wixStoreConnector: ConnectorPlugin<{
1134
+ accountId: ParameterDefinition;
1135
+ siteId: ParameterDefinition;
1136
+ apiKey: ParameterDefinition;
1137
+ }, {
1138
+ request: ConnectorTool<{
1003
1139
  connectionId: string;
1140
+ method: "GET" | "POST";
1141
+ path: string;
1004
1142
  toolUseIntent?: string | undefined;
1143
+ body?: Record<string, unknown> | undefined;
1005
1144
  }, {
1006
1145
  success: true;
1007
- accounts: {
1008
- name: string;
1009
- displayName: string;
1010
- }[];
1146
+ status: number;
1147
+ data: Record<string, unknown>;
1011
1148
  } | {
1012
1149
  success: false;
1013
1150
  error: string;
1014
1151
  }>;
1015
- listProperties: ConnectorTool<{
1152
+ }>;
1153
+
1154
+ declare const dbtConnector: ConnectorPlugin<{
1155
+ host: ParameterDefinition;
1156
+ accountId: ParameterDefinition;
1157
+ prodEnvId: ParameterDefinition;
1158
+ token: ParameterDefinition;
1159
+ }, {
1160
+ request: ConnectorTool<{
1016
1161
  connectionId: string;
1017
- accountName: string;
1162
+ query: string;
1018
1163
  toolUseIntent?: string | undefined;
1164
+ variables?: Record<string, unknown> | undefined;
1019
1165
  }, {
1020
1166
  success: true;
1021
- properties: {
1022
- name: string;
1023
- displayName: string;
1024
- propertyId: string;
1025
- }[];
1167
+ data: Record<string, unknown>;
1026
1168
  } | {
1027
1169
  success: false;
1028
1170
  error: string;
1029
1171
  }>;
1030
1172
  }>;
1031
1173
 
1032
- declare const googleAdsOauthConnector: ConnectorPlugin<{
1033
- customerId: ParameterDefinition;
1034
- developerToken: ParameterDefinition;
1174
+ declare const squadbaseDbConnector: ConnectorPlugin<{
1175
+ connectionUrl: ParameterDefinition;
1035
1176
  }, {
1177
+ executeQuery: ConnectorTool<{
1178
+ connectionId: string;
1179
+ sql: string;
1180
+ toolUseIntent?: string | undefined;
1181
+ }, {
1182
+ success: true;
1183
+ rowCount: number;
1184
+ truncated: boolean;
1185
+ rows: Record<string, unknown>[];
1186
+ } | {
1187
+ success: false;
1188
+ error: string;
1189
+ }>;
1190
+ }>;
1191
+
1192
+ declare const openaiConnector: ConnectorPlugin<{
1193
+ apiKey: ParameterDefinition;
1194
+ }, {}>;
1195
+
1196
+ declare const shopifyOauthConnector: ConnectorPlugin<{}, {
1036
1197
  request: ConnectorTool<{
1037
1198
  connectionId: string;
1038
- method: "GET" | "POST";
1199
+ method: "GET" | "POST" | "PUT" | "DELETE";
1039
1200
  path: string;
1040
1201
  toolUseIntent?: string | undefined;
1202
+ queryParams?: Record<string, string> | undefined;
1041
1203
  body?: Record<string, unknown> | undefined;
1042
1204
  }, {
1043
1205
  success: true;
1044
1206
  status: number;
1045
- data: unknown;
1207
+ data: Record<string, unknown>;
1046
1208
  } | {
1047
1209
  success: false;
1048
1210
  error: string;
1049
1211
  }>;
1050
- listCustomers: ConnectorTool<{
1212
+ }>;
1213
+
1214
+ declare const msTeamsConnector: ConnectorPlugin<{
1215
+ clientId: ParameterDefinition;
1216
+ clientSecret: ParameterDefinition;
1217
+ tenantId: ParameterDefinition;
1218
+ }, {}>;
1219
+
1220
+ declare const msTeamsOauthConnector: ConnectorPlugin<{}, {
1221
+ request: ConnectorTool<{
1051
1222
  connectionId: string;
1223
+ method: "GET" | "POST" | "PATCH" | "DELETE";
1224
+ path: string;
1052
1225
  toolUseIntent?: string | undefined;
1226
+ queryParams?: Record<string, string> | undefined;
1227
+ body?: Record<string, unknown> | undefined;
1053
1228
  }, {
1054
1229
  success: true;
1055
- customers: {
1056
- customerId: string;
1057
- descriptiveName: string;
1058
- }[];
1230
+ status: number;
1231
+ data: Record<string, unknown>;
1059
1232
  } | {
1060
1233
  success: false;
1061
1234
  error: string;
1062
1235
  }>;
1063
1236
  }>;
1064
1237
 
1065
- export { AUTH_TYPES, type ConnectionCheckResult, ConnectorPlugin, ConnectorSetup, ConnectorTool, type ConnectorToolsConfig, ParameterDefinition, type ProxyPolicy, type ProxyPolicyRule, type ReleaseFlag, type SetupLanguage, airtableConnector, awsAthenaConnector, bigqueryConnector, bigqueryOauthConnector, connectors, databricksConnector, dbtConnector, googleAdsOauthConnector, googleAnalyticsConnector, googleAnalyticsOauthConnector, googleSheetsOauthConnector, kintoneConnector, mysqlConnector, openaiConnector, postgresqlConnector, redshiftConnector, snowflakeConnector, snowflakePatConnector, squadbaseDbConnector, wixStoreConnector };
1238
+ export { AUTH_TYPES, type ConnectionCheckResult, ConnectorPlugin, ConnectorSetup, ConnectorTool, type ConnectorToolsConfig, ParameterDefinition, type ProxyPolicy, type ProxyPolicyRule, type ReleaseFlag, type SetupLanguage, airtableConnector, awsAthenaConnector, bigqueryConnector, bigqueryOauthConnector, connectors, databricksConnector, dbtConnector, googleAdsOauthConnector, googleAnalyticsConnector, googleAnalyticsOauthConnector, googleSheetsOauthConnector, kintoneConnector, msTeamsConnector, msTeamsOauthConnector, mysqlConnector, openaiConnector, postgresqlConnector, redshiftConnector, shopifyOauthConnector, snowflakeConnector, snowflakePatConnector, squadbaseDbConnector, wixStoreConnector };