@squadbase/connectors 0.1.2-dev.0 → 0.1.2-dev.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.
@@ -64,8 +64,30 @@ var parameters = {
64
64
  })
65
65
  };
66
66
 
67
- // src/connectors/google-analytics/parameters.ts
67
+ // src/connectors/google-ads-oauth/parameters.ts
68
68
  var parameters2 = {
69
+ customerId: new ParameterDefinition({
70
+ slug: "customer-id",
71
+ name: "Google Ads Customer ID",
72
+ description: "The Google Ads customer ID (e.g., 123-456-7890 or 1234567890). Can be found in the top-right corner of your Google Ads account.",
73
+ envVarBaseKey: "GOOGLE_ADS_OAUTH_CUSTOMER_ID",
74
+ type: "text",
75
+ secret: false,
76
+ required: false
77
+ }),
78
+ developerToken: new ParameterDefinition({
79
+ slug: "developer-token",
80
+ name: "Google Ads Developer Token",
81
+ description: "The developer token for accessing the Google Ads API. Required for all API requests.",
82
+ envVarBaseKey: "GOOGLE_ADS_DEVELOPER_TOKEN",
83
+ type: "text",
84
+ secret: true,
85
+ required: false
86
+ })
87
+ };
88
+
89
+ // src/connectors/google-analytics/parameters.ts
90
+ var parameters3 = {
69
91
  serviceAccountKeyJsonBase64: new ParameterDefinition({
70
92
  slug: "service-account-key-json-base64",
71
93
  name: "Google Cloud Service Account JSON",
@@ -86,8 +108,34 @@ var parameters2 = {
86
108
  })
87
109
  };
88
110
 
111
+ // src/connectors/google-analytics-oauth/parameters.ts
112
+ var parameters4 = {
113
+ propertyId: new ParameterDefinition({
114
+ slug: "property-id",
115
+ name: "Google Analytics Property ID",
116
+ description: "The Google Analytics 4 property ID (e.g., 123456789). Can be found in GA4 Admin > Property Settings.",
117
+ envVarBaseKey: "GA_OAUTH_PROPERTY_ID",
118
+ type: "text",
119
+ secret: false,
120
+ required: false
121
+ })
122
+ };
123
+
124
+ // src/connectors/google-sheets-oauth/parameters.ts
125
+ var parameters5 = {
126
+ spreadsheetId: new ParameterDefinition({
127
+ slug: "spreadsheet-id",
128
+ name: "Default Spreadsheet ID",
129
+ description: "The ID of the default Google Spreadsheet. Can be found in the spreadsheet URL: https://docs.google.com/spreadsheets/d/{spreadsheetId}/edit",
130
+ envVarBaseKey: "GOOGLE_SHEETS_OAUTH_SPREADSHEET_ID",
131
+ type: "text",
132
+ secret: false,
133
+ required: false
134
+ })
135
+ };
136
+
89
137
  // src/connectors/kintone/parameters.ts
90
- var parameters3 = {
138
+ var parameters6 = {
91
139
  baseUrl: new ParameterDefinition({
92
140
  slug: "base-url",
93
141
  name: "kintone Base URL",
@@ -118,7 +166,7 @@ var parameters3 = {
118
166
  };
119
167
 
120
168
  // src/connectors/wix-store/parameters.ts
121
- var parameters4 = {
169
+ var parameters7 = {
122
170
  accountId: new ParameterDefinition({
123
171
  slug: "account-id",
124
172
  name: "Account ID",
@@ -149,7 +197,7 @@ var parameters4 = {
149
197
  };
150
198
 
151
199
  // src/connectors/dbt/parameters.ts
152
- var parameters5 = {
200
+ var parameters8 = {
153
201
  host: new ParameterDefinition({
154
202
  slug: "host",
155
203
  name: "dbt Cloud Host",
@@ -189,7 +237,7 @@ var parameters5 = {
189
237
  };
190
238
 
191
239
  // src/connectors/openai/parameters.ts
192
- var parameters6 = {
240
+ var parameters9 = {
193
241
  apiKey: new ParameterDefinition({
194
242
  slug: "api-key",
195
243
  name: "OpenAI API Key",
@@ -201,54 +249,6 @@ var parameters6 = {
201
249
  })
202
250
  };
203
251
 
204
- // src/connectors/google-sheets-oauth/parameters.ts
205
- var parameters7 = {
206
- spreadsheetId: new ParameterDefinition({
207
- slug: "spreadsheet-id",
208
- name: "Default Spreadsheet ID",
209
- description: "The ID of the default Google Spreadsheet. Can be found in the spreadsheet URL: https://docs.google.com/spreadsheets/d/{spreadsheetId}/edit",
210
- envVarBaseKey: "GOOGLE_SHEETS_OAUTH_SPREADSHEET_ID",
211
- type: "text",
212
- secret: false,
213
- required: false
214
- })
215
- };
216
-
217
- // src/connectors/google-analytics-oauth/parameters.ts
218
- var parameters8 = {
219
- propertyId: new ParameterDefinition({
220
- slug: "property-id",
221
- name: "Google Analytics Property ID",
222
- description: "The Google Analytics 4 property ID (e.g., 123456789). Can be found in GA4 Admin > Property Settings.",
223
- envVarBaseKey: "GA_OAUTH_PROPERTY_ID",
224
- type: "text",
225
- secret: false,
226
- required: false
227
- })
228
- };
229
-
230
- // src/connectors/google-ads-oauth/parameters.ts
231
- var parameters9 = {
232
- customerId: new ParameterDefinition({
233
- slug: "customer-id",
234
- name: "Google Ads Customer ID",
235
- description: "The Google Ads customer ID (e.g., 123-456-7890 or 1234567890). Can be found in the top-right corner of your Google Ads account.",
236
- envVarBaseKey: "GOOGLE_ADS_OAUTH_CUSTOMER_ID",
237
- type: "text",
238
- secret: false,
239
- required: false
240
- }),
241
- developerToken: new ParameterDefinition({
242
- slug: "developer-token",
243
- name: "Google Ads Developer Token",
244
- description: "The developer token for accessing the Google Ads API. Required for all API requests.",
245
- envVarBaseKey: "GOOGLE_ADS_DEVELOPER_TOKEN",
246
- type: "text",
247
- secret: true,
248
- required: true
249
- })
250
- };
251
-
252
252
  export {
253
253
  ParameterDefinition,
254
254
  parameters,
package/dist/index.d.ts CHANGED
@@ -404,9 +404,9 @@ declare const connectors: {
404
404
  error: string;
405
405
  }>;
406
406
  }>;
407
- googleAnalytics: ConnectorPlugin<{
408
- serviceAccountKeyJsonBase64: ParameterDefinition;
409
- propertyId: ParameterDefinition;
407
+ googleAdsOauth: ConnectorPlugin<{
408
+ customerId: ParameterDefinition;
409
+ developerToken: ParameterDefinition;
410
410
  }, {
411
411
  request: ConnectorTool<{
412
412
  connectionId: string;
@@ -417,56 +417,50 @@ declare const connectors: {
417
417
  }, {
418
418
  success: true;
419
419
  status: number;
420
- data: Record<string, unknown>;
420
+ data: unknown;
421
421
  } | {
422
422
  success: false;
423
423
  error: string;
424
424
  }>;
425
- }>;
426
- airtable: ConnectorPlugin<{
427
- baseId: ParameterDefinition;
428
- apiKey: ParameterDefinition;
429
- }, {
430
- request: ConnectorTool<{
425
+ listCustomers: ConnectorTool<{
431
426
  connectionId: string;
432
- method: "GET" | "POST" | "PATCH" | "DELETE";
433
- path: string;
434
427
  toolUseIntent?: string | undefined;
435
- body?: Record<string, unknown> | undefined;
436
428
  }, {
437
429
  success: true;
438
- status: number;
439
- data: Record<string, unknown>;
430
+ customers: {
431
+ customerId: string;
432
+ descriptiveName: string;
433
+ }[];
440
434
  } | {
441
435
  success: false;
442
436
  error: string;
443
437
  }>;
444
438
  }>;
445
- squadbaseDb: ConnectorPlugin<{
446
- connectionUrl: ParameterDefinition;
439
+ googleAnalytics: ConnectorPlugin<{
440
+ serviceAccountKeyJsonBase64: ParameterDefinition;
441
+ propertyId: ParameterDefinition;
447
442
  }, {
448
- executeQuery: ConnectorTool<{
443
+ request: ConnectorTool<{
449
444
  connectionId: string;
450
- sql: string;
445
+ method: "GET" | "POST";
446
+ path: string;
451
447
  toolUseIntent?: string | undefined;
448
+ body?: Record<string, unknown> | undefined;
452
449
  }, {
453
450
  success: true;
454
- rowCount: number;
455
- truncated: boolean;
456
- rows: Record<string, unknown>[];
451
+ status: number;
452
+ data: Record<string, unknown>;
457
453
  } | {
458
454
  success: false;
459
455
  error: string;
460
456
  }>;
461
457
  }>;
462
- kintone: ConnectorPlugin<{
463
- baseUrl: ParameterDefinition;
464
- username: ParameterDefinition;
465
- password: ParameterDefinition;
458
+ googleAnalyticsOauth: ConnectorPlugin<{
459
+ propertyId: ParameterDefinition;
466
460
  }, {
467
461
  request: ConnectorTool<{
468
462
  connectionId: string;
469
- method: "GET" | "POST" | "PUT" | "DELETE";
463
+ method: "GET" | "POST";
470
464
  path: string;
471
465
  toolUseIntent?: string | undefined;
472
466
  body?: Record<string, unknown> | undefined;
@@ -478,30 +472,35 @@ declare const connectors: {
478
472
  success: false;
479
473
  error: string;
480
474
  }>;
481
- }>;
482
- wixStore: ConnectorPlugin<{
483
- accountId: ParameterDefinition;
484
- siteId: ParameterDefinition;
485
- apiKey: ParameterDefinition;
486
- }, {
487
- request: ConnectorTool<{
475
+ listAccounts: ConnectorTool<{
488
476
  connectionId: string;
489
- method: "GET" | "POST";
490
- path: string;
491
477
  toolUseIntent?: string | undefined;
492
- body?: Record<string, unknown> | undefined;
493
478
  }, {
494
479
  success: true;
495
- status: number;
496
- data: Record<string, unknown>;
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
+ }[];
497
499
  } | {
498
500
  success: false;
499
501
  error: string;
500
502
  }>;
501
503
  }>;
502
- openai: ConnectorPlugin<{
503
- apiKey: ParameterDefinition;
504
- }, {}>;
505
504
  googleSheetsOauth: ConnectorPlugin<{
506
505
  spreadsheetId: ParameterDefinition;
507
506
  }, {
@@ -520,12 +519,13 @@ declare const connectors: {
520
519
  error: string;
521
520
  }>;
522
521
  }>;
523
- googleAnalyticsOauth: ConnectorPlugin<{
524
- propertyId: ParameterDefinition;
522
+ airtable: ConnectorPlugin<{
523
+ baseId: ParameterDefinition;
524
+ apiKey: ParameterDefinition;
525
525
  }, {
526
526
  request: ConnectorTool<{
527
527
  connectionId: string;
528
- method: "GET" | "POST";
528
+ method: "GET" | "POST" | "PATCH" | "DELETE";
529
529
  path: string;
530
530
  toolUseIntent?: string | undefined;
531
531
  body?: Record<string, unknown> | undefined;
@@ -537,38 +537,48 @@ declare const connectors: {
537
537
  success: false;
538
538
  error: string;
539
539
  }>;
540
- listAccounts: ConnectorTool<{
540
+ }>;
541
+ squadbaseDb: ConnectorPlugin<{
542
+ connectionUrl: ParameterDefinition;
543
+ }, {
544
+ executeQuery: ConnectorTool<{
541
545
  connectionId: string;
546
+ sql: string;
542
547
  toolUseIntent?: string | undefined;
543
548
  }, {
544
549
  success: true;
545
- accounts: {
546
- name: string;
547
- displayName: string;
548
- }[];
550
+ rowCount: number;
551
+ truncated: boolean;
552
+ rows: Record<string, unknown>[];
549
553
  } | {
550
554
  success: false;
551
555
  error: string;
552
556
  }>;
553
- listProperties: ConnectorTool<{
557
+ }>;
558
+ kintone: ConnectorPlugin<{
559
+ baseUrl: ParameterDefinition;
560
+ username: ParameterDefinition;
561
+ password: ParameterDefinition;
562
+ }, {
563
+ request: ConnectorTool<{
554
564
  connectionId: string;
555
- accountName: string;
565
+ method: "GET" | "POST" | "PUT" | "DELETE";
566
+ path: string;
556
567
  toolUseIntent?: string | undefined;
568
+ body?: Record<string, unknown> | undefined;
557
569
  }, {
558
570
  success: true;
559
- properties: {
560
- name: string;
561
- displayName: string;
562
- propertyId: string;
563
- }[];
571
+ status: number;
572
+ data: Record<string, unknown>;
564
573
  } | {
565
574
  success: false;
566
575
  error: string;
567
576
  }>;
568
577
  }>;
569
- googleAdsOauth: ConnectorPlugin<{
570
- customerId: ParameterDefinition;
571
- developerToken: ParameterDefinition;
578
+ wixStore: ConnectorPlugin<{
579
+ accountId: ParameterDefinition;
580
+ siteId: ParameterDefinition;
581
+ apiKey: ParameterDefinition;
572
582
  }, {
573
583
  request: ConnectorTool<{
574
584
  connectionId: string;
@@ -579,25 +589,15 @@ declare const connectors: {
579
589
  }, {
580
590
  success: true;
581
591
  status: number;
582
- data: unknown;
583
- } | {
584
- success: false;
585
- error: string;
586
- }>;
587
- listCustomers: ConnectorTool<{
588
- connectionId: string;
589
- toolUseIntent?: string | undefined;
590
- }, {
591
- success: true;
592
- customers: {
593
- customerId: string;
594
- descriptiveName: string;
595
- }[];
592
+ data: Record<string, unknown>;
596
593
  } | {
597
594
  success: false;
598
595
  error: string;
599
596
  }>;
600
597
  }>;
598
+ openai: ConnectorPlugin<{
599
+ apiKey: ParameterDefinition;
600
+ }, {}>;
601
601
  };
602
602
 
603
603
  declare const snowflakeConnector: ConnectorPlugin<{
@@ -859,9 +859,9 @@ declare const airtableConnector: ConnectorPlugin<{
859
859
  }>;
860
860
  }>;
861
861
 
862
- declare const googleAnalyticsConnector: ConnectorPlugin<{
863
- serviceAccountKeyJsonBase64: ParameterDefinition;
864
- propertyId: ParameterDefinition;
862
+ declare const googleAdsOauthConnector: ConnectorPlugin<{
863
+ customerId: ParameterDefinition;
864
+ developerToken: ParameterDefinition;
865
865
  }, {
866
866
  request: ConnectorTool<{
867
867
  connectionId: string;
@@ -872,21 +872,33 @@ declare const googleAnalyticsConnector: ConnectorPlugin<{
872
872
  }, {
873
873
  success: true;
874
874
  status: number;
875
- data: Record<string, unknown>;
875
+ data: unknown;
876
+ } | {
877
+ success: false;
878
+ error: string;
879
+ }>;
880
+ listCustomers: ConnectorTool<{
881
+ connectionId: string;
882
+ toolUseIntent?: string | undefined;
883
+ }, {
884
+ success: true;
885
+ customers: {
886
+ customerId: string;
887
+ descriptiveName: string;
888
+ }[];
876
889
  } | {
877
890
  success: false;
878
891
  error: string;
879
892
  }>;
880
893
  }>;
881
894
 
882
- declare const kintoneConnector: ConnectorPlugin<{
883
- baseUrl: ParameterDefinition;
884
- username: ParameterDefinition;
885
- password: ParameterDefinition;
895
+ declare const googleAnalyticsConnector: ConnectorPlugin<{
896
+ serviceAccountKeyJsonBase64: ParameterDefinition;
897
+ propertyId: ParameterDefinition;
886
898
  }, {
887
899
  request: ConnectorTool<{
888
900
  connectionId: string;
889
- method: "GET" | "POST" | "PUT" | "DELETE";
901
+ method: "GET" | "POST";
890
902
  path: string;
891
903
  toolUseIntent?: string | undefined;
892
904
  body?: Record<string, unknown> | undefined;
@@ -900,10 +912,8 @@ declare const kintoneConnector: ConnectorPlugin<{
900
912
  }>;
901
913
  }>;
902
914
 
903
- declare const wixStoreConnector: ConnectorPlugin<{
904
- accountId: ParameterDefinition;
905
- siteId: ParameterDefinition;
906
- apiKey: ParameterDefinition;
915
+ declare const googleAnalyticsOauthConnector: ConnectorPlugin<{
916
+ propertyId: ParameterDefinition;
907
917
  }, {
908
918
  request: ConnectorTool<{
909
919
  connectionId: string;
@@ -919,50 +929,36 @@ declare const wixStoreConnector: ConnectorPlugin<{
919
929
  success: false;
920
930
  error: string;
921
931
  }>;
922
- }>;
923
-
924
- declare const dbtConnector: ConnectorPlugin<{
925
- host: ParameterDefinition;
926
- accountId: ParameterDefinition;
927
- prodEnvId: ParameterDefinition;
928
- token: ParameterDefinition;
929
- }, {
930
- request: ConnectorTool<{
932
+ listAccounts: ConnectorTool<{
931
933
  connectionId: string;
932
- query: string;
933
934
  toolUseIntent?: string | undefined;
934
- variables?: Record<string, unknown> | undefined;
935
935
  }, {
936
936
  success: true;
937
- data: Record<string, unknown>;
937
+ accounts: {
938
+ name: string;
939
+ displayName: string;
940
+ }[];
938
941
  } | {
939
942
  success: false;
940
943
  error: string;
941
944
  }>;
942
- }>;
943
-
944
- declare const squadbaseDbConnector: ConnectorPlugin<{
945
- connectionUrl: ParameterDefinition;
946
- }, {
947
- executeQuery: ConnectorTool<{
945
+ listProperties: ConnectorTool<{
948
946
  connectionId: string;
949
- sql: string;
947
+ accountName: string;
950
948
  toolUseIntent?: string | undefined;
951
949
  }, {
952
950
  success: true;
953
- rowCount: number;
954
- truncated: boolean;
955
- rows: Record<string, unknown>[];
951
+ properties: {
952
+ name: string;
953
+ displayName: string;
954
+ propertyId: string;
955
+ }[];
956
956
  } | {
957
957
  success: false;
958
958
  error: string;
959
959
  }>;
960
960
  }>;
961
961
 
962
- declare const openaiConnector: ConnectorPlugin<{
963
- apiKey: ParameterDefinition;
964
- }, {}>;
965
-
966
962
  declare const googleSheetsOauthConnector: ConnectorPlugin<{
967
963
  spreadsheetId: ParameterDefinition;
968
964
  }, {
@@ -982,12 +978,14 @@ declare const googleSheetsOauthConnector: ConnectorPlugin<{
982
978
  }>;
983
979
  }>;
984
980
 
985
- declare const googleAnalyticsOauthConnector: ConnectorPlugin<{
986
- propertyId: ParameterDefinition;
981
+ declare const kintoneConnector: ConnectorPlugin<{
982
+ baseUrl: ParameterDefinition;
983
+ username: ParameterDefinition;
984
+ password: ParameterDefinition;
987
985
  }, {
988
986
  request: ConnectorTool<{
989
987
  connectionId: string;
990
- method: "GET" | "POST";
988
+ method: "GET" | "POST" | "PUT" | "DELETE";
991
989
  path: string;
992
990
  toolUseIntent?: string | undefined;
993
991
  body?: Record<string, unknown> | undefined;
@@ -999,67 +997,69 @@ declare const googleAnalyticsOauthConnector: ConnectorPlugin<{
999
997
  success: false;
1000
998
  error: string;
1001
999
  }>;
1002
- listAccounts: ConnectorTool<{
1003
- connectionId: string;
1004
- toolUseIntent?: string | undefined;
1005
- }, {
1006
- success: true;
1007
- accounts: {
1008
- name: string;
1009
- displayName: string;
1010
- }[];
1011
- } | {
1012
- success: false;
1013
- error: string;
1014
- }>;
1015
- listProperties: ConnectorTool<{
1000
+ }>;
1001
+
1002
+ declare const wixStoreConnector: ConnectorPlugin<{
1003
+ accountId: ParameterDefinition;
1004
+ siteId: ParameterDefinition;
1005
+ apiKey: ParameterDefinition;
1006
+ }, {
1007
+ request: ConnectorTool<{
1016
1008
  connectionId: string;
1017
- accountName: string;
1009
+ method: "GET" | "POST";
1010
+ path: string;
1018
1011
  toolUseIntent?: string | undefined;
1012
+ body?: Record<string, unknown> | undefined;
1019
1013
  }, {
1020
1014
  success: true;
1021
- properties: {
1022
- name: string;
1023
- displayName: string;
1024
- propertyId: string;
1025
- }[];
1015
+ status: number;
1016
+ data: Record<string, unknown>;
1026
1017
  } | {
1027
1018
  success: false;
1028
1019
  error: string;
1029
1020
  }>;
1030
1021
  }>;
1031
1022
 
1032
- declare const googleAdsOauthConnector: ConnectorPlugin<{
1033
- customerId: ParameterDefinition;
1034
- developerToken: ParameterDefinition;
1023
+ declare const dbtConnector: ConnectorPlugin<{
1024
+ host: ParameterDefinition;
1025
+ accountId: ParameterDefinition;
1026
+ prodEnvId: ParameterDefinition;
1027
+ token: ParameterDefinition;
1035
1028
  }, {
1036
1029
  request: ConnectorTool<{
1037
1030
  connectionId: string;
1038
- method: "GET" | "POST";
1039
- path: string;
1031
+ query: string;
1040
1032
  toolUseIntent?: string | undefined;
1041
- body?: Record<string, unknown> | undefined;
1033
+ variables?: Record<string, unknown> | undefined;
1042
1034
  }, {
1043
1035
  success: true;
1044
- status: number;
1045
- data: unknown;
1036
+ data: Record<string, unknown>;
1046
1037
  } | {
1047
1038
  success: false;
1048
1039
  error: string;
1049
1040
  }>;
1050
- listCustomers: ConnectorTool<{
1041
+ }>;
1042
+
1043
+ declare const squadbaseDbConnector: ConnectorPlugin<{
1044
+ connectionUrl: ParameterDefinition;
1045
+ }, {
1046
+ executeQuery: ConnectorTool<{
1051
1047
  connectionId: string;
1048
+ sql: string;
1052
1049
  toolUseIntent?: string | undefined;
1053
1050
  }, {
1054
1051
  success: true;
1055
- customers: {
1056
- customerId: string;
1057
- descriptiveName: string;
1058
- }[];
1052
+ rowCount: number;
1053
+ truncated: boolean;
1054
+ rows: Record<string, unknown>[];
1059
1055
  } | {
1060
1056
  success: false;
1061
1057
  error: string;
1062
1058
  }>;
1063
1059
  }>;
1064
1060
 
1061
+ declare const openaiConnector: ConnectorPlugin<{
1062
+ apiKey: ParameterDefinition;
1063
+ }, {}>;
1064
+
1065
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 };