@spawnco/sdk-types 0.0.45 → 0.0.47

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/index.d.mts CHANGED
@@ -101,6 +101,10 @@ interface SpawnClientSDK__V1<TConfig = any> {
101
101
  query?: Record<string, string>;
102
102
  headers?: Record<string, string>;
103
103
  }): Promise<Room<ClientSentMessages, ServerSentMessages>>;
104
+ getConnectionUrl(options: {
105
+ roomId: string;
106
+ query?: Record<string, string>;
107
+ }): Promise<string>;
104
108
  };
105
109
  config: {
106
110
  get(): Promise<TConfig>;
@@ -294,6 +298,9 @@ interface TokenPayload {
294
298
  variantId: string;
295
299
  email?: string;
296
300
  username?: string;
301
+ avatarUrl?: string;
302
+ characterModelUrl?: string;
303
+ characterSpriteUrl?: string;
297
304
  isGuest: boolean;
298
305
  iat: number;
299
306
  exp: number;
@@ -303,6 +310,8 @@ interface User {
303
310
  id: string;
304
311
  username: string;
305
312
  avatarUrl?: string;
313
+ characterModelUrl?: string;
314
+ characterSpriteUrl?: string;
306
315
  isGuest: boolean;
307
316
  }
308
317
  interface Room<ClientSentMessages extends Record<string, any>, ServerSentMessages extends Record<string, any>> {
package/dist/index.d.ts CHANGED
@@ -101,6 +101,10 @@ interface SpawnClientSDK__V1<TConfig = any> {
101
101
  query?: Record<string, string>;
102
102
  headers?: Record<string, string>;
103
103
  }): Promise<Room<ClientSentMessages, ServerSentMessages>>;
104
+ getConnectionUrl(options: {
105
+ roomId: string;
106
+ query?: Record<string, string>;
107
+ }): Promise<string>;
104
108
  };
105
109
  config: {
106
110
  get(): Promise<TConfig>;
@@ -294,6 +298,9 @@ interface TokenPayload {
294
298
  variantId: string;
295
299
  email?: string;
296
300
  username?: string;
301
+ avatarUrl?: string;
302
+ characterModelUrl?: string;
303
+ characterSpriteUrl?: string;
297
304
  isGuest: boolean;
298
305
  iat: number;
299
306
  exp: number;
@@ -303,6 +310,8 @@ interface User {
303
310
  id: string;
304
311
  username: string;
305
312
  avatarUrl?: string;
313
+ characterModelUrl?: string;
314
+ characterSpriteUrl?: string;
306
315
  isGuest: boolean;
307
316
  }
308
317
  interface Room<ClientSentMessages extends Record<string, any>, ServerSentMessages extends Record<string, any>> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spawnco/sdk-types",
3
- "version": "0.0.45",
3
+ "version": "0.0.47",
4
4
  "description": "TypeScript type definitions for Spawn SDK",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
package/src/v1.ts CHANGED
@@ -116,6 +116,7 @@ export interface SpawnClientSDK__V1<TConfig = any> {
116
116
  query?: Record<string, string>;
117
117
  headers?: Record<string, string>;
118
118
  }): Promise<Room<ClientSentMessages, ServerSentMessages>>;
119
+ getConnectionUrl(options: { roomId: string; query?: Record<string, string> }): Promise<string>;
119
120
  };
120
121
 
121
122
  config: {
@@ -358,6 +359,9 @@ export interface TokenPayload {
358
359
  variantId: string;
359
360
  email?: string;
360
361
  username?: string;
362
+ avatarUrl?: string;
363
+ characterModelUrl?: string;
364
+ characterSpriteUrl?: string;
361
365
  isGuest: boolean;
362
366
  iat: number;
363
367
  exp: number;
@@ -370,6 +374,8 @@ export interface User {
370
374
  id: string;
371
375
  username: string;
372
376
  avatarUrl?: string;
377
+ characterModelUrl?: string;
378
+ characterSpriteUrl?: string;
373
379
  isGuest: boolean;
374
380
  }
375
381