share_space #

View this page as Markdown

On this page

Generated automatically from the published contract sources.

A script calls this action over HTTPS at POST https://tztrack.dev.turnzero.ai/v1/share_space, with a bearer credential and the action's payload as the JSON body. An MCP connection lists this action as the tool tztrack_share_space.

OAuth access tokens and minted tokens, including the turnzero command's computer token, are bearer credentials. The action determines which kinds, scopes and grants it accepts (Sign-in, sessions, and tokens).

Build metadata: Registered in this build. Registration describes the default dispatcher in this build. It does not guarantee that a caller has the required credential or grant, that a tool is listed for that connection, or that the required service is configured.

Contract description #

Share an issue space you own. Adding or removing a member or changing their access can send them one email. Pass space and an existing account's sign-in email in add or remove. add sets level: view, report, contribute or owner, default contribute. A repeat updates the member. A missing account draws no_such_account. Nothing waits for later sign-in.

With add, restricted and accounts set access as their descriptions state. Members work at their level and cannot share. The answer lists level, role, restricted access and any account bound. Its users includes you.

Your account needs tzTrack, which every account has.

Access and action metadata #

{
  "name": "share_space",
  "resource": "account",
  "tier": "reversible",
  "surface": "tztrack",
  "addresses": [
    "tztools"
  ],
  "product": "tztrack",
  "admits": [
    "tztrack",
    "device_sign_in"
  ],
  "summary": "Share one issue space the account owns with other accounts, each a member at one level. Adding or removing a member or changing their access can send them one email. `space` picks the space. `add` gives an existing account by the email address it signs in with, and `level` sets the member's level in the space: `view`, `report`, `contribute`, or `owner`, defaulting to `contribute`. A repeat updates that member. Use `view` to let a member list, search, and read unrestricted issues and download their attachments. `remove` gives a member by that address. With neither the call is refused `invalid_request`, pointing to `list_space_members`. An address no account signed in with is refused `no_such_account`, and nothing is kept for a later sign-in.\n\nWith `add`, `restricted` is true or false; a new member defaults to false, and omission keeps a standing member's value. Only `contribute` and `owner` can read restricted issues. `accounts` takes null or 1 to 19 distinct account ids; the plane adds the member's own account. A list bounds access to issues holding a report recorded under one of those accounts and excludes every restricted issue, whatever `restricted` says. Null clears the bound; omission keeps the standing value. Either field without `add` is refused `invalid_request`. Rows written before these fields read as before: by level, without an account bound.\n\nA space the account does not own, one shared with it among them, is refused `space_not_owned`; a member never shares, and the feedback actions stay the owner's. An account that does not hold tzTrack is refused `tztrack_required` ahead of the form and the space's ownership.\n\nThe answer carries the members, each with its account, address, level, role, restricted-issue access and the instant it was added. Viewer, Reporter, Contributor and Admin name `view`, `report`, `contribute` and `owner`, respectively. Admin is a member, never the space's owner. A bounded member also has `accounts`, including its own, and reads no restricted issue. It gives `users`, the members plus the owner. Registered while the issue service's origin is configured.",
  "annotations": {
    "readOnlyHint": false,
    "destructiveHint": true,
    "openWorldHint": false,
    "idempotentHint": true
  }
}

MCP catalog entry #

{
  "name": "share_space",
  "title": "Share issue space",
  "tier": "reversible",
  "scenario": "API-L0-20",
  "summary": "Share an issue space you own. Adding or removing a member or changing their access can send them one email. Pass `space` and an existing account's sign-in email in `add` or `remove`. `add` sets `level`: `view`, `report`, `contribute` or `owner`, default `contribute`. A repeat updates the member. A missing account draws `no_such_account`. Nothing waits for later sign-in.\n\nWith `add`, `restricted` and `accounts` set access as their descriptions state. Members work at their level and cannot share. The answer lists level, role, restricted access and any account bound. Its `users` includes you.\n\nYour account needs tzTrack, which every account has.",
  "owners": [
    "ITS-L0-07",
    "ACB-L0-92"
  ]
}

