Files
Signal-Server/grpc/org.signal.chat.common.html
T

1251 lines
26 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Protobuf module documentation</title>
<link rel="stylesheet" href="static/mystyles.css" />
<script src="static/fontawesome.js"></script>
<script src="static/lunr.js"></script>
<script src="static/theme.js"></script>
</head>
<body>
<div class="container">
<nav class="level pt-6 mb-5 pb-2 bottom-border">
<div class="level-left">
<p class="level-item has-text-centered is-size-3 has-text-weight-medium">
<a class="link is-info" href="index.html">
Protobuf module documentation
</a>
</p>
</div>
<div class="level-right">
<form action="search.html" class="mr-2 has-text-centered">
<input type="text" name="query" class="input mr-3 navbar-search-query-input" placeholder="Search">
<input type="submit" class="button is-primary mr-5" value="Search" />
</form>
<p class="level-item has-text-centered is-size-5">
<a href="" class="link is-info mr-5" target="_blank">
<span>Source</span>
</a>
<button class="theme-toggle" id="theme-toggle" title="Toggles light & dark" aria-label="auto" aria-live="polite" type="button">
<svg class="sun-and-moon" aria-hidden="true" width="24" height="24" viewBox="0 0 24 24">
<mask class="moon" id="moon-mask">
<rect x="0" y="0" width="100%" height="100%" fill="white" />
<circle cx="24" cy="10" r="6" fill="black" />
</mask>
<circle class="sun" cx="12" cy="12" r="6" mask="url(#moon-mask)" fill="currentColor" />
<g class="sun-beams" stroke="currentColor">
<line x1="12" y1="1" x2="12" y2="3" />
<line x1="12" y1="21" x2="12" y2="23" />
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64" />
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78" />
<line x1="1" y1="12" x2="3" y2="12" />
<line x1="21" y1="12" x2="23" y2="12" />
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36" />
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22" />
</g>
</svg>
</button>
</p>
</div>
</nav>
</div>
<div id="main-content" class="container mb-6">
<p class="mb-2">
<a style="font-size: 0.9em" href="index.html">← Back to packages</a>
</p>
<h3 class="title is-3">
Package <code>org.signal.chat.common</code>
</h3>
<div class="block">
<p>
<a href="#message-org.signal.chat.common.AccountIdentifiers">
<span class="tag" style="min-width: 6em">Message</span>
<code>AccountIdentifiers</code>
</a>
</p>
<p>
<a href="#message-org.signal.chat.common.Badge">
<span class="tag" style="min-width: 6em">Message</span>
<code>Badge</code>
</a>
</p>
<p>
<a href="#message-org.signal.chat.common.BadgeSvg">
<span class="tag" style="min-width: 6em">Message</span>
<code>BadgeSvg</code>
</a>
</p>
<p>
<a href="#message-org.signal.chat.common.EcPreKey">
<span class="tag" style="min-width: 6em">Message</span>
<code>EcPreKey</code>
</a>
</p>
<p>
<a href="#message-org.signal.chat.common.EcSignedPreKey">
<span class="tag" style="min-width: 6em">Message</span>
<code>EcSignedPreKey</code>
</a>
</p>
<p>
<a href="#message-org.signal.chat.common.KemSignedPreKey">
<span class="tag" style="min-width: 6em">Message</span>
<code>KemSignedPreKey</code>
</a>
</p>
<p>
<a href="#message-org.signal.chat.common.S3UploadForm">
<span class="tag" style="min-width: 6em">Message</span>
<code>S3UploadForm</code>
</a>
</p>
<p>
<a href="#message-org.signal.chat.common.ServiceIdentifier">
<span class="tag" style="min-width: 6em">Message</span>
<code>ServiceIdentifier</code>
</a>
</p>
<p>
<a href="#message-org.signal.chat.common.UploadForm">
<span class="tag" style="min-width: 6em">Message</span>
<code>UploadForm</code>
</a>
</p>
<p>
<a href="#message-org.signal.chat.common.ZkCredential">
<span class="tag" style="min-width: 6em">Message</span>
<code>ZkCredential</code>
</a>
</p>
<p>
<a href="#enum-org.signal.chat.common.DeviceCapability">
<span class="tag" style="min-width: 6em">Enum</span>
<code>DeviceCapability</code>
</a>
</p>
<p>
<a href="#enum-org.signal.chat.common.IdentityType">
<span class="tag" style="min-width: 6em">Enum</span>
<code>IdentityType</code>
</a>
</p>
</div>
<div class="block">
</div>
<h3 class="title is-3">
Messages
</h3>
<div class="block">
<h4 class="title is-4 type-heading" id="message-org.signal.chat.common.AccountIdentifiers">
<span>
<a href="#message-org.signal.chat.common.AccountIdentifiers" title="org.signal.chat.common.AccountIdentifiers">message AccountIdentifiers</a>
</span>
</h4>
<div class="block content">
<p>All identifiers associated with an account.</p>
</div>
<table class="table is-fullwidth is-hoverable is-bordered">
<thead>
<tr>
<th></th>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>
service_identifiers
</td>
<td>
<code title="org.signal.chat.common.ServiceIdentifier">
repeated
<a href="org.signal.chat.common.html#message-org.signal.chat.common.ServiceIdentifier"><span title="org.signal.chat.common.ServiceIdentifier">org.signal.chat.common.ServiceIdentifier</span>
</a>
</code>
</td>
<td class="content"><p>A list of service identifiers for the identified account. Always includes
exactly one ACI service identifier and at most one PNI service identifier.</p></td>
</tr>
<tr>
<td>2</td>
<td>
e164
</td>
<td>
<code title="string">
<span>string</span>
</code>
</td>
<td class="content"><p>The phone number associated with the identified account. May be empty if
the given account does not have a phone number.</p></td>
</tr>
<tr>
<td>3</td>
<td>
username_hash
</td>
<td>
<code title="bytes">
<span>bytes</span>
</code>
</td>
<td class="content"><p>The username hash (if any) associated with the identified account. May be
empty if no username is associated with the identified account.</p></td>
</tr>
<tr>
<td>4</td>
<td>
username_link_handle
</td>
<td>
<code title="bytes">
<span>bytes</span>
</code>
</td>
<td class="content"><p>The username link handle UUID associated with the identified account.
May be empty if no username is associated with the identified account.</p></td>
</tr>
</tbody>
</table>
</div>
<div class="block">
<h4 class="title is-4 type-heading" id="message-org.signal.chat.common.Badge">
<span>
<a href="#message-org.signal.chat.common.Badge" title="org.signal.chat.common.Badge">message Badge</a>
</span>
</h4>
<div class="block content">
</div>
<table class="table is-fullwidth is-hoverable is-bordered">
<thead>
<tr>
<th></th>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>
id
</td>
<td>
<code title="string">
<span>string</span>
</code>
</td>
<td class="content"><p>An ID that uniquely identifies the badge.</p></td>
</tr>
<tr>
<td>2</td>
<td>
category
</td>
<td>
<code title="string">
<span>string</span>
</code>
</td>
<td class="content"><p>The category the badge falls in ("donor" or "other").</p></td>
</tr>
<tr>
<td>3</td>
<td>
name
</td>
<td>
<code title="string">
<span>string</span>
</code>
</td>
<td class="content"><p>The badge name.</p></td>
</tr>
<tr>
<td>4</td>
<td>
description
</td>
<td>
<code title="string">
<span>string</span>
</code>
</td>
<td class="content"><p>The badge description.</p></td>
</tr>
<tr>
<td>5</td>
<td>
sprites6
</td>
<td>
<code title="string">
repeated
<span>string</span>
</code>
</td>
<td class="content"><p>Different size badge SVG files.</p></td>
</tr>
<tr>
<td>6</td>
<td>
svg
</td>
<td>
<code title="string">
<span>string</span>
</code>
</td>
<td class="content"><p>File name of the scalable vector graphic representing this badge.</p></td>
</tr>
<tr>
<td>7</td>
<td>
svgs
</td>
<td>
<code title="org.signal.chat.common.BadgeSvg">
repeated
<a href="org.signal.chat.common.html#message-org.signal.chat.common.BadgeSvg"><span title="org.signal.chat.common.BadgeSvg">org.signal.chat.common.BadgeSvg</span>
</a>
</code>
</td>
<td class="content"><p>Pairs of light/dark SVG files designed for display at different sizes.</p></td>
</tr>
</tbody>
</table>
</div>
<div class="block">
<h4 class="title is-4 type-heading" id="message-org.signal.chat.common.BadgeSvg">
<span>
<a href="#message-org.signal.chat.common.BadgeSvg" title="org.signal.chat.common.BadgeSvg">message BadgeSvg</a>
</span>
</h4>
<div class="block content">
</div>
<table class="table is-fullwidth is-hoverable is-bordered">
<thead>
<tr>
<th></th>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>
light
</td>
<td>
<code title="string">
<span>string</span>
</code>
</td>
<td class="content"><p>File name of the scalable vector graphic for light mode.</p></td>
</tr>
<tr>
<td>2</td>
<td>
dark
</td>
<td>
<code title="string">
<span>string</span>
</code>
</td>
<td class="content"><p>File name of the scalable vector graphic for dark mode.</p></td>
</tr>
</tbody>
</table>
</div>
<div class="block">
<h4 class="title is-4 type-heading" id="message-org.signal.chat.common.EcPreKey">
<span>
<a href="#message-org.signal.chat.common.EcPreKey" title="org.signal.chat.common.EcPreKey">message EcPreKey</a>
</span>
</h4>
<div class="block content">
</div>
<table class="table is-fullwidth is-hoverable is-bordered">
<thead>
<tr>
<th></th>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>
key_id
</td>
<td>
<code title="int32">
<span>int32</span>
</code>
</td>
<td class="content"><p>A locally-unique identifier for this key, which will be provided by
peers using this key to encrypt messages so the private key can be looked
up.</p></td>
</tr>
<tr>
<td>2</td>
<td>
public_key
</td>
<td>
<code title="bytes">
<span>bytes</span>
</code>
</td>
<td class="content"><p>The public key, serialized in libsignal's elliptic-curve public key format.</p></td>
</tr>
</tbody>
</table>
</div>
<div class="block">
<h4 class="title is-4 type-heading" id="message-org.signal.chat.common.EcSignedPreKey">
<span>
<a href="#message-org.signal.chat.common.EcSignedPreKey" title="org.signal.chat.common.EcSignedPreKey">message EcSignedPreKey</a>
</span>
</h4>
<div class="block content">
</div>
<table class="table is-fullwidth is-hoverable is-bordered">
<thead>
<tr>
<th></th>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>
key_id
</td>
<td>
<code title="int32">
<span>int32</span>
</code>
</td>
<td class="content"><p>A locally-unique identifier for this key, which will be provided by
peers using this key to encrypt messages so the private key can be looked
up.</p></td>
</tr>
<tr>
<td>2</td>
<td>
public_key
</td>
<td>
<code title="bytes">
<span>bytes</span>
</code>
</td>
<td class="content"><p>The public key, serialized in libsignal's elliptic-curve public key format.</p></td>
</tr>
<tr>
<td>3</td>
<td>
signature
</td>
<td>
<code title="bytes">
<span>bytes</span>
</code>
</td>
<td class="content"><p>A signature of the public key, verifiable with the identity key for the
account/identity associated with this pre-key.</p></td>
</tr>
</tbody>
</table>
</div>
<div class="block">
<h4 class="title is-4 type-heading" id="message-org.signal.chat.common.KemSignedPreKey">
<span>
<a href="#message-org.signal.chat.common.KemSignedPreKey" title="org.signal.chat.common.KemSignedPreKey">message KemSignedPreKey</a>
</span>
</h4>
<div class="block content">
</div>
<table class="table is-fullwidth is-hoverable is-bordered">
<thead>
<tr>
<th></th>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>
key_id
</td>
<td>
<code title="int32">
<span>int32</span>
</code>
</td>
<td class="content"><p>An locally-unique identifier for this key, which will be provided by peers
using this key to encrypt messages so the private key can be looked up.</p></td>
</tr>
<tr>
<td>2</td>
<td>
public_key
</td>
<td>
<code title="bytes">
<span>bytes</span>
</code>
</td>
<td class="content"><p>The public key, serialized in libsignal's Kyber1024 public key format.</p></td>
</tr>
<tr>
<td>3</td>
<td>
signature
</td>
<td>
<code title="bytes">
<span>bytes</span>
</code>
</td>
<td class="content"><p>A signature of the public key, verifiable with the identity key for the
account/identity associated with this pre-key.</p></td>
</tr>
</tbody>
</table>
</div>
<div class="block">
<h4 class="title is-4 type-heading" id="message-org.signal.chat.common.S3UploadForm">
<span>
<a href="#message-org.signal.chat.common.S3UploadForm" title="org.signal.chat.common.S3UploadForm">message S3UploadForm</a>
</span>
</h4>
<div class="block content">
<p>An upload location, credentials, and metadata which may be used to upload an
object to AWS S3</p>
</div>
<table class="table is-fullwidth is-hoverable is-bordered">
<thead>
<tr>
<th></th>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>
key
</td>
<td>
<code title="string">
<span>string</span>
</code>
</td>
<td class="content"><p>The S3 key (i.e. path and filename) for the uploaded file.</p></td>
</tr>
<tr>
<td>2</td>
<td>
credential
</td>
<td>
<code title="string">
<span>string</span>
</code>
</td>
<td class="content"><p>A scoped credential. Includes the AWS access key, date, region targeted,
and AWS service.</p></td>
</tr>
<tr>
<td>3</td>
<td>
acl
</td>
<td>
<code title="string">
<span>string</span>
</code>
</td>
<td class="content"><p>The type of access control for the uploaded file.</p></td>
</tr>
<tr>
<td>4</td>
<td>
algorithm
</td>
<td>
<code title="string">
<span>string</span>
</code>
</td>
<td class="content"><p>The algorithm used to calculate a signature on the S3 policy.</p></td>
</tr>
<tr>
<td>5</td>
<td>
date
</td>
<td>
<code title="string">
<span>string</span>
</code>
</td>
<td class="content"><p>The timestamp (formatted as "yyyyMMdd'T'HHmmssX") at which the S3 policy
and signature were generated.</p></td>
</tr>
<tr>
<td>6</td>
<td>
policy
</td>
<td>
<code title="string">
<span>string</span>
</code>
</td>
<td class="content"><p>The S3 policy (as a base64-encoded JSON string) used to upload the file.</p></td>
</tr>
<tr>
<td>7</td>
<td>
signature
</td>
<td>
<code title="string">
<span>string</span>
</code>
</td>
<td class="content"><p>A digital signature (formatted as a hex string) on the S3 policy.</p></td>
</tr>
</tbody>
</table>
</div>
<div class="block">
<h4 class="title is-4 type-heading" id="message-org.signal.chat.common.ServiceIdentifier">
<span>
<a href="#message-org.signal.chat.common.ServiceIdentifier" title="org.signal.chat.common.ServiceIdentifier">message ServiceIdentifier</a>
</span>
</h4>
<div class="block content">
</div>
<table class="table is-fullwidth is-hoverable is-bordered">
<thead>
<tr>
<th></th>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>
identity_type
</td>
<td>
<code title="org.signal.chat.common.IdentityType">
<a href="org.signal.chat.common.html#enum-org.signal.chat.common.IdentityType"><span title="org.signal.chat.common.IdentityType">org.signal.chat.common.IdentityType</span>
</a>
</code>
</td>
<td class="content"><p>The type of identity represented by this service identifier.</p></td>
</tr>
<tr>
<td>2</td>
<td>
uuid
</td>
<td>
<code title="bytes">
<span>bytes</span>
</code>
</td>
<td class="content"><p>The UUID of the identity represented by this service identifier.</p></td>
</tr>
</tbody>
</table>
</div>
<div class="block">
<h4 class="title is-4 type-heading" id="message-org.signal.chat.common.UploadForm">
<span>
<a href="#message-org.signal.chat.common.UploadForm" title="org.signal.chat.common.UploadForm">message UploadForm</a>
</span>
</h4>
<div class="block content">
<p>An upload location and credentials which may be used to upload an object
to an external CDN</p>
</div>
<table class="table is-fullwidth is-hoverable is-bordered">
<thead>
<tr>
<th></th>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>
cdn
</td>
<td>
<code title="uint32">
<span>uint32</span>
</code>
</td>
<td class="content"><p>Indicates the CDN type. 3 indicates resumable uploads using TUS</p></td>
</tr>
<tr>
<td>2</td>
<td>
key
</td>
<td>
<code title="string">
<span>string</span>
</code>
</td>
<td class="content"><p>The location within the specified cdn where the finished upload can be found</p></td>
</tr>
<tr>
<td>3</td>
<td>
headers
</td>
<td>
<code title="map&lt;string, string&gt;">
<span>map&lt;string, string&gt;</span>
</code>
</td>
<td class="content"><p>A map of headers to include with all upload requests. Potentially contains
time-limited upload credentials</p></td>
</tr>
<tr>
<td>4</td>
<td>
signed_upload_location
</td>
<td>
<code title="string">
<span>string</span>
</code>
</td>
<td class="content"><p>The URL to upload to with the appropriate protocol</p></td>
</tr>
</tbody>
</table>
</div>
<div class="block">
<h4 class="title is-4 type-heading" id="message-org.signal.chat.common.ZkCredential">
<span>
<a href="#message-org.signal.chat.common.ZkCredential" title="org.signal.chat.common.ZkCredential">message ZkCredential</a>
</span>
</h4>
<div class="block content">
</div>
<table class="table is-fullwidth is-hoverable is-bordered">
<thead>
<tr>
<th></th>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>
redemption_time
</td>
<td>
<code title="int64">
<span>int64</span>
</code>
</td>
<td class="content"><p>Day on which this credential can be redeemed, in UTC seconds since epoch</p></td>
</tr>
<tr>
<td>2</td>
<td>
credential
</td>
<td>
<code title="bytes">
<span>bytes</span>
</code>
</td>
<td class="content"><p>The ZK credential, using libsignal's serialization</p></td>
</tr>
</tbody>
</table>
</div>
<h3 class="title is-3">
Enums
</h3>
<div class="block">
<h4 class="title is-4 type-heading" id="enum-org.signal.chat.common.DeviceCapability">
<a href="#enum-org.signal.chat.common.DeviceCapability" title="org.signal.chat.common.DeviceCapability">enum DeviceCapability</a>
</h4>
<div class="block content">
<p></p>
</div>
<table class="table is-fullwidth is-hoverable is-bordered">
<thead>
<tr>
<th>Name</th>
<th>Number</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>DEVICE_CAPABILITY_UNSPECIFIED</code></td>
<td>0</td>
<td class="content"></td>
</tr>
<tr>
<td><code>DEVICE_CAPABILITY_STORAGE</code></td>
<td>1</td>
<td class="content"></td>
</tr>
<tr>
<td><code>DEVICE_CAPABILITY_TRANSFER</code></td>
<td>2</td>
<td class="content"></td>
</tr>
<tr>
<td><code>DEVICE_CAPABILITY_ATTACHMENT_BACKFILL</code></td>
<td>6</td>
<td class="content"></td>
</tr>
<tr>
<td><code>DEVICE_CAPABILITY_SPARSE_POST_QUANTUM_RATCHET</code></td>
<td>7</td>
<td class="content"></td>
</tr>
<tr>
<td><code>DEVICE_CAPABILITY_PROFILES_V2</code></td>
<td>8</td>
<td class="content"></td>
</tr>
<tr>
<td><code>DEVICE_CAPABILITY_USERNAME_CHANGE_SYNC_MESSAGE</code></td>
<td>9</td>
<td class="content"></td>
</tr>
<tr>
<td><code>DEVICE_CAPABILITY_OPTIONAL_PHONE_NUMBER</code></td>
<td>10</td>
<td class="content"></td>
</tr>
</tbody>
</table>
</div>
<div class="block">
<h4 class="title is-4 type-heading" id="enum-org.signal.chat.common.IdentityType">
<a href="#enum-org.signal.chat.common.IdentityType" title="org.signal.chat.common.IdentityType">enum IdentityType</a>
</h4>
<div class="block content">
<p></p>
</div>
<table class="table is-fullwidth is-hoverable is-bordered">
<thead>
<tr>
<th>Name</th>
<th>Number</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>IDENTITY_TYPE_UNSPECIFIED</code></td>
<td>0</td>
<td class="content"></td>
</tr>
<tr>
<td><code>IDENTITY_TYPE_ACI</code></td>
<td>1</td>
<td class="content"></td>
</tr>
<tr>
<td><code>IDENTITY_TYPE_PNI</code></td>
<td>2</td>
<td class="content"></td>
</tr>
</tbody>
</table>
</div>
</div>
<footer class="footer">
<div class="content has-text-centered">
<p>Built with <strong><a href="https://github.com/markvincze/sabledocs" target="_blank">sabledocs</a></strong>.</p>
</div>
</footer>
</body>
</html>