Events #1228
Annotations
10 errors and 1 warning
tests/backend/endpoints/api/v1/projects.test.ts > creates and updates the basic project information of a project:
apps/e2e/tests/backend/backend-helpers.ts#L91
StackAssertionError: Unexpected internal server error: 500 Internal Server Error. The error message follows, but will be stripped in production. PrismaClientKnownRequestError:
Invalid `a.m.projectUser.findUnique()` invocation in
/home/runner/work/stack/stack/apps/backend/.next/server/chunks/5938.js:1:20729
→ 1 "use strict";exports.id=5938,exports.ids=[5938],exports.modules={54903:(e,t,r)=>{r.d(t,{z:()=>A,p:()=>v});var a=r(73701),s=r(65131),i=r(53524),n=r(28531),o=r(72769),d=r(64603),c=r(58511);let l=d.aF({display_name:d.Ld.optional(),profile_image_url:d.XM.optional(),client_metadata:d.eY.optional(),server_metadata:d.Tr.optional(),primary_email:d.nM.nullable().optional(),primary_email_verified:d.W5.optional(),primary_email_auth_enabled:d.i8().optional().meta({openapiField:{description:"Whether the primary email can be used to sign into this user's account",exampleValue:!0}}),password:d.VR().nullable().meta({openapiField:{description:"A new password for the user, overwriting the old one (if it exists).",exampleValue:"password"}}),selected_team_id:d.cA.nullable().optional()}).required(),u=d.aF({project_id:d.az.required(),id:d.S2.required(),primary_email:d.nM.nullable().defined(),primary_email_verified:d.W5.required(),display_name:d.Ld.nullable().defined(),selected_team:c.YW.nullable().defined(),selected_team_id:d.cA.nullable().defined(),profile_image_url:d.XM.nullable().defined(),signed_up_at_millis:d.sC.required(),has_password:d.i8().required().meta({openapiField:{description:"Whether the user has a password associated with their account",exampleValue:!0}}),auth_with_email:d.i8().required().meta({openapiField:{description:"Whether the user can authenticate with their primary e-mail. If set to true, the user can log-in with credentials and/or magic link, if enabled in the project settings.",exampleValue:!0}}),oauth_providers:d.sF(d.aF({id:d.VR().required(),account_id:d.VR().required(),email:d.VR().nullable()}).required()).required().meta({openapiField:{description:"A list of OAuth providers connected to this account",exampleValue:["google","github"]}}),client_metadata:d.eY,server_metadata:d.Tr}).required(),p=l.concat(d.aF({oauth_providers:d.sF(d.aF({id:d.VR().required(),account_id:d.VR().required(),email:d.VR().nullable().defined().default(null)}).required()).optional()}).required()),h=d.Yz(),m=(0,o._)({serverReadSchema:u,serverUpdateSchema:l,serverCreateSchema:p,serverDeleteSchema:h,docs:{serverCreate:{tags:["Users"],summary:"Create user",description:"Creates a new user. E-mail authentication is always enabled, and no password is set, meaning the only way to authenticate the newly created user is through magic link."},serverRead:{tags:["Users"],summary:"Get user",description:"Gets a user by user ID."},serverUpdate:{tags:["Users"],summary:"Update user",description:"Updates a user. Only the values provided will be updated."},serverDelete:{tags:["Users"],summary:"Delete user",description:"Deletes a user. Use this with caution."},serverList:{tags:["Users"],summary:"List users",description:"Lists all the users in the project."}}}),f=l.pick(["display_name","client_metadata","selected_team_id"]).required(),y=u.pick(["project_id","id","primary_email","primary_email_verified","display_name","client_metadata","profile_image_url","signed_up_at_millis","has_password","auth_with_email","oauth_providers","selected_team_id"]).concat((0,d.aF)({selected_team:c.xK.nullable().defined()})).nullable().defined(),_=u.nullable().defined(),w=(0,o._)({clientReadSchema:y,serverReadSchema:_,clientUpdateSchema:f,serverUpdateSchema:l,serverDeleteSchema:h,docs:{clientRead:{summary:"Get current user",description:"Gets the currently authenticated user.",tags:["Users"]},clientUpdate:{summary:"Update current user",description:"Updates the currently authenticated user. Only the values provided will be updated.",tags:["Users"]},clientDelete:{summary:"Delete current user",description:"Deletes the currently authenticated user. Use this with caution.",tags:["Users"]}}});var g=r(55480),T=r(58444);function E(e){let t;let r=!1;function a(){return r||(t=e(),r=!0),
|
tests/backend/endpoints/api/v1/projects.test.ts > updates the basic project configuration:
apps/e2e/tests/backend/backend-helpers.ts#L91
StackAssertionError: Unexpected internal server error: 500 Internal Server Error. The error message follows, but will be stripped in production. PrismaClientKnownRequestError:
Invalid `a.m.projectUser.findUnique()` invocation in
/home/runner/work/stack/stack/apps/backend/.next/server/chunks/5938.js:1:20729
→ 1 "use strict";exports.id=5938,exports.ids=[5938],exports.modules={54903:(e,t,r)=>{r.d(t,{z:()=>A,p:()=>v});var a=r(73701),s=r(65131),i=r(53524),n=r(28531),o=r(72769),d=r(64603),c=r(58511);let l=d.aF({display_name:d.Ld.optional(),profile_image_url:d.XM.optional(),client_metadata:d.eY.optional(),server_metadata:d.Tr.optional(),primary_email:d.nM.nullable().optional(),primary_email_verified:d.W5.optional(),primary_email_auth_enabled:d.i8().optional().meta({openapiField:{description:"Whether the primary email can be used to sign into this user's account",exampleValue:!0}}),password:d.VR().nullable().meta({openapiField:{description:"A new password for the user, overwriting the old one (if it exists).",exampleValue:"password"}}),selected_team_id:d.cA.nullable().optional()}).required(),u=d.aF({project_id:d.az.required(),id:d.S2.required(),primary_email:d.nM.nullable().defined(),primary_email_verified:d.W5.required(),display_name:d.Ld.nullable().defined(),selected_team:c.YW.nullable().defined(),selected_team_id:d.cA.nullable().defined(),profile_image_url:d.XM.nullable().defined(),signed_up_at_millis:d.sC.required(),has_password:d.i8().required().meta({openapiField:{description:"Whether the user has a password associated with their account",exampleValue:!0}}),auth_with_email:d.i8().required().meta({openapiField:{description:"Whether the user can authenticate with their primary e-mail. If set to true, the user can log-in with credentials and/or magic link, if enabled in the project settings.",exampleValue:!0}}),oauth_providers:d.sF(d.aF({id:d.VR().required(),account_id:d.VR().required(),email:d.VR().nullable()}).required()).required().meta({openapiField:{description:"A list of OAuth providers connected to this account",exampleValue:["google","github"]}}),client_metadata:d.eY,server_metadata:d.Tr}).required(),p=l.concat(d.aF({oauth_providers:d.sF(d.aF({id:d.VR().required(),account_id:d.VR().required(),email:d.VR().nullable().defined().default(null)}).required()).optional()}).required()),h=d.Yz(),m=(0,o._)({serverReadSchema:u,serverUpdateSchema:l,serverCreateSchema:p,serverDeleteSchema:h,docs:{serverCreate:{tags:["Users"],summary:"Create user",description:"Creates a new user. E-mail authentication is always enabled, and no password is set, meaning the only way to authenticate the newly created user is through magic link."},serverRead:{tags:["Users"],summary:"Get user",description:"Gets a user by user ID."},serverUpdate:{tags:["Users"],summary:"Update user",description:"Updates a user. Only the values provided will be updated."},serverDelete:{tags:["Users"],summary:"Delete user",description:"Deletes a user. Use this with caution."},serverList:{tags:["Users"],summary:"List users",description:"Lists all the users in the project."}}}),f=l.pick(["display_name","client_metadata","selected_team_id"]).required(),y=u.pick(["project_id","id","primary_email","primary_email_verified","display_name","client_metadata","profile_image_url","signed_up_at_millis","has_password","auth_with_email","oauth_providers","selected_team_id"]).concat((0,d.aF)({selected_team:c.xK.nullable().defined()})).nullable().defined(),_=u.nullable().defined(),w=(0,o._)({clientReadSchema:y,serverReadSchema:_,clientUpdateSchema:f,serverUpdateSchema:l,serverDeleteSchema:h,docs:{clientRead:{summary:"Get current user",description:"Gets the currently authenticated user.",tags:["Users"]},clientUpdate:{summary:"Update current user",description:"Updates the currently authenticated user. Only the values provided will be updated.",tags:["Users"]},clientDelete:{summary:"Delete current user",description:"Deletes the currently authenticated user. Use this with caution.",tags:["Users"]}}});var g=r(55480),T=r(58444);function E(e){let t;let r=!1;function a(){return r||(t=e(),r=!0),
|
tests/backend/endpoints/api/v1/projects.test.ts > updates the project domains configuration:
apps/e2e/tests/backend/backend-helpers.ts#L91
StackAssertionError: Unexpected internal server error: 500 Internal Server Error. The error message follows, but will be stripped in production. PrismaClientKnownRequestError:
Invalid `a.m.projectUser.findUnique()` invocation in
/home/runner/work/stack/stack/apps/backend/.next/server/chunks/5938.js:1:20729
→ 1 "use strict";exports.id=5938,exports.ids=[5938],exports.modules={54903:(e,t,r)=>{r.d(t,{z:()=>A,p:()=>v});var a=r(73701),s=r(65131),i=r(53524),n=r(28531),o=r(72769),d=r(64603),c=r(58511);let l=d.aF({display_name:d.Ld.optional(),profile_image_url:d.XM.optional(),client_metadata:d.eY.optional(),server_metadata:d.Tr.optional(),primary_email:d.nM.nullable().optional(),primary_email_verified:d.W5.optional(),primary_email_auth_enabled:d.i8().optional().meta({openapiField:{description:"Whether the primary email can be used to sign into this user's account",exampleValue:!0}}),password:d.VR().nullable().meta({openapiField:{description:"A new password for the user, overwriting the old one (if it exists).",exampleValue:"password"}}),selected_team_id:d.cA.nullable().optional()}).required(),u=d.aF({project_id:d.az.required(),id:d.S2.required(),primary_email:d.nM.nullable().defined(),primary_email_verified:d.W5.required(),display_name:d.Ld.nullable().defined(),selected_team:c.YW.nullable().defined(),selected_team_id:d.cA.nullable().defined(),profile_image_url:d.XM.nullable().defined(),signed_up_at_millis:d.sC.required(),has_password:d.i8().required().meta({openapiField:{description:"Whether the user has a password associated with their account",exampleValue:!0}}),auth_with_email:d.i8().required().meta({openapiField:{description:"Whether the user can authenticate with their primary e-mail. If set to true, the user can log-in with credentials and/or magic link, if enabled in the project settings.",exampleValue:!0}}),oauth_providers:d.sF(d.aF({id:d.VR().required(),account_id:d.VR().required(),email:d.VR().nullable()}).required()).required().meta({openapiField:{description:"A list of OAuth providers connected to this account",exampleValue:["google","github"]}}),client_metadata:d.eY,server_metadata:d.Tr}).required(),p=l.concat(d.aF({oauth_providers:d.sF(d.aF({id:d.VR().required(),account_id:d.VR().required(),email:d.VR().nullable().defined().default(null)}).required()).optional()}).required()),h=d.Yz(),m=(0,o._)({serverReadSchema:u,serverUpdateSchema:l,serverCreateSchema:p,serverDeleteSchema:h,docs:{serverCreate:{tags:["Users"],summary:"Create user",description:"Creates a new user. E-mail authentication is always enabled, and no password is set, meaning the only way to authenticate the newly created user is through magic link."},serverRead:{tags:["Users"],summary:"Get user",description:"Gets a user by user ID."},serverUpdate:{tags:["Users"],summary:"Update user",description:"Updates a user. Only the values provided will be updated."},serverDelete:{tags:["Users"],summary:"Delete user",description:"Deletes a user. Use this with caution."},serverList:{tags:["Users"],summary:"List users",description:"Lists all the users in the project."}}}),f=l.pick(["display_name","client_metadata","selected_team_id"]).required(),y=u.pick(["project_id","id","primary_email","primary_email_verified","display_name","client_metadata","profile_image_url","signed_up_at_millis","has_password","auth_with_email","oauth_providers","selected_team_id"]).concat((0,d.aF)({selected_team:c.xK.nullable().defined()})).nullable().defined(),_=u.nullable().defined(),w=(0,o._)({clientReadSchema:y,serverReadSchema:_,clientUpdateSchema:f,serverUpdateSchema:l,serverDeleteSchema:h,docs:{clientRead:{summary:"Get current user",description:"Gets the currently authenticated user.",tags:["Users"]},clientUpdate:{summary:"Update current user",description:"Updates the currently authenticated user. Only the values provided will be updated.",tags:["Users"]},clientDelete:{summary:"Delete current user",description:"Deletes the currently authenticated user. Use this with caution.",tags:["Users"]}}});var g=r(55480),T=r(58444);function E(e){let t;let r=!1;function a(){return r||(t=e(),r=!0),
|
tests/backend/endpoints/api/v1/projects.test.ts > updates the project email configuration:
apps/e2e/tests/backend/backend-helpers.ts#L91
StackAssertionError: Unexpected internal server error: 500 Internal Server Error. The error message follows, but will be stripped in production. PrismaClientKnownRequestError:
Invalid `a.m.projectUser.findUnique()` invocation in
/home/runner/work/stack/stack/apps/backend/.next/server/chunks/5938.js:1:20729
→ 1 "use strict";exports.id=5938,exports.ids=[5938],exports.modules={54903:(e,t,r)=>{r.d(t,{z:()=>A,p:()=>v});var a=r(73701),s=r(65131),i=r(53524),n=r(28531),o=r(72769),d=r(64603),c=r(58511);let l=d.aF({display_name:d.Ld.optional(),profile_image_url:d.XM.optional(),client_metadata:d.eY.optional(),server_metadata:d.Tr.optional(),primary_email:d.nM.nullable().optional(),primary_email_verified:d.W5.optional(),primary_email_auth_enabled:d.i8().optional().meta({openapiField:{description:"Whether the primary email can be used to sign into this user's account",exampleValue:!0}}),password:d.VR().nullable().meta({openapiField:{description:"A new password for the user, overwriting the old one (if it exists).",exampleValue:"password"}}),selected_team_id:d.cA.nullable().optional()}).required(),u=d.aF({project_id:d.az.required(),id:d.S2.required(),primary_email:d.nM.nullable().defined(),primary_email_verified:d.W5.required(),display_name:d.Ld.nullable().defined(),selected_team:c.YW.nullable().defined(),selected_team_id:d.cA.nullable().defined(),profile_image_url:d.XM.nullable().defined(),signed_up_at_millis:d.sC.required(),has_password:d.i8().required().meta({openapiField:{description:"Whether the user has a password associated with their account",exampleValue:!0}}),auth_with_email:d.i8().required().meta({openapiField:{description:"Whether the user can authenticate with their primary e-mail. If set to true, the user can log-in with credentials and/or magic link, if enabled in the project settings.",exampleValue:!0}}),oauth_providers:d.sF(d.aF({id:d.VR().required(),account_id:d.VR().required(),email:d.VR().nullable()}).required()).required().meta({openapiField:{description:"A list of OAuth providers connected to this account",exampleValue:["google","github"]}}),client_metadata:d.eY,server_metadata:d.Tr}).required(),p=l.concat(d.aF({oauth_providers:d.sF(d.aF({id:d.VR().required(),account_id:d.VR().required(),email:d.VR().nullable().defined().default(null)}).required()).optional()}).required()),h=d.Yz(),m=(0,o._)({serverReadSchema:u,serverUpdateSchema:l,serverCreateSchema:p,serverDeleteSchema:h,docs:{serverCreate:{tags:["Users"],summary:"Create user",description:"Creates a new user. E-mail authentication is always enabled, and no password is set, meaning the only way to authenticate the newly created user is through magic link."},serverRead:{tags:["Users"],summary:"Get user",description:"Gets a user by user ID."},serverUpdate:{tags:["Users"],summary:"Update user",description:"Updates a user. Only the values provided will be updated."},serverDelete:{tags:["Users"],summary:"Delete user",description:"Deletes a user. Use this with caution."},serverList:{tags:["Users"],summary:"List users",description:"Lists all the users in the project."}}}),f=l.pick(["display_name","client_metadata","selected_team_id"]).required(),y=u.pick(["project_id","id","primary_email","primary_email_verified","display_name","client_metadata","profile_image_url","signed_up_at_millis","has_password","auth_with_email","oauth_providers","selected_team_id"]).concat((0,d.aF)({selected_team:c.xK.nullable().defined()})).nullable().defined(),_=u.nullable().defined(),w=(0,o._)({clientReadSchema:y,serverReadSchema:_,clientUpdateSchema:f,serverUpdateSchema:l,serverDeleteSchema:h,docs:{clientRead:{summary:"Get current user",description:"Gets the currently authenticated user.",tags:["Users"]},clientUpdate:{summary:"Update current user",description:"Updates the currently authenticated user. Only the values provided will be updated.",tags:["Users"]},clientDelete:{summary:"Delete current user",description:"Deletes the currently authenticated user. Use this with caution.",tags:["Users"]}}});var g=r(55480),T=r(58444);function E(e){let t;let r=!1;function a(){return r||(t=e(),r=!0),
|
tests/backend/endpoints/api/v1/projects.test.ts > updates the project email configuration with the wrong parameters:
apps/e2e/tests/backend/backend-helpers.ts#L91
StackAssertionError: Unexpected internal server error: 500 Internal Server Error. The error message follows, but will be stripped in production. PrismaClientKnownRequestError:
Invalid `a.m.projectUser.findUnique()` invocation in
/home/runner/work/stack/stack/apps/backend/.next/server/chunks/5938.js:1:20729
→ 1 "use strict";exports.id=5938,exports.ids=[5938],exports.modules={54903:(e,t,r)=>{r.d(t,{z:()=>A,p:()=>v});var a=r(73701),s=r(65131),i=r(53524),n=r(28531),o=r(72769),d=r(64603),c=r(58511);let l=d.aF({display_name:d.Ld.optional(),profile_image_url:d.XM.optional(),client_metadata:d.eY.optional(),server_metadata:d.Tr.optional(),primary_email:d.nM.nullable().optional(),primary_email_verified:d.W5.optional(),primary_email_auth_enabled:d.i8().optional().meta({openapiField:{description:"Whether the primary email can be used to sign into this user's account",exampleValue:!0}}),password:d.VR().nullable().meta({openapiField:{description:"A new password for the user, overwriting the old one (if it exists).",exampleValue:"password"}}),selected_team_id:d.cA.nullable().optional()}).required(),u=d.aF({project_id:d.az.required(),id:d.S2.required(),primary_email:d.nM.nullable().defined(),primary_email_verified:d.W5.required(),display_name:d.Ld.nullable().defined(),selected_team:c.YW.nullable().defined(),selected_team_id:d.cA.nullable().defined(),profile_image_url:d.XM.nullable().defined(),signed_up_at_millis:d.sC.required(),has_password:d.i8().required().meta({openapiField:{description:"Whether the user has a password associated with their account",exampleValue:!0}}),auth_with_email:d.i8().required().meta({openapiField:{description:"Whether the user can authenticate with their primary e-mail. If set to true, the user can log-in with credentials and/or magic link, if enabled in the project settings.",exampleValue:!0}}),oauth_providers:d.sF(d.aF({id:d.VR().required(),account_id:d.VR().required(),email:d.VR().nullable()}).required()).required().meta({openapiField:{description:"A list of OAuth providers connected to this account",exampleValue:["google","github"]}}),client_metadata:d.eY,server_metadata:d.Tr}).required(),p=l.concat(d.aF({oauth_providers:d.sF(d.aF({id:d.VR().required(),account_id:d.VR().required(),email:d.VR().nullable().defined().default(null)}).required()).optional()}).required()),h=d.Yz(),m=(0,o._)({serverReadSchema:u,serverUpdateSchema:l,serverCreateSchema:p,serverDeleteSchema:h,docs:{serverCreate:{tags:["Users"],summary:"Create user",description:"Creates a new user. E-mail authentication is always enabled, and no password is set, meaning the only way to authenticate the newly created user is through magic link."},serverRead:{tags:["Users"],summary:"Get user",description:"Gets a user by user ID."},serverUpdate:{tags:["Users"],summary:"Update user",description:"Updates a user. Only the values provided will be updated."},serverDelete:{tags:["Users"],summary:"Delete user",description:"Deletes a user. Use this with caution."},serverList:{tags:["Users"],summary:"List users",description:"Lists all the users in the project."}}}),f=l.pick(["display_name","client_metadata","selected_team_id"]).required(),y=u.pick(["project_id","id","primary_email","primary_email_verified","display_name","client_metadata","profile_image_url","signed_up_at_millis","has_password","auth_with_email","oauth_providers","selected_team_id"]).concat((0,d.aF)({selected_team:c.xK.nullable().defined()})).nullable().defined(),_=u.nullable().defined(),w=(0,o._)({clientReadSchema:y,serverReadSchema:_,clientUpdateSchema:f,serverUpdateSchema:l,serverDeleteSchema:h,docs:{clientRead:{summary:"Get current user",description:"Gets the currently authenticated user.",tags:["Users"]},clientUpdate:{summary:"Update current user",description:"Updates the currently authenticated user. Only the values provided will be updated.",tags:["Users"]},clientDelete:{summary:"Delete current user",description:"Deletes the currently authenticated user. Use this with caution.",tags:["Users"]}}});var g=r(55480),T=r(58444);function E(e){let t;let r=!1;function a(){return r||(t=e(),r=!0),
|
tests/backend/endpoints/api/v1/projects.test.ts > updates the project oauth configuration:
apps/e2e/tests/backend/backend-helpers.ts#L91
StackAssertionError: Unexpected internal server error: 500 Internal Server Error. The error message follows, but will be stripped in production. PrismaClientKnownRequestError:
Invalid `a.m.projectUser.findUnique()` invocation in
/home/runner/work/stack/stack/apps/backend/.next/server/chunks/5938.js:1:20729
→ 1 "use strict";exports.id=5938,exports.ids=[5938],exports.modules={54903:(e,t,r)=>{r.d(t,{z:()=>A,p:()=>v});var a=r(73701),s=r(65131),i=r(53524),n=r(28531),o=r(72769),d=r(64603),c=r(58511);let l=d.aF({display_name:d.Ld.optional(),profile_image_url:d.XM.optional(),client_metadata:d.eY.optional(),server_metadata:d.Tr.optional(),primary_email:d.nM.nullable().optional(),primary_email_verified:d.W5.optional(),primary_email_auth_enabled:d.i8().optional().meta({openapiField:{description:"Whether the primary email can be used to sign into this user's account",exampleValue:!0}}),password:d.VR().nullable().meta({openapiField:{description:"A new password for the user, overwriting the old one (if it exists).",exampleValue:"password"}}),selected_team_id:d.cA.nullable().optional()}).required(),u=d.aF({project_id:d.az.required(),id:d.S2.required(),primary_email:d.nM.nullable().defined(),primary_email_verified:d.W5.required(),display_name:d.Ld.nullable().defined(),selected_team:c.YW.nullable().defined(),selected_team_id:d.cA.nullable().defined(),profile_image_url:d.XM.nullable().defined(),signed_up_at_millis:d.sC.required(),has_password:d.i8().required().meta({openapiField:{description:"Whether the user has a password associated with their account",exampleValue:!0}}),auth_with_email:d.i8().required().meta({openapiField:{description:"Whether the user can authenticate with their primary e-mail. If set to true, the user can log-in with credentials and/or magic link, if enabled in the project settings.",exampleValue:!0}}),oauth_providers:d.sF(d.aF({id:d.VR().required(),account_id:d.VR().required(),email:d.VR().nullable()}).required()).required().meta({openapiField:{description:"A list of OAuth providers connected to this account",exampleValue:["google","github"]}}),client_metadata:d.eY,server_metadata:d.Tr}).required(),p=l.concat(d.aF({oauth_providers:d.sF(d.aF({id:d.VR().required(),account_id:d.VR().required(),email:d.VR().nullable().defined().default(null)}).required()).optional()}).required()),h=d.Yz(),m=(0,o._)({serverReadSchema:u,serverUpdateSchema:l,serverCreateSchema:p,serverDeleteSchema:h,docs:{serverCreate:{tags:["Users"],summary:"Create user",description:"Creates a new user. E-mail authentication is always enabled, and no password is set, meaning the only way to authenticate the newly created user is through magic link."},serverRead:{tags:["Users"],summary:"Get user",description:"Gets a user by user ID."},serverUpdate:{tags:["Users"],summary:"Update user",description:"Updates a user. Only the values provided will be updated."},serverDelete:{tags:["Users"],summary:"Delete user",description:"Deletes a user. Use this with caution."},serverList:{tags:["Users"],summary:"List users",description:"Lists all the users in the project."}}}),f=l.pick(["display_name","client_metadata","selected_team_id"]).required(),y=u.pick(["project_id","id","primary_email","primary_email_verified","display_name","client_metadata","profile_image_url","signed_up_at_millis","has_password","auth_with_email","oauth_providers","selected_team_id"]).concat((0,d.aF)({selected_team:c.xK.nullable().defined()})).nullable().defined(),_=u.nullable().defined(),w=(0,o._)({clientReadSchema:y,serverReadSchema:_,clientUpdateSchema:f,serverUpdateSchema:l,serverDeleteSchema:h,docs:{clientRead:{summary:"Get current user",description:"Gets the currently authenticated user.",tags:["Users"]},clientUpdate:{summary:"Update current user",description:"Updates the currently authenticated user. Only the values provided will be updated.",tags:["Users"]},clientDelete:{summary:"Delete current user",description:"Deletes the currently authenticated user. Use this with caution.",tags:["Users"]}}});var g=r(55480),T=r(58444);function E(e){let t;let r=!1;function a(){return r||(t=e(),r=!0),
|
tests/backend/endpoints/api/v1/team-memberships.test.ts > is not allowed to add user to team on client:
apps/e2e/tests/backend/backend-helpers.ts#L91
StackAssertionError: Unexpected internal server error: 500 Internal Server Error. The error message follows, but will be stripped in production. PrismaClientKnownRequestError:
Invalid `a.m.projectUser.findUnique()` invocation in
/home/runner/work/stack/stack/apps/backend/.next/server/chunks/5938.js:1:20729
→ 1 "use strict";exports.id=5938,exports.ids=[5938],exports.modules={54903:(e,t,r)=>{r.d(t,{z:()=>A,p:()=>v});var a=r(73701),s=r(65131),i=r(53524),n=r(28531),o=r(72769),d=r(64603),c=r(58511);let l=d.aF({display_name:d.Ld.optional(),profile_image_url:d.XM.optional(),client_metadata:d.eY.optional(),server_metadata:d.Tr.optional(),primary_email:d.nM.nullable().optional(),primary_email_verified:d.W5.optional(),primary_email_auth_enabled:d.i8().optional().meta({openapiField:{description:"Whether the primary email can be used to sign into this user's account",exampleValue:!0}}),password:d.VR().nullable().meta({openapiField:{description:"A new password for the user, overwriting the old one (if it exists).",exampleValue:"password"}}),selected_team_id:d.cA.nullable().optional()}).required(),u=d.aF({project_id:d.az.required(),id:d.S2.required(),primary_email:d.nM.nullable().defined(),primary_email_verified:d.W5.required(),display_name:d.Ld.nullable().defined(),selected_team:c.YW.nullable().defined(),selected_team_id:d.cA.nullable().defined(),profile_image_url:d.XM.nullable().defined(),signed_up_at_millis:d.sC.required(),has_password:d.i8().required().meta({openapiField:{description:"Whether the user has a password associated with their account",exampleValue:!0}}),auth_with_email:d.i8().required().meta({openapiField:{description:"Whether the user can authenticate with their primary e-mail. If set to true, the user can log-in with credentials and/or magic link, if enabled in the project settings.",exampleValue:!0}}),oauth_providers:d.sF(d.aF({id:d.VR().required(),account_id:d.VR().required(),email:d.VR().nullable()}).required()).required().meta({openapiField:{description:"A list of OAuth providers connected to this account",exampleValue:["google","github"]}}),client_metadata:d.eY,server_metadata:d.Tr}).required(),p=l.concat(d.aF({oauth_providers:d.sF(d.aF({id:d.VR().required(),account_id:d.VR().required(),email:d.VR().nullable().defined().default(null)}).required()).optional()}).required()),h=d.Yz(),m=(0,o._)({serverReadSchema:u,serverUpdateSchema:l,serverCreateSchema:p,serverDeleteSchema:h,docs:{serverCreate:{tags:["Users"],summary:"Create user",description:"Creates a new user. E-mail authentication is always enabled, and no password is set, meaning the only way to authenticate the newly created user is through magic link."},serverRead:{tags:["Users"],summary:"Get user",description:"Gets a user by user ID."},serverUpdate:{tags:["Users"],summary:"Update user",description:"Updates a user. Only the values provided will be updated."},serverDelete:{tags:["Users"],summary:"Delete user",description:"Deletes a user. Use this with caution."},serverList:{tags:["Users"],summary:"List users",description:"Lists all the users in the project."}}}),f=l.pick(["display_name","client_metadata","selected_team_id"]).required(),y=u.pick(["project_id","id","primary_email","primary_email_verified","display_name","client_metadata","profile_image_url","signed_up_at_millis","has_password","auth_with_email","oauth_providers","selected_team_id"]).concat((0,d.aF)({selected_team:c.xK.nullable().defined()})).nullable().defined(),_=u.nullable().defined(),w=(0,o._)({clientReadSchema:y,serverReadSchema:_,clientUpdateSchema:f,serverUpdateSchema:l,serverDeleteSchema:h,docs:{clientRead:{summary:"Get current user",description:"Gets the currently authenticated user.",tags:["Users"]},clientUpdate:{summary:"Update current user",description:"Updates the currently authenticated user. Only the values provided will be updated.",tags:["Users"]},clientDelete:{summary:"Delete current user",description:"Deletes the currently authenticated user. Use this with caution.",tags:["Users"]}}});var g=r(55480),T=r(58444);function E(e){let t;let r=!1;function a(){return r||(t=e(),r=!0),
|
tests/backend/endpoints/api/v1/team-memberships.test.ts > creates a team and manage users in it:
apps/e2e/tests/backend/backend-helpers.ts#L91
StackAssertionError: Unexpected internal server error: 500 Internal Server Error. The error message follows, but will be stripped in production. PrismaClientKnownRequestError:
Invalid `a.m.projectUser.findUnique()` invocation in
/home/runner/work/stack/stack/apps/backend/.next/server/chunks/5938.js:1:20729
→ 1 "use strict";exports.id=5938,exports.ids=[5938],exports.modules={54903:(e,t,r)=>{r.d(t,{z:()=>A,p:()=>v});var a=r(73701),s=r(65131),i=r(53524),n=r(28531),o=r(72769),d=r(64603),c=r(58511);let l=d.aF({display_name:d.Ld.optional(),profile_image_url:d.XM.optional(),client_metadata:d.eY.optional(),server_metadata:d.Tr.optional(),primary_email:d.nM.nullable().optional(),primary_email_verified:d.W5.optional(),primary_email_auth_enabled:d.i8().optional().meta({openapiField:{description:"Whether the primary email can be used to sign into this user's account",exampleValue:!0}}),password:d.VR().nullable().meta({openapiField:{description:"A new password for the user, overwriting the old one (if it exists).",exampleValue:"password"}}),selected_team_id:d.cA.nullable().optional()}).required(),u=d.aF({project_id:d.az.required(),id:d.S2.required(),primary_email:d.nM.nullable().defined(),primary_email_verified:d.W5.required(),display_name:d.Ld.nullable().defined(),selected_team:c.YW.nullable().defined(),selected_team_id:d.cA.nullable().defined(),profile_image_url:d.XM.nullable().defined(),signed_up_at_millis:d.sC.required(),has_password:d.i8().required().meta({openapiField:{description:"Whether the user has a password associated with their account",exampleValue:!0}}),auth_with_email:d.i8().required().meta({openapiField:{description:"Whether the user can authenticate with their primary e-mail. If set to true, the user can log-in with credentials and/or magic link, if enabled in the project settings.",exampleValue:!0}}),oauth_providers:d.sF(d.aF({id:d.VR().required(),account_id:d.VR().required(),email:d.VR().nullable()}).required()).required().meta({openapiField:{description:"A list of OAuth providers connected to this account",exampleValue:["google","github"]}}),client_metadata:d.eY,server_metadata:d.Tr}).required(),p=l.concat(d.aF({oauth_providers:d.sF(d.aF({id:d.VR().required(),account_id:d.VR().required(),email:d.VR().nullable().defined().default(null)}).required()).optional()}).required()),h=d.Yz(),m=(0,o._)({serverReadSchema:u,serverUpdateSchema:l,serverCreateSchema:p,serverDeleteSchema:h,docs:{serverCreate:{tags:["Users"],summary:"Create user",description:"Creates a new user. E-mail authentication is always enabled, and no password is set, meaning the only way to authenticate the newly created user is through magic link."},serverRead:{tags:["Users"],summary:"Get user",description:"Gets a user by user ID."},serverUpdate:{tags:["Users"],summary:"Update user",description:"Updates a user. Only the values provided will be updated."},serverDelete:{tags:["Users"],summary:"Delete user",description:"Deletes a user. Use this with caution."},serverList:{tags:["Users"],summary:"List users",description:"Lists all the users in the project."}}}),f=l.pick(["display_name","client_metadata","selected_team_id"]).required(),y=u.pick(["project_id","id","primary_email","primary_email_verified","display_name","client_metadata","profile_image_url","signed_up_at_millis","has_password","auth_with_email","oauth_providers","selected_team_id"]).concat((0,d.aF)({selected_team:c.xK.nullable().defined()})).nullable().defined(),_=u.nullable().defined(),w=(0,o._)({clientReadSchema:y,serverReadSchema:_,clientUpdateSchema:f,serverUpdateSchema:l,serverDeleteSchema:h,docs:{clientRead:{summary:"Get current user",description:"Gets the currently authenticated user.",tags:["Users"]},clientUpdate:{summary:"Update current user",description:"Updates the currently authenticated user. Only the values provided will be updated.",tags:["Users"]},clientDelete:{summary:"Delete current user",description:"Deletes the currently authenticated user. Use this with caution.",tags:["Users"]}}});var g=r(55480),T=r(58444);function E(e){let t;let r=!1;function a(){return r||(t=e(),r=!0),
|
tests/backend/endpoints/api/v1/team-memberships.test.ts > should give team creator default permissions:
apps/e2e/tests/backend/backend-helpers.ts#L91
StackAssertionError: Unexpected internal server error: 500 Internal Server Error. The error message follows, but will be stripped in production. PrismaClientKnownRequestError:
Invalid `a.m.projectUser.findUnique()` invocation in
/home/runner/work/stack/stack/apps/backend/.next/server/chunks/5938.js:1:20729
→ 1 "use strict";exports.id=5938,exports.ids=[5938],exports.modules={54903:(e,t,r)=>{r.d(t,{z:()=>A,p:()=>v});var a=r(73701),s=r(65131),i=r(53524),n=r(28531),o=r(72769),d=r(64603),c=r(58511);let l=d.aF({display_name:d.Ld.optional(),profile_image_url:d.XM.optional(),client_metadata:d.eY.optional(),server_metadata:d.Tr.optional(),primary_email:d.nM.nullable().optional(),primary_email_verified:d.W5.optional(),primary_email_auth_enabled:d.i8().optional().meta({openapiField:{description:"Whether the primary email can be used to sign into this user's account",exampleValue:!0}}),password:d.VR().nullable().meta({openapiField:{description:"A new password for the user, overwriting the old one (if it exists).",exampleValue:"password"}}),selected_team_id:d.cA.nullable().optional()}).required(),u=d.aF({project_id:d.az.required(),id:d.S2.required(),primary_email:d.nM.nullable().defined(),primary_email_verified:d.W5.required(),display_name:d.Ld.nullable().defined(),selected_team:c.YW.nullable().defined(),selected_team_id:d.cA.nullable().defined(),profile_image_url:d.XM.nullable().defined(),signed_up_at_millis:d.sC.required(),has_password:d.i8().required().meta({openapiField:{description:"Whether the user has a password associated with their account",exampleValue:!0}}),auth_with_email:d.i8().required().meta({openapiField:{description:"Whether the user can authenticate with their primary e-mail. If set to true, the user can log-in with credentials and/or magic link, if enabled in the project settings.",exampleValue:!0}}),oauth_providers:d.sF(d.aF({id:d.VR().required(),account_id:d.VR().required(),email:d.VR().nullable()}).required()).required().meta({openapiField:{description:"A list of OAuth providers connected to this account",exampleValue:["google","github"]}}),client_metadata:d.eY,server_metadata:d.Tr}).required(),p=l.concat(d.aF({oauth_providers:d.sF(d.aF({id:d.VR().required(),account_id:d.VR().required(),email:d.VR().nullable().defined().default(null)}).required()).optional()}).required()),h=d.Yz(),m=(0,o._)({serverReadSchema:u,serverUpdateSchema:l,serverCreateSchema:p,serverDeleteSchema:h,docs:{serverCreate:{tags:["Users"],summary:"Create user",description:"Creates a new user. E-mail authentication is always enabled, and no password is set, meaning the only way to authenticate the newly created user is through magic link."},serverRead:{tags:["Users"],summary:"Get user",description:"Gets a user by user ID."},serverUpdate:{tags:["Users"],summary:"Update user",description:"Updates a user. Only the values provided will be updated."},serverDelete:{tags:["Users"],summary:"Delete user",description:"Deletes a user. Use this with caution."},serverList:{tags:["Users"],summary:"List users",description:"Lists all the users in the project."}}}),f=l.pick(["display_name","client_metadata","selected_team_id"]).required(),y=u.pick(["project_id","id","primary_email","primary_email_verified","display_name","client_metadata","profile_image_url","signed_up_at_millis","has_password","auth_with_email","oauth_providers","selected_team_id"]).concat((0,d.aF)({selected_team:c.xK.nullable().defined()})).nullable().defined(),_=u.nullable().defined(),w=(0,o._)({clientReadSchema:y,serverReadSchema:_,clientUpdateSchema:f,serverUpdateSchema:l,serverDeleteSchema:h,docs:{clientRead:{summary:"Get current user",description:"Gets the currently authenticated user.",tags:["Users"]},clientUpdate:{summary:"Update current user",description:"Updates the currently authenticated user. Only the values provided will be updated.",tags:["Users"]},clientDelete:{summary:"Delete current user",description:"Deletes the currently authenticated user. Use this with caution.",tags:["Users"]}}});var g=r(55480),T=r(58444);function E(e){let t;let r=!1;function a(){return r||(t=e(),r=!0),
|
tests/backend/endpoints/api/v1/team-permission-definitions.test.ts > lists all the team permissions:
apps/e2e/tests/backend/backend-helpers.ts#L91
StackAssertionError: Unexpected internal server error: 500 Internal Server Error. The error message follows, but will be stripped in production. PrismaClientKnownRequestError:
Invalid `a.m.projectUser.findUnique()` invocation in
/home/runner/work/stack/stack/apps/backend/.next/server/chunks/5938.js:1:20729
→ 1 "use strict";exports.id=5938,exports.ids=[5938],exports.modules={54903:(e,t,r)=>{r.d(t,{z:()=>A,p:()=>v});var a=r(73701),s=r(65131),i=r(53524),n=r(28531),o=r(72769),d=r(64603),c=r(58511);let l=d.aF({display_name:d.Ld.optional(),profile_image_url:d.XM.optional(),client_metadata:d.eY.optional(),server_metadata:d.Tr.optional(),primary_email:d.nM.nullable().optional(),primary_email_verified:d.W5.optional(),primary_email_auth_enabled:d.i8().optional().meta({openapiField:{description:"Whether the primary email can be used to sign into this user's account",exampleValue:!0}}),password:d.VR().nullable().meta({openapiField:{description:"A new password for the user, overwriting the old one (if it exists).",exampleValue:"password"}}),selected_team_id:d.cA.nullable().optional()}).required(),u=d.aF({project_id:d.az.required(),id:d.S2.required(),primary_email:d.nM.nullable().defined(),primary_email_verified:d.W5.required(),display_name:d.Ld.nullable().defined(),selected_team:c.YW.nullable().defined(),selected_team_id:d.cA.nullable().defined(),profile_image_url:d.XM.nullable().defined(),signed_up_at_millis:d.sC.required(),has_password:d.i8().required().meta({openapiField:{description:"Whether the user has a password associated with their account",exampleValue:!0}}),auth_with_email:d.i8().required().meta({openapiField:{description:"Whether the user can authenticate with their primary e-mail. If set to true, the user can log-in with credentials and/or magic link, if enabled in the project settings.",exampleValue:!0}}),oauth_providers:d.sF(d.aF({id:d.VR().required(),account_id:d.VR().required(),email:d.VR().nullable()}).required()).required().meta({openapiField:{description:"A list of OAuth providers connected to this account",exampleValue:["google","github"]}}),client_metadata:d.eY,server_metadata:d.Tr}).required(),p=l.concat(d.aF({oauth_providers:d.sF(d.aF({id:d.VR().required(),account_id:d.VR().required(),email:d.VR().nullable().defined().default(null)}).required()).optional()}).required()),h=d.Yz(),m=(0,o._)({serverReadSchema:u,serverUpdateSchema:l,serverCreateSchema:p,serverDeleteSchema:h,docs:{serverCreate:{tags:["Users"],summary:"Create user",description:"Creates a new user. E-mail authentication is always enabled, and no password is set, meaning the only way to authenticate the newly created user is through magic link."},serverRead:{tags:["Users"],summary:"Get user",description:"Gets a user by user ID."},serverUpdate:{tags:["Users"],summary:"Update user",description:"Updates a user. Only the values provided will be updated."},serverDelete:{tags:["Users"],summary:"Delete user",description:"Deletes a user. Use this with caution."},serverList:{tags:["Users"],summary:"List users",description:"Lists all the users in the project."}}}),f=l.pick(["display_name","client_metadata","selected_team_id"]).required(),y=u.pick(["project_id","id","primary_email","primary_email_verified","display_name","client_metadata","profile_image_url","signed_up_at_millis","has_password","auth_with_email","oauth_providers","selected_team_id"]).concat((0,d.aF)({selected_team:c.xK.nullable().defined()})).nullable().defined(),_=u.nullable().defined(),w=(0,o._)({clientReadSchema:y,serverReadSchema:_,clientUpdateSchema:f,serverUpdateSchema:l,serverDeleteSchema:h,docs:{clientRead:{summary:"Get current user",description:"Gets the currently authenticated user.",tags:["Users"]},clientUpdate:{summary:"Update current user",description:"Updates the currently authenticated user. Only the values provided will be updated.",tags:["Users"]},clientDelete:{summary:"Delete current user",description:"Deletes the currently authenticated user. Use this with caution.",tags:["Users"]}}});var g=r(55480),T=r(58444);function E(e){let t;let r=!1;function a(){return r||(t=e(),r=!0),
|
build (20.x)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|