@meistrari/data-token 0.0.14 → 0.0.15
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/hono.d.mts +2 -51
- package/dist/adapters/hono.d.ts +2 -51
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.mjs +1 -1
- package/dist/shared/data-token.81835829.d.mts +57 -0
- package/dist/shared/data-token.81835829.d.ts +57 -0
- package/package.json +1 -1
package/dist/adapters/hono.d.mts
CHANGED
|
@@ -1,56 +1,7 @@
|
|
|
1
1
|
import * as hono from 'hono';
|
|
2
2
|
import { Context } from 'hono';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
declare const DataToken: z.ZodObject<{
|
|
6
|
-
requestId: z.ZodString;
|
|
7
|
-
workspace: z.ZodObject<{
|
|
8
|
-
id: z.ZodString;
|
|
9
|
-
title: z.ZodString;
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
id?: string;
|
|
12
|
-
title?: string;
|
|
13
|
-
}, {
|
|
14
|
-
id?: string;
|
|
15
|
-
title?: string;
|
|
16
|
-
}>;
|
|
17
|
-
user: z.ZodOptional<z.ZodObject<{
|
|
18
|
-
id: z.ZodString;
|
|
19
|
-
email: z.ZodString;
|
|
20
|
-
uuid: z.ZodNullable<z.ZodString>;
|
|
21
|
-
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
id?: string;
|
|
23
|
-
email?: string;
|
|
24
|
-
uuid?: string;
|
|
25
|
-
}, {
|
|
26
|
-
id?: string;
|
|
27
|
-
email?: string;
|
|
28
|
-
uuid?: string;
|
|
29
|
-
}>>;
|
|
30
|
-
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
requestId?: string;
|
|
32
|
-
workspace?: {
|
|
33
|
-
id?: string;
|
|
34
|
-
title?: string;
|
|
35
|
-
};
|
|
36
|
-
user?: {
|
|
37
|
-
id?: string;
|
|
38
|
-
email?: string;
|
|
39
|
-
uuid?: string;
|
|
40
|
-
};
|
|
41
|
-
}, {
|
|
42
|
-
requestId?: string;
|
|
43
|
-
workspace?: {
|
|
44
|
-
id?: string;
|
|
45
|
-
title?: string;
|
|
46
|
-
};
|
|
47
|
-
user?: {
|
|
48
|
-
id?: string;
|
|
49
|
-
email?: string;
|
|
50
|
-
uuid?: string;
|
|
51
|
-
};
|
|
52
|
-
}>;
|
|
53
|
-
type DataToken = z.infer<typeof DataToken>;
|
|
3
|
+
import { D as DataToken } from '../shared/data-token.81835829.mjs';
|
|
4
|
+
import 'zod';
|
|
54
5
|
|
|
55
6
|
type DataTokenContext = {
|
|
56
7
|
Variables: {
|
package/dist/adapters/hono.d.ts
CHANGED
|
@@ -1,56 +1,7 @@
|
|
|
1
1
|
import * as hono from 'hono';
|
|
2
2
|
import { Context } from 'hono';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
declare const DataToken: z.ZodObject<{
|
|
6
|
-
requestId: z.ZodString;
|
|
7
|
-
workspace: z.ZodObject<{
|
|
8
|
-
id: z.ZodString;
|
|
9
|
-
title: z.ZodString;
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
id?: string;
|
|
12
|
-
title?: string;
|
|
13
|
-
}, {
|
|
14
|
-
id?: string;
|
|
15
|
-
title?: string;
|
|
16
|
-
}>;
|
|
17
|
-
user: z.ZodOptional<z.ZodObject<{
|
|
18
|
-
id: z.ZodString;
|
|
19
|
-
email: z.ZodString;
|
|
20
|
-
uuid: z.ZodNullable<z.ZodString>;
|
|
21
|
-
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
id?: string;
|
|
23
|
-
email?: string;
|
|
24
|
-
uuid?: string;
|
|
25
|
-
}, {
|
|
26
|
-
id?: string;
|
|
27
|
-
email?: string;
|
|
28
|
-
uuid?: string;
|
|
29
|
-
}>>;
|
|
30
|
-
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
requestId?: string;
|
|
32
|
-
workspace?: {
|
|
33
|
-
id?: string;
|
|
34
|
-
title?: string;
|
|
35
|
-
};
|
|
36
|
-
user?: {
|
|
37
|
-
id?: string;
|
|
38
|
-
email?: string;
|
|
39
|
-
uuid?: string;
|
|
40
|
-
};
|
|
41
|
-
}, {
|
|
42
|
-
requestId?: string;
|
|
43
|
-
workspace?: {
|
|
44
|
-
id?: string;
|
|
45
|
-
title?: string;
|
|
46
|
-
};
|
|
47
|
-
user?: {
|
|
48
|
-
id?: string;
|
|
49
|
-
email?: string;
|
|
50
|
-
uuid?: string;
|
|
51
|
-
};
|
|
52
|
-
}>;
|
|
53
|
-
type DataToken = z.infer<typeof DataToken>;
|
|
3
|
+
import { D as DataToken } from '../shared/data-token.81835829.js';
|
|
4
|
+
import 'zod';
|
|
54
5
|
|
|
55
6
|
type DataTokenContext = {
|
|
56
7
|
Variables: {
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const DataToken: z.ZodObject<{
|
|
4
|
+
requestId: z.ZodString;
|
|
5
|
+
workspace: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
title: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
id?: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
}, {
|
|
12
|
+
id?: string;
|
|
13
|
+
title?: string;
|
|
14
|
+
}>;
|
|
15
|
+
user: z.ZodOptional<z.ZodObject<{
|
|
16
|
+
id: z.ZodString;
|
|
17
|
+
email: z.ZodString;
|
|
18
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
id?: string;
|
|
21
|
+
email?: string;
|
|
22
|
+
uuid?: string;
|
|
23
|
+
}, {
|
|
24
|
+
id?: string;
|
|
25
|
+
email?: string;
|
|
26
|
+
uuid?: string;
|
|
27
|
+
}>>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
requestId?: string;
|
|
30
|
+
workspace?: {
|
|
31
|
+
id?: string;
|
|
32
|
+
title?: string;
|
|
33
|
+
};
|
|
34
|
+
user?: {
|
|
35
|
+
id?: string;
|
|
36
|
+
email?: string;
|
|
37
|
+
uuid?: string;
|
|
38
|
+
};
|
|
39
|
+
}, {
|
|
40
|
+
requestId?: string;
|
|
41
|
+
workspace?: {
|
|
42
|
+
id?: string;
|
|
43
|
+
title?: string;
|
|
44
|
+
};
|
|
45
|
+
user?: {
|
|
46
|
+
id?: string;
|
|
47
|
+
email?: string;
|
|
48
|
+
uuid?: string;
|
|
49
|
+
};
|
|
50
|
+
}>;
|
|
51
|
+
type DataToken = z.infer<typeof DataToken>;
|
|
52
|
+
type ValidatorConfig = {
|
|
53
|
+
jwksUrl: string;
|
|
54
|
+
algorithms?: string[];
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export { DataToken as D, type ValidatorConfig as V };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const DataToken: z.ZodObject<{
|
|
4
|
+
requestId: z.ZodString;
|
|
5
|
+
workspace: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
title: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
id?: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
}, {
|
|
12
|
+
id?: string;
|
|
13
|
+
title?: string;
|
|
14
|
+
}>;
|
|
15
|
+
user: z.ZodOptional<z.ZodObject<{
|
|
16
|
+
id: z.ZodString;
|
|
17
|
+
email: z.ZodString;
|
|
18
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
id?: string;
|
|
21
|
+
email?: string;
|
|
22
|
+
uuid?: string;
|
|
23
|
+
}, {
|
|
24
|
+
id?: string;
|
|
25
|
+
email?: string;
|
|
26
|
+
uuid?: string;
|
|
27
|
+
}>>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
requestId?: string;
|
|
30
|
+
workspace?: {
|
|
31
|
+
id?: string;
|
|
32
|
+
title?: string;
|
|
33
|
+
};
|
|
34
|
+
user?: {
|
|
35
|
+
id?: string;
|
|
36
|
+
email?: string;
|
|
37
|
+
uuid?: string;
|
|
38
|
+
};
|
|
39
|
+
}, {
|
|
40
|
+
requestId?: string;
|
|
41
|
+
workspace?: {
|
|
42
|
+
id?: string;
|
|
43
|
+
title?: string;
|
|
44
|
+
};
|
|
45
|
+
user?: {
|
|
46
|
+
id?: string;
|
|
47
|
+
email?: string;
|
|
48
|
+
uuid?: string;
|
|
49
|
+
};
|
|
50
|
+
}>;
|
|
51
|
+
type DataToken = z.infer<typeof DataToken>;
|
|
52
|
+
type ValidatorConfig = {
|
|
53
|
+
jwksUrl: string;
|
|
54
|
+
algorithms?: string[];
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export { DataToken as D, type ValidatorConfig as V };
|
package/package.json
CHANGED