@seed-hypermedia/client 0.0.53 → 0.0.54

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.
@@ -790,7 +790,11 @@ var HMListEventsInputSchema = z.object({
790
790
  filterAuthors: z.array(z.string()).optional(),
791
791
  filterEventType: z.array(z.string()).optional(),
792
792
  filterResource: z.string().optional(),
793
- currentAccount: z.string().optional()
793
+ currentAccount: z.string().optional(),
794
+ // Feed ordering. 'claimed' (default) orders by the event's claimed/create time; 'observed' orders by
795
+ // when the server locally observed the blob — needed by pollers that must see late-propagating events
796
+ // (which carry an old create time) as soon as they arrive, instead of buried at their create position.
797
+ order: z.union([z.literal("claimed"), z.literal("observed")]).optional()
794
798
  });
795
799
  var HMLoadedEventSchema = z.object({}).passthrough();
796
800
  var HMListEventsOutputSchema = z.object({
@@ -24474,6 +24474,7 @@ export declare const HMListEventsInputSchema: z.ZodObject<{
24474
24474
  filterEventType: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
24475
24475
  filterResource: z.ZodOptional<z.ZodString>;
24476
24476
  currentAccount: z.ZodOptional<z.ZodString>;
24477
+ order: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"claimed">, z.ZodLiteral<"observed">]>>;
24477
24478
  }, "strip", z.ZodTypeAny, {
24478
24479
  pageSize?: number | undefined;
24479
24480
  pageToken?: string | undefined;
@@ -24482,6 +24483,7 @@ export declare const HMListEventsInputSchema: z.ZodObject<{
24482
24483
  filterEventType?: string[] | undefined;
24483
24484
  filterResource?: string | undefined;
24484
24485
  currentAccount?: string | undefined;
24486
+ order?: "claimed" | "observed" | undefined;
24485
24487
  }, {
24486
24488
  pageSize?: number | undefined;
24487
24489
  pageToken?: string | undefined;
@@ -24490,6 +24492,7 @@ export declare const HMListEventsInputSchema: z.ZodObject<{
24490
24492
  filterEventType?: string[] | undefined;
24491
24493
  filterResource?: string | undefined;
24492
24494
  currentAccount?: string | undefined;
24495
+ order?: "claimed" | "observed" | undefined;
24493
24496
  }>;
24494
24497
  export type HMListEventsInput = z.infer<typeof HMListEventsInputSchema>;
24495
24498
  export declare const HMLoadedEventSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
@@ -24514,6 +24517,7 @@ export declare const HMListEventsRequestSchema: z.ZodObject<{
24514
24517
  filterEventType: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
24515
24518
  filterResource: z.ZodOptional<z.ZodString>;
24516
24519
  currentAccount: z.ZodOptional<z.ZodString>;
24520
+ order: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"claimed">, z.ZodLiteral<"observed">]>>;
24517
24521
  }, "strip", z.ZodTypeAny, {
24518
24522
  pageSize?: number | undefined;
24519
24523
  pageToken?: string | undefined;
@@ -24522,6 +24526,7 @@ export declare const HMListEventsRequestSchema: z.ZodObject<{
24522
24526
  filterEventType?: string[] | undefined;
24523
24527
  filterResource?: string | undefined;
24524
24528
  currentAccount?: string | undefined;
24529
+ order?: "claimed" | "observed" | undefined;
24525
24530
  }, {
24526
24531
  pageSize?: number | undefined;
24527
24532
  pageToken?: string | undefined;
@@ -24530,6 +24535,7 @@ export declare const HMListEventsRequestSchema: z.ZodObject<{
24530
24535
  filterEventType?: string[] | undefined;
24531
24536
  filterResource?: string | undefined;
24532
24537
  currentAccount?: string | undefined;
24538
+ order?: "claimed" | "observed" | undefined;
24533
24539
  }>;
24534
24540
  output: z.ZodObject<{
24535
24541
  events: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
@@ -24551,6 +24557,7 @@ export declare const HMListEventsRequestSchema: z.ZodObject<{
24551
24557
  filterEventType?: string[] | undefined;
24552
24558
  filterResource?: string | undefined;
24553
24559
  currentAccount?: string | undefined;
24560
+ order?: "claimed" | "observed" | undefined;
24554
24561
  };
24555
24562
  output: {
24556
24563
  events: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
@@ -24566,6 +24573,7 @@ export declare const HMListEventsRequestSchema: z.ZodObject<{
24566
24573
  filterEventType?: string[] | undefined;
24567
24574
  filterResource?: string | undefined;
24568
24575
  currentAccount?: string | undefined;
24576
+ order?: "claimed" | "observed" | undefined;
24569
24577
  };
24570
24578
  output: {
24571
24579
  events: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
@@ -43163,6 +43171,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
43163
43171
  filterEventType: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43164
43172
  filterResource: z.ZodOptional<z.ZodString>;
43165
43173
  currentAccount: z.ZodOptional<z.ZodString>;
43174
+ order: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"claimed">, z.ZodLiteral<"observed">]>>;
43166
43175
  }, "strip", z.ZodTypeAny, {
43167
43176
  pageSize?: number | undefined;
43168
43177
  pageToken?: string | undefined;
@@ -43171,6 +43180,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
43171
43180
  filterEventType?: string[] | undefined;
43172
43181
  filterResource?: string | undefined;
43173
43182
  currentAccount?: string | undefined;
43183
+ order?: "claimed" | "observed" | undefined;
43174
43184
  }, {
43175
43185
  pageSize?: number | undefined;
43176
43186
  pageToken?: string | undefined;
@@ -43179,6 +43189,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
43179
43189
  filterEventType?: string[] | undefined;
43180
43190
  filterResource?: string | undefined;
43181
43191
  currentAccount?: string | undefined;
43192
+ order?: "claimed" | "observed" | undefined;
43182
43193
  }>;
43183
43194
  output: z.ZodObject<{
43184
43195
  events: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
@@ -43200,6 +43211,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
43200
43211
  filterEventType?: string[] | undefined;
43201
43212
  filterResource?: string | undefined;
43202
43213
  currentAccount?: string | undefined;
43214
+ order?: "claimed" | "observed" | undefined;
43203
43215
  };
43204
43216
  output: {
43205
43217
  events: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
@@ -43215,6 +43227,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
43215
43227
  filterEventType?: string[] | undefined;
43216
43228
  filterResource?: string | undefined;
43217
43229
  currentAccount?: string | undefined;
43230
+ order?: "claimed" | "observed" | undefined;
43218
43231
  };
43219
43232
  output: {
43220
43233
  events: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
@@ -56064,6 +56077,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
56064
56077
  filterEventType: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
56065
56078
  filterResource: z.ZodOptional<z.ZodString>;
56066
56079
  currentAccount: z.ZodOptional<z.ZodString>;
56080
+ order: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"claimed">, z.ZodLiteral<"observed">]>>;
56067
56081
  }, "strip", z.ZodTypeAny, {
56068
56082
  pageSize?: number | undefined;
56069
56083
  pageToken?: string | undefined;
@@ -56072,6 +56086,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
56072
56086
  filterEventType?: string[] | undefined;
56073
56087
  filterResource?: string | undefined;
56074
56088
  currentAccount?: string | undefined;
56089
+ order?: "claimed" | "observed" | undefined;
56075
56090
  }, {
56076
56091
  pageSize?: number | undefined;
56077
56092
  pageToken?: string | undefined;
@@ -56080,6 +56095,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
56080
56095
  filterEventType?: string[] | undefined;
56081
56096
  filterResource?: string | undefined;
56082
56097
  currentAccount?: string | undefined;
56098
+ order?: "claimed" | "observed" | undefined;
56083
56099
  }>;
56084
56100
  output: z.ZodObject<{
56085
56101
  events: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
@@ -56101,6 +56117,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
56101
56117
  filterEventType?: string[] | undefined;
56102
56118
  filterResource?: string | undefined;
56103
56119
  currentAccount?: string | undefined;
56120
+ order?: "claimed" | "observed" | undefined;
56104
56121
  };
56105
56122
  output: {
56106
56123
  events: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
@@ -56116,6 +56133,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
56116
56133
  filterEventType?: string[] | undefined;
56117
56134
  filterResource?: string | undefined;
56118
56135
  currentAccount?: string | undefined;
56136
+ order?: "claimed" | "observed" | undefined;
56119
56137
  };
56120
56138
  output: {
56121
56139
  events: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
package/dist/hm-types.mjs CHANGED
@@ -176,7 +176,7 @@ import {
176
176
  toNumber,
177
177
  unpackHmId,
178
178
  unpackedHmIdSchema
179
- } from "./chunk-64QUVNND.mjs";
179
+ } from "./chunk-AQLH2QY4.mjs";
180
180
  export {
181
181
  BackgroundColorAnnotationSchema,
182
182
  BlockRangeSchema,
package/dist/index.mjs CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  serializeBlockRange,
18
18
  toNumber,
19
19
  unpackHmId
20
- } from "./chunk-64QUVNND.mjs";
20
+ } from "./chunk-AQLH2QY4.mjs";
21
21
 
22
22
  // src/capability.ts
23
23
  import { encode as cborEncode2 } from "@ipld/dag-cbor";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seed-hypermedia/client",
3
- "version": "0.0.53",
3
+ "version": "0.0.54",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/seed-hypermedia/seed",