Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

1.3 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "\n        SELECT\n            sp.\"linkShareAccessLevel\" AS \"access_level!: AccessLevel\",\n            owner_tu.team_id AS \"owner_team_id!\"\n        FROM \"SharePermission\" sp\n        JOIN \"ChatPermission\" cp ON cp.\"sharePermissionId\" = sp.id\n        JOIN \"Chat\" c ON c.id = cp.\"chatId\"\n        JOIN owner_team(c.\"userId\") owner_tu\n          ON owner_tu.team_id::text = ANY($2)\n        WHERE cp.\"chatId\" = $1\n          AND sp.\"linkShare\" = 'TEAM'\n          AND sp.\"linkShareAccessLevel\" IS NOT NULL\n        ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "access_level!: AccessLevel",
        "type_info": {
          "Custom": {
            "name": "\"AccessLevel\"",
            "kind": {
              "Enum": [
                "view",
                "comment",
                "edit",
                "owner"
              ]
            }
          }
        }
      },
      {
        "ordinal": 1,
        "name": "owner_team_id!",
        "type_info": "Uuid"
      }
    ],
    "parameters": {
      "Left": [
        "Text",
        "TextArray"
      ]
    },
    "nullable": [
      true,
      null
    ]
  },
  "hash": "27502a40d581a1fe1e734caa9189eb88cfe6dc30a05f3b7ae37b65803b8d832f"
}