@did-space/core 1.0.45 → 1.0.47
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/cjs/meta/template/preview/app.d.ts +1 -1
- package/dist/cjs/meta/template/preview/base.d.ts +4 -4
- package/dist/cjs/meta/template/preview/base.js +1 -0
- package/dist/cjs/meta/template/preview/blog.d.ts +1 -1
- package/dist/cjs/meta/template/preview/bookmark.d.ts +1 -1
- package/dist/cjs/meta/template/preview/default.d.ts +34 -8
- package/dist/cjs/meta/template/preview/default.js +2 -0
- package/dist/cjs/meta/template/preview/docs.d.ts +29 -0
- package/dist/cjs/meta/template/preview/docs.js +18 -0
- package/dist/cjs/meta/template/preview/index.d.ts +2 -1
- package/dist/cjs/meta/template/preview/index.js +2 -1
- package/dist/cjs/meta/template/preview/nft.d.ts +1 -1
- package/dist/cjs/meta/template/preview/passport.d.ts +1 -1
- package/dist/cjs/meta/template/preview/post.d.ts +1 -1
- package/dist/cjs/meta/template/preview/profile.d.ts +1 -1
- package/dist/cjs/meta/template/preview/project.d.ts +1 -1
- package/dist/es/meta/template/preview/app.d.ts +1 -1
- package/dist/es/meta/template/preview/base.d.ts +4 -4
- package/dist/es/meta/template/preview/base.js +1 -0
- package/dist/es/meta/template/preview/blog.d.ts +1 -1
- package/dist/es/meta/template/preview/bookmark.d.ts +1 -1
- package/dist/es/meta/template/preview/default.d.ts +34 -8
- package/dist/es/meta/template/preview/default.js +2 -0
- package/dist/es/meta/template/preview/docs.d.ts +29 -0
- package/dist/es/meta/template/preview/docs.js +15 -0
- package/dist/es/meta/template/preview/index.d.ts +2 -1
- package/dist/es/meta/template/preview/index.js +2 -1
- package/dist/es/meta/template/preview/nft.d.ts +1 -1
- package/dist/es/meta/template/preview/passport.d.ts +1 -1
- package/dist/es/meta/template/preview/post.d.ts +1 -1
- package/dist/es/meta/template/preview/profile.d.ts +1 -1
- package/dist/es/meta/template/preview/project.d.ts +1 -1
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const AppPreviewTemplateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
3
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
4
4
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
5
5
|
}, {
|
|
6
6
|
template: z.ZodLiteral<"app">;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const DidSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
3
3
|
export declare const DateSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
4
|
-
export declare const TemplateTypeSchema: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
4
|
+
export declare const TemplateTypeSchema: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
5
5
|
export declare const BasePreviewTemplateSchema: z.ZodObject<{
|
|
6
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
6
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
7
7
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
template: "app" | "nft" | "profile" | "passport" | "post" | "blog" | "bookmark" | "project";
|
|
9
|
+
template: "app" | "nft" | "profile" | "passport" | "post" | "blog" | "bookmark" | "project" | "doc";
|
|
10
10
|
did: string;
|
|
11
11
|
}, {
|
|
12
|
-
template: "app" | "nft" | "profile" | "passport" | "post" | "blog" | "bookmark" | "project";
|
|
12
|
+
template: "app" | "nft" | "profile" | "passport" | "post" | "blog" | "bookmark" | "project" | "doc";
|
|
13
13
|
did: string;
|
|
14
14
|
}>;
|
|
15
15
|
export declare const TagSchema: z.ZodString;
|
|
@@ -28,6 +28,7 @@ exports.TemplateTypeSchema = zod_1.z.union([
|
|
|
28
28
|
zod_1.z.literal('bookmark'),
|
|
29
29
|
zod_1.z.literal('project'),
|
|
30
30
|
zod_1.z.literal('app'),
|
|
31
|
+
zod_1.z.literal('doc'),
|
|
31
32
|
]);
|
|
32
33
|
exports.BasePreviewTemplateSchema = zod_1.z.object({
|
|
33
34
|
template: exports.TemplateTypeSchema,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const BlogPreviewTemplateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
3
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
4
4
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
5
5
|
}, {
|
|
6
6
|
template: z.ZodLiteral<"blog">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const BookmarkPreviewTemplateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
3
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
4
4
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
5
5
|
}, {
|
|
6
6
|
template: z.ZodLiteral<"bookmark">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
2
|
export declare const PreviewTemplateSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
3
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
4
4
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
5
5
|
}, {
|
|
6
6
|
template: z.ZodLiteral<"app">;
|
|
@@ -17,7 +17,7 @@ export declare const PreviewTemplateSchema: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
17
17
|
name: string;
|
|
18
18
|
logo: string;
|
|
19
19
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
20
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
20
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
21
21
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
22
22
|
}, {
|
|
23
23
|
template: z.ZodLiteral<"nft">;
|
|
@@ -37,7 +37,7 @@ export declare const PreviewTemplateSchema: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
37
37
|
image: string;
|
|
38
38
|
chainHost: string;
|
|
39
39
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
40
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
40
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
41
41
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
42
42
|
}, {
|
|
43
43
|
template: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"profile">>>;
|
|
@@ -57,7 +57,7 @@ export declare const PreviewTemplateSchema: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
57
57
|
email: string;
|
|
58
58
|
template?: "profile" | undefined;
|
|
59
59
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
60
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
60
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
61
61
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
62
62
|
}, {
|
|
63
63
|
template: z.ZodLiteral<"passport">;
|
|
@@ -89,7 +89,7 @@ export declare const PreviewTemplateSchema: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
89
89
|
issuedTo: string;
|
|
90
90
|
verified: boolean;
|
|
91
91
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
92
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
92
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
93
93
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
94
94
|
}, {
|
|
95
95
|
template: z.ZodLiteral<"post">;
|
|
@@ -112,7 +112,7 @@ export declare const PreviewTemplateSchema: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
112
112
|
createdAt: string;
|
|
113
113
|
tags?: string[] | undefined;
|
|
114
114
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
115
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
115
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
116
116
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
117
117
|
}, {
|
|
118
118
|
template: z.ZodLiteral<"blog">;
|
|
@@ -138,7 +138,7 @@ export declare const PreviewTemplateSchema: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
138
138
|
createdAt: string;
|
|
139
139
|
tags?: string[] | undefined;
|
|
140
140
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
141
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
141
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
142
142
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
143
143
|
}, {
|
|
144
144
|
template: z.ZodLiteral<"bookmark">;
|
|
@@ -164,7 +164,7 @@ export declare const PreviewTemplateSchema: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
164
164
|
createdAt: string;
|
|
165
165
|
tags?: string[] | undefined;
|
|
166
166
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
167
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
167
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
168
168
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
169
169
|
}, {
|
|
170
170
|
template: z.ZodLiteral<"project">;
|
|
@@ -189,5 +189,31 @@ export declare const PreviewTemplateSchema: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
189
189
|
url: string;
|
|
190
190
|
createdAt: string;
|
|
191
191
|
description?: string | undefined;
|
|
192
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
193
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
194
|
+
did: z.ZodEffects<z.ZodString, string, string>;
|
|
195
|
+
}, {
|
|
196
|
+
template: z.ZodLiteral<"doc">;
|
|
197
|
+
title: z.ZodString;
|
|
198
|
+
image: z.ZodString;
|
|
199
|
+
tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
200
|
+
url: z.ZodString;
|
|
201
|
+
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
202
|
+
}>, "strip", z.ZodTypeAny, {
|
|
203
|
+
template: "doc";
|
|
204
|
+
did: string;
|
|
205
|
+
title: string;
|
|
206
|
+
image: string;
|
|
207
|
+
tags: string[];
|
|
208
|
+
url: string;
|
|
209
|
+
createdAt: string;
|
|
210
|
+
}, {
|
|
211
|
+
template: "doc";
|
|
212
|
+
did: string;
|
|
213
|
+
title: string;
|
|
214
|
+
image: string;
|
|
215
|
+
url: string;
|
|
216
|
+
createdAt: string;
|
|
217
|
+
tags?: string[] | undefined;
|
|
192
218
|
}>]>;
|
|
193
219
|
export type PreviewTemplate = z.infer<typeof PreviewTemplateSchema>;
|
|
@@ -13,6 +13,7 @@ const blog_1 = require("./blog");
|
|
|
13
13
|
const bookmark_1 = require("./bookmark");
|
|
14
14
|
const project_1 = require("./project");
|
|
15
15
|
const app_1 = require("./app");
|
|
16
|
+
const docs_1 = require("./docs");
|
|
16
17
|
exports.PreviewTemplateSchema = zod_1.default.union([
|
|
17
18
|
app_1.AppPreviewTemplateSchema,
|
|
18
19
|
nft_1.NftPreviewTemplateSchema,
|
|
@@ -22,4 +23,5 @@ exports.PreviewTemplateSchema = zod_1.default.union([
|
|
|
22
23
|
blog_1.BlogPreviewTemplateSchema,
|
|
23
24
|
bookmark_1.BookmarkPreviewTemplateSchema,
|
|
24
25
|
project_1.ProjectPreviewTemplateSchema,
|
|
26
|
+
docs_1.DocPreviewTemplateSchema,
|
|
25
27
|
]);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const DocPreviewTemplateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
4
|
+
did: z.ZodEffects<z.ZodString, string, string>;
|
|
5
|
+
}, {
|
|
6
|
+
template: z.ZodLiteral<"doc">;
|
|
7
|
+
title: z.ZodString;
|
|
8
|
+
image: z.ZodString;
|
|
9
|
+
tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
10
|
+
url: z.ZodString;
|
|
11
|
+
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
12
|
+
}>, "strip", z.ZodTypeAny, {
|
|
13
|
+
template: "doc";
|
|
14
|
+
did: string;
|
|
15
|
+
title: string;
|
|
16
|
+
image: string;
|
|
17
|
+
tags: string[];
|
|
18
|
+
url: string;
|
|
19
|
+
createdAt: string;
|
|
20
|
+
}, {
|
|
21
|
+
template: "doc";
|
|
22
|
+
did: string;
|
|
23
|
+
title: string;
|
|
24
|
+
image: string;
|
|
25
|
+
url: string;
|
|
26
|
+
createdAt: string;
|
|
27
|
+
tags?: string[] | undefined;
|
|
28
|
+
}>;
|
|
29
|
+
export type DocPreviewTemplate = z.TypeOf<typeof DocPreviewTemplateSchema>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DocPreviewTemplateSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const base_1 = require("./base");
|
|
6
|
+
exports.DocPreviewTemplateSchema = base_1.BasePreviewTemplateSchema.extend({
|
|
7
|
+
template: zod_1.z.literal('doc'),
|
|
8
|
+
// 标题
|
|
9
|
+
title: base_1.TitleSchema,
|
|
10
|
+
// 封面
|
|
11
|
+
image: base_1.UrlSchema,
|
|
12
|
+
// 标签
|
|
13
|
+
tags: base_1.TagsSchema,
|
|
14
|
+
// 链接,必须是应用本身的链接 @TODO: 需要验证
|
|
15
|
+
url: base_1.UrlSchema,
|
|
16
|
+
// 创建时间
|
|
17
|
+
createdAt: base_1.DateSchema,
|
|
18
|
+
});
|
|
@@ -3,8 +3,9 @@ export * from './base';
|
|
|
3
3
|
export * from './blog';
|
|
4
4
|
export * from './bookmark';
|
|
5
5
|
export * from './default';
|
|
6
|
-
export * from './
|
|
6
|
+
export * from './docs';
|
|
7
7
|
export * from './nft';
|
|
8
8
|
export * from './passport';
|
|
9
|
+
export * from './post';
|
|
9
10
|
export * from './profile';
|
|
10
11
|
export * from './project';
|
|
@@ -19,8 +19,9 @@ __exportStar(require("./base"), exports);
|
|
|
19
19
|
__exportStar(require("./blog"), exports);
|
|
20
20
|
__exportStar(require("./bookmark"), exports);
|
|
21
21
|
__exportStar(require("./default"), exports);
|
|
22
|
-
__exportStar(require("./
|
|
22
|
+
__exportStar(require("./docs"), exports);
|
|
23
23
|
__exportStar(require("./nft"), exports);
|
|
24
24
|
__exportStar(require("./passport"), exports);
|
|
25
|
+
__exportStar(require("./post"), exports);
|
|
25
26
|
__exportStar(require("./profile"), exports);
|
|
26
27
|
__exportStar(require("./project"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
2
|
export declare const NftPreviewTemplateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
3
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
4
4
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
5
5
|
}, {
|
|
6
6
|
template: z.ZodLiteral<"nft">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
2
|
export declare const PassportPreviewTemplateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
3
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
4
4
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
5
5
|
}, {
|
|
6
6
|
template: z.ZodLiteral<"passport">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const PostPreviewTemplateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
3
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
4
4
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
5
5
|
}, {
|
|
6
6
|
template: z.ZodLiteral<"post">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const ProfilePreviewTemplateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
3
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
4
4
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
5
5
|
}, {
|
|
6
6
|
template: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"profile">>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const ProjectPreviewTemplateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
3
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
4
4
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
5
5
|
}, {
|
|
6
6
|
template: z.ZodLiteral<"project">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const AppPreviewTemplateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
3
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
4
4
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
5
5
|
}, {
|
|
6
6
|
template: z.ZodLiteral<"app">;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const DidSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
3
3
|
export declare const DateSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
4
|
-
export declare const TemplateTypeSchema: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
4
|
+
export declare const TemplateTypeSchema: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
5
5
|
export declare const BasePreviewTemplateSchema: z.ZodObject<{
|
|
6
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
6
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
7
7
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
template: "app" | "nft" | "profile" | "passport" | "post" | "blog" | "bookmark" | "project";
|
|
9
|
+
template: "app" | "nft" | "profile" | "passport" | "post" | "blog" | "bookmark" | "project" | "doc";
|
|
10
10
|
did: string;
|
|
11
11
|
}, {
|
|
12
|
-
template: "app" | "nft" | "profile" | "passport" | "post" | "blog" | "bookmark" | "project";
|
|
12
|
+
template: "app" | "nft" | "profile" | "passport" | "post" | "blog" | "bookmark" | "project" | "doc";
|
|
13
13
|
did: string;
|
|
14
14
|
}>;
|
|
15
15
|
export declare const TagSchema: z.ZodString;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const BlogPreviewTemplateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
3
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
4
4
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
5
5
|
}, {
|
|
6
6
|
template: z.ZodLiteral<"blog">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const BookmarkPreviewTemplateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
3
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
4
4
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
5
5
|
}, {
|
|
6
6
|
template: z.ZodLiteral<"bookmark">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
2
|
export declare const PreviewTemplateSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
3
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
4
4
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
5
5
|
}, {
|
|
6
6
|
template: z.ZodLiteral<"app">;
|
|
@@ -17,7 +17,7 @@ export declare const PreviewTemplateSchema: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
17
17
|
name: string;
|
|
18
18
|
logo: string;
|
|
19
19
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
20
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
20
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
21
21
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
22
22
|
}, {
|
|
23
23
|
template: z.ZodLiteral<"nft">;
|
|
@@ -37,7 +37,7 @@ export declare const PreviewTemplateSchema: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
37
37
|
image: string;
|
|
38
38
|
chainHost: string;
|
|
39
39
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
40
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
40
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
41
41
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
42
42
|
}, {
|
|
43
43
|
template: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"profile">>>;
|
|
@@ -57,7 +57,7 @@ export declare const PreviewTemplateSchema: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
57
57
|
email: string;
|
|
58
58
|
template?: "profile" | undefined;
|
|
59
59
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
60
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
60
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
61
61
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
62
62
|
}, {
|
|
63
63
|
template: z.ZodLiteral<"passport">;
|
|
@@ -89,7 +89,7 @@ export declare const PreviewTemplateSchema: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
89
89
|
issuedTo: string;
|
|
90
90
|
verified: boolean;
|
|
91
91
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
92
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
92
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
93
93
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
94
94
|
}, {
|
|
95
95
|
template: z.ZodLiteral<"post">;
|
|
@@ -112,7 +112,7 @@ export declare const PreviewTemplateSchema: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
112
112
|
createdAt: string;
|
|
113
113
|
tags?: string[] | undefined;
|
|
114
114
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
115
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
115
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
116
116
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
117
117
|
}, {
|
|
118
118
|
template: z.ZodLiteral<"blog">;
|
|
@@ -138,7 +138,7 @@ export declare const PreviewTemplateSchema: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
138
138
|
createdAt: string;
|
|
139
139
|
tags?: string[] | undefined;
|
|
140
140
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
141
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
141
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
142
142
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
143
143
|
}, {
|
|
144
144
|
template: z.ZodLiteral<"bookmark">;
|
|
@@ -164,7 +164,7 @@ export declare const PreviewTemplateSchema: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
164
164
|
createdAt: string;
|
|
165
165
|
tags?: string[] | undefined;
|
|
166
166
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
167
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
167
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
168
168
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
169
169
|
}, {
|
|
170
170
|
template: z.ZodLiteral<"project">;
|
|
@@ -189,5 +189,31 @@ export declare const PreviewTemplateSchema: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
189
189
|
url: string;
|
|
190
190
|
createdAt: string;
|
|
191
191
|
description?: string | undefined;
|
|
192
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
193
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
194
|
+
did: z.ZodEffects<z.ZodString, string, string>;
|
|
195
|
+
}, {
|
|
196
|
+
template: z.ZodLiteral<"doc">;
|
|
197
|
+
title: z.ZodString;
|
|
198
|
+
image: z.ZodString;
|
|
199
|
+
tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
200
|
+
url: z.ZodString;
|
|
201
|
+
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
202
|
+
}>, "strip", z.ZodTypeAny, {
|
|
203
|
+
template: "doc";
|
|
204
|
+
did: string;
|
|
205
|
+
title: string;
|
|
206
|
+
image: string;
|
|
207
|
+
tags: string[];
|
|
208
|
+
url: string;
|
|
209
|
+
createdAt: string;
|
|
210
|
+
}, {
|
|
211
|
+
template: "doc";
|
|
212
|
+
did: string;
|
|
213
|
+
title: string;
|
|
214
|
+
image: string;
|
|
215
|
+
url: string;
|
|
216
|
+
createdAt: string;
|
|
217
|
+
tags?: string[] | undefined;
|
|
192
218
|
}>]>;
|
|
193
219
|
export type PreviewTemplate = z.infer<typeof PreviewTemplateSchema>;
|
|
@@ -7,6 +7,7 @@ import { BlogPreviewTemplateSchema } from './blog';
|
|
|
7
7
|
import { BookmarkPreviewTemplateSchema } from './bookmark';
|
|
8
8
|
import { ProjectPreviewTemplateSchema } from './project';
|
|
9
9
|
import { AppPreviewTemplateSchema } from './app';
|
|
10
|
+
import { DocPreviewTemplateSchema } from './docs';
|
|
10
11
|
export const PreviewTemplateSchema = z.union([
|
|
11
12
|
AppPreviewTemplateSchema,
|
|
12
13
|
NftPreviewTemplateSchema,
|
|
@@ -16,4 +17,5 @@ export const PreviewTemplateSchema = z.union([
|
|
|
16
17
|
BlogPreviewTemplateSchema,
|
|
17
18
|
BookmarkPreviewTemplateSchema,
|
|
18
19
|
ProjectPreviewTemplateSchema,
|
|
20
|
+
DocPreviewTemplateSchema,
|
|
19
21
|
]);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const DocPreviewTemplateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
4
|
+
did: z.ZodEffects<z.ZodString, string, string>;
|
|
5
|
+
}, {
|
|
6
|
+
template: z.ZodLiteral<"doc">;
|
|
7
|
+
title: z.ZodString;
|
|
8
|
+
image: z.ZodString;
|
|
9
|
+
tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
10
|
+
url: z.ZodString;
|
|
11
|
+
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
12
|
+
}>, "strip", z.ZodTypeAny, {
|
|
13
|
+
template: "doc";
|
|
14
|
+
did: string;
|
|
15
|
+
title: string;
|
|
16
|
+
image: string;
|
|
17
|
+
tags: string[];
|
|
18
|
+
url: string;
|
|
19
|
+
createdAt: string;
|
|
20
|
+
}, {
|
|
21
|
+
template: "doc";
|
|
22
|
+
did: string;
|
|
23
|
+
title: string;
|
|
24
|
+
image: string;
|
|
25
|
+
url: string;
|
|
26
|
+
createdAt: string;
|
|
27
|
+
tags?: string[] | undefined;
|
|
28
|
+
}>;
|
|
29
|
+
export type DocPreviewTemplate = z.TypeOf<typeof DocPreviewTemplateSchema>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { BasePreviewTemplateSchema, DateSchema, TagsSchema, TitleSchema, UrlSchema } from './base';
|
|
3
|
+
export const DocPreviewTemplateSchema = BasePreviewTemplateSchema.extend({
|
|
4
|
+
template: z.literal('doc'),
|
|
5
|
+
// 标题
|
|
6
|
+
title: TitleSchema,
|
|
7
|
+
// 封面
|
|
8
|
+
image: UrlSchema,
|
|
9
|
+
// 标签
|
|
10
|
+
tags: TagsSchema,
|
|
11
|
+
// 链接,必须是应用本身的链接 @TODO: 需要验证
|
|
12
|
+
url: UrlSchema,
|
|
13
|
+
// 创建时间
|
|
14
|
+
createdAt: DateSchema,
|
|
15
|
+
});
|
|
@@ -3,8 +3,9 @@ export * from './base';
|
|
|
3
3
|
export * from './blog';
|
|
4
4
|
export * from './bookmark';
|
|
5
5
|
export * from './default';
|
|
6
|
-
export * from './
|
|
6
|
+
export * from './docs';
|
|
7
7
|
export * from './nft';
|
|
8
8
|
export * from './passport';
|
|
9
|
+
export * from './post';
|
|
9
10
|
export * from './profile';
|
|
10
11
|
export * from './project';
|
|
@@ -3,8 +3,9 @@ export * from './base';
|
|
|
3
3
|
export * from './blog';
|
|
4
4
|
export * from './bookmark';
|
|
5
5
|
export * from './default';
|
|
6
|
-
export * from './
|
|
6
|
+
export * from './docs';
|
|
7
7
|
export * from './nft';
|
|
8
8
|
export * from './passport';
|
|
9
|
+
export * from './post';
|
|
9
10
|
export * from './profile';
|
|
10
11
|
export * from './project';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
2
|
export declare const NftPreviewTemplateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
3
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
4
4
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
5
5
|
}, {
|
|
6
6
|
template: z.ZodLiteral<"nft">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
2
|
export declare const PassportPreviewTemplateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
3
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
4
4
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
5
5
|
}, {
|
|
6
6
|
template: z.ZodLiteral<"passport">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const PostPreviewTemplateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
3
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
4
4
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
5
5
|
}, {
|
|
6
6
|
template: z.ZodLiteral<"post">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const ProfilePreviewTemplateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
3
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
4
4
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
5
5
|
}, {
|
|
6
6
|
template: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"profile">>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const ProjectPreviewTemplateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
-
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">]>;
|
|
3
|
+
template: z.ZodUnion<[z.ZodLiteral<"nft">, z.ZodLiteral<"profile">, z.ZodLiteral<"passport">, z.ZodLiteral<"post">, z.ZodLiteral<"blog">, z.ZodLiteral<"bookmark">, z.ZodLiteral<"project">, z.ZodLiteral<"app">, z.ZodLiteral<"doc">]>;
|
|
4
4
|
did: z.ZodEffects<z.ZodString, string, string>;
|
|
5
5
|
}, {
|
|
6
6
|
template: z.ZodLiteral<"project">;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@did-space/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.47",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -115,9 +115,9 @@
|
|
|
115
115
|
"watch": "npm run build -- -w"
|
|
116
116
|
},
|
|
117
117
|
"dependencies": {
|
|
118
|
-
"@arcblock/did": "^1.19.
|
|
118
|
+
"@arcblock/did": "^1.19.20",
|
|
119
119
|
"@arcblock/ipfs-only-hash": "^0.0.2",
|
|
120
|
-
"@arcblock/validator": "^1.19.
|
|
120
|
+
"@arcblock/validator": "^1.19.20",
|
|
121
121
|
"dayjs": "^1.11.13",
|
|
122
122
|
"debug": "^4.4.0",
|
|
123
123
|
"destroy": "^1.2.0",
|
|
@@ -148,5 +148,5 @@
|
|
|
148
148
|
"vite": "^5.4.18",
|
|
149
149
|
"vitest": "^3.1.1"
|
|
150
150
|
},
|
|
151
|
-
"gitHead": "
|
|
151
|
+
"gitHead": "8e5a637e9dd1ed906a7999056313857d0ca07ed2"
|
|
152
152
|
}
|