@eide/foir-proto-ts 0.3.2 → 0.3.4

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.
@@ -60,11 +60,6 @@ export declare type Record = Message<"records.v1.Record"> & {
60
60
  */
61
61
  customerId?: string;
62
62
 
63
- /**
64
- * @generated from field: int64 sync_version = 9;
65
- */
66
- syncVersion: bigint;
67
-
68
63
  /**
69
64
  * Ownership.
70
65
  *
@@ -214,6 +209,14 @@ export declare type Record = Message<"records.v1.Record"> & {
214
209
  * @generated from field: bool has_unpublished_changes = 67;
215
210
  */
216
211
  hasUnpublishedChanges: boolean;
212
+
213
+ /**
214
+ * --- Schema tracking (populated on VERSION types) ---
215
+ * The model version ID this record was saved against.
216
+ *
217
+ * @generated from field: optional string model_version_id = 70;
218
+ */
219
+ modelVersionId?: string;
217
220
  };
218
221
 
219
222
  /**
@@ -1972,326 +1975,220 @@ export declare type BatchPublishVersionsResponse = Message<"records.v1.BatchPubl
1972
1975
  export declare const BatchPublishVersionsResponseSchema: GenMessage<BatchPublishVersionsResponse>;
1973
1976
 
1974
1977
  /**
1975
- * @generated from message records.v1.SyncPullRequest
1976
- */
1977
- export declare type SyncPullRequest = Message<"records.v1.SyncPullRequest"> & {
1978
- /**
1979
- * @generated from field: google.protobuf.Timestamp since = 1;
1980
- */
1981
- since?: Timestamp;
1982
-
1983
- /**
1984
- * @generated from field: repeated string model_keys = 2;
1985
- */
1986
- modelKeys: string[];
1987
-
1988
- /**
1989
- * @generated from field: int32 limit = 10;
1990
- */
1991
- limit: number;
1992
- };
1993
-
1994
- /**
1995
- * Describes the message records.v1.SyncPullRequest.
1996
- * Use `create(SyncPullRequestSchema)` to create a new message.
1997
- */
1998
- export declare const SyncPullRequestSchema: GenMessage<SyncPullRequest>;
1999
-
2000
- /**
2001
- * @generated from message records.v1.SyncChange
1978
+ * @generated from message records.v1.ResolveRecordRequest
2002
1979
  */
