@sylphx/sdk 0.32.7 → 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 CHANGED
@@ -1135,7 +1135,7 @@ export type EndUserState = 'active' | 'suspended' | (string & {});
1135
1135
  /** An OAuth grant. */
1136
1136
  export type GrantType = 'authorization_code' | 'refresh_token' | 'device_code' | 'client_credentials' | (string & {});
1137
1137
  /** The kind of an Identity. */
1138
- export type IdentityType = 'password' | 'email' | 'oidc' | 'device' | 'passkey' | (string & {});
1138
+ export type IdentityType = 'password' | 'email' | 'oidc' | 'device' | 'passkey' | 'phone' | (string & {});
1139
1139
  /** The lifecycle of an Invitation. */
1140
1140
  export type InvitationState = 'pending' | 'accepted' | 'revoked' | 'expired' | (string & {});
1141
1141
  /** RFC 6749 client type. */
package/dist/events.d.ts CHANGED
@@ -48,6 +48,20 @@ export interface ChatChannelPolicy {
48
48
  /** Optional originating title for world/room/guild/support. Empty is cross-title. */
49
49
  titleId?: string;
50
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
+ }
51
65
  /**
52
66
  * A content-hashed image; delivery requires an approved moderation receipt for
53
67
  * this exact digest, URI and uploader. Uploading does not approve content.
@@ -81,7 +95,7 @@ export interface ChatMediaReview {
81
95
  reason?: string;
82
96
  }
83
97
  /**
84
- * Structured Chat payload; exactly one of text/image/location/poll/room_invite
98
+ * Structured Chat payload; exactly one of text/image/location/poll/room_invite/sticker
85
99
  * must be set. Replies and mentions refer to the same conversation.
86
100
  */
