@blocklet/did-space-js 1.0.47 → 1.0.49

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.
@@ -9,14 +9,13 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
9
9
  /**
10
10
  * @description 预览模板的数据
11
11
  */
12
- data: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
13
- 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">]>;
12
+ data: z.ZodUnion<[z.ZodObject<{
14
13
  did: z.ZodEffects<z.ZodString, string, string>;
15
- }, {
14
+ } & {
16
15
  template: z.ZodLiteral<"app">;
17
16
  name: z.ZodString;
18
17
  logo: z.ZodString;
19
- }>, "strip", z.ZodTypeAny, {
18
+ }, "strip", z.ZodTypeAny, {
20
19
  template: "app";
21
20
  did: string;
22
21
  name: string;
@@ -26,18 +25,19 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
26
25
  did: string;
27
26
  name: string;
28
27
  logo: string;
29
- }>, z.ZodObject<z.objectUtil.extendShape<{
30
- 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">]>;
28
+ }>, z.ZodObject<{
31
29
  did: z.ZodEffects<z.ZodString, string, string>;
32
- }, {
30
+ } & {
33
31
  template: z.ZodLiteral<"nft">;
34
32
  name: z.ZodString;
35
33
  image: z.ZodString;
36
34
  chainHost: z.ZodString;
37
- }>, "strip", z.ZodTypeAny, {
35
+ }, "strip", z.ZodTypeAny, {
38
36
  template: "nft";
39
37
  did: string;
40
- name: string;
38
+ name: string; /**
39
+ * @description 资源列表
40
+ */
41
41
  image: string;
42
42
  chainHost: string;
43
43
  }, {
@@ -46,15 +46,14 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
46
46
  name: string;
47
47
  image: string;
48
48
  chainHost: string;
49
- }>, z.ZodObject<z.objectUtil.extendShape<{
50
- 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">]>;
49
+ }>, z.ZodObject<{
51
50
  did: z.ZodEffects<z.ZodString, string, string>;
52
- }, {
51
+ } & {
53
52
  template: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"profile">>>;
54
53
  avatar: z.ZodString;
55
54
  fullname: z.ZodString;
56
55
  email: z.ZodString;
57
- }>, "strip", z.ZodTypeAny, {
56
+ }, "strip", z.ZodTypeAny, {
58
57
  template: "profile";
59
58
  did: string;
60
59
  avatar: string;
@@ -66,10 +65,9 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
66
65
  fullname: string;
67
66
  email: string;
68
67
  template?: "profile" | undefined;
69
- }>, z.ZodObject<z.objectUtil.extendShape<{
70
- 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">]>;
68
+ }>, z.ZodObject<{
71
69
  did: z.ZodEffects<z.ZodString, string, string>;
72
- }, {
70
+ } & {
73
71
  template: z.ZodLiteral<"passport">;
74
72
  image: z.ZodString;
75
73
  type: z.ZodArray<z.ZodString, "many">;
@@ -78,7 +76,7 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
78
76
  issuedAt: z.ZodString;
79
77
  issuedTo: z.ZodString;
80
78
  verified: z.ZodBoolean;
81
- }>, "strip", z.ZodTypeAny, {
79
+ }, "strip", z.ZodTypeAny, {
82
80
  type: string[];
83
81
  template: "passport";
84
82
  did: string;
@@ -98,16 +96,15 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
98
96
  issuedAt: string;
99
97
  issuedTo: string;
100
98
  verified: boolean;
101
- }>, z.ZodObject<z.objectUtil.extendShape<{
102
- 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">]>;
99
+ }>, z.ZodObject<{
103
100
  did: z.ZodEffects<z.ZodString, string, string>;
104
- }, {
101
+ } & {
105
102
  template: z.ZodLiteral<"post">;
106
103
  title: z.ZodString;
107
104
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
108
105
  url: z.ZodString;
109
106
  createdAt: z.ZodEffects<z.ZodString, string, string>;
110
- }>, "strip", z.ZodTypeAny, {
107
+ }, "strip", z.ZodTypeAny, {
111
108
  template: "post";
112
109
  did: string;
113
110
  title: string;
@@ -121,17 +118,16 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
121
118
  url: string;
122
119
  createdAt: string;
123
120
  tags?: string[] | undefined;
124
- }>, z.ZodObject<z.objectUtil.extendShape<{
125
- 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">]>;
121
+ }>, z.ZodObject<{
126
122
  did: z.ZodEffects<z.ZodString, string, string>;
127
- }, {
123
+ } & {
128
124
  template: z.ZodLiteral<"blog">;
129
125
  title: z.ZodString;
130
126
  image: z.ZodString;
131
127
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
132
128
  url: z.ZodString;
133
129
  createdAt: z.ZodEffects<z.ZodString, string, string>;
134
- }>, "strip", z.ZodTypeAny, {
130
+ }, "strip", z.ZodTypeAny, {
135
131
  template: "blog";
136
132
  did: string;
137
133
  title: string;
@@ -147,17 +143,16 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
147
143
  url: string;
148
144
  createdAt: string;
149
145
  tags?: string[] | undefined;
150
- }>, z.ZodObject<z.objectUtil.extendShape<{
151
- 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">]>;
146
+ }>, z.ZodObject<{
152
147
  did: z.ZodEffects<z.ZodString, string, string>;
153
- }, {
148
+ } & {
154
149
  template: z.ZodLiteral<"bookmark">;
155
150
  title: z.ZodString;
156
151
  image: z.ZodString;
157
152
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
158
153
  url: z.ZodString;
159
154
  createdAt: z.ZodEffects<z.ZodString, string, string>;
160
- }>, "strip", z.ZodTypeAny, {
155
+ }, "strip", z.ZodTypeAny, {
161
156
  template: "bookmark";
162
157
  did: string;
163
158
  title: string;
@@ -173,17 +168,16 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
173
168
  url: string;
174
169
  createdAt: string;
175
170
  tags?: string[] | undefined;
176
- }>, z.ZodObject<z.objectUtil.extendShape<{
177
- 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">]>;
171
+ }>, z.ZodObject<{
178
172
  did: z.ZodEffects<z.ZodString, string, string>;
179
- }, {
173
+ } & {
180
174
  template: z.ZodLiteral<"project">;
181
175
  name: z.ZodString;
182
176
  description: z.ZodOptional<z.ZodString>;
183
177
  image: z.ZodString;
184
178
  url: z.ZodString;
185
179
  createdAt: z.ZodEffects<z.ZodString, string, string>;
186
- }>, "strip", z.ZodTypeAny, {
180
+ }, "strip", z.ZodTypeAny, {
187
181
  template: "project";
188
182
  did: string;
189
183
  name: string;
@@ -199,17 +193,16 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
199
193
  url: string;
200
194
  createdAt: string;
201
195
  description?: string | undefined;
202
- }>, z.ZodObject<z.objectUtil.extendShape<{
203
- 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">]>;
196
+ }>, z.ZodObject<{
204
197
  did: z.ZodEffects<z.ZodString, string, string>;
205
- }, {
198
+ } & {
206
199
  template: z.ZodLiteral<"doc">;
207
200
  title: z.ZodString;
208
201
  image: z.ZodString;
209
202
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
210
203
  url: z.ZodString;
211
204
  createdAt: z.ZodEffects<z.ZodString, string, string>;
212
- }>, "strip", z.ZodTypeAny, {
205
+ }, "strip", z.ZodTypeAny, {
213
206
  template: "doc";
214
207
  did: string;
215
208
  title: string;
@@ -262,7 +255,9 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
262
255
  } | {
263
256
  template: "nft";
264
257
  did: string;
265
- name: string;
258
+ name: string; /**
259
+ * @description 资源列表
260
+ */
266
261
  image: string;
267
262
  chainHost: string;
268
263
  } | {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/did-space-js",
3
- "version": "1.0.47",
3
+ "version": "1.0.49",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -29,16 +29,16 @@
29
29
  "link": "yarn link"
30
30
  },
31
31
  "dependencies": {
32
- "@arcblock/did": "^1.19.20",
33
- "@arcblock/jwt": "^1.19.20",
34
- "@arcblock/validator": "^1.19.20",
35
- "@blocklet/env": "^1.16.42-beta-20250413-121549-22e9a196",
36
- "@did-space/core": "^1.0.47",
37
- "@ocap/mcrypto": "^1.19.20",
38
- "@ocap/util": "^1.19.20",
39
- "@ocap/wallet": "^1.19.20",
32
+ "@arcblock/did": "^1.20.4",
33
+ "@arcblock/jwt": "^1.20.4",
34
+ "@arcblock/validator": "^1.20.4",
35
+ "@blocklet/env": "^1.16.42",
36
+ "@did-space/core": "^1.0.49",
37
+ "@ocap/mcrypto": "^1.20.4",
38
+ "@ocap/util": "^1.20.4",
39
+ "@ocap/wallet": "^1.20.4",
40
40
  "agentkeepalive": "^4.6.0",
41
- "axios": "^1.8.4",
41
+ "axios": "^1.9.0",
42
42
  "base64-url": "^2.3.3",
43
43
  "dayjs": "^1.11.13",
44
44
  "debug": "^4.4.0",
@@ -50,7 +50,7 @@
50
50
  "is-url": "^1.2.4",
51
51
  "joi": "^17.13.3",
52
52
  "js-yaml": "^4.1.0",
53
- "json-stable-stringify": "^1.2.1",
53
+ "json-stable-stringify": "^1.3.0",
54
54
  "lodash": "^4.17.21",
55
55
  "mime-types": "^2.1.35",
56
56
  "nanoid": "^3.3.11",
@@ -58,7 +58,7 @@
58
58
  "p-queue": "6.6.2",
59
59
  "ufo": "^1.6.1",
60
60
  "xbytes": "^1.9.1",
61
- "zod": "^3.24.2"
61
+ "zod": "^3.24.3"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@arcblock/eslint-config-ts": "^0.3.3",
@@ -77,5 +77,5 @@
77
77
  "ts-jest": "^28.0.8",
78
78
  "typescript": "^4.9.5"
79
79
  },
80
- "gitHead": "8e5a637e9dd1ed906a7999056313857d0ca07ed2"
80
+ "gitHead": "7ca23ad7266d76c9cea2df49787f1964ad78b06b"
81
81
  }