@sylphx/sdk 0.32.3 → 0.32.7
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/broker.d.ts +64 -3
- package/dist/broker.js +33 -1
- package/dist/broker.js.map +1 -1
- package/dist/events.d.ts +538 -1
- package/dist/events.js +424 -2
- package/dist/events.js.map +1 -1
- package/dist/hosting.d.ts +9 -1
- package/dist/hosting.js +4 -0
- package/dist/hosting.js.map +1 -1
- package/dist/ids.d.ts +20 -0
- package/dist/ids.js +4 -0
- package/dist/ids.js.map +1 -1
- package/dist/methods.js +303 -2
- package/dist/methods.js.map +1 -1
- package/dist/money.d.ts +312 -45
- package/dist/money.js +305 -93
- package/dist/money.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/dist/release.d.ts +86 -6
- package/dist/release.js +61 -0
- package/dist/release.js.map +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +17 -3
- package/dist/runtime.js.map +1 -1
- package/dist/sandboxes.d.ts +48 -10
- package/dist/sandboxes.js +34 -6
- package/dist/sandboxes.js.map +1 -1
- package/package.json +1 -1
package/dist/events.js
CHANGED
|
@@ -9,6 +9,60 @@ runtime.registerSchemas({
|
|
|
9
9
|
'sylphx.events.v1.AckQueueMessagesResponse': [
|
|
10
10
|
['staleLeases', 'stale_leases', 'sylphx.events.v1.MessageLease'],
|
|
11
11
|
],
|
|
12
|
+
'sylphx.events.v1.BindChatIdentityRequest': [
|
|
13
|
+
['sourceClientId', 'source_client_id'],
|
|
14
|
+
['linkReceiptId', 'link_receipt_id'],
|
|
15
|
+
],
|
|
16
|
+
'sylphx.events.v1.ChatChannelPolicy': [
|
|
17
|
+
['termsVersion', 'terms_version'],
|
|
18
|
+
['messagesPerMinute', 'messages_per_minute'],
|
|
19
|
+
['participantIds', 'participant_ids'],
|
|
20
|
+
['titleId', 'title_id'],
|
|
21
|
+
],
|
|
22
|
+
'sylphx.events.v1.ChatImage': [
|
|
23
|
+
['contentUri', 'content_uri'],
|
|
24
|
+
],
|
|
25
|
+
'sylphx.events.v1.ChatLocation': [],
|
|
26
|
+
'sylphx.events.v1.ChatMediaReview': [
|
|
27
|
+
['contentUri', 'content_uri'],
|
|
28
|
+
['uploaderId', 'uploader_id'],
|
|
29
|
+
],
|
|
30
|
+
'sylphx.events.v1.ChatMessageContent': [
|
|
31
|
+
['image', 'image', 'sylphx.events.v1.ChatImage'],
|
|
32
|
+
['location', 'location', 'sylphx.events.v1.ChatLocation'],
|
|
33
|
+
['poll', 'poll', 'sylphx.events.v1.ChatPoll'],
|
|
34
|
+
['roomInvite', 'room_invite'],
|
|
35
|
+
['replyToCursor', 'reply_to_cursor'],
|
|
36
|
+
['mentionedClientIds', 'mentioned_client_ids'],
|
|
37
|
+
],
|
|
38
|
+
'sylphx.events.v1.ChatPoll': [],
|
|
39
|
+
'sylphx.events.v1.ChatProfile': [
|
|
40
|
+
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
41
|
+
['termsVersion', 'terms_version'],
|
|
42
|
+
['displayName', 'display_name'],
|
|
43
|
+
['allowStrangerImages', 'allow_stranger_images'],
|
|
44
|
+
['quietHoursStartUtcMinute', 'quiet_hours_start_utc_minute'],
|
|
45
|
+
['quietHoursEndUtcMinute', 'quiet_hours_end_utc_minute'],
|
|
46
|
+
],
|
|
47
|
+
'sylphx.events.v1.ChatReaction': [
|
|
48
|
+
['clientIds', 'client_ids'],
|
|
49
|
+
],
|
|
50
|
+
'sylphx.events.v1.ChatRelationship': [
|
|
51
|
+
['clientId', 'client_id'],
|
|
52
|
+
['peerId', 'peer_id'],
|
|
53
|
+
['peer', 'peer', 'sylphx.events.v1.ChatProfile'],
|
|
54
|
+
],
|
|
55
|
+
'sylphx.events.v1.ChatReport': [
|
|
56
|
+
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
57
|
+
['reporterId', 'reporter_id'],
|
|
58
|
+
['targetType', 'target_type'],
|
|
59
|
+
['targetId', 'target_id'],
|
|
60
|
+
['dueTime', 'due_time'],
|
|
61
|
+
],
|
|
62
|
+
'sylphx.events.v1.ChatSender': [
|
|
63
|
+
['clientId', 'client_id'],
|
|
64
|
+
['displayName', 'display_name'],
|
|
65
|
+
],
|
|
12
66
|
'sylphx.events.v1.CloudEvent': [
|
|
13
67
|
['eventTime', 'event_time'],
|
|
14
68
|
['dataContentType', 'data_content_type'],
|
|
@@ -16,6 +70,13 @@ runtime.registerSchemas({
|
|
|
16
70
|
['data', 'data', undefined, 'json'],
|
|
17
71
|
['extensions', 'extensions', undefined, 'map'],
|
|
18
72
|
],
|
|
73
|
+
'sylphx.events.v1.ConfigureChatProfileRequest': [
|
|
74
|
+
['termsVersion', 'terms_version'],
|
|
75
|
+
['displayName', 'display_name'],
|
|
76
|
+
['allowStrangerImages', 'allow_stranger_images'],
|
|
77
|
+
['quietHoursStartUtcMinute', 'quiet_hours_start_utc_minute'],
|
|
78
|
+
['quietHoursEndUtcMinute', 'quiet_hours_end_utc_minute'],
|
|
79
|
+
],
|
|
19
80
|
'sylphx.events.v1.Connector': [
|
|
20
81
|
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
21
82
|
['displayName', 'display_name'],
|
|
@@ -93,13 +154,16 @@ runtime.registerSchemas({
|
|
|
93
154
|
['extensions', 'extensions', undefined, 'map'],
|
|
94
155
|
['admitTime', 'admit_time'],
|
|
95
156
|
],
|
|
157
|
+
'sylphx.events.v1.GetChatProfileRequest': [],
|
|
96
158
|
'sylphx.events.v1.GetConnectorRequest': [],
|
|
97
159
|
'sylphx.events.v1.GetEventRequest': [],
|
|
98
160
|
'sylphx.events.v1.GetInboundEndpointRequest': [],
|
|
99
161
|
'sylphx.events.v1.GetQueueRequest': [],
|
|
100
162
|
'sylphx.events.v1.GetRealtimeChannelRequest': [],
|
|
101
163
|
'sylphx.events.v1.GetRealtimeMemberRequest': [],
|
|
102
|
-
'sylphx.events.v1.GetRealtimeMessageRequest': [
|
|
164
|
+
'sylphx.events.v1.GetRealtimeMessageRequest': [
|
|
165
|
+
['clientId', 'client_id'],
|
|
166
|
+
],
|
|
103
167
|
'sylphx.events.v1.GetSubscriptionRequest': [],
|
|
104
168
|
'sylphx.events.v1.GetTopicRequest': [],
|
|
105
169
|
'sylphx.events.v1.GetWebhookDeliveryRequest': [],
|
|
@@ -120,6 +184,11 @@ runtime.registerSchemas({
|
|
|
120
184
|
['lastReceiveTime', 'last_receive_time'],
|
|
121
185
|
['rejectedCount', 'rejected_count'],
|
|
122
186
|
],
|
|
187
|
+
'sylphx.events.v1.IssueChatTokenRequest': [],
|
|
188
|
+
'sylphx.events.v1.IssueChatTokenResponse': [
|
|
189
|
+
['expireTime', 'expire_time'],
|
|
190
|
+
['clientId', 'client_id'],
|
|
191
|
+
],
|
|
123
192
|
'sylphx.events.v1.IssueRealtimeChannelTokenRequest': [
|
|
124
193
|
['clientId', 'client_id'],
|
|
125
194
|
['clientData', 'client_data', undefined, 'json'],
|
|
@@ -128,6 +197,9 @@ runtime.registerSchemas({
|
|
|
128
197
|
['expireTime', 'expire_time'],
|
|
129
198
|
['connectUri', 'connect_uri'],
|
|
130
199
|
],
|
|
200
|
+
'sylphx.events.v1.JoinRealtimeChannelRequest': [
|
|
201
|
+
['clientId', 'client_id'],
|
|
202
|
+
],
|
|
131
203
|
'sylphx.events.v1.LeaseQueueMessagesRequest': [
|
|
132
204
|
['maxMessages', 'max_messages'],
|
|
133
205
|
['visibilityTimeout', 'visibility_timeout'],
|
|
@@ -142,6 +214,25 @@ runtime.registerSchemas({
|
|
|
142
214
|
['deliveryCount', 'delivery_count'],
|
|
143
215
|
['leaseExpireTime', 'lease_expire_time'],
|
|
144
216
|
],
|
|
217
|
+
'sylphx.events.v1.LeaveRealtimeChannelRequest': [
|
|
218
|
+
['clientId', 'client_id'],
|
|
219
|
+
],
|
|
220
|
+
'sylphx.events.v1.ListChatRelationshipsRequest': [
|
|
221
|
+
['pageSize', 'page_size'],
|
|
222
|
+
['pageToken', 'page_token'],
|
|
223
|
+
],
|
|
224
|
+
'sylphx.events.v1.ListChatRelationshipsResponse': [
|
|
225
|
+
['relationships', 'relationships', 'sylphx.events.v1.ChatRelationship'],
|
|
226
|
+
['nextPageToken', 'next_page_token'],
|
|
227
|
+
],
|
|
228
|
+
'sylphx.events.v1.ListChatReportsRequest': [
|
|
229
|
+
['pageSize', 'page_size'],
|
|
230
|
+
['pageToken', 'page_token'],
|
|
231
|
+
],
|
|
232
|
+
'sylphx.events.v1.ListChatReportsResponse': [
|
|
233
|
+
['chatReports', 'chat_reports', 'sylphx.events.v1.ChatReport'],
|
|
234
|
+
['nextPageToken', 'next_page_token'],
|
|
235
|
+
],
|
|
145
236
|
'sylphx.events.v1.ListConnectorsRequest': [
|
|
146
237
|
['pageSize', 'page_size'],
|
|
147
238
|
['pageToken', 'page_token'],
|
|
@@ -198,6 +289,9 @@ runtime.registerSchemas({
|
|
|
198
289
|
'sylphx.events.v1.ListRealtimeMessagesRequest': [
|
|
199
290
|
['pageSize', 'page_size'],
|
|
200
291
|
['pageToken', 'page_token'],
|
|
292
|
+
['clientId', 'client_id'],
|
|
293
|
+
['afterCursor', 'after_cursor'],
|
|
294
|
+
['beforeCursor', 'before_cursor'],
|
|
201
295
|
],
|
|
202
296
|
'sylphx.events.v1.ListRealtimeMessagesResponse': [
|
|
203
297
|
['realtimeMessages', 'realtime_messages', 'sylphx.events.v1.RealtimeMessage'],
|
|
@@ -239,6 +333,10 @@ runtime.registerSchemas({
|
|
|
239
333
|
['webhookEndpoints', 'webhook_endpoints', 'sylphx.events.v1.WebhookEndpoint'],
|
|
240
334
|
['nextPageToken', 'next_page_token'],
|
|
241
335
|
],
|
|
336
|
+
'sylphx.events.v1.MergeChatIdentityRequest': [
|
|
337
|
+
['sourceClientId', 'source_client_id'],
|
|
338
|
+
['linkReceiptId', 'link_receipt_id'],
|
|
339
|
+
],
|
|
242
340
|
'sylphx.events.v1.MessageLease': [
|
|
243
341
|
['messageId', 'message_id'],
|
|
244
342
|
['leaseGeneration', 'lease_generation'],
|
|
@@ -259,6 +357,7 @@ runtime.registerSchemas({
|
|
|
259
357
|
['messageType', 'message_type'],
|
|
260
358
|
['data', 'data', undefined, 'json'],
|
|
261
359
|
['clientId', 'client_id'],
|
|
360
|
+
['content', 'content', 'sylphx.events.v1.ChatMessageContent'],
|
|
262
361
|
],
|
|
263
362
|
'sylphx.events.v1.PublishRealtimeMessagesResponse': [
|
|
264
363
|
['realtimeMessage', 'realtime_message', 'sylphx.events.v1.RealtimeMessage'],
|
|
@@ -288,6 +387,12 @@ runtime.registerSchemas({
|
|
|
288
387
|
['leasedCount', 'leased_count'],
|
|
289
388
|
['deadLetterCount', 'dead_letter_count'],
|
|
290
389
|
],
|
|
390
|
+
'sylphx.events.v1.ReactRealtimeMessageRequest': [
|
|
391
|
+
['clientId', 'client_id'],
|
|
392
|
+
],
|
|
393
|
+
'sylphx.events.v1.ReadRealtimeMemberRequest': [
|
|
394
|
+
['lastReadCursor', 'last_read_cursor'],
|
|
395
|
+
],
|
|
291
396
|
'sylphx.events.v1.RealtimeChannel': [
|
|
292
397
|
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
293
398
|
['spec', 'spec', 'sylphx.events.v1.RealtimeChannelSpec'],
|
|
@@ -296,6 +401,7 @@ runtime.registerSchemas({
|
|
|
296
401
|
'sylphx.events.v1.RealtimeChannelSpec': [
|
|
297
402
|
['publishableOk', 'publishable_ok'],
|
|
298
403
|
['historyRetention', 'history_retention'],
|
|
404
|
+
['chat', 'chat', 'sylphx.events.v1.ChatChannelPolicy'],
|
|
299
405
|
],
|
|
300
406
|
'sylphx.events.v1.RealtimeChannelStatus': [
|
|
301
407
|
['observedGeneration', 'observed_generation'],
|
|
@@ -310,6 +416,8 @@ runtime.registerSchemas({
|
|
|
310
416
|
['data', 'data', undefined, 'json'],
|
|
311
417
|
['enterTime', 'enter_time'],
|
|
312
418
|
['connectionCount', 'connection_count'],
|
|
419
|
+
['lastReadCursor', 'last_read_cursor'],
|
|
420
|
+
['unreadCount', 'unread_count'],
|
|
313
421
|
],
|
|
314
422
|
'sylphx.events.v1.RealtimeMessage': [
|
|
315
423
|
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
@@ -317,6 +425,9 @@ runtime.registerSchemas({
|
|
|
317
425
|
['data', 'data', undefined, 'json'],
|
|
318
426
|
['clientId', 'client_id'],
|
|
319
427
|
['publishTime', 'publish_time'],
|
|
428
|
+
['content', 'content', 'sylphx.events.v1.ChatMessageContent'],
|
|
429
|
+
['sender', 'sender', 'sylphx.events.v1.ChatSender'],
|
|
430
|
+
['reactions', 'reactions', 'sylphx.events.v1.ChatReaction'],
|
|
320
431
|
],
|
|
321
432
|
'sylphx.events.v1.ReplayQueueRequest': [
|
|
322
433
|
['startTime', 'start_time'],
|
|
@@ -333,6 +444,14 @@ runtime.registerSchemas({
|
|
|
333
444
|
'sylphx.events.v1.ReplayWebhookEndpointResponse': [
|
|
334
445
|
['replayedCount', 'replayed_count'],
|
|
335
446
|
],
|
|
447
|
+
'sylphx.events.v1.ReportChatContentRequest': [
|
|
448
|
+
['targetType', 'target_type'],
|
|
449
|
+
['targetId', 'target_id'],
|
|
450
|
+
],
|
|
451
|
+
'sylphx.events.v1.ResolveChatReportRequest': [],
|
|
452
|
+
'sylphx.events.v1.ReviewChatMediaRequest': [
|
|
453
|
+
['contentUri', 'content_uri'],
|
|
454
|
+
],
|
|
336
455
|
'sylphx.events.v1.RotateWebhookEndpointSecretRequest': [],
|
|
337
456
|
'sylphx.events.v1.SendQueueMessagesRequest': [
|
|
338
457
|
['events', 'events', 'sylphx.events.v1.CloudEvent'],
|
|
@@ -340,6 +459,10 @@ runtime.registerSchemas({
|
|
|
340
459
|
'sylphx.events.v1.SendQueueMessagesResponse': [
|
|
341
460
|
['messageIds', 'message_ids'],
|
|
342
461
|
],
|
|
462
|
+
'sylphx.events.v1.SetChatOfficialStatusRequest': [],
|
|
463
|
+
'sylphx.events.v1.SetChatRelationshipRequest': [
|
|
464
|
+
['peerId', 'peer_id'],
|
|
465
|
+
],
|
|
343
466
|
'sylphx.events.v1.Subscription': [
|
|
344
467
|
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
345
468
|
['spec', 'spec', 'sylphx.events.v1.SubscriptionSpec'],
|
|
@@ -459,6 +582,10 @@ export class EventsApi {
|
|
|
459
582
|
realtimeMessages;
|
|
460
583
|
/** The `realtime_members` collection. */
|
|
461
584
|
realtimeMembers;
|
|
585
|
+
/** The `chat_profiles` collection. */
|
|
586
|
+
chatProfiles;
|
|
587
|
+
/** The `chat_reports` collection. */
|
|
588
|
+
chatReports;
|
|
462
589
|
constructor(client) {
|
|
463
590
|
this.topics = new TopicsCollection(client);
|
|
464
591
|
this.events = new EventsCollection(client);
|
|
@@ -471,6 +598,8 @@ export class EventsApi {
|
|
|
471
598
|
this.realtimeChannels = new RealtimeChannelsCollection(client);
|
|
472
599
|
this.realtimeMessages = new RealtimeMessagesCollection(client);
|
|
473
600
|
this.realtimeMembers = new RealtimeMembersCollection(client);
|
|
601
|
+
this.chatProfiles = new ChatProfilesCollection(client);
|
|
602
|
+
this.chatReports = new ChatReportsCollection(client);
|
|
474
603
|
}
|
|
475
604
|
}
|
|
476
605
|
/** `topics` of Sylphx Events: Resource type `events.sylphx.com/Topic`. */
|
|
@@ -1456,6 +1585,39 @@ export class RealtimeChannelsCollection {
|
|
|
1456
1585
|
mutation: true,
|
|
1457
1586
|
});
|
|
1458
1587
|
}
|
|
1588
|
+
/**
|
|
1589
|
+
* Joins a persistent Chat conversation.
|
|
1590
|
+
*
|
|
1591
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/realtime_channels/*}:join` · permission `events:write` · effect `write`
|
|
1592
|
+
*
|
|
1593
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
1594
|
+
*/
|
|
1595
|
+
async join(request) {
|
|
1596
|
+
return this.client.call({
|
|
1597
|
+
method: 'POST',
|
|
1598
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/realtime_channels/*', 'name')}:join`,
|
|
1599
|
+
body: runtime.omit(request, ['name']),
|
|
1600
|
+
bodyType: 'sylphx.events.v1.JoinRealtimeChannelRequest',
|
|
1601
|
+
responseType: 'sylphx.events.v1.RealtimeMember',
|
|
1602
|
+
mutation: true,
|
|
1603
|
+
});
|
|
1604
|
+
}
|
|
1605
|
+
/**
|
|
1606
|
+
* Leaves Chat while retaining durable read state.
|
|
1607
|
+
*
|
|
1608
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/realtime_channels/*}:leave` · permission `events:write` · effect `write`
|
|
1609
|
+
*
|
|
1610
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
1611
|
+
*/
|
|
1612
|
+
async leave(request) {
|
|
1613
|
+
return this.client.call({
|
|
1614
|
+
method: 'POST',
|
|
1615
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/realtime_channels/*', 'name')}:leave`,
|
|
1616
|
+
body: runtime.omit(request, ['name']),
|
|
1617
|
+
bodyType: 'sylphx.events.v1.LeaveRealtimeChannelRequest',
|
|
1618
|
+
mutation: true,
|
|
1619
|
+
});
|
|
1620
|
+
}
|
|
1459
1621
|
}
|
|
1460
1622
|
/** `realtime_messages` of Sylphx Events: Resource type `events.sylphx.com/RealtimeMessage`. */
|
|
1461
1623
|
export class RealtimeMessagesCollection {
|
|
@@ -1474,6 +1636,7 @@ export class RealtimeMessagesCollection {
|
|
|
1474
1636
|
return this.client.call({
|
|
1475
1637
|
method: 'GET',
|
|
1476
1638
|
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/realtime_channels/*/realtime_messages/*', 'name')}`,
|
|
1639
|
+
query: { client_id: request.clientId },
|
|
1477
1640
|
responseType: 'sylphx.events.v1.RealtimeMessage',
|
|
1478
1641
|
mutation: false,
|
|
1479
1642
|
});
|
|
@@ -1489,7 +1652,7 @@ export class RealtimeMessagesCollection {
|
|
|
1489
1652
|
return this.client.call({
|
|
1490
1653
|
method: 'GET',
|
|
1491
1654
|
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*/realtime_channels/*', 'parent')}/realtime_messages`,
|
|
1492
|
-
query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter },
|
|
1655
|
+
query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, client_id: request.clientId, after_cursor: request.afterCursor, before_cursor: request.beforeCursor },
|
|
1493
1656
|
responseType: 'sylphx.events.v1.ListRealtimeMessagesResponse',
|
|
1494
1657
|
mutation: false,
|
|
1495
1658
|
});
|
|
@@ -1505,6 +1668,23 @@ export class RealtimeMessagesCollection {
|
|
|
1505
1668
|
next = { ...request, pageToken: page.nextPageToken };
|
|
1506
1669
|
}
|
|
1507
1670
|
}
|
|
1671
|
+
/**
|
|
1672
|
+
* Adds or removes a member reaction on a visible Chat message.
|
|
1673
|
+
*
|
|
1674
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/realtime_channels/*\/realtime_messages/*}:react` · permission `events:write` · effect `write`
|
|
1675
|
+
*
|
|
1676
|
+
* Errors: `PERMISSION_DENIED`, `INVALID_FIELD`, `INVALID_STATE`, `RESOURCE_NOT_FOUND`.
|
|
1677
|
+
*/
|
|
1678
|
+
async react(request) {
|
|
1679
|
+
return this.client.call({
|
|
1680
|
+
method: 'POST',
|
|
1681
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/realtime_channels/*/realtime_messages/*', 'name')}:react`,
|
|
1682
|
+
body: runtime.omit(request, ['name']),
|
|
1683
|
+
bodyType: 'sylphx.events.v1.ReactRealtimeMessageRequest',
|
|
1684
|
+
responseType: 'sylphx.events.v1.RealtimeMessage',
|
|
1685
|
+
mutation: true,
|
|
1686
|
+
});
|
|
1687
|
+
}
|
|
1508
1688
|
}
|
|
1509
1689
|
/** `realtime_members` of Sylphx Events: Resource type `events.sylphx.com/RealtimeMember`. */
|
|
1510
1690
|
export class RealtimeMembersCollection {
|
|
@@ -1554,5 +1734,247 @@ export class RealtimeMembersCollection {
|
|
|
1554
1734
|
next = { ...request, pageToken: page.nextPageToken };
|
|
1555
1735
|
}
|
|
1556
1736
|
}
|
|
1737
|
+
/**
|
|
1738
|
+
* Advances a member read cursor monotonically and sets mute.
|
|
1739
|
+
*
|
|
1740
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/realtime_channels/*\/realtime_members/*}:read` · permission `events:write` · effect `write`
|
|
1741
|
+
*
|
|
1742
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
1743
|
+
*/
|
|
1744
|
+
async read(request) {
|
|
1745
|
+
return this.client.call({
|
|
1746
|
+
method: 'POST',
|
|
1747
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/realtime_channels/*/realtime_members/*', 'name')}:read`,
|
|
1748
|
+
body: runtime.omit(request, ['name']),
|
|
1749
|
+
bodyType: 'sylphx.events.v1.ReadRealtimeMemberRequest',
|
|
1750
|
+
responseType: 'sylphx.events.v1.RealtimeMember',
|
|
1751
|
+
mutation: true,
|
|
1752
|
+
});
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
/** `chat_profiles` of Sylphx Events: Resource type `events.sylphx.com/ChatProfile`. */
|
|
1756
|
+
export class ChatProfilesCollection {
|
|
1757
|
+
client;
|
|
1758
|
+
constructor(client) {
|
|
1759
|
+
this.client = client;
|
|
1760
|
+
}
|
|
1761
|
+
/**
|
|
1762
|
+
* Gets a Chat profile and fresh presence.
|
|
1763
|
+
*
|
|
1764
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/chat_profiles/*}` · permission `events:read` · effect `read`
|
|
1765
|
+
*
|
|
1766
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
1767
|
+
*/
|
|
1768
|
+
async get(request) {
|
|
1769
|
+
return this.client.call({
|
|
1770
|
+
method: 'GET',
|
|
1771
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/chat_profiles/*', 'name')}`,
|
|
1772
|
+
responseType: 'sylphx.events.v1.ChatProfile',
|
|
1773
|
+
mutation: false,
|
|
1774
|
+
});
|
|
1775
|
+
}
|
|
1776
|
+
/**
|
|
1777
|
+
* Configures an authenticated Chat identity through its trusted backend.
|
|
1778
|
+
*
|
|
1779
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/chat_profiles/*}:configure` · permission `events:write` · effect `write`
|
|
1780
|
+
*
|
|
1781
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
1782
|
+
*/
|
|
1783
|
+
async configure(request) {
|
|
1784
|
+
return this.client.call({
|
|
1785
|
+
method: 'POST',
|
|
1786
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/chat_profiles/*', 'name')}:configure`,
|
|
1787
|
+
body: runtime.omit(request, ['name']),
|
|
1788
|
+
bodyType: 'sylphx.events.v1.ConfigureChatProfileRequest',
|
|
1789
|
+
responseType: 'sylphx.events.v1.ChatProfile',
|
|
1790
|
+
mutation: true,
|
|
1791
|
+
});
|
|
1792
|
+
}
|
|
1793
|
+
/**
|
|
1794
|
+
* Changes friendship or a bilateral interaction block.
|
|
1795
|
+
*
|
|
1796
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/chat_profiles/*}:setRelationship` · permission `events:write` · effect `write`
|
|
1797
|
+
*
|
|
1798
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
1799
|
+
*/
|
|
1800
|
+
async setRelationship(request) {
|
|
1801
|
+
return this.client.call({
|
|
1802
|
+
method: 'POST',
|
|
1803
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/chat_profiles/*', 'name')}:setRelationship`,
|
|
1804
|
+
body: runtime.omit(request, ['name']),
|
|
1805
|
+
bodyType: 'sylphx.events.v1.SetChatRelationshipRequest',
|
|
1806
|
+
responseType: 'sylphx.events.v1.ChatRelationship',
|
|
1807
|
+
mutation: true,
|
|
1808
|
+
});
|
|
1809
|
+
}
|
|
1810
|
+
/**
|
|
1811
|
+
* Lists friends and pending requests with presence.
|
|
1812
|
+
*
|
|
1813
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/chat_profiles/*}:listRelationships` · permission `events:read` · effect `read`
|
|
1814
|
+
*
|
|
1815
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
1816
|
+
*/
|
|
1817
|
+
async listRelationships(request) {
|
|
1818
|
+
return this.client.call({
|
|
1819
|
+
method: 'GET',
|
|
1820
|
+
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*/chat_profiles/*', 'parent')}:listRelationships`,
|
|
1821
|
+
query: { page_size: request.pageSize, page_token: request.pageToken },
|
|
1822
|
+
responseType: 'sylphx.events.v1.ListChatRelationshipsResponse',
|
|
1823
|
+
mutation: false,
|
|
1824
|
+
});
|
|
1825
|
+
}
|
|
1826
|
+
/**
|
|
1827
|
+
* Reports a message, image or user to the moderation queue.
|
|
1828
|
+
*
|
|
1829
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/chat_profiles/*}:report` · permission `events:write` · effect `write`
|
|
1830
|
+
*
|
|
1831
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
1832
|
+
*/
|
|
1833
|
+
async report(request) {
|
|
1834
|
+
return this.client.call({
|
|
1835
|
+
method: 'POST',
|
|
1836
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/chat_profiles/*', 'name')}:report`,
|
|
1837
|
+
body: runtime.omit(request, ['name']),
|
|
1838
|
+
bodyType: 'sylphx.events.v1.ReportChatContentRequest',
|
|
1839
|
+
responseType: 'sylphx.events.v1.ChatReport',
|
|
1840
|
+
mutation: true,
|
|
1841
|
+
});
|
|
1842
|
+
}
|
|
1843
|
+
/**
|
|
1844
|
+
* Registers an image and its automated moderation receipt.
|
|
1845
|
+
*
|
|
1846
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/chat_profiles/*}:reviewMedia` · permission `events:write` · effect `write`
|
|
1847
|
+
*
|
|
1848
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
1849
|
+
*/
|
|
1850
|
+
async reviewMedia(request) {
|
|
1851
|
+
return this.client.call({
|
|
1852
|
+
method: 'POST',
|
|
1853
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/chat_profiles/*', 'name')}:reviewMedia`,
|
|
1854
|
+
body: runtime.omit(request, ['name']),
|
|
1855
|
+
bodyType: 'sylphx.events.v1.ReviewChatMediaRequest',
|
|
1856
|
+
responseType: 'sylphx.events.v1.ChatMediaReview',
|
|
1857
|
+
mutation: true,
|
|
1858
|
+
});
|
|
1859
|
+
}
|
|
1860
|
+
/**
|
|
1861
|
+
* Verifies an official account through a distinct administrator permission.
|
|
1862
|
+
*
|
|
1863
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/chat_profiles/*}:setOfficialStatus` · permission `events:chat:admin` · effect `write`
|
|
1864
|
+
*
|
|
1865
|
+
* Errors: `PERMISSION_DENIED`, `INVALID_FIELD`.
|
|
1866
|
+
*/
|
|
1867
|
+
async setOfficialStatus(request) {
|
|
1868
|
+
return this.client.call({
|
|
1869
|
+
method: 'POST',
|
|
1870
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/chat_profiles/*', 'name')}:setOfficialStatus`,
|
|
1871
|
+
body: runtime.omit(request, ['name']),
|
|
1872
|
+
bodyType: 'sylphx.events.v1.SetChatOfficialStatusRequest',
|
|
1873
|
+
responseType: 'sylphx.events.v1.ChatProfile',
|
|
1874
|
+
mutation: true,
|
|
1875
|
+
});
|
|
1876
|
+
}
|
|
1877
|
+
/**
|
|
1878
|
+
* Records an exact Auth-verified guest-to-platform identity link grant.
|
|
1879
|
+
*
|
|
1880
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/chat_profiles/*}:bindIdentity` · permission `events:chat:admin` · effect `write`
|
|
1881
|
+
*
|
|
1882
|
+
* Errors: `PERMISSION_DENIED`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
1883
|
+
*/
|
|
1884
|
+
async bindIdentity(request) {
|
|
1885
|
+
return this.client.call({
|
|
1886
|
+
method: 'POST',
|
|
1887
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/chat_profiles/*', 'name')}:bindIdentity`,
|
|
1888
|
+
body: runtime.omit(request, ['name']),
|
|
1889
|
+
bodyType: 'sylphx.events.v1.BindChatIdentityRequest',
|
|
1890
|
+
responseType: 'sylphx.events.v1.ChatProfile',
|
|
1891
|
+
mutation: true,
|
|
1892
|
+
});
|
|
1893
|
+
}
|
|
1894
|
+
/**
|
|
1895
|
+
* Rehomes linked guest state without discarding messages or relationships.
|
|
1896
|
+
*
|
|
1897
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/chat_profiles/*}:mergeIdentity` · permission `events:chat:admin` · effect `write`
|
|
1898
|
+
*
|
|
1899
|
+
* Errors: `PERMISSION_DENIED`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
1900
|
+
*/
|
|
1901
|
+
async mergeIdentity(request) {
|
|
1902
|
+
return this.client.call({
|
|
1903
|
+
method: 'POST',
|
|
1904
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/chat_profiles/*', 'name')}:mergeIdentity`,
|
|
1905
|
+
body: runtime.omit(request, ['name']),
|
|
1906
|
+
bodyType: 'sylphx.events.v1.MergeChatIdentityRequest',
|
|
1907
|
+
responseType: 'sylphx.events.v1.ChatProfile',
|
|
1908
|
+
mutation: true,
|
|
1909
|
+
});
|
|
1910
|
+
}
|
|
1911
|
+
/**
|
|
1912
|
+
* Issues a bounded player capability after verified Auth token exchange.
|
|
1913
|
+
*
|
|
1914
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/chat_profiles/*}:issueToken` · permission `events:write` · effect `write`
|
|
1915
|
+
*
|
|
1916
|
+
* Errors: `PERMISSION_DENIED`, `INVALID_FIELD`, `RESOURCE_NOT_FOUND`, `UNAVAILABLE`.
|
|
1917
|
+
*/
|
|
1918
|
+
async issueToken(request) {
|
|
1919
|
+
return this.client.call({
|
|
1920
|
+
method: 'POST',
|
|
1921
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/chat_profiles/*', 'name')}:issueToken`,
|
|
1922
|
+
body: runtime.omit(request, ['name']),
|
|
1923
|
+
bodyType: 'sylphx.events.v1.IssueChatTokenRequest',
|
|
1924
|
+
responseType: 'sylphx.events.v1.IssueChatTokenResponse',
|
|
1925
|
+
mutation: true,
|
|
1926
|
+
});
|
|
1927
|
+
}
|
|
1928
|
+
}
|
|
1929
|
+
/** `chat_reports` of Sylphx Events: Resource type `events.sylphx.com/ChatReport`. */
|
|
1930
|
+
export class ChatReportsCollection {
|
|
1931
|
+
client;
|
|
1932
|
+
constructor(client) {
|
|
1933
|
+
this.client = client;
|
|
1934
|
+
}
|
|
1935
|
+
/**
|
|
1936
|
+
* Lists the moderation queue.
|
|
1937
|
+
*
|
|
1938
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/chat_reports` · permission `events:read` · effect `read`
|
|
1939
|
+
*
|
|
1940
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
1941
|
+
*/
|
|
1942
|
+
async list(request) {
|
|
1943
|
+
return this.client.call({
|
|
1944
|
+
method: 'GET',
|
|
1945
|
+
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/chat_reports`,
|
|
1946
|
+
query: { page_size: request.pageSize, page_token: request.pageToken },
|
|
1947
|
+
responseType: 'sylphx.events.v1.ListChatReportsResponse',
|
|
1948
|
+
mutation: false,
|
|
1949
|
+
});
|
|
1950
|
+
}
|
|
1951
|
+
/** Every item of every page of `list`. */
|
|
1952
|
+
async *listAll(request) {
|
|
1953
|
+
let next = request;
|
|
1954
|
+
for (;;) {
|
|
1955
|
+
const page = await this.list(next);
|
|
1956
|
+
yield* page.chatReports ?? [];
|
|
1957
|
+
if (page.nextPageToken === undefined || page.nextPageToken === '')
|
|
1958
|
+
return;
|
|
1959
|
+
next = { ...request, pageToken: page.nextPageToken };
|
|
1960
|
+
}
|
|
1961
|
+
}
|
|
1962
|
+
/**
|
|
1963
|
+
* Records a moderation response.
|
|
1964
|
+
*
|
|
1965
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/chat_reports/*}:resolve` · permission `events:write` · effect `write`
|
|
1966
|
+
*
|
|
1967
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
1968
|
+
*/
|
|
1969
|
+
async resolve(request) {
|
|
1970
|
+
return this.client.call({
|
|
1971
|
+
method: 'POST',
|
|
1972
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/chat_reports/*', 'name')}:resolve`,
|
|
1973
|
+
body: runtime.omit(request, ['name']),
|
|
1974
|
+
bodyType: 'sylphx.events.v1.ResolveChatReportRequest',
|
|
1975
|
+
responseType: 'sylphx.events.v1.ChatReport',
|
|
1976
|
+
mutation: true,
|
|
1977
|
+
});
|
|
1978
|
+
}
|
|
1557
1979
|
}
|
|
1558
1980
|
//# sourceMappingURL=events.js.map
|