@playcademy/sdk 0.16.1-beta.2 → 0.16.1-beta.3
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.js +1 -1
- package/dist/internal.d.ts +10 -1
- package/dist/internal.js +1 -1
- package/dist/server/edge.d.ts +8 -0
- package/dist/server/edge.js +1 -1
- package/dist/server.d.ts +8 -0
- package/dist/server.js +1 -1
- package/dist/types.d.ts +10 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2469,7 +2469,7 @@ async function request({
|
|
|
2469
2469
|
return rawText && rawText.length > 0 ? rawText : undefined;
|
|
2470
2470
|
}
|
|
2471
2471
|
// src/version.ts
|
|
2472
|
-
var SDK_VERSION = "0.16.1-beta.
|
|
2472
|
+
var SDK_VERSION = "0.16.1-beta.3";
|
|
2473
2473
|
|
|
2474
2474
|
// src/clients/base.ts
|
|
2475
2475
|
class PlaycademyBaseClient {
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SchemaInfo } from '@playcademy/cloudflare';
|
|
2
|
+
import { GamePermission, AUTH_PROVIDER_IDS } from '@playcademy/constants';
|
|
2
3
|
import { TimebackGrade, TimebackSubject, HeartbeatRequest, TimebackCourseConfig, CourseConfig, OrganizationConfig, ComponentConfig, ResourceConfig, ComponentResourceConfig } from '@playcademy/types/timeback';
|
|
3
4
|
import * as _playcademy_types from '@playcademy/types';
|
|
4
5
|
import { GameManifest, LocalDayContext } from '@playcademy/types';
|
|
@@ -7,7 +8,6 @@ import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
|
|
|
7
8
|
import { DomainValidationRecords } from '@playcademy/types/game';
|
|
8
9
|
import { z } from 'zod';
|
|
9
10
|
import { TimebackUserRole, UserEnrollment, UserOrganization, UserInfo } from '@playcademy/types/user';
|
|
10
|
-
import { AUTH_PROVIDER_IDS } from '@playcademy/constants';
|
|
11
11
|
|
|
12
12
|
/** Permitted HTTP verbs */
|
|
13
13
|
type Method = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
@@ -1005,6 +1005,8 @@ declare const users: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
1005
1005
|
interface GameMetadata {
|
|
1006
1006
|
description?: string;
|
|
1007
1007
|
emoji?: string;
|
|
1008
|
+
/** Browser permissions delegated to the game's iframe (opt-in per game). */
|
|
1009
|
+
permissions?: GamePermission[];
|
|
1008
1010
|
[key: string]: unknown;
|
|
1009
1011
|
}
|
|
1010
1012
|
/**
|
|
@@ -3035,6 +3037,13 @@ interface PlaycademyConfig {
|
|
|
3035
3037
|
description?: string;
|
|
3036
3038
|
/** Game emoji icon */
|
|
3037
3039
|
emoji?: string;
|
|
3040
|
+
/**
|
|
3041
|
+
* Browser permissions to request for the game's iframe (e.g.
|
|
3042
|
+
* `['microphone']`). Opt-in per game; only `microphone` and `camera` are
|
|
3043
|
+
* delegated this way. Fullscreen, autoplay, and gamepad are granted to
|
|
3044
|
+
* every game automatically.
|
|
3045
|
+
*/
|
|
3046
|
+
permissions?: GamePermission[];
|
|
3038
3047
|
/** Build command to run before deployment */
|
|
3039
3048
|
buildCommand?: string[];
|
|
3040
3049
|
/** Path to build output */
|
package/dist/internal.js
CHANGED
|
@@ -3319,7 +3319,7 @@ async function request({
|
|
|
3319
3319
|
return rawText && rawText.length > 0 ? rawText : undefined;
|
|
3320
3320
|
}
|
|
3321
3321
|
// src/version.ts
|
|
3322
|
-
var SDK_VERSION = "0.16.1-beta.
|
|
3322
|
+
var SDK_VERSION = "0.16.1-beta.3";
|
|
3323
3323
|
|
|
3324
3324
|
// src/clients/base.ts
|
|
3325
3325
|
class PlaycademyBaseClient {
|
package/dist/server/edge.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SchemaInfo } from '@playcademy/cloudflare';
|
|
2
|
+
import { GamePermission } from '@playcademy/constants';
|
|
2
3
|
import { TimebackCourseConfig, CourseConfig, OrganizationConfig, ComponentConfig, ResourceConfig, ComponentResourceConfig } from '@playcademy/types/timeback';
|
|
3
4
|
export { ActivityData, ComponentConfig, ComponentResourceConfig, EndActivityPayload, OrganizationConfig, ResourceConfig, TimebackGrade, TimebackSubject } from '@playcademy/types/timeback';
|
|
4
5
|
import { UserInfo } from '@playcademy/types/user';
|
|
@@ -152,6 +153,13 @@ interface PlaycademyConfig {
|
|
|
152
153
|
description?: string;
|
|
153
154
|
/** Game emoji icon */
|
|
154
155
|
emoji?: string;
|
|
156
|
+
/**
|
|
157
|
+
* Browser permissions to request for the game's iframe (e.g.
|
|
158
|
+
* `['microphone']`). Opt-in per game; only `microphone` and `camera` are
|
|
159
|
+
* delegated this way. Fullscreen, autoplay, and gamepad are granted to
|
|
160
|
+
* every game automatically.
|
|
161
|
+
*/
|
|
162
|
+
permissions?: GamePermission[];
|
|
155
163
|
/** Build command to run before deployment */
|
|
156
164
|
buildCommand?: string[];
|
|
157
165
|
/** Path to build output */
|
package/dist/server/edge.js
CHANGED
package/dist/server.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SchemaInfo } from '@playcademy/cloudflare';
|
|
2
|
+
import { GamePermission } from '@playcademy/constants';
|
|
2
3
|
import { TimebackCourseConfig, CourseConfig, OrganizationConfig, ComponentConfig, ResourceConfig, ComponentResourceConfig } from '@playcademy/types/timeback';
|
|
3
4
|
export { ActivityData, ComponentConfig, ComponentResourceConfig, EndActivityPayload, OrganizationConfig, ResourceConfig, TimebackGrade, TimebackSubject } from '@playcademy/types/timeback';
|
|
4
5
|
import { UserInfo } from '@playcademy/types/user';
|
|
@@ -152,6 +153,13 @@ interface PlaycademyConfig {
|
|
|
152
153
|
description?: string;
|
|
153
154
|
/** Game emoji icon */
|
|
154
155
|
emoji?: string;
|
|
156
|
+
/**
|
|
157
|
+
* Browser permissions to request for the game's iframe (e.g.
|
|
158
|
+
* `['microphone']`). Opt-in per game; only `microphone` and `camera` are
|
|
159
|
+
* delegated this way. Fullscreen, autoplay, and gamepad are granted to
|
|
160
|
+
* every game automatically.
|
|
161
|
+
*/
|
|
162
|
+
permissions?: GamePermission[];
|
|
155
163
|
/** Build command to run before deployment */
|
|
156
164
|
buildCommand?: string[];
|
|
157
165
|
/** Path to build output */
|
package/dist/server.js
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { GameManifest, LocalDayContext } from '@playcademy/types';
|
|
|
3
3
|
export { AuthenticatedUser, DeveloperStatusEnumType, DeveloperStatusResponse, DeveloperStatusValue, GameCourseMetrics, GameLeaderboardEntry, GameManifest, GameMetricComparisonKind, GameMetricComparisonMetric, GameMetricComparisonRow, GameMetricComparisonRowStatus, GameMetricsProxyResponse, GameMetricsResponse, GameMetricsUnsupportedReason, GamePlatform, GameRunMetrics, GameRunMetricsComparison, GameRunMetricsComparisonStatus, GameRunMetricsComparisonSummary, GameTimebackIntegration, GameType, GameUser, LeaderboardEntry, LeaderboardOptions, LeaderboardTimeframe, LocalDayContext, LocalDaySource, ManifestV1, ManifestV2, ManifestVersions, PopulateStudentResponse, UserEnrollment, UserInfo, UserOrganization, UserRank, UserRankResponse, UserRoleEnumType, UserScore, UserTimebackData } from '@playcademy/types';
|
|
4
4
|
import { TimebackCourseConfig, CourseConfig, OrganizationConfig, ComponentConfig, ResourceConfig, ComponentResourceConfig, TimebackGrade, TimebackSubject, HeartbeatRequest } from '@playcademy/types/timeback';
|
|
5
5
|
import { TimebackUserRole, UserEnrollment, UserOrganization, UserInfo } from '@playcademy/types/user';
|
|
6
|
-
import { AUTH_PROVIDER_IDS } from '@playcademy/constants';
|
|
6
|
+
import { GamePermission, AUTH_PROVIDER_IDS } from '@playcademy/constants';
|
|
7
7
|
import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
|
|
8
8
|
import { DomainValidationRecords } from '@playcademy/types/game';
|
|
9
9
|
import { z } from 'zod';
|
|
@@ -345,6 +345,13 @@ interface PlaycademyConfig {
|
|
|
345
345
|
description?: string;
|
|
346
346
|
/** Game emoji icon */
|
|
347
347
|
emoji?: string;
|
|
348
|
+
/**
|
|
349
|
+
* Browser permissions to request for the game's iframe (e.g.
|
|
350
|
+
* `['microphone']`). Opt-in per game; only `microphone` and `camera` are
|
|
351
|
+
* delegated this way. Fullscreen, autoplay, and gamepad are granted to
|
|
352
|
+
* every game automatically.
|
|
353
|
+
*/
|
|
354
|
+
permissions?: GamePermission[];
|
|
348
355
|
/** Build command to run before deployment */
|
|
349
356
|
buildCommand?: string[];
|
|
350
357
|
/** Path to build output */
|
|
@@ -679,6 +686,8 @@ declare const users: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
679
686
|
interface GameMetadata {
|
|
680
687
|
description?: string;
|
|
681
688
|
emoji?: string;
|
|
689
|
+
/** Browser permissions delegated to the game's iframe (opt-in per game). */
|
|
690
|
+
permissions?: GamePermission[];
|
|
682
691
|
[key: string]: unknown;
|
|
683
692
|
}
|
|
684
693
|
/**
|