request #

JSON pointer Description and constraints
"" (root) Type: object
Required fields: ["space"]
/properties/space The space to share, a lower-case UUID of a space your account owns.

Type: string
Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
/properties/add The sign-in email address of an existing account to add as a member, or whose level to move. An address no account signed in with is refused no_such_account; nothing is kept for a later sign-in. Refused with remove.

Type: string
Maximum length: 320
/properties/level With add: the member's tzTrack level in the space, contribute where absent. owner reaches every tzTrack act on the space and makes nobody an owner: the space stays yours, and a member never shares it. A view member can list, search, and read unrestricted issues and get their attachments.

Type: string
Allowed values: ["view","report","contribute","owner"]
/properties/remove The sign-in email address of the member to remove. Refused with add.

Type: string
Maximum length: 320
/properties/restricted With add: allow restricted issues at contribute or owner when true. view, report and bounded members read none. Omission keeps a standing member's value; a new member defaults to false. Refused without add.

Type: boolean
/properties/accounts With add: null, or 1 to 19 distinct account ids. The member's own account is added to the list. A list bounds access to issues holding a report recorded under one of those accounts, with no restricted issue. Null clears the bound; omission keeps the standing value. Refused without add.

Type: ["array","null"]
Minimum items: 1
Maximum items: 19
uniqueItems: true
/properties/accounts/items Type: string
Minimum length: 1
Maximum length: 128

response #

JSON pointer Description and constraints
"" (root) Type: object
Required fields: ["contract_version","space","members","users"]
/properties/contract_version Required value: 1
/properties/reference The short reference the platform recorded your call under: ten lowercase hexadecimal characters, the value in the call's record row. Quote it when you report the call.

Type: string
Pattern: ^[0-9a-f]{10}$
/properties/space The space shared.

Type: string
/properties/members The members of the space after the call, oldest first; you, the owner, are not among them.

Type: array
/properties/members/items Type: object
Required fields: ["account","address","level","added_at","role","restricted"]
/properties/members/items/properties/account The member's account identifier, the one its claims and its person:<account> carry.

Type: string
/properties/members/items/properties/address The sign-in email address the member was added by.

Type: string
/properties/members/items/properties/level Type: string
Allowed values: ["view","report","contribute","owner"]
/properties/members/items/properties/added_at The instant the member was added, or its level last moved.

Type: string
/properties/members/items/properties/role The level's name: view is Viewer, report Reporter, contribute Contributor and owner Admin. Admin is a member, not the space's owner.

Type: string
/properties/members/items/properties/restricted Whether the member can read restricted issues at its level. False for a bounded member. A row written before this setting follows its level: contribute and owner admit restricted issues; view and report do not.

Type: boolean
/properties/members/items/properties/accounts The accounts bounding this member's access, including its own. Present only for a bounded member, which reads only issues holding a report recorded under one of these accounts and never restricted issues.

Type: array
/properties/members/items/properties/accounts/items Type: string
/properties/users The members plus you.

Type: integer
Minimum: 1
/properties/mail One entry for the member this call added or removed, or whose level, account bound or restricted-issue access it changed. An unchanged call returns an empty array.

Type: array
/properties/mail/items Type: object
Required fields: ["account","sent"]
Additional properties: false
/properties/mail/items/properties/account The member's account identifier, as in members[].account.

Type: string
/properties/mail/items/properties/sent True when the platform hands the email to its sender. False when it cannot hand it off. The share takes effect either way, and delivery is unconfirmed.

Type: boolean

Complete payload contract #

