@eide/foir-proto-ts 0.48.0 → 0.49.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.
@@ -5,6 +5,7 @@
5
5
  import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
6
  import type { JsonObject, Message } from "@bufbuild/protobuf";
7
7
  import type { Timestamp } from "@bufbuild/protobuf/wkt";
8
+ import type { BreakingChange, PublishStatus } from "../../publish/v1/publish_pb.js";
8
9
 
9
10
  /**
10
11
  * Describes the file operations/v1/operations.proto.
@@ -183,6 +184,21 @@ export declare type Operation = Message<"operations.v1.Operation"> & {
183
184
  * @generated from field: google.protobuf.Timestamp updated_at = 51;
184
185
  */
185
186
  updatedAt?: Timestamp | undefined;
187
+
188
+ /**
189
+ * Schema publishing — points at the operation_versions row whose snapshot
190
+ * is currently served to the public GraphQL schema. NULL means the
191
+ * operation has been Unpublished; it is omitted from the public schema
192
+ * entirely. New operations are auto-published on create.
193
+ *
194
+ * @generated from field: optional string current_version_id = 60;
195
+ */
196
+ currentVersionId?: string | undefined;
197
+
198
+ /**
199
+ * @generated from field: optional string published_version_id = 61;
200
+ */
201
+ publishedVersionId?: string | undefined;
186
202
  };
187
203
 
188
204
  /**
@@ -191,6 +207,72 @@ export declare type Operation = Message<"operations.v1.Operation"> & {
191
207
  */
192
208
  export declare const OperationSchema: GenMessage<Operation>;
193
209
 
210
+ /**
211
+ * OperationVersion captures a point-in-time snapshot of an operation's
212
+ * schema-shaping fields. Edits to an operation create a new version; the
213
+ * snapshot column carries the relevant subset of the operations row so the
214
+ * public schema can be served from the published version even after the
215
+ * live row has been edited.
216
+ *
217
+ * @generated from message operations.v1.OperationVersion
218
+ */
219
+ export declare type OperationVersion = Message<"operations.v1.OperationVersion"> & {
220
+ /**
221
+ * @generated from field: string id = 1;
222
+ */
223
+ id: string;
224
+
225
+ /**
226
+ * @generated from field: string operation_id = 2;
227
+ */
228
+ operationId: string;
229
+
230
+ /**
231
+ * @generated from field: int32 version_number = 3;
232
+ */
233
+ versionNumber: number;
234
+
235
+ /**
236
+ * Full snapshot of the operation row's schema-shaping fields. The
237
+ * platform decodes this into Operation when serving the published
238
+ * schema.
239
+ *
240
+ * @generated from field: google.protobuf.Struct snapshot = 4;
241
+ */
242
+ snapshot?: JsonObject | undefined;
243
+
244
+ /**
245
+ * @generated from field: string content_hash = 5;
246
+ */
247
+ contentHash: string;
248
+
249
+ /**
250
+ * @generated from field: optional string source_version_id = 6;
251
+ */
252
+ sourceVersionId?: string | undefined;
253
+
254
+ /**
255
+ * @generated from field: optional string change_description = 7;
256
+ */
257
+ changeDescription?: string | undefined;
258
+
259
+ /**
260
+ * @generated from field: google.protobuf.Timestamp created_at = 8;
261
+ */
262
+ createdAt?: Timestamp | undefined;
263
+
264
+ /**
265
+ * @generated from field: optional string created_by = 9;
266
+ */
267
+ createdBy?: string | undefined;
268
+ };
269
+
270
+ /**
271
+ * Describes the message operations.v1.OperationVersion.
272
+ * Use `create(OperationVersionSchema)` to create a new message.
273
+ */
274
+ export declare const OperationVersionSchema: GenMessage<OperationVersion>;
275
+
194
276
  /**
195
277
  * @generated from message operations.v1.OperationExecution
196
278
  */
@@ -1997,6 +2079,231 @@ export declare type GetSigningSecretRawResponse = Message<"operations.v1.GetSign
1997
2079
  */
1998
2080
  export declare const GetSigningSecretRawResponseSchema: GenMessage<GetSigningSecretRawResponse>;
1999
2081
 
