@eide/foir-proto-ts 0.3.3 → 0.3.5

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