@anchrd/colab-sdk 0.1.1 → 0.1.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.
package/dist/sso/sso.d.ts CHANGED
@@ -66,5 +66,6 @@ export declare const SignInProviders: z.ZodObject<{
66
66
  google: "google";
67
67
  microsoft: "microsoft";
68
68
  }>>;
69
+ signUp: z.ZodBoolean;
69
70
  }, z.core.$strict>;
70
71
  export type SignInProviders = z.infer<typeof SignInProviders>;
package/dist/sso/sso.js CHANGED
@@ -50,5 +50,9 @@ export const SsoList = z.strictObject({
50
50
  nextCursor: z.null(),
51
51
  });
52
52
  // `GET /auth/providers`, public: which buttons the sign-in page shows, in their order. Nothing else
53
- // of a provider travels here.
54
- export const SignInProviders = z.strictObject({ providers: z.array(SsoId) });
53
+ // of a provider travels here. `signUp` is true only while no person exists: the first one signs up
54
+ // on the page and becomes the main admin (E9, #539); after that it says nothing about anybody.
55
+ export const SignInProviders = z.strictObject({
56
+ providers: z.array(SsoId),
57
+ signUp: z.boolean(),
58
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anchrd/colab-sdk",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Types, Zod schemas and the service client of Colab, the contract between its UI, backends and outside services.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",