87
101
  export interface ChatMessageContent {
@@ -99,6 +113,8 @@ export interface ChatMessageContent {
99
113
  replyToCursor?: string;
100
114
  /** Member ids mentioned by this message. */
101
115
  mentionedClientIds?: string[];
116
+ /** A paid catalog asset; the server verifies entitlement and stamps its bytes. */
117
+ sticker?: ChatSticker;
102
118
  }
103
119
  /** A poll in the conversation; votes are recorded once per member. */
104
120
  export interface ChatPoll {
@@ -142,6 +158,26 @@ export interface ChatProfile {
142
158
  readonly quietHoursStartUtcMinute?: number;
143
159
  /** UTC exclusive end, 0..1440; may wrap midnight. */
144
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;
145
181
  }
146
182
  /** One reaction aggregate on a message. */
147
183
  export interface ChatReaction {
@@ -199,6 +235,46 @@ export interface ChatSender {
199
235
  displayName?: string;
200
236
  /** Verified official status, assigned through a trusted backend operation. */
201
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;
202
278
  }
203
279
  /** A CloudEvents 1.0 event as a producer submits it. */
204
280
  export interface CloudEvent {
@@ -235,6 +311,11 @@ export interface ConfigureChatProfileRequest {
235
311
  quietHoursStartUtcMinute?: number;
236
312
  /** UTC exclusive end, including midnight as 1440. */
237
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;
238
319
  }
239
320
  /**
240
321
  * A Connector is one delivery channel of the environment, as stored: an
@@ -477,6 +558,11 @@ export interface GetChatProfileRequest {
477
558
  /** Profile resource name. */
478
559
  name: string;
479
560
  }
561
+ /** Reads a tenant's pack. */
562
+ export interface GetChatStickerPackRequest {
563
+ /** Pack resource name. */
564
+ name: string;
565
+ }
480
566
  /** The request of GetConnector. */
481
567
  export interface GetConnectorRequest {
482
568
  /** The name of the connector to get. */
@@ -698,6 +784,22 @@ export interface ListChatReportsResponse {
698
784
  /** Empty at the end. */
699
785
  nextPageToken?: string;
700
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
+ }
701
803
  /** The request of ListConnectors. */
702
804
  export interface ListConnectorsRequest {
703
805
  /** The parent to list in. */
@@ -1179,6 +1281,20 @@ export interface RealtimeMessage {
1179
1281
  /** Member reactions, from the same conversation authority. */
1180
1282
  readonly reactions?: ChatReaction[];
1181
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;
1297
+ }
1182
1298
  /** The request of ReplayQueue. */
1183
1299
  export interface ReplayQueueRequest {
1184
1300
  /** The name of the queue. */
@@ -1374,6 +1490,16 @@ export interface TopicStatus {
1374
1490
  /** Ready, Reconciling, Stalled. */
1375
1491
  readonly conditions?: common.Condition[];
1376
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
+ }
1377
1503
  /** The request of UpdateInboundEndpoint. */
1378
1504
  export interface UpdateInboundEndpointRequest {
1379
1505
  /** The inbound endpoint to update; `name` identifies it. */
@@ -1440,6 +1566,18 @@ export interface UpdateWebhookEndpointRequest {
1440
1566
  /** Validate and return the result without writing anything. */
1441
1567
  validateOnly?: boolean;
1442
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
+ }
1443
1581
  /**
1444
1582
  * A Webhook Delivery is one event on its way to a Webhook Endpoint, with every
1445
1583
  * attempt and its immutable receipt. A receipt is evidence of an endpoint
@@ -1452,9 +1590,15 @@ export interface WebhookDelivery {
1452
1590
  readonly uid?: string;
1453
1591
  /** Resource metadata. */
1454
1592
  meta?: common.ResourceMeta;
1455
- /** The Event delivered. */
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
+ */
1456
1597
  readonly event?: string;
1457
- /** The Subscription that fanned it out. */
1598
+ /**
1599
+ * The sole retained Subscription association. Unset when zero or multiple
1600
+ * Subscriptions share this delivery; use subscriptions for the complete set.
1601
+ */
1458
1602
  readonly subscription?: string;
1459
1603
  /** The delivery state. */
1460
1604
  readonly state?: DeliveryState;
@@ -1464,6 +1608,11 @@ export interface WebhookDelivery {
1464
1608
  readonly nextAttemptTime?: string;
1465
1609
  /** The CloudEvents `type` of the event delivered. */
1466
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[];
1467
1616
  }
1468
1617
  /**
1469
1618
  * A Webhook Endpoint is an HTTPS receiver that events of its environment
@@ -1583,6 +1732,8 @@ export declare class EventsApi {
1583
1732
  readonly chatProfiles: ChatProfilesCollection;
1584
1733
  /** The `chat_reports` collection. */
1585
1734
  readonly chatReports: ChatReportsCollection;
1735
+ /** The `chat_sticker_packs` collection. */
1736
+ readonly chatStickerPacks: ChatStickerPacksCollection;
1586
1737
  constructor(client: runtime.Client);
1587
1738
  }
1588
1739
  /** `topics` of Sylphx Events: Resource type `events.sylphx.com/Topic`. */
@@ -2210,6 +2361,22 @@ export declare class ChatProfilesCollection {
2210
2361
  * Errors: `PERMISSION_DENIED`, `INVALID_FIELD`, `INVALID_STATE`.
2211
2362
  */
2212
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>>;
2213
2380
  /**
2214
2381
  * Issues a bounded player capability after verified Auth token exchange.
2215
2382
  *
@@ -2242,3 +2409,34 @@ export declare class ChatReportsCollection {
2242
2409
  */
2243
2410
  resolve(request: ResolveChatReportRequest): Promise<ChatReport>;
2244
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>;
2442
+ }
package/dist/events.js CHANGED
@@ -19,6 +19,11 @@ runtime.registerSchemas({
19
19
  ['participantIds', 'participant_ids'],
20
20
  ['titleId', 'title_id'],
21
21
  ],
22
+ 'sylphx.events.v1.ChatCosmetics': [
23
+ ['avatarFrameId', 'avatar_frame_id'],
24
+ ['nameColorId', 'name_color_id'],
25
+ ['titleBadgeId', 'title_badge_id'],
26
+ ],
22
27
  'sylphx.events.v1.ChatImage': [
23
28
  ['contentUri', 'content_uri'],
24
29
  ],
@@ -34,6 +39,7 @@ runtime.registerSchemas({
34
39
  ['roomInvite', 'room_invite'],
35
40
  ['replyToCursor', 'reply_to_cursor'],
36
41
  ['mentionedClientIds', 'mentioned_client_ids'],
42
+ ['sticker', 'sticker', 'sylphx.events.v1.ChatSticker'],
37
43
  ],
38
44
  'sylphx.events.v1.ChatPoll': [],
39
45
  'sylphx.events.v1.ChatProfile': [
@@ -43,6 +49,14 @@ runtime.registerSchemas({
43
49
  ['allowStrangerImages', 'allow_stranger_images'],
44
50
  ['quietHoursStartUtcMinute', 'quiet_hours_start_utc_minute'],
45
51
  ['quietHoursEndUtcMinute', 'quiet_hours_end_utc_minute'],
52
+ ['cosmetics', 'cosmetics', 'sylphx.events.v1.ChatCosmetics'],
53
+ ],
54
+ 'sylphx.events.v1.ChatPushDeviceRegistration': [
55
+ ['recipientName', 'recipient_name'],
56
+ ['recipientUid', 'recipient_uid'],
57
+ ['registrationId', 'registration_id'],
58
+ ['registrationGeneration', 'registration_generation'],
59
+ ['applicationServerKey', 'application_server_key'],
46
60
  ],
47
61
  'sylphx.events.v1.ChatReaction': [
48
62
  ['clientIds', 'client_ids'],
@@ -62,6 +76,21 @@ runtime.registerSchemas({
62
76
  'sylphx.events.v1.ChatSender': [
63
77
  ['clientId', 'client_id'],
64
78
  ['displayName', 'display_name'],
79
+ ['cosmetics', 'cosmetics', 'sylphx.events.v1.ChatCosmetics'],
80
+ ],
81
+ 'sylphx.events.v1.ChatSticker': [
82
+ ['packId', 'pack_id'],
83
+ ['stickerId', 'sticker_id'],
84
+ ['contentUri', 'content_uri'],
85
+ ['mimeType', 'mime_type'],
86
+ ],
87
+ 'sylphx.events.v1.ChatStickerAsset': [
88
+ ['sticker', 'sticker', 'sylphx.events.v1.ChatSticker'],
89
+ ],
90
+ 'sylphx.events.v1.ChatStickerPack': [
91
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
92
+ ['displayName', 'display_name'],
93
+ ['assets', 'assets', 'sylphx.events.v1.ChatStickerAsset'],
65
94
  ],
66
95
  'sylphx.events.v1.CloudEvent': [
67
96
  ['eventTime', 'event_time'],
@@ -76,6 +105,7 @@ runtime.registerSchemas({
76
105
  ['allowStrangerImages', 'allow_stranger_images'],
77
106
  ['quietHoursStartUtcMinute', 'quiet_hours_start_utc_minute'],
78
107
  ['quietHoursEndUtcMinute', 'quiet_hours_end_utc_minute'],
108
+ ['cosmetics', 'cosmetics', 'sylphx.events.v1.ChatCosmetics'],
79
109
  ],
80
110
  'sylphx.events.v1.Connector': [
81
111
  ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
@@ -155,6 +185,7 @@ runtime.registerSchemas({
155
185
  ['admitTime', 'admit_time'],
156
186
  ],
157
187
  'sylphx.events.v1.GetChatProfileRequest': [],
188
+ 'sylphx.events.v1.GetChatStickerPackRequest': [],
158
189
  'sylphx.events.v1.GetConnectorRequest': [],
159
190
  'sylphx.events.v1.GetEventRequest': [],
160
191
  'sylphx.events.v1.GetInboundEndpointRequest': [],
@@ -233,6 +264,14 @@ runtime.registerSchemas({
233
264
  ['chatReports', 'chat_reports', 'sylphx.events.v1.ChatReport'],
234
265
  ['nextPageToken', 'next_page_token'],
235
266
  ],
267
+ 'sylphx.events.v1.ListChatStickerPacksRequest': [
268
+ ['pageSize', 'page_size'],
269
+ ['pageToken', 'page_token'],
270
+ ],
271
+ 'sylphx.events.v1.ListChatStickerPacksResponse': [
272
+ ['chatStickerPacks', 'chat_sticker_packs', 'sylphx.events.v1.ChatStickerPack'],
273
+ ['nextPageToken', 'next_page_token'],
274
+ ],
236
275
  'sylphx.events.v1.ListConnectorsRequest': [
237
276
  ['pageSize', 'page_size'],
238
277
  ['pageToken', 'page_token'],
@@ -429,6 +468,9 @@ runtime.registerSchemas({
429
468
  ['sender', 'sender', 'sylphx.events.v1.ChatSender'],
430
469
  ['reactions', 'reactions', 'sylphx.events.v1.ChatReaction'],
431
470
  ],
471
+ 'sylphx.events.v1.RegisterChatPushDeviceRequest': [
472
+ ['deviceToken', 'device_token'],
473
+ ],
432
474
  'sylphx.events.v1.ReplayQueueRequest': [
433
475
  ['startTime', 'start_time'],
434
476
  ['endTime', 'end_time'],
@@ -490,6 +532,9 @@ runtime.registerSchemas({
490
532
  ['observedGeneration', 'observed_generation'],
491
533
  ['conditions', 'conditions', 'sylphx.common.v1.Condition'],
492
534
  ],
535
+ 'sylphx.events.v1.UnregisterChatPushDeviceRequest': [
536
+ ['registration', 'registration', 'sylphx.events.v1.ChatPushDeviceRegistration'],
537
+ ],
493
538
  'sylphx.events.v1.UpdateInboundEndpointRequest': [
494
539
  ['inboundEndpoint', 'inbound_endpoint', 'sylphx.events.v1.InboundEndpoint'],
495
540
  ['updateMask', 'update_mask'],
@@ -526,6 +571,10 @@ runtime.registerSchemas({
526
571
  ['allowMissing', 'allow_missing'],
527
572
  ['validateOnly', 'validate_only'],
528
573
  ],
574
+ 'sylphx.events.v1.UpsertChatStickerPackRequest': [
575
+ ['displayName', 'display_name'],
576
+ ['assets', 'assets', 'sylphx.events.v1.ChatStickerAsset'],
577
+ ],
529
578
  'sylphx.events.v1.WebhookDelivery': [
530
579
  ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
531
580
  ['attempts', 'attempts', 'sylphx.events.v1.DeliveryAttempt'],
@@ -586,6 +635,8 @@ export class EventsApi {
586
635
  chatProfiles;
587
636
  /** The `chat_reports` collection. */
588
637
  chatReports;
638
+ /** The `chat_sticker_packs` collection. */
639
+ chatStickerPacks;
589
640
  constructor(client) {
590
641
  this.topics = new TopicsCollection(client);
591
642
  this.events = new EventsCollection(client);
@@ -600,6 +651,7 @@ export class EventsApi {
600
651
  this.realtimeMembers = new RealtimeMembersCollection(client);
601
652
  this.chatProfiles = new ChatProfilesCollection(client);
602
653
  this.chatReports = new ChatReportsCollection(client);
654
+ this.chatStickerPacks = new ChatStickerPacksCollection(client);
603
655
  }
604
656
  }
605
657
  /** `topics` of Sylphx Events: Resource type `events.sylphx.com/Topic`. */
@@ -1908,6 +1960,39 @@ export class ChatProfilesCollection {
1908
1960
  mutation: true,
1909
1961
  });
1910
1962
  }
1963
+ /**
1964
+ * Registers a browser device using only the authenticated Chat session.
1965
+ *
1966
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/chat_profiles/*}:registerPushDevice` · permission `events:write` · effect `write`
1967
+ *
1968
+ * Errors: `PERMISSION_DENIED`, `INVALID_FIELD`, `INVALID_STATE`, `UNAVAILABLE`.
1969
+ */
1970
+ async registerPushDevice(request) {
1971
+ return this.client.call({
1972
+ method: 'POST',
1973
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/chat_profiles/*', 'name')}:registerPushDevice`,
1974
+ body: runtime.omit(request, ['name']),
1975
+ bodyType: 'sylphx.events.v1.RegisterChatPushDeviceRequest',
1976
+ responseType: 'sylphx.events.v1.ChatPushDeviceRegistration',
1977
+ mutation: true,
1978
+ });
1979
+ }
1980
+ /**
1981
+ * Removes this session's exact upstream device epoch; stale logout is a no-op.
1982
+ *
1983
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/chat_profiles/*}:unregisterPushDevice` · permission `events:write` · effect `write`
1984
+ *
1985
+ * Errors: `PERMISSION_DENIED`, `INVALID_FIELD`, `UNAVAILABLE`.
1986
+ */
1987
+ async unregisterPushDevice(request) {
1988
+ return this.client.call({
1989
+ method: 'POST',
1990
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/chat_profiles/*', 'name')}:unregisterPushDevice`,
1991
+ body: runtime.omit(request, ['name']),
1992
+ bodyType: 'sylphx.events.v1.UnregisterChatPushDeviceRequest',
1993
+ mutation: true,
1994
+ });
1995
+ }
1911
1996
  /**
1912
1997
  * Issues a bounded player capability after verified Auth token exchange.
1913
1998
  *
@@ -1977,4 +2062,70 @@ export class ChatReportsCollection {
1977
2062
  });
1978
2063
  }
1979
2064
  }
2065
+ /** `chat_sticker_packs` of Sylphx Events: Resource type `events.sylphx.com/ChatStickerPack`. */
2066
+ export class ChatStickerPacksCollection {
2067
+ client;
2068
+ constructor(client) {
2069
+ this.client = client;
2070
+ }
2071
+ /**
2072
+ * Gets an authoritative tenant sticker pack.
2073
+ *
2074
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/chat_sticker_packs/*}` · permission `events:read` · effect `read`
2075
+ *
2076
+ * Errors: `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`.
2077
+ */
2078
+ async get(request) {
2079
+ return this.client.call({
2080
+ method: 'GET',
2081
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/chat_sticker_packs/*', 'name')}`,
2082
+ responseType: 'sylphx.events.v1.ChatStickerPack',
2083
+ mutation: false,
2084
+ });
2085
+ }
2086
+ /**
2087
+ * Lists the tenant sticker catalog for player discovery.
2088
+ *
2089
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/chat_sticker_packs` · permission `events:read` · effect `read`
2090
+ *
2091
+ * Errors: `PERMISSION_DENIED`, `INVALID_FIELD`.
2092
+ */
2093
+ async list(request) {
2094
+ return this.client.call({
2095
+ method: 'GET',
2096
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/chat_sticker_packs`,
2097
+ query: { page_size: request.pageSize, page_token: request.pageToken },
2098
+ responseType: 'sylphx.events.v1.ListChatStickerPacksResponse',
2099
+ mutation: false,
2100
+ });
2101
+ }
2102
+ /** Every item of every page of `list`. */
2103
+ async *listAll(request) {
2104
+ let next = request;
2105
+ for (;;) {
2106
+ const page = await this.list(next);
2107
+ yield* page.chatStickerPacks ?? [];
2108
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
2109
+ return;
2110
+ next = { ...request, pageToken: page.nextPageToken };
2111
+ }
2112
+ }
2113
+ /**
2114
+ * Publishes the trusted backend's complete sticker pack catalog.
2115
+ *
2116
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/chat_sticker_packs/*}:upsert` · permission `events:chat:admin` · effect `write`
2117
+ *
2118
+ * Errors: `PERMISSION_DENIED`, `INVALID_FIELD`.
2119
+ */
2120
+ async upsert(request) {
2121
+ return this.client.call({
2122
+ method: 'POST',
2123
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/chat_sticker_packs/*', 'name')}:upsert`,
2124
+ body: runtime.omit(request, ['name']),
2125
+ bodyType: 'sylphx.events.v1.UpsertChatStickerPackRequest',
2126
+ responseType: 'sylphx.events.v1.ChatStickerPack',
2127
+ mutation: true,
2128
+ });
2129
+ }
2130
+ }
1980
2131
  //# sourceMappingURL=events.js.map