@blocklet/did-space-js 1.0.48 → 1.0.51
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.
|
@@ -28,8 +28,7 @@ const libs_1 = require("../../libs");
|
|
|
28
28
|
const post_objects_sync_command_1 = require("../audit-log/post-objects-sync-command");
|
|
29
29
|
const put_objects_sync_command_1 = require("../audit-log/put-objects-sync-command");
|
|
30
30
|
const { name, version } = require('../../../package.json');
|
|
31
|
-
|
|
32
|
-
debug = console.error;
|
|
31
|
+
const debug = (0, debug_1.default)(`${name}@${version}:sync-folder-push`);
|
|
33
32
|
/**
|
|
34
33
|
* @see s3 sync https://stackoverflow.com/questions/27932345/downloading-folders-from-aws-s3-cp-or-sync
|
|
35
34
|
* @see 具有 Keep-alive 和连接重用的 NodeJS https://azureossd.github.io/2022/03/10/NodeJS-with-Keep-Alives-and-Connection-Reuse/index.html
|
|
@@ -9,14 +9,13 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
|
|
|
9
9
|
/**
|
|
10
10
|
* @description 预览模板的数据
|
|
11
11
|
*/
|
|
12
|
-
data: z.ZodUnion<[z.ZodObject<
|
|
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
|
-
}
|
|
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<
|
|
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
|
-
}
|
|
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<
|
|
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
|
-
}
|
|
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<
|
|
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
|
-
}
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
82
80
|
type: string[];
|
|
83
81
|
template: "passport";
|
|
84
82
|
did: string;
|
|
@@ -98,92 +96,88 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
|
|
|
98
96
|
issuedAt: string;
|
|
99
97
|
issuedTo: string;
|
|
100
98
|
verified: boolean;
|
|
101
|
-
}>, z.ZodObject<
|
|
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
|
-
title: z.ZodString
|
|
103
|
+
title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
|
|
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
|
-
}
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
111
108
|
template: "post";
|
|
112
109
|
did: string;
|
|
113
|
-
title: string;
|
|
114
110
|
tags: string[];
|
|
115
111
|
url: string;
|
|
116
112
|
createdAt: string;
|
|
113
|
+
title?: string | undefined;
|
|
117
114
|
}, {
|
|
118
115
|
template: "post";
|
|
119
116
|
did: string;
|
|
120
|
-
title: string;
|
|
121
117
|
url: string;
|
|
122
118
|
createdAt: string;
|
|
119
|
+
title?: string | undefined;
|
|
123
120
|
tags?: string[] | undefined;
|
|
124
|
-
}>, z.ZodObject<
|
|
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
|
-
title: z.ZodString
|
|
125
|
+
title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
|
|
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
|
-
}
|
|
130
|
+
}, "strip", z.ZodTypeAny, {
|
|
135
131
|
template: "blog";
|
|
136
132
|
did: string;
|
|
137
|
-
title: string;
|
|
138
133
|
image: string;
|
|
139
134
|
tags: string[];
|
|
140
135
|
url: string;
|
|
141
136
|
createdAt: string;
|
|
137
|
+
title?: string | undefined;
|
|
142
138
|
}, {
|
|
143
139
|
template: "blog";
|
|
144
140
|
did: string;
|
|
145
|
-
title: string;
|
|
146
141
|
image: string;
|
|
147
142
|
url: string;
|
|
148
143
|
createdAt: string;
|
|
144
|
+
title?: string | undefined;
|
|
149
145
|
tags?: string[] | undefined;
|
|
150
|
-
}>, z.ZodObject<
|
|
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
|
-
title: z.ZodString
|
|
150
|
+
title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
|
|
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
|
-
}
|
|
155
|
+
}, "strip", z.ZodTypeAny, {
|
|
161
156
|
template: "bookmark";
|
|
162
157
|
did: string;
|
|
163
|
-
title: string;
|
|
164
158
|
image: string;
|
|
165
159
|
tags: string[];
|
|
166
160
|
url: string;
|
|
167
161
|
createdAt: string;
|
|
162
|
+
title?: string | undefined;
|
|
168
163
|
}, {
|
|
169
164
|
template: "bookmark";
|
|
170
165
|
did: string;
|
|
171
|
-
title: string;
|
|
172
166
|
image: string;
|
|
173
167
|
url: string;
|
|
174
168
|
createdAt: string;
|
|
169
|
+
title?: string | undefined;
|
|
175
170
|
tags?: string[] | undefined;
|
|
176
|
-
}>, z.ZodObject<
|
|
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
|
-
}
|
|
180
|
+
}, "strip", z.ZodTypeAny, {
|
|
187
181
|
template: "project";
|
|
188
182
|
did: string;
|
|
189
183
|
name: string;
|
|
@@ -199,31 +193,30 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
|
|
|
199
193
|
url: string;
|
|
200
194
|
createdAt: string;
|
|
201
195
|
description?: string | undefined;
|
|
202
|
-
}>, z.ZodObject<
|
|
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
|
-
title: z.ZodString
|
|
200
|
+
title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
|
|
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
|
-
}
|
|
205
|
+
}, "strip", z.ZodTypeAny, {
|
|
213
206
|
template: "doc";
|
|
214
207
|
did: string;
|
|
215
|
-
title: string;
|
|
216
208
|
image: string;
|
|
217
209
|
tags: string[];
|
|
218
210
|
url: string;
|
|
219
211
|
createdAt: string;
|
|
212
|
+
title?: string | undefined;
|
|
220
213
|
}, {
|
|
221
214
|
template: "doc";
|
|
222
215
|
did: string;
|
|
223
|
-
title: string;
|
|
224
216
|
image: string;
|
|
225
217
|
url: string;
|
|
226
218
|
createdAt: string;
|
|
219
|
+
title?: string | undefined;
|
|
227
220
|
tags?: string[] | undefined;
|
|
228
221
|
}>]>;
|
|
229
222
|
/**
|
|
@@ -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
|
} | {
|
|
@@ -284,26 +279,26 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
|
|
|
284
279
|
} | {
|
|
285
280
|
template: "post";
|
|
286
281
|
did: string;
|
|
287
|
-
title: string;
|
|
288
282
|
tags: string[];
|
|
289
283
|
url: string;
|
|
290
284
|
createdAt: string;
|
|
285
|
+
title?: string | undefined;
|
|
291
286
|
} | {
|
|
292
287
|
template: "blog";
|
|
293
288
|
did: string;
|
|
294
|
-
title: string;
|
|
295
289
|
image: string;
|
|
296
290
|
tags: string[];
|
|
297
291
|
url: string;
|
|
298
292
|
createdAt: string;
|
|
293
|
+
title?: string | undefined;
|
|
299
294
|
} | {
|
|
300
295
|
template: "bookmark";
|
|
301
296
|
did: string;
|
|
302
|
-
title: string;
|
|
303
297
|
image: string;
|
|
304
298
|
tags: string[];
|
|
305
299
|
url: string;
|
|
306
300
|
createdAt: string;
|
|
301
|
+
title?: string | undefined;
|
|
307
302
|
} | {
|
|
308
303
|
template: "project";
|
|
309
304
|
did: string;
|
|
@@ -315,11 +310,11 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
|
|
|
315
310
|
} | {
|
|
316
311
|
template: "doc";
|
|
317
312
|
did: string;
|
|
318
|
-
title: string;
|
|
319
313
|
image: string;
|
|
320
314
|
tags: string[];
|
|
321
315
|
url: string;
|
|
322
316
|
createdAt: string;
|
|
317
|
+
title?: string | undefined;
|
|
323
318
|
};
|
|
324
319
|
metadata: Record<string, any>;
|
|
325
320
|
key: string;
|
|
@@ -361,25 +356,25 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
|
|
|
361
356
|
} | {
|
|
362
357
|
template: "post";
|
|
363
358
|
did: string;
|
|
364
|
-
title: string;
|
|
365
359
|
url: string;
|
|
366
360
|
createdAt: string;
|
|
361
|
+
title?: string | undefined;
|
|
367
362
|
tags?: string[] | undefined;
|
|
368
363
|
} | {
|
|
369
364
|
template: "blog";
|
|
370
365
|
did: string;
|
|
371
|
-
title: string;
|
|
372
366
|
image: string;
|
|
373
367
|
url: string;
|
|
374
368
|
createdAt: string;
|
|
369
|
+
title?: string | undefined;
|
|
375
370
|
tags?: string[] | undefined;
|
|
376
371
|
} | {
|
|
377
372
|
template: "bookmark";
|
|
378
373
|
did: string;
|
|
379
|
-
title: string;
|
|
380
374
|
image: string;
|
|
381
375
|
url: string;
|
|
382
376
|
createdAt: string;
|
|
377
|
+
title?: string | undefined;
|
|
383
378
|
tags?: string[] | undefined;
|
|
384
379
|
} | {
|
|
385
380
|
template: "project";
|
|
@@ -392,10 +387,10 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
|
|
|
392
387
|
} | {
|
|
393
388
|
template: "doc";
|
|
394
389
|
did: string;
|
|
395
|
-
title: string;
|
|
396
390
|
image: string;
|
|
397
391
|
url: string;
|
|
398
392
|
createdAt: string;
|
|
393
|
+
title?: string | undefined;
|
|
399
394
|
tags?: string[] | undefined;
|
|
400
395
|
};
|
|
401
396
|
key: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/did-space-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.51",
|
|
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.20.
|
|
33
|
-
"@arcblock/jwt": "^1.20.
|
|
34
|
-
"@arcblock/validator": "^1.20.
|
|
32
|
+
"@arcblock/did": "^1.20.6",
|
|
33
|
+
"@arcblock/jwt": "^1.20.6",
|
|
34
|
+
"@arcblock/validator": "^1.20.6",
|
|
35
35
|
"@blocklet/env": "^1.16.42",
|
|
36
|
-
"@did-space/core": "^1.0.
|
|
37
|
-
"@ocap/mcrypto": "^1.20.
|
|
38
|
-
"@ocap/util": "^1.20.
|
|
39
|
-
"@ocap/wallet": "^1.20.
|
|
36
|
+
"@did-space/core": "^1.0.51",
|
|
37
|
+
"@ocap/mcrypto": "^1.20.6",
|
|
38
|
+
"@ocap/util": "^1.20.6",
|
|
39
|
+
"@ocap/wallet": "^1.20.6",
|
|
40
40
|
"agentkeepalive": "^4.6.0",
|
|
41
|
-
"axios": "^1.
|
|
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.
|
|
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.
|
|
61
|
+
"zod": "^3.24.4"
|
|
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": "
|
|
80
|
+
"gitHead": "c75ad031a81d00ddc1d93bedb8a459ec5e46cbb1"
|
|
81
81
|
}
|