@jskit-ai/connectors-catalog 0.2.12 → 0.2.13

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 (84) hide show
  1. package/CHANGELOG.md +1 -0
  2. package/docs/ai-upstream-notices.md +1 -1
  3. package/docs/ai.md +9 -0
  4. package/package.json +3 -3
  5. package/src/shared/ai-definition.js +68 -0
  6. package/src/shared/ai-framework-models.json +7334 -0
  7. package/src/shared/ai-models.json +1 -7329
  8. package/src/shared/ai.js +8 -59
  9. package/src/shared/definitions.js +2 -2
  10. package/test/ai.test.js +16 -0
  11. package/test/airtable.test.js +3 -4
  12. package/test/algolia.test.js +3 -3
  13. package/test/amazon-redshift.test.js +3 -3
  14. package/test/amplitude.test.js +3 -3
  15. package/test/apify.test.js +3 -4
  16. package/test/apollo-io.test.js +3 -4
  17. package/test/asana.test.js +3 -4
  18. package/test/ashby.test.js +3 -4
  19. package/test/atlassian.test.js +3 -3
  20. package/test/attention.test.js +3 -4
  21. package/test/aws.test.js +3 -3
  22. package/test/brevo.test.js +3 -4
  23. package/test/calendly.test.js +4 -5
  24. package/test/canva.test.js +3 -3
  25. package/test/chargebee.test.js +3 -3
  26. package/test/clickhouse.test.js +3 -3
  27. package/test/confidence.test.js +3 -3
  28. package/test/databricks.test.js +3 -3
  29. package/test/dbt-semantic-layer.test.js +3 -3
  30. package/test/designMcp.test.js +3 -3
  31. package/test/elevenlabs.test.js +3 -4
  32. package/test/firebase-cloud-messaging.test.js +3 -3
  33. package/test/firecrawl.test.js +3 -4
  34. package/test/gemini-enterprise.test.js +3 -3
  35. package/test/github-api.test.js +4 -5
  36. package/test/gitlab-api.test.js +4 -5
  37. package/test/gong.test.js +3 -3
  38. package/test/google-ads.test.js +3 -3
  39. package/test/google-maps-platform.test.js +3 -3
  40. package/test/google.test.js +3 -4
  41. package/test/granola.test.js +3 -3
  42. package/test/hex.test.js +3 -3
  43. package/test/heygen.test.js +3 -4
  44. package/test/hubspot.test.js +3 -4
  45. package/test/inngest.test.js +3 -3
  46. package/test/lightspeed.test.js +3 -3
  47. package/test/linear.test.js +3 -4
  48. package/test/linkedin.test.js +3 -3
  49. package/test/mailgun.test.js +3 -4
  50. package/test/mapbox.test.js +3 -3
  51. package/test/mcp.test.js +3 -3
  52. package/test/microsoft-fabric.test.js +3 -3
  53. package/test/microsoft.test.js +3 -3
  54. package/test/n8nOAuth.test.js +3 -4
  55. package/test/notionOAuth.test.js +5 -6
  56. package/test/oura.test.js +3 -3
  57. package/test/paddlePermissions.test.js +3 -4
  58. package/test/pipedriveOAuth.test.js +3 -4
  59. package/test/posthog.test.js +3 -3
  60. package/test/prestashop.test.js +3 -3
  61. package/test/resend.test.js +3 -3
  62. package/test/salesforce.test.js +3 -3
  63. package/test/semrush.test.js +3 -3
  64. package/test/sharedCatalogModels.test.js +21 -0
  65. package/test/shopify.test.js +3 -3
  66. package/test/slack.test.js +3 -3
  67. package/test/snowflake.test.js +3 -3
  68. package/test/tally.test.js +3 -4
  69. package/test/telegram.test.js +3 -4
  70. package/test/testDirectories.test.js +16 -0
  71. package/test/tiktok.test.js +3 -3
  72. package/test/tokens.test.js +3 -3
  73. package/test/twilio.test.js +3 -3
  74. package/test/twitch.test.js +3 -3
  75. package/test/wave.test.js +3 -3
  76. package/test/wix.test.js +3 -3
  77. package/test/wiz.test.js +3 -3
  78. package/test/wordpress-com.test.js +3 -3
  79. package/test/wordpress.test.js +3 -3
  80. package/test/workday.test.js +3 -3
  81. package/test/x-twitter.test.js +3 -3
  82. package/test/xero.test.js +3 -3
  83. package/test/zoho-books.test.js +3 -3
  84. package/test/zoho-crm.test.js +3 -3
@@ -1,12 +1,12 @@
1
1
  import assert from "node:assert/strict";
2
2
  import test from "node:test";
3
- import { mkdtemp, readdir, readFile, rm } from "node:fs/promises";
3
+ import { readdir, readFile, rm } from "node:fs/promises";
4
4
  import path from "node:path";
5
- import { tmpdir } from "node:os";
6
5
  import { createConnectionService, ConnectorError } from "../../connectors-core/src/server/index.js";
7
6
  import { createFileConnectionStore, createCredentialProtection } from "../../connectors-core/src/server/fileStorage.js";
8
7
  import { parseIntegrationConfiguration } from "../../connectors-core/src/shared/configuration.js";
9
8
  import { xTwitterProvider } from "../src/server/x-twitter.js";
9
+ import { makeTestDirectory } from "../../../tooling/test-support/testDirectory.mjs";
10
10
 
11
11
  const context = { applicationId: "research-app", subjectId: "research-team" };
12
12
  const input = { context, integrationId: "social" };
