@alis-build/alis-open-flows-v1 1.11.0 → 1.13.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,28 @@
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/flows/v1/flows.proto (package alis.open.flows.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
 
5
+ // Records the steps an API request goes through while it runs, so clients can
6
+ // follow the progress of the underlying business logic.
7
+ //
8
+ // `FlowsService` exposes one resource:
9
+ //
10
+ // - `Flow` (`flows/{flow}`, where `{flow}` is 32 lowercase hex characters):
11
+ // the journey of one API request, identified by the method that produced it
12
+ // (`source`) and made up of `Flow.Step`s, each with its own `State`.
13
+ //
14
+ // Flows nest. A flow can be the child of a step in another flow, in which case
15
+ // `parent_id` holds `{flow_id}-{step_id}`, the same format as the
16
+ // `x-alis-flow-parent` header. `ListFlows` and `StreamFlows` return the flows
17
+ // under a parent flow, or root flows when no parent is set. `GenerateFlowTree`
18
+ // returns a flow with its descendants populated in the output-only
19
+ // `Step.children`, plus the children of the leaf steps so the tree can be
20
+ // expanded on demand.
21
+ //
22
+ // The service also consumes Pub/Sub push messages
23
+ // (`alis.open.pubsub.v1.PubSubMessage`) through `HandleEvent` and
24
+ // `HandleDeadLetter`.
25
+
5
26
  import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
27
  import type { Message } from "@bufbuild/protobuf";
7
28
  import type { EmptySchema, FieldMask, FieldMaskJson, Timestamp, TimestampJson } from "@bufbuild/protobuf/wkt";
@@ -13,80 +34,126 @@ import type { PubSubMessageSchema } from "@alis-build/alis-open-pubsub-v1/alis/o
13
34
  export declare const file_alis_open_flows_v1_flows: GenFile;
14
35
 
15
36
  /**
37
+ * A Flow represents the entire journey of an API request, from its initial receipt to the final
38
+ * response generation. It encapsulates the sequence of operations and transformations that
39
+ * occur during the processing of the request.
40
+ *
16
41
  * @generated from message alis.open.flows.v1.Flow
17
42
  */
18
43
  export declare type Flow = Message<"alis.open.flows.v1.Flow"> & {
19
44
  /**
45
+ * Identifies the particular flow message.
46
+ * Format: flows/0af7651916cd43dd8448eb211c80319c (32 lowercase hex characters)
47
+ *
20
48
  * @generated from field: string name = 1;
21
49
  */
22
50
  name: string;
23
51
 
24
52
  /**
53
+ * The fully qualified name of the method that produces the flow.
54
+ * Example: alis.os.resources.products.v1.ProductsService/CreateProduct
55
+ *
25
56
  * @generated from field: string source = 2;
26
57
  */
27
58
  source: string;
28
59
 
29
60
  /**
61
+ * A reference to the parent of the Flow.
62
+ * Within a current flow the header may contain the relevant parent in the header: `x-alis-flow-parent`
63
+ * Format: {flow_id}-{step_id}
64
+ * Header example: 0af7651916cd43dd8448eb211c80319c-0, represents step with id 0
65
+ *
30
66
  * @generated from field: string parent_id = 3;
31
67
  */
32
68
  parentId: string;
33
69
 
34
70
  /**
71
+ * A sequence of steps
72
+ *
35
73
  * @generated from field: repeated alis.open.flows.v1.Flow.Step steps = 7;
36
74
  */
37
75
  steps: Flow_Step[];
38
76
 
39
77
  /**
78
+ * The time at which the Flow was created.
79
+ *
40
80
  * @generated from field: google.protobuf.Timestamp create_time = 97;
41
81
  */
42
82
  createTime?: Timestamp | undefined;
43
83
 
44
84
  /**
85
+ * The time at which the Flow was last updated.
86
+ *
45
87
  * @generated from field: google.protobuf.Timestamp update_time = 98;
46
88
  */
47
89
  updateTime?: Timestamp | undefined;
48
90
 
49
91
  /**
92
+ * The time at which the Flow was published.
93
+ *
50
94
  * @generated from field: google.protobuf.Timestamp publish_time = 99;
51
95
  */
52
96
  publishTime?: Timestamp | undefined;
53
97
  };
54
98
 
55
99
  /**
100
+ * A Flow represents the entire journey of an API request, from its initial receipt to the final
101
+ * response generation. It encapsulates the sequence of operations and transformations that
102
+ * occur during the processing of the request.
103
+ *
56
104
  * @generated from message alis.open.flows.v1.Flow
57
105
  */
58
106
  export declare type FlowJson = {
59
107
  /**
108
+ * Identifies the particular flow message.
109
+ * Format: flows/0af7651916cd43dd8448eb211c80319c (32 lowercase hex characters)
110
+ *
60
111
  * @generated from field: string name = 1;
61
112
  */
62
113
  name?: string;
63
114
 
64
115
  /**
116
+ * The fully qualified name of the method that produces the flow.
117
+ * Example: alis.os.resources.products.v1.ProductsService/CreateProduct
118
+ *
65
119
  * @generated from field: string source = 2;
66
120
  */
67
121
  source?: string;
68
122
 
69
123
  /**
124
+ * A reference to the parent of the Flow.
125
+ * Within a current flow the header may contain the relevant parent in the header: `x-alis-flow-parent`
126
+ * Format: {flow_id}-{step_id}
127
+ * Header example: 0af7651916cd43dd8448eb211c80319c-0, represents step with id 0
128
+ *
70
129
  * @generated from field: string parent_id = 3;
71
130
  */
72
131
  parentId?: string;
73
132
 
74
133
  /**
134
+ * A sequence of steps
135
+ *
75
136
  * @generated from field: repeated alis.open.flows.v1.Flow.Step steps = 7;
76
137
  */
77
138
  steps?: Flow_StepJson[];
78
139
 
79
140
  /**
141
+ * The time at which the Flow was created.
142
+ *
80
143
  * @generated from field: google.protobuf.Timestamp create_time = 97;
81
144
  */
82
145
  createTime?: TimestampJson;
83
146
 
84
147
  /**
148
+ * The time at which the Flow was last updated.
149
+ *
85
150
  * @generated from field: google.protobuf.Timestamp update_time = 98;
86
151
  */
87
152
  updateTime?: TimestampJson;
88
153
 
89
154
  /**
155
+ * The time at which the Flow was published.
156
+ *
90
157
  * @generated from field: google.protobuf.Timestamp publish_time = 99;
91
158
  */
92
159
  publishTime?: TimestampJson;
@@ -99,80 +166,142 @@ export declare type FlowJson = {
99
166
  export declare const FlowSchema: GenMessage<Flow, {jsonType: FlowJson}>;
100
167
 
101
168
  /**
169
+ * A Step is a single, distinct action or operation that contributes to the
170
+ * overall Flow. It's a building block of the larger process, representing
171
+ * a specific stage or task within the API's business logic.
172
+ *
102
173
  * @generated from message alis.open.flows.v1.Flow.Step
103
174
  */
104
175
  export declare type Flow_Step = Message<"alis.open.flows.v1.Flow.Step"> & {
105
176
  /**
177
+ * The unique name of the step.
178
+ * The Id is provided by the user at runtime and may be used to create structure
179
+ * within a set of steps, for example:
180
+ * - 1 Prepare data
181
+ * - 1.1 Approved by Operator
182
+ * - 1.2 Approved by Manager
183
+ * - 1 Validate data
184
+ * - etc.
185
+ * Example: my_subprocess
186
+ * Example: 1.1
187
+ *
106
188
  * @generated from field: string id = 1;
107
189
  */
108
190
  id: string;
109
191
 
110
192
  /**
193
+ * Title of the step.
194
+ *
111
195
  * @generated from field: string title = 2;
112
196
  */
113
197
  title: string;
114
198
 
115
199
  /**
200
+ * A short description of the step
201
+ *
116
202
  * @generated from field: string description = 3;
117
203
  */
118
204
  description: string;
119
205
 
120
206
  /**
207
+ * The state of the step
208
+ *
121
209
  * @generated from field: alis.open.flows.v1.Flow.Step.State state = 4;
122
210
  */
123
211
  state: Flow_Step_State;
124
212
 
125
213
  /**
214
+ * Flow children originating from this step.
215
+ * A step may have multiple children, each representing a different path or outcome.
216
+ *
217
+ * This field is OUTPUT ONLY and is not persisted in the database.
218
+ * It is only populated by the GenerateFlowTree method.
219
+ *
126
220
  * @generated from field: repeated alis.open.flows.v1.Flow children = 8;
127
221
  */
128
222
  children: Flow[];
129
223
 
130
224
  /**
225
+ * The time at which the Step was created.
226
+ *
131
227
  * @generated from field: google.protobuf.Timestamp create_time = 9;
132
228
  */
133
229
  createTime?: Timestamp | undefined;
134
230
 
135
231
  /**
232
+ * The time at which the Step was updated.
233
+ *
136
234
  * @generated from field: google.protobuf.Timestamp update_time = 10;
137
235
  */
138
236
  updateTime?: Timestamp | undefined;
139
237
  };
140
238
 
141
239
  /**
240
+ * A Step is a single, distinct action or operation that contributes to the
241
+ * overall Flow. It's a building block of the larger process, representing
242
+ * a specific stage or task within the API's business logic.
243
+ *
142
244
  * @generated from message alis.open.flows.v1.Flow.Step
143
245
  */
144
246
  export declare type Flow_StepJson = {
145
247
  /**
248
+ * The unique name of the step.
249
+ * The Id is provided by the user at runtime and may be used to create structure
250
+ * within a set of steps, for example:
251
+ * - 1 Prepare data
252
+ * - 1.1 Approved by Operator
253
+ * - 1.2 Approved by Manager
254
+ * - 1 Validate data
255
+ * - etc.
256
+ * Example: my_subprocess
257
+ * Example: 1.1
258
+ *
146
259
  * @generated from field: string id = 1;
147
260
  */
148
261
  id?: string;
149
262
 
150
263
  /**
264
+ * Title of the step.
265
+ *
151
266
  * @generated from field: string title = 2;
152
267
  */
153
268
  title?: string;
154
269
 
155
270
  /**
271
+ * A short description of the step
272
+ *
156
273
  * @generated from field: string description = 3;
157
274
  */
158
275
  description?: string;
159
276
 
160
277
  /**
278
+ * The state of the step
279
+ *
161
280
  * @generated from field: alis.open.flows.v1.Flow.Step.State state = 4;
162
281
  */
163
282
  state?: Flow_Step_StateJson;
164
283
 
165
284
  /**
285
+ * Flow children originating from this step.
286
+ * A step may have multiple children, each representing a different path or outcome.
287
+ *
288
+ * This field is OUTPUT ONLY and is not persisted in the database.
289
+ * It is only populated by the GenerateFlowTree method.
290
+ *
166
291
  * @generated from field: repeated alis.open.flows.v1.Flow children = 8;
167
292
  */
168
293
  children?: FlowJson[];
169
294
 
170
295
  /**
296
+ * The time at which the Step was created.
297
+ *
171
298
  * @generated from field: google.protobuf.Timestamp create_time = 9;
172
299
  */
173
300
  createTime?: TimestampJson;
174
301
 
175
302
  /**
303
+ * The time at which the Step was updated.
304
+ *
176
305
  * @generated from field: google.protobuf.Timestamp update_time = 10;
177
306
  */
178
307
  updateTime?: TimestampJson;
@@ -185,46 +314,64 @@ export declare type Flow_StepJson = {
185
314
  export declare const Flow_StepSchema: GenMessage<Flow_Step, {jsonType: Flow_StepJson}>;
186
315
 
187
316
  /**
317
+ * The lifecycle state of a step.
318
+ *
188
319
  * @generated from enum alis.open.flows.v1.Flow.Step.State
189
320
  */
190
321
  export enum Flow_Step_State {
191
322
  /**
323
+ * State is not specified
324
+ *
192
325
  * @generated from enum value: STATE_UNSPECIFIED = 0;
193
326
  */
194
327
  STATE_UNSPECIFIED = 0,
195
328
 
196
329
  /**
330
+ * The step has been queued
331
+ *
197
332
  * @generated from enum value: QUEUED = 1;
198
333
  */
199
334
  QUEUED = 1,
200
335
 
201
336
  /**
337
+ * The step is in progress
338
+ *
202
339
  * @generated from enum value: IN_PROGRESS = 2;
203
340
  */
204
341
  IN_PROGRESS = 2,
205
342
 
206
343
  /**
344
+ * The step has been cancelled
345
+ *
207
346
  * @generated from enum value: CANCELLED = 3;
208
347
  */
209
348
  CANCELLED = 3,
210
349
 
211
350
  /**
351
+ * The step is complete
352
+ *
212
353
  * @generated from enum value: COMPLETED = 4;
213
354
  */
214
355
  COMPLETED = 4,
215
356
 
216
357
  /**
358
+ * The step failed
359
+ *
217
360
  * @generated from enum value: FAILED = 5;
218
361
  */
219
362
  FAILED = 5,
220
363
 
221
364
  /**
365
+ * The step is awaiting human review or input
366
+ *
222
367
  * @generated from enum value: AWAITING_INPUT = 6;
223
368
  */
224
369
  AWAITING_INPUT = 6,
225
370
  }
226
371
 
227
372
  /**
373
+ * The lifecycle state of a step.
374
+ *
228
375
  * @generated from enum alis.open.flows.v1.Flow.Step.State
229
376
  */
230
377
  export declare type Flow_Step_StateJson = "STATE_UNSPECIFIED" | "QUEUED" | "IN_PROGRESS" | "CANCELLED" | "COMPLETED" | "FAILED" | "AWAITING_INPUT";
@@ -235,30 +382,44 @@ export declare type Flow_Step_StateJson = "STATE_UNSPECIFIED" | "QUEUED" | "IN_P
235
382
  export declare const Flow_Step_StateSchema: GenEnum<Flow_Step_State, Flow_Step_StateJson>;
236
383
 
237
384
  /**
385
+ * Request message for [alis.open.flows.v1.FlowsService/GetFlow]
386
+ *
238
387
  * @generated from message alis.open.flows.v1.GetFlowRequest
239
388
  */
240
389
  export declare type GetFlowRequest = Message<"alis.open.flows.v1.GetFlowRequest"> & {
241
390
  /**
391
+ * The name of the Flow resource
392
+ *
242
393
  * @generated from field: string name = 1;
243
394
  */
244
395
  name: string;
245
396
 
246
397
  /**
398
+ * The fields to return in snake_case, as defined in the proto
399
+ * All fields are returned if not provided
400
+ *
247
401
  * @generated from field: google.protobuf.FieldMask read_mask = 2;
248
402
  */
249
403
  readMask?: FieldMask | undefined;
250
404
  };
251
405
 
252
406
  /**
407
+ * Request message for [alis.open.flows.v1.FlowsService/GetFlow]
408
+ *
253
409
  * @generated from message alis.open.flows.v1.GetFlowRequest
254
410
  */
255
411
  export declare type GetFlowRequestJson = {
256
412
  /**
413
+ * The name of the Flow resource
414
+ *
257
415
  * @generated from field: string name = 1;
258
416
  */
259
417
  name?: string;
260
418
 
261
419
  /**
420
+ * The fields to return in snake_case, as defined in the proto
421
+ * All fields are returned if not provided
422
+ *
262
423
  * @generated from field: google.protobuf.FieldMask read_mask = 2;
263
424
  */
264
425
  readMask?: FieldMaskJson;
@@ -271,60 +432,104 @@ export declare type GetFlowRequestJson = {
271
432
  export declare const GetFlowRequestSchema: GenMessage<GetFlowRequest, {jsonType: GetFlowRequestJson}>;
272
433
 
273
434
  /**
435
+ * Request message for [alis.open.flows.v1.FlowsService/ListFlows]
436
+ *
274
437
  * @generated from message alis.open.flows.v1.ListFlowsRequest
275
438
  */
276
439
  export declare type ListFlowsRequest = Message<"alis.open.flows.v1.ListFlowsRequest"> & {
277
440
  /**
441
+ * The name of the parent flow.
442
+ * If not set, fetches all root flows.
443
+ *
278
444
  * @generated from field: string parent = 1;
279
445
  */
280
446
  parent: string;
281
447
 
282
448
  /**
449
+ * The maximum number of flows to return.
450
+ * The service may return fewer than this value.
451
+ * If unspecified, at most 1000 flows will be returned.
452
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
453
+ *
283
454
  * @generated from field: int32 page_size = 2;
284
455
  */
285
456
  pageSize: number;
286
457
 
287
458
  /**
459
+ * The page token to use when requesting the next page of results.
460
+ * This is typically received from a previous `ListFlows` call.
461
+ * Provide this to retrieve the subsequent page.
462
+ *
463
+ * When paginating, all other parameters provided to `ListFlows` must match
464
+ * the call that provided the page token.
465
+ *
288
466
  * @generated from field: string page_token = 3;
289
467
  */
290
468
  pageToken: string;
291
469
 
292
470
  /**
471
+ * The fields to return in snake_case, as defined in the proto
472
+ * All fields are returned if not provided
473
+ *
293
474
  * @generated from field: google.protobuf.FieldMask read_mask = 4;
294
475
  */
295
476
  readMask?: FieldMask | undefined;
296
477
 
297
478
  /**
479
+ * Optional filter string to filter results.
480
+ *
298
481
  * @generated from field: string filter = 5;
299
482
  */
300
483
  filter: string;
301
484
  };
302
485
 
303
486
  /**
487
+ * Request message for [alis.open.flows.v1.FlowsService/ListFlows]
488
+ *
304
489
  * @generated from message alis.open.flows.v1.ListFlowsRequest
305
490
  */
306
491
  export declare type ListFlowsRequestJson = {
307
492
  /**
493
+ * The name of the parent flow.
494
+ * If not set, fetches all root flows.
495
+ *
308
496
  * @generated from field: string parent = 1;
309
497
  */
310
498
  parent?: string;
311
499
 
312
500
  /**
501
+ * The maximum number of flows to return.
502
+ * The service may return fewer than this value.
503
+ * If unspecified, at most 1000 flows will be returned.
504
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
505
+ *
313
506
  * @generated from field: int32 page_size = 2;
314
507
  */
315
508
  pageSize?: number;
316
509
 
317
510
  /**
511
+ * The page token to use when requesting the next page of results.
512
+ * This is typically received from a previous `ListFlows` call.
513
+ * Provide this to retrieve the subsequent page.
514
+ *
515
+ * When paginating, all other parameters provided to `ListFlows` must match
516
+ * the call that provided the page token.
517
+ *
318
518
  * @generated from field: string page_token = 3;
319
519
  */
320
520
  pageToken?: string;
321
521
 
322
522
  /**
523
+ * The fields to return in snake_case, as defined in the proto
524
+ * All fields are returned if not provided
525
+ *
323
526
  * @generated from field: google.protobuf.FieldMask read_mask = 4;
324
527
  */
325
528
  readMask?: FieldMaskJson;
326
529
 
327
530
  /**
531
+ * Optional filter string to filter results.
532
+ *
328
533
  * @generated from field: string filter = 5;
329
534
  */
330
535
  filter?: string;
@@ -337,30 +542,44 @@ export declare type ListFlowsRequestJson = {
337
542
  export declare const ListFlowsRequestSchema: GenMessage<ListFlowsRequest, {jsonType: ListFlowsRequestJson}>;
338
543
 
339
544
  /**
545
+ * Response message for [alis.open.flows.v1.FlowsService/ListFlows]
546
+ *
340
547
  * @generated from message alis.open.flows.v1.ListFlowsResponse
341
548
  */
342
549
  export declare type ListFlowsResponse = Message<"alis.open.flows.v1.ListFlowsResponse"> & {
343
550
  /**
551
+ * The list of Flows.
552
+ *
344
553
  * @generated from field: repeated alis.open.flows.v1.Flow flows = 1;
345
554
  */
346
555
  flows: Flow[];
347
556
 
348
557
  /**
558
+ * The next page token.
559
+ * If empty, there are no more pages.
560
+ *
349
561
  * @generated from field: string next_page_token = 2;
350
562
  */
351
563
  nextPageToken: string;
352
564
  };
353
565
 
354
566
  /**
567
+ * Response message for [alis.open.flows.v1.FlowsService/ListFlows]
568
+ *
355
569
  * @generated from message alis.open.flows.v1.ListFlowsResponse
356
570
  */
357
571
  export declare type ListFlowsResponseJson = {
358
572
  /**
573
+ * The list of Flows.
574
+ *
359
575
  * @generated from field: repeated alis.open.flows.v1.Flow flows = 1;
360
576
  */
361
577
  flows?: FlowJson[];
362
578
 
363
579
  /**
580
+ * The next page token.
581
+ * If empty, there are no more pages.
582
+ *
364
583
  * @generated from field: string next_page_token = 2;
365
584
  */
366
585
  nextPageToken?: string;
@@ -373,30 +592,46 @@ export declare type ListFlowsResponseJson = {
373
592
  export declare const ListFlowsResponseSchema: GenMessage<ListFlowsResponse, {jsonType: ListFlowsResponseJson}>;
374
593
 
375
594
  /**
595
+ * Request message for [alis.open.flows.v1.FlowsService/StreamFlows]
596
+ *
376
597
  * @generated from message alis.open.flows.v1.StreamFlowsRequest
377
598
  */
378
599
  export declare type StreamFlowsRequest = Message<"alis.open.flows.v1.StreamFlowsRequest"> & {
379
600
  /**
601
+ * The name of the parent flow.
602
+ * If not set, fetches all root flows.
603
+ *
380
604
  * @generated from field: string parent = 1;
381
605
  */
382
606
  parent: string;
383
607
 
384
608
  /**
609
+ * The fields to return in snake_case, as defined in the proto
610
+ * All fields are returned if not provided
611
+ *
385
612
  * @generated from field: google.protobuf.FieldMask read_mask = 2;
386
613
  */
387
614
  readMask?: FieldMask | undefined;
388
615
  };
389
616
 
390
617
  /**
618
+ * Request message for [alis.open.flows.v1.FlowsService/StreamFlows]
619
+ *
391
620
  * @generated from message alis.open.flows.v1.StreamFlowsRequest
392
621
  */
393
622
  export declare type StreamFlowsRequestJson = {
394
623
  /**
624
+ * The name of the parent flow.
625
+ * If not set, fetches all root flows.
626
+ *
395
627
  * @generated from field: string parent = 1;
396
628
  */
397
629
  parent?: string;
398
630
 
399
631
  /**
632
+ * The fields to return in snake_case, as defined in the proto
633
+ * All fields are returned if not provided
634
+ *
400
635
  * @generated from field: google.protobuf.FieldMask read_mask = 2;
401
636
  */
402
637
  readMask?: FieldMaskJson;
@@ -409,50 +644,80 @@ export declare type StreamFlowsRequestJson = {
409
644
  export declare const StreamFlowsRequestSchema: GenMessage<StreamFlowsRequest, {jsonType: StreamFlowsRequestJson}>;
410
645
 
411
646
  /**
647
+ * Request message for [alis.open.flows.v1.FlowsService/GenerateFlowTree]
648
+ *
412
649
  * @generated from message alis.open.flows.v1.GenerateFlowTreeRequest
413
650
  */
414
651
  export declare type GenerateFlowTreeRequest = Message<"alis.open.flows.v1.GenerateFlowTreeRequest"> & {
415
652
  /**
653
+ * The fully qualified name of the parent Flow resource
654
+ * Format: flows/{flow_id}
655
+ * Example: flows/0af7651916cd43dd8448eb211c80319c
656
+ *
416
657
  * @generated from field: string name = 1;
417
658
  */
418
659
  name: string;
419
660
 
420
661
  /**
662
+ * The maximum depth of the tree to generate.
663
+ * The service may return fewer than this value.
664
+ * If unspecified, all levels up to a max of 20 will be returned.
665
+ *
421
666
  * @generated from field: int32 max_depth = 2;
422
667
  */
423
668
  maxDepth: number;
424
669
 
425
670
  /**
671
+ * The fields to return in snake_case, as defined in the proto
672
+ * All fields are returned if not provided
673
+ *
426
674
  * @generated from field: google.protobuf.FieldMask read_mask = 3;
427
675
  */
428
676
  readMask?: FieldMask | undefined;
429
677
 
430
678
  /**
679
+ * Optional filter string to filter results.
680
+ *
431
681
  * @generated from field: string filter = 4;
432
682
  */
433
683
  filter: string;
434
684
  };
435
685
 
436
686
  /**
687
+ * Request message for [alis.open.flows.v1.FlowsService/GenerateFlowTree]
688
+ *
437
689
  * @generated from message alis.open.flows.v1.GenerateFlowTreeRequest
438
690
  */
439
691
  export declare type GenerateFlowTreeRequestJson = {
440
692
  /**
693
+ * The fully qualified name of the parent Flow resource
694
+ * Format: flows/{flow_id}
695
+ * Example: flows/0af7651916cd43dd8448eb211c80319c
696
+ *
441
697
  * @generated from field: string name = 1;
442
698
  */
443
699
  name?: string;
444
700
 
445
701
  /**
702
+ * The maximum depth of the tree to generate.
703
+ * The service may return fewer than this value.
704
+ * If unspecified, all levels up to a max of 20 will be returned.
705
+ *
446
706
  * @generated from field: int32 max_depth = 2;
447
707
  */
448
708
  maxDepth?: number;
449
709
 
450
710
  /**
711
+ * The fields to return in snake_case, as defined in the proto
712
+ * All fields are returned if not provided
713
+ *
451
714
  * @generated from field: google.protobuf.FieldMask read_mask = 3;
452
715
  */
453
716
  readMask?: FieldMaskJson;
454
717
 
455
718
  /**
719
+ * Optional filter string to filter results.
720
+ *
456
721
  * @generated from field: string filter = 4;
457
722
  */
458
723
  filter?: string;
@@ -465,30 +730,46 @@ export declare type GenerateFlowTreeRequestJson = {
465
730
  export declare const GenerateFlowTreeRequestSchema: GenMessage<GenerateFlowTreeRequest, {jsonType: GenerateFlowTreeRequestJson}>;
466
731
 
467
732
  /**
733
+ * Response message for [alis.open.flows.v1.FlowsService/GenerateFlowTree]
734
+ *
468
735
  * @generated from message alis.open.flows.v1.GenerateFlowTreeResponse
469
736
  */
470
737
  export declare type GenerateFlowTreeResponse = Message<"alis.open.flows.v1.GenerateFlowTreeResponse"> & {
471
738
  /**
739
+ * The root Flow.
740
+ *
472
741
  * @generated from field: alis.open.flows.v1.Flow flow = 1;
473
742
  */
474
743
  flow?: Flow | undefined;
475
744
 
476
745
  /**
746
+ * Steps with children.
747
+ * This field returns the next immediate children of the leaf nodes(steps at the max depth).
748
+ * This can be used to generate the next level of the tree on demand.
749
+ *
477
750
  * @generated from field: repeated alis.open.flows.v1.GenerateFlowTreeResponse.StepChildren step_children = 2;
478
751
  */
479
752
  stepChildren: GenerateFlowTreeResponse_StepChildren[];
480
753
  };
481
754
 
482
755
  /**
756
+ * Response message for [alis.open.flows.v1.FlowsService/GenerateFlowTree]
757
+ *
483
758
  * @generated from message alis.open.flows.v1.GenerateFlowTreeResponse
484
759
  */
485
760
  export declare type GenerateFlowTreeResponseJson = {
486
761
  /**
762
+ * The root Flow.
763
+ *
487
764
  * @generated from field: alis.open.flows.v1.Flow flow = 1;
488
765
  */
489
766
  flow?: FlowJson;
490
767
 
491
768
  /**
769
+ * Steps with children.
770
+ * This field returns the next immediate children of the leaf nodes(steps at the max depth).
771
+ * This can be used to generate the next level of the tree on demand.
772
+ *
492
773
  * @generated from field: repeated alis.open.flows.v1.GenerateFlowTreeResponse.StepChildren step_children = 2;
493
774
  */
494
775
  stepChildren?: GenerateFlowTreeResponse_StepChildrenJson[];
@@ -501,30 +782,48 @@ export declare type GenerateFlowTreeResponseJson = {
501
782
  export declare const GenerateFlowTreeResponseSchema: GenMessage<GenerateFlowTreeResponse, {jsonType: GenerateFlowTreeResponseJson}>;
502
783
 
503
784
  /**
785
+ * Step children.
786
+ * Provides the children of a step.
787
+ *
504
788
  * @generated from message alis.open.flows.v1.GenerateFlowTreeResponse.StepChildren
505
789
  */
506
790
  export declare type GenerateFlowTreeResponse_StepChildren = Message<"alis.open.flows.v1.GenerateFlowTreeResponse.StepChildren"> & {
507
791
  /**
792
+ * The id of the step
793
+ * Format: {flow_id}-{step_id}
794
+ *
508
795
  * @generated from field: string id = 1;
509
796
  */
510
797
  id: string;
511
798
 
512
799
  /**
800
+ * The names of the children
801
+ * Format: [flows/{flow_id}]
802
+ *
513
803
  * @generated from field: repeated string children = 2;
514
804
  */
515
805
  children: string[];
516
806
  };
517
807
 
518
808
  /**
809
+ * Step children.
810
+ * Provides the children of a step.
811
+ *
519
812
  * @generated from message alis.open.flows.v1.GenerateFlowTreeResponse.StepChildren
520
813
  */
521
814
  export declare type GenerateFlowTreeResponse_StepChildrenJson = {
522
815
  /**
816
+ * The id of the step
817
+ * Format: {flow_id}-{step_id}
818
+ *
523
819
  * @generated from field: string id = 1;
524
820
  */
525
821
  id?: string;
526
822
 
527
823
  /**
824
+ * The names of the children
825
+ * Format: [flows/{flow_id}]
826
+ *
528
827
  * @generated from field: repeated string children = 2;
529
828
  */
530
829
  children?: string[];
@@ -537,10 +836,18 @@ export declare type GenerateFlowTreeResponse_StepChildrenJson = {
537
836
  export declare const GenerateFlowTreeResponse_StepChildrenSchema: GenMessage<GenerateFlowTreeResponse_StepChildren, {jsonType: GenerateFlowTreeResponse_StepChildrenJson}>;
538
837
 
539
838
  /**
839
+ * Manages Flow resources with an API service.
840
+ *
841
+ * When an API wants to communicate more details on the progress or steps while running,
842
+ * this service would be used by clients to retrieve the Flow resources which will provide
843
+ * additional details on the underlying business logic.
844
+ *
540
845
  * @generated from service alis.open.flows.v1.FlowsService
541
846
  */
542
847
  export declare const FlowsService: GenService<{
543
848
  /**
849
+ * Get a Flow resource
850
+ *
544
851
  * @generated from rpc alis.open.flows.v1.FlowsService.GetFlow
545
852
  */
546
853
  getFlow: {
@@ -549,6 +856,8 @@ export declare const FlowsService: GenService<{
549
856
  output: typeof FlowSchema;
550
857
  },
551
858
  /**
859
+ * Lists Flows.
860
+ *
552
861
  * @generated from rpc alis.open.flows.v1.FlowsService.ListFlows
553
862
  */
554
863
  listFlows: {
@@ -557,6 +866,9 @@ export declare const FlowsService: GenService<{
557
866
  output: typeof ListFlowsResponseSchema;
558
867
  },
559
868
  /**
869
+ * Streams Flows under a parent flow, or root flows when no parent is set,
870
+ * as a server stream of `Flow` messages.
871
+ *
560
872
  * @generated from rpc alis.open.flows.v1.FlowsService.StreamFlows
561
873
  */
562
874
  streamFlows: {
@@ -565,6 +877,12 @@ export declare const FlowsService: GenService<{
565
877
  output: typeof FlowSchema;
566
878
  },
567
879
  /**
880
+ * Generate a tree of Flows and Steps.
881
+ * This method returns a single Flow resource but with the Flow children populated.
882
+ *
883
+ * The response also includes the next immediate children of the leaf nodes(steps at the max depth).
884
+ * This can be used to generate the next level of the tree on demand.
885
+ *
568
886
  * @generated from rpc alis.open.flows.v1.FlowsService.GenerateFlowTree
569
887
  */
570
888
  generateFlowTree: {
@@ -573,6 +891,8 @@ export declare const FlowsService: GenService<{
573
891
  output: typeof GenerateFlowTreeResponseSchema;
574
892
  },
575
893
  /**
894
+ * Handles an event from Pub/Sub
895
+ *
576
896
  * @generated from rpc alis.open.flows.v1.FlowsService.HandleEvent
577
897
  */
578
898
  handleEvent: {
@@ -581,6 +901,8 @@ export declare const FlowsService: GenService<{
581
901
  output: typeof EmptySchema;
582
902
  },
583
903
  /**
904
+ * Handles a dead letter event from Pub/Sub
905
+ *
584
906
  * @generated from rpc alis.open.flows.v1.FlowsService.HandleDeadLetter
585
907
  */
586
908
  handleDeadLetter: {
@@ -1,7 +1,28 @@
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/flows/v1/flows.proto (package alis.open.flows.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
 
5
+ // Records the steps an API request goes through while it runs, so clients can
6
+ // follow the progress of the underlying business logic.
7
+ //
8
+ // `FlowsService` exposes one resource:
9
+ //
10
+ // - `Flow` (`flows/{flow}`, where `{flow}` is 32 lowercase hex characters):
11
+ // the journey of one API request, identified by the method that produced it
12
+ // (`source`) and made up of `Flow.Step`s, each with its own `State`.
13
+ //
14
+ // Flows nest. A flow can be the child of a step in another flow, in which case
15
+ // `parent_id` holds `{flow_id}-{step_id}`, the same format as the
16
+ // `x-alis-flow-parent` header. `ListFlows` and `StreamFlows` return the flows
17
+ // under a parent flow, or root flows when no parent is set. `GenerateFlowTree`
18
+ // returns a flow with its descendants populated in the output-only
19
+ // `Step.children`, plus the children of the leaf steps so the tree can be
20
+ // expanded on demand.
21
+ //
22
+ // The service also consumes Pub/Sub push messages
23
+ // (`alis.open.pubsub.v1.PubSubMessage`) through `HandleEvent` and
24
+ // `HandleDeadLetter`.
25
+
5
26
  import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
6
27
  import { file_alis_open_pubsub_v1_pubsub } from "@alis-build/alis-open-pubsub-v1/alis/open/pubsub/v1/pubsub_pb.js";
7
28
  import { file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
@@ -33,6 +54,8 @@ export const Flow_Step_StateSchema = /*@__PURE__*/
33
54
  enumDesc(file_alis_open_flows_v1_flows, 0, 0, 0);
34
55
 
35
56
  /**
57
+ * The lifecycle state of a step.
58
+ *
36
59
  * @generated from enum alis.open.flows.v1.Flow.Step.State
37
60
  */
38
61
  export const Flow_Step_State = /*@__PURE__*/
@@ -88,6 +111,12 @@ export const GenerateFlowTreeResponse_StepChildrenSchema = /*@__PURE__*/
88
111
  messageDesc(file_alis_open_flows_v1_flows, 6, 0);
89
112
 
90
113
  /**
114
+ * Manages Flow resources with an API service.
115
+ *
116
+ * When an API wants to communicate more details on the progress or steps while running,
117
+ * this service would be used by clients to retrieve the Flow resources which will provide
118
+ * additional details on the underlying business logic.
119
+ *
91
120
  * @generated from service alis.open.flows.v1.FlowsService
92
121
  */
93
122
  export const FlowsService = /*@__PURE__*/
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.13.0"
29
29
  }