@eide/foir-proto-ts 0.6.0 → 0.8.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/buf/validate/validate_pb.d.ts +4926 -0
- package/src/buf/validate/validate_pb.js +359 -0
- package/src/records/v1/records_connect.d.ts +10 -1
- package/src/records/v1/records_connect.js +10 -1
- package/src/records/v1/records_pb.d.ts +80 -0
- package/src/records/v1/records_pb.js +99 -85
|
@@ -789,6 +789,78 @@ export declare type DeleteRecordResponse = Message<"records.v1.DeleteRecordRespo
|
|
|
789
789
|
*/
|
|
790
790
|
export declare const DeleteRecordResponseSchema: GenMessage<DeleteRecordResponse>;
|
|
791
791
|
|
|
792
|
+
/**
|
|
793
|
+
* UpsertRecord creates or merge-updates a record by (model_key, natural_key).
|
|
794
|
+
* Scoped-token callers on the middleware path need one atomic write rather
|
|
795
|
+
* than fetch-then-create/update. If a row with the same natural key already
|
|
796
|
+
* exists in the caller's tenant/project, its data is merged (data || $new).
|
|
797
|
+
* Otherwise a new row is inserted — with no `-1 / -2` suffix collision
|
|
798
|
+
* handling (natural_key conflicts are the caller's problem; this RPC trusts
|
|
799
|
+
* the caller's intent).
|
|
800
|
+
*
|
|
801
|
+
* @generated from message records.v1.UpsertRecordRequest
|
|
802
|
+
*/
|
|
803
|
+
export declare type UpsertRecordRequest = Message<"records.v1.UpsertRecordRequest"> & {
|
|
804
|
+
/**
|
|
805
|
+
* @generated from field: string tenant_id = 1;
|
|
806
|
+
*/
|
|
807
|
+
tenantId: string;
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* @generated from field: string project_id = 2;
|
|
811
|
+
*/
|
|
812
|
+
projectId: string;
|
|
813
|
+
|
|
814
|
+
/**
|
|
815
|
+
* @generated from field: string model_key = 3;
|
|
816
|
+
*/
|
|
817
|
+
modelKey: string;
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* @generated from field: string natural_key = 4;
|
|
821
|
+
*/
|
|
822
|
+
naturalKey: string;
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* @generated from field: google.protobuf.Struct data = 5;
|
|
826
|
+
*/
|
|
827
|
+
data?: JsonObject;
|
|
828
|
+
|
|
829
|
+
/**
|
|
830
|
+
* @generated from field: string change_description = 6;
|
|
831
|
+
*/
|
|
832
|
+
changeDescription: string;
|
|
833
|
+
};
|
|
834
|
+
|
|
835
|
+
/**
|
|
836
|
+
* Describes the message records.v1.UpsertRecordRequest.
|
|
837
|
+
* Use `create(UpsertRecordRequestSchema)` to create a new message.
|
|
838
|
+
*/
|
|
839
|
+
export declare const UpsertRecordRequestSchema: GenMessage<UpsertRecordRequest>;
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* @generated from message records.v1.UpsertRecordResponse
|
|
843
|
+
*/
|
|
844
|
+
export declare type UpsertRecordResponse = Message<"records.v1.UpsertRecordResponse"> & {
|
|
845
|
+
/**
|
|
846
|
+
* @generated from field: records.v1.Record record = 1;
|
|
847
|
+
*/
|
|
848
|
+
record?: Record;
|
|
849
|
+
|
|
850
|
+
/**
|
|
851
|
+
* true if a new row was inserted, false if an existing row was updated.
|
|
852
|
+
*
|
|
853
|
+
* @generated from field: bool created = 2;
|
|
854
|
+
*/
|
|
855
|
+
created: boolean;
|
|
856
|
+
};
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* Describes the message records.v1.UpsertRecordResponse.
|
|
860
|
+
* Use `create(UpsertRecordResponseSchema)` to create a new message.
|
|
861
|
+
*/
|
|
862
|
+
export declare const UpsertRecordResponseSchema: GenMessage<UpsertRecordResponse>;
|
|
863
|
+
|
|
792
864
|
/**
|
|
793
865
|
* @generated from message records.v1.BatchRecordOperationsRequest
|
|
794
866
|
*/
|
|
@@ -2777,6 +2849,14 @@ export declare const RecordsService: GenService<{
|
|
|
2777
2849
|
input: typeof UpdateRecordRequestSchema;
|
|
2778
2850
|
output: typeof UpdateRecordResponseSchema;
|
|
2779
2851
|
},
|
|
2852
|
+
/**
|
|
2853
|
+
* @generated from rpc records.v1.RecordsService.UpsertRecord
|
|
2854
|
+
*/
|
|
2855
|
+
upsertRecord: {
|
|
2856
|
+
methodKind: "unary";
|
|
2857
|
+
input: typeof UpsertRecordRequestSchema;
|
|
2858
|
+
output: typeof UpsertRecordResponseSchema;
|
|
2859
|
+
},
|
|
2780
2860
|
/**
|
|
2781
2861
|
* @generated from rpc records.v1.RecordsService.DeleteRecord
|
|
2782
2862
|
*/
|