guests

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2026 License: MIT Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package guests defines the permission payloads shared by the CLI and MCP.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InvitePermissions

type InvitePermissions struct {
	Title            string `json:"title,omitempty" jsonschema:"Optional invitation title."`
	ReadOnly         *bool  `json:"read_only,omitempty" jsonschema:"Invite with read-only trip access."`
	CanAddGuests     *bool  `json:"can_add_guests,omitempty" jsonschema:"Allow managing trip guests."`
	CanSeeExpenses   *bool  `json:"can_see_expenses,omitempty" jsonschema:"Allow viewing expenses."`
	CanEditExpenses  *bool  `json:"can_edit_expenses,omitempty" jsonschema:"Allow editing expenses."`
	CanSeeDocuments  *bool  `json:"can_see_documents,omitempty" jsonschema:"Allow viewing documents."`
	CanEditDocuments *bool  `json:"can_edit_documents,omitempty" jsonschema:"Allow editing documents."`
	IsTravelling     *bool  `json:"is_travelling,omitempty" jsonschema:"True for travelling; false for following."`
}

Invitations use read_only rather than the collaborator update's can_edit.

type UpdatePermissions

type UpdatePermissions struct {
	CanEdit              *bool `json:"can_edit,omitempty" jsonschema:"Allow editing the trip."`
	CanAddGuests         *bool `json:"can_add_guests,omitempty" jsonschema:"Allow managing trip guests."`
	CanSeeExpenses       *bool `json:"can_see_expenses,omitempty" jsonschema:"Allow viewing expenses."`
	CanEditExpenses      *bool `json:"can_edit_expenses,omitempty" jsonschema:"Allow editing expenses."`
	CanSeeDocuments      *bool `json:"can_see_documents,omitempty" jsonschema:"Allow viewing documents."`
	CanEditDocuments     *bool `json:"can_edit_documents,omitempty" jsonschema:"Allow editing documents."`
	IsTravelling         *bool `` /* 145-byte string literal not displayed */
	ReceiveNotifications *bool `` /* 149-byte string literal not displayed */
}

Pointers distinguish an omitted permission from an explicit false value.

func (UpdatePermissions) Empty

func (p UpdatePermissions) Empty() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL