@squadbase/vite-server 0.1.3-dev.16 → 0.1.3-dev.18

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.
Files changed (50) hide show
  1. package/dist/cli/index.js +10906 -26320
  2. package/dist/connectors/airtable-oauth.js +27 -1
  3. package/dist/connectors/airtable.js +27 -1
  4. package/dist/connectors/amplitude.js +27 -1
  5. package/dist/connectors/anthropic.js +27 -1
  6. package/dist/connectors/asana.js +27 -1
  7. package/dist/connectors/attio.js +27 -1
  8. package/dist/connectors/backlog-api-key.js +27 -1
  9. package/dist/connectors/customerio.js +27 -1
  10. package/dist/connectors/dbt.js +27 -1
  11. package/dist/connectors/gamma.js +27 -1
  12. package/dist/connectors/gemini.js +27 -1
  13. package/dist/connectors/gmail-oauth.js +49 -3
  14. package/dist/connectors/gmail.js +36 -10
  15. package/dist/connectors/google-ads.js +56 -12
  16. package/dist/connectors/google-analytics-oauth.js +45 -3
  17. package/dist/connectors/google-analytics.js +33 -7
  18. package/dist/connectors/google-calendar-oauth.js +45 -3
  19. package/dist/connectors/google-calendar.js +45 -15
  20. package/dist/connectors/google-docs.js +58 -12
  21. package/dist/connectors/google-drive.js +69 -11
  22. package/dist/connectors/google-sheets.js +63 -11
  23. package/dist/connectors/google-slides.js +65 -13
  24. package/dist/connectors/grafana.js +27 -1
  25. package/dist/connectors/hubspot-oauth.js +27 -1
  26. package/dist/connectors/hubspot.js +27 -1
  27. package/dist/connectors/intercom-oauth.js +27 -1
  28. package/dist/connectors/intercom.js +27 -1
  29. package/dist/connectors/jira-api-key.js +27 -1
  30. package/dist/connectors/kintone-api-token.js +35 -9
  31. package/dist/connectors/kintone.js +27 -1
  32. package/dist/connectors/linkedin-ads.js +27 -1
  33. package/dist/connectors/mailchimp-oauth.js +27 -1
  34. package/dist/connectors/mailchimp.js +27 -1
  35. package/dist/connectors/mixpanel.js +27 -1
  36. package/dist/connectors/notion-oauth.js +27 -1
  37. package/dist/connectors/notion.js +27 -1
  38. package/dist/connectors/openai.js +27 -1
  39. package/dist/connectors/sentry.js +27 -1
  40. package/dist/connectors/shopify-oauth.js +27 -1
  41. package/dist/connectors/shopify.js +27 -1
  42. package/dist/connectors/stripe-api-key.js +27 -1
  43. package/dist/connectors/stripe-oauth.js +27 -1
  44. package/dist/connectors/wix-store.js +27 -1
  45. package/dist/connectors/zendesk-oauth.js +27 -1
  46. package/dist/connectors/zendesk.js +27 -1
  47. package/dist/index.js +302 -98
  48. package/dist/main.js +302 -98
  49. package/dist/vite-plugin.js +302 -98
  50. package/package.json +3 -1
@@ -240,7 +240,33 @@ var ConnectorPlugin = class _ConnectorPlugin {
240
240
  return result;
241
241
  }
242
242
  static deriveKey(slug, authType) {
243
- return authType ? `${slug}-${authType}` : slug;
243
+ if (authType) return `${slug}-${authType}`;
244
+ const LEGACY_NULL_AUTH_TYPE_MAP = {
245
+ // user-password
246
+ "postgresql": "user-password",
247
+ "mysql": "user-password",
248
+ "clickhouse": "user-password",
249
+ "kintone": "user-password",
250
+ "squadbase-db": "user-password",
251
+ // service-account
252
+ "snowflake": "service-account",
253
+ "bigquery": "service-account",
254
+ "google-analytics": "service-account",
255
+ "google-calendar": "service-account",
256
+ "aws-athena": "service-account",
257
+ "redshift": "service-account",
258
+ // api-key
259
+ "databricks": "api-key",
260
+ "dbt": "api-key",
261
+ "airtable": "api-key",
262
+ "openai": "api-key",
263
+ "gemini": "api-key",
264
+ "anthropic": "api-key",
265
+ "wix-store": "api-key"
266
+ };
267
+ const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
268
+ if (fallbackAuthType) return `${slug}-${fallbackAuthType}`;
269
+ return slug;
244
270
  }
