@code0-tech/tucana 0.0.47 → 0.0.49
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.
- package/package.json +1 -1
- package/pb/aquila.runtime_usage_pb.client.d.ts +32 -0
- package/pb/aquila.runtime_usage_pb.client.js +23 -0
- package/pb/aquila.runtime_usage_pb.d.ts +53 -0
- package/pb/aquila.runtime_usage_pb.js +112 -0
- package/pb/sagittarius.runtime_usage_pb.client.d.ts +32 -0
- package/pb/sagittarius.runtime_usage_pb.client.js +23 -0
- package/pb/sagittarius.runtime_usage_pb.d.ts +53 -0
- package/pb/sagittarius.runtime_usage_pb.js +112 -0
- package/pb/shared.flow_pb.d.ts +8 -0
- package/pb/shared.flow_pb.js +16 -1
- package/pb/shared.runtime_usage_pb.d.ts +33 -0
- package/pb/shared.runtime_usage_pb.js +62 -0
package/package.json
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
|
|
2
|
+
// @generated from protobuf file "aquila.runtime_usage.proto" (package "aquila", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
5
|
+
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
6
|
+
import type { RuntimeUsageResponse } from "./aquila.runtime_usage_pb";
|
|
7
|
+
import type { RuntimeUsageRequest } from "./aquila.runtime_usage_pb";
|
|
8
|
+
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
9
|
+
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
10
|
+
/**
|
|
11
|
+
* @generated from protobuf service aquila.RuntimeUsageService
|
|
12
|
+
*/
|
|
13
|
+
export interface IRuntimeUsageServiceClient {
|
|
14
|
+
/**
|
|
15
|
+
* @generated from protobuf rpc: Update
|
|
16
|
+
*/
|
|
17
|
+
update(input: RuntimeUsageRequest, options?: RpcOptions): UnaryCall<RuntimeUsageRequest, RuntimeUsageResponse>;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @generated from protobuf service aquila.RuntimeUsageService
|
|
21
|
+
*/
|
|
22
|
+
export declare class RuntimeUsageServiceClient implements IRuntimeUsageServiceClient, ServiceInfo {
|
|
23
|
+
private readonly _transport;
|
|
24
|
+
typeName: any;
|
|
25
|
+
methods: any;
|
|
26
|
+
options: any;
|
|
27
|
+
constructor(_transport: RpcTransport);
|
|
28
|
+
/**
|
|
29
|
+
* @generated from protobuf rpc: Update
|
|
30
|
+
*/
|
|
31
|
+
update(input: RuntimeUsageRequest, options?: RpcOptions): UnaryCall<RuntimeUsageRequest, RuntimeUsageResponse>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
|
|
2
|
+
// @generated from protobuf file "aquila.runtime_usage.proto" (package "aquila", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
import { RuntimeUsageService } from "./aquila.runtime_usage_pb";
|
|
5
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
6
|
+
/**
|
|
7
|
+
* @generated from protobuf service aquila.RuntimeUsageService
|
|
8
|
+
*/
|
|
9
|
+
export class RuntimeUsageServiceClient {
|
|
10
|
+
constructor(_transport) {
|
|
11
|
+
this._transport = _transport;
|
|
12
|
+
this.typeName = RuntimeUsageService.typeName;
|
|
13
|
+
this.methods = RuntimeUsageService.methods;
|
|
14
|
+
this.options = RuntimeUsageService.options;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @generated from protobuf rpc: Update
|
|
18
|
+
*/
|
|
19
|
+
update(input, options) {
|
|
20
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
21
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
|
|
2
|
+
// @generated from protobuf file "aquila.runtime_usage.proto" (package "aquila", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
9
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
10
|
+
import { RuntimeUsage } from "./shared.runtime_usage_pb";
|
|
11
|
+
/**
|
|
12
|
+
* @generated from protobuf message aquila.RuntimeUsageRequest
|
|
13
|
+
*/
|
|
14
|
+
export interface RuntimeUsageRequest {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from protobuf field: repeated shared.RuntimeUsage runtime_usage = 1
|
|
17
|
+
*/
|
|
18
|
+
runtimeUsage: RuntimeUsage[];
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @generated from protobuf message aquila.RuntimeUsageResponse
|
|
22
|
+
*/
|
|
23
|
+
export interface RuntimeUsageResponse {
|
|
24
|
+
/**
|
|
25
|
+
* @generated from protobuf field: bool success = 1
|
|
26
|
+
*/
|
|
27
|
+
success: boolean;
|
|
28
|
+
}
|
|
29
|
+
declare class RuntimeUsageRequest$Type extends MessageType<RuntimeUsageRequest> {
|
|
30
|
+
constructor();
|
|
31
|
+
create(value?: PartialMessage<RuntimeUsageRequest>): RuntimeUsageRequest;
|
|
32
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RuntimeUsageRequest): RuntimeUsageRequest;
|
|
33
|
+
internalBinaryWrite(message: RuntimeUsageRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* @generated MessageType for protobuf message aquila.RuntimeUsageRequest
|
|
37
|
+
*/
|
|
38
|
+
export declare const RuntimeUsageRequest: RuntimeUsageRequest$Type;
|
|
39
|
+
declare class RuntimeUsageResponse$Type extends MessageType<RuntimeUsageResponse> {
|
|
40
|
+
constructor();
|
|
41
|
+
create(value?: PartialMessage<RuntimeUsageResponse>): RuntimeUsageResponse;
|
|
42
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RuntimeUsageResponse): RuntimeUsageResponse;
|
|
43
|
+
internalBinaryWrite(message: RuntimeUsageResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @generated MessageType for protobuf message aquila.RuntimeUsageResponse
|
|
47
|
+
*/
|
|
48
|
+
export declare const RuntimeUsageResponse: RuntimeUsageResponse$Type;
|
|
49
|
+
/**
|
|
50
|
+
* @generated ServiceType for protobuf service aquila.RuntimeUsageService
|
|
51
|
+
*/
|
|
52
|
+
export declare const RuntimeUsageService: any;
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
|
|
2
|
+
// @generated from protobuf file "aquila.runtime_usage.proto" (package "aquila", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
|
|
5
|
+
// @generated from protobuf file "aquila.runtime_usage.proto" (package "aquila", syntax proto3)
|
|
6
|
+
// tslint:disable
|
|
7
|
+
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
8
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
9
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
11
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
12
|
+
import { RuntimeUsage } from "./shared.runtime_usage_pb";
|
|
13
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
14
|
+
class RuntimeUsageRequest$Type extends MessageType {
|
|
15
|
+
constructor() {
|
|
16
|
+
super("aquila.RuntimeUsageRequest", [
|
|
17
|
+
{ no: 1, name: "runtime_usage", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RuntimeUsage }
|
|
18
|
+
]);
|
|
19
|
+
}
|
|
20
|
+
create(value) {
|
|
21
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
22
|
+
message.runtimeUsage = [];
|
|
23
|
+
if (value !== undefined)
|
|
24
|
+
reflectionMergePartial(this, message, value);
|
|
25
|
+
return message;
|
|
26
|
+
}
|
|
27
|
+
internalBinaryRead(reader, length, options, target) {
|
|
28
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
let [fieldNo, wireType] = reader.tag();
|
|
31
|
+
switch (fieldNo) {
|
|
32
|
+
case /* repeated shared.RuntimeUsage runtime_usage */ 1:
|
|
33
|
+
message.runtimeUsage.push(RuntimeUsage.internalBinaryRead(reader, reader.uint32(), options));
|
|
34
|
+
break;
|
|
35
|
+
default:
|
|
36
|
+
let u = options.readUnknownField;
|
|
37
|
+
if (u === "throw")
|
|
38
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
39
|
+
let d = reader.skip(wireType);
|
|
40
|
+
if (u !== false)
|
|
41
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return message;
|
|
45
|
+
}
|
|
46
|
+
internalBinaryWrite(message, writer, options) {
|
|
47
|
+
/* repeated shared.RuntimeUsage runtime_usage = 1; */
|
|
48
|
+
for (let i = 0; i < message.runtimeUsage.length; i++)
|
|
49
|
+
RuntimeUsage.internalBinaryWrite(message.runtimeUsage[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
50
|
+
let u = options.writeUnknownFields;
|
|
51
|
+
if (u !== false)
|
|
52
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
53
|
+
return writer;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @generated MessageType for protobuf message aquila.RuntimeUsageRequest
|
|
58
|
+
*/
|
|
59
|
+
export const RuntimeUsageRequest = new RuntimeUsageRequest$Type();
|
|
60
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
61
|
+
class RuntimeUsageResponse$Type extends MessageType {
|
|
62
|
+
constructor() {
|
|
63
|
+
super("aquila.RuntimeUsageResponse", [
|
|
64
|
+
{ no: 1, name: "success", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
65
|
+
]);
|
|
66
|
+
}
|
|
67
|
+
create(value) {
|
|
68
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
69
|
+
message.success = false;
|
|
70
|
+
if (value !== undefined)
|
|
71
|
+
reflectionMergePartial(this, message, value);
|
|
72
|
+
return message;
|
|
73
|
+
}
|
|
74
|
+
internalBinaryRead(reader, length, options, target) {
|
|
75
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
76
|
+
while (reader.pos < end) {
|
|
77
|
+
let [fieldNo, wireType] = reader.tag();
|
|
78
|
+
switch (fieldNo) {
|
|
79
|
+
case /* bool success */ 1:
|
|
80
|
+
message.success = reader.bool();
|
|
81
|
+
break;
|
|
82
|
+
default:
|
|
83
|
+
let u = options.readUnknownField;
|
|
84
|
+
if (u === "throw")
|
|
85
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
86
|
+
let d = reader.skip(wireType);
|
|
87
|
+
if (u !== false)
|
|
88
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return message;
|
|
92
|
+
}
|
|
93
|
+
internalBinaryWrite(message, writer, options) {
|
|
94
|
+
/* bool success = 1; */
|
|
95
|
+
if (message.success !== false)
|
|
96
|
+
writer.tag(1, WireType.Varint).bool(message.success);
|
|
97
|
+
let u = options.writeUnknownFields;
|
|
98
|
+
if (u !== false)
|
|
99
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
100
|
+
return writer;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* @generated MessageType for protobuf message aquila.RuntimeUsageResponse
|
|
105
|
+
*/
|
|
106
|
+
export const RuntimeUsageResponse = new RuntimeUsageResponse$Type();
|
|
107
|
+
/**
|
|
108
|
+
* @generated ServiceType for protobuf service aquila.RuntimeUsageService
|
|
109
|
+
*/
|
|
110
|
+
export const RuntimeUsageService = new ServiceType("aquila.RuntimeUsageService", [
|
|
111
|
+
{ name: "Update", options: {}, I: RuntimeUsageRequest, O: RuntimeUsageResponse }
|
|
112
|
+
]);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
|
|
2
|
+
// @generated from protobuf file "sagittarius.runtime_usage.proto" (package "sagittarius", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
5
|
+
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
6
|
+
import type { RuntimeUsageResponse } from "./sagittarius.runtime_usage_pb";
|
|
7
|
+
import type { RuntimeUsageRequest } from "./sagittarius.runtime_usage_pb";
|
|
8
|
+
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
9
|
+
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
10
|
+
/**
|
|
11
|
+
* @generated from protobuf service sagittarius.RuntimeUsageService
|
|
12
|
+
*/
|
|
13
|
+
export interface IRuntimeUsageServiceClient {
|
|
14
|
+
/**
|
|
15
|
+
* @generated from protobuf rpc: Update
|
|
16
|
+
*/
|
|
17
|
+
update(input: RuntimeUsageRequest, options?: RpcOptions): UnaryCall<RuntimeUsageRequest, RuntimeUsageResponse>;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @generated from protobuf service sagittarius.RuntimeUsageService
|
|
21
|
+
*/
|
|
22
|
+
export declare class RuntimeUsageServiceClient implements IRuntimeUsageServiceClient, ServiceInfo {
|
|
23
|
+
private readonly _transport;
|
|
24
|
+
typeName: any;
|
|
25
|
+
methods: any;
|
|
26
|
+
options: any;
|
|
27
|
+
constructor(_transport: RpcTransport);
|
|
28
|
+
/**
|
|
29
|
+
* @generated from protobuf rpc: Update
|
|
30
|
+
*/
|
|
31
|
+
update(input: RuntimeUsageRequest, options?: RpcOptions): UnaryCall<RuntimeUsageRequest, RuntimeUsageResponse>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
|
|
2
|
+
// @generated from protobuf file "sagittarius.runtime_usage.proto" (package "sagittarius", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
import { RuntimeUsageService } from "./sagittarius.runtime_usage_pb";
|
|
5
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
6
|
+
/**
|
|
7
|
+
* @generated from protobuf service sagittarius.RuntimeUsageService
|
|
8
|
+
*/
|
|
9
|
+
export class RuntimeUsageServiceClient {
|
|
10
|
+
constructor(_transport) {
|
|
11
|
+
this._transport = _transport;
|
|
12
|
+
this.typeName = RuntimeUsageService.typeName;
|
|
13
|
+
this.methods = RuntimeUsageService.methods;
|
|
14
|
+
this.options = RuntimeUsageService.options;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @generated from protobuf rpc: Update
|
|
18
|
+
*/
|
|
19
|
+
update(input, options) {
|
|
20
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
21
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
|
|
2
|
+
// @generated from protobuf file "sagittarius.runtime_usage.proto" (package "sagittarius", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
9
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
10
|
+
import { RuntimeUsage } from "./shared.runtime_usage_pb";
|
|
11
|
+
/**
|
|
12
|
+
* @generated from protobuf message sagittarius.RuntimeUsageRequest
|
|
13
|
+
*/
|
|
14
|
+
export interface RuntimeUsageRequest {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from protobuf field: repeated shared.RuntimeUsage runtime_usage = 1
|
|
17
|
+
*/
|
|
18
|
+
runtimeUsage: RuntimeUsage[];
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @generated from protobuf message sagittarius.RuntimeUsageResponse
|
|
22
|
+
*/
|
|
23
|
+
export interface RuntimeUsageResponse {
|
|
24
|
+
/**
|
|
25
|
+
* @generated from protobuf field: bool success = 1
|
|
26
|
+
*/
|
|
27
|
+
success: boolean;
|
|
28
|
+
}
|
|
29
|
+
declare class RuntimeUsageRequest$Type extends MessageType<RuntimeUsageRequest> {
|
|
30
|
+
constructor();
|
|
31
|
+
create(value?: PartialMessage<RuntimeUsageRequest>): RuntimeUsageRequest;
|
|
32
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RuntimeUsageRequest): RuntimeUsageRequest;
|
|
33
|
+
internalBinaryWrite(message: RuntimeUsageRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* @generated MessageType for protobuf message sagittarius.RuntimeUsageRequest
|
|
37
|
+
*/
|
|
38
|
+
export declare const RuntimeUsageRequest: RuntimeUsageRequest$Type;
|
|
39
|
+
declare class RuntimeUsageResponse$Type extends MessageType<RuntimeUsageResponse> {
|
|
40
|
+
constructor();
|
|
41
|
+
create(value?: PartialMessage<RuntimeUsageResponse>): RuntimeUsageResponse;
|
|
42
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RuntimeUsageResponse): RuntimeUsageResponse;
|
|
43
|
+
internalBinaryWrite(message: RuntimeUsageResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @generated MessageType for protobuf message sagittarius.RuntimeUsageResponse
|
|
47
|
+
*/
|
|
48
|
+
export declare const RuntimeUsageResponse: RuntimeUsageResponse$Type;
|
|
49
|
+
/**
|
|
50
|
+
* @generated ServiceType for protobuf service sagittarius.RuntimeUsageService
|
|
51
|
+
*/
|
|
52
|
+
export declare const RuntimeUsageService: any;
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
|
|
2
|
+
// @generated from protobuf file "sagittarius.runtime_usage.proto" (package "sagittarius", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
|
|
5
|
+
// @generated from protobuf file "sagittarius.runtime_usage.proto" (package "sagittarius", syntax proto3)
|
|
6
|
+
// tslint:disable
|
|
7
|
+
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
8
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
9
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
11
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
12
|
+
import { RuntimeUsage } from "./shared.runtime_usage_pb";
|
|
13
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
14
|
+
class RuntimeUsageRequest$Type extends MessageType {
|
|
15
|
+
constructor() {
|
|
16
|
+
super("sagittarius.RuntimeUsageRequest", [
|
|
17
|
+
{ no: 1, name: "runtime_usage", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RuntimeUsage }
|
|
18
|
+
]);
|
|
19
|
+
}
|
|
20
|
+
create(value) {
|
|
21
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
22
|
+
message.runtimeUsage = [];
|
|
23
|
+
if (value !== undefined)
|
|
24
|
+
reflectionMergePartial(this, message, value);
|
|
25
|
+
return message;
|
|
26
|
+
}
|
|
27
|
+
internalBinaryRead(reader, length, options, target) {
|
|
28
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
let [fieldNo, wireType] = reader.tag();
|
|
31
|
+
switch (fieldNo) {
|
|
32
|
+
case /* repeated shared.RuntimeUsage runtime_usage */ 1:
|
|
33
|
+
message.runtimeUsage.push(RuntimeUsage.internalBinaryRead(reader, reader.uint32(), options));
|
|
34
|
+
break;
|
|
35
|
+
default:
|
|
36
|
+
let u = options.readUnknownField;
|
|
37
|
+
if (u === "throw")
|
|
38
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
39
|
+
let d = reader.skip(wireType);
|
|
40
|
+
if (u !== false)
|
|
41
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return message;
|
|
45
|
+
}
|
|
46
|
+
internalBinaryWrite(message, writer, options) {
|
|
47
|
+
/* repeated shared.RuntimeUsage runtime_usage = 1; */
|
|
48
|
+
for (let i = 0; i < message.runtimeUsage.length; i++)
|
|
49
|
+
RuntimeUsage.internalBinaryWrite(message.runtimeUsage[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
50
|
+
let u = options.writeUnknownFields;
|
|
51
|
+
if (u !== false)
|
|
52
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
53
|
+
return writer;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @generated MessageType for protobuf message sagittarius.RuntimeUsageRequest
|
|
58
|
+
*/
|
|
59
|
+
export const RuntimeUsageRequest = new RuntimeUsageRequest$Type();
|
|
60
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
61
|
+
class RuntimeUsageResponse$Type extends MessageType {
|
|
62
|
+
constructor() {
|
|
63
|
+
super("sagittarius.RuntimeUsageResponse", [
|
|
64
|
+
{ no: 1, name: "success", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
65
|
+
]);
|
|
66
|
+
}
|
|
67
|
+
create(value) {
|
|
68
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
69
|
+
message.success = false;
|
|
70
|
+
if (value !== undefined)
|
|
71
|
+
reflectionMergePartial(this, message, value);
|
|
72
|
+
return message;
|
|
73
|
+
}
|
|
74
|
+
internalBinaryRead(reader, length, options, target) {
|
|
75
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
76
|
+
while (reader.pos < end) {
|
|
77
|
+
let [fieldNo, wireType] = reader.tag();
|
|
78
|
+
switch (fieldNo) {
|
|
79
|
+
case /* bool success */ 1:
|
|
80
|
+
message.success = reader.bool();
|
|
81
|
+
break;
|
|
82
|
+
default:
|
|
83
|
+
let u = options.readUnknownField;
|
|
84
|
+
if (u === "throw")
|
|
85
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
86
|
+
let d = reader.skip(wireType);
|
|
87
|
+
if (u !== false)
|
|
88
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return message;
|
|
92
|
+
}
|
|
93
|
+
internalBinaryWrite(message, writer, options) {
|
|
94
|
+
/* bool success = 1; */
|
|
95
|
+
if (message.success !== false)
|
|
96
|
+
writer.tag(1, WireType.Varint).bool(message.success);
|
|
97
|
+
let u = options.writeUnknownFields;
|
|
98
|
+
if (u !== false)
|
|
99
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
100
|
+
return writer;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* @generated MessageType for protobuf message sagittarius.RuntimeUsageResponse
|
|
105
|
+
*/
|
|
106
|
+
export const RuntimeUsageResponse = new RuntimeUsageResponse$Type();
|
|
107
|
+
/**
|
|
108
|
+
* @generated ServiceType for protobuf service sagittarius.RuntimeUsageService
|
|
109
|
+
*/
|
|
110
|
+
export const RuntimeUsageService = new ServiceType("sagittarius.RuntimeUsageService", [
|
|
111
|
+
{ name: "Update", options: {}, I: RuntimeUsageRequest, O: RuntimeUsageResponse }
|
|
112
|
+
]);
|
package/pb/shared.flow_pb.d.ts
CHANGED
|
@@ -58,6 +58,14 @@ export interface ValidationFlow {
|
|
|
58
58
|
* @generated from protobuf field: repeated shared.NodeFunction node_functions = 9
|
|
59
59
|
*/
|
|
60
60
|
nodeFunctions: NodeFunction[];
|
|
61
|
+
/**
|
|
62
|
+
* @generated from protobuf field: string project_slug = 10
|
|
63
|
+
*/
|
|
64
|
+
projectSlug: string;
|
|
65
|
+
/**
|
|
66
|
+
* @generated from protobuf field: optional string disable_reason = 11
|
|
67
|
+
*/
|
|
68
|
+
disableReason?: string;
|
|
61
69
|
}
|
|
62
70
|
/**
|
|
63
71
|
* @generated from protobuf message shared.ExecutionFlow
|
package/pb/shared.flow_pb.js
CHANGED
|
@@ -20,7 +20,9 @@ class ValidationFlow$Type extends MessageType {
|
|
|
20
20
|
{ no: 6, name: "return_type_identifier", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
21
21
|
{ no: 7, name: "settings", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FlowSetting },
|
|
22
22
|
{ no: 8, name: "starting_node_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
23
|
-
{ no: 9, name: "node_functions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => NodeFunction }
|
|
23
|
+
{ no: 9, name: "node_functions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => NodeFunction },
|
|
24
|
+
{ no: 10, name: "project_slug", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
25
|
+
{ no: 11, name: "disable_reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
24
26
|
]);
|
|
25
27
|
}
|
|
26
28
|
create(value) {
|
|
@@ -32,6 +34,7 @@ class ValidationFlow$Type extends MessageType {
|
|
|
32
34
|
message.settings = [];
|
|
33
35
|
message.startingNodeId = 0n;
|
|
34
36
|
message.nodeFunctions = [];
|
|
37
|
+
message.projectSlug = "";
|
|
35
38
|
if (value !== undefined)
|
|
36
39
|
reflectionMergePartial(this, message, value);
|
|
37
40
|
return message;
|
|
@@ -68,6 +71,12 @@ class ValidationFlow$Type extends MessageType {
|
|
|
68
71
|
case /* repeated shared.NodeFunction node_functions */ 9:
|
|
69
72
|
message.nodeFunctions.push(NodeFunction.internalBinaryRead(reader, reader.uint32(), options));
|
|
70
73
|
break;
|
|
74
|
+
case /* string project_slug */ 10:
|
|
75
|
+
message.projectSlug = reader.string();
|
|
76
|
+
break;
|
|
77
|
+
case /* optional string disable_reason */ 11:
|
|
78
|
+
message.disableReason = reader.string();
|
|
79
|
+
break;
|
|
71
80
|
default:
|
|
72
81
|
let u = options.readUnknownField;
|
|
73
82
|
if (u === "throw")
|
|
@@ -107,6 +116,12 @@ class ValidationFlow$Type extends MessageType {
|
|
|
107
116
|
/* repeated shared.NodeFunction node_functions = 9; */
|
|
108
117
|
for (let i = 0; i < message.nodeFunctions.length; i++)
|
|
109
118
|
NodeFunction.internalBinaryWrite(message.nodeFunctions[i], writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
119
|
+
/* string project_slug = 10; */
|
|
120
|
+
if (message.projectSlug !== "")
|
|
121
|
+
writer.tag(10, WireType.LengthDelimited).string(message.projectSlug);
|
|
122
|
+
/* optional string disable_reason = 11; */
|
|
123
|
+
if (message.disableReason !== undefined)
|
|
124
|
+
writer.tag(11, WireType.LengthDelimited).string(message.disableReason);
|
|
110
125
|
let u = options.writeUnknownFields;
|
|
111
126
|
if (u !== false)
|
|
112
127
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
|
|
2
|
+
// @generated from protobuf file "shared.runtime_usage.proto" (package "shared", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
9
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
10
|
+
/**
|
|
11
|
+
* @generated from protobuf message shared.RuntimeUsage
|
|
12
|
+
*/
|
|
13
|
+
export interface RuntimeUsage {
|
|
14
|
+
/**
|
|
15
|
+
* @generated from protobuf field: int64 flow_id = 1
|
|
16
|
+
*/
|
|
17
|
+
flowId: bigint;
|
|
18
|
+
/**
|
|
19
|
+
* @generated from protobuf field: int64 duration = 2
|
|
20
|
+
*/
|
|
21
|
+
duration: bigint;
|
|
22
|
+
}
|
|
23
|
+
declare class RuntimeUsage$Type extends MessageType<RuntimeUsage> {
|
|
24
|
+
constructor();
|
|
25
|
+
create(value?: PartialMessage<RuntimeUsage>): RuntimeUsage;
|
|
26
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RuntimeUsage): RuntimeUsage;
|
|
27
|
+
internalBinaryWrite(message: RuntimeUsage, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @generated MessageType for protobuf message shared.RuntimeUsage
|
|
31
|
+
*/
|
|
32
|
+
export declare const RuntimeUsage: RuntimeUsage$Type;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
|
|
2
|
+
// @generated from protobuf file "shared.runtime_usage.proto" (package "shared", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
5
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
6
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
7
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
8
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
9
|
+
class RuntimeUsage$Type extends MessageType {
|
|
10
|
+
constructor() {
|
|
11
|
+
super("shared.RuntimeUsage", [
|
|
12
|
+
{ no: 1, name: "flow_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
13
|
+
{ no: 2, name: "duration", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
14
|
+
]);
|
|
15
|
+
}
|
|
16
|
+
create(value) {
|
|
17
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
18
|
+
message.flowId = 0n;
|
|
19
|
+
message.duration = 0n;
|
|
20
|
+
if (value !== undefined)
|
|
21
|
+
reflectionMergePartial(this, message, value);
|
|
22
|
+
return message;
|
|
23
|
+
}
|
|
24
|
+
internalBinaryRead(reader, length, options, target) {
|
|
25
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
26
|
+
while (reader.pos < end) {
|
|
27
|
+
let [fieldNo, wireType] = reader.tag();
|
|
28
|
+
switch (fieldNo) {
|
|
29
|
+
case /* int64 flow_id */ 1:
|
|
30
|
+
message.flowId = reader.int64().toBigInt();
|
|
31
|
+
break;
|
|
32
|
+
case /* int64 duration */ 2:
|
|
33
|
+
message.duration = reader.int64().toBigInt();
|
|
34
|
+
break;
|
|
35
|
+
default:
|
|
36
|
+
let u = options.readUnknownField;
|
|
37
|
+
if (u === "throw")
|
|
38
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
39
|
+
let d = reader.skip(wireType);
|
|
40
|
+
if (u !== false)
|
|
41
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return message;
|
|
45
|
+
}
|
|
46
|
+
internalBinaryWrite(message, writer, options) {
|
|
47
|
+
/* int64 flow_id = 1; */
|
|
48
|
+
if (message.flowId !== 0n)
|
|
49
|
+
writer.tag(1, WireType.Varint).int64(message.flowId);
|
|
50
|
+
/* int64 duration = 2; */
|
|
51
|
+
if (message.duration !== 0n)
|
|
52
|
+
writer.tag(2, WireType.Varint).int64(message.duration);
|
|
53
|
+
let u = options.writeUnknownFields;
|
|
54
|
+
if (u !== false)
|
|
55
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
56
|
+
return writer;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* @generated MessageType for protobuf message shared.RuntimeUsage
|
|
61
|
+
*/
|
|
62
|
+
export const RuntimeUsage = new RuntimeUsage$Type();
|