@wenlarge/communication 1.5.7 → 1.6.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,192 +1,192 @@
1
- syntax = "proto3";
2
-
3
- import "google/protobuf/empty.proto";
4
- import "google/protobuf/struct.proto";
5
-
6
- package workflow;
7
-
8
- service WorkflowService {
9
- rpc Create (CreateWorkflowRequest) returns (WorkflowResponse);
10
- rpc FindMany (FindManyWorkflowRequest) returns (FindManyWorkflowResponse);
11
- rpc Delete (DeleteWorkflowRequest) returns (google.protobuf.Empty);
12
- rpc Update (UpdateWorkflowRequest) returns (WorkflowResponse);
13
- rpc FindFirst (FindFirstWorkflowRequest) returns (WorkflowResponse);
14
- rpc TriggerWorkflow (TriggerWorkflowRequest) returns (google.protobuf.Empty);
15
- rpc TriggerNode (TriggerNodeRequest) returns (google.protobuf.Empty);
16
- rpc FindManyWorkflowNode (FindManyWorkflowNodeRequest) returns (FindManyWorkflowNodeResponse);
17
- rpc SaveWorkflowBatch (SaveWorkflowBatchRequest) returns (google.protobuf.Empty);
18
- rpc FindWorkflowNodeTypes (google.protobuf.Empty) returns (FindManyWorkflowNodeTypeResponse);
19
- rpc FindConnections (FindConnectionsRequest) returns (FindConnectionsResponse);
20
- rpc UpdateWorkflowStatus (UpdateWorkflowStatusRequest) returns (google.protobuf.Empty);
21
- rpc GetNodeExecutionLog(GetNodeExecutionLogRequest) returns (GetExecutionLogResponse);
22
- rpc GetWorkflowExecutionLog(GetWorkflowExecutionLogRequest) returns (GetExecutionLogResponse);
23
- rpc GetWorkflowCount(google.protobuf.Empty) returns (GetWorkflowCountResponse);
24
- }
25
-
26
- message CreateWorkflowRequest {
27
- string name = 1;
28
- string projectId = 2;
29
- string defaultEnvironmentId = 3;
30
- }
31
-
32
- message WorkflowResponse {
33
- string id = 1;
34
- string name = 2;
35
- string companyId = 3;
36
- string projectId = 4;
37
- string createdAt = 5;
38
- string updatedAt = 6;
39
- WorkflowStatus status = 7;
40
- string defaultEnvironmentId = 8;
41
- }
42
-
43
- message GetWorkflowCountResponse {
44
- int32 workflowCount = 1;
45
- }
46
-
47
- message DeleteWorkflowRequest{
48
- string id = 1;
49
- }
50
-
51
- message UpdateWorkflowRequest{
52
- string id = 1;
53
- string name = 2;
54
- string defaultEnvironmentId = 3;
55
- }
56
-
57
- message FindManyWorkflowRequest{
58
- string projectId = 1;
59
- int32 skip = 2;
60
- int32 take = 3;
61
- }
62
-
63
- message FindManyWorkflowResponse{
64
- repeated WorkflowResponse data = 1;
65
- int32 total = 2;
66
- }
67
-
68
- message FindFirstWorkflowRequest {
69
- string workflowId = 1;
70
- }
71
-
72
- message TriggerWorkflowRequest{
73
- string workflowId = 1;
74
- }
75
-
76
- message TriggerNodeRequest{
77
- string nodeId = 1;
78
- string workflowId = 2;
79
- google.protobuf.Struct inputSchema = 3;
80
- }
81
-
82
- message WorkflowNodeRequest{
83
- string id = 1;
84
- int32 positionX = 2;
85
- int32 positionY = 3;
86
- google.protobuf.Struct inputSchema = 4;
87
- google.protobuf.Struct outputSchema = 5;
88
- google.protobuf.Struct config = 6;
89
- string nodeTypeId = 7;
90
- string environmentId = 8;
91
- }
92
-
93
- message FindManyWorkflowNodeRequest{
94
- string workflowId = 1;
95
- }
96
-
97
- message FindManyWorkflowNodeResponse{
98
- repeated WorkflowNodeResponse data = 1;
99
- }
100
-
101
- message WorkflowNodeResponse{
102
- string id = 1;
103
- string nodeTypeId = 2;
104
- int32 positionX = 3;
105
- int32 positionY = 4;
106
- google.protobuf.Struct inputSchema = 5;
107
- google.protobuf.Struct outputSchema = 6;
108
- google.protobuf.Struct config = 7;
109
- string createdAt = 8;
110
- string updatedAt = 9;
111
- string environmentId = 10;
112
- }
113
-
114
- message WorkflowNodeConnection {
115
- string id = 1;
116
- string workflowId = 2;
117
- string fromNodeId = 3;
118
- string toNodeId = 4;
119
- google.protobuf.Struct pointer = 5;
120
- }
121
-
122
- message SaveWorkflowBatchRequest {
123
- string workflowId = 1;
124
- string workflowName = 2;
125
- repeated WorkflowNodeRequest nodes = 3;
126
- repeated UpdateBatchConnection connections = 4;
127
- string defaultEnvironmentId = 5;
128
- }
129
-
130
- message UpdateBatchConnection {
131
- string fromNodeId = 1;
132
- string toNodeId = 2;
133
- google.protobuf.Struct pointer = 3;
134
- }
135
-
136
- message WorkflowNodeTypeResponse {
137
- string id = 1;
138
- string label = 2;
139
- string description = 3;
140
- string service = 4;
141
- google.protobuf.Struct form = 5;
142
- }
143
-
144
- message FindManyWorkflowNodeTypeResponse {
145
- repeated WorkflowNodeTypeResponse data = 1;
146
- }
147
-
148
- message FindConnectionsRequest {
149
- string workflowId = 1;
150
- }
151
-
152
- message FindConnectionsResponse {
153
- repeated WorkflowNodeConnection data = 1;
154
- }
155
-
156
- enum WorkflowStatus {
157
- DRAFT = 0;
158
- PUBLISHED = 1;
159
- }
160
-
161
- message UpdateWorkflowStatusRequest {
162
- string workflowId = 1;
163
- WorkflowStatus status = 2;
164
- }
165
-
166
- message GetNodeExecutionLogRequest {
167
- repeated string nodeIds = 1;
168
- string workflowId =2;
169
- int32 skip = 3;
170
- int32 take = 4;
171
- }
172
-
173
- message GetExecutionLogResponse {
174
- repeated ExecutionLogEntry data = 1;
175
- int32 total = 2;
176
- }
177
-
178
- message GetWorkflowExecutionLogRequest{
179
- string workflowId = 1;
180
- int32 skip = 2;
181
- int32 take = 3;
182
- }
183
-
184
- message ExecutionLogEntry {
185
- string nodeId = 1;
186
- string status = 2;
187
- google.protobuf.Struct inputSchema = 3;
188
- google.protobuf.Struct outputSchema = 4;
189
- google.protobuf.Struct config = 5;
190
- string startedAt = 6;
191
- string finishedAt = 7;
1
+ syntax = "proto3";
2
+
3
+ import "google/protobuf/empty.proto";
4
+ import "google/protobuf/struct.proto";
5
+
6
+ package workflow;
7
+
8
+ service WorkflowService {
9
+ rpc Create (CreateWorkflowRequest) returns (WorkflowResponse);
10
+ rpc FindMany (FindManyWorkflowRequest) returns (FindManyWorkflowResponse);
11
+ rpc Delete (DeleteWorkflowRequest) returns (google.protobuf.Empty);
12
+ rpc Update (UpdateWorkflowRequest) returns (WorkflowResponse);
13
+ rpc FindFirst (FindFirstWorkflowRequest) returns (WorkflowResponse);
14
+ rpc TriggerWorkflow (TriggerWorkflowRequest) returns (google.protobuf.Empty);
15
+ rpc TriggerNode (TriggerNodeRequest) returns (google.protobuf.Empty);
16
+ rpc FindManyWorkflowNode (FindManyWorkflowNodeRequest) returns (FindManyWorkflowNodeResponse);
17
+ rpc SaveWorkflowBatch (SaveWorkflowBatchRequest) returns (google.protobuf.Empty);
18
+ rpc FindWorkflowNodeTypes (google.protobuf.Empty) returns (FindManyWorkflowNodeTypeResponse);
19
+ rpc FindConnections (FindConnectionsRequest) returns (FindConnectionsResponse);
20
+ rpc UpdateWorkflowStatus (UpdateWorkflowStatusRequest) returns (google.protobuf.Empty);
21
+ rpc GetNodeExecutionLog(GetNodeExecutionLogRequest) returns (GetExecutionLogResponse);
22
+ rpc GetWorkflowExecutionLog(GetWorkflowExecutionLogRequest) returns (GetExecutionLogResponse);
23
+ rpc GetWorkflowCount(google.protobuf.Empty) returns (GetWorkflowCountResponse);
24
+ }
25
+
26
+ message CreateWorkflowRequest {
27
+ string name = 1;
28
+ string projectId = 2;
29
+ string defaultEnvironmentId = 3;
30
+ }
31
+
32
+ message WorkflowResponse {
33
+ string id = 1;
34
+ string name = 2;
35
+ string companyId = 3;
36
+ string projectId = 4;
37
+ string createdAt = 5;
38
+ string updatedAt = 6;
39
+ WorkflowStatus status = 7;
40
+ string defaultEnvironmentId = 8;
41
+ }
42
+
43
+ message GetWorkflowCountResponse {
44
+ int32 workflowCount = 1;
45
+ }
46
+
47
+ message DeleteWorkflowRequest{
48
+ string id = 1;
49
+ }
50
+
51
+ message UpdateWorkflowRequest{
52
+ string id = 1;
53
+ string name = 2;
54
+ string defaultEnvironmentId = 3;
55
+ }
56
+
57
+ message FindManyWorkflowRequest{
58
+ string projectId = 1;
59
+ int32 skip = 2;
60
+ int32 take = 3;
61
+ }
62
+
63
+ message FindManyWorkflowResponse{
64
+ repeated WorkflowResponse data = 1;
65
+ int32 total = 2;
66
+ }
67
+
68
+ message FindFirstWorkflowRequest {
69
+ string workflowId = 1;
70
+ }
71
+
72
+ message TriggerWorkflowRequest{
73
+ string workflowId = 1;
74
+ }
75
+
76
+ message TriggerNodeRequest{
77
+ string nodeId = 1;
78
+ string workflowId = 2;
79
+ google.protobuf.Struct inputSchema = 3;
80
+ }
81
+
82
+ message WorkflowNodeRequest{
83
+ string id = 1;
84
+ int32 positionX = 2;
85
+ int32 positionY = 3;
86
+ google.protobuf.Struct inputSchema = 4;
87
+ google.protobuf.Struct outputSchema = 5;
88
+ google.protobuf.Struct config = 6;
89
+ string nodeTypeId = 7;
90
+ string environmentId = 8;
91
+ }
92
+
93
+ message FindManyWorkflowNodeRequest{
94
+ string workflowId = 1;
95
+ }
96
+
97
+ message FindManyWorkflowNodeResponse{
98
+ repeated WorkflowNodeResponse data = 1;
99
+ }
100
+
101
+ message WorkflowNodeResponse{
102
+ string id = 1;
103
+ string nodeTypeId = 2;
104
+ int32 positionX = 3;
105
+ int32 positionY = 4;
106
+ google.protobuf.Struct inputSchema = 5;
107
+ google.protobuf.Struct outputSchema = 6;
108
+ google.protobuf.Struct config = 7;
109
+ string createdAt = 8;
110
+ string updatedAt = 9;
111
+ string environmentId = 10;
112
+ }
113
+
114
+ message WorkflowNodeConnection {
115
+ string id = 1;
116
+ string workflowId = 2;
117
+ string fromNodeId = 3;
118
+ string toNodeId = 4;
119
+ google.protobuf.Struct pointer = 5;
120
+ }
121
+
122
+ message SaveWorkflowBatchRequest {
123
+ string workflowId = 1;
124
+ string workflowName = 2;
125
+ repeated WorkflowNodeRequest nodes = 3;
126
+ repeated UpdateBatchConnection connections = 4;
127
+ string defaultEnvironmentId = 5;
128
+ }
129
+
130
+ message UpdateBatchConnection {
131
+ string fromNodeId = 1;
132
+ string toNodeId = 2;
133
+ google.protobuf.Struct pointer = 3;
134
+ }
135
+
136
+ message WorkflowNodeTypeResponse {
137
+ string id = 1;
138
+ string label = 2;
139
+ string description = 3;
140
+ string service = 4;
141
+ google.protobuf.Struct form = 5;
142
+ }
143
+
144
+ message FindManyWorkflowNodeTypeResponse {
145
+ repeated WorkflowNodeTypeResponse data = 1;
146
+ }
147
+
148
+ message FindConnectionsRequest {
149
+ string workflowId = 1;
150
+ }
151
+
152
+ message FindConnectionsResponse {
153
+ repeated WorkflowNodeConnection data = 1;
154
+ }
155
+
156
+ enum WorkflowStatus {
157
+ DRAFT = 0;
158
+ PUBLISHED = 1;
159
+ }
160
+
161
+ message UpdateWorkflowStatusRequest {
162
+ string workflowId = 1;
163
+ WorkflowStatus status = 2;
164
+ }
165
+
166
+ message GetNodeExecutionLogRequest {
167
+ repeated string nodeIds = 1;
168
+ string workflowId =2;
169
+ int32 skip = 3;
170
+ int32 take = 4;
171
+ }
172
+
173
+ message GetExecutionLogResponse {
174
+ repeated ExecutionLogEntry data = 1;
175
+ int32 total = 2;
176
+ }
177
+
178
+ message GetWorkflowExecutionLogRequest{
179
+ string workflowId = 1;
180
+ int32 skip = 2;
181
+ int32 take = 3;
182
+ }
183
+
184
+ message ExecutionLogEntry {
185
+ string nodeId = 1;
186
+ string status = 2;
187
+ google.protobuf.Struct inputSchema = 3;
188
+ google.protobuf.Struct outputSchema = 4;
189
+ google.protobuf.Struct config = 5;
190
+ string startedAt = 6;
191
+ string finishedAt = 7;
192
192
  }
@@ -12,6 +12,13 @@ import { Empty } from "./google/protobuf/empty";
12
12
 
13
13
  export const protobufPackage = "auth";
14
14
 
15
+ export enum OAuthProvider {
16
+ OAUTH_PROVIDER_UNSPECIFIED = "OAUTH_PROVIDER_UNSPECIFIED",
17
+ GOOGLE = "GOOGLE",
18
+ MICROSOFT = "MICROSOFT",
19
+ UNRECOGNIZED = "UNRECOGNIZED",
20
+ }
21
+
15
22
  export interface LoginRequest {
16
23
  email: string;
17
24
  password: string;
@@ -137,6 +144,11 @@ export interface ReSendInviteRequest {
137
144
  inviteId: string;
138
145
  }
139
146
 
147
+ export interface OAuthLoginRequest {
148
+ provider: OAuthProvider;
149
+ idToken: string;
150
+ }
151
+
140
152
  export const AUTH_PACKAGE_NAME = "auth";
141
153
 
142
154
  export interface AuthServiceClient {
@@ -171,6 +183,8 @@ export interface AuthServiceClient {
171
183
  getInvites(request: GetInviteRequest, metadata?: Metadata): Observable<GetInviteResponse>;
172
184
 
173
185
  reSendInvite(request: ReSendInviteRequest, metadata?: Metadata): Observable<Empty>;
186
+
187
+ oAuthLogin(request: OAuthLoginRequest, metadata?: Metadata): Observable<LoginResponse>;
174
188
  }
175
189
 
176
190
  export interface AuthServiceController {
@@ -214,6 +228,11 @@ export interface AuthServiceController {
214
228
  ): Promise<GetInviteResponse> | Observable<GetInviteResponse> | GetInviteResponse;
215
229
 
216
230
  reSendInvite(request: ReSendInviteRequest, metadata?: Metadata): void;
231
+
232
+ oAuthLogin(
233
+ request: OAuthLoginRequest,
234
+ metadata?: Metadata,
235
+ ): Promise<LoginResponse> | Observable<LoginResponse> | LoginResponse;
217
236
  }
218
237
 
219
238
  export function AuthServiceControllerMethods() {
@@ -235,6 +254,7 @@ export function AuthServiceControllerMethods() {
235
254
  "leaveCompany",
236
255
  "getInvites",
237
256
  "reSendInvite",
257
+ "oAuthLogin",
238
258
  ];
239
259
  for (const method of grpcMethods) {
240
260
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
@@ -1,16 +1,16 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v1.181.2
4
- // protoc v6.33.1
5
- // source: common.proto
6
-
7
- /* eslint-disable */
8
-
9
- export const protobufPackage = "common";
10
-
11
- export interface PaginateRequest {
12
- skip: number;
13
- take: number;
14
- }
15
-
16
- export const COMMON_PACKAGE_NAME = "common";
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v1.181.2
4
+ // protoc v6.33.1
5
+ // source: common.proto
6
+
7
+ /* eslint-disable */
8
+
9
+ export const protobufPackage = "common";
10
+
11
+ export interface PaginateRequest {
12
+ skip: number;
13
+ take: number;
14
+ }
15
+
16
+ export const COMMON_PACKAGE_NAME = "common";