245
271
  };
246
272
 
@@ -259,14 +285,14 @@ var kintoneApiTokenOnboarding = new ConnectorOnboarding({
259
285
  dataOverviewInstructions: {
260
286
  en: `Each connection is scoped to a single kintone app (configured via the "app-id" parameter). The request tool auto-injects the configured app id, so you do NOT need to specify "app=" in paths or "app" in bodies. apps.json is NOT available with API Token auth.
261
287
 
262
- 1. Call kintone-api-token_request with GET app.json to fetch the scoped app's metadata (name, description, creator)
263
- 2. Call kintone-api-token_request with GET app/form/fields.json to get field definitions
264
- 3. Call kintone-api-token_request with GET records.json with query=limit 5 to sample records`,
288
+ 1. Call kintone-api-key_request with GET app.json to fetch the scoped app's metadata (name, description, creator)
289
+ 2. Call kintone-api-key_request with GET app/form/fields.json to get field definitions
290
+ 3. Call kintone-api-key_request with GET records.json with query=limit 5 to sample records`,
265
291
  ja: `\u5404\u63A5\u7D9A\u306F1\u3064\u306Ekintone\u30A2\u30D7\u30EA\u306B\u30B9\u30B3\u30FC\u30D7\u3055\u308C\u3066\u3044\u307E\u3059\uFF08"app-id" \u30D1\u30E9\u30E1\u30FC\u30BF\u3067\u8A2D\u5B9A\uFF09\u3002request \u30C4\u30FC\u30EB\u306F\u8A2D\u5B9A\u3055\u308C\u305F\u30A2\u30D7\u30EAID\u3092\u81EA\u52D5\u6CE8\u5165\u3059\u308B\u305F\u3081\u3001\u30D1\u30B9\u306B "app=" \u3084 body \u306B "app" \u3092\u6307\u5B9A\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002API Token \u8A8D\u8A3C\u3067\u306F apps.json \u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002
266
292
 
267
- 1. kintone-api-token_request \u3067 GET app.json \u3092\u547C\u3073\u51FA\u3057\u3001\u30B9\u30B3\u30FC\u30D7\u5BFE\u8C61\u30A2\u30D7\u30EA\u306E\u30E1\u30BF\u60C5\u5831\uFF08\u30A2\u30D7\u30EA\u540D\u3001\u8AAC\u660E\u3001\u4F5C\u6210\u8005\uFF09\u3092\u53D6\u5F97
268
- 2. kintone-api-token_request \u3067 GET app/form/fields.json \u3092\u547C\u3073\u51FA\u3057\u3001\u30D5\u30A3\u30FC\u30EB\u30C9\u5B9A\u7FA9\u3092\u53D6\u5F97
269
- 3. kintone-api-token_request \u3067 GET records.json \u3092 query=limit 5 \u3067\u547C\u3073\u51FA\u3057\u3001\u30EC\u30B3\u30FC\u30C9\u3092\u30B5\u30F3\u30D7\u30EA\u30F3\u30B0`
293
+ 1. kintone-api-key_request \u3067 GET app.json \u3092\u547C\u3073\u51FA\u3057\u3001\u30B9\u30B3\u30FC\u30D7\u5BFE\u8C61\u30A2\u30D7\u30EA\u306E\u30E1\u30BF\u60C5\u5831\uFF08\u30A2\u30D7\u30EA\u540D\u3001\u8AAC\u660E\u3001\u4F5C\u6210\u8005\uFF09\u3092\u53D6\u5F97
294
+ 2. kintone-api-key_request \u3067 GET app/form/fields.json \u3092\u547C\u3073\u51FA\u3057\u3001\u30D5\u30A3\u30FC\u30EB\u30C9\u5B9A\u7FA9\u3092\u53D6\u5F97
295
+ 3. kintone-api-key_request \u3067 GET records.json \u3092 query=limit 5 \u3067\u547C\u3073\u51FA\u3057\u3001\u30EC\u30B3\u30FC\u30C9\u3092\u30B5\u30F3\u30D7\u30EA\u30F3\u30B0`
270
296
  }
271
297
  });
272
298
 
