Skip to main content

Module messaging

Module messaging 

Source
Expand description

gtc op messaging endpoint {add,list,show,link-bundle,unlink-bundle,set-welcome-flow,remove} (Phase M1.2).

Manages Environment.messaging_endpoints: Vec<MessagingEndpoint> plus the derived <env_dir>/messaging/ projection. Each mutation:

  1. transacts under the env flock,
  2. validates the resulting Environment,
  3. saves environment.json,
  4. re-materializes the per-endpoint files and index.json,
  5. records the operation in the local-only audit log.

Endpoint ids are ULID-shaped — minted on add, accepted as positionals on every other verb. provider_id is the INSTANCE identity (teams-legal-bot) distinct from provider_type (teams); the two together are unique per environment.

Structs§

EndpointAddPayload
EndpointLinkBundlePayload
EndpointRemovePayload
EndpointRotateWebhookSecretPayload
EndpointSetWelcomeFlowPayload
EndpointSummary
WelcomeFlowSummary

Functions§

add
link_bundle
list
remove
rotate_webhook_secret
set_welcome_flow
show
unlink_bundle