@alis-build/alis-open-flows-v1 1.2.0 → 1.4.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,11 +1,11 @@
1
- // @generated by protoc-gen-es v2.13.0 with parameter "target=js+dts"
1
+ // @generated by protoc-gen-es v2.13.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
5
  import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
6
  import type { Message } from "@bufbuild/protobuf";
7
- import type { EmptySchema, FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
8
- import type { PubSubMessageSchema } from "@alis-build/alis-open-pubsub-v1/alis/open/pubsub/v1/pubsub_pb";
7
+ import type { EmptySchema, FieldMask, FieldMaskJson, Timestamp, TimestampJson } from "@bufbuild/protobuf/wkt";
8
+ import type { PubSubMessageSchema } from "@alis-build/alis-open-pubsub-v1/alis/open/pubsub/v1/pubsub_pb.js";
9
9
 
10
10
  /**
11
11
  * Describes the file alis/open/flows/v1/flows.proto.
@@ -52,11 +52,51 @@ export declare type Flow = Message<"alis.open.flows.v1.Flow"> & {
52
52
  publishTime?: Timestamp | undefined;
53
53
  };
54
54
 
55
+ /**
56
+ * @generated from message alis.open.flows.v1.Flow
57
+ */
58
+ export declare type FlowJson = {
59
+ /**
60
+ * @generated from field: string name = 1;
61
+ */
62
+ name?: string;
63
+
64
+ /**
65
+ * @generated from field: string source = 2;
66
+ */
67
+ source?: string;
68
+
69
+ /**
70
+ * @generated from field: string parent_id = 3;
71
+ */
72
+ parentId?: string;
73
+
74
+ /**
75
+ * @generated from field: repeated alis.open.flows.v1.Flow.Step steps = 7;
76
+ */
77
+ steps?: Flow_StepJson[];
78
+
79
+ /**
80
+ * @generated from field: google.protobuf.Timestamp create_time = 97;
81
+ */
82
+ createTime?: TimestampJson;
83
+
84
+ /**
85
+ * @generated from field: google.protobuf.Timestamp update_time = 98;
86
+ */
87
+ updateTime?: TimestampJson;
88
+
89
+ /**
90
+ * @generated from field: google.protobuf.Timestamp publish_time = 99;
91
+ */
92
+ publishTime?: TimestampJson;
93
+ };
94
+
55
95
  /**
56
96
  * Describes the message alis.open.flows.v1.Flow.
57
97
  * Use `create(FlowSchema)` to create a new message.
58
98
  */
59
- export declare const FlowSchema: GenMessage<Flow>;
99
+ export declare const FlowSchema: GenMessage<Flow, {jsonType: FlowJson}>;
60
100
 
61
101
  /**
62
102
  * @generated from message alis.open.flows.v1.Flow.Step
@@ -98,11 +138,51 @@ export declare type Flow_Step = Message<"alis.open.flows.v1.Flow.Step"> & {
98
138
  updateTime?: Timestamp | undefined;
99
139
  };
100
140
 
141
+ /**
142
+ * @generated from message alis.open.flows.v1.Flow.Step
143
+ */
144
+ export declare type Flow_StepJson = {
145
+ /**
146
+ * @generated from field: string id = 1;
147
+ */
148
+ id?: string;
149
+
150
+ /**
151
+ * @generated from field: string title = 2;
152
+ */
153
+ title?: string;
154
+
155
+ /**
156
+ * @generated from field: string description = 3;
157
+ */
158
+ description?: string;
159
+
160
+ /**
161
+ * @generated from field: alis.open.flows.v1.Flow.Step.State state = 4;
162
+ */
163
+ state?: Flow_Step_StateJson;
164
+
165
+ /**
166
+ * @generated from field: repeated alis.open.flows.v1.Flow children = 8;
167
+ */
168
+ children?: FlowJson[];
169
+
170
+ /**
171
+ * @generated from field: google.protobuf.Timestamp create_time = 9;
172
+ */
173
+ createTime?: TimestampJson;
174
+
175
+ /**
176
+ * @generated from field: google.protobuf.Timestamp update_time = 10;
177
+ */
178
+ updateTime?: TimestampJson;
179
+ };
180
+
101
181
  /**
102
182
  * Describes the message alis.open.flows.v1.Flow.Step.
103
183
  * Use `create(Flow_StepSchema)` to create a new message.
104
184
  */
105
- export declare const Flow_StepSchema: GenMessage<Flow_Step>;
185
+ export declare const Flow_StepSchema: GenMessage<Flow_Step, {jsonType: Flow_StepJson}>;
106
186
 
107
187
  /**
108
188
  * @generated from enum alis.open.flows.v1.Flow.Step.State
@@ -144,10 +224,15 @@ export enum Flow_Step_State {
144
224
  AWAITING_INPUT = 6,
145
225
  }
146
226
 
227
+ /**
228
+ * @generated from enum alis.open.flows.v1.Flow.Step.State
229
+ */
230
+ export declare type Flow_Step_StateJson = "STATE_UNSPECIFIED" | "QUEUED" | "IN_PROGRESS" | "CANCELLED" | "COMPLETED" | "FAILED" | "AWAITING_INPUT";
231
+
147
232
  /**
148
233
  * Describes the enum alis.open.flows.v1.Flow.Step.State.
149
234
  */
150
- export declare const Flow_Step_StateSchema: GenEnum<Flow_Step_State>;
235
+ export declare const Flow_Step_StateSchema: GenEnum<Flow_Step_State, Flow_Step_StateJson>;
151
236
 
152
237
  /**
153
238
  * @generated from message alis.open.flows.v1.GetFlowRequest
@@ -164,11 +249,26 @@ export declare type GetFlowRequest = Message<"alis.open.flows.v1.GetFlowRequest"
164
249
  readMask?: FieldMask | undefined;
165
250
  };
166
251
 
252
+ /**
253
+ * @generated from message alis.open.flows.v1.GetFlowRequest
254
+ */
255
+ export declare type GetFlowRequestJson = {
256
+ /**
257
+ * @generated from field: string name = 1;
258
+ */
259
+ name?: string;
260
+
261
+ /**
262
+ * @generated from field: google.protobuf.FieldMask read_mask = 2;
263
+ */
264
+ readMask?: FieldMaskJson;
265
+ };
266
+
167
267
  /**
168
268
  * Describes the message alis.open.flows.v1.GetFlowRequest.
169
269
  * Use `create(GetFlowRequestSchema)` to create a new message.
170
270
  */
171
- export declare const GetFlowRequestSchema: GenMessage<GetFlowRequest>;
271
+ export declare const GetFlowRequestSchema: GenMessage<GetFlowRequest, {jsonType: GetFlowRequestJson}>;
172
272
 
173
273
  /**
174
274
  * @generated from message alis.open.flows.v1.ListFlowsRequest
@@ -200,11 +300,41 @@ export declare type ListFlowsRequest = Message<"alis.open.flows.v1.ListFlowsRequ
200
300
  filter: string;
201
301
  };
202
302
 
303
+ /**
304
+ * @generated from message alis.open.flows.v1.ListFlowsRequest
305
+ */
306
+ export declare type ListFlowsRequestJson = {
307
+ /**
308
+ * @generated from field: string parent = 1;
309
+ */
310
+ parent?: string;
311
+
312
+ /**
313
+ * @generated from field: int32 page_size = 2;
314
+ */
315
+ pageSize?: number;
316
+
317
+ /**
318
+ * @generated from field: string page_token = 3;
319
+ */
320
+ pageToken?: string;
321
+
322
+ /**
323
+ * @generated from field: google.protobuf.FieldMask read_mask = 4;
324
+ */
325
+ readMask?: FieldMaskJson;
326
+
327
+ /**
328
+ * @generated from field: string filter = 5;
329
+ */
330
+ filter?: string;
331
+ };
332
+
203
333
  /**
204
334
  * Describes the message alis.open.flows.v1.ListFlowsRequest.
205
335
  * Use `create(ListFlowsRequestSchema)` to create a new message.
206
336
  */
207
- export declare const ListFlowsRequestSchema: GenMessage<ListFlowsRequest>;
337
+ export declare const ListFlowsRequestSchema: GenMessage<ListFlowsRequest, {jsonType: ListFlowsRequestJson}>;
208
338
 
209
339
  /**
210
340
  * @generated from message alis.open.flows.v1.ListFlowsResponse
@@ -221,11 +351,26 @@ export declare type ListFlowsResponse = Message<"alis.open.flows.v1.ListFlowsRes
221
351
  nextPageToken: string;
222
352
  };
223
353
 
354
+ /**
355
+ * @generated from message alis.open.flows.v1.ListFlowsResponse
356
+ */
357
+ export declare type ListFlowsResponseJson = {
358
+ /**
359
+ * @generated from field: repeated alis.open.flows.v1.Flow flows = 1;
360
+ */
361
+ flows?: FlowJson[];
362
+
363
+ /**
364
+ * @generated from field: string next_page_token = 2;
365
+ */
366
+ nextPageToken?: string;
367
+ };
368
+
224
369
  /**
225
370
  * Describes the message alis.open.flows.v1.ListFlowsResponse.
226
371
  * Use `create(ListFlowsResponseSchema)` to create a new message.
227
372
  */
228
- export declare const ListFlowsResponseSchema: GenMessage<ListFlowsResponse>;
373
+ export declare const ListFlowsResponseSchema: GenMessage<ListFlowsResponse, {jsonType: ListFlowsResponseJson}>;
229
374
 
230
375
  /**
231
376
  * @generated from message alis.open.flows.v1.StreamFlowsRequest
@@ -242,11 +387,26 @@ export declare type StreamFlowsRequest = Message<"alis.open.flows.v1.StreamFlows
242
387
  readMask?: FieldMask | undefined;
243
388
  };
244
389
 
390
+ /**
391
+ * @generated from message alis.open.flows.v1.StreamFlowsRequest
392
+ */
393
+ export declare type StreamFlowsRequestJson = {
394
+ /**
395
+ * @generated from field: string parent = 1;
396
+ */
397
+ parent?: string;
398
+
399
+ /**
400
+ * @generated from field: google.protobuf.FieldMask read_mask = 2;
401
+ */
402
+ readMask?: FieldMaskJson;
403
+ };
404
+
245
405
  /**
246
406
  * Describes the message alis.open.flows.v1.StreamFlowsRequest.
247
407
  * Use `create(StreamFlowsRequestSchema)` to create a new message.
248
408
  */
249
- export declare const StreamFlowsRequestSchema: GenMessage<StreamFlowsRequest>;
409
+ export declare const StreamFlowsRequestSchema: GenMessage<StreamFlowsRequest, {jsonType: StreamFlowsRequestJson}>;
250
410
 
251
411
  /**
252
412
  * @generated from message alis.open.flows.v1.GenerateFlowTreeRequest
@@ -273,11 +433,36 @@ export declare type GenerateFlowTreeRequest = Message<"alis.open.flows.v1.Genera
273
433
  filter: string;
274
434
  };
275
435
 
436
+ /**
437
+ * @generated from message alis.open.flows.v1.GenerateFlowTreeRequest
438
+ */
439
+ export declare type GenerateFlowTreeRequestJson = {
440
+ /**
441
+ * @generated from field: string name = 1;
442
+ */
443
+ name?: string;
444
+
445
+ /**
446
+ * @generated from field: int32 max_depth = 2;
447
+ */
448
+ maxDepth?: number;
449
+
450
+ /**
451
+ * @generated from field: google.protobuf.FieldMask read_mask = 3;
452
+ */
453
+ readMask?: FieldMaskJson;
454
+
455
+ /**
456
+ * @generated from field: string filter = 4;
457
+ */
458
+ filter?: string;
459
+ };
460
+
276
461
  /**
277
462
  * Describes the message alis.open.flows.v1.GenerateFlowTreeRequest.
278
463
  * Use `create(GenerateFlowTreeRequestSchema)` to create a new message.
279
464
  */
280
- export declare const GenerateFlowTreeRequestSchema: GenMessage<GenerateFlowTreeRequest>;
465
+ export declare const GenerateFlowTreeRequestSchema: GenMessage<GenerateFlowTreeRequest, {jsonType: GenerateFlowTreeRequestJson}>;
281
466
 
282
467
  /**
283
468
  * @generated from message alis.open.flows.v1.GenerateFlowTreeResponse
@@ -294,11 +479,26 @@ export declare type GenerateFlowTreeResponse = Message<"alis.open.flows.v1.Gener
294
479
  stepChildren: GenerateFlowTreeResponse_StepChildren[];
295
480
  };
296
481
 
482
+ /**
483
+ * @generated from message alis.open.flows.v1.GenerateFlowTreeResponse
484
+ */
485
+ export declare type GenerateFlowTreeResponseJson = {
486
+ /**
487
+ * @generated from field: alis.open.flows.v1.Flow flow = 1;
488
+ */
489
+ flow?: FlowJson;
490
+
491
+ /**
492
+ * @generated from field: repeated alis.open.flows.v1.GenerateFlowTreeResponse.StepChildren step_children = 2;
493
+ */
494
+ stepChildren?: GenerateFlowTreeResponse_StepChildrenJson[];
495
+ };
496
+
297
497
  /**
298
498
  * Describes the message alis.open.flows.v1.GenerateFlowTreeResponse.
299
499
  * Use `create(GenerateFlowTreeResponseSchema)` to create a new message.
300
500
  */
301
- export declare const GenerateFlowTreeResponseSchema: GenMessage<GenerateFlowTreeResponse>;
501
+ export declare const GenerateFlowTreeResponseSchema: GenMessage<GenerateFlowTreeResponse, {jsonType: GenerateFlowTreeResponseJson}>;
302
502
 
303
503
  /**
304
504
  * @generated from message alis.open.flows.v1.GenerateFlowTreeResponse.StepChildren
@@ -315,11 +515,26 @@ export declare type GenerateFlowTreeResponse_StepChildren = Message<"alis.open.f
315
515
  children: string[];
316
516
  };
317
517
 
518
+ /**
519
+ * @generated from message alis.open.flows.v1.GenerateFlowTreeResponse.StepChildren
520
+ */
521
+ export declare type GenerateFlowTreeResponse_StepChildrenJson = {
522
+ /**
523
+ * @generated from field: string id = 1;
524
+ */
525
+ id?: string;
526
+
527
+ /**
528
+ * @generated from field: repeated string children = 2;
529
+ */
530
+ children?: string[];
531
+ };
532
+
318
533
  /**
319
534
  * Describes the message alis.open.flows.v1.GenerateFlowTreeResponse.StepChildren.
320
535
  * Use `create(GenerateFlowTreeResponse_StepChildrenSchema)` to create a new message.
321
536
  */
322
- export declare const GenerateFlowTreeResponse_StepChildrenSchema: GenMessage<GenerateFlowTreeResponse_StepChildren>;
537
+ export declare const GenerateFlowTreeResponse_StepChildrenSchema: GenMessage<GenerateFlowTreeResponse_StepChildren, {jsonType: GenerateFlowTreeResponse_StepChildrenJson}>;
323
538
 
324
539
  /**
325
540
  * @generated from service alis.open.flows.v1.FlowsService
@@ -1,9 +1,9 @@
1
- // @generated by protoc-gen-es v2.13.0 with parameter "target=js+dts"
1
+ // @generated by protoc-gen-es v2.13.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
5
  import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
6
- import { file_alis_open_pubsub_v1_pubsub } from "@alis-build/alis-open-pubsub-v1/alis/open/pubsub/v1/pubsub_pb";
6
+ import { file_alis_open_pubsub_v1_pubsub } from "@alis-build/alis-open-pubsub-v1/alis/open/pubsub/v1/pubsub_pb.js";
7
7
  import { file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
8
8
 
9
9
  /**
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./alis/open/flows/v1/flows_pb.js";
package/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from "./alis/open/flows/v1/flows_pb.js";
package/package.json CHANGED
@@ -1,11 +1,29 @@
1
1
  {
2
2
  "dependencies": {
3
- "@alis-build/alis-open-pubsub-v1": "*",
4
- "@bufbuild/protobuf": "^2.11.0",
5
- "@connectrpc/connect": "^2.1.1",
6
- "@connectrpc/connect-web": "^2.1.1"
3
+ "@alis-build/alis-open-pubsub-v1": "*"
7
4
  },
8
- "description": "Ecmascript and Connect-Web stubs generated by Alis Build",
5
+ "description": "Ecmascript and Connect-Web stubs generated by Alis Build for alis.open.flows.v1",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./index.d.ts",
9
+ "import": "./index.js"
10
+ },
11
+ "./*": "./*",
12
+ "./*_pb": {
13
+ "types": "./*_pb.d.ts",
14
+ "default": "./*_pb.js"
15
+ },
16
+ "./package.json": "./package.json"
17
+ },
18
+ "license": "Apache-2.0",
19
+ "main": "./index.js",
9
20
  "name": "@alis-build/alis-open-flows-v1",
10
- "version": "1.2.0"
21
+ "peerDependencies": {
22
+ "@bufbuild/protobuf": "^2.13.0",
23
+ "@connectrpc/connect": "^2.1.2",
24
+ "@connectrpc/connect-web": "^2.1.2"
25
+ },
26
+ "type": "module",
27
+ "types": "./index.d.ts",
28
+ "version": "1.4.0"
11
29
  }