@@ -387,7 +413,7 @@ var kintoneApiTokenConnector = new ConnectorPlugin({
387
413
  systemPrompt: {
388
414
  en: `### Tools
389
415
 
390
- - \`kintone-api-token_request\`: The only way to call the kintone REST API. Use it to fetch app metadata/field definitions and read/write records. Authentication (API Token), base URL, and the connection's app id are configured automatically. Each connection is scoped to exactly one app (kintone API tokens are per-app).
416
+ - \`kintone-api-key_request\`: The only way to call the kintone REST API. Use it to fetch app metadata/field definitions and read/write records. Authentication (API Token), base URL, and the connection's app id are configured automatically. Each connection is scoped to exactly one app (kintone API tokens are per-app).
391
417
 
392
418
  ### App scoping (important)
393
419
 
@@ -460,7 +486,7 @@ export default async function handler(c: Context) {
460
486
  - String: \`like "partial match"\``,
461
487
  ja: `### \u30C4\u30FC\u30EB
462
488
 
463
- - \`kintone-api-token_request\`: kintone REST API\u3092\u547C\u3073\u51FA\u3059\u552F\u4E00\u306E\u624B\u6BB5\u3067\u3059\u3002\u30A2\u30D7\u30EA\u306E\u30E1\u30BF\u60C5\u5831\u30FB\u30D5\u30A3\u30FC\u30EB\u30C9\u5B9A\u7FA9\u306E\u53D6\u5F97\u3001\u30EC\u30B3\u30FC\u30C9\u306E\u8AAD\u307F\u66F8\u304D\u306B\u4F7F\u7528\u3057\u307E\u3059\u3002\u8A8D\u8A3C\uFF08API\u30C8\u30FC\u30AF\u30F3\uFF09\u3001\u30D9\u30FC\u30B9URL\u3001\u304A\u3088\u3073\u63A5\u7D9A\u306E\u30A2\u30D7\u30EAID\u306F\u81EA\u52D5\u7684\u306B\u8A2D\u5B9A\u3055\u308C\u307E\u3059\u3002\u5404\u63A5\u7D9A\u306F\u3061\u3087\u3046\u30691\u3064\u306E\u30A2\u30D7\u30EA\u306B\u30B9\u30B3\u30FC\u30D7\u3055\u308C\u3066\u3044\u307E\u3059\uFF08kintone API\u30C8\u30FC\u30AF\u30F3\u306F\u30A2\u30D7\u30EA\u5358\u4F4D\u306E\u305F\u3081\uFF09\u3002
489
+ - \`kintone-api-key_request\`: kintone REST API\u3092\u547C\u3073\u51FA\u3059\u552F\u4E00\u306E\u624B\u6BB5\u3067\u3059\u3002\u30A2\u30D7\u30EA\u306E\u30E1\u30BF\u60C5\u5831\u30FB\u30D5\u30A3\u30FC\u30EB\u30C9\u5B9A\u7FA9\u306E\u53D6\u5F97\u3001\u30EC\u30B3\u30FC\u30C9\u306E\u8AAD\u307F\u66F8\u304D\u306B\u4F7F\u7528\u3057\u307E\u3059\u3002\u8A8D\u8A3C\uFF08API\u30C8\u30FC\u30AF\u30F3\uFF09\u3001\u30D9\u30FC\u30B9URL\u3001\u304A\u3088\u3073\u63A5\u7D9A\u306E\u30A2\u30D7\u30EAID\u306F\u81EA\u52D5\u7684\u306B\u8A2D\u5B9A\u3055\u308C\u307E\u3059\u3002\u5404\u63A5\u7D9A\u306F\u3061\u3087\u3046\u30691\u3064\u306E\u30A2\u30D7\u30EA\u306B\u30B9\u30B3\u30FC\u30D7\u3055\u308C\u3066\u3044\u307E\u3059\uFF08kintone API\u30C8\u30FC\u30AF\u30F3\u306F\u30A2\u30D7\u30EA\u5358\u4F4D\u306E\u305F\u3081\uFF09\u3002
464
490
 
465
491
  ### \u30A2\u30D7\u30EA\u30B9\u30B3\u30FC\u30D7\uFF08\u91CD\u8981\uFF09
466
492
 
@@ -249,7 +249,33 @@ var ConnectorPlugin = class _ConnectorPlugin {
249
249
  return result;
250
250
  }
251
251
  static deriveKey(slug, authType) {
252
- return authType ? `${slug}-${authType}` : slug;
252
+ if (authType) return `${slug}-${authType}`;
253
+ const LEGACY_NULL_AUTH_TYPE_MAP = {
254
+ // user-password
255
+ "postgresql": "user-password",
256
+ "mysql": "user-password",
257
+ "clickhouse": "user-password",
258
+ "kintone": "user-password",
259
+ "squadbase-db": "user-password",
260
+ // service-account
261
+ "snowflake": "service-account",
262
+ "bigquery": "service-account",
263
+ "google-analytics": "service-account",
264
+ "google-calendar": "service-account",
265
+ "aws-athena": "service-account",
266
+ "redshift": "service-account",
267
+ // api-key
268
+ "databricks": "api-key",
269
+ "dbt": "api-key",
270
+ "airtable": "api-key",
271
+ "openai": "api-key",
272
+ "gemini": "api-key",
273
+ "anthropic": "api-key",
274
+ "wix-store": "api-key"
275
+ };
276
+ const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
277
+ if (fallbackAuthType) return `${slug}-${fallbackAuthType}`;
278
+ return slug;
253
279
  }
254
280
  };
255
281
 
@@ -159,7 +159,33 @@ var ConnectorPlugin = class _ConnectorPlugin {
159
159
  return result;
160
160
  }
161
161
  static deriveKey(slug, authType) {
162
- return authType ? `${slug}-${authType}` : slug;
162
+ if (authType) return `${slug}-${authType}`;
163
+ const LEGACY_NULL_AUTH_TYPE_MAP = {
164
+ // user-password
165
+ "postgresql": "user-password",
166
+ "mysql": "user-password",
167
+ "clickhouse": "user-password",
168
+ "kintone": "user-password",
169
+ "squadbase-db": "user-password",
170
+ // service-account
171
+ "snowflake": "service-account",
172
+ "bigquery": "service-account",
173
+ "google-analytics": "service-account",
174
+ "google-calendar": "service-account",
175
+ "aws-athena": "service-account",
176
+ "redshift": "service-account",
177
+ // api-key
178
+ "databricks": "api-key",
179
+ "dbt": "api-key",
180
+ "airtable": "api-key",
181
+ "openai": "api-key",
182
+ "gemini": "api-key",
183
+ "anthropic": "api-key",
184
+ "wix-store": "api-key"
185
+ };
186
+ const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
187
+ if (fallbackAuthType) return `${slug}-${fallbackAuthType}`;
188
+ return slug;
163
189
  }
164
190
  };
165
191
 
@@ -165,7 +165,33 @@ var ConnectorPlugin = class _ConnectorPlugin {
165
165
  return result;
166
166
  }
167
167
  static deriveKey(slug, authType) {
168
- return authType ? `${slug}-${authType}` : slug;
168
+ if (authType) return `${slug}-${authType}`;
169
+ const LEGACY_NULL_AUTH_TYPE_MAP = {
170
+ // user-password
171
+ "postgresql": "user-password",
172
+ "mysql": "user-password",
173
+ "clickhouse": "user-password",
174
+ "kintone": "user-password",
175
+ "squadbase-db": "user-password",
176
+ // service-account
177
+ "snowflake": "service-account",
178
+ "bigquery": "service-account",
179
+ "google-analytics": "service-account",
180
+ "google-calendar": "service-account",
181
+ "aws-athena": "service-account",
182
+ "redshift": "service-account",
183
+ // api-key
184
+ "databricks": "api-key",
185
+ "dbt": "api-key",
186
+ "airtable": "api-key",
187
+ "openai": "api-key",
188
+ "gemini": "api-key",
189
+ "anthropic": "api-key",
190
+ "wix-store": "api-key"
191
+ };
192
+ const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
193
+ if (fallbackAuthType) return `${slug}-${fallbackAuthType}`;
194
+ return slug;
169
195
  }
170
196
  };
171
197
 
@@ -269,7 +269,33 @@ var ConnectorPlugin = class _ConnectorPlugin {
269
269
  return result;
270
270
  }
271
271
  static deriveKey(slug, authType) {
272
- return authType ? `${slug}-${authType}` : slug;
272
+ if (authType) return `${slug}-${authType}`;
273
+ const LEGACY_NULL_AUTH_TYPE_MAP = {
274
+ // user-password
275
+ "postgresql": "user-password",
276
+ "mysql": "user-password",
277
+ "clickhouse": "user-password",
278
+ "kintone": "user-password",
279
+ "squadbase-db": "user-password",
280
+ // service-account
281
+ "snowflake": "service-account",
282
+ "bigquery": "service-account",
283
+ "google-analytics": "service-account",
284
+ "google-calendar": "service-account",
285
+ "aws-athena": "service-account",
286
+ "redshift": "service-account",
287
+ // api-key
288
+ "databricks": "api-key",
289
+ "dbt": "api-key",
290
+ "airtable": "api-key",
291
+ "openai": "api-key",
292
+ "gemini": "api-key",
293
+ "anthropic": "api-key",
294
+ "wix-store": "api-key"
295
+ };
296
+ const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
297
+ if (fallbackAuthType) return `${slug}-${fallbackAuthType}`;
298
+ return slug;
273
299
  }
274
300
  };
275
301
 
@@ -321,7 +321,33 @@ var ConnectorPlugin = class _ConnectorPlugin {
321
321
  return result;
322
322
  }
323
323
  static deriveKey(slug, authType) {
324
- return authType ? `${slug}-${authType}` : slug;
324
+ if (authType) return `${slug}-${authType}`;
325
+ const LEGACY_NULL_AUTH_TYPE_MAP = {
326
+ // user-password
327
+ "postgresql": "user-password",
328
+ "mysql": "user-password",
329
+ "clickhouse": "user-password",
330
+ "kintone": "user-password",
331
+ "squadbase-db": "user-password",
332
+ // service-account
333
+ "snowflake": "service-account",
334
+ "bigquery": "service-account",
335
+ "google-analytics": "service-account",
336
+ "google-calendar": "service-account",
337
+ "aws-athena": "service-account",
338
+ "redshift": "service-account",
339
+ // api-key
340
+ "databricks": "api-key",
341
+ "dbt": "api-key",
342
+ "airtable": "api-key",
343
+ "openai": "api-key",
344
+ "gemini": "api-key",
345
+ "anthropic": "api-key",
346
+ "wix-store": "api-key"
347
+ };
348
+ const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
349
+ if (fallbackAuthType) return `${slug}-${fallbackAuthType}`;
350
+ return slug;
325
351
  }
326
352
  };
327
353
 
@@ -119,7 +119,33 @@ var ConnectorPlugin = class _ConnectorPlugin {
119
119
  return result;
120
120
  }
121
121
  static deriveKey(slug, authType) {
122
- return authType ? `${slug}-${authType}` : slug;
122
+ if (authType) return `${slug}-${authType}`;
123
+ const LEGACY_NULL_AUTH_TYPE_MAP = {
124
+ // user-password
125
+ "postgresql": "user-password",
126
+ "mysql": "user-password",
127
+ "clickhouse": "user-password",
128
+ "kintone": "user-password",
129
+ "squadbase-db": "user-password",
130
+ // service-account
131
+ "snowflake": "service-account",
132
+ "bigquery": "service-account",
133
+ "google-analytics": "service-account",
134
+ "google-calendar": "service-account",
135
+ "aws-athena": "service-account",
136
+ "redshift": "service-account",
137
+ // api-key
138
+ "databricks": "api-key",
139
+ "dbt": "api-key",
140
+ "airtable": "api-key",
141
+ "openai": "api-key",
142
+ "gemini": "api-key",
143
+ "anthropic": "api-key",
144
+ "wix-store": "api-key"
145
+ };
146
+ const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
147
+ if (fallbackAuthType) return `${slug}-${fallbackAuthType}`;
148
+ return slug;
123
149
  }
124
150
  };
125
151
 
@@ -271,7 +271,33 @@ var ConnectorPlugin = class _ConnectorPlugin {
271
271
  return result;
272
272
  }
273
273
  static deriveKey(slug, authType) {
274
- return authType ? `${slug}-${authType}` : slug;
274
+ if (authType) return `${slug}-${authType}`;
275
+ const LEGACY_NULL_AUTH_TYPE_MAP = {
276
+ // user-password
277
+ "postgresql": "user-password",
278
+ "mysql": "user-password",
279
+ "clickhouse": "user-password",
280
+ "kintone": "user-password",
281
+ "squadbase-db": "user-password",
282
+ // service-account
283
+ "snowflake": "service-account",
284
+ "bigquery": "service-account",
285
+ "google-analytics": "service-account",
286
+ "google-calendar": "service-account",
287
+ "aws-athena": "service-account",
288
+ "redshift": "service-account",
289
+ // api-key
290
+ "databricks": "api-key",
291
+ "dbt": "api-key",
292
+ "airtable": "api-key",
293
+ "openai": "api-key",
294
+ "gemini": "api-key",
295
+ "anthropic": "api-key",
296
+ "wix-store": "api-key"
297
+ };
298
+ const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
299
+ if (fallbackAuthType) return `${slug}-${fallbackAuthType}`;
300
+ return slug;
275
301
  }
276
302
  };
277
303
 
@@ -131,7 +131,33 @@ var ConnectorPlugin = class _ConnectorPlugin {
131
131
  return result;
132
132
  }
133
133
  static deriveKey(slug, authType) {
134
- return authType ? `${slug}-${authType}` : slug;
134
+ if (authType) return `${slug}-${authType}`;
135
+ const LEGACY_NULL_AUTH_TYPE_MAP = {
136
+ // user-password
137
+ "postgresql": "user-password",
138
+ "mysql": "user-password",
139
+ "clickhouse": "user-password",
140
+ "kintone": "user-password",
141
+ "squadbase-db": "user-password",
142
+ // service-account
143
+ "snowflake": "service-account",
144
+ "bigquery": "service-account",
145
+ "google-analytics": "service-account",
146
+ "google-calendar": "service-account",
147
+ "aws-athena": "service-account",
148
+ "redshift": "service-account",
149
+ // api-key
150
+ "databricks": "api-key",
151
+ "dbt": "api-key",
152
+ "airtable": "api-key",
153
+ "openai": "api-key",
154
+ "gemini": "api-key",
155
+ "anthropic": "api-key",
156
+ "wix-store": "api-key"
157
+ };
158
+ const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
159
+ if (fallbackAuthType) return `${slug}-${fallbackAuthType}`;
160
+ return slug;
135
161
  }
136
162
  };
137
163
 
@@ -275,7 +275,33 @@ var ConnectorPlugin = class _ConnectorPlugin {
275
275
  return result;
276
276
  }
277
277
  static deriveKey(slug, authType) {
278
- return authType ? `${slug}-${authType}` : slug;
278
+ if (authType) return `${slug}-${authType}`;
279
+ const LEGACY_NULL_AUTH_TYPE_MAP = {
280
+ // user-password
281
+ "postgresql": "user-password",
282
+ "mysql": "user-password",
283
+ "clickhouse": "user-password",
284
+ "kintone": "user-password",
285
+ "squadbase-db": "user-password",
286
+ // service-account
287
+ "snowflake": "service-account",
288
+ "bigquery": "service-account",
289
+ "google-analytics": "service-account",
290
+ "google-calendar": "service-account",
291
+ "aws-athena": "service-account",
292
+ "redshift": "service-account",
293
+ // api-key
294
+ "databricks": "api-key",
295
+ "dbt": "api-key",
296
+ "airtable": "api-key",
297
+ "openai": "api-key",
298
+ "gemini": "api-key",
299
+ "anthropic": "api-key",
300
+ "wix-store": "api-key"
301
+ };
302
+ const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
303
+ if (fallbackAuthType) return `${slug}-${fallbackAuthType}`;
304
+ return slug;
279
305
  }
280
306
  };
281
307
 
@@ -113,7 +113,33 @@ var ConnectorPlugin = class _ConnectorPlugin {
113
113
  return result;
114
114
  }
115
115
  static deriveKey(slug, authType) {
116
- return authType ? `${slug}-${authType}` : slug;
116
+ if (authType) return `${slug}-${authType}`;
117
+ const LEGACY_NULL_AUTH_TYPE_MAP = {
118
+ // user-password
119
+ "postgresql": "user-password",
120
+ "mysql": "user-password",
121
+ "clickhouse": "user-password",
122
+ "kintone": "user-password",
123
+ "squadbase-db": "user-password",
124
+ // service-account
125
+ "snowflake": "service-account",
126
+ "bigquery": "service-account",
127
+ "google-analytics": "service-account",
128
+ "google-calendar": "service-account",
129
+ "aws-athena": "service-account",
130
+ "redshift": "service-account",
131
+ // api-key
132
+ "databricks": "api-key",
133
+ "dbt": "api-key",
134
+ "airtable": "api-key",
135
+ "openai": "api-key",
136
+ "gemini": "api-key",
137
+ "anthropic": "api-key",
138
+ "wix-store": "api-key"
139
+ };
140
+ const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
141
+ if (fallbackAuthType) return `${slug}-${fallbackAuthType}`;
142
+ return slug;
117
143
  }
118
144
  };
119
145
 
@@ -387,7 +387,33 @@ var ConnectorPlugin = class _ConnectorPlugin {
387
387
  return result;
388
388
  }
389
389
  static deriveKey(slug, authType) {
390
- return authType ? `${slug}-${authType}` : slug;
390
+ if (authType) return `${slug}-${authType}`;
391
+ const LEGACY_NULL_AUTH_TYPE_MAP = {
392
+ // user-password
393
+ "postgresql": "user-password",
394
+ "mysql": "user-password",
395
+ "clickhouse": "user-password",
396
+ "kintone": "user-password",
397
+ "squadbase-db": "user-password",
398
+ // service-account
399
+ "snowflake": "service-account",
400
+ "bigquery": "service-account",
401
+ "google-analytics": "service-account",
402
+ "google-calendar": "service-account",
403
+ "aws-athena": "service-account",
404
+ "redshift": "service-account",
405
+ // api-key
406
+ "databricks": "api-key",
407
+ "dbt": "api-key",
408
+ "airtable": "api-key",
409
+ "openai": "api-key",
410
+ "gemini": "api-key",
411
+ "anthropic": "api-key",
412
+ "wix-store": "api-key"
413
+ };
414
+ const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
415
+ if (fallbackAuthType) return `${slug}-${fallbackAuthType}`;
416
+ return slug;
391
417
  }
392
418
  };
393
419
 
@@ -181,7 +181,33 @@ var ConnectorPlugin = class _ConnectorPlugin {
181
181
  return result;
182
182
  }
183
183
  static deriveKey(slug, authType) {
184
- return authType ? `${slug}-${authType}` : slug;
184
+ if (authType) return `${slug}-${authType}`;
185
+ const LEGACY_NULL_AUTH_TYPE_MAP = {
186
+ // user-password
187
+ "postgresql": "user-password",
188
+ "mysql": "user-password",
189
+ "clickhouse": "user-password",
190
+ "kintone": "user-password",
191
+ "squadbase-db": "user-password",
192
+ // service-account
193
+ "snowflake": "service-account",
194
+ "bigquery": "service-account",
195
+ "google-analytics": "service-account",
196
+ "google-calendar": "service-account",
197
+ "aws-athena": "service-account",
198
+ "redshift": "service-account",
199
+ // api-key
200
+ "databricks": "api-key",
201
+ "dbt": "api-key",
202
+ "airtable": "api-key",
203
+ "openai": "api-key",
204
+ "gemini": "api-key",
205
+ "anthropic": "api-key",
206
+ "wix-store": "api-key"
207
+ };
208
+ const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
209
+ if (fallbackAuthType) return `${slug}-${fallbackAuthType}`;
210
+ return slug;
185
211
  }
186
212
  };
187
213
 
@@ -115,7 +115,33 @@ var ConnectorPlugin = class _ConnectorPlugin {
115
115
  return result;
116
116
  }
117
117
  static deriveKey(slug, authType) {
118
- return authType ? `${slug}-${authType}` : slug;
118
+ if (authType) return `${slug}-${authType}`;
119
+ const LEGACY_NULL_AUTH_TYPE_MAP = {
120
+ // user-password
121
+ "postgresql": "user-password",
122
+ "mysql": "user-password",
123
+ "clickhouse": "user-password",
124
+ "kintone": "user-password",
125
+ "squadbase-db": "user-password",
126
+ // service-account
127
+ "snowflake": "service-account",
128
+ "bigquery": "service-account",
129
+ "google-analytics": "service-account",
130
+ "google-calendar": "service-account",
131
+ "aws-athena": "service-account",
132
+ "redshift": "service-account",
133
+ // api-key
134
+ "databricks": "api-key",
135
+ "dbt": "api-key",
136
+ "airtable": "api-key",
137
+ "openai": "api-key",
138
+ "gemini": "api-key",
139
+ "anthropic": "api-key",
140
+ "wix-store": "api-key"
141
+ };
142
+ const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
143
+ if (fallbackAuthType) return `${slug}-${fallbackAuthType}`;
144
+ return slug;
119
145
  }
120
146
  };
121
147
 
@@ -306,7 +306,33 @@ var ConnectorPlugin = class _ConnectorPlugin {
306
306
  return result;
307
307
  }
308
308
  static deriveKey(slug, authType) {
309
- return authType ? `${slug}-${authType}` : slug;
309
+ if (authType) return `${slug}-${authType}`;
310
+ const LEGACY_NULL_AUTH_TYPE_MAP = {
311
+ // user-password
312
+ "postgresql": "user-password",
313
+ "mysql": "user-password",
314
+ "clickhouse": "user-password",
315
+ "kintone": "user-password",
316
+ "squadbase-db": "user-password",
317
+ // service-account
318
+ "snowflake": "service-account",
319
+ "bigquery": "service-account",
320
+ "google-analytics": "service-account",
321
+ "google-calendar": "service-account",
322
+ "aws-athena": "service-account",
323
+ "redshift": "service-account",
324
+ // api-key
325
+ "databricks": "api-key",
326
+ "dbt": "api-key",
327
+ "airtable": "api-key",
328
+ "openai": "api-key",
329
+ "gemini": "api-key",
330
+ "anthropic": "api-key",
331
+ "wix-store": "api-key"
332
+ };
333
+ const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
334
+ if (fallbackAuthType) return `${slug}-${fallbackAuthType}`;
335
+ return slug;
310
336
  }
311
337
  };
312
338
 
@@ -113,7 +113,33 @@ var ConnectorPlugin = class _ConnectorPlugin {
113
113
  return result;
114
114
  }
115
115
  static deriveKey(slug, authType) {
116
- return authType ? `${slug}-${authType}` : slug;
116
+ if (authType) return `${slug}-${authType}`;
117
+ const LEGACY_NULL_AUTH_TYPE_MAP = {
118
+ // user-password
119
+ "postgresql": "user-password",
120
+ "mysql": "user-password",
121
+ "clickhouse": "user-password",
122
+ "kintone": "user-password",
123
+ "squadbase-db": "user-password",
124
+ // service-account
125
+ "snowflake": "service-account",
126
+ "bigquery": "service-account",
127
+ "google-analytics": "service-account",
128
+ "google-calendar": "service-account",
129
+ "aws-athena": "service-account",
130
+ "redshift": "service-account",
131
+ // api-key
132
+ "databricks": "api-key",
133
+ "dbt": "api-key",
134
+ "airtable": "api-key",
135
+ "openai": "api-key",
136
+ "gemini": "api-key",
137
+ "anthropic": "api-key",
138
+ "wix-store": "api-key"
139
+ };
140
+ const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
141
+ if (fallbackAuthType) return `${slug}-${fallbackAuthType}`;
142
+ return slug;
117
143
  }
118
144
  };
119
145
 
@@ -288,7 +288,33 @@ var ConnectorPlugin = class _ConnectorPlugin {
288
288
  return result;
289
289
  }
290
290
  static deriveKey(slug, authType) {
291
- return authType ? `${slug}-${authType}` : slug;
291
+ if (authType) return `${slug}-${authType}`;
292
+ const LEGACY_NULL_AUTH_TYPE_MAP = {
293
+ // user-password
294
+ "postgresql": "user-password",
295
+ "mysql": "user-password",
296
+ "clickhouse": "user-password",
297
+ "kintone": "user-password",
298
+ "squadbase-db": "user-password",
299
+ // service-account
300
+ "snowflake": "service-account",
301
+ "bigquery": "service-account",
302
+ "google-analytics": "service-account",
303
+ "google-calendar": "service-account",
304
+ "aws-athena": "service-account",
305
+ "redshift": "service-account",
306
+ // api-key
307
+ "databricks": "api-key",
308
+ "dbt": "api-key",
309
+ "airtable": "api-key",
310
+ "openai": "api-key",
311
+ "gemini": "api-key",
312
+ "anthropic": "api-key",
313
+ "wix-store": "api-key"
314
+ };
315
+ const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
316
+ if (fallbackAuthType) return `${slug}-${fallbackAuthType}`;
317
+ return slug;
292
318
  }
293
319
  };
294
320