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