@spawnco/sdk-types 0.0.44 → 0.0.45

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
@@ -14,6 +14,14 @@ interface MagicCdnApi {
14
14
  type ClipFormat = 'gif' | 'webm' | 'mp4';
15
15
  type ClipKind = 'world' | (string & {});
16
16
  type ClipStatus = 'ready' | 'processing' | 'hidden';
17
+ interface SoundSettings {
18
+ master: number;
19
+ music: number;
20
+ sfx: number;
21
+ ui: number;
22
+ ambience: number;
23
+ voice: number;
24
+ }
17
25
  interface ClipThumbnailDescriptor {
18
26
  assetUrl: string;
19
27
  contentType: string;
@@ -174,6 +182,9 @@ interface SpawnClientSDK__V1<TConfig = any> {
174
182
  }>;
175
183
  };
176
184
  magicCdn: MagicCdnApi;
185
+ sound: {
186
+ get(): Promise<SoundSettings>;
187
+ };
177
188
  }
178
189
  interface SpawnServerSDK__V1<TConfig = any> {
179
190
  user: {
@@ -338,4 +349,4 @@ interface LeaderboardEntry {
338
349
  type SpawnClientSDK__V0<TConfig = any> = Omit<SpawnClientSDK__V1<TConfig>, 'economy'>;
339
350
  type SpawnServerSDK__V0<TConfig = any> = Omit<SpawnServerSDK__V1<TConfig>, 'economy' | 'room'>;
340
351
 
341
- export type { ClipDescriptor, ClipFormat, ClipKind, ClipListOptions, ClipLookupOptions, ClipStatus, ClipThumbnailDescriptor, InventoryItem, Item, LeaderboardEntry, Room, RoomInfo, RoomVisibility, SpawnClientSDK__V0, SpawnClientSDK__V1, SpawnServerSDK__V0, SpawnServerSDK__V1, TokenPayload, UploadClipOptions, User };
352
+ export type { ClipDescriptor, ClipFormat, ClipKind, ClipListOptions, ClipLookupOptions, ClipStatus, ClipThumbnailDescriptor, InventoryItem, Item, LeaderboardEntry, Room, RoomInfo, RoomVisibility, SoundSettings, SpawnClientSDK__V0, SpawnClientSDK__V1, SpawnServerSDK__V0, SpawnServerSDK__V1, TokenPayload, UploadClipOptions, User };
package/dist/index.d.ts CHANGED
@@ -14,6 +14,14 @@ interface MagicCdnApi {
14
14
  type ClipFormat = 'gif' | 'webm' | 'mp4';
15
15
  type ClipKind = 'world' | (string & {});
16
16
  type ClipStatus = 'ready' | 'processing' | 'hidden';
17
+ interface SoundSettings {
18
+ master: number;
19
+ music: number;
20
+ sfx: number;
21
+ ui: number;
22
+ ambience: number;
23
+ voice: number;
24
+ }
17
25
  interface ClipThumbnailDescriptor {
18
26
  assetUrl: string;
19
27
  contentType: string;
@@ -174,6 +182,9 @@ interface SpawnClientSDK__V1<TConfig = any> {
174
182
  }>;
175
183
  };
176
184
  magicCdn: MagicCdnApi;
185
+ sound: {
186
+ get(): Promise<SoundSettings>;
187
+ };
177
188
  }
178
189
  interface SpawnServerSDK__V1<TConfig = any> {
179
190
  user: {
@@ -338,4 +349,4 @@ interface LeaderboardEntry {
338
349
  type SpawnClientSDK__V0<TConfig = any> = Omit<SpawnClientSDK__V1<TConfig>, 'economy'>;
339
350
  type SpawnServerSDK__V0<TConfig = any> = Omit<SpawnServerSDK__V1<TConfig>, 'economy' | 'room'>;
340
351
 
341
- export type { ClipDescriptor, ClipFormat, ClipKind, ClipListOptions, ClipLookupOptions, ClipStatus, ClipThumbnailDescriptor, InventoryItem, Item, LeaderboardEntry, Room, RoomInfo, RoomVisibility, SpawnClientSDK__V0, SpawnClientSDK__V1, SpawnServerSDK__V0, SpawnServerSDK__V1, TokenPayload, UploadClipOptions, User };
352
+ export type { ClipDescriptor, ClipFormat, ClipKind, ClipListOptions, ClipLookupOptions, ClipStatus, ClipThumbnailDescriptor, InventoryItem, Item, LeaderboardEntry, Room, RoomInfo, RoomVisibility, SoundSettings, SpawnClientSDK__V0, SpawnClientSDK__V1, SpawnServerSDK__V0, SpawnServerSDK__V1, TokenPayload, UploadClipOptions, User };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spawnco/sdk-types",
3
- "version": "0.0.44",
3
+ "version": "0.0.45",
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
@@ -18,6 +18,15 @@ export type ClipFormat = 'gif' | 'webm' | 'mp4';
18
18
  export type ClipKind = 'world' | (string & {});
19
19
  export type ClipStatus = 'ready' | 'processing' | 'hidden';
20
20
 
21
+ export interface SoundSettings {
22
+ master: number; // 0-1
23
+ music: number; // 0-1
24
+ sfx: number; // 0-1
25
+ ui: number; // 0-1
26
+ ambience: number; // 0-1
27
+ voice: number; // 0-1
28
+ }
29
+
21
30
  export interface ClipThumbnailDescriptor {
22
31
  assetUrl: string;
23
32
  contentType: string;
@@ -201,6 +210,10 @@ export interface SpawnClientSDK__V1<TConfig = any> {
201
210
  };
202
211
 
203
212
  magicCdn: MagicCdnApi;
213
+
214
+ sound: {
215
+ get(): Promise<SoundSettings>;
216
+ };
204
217
  }
205
218
 
206
219
  // Server SDK - available in Durable Objects