@bitvea/feedback-toolbar 0.0.1
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/README.md +262 -0
- package/dist/FeedbackPanel.d.ts +117 -0
- package/dist/FeedbackPanel.d.ts.map +1 -0
- package/dist/FeedbackPanel.js +622 -0
- package/dist/FeedbackPanel.js.map +1 -0
- package/dist/FeedbackToolbar.d.ts +54 -0
- package/dist/FeedbackToolbar.d.ts.map +1 -0
- package/dist/FeedbackToolbar.js +1149 -0
- package/dist/FeedbackToolbar.js.map +1 -0
- package/dist/InboxSheet.d.ts +80 -0
- package/dist/InboxSheet.d.ts.map +1 -0
- package/dist/InboxSheet.js +580 -0
- package/dist/InboxSheet.js.map +1 -0
- package/dist/PinLayer.d.ts +59 -0
- package/dist/PinLayer.d.ts.map +1 -0
- package/dist/PinLayer.js +1702 -0
- package/dist/PinLayer.js.map +1 -0
- package/dist/RichText.d.ts +6 -0
- package/dist/RichText.d.ts.map +1 -0
- package/dist/RichText.js +135 -0
- package/dist/RichText.js.map +1 -0
- package/dist/browser/entry.d.ts +3 -0
- package/dist/browser/entry.d.ts.map +1 -0
- package/dist/browser/entry.js +13 -0
- package/dist/browser/entry.js.map +1 -0
- package/dist/browser/mount.d.ts +37 -0
- package/dist/browser/mount.d.ts.map +1 -0
- package/dist/browser/mount.js +150 -0
- package/dist/browser/mount.js.map +1 -0
- package/dist/browser/toolbar.js +38 -0
- package/dist/browser/toolbar.js.map +7 -0
- package/dist/capture.d.ts +58 -0
- package/dist/capture.d.ts.map +1 -0
- package/dist/capture.js +98 -0
- package/dist/capture.js.map +1 -0
- package/dist/cli/bin.d.ts +3 -0
- package/dist/cli/bin.d.ts.map +1 -0
- package/dist/cli/bin.js +196 -0
- package/dist/cli/bin.js.map +1 -0
- package/dist/cli/fs.d.ts +16 -0
- package/dist/cli/fs.d.ts.map +1 -0
- package/dist/cli/fs.js +33 -0
- package/dist/cli/fs.js.map +1 -0
- package/dist/cli/init.d.ts +75 -0
- package/dist/cli/init.d.ts.map +1 -0
- package/dist/cli/init.js +266 -0
- package/dist/cli/init.js.map +1 -0
- package/dist/cli/register.d.ts +55 -0
- package/dist/cli/register.d.ts.map +1 -0
- package/dist/cli/register.js +84 -0
- package/dist/cli/register.js.map +1 -0
- package/dist/cli/registration.d.ts +37 -0
- package/dist/cli/registration.d.ts.map +1 -0
- package/dist/cli/registration.js +69 -0
- package/dist/cli/registration.js.map +1 -0
- package/dist/cli/strategies.d.ts +98 -0
- package/dist/cli/strategies.d.ts.map +1 -0
- package/dist/cli/strategies.js +198 -0
- package/dist/cli/strategies.js.map +1 -0
- package/dist/client.d.ts +59 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +113 -0
- package/dist/client.js.map +1 -0
- package/dist/config.d.ts +92 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +65 -0
- package/dist/config.js.map +1 -0
- package/dist/deepLink.d.ts +86 -0
- package/dist/deepLink.d.ts.map +1 -0
- package/dist/deepLink.js +185 -0
- package/dist/deepLink.js.map +1 -0
- package/dist/fontFace.d.ts +70 -0
- package/dist/fontFace.d.ts.map +1 -0
- package/dist/fontFace.js +88 -0
- package/dist/fontFace.js.map +1 -0
- package/dist/gating.d.ts +32 -0
- package/dist/gating.d.ts.map +1 -0
- package/dist/gating.js +49 -0
- package/dist/gating.js.map +1 -0
- package/dist/icons.d.ts +68 -0
- package/dist/icons.d.ts.map +1 -0
- package/dist/icons.js +97 -0
- package/dist/icons.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +68 -0
- package/dist/index.js.map +1 -0
- package/dist/markdown.d.ts +59 -0
- package/dist/markdown.d.ts.map +1 -0
- package/dist/markdown.js +130 -0
- package/dist/markdown.js.map +1 -0
- package/dist/motion.d.ts +178 -0
- package/dist/motion.d.ts.map +1 -0
- package/dist/motion.js +302 -0
- package/dist/motion.js.map +1 -0
- package/dist/preferences.d.ts +71 -0
- package/dist/preferences.d.ts.map +1 -0
- package/dist/preferences.js +195 -0
- package/dist/preferences.js.map +1 -0
- package/dist/rasterise.d.ts +45 -0
- package/dist/rasterise.d.ts.map +1 -0
- package/dist/rasterise.js +490 -0
- package/dist/rasterise.js.map +1 -0
- package/dist/selector.d.ts +19 -0
- package/dist/selector.d.ts.map +1 -0
- package/dist/selector.js +142 -0
- package/dist/selector.js.map +1 -0
- package/dist/session.d.ts +19 -0
- package/dist/session.d.ts.map +1 -0
- package/dist/session.js +36 -0
- package/dist/session.js.map +1 -0
- package/dist/shortcut.d.ts +88 -0
- package/dist/shortcut.d.ts.map +1 -0
- package/dist/shortcut.js +149 -0
- package/dist/shortcut.js.map +1 -0
- package/dist/tokens.d.ts +709 -0
- package/dist/tokens.d.ts.map +1 -0
- package/dist/tokens.js +749 -0
- package/dist/tokens.js.map +1 -0
- package/dist/vendor/types/account.d.ts +26 -0
- package/dist/vendor/types/account.d.ts.map +1 -0
- package/dist/vendor/types/account.js +23 -0
- package/dist/vendor/types/account.js.map +1 -0
- package/dist/vendor/types/apiKey.d.ts +38 -0
- package/dist/vendor/types/apiKey.d.ts.map +1 -0
- package/dist/vendor/types/apiKey.js +36 -0
- package/dist/vendor/types/apiKey.js.map +1 -0
- package/dist/vendor/types/auth.d.ts +10 -0
- package/dist/vendor/types/auth.d.ts.map +1 -0
- package/dist/vendor/types/auth.js +15 -0
- package/dist/vendor/types/auth.js.map +1 -0
- package/dist/vendor/types/entity.d.ts +74 -0
- package/dist/vendor/types/entity.d.ts.map +1 -0
- package/dist/vendor/types/entity.js +111 -0
- package/dist/vendor/types/entity.js.map +1 -0
- package/dist/vendor/types/feedback.d.ts +285 -0
- package/dist/vendor/types/feedback.d.ts.map +1 -0
- package/dist/vendor/types/feedback.js +286 -0
- package/dist/vendor/types/feedback.js.map +1 -0
- package/dist/vendor/types/index.d.ts +14 -0
- package/dist/vendor/types/index.d.ts.map +1 -0
- package/dist/vendor/types/index.js +16 -0
- package/dist/vendor/types/index.js.map +1 -0
- package/dist/vendor/types/invite.d.ts +42 -0
- package/dist/vendor/types/invite.d.ts.map +1 -0
- package/dist/vendor/types/invite.js +30 -0
- package/dist/vendor/types/invite.js.map +1 -0
- package/dist/vendor/types/mcpToken.d.ts +38 -0
- package/dist/vendor/types/mcpToken.d.ts.map +1 -0
- package/dist/vendor/types/mcpToken.js +39 -0
- package/dist/vendor/types/mcpToken.js.map +1 -0
- package/dist/vendor/types/organization.d.ts +13 -0
- package/dist/vendor/types/organization.d.ts.map +1 -0
- package/dist/vendor/types/organization.js +12 -0
- package/dist/vendor/types/organization.js.map +1 -0
- package/dist/vendor/types/project.d.ts +73 -0
- package/dist/vendor/types/project.d.ts.map +1 -0
- package/dist/vendor/types/project.js +117 -0
- package/dist/vendor/types/project.js.map +1 -0
- package/dist/vendor/types/role.d.ts +12 -0
- package/dist/vendor/types/role.d.ts.map +1 -0
- package/dist/vendor/types/role.js +20 -0
- package/dist/vendor/types/role.js.map +1 -0
- package/dist/vendor/types/roleDefinition.d.ts +61 -0
- package/dist/vendor/types/roleDefinition.d.ts.map +1 -0
- package/dist/vendor/types/roleDefinition.js +45 -0
- package/dist/vendor/types/roleDefinition.js.map +1 -0
- package/dist/vendor/types/team.d.ts +25 -0
- package/dist/vendor/types/team.d.ts.map +1 -0
- package/dist/vendor/types/team.js +17 -0
- package/dist/vendor/types/team.js.map +1 -0
- package/dist/vendor/types/util.d.ts +39 -0
- package/dist/vendor/types/util.d.ts.map +1 -0
- package/dist/vendor/types/util.js +31 -0
- package/dist/vendor/types/util.js.map +1 -0
- package/package.json +59 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAElE;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,S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;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,qEAAqE;IACrE,MAAM,EAAE,OAAO,GAAG,CAAC;IACnB,+EAA+E;IAC/E,MAAM,EAAE,OAAO,GAAG,CAAC;IACnB,uEAAuE;IACvE,OAAO,EAAE,OAAO,GAAG,CAAC;IACpB;;;;OAIG;IACH,MAAM,EAAE,OAAO,GAAG,CAAC;IACnB,qDAAqD;IACrD,KAAK,EAAE,OAAO,GAAG,CAAC;IAClB,kEAAkE;IAClE,GAAG,EAAE,OAAO;CACJ,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const updateProfileSchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type UpdateProfileInput = z.infer<typeof updateProfileSchema>;
|
|
7
|
+
export declare const changePasswordSchema: z.ZodObject<{
|
|
8
|
+
currentPassword: z.ZodString;
|
|
9
|
+
newPassword: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export type ChangePasswordInput = z.infer<typeof changePasswordSchema>;
|
|
12
|
+
export declare const changeEmailSchema: z.ZodObject<{
|
|
13
|
+
newEmail: z.ZodString;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export type ChangeEmailInput = z.infer<typeof changeEmailSchema>;
|
|
16
|
+
/** Public profile shape returned by `/v1/account`. */
|
|
17
|
+
export declare const accountSchema: z.ZodObject<{
|
|
18
|
+
id: z.ZodString;
|
|
19
|
+
email: z.ZodString;
|
|
20
|
+
emailVerified: z.ZodBoolean;
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
image: z.ZodNullable<z.ZodString>;
|
|
23
|
+
activeOrganizationId: z.ZodNullable<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export type Account = z.infer<typeof accountSchema>;
|
|
26
|
+
//# sourceMappingURL=account.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../types/src/account.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;iBAG9B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAErE,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEvE,eAAO,MAAM,iBAAiB;;iBAE5B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEjE,sDAAsD;AACtD,eAAO,MAAM,aAAa;;;;;;;iBAOxB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// User account self-management schemas.
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export const updateProfileSchema = z.object({
|
|
4
|
+
name: z.string().trim().min(1).max(80),
|
|
5
|
+
image: z.string().url().nullable().optional(),
|
|
6
|
+
});
|
|
7
|
+
export const changePasswordSchema = z.object({
|
|
8
|
+
currentPassword: z.string().min(1),
|
|
9
|
+
newPassword: z.string().min(8).max(128),
|
|
10
|
+
});
|
|
11
|
+
export const changeEmailSchema = z.object({
|
|
12
|
+
newEmail: z.string().email(),
|
|
13
|
+
});
|
|
14
|
+
/** Public profile shape returned by `/v1/account`. */
|
|
15
|
+
export const accountSchema = z.object({
|
|
16
|
+
id: z.string(),
|
|
17
|
+
email: z.string().email(),
|
|
18
|
+
emailVerified: z.boolean(),
|
|
19
|
+
name: z.string(),
|
|
20
|
+
image: z.string().nullable(),
|
|
21
|
+
activeOrganizationId: z.string().nullable(),
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=account.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../../../types/src/account.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;IACtC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAClC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;CACxC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;CAC7B,CAAC,CAAC;AAGH,sDAAsD;AACtD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IACzB,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE;IAC1B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC5C,CAAC,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Every issued key starts with this, so one is recognisable on sight. */
|
|
3
|
+
export declare const API_KEY_PREFIX = "bvf_";
|
|
4
|
+
/** Characters of the secret kept in the clear, for telling keys apart. */
|
|
5
|
+
export declare const API_KEY_DISPLAY_PREFIX_LENGTH = 12;
|
|
6
|
+
export declare const apiKeyCreateSchema: z.ZodObject<{
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export type ApiKeyCreateInput = z.infer<typeof apiKeyCreateSchema>;
|
|
10
|
+
/** A key as the dashboard lists it. Never carries the secret. */
|
|
11
|
+
export declare const apiKeySchema: z.ZodObject<{
|
|
12
|
+
id: z.ZodString;
|
|
13
|
+
name: z.ZodString;
|
|
14
|
+
prefix: z.ZodString;
|
|
15
|
+
createdAt: z.ZodString;
|
|
16
|
+
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
17
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type ApiKeyDTO = z.infer<typeof apiKeySchema>;
|
|
20
|
+
/**
|
|
21
|
+
* The response to creating a key: the row, plus the secret exactly once.
|
|
22
|
+
*
|
|
23
|
+
* Only the hash is stored, so this is the only moment the plaintext exists
|
|
24
|
+
* anywhere we control. The UI has to say so.
|
|
25
|
+
*/
|
|
26
|
+
export declare const apiKeyCreatedSchema: z.ZodObject<{
|
|
27
|
+
key: z.ZodObject<{
|
|
28
|
+
id: z.ZodString;
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
prefix: z.ZodString;
|
|
31
|
+
createdAt: z.ZodString;
|
|
32
|
+
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
33
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
secret: z.ZodString;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export type ApiKeyCreatedDTO = z.infer<typeof apiKeyCreatedSchema>;
|
|
38
|
+
//# sourceMappingURL=apiKey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiKey.d.ts","sourceRoot":"","sources":["../../../../types/src/apiKey.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,0EAA0E;AAC1E,eAAO,MAAM,cAAc,SAAS,CAAC;AAErC,0EAA0E;AAC1E,eAAO,MAAM,6BAA6B,KAAK,CAAC;AAEhD,eAAO,MAAM,kBAAkB;;iBAG7B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEnE,iEAAiE;AACjE,eAAO,MAAM,YAAY;;;;;;;iBAOvB,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAErD;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;iBAG9B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// Deploy-time registration keys.
|
|
2
|
+
//
|
|
3
|
+
// The toolbar's own writes are authorised by the reviewer's session, per the
|
|
4
|
+
// spec's decision that a secret shipped in a client bundle is decorative.
|
|
5
|
+
// Registration is the one endpoint where that reasoning does not apply: it
|
|
6
|
+
// runs from a build, server-side, where a secret is a real control rather than
|
|
7
|
+
// a value anybody can read out of a page.
|
|
8
|
+
import { z } from "zod";
|
|
9
|
+
/** Every issued key starts with this, so one is recognisable on sight. */
|
|
10
|
+
export const API_KEY_PREFIX = "bvf_";
|
|
11
|
+
/** Characters of the secret kept in the clear, for telling keys apart. */
|
|
12
|
+
export const API_KEY_DISPLAY_PREFIX_LENGTH = 12;
|
|
13
|
+
export const apiKeyCreateSchema = z.object({
|
|
14
|
+
// Named by a human so the list is readable a year later.
|
|
15
|
+
name: z.string().trim().min(1, "Name is required").max(80),
|
|
16
|
+
});
|
|
17
|
+
/** A key as the dashboard lists it. Never carries the secret. */
|
|
18
|
+
export const apiKeySchema = z.object({
|
|
19
|
+
id: z.string(),
|
|
20
|
+
name: z.string(),
|
|
21
|
+
prefix: z.string(),
|
|
22
|
+
createdAt: z.string(),
|
|
23
|
+
lastUsedAt: z.string().nullable(),
|
|
24
|
+
revokedAt: z.string().nullable(),
|
|
25
|
+
});
|
|
26
|
+
/**
|
|
27
|
+
* The response to creating a key: the row, plus the secret exactly once.
|
|
28
|
+
*
|
|
29
|
+
* Only the hash is stored, so this is the only moment the plaintext exists
|
|
30
|
+
* anywhere we control. The UI has to say so.
|
|
31
|
+
*/
|
|
32
|
+
export const apiKeyCreatedSchema = z.object({
|
|
33
|
+
key: apiKeySchema,
|
|
34
|
+
secret: z.string(),
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=apiKey.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiKey.js","sourceRoot":"","sources":["../../../../types/src/apiKey.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,EAAE;AACF,6EAA6E;AAC7E,0EAA0E;AAC1E,2EAA2E;AAC3E,+EAA+E;AAC/E,0CAA0C;AAC1C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,0EAA0E;AAC1E,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC;AAErC,0EAA0E;AAC1E,MAAM,CAAC,MAAM,6BAA6B,GAAG,EAAE,CAAC;AAEhD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,yDAAyD;IACzD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,kBAAkB,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;CAC3D,CAAC,CAAC;AAGH,iEAAiE;AACjE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AAGH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,GAAG,EAAE,YAAY;IACjB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Request a sign-in link. The response is deliberately the same whether or not
|
|
4
|
+
* the address is known, so this cannot be used to enumerate reviewers.
|
|
5
|
+
*/
|
|
6
|
+
export declare const magicLinkRequestSchema: z.ZodObject<{
|
|
7
|
+
email: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export type MagicLinkRequestInput = z.infer<typeof magicLinkRequestSchema>;
|
|
10
|
+
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../types/src/auth.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;iBAEjC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Authentication schemas.
|
|
2
|
+
//
|
|
3
|
+
// Only the magic link has a payload worth a schema: it is the reviewer's way
|
|
4
|
+
// in, and the invite-acceptance page posts it. Staff sign in with Google,
|
|
5
|
+
// whose payload Better Auth owns, and there is no sign-up payload because
|
|
6
|
+
// public sign-up is closed through every provider.
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
/**
|
|
9
|
+
* Request a sign-in link. The response is deliberately the same whether or not
|
|
10
|
+
* the address is known, so this cannot be used to enumerate reviewers.
|
|
11
|
+
*/
|
|
12
|
+
export const magicLinkRequestSchema = z.object({
|
|
13
|
+
email: z.string().email("Enter a valid email address."),
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=auth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../types/src/auth.ts"],"names":[],"mappings":"AAAA,0BAA0B;AAC1B,EAAE;AACF,6EAA6E;AAC7E,0EAA0E;AAC1E,0EAA0E;AAC1E,mDAAmD;AACnD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,8BAA8B,CAAC;CACxD,CAAC,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { roleSchema, type Role } from "./role.js";
|
|
3
|
+
/** Every entity whose access is gated by the read/write permission matrix. */
|
|
4
|
+
export declare const entitySchema: z.ZodEnum<{
|
|
5
|
+
feedback: "feedback";
|
|
6
|
+
pin: "pin";
|
|
7
|
+
member: "member";
|
|
8
|
+
setting: "setting";
|
|
9
|
+
}>;
|
|
10
|
+
export type Entity = z.infer<typeof entitySchema>;
|
|
11
|
+
/** Stable display order for the role-management UI. */
|
|
12
|
+
export declare const ENTITIES: readonly Entity[];
|
|
13
|
+
export declare const ENTITY_LABELS: Record<Entity, string>;
|
|
14
|
+
export declare const ENTITY_DESCRIPTIONS: Record<Entity, string>;
|
|
15
|
+
/** The two access modes a permission can grant. */
|
|
16
|
+
export declare const permissionModeSchema: z.ZodEnum<{
|
|
17
|
+
read: "read";
|
|
18
|
+
write: "write";
|
|
19
|
+
}>;
|
|
20
|
+
export type PermissionMode = z.infer<typeof permissionModeSchema>;
|
|
21
|
+
/**
|
|
22
|
+
* A single entity's grant for a role: independent read/write flags. WRITE does
|
|
23
|
+
* NOT imply READ at the type level — the resolver and UI keep them independent
|
|
24
|
+
* so a "write-only" intake role is expressible — but the UI nudges (and most
|
|
25
|
+
* callers treat write as implying read by also checking read where it matters).
|
|
26
|
+
*/
|
|
27
|
+
export declare const entityPermissionSchema: z.ZodObject<{
|
|
28
|
+
entity: z.ZodEnum<{
|
|
29
|
+
feedback: "feedback";
|
|
30
|
+
pin: "pin";
|
|
31
|
+
member: "member";
|
|
32
|
+
setting: "setting";
|
|
33
|
+
}>;
|
|
34
|
+
canRead: z.ZodBoolean;
|
|
35
|
+
canWrite: z.ZodBoolean;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export type EntityPermission = z.infer<typeof entityPermissionSchema>;
|
|
38
|
+
/** Resolved access for a single entity. */
|
|
39
|
+
export interface EntityAccess {
|
|
40
|
+
read: boolean;
|
|
41
|
+
write: boolean;
|
|
42
|
+
}
|
|
43
|
+
/** A complete map: every entity → its resolved access. */
|
|
44
|
+
export type EntityPermissionMap = Record<Entity, EntityAccess>;
|
|
45
|
+
/** An all-false starting point. Clone before mutating. */
|
|
46
|
+
export declare function emptyEntityPermissionMap(): EntityPermissionMap;
|
|
47
|
+
/** An all-true map (OWNER and full-access roles). */
|
|
48
|
+
export declare function fullEntityPermissionMap(): EntityPermissionMap;
|
|
49
|
+
/**
|
|
50
|
+
* Default per-entity access for the three built-in system roles, applied when a
|
|
51
|
+
* member has NOT been assigned a custom RoleDefinition. OWNER is always full via
|
|
52
|
+
* the resolver's override; its entry here is for completeness/seeding.
|
|
53
|
+
*
|
|
54
|
+
* OWNER - full read/write on everything.
|
|
55
|
+
* ADMIN - read/write feedback, pins and members; read settings.
|
|
56
|
+
* MEMBER - read/write feedback and pins, nothing else. A MEMBER is an
|
|
57
|
+
* invited reviewer: they submit items and replies of their own,
|
|
58
|
+
* and they READ the whole project's feedback on purpose, because
|
|
59
|
+
* seeing a colleague's pin is what stops them reporting the same
|
|
60
|
+
* bug twice. Triage is theirs too: `feedback` write is the whole
|
|
61
|
+
* requirement for moving an item between lanes, because a reviewer
|
|
62
|
+
* closing something they have verified is the common case and
|
|
63
|
+
* making them wait on an admin was the bottleneck. What keeps that
|
|
64
|
+
* honest is not a narrower permission but recorded attribution -
|
|
65
|
+
* every move stamps who made it and when, so a lane always names
|
|
66
|
+
* its author. Withhold `feedback` write with a custom
|
|
67
|
+
* RoleDefinition and triage goes with it.
|
|
68
|
+
*/
|
|
69
|
+
export declare const SYSTEM_ENTITY_DEFAULTS: Record<Role, EntityPermissionMap>;
|
|
70
|
+
/** The system-default permissions as a flat EntityPermission[] (for seeding). */
|
|
71
|
+
export declare function systemDefaultPermissionRows(role: Role): EntityPermission[];
|
|
72
|
+
/** Re-exported so callers can iterate system roles without importing role.ts. */
|
|
73
|
+
export { roleSchema };
|
|
74
|
+
//# sourceMappingURL=entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../../types/src/entity.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU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AAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
// The "advanced permission system" axis: per-entity read/write access.
|
|
2
|
+
//
|
|
3
|
+
// The coarse `Action` capabilities (manage_members, manage_settings, …) gate
|
|
4
|
+
// organization-level management and live in `@bitvea/auth`. This
|
|
5
|
+
// file is the second, finer axis: a registry of *entities* a role can be granted
|
|
6
|
+
// READ and/or WRITE on. A custom RoleDefinition stores one RolePermission row
|
|
7
|
+
// per entity; the resolver in `@bitvea/auth/permissions` turns a
|
|
8
|
+
// caller's (system role + optional custom role) into a concrete read/write map.
|
|
9
|
+
//
|
|
10
|
+
// To make a new entity permissionable: add it to `entitySchema` below, give it a
|
|
11
|
+
// label + default, and the role-management UI + API gates pick it up
|
|
12
|
+
// automatically. The compile-time `Record<Entity, …>` types force every new
|
|
13
|
+
// entity to declare its system-role defaults, so drift is impossible.
|
|
14
|
+
import { z } from "zod";
|
|
15
|
+
import { roleSchema } from "./role.js";
|
|
16
|
+
/** Every entity whose access is gated by the read/write permission matrix. */
|
|
17
|
+
export const entitySchema = z.enum(["feedback", "pin", "member", "setting"]);
|
|
18
|
+
/** Stable display order for the role-management UI. */
|
|
19
|
+
export const ENTITIES = ["feedback", "pin", "member", "setting"];
|
|
20
|
+
export const ENTITY_LABELS = {
|
|
21
|
+
feedback: "Feedback",
|
|
22
|
+
pin: "Pins",
|
|
23
|
+
member: "Members",
|
|
24
|
+
setting: "Settings",
|
|
25
|
+
};
|
|
26
|
+
export const ENTITY_DESCRIPTIONS = {
|
|
27
|
+
feedback: "Feedback items submitted from a project's toolbar, and their replies.",
|
|
28
|
+
pin: "Element anchors attached to pinned feedback items.",
|
|
29
|
+
member: "Project members and their roles.",
|
|
30
|
+
setting: "Organization-level settings.",
|
|
31
|
+
};
|
|
32
|
+
/** The two access modes a permission can grant. */
|
|
33
|
+
export const permissionModeSchema = z.enum(["read", "write"]);
|
|
34
|
+
/**
|
|
35
|
+
* A single entity's grant for a role: independent read/write flags. WRITE does
|
|
36
|
+
* NOT imply READ at the type level — the resolver and UI keep them independent
|
|
37
|
+
* so a "write-only" intake role is expressible — but the UI nudges (and most
|
|
38
|
+
* callers treat write as implying read by also checking read where it matters).
|
|
39
|
+
*/
|
|
40
|
+
export const entityPermissionSchema = z.object({
|
|
41
|
+
entity: entitySchema,
|
|
42
|
+
canRead: z.boolean(),
|
|
43
|
+
canWrite: z.boolean(),
|
|
44
|
+
});
|
|
45
|
+
const NONE = { read: false, write: false };
|
|
46
|
+
const FULL = { read: true, write: true };
|
|
47
|
+
/** An all-false starting point. Clone before mutating. */
|
|
48
|
+
export function emptyEntityPermissionMap() {
|
|
49
|
+
return {
|
|
50
|
+
feedback: { ...NONE },
|
|
51
|
+
pin: { ...NONE },
|
|
52
|
+
member: { ...NONE },
|
|
53
|
+
setting: { ...NONE },
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
/** An all-true map (OWNER and full-access roles). */
|
|
57
|
+
export function fullEntityPermissionMap() {
|
|
58
|
+
return {
|
|
59
|
+
feedback: { ...FULL },
|
|
60
|
+
pin: { ...FULL },
|
|
61
|
+
member: { ...FULL },
|
|
62
|
+
setting: { ...FULL },
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Default per-entity access for the three built-in system roles, applied when a
|
|
67
|
+
* member has NOT been assigned a custom RoleDefinition. OWNER is always full via
|
|
68
|
+
* the resolver's override; its entry here is for completeness/seeding.
|
|
69
|
+
*
|
|
70
|
+
* OWNER - full read/write on everything.
|
|
71
|
+
* ADMIN - read/write feedback, pins and members; read settings.
|
|
72
|
+
* MEMBER - read/write feedback and pins, nothing else. A MEMBER is an
|
|
73
|
+
* invited reviewer: they submit items and replies of their own,
|
|
74
|
+
* and they READ the whole project's feedback on purpose, because
|
|
75
|
+
* seeing a colleague's pin is what stops them reporting the same
|
|
76
|
+
* bug twice. Triage is theirs too: `feedback` write is the whole
|
|
77
|
+
* requirement for moving an item between lanes, because a reviewer
|
|
78
|
+
* closing something they have verified is the common case and
|
|
79
|
+
* making them wait on an admin was the bottleneck. What keeps that
|
|
80
|
+
* honest is not a narrower permission but recorded attribution -
|
|
81
|
+
* every move stamps who made it and when, so a lane always names
|
|
82
|
+
* its author. Withhold `feedback` write with a custom
|
|
83
|
+
* RoleDefinition and triage goes with it.
|
|
84
|
+
*/
|
|
85
|
+
export const SYSTEM_ENTITY_DEFAULTS = {
|
|
86
|
+
OWNER: fullEntityPermissionMap(),
|
|
87
|
+
ADMIN: {
|
|
88
|
+
feedback: { read: true, write: true },
|
|
89
|
+
pin: { read: true, write: true },
|
|
90
|
+
member: { read: true, write: true },
|
|
91
|
+
setting: { read: true, write: false },
|
|
92
|
+
},
|
|
93
|
+
MEMBER: {
|
|
94
|
+
feedback: { read: true, write: true },
|
|
95
|
+
pin: { read: true, write: true },
|
|
96
|
+
member: { read: false, write: false },
|
|
97
|
+
setting: { read: false, write: false },
|
|
98
|
+
},
|
|
99
|
+
};
|
|
100
|
+
/** The system-default permissions as a flat EntityPermission[] (for seeding). */
|
|
101
|
+
export function systemDefaultPermissionRows(role) {
|
|
102
|
+
const map = SYSTEM_ENTITY_DEFAULTS[role];
|
|
103
|
+
return ENTITIES.map((entity) => ({
|
|
104
|
+
entity,
|
|
105
|
+
canRead: map[entity].read,
|
|
106
|
+
canWrite: map[entity].write,
|
|
107
|
+
}));
|
|
108
|
+
}
|
|
109
|
+
/** Re-exported so callers can iterate system roles without importing role.ts. */
|
|
110
|
+
export { roleSchema };
|
|
111
|
+
//# sourceMappingURL=entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity.js","sourceRoot":"","sources":["../../../../types/src/entity.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,EAAE;AACF,6EAA6E;AAC7E,iEAAiE;AACjE,iFAAiF;AACjF,8EAA8E;AAC9E,iEAAiE;AACjE,gFAAgF;AAChF,EAAE;AACF,iFAAiF;AACjF,qEAAqE;AACrE,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