@eide/foir-proto-ts 0.71.0 → 0.72.0

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.
@@ -628,6 +628,44 @@ export declare type ListRecordsRequest = Message<"records.v1.ListRecordsRequest"
628
628
  * @generated from field: bool preview = 8;
629
629
  */
630
630
  preview: boolean;
631
+
632
+ /**
633
+ * Structural WhereInput from the api-public typed surface. Coexists with
634
+ * `filters` during the query/mutate redesign migration (see
635
+ * foir-platform/docs/query-mutate-redesign.md); Stage 6 removes `filters`.
636
+ * Empty/unset is treated as no-filter — callers pick which form to send.
637
+ *
638
+ * @generated from field: optional google.protobuf.Struct where = 9;
639
+ */
640
+ where?: JsonObject | undefined;
641
+
642
+ /**
643
+ * Cursor pagination from Stage 3b of the query/mutate redesign.
644
+ * Coexists with limit/offset during the migration; Stage 6 removes the
645
+ * offset path. Direction is determined by which pair is set:
646
+ * * forward: first + (optional) after
647
+ * * backward: last + (optional) before
648
+ * Mixing first with last is an error. Cursors are opaque base64url
649
+ * tokens; format documented in services/platform/internal/handler/records/cursor.go.
650
+ *
651
+ * @generated from field: optional string after = 10;
652
+ */
653
+ after?: string | undefined;
654
+
655
+ /**
656
+ * @generated from field: optional string before = 11;
657
+ */
658
+ before?: string | undefined;
659
+
660
+ /**
661
+ * @generated from field: optional int32 first = 12;
662
+ */
663
+ first?: number | undefined;
664
+
665
+ /**
666
+ * @generated from field: optional int32 last = 13;
667
+ */
668
+ last?: number | undefined;
631
669
  };
632
670
 
633
671
  /**
@@ -649,6 +687,26 @@ export declare type ListRecordsResponse = Message<"records.v1.ListRecordsRespons
649
687
  * @generated from field: int32 total = 2;
650
688
  */
651
689
  total: number;
690
+
691
+ /**
692
+ * Cursor-page metadata. Always emitted when the caller sent first/last/
693
+ * after/before; empty for legacy limit/offset callers (Stage 6 removes
694
+ * the legacy path so this becomes always-populated).
695
+ *
696
+ * @generated from field: optional records.v1.PageInfo page_info = 3;
697
+ */
698
+ pageInfo?: PageInfo | undefined;
699
+
700
+ /**
701
+ * Per-record cursors aligned by index with `records`. Same length as
702
+ * `records` when cursor pagination is active; empty otherwise.
703
+ * api-public surfaces these as Relay edge cursors so frontends can
704
+ * anchor optimistic inserts / cache reconciliation / deep links to a
705
+ * specific row, not just page boundaries.
706
+ *
707
+ * @generated from field: repeated string cursors = 4;
708
+ */
709
+ cursors: string[];
652
710
  };
653
711
 
654
712
  /**
@@ -657,6 +715,42 @@ export declare type ListRecordsResponse = Message<"records.v1.ListRecordsRespons
657
715
  */
658
716
  export declare const ListRecordsResponseSchema: GenMessage<ListRecordsResponse>;
659
717
 
718
+ /**
719
+ * PageInfo carries the cursor-page metadata for ListRecordsResponse.
720
+ * has_next_page / has_previous_page are relative to the requested
721
+ * direction; under forward pagination has_previous_page is true when
722
+ * `after` was supplied, under backward it's the inverse.
723
+ *
724
+ * @generated from message records.v1.PageInfo
725
+ */
726
+ export declare type PageInfo = Message<"records.v1.PageInfo"> & {
727
+ /**
728
+ * @generated from field: bool has_next_page = 1;
729
+ */
730
+ hasNextPage: boolean;
731
+
732
+ /**
733
+ * @generated from field: bool has_previous_page = 2;
734
+ */
735
+ hasPreviousPage: boolean;
736
+
737
+ /**
738
+ * @generated from field: optional string start_cursor = 3;
739
+ */
740
+ startCursor?: string | undefined;
741
+
742
+ /**
743
+ * @generated from field: optional string end_cursor = 4;
744
+ */
745
+ endCursor?: string | undefined;
746
+ };
747
+
748
+ /**
749
+ * Describes the message records.v1.PageInfo.
750
+ * Use `create(PageInfoSchema)` to create a new message.
751
+ */
752
+ export declare const PageInfoSchema: GenMessage<PageInfo>;
753
+
660
754
  /**
661
755
  * @generated from message records.v1.UpdateRecordRequest
662
756
  */
@@ -667,6 +761,11 @@ export declare type UpdateRecordRequest = Message<"records.v1.UpdateRecordReques
667
761
  id: string;
668
762
 
