@playcademy/sdk 0.2.13 → 0.2.14
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/internal.d.ts +12 -0
- package/dist/server.d.ts +13 -1
- package/dist/types.d.ts +10 -0
- package/package.json +2 -2
package/dist/internal.d.ts
CHANGED
|
@@ -6501,6 +6501,14 @@ interface DatabaseIntegration {
|
|
|
6501
6501
|
* When omitted, auto-detects based on presence of a migrations directory with _journal.json. */
|
|
6502
6502
|
strategy?: 'push' | 'migrate';
|
|
6503
6503
|
}
|
|
6504
|
+
interface QueueConfig {
|
|
6505
|
+
maxBatchSize?: number;
|
|
6506
|
+
maxRetries?: number;
|
|
6507
|
+
maxBatchTimeout?: number;
|
|
6508
|
+
maxConcurrency?: number;
|
|
6509
|
+
retryDelay?: number;
|
|
6510
|
+
deadLetterQueue?: string;
|
|
6511
|
+
}
|
|
6504
6512
|
/**
|
|
6505
6513
|
* Integrations configuration
|
|
6506
6514
|
* All backend features (database, custom routes, external services) are configured here
|
|
@@ -6518,6 +6526,8 @@ interface IntegrationsConfig {
|
|
|
6518
6526
|
bucket?: boolean;
|
|
6519
6527
|
/** Authentication (optional) */
|
|
6520
6528
|
auth?: boolean;
|
|
6529
|
+
/** Queues (optional) */
|
|
6530
|
+
queues?: Record<string, QueueConfig | boolean>;
|
|
6521
6531
|
}
|
|
6522
6532
|
/**
|
|
6523
6533
|
* Unified Playcademy configuration
|
|
@@ -6624,6 +6634,8 @@ interface BackendResourceBindings {
|
|
|
6624
6634
|
keyValue?: string[];
|
|
6625
6635
|
/** Object storage buckets to bind (maps to R2 on Cloudflare) */
|
|
6626
6636
|
bucket?: string[];
|
|
6637
|
+
/** Queue bindings to create and bind */
|
|
6638
|
+
queues?: Record<string, QueueConfig | boolean>;
|
|
6627
6639
|
}
|
|
6628
6640
|
/**
|
|
6629
6641
|
* Backend deployment bundle for uploading to Playcademy platform
|
package/dist/server.d.ts
CHANGED
|
@@ -386,6 +386,14 @@ interface DatabaseIntegration {
|
|
|
386
386
|
* When omitted, auto-detects based on presence of a migrations directory with _journal.json. */
|
|
387
387
|
strategy?: 'push' | 'migrate';
|
|
388
388
|
}
|
|
389
|
+
interface QueueConfig {
|
|
390
|
+
maxBatchSize?: number;
|
|
391
|
+
maxRetries?: number;
|
|
392
|
+
maxBatchTimeout?: number;
|
|
393
|
+
maxConcurrency?: number;
|
|
394
|
+
retryDelay?: number;
|
|
395
|
+
deadLetterQueue?: string;
|
|
396
|
+
}
|
|
389
397
|
/**
|
|
390
398
|
* Integrations configuration
|
|
391
399
|
* All backend features (database, custom routes, external services) are configured here
|
|
@@ -403,6 +411,8 @@ interface IntegrationsConfig {
|
|
|
403
411
|
bucket?: boolean;
|
|
404
412
|
/** Authentication (optional) */
|
|
405
413
|
auth?: boolean;
|
|
414
|
+
/** Queues (optional) */
|
|
415
|
+
queues?: Record<string, QueueConfig | boolean>;
|
|
406
416
|
}
|
|
407
417
|
/**
|
|
408
418
|
* Unified Playcademy configuration
|
|
@@ -509,6 +519,8 @@ interface BackendResourceBindings {
|
|
|
509
519
|
keyValue?: string[];
|
|
510
520
|
/** Object storage buckets to bind (maps to R2 on Cloudflare) */
|
|
511
521
|
bucket?: string[];
|
|
522
|
+
/** Queue bindings to create and bind */
|
|
523
|
+
queues?: Record<string, QueueConfig | boolean>;
|
|
512
524
|
}
|
|
513
525
|
/**
|
|
514
526
|
* Backend deployment bundle for uploading to Playcademy platform
|
|
@@ -715,4 +727,4 @@ declare function verifyGameToken(gameToken: string, options?: {
|
|
|
715
727
|
}): Promise<VerifyGameTokenResponse>;
|
|
716
728
|
|
|
717
729
|
export { PlaycademyClient, verifyGameToken };
|
|
718
|
-
export type { ActivityData, BackendDeploymentBundle, BackendResourceBindings, ComponentConfig, ComponentResourceConfig, EndActivityPayload, IntegrationsConfig, OrganizationConfig, PlaycademyConfig, PlaycademyServerClientConfig, PlaycademyServerClientState, ResourceConfig, TimebackBaseConfig, TimebackCourseConfigWithOverrides, TimebackGrade, TimebackIntegrationConfig, TimebackSubject, UserInfo };
|
|
730
|
+
export type { ActivityData, BackendDeploymentBundle, BackendResourceBindings, ComponentConfig, ComponentResourceConfig, EndActivityPayload, IntegrationsConfig, OrganizationConfig, PlaycademyConfig, PlaycademyServerClientConfig, PlaycademyServerClientState, QueueConfig, ResourceConfig, TimebackBaseConfig, TimebackCourseConfigWithOverrides, TimebackGrade, TimebackIntegrationConfig, TimebackSubject, UserInfo };
|
package/dist/types.d.ts
CHANGED
|
@@ -5684,6 +5684,14 @@ interface DatabaseIntegration {
|
|
|
5684
5684
|
* When omitted, auto-detects based on presence of a migrations directory with _journal.json. */
|
|
5685
5685
|
strategy?: 'push' | 'migrate';
|
|
5686
5686
|
}
|
|
5687
|
+
interface QueueConfig {
|
|
5688
|
+
maxBatchSize?: number;
|
|
5689
|
+
maxRetries?: number;
|
|
5690
|
+
maxBatchTimeout?: number;
|
|
5691
|
+
maxConcurrency?: number;
|
|
5692
|
+
retryDelay?: number;
|
|
5693
|
+
deadLetterQueue?: string;
|
|
5694
|
+
}
|
|
5687
5695
|
/**
|
|
5688
5696
|
* Integrations configuration
|
|
5689
5697
|
* All backend features (database, custom routes, external services) are configured here
|
|
@@ -5701,6 +5709,8 @@ interface IntegrationsConfig {
|
|
|
5701
5709
|
bucket?: boolean;
|
|
5702
5710
|
/** Authentication (optional) */
|
|
5703
5711
|
auth?: boolean;
|
|
5712
|
+
/** Queues (optional) */
|
|
5713
|
+
queues?: Record<string, QueueConfig | boolean>;
|
|
5704
5714
|
}
|
|
5705
5715
|
/**
|
|
5706
5716
|
* Unified Playcademy configuration
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playcademy/sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@playcademy/timeback": "0.0.1",
|
|
50
50
|
"@playcademy/utils": "0.0.1",
|
|
51
51
|
"@types/bun": "latest",
|
|
52
|
-
"playcademy": "0.16.
|
|
52
|
+
"playcademy": "0.16.11",
|
|
53
53
|
"rollup": "^4.50.2",
|
|
54
54
|
"rollup-plugin-dts": "^6.2.3",
|
|
55
55
|
"typescript": "^5.7.2"
|