geniebox-shared-lib 2.4.2 → 2.4.3
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.
|
@@ -20,6 +20,9 @@ export interface Agent {
|
|
|
20
20
|
visibility: string;
|
|
21
21
|
createdAt: string;
|
|
22
22
|
updatedAt: string;
|
|
23
|
+
/** Optional denormalized fields for API Gateway to enrich responses */
|
|
24
|
+
userName?: string | undefined;
|
|
25
|
+
userAvatar?: string | undefined;
|
|
23
26
|
}
|
|
24
27
|
export interface CreateAgentRequest {
|
|
25
28
|
userId: string;
|
|
@@ -50,6 +53,10 @@ export interface ListAgentsRequest {
|
|
|
50
53
|
offset: number;
|
|
51
54
|
/** Filter by visibility */
|
|
52
55
|
visibility?: string | undefined;
|
|
56
|
+
/** frontend supports these high-level types: all | mine | shared | bookmarked */
|
|
57
|
+
type?: string | undefined;
|
|
58
|
+
/** comma-separated filters (e.g. types) */
|
|
59
|
+
filters?: string | undefined;
|
|
53
60
|
}
|
|
54
61
|
export interface DeleteAgentRequest {
|
|
55
62
|
id: string;
|
package/dist/agent.interface.js
CHANGED
|
@@ -47,6 +47,12 @@ exports.Agent = {
|
|
|
47
47
|
if (message.updatedAt !== "") {
|
|
48
48
|
writer.uint32(74).string(message.updatedAt);
|
|
49
49
|
}
|
|
50
|
+
if (message.userName !== undefined) {
|
|
51
|
+
writer.uint32(82).string(message.userName);
|
|
52
|
+
}
|
|
53
|
+
if (message.userAvatar !== undefined) {
|
|
54
|
+
writer.uint32(90).string(message.userAvatar);
|
|
55
|
+
}
|
|
50
56
|
return writer;
|
|
51
57
|
},
|
|
52
58
|
decode(input, length) {
|
|
@@ -119,6 +125,20 @@ exports.Agent = {
|
|
|
119
125
|
message.updatedAt = reader.string();
|
|
120
126
|
continue;
|
|
121
127
|
}
|
|
128
|
+
case 10: {
|
|
129
|
+
if (tag !== 82) {
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
132
|
+
message.userName = reader.string();
|
|
133
|
+
continue;
|
|
134
|
+
}
|
|
135
|
+
case 11: {
|
|
136
|
+
if (tag !== 90) {
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
message.userAvatar = reader.string();
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
122
142
|
}
|
|
123
143
|
if ((tag & 7) === 4 || tag === 0) {
|
|
124
144
|
break;
|
|
@@ -364,6 +384,12 @@ exports.ListAgentsRequest = {
|
|
|
364
384
|
if (message.visibility !== undefined) {
|
|
365
385
|
writer.uint32(34).string(message.visibility);
|
|
366
386
|
}
|
|
387
|
+
if (message.type !== undefined) {
|
|
388
|
+
writer.uint32(42).string(message.type);
|
|
389
|
+
}
|
|
390
|
+
if (message.filters !== undefined) {
|
|
391
|
+
writer.uint32(50).string(message.filters);
|
|
392
|
+
}
|
|
367
393
|
return writer;
|
|
368
394
|
},
|
|
369
395
|
decode(input, length) {
|
|
@@ -401,6 +427,20 @@ exports.ListAgentsRequest = {
|
|
|
401
427
|
message.visibility = reader.string();
|
|
402
428
|
continue;
|
|
403
429
|
}
|
|
430
|
+
case 5: {
|
|
431
|
+
if (tag !== 42) {
|
|
432
|
+
break;
|
|
433
|
+
}
|
|
434
|
+
message.type = reader.string();
|
|
435
|
+
continue;
|
|
436
|
+
}
|
|
437
|
+
case 6: {
|
|
438
|
+
if (tag !== 50) {
|
|
439
|
+
break;
|
|
440
|
+
}
|
|
441
|
+
message.filters = reader.string();
|
|
442
|
+
continue;
|
|
443
|
+
}
|
|
404
444
|
}
|
|
405
445
|
if ((tag & 7) === 4 || tag === 0) {
|
|
406
446
|
break;
|
|
@@ -109,6 +109,9 @@ exports.Archive = {
|
|
|
109
109
|
if (message.updatedAt !== "") {
|
|
110
110
|
writer.uint32(50).string(message.updatedAt);
|
|
111
111
|
}
|
|
112
|
+
if (message.itemCount !== undefined) {
|
|
113
|
+
writer.uint32(56).int32(message.itemCount);
|
|
114
|
+
}
|
|
112
115
|
return writer;
|
|
113
116
|
},
|
|
114
117
|
decode(input, length) {
|
|
@@ -160,6 +163,13 @@ exports.Archive = {
|
|
|
160
163
|
message.updatedAt = reader.string();
|
|
161
164
|
continue;
|
|
162
165
|
}
|
|
166
|
+
case 7: {
|
|
167
|
+
if (tag !== 56) {
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
message.itemCount = reader.int32();
|
|
171
|
+
continue;
|
|
172
|
+
}
|
|
163
173
|
}
|
|
164
174
|
if ((tag & 7) === 4 || tag === 0) {
|
|
165
175
|
break;
|
|
@@ -143,6 +143,11 @@ export interface SaveStructureRequest {
|
|
|
143
143
|
/** IDs to delete */
|
|
144
144
|
deleteEdges: string[];
|
|
145
145
|
}
|
|
146
|
+
export interface SelectExecuteAbilityWorkflowsRequest {
|
|
147
|
+
userId: string;
|
|
148
|
+
limit: number;
|
|
149
|
+
offset: number;
|
|
150
|
+
}
|
|
146
151
|
export declare const WORKFLOW_PACKAGE_NAME = "workflow";
|
|
147
152
|
export declare const Workflow: MessageFns<Workflow>;
|
|
148
153
|
export declare const WorkflowNode: MessageFns<WorkflowNode>;
|
|
@@ -160,6 +165,7 @@ export declare const CreateEdgeRequest: MessageFns<CreateEdgeRequest>;
|
|
|
160
165
|
export declare const DeleteEdgeRequest: MessageFns<DeleteEdgeRequest>;
|
|
161
166
|
export declare const WorkflowsResponse: MessageFns<WorkflowsResponse>;
|
|
162
167
|
export declare const SaveStructureRequest: MessageFns<SaveStructureRequest>;
|
|
168
|
+
export declare const SelectExecuteAbilityWorkflowsRequest: MessageFns<SelectExecuteAbilityWorkflowsRequest>;
|
|
163
169
|
export interface WorkflowServiceClient {
|
|
164
170
|
createWorkflow(request: CreateWorkflowRequest, metadata?: Metadata): Observable<Workflow>;
|
|
165
171
|
/** Returns graph */
|
|
@@ -173,6 +179,8 @@ export interface WorkflowServiceClient {
|
|
|
173
179
|
createEdge(request: CreateEdgeRequest, metadata?: Metadata): Observable<WorkflowEdge>;
|
|
174
180
|
deleteEdge(request: DeleteEdgeRequest, metadata?: Metadata): Observable<Empty>;
|
|
175
181
|
saveStructure(request: SaveStructureRequest, metadata?: Metadata): Observable<Empty>;
|
|
182
|
+
/** Return workflows that the user can execute (used by frontend selectExecuteAbilityWorkflows action) */
|
|
183
|
+
selectExecuteAbilityWorkflows(request: SelectExecuteAbilityWorkflowsRequest, metadata?: Metadata): Observable<WorkflowsResponse>;
|
|
176
184
|
}
|
|
177
185
|
export interface WorkflowServiceController {
|
|
178
186
|
createWorkflow(request: CreateWorkflowRequest, metadata?: Metadata): Promise<Workflow> | Observable<Workflow> | Workflow;
|
|
@@ -187,6 +195,8 @@ export interface WorkflowServiceController {
|
|
|
187
195
|
createEdge(request: CreateEdgeRequest, metadata?: Metadata): Promise<WorkflowEdge> | Observable<WorkflowEdge> | WorkflowEdge;
|
|
188
196
|
deleteEdge(request: DeleteEdgeRequest, metadata?: Metadata): void;
|
|
189
197
|
saveStructure(request: SaveStructureRequest, metadata?: Metadata): void;
|
|
198
|
+
/** Return workflows that the user can execute (used by frontend selectExecuteAbilityWorkflows action) */
|
|
199
|
+
selectExecuteAbilityWorkflows(request: SelectExecuteAbilityWorkflowsRequest, metadata?: Metadata): Promise<WorkflowsResponse> | Observable<WorkflowsResponse> | WorkflowsResponse;
|
|
190
200
|
}
|
|
191
201
|
export declare function WorkflowServiceControllerMethods(): (constructor: Function) => void;
|
|
192
202
|
export declare const WORKFLOW_SERVICE_NAME = "WorkflowService";
|
|
@@ -292,6 +302,16 @@ export declare const WorkflowServiceService: {
|
|
|
292
302
|
readonly responseSerialize: (value: Empty) => Buffer;
|
|
293
303
|
readonly responseDeserialize: (value: Buffer) => Empty;
|
|
294
304
|
};
|
|
305
|
+
/** Return workflows that the user can execute (used by frontend selectExecuteAbilityWorkflows action) */
|
|
306
|
+
readonly selectExecuteAbilityWorkflows: {
|
|
307
|
+
readonly path: "/workflow.WorkflowService/selectExecuteAbilityWorkflows";
|
|
308
|
+
readonly requestStream: false;
|
|
309
|
+
readonly responseStream: false;
|
|
310
|
+
readonly requestSerialize: (value: SelectExecuteAbilityWorkflowsRequest) => Buffer;
|
|
311
|
+
readonly requestDeserialize: (value: Buffer) => SelectExecuteAbilityWorkflowsRequest;
|
|
312
|
+
readonly responseSerialize: (value: WorkflowsResponse) => Buffer;
|
|
313
|
+
readonly responseDeserialize: (value: Buffer) => WorkflowsResponse;
|
|
314
|
+
};
|
|
295
315
|
};
|
|
296
316
|
export interface WorkflowServiceServer extends UntypedServiceImplementation {
|
|
297
317
|
createWorkflow: handleUnaryCall<CreateWorkflowRequest, Workflow>;
|
|
@@ -306,6 +326,8 @@ export interface WorkflowServiceServer extends UntypedServiceImplementation {
|
|
|
306
326
|
createEdge: handleUnaryCall<CreateEdgeRequest, WorkflowEdge>;
|
|
307
327
|
deleteEdge: handleUnaryCall<DeleteEdgeRequest, Empty>;
|
|
308
328
|
saveStructure: handleUnaryCall<SaveStructureRequest, Empty>;
|
|
329
|
+
/** Return workflows that the user can execute (used by frontend selectExecuteAbilityWorkflows action) */
|
|
330
|
+
selectExecuteAbilityWorkflows: handleUnaryCall<SelectExecuteAbilityWorkflowsRequest, WorkflowsResponse>;
|
|
309
331
|
}
|
|
310
332
|
export interface MessageFns<T> {
|
|
311
333
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v5.28.2
|
|
6
6
|
// source: workflow.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.WorkflowServiceService = exports.WORKFLOW_SERVICE_NAME = exports.SaveStructureRequest = exports.WorkflowsResponse = exports.DeleteEdgeRequest = exports.CreateEdgeRequest = exports.DeleteNodeRequest = exports.UpdateNodeRequest = exports.CreateNodeRequest = exports.DeleteWorkflowRequest = exports.ListWorkflowsRequest = exports.GetWorkflowRequest = exports.UpdateWorkflowRequest = exports.CreateWorkflowRequest = exports.FullWorkflow = exports.WorkflowEdge = exports.WorkflowNode = exports.Workflow = exports.WORKFLOW_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
8
|
+
exports.WorkflowServiceService = exports.WORKFLOW_SERVICE_NAME = exports.SelectExecuteAbilityWorkflowsRequest = exports.SaveStructureRequest = exports.WorkflowsResponse = exports.DeleteEdgeRequest = exports.CreateEdgeRequest = exports.DeleteNodeRequest = exports.UpdateNodeRequest = exports.CreateNodeRequest = exports.DeleteWorkflowRequest = exports.ListWorkflowsRequest = exports.GetWorkflowRequest = exports.UpdateWorkflowRequest = exports.CreateWorkflowRequest = exports.FullWorkflow = exports.WorkflowEdge = exports.WorkflowNode = exports.Workflow = exports.WORKFLOW_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.WorkflowServiceControllerMethods = WorkflowServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
@@ -1183,6 +1183,59 @@ exports.SaveStructureRequest = {
|
|
|
1183
1183
|
return message;
|
|
1184
1184
|
},
|
|
1185
1185
|
};
|
|
1186
|
+
function createBaseSelectExecuteAbilityWorkflowsRequest() {
|
|
1187
|
+
return { userId: "", limit: 0, offset: 0 };
|
|
1188
|
+
}
|
|
1189
|
+
exports.SelectExecuteAbilityWorkflowsRequest = {
|
|
1190
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1191
|
+
if (message.userId !== "") {
|
|
1192
|
+
writer.uint32(10).string(message.userId);
|
|
1193
|
+
}
|
|
1194
|
+
if (message.limit !== 0) {
|
|
1195
|
+
writer.uint32(16).int32(message.limit);
|
|
1196
|
+
}
|
|
1197
|
+
if (message.offset !== 0) {
|
|
1198
|
+
writer.uint32(24).int32(message.offset);
|
|
1199
|
+
}
|
|
1200
|
+
return writer;
|
|
1201
|
+
},
|
|
1202
|
+
decode(input, length) {
|
|
1203
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1204
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1205
|
+
const message = createBaseSelectExecuteAbilityWorkflowsRequest();
|
|
1206
|
+
while (reader.pos < end) {
|
|
1207
|
+
const tag = reader.uint32();
|
|
1208
|
+
switch (tag >>> 3) {
|
|
1209
|
+
case 1: {
|
|
1210
|
+
if (tag !== 10) {
|
|
1211
|
+
break;
|
|
1212
|
+
}
|
|
1213
|
+
message.userId = reader.string();
|
|
1214
|
+
continue;
|
|
1215
|
+
}
|
|
1216
|
+
case 2: {
|
|
1217
|
+
if (tag !== 16) {
|
|
1218
|
+
break;
|
|
1219
|
+
}
|
|
1220
|
+
message.limit = reader.int32();
|
|
1221
|
+
continue;
|
|
1222
|
+
}
|
|
1223
|
+
case 3: {
|
|
1224
|
+
if (tag !== 24) {
|
|
1225
|
+
break;
|
|
1226
|
+
}
|
|
1227
|
+
message.offset = reader.int32();
|
|
1228
|
+
continue;
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1232
|
+
break;
|
|
1233
|
+
}
|
|
1234
|
+
reader.skip(tag & 7);
|
|
1235
|
+
}
|
|
1236
|
+
return message;
|
|
1237
|
+
},
|
|
1238
|
+
};
|
|
1186
1239
|
protobufjs_1.wrappers[".google.protobuf.Struct"] = { fromObject: struct_interface_1.Struct.wrap, toObject: struct_interface_1.Struct.unwrap };
|
|
1187
1240
|
function WorkflowServiceControllerMethods() {
|
|
1188
1241
|
return function (constructor) {
|
|
@@ -1198,6 +1251,7 @@ function WorkflowServiceControllerMethods() {
|
|
|
1198
1251
|
"createEdge",
|
|
1199
1252
|
"deleteEdge",
|
|
1200
1253
|
"saveStructure",
|
|
1254
|
+
"selectExecuteAbilityWorkflows",
|
|
1201
1255
|
];
|
|
1202
1256
|
for (const method of grpcMethods) {
|
|
1203
1257
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
@@ -1312,4 +1366,14 @@ exports.WorkflowServiceService = {
|
|
|
1312
1366
|
responseSerialize: (value) => Buffer.from(empty_interface_1.Empty.encode(value).finish()),
|
|
1313
1367
|
responseDeserialize: (value) => empty_interface_1.Empty.decode(value),
|
|
1314
1368
|
},
|
|
1369
|
+
/** Return workflows that the user can execute (used by frontend selectExecuteAbilityWorkflows action) */
|
|
1370
|
+
selectExecuteAbilityWorkflows: {
|
|
1371
|
+
path: "/workflow.WorkflowService/selectExecuteAbilityWorkflows",
|
|
1372
|
+
requestStream: false,
|
|
1373
|
+
responseStream: false,
|
|
1374
|
+
requestSerialize: (value) => Buffer.from(exports.SelectExecuteAbilityWorkflowsRequest.encode(value).finish()),
|
|
1375
|
+
requestDeserialize: (value) => exports.SelectExecuteAbilityWorkflowsRequest.decode(value),
|
|
1376
|
+
responseSerialize: (value) => Buffer.from(exports.WorkflowsResponse.encode(value).finish()),
|
|
1377
|
+
responseDeserialize: (value) => exports.WorkflowsResponse.decode(value),
|
|
1378
|
+
},
|
|
1315
1379
|
};
|