@playcademy/sdk 0.7.3-beta.7 → 0.7.3-beta.8

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.ts CHANGED
@@ -2263,6 +2263,7 @@ interface LoginResponse {
2263
2263
  interface GameTokenResponse {
2264
2264
  token: string;
2265
2265
  exp: number;
2266
+ baseUrl?: string;
2266
2267
  }
2267
2268
  interface InventoryMutationResponse {
2268
2269
  newTotal: number;
@@ -6567,6 +6567,7 @@ interface LoginResponse {
6567
6567
  interface GameTokenResponse {
6568
6568
  token: string;
6569
6569
  exp: number;
6570
+ baseUrl?: string;
6570
6571
  }
6571
6572
  interface StartSessionResponse {
6572
6573
  sessionId: string;
@@ -7041,12 +7042,12 @@ interface PlaycademyServerClientState {
7041
7042
  * Provider-agnostic abstraction for cloud resources
7042
7043
  */
7043
7044
  interface BackendResourceBindings {
7044
- /** SQL database instances to create and bind (maps to D1 on Cloudflare) */
7045
- database?: string[];
7046
- /** Key-value store namespaces to create and bind (maps to KV on Cloudflare) */
7047
- keyValue?: string[];
7048
- /** Object storage buckets to bind (maps to R2 on Cloudflare) */
7049
- bucket?: string[];
7045
+ /** SQL database `true` to request, server names it (maps to D1 on Cloudflare) */
7046
+ database?: boolean | string[];
7047
+ /** Key-value store `true` to request, server names it (maps to KV on Cloudflare) */
7048
+ keyValue?: boolean | string[];
7049
+ /** Object storage `true` to request, server names it (maps to R2 on Cloudflare) */
7050
+ bucket?: boolean | string[];
7050
7051
  /** Queue bindings to create and bind */
7051
7052
  queues?: Record<string, QueueConfig | boolean>;
7052
7053
  }
@@ -7401,7 +7402,7 @@ declare class PlaycademyInternalClient extends PlaycademyBaseClient {
7401
7402
  backend?: BackendDeploymentBundle;
7402
7403
  hooks?: DevUploadHooks;
7403
7404
  }) => Promise<Game>;
7404
- seed: (slug: string, code: string, environment?: 'staging' | 'production', secrets?: Record<string, string>) => Promise<SeedResponse>;
7405
+ seed: (slug: string, code: string, environment?: 'local' | 'staging' | 'production', secrets?: Record<string, string>) => Promise<SeedResponse>;
7405
7406
  upsert: (slug: string, metadata: UpsertGameMetadataInput) => Promise<Game>;
7406
7407
  delete: (gameId: string) => Promise<void>;
7407
7408
  secrets: {
@@ -7443,7 +7444,7 @@ declare class PlaycademyInternalClient extends PlaycademyBaseClient {
7443
7444
  delete: (slug: string, hostname: string) => Promise<void>;
7444
7445
  };
7445
7446
  logs: {
7446
- getToken: (slug: string, environment: 'staging' | 'production') => Promise<{
7447
+ getToken: (slug: string, environment: 'local' | 'staging' | 'production') => Promise<{
7447
7448
  token: string;
7448
7449
  workerId: string;
7449
7450
  }>;
@@ -524,12 +524,12 @@ interface PlaycademyServerClientState {
524
524
  * Provider-agnostic abstraction for cloud resources
525
525
  */
526
526
  interface BackendResourceBindings {
527
- /** SQL database instances to create and bind (maps to D1 on Cloudflare) */
528
- database?: string[];
529
- /** Key-value store namespaces to create and bind (maps to KV on Cloudflare) */
530
- keyValue?: string[];
531
- /** Object storage buckets to bind (maps to R2 on Cloudflare) */
532
- bucket?: string[];
527
+ /** SQL database `true` to request, server names it (maps to D1 on Cloudflare) */
528
+ database?: boolean | string[];
529
+ /** Key-value store `true` to request, server names it (maps to KV on Cloudflare) */
530
+ keyValue?: boolean | string[];
531
+ /** Object storage `true` to request, server names it (maps to R2 on Cloudflare) */
532
+ bucket?: boolean | string[];
533
533
  /** Queue bindings to create and bind */
534
534
  queues?: Record<string, QueueConfig | boolean>;
535
535
  }
package/dist/server.d.ts CHANGED
@@ -524,12 +524,12 @@ interface PlaycademyServerClientState {
524
524
  * Provider-agnostic abstraction for cloud resources
525
525
  */
526
526
  interface BackendResourceBindings {
527
- /** SQL database instances to create and bind (maps to D1 on Cloudflare) */
528
- database?: string[];
529
- /** Key-value store namespaces to create and bind (maps to KV on Cloudflare) */
530
- keyValue?: string[];
531
- /** Object storage buckets to bind (maps to R2 on Cloudflare) */
532
- bucket?: string[];
527
+ /** SQL database `true` to request, server names it (maps to D1 on Cloudflare) */
528
+ database?: boolean | string[];
529
+ /** Key-value store `true` to request, server names it (maps to KV on Cloudflare) */
530
+ keyValue?: boolean | string[];
531
+ /** Object storage `true` to request, server names it (maps to R2 on Cloudflare) */
532
+ bucket?: boolean | string[];
533
533
  /** Queue bindings to create and bind */
534
534
  queues?: Record<string, QueueConfig | boolean>;
535
535
  }
package/dist/types.d.ts CHANGED
@@ -5823,6 +5823,7 @@ interface LoginResponse {
5823
5823
  interface GameTokenResponse {
5824
5824
  token: string;
5825
5825
  exp: number;
5826
+ baseUrl?: string;
5826
5827
  }
5827
5828
  interface StartSessionResponse {
5828
5829
  sessionId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playcademy/sdk",
3
- "version": "0.7.3-beta.7",
3
+ "version": "0.7.3-beta.8",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {