@meistrari/data-token 0.0.15 → 0.0.16
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/adapters/elysia.d.mts +12 -1
- package/dist/adapters/elysia.d.ts +12 -1
- package/dist/adapters/hono.d.mts +1 -1
- package/dist/adapters/hono.d.ts +1 -1
- package/dist/index.d.mts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/shared/{data-token.81835829.d.mts → data-token.815fae84.d.mts} +26 -26
- package/dist/shared/{data-token.81835829.d.ts → data-token.815fae84.d.ts} +26 -26
- package/package.json +1 -1
|
@@ -22,7 +22,18 @@ declare function createDataTokenPlugin(url: string, skipOnError?: boolean, getTo
|
|
|
22
22
|
decorator: {};
|
|
23
23
|
store: {};
|
|
24
24
|
derive: {
|
|
25
|
-
readonly authData
|
|
25
|
+
readonly authData: {
|
|
26
|
+
requestId: string;
|
|
27
|
+
workspace: {
|
|
28
|
+
id: string;
|
|
29
|
+
title: string;
|
|
30
|
+
};
|
|
31
|
+
user?: {
|
|
32
|
+
id: string;
|
|
33
|
+
email: string;
|
|
34
|
+
uuid: string | null;
|
|
35
|
+
} | undefined;
|
|
36
|
+
} | null;
|
|
26
37
|
};
|
|
27
38
|
resolve: {};
|
|
28
39
|
}, {
|
|
@@ -22,7 +22,18 @@ declare function createDataTokenPlugin(url: string, skipOnError?: boolean, getTo
|
|
|
22
22
|
decorator: {};
|
|
23
23
|
store: {};
|
|
24
24
|
derive: {
|
|
25
|
-
readonly authData
|
|
25
|
+
readonly authData: {
|
|
26
|
+
requestId: string;
|
|
27
|
+
workspace: {
|
|
28
|
+
id: string;
|
|
29
|
+
title: string;
|
|
30
|
+
};
|
|
31
|
+
user?: {
|
|
32
|
+
id: string;
|
|
33
|
+
email: string;
|
|
34
|
+
uuid: string | null;
|
|
35
|
+
} | undefined;
|
|
36
|
+
} | null;
|
|
26
37
|
};
|
|
27
38
|
resolve: {};
|
|
28
39
|
}, {
|
package/dist/adapters/hono.d.mts
CHANGED
package/dist/adapters/hono.d.ts
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DataToken, V as ValidatorConfig } from './shared/data-token.
|
|
1
|
+
export { D as DataToken, V as ValidatorConfig } from './shared/data-token.815fae84.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -12,16 +12,16 @@ import 'zod';
|
|
|
12
12
|
declare function getValidator(jwksUrl: string, { algorithms }?: {
|
|
13
13
|
algorithms: string[];
|
|
14
14
|
}): (token: string) => Promise<{
|
|
15
|
-
requestId
|
|
16
|
-
workspace
|
|
17
|
-
id
|
|
18
|
-
title
|
|
15
|
+
requestId: string;
|
|
16
|
+
workspace: {
|
|
17
|
+
id: string;
|
|
18
|
+
title: string;
|
|
19
19
|
};
|
|
20
20
|
user?: {
|
|
21
|
-
id
|
|
22
|
-
email
|
|
23
|
-
uuid
|
|
24
|
-
};
|
|
21
|
+
id: string;
|
|
22
|
+
email: string;
|
|
23
|
+
uuid: string | null;
|
|
24
|
+
} | undefined;
|
|
25
25
|
}>;
|
|
26
26
|
|
|
27
27
|
export { getValidator };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DataToken, V as ValidatorConfig } from './shared/data-token.
|
|
1
|
+
export { D as DataToken, V as ValidatorConfig } from './shared/data-token.815fae84.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -12,16 +12,16 @@ import 'zod';
|
|
|
12
12
|
declare function getValidator(jwksUrl: string, { algorithms }?: {
|
|
13
13
|
algorithms: string[];
|
|
14
14
|
}): (token: string) => Promise<{
|
|
15
|
-
requestId
|
|
16
|
-
workspace
|
|
17
|
-
id
|
|
18
|
-
title
|
|
15
|
+
requestId: string;
|
|
16
|
+
workspace: {
|
|
17
|
+
id: string;
|
|
18
|
+
title: string;
|
|
19
19
|
};
|
|
20
20
|
user?: {
|
|
21
|
-
id
|
|
22
|
-
email
|
|
23
|
-
uuid
|
|
24
|
-
};
|
|
21
|
+
id: string;
|
|
22
|
+
email: string;
|
|
23
|
+
uuid: string | null;
|
|
24
|
+
} | undefined;
|
|
25
25
|
}>;
|
|
26
26
|
|
|
27
27
|
export { getValidator };
|
|
@@ -6,47 +6,47 @@ declare const DataToken: z.ZodObject<{
|
|
|
6
6
|
id: z.ZodString;
|
|
7
7
|
title: z.ZodString;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
id
|
|
10
|
-
title
|
|
9
|
+
id: string;
|
|
10
|
+
title: string;
|
|
11
11
|
}, {
|
|
12
|
-
id
|
|
13
|
-
title
|
|
12
|
+
id: string;
|
|
13
|
+
title: string;
|
|
14
14
|
}>;
|
|
15
15
|
user: z.ZodOptional<z.ZodObject<{
|
|
16
16
|
id: z.ZodString;
|
|
17
17
|
email: z.ZodString;
|
|
18
18
|
uuid: z.ZodNullable<z.ZodString>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
id
|
|
21
|
-
email
|
|
22
|
-
uuid
|
|
20
|
+
id: string;
|
|
21
|
+
email: string;
|
|
22
|
+
uuid: string | null;
|
|
23
23
|
}, {
|
|
24
|
-
id
|
|
25
|
-
email
|
|
26
|
-
uuid
|
|
24
|
+
id: string;
|
|
25
|
+
email: string;
|
|
26
|
+
uuid: string | null;
|
|
27
27
|
}>>;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
requestId
|
|
30
|
-
workspace
|
|
31
|
-
id
|
|
32
|
-
title
|
|
29
|
+
requestId: string;
|
|
30
|
+
workspace: {
|
|
31
|
+
id: string;
|
|
32
|
+
title: string;
|
|
33
33
|
};
|
|
34
34
|
user?: {
|
|
35
|
-
id
|
|
36
|
-
email
|
|
37
|
-
uuid
|
|
38
|
-
};
|
|
35
|
+
id: string;
|
|
36
|
+
email: string;
|
|
37
|
+
uuid: string | null;
|
|
38
|
+
} | undefined;
|
|
39
39
|
}, {
|
|
40
|
-
requestId
|
|
41
|
-
workspace
|
|
42
|
-
id
|
|
43
|
-
title
|
|
40
|
+
requestId: string;
|
|
41
|
+
workspace: {
|
|
42
|
+
id: string;
|
|
43
|
+
title: string;
|
|
44
44
|
};
|
|
45
45
|
user?: {
|
|
46
|
-
id
|
|
47
|
-
email
|
|
48
|
-
uuid
|
|
49
|
-
};
|
|
46
|
+
id: string;
|
|
47
|
+
email: string;
|
|
48
|
+
uuid: string | null;
|
|
49
|
+
} | undefined;
|
|
50
50
|
}>;
|
|
51
51
|
type DataToken = z.infer<typeof DataToken>;
|
|
52
52
|
type ValidatorConfig = {
|
|
@@ -6,47 +6,47 @@ declare const DataToken: z.ZodObject<{
|
|
|
6
6
|
id: z.ZodString;
|
|
7
7
|
title: z.ZodString;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
id
|
|
10
|
-
title
|
|
9
|
+
id: string;
|
|
10
|
+
title: string;
|
|
11
11
|
}, {
|
|
12
|
-
id
|
|
13
|
-
title
|
|
12
|
+
id: string;
|
|
13
|
+
title: string;
|
|
14
14
|
}>;
|
|
15
15
|
user: z.ZodOptional<z.ZodObject<{
|
|
16
16
|
id: z.ZodString;
|
|
17
17
|
email: z.ZodString;
|
|
18
18
|
uuid: z.ZodNullable<z.ZodString>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
id
|
|
21
|
-
email
|
|
22
|
-
uuid
|
|
20
|
+
id: string;
|
|
21
|
+
email: string;
|
|
22
|
+
uuid: string | null;
|
|
23
23
|
}, {
|
|
24
|
-
id
|
|
25
|
-
email
|
|
26
|
-
uuid
|
|
24
|
+
id: string;
|
|
25
|
+
email: string;
|
|
26
|
+
uuid: string | null;
|
|
27
27
|
}>>;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
requestId
|
|
30
|
-
workspace
|
|
31
|
-
id
|
|
32
|
-
title
|
|
29
|
+
requestId: string;
|
|
30
|
+
workspace: {
|
|
31
|
+
id: string;
|
|
32
|
+
title: string;
|
|
33
33
|
};
|
|
34
34
|
user?: {
|
|
35
|
-
id
|
|
36
|
-
email
|
|
37
|
-
uuid
|
|
38
|
-
};
|
|
35
|
+
id: string;
|
|
36
|
+
email: string;
|
|
37
|
+
uuid: string | null;
|
|
38
|
+
} | undefined;
|
|
39
39
|
}, {
|
|
40
|
-
requestId
|
|
41
|
-
workspace
|
|
42
|
-
id
|
|
43
|
-
title
|
|
40
|
+
requestId: string;
|
|
41
|
+
workspace: {
|
|
42
|
+
id: string;
|
|
43
|
+
title: string;
|
|
44
44
|
};
|
|
45
45
|
user?: {
|
|
46
|
-
id
|
|
47
|
-
email
|
|
48
|
-
uuid
|
|
49
|
-
};
|
|
46
|
+
id: string;
|
|
47
|
+
email: string;
|
|
48
|
+
uuid: string | null;
|
|
49
|
+
} | undefined;
|
|
50
50
|
}>;
|
|
51
51
|
type DataToken = z.infer<typeof DataToken>;
|
|
52
52
|
type ValidatorConfig = {
|
package/package.json
CHANGED