{
  "request": {
    "type": "object",
    "required": [
      "space"
    ],
    "properties": {
      "space": {
        "type": "string",
        "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
        "description": "The space to share, a lower-case UUID of a space your account owns."
      },
      "add": {
        "type": "string",
        "maxLength": 320,
        "description": "The sign-in email address of an existing account to add as a member, or whose level to move. An address no account signed in with is refused `no_such_account`; nothing is kept for a later sign-in. Refused with `remove`."
      },
      "level": {
        "type": "string",
        "enum": [
          "view",
          "report",
          "contribute",
          "owner"
        ],
        "description": "With `add`: the member's tzTrack level in the space, `contribute` where absent. `owner` reaches every tzTrack act on the space and makes nobody an owner: the space stays yours, and a member never shares it. A `view` member can list, search, and read unrestricted issues and get their attachments."
      },
      "remove": {
        "type": "string",
        "maxLength": 320,
        "description": "The sign-in email address of the member to remove. Refused with `add`."
      },
      "restricted": {
        "type": "boolean",
        "description": "With `add`: allow restricted issues at `contribute` or `owner` when true. `view`, `report` and bounded members read none. Omission keeps a standing member's value; a new member defaults to false. Refused without `add`."
      },
      "accounts": {
        "type": [
          "array",
          "null"
        ],
        "items": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "minItems": 1,
        "maxItems": 19,
        "uniqueItems": true,
        "description": "With `add`: null, or 1 to 19 distinct account ids. The member's own account is added to the list. A list bounds access to issues holding a report recorded under one of those accounts, with no restricted issue. Null clears the bound; omission keeps the standing value. Refused without `add`."
      }
    }
  },
  "response": {
    "type": "object",
    "required": [
      "contract_version",
      "space",
      "members",
      "users"
    ],
    "properties": {
      "contract_version": {
        "const": 1
      },
      "reference": {
        "type": "string",
        "pattern": "^[0-9a-f]{10}$",
        "description": "The short reference the platform recorded your call under: ten lowercase hexadecimal characters, the value in the call's record row. Quote it when you report the call."
      },
      "space": {
        "type": "string",
        "description": "The space shared."
      },
      "members": {
        "type": "array",
        "items": {
          "type": "object",
          "required": [
            "account",
            "address",
            "level",
            "added_at",
            "role",
            "restricted"
          ],
          "properties": {
            "account": {
              "type": "string",
              "description": "The member's account identifier, the one its claims and its `person:<account>` carry."
            },
            "address": {
              "type": "string",
              "description": "The sign-in email address the member was added by."
            },
            "level": {
              "type": "string",
              "enum": [
                "view",
                "report",
                "contribute",
                "owner"
              ]
            },
            "added_at": {
              "type": "string",
              "description": "The instant the member was added, or its level last moved."
            },
            "role": {
              "type": "string",
              "description": "The level's name: `view` is Viewer, `report` Reporter, `contribute` Contributor and `owner` Admin. Admin is a member, not the space's owner."
            },
            "restricted": {
              "type": "boolean",
              "description": "Whether the member can read restricted issues at its level. False for a bounded member. A row written before this setting follows its level: `contribute` and `owner` admit restricted issues; `view` and `report` do not."
            },
            "accounts": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "The accounts bounding this member's access, including its own. Present only for a bounded member, which reads only issues holding a report recorded under one of these accounts and never restricted issues."
            }
          }
        },
        "description": "The members of the space after the call, oldest first; you, the owner, are not among them."
      },
      "users": {
        "type": "integer",
        "minimum": 1,
        "description": "The members plus you."
      },
      "mail": {
        "type": "array",
        "items": {
          "type": "object",
          "required": [
            "account",
            "sent"
          ],
          "properties": {
            "account": {
              "type": "string",
              "description": "The member's account identifier, as in members[].account."
            },
            "sent": {
              "type": "boolean",
              "description": "True when the platform hands the email to its sender. False when it cannot hand it off. The share takes effect either way, and delivery is unconfirmed."
            }
          },
          "additionalProperties": false
        },
        "description": "One entry for the member this call added or removed, or whose level, account bound or restricted-issue access it changed. An unchanged call returns an empty array."
      }
    }
  }
}

Shared contracts #