2082
+ /**
2083
+ * @generated from message operations.v1.GetOperationVersionRequest
2084
+ */
2085
+ export declare type GetOperationVersionRequest = Message<"operations.v1.GetOperationVersionRequest"> & {
2086
+ /**
2087
+ * @generated from field: string id = 1;
2088
+ */
2089
+ id: string;
2090
+ };
2091
+
2092
+ /**
2093
+ * Describes the message operations.v1.GetOperationVersionRequest.
2094
+ * Use `create(GetOperationVersionRequestSchema)` to create a new message.
2095
+ */
2096
+ export declare const GetOperationVersionRequestSchema: GenMessage<GetOperationVersionRequest>;
2097
+
2098
+ /**
2099
+ * @generated from message operations.v1.GetOperationVersionResponse
2100
+ */
2101
+ export declare type GetOperationVersionResponse = Message<"operations.v1.GetOperationVersionResponse"> & {
2102
+ /**
2103
+ * @generated from field: operations.v1.OperationVersion version = 1;
2104
+ */
2105
+ version?: OperationVersion | undefined;
2106
+ };
2107
+
2108
+ /**
2109
+ * Describes the message operations.v1.GetOperationVersionResponse.
2110
+ * Use `create(GetOperationVersionResponseSchema)` to create a new message.
2111
+ */
2112
+ export declare const GetOperationVersionResponseSchema: GenMessage<GetOperationVersionResponse>;
2113
+
2114
+ /**
2115
+ * @generated from message operations.v1.ListOperationVersionsRequest
2116
+ */
2117
+ export declare type ListOperationVersionsRequest = Message<"operations.v1.ListOperationVersionsRequest"> & {
2118
+ /**
2119
+ * @generated from field: string operation_id = 1;
2120
+ */
2121
+ operationId: string;
2122
+
2123
+ /**
2124
+ * @generated from field: int32 limit = 2;
2125
+ */
2126
+ limit: number;
2127
+
2128
+ /**
2129
+ * @generated from field: int32 offset = 3;
2130
+ */
2131
+ offset: number;
2132
+ };
2133
+
2134
+ /**
2135
+ * Describes the message operations.v1.ListOperationVersionsRequest.
2136
+ * Use `create(ListOperationVersionsRequestSchema)` to create a new message.
2137
+ */
2138
+ export declare const ListOperationVersionsRequestSchema: GenMessage<ListOperationVersionsRequest>;
2139
+
2140
+ /**
2141
+ * @generated from message operations.v1.ListOperationVersionsResponse
2142
+ */
2143
+ export declare type ListOperationVersionsResponse = Message<"operations.v1.ListOperationVersionsResponse"> & {
2144
+ /**
2145
+ * @generated from field: repeated operations.v1.OperationVersion versions = 1;
2146
+ */
2147
+ versions: OperationVersion[];
2148
+
2149
+ /**
2150
+ * @generated from field: int32 total = 2;
2151
+ */
2152
+ total: number;
2153
+ };
2154
+
2155
+ /**
2156
+ * Describes the message operations.v1.ListOperationVersionsResponse.
2157
+ * Use `create(ListOperationVersionsResponseSchema)` to create a new message.
2158
+ */
2159
+ export declare const ListOperationVersionsResponseSchema: GenMessage<ListOperationVersionsResponse>;
2160
+
2161
+ /**
2162
+ * @generated from message operations.v1.RestoreOperationVersionRequest
2163
+ */
2164
+ export declare type RestoreOperationVersionRequest = Message<"operations.v1.RestoreOperationVersionRequest"> & {
2165
+ /**
2166
+ * @generated from field: string version_id = 1;
2167
+ */
2168
+ versionId: string;
2169
+
2170
+ /**
2171
+ * Optional human-readable note attached to the new version created by
2172
+ * this restore.
2173
+ *
2174
+ * @generated from field: optional string change_description = 2;
2175
+ */
2176
+ changeDescription?: string | undefined;
2177
+ };
2178
+
2179
+ /**
2180
+ * Describes the message operations.v1.RestoreOperationVersionRequest.
2181
+ * Use `create(RestoreOperationVersionRequestSchema)` to create a new message.
2182
+ */
2183
+ export declare const RestoreOperationVersionRequestSchema: GenMessage<RestoreOperationVersionRequest>;
2184
+
2185
+ /**
2186
+ * @generated from message operations.v1.RestoreOperationVersionResponse
2187
+ */
2188
+ export declare type RestoreOperationVersionResponse = Message<"operations.v1.RestoreOperationVersionResponse"> & {
2189
+ /**
2190
+ * @generated from field: operations.v1.Operation operation = 1;
2191
+ */
2192
+ operation?: Operation | undefined;
2193
+
2194
+ /**
2195
+ * @generated from field: operations.v1.OperationVersion new_version = 2;
2196
+ */
2197
+ newVersion?: OperationVersion | undefined;
2198
+ };
2199
+
2200
+ /**
2201
+ * Describes the message operations.v1.RestoreOperationVersionResponse.
2202
+ * Use `create(RestoreOperationVersionResponseSchema)` to create a new message.
2203
+ */
2204
+ export declare const RestoreOperationVersionResponseSchema: GenMessage<RestoreOperationVersionResponse>;
2205
+
2206
+ /**
2207
+ * @generated from message operations.v1.PublishOperationRequest
2208
+ */
2209
+ export declare type PublishOperationRequest = Message<"operations.v1.PublishOperationRequest"> & {
2210
+ /**
2211
+ * @generated from field: string id = 1;
2212
+ */
2213
+ id: string;
2214
+ };
2215
+
2216
+ /**
2217
+ * Describes the message operations.v1.PublishOperationRequest.
2218
+ * Use `create(PublishOperationRequestSchema)` to create a new message.
2219
+ */
2220
+ export declare const PublishOperationRequestSchema: GenMessage<PublishOperationRequest>;
2221
+
2222
+ /**
2223
+ * @generated from message operations.v1.PublishOperationResponse
2224
+ */
2225
+ export declare type PublishOperationResponse = Message<"operations.v1.PublishOperationResponse"> & {
2226
+ /**
2227
+ * @generated from field: operations.v1.Operation operation = 1;
2228
+ */
2229
+ operation?: Operation | undefined;
2230
+
2231
+ /**
2232
+ * @generated from field: repeated publish.v1.BreakingChange breaking_changes = 2;
2233
+ */
2234
+ breakingChanges: BreakingChange[];
2235
+ };
2236
+
2237
+ /**
2238
+ * Describes the message operations.v1.PublishOperationResponse.
2239
+ * Use `create(PublishOperationResponseSchema)` to create a new message.
2240
+ */
2241
+ export declare const PublishOperationResponseSchema: GenMessage<PublishOperationResponse>;
2242
+
2243
+ /**
2244
+ * @generated from message operations.v1.UnpublishOperationRequest
2245
+ */
2246
+ export declare type UnpublishOperationRequest = Message<"operations.v1.UnpublishOperationRequest"> & {
2247
+ /**
2248
+ * @generated from field: string id = 1;
2249
+ */
2250
+ id: string;
2251
+ };
2252
+
2253
+ /**
2254
+ * Describes the message operations.v1.UnpublishOperationRequest.
2255
+ * Use `create(UnpublishOperationRequestSchema)` to create a new message.
2256
+ */
2257
+ export declare const UnpublishOperationRequestSchema: GenMessage<UnpublishOperationRequest>;
2258
+
2259
+ /**
2260
+ * @generated from message operations.v1.UnpublishOperationResponse
2261
+ */
2262
+ export declare type UnpublishOperationResponse = Message<"operations.v1.UnpublishOperationResponse"> & {
2263
+ /**
2264
+ * @generated from field: operations.v1.Operation operation = 1;
2265
+ */
2266
+ operation?: Operation | undefined;
2267
+ };
2268
+
2269
+ /**
2270
+ * Describes the message operations.v1.UnpublishOperationResponse.
2271
+ * Use `create(UnpublishOperationResponseSchema)` to create a new message.
2272
+ */
2273
+ export declare const UnpublishOperationResponseSchema: GenMessage<UnpublishOperationResponse>;
2274
+
2275
+ /**
2276
+ * @generated from message operations.v1.GetOperationPublishStatusRequest
2277
+ */
2278
+ export declare type GetOperationPublishStatusRequest = Message<"operations.v1.GetOperationPublishStatusRequest"> & {
2279
+ /**
2280
+ * @generated from field: string id = 1;
2281
+ */
2282
+ id: string;
2283
+ };
2284
+
2285
+ /**
2286
+ * Describes the message operations.v1.GetOperationPublishStatusRequest.
2287
+ * Use `create(GetOperationPublishStatusRequestSchema)` to create a new message.
2288
+ */
2289
+ export declare const GetOperationPublishStatusRequestSchema: GenMessage<GetOperationPublishStatusRequest>;
2290
+
2291
+ /**
2292
+ * @generated from message operations.v1.GetOperationPublishStatusResponse
2293
+ */
2294
+ export declare type GetOperationPublishStatusResponse = Message<"operations.v1.GetOperationPublishStatusResponse"> & {
2295
+ /**
2296
+ * @generated from field: publish.v1.PublishStatus status = 1;
2297
+ */
2298
+ status?: PublishStatus | undefined;
2299
+ };
2300
+
2301
+ /**
2302
+ * Describes the message operations.v1.GetOperationPublishStatusResponse.
2303
+ * Use `create(GetOperationPublishStatusResponseSchema)` to create a new message.
2304
+ */
2305
+ export declare const GetOperationPublishStatusResponseSchema: GenMessage<GetOperationPublishStatusResponse>;
2306
+
2000
2307
  /**
2001
2308
  * Execution mode.
2002
2309
  *
@@ -2279,5 +2586,61 @@ export declare const OperationsService: GenService<{
2279
2586
  input: typeof RegenerateSigningSecretRequestSchema;
2280
2587
  output: typeof RegenerateSigningSecretResponseSchema;
2281
2588
  },
2589
+ /**
2590
+ * Versioning. Operations now carry version history, mirroring models.
2591
+ * Edits create a new version row; the published_version_id pointer is
2592
+ * promoted via PublishOperation.
2593
+ *
2594
+ * @generated from rpc operations.v1.OperationsService.GetOperationVersion
2595
+ */
2596
+ getOperationVersion: {
2597
+ methodKind: "unary";
2598
+ input: typeof GetOperationVersionRequestSchema;
2599
+ output: typeof GetOperationVersionResponseSchema;
2600
+ },
2601
+ /**
2602
+ * @generated from rpc operations.v1.OperationsService.ListOperationVersions
2603
+ */
2604
+ listOperationVersions: {
2605
+ methodKind: "unary";
2606
+ input: typeof ListOperationVersionsRequestSchema;
2607
+ output: typeof ListOperationVersionsResponseSchema;
2608
+ },
2609
+ /**
2610
+ * @generated from rpc operations.v1.OperationsService.RestoreOperationVersion
2611
+ */
2612
+ restoreOperationVersion: {
2613
+ methodKind: "unary";
2614
+ input: typeof RestoreOperationVersionRequestSchema;
2615
+ output: typeof RestoreOperationVersionResponseSchema;
2616
+ },
2617
+ /**
2618
+ * Schema publishing. Promotes the current draft version to published —
2619
+ * the public GraphQL schema rebuilds against the new state for pk_*
2620
+ * callers. Unpublish removes the operation from the public schema.
2621
+ *
2622
+ * @generated from rpc operations.v1.OperationsService.PublishOperation
2623
+ */
2624
+ publishOperation: {
2625
+ methodKind: "unary";
2626
+ input: typeof PublishOperationRequestSchema;
2627
+ output: typeof PublishOperationResponseSchema;
2628
+ },
2629
+ /**
2630
+ * @generated from rpc operations.v1.OperationsService.UnpublishOperation
2631
+ */
2632
+ unpublishOperation: {
2633
+ methodKind: "unary";
2634
+ input: typeof UnpublishOperationRequestSchema;
2635
+ output: typeof UnpublishOperationResponseSchema;
2636
+ },
2637
+ /**
2638
+ * @generated from rpc operations.v1.OperationsService.GetOperationPublishStatus
2639
+ */
2640
+ getOperationPublishStatus: {
2641
+ methodKind: "unary";
2642
+ input: typeof GetOperationPublishStatusRequestSchema;
2643
+ output: typeof GetOperationPublishStatusResponseSchema;
2644
+ },
2282
2645
  }>;
2283
2646