@stackframe/stack 2.5.0 → 2.5.2

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.
@@ -265,6 +265,7 @@ type Project = {
265
265
  type Team = {
266
266
  id: string;
267
267
  displayName: string;
268
+ profileImageUrl?: string;
268
269
  createdAt: Date;
269
270
  toJson(): TeamJson;
270
271
  };
@@ -373,10 +374,10 @@ type StackClientApp<HasTokenStore extends boolean = boolean, ProjectId extends s
373
374
  resetPassword(options: {
374
375
  code: string;
375
376
  password: string;
376
- }): Promise<KnownErrors["PasswordResetError"] | void>;
377
- verifyPasswordResetCode(code: string): Promise<KnownErrors["PasswordResetCodeError"] | void>;
378
- verifyEmail(code: string): Promise<KnownErrors["EmailVerificationError"] | void>;
379
- signInWithMagicLink(code: string): Promise<KnownErrors["MagicLinkError"] | void>;
377
+ }): Promise<KnownErrors["VerificationCodeError"] | void>;
378
+ verifyPasswordResetCode(code: string): Promise<KnownErrors["VerificationCodeError"] | void>;
379
+ verifyEmail(code: string): Promise<KnownErrors["VerificationCodeError"] | void>;
380
+ signInWithMagicLink(code: string): Promise<KnownErrors["VerificationCodeError"] | void>;
380
381
  redirectToOAuthCallback(): Promise<void>;
381
382
  useUser(options: GetUserOptions<HasTokenStore> & {
382
383
  or: 'redirect';
@@ -265,6 +265,7 @@ type Project = {
265
265
  type Team = {
266
266
  id: string;
267
267
  displayName: string;
268
+ profileImageUrl?: string;
268
269
  createdAt: Date;
269
270
  toJson(): TeamJson;
270
271
  };
@@ -373,10 +374,10 @@ type StackClientApp<HasTokenStore extends boolean = boolean, ProjectId extends s
373
374
  resetPassword(options: {
374
375
  code: string;
375
376
  password: string;
376
- }): Promise<KnownErrors["PasswordResetError"] | void>;
377
- verifyPasswordResetCode(code: string): Promise<KnownErrors["PasswordResetCodeError"] | void>;
378
- verifyEmail(code: string): Promise<KnownErrors["EmailVerificationError"] | void>;
379
- signInWithMagicLink(code: string): Promise<KnownErrors["MagicLinkError"] | void>;
377
+ }): Promise<KnownErrors["VerificationCodeError"] | void>;
378
+ verifyPasswordResetCode(code: string): Promise<KnownErrors["VerificationCodeError"] | void>;
379
+ verifyEmail(code: string): Promise<KnownErrors["VerificationCodeError"] | void>;
380
+ signInWithMagicLink(code: string): Promise<KnownErrors["VerificationCodeError"] | void>;
380
381
  redirectToOAuthCallback(): Promise<void>;
381
382
  useUser(options: GetUserOptions<HasTokenStore> & {
382
383
  or: 'redirect';
@@ -59,7 +59,7 @@ var cookie = __toESM(require("cookie"));
59
59
  var import_sessions = require("@stackframe/stack-shared/dist/sessions");
60
60
  var import_strings = require("@stackframe/stack-shared/dist/utils/strings");
61
61
  var NextNavigation = (0, import_compile_time.scrambleDuringCompileTime)(NextNavigationUnscrambled);
62
- var clientVersion = "js @stackframe/stack@2.5.0";
62
+ var clientVersion = "js @stackframe/stack@2.5.2";
63
63
  function permissionDefinitionScopeToType(scope) {
64
64
  return { "any-team": "team", "specific-team": "team", "global": "global" }[scope.type];
65
65
  }
@@ -517,6 +517,7 @@ var _StackClientAppImpl = class __StackClientAppImpl {
517
517
  return {
518
518
  id: json.id,
519
519
  displayName: json.displayName,
520
+ profileImageUrl: json.profileImageUrl,
520
521
  createdAt: new Date(json.createdAtMillis),
521
522
  toJson() {
522
523
  return json;
@@ -1226,6 +1227,7 @@ var _StackServerAppImpl = class extends _StackClientAppImpl {
1226
1227
  return {
1227
1228
  id: json.id,
1228
1229
  displayName: json.displayName,
1230
+ profileImageUrl: json.profileImageUrl,
1229
1231
  createdAt: new Date(json.createdAtMillis),
1230
1232
  async listMembers() {
1231
1233
  return (await app._interface.listServerTeamMembers(json.id)).map((u) => app._serverTeamMemberFromJson(u));