@alis-build/alis-open-operations-v1 1.11.0 → 1.12.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.
@@ -1,7 +1,22 @@
1
- // @generated by protoc-gen-es v2.13.0 with parameter "target=js+dts,import_extension=js,json_types=true"
1
+ // @generated by protoc-gen-es v2.16.0 with parameter "target=js+dts,import_extension=js,json_types=true"
2
2
  // @generated from file alis/open/operations/v1/operations.proto (package alis.open.operations.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
 
5
+ // A long-running operation resource that also carries the server-side state
6
+ // needed to run and resume the work.
7
+ //
8
+ // `Operation` keeps the fields of `google.longrunning.Operation` (`name`,
9
+ // `metadata`, `done`, and the `result` oneof of `error` or `response`) with
10
+ // the same field numbers, and adds:
11
+ //
12
+ // - `method`: the RPC that started the operation, e.g.
13
+ // `/alis.open.iam.v1.UsersService/SyncUser`.
14
+ // - `checkpoint` and `internal_state`: progress used to pause and resume the
15
+ // operation. `internal_state` is not returned to clients.
16
+ // - `runner`: what runs the operation, currently a Google Cloud Tasks task
17
+ // (`CloudTask`).
18
+ // - `create_time` and `update_time`.
19
+
5
20
  import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
21
  import type { Message } from "@bufbuild/protobuf";
7
22
  import type { Any, AnyJson, Timestamp, TimestampJson } from "@bufbuild/protobuf/wkt";
@@ -13,35 +28,66 @@ import type { Status, StatusJson } from "@alis-build/google-rpc/google/rpc/statu
13
28
  export declare const file_alis_open_operations_v1_operations: GenFile;
14
29
 
15
30
  /**
31
+ * This resource represents a long-running operation that is the result of a
32
+ * network API call.
33
+ *
16
34
  * @generated from message alis.open.operations.v1.Operation
17
35
  */