669
763
  /**
764
+ * Flat-merge data: when set, this struct is appended via JSONB `||` —
765
+ * top-level keys overwrite, nested composites are replaced wholesale.
766
+ * Coexists with `typed_update` during the migration; Stage 6 removes
767
+ * this field in favor of the typed path.
768
+ *
670
769
  * @generated from field: google.protobuf.Struct data = 2;
671
770
  */
672
771
  data?: JsonObject | undefined;
@@ -675,6 +774,17 @@ export declare type UpdateRecordRequest = Message<"records.v1.UpdateRecordReques
675
774
  * @generated from field: optional string natural_key = 3;
676
775
  */
677
776
  naturalKey?: string | undefined;
777
+
778
+ /**
779
+ * Typed UpdateInput tree from Stage 4 of the query/mutate redesign.
780
+ * When set, the handler walks it and emits per-leaf jsonb_set /
781
+ * increment / push / pull / connect operations instead of a flat
782
+ * merge. Mutually exclusive with `data` — sending both is an error.
783
+ * See foir-platform/docs/query-mutate-redesign.md.
784
+ *
785
+ * @generated from field: optional google.protobuf.Struct typed_update = 4;
786
+ */
787
+ typedUpdate?: JsonObject | undefined;
678
788
  };
679
789
 
680
790
  /**
@@ -2221,6 +2331,58 @@ export declare type DeleteEmbeddingsResponse = Message<"records.v1.DeleteEmbeddi
2221
2331
  */
2222
2332
  export declare const DeleteEmbeddingsResponseSchema: GenMessage<DeleteEmbeddingsResponse>;
2223
2333
 
2334
+ /**
2335
+ * EnqueueGenerateEmbeddingRequest asks the platform to enqueue a
2336
+ * "generate this record's embedding" job onto its background queue.
2337
+ * The caller (api-public's generateEmbedding mutation) supplies the
2338
+ * triple (record_id, model_key, source) — everything else (queue
2339
+ * name, payload shape, broker connection) is owned by the platform.
2340
+ *
2341
+ * @generated from message records.v1.EnqueueGenerateEmbeddingRequest
2342
+ */
2343
+ export declare type EnqueueGenerateEmbeddingRequest = Message<"records.v1.EnqueueGenerateEmbeddingRequest"> & {
2344
+ /**
2345
+ * @generated from field: string record_id = 1;
2346
+ */
2347
+ recordId: string;
2348
+
2349
+ /**
2350
+ * @generated from field: string model_key = 2;
2351
+ */
2352
+ modelKey: string;
2353
+
2354
+ /**
2355
+ * source labels who triggered the embed (e.g. "manual", "import",
2356
+ * "hook"). Echoed verbatim onto the job payload for the worker's
2357
+ * audit log. Empty when the caller doesn't know.
2358
+ *
2359
+ * @generated from field: optional string source = 3;
2360
+ */
2361
+ source?: string | undefined;
2362
+ };
2363
+
2364
+ /**
2365
+ * Describes the message records.v1.EnqueueGenerateEmbeddingRequest.
2366
+ * Use `create(EnqueueGenerateEmbeddingRequestSchema)` to create a new message.
2367
+ */
2368
+ export declare const EnqueueGenerateEmbeddingRequestSchema: GenMessage<EnqueueGenerateEmbeddingRequest>;
2369
+
2370
+ /**
2371
+ * @generated from message records.v1.EnqueueGenerateEmbeddingResponse
2372
+ */
2373
+ export declare type EnqueueGenerateEmbeddingResponse = Message<"records.v1.EnqueueGenerateEmbeddingResponse"> & {
2374
+ /**
2375
+ * @generated from field: bool enqueued = 1;
2376
+ */
2377
+ enqueued: boolean;
2378
+ };
2379
+
2380
+ /**
2381
+ * Describes the message records.v1.EnqueueGenerateEmbeddingResponse.
2382
+ * Use `create(EnqueueGenerateEmbeddingResponseSchema)` to create a new message.
2383
+ */
2384
+ export declare const EnqueueGenerateEmbeddingResponseSchema: GenMessage<EnqueueGenerateEmbeddingResponse>;
2385
+
2224
2386
  /**
2225
2387
  * @generated from message records.v1.SearchEmbeddingsRequest
2226
2388
  */
@@ -3034,5 +3196,13 @@ export declare const RecordsService: GenService<{
3034
3196
  input: typeof SearchEmbeddingsRequestSchema;
3035
3197
  output: typeof SearchEmbeddingsResponseSchema;
3036
3198
  },
3199
+ /**
3200
+ * @generated from rpc records.v1.RecordsService.EnqueueGenerateEmbedding
3201
+ */
3202
+ enqueueGenerateEmbedding: {
3203
+ methodKind: "unary";
3204
+ input: typeof EnqueueGenerateEmbeddingRequestSchema;
3205
+ output: typeof EnqueueGenerateEmbeddingResponseSchema;
3206
+ },
3037
3207
  }>;
3038
3208