@protobase/schema 0.59.3 → 0.60.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calls/call-protocol.d.ts +22 -3
- package/dist/internal.d.ts +2 -2
- package/package.json +1 -1
|
@@ -8,7 +8,10 @@ export type CallVideoLayer = {
|
|
|
8
8
|
height: number;
|
|
9
9
|
bitrate: number;
|
|
10
10
|
};
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* A track the browser is about to send: `cid` is the id its description names it by in `msid`, its `MediaStreamTrack.id`
|
|
13
|
+
* to a media server, the id of the stream it is sent on to other members (`peer`).
|
|
14
|
+
*/
|
|
12
15
|
export type CallTrackRequest = {
|
|
13
16
|
cid: string;
|
|
14
17
|
kind: 'audio' | 'video';
|
|
@@ -26,6 +29,8 @@ export type CallCandidate = {
|
|
|
26
29
|
};
|
|
27
30
|
/** What the browser hands a new server session so it resumes the member's media session where the last one left it. */
|
|
28
31
|
export type CallResume = {
|
|
32
|
+
/** The call the member is in, from `joined`: a resume of a call that ended is refused. */
|
|
33
|
+
call: string;
|
|
29
34
|
/** The member's participant in the media server, from `joined`. */
|
|
30
35
|
participant: string;
|
|
31
36
|
/** The browser's current local (offer) and remote (answer) descriptions, with a media server. */
|
|
@@ -94,11 +99,20 @@ export type CallRemoteTrack = {
|
|
|
94
99
|
source: CallTrackSource;
|
|
95
100
|
muted: boolean;
|
|
96
101
|
};
|
|
97
|
-
/**
|
|
98
|
-
|
|
102
|
+
/**
|
|
103
|
+
* Why the member is no longer in the call: `ended`, `removed`, `full` and `refused` are final, `rejoin` asks the
|
|
104
|
+
* browser to join anew, and `unavailable` is a server that could not take the member in, after the browser tried again.
|
|
105
|
+
*/
|
|
106
|
+
export type CallLeftReason = 'ended' | 'removed' | 'full' | 'refused' | 'unavailable' | 'rejoin';
|
|
107
|
+
/** Someone in a call, since when (ISO 8601). */
|
|
108
|
+
export type CallRosterMember = {
|
|
109
|
+
member: string;
|
|
110
|
+
joined_at: string;
|
|
111
|
+
};
|
|
99
112
|
/** A message from the server. */
|
|
100
113
|
export type CallServerMessage = {
|
|
101
114
|
type: 'joined';
|
|
115
|
+
call: string;
|
|
102
116
|
mode: CallMode;
|
|
103
117
|
participant: string;
|
|
104
118
|
iceServers: {
|
|
@@ -142,6 +156,11 @@ export type CallServerMessage = {
|
|
|
142
156
|
type: 'unpublished';
|
|
143
157
|
sid: string;
|
|
144
158
|
} |
|
|
159
|
+
/** Everyone in the call, the member too, in the order they came, whenever that changes. */
|
|
160
|
+
{
|
|
161
|
+
type: 'members';
|
|
162
|
+
members: CallRosterMember[];
|
|
163
|
+
} |
|
|
145
164
|
/** With `peer`: every other member in the call, whenever that changes. */
|
|
146
165
|
{
|
|
147
166
|
type: 'peers';
|
package/dist/internal.d.ts
CHANGED
|
@@ -37,5 +37,5 @@ import { historyIdParam, historyIdPattern, historyPath } from "./history-path.js
|
|
|
37
37
|
import { Availability, PersonStatus, StatusInput, availabilities, heldStatus, maxStatusText, statusPath, statusTextProblem } from "./status.js";
|
|
38
38
|
import { listColumnNames } from "./list-columns.js";
|
|
39
39
|
import { builtInFieldTypes } from "./built-in-field-types.js";
|
|
40
|
-
import { CallCandidate, CallClientMessage, CallDescription, CallLeftReason, CallMode, CallRemoteTrack, CallResume, CallServerMessage, CallTrackRequest, CallTrackSource, CallVideoLayer } from "./calls/call-protocol.js";
|
|
41
|
-
export { type AddressCheck, type Availability, type CallCandidate, type CallClientMessage, type CallDescription, type CallLeftReason, type CallMode, type CallRemoteTrack, type CallResume, type CallServerMessage, type CallTrackRequest, type CallTrackSource, type CallVideoLayer, type FormulaNode, type Locale, type MobileReleaseAnswer, type PersonStatus, type PluginHost, type PluginRequirement, type PropShapes, type RefShape, type ReleaseBinding, type SearchTerm, type StatusInput, actionConditionError, actionInputErrors, addressErrors, addressPlaceholders, apiOriginMeta, appHrefError, applyAssistantEvent, authBasePath, availabilities, boardErrors, bottomBarFor, builtInFieldTypes, capacitorOrigin, cardPhotoLimit, chartFields, checkEventFilter, checkedAccept, checkedProvider, datesErrors, decodeKey, defaultRecentLimit, deviceIdParam, devicesPath, displayFields, emptyAssistantState, encodeKey, fieldRefsIn, fillAddress, heldStatus, historyIdParam, historyIdPattern, historyPath, hrefField, hrefPlaceholders, humanize, inRange, isFieldRef, isGroupChart, isLocale, labelFieldOf, layoutItems, leavesApp, linkActionError, listColumnNames, locales, markFieldRefs, matchedSearchField, matchesSearch, maxStatusText, mobileReleaseBasePath, mobileReleaseParams, mobileReleasePath, mobileReleaseQuery, mobileReleasesPath, navRecentErrors, parseCapability, parseFormula, parseSize, parseTable, pickLocale, pluginProblem, promptError, promptFields, pruneByShape, pushRecord, readEventStream, recordTitle, recordTitleField, redactSecrets, releaseManifestFile, releaseStatementContext, releaseStatementFile, renderPrompt, searchTerms, serviceWorkerFile, shapes, shownInputs, statusPath, statusTextProblem, statusTones, tableDisplay, termMatches, unmarkFieldRefs, updateSetErrors, updateValues, viewOfList, webhookResources };
|
|
40
|
+
import { CallCandidate, CallClientMessage, CallDescription, CallLeftReason, CallMode, CallRemoteTrack, CallResume, CallRosterMember, CallServerMessage, CallTrackRequest, CallTrackSource, CallVideoLayer } from "./calls/call-protocol.js";
|
|
41
|
+
export { type AddressCheck, type Availability, type CallCandidate, type CallClientMessage, type CallDescription, type CallLeftReason, type CallMode, type CallRemoteTrack, type CallResume, type CallRosterMember, type CallServerMessage, type CallTrackRequest, type CallTrackSource, type CallVideoLayer, type FormulaNode, type Locale, type MobileReleaseAnswer, type PersonStatus, type PluginHost, type PluginRequirement, type PropShapes, type RefShape, type ReleaseBinding, type SearchTerm, type StatusInput, actionConditionError, actionInputErrors, addressErrors, addressPlaceholders, apiOriginMeta, appHrefError, applyAssistantEvent, authBasePath, availabilities, boardErrors, bottomBarFor, builtInFieldTypes, capacitorOrigin, cardPhotoLimit, chartFields, checkEventFilter, checkedAccept, checkedProvider, datesErrors, decodeKey, defaultRecentLimit, deviceIdParam, devicesPath, displayFields, emptyAssistantState, encodeKey, fieldRefsIn, fillAddress, heldStatus, historyIdParam, historyIdPattern, historyPath, hrefField, hrefPlaceholders, humanize, inRange, isFieldRef, isGroupChart, isLocale, labelFieldOf, layoutItems, leavesApp, linkActionError, listColumnNames, locales, markFieldRefs, matchedSearchField, matchesSearch, maxStatusText, mobileReleaseBasePath, mobileReleaseParams, mobileReleasePath, mobileReleaseQuery, mobileReleasesPath, navRecentErrors, parseCapability, parseFormula, parseSize, parseTable, pickLocale, pluginProblem, promptError, promptFields, pruneByShape, pushRecord, readEventStream, recordTitle, recordTitleField, redactSecrets, releaseManifestFile, releaseStatementContext, releaseStatementFile, renderPrompt, searchTerms, serviceWorkerFile, shapes, shownInputs, statusPath, statusTextProblem, statusTones, tableDisplay, termMatches, unmarkFieldRefs, updateSetErrors, updateValues, viewOfList, webhookResources };
|