@seed-hypermedia/client 0.0.39 → 0.0.40
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/{chunk-PY2VJAIE.mjs → chunk-2E3HWHST.mjs} +26 -0
- package/dist/hm-types.d.ts +7306 -2159
- package/dist/hm-types.mjs +9 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -732,6 +732,9 @@ var HMQueryRequestSchema = z.object({
|
|
|
732
732
|
input: HMQuerySchema,
|
|
733
733
|
output: HMQueryResultSchema.nullable()
|
|
734
734
|
});
|
|
735
|
+
var HMQueryBlockInputSchema = z.object({
|
|
736
|
+
query: HMQuerySchema
|
|
737
|
+
});
|
|
735
738
|
var HMListCommentsInputSchema = z.object({
|
|
736
739
|
targetId: unpackedHmIdSchema
|
|
737
740
|
});
|
|
@@ -921,6 +924,23 @@ var HMInteractionSummaryRequestSchema = z.object({
|
|
|
921
924
|
input: HMInteractionSummaryInputSchema,
|
|
922
925
|
output: HMInteractionSummaryOutputSchema
|
|
923
926
|
});
|
|
927
|
+
var HMQueryBlockItemSummarySchema = z.object({
|
|
928
|
+
comments: z.number(),
|
|
929
|
+
authorUids: z.array(z.string()).default([])
|
|
930
|
+
});
|
|
931
|
+
var HMQueryBlockPayloadSchema = z.object({
|
|
932
|
+
queryTargetName: z.string(),
|
|
933
|
+
in: unpackedHmIdSchema,
|
|
934
|
+
results: z.array(HMDocumentInfoSchema),
|
|
935
|
+
mode: z.union([z.literal("Children"), z.literal("AllDescendants")]).optional(),
|
|
936
|
+
interactionSummaries: z.record(z.string(), HMQueryBlockItemSummarySchema),
|
|
937
|
+
accountsMetadata: HMAccountsMetadataSchema
|
|
938
|
+
});
|
|
939
|
+
var HMQueryBlockRequestSchema = z.object({
|
|
940
|
+
key: z.literal("QueryBlock"),
|
|
941
|
+
input: HMQueryBlockInputSchema,
|
|
942
|
+
output: HMQueryBlockPayloadSchema.nullable()
|
|
943
|
+
});
|
|
924
944
|
var HMPublishBlobsOutputSchema = z.object({
|
|
925
945
|
cids: z.array(z.string())
|
|
926
946
|
});
|
|
@@ -1042,6 +1062,7 @@ var HMGetRequestSchema = z.discriminatedUnion("key", [
|
|
|
1042
1062
|
HMCommentRequestSchema,
|
|
1043
1063
|
HMSearchRequestSchema,
|
|
1044
1064
|
HMQueryRequestSchema,
|
|
1065
|
+
HMQueryBlockRequestSchema,
|
|
1045
1066
|
HMAccountContactsRequestSchema,
|
|
1046
1067
|
HMSubjectContactsRequestSchema,
|
|
1047
1068
|
HMListCommentsRequestSchema,
|
|
@@ -1072,6 +1093,7 @@ var HMRequestSchema = z.discriminatedUnion("key", [
|
|
|
1072
1093
|
HMCommentRequestSchema,
|
|
1073
1094
|
HMSearchRequestSchema,
|
|
1074
1095
|
HMQueryRequestSchema,
|
|
1096
|
+
HMQueryBlockRequestSchema,
|
|
1075
1097
|
HMAccountContactsRequestSchema,
|
|
1076
1098
|
HMSubjectContactsRequestSchema,
|
|
1077
1099
|
HMListCommentsRequestSchema,
|
|
@@ -1352,6 +1374,7 @@ export {
|
|
|
1352
1374
|
HMSearchPayloadSchema,
|
|
1353
1375
|
HMSearchRequestSchema,
|
|
1354
1376
|
HMQueryRequestSchema,
|
|
1377
|
+
HMQueryBlockInputSchema,
|
|
1355
1378
|
HMListCommentsInputSchema,
|
|
1356
1379
|
HMListCommentsOutputSchema,
|
|
1357
1380
|
HMListCommentsRequestSchema,
|
|
@@ -1393,6 +1416,9 @@ export {
|
|
|
1393
1416
|
HMInteractionSummaryInputSchema,
|
|
1394
1417
|
HMInteractionSummaryOutputSchema,
|
|
1395
1418
|
HMInteractionSummaryRequestSchema,
|
|
1419
|
+
HMQueryBlockItemSummarySchema,
|
|
1420
|
+
HMQueryBlockPayloadSchema,
|
|
1421
|
+
HMQueryBlockRequestSchema,
|
|
1396
1422
|
HMPublishBlobsOutputSchema,
|
|
1397
1423
|
HMPublishBlobsInputSchema,
|
|
1398
1424
|
HMPublishBlobsRequestSchema,
|