@eide/foir-proto-ts 0.71.0 → 0.73.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.
- package/package.json +1 -1
- package/src/identity/v1/identity_connect.d.ts +23 -1
- package/src/identity/v1/identity_connect.js +23 -1
- package/src/identity/v1/identity_pb.d.ts +143 -0
- package/src/identity/v1/identity_pb.js +33 -5
- package/src/records/v1/records_connect.d.ts +19 -1
- package/src/records/v1/records_connect.js +19 -1
- package/src/records/v1/records_pb.d.ts +217 -0
- package/src/records/v1/records_pb.js +118 -83
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
|
-
import { BatchPublishVersionsRequest, BatchPublishVersionsResponse, BatchRecordOperationsRequest, BatchRecordOperationsResponse, BatchResolveRecordsRequest, BatchResolveRecordsResponse, BulkUpdateRecordsRequest, BulkUpdateRecordsResponse, CancelScheduledRecordPublishRequest, CancelScheduledRecordPublishResponse, CheckLookupAvailabilityRequest, CheckLookupAvailabilityResponse, CreateRecordRequest, CreateRecordResponse, CreateVariantRequest, CreateVariantResponse, CreateVersionRequest, CreateVersionResponse, DeleteEmbeddingsRequest, DeleteEmbeddingsResponse, DeleteRecordRequest, DeleteRecordResponse, DeleteVariantRequest, DeleteVariantResponse, DuplicateRecordRequest, DuplicateRecordResponse, DuplicateRecordsBulkRequest, DuplicateRecordsBulkResponse, FindSimilarRecordsRequest, FindSimilarRecordsResponse, GetEmbeddingStatsRequest, GetEmbeddingStatsResponse, GetRecordByKeyOrIdRequest, GetRecordByKeyOrIdResponse, GetRecordByKeyRequest, GetRecordByKeyResponse, GetRecordEmbeddingsRequest, GetRecordEmbeddingsResponse, GetRecordRequest, GetRecordResponse, GetScheduledPublishRequest, GetScheduledPublishResponse, GlobalSearchRequest, GlobalSearchResponse, ListDraftVersionsRequest, ListDraftVersionsResponse, ListLookupConflictsRequest, ListLookupConflictsResponse, ListRecordsRequest, ListRecordsResponse, ListRecordVariantsRequest, ListRecordVariantsResponse, ListRecordVersionsRequest, ListRecordVersionsResponse, ListScheduledPublishesRequest, ListScheduledPublishesResponse, LookupRecordModelsRequest, LookupRecordModelsResponse, LookupRecordRequest, LookupRecordResponse, PublishVersionRequest, PublishVersionResponse, RebuildModelLookupsRequest, RebuildModelLookupsResponse, RevertToVersionRequest, RevertToVersionResponse, SaveContentRequest, SaveContentResponse, ScheduleRecordPublishRequest, ScheduleRecordPublishResponse, SearchEmbeddingsRequest, SearchEmbeddingsResponse, SetDefaultVariantRequest, SetDefaultVariantResponse, UnpublishRecordRequest, UnpublishRecordResponse, UpdateRecordRequest, UpdateRecordResponse, UpdateVariantRequest, UpdateVariantResponse, UpsertRecordRequest, UpsertRecordResponse, WriteEmbeddingsRequest, WriteEmbeddingsResponse } from "./records_pbjs";
|
|
6
|
+
import { BackfillQueryableIndexRequest, BackfillQueryableIndexResponse, BatchPublishVersionsRequest, BatchPublishVersionsResponse, BatchRecordOperationsRequest, BatchRecordOperationsResponse, BatchResolveRecordsRequest, BatchResolveRecordsResponse, BulkUpdateRecordsRequest, BulkUpdateRecordsResponse, CancelScheduledRecordPublishRequest, CancelScheduledRecordPublishResponse, CheckLookupAvailabilityRequest, CheckLookupAvailabilityResponse, CreateRecordRequest, CreateRecordResponse, CreateVariantRequest, CreateVariantResponse, CreateVersionRequest, CreateVersionResponse, DeleteEmbeddingsRequest, DeleteEmbeddingsResponse, DeleteRecordRequest, DeleteRecordResponse, DeleteVariantRequest, DeleteVariantResponse, DuplicateRecordRequest, DuplicateRecordResponse, DuplicateRecordsBulkRequest, DuplicateRecordsBulkResponse, EnqueueGenerateEmbeddingRequest, EnqueueGenerateEmbeddingResponse, FindSimilarRecordsRequest, FindSimilarRecordsResponse, GetEmbeddingStatsRequest, GetEmbeddingStatsResponse, GetRecordByKeyOrIdRequest, GetRecordByKeyOrIdResponse, GetRecordByKeyRequest, GetRecordByKeyResponse, GetRecordEmbeddingsRequest, GetRecordEmbeddingsResponse, GetRecordRequest, GetRecordResponse, GetScheduledPublishRequest, GetScheduledPublishResponse, GlobalSearchRequest, GlobalSearchResponse, ListDraftVersionsRequest, ListDraftVersionsResponse, ListLookupConflictsRequest, ListLookupConflictsResponse, ListRecordsRequest, ListRecordsResponse, ListRecordVariantsRequest, ListRecordVariantsResponse, ListRecordVersionsRequest, ListRecordVersionsResponse, ListScheduledPublishesRequest, ListScheduledPublishesResponse, LookupRecordModelsRequest, LookupRecordModelsResponse, LookupRecordRequest, LookupRecordResponse, PublishVersionRequest, PublishVersionResponse, RebuildModelLookupsRequest, RebuildModelLookupsResponse, RevertToVersionRequest, RevertToVersionResponse, SaveContentRequest, SaveContentResponse, ScheduleRecordPublishRequest, ScheduleRecordPublishResponse, SearchEmbeddingsRequest, SearchEmbeddingsResponse, SetDefaultVariantRequest, SetDefaultVariantResponse, UnpublishRecordRequest, UnpublishRecordResponse, UpdateRecordRequest, UpdateRecordResponse, UpdateVariantRequest, UpdateVariantResponse, UpsertRecordRequest, UpsertRecordResponse, WriteEmbeddingsRequest, WriteEmbeddingsResponse } from "./records_pbjs";
|
|
7
7
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -104,6 +104,15 @@ export const RecordsService = {
|
|
|
104
104
|
O: BulkUpdateRecordsResponse,
|
|
105
105
|
kind: MethodKind.Unary,
|
|
106
106
|
},
|
|
107
|
+
/**
|
|
108
|
+
* @generated from rpc records.v1.RecordsService.BackfillQueryableIndex
|
|
109
|
+
*/
|
|
110
|
+
backfillQueryableIndex: {
|
|
111
|
+
name: "BackfillQueryableIndex",
|
|
112
|
+
I: BackfillQueryableIndexRequest,
|
|
113
|
+
O: BackfillQueryableIndexResponse,
|
|
114
|
+
kind: MethodKind.Unary,
|
|
115
|
+
},
|
|
107
116
|
/**
|
|
108
117
|
* @generated from rpc records.v1.RecordsService.DuplicateRecord
|
|
109
118
|
*/
|
|
@@ -414,6 +423,15 @@ export const RecordsService = {
|
|
|
414
423
|
O: SearchEmbeddingsResponse,
|
|
415
424
|
kind: MethodKind.Unary,
|
|
416
425
|
},
|
|
426
|
+
/**
|
|
427
|
+
* @generated from rpc records.v1.RecordsService.EnqueueGenerateEmbedding
|
|
428
|
+
*/
|
|
429
|
+
enqueueGenerateEmbedding: {
|
|
430
|
+
name: "EnqueueGenerateEmbedding",
|
|
431
|
+
I: EnqueueGenerateEmbeddingRequest,
|
|
432
|
+
O: EnqueueGenerateEmbeddingResponse,
|
|
433
|
+
kind: MethodKind.Unary,
|
|
434
|
+
},
|
|
417
435
|
}
|
|
418
436
|
};
|
|
419
437
|
|
|
@@ -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
|
/**
|
|
@@ -877,6 +987,45 @@ export declare type BulkUpdateRecordsResponse = Message<"records.v1.BulkUpdateRe
|
|
|
877
987
|
*/
|
|
878
988
|
export declare const BulkUpdateRecordsResponseSchema: GenMessage<BulkUpdateRecordsResponse>;
|
|
879
989
|
|
|
990
|
+
/**
|
|
991
|
+
* BackfillQueryableIndex walks every record of a model and (re)populates
|
|
992
|
+
* record_field_index rows for declared queryable fields. Required after
|
|
993
|
+
* a field is newly declared `queryable: true` on a model that already
|
|
994
|
+
* has records — without it, existing records have no index rows and
|
|
995
|
+
* the typed-filter SQL emitter's Tier 2 path silently excludes them.
|
|
996
|
+
* Idempotent: re-runs replace each record's index rows in place.
|
|
997
|
+
*
|
|
998
|
+
* @generated from message records.v1.BackfillQueryableIndexRequest
|
|
999
|
+
*/
|
|
1000
|
+
export declare type BackfillQueryableIndexRequest = Message<"records.v1.BackfillQueryableIndexRequest"> & {
|
|
1001
|
+
/**
|
|
1002
|
+
* @generated from field: string model_key = 1;
|
|
1003
|
+
*/
|
|
1004
|
+
modelKey: string;
|
|
1005
|
+
};
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* Describes the message records.v1.BackfillQueryableIndexRequest.
|
|
1009
|
+
* Use `create(BackfillQueryableIndexRequestSchema)` to create a new message.
|
|
1010
|
+
*/
|
|
1011
|
+
export declare const BackfillQueryableIndexRequestSchema: GenMessage<BackfillQueryableIndexRequest>;
|
|
1012
|
+
|
|
1013
|
+
/**
|
|
1014
|
+
* @generated from message records.v1.BackfillQueryableIndexResponse
|
|
1015
|
+
*/
|
|
1016
|
+
export declare type BackfillQueryableIndexResponse = Message<"records.v1.BackfillQueryableIndexResponse"> & {
|
|
1017
|
+
/**
|
|
1018
|
+
* @generated from field: int32 records_indexed = 1;
|
|
1019
|
+
*/
|
|
1020
|
+
recordsIndexed: number;
|
|
1021
|
+
};
|
|
1022
|
+
|
|
1023
|
+
/**
|
|
1024
|
+
* Describes the message records.v1.BackfillQueryableIndexResponse.
|
|
1025
|
+
* Use `create(BackfillQueryableIndexResponseSchema)` to create a new message.
|
|
1026
|
+
*/
|
|
1027
|
+
export declare const BackfillQueryableIndexResponseSchema: GenMessage<BackfillQueryableIndexResponse>;
|
|
1028
|
+
|
|
880
1029
|
/**
|
|
881
1030
|
* @generated from message records.v1.DuplicateRecordRequest
|
|
882
1031
|
*/
|
|
@@ -2221,6 +2370,58 @@ export declare type DeleteEmbeddingsResponse = Message<"records.v1.DeleteEmbeddi
|
|
|
2221
2370
|
*/
|
|
2222
2371
|
export declare const DeleteEmbeddingsResponseSchema: GenMessage<DeleteEmbeddingsResponse>;
|
|
2223
2372
|
|
|
2373
|
+
/**
|
|
2374
|
+
* EnqueueGenerateEmbeddingRequest asks the platform to enqueue a
|
|
2375
|
+
* "generate this record's embedding" job onto its background queue.
|
|
2376
|
+
* The caller (api-public's generateEmbedding mutation) supplies the
|
|
2377
|
+
* triple (record_id, model_key, source) — everything else (queue
|
|
2378
|
+
* name, payload shape, broker connection) is owned by the platform.
|
|
2379
|
+
*
|
|
2380
|
+
* @generated from message records.v1.EnqueueGenerateEmbeddingRequest
|
|
2381
|
+
*/
|
|
2382
|
+
export declare type EnqueueGenerateEmbeddingRequest = Message<"records.v1.EnqueueGenerateEmbeddingRequest"> & {
|
|
2383
|
+
/**
|
|
2384
|
+
* @generated from field: string record_id = 1;
|
|
2385
|
+
*/
|
|
2386
|
+
recordId: string;
|
|
2387
|
+
|
|
2388
|
+
/**
|
|
2389
|
+
* @generated from field: string model_key = 2;
|
|
2390
|
+
*/
|
|
2391
|
+
modelKey: string;
|
|
2392
|
+
|
|
2393
|
+
/**
|
|
2394
|
+
* source labels who triggered the embed (e.g. "manual", "import",
|
|
2395
|
+
* "hook"). Echoed verbatim onto the job payload for the worker's
|
|
2396
|
+
* audit log. Empty when the caller doesn't know.
|
|
2397
|
+
*
|
|
2398
|
+
* @generated from field: optional string source = 3;
|
|
2399
|
+
*/
|
|
2400
|
+
source?: string | undefined;
|
|
2401
|
+
};
|
|
2402
|
+
|
|
2403
|
+
/**
|
|
2404
|
+
* Describes the message records.v1.EnqueueGenerateEmbeddingRequest.
|
|
2405
|
+
* Use `create(EnqueueGenerateEmbeddingRequestSchema)` to create a new message.
|
|
2406
|
+
*/
|
|
2407
|
+
export declare const EnqueueGenerateEmbeddingRequestSchema: GenMessage<EnqueueGenerateEmbeddingRequest>;
|
|
2408
|
+
|
|
2409
|
+
/**
|
|
2410
|
+
* @generated from message records.v1.EnqueueGenerateEmbeddingResponse
|
|
2411
|
+
*/
|
|
2412
|
+
export declare type EnqueueGenerateEmbeddingResponse = Message<"records.v1.EnqueueGenerateEmbeddingResponse"> & {
|
|
2413
|
+
/**
|
|
2414
|
+
* @generated from field: bool enqueued = 1;
|
|
2415
|
+
*/
|
|
2416
|
+
enqueued: boolean;
|
|
2417
|
+
};
|
|
2418
|
+
|
|
2419
|
+
/**
|
|
2420
|
+
* Describes the message records.v1.EnqueueGenerateEmbeddingResponse.
|
|
2421
|
+
* Use `create(EnqueueGenerateEmbeddingResponseSchema)` to create a new message.
|
|
2422
|
+
*/
|
|
2423
|
+
export declare const EnqueueGenerateEmbeddingResponseSchema: GenMessage<EnqueueGenerateEmbeddingResponse>;
|
|
2424
|
+
|
|
2224
2425
|
/**
|
|
2225
2426
|
* @generated from message records.v1.SearchEmbeddingsRequest
|
|
2226
2427
|
*/
|
|
@@ -2756,6 +2957,14 @@ export declare const RecordsService: GenService<{
|
|
|
2756
2957
|
input: typeof BulkUpdateRecordsRequestSchema;
|
|
2757
2958
|
output: typeof BulkUpdateRecordsResponseSchema;
|
|
2758
2959
|
},
|
|
2960
|
+
/**
|
|
2961
|
+
* @generated from rpc records.v1.RecordsService.BackfillQueryableIndex
|
|
2962
|
+
*/
|
|
2963
|
+
backfillQueryableIndex: {
|
|
2964
|
+
methodKind: "unary";
|
|
2965
|
+
input: typeof BackfillQueryableIndexRequestSchema;
|
|
2966
|
+
output: typeof BackfillQueryableIndexResponseSchema;
|
|
2967
|
+
},
|
|
2759
2968
|
/**
|
|
2760
2969
|
* @generated from rpc records.v1.RecordsService.DuplicateRecord
|
|
2761
2970
|
*/
|
|
@@ -3034,5 +3243,13 @@ export declare const RecordsService: GenService<{
|
|
|
3034
3243
|
input: typeof SearchEmbeddingsRequestSchema;
|
|
3035
3244
|
output: typeof SearchEmbeddingsResponseSchema;
|
|
3036
3245
|
},
|
|
3246
|
+
/**
|
|
3247
|
+
* @generated from rpc records.v1.RecordsService.EnqueueGenerateEmbedding
|
|
3248
|
+
*/
|
|
3249
|
+
enqueueGenerateEmbedding: {
|
|
3250
|
+
methodKind: "unary";
|
|
3251
|
+
input: typeof EnqueueGenerateEmbeddingRequestSchema;
|
|
3252
|
+
output: typeof EnqueueGenerateEmbeddingResponseSchema;
|
|
3253
|
+
},
|
|
3037
3254
|
}>;
|
|
3038
3255
|
|