@spawnco/sdk-types 0.0.53 → 0.0.54

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
@@ -271,6 +271,23 @@ interface SpawnServerSDK__V1<TConfig = any> {
271
271
  */
272
272
  unlock(key: string): Promise<void>;
273
273
  };
274
+ /**
275
+ * Game spec access (Tome).
276
+ * Returns the latest resolved game_spec for an app.
277
+ */
278
+ gameSpec: {
279
+ /**
280
+ * Fetch the latest game spec for this variant's app, or an explicit appId override.
281
+ * Returns null if no spec exists.
282
+ */
283
+ latest(options?: {
284
+ appId?: string;
285
+ }): Promise<{
286
+ appId: string;
287
+ version: number;
288
+ gameSpec: Record<string, unknown>;
289
+ } | null>;
290
+ };
274
291
  config: {
275
292
  get(): Promise<TConfig>;
276
293
  version(): Promise<string>;
package/dist/index.d.ts CHANGED
@@ -271,6 +271,23 @@ interface SpawnServerSDK__V1<TConfig = any> {
271
271
  */
272
272
  unlock(key: string): Promise<void>;
273
273
  };
274
+ /**
275
+ * Game spec access (Tome).
276
+ * Returns the latest resolved game_spec for an app.
277
+ */
278
+ gameSpec: {
279
+ /**
280
+ * Fetch the latest game spec for this variant's app, or an explicit appId override.
281
+ * Returns null if no spec exists.
282
+ */
283
+ latest(options?: {
284
+ appId?: string;
285
+ }): Promise<{
286
+ appId: string;
287
+ version: number;
288
+ gameSpec: Record<string, unknown>;
289
+ } | null>;
290
+ };
274
291
  config: {
275
292
  get(): Promise<TConfig>;
276
293
  version(): Promise<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spawnco/sdk-types",
3
- "version": "0.0.53",
3
+ "version": "0.0.54",
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
@@ -296,6 +296,22 @@ export interface SpawnServerSDK__V1<TConfig = any> {
296
296
  unlock(key: string): Promise<void>;
297
297
  };
298
298
 
299
+ /**
300
+ * Game spec access (Tome).
301
+ * Returns the latest resolved game_spec for an app.
302
+ */
303
+ gameSpec: {
304
+ /**
305
+ * Fetch the latest game spec for this variant's app, or an explicit appId override.
306
+ * Returns null if no spec exists.
307
+ */
308
+ latest(options?: { appId?: string }): Promise<{
309
+ appId: string;
310
+ version: number;
311
+ gameSpec: Record<string, unknown>;
312
+ } | null>;
313
+ };
314
+
299
315
  config: {
300
316
  get(): Promise<TConfig>;
301
317
  version(): Promise<string>;