@orakl/protocol 0.16.0 → 0.17.0

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.
@@ -16,6 +16,8 @@ export declare const BillingReturnPageSchema: Schema.Struct<{
16
16
  export declare const ProfilePageSchema: Schema.Struct<{
17
17
  user: Schema.Struct<{
18
18
  nickname: Schema.NullOr<typeof Schema.String>;
19
+ /** Account email; null only for a rowless identity, which never reaches this page. */
20
+ email: Schema.NullOr<typeof Schema.String>;
19
21
  role: Schema.Literal<["anonymous", "display", "member", "curator", "admin"]>;
20
22
  powers: Schema.mutable<Schema.Array$<Schema.Schema<"can-access-mimic" | "can-send-feedback" | "can-import-quizzes" | "can-manage-features" | "can-add-questions" | "can-manage-categories" | "can-moderate-questions" | "can-publish-questions" | "is-power-user" | "can-manage-avatars" | "can-apply-for-curation" | "can-1v1", "can-access-mimic" | "can-send-feedback" | "can-import-quizzes" | "can-manage-features" | "can-add-questions" | "can-manage-categories" | "can-moderate-questions" | "can-publish-questions" | "is-power-user" | "can-manage-avatars" | "can-apply-for-curation" | "can-1v1", never>>>;
21
23
  avatar: typeof Schema.String;
@@ -53,6 +53,8 @@ const OrderBreakdownSchema = Schema.Struct({
53
53
  export const ProfilePageSchema = Schema.Struct({
54
54
  user: Schema.Struct({
55
55
  nickname: Schema.NullOr(Schema.String),
56
+ /** Account email; null only for a rowless identity, which never reaches this page. */
57
+ email: Schema.NullOr(Schema.String),
56
58
  role: UserRoleSchema,
57
59
  powers: Arr(UserPowerSchema),
58
60
  avatar: Schema.String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orakl/protocol",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "Orakl wire contract: WebSocket frames and API response schemas.",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {