@sylphx/sdk 0.32.5 → 0.32.9
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/auth.d.ts +1 -1
- package/dist/broker.d.ts +61 -1
- package/dist/broker.js +33 -1
- package/dist/broker.js.map +1 -1
- package/dist/events.d.ts +738 -3
- package/dist/events.js +575 -2
- package/dist/events.js.map +1 -1
- package/dist/ids.d.ts +25 -0
- package/dist/ids.js +5 -0
- package/dist/ids.js.map +1 -1
- package/dist/methods.js +367 -2
- package/dist/methods.js.map +1 -1
- package/dist/money.d.ts +332 -2
- package/dist/money.js +284 -0
- package/dist/money.js.map +1 -1
- package/dist/notify.d.ts +94 -3
- package/dist/notify.js +53 -0
- package/dist/notify.js.map +1 -1
- package/dist/observability.d.ts +15 -2
- package/dist/observability.js +2 -0
- package/dist/observability.js.map +1 -1
- package/package.json +1 -1
package/dist/events.d.ts
CHANGED
|
@@ -13,6 +13,269 @@ export interface AckQueueMessagesResponse {
|
|
|
13
13
|
/** Leases that were stale and not applied. */
|
|
14
14
|
staleLeases?: MessageLease[];
|
|
15
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* Record an Auth-verified link grant before merging; only the trusted backend
|
|
18
|
+
* may record the exact source/target/receipt binding. This does not link Auth accounts.
|
|
19
|
+
*/
|
|
20
|
+
export interface BindChatIdentityRequest {
|
|
21
|
+
/** Target platform Chat profile. */
|
|
22
|
+
name: string;
|
|
23
|
+
/** Title-scoped guest identity whose Auth link has been verified. */
|
|
24
|
+
sourceClientId?: string;
|
|
25
|
+
/** Immutable receipt from the verified Auth link. */
|
|
26
|
+
linkReceiptId?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Policy on the existing Realtime channel. Set at creation; Chat cannot be
|
|
30
|
+
* converted to an expiring generic channel. Only a trusted tenant backend with
|
|
31
|
+
* events:write/events:publish acts for its authenticated end users. Player
|
|
32
|
+
* sessions act only for their bound identity on the permitted Chat methods.
|
|
33
|
+
* No publishable key, supplied official badge or player verdict is trusted.
|
|
34
|
+
*/
|
|
35
|
+
export interface ChatChannelPolicy {
|
|
36
|
+
/** Purpose of the conversation. */
|
|
37
|
+
kind?: ChatChannelKind;
|
|
38
|
+
/** Code of conduct version every sending member must have accepted. */
|
|
39
|
+
termsVersion?: string;
|
|
40
|
+
/** Per-member sliding-minute message ceiling; default 30, maximum 600. */
|
|
41
|
+
messagesPerMinute?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Exact two participants for a DM or support; invited roster for groups.
|
|
44
|
+
* A player's empty group roster defaults to its creator. Backend-created
|
|
45
|
+
* groups with an empty roster admit authenticated players through join.
|
|
46
|
+
*/
|
|
47
|
+
participantIds?: string[];
|
|
48
|
+
/** Optional originating title for world/room/guild/support. Empty is cross-title. */
|
|
49
|
+
titleId?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Trusted-backend appearance. Money feature keys are
|
|
53
|
+
* chat.cosmetic.avatar_frame.<id>, chat.cosmetic.name_color.<id> and
|
|
54
|
+
* chat.cosmetic.title_badge.<id>; each complete key follows
|
|
55
|
+
* [a-z][a-z0-9_.]{0,63}. Empty ids clear the corresponding appearance.
|
|
56
|
+
*/
|
|
57
|
+
export interface ChatCosmetics {
|
|
58
|
+
/** Owned avatar-frame identifier, assigned by the trusted backend. */
|
|
59
|
+
avatarFrameId?: string;
|
|
60
|
+
/** Owned name-color identifier, assigned by the trusted backend. */
|
|
61
|
+
nameColorId?: string;
|
|
62
|
+
/** Owned title-badge identifier, assigned by the trusted backend. */
|
|
63
|
+
titleBadgeId?: string;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* A content-hashed image; delivery requires an approved moderation receipt for
|
|
67
|
+
* this exact digest, URI and uploader. Uploading does not approve content.
|
|
68
|
+
*/
|
|
69
|
+
export interface ChatImage {
|
|
70
|
+
/** Existing storage or Artifacts URI; no image bytes are carried here. */
|
|
71
|
+
contentUri?: string;
|
|
72
|
+
/** Lowercase SHA-256, 64 hexadecimal characters. */
|
|
73
|
+
sha256?: string;
|
|
74
|
+
}
|
|
75
|
+
/** A single static, explicit location share to an existing mutual contact. */
|
|
76
|
+
export interface ChatLocation {
|
|
77
|
+
/** Degrees north, inclusive -90 to 90. */
|
|
78
|
+
latitude?: number;
|
|
79
|
+
/** Degrees east, inclusive -180 to 180. */
|
|
80
|
+
longitude?: number;
|
|
81
|
+
/** Optional venue label; never continuous or background location. */
|
|
82
|
+
label?: string;
|
|
83
|
+
}
|
|
84
|
+
/** Image moderation receipt; never image bytes. */
|
|
85
|
+
export interface ChatMediaReview {
|
|
86
|
+
/** SHA-256 digest. */
|
|
87
|
+
sha256?: string;
|
|
88
|
+
/** Exact URI. */
|
|
89
|
+
contentUri?: string;
|
|
90
|
+
/** Stable uploader identity. */
|
|
91
|
+
uploaderId?: string;
|
|
92
|
+
/** pending, approved or rejected. */
|
|
93
|
+
status?: string;
|
|
94
|
+
/** Visible pending/refusal reason, such as moderation_checking. */
|
|
95
|
+
reason?: string;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Structured Chat payload; exactly one of text/image/location/poll/room_invite/sticker
|
|
99
|
+
* must be set. Replies and mentions refer to the same conversation.
|
|
100
|
+
*/
|
|
101
|
+
export interface ChatMessageContent {
|
|
102
|
+
/** UTF-8 text, at most 4000 characters. */
|
|
103
|
+
text?: string;
|
|
104
|
+
/** An image with a prior moderation approval. */
|
|
105
|
+
image?: ChatImage;
|
|
106
|
+
/** One explicit static location pin. */
|
|
107
|
+
location?: ChatLocation;
|
|
108
|
+
/** A member poll. */
|
|
109
|
+
poll?: ChatPoll;
|
|
110
|
+
/** Existing Realtime room resource name for a Join Game card. */
|
|
111
|
+
roomInvite?: string;
|
|
112
|
+
/** Optional cursor of the quoted message in this channel. */
|
|
113
|
+
replyToCursor?: string;
|
|
114
|
+
/** Member ids mentioned by this message. */
|
|
115
|
+
mentionedClientIds?: string[];
|
|
116
|
+
/** A paid catalog asset; the server verifies entitlement and stamps its bytes. */
|
|
117
|
+
sticker?: ChatSticker;
|
|
118
|
+
}
|
|
119
|
+
/** A poll in the conversation; votes are recorded once per member. */
|
|
120
|
+
export interface ChatPoll {
|
|
121
|
+
/** Question shown to members. */
|
|
122
|
+
question?: string;
|
|
123
|
+
/** Two to ten distinct choices. */
|
|
124
|
+
options?: string[];
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* One platform Chat identity in a canonical shared Chat environment. Titles
|
|
128
|
+
* bind this same environment and client_id for shared friends, blocks, DMs and
|
|
129
|
+
* groups. A title_id is metadata, never a second identity or data authority.
|
|
130
|
+
* Unlinked guests use title-scoped client ids until a verified Auth account link
|
|
131
|
+
* merges their identity into the shared platform principal.
|
|
132
|
+
* Principal IDs are path-safe [A-Za-z0-9_.-], 1..128 bytes. Example
|
|
133
|
+
* guest.title.123 before linking, platform.authority.456 after verified linking.
|
|
134
|
+
*/
|
|
135
|
+
export interface ChatProfile {
|
|
136
|
+
/** Resource name; the last segment is the stable authenticated client id. */
|
|
137
|
+
name?: string;
|
|
138
|
+
/** Stable service-derived identifier. */
|
|
139
|
+
readonly uid?: string;
|
|
140
|
+
/** Resource metadata. */
|
|
141
|
+
meta?: common.ResourceMeta;
|
|
142
|
+
/**
|
|
143
|
+
* Accepted code of conduct version, before first send; includes disclosure
|
|
144
|
+
* that images go to a third-party AI model provider through Sylphx AI Gateway.
|
|
145
|
+
*/
|
|
146
|
+
readonly termsVersion?: string;
|
|
147
|
+
/** User-visible name. */
|
|
148
|
+
readonly displayName?: string;
|
|
149
|
+
/** Trusted backend verification, never a message-supplied flag. */
|
|
150
|
+
readonly official?: boolean;
|
|
151
|
+
/** Explicit opt-in to images from non-mutual contacts; default false. */
|
|
152
|
+
readonly allowStrangerImages?: boolean;
|
|
153
|
+
/** Fresh presence on any joined conversation. */
|
|
154
|
+
readonly online?: boolean;
|
|
155
|
+
/** Latest presence activity, including title and game, if the member supplied it. */
|
|
156
|
+
readonly activity?: string;
|
|
157
|
+
/** UTC quiet-hours start in minutes, 0..1439. Omit both fields to disable. */
|
|
158
|
+
readonly quietHoursStartUtcMinute?: number;
|
|
159
|
+
/** UTC exclusive end, 0..1440; may wrap midnight. */
|
|
160
|
+
readonly quietHoursEndUtcMinute?: number;
|
|
161
|
+
/** Appearance assigned only by a trusted tenant backend. */
|
|
162
|
+
readonly cosmetics?: ChatCosmetics;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Actual upstream receipt, bound server-side to the canonical player and
|
|
166
|
+
* credential fingerprint. Keep generation as a string; never use a JS Number.
|
|
167
|
+
*/
|
|
168
|
+
export interface ChatPushDeviceRegistration {
|
|
169
|
+
/** Actual Notify Recipient resource name. */
|
|
170
|
+
recipientName?: string;
|
|
171
|
+
/** Actual immutable Notify UID, distinct from the Chat principal. */
|
|
172
|
+
recipientUid?: string;
|
|
173
|
+
/** Exact upstream endpoint registration identity. */
|
|
174
|
+
registrationId?: string;
|
|
175
|
+
/** Positive canonical decimal string returned by Notify. */
|
|
176
|
+
registrationGeneration?: string;
|
|
177
|
+
/** Actual sender resource name. */
|
|
178
|
+
sender?: string;
|
|
179
|
+
/** Public application-server key returned by Notify, never a private key. */
|
|
180
|
+
applicationServerKey?: string;
|
|
181
|
+
}
|
|
182
|
+
/** One reaction aggregate on a message. */
|
|
183
|
+
export interface ChatReaction {
|
|
184
|
+
/** Reaction emoji. */
|
|
185
|
+
emoji?: string;
|
|
186
|
+
/** Number of members with this reaction. */
|
|
187
|
+
count?: number;
|
|
188
|
+
/** Stable reacting member identities. */
|
|
189
|
+
clientIds?: string[];
|
|
190
|
+
}
|
|
191
|
+
/** Relationship state after the change. */
|
|
192
|
+
export interface ChatRelationship {
|
|
193
|
+
/** Acting member. */
|
|
194
|
+
clientId?: string;
|
|
195
|
+
/** Other member. */
|
|
196
|
+
peerId?: string;
|
|
197
|
+
/** This user requested friendship. */
|
|
198
|
+
requested?: boolean;
|
|
199
|
+
/** Both users accepted friendship. */
|
|
200
|
+
mutual?: boolean;
|
|
201
|
+
/** Either user blocked the other; interaction is denied both ways. */
|
|
202
|
+
blocked?: boolean;
|
|
203
|
+
/** Other member's profile and fresh presence. */
|
|
204
|
+
peer?: ChatProfile;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* A report in the tenant's moderation queue. The response target is our own
|
|
208
|
+
* under-24-hour operating target; no claim that an external policy specifies it.
|
|
209
|
+
*/
|
|
210
|
+
export interface ChatReport {
|
|
211
|
+
/** Resource name. */
|
|
212
|
+
name?: string;
|
|
213
|
+
/** Stable identifier. */
|
|
214
|
+
readonly uid?: string;
|
|
215
|
+
/** Resource metadata. */
|
|
216
|
+
meta?: common.ResourceMeta;
|
|
217
|
+
/** Reporting member. */
|
|
218
|
+
readonly reporterId?: string;
|
|
219
|
+
/** message, image or user. */
|
|
220
|
+
readonly targetType?: string;
|
|
221
|
+
/** Full message name, image SHA-256 or user id respectively. */
|
|
222
|
+
readonly targetId?: string;
|
|
223
|
+
/** Report reason. */
|
|
224
|
+
readonly reason?: string;
|
|
225
|
+
/** pending, resolved or dismissed. */
|
|
226
|
+
readonly status?: string;
|
|
227
|
+
/** Latest response time for the moderation queue. */
|
|
228
|
+
readonly dueTime?: string;
|
|
229
|
+
}
|
|
230
|
+
/** Verified sender snapshot written by the service when the message is accepted. */
|
|
231
|
+
export interface ChatSender {
|
|
232
|
+
/** The authenticated user's stable platform identity as bound by its backend. */
|
|
233
|
+
clientId?: string;
|
|
234
|
+
/** Display name, from the sender's profile. */
|
|
235
|
+
displayName?: string;
|
|
236
|
+
/** Verified official status, assigned through a trusted backend operation. */
|
|
237
|
+
official?: boolean;
|
|
238
|
+
/** Persisted trusted appearance when this message was accepted. */
|
|
239
|
+
readonly cosmetics?: ChatCosmetics;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* An asset from the tenant's authoritative sticker catalog. Sending requires
|
|
243
|
+
* the canonical sender's Money entitlement chat.sticker_pack.<pack_id>.
|
|
244
|
+
*/
|
|
245
|
+
export interface ChatSticker {
|
|
246
|
+
/** Catalog pack identifier; the complete Money feature key is at most 64 bytes. */
|
|
247
|
+
packId?: string;
|
|
248
|
+
/** Identifier inside the pack. */
|
|
249
|
+
stickerId?: string;
|
|
250
|
+
/** Optional on send; if supplied must match the catalog. Output is authoritative. */
|
|
251
|
+
contentUri?: string;
|
|
252
|
+
/** Optional on send; exact lowercase SHA-256 from the catalog. */
|
|
253
|
+
sha256?: string;
|
|
254
|
+
/** Optional on send; exact catalog image MIME type. */
|
|
255
|
+
mimeType?: string;
|
|
256
|
+
}
|
|
257
|
+
/** Catalog presentation of an asset. A player cannot publish catalog entries. */
|
|
258
|
+
export interface ChatStickerAsset {
|
|
259
|
+
/** Immutable content identity and delivery location. */
|
|
260
|
+
sticker?: ChatSticker;
|
|
261
|
+
/** Accessible human-readable asset label, at most 200 bytes. */
|
|
262
|
+
label?: string;
|
|
263
|
+
}
|
|
264
|
+
/** One tenant's purchasable sticker pack. */
|
|
265
|
+
export interface ChatStickerPack {
|
|
266
|
+
/** Resource name; last segment is the pack_id in the Money feature key. */
|
|
267
|
+
name?: string;
|
|
268
|
+
/** Stable identifier. */
|
|
269
|
+
readonly uid?: string;
|
|
270
|
+
/** Resource metadata. */
|
|
271
|
+
meta?: common.ResourceMeta;
|
|
272
|
+
/** Display name, at most 200 bytes. */
|
|
273
|
+
readonly displayName?: string;
|
|
274
|
+
/** Catalog assets in sticker-id order. */
|
|
275
|
+
readonly assets?: ChatStickerAsset[];
|
|
276
|
+
/** Monotonic revision; serialized as a decimal string. */
|
|
277
|
+
readonly revision?: string;
|
|
278
|
+
}
|
|
16
279
|
/** A CloudEvents 1.0 event as a producer submits it. */
|
|
17
280
|
export interface CloudEvent {
|
|
18
281
|
/** Unique per `source`; with `source` it is the dedupe key. */
|
|
@@ -34,6 +297,26 @@ export interface CloudEvent {
|
|
|
34
297
|
/** Extension attributes, at most 64. */
|
|
35
298
|
extensions?: Record<string, string>;
|
|
36
299
|
}
|
|
300
|
+
/** The trusted tenant backend configures one authenticated Chat identity. */
|
|
301
|
+
export interface ConfigureChatProfileRequest {
|
|
302
|
+
/** Profile resource name; creates a missing profile. */
|
|
303
|
+
name: string;
|
|
304
|
+
/** Accepted code of conduct version. */
|
|
305
|
+
termsVersion?: string;
|
|
306
|
+
/** User-visible name. */
|
|
307
|
+
displayName?: string;
|
|
308
|
+
/** Explicit opt-in; default false. */
|
|
309
|
+
allowStrangerImages?: boolean;
|
|
310
|
+
/** UTC quiet hours, optional as a pair; start equals end disables quiet hours. */
|
|
311
|
+
quietHoursStartUtcMinute?: number;
|
|
312
|
+
/** UTC exclusive end, including midnight as 1440. */
|
|
313
|
+
quietHoursEndUtcMinute?: number;
|
|
314
|
+
/**
|
|
315
|
+
* Trusted-backend only, including an empty object. Omission preserves the
|
|
316
|
+
* current appearance; player sessions cannot set or clear it.
|
|
317
|
+
*/
|
|
318
|
+
cosmetics?: ChatCosmetics;
|
|
319
|
+
}
|
|
37
320
|
/**
|
|
38
321
|
* A Connector is one delivery channel of the environment, as stored: an
|
|
39
322
|
* email connector's allowed senders, a webhook's kind, and so on. It is
|
|
@@ -270,6 +553,16 @@ export interface Event {
|
|
|
270
553
|
/** When Events admitted it. */
|
|
271
554
|
readonly admitTime?: string;
|
|
272
555
|
}
|
|
556
|
+
/** The request for one Chat identity. */
|
|
557
|
+
export interface GetChatProfileRequest {
|
|
558
|
+
/** Profile resource name. */
|
|
559
|
+
name: string;
|
|
560
|
+
}
|
|
561
|
+
/** Reads a tenant's pack. */
|
|
562
|
+
export interface GetChatStickerPackRequest {
|
|
563
|
+
/** Pack resource name. */
|
|
564
|
+
name: string;
|
|
565
|
+
}
|
|
273
566
|
/** The request of GetConnector. */
|
|
274
567
|
export interface GetConnectorRequest {
|
|
275
568
|
/** The name of the connector to get. */
|
|
@@ -304,6 +597,8 @@ export interface GetRealtimeMemberRequest {
|
|
|
304
597
|
export interface GetRealtimeMessageRequest {
|
|
305
598
|
/** The name of the message. */
|
|
306
599
|
name: string;
|
|
600
|
+
/** Chat viewer; required on Chat channels. */
|
|
601
|
+
clientId?: string;
|
|
307
602
|
}
|
|
308
603
|
/** The request of GetSubscription. */
|
|
309
604
|
export interface GetSubscriptionRequest {
|
|
@@ -368,6 +663,24 @@ export interface InboundEndpointStatus {
|
|
|
368
663
|
/** Requests refused for a bad signature, all time. */
|
|
369
664
|
readonly rejectedCount?: string;
|
|
370
665
|
}
|
|
666
|
+
/** The verified Auth token-exchange backend issues a session to one player. */
|
|
667
|
+
export interface IssueChatTokenRequest {
|
|
668
|
+
/** Profile in the canonical shared Chat environment. */
|
|
669
|
+
name: string;
|
|
670
|
+
/** Lifetime, 60s to 3600s; default 3600s. */
|
|
671
|
+
ttl?: string;
|
|
672
|
+
}
|
|
673
|
+
/** Scoped player capability; contains no tenant key or administrator permission. */
|
|
674
|
+
export interface IssueChatTokenResponse {
|
|
675
|
+
/** Present as Bearer on player Chat methods only. */
|
|
676
|
+
token?: string;
|
|
677
|
+
/** Capability expiry. */
|
|
678
|
+
expireTime?: string;
|
|
679
|
+
/** Canonical verified player principal the token represents. */
|
|
680
|
+
clientId?: string;
|
|
681
|
+
/** Profile name in the shared Chat environment. */
|
|
682
|
+
profile?: string;
|
|
683
|
+
}
|
|
371
684
|
/** The request of IssueRealtimeChannelToken. */
|
|
372
685
|
export interface IssueRealtimeChannelTokenRequest {
|
|
373
686
|
/** The name of the realtime channel. */
|
|
@@ -391,6 +704,18 @@ export interface IssueRealtimeChannelTokenResponse {
|
|
|
391
704
|
/** The URI to connect to with it. */
|
|
392
705
|
connectUri?: string;
|
|
393
706
|
}
|
|
707
|
+
/**
|
|
708
|
+
* The request to join a Chat conversation. DM/support participants are fixed
|
|
709
|
+
* by policy; other conversations are admitted by the trusted tenant backend.
|
|
710
|
+
*/
|
|
711
|
+
export interface JoinRealtimeChannelRequest {
|
|
712
|
+
/** Existing channel name. */
|
|
713
|
+
name: string;
|
|
714
|
+
/** Authenticated member identity. */
|
|
715
|
+
clientId: string;
|
|
716
|
+
/** member or moderator; default member. */
|
|
717
|
+
role?: string;
|
|
718
|
+
}
|
|
394
719
|
/** The request of LeaseQueueMessages. */
|
|
395
720
|
export interface LeaseQueueMessagesRequest {
|
|
396
721
|
/** The name of the queue. */
|
|
@@ -420,6 +745,61 @@ export interface LeasedMessage {
|
|
|
420
745
|
/** When the lease expires and the message is ready again. */
|
|
421
746
|
readonly leaseExpireTime?: string;
|
|
422
747
|
}
|
|
748
|
+
/** The request to leave; durable read state is retained for a later join. */
|
|
749
|
+
export interface LeaveRealtimeChannelRequest {
|
|
750
|
+
/** Existing channel name. */
|
|
751
|
+
name: string;
|
|
752
|
+
/** Authenticated member identity. */
|
|
753
|
+
clientId: string;
|
|
754
|
+
}
|
|
755
|
+
/** The request to list friendships and pending requests. */
|
|
756
|
+
export interface ListChatRelationshipsRequest {
|
|
757
|
+
/** Acting user's profile. */
|
|
758
|
+
parent: string;
|
|
759
|
+
/** Maximum results; default 50, maximum 1000. */
|
|
760
|
+
pageSize?: number;
|
|
761
|
+
/** Previous response's next_page_token. */
|
|
762
|
+
pageToken?: string;
|
|
763
|
+
}
|
|
764
|
+
/** One page of relationships in peer-id order. */
|
|
765
|
+
export interface ListChatRelationshipsResponse {
|
|
766
|
+
/** Relationships and profiles. */
|
|
767
|
+
relationships?: ChatRelationship[];
|
|
768
|
+
/** Empty at the end. */
|
|
769
|
+
nextPageToken?: string;
|
|
770
|
+
}
|
|
771
|
+
/** The request to list the moderation queue. */
|
|
772
|
+
export interface ListChatReportsRequest {
|
|
773
|
+
/** Environment resource name. */
|
|
774
|
+
parent: string;
|
|
775
|
+
/** Maximum results; default 50, maximum 1000. */
|
|
776
|
+
pageSize?: number;
|
|
777
|
+
/** Previous response's next_page_token. */
|
|
778
|
+
pageToken?: string;
|
|
779
|
+
}
|
|
780
|
+
/** One page of reports, oldest first. */
|
|
781
|
+
export interface ListChatReportsResponse {
|
|
782
|
+
/** Queue records. */
|
|
783
|
+
chatReports?: ChatReport[];
|
|
784
|
+
/** Empty at the end. */
|
|
785
|
+
nextPageToken?: string;
|
|
786
|
+
}
|
|
787
|
+
/** Lists the tenant's catalog. */
|
|
788
|
+
export interface ListChatStickerPacksRequest {
|
|
789
|
+
/** Environment name. */
|
|
790
|
+
parent: string;
|
|
791
|
+
/** Maximum results, default 50 and maximum 1000. */
|
|
792
|
+
pageSize?: number;
|
|
793
|
+
/** Previous response's next_page_token. */
|
|
794
|
+
pageToken?: string;
|
|
795
|
+
}
|
|
796
|
+
/** A page ordered by pack identifier. */
|
|
797
|
+
export interface ListChatStickerPacksResponse {
|
|
798
|
+
/** Packs and their authoritative assets. */
|
|
799
|
+
chatStickerPacks?: ChatStickerPack[];
|
|
800
|
+
/** Empty at the end. */
|
|
801
|
+
nextPageToken?: string;
|
|
802
|
+
}
|
|
423
803
|
/** The request of ListConnectors. */
|
|
424
804
|
export interface ListConnectorsRequest {
|
|
425
805
|
/** The parent to list in. */
|
|
@@ -546,6 +926,12 @@ export interface ListRealtimeMessagesRequest {
|
|
|
546
926
|
pageToken?: string;
|
|
547
927
|
/** Empty, or `sequence > N` to start after message N (resume). */
|
|
548
928
|
filter?: string;
|
|
929
|
+
/** Chat viewer; required on Chat channels. The trusted tenant backend binds identity. */
|
|
930
|
+
clientId?: string;
|
|
931
|
+
/** Exclusive cursor, for forward recovery. Cannot combine with before_cursor or filter. */
|
|
932
|
+
afterCursor?: string;
|
|
933
|
+
/** Exclusive cursor, for backwards history, newest first. Cannot combine with after_cursor or filter. */
|
|
934
|
+
beforeCursor?: string;
|
|
549
935
|
}
|
|
550
936
|
/** The response of ListRealtimeMessages. */
|
|
551
937
|
export interface ListRealtimeMessagesResponse {
|
|
@@ -634,6 +1020,18 @@ export interface ListWebhookEndpointsResponse {
|
|
|
634
1020
|
/** The token of the next page; empty on the last page. */
|
|
635
1021
|
nextPageToken?: string;
|
|
636
1022
|
}
|
|
1023
|
+
/**
|
|
1024
|
+
* Merge only after the exact verified link grant has been recorded. Repeating
|
|
1025
|
+
* the same merge is a no-op; another target or an absent grant is refused.
|
|
1026
|
+
*/
|
|
1027
|
+
export interface MergeChatIdentityRequest {
|
|
1028
|
+
/** Target platform Chat profile. */
|
|
1029
|
+
name: string;
|
|
1030
|
+
/** Previously bound title-scoped guest identity. */
|
|
1031
|
+
sourceClientId?: string;
|
|
1032
|
+
/** Exact prior Auth-verified source/target receipt binding. */
|
|
1033
|
+
linkReceiptId?: string;
|
|
1034
|
+
}
|
|
637
1035
|
/** A fenced lease on one message. */
|
|
638
1036
|
export interface MessageLease {
|
|
639
1037
|
/** The message id. */
|
|
@@ -677,6 +1075,8 @@ export interface PublishRealtimeMessagesRequest {
|
|
|
677
1075
|
data?: unknown;
|
|
678
1076
|
/** The publisher's client id, shown to subscribers. */
|
|
679
1077
|
clientId?: string;
|
|
1078
|
+
/** Required for Chat channels; generic channels continue to use data/message_type. */
|
|
1079
|
+
content?: ChatMessageContent;
|
|
680
1080
|
}
|
|
681
1081
|
/** The response of PublishRealtimeMessages. */
|
|
682
1082
|
export interface PublishRealtimeMessagesResponse {
|
|
@@ -747,6 +1147,26 @@ export interface QueueStatus {
|
|
|
747
1147
|
/** Messages in the dead-letter set. */
|
|
748
1148
|
readonly deadLetterCount?: string;
|
|
749
1149
|
}
|
|
1150
|
+
/** Adds or removes this member's reaction idempotently. */
|
|
1151
|
+
export interface ReactRealtimeMessageRequest {
|
|
1152
|
+
/** Existing message resource name. */
|
|
1153
|
+
name: string;
|
|
1154
|
+
/** Authenticated reacting member. */
|
|
1155
|
+
clientId?: string;
|
|
1156
|
+
/** Emoji, at most 32 UTF-8 bytes. */
|
|
1157
|
+
emoji?: string;
|
|
1158
|
+
/** Remove instead of add. */
|
|
1159
|
+
remove?: boolean;
|
|
1160
|
+
}
|
|
1161
|
+
/** The request to acknowledge a cursor and configure conversation notifications. */
|
|
1162
|
+
export interface ReadRealtimeMemberRequest {
|
|
1163
|
+
/** Existing member resource name. */
|
|
1164
|
+
name: string;
|
|
1165
|
+
/** Last visible message cursor; empty leaves the read cursor unchanged. */
|
|
1166
|
+
lastReadCursor?: string;
|
|
1167
|
+
/** Conversation notification preference; supplied on every call. */
|
|
1168
|
+
muted?: boolean;
|
|
1169
|
+
}
|
|
750
1170
|
/**
|
|
751
1171
|
* A Realtime Channel delivers matching events to authorized clients over
|
|
752
1172
|
* WebSocket or SSE, resumable from a cursor. Subscriptions route events into
|
|
@@ -773,6 +1193,8 @@ export interface RealtimeChannelSpec {
|
|
|
773
1193
|
publishableOk?: boolean;
|
|
774
1194
|
/** How far back a cursor may resume; default 24h, at most 7d. */
|
|
775
1195
|
historyRetention?: string;
|
|
1196
|
+
/** Chat policy; when present, history is durable and membership is persistent. */
|
|
1197
|
+
chat?: ChatChannelPolicy;
|
|
776
1198
|
}
|
|
777
1199
|
/** RealtimeChannelStatus is the observed state of a RealtimeChannel. */
|
|
778
1200
|
export interface RealtimeChannelStatus {
|
|
@@ -812,10 +1234,23 @@ export interface RealtimeMember {
|
|
|
812
1234
|
readonly enterTime?: string;
|
|
813
1235
|
/** Open connections of this client in the channel. */
|
|
814
1236
|
readonly connectionCount?: number;
|
|
1237
|
+
/** Persistent Chat membership, independent of online connections. */
|
|
1238
|
+
readonly joined?: boolean;
|
|
1239
|
+
/** Last acknowledged stream cursor; updates never move backwards. */
|
|
1240
|
+
readonly lastReadCursor?: string;
|
|
1241
|
+
/** Unread visible Chat messages from other members, excluding blocked senders. */
|
|
1242
|
+
readonly unreadCount?: string;
|
|
1243
|
+
/** Suppress this conversation's notification intents. */
|
|
1244
|
+
readonly muted?: boolean;
|
|
1245
|
+
/** Member or moderator, assigned by the tenant backend. */
|
|
1246
|
+
readonly role?: string;
|
|
1247
|
+
/** This channel is an official, verified support conversation. */
|
|
1248
|
+
readonly pinned?: boolean;
|
|
815
1249
|
}
|
|
816
1250
|
/**
|
|
817
1251
|
* A Realtime Message is one message in a channel's ordered history, kept
|
|
818
|
-
* for the channel's `history_retention`.
|
|
1252
|
+
* for the channel's `history_retention`. Chat history is durable; edit and unsend
|
|
1253
|
+
* are reserved for a later phase.
|
|
819
1254
|
*/
|
|
820
1255
|
export interface RealtimeMessage {
|
|
821
1256
|
/** `…/realtime_channels/{realtime_channel}/realtime_messages/{realtime_message}`. */
|
|
@@ -839,6 +1274,26 @@ export interface RealtimeMessage {
|
|
|
839
1274
|
clientId?: string;
|
|
840
1275
|
/** When the channel appended it. */
|
|
841
1276
|
readonly publishTime?: string;
|
|
1277
|
+
/** Structured Chat content, from the same stored event as data. */
|
|
1278
|
+
readonly content?: ChatMessageContent;
|
|
1279
|
+
/** Verified sender metadata; callers cannot set the official badge on a message. */
|
|
1280
|
+
readonly sender?: ChatSender;
|
|
1281
|
+
/** Member reactions, from the same conversation authority. */
|
|
1282
|
+
readonly reactions?: ChatReaction[];
|
|
1283
|
+
}
|
|
1284
|
+
/**
|
|
1285
|
+
* Ordinary Chat-session registration of a browser PushSubscription. Notify
|
|
1286
|
+
* credentials remain on the server. Retry with the identical request after an
|
|
1287
|
+
* ambiguous answer; unresolved registrations stay pending rather than adopting
|
|
1288
|
+
* an unrelated generation from a redacted upstream read.
|
|
1289
|
+
*/
|
|
1290
|
+
export interface RegisterChatPushDeviceRequest {
|
|
1291
|
+
/** Authenticated player's profile. */
|
|
1292
|
+
name: string;
|
|
1293
|
+
/** Existing Notify Sender in this environment. */
|
|
1294
|
+
sender: string;
|
|
1295
|
+
/** Exact JSON string from PushSubscription.toJSON(); never returned or logged. */
|
|
1296
|
+
deviceToken: string;
|
|
842
1297
|
}
|
|
843
1298
|
/** The request of ReplayQueue. */
|
|
844
1299
|
export interface ReplayQueueRequest {
|
|
@@ -873,6 +1328,42 @@ export interface ReplayWebhookEndpointResponse {
|
|
|
873
1328
|
/** Deliveries queued again. */
|
|
874
1329
|
replayedCount?: string;
|
|
875
1330
|
}
|
|
1331
|
+
/** The request to report a message, image or user. */
|
|
1332
|
+
export interface ReportChatContentRequest {
|
|
1333
|
+
/** Reporting user's profile. */
|
|
1334
|
+
name: string;
|
|
1335
|
+
/** message, image or user. */
|
|
1336
|
+
targetType?: string;
|
|
1337
|
+
/** Full message name, image SHA-256 or user id. */
|
|
1338
|
+
targetId?: string;
|
|
1339
|
+
/** Report reason. */
|
|
1340
|
+
reason?: string;
|
|
1341
|
+
}
|
|
1342
|
+
/** The request to resolve a moderation report. */
|
|
1343
|
+
export interface ResolveChatReportRequest {
|
|
1344
|
+
/** Moderation report resource name. */
|
|
1345
|
+
name: string;
|
|
1346
|
+
/** resolved or dismissed. */
|
|
1347
|
+
status?: string;
|
|
1348
|
+
}
|
|
1349
|
+
/**
|
|
1350
|
+
* Register or review one content-hashed image. Only the trusted backend records
|
|
1351
|
+
* automated moderation outcomes; end users cannot approve their own uploads.
|
|
1352
|
+
* Accepted conduct terms disclose third-party AI model review through Sylphx AI
|
|
1353
|
+
* Gateway. Capacity exhaustion leaves status pending with reason moderation_checking.
|
|
1354
|
+
*/
|
|
1355
|
+
export interface ReviewChatMediaRequest {
|
|
1356
|
+
/** Uploader's profile resource name. */
|
|
1357
|
+
name: string;
|
|
1358
|
+
/** Lowercase SHA-256 digest. */
|
|
1359
|
+
sha256?: string;
|
|
1360
|
+
/** Exact existing storage URI. */
|
|
1361
|
+
contentUri?: string;
|
|
1362
|
+
/** pending registers an upload; approved or rejected is a backend moderation receipt. */
|
|
1363
|
+
status?: string;
|
|
1364
|
+
/** Administrator-only moderation reason; player status/reason are never trusted. */
|
|
1365
|
+
reason?: string;
|
|
1366
|
+
}
|
|
876
1367
|
/** The request of RotateWebhookEndpointSecret. */
|
|
877
1368
|
export interface RotateWebhookEndpointSecretRequest {
|
|
878
1369
|
/** The name of the webhook endpoint. */
|
|
@@ -894,6 +1385,22 @@ export interface SendQueueMessagesResponse {
|
|
|
894
1385
|
/** The message ids, in request order. */
|
|
895
1386
|
messageIds?: string[];
|
|
896
1387
|
}
|
|
1388
|
+
/** Trusted administrator verification of an official account. */
|
|
1389
|
+
export interface SetChatOfficialStatusRequest {
|
|
1390
|
+
/** Profile in the canonical shared Chat environment. */
|
|
1391
|
+
name: string;
|
|
1392
|
+
/** Verified status; regular profile configuration never changes this flag. */
|
|
1393
|
+
official?: boolean;
|
|
1394
|
+
}
|
|
1395
|
+
/** The request to change a directed social relationship. */
|
|
1396
|
+
export interface SetChatRelationshipRequest {
|
|
1397
|
+
/** Acting user's profile. */
|
|
1398
|
+
name: string;
|
|
1399
|
+
/** Other user's stable client id. */
|
|
1400
|
+
peerId: string;
|
|
1401
|
+
/** request, accept, remove, block or unblock. */
|
|
1402
|
+
action: string;
|
|
1403
|
+
}
|
|
897
1404
|
/**
|
|
898
1405
|
* A Subscription fans each matching event of a Topic out to one Queue, Webhook
|
|
899
1406
|
* Endpoint, or Realtime Channel: exactly one message per (subscription,
|
|
@@ -983,6 +1490,16 @@ export interface TopicStatus {
|
|
|
983
1490
|
/** Ready, Reconciling, Stalled. */
|
|
984
1491
|
readonly conditions?: common.Condition[];
|
|
985
1492
|
}
|
|
1493
|
+
/**
|
|
1494
|
+
* Removes only the captured registration epoch owned by this Chat session.
|
|
1495
|
+
* Stale or mismatched receipts are no-ops, never deletion of a renewal.
|
|
1496
|
+
*/
|
|
1497
|
+
export interface UnregisterChatPushDeviceRequest {
|
|
1498
|
+
/** Authenticated player's profile. */
|
|
1499
|
+
name: string;
|
|
1500
|
+
/** Exact receipt from RegisterChatPushDevice. */
|
|
1501
|
+
registration: ChatPushDeviceRegistration;
|
|
1502
|
+
}
|
|
986
1503
|
/** The request of UpdateInboundEndpoint. */
|
|
987
1504
|
export interface UpdateInboundEndpointRequest {
|
|
988
1505
|
/** The inbound endpoint to update; `name` identifies it. */
|
|
@@ -1049,6 +1566,18 @@ export interface UpdateWebhookEndpointRequest {
|
|
|
1049
1566
|
/** Validate and return the result without writing anything. */
|
|
1050
1567
|
validateOnly?: boolean;
|
|
1051
1568
|
}
|
|
1569
|
+
/**
|
|
1570
|
+
* Atomically replaces a pack catalog, creating it when absent. Requires a
|
|
1571
|
+
* trusted non-player secret backend with events:chat:admin.
|
|
1572
|
+
*/
|
|
1573
|
+
export interface UpsertChatStickerPackRequest {
|
|
1574
|
+
/** Pack resource name. */
|
|
1575
|
+
name: string;
|
|
1576
|
+
/** Display name. */
|
|
1577
|
+
displayName: string;
|
|
1578
|
+
/** Complete catalog, one to 256 distinct assets. All pack_ids must match name. */
|
|
1579
|
+
assets: ChatStickerAsset[];
|
|
1580
|
+
}
|
|
1052
1581
|
/**
|
|
1053
1582
|
* A Webhook Delivery is one event on its way to a Webhook Endpoint, with every
|
|
1054
1583
|
* attempt and its immutable receipt. A receipt is evidence of an endpoint
|
|
@@ -1061,9 +1590,15 @@ export interface WebhookDelivery {
|
|
|
1061
1590
|
readonly uid?: string;
|
|
1062
1591
|
/** Resource metadata. */
|
|
1063
1592
|
meta?: common.ResourceMeta;
|
|
1064
|
-
/**
|
|
1593
|
+
/**
|
|
1594
|
+
* The retained Event delivered. Unset when its admission environment is
|
|
1595
|
+
* unknown, differs from the endpoint's environment, or the Event is gone.
|
|
1596
|
+
*/
|
|
1065
1597
|
readonly event?: string;
|
|
1066
|
-
/**
|
|
1598
|
+
/**
|
|
1599
|
+
* The sole retained Subscription association. Unset when zero or multiple
|
|
1600
|
+
* Subscriptions share this delivery; use subscriptions for the complete set.
|
|
1601
|
+
*/
|
|
1067
1602
|
readonly subscription?: string;
|
|
1068
1603
|
/** The delivery state. */
|
|
1069
1604
|
readonly state?: DeliveryState;
|
|
@@ -1073,6 +1608,11 @@ export interface WebhookDelivery {
|
|
|
1073
1608
|
readonly nextAttemptTime?: string;
|
|
1074
1609
|
/** The CloudEvents `type` of the event delivered. */
|
|
1075
1610
|
readonly eventType?: string;
|
|
1611
|
+
/**
|
|
1612
|
+
* Every retained Subscription association in the endpoint's environment,
|
|
1613
|
+
* ordered by resource name. Direct and test deliveries can have none.
|
|
1614
|
+
*/
|
|
1615
|
+
readonly subscriptions?: string[];
|
|
1076
1616
|
}
|
|
1077
1617
|
/**
|
|
1078
1618
|
* A Webhook Endpoint is an HTTPS receiver that events of its environment
|
|
@@ -1148,6 +1688,8 @@ export interface WebhookEndpointStatus {
|
|
|
1148
1688
|
*/
|
|
1149
1689
|
readonly previousSecretExpireTime?: string;
|
|
1150
1690
|
}
|
|
1691
|
+
/** A Chat channel's purpose; no product-specific server is required. */
|
|
1692
|
+
export type ChatChannelKind = 'world' | 'room' | 'guild' | 'dm' | 'support' | 'group' | (string & {});
|
|
1151
1693
|
/** How one delivery attempt ended. */
|
|
1152
1694
|
export type DeliveryAttemptOutcome = 'delivered' | 'retryable_failure' | 'terminal_failure' | 'ambiguous' | (string & {});
|
|
1153
1695
|
/** The state of one webhook delivery. */
|
|
@@ -1186,6 +1728,12 @@ export declare class EventsApi {
|
|
|
1186
1728
|
readonly realtimeMessages: RealtimeMessagesCollection;
|
|
1187
1729
|
/** The `realtime_members` collection. */
|
|
1188
1730
|
readonly realtimeMembers: RealtimeMembersCollection;
|
|
1731
|
+
/** The `chat_profiles` collection. */
|
|
1732
|
+
readonly chatProfiles: ChatProfilesCollection;
|
|
1733
|
+
/** The `chat_reports` collection. */
|
|
1734
|
+
readonly chatReports: ChatReportsCollection;
|
|
1735
|
+
/** The `chat_sticker_packs` collection. */
|
|
1736
|
+
readonly chatStickerPacks: ChatStickerPacksCollection;
|
|
1189
1737
|
constructor(client: runtime.Client);
|
|
1190
1738
|
}
|
|
1191
1739
|
/** `topics` of Sylphx Events: Resource type `events.sylphx.com/Topic`. */
|
|
@@ -1658,6 +2206,22 @@ export declare class RealtimeChannelsCollection {
|
|
|
1658
2206
|
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1659
2207
|
*/
|
|
1660
2208
|
delete(request: DeleteRealtimeChannelRequest): Promise<Record<string, never>>;
|
|
2209
|
+
/**
|
|
2210
|
+
* Joins a persistent Chat conversation.
|
|
2211
|
+
*
|
|
2212
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/realtime_channels/*}:join` · permission `events:write` · effect `write`
|
|
2213
|
+
*
|
|
2214
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
2215
|
+
*/
|
|
2216
|
+
join(request: JoinRealtimeChannelRequest): Promise<RealtimeMember>;
|
|
2217
|
+
/**
|
|
2218
|
+
* Leaves Chat while retaining durable read state.
|
|
2219
|
+
*
|
|
2220
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/realtime_channels/*}:leave` · permission `events:write` · effect `write`
|
|
2221
|
+
*
|
|
2222
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
2223
|
+
*/
|
|
2224
|
+
leave(request: LeaveRealtimeChannelRequest): Promise<Record<string, never>>;
|
|
1661
2225
|
}
|
|
1662
2226
|
/** `realtime_messages` of Sylphx Events: Resource type `events.sylphx.com/RealtimeMessage`. */
|
|
1663
2227
|
export declare class RealtimeMessagesCollection {
|
|
@@ -1681,6 +2245,14 @@ export declare class RealtimeMessagesCollection {
|
|
|
1681
2245
|
list(request: ListRealtimeMessagesRequest): Promise<ListRealtimeMessagesResponse>;
|
|
1682
2246
|
/** Every item of every page of `list`. */
|
|
1683
2247
|
listAll(request: ListRealtimeMessagesRequest): AsyncGenerator<RealtimeMessage>;
|
|
2248
|
+
/**
|
|
2249
|
+
* Adds or removes a member reaction on a visible Chat message.
|
|
2250
|
+
*
|
|
2251
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/realtime_channels/*\/realtime_messages/*}:react` · permission `events:write` · effect `write`
|
|
2252
|
+
*
|
|
2253
|
+
* Errors: `PERMISSION_DENIED`, `INVALID_FIELD`, `INVALID_STATE`, `RESOURCE_NOT_FOUND`.
|
|
2254
|
+
*/
|
|
2255
|
+
react(request: ReactRealtimeMessageRequest): Promise<RealtimeMessage>;
|
|
1684
2256
|
}
|
|
1685
2257
|
/** `realtime_members` of Sylphx Events: Resource type `events.sylphx.com/RealtimeMember`. */
|
|
1686
2258
|
export declare class RealtimeMembersCollection {
|
|
@@ -1704,4 +2276,167 @@ export declare class RealtimeMembersCollection {
|
|
|
1704
2276
|
list(request: ListRealtimeMembersRequest): Promise<ListRealtimeMembersResponse>;
|
|
1705
2277
|
/** Every item of every page of `list`. */
|
|
1706
2278
|
listAll(request: ListRealtimeMembersRequest): AsyncGenerator<RealtimeMember>;
|
|
2279
|
+
/**
|
|
2280
|
+
* Advances a member read cursor monotonically and sets mute.
|
|
2281
|
+
*
|
|
2282
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/realtime_channels/*\/realtime_members/*}:read` · permission `events:write` · effect `write`
|
|
2283
|
+
*
|
|
2284
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
2285
|
+
*/
|
|
2286
|
+
read(request: ReadRealtimeMemberRequest): Promise<RealtimeMember>;
|
|
2287
|
+
}
|
|
2288
|
+
/** `chat_profiles` of Sylphx Events: Resource type `events.sylphx.com/ChatProfile`. */
|
|
2289
|
+
export declare class ChatProfilesCollection {
|
|
2290
|
+
private readonly client;
|
|
2291
|
+
constructor(client: runtime.Client);
|
|
2292
|
+
/**
|
|
2293
|
+
* Gets a Chat profile and fresh presence.
|
|
2294
|
+
*
|
|
2295
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/chat_profiles/*}` · permission `events:read` · effect `read`
|
|
2296
|
+
*
|
|
2297
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
2298
|
+
*/
|
|
2299
|
+
get(request: GetChatProfileRequest): Promise<ChatProfile>;
|
|
2300
|
+
/**
|
|
2301
|
+
* Configures an authenticated Chat identity through its trusted backend.
|
|
2302
|
+
*
|
|
2303
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/chat_profiles/*}:configure` · permission `events:write` · effect `write`
|
|
2304
|
+
*
|
|
2305
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
2306
|
+
*/
|
|
2307
|
+
configure(request: ConfigureChatProfileRequest): Promise<ChatProfile>;
|
|
2308
|
+
/**
|
|
2309
|
+
* Changes friendship or a bilateral interaction block.
|
|
2310
|
+
*
|
|
2311
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/chat_profiles/*}:setRelationship` · permission `events:write` · effect `write`
|
|
2312
|
+
*
|
|
2313
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
2314
|
+
*/
|
|
2315
|
+
setRelationship(request: SetChatRelationshipRequest): Promise<ChatRelationship>;
|
|
2316
|
+
/**
|
|
2317
|
+
* Lists friends and pending requests with presence.
|
|
2318
|
+
*
|
|
2319
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/chat_profiles/*}:listRelationships` · permission `events:read` · effect `read`
|
|
2320
|
+
*
|
|
2321
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
2322
|
+
*/
|
|
2323
|
+
listRelationships(request: ListChatRelationshipsRequest): Promise<ListChatRelationshipsResponse>;
|
|
2324
|
+
/**
|
|
2325
|
+
* Reports a message, image or user to the moderation queue.
|
|
2326
|
+
*
|
|
2327
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/chat_profiles/*}:report` · permission `events:write` · effect `write`
|
|
2328
|
+
*
|
|
2329
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
2330
|
+
*/
|
|
2331
|
+
report(request: ReportChatContentRequest): Promise<ChatReport>;
|
|
2332
|
+
/**
|
|
2333
|
+
* Registers an image and its automated moderation receipt.
|
|
2334
|
+
*
|
|
2335
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/chat_profiles/*}:reviewMedia` · permission `events:write` · effect `write`
|
|
2336
|
+
*
|
|
2337
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
2338
|
+
*/
|
|
2339
|
+
reviewMedia(request: ReviewChatMediaRequest): Promise<ChatMediaReview>;
|
|
2340
|
+
/**
|
|
2341
|
+
* Verifies an official account through a distinct administrator permission.
|
|
2342
|
+
*
|
|
2343
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/chat_profiles/*}:setOfficialStatus` · permission `events:chat:admin` · effect `write`
|
|
2344
|
+
*
|
|
2345
|
+
* Errors: `PERMISSION_DENIED`, `INVALID_FIELD`.
|
|
2346
|
+
*/
|
|
2347
|
+
setOfficialStatus(request: SetChatOfficialStatusRequest): Promise<ChatProfile>;
|
|
2348
|
+
/**
|
|
2349
|
+
* Records an exact Auth-verified guest-to-platform identity link grant.
|
|
2350
|
+
*
|
|
2351
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/chat_profiles/*}:bindIdentity` · permission `events:chat:admin` · effect `write`
|
|
2352
|
+
*
|
|
2353
|
+
* Errors: `PERMISSION_DENIED`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
2354
|
+
*/
|
|
2355
|
+
bindIdentity(request: BindChatIdentityRequest): Promise<ChatProfile>;
|
|
2356
|
+
/**
|
|
2357
|
+
* Rehomes linked guest state without discarding messages or relationships.
|
|
2358
|
+
*
|
|
2359
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/chat_profiles/*}:mergeIdentity` · permission `events:chat:admin` · effect `write`
|
|
2360
|
+
*
|
|
2361
|
+
* Errors: `PERMISSION_DENIED`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
2362
|
+
*/
|
|
2363
|
+
mergeIdentity(request: MergeChatIdentityRequest): Promise<ChatProfile>;
|
|
2364
|
+
/**
|
|
2365
|
+
* Registers a browser device using only the authenticated Chat session.
|
|
2366
|
+
*
|
|
2367
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/chat_profiles/*}:registerPushDevice` · permission `events:write` · effect `write`
|
|
2368
|
+
*
|
|
2369
|
+
* Errors: `PERMISSION_DENIED`, `INVALID_FIELD`, `INVALID_STATE`, `UNAVAILABLE`.
|
|
2370
|
+
*/
|
|
2371
|
+
registerPushDevice(request: RegisterChatPushDeviceRequest): Promise<ChatPushDeviceRegistration>;
|
|
2372
|
+
/**
|
|
2373
|
+
* Removes this session's exact upstream device epoch; stale logout is a no-op.
|
|
2374
|
+
*
|
|
2375
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/chat_profiles/*}:unregisterPushDevice` · permission `events:write` · effect `write`
|
|
2376
|
+
*
|
|
2377
|
+
* Errors: `PERMISSION_DENIED`, `INVALID_FIELD`, `UNAVAILABLE`.
|
|
2378
|
+
*/
|
|
2379
|
+
unregisterPushDevice(request: UnregisterChatPushDeviceRequest): Promise<Record<string, never>>;
|
|
2380
|
+
/**
|
|
2381
|
+
* Issues a bounded player capability after verified Auth token exchange.
|
|
2382
|
+
*
|
|
2383
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/chat_profiles/*}:issueToken` · permission `events:write` · effect `write`
|
|
2384
|
+
*
|
|
2385
|
+
* Errors: `PERMISSION_DENIED`, `INVALID_FIELD`, `RESOURCE_NOT_FOUND`, `UNAVAILABLE`.
|
|
2386
|
+
*/
|
|
2387
|
+
issueToken(request: IssueChatTokenRequest): Promise<IssueChatTokenResponse>;
|
|
2388
|
+
}
|
|
2389
|
+
/** `chat_reports` of Sylphx Events: Resource type `events.sylphx.com/ChatReport`. */
|
|
2390
|
+
export declare class ChatReportsCollection {
|
|
2391
|
+
private readonly client;
|
|
2392
|
+
constructor(client: runtime.Client);
|
|
2393
|
+
/**
|
|
2394
|
+
* Lists the moderation queue.
|
|
2395
|
+
*
|
|
2396
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/chat_reports` · permission `events:read` · effect `read`
|
|
2397
|
+
*
|
|
2398
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
2399
|
+
*/
|
|
2400
|
+
list(request: ListChatReportsRequest): Promise<ListChatReportsResponse>;
|
|
2401
|
+
/** Every item of every page of `list`. */
|
|
2402
|
+
listAll(request: ListChatReportsRequest): AsyncGenerator<ChatReport>;
|
|
2403
|
+
/**
|
|
2404
|
+
* Records a moderation response.
|
|
2405
|
+
*
|
|
2406
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/chat_reports/*}:resolve` · permission `events:write` · effect `write`
|
|
2407
|
+
*
|
|
2408
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
2409
|
+
*/
|
|
2410
|
+
resolve(request: ResolveChatReportRequest): Promise<ChatReport>;
|
|
2411
|
+
}
|
|
2412
|
+
/** `chat_sticker_packs` of Sylphx Events: Resource type `events.sylphx.com/ChatStickerPack`. */
|
|
2413
|
+
export declare class ChatStickerPacksCollection {
|
|
2414
|
+
private readonly client;
|
|
2415
|
+
constructor(client: runtime.Client);
|
|
2416
|
+
/**
|
|
2417
|
+
* Gets an authoritative tenant sticker pack.
|
|
2418
|
+
*
|
|
2419
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/chat_sticker_packs/*}` · permission `events:read` · effect `read`
|
|
2420
|
+
*
|
|
2421
|
+
* Errors: `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`.
|
|
2422
|
+
*/
|
|
2423
|
+
get(request: GetChatStickerPackRequest): Promise<ChatStickerPack>;
|
|
2424
|
+
/**
|
|
2425
|
+
* Lists the tenant sticker catalog for player discovery.
|
|
2426
|
+
*
|
|
2427
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/chat_sticker_packs` · permission `events:read` · effect `read`
|
|
2428
|
+
*
|
|
2429
|
+
* Errors: `PERMISSION_DENIED`, `INVALID_FIELD`.
|
|
2430
|
+
*/
|
|
2431
|
+
list(request: ListChatStickerPacksRequest): Promise<ListChatStickerPacksResponse>;
|
|
2432
|
+
/** Every item of every page of `list`. */
|
|
2433
|
+
listAll(request: ListChatStickerPacksRequest): AsyncGenerator<ChatStickerPack>;
|
|
2434
|
+
/**
|
|
2435
|
+
* Publishes the trusted backend's complete sticker pack catalog.
|
|
2436
|
+
*
|
|
2437
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/chat_sticker_packs/*}:upsert` · permission `events:chat:admin` · effect `write`
|
|
2438
|
+
*
|
|
2439
|
+
* Errors: `PERMISSION_DENIED`, `INVALID_FIELD`.
|
|
2440
|
+
*/
|
|
2441
|
+
upsert(request: UpsertChatStickerPackRequest): Promise<ChatStickerPack>;
|
|
1707
2442
|
}
|