@trillioncore/cli 1.0.0-next.12 → 1.0.0-next.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 (2) hide show
  1. package/dist/index.js +16 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3663,6 +3663,12 @@ async function logout(localOnly = false, environment = process.env) {
3663
3663
 
3664
3664
  // ../../packages/types/dist/integrations.js
3665
3665
  var INTEGRATION_PROVIDER_DEFINITIONS = {
3666
+ beads: {
3667
+ description: "Issues and project work",
3668
+ nativeRecordKinds: ["beads_issue"],
3669
+ modelVisibility: "declared",
3670
+ identity: { source: "externalAccountId", kind: "account-id", prefix: "Tracker ID: ", unavailable: "Tracker identity unavailable" }
3671
+ },
3666
3672
  fathom: {
3667
3673
  description: "Meeting transcripts",
3668
3674
  nativeRecordKinds: ["transcript"],
@@ -3694,6 +3700,13 @@ var INTEGRATION_PROVIDER_DEFINITIONS = {
3694
3700
  modelVisibility: "declared",
3695
3701
  identity: { source: "externalAccountId", kind: "email", prefix: "", unavailable: "Account email unavailable" }
3696
3702
  },
3703
+ plaid: {
3704
+ // SQL-only: one Plaid Item (bank login) publishes accounts and transactions tables.
3705
+ description: "Bank accounts and transactions",
3706
+ nativeRecordKinds: [],
3707
+ modelVisibility: "declared",
3708
+ identity: { source: "unavailable", unavailable: "Account identity unavailable" }
3709
+ },
3697
3710
  slack: {
3698
3711
  // Slack workspace identity is retained in the Airbyte binding. The visible local account
3699
3712
  // identifier is deliberately unique so an organization can keep separate connections.
@@ -3731,7 +3744,7 @@ function integrationProviderDefinition(provider) {
3731
3744
  }
3732
3745
 
3733
3746
  // ../../packages/types/dist/agent.js
3734
- var AGENT_SOURCE_TYPES = ["fathom", "fireflies", "harvest", "outlook", "gmail", "slack", "postgres", "github", "google_analytics"];
3747
+ var AGENT_SOURCE_TYPES = ["fathom", "fireflies", "harvest", "outlook", "gmail", "slack", "postgres", "github", "google_analytics", "plaid", "beads"];
3735
3748
  var AGENT_SEARCH_FILTER_TYPES = [...AGENT_SOURCE_TYPES, "email"];
3736
3749
  function presentAgentIndex(result, resourceKey) {
3737
3750
  if (resourceKey !== void 0)
@@ -3872,6 +3885,7 @@ function agentRecovery(code) {
3872
3885
  join_not_approved: "This ordered join does not match exactly one approved FK. Inspect the target schemas and relationships with index. Query each approved table separately with projected columns and LIMIT, then correlate observed keys outside SQL. Similar column names do not establish a relationship.",
3873
3886
  dataset_unavailable: "The synchronized dataset is unavailable. Inspect account index operations and freshness; retry after a published dataset is available. Do not fall back to live.",
3874
3887
  forbidden: "The request is not authorized. Select an approved organization and connection; do not infer whether another resource exists.",
3888
+ subscription_required: "This organization needs an active subscription. An administrator can start one at app.trillioncore.com. Tell the person this, and do not retry.",
3875
3889
  not_found: "The resource is unavailable in the authorized catalog. Return to index and use a returned path or key.",
3876
3890
  unsupported: "This operation is unsupported. Use the operations advertised by index.",
3877
3891
  unavailable: "The request could not be completed. Check arguments and access, or retry later."
@@ -4030,7 +4044,7 @@ function parseErrorEnvelope(value) {
4030
4044
  if (typeof record.code !== "string" || typeof record.message !== "string") {
4031
4045
  return null;
4032
4046
  }
4033
- if (["invalid_path", "account_required", "sql_rejected", "dataset_unavailable"].includes(record.code)) return agentRecovery(record.code);
4047
+ if (["invalid_path", "account_required", "sql_rejected", "dataset_unavailable", "subscription_required"].includes(record.code)) return agentRecovery(record.code);
4034
4048
  if (!["organization_required", "invalid_input", "forbidden", "not_found", "unsupported", "unavailable"].includes(
4035
4049
  record.code
4036
4050
  )) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trillioncore/cli",
3
- "version": "1.0.0-next.12",
3
+ "version": "1.0.0-next.13",
4
4
  "description": "Trillioncore v1 CLI: sign in and read your authorized integration records",
5
5
  "type": "module",
6
6
  "license": "MIT",