SDK reference / Models

Models.Messaging namespace

Types

TypeKindDescription
AckQueueMessagesRequestclassRequest payload for `:ack` on a Queue.
AckQueueMessagesResponseclassResponse from `:ack` on a Queue.
BrokerclassA managed message broker: one NATS JetStream account on the cell's broker server (W141; ADR-0819). The account is the server's ownisolation: subjects, streams and consumers of one broker do not exist for any other broker or project. Connect with credentials from`:issueCredentials`; publish, subscribe, and keep durable file-backed streams within the account's limits.
BrokerCredentialsclassA user of the broker's account: a random username and password, returned once (W141; ADR-0902: never to an agent).The password is stored sealed under the project's key; the server holds the user until `expiresAt`.
BrokerStateenumBroker lifecycle states (W141; ADR-0819, ADR-0105).
Broker_annotationsclassAt most 256 KiB in all; never policy input.
Broker_labelsclassAt most 64.
DeadLetterPolicyclassDead-letter routing policy for a Queue (ADR-0805 §3).
DeadLetterPolicyMergePatchUpdateOrCreateclassDead-letter routing policy for a Queue (ADR-0805 §3).
EventSubscriptionclassA customer CloudEvents 1.0 event subscription routing matching project events to a Queue or WebhookEndpoint (W54; ADR-0805 §1–§4).
EventSubscriptionMergePatchUpdateclassA customer CloudEvents 1.0 event subscription routing matching project events to a Queue or WebhookEndpoint (W54; ADR-0805 §1–§4).
EventSubscriptionMergePatchUpdate_deadLetterQueueMember1class
EventSubscriptionMergePatchUpdate_descriptionMember1class
EventSubscriptionMergePatchUpdate_destinationQueueMember1class
EventSubscriptionMergePatchUpdate_destinationWebhookEndpointMember1class
EventSubscriptionMergePatchUpdate_displayNameMember1class
EventSubscriptionMergePatchUpdate_subjectPrefixMember1class
EventSubscriptionMergePatchUpdate_typePrefixMember1class
EventSubscriptionStateenumEvent subscription lifecycle states (ADR-0805, ADR-1103).
EventSubscription_annotationsclassAt most 256 KiB in all; never policy input.
EventSubscription_extensionsclassOptional exact CloudEvents extension attribute matches.
EventSubscription_labelsclassAt most 64.
ExtendQueueLeaseRequestclassRequest payload for `:extendLease` on a Queue.
ExtendQueueLeaseResponseclassResponse from `:extendLease` on a Queue.
IssueBrokerCredentialsRequestclassRequest for a broker credential (W141).
IssueRealtimeConnectionTokenRequestclassRequest for a realtime connection token (W142).
ListEventSubscriptionDeliveriesResponseclassResponse from `:listDeliveries` on an EventSubscription.
ListQueueConsumersResponseclassResponse from `:listConsumers` on a Queue.
ListWebhookAttemptsResponseclassResponse from `:listAttempts` on a WebhookEndpoint.
NackQueueMessagesRequestclassRequest payload for `:nack` on a Queue.
NackQueueMessagesResponseclassResponse from `:nack` on a Queue.
PeekQueueMessagesRequestclassRequest payload for `:peek` on a Queue: a look at what is stored, which leases nothing and changes no delivery (R4: it reads customer data).
PeekQueueMessagesResponseclassResponse from `:peek` on a Queue.
PeekedQueueMessageclassOne message as `:peek` shows it: no lease token, no change of attempt or visibility.
PeekedQueueMessage_attributesclassThe message's attributes.
PublishRealtimeTestResponseclassResult of `:publishTest` on a realtime channel.
PurgeQueueResponseclassResponse from `:purge` on a Queue (risk class R3 per ADR-0805 §3).
QueueclassA PostgreSQL-backed transactional customer queue with visibility leases and dead-letter routing (W54; ADR-0805 §3).
QueueConsumerclassOne caller that received from a queue recently.
QueueMergePatchUpdateclassA PostgreSQL-backed transactional customer queue with visibility leases and dead-letter routing (W54; ADR-0805 §3).
QueueMergePatchUpdate_descriptionMember1class
QueueMergePatchUpdate_displayNameMember1class
QueueMergePatchUpdate_maxMessageSizeBytesMember1class
QueueMergePatchUpdate_messageRetentionSecondsMember1class
QueueMergePatchUpdate_tierMember1class
QueueMergePatchUpdate_visibilityTimeoutSecondsMember1class
QueueStateenumCustomer queue lifecycle states (ADR-0805, ADR-1103).
Queue_annotationsclassAt most 256 KiB in all; never policy input.
Queue_labelsclassAt most 64.
ReadRealtimeHistoryRequestclassRequest payload for `:readHistory` on a realtime channel.
RealtimeChannelclassA realtime channel: publish and subscribe over WebSocket on the location's Centrifugo server (W142; ADR-0825). The channel's name onthe server carries the project's UID and the channel's UID, and a client reaches it only with tokens from `:issueConnectionToken`:the server itself checks the signature, the expiry, the channel and the project of every connection and subscription, so a token of oneproject never subscribes or publishes to another project's channel. Subscribers may publish; history is kept in the server's memory only.
RealtimeChannelStateenumRealtime channel lifecycle states (W142; ADR-0825, ADR-0105).
RealtimeChannel_annotationsclassAt most 256 KiB in all; never policy input.
RealtimeChannel_labelsclassAt most 64.
RealtimeConnectionTokenclassA connection token and a subscription token for one channel, returned once (W142; ADR-0902: never to an agent). Both are ES256 JWTs therealtime server verifies itself; nothing is stored, so a token cannot be revoked before it expires.
RealtimeHistoryResponseclassWhat a realtime channel's history holds (risk class R4: it is what clients published, customer data).
ReceiveQueueMessagesRequestclassRequest payload for `:receive` on a Queue (ADR-0805 §3).
ReceiveQueueMessagesResponseclassResponse from `:receive` on a Queue.
ReceivedQueueMessageclassA leased queue message returned by `:receive` (ADR-0805 §3).
ReceivedQueueMessage_attributesclassOptional message attributes.
RedeliverWebhookRequestclassRequest payload for `:redeliver` on a WebhookEndpoint (ADR-0805 §5; C-017, ADR-0912). It names a delivery the endpoint alreadyholds, and the stored payload is sent again. A caller-chosen type or payload is refused: the platform signs nothing a caller wrote.
RedriveQueueRequestclassRequest payload for `:redrive` on a dead-letter Queue: move its messages back to the queue they came from.
RedriveQueueResponseclassResponse from `:redrive`.
RotateWebhookSecretRequestclassRequest payload for `:rotateSecret` on a WebhookEndpoint (ADR-0805 §5).
SendQueueMessageEntryclassOne message entry in a `:send` batch (≤64 KiB per message, ≤32 messages per call; ADR-0805 §3).
SendQueueMessageEntry_attributesclassOptional structured string attributes carried with the message.
SendQueueMessagesRequestclassRequest payload for `:send` on a Queue (ADR-0805 §3).
SendQueueMessagesResponseclassResponse from `:send` on a Queue.
SendWebhookTestEventRequestclassRequest payload for `:sendTestEvent` on a WebhookEndpoint: the platform writes and signs the event, the caller chooses nothing in it.
SentQueueMessageResultclassResult for one sent queue message.
TestEventFilterRequestclassRequest payload for `:testFilter` on an EventSubscription.
TestEventFilterRequest_extensionsclassCloudEvents extension attributes to test.
TestEventFilterResponseclassResult of `:testFilter`: whether the subscription would take such an event.
WebhookDeliveryAttemptclassOne recorded delivery attempt for a WebhookEndpoint (ADR-0805 §5).
WebhookEndpointclassA customer webhook endpoint receiving Standard Webhooks HMAC-SHA256 signed CloudEvents over HTTPS via Smokescreen (W54; ADR-0805 §5).
WebhookEndpointMergePatchUpdateclassA customer webhook endpoint receiving Standard Webhooks HMAC-SHA256 signed CloudEvents over HTTPS via Smokescreen (W54; ADR-0805 §5).
WebhookEndpointMergePatchUpdate_descriptionMember1class
WebhookEndpointMergePatchUpdate_displayNameMember1class
WebhookEndpointMergePatchUpdate_enabledMember1class
WebhookEndpointStateenumWebhook endpoint lifecycle states (ADR-0805, ADR-1103).
WebhookEndpoint_annotationsclassAt most 256 KiB in all; never policy input.
WebhookEndpoint_customHeadersclassOptional static custom headers included on outbound webhook requests.
WebhookEndpoint_labelsclassAt most 64.