@@ -15,7 +15,7 @@ const profile = { data: { id: "1234567890123456789", name: "Example", username:
15
15
  const page = { data: [{ id: "1934567890123456789", text: "A public post" }], meta: { result_count: 1, next_token: "opaque-cursor" } };
16
16
 
17
17
  async function fixture(t) {
18
- const directory = await mkdtemp(path.join(tmpdir(), "x-twitter-connector-"));
18
+ const directory = await makeTestDirectory("x-twitter-connector-");
19
19
  t.after(() => rm(directory, { recursive: true, force: true }));
20
20
  const protection = createCredentialProtection({ keys: { current: new Uint8Array(32).fill(8) }, activeKeyId: "current" });
21
21
  const requests = [];
package/test/xero.test.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import assert from "node:assert/strict";
2
2
  import test from "node:test";
3
- import { mkdtemp, readdir, readFile, rm } from "node:fs/promises";
3
+ import { readdir, readFile, rm } from "node:fs/promises";
4
4
  import path from "node:path";
5
- import { tmpdir } from "node:os";
6
5
  import { createConnectionService } from "../../connectors-core/src/server/index.js";
7
6
  import { createFileConnectionStore, createCredentialProtection } from "../../connectors-core/src/server/fileStorage.js";
8
7
  import { validateIntegrationConfiguration } from "../../connectors-core/src/shared/configuration.js";
9
8
  import { xeroProvider } from "../src/server/xero.js";
9
+ import { makeTestDirectory } from "../../../tooling/test-support/testDirectory.mjs";
10
10
 
11
11
  const tenantId = "70784a63-d24b-46a9-a4db-0e70a274b056";
12
12
  const otherTenant = "e0da6937-de07-4a14-adee-37abfac298ce";
@@ -18,7 +18,7 @@ const connection = { id: recordId, tenantId, tenantType: "ORGANISATION", tenantN
18
18
  const defaults = xeroProvider.scopes.filter((scope) => scope.recommended).map((scope) => scope.value);
19
19
 
20
20
  async function fixture(t) {
21
- const directory = await mkdtemp(path.join(tmpdir(), "xero-connector-"));
21
+ const directory = await makeTestDirectory("xero-connector-");
22
22
  t.after(() => rm(directory, { recursive: true, force: true }));
23
23
  const requests = [];
24
24
  const state = { time: Date.now(), tokenCount: 0, tokenScope: defaults.join(" "), status: 200, connections: [connection],
@@ -1,12 +1,12 @@
1
1
  import assert from "node:assert/strict";
2
2
  import test from "node:test";
3
- import { mkdtemp, readdir, readFile, rm } from "node:fs/promises";
4
- import { tmpdir } from "node:os";
3
+ import { readdir, readFile, rm } from "node:fs/promises";
5
4
  import path from "node:path";
6
5
  import { createConnectionService } from "../../connectors-core/src/server/index.js";
7
6
  import { createFileConnectionStore, createCredentialProtection } from "../../connectors-core/src/server/fileStorage.js";
8
7
  import { parseIntegrationConfiguration } from "../../connectors-core/src/shared/configuration.js";
9
8
  import { zohoBooksProvider } from "../src/server/zoho-books.js";
9
+ import { makeTestDirectory } from "../../../tooling/test-support/testDirectory.mjs";
10
10
 
11
11
  const context = { applicationId: "application-one", subjectId: "user-one" };
12
12
  const args = { context, integrationId: "books" };
@@ -25,7 +25,7 @@ const regions = {
25
25
  };
26
26
 
27
27
  async function fixture(t, settings = { region: "eu" }, selectedScopes = scopes) {
28
- const directory = await mkdtemp(path.join(tmpdir(), "zoho-books-connector-"));
28
+ const directory = await makeTestDirectory("zoho-books-connector-");
29
29
  t.after(() => rm(directory, { recursive: true, force: true }));
30
30
  const [accounts, suffix] = regions[settings.region || "eu"];
31
31
  const api = `https://www.zohoapis.${suffix}`;
@@ -1,12 +1,12 @@
1
1
  import assert from "node:assert/strict";
2
2
  import test from "node:test";
3
- import { mkdtemp, readdir, readFile, rm } from "node:fs/promises";
4
- import { tmpdir } from "node:os";
3
+ import { readdir, readFile, rm } from "node:fs/promises";
5
4
  import path from "node:path";
6
5
  import { createConnectionService } from "../../connectors-core/src/server/index.js";
7
6
  import { createFileConnectionStore, createCredentialProtection } from "../../connectors-core/src/server/fileStorage.js";
8
7
  import { parseIntegrationConfiguration } from "../../connectors-core/src/shared/configuration.js";
9
8
  import { zohoCrmProvider } from "../src/server/zoho-crm.js";
9
+ import { makeTestDirectory } from "../../../tooling/test-support/testDirectory.mjs";
10
10
 
11
11
  const context = { applicationId: "application-one", subjectId: "user-one" };
12
12
  const args = { context, integrationId: "crm" };
@@ -20,7 +20,7 @@ const regions = {
20
20
  };
21
21
 
22
22
  async function fixture(t, settings = { region: "us", environment: "production" }, selectedScopes = scopes) {
23
- const directory = await mkdtemp(path.join(tmpdir(), "zoho-crm-connector-"));
23
+ const directory = await makeTestDirectory("zoho-crm-connector-");
24
24
  t.after(() => rm(directory, { recursive: true, force: true }));
25
25
  const [accounts, suffix] = regions[settings.region];
26
26
  const api = `https://${settings.environment === "production" ? "www" : settings.environment}.zohoapis.${suffix}`;