@ogygie/studio 0.25.1 → 0.26.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.
package/dist/server.js CHANGED
@@ -1951,7 +1951,8 @@ var CallbackQuerySchema = z8.object({ token: z8.string().min(1) });
1951
1951
  var MeOutputSchema = z8.object({
1952
1952
  email: z8.email(),
1953
1953
  displayName: z8.string(),
1954
- role: HostRoleSchema
1954
+ role: HostRoleSchema,
1955
+ host: z8.object({ environments: z8.boolean(), mergePolicy: z8.enum(["client", "operator"]) })
1955
1956
  });
1956
1957
  async function registerHostedRoutes(app, deps) {
1957
1958
  const sessions = {
@@ -2018,7 +2019,7 @@ ${link}
2018
2019
  url: "/api/auth/me",
2019
2020
  schema: { response: { 200: MeOutputSchema } },
2020
2021
  handler: async (request, reply) => {
2021
- return reply.code(200).send(hostedUserOf(request));
2022
+ return reply.code(200).send({ ...hostedUserOf(request), host: { environments: deps.config.environments !== void 0, mergePolicy: deps.config.mergePolicy } });
2022
2023
  }
2023
2024
  });
2024
2025
  route.route({