18
36
  export declare type Operation = Message<"alis.open.operations.v1.Operation"> & {
19
37
  /**
38
+ * The server-assigned name, which is only unique within the same service that
39
+ * originally returns it. If you use the default HTTP mapping, the
40
+ * `name` should be a resource name ending with `operations/{unique_id}`.
41
+ *
20
42
  * @generated from field: string name = 1;
21
43
  */
22
44
  name: string;
23
45
 
24
46
  /**
47
+ * Service-specific metadata associated with the operation. It typically
48
+ * contains progress information and common metadata such as create time.
49
+ * Some services might not provide such metadata. Any method that returns a
50
+ * long-running operation should document the metadata type, if any.
51
+ *
25
52
  * @generated from field: google.protobuf.Any metadata = 2;
26
53
  */
27
54
  metadata?: Any | undefined;
28
55
 
29
56
  /**
57
+ * If the value is `false`, it means the operation is still in progress.
58
+ * If `true`, the operation is completed, and either `error` or `response` is
59
+ * available.
60
+ *
30
61
  * @generated from field: bool done = 3;
31
62
  */
32
63
  done: boolean;
33
64
 
34
65
  /**
66
+ * The operation result, which can be either an `error` or a valid `response`.
67
+ * If `done` == `false`, neither `error` nor `response` is set.
68
+ * If `done` == `true`, exactly one of `error` or `response` is set.
69
+ *
35
70
  * @generated from oneof alis.open.operations.v1.Operation.result
36
71
  */
37
72
  result: {
38
73
  /**
74
+ * The error result of the operation in case of failure or cancellation.
75
+ *
39
76
  * @generated from field: google.rpc.Status error = 4;
40
77
  */
41
78
  value: Status;
42
79
  case: "error";
43
80
  } | {
44
81
  /**
82
+ * The normal response of the operation in case of success. If the original
83
+ * method returns no data on success, such as `Delete`, the response is
84
+ * `google.protobuf.Empty`. If the original method is standard
85
+ * `Get`/`Create`/`Update`, the response should be the resource. For other
86
+ * methods, the response should have the type `XxxResponse`, where `Xxx`
87
+ * is the original method name. For example, if the original method name
88
+ * is `TakeSnapshot()`, the inferred response type is
89
+ * `TakeSnapshotResponse`.
90
+ *
45
91
  * @generated from field: google.protobuf.Any response = 5;
46
92
  */
47
93
  value: Any;
@@ -49,25 +95,41 @@ export declare type Operation = Message<"alis.open.operations.v1.Operation"> & {
49
95
  } | { case: undefined; value?: undefined };
50
96
 
51
97
  /**
98
+ * The method in which the operation was initiated.
99
+ * e.g. /alis.open.iam.v1.UsersService/SyncUser
100
+ * Useful for searching for operations related to a specific method.
101
+ *
52
102
  * @generated from field: string method = 6;
53
103
  */
54
104
  method: string;
55
105
 
56
106
  /**
107
+ * The checkpoint of the operation.
108
+ * Useful for pausing and resuming the operation.
109
+ *
57
110
  * @generated from field: string checkpoint = 9;
58
111
  */
59
112
  checkpoint: string;
60
113
 
61
114
  /**
115
+ * The internal state of the operation.
116
+ * Not returned to a client that requests the operation.
117
+ * Not limited to protocol buffer messages, e.g. could also use normal go structs via the encoding/gob package.
118
+ *
62
119
  * @generated from field: bytes internal_state = 10;
63
120
  */
64
121
  internalState: Uint8Array;
65
122
 
66
123
  /**
124
+ * The runner of the operation
125
+ *
67
126
  * @generated from oneof alis.open.operations.v1.Operation.runner
68
127
  */
69
128
  runner: {
70
129
  /**
130
+ * The Google Cloud Task running the operation.
131
+ * Useful for tracking/canceling the operation.
132
+ *
71
133
  * @generated from field: alis.open.operations.v1.Operation.CloudTask cloud_task = 11;
72
134
  */
73
135
  value: Operation_CloudTask;
@@ -75,71 +137,120 @@ export declare type Operation = Message<"alis.open.operations.v1.Operation"> & {
75
137
  } | { case: undefined; value?: undefined };
76
138
 
77
139
  /**
140
+ * The time the operation was created.
141
+ *
78
142
  * @generated from field: google.protobuf.Timestamp create_time = 98;
79
143
  */
80
144
  createTime?: Timestamp | undefined;
81
145
 
82
146
  /**
147
+ * The time the operation was last updated.
148
+ *
83
149
  * @generated from field: google.protobuf.Timestamp update_time = 99;
84
150
  */
85
151
  updateTime?: Timestamp | undefined;
86
152
  };
87
153
 
88
154
  /**
155
+ * This resource represents a long-running operation that is the result of a
156
+ * network API call.
157
+ *
89
158
  * @generated from message alis.open.operations.v1.Operation
90
159
  */
91
160
  export declare type OperationJson = {
92
161
  /**
162
+ * The server-assigned name, which is only unique within the same service that
163
+ * originally returns it. If you use the default HTTP mapping, the
164
+ * `name` should be a resource name ending with `operations/{unique_id}`.
165
+ *
93
166
  * @generated from field: string name = 1;
94
167
  */
95
168
  name?: string;
96
169
 
97
170
  /**
171
+ * Service-specific metadata associated with the operation. It typically
172
+ * contains progress information and common metadata such as create time.
173
+ * Some services might not provide such metadata. Any method that returns a
174
+ * long-running operation should document the metadata type, if any.
175
+ *
98
176
  * @generated from field: google.protobuf.Any metadata = 2;
99
177
  */
100
178
  metadata?: AnyJson;
101
179
 
102
180
  /**
181
+ * If the value is `false`, it means the operation is still in progress.
182
+ * If `true`, the operation is completed, and either `error` or `response` is
183
+ * available.
184
+ *
103
185
  * @generated from field: bool done = 3;
104
186
  */
105
187
  done?: boolean;
106
188
 
107
189
  /**
190
+ * The error result of the operation in case of failure or cancellation.
191
+ *
108
192
  * @generated from field: google.rpc.Status error = 4;
109
193
  */
110
194
  error?: StatusJson;
111
195
 
112
196
  /**
197
+ * The normal response of the operation in case of success. If the original
198
+ * method returns no data on success, such as `Delete`, the response is
199
+ * `google.protobuf.Empty`. If the original method is standard
200
+ * `Get`/`Create`/`Update`, the response should be the resource. For other
201
+ * methods, the response should have the type `XxxResponse`, where `Xxx`
202
+ * is the original method name. For example, if the original method name
203
+ * is `TakeSnapshot()`, the inferred response type is
204
+ * `TakeSnapshotResponse`.
205
+ *
113
206
  * @generated from field: google.protobuf.Any response = 5;
114
207
  */
115
208
  response?: AnyJson;
116
209
 
117
210
  /**
211
+ * The method in which the operation was initiated.
212
+ * e.g. /alis.open.iam.v1.UsersService/SyncUser
213
+ * Useful for searching for operations related to a specific method.
214
+ *
118
215
  * @generated from field: string method = 6;
119
216
  */
120
217
  method?: string;
121
218
 
122
219
  /**
220
+ * The checkpoint of the operation.
221
+ * Useful for pausing and resuming the operation.
222
+ *
123
223
  * @generated from field: string checkpoint = 9;
124
224
  */
125
225
  checkpoint?: string;
126
226
 
127
227
  /**
228
+ * The internal state of the operation.
229
+ * Not returned to a client that requests the operation.
230
+ * Not limited to protocol buffer messages, e.g. could also use normal go structs via the encoding/gob package.
231
+ *
128
232
  * @generated from field: bytes internal_state = 10;
129
233
  */
130
234
  internalState?: string;
131
235
 
132
236
  /**
237
+ * The Google Cloud Task running the operation.
238
+ * Useful for tracking/canceling the operation.
239
+ *
133
240
  * @generated from field: alis.open.operations.v1.Operation.CloudTask cloud_task = 11;
134
241
  */
135
242
  cloudTask?: Operation_CloudTaskJson;
136
243
 
137
244
  /**
245
+ * The time the operation was created.
246
+ *
138
247
  * @generated from field: google.protobuf.Timestamp create_time = 98;
139
248
  */
140
249
  createTime?: TimestampJson;
141
250
 
142
251
  /**
252
+ * The time the operation was last updated.
253
+ *
143
254
  * @generated from field: google.protobuf.Timestamp update_time = 99;
144
255
  */
145
256
  updateTime?: TimestampJson;
@@ -152,60 +263,88 @@ export declare type OperationJson = {
152
263
  export declare const OperationSchema: GenMessage<Operation, {jsonType: OperationJson}>;
153
264
 
154
265
  /**
266
+ * A Google Cloud Task used to run an operation
267
+ *
155
268
  * @generated from message alis.open.operations.v1.Operation.CloudTask
156
269
  */
157
270
  export declare type Operation_CloudTask = Message<"alis.open.operations.v1.Operation.CloudTask"> & {
158
271
  /**
272
+ * The full name of the task
273
+ * Format: projects/{project}/locations/{location}/queues/{queue}/tasks/{task}
274
+ *
159
275
  * @generated from field: string name = 1;
160
276
  */
161
277
  name: string;
162
278
 
163
279
  /**
280
+ * The time the task is scheduled to run
281
+ *
164
282
  * @generated from field: google.protobuf.Timestamp schedule_time = 2;
165
283
  */
166
284
  scheduleTime?: Timestamp | undefined;
167
285
 
168
286
  /**
287
+ * The time the task was created
288
+ *
169
289
  * @generated from field: google.protobuf.Timestamp create_time = 3;
170
290
  */
171
291
  createTime?: Timestamp | undefined;
172
292
 
173
293
  /**
294
+ * Whether the task is currently running
295
+ *
174
296
  * @generated from field: bool running = 4;
175
297
  */
176
298
  running: boolean;
177
299
 
178
300
  /**
301
+ * The target host setup for the task to make requests to.
302
+ * Normally https://internal-gateway-{projectNr}.{region}.run.app
303
+ *
179
304
  * @generated from field: string target_host = 5;
180
305
  */
181
306
  targetHost: string;
182
307
  };
183
308
 
184
309
  /**
310
+ * A Google Cloud Task used to run an operation
311
+ *
185
312
  * @generated from message alis.open.operations.v1.Operation.CloudTask
186
313
  */
187
314
  export declare type Operation_CloudTaskJson = {
188
315
  /**
316
+ * The full name of the task
317
+ * Format: projects/{project}/locations/{location}/queues/{queue}/tasks/{task}
318
+ *
189
319
  * @generated from field: string name = 1;
190
320
  */
191
321
  name?: string;
192
322
 
193
323
  /**
324
+ * The time the task is scheduled to run
325
+ *
194
326
  * @generated from field: google.protobuf.Timestamp schedule_time = 2;
195
327
  */
196
328
  scheduleTime?: TimestampJson;
197
329
 
198
330
  /**
331
+ * The time the task was created
332
+ *
199
333
  * @generated from field: google.protobuf.Timestamp create_time = 3;
200
334
  */
201
335
  createTime?: TimestampJson;
202
336
 
203
337
  /**
338
+ * Whether the task is currently running
339
+ *
204
340
  * @generated from field: bool running = 4;
205
341
  */
206
342
  running?: boolean;
207
343
 
208
344
  /**
345
+ * The target host setup for the task to make requests to.
346
+ * Normally https://internal-gateway-{projectNr}.{region}.run.app
347
+ *
209
348
  * @generated from field: string target_host = 5;
210
349
  */
211
350
  targetHost?: string;
@@ -1,7 +1,22 @@
1
- // @generated by protoc-gen-es v2.13.0 with parameter "target=js+dts,import_extension=js,json_types=true"
1
+ // @generated by protoc-gen-es v2.16.0 with parameter "target=js+dts,import_extension=js,json_types=true"
2
2
  // @generated from file alis/open/operations/v1/operations.proto (package alis.open.operations.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
 
5
+ // A long-running operation resource that also carries the server-side state
6
+ // needed to run and resume the work.
7
+ //
8
+ // `Operation` keeps the fields of `google.longrunning.Operation` (`name`,
9
+ // `metadata`, `done`, and the `result` oneof of `error` or `response`) with
10
+ // the same field numbers, and adds:
11
+ //
12
+ // - `method`: the RPC that started the operation, e.g.
13
+ // `/alis.open.iam.v1.UsersService/SyncUser`.
14
+ // - `checkpoint` and `internal_state`: progress used to pause and resume the
15
+ // operation. `internal_state` is not returned to clients.
16
+ // - `runner`: what runs the operation, currently a Google Cloud Tasks task
17
+ // (`CloudTask`).
18
+ // - `create_time` and `update_time`.
19
+
5
20
  import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
6
21
  import { file_google_protobuf_any, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
7
22
  import { file_google_rpc_status } from "@alis-build/google-rpc/google/rpc/status_pb.js";
package/package.json CHANGED
@@ -25,5 +25,5 @@
25
25
  },
26
26
  "type": "module",
27
27
  "types": "./index.d.ts",
28
- "version": "1.11.0"
28
+ "version": "1.12.0"
29
29
  }