2003
- export declare type SyncChange = Message<"records.v1.SyncChange"> & {
2004
- /**
2005
- * @generated from field: string record_id = 1;
2006
- */
2007
- recordId: string;
2008
-
1980
+ export declare type ResolveRecordRequest = Message<"records.v1.ResolveRecordRequest"> & {
2009
1981
  /**
2010
- * @generated from field: string model_key = 2;
1982
+ * @generated from field: string model_key = 1;
2011
1983
  */
2012
1984
  modelKey: string;
2013
1985
 
2014
1986
  /**
2015
- * "created", "updated", "deleted"
2016
- *
2017
- * @generated from field: string action = 3;
2018
- */
2019
- action: string;
2020
-
2021
- /**
2022
- * @generated from field: optional google.protobuf.Struct data = 4;
2023
- */
2024
- data?: JsonObject;
2025
-
2026
- /**
2027
- * @generated from field: optional google.protobuf.Struct metadata = 5;
1987
+ * @generated from field: optional string record_id = 2;
2028
1988
  */
2029
- metadata?: JsonObject;
1989
+ recordId?: string;
2030
1990
 
2031
1991
  /**
2032
- * @generated from field: google.protobuf.Timestamp changed_at = 6;
1992
+ * @generated from field: optional string natural_key = 3;
2033
1993
  */
2034
- changedAt?: Timestamp;
2035
- };
2036
-
2037
- /**
2038
- * Describes the message records.v1.SyncChange.
2039
- * Use `create(SyncChangeSchema)` to create a new message.
2040
- */
2041
- export declare const SyncChangeSchema: GenMessage<SyncChange>;
1994
+ naturalKey?: string;
2042
1995
 
2043
- /**
2044
- * @generated from message records.v1.SyncPullResponse
2045
- */
2046
- export declare type SyncPullResponse = Message<"records.v1.SyncPullResponse"> & {
2047
1996
  /**
2048
- * @generated from field: repeated records.v1.SyncChange changes = 1;
1997
+ * @generated from field: optional string customer_id = 4;
2049
1998
  */
2050
- changes: SyncChange[];
1999
+ customerId?: string;
2051
2000
 
2052
2001
  /**
2053
- * @generated from field: google.protobuf.Timestamp cursor = 2;
2002
+ * @generated from field: optional google.protobuf.Struct context = 5;
2054
2003
  */
2055
- cursor?: Timestamp;
2004
+ context?: JsonObject;
2056
2005
 
2057
2006
  /**
2058
- * @generated from field: bool has_more = 3;
2007
+ * @generated from field: bool include_media = 6;
2059
2008
  */
2060
- hasMore: boolean;
2061
- };
2062
-
2063
- /**
2064
- * Describes the message records.v1.SyncPullResponse.
2065
- * Use `create(SyncPullResponseSchema)` to create a new message.
2066
- */
2067
- export declare const SyncPullResponseSchema: GenMessage<SyncPullResponse>;
2009
+ includeMedia: boolean;
2068
2010
 
2069
- /**
2070
- * @generated from message records.v1.SyncPushRequest
2071
- */
2072
- export declare type SyncPushRequest = Message<"records.v1.SyncPushRequest"> & {
2073
2011
  /**
2074
- * @generated from field: repeated records.v1.SyncPushItem items = 1;
2012
+ * @generated from field: bool include_versions = 7;
2075
2013
  */
2076
- items: SyncPushItem[];
2014
+ includeVersions: boolean;
2077
2015
  };
2078
2016
 
2079
2017
  /**
2080
- * Describes the message records.v1.SyncPushRequest.
2081
- * Use `create(SyncPushRequestSchema)` to create a new message.
2018
+ * Describes the message records.v1.ResolveRecordRequest.
2019
+ * Use `create(ResolveRecordRequestSchema)` to create a new message.
2082
2020
  */
2083
- export declare const SyncPushRequestSchema: GenMessage<SyncPushRequest>;
2021
+ export declare const ResolveRecordRequestSchema: GenMessage<ResolveRecordRequest>;
2084
2022
 
2085
2023
  /**
2086
- * @generated from message records.v1.SyncPushItem
2024
+ * @generated from message records.v1.ResolvedMedia
2087
2025
  */
2088
- export declare type SyncPushItem = Message<"records.v1.SyncPushItem"> & {
2026
+ export declare type ResolvedMedia = Message<"records.v1.ResolvedMedia"> & {
2089
2027
  /**
2090
- * @generated from field: string record_id = 1;
2028
+ * @generated from field: string field_key = 1;
2091
2029
  */
2092
- recordId: string;
2030
+ fieldKey: string;
2093
2031
 
2094
2032
  /**
2095
- * @generated from field: string model_key = 2;
2033
+ * @generated from field: string file_id = 2;
2096
2034
  */
2097
- modelKey: string;
2035
+ fileId: string;
2098
2036
 
2099
2037
  /**
2100
- * @generated from field: string action = 3;
2038
+ * @generated from field: string url = 3;
2101
2039
  */
2102
- action: string;
2040
+ url: string;
2103
2041
 
2104
2042
  /**
2105
- * @generated from field: optional google.protobuf.Struct data = 4;
2043
+ * @generated from field: string mime_type = 4;
2106
2044
  */
2107
- data?: JsonObject;
2045
+ mimeType: string;
2108
2046
 
2109
2047
  /**
2110
- * @generated from field: optional string natural_key = 5;
2048
+ * @generated from field: optional string filename = 5;
2111
2049
  */
2112
- naturalKey?: string;
2050
+ filename?: string;
2113
2051
 
2114
2052
  /**
2115
- * @generated from field: optional string idempotency_key = 6;
2053
+ * @generated from field: optional google.protobuf.Struct metadata = 6;
2116
2054
  */
2117
- idempotencyKey?: string;
2055
+ metadata?: JsonObject;
2118
2056
  };
2119
2057
 
2120
2058
  /**
2121
- * Describes the message records.v1.SyncPushItem.
2122
- * Use `create(SyncPushItemSchema)` to create a new message.
2059
+ * Describes the message records.v1.ResolvedMedia.
2060
+ * Use `create(ResolvedMediaSchema)` to create a new message.
2123
2061
  */
2124
- export declare const SyncPushItemSchema: GenMessage<SyncPushItem>;
2062
+ export declare const ResolvedMediaSchema: GenMessage<ResolvedMedia>;
2125
2063
 
2126
2064
  /**
2127
- * @generated from message records.v1.SyncPushResponse
2065
+ * @generated from message records.v1.ResolveRecordResponse
2128
2066
  */
2129
- export declare type SyncPushResponse = Message<"records.v1.SyncPushResponse"> & {
2067
+ export declare type ResolveRecordResponse = Message<"records.v1.ResolveRecordResponse"> & {
2130
2068
  /**
2131
- * @generated from field: int32 applied = 1;
2069
+ * @generated from field: google.protobuf.Struct data = 1;
2132
2070
  */
2133
- applied: number;
2071
+ data?: JsonObject;
2134
2072
 
2135
2073
  /**
2136
- * @generated from field: int32 rejected = 2;
2074
+ * @generated from field: google.protobuf.Struct metadata = 2;
2137
2075
  */
2138
- rejected: number;
2076
+ metadata?: JsonObject;
2139
2077
 
2140
2078
  /**
2141
- * @generated from field: repeated records.v1.SyncPushError errors = 3;
2079
+ * @generated from field: optional string variant_id = 3;
2142
2080
  */
2143
- errors: SyncPushError[];
2144
- };
2145
-
2146
- /**
2147
- * Describes the message records.v1.SyncPushResponse.
2148
- * Use `create(SyncPushResponseSchema)` to create a new message.
2149
- */
2150
- export declare const SyncPushResponseSchema: GenMessage<SyncPushResponse>;
2081
+ variantId?: string;
2151
2082
 
2152
- /**
2153
- * @generated from message records.v1.SyncPushError
2154
- */
2155
- export declare type SyncPushError = Message<"records.v1.SyncPushError"> & {
2156
2083
  /**
2157
- * @generated from field: int32 index = 1;
2084
+ * @generated from field: repeated records.v1.ResolvedMedia media = 4;
2158
2085
  */
2159
- index: number;
2086
+ media: ResolvedMedia[];
2160
2087
 
2161
2088
  /**
2162
- * @generated from field: string error = 2;
2089
+ * @generated from field: optional records.v1.Record record = 5;
2163
2090
  */
2164
- error: string;
2091
+ record?: Record;
2165
2092
  };
2166
2093
 
2167
2094
  /**
2168
- * Describes the message records.v1.SyncPushError.
2169
- * Use `create(SyncPushErrorSchema)` to create a new message.
2095
+ * Describes the message records.v1.ResolveRecordResponse.
2096
+ * Use `create(ResolveRecordResponseSchema)` to create a new message.
2170
2097
  */
2171
- export declare const SyncPushErrorSchema: GenMessage<SyncPushError>;
2098
+ export declare const ResolveRecordResponseSchema: GenMessage<ResolveRecordResponse>;
2172
2099
 
2173
2100
  /**
2174
- * @generated from message records.v1.ResolveRecordRequest
2101
+ * @generated from message records.v1.ResolveRecordsRequest
2175
2102
  */
2176
- export declare type ResolveRecordRequest = Message<"records.v1.ResolveRecordRequest"> & {
2103
+ export declare type ResolveRecordsRequest = Message<"records.v1.ResolveRecordsRequest"> & {
2177
2104
  /**
2178
2105
  * @generated from field: string model_key = 1;
2179
2106
  */
2180
2107
  modelKey: string;
2181
2108
 
2182
2109
  /**
2183
- * @generated from field: optional string record_id = 2;
2184
- */
2185
- recordId?: string;
2186
-
2187
- /**
2188
- * @generated from field: optional string natural_key = 3;
2110
+ * @generated from field: repeated string record_ids = 2;
2189
2111
  */
2190
- naturalKey?: string;
2112
+ recordIds: string[];
2191
2113
 
2192
2114
  /**
2193
- * @generated from field: optional string customer_id = 4;
2115
+ * @generated from field: optional string customer_id = 3;
2194
2116
  */
2195
2117
  customerId?: string;
2196
2118
 
2197
2119
  /**
2198
- * @generated from field: optional google.protobuf.Struct context = 5;
2120
+ * @generated from field: optional google.protobuf.Struct context = 4;
2199
2121
  */
2200
2122
  context?: JsonObject;
2201
2123
 
2202
2124
  /**
2203
- * @generated from field: bool include_media = 6;
2125
+ * @generated from field: bool include_media = 5;
2204
2126
  */
2205
2127
  includeMedia: boolean;
2206
-
2207
- /**
2208
- * @generated from field: bool include_versions = 7;
2209
- */
2210
- includeVersions: boolean;
2211
2128
  };
2212
2129
 
2213
2130
  /**
2214
- * Describes the message records.v1.ResolveRecordRequest.
2215
- * Use `create(ResolveRecordRequestSchema)` to create a new message.
2131
+ * Describes the message records.v1.ResolveRecordsRequest.
2132
+ * Use `create(ResolveRecordsRequestSchema)` to create a new message.
2216
2133
  */
2217
- export declare const ResolveRecordRequestSchema: GenMessage<ResolveRecordRequest>;
2134
+ export declare const ResolveRecordsRequestSchema: GenMessage<ResolveRecordsRequest>;
2218
2135
 
2219
2136
  /**
2220
- * @generated from message records.v1.ResolvedMedia
2137
+ * @generated from message records.v1.ResolveRecordsResponse
2221
2138
  */
2222
- export declare type ResolvedMedia = Message<"records.v1.ResolvedMedia"> & {
2223
- /**
2224
- * @generated from field: string field_key = 1;
2225
- */
2226
- fieldKey: string;
2227
-
2228
- /**
2229
- * @generated from field: string file_id = 2;
2230
- */
2231
- fileId: string;
2232
-
2233
- /**
2234
- * @generated from field: string url = 3;
2235
- */
2236
- url: string;
2237
-
2139
+ export declare type ResolveRecordsResponse = Message<"records.v1.ResolveRecordsResponse"> & {
2238
2140
  /**
2239
- * @generated from field: string mime_type = 4;
2141
+ * @generated from field: repeated records.v1.ResolvedRecord records = 1;
2240
2142
  */
2241
- mimeType: string;
2242
-
2243
- /**
2244
- * @generated from field: optional string filename = 5;
2245
- */
2246
- filename?: string;
2247
-
2248
- /**
2249
- * @generated from field: optional google.protobuf.Struct metadata = 6;
2250
- */
2251
- metadata?: JsonObject;
2143
+ records: ResolvedRecord[];
2252
2144
  };
2253
2145
 
2254
2146
  /**
2255
- * Describes the message records.v1.ResolvedMedia.
2256
- * Use `create(ResolvedMediaSchema)` to create a new message.
2147
+ * Describes the message records.v1.ResolveRecordsResponse.
2148
+ * Use `create(ResolveRecordsResponseSchema)` to create a new message.
2257
2149
  */
2258
- export declare const ResolvedMediaSchema: GenMessage<ResolvedMedia>;
2150
+ export declare const ResolveRecordsResponseSchema: GenMessage<ResolveRecordsResponse>;
2259
2151
 
2260
2152
  /**
2261
- * @generated from message records.v1.ResolveRecordResponse
2153
+ * @generated from message records.v1.ResolvedRecord
2262
2154
  */
2263
- export declare type ResolveRecordResponse = Message<"records.v1.ResolveRecordResponse"> & {
2155
+ export declare type ResolvedRecord = Message<"records.v1.ResolvedRecord"> & {
2264
2156
  /**
2265
- * @generated from field: google.protobuf.Struct data = 1;
2157
+ * @generated from field: string record_id = 1;
2158
+ */
2159
+ recordId: string;
2160
+
2161
+ /**
2162
+ * @generated from field: google.protobuf.Struct data = 2;
2266
2163
  */
2267
2164
  data?: JsonObject;
2268
2165
 
2269
2166
  /**
2270
- * @generated from field: google.protobuf.Struct metadata = 2;
2167
+ * @generated from field: google.protobuf.Struct metadata = 3;
2271
2168
  */
2272
2169
  metadata?: JsonObject;
2273
2170
 
2274
2171
  /**
2275
- * @generated from field: optional string variant_id = 3;
2172
+ * @generated from field: optional string variant_id = 4;
2276
2173
  */
2277
2174
  variantId?: string;
2278
2175
 
2279
2176
  /**
2280
- * @generated from field: repeated records.v1.ResolvedMedia media = 4;
2177
+ * @generated from field: repeated records.v1.ResolvedMedia media = 5;
2281
2178
  */
2282
2179
  media: ResolvedMedia[];
2283
2180
 
2284
2181
  /**
2285
- * @generated from field: optional records.v1.Record record = 5;
2182
+ * @generated from field: optional string natural_key = 6;
2286
2183
  */
2287
- record?: Record;
2184
+ naturalKey?: string;
2288
2185
  };
2289
2186
 
2290
2187
  /**
2291
- * Describes the message records.v1.ResolveRecordResponse.
2292
- * Use `create(ResolveRecordResponseSchema)` to create a new message.
2188
+ * Describes the message records.v1.ResolvedRecord.
2189
+ * Use `create(ResolvedRecordSchema)` to create a new message.
2293
2190
  */
2294
- export declare const ResolveRecordResponseSchema: GenMessage<ResolveRecordResponse>;
2191
+ export declare const ResolvedRecordSchema: GenMessage<ResolvedRecord>;
2295
2192
 
2296
2193
  /**
2297
2194
  * @generated from message records.v1.GlobalSearchRequest
@@ -3150,6 +3047,14 @@ export declare const RecordsService: GenService<{
3150
3047
  input: typeof ResolveRecordRequestSchema;
3151
3048
  output: typeof ResolveRecordResponseSchema;
3152
3049
  },
3050
+ /**
3051
+ * @generated from rpc records.v1.RecordsService.ResolveRecords
3052
+ */
3053
+ resolveRecords: {
3054
+ methodKind: "unary";
3055
+ input: typeof ResolveRecordsRequestSchema;
3056
+ output: typeof ResolveRecordsResponseSchema;
3057
+ },
3153
3058
  /**
3154
3059
  * Search.
3155
3060
  *
@@ -3160,24 +3065,6 @@ export declare const RecordsService: GenService<{
3160
3065
  input: typeof GlobalSearchRequestSchema;
3161
3066
  output: typeof GlobalSearchResponseSchema;
3162
3067
  },
3163
- /**
3164
- * Sync.
3165
- *
3166
- * @generated from rpc records.v1.RecordsService.SyncPull
3167
- */
3168
- syncPull: {
3169
- methodKind: "unary";
3170
- input: typeof SyncPullRequestSchema;
3171
- output: typeof SyncPullResponseSchema;
3172
- },
3173
- /**
3174
- * @generated from rpc records.v1.RecordsService.SyncPush
3175
- */
3176
- syncPush: {
3177
- methodKind: "unary";
3178
- input: typeof SyncPushRequestSchema;
3179
- output: typeof SyncPushResponseSchema;
3180
- },
3181
3068
  /**
3182
3069
  * Embeddings.
3183
3070
  *