@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 +1 -0
- package/dist/internal.d.ts +9 -8
- package/dist/server/edge.d.ts +6 -6
- package/dist/server.d.ts +6 -6
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/internal.d.ts
CHANGED
|
@@ -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
|
|
7045
|
-
database?: string[];
|
|
7046
|
-
/** Key-value store
|
|
7047
|
-
keyValue?: string[];
|
|
7048
|
-
/** Object storage
|
|
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
|
}>;
|
package/dist/server/edge.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
|
|
528
|
-
database?: string[];
|
|
529
|
-
/** Key-value store
|
|
530
|
-
keyValue?: string[];
|
|
531
|
-
/** Object storage
|
|
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
|
|
528
|
-
database?: string[];
|
|
529
|
-
/** Key-value store
|
|
530
|
-
keyValue?: string[];
|
|
531
|
-
/** Object storage
|
|
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