@code0-tech/tucana 0.0.51 → 0.0.53

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.
@@ -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.action_configuration.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 { ActionConfigurationUpdateResponse } from "./sagittarius.action_configuration_pb";
7
+ import type { ActionConfigurationUpdateRequest } from "./sagittarius.action_configuration_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.ActionConfigurationService
12
+ */
13
+ export interface IActionConfigurationServiceClient {
14
+ /**
15
+ * @generated from protobuf rpc: Update
16
+ */
17
+ update(input: ActionConfigurationUpdateRequest, options?: RpcOptions): UnaryCall<ActionConfigurationUpdateRequest, ActionConfigurationUpdateResponse>;
18
+ }
19
+ /**
20
+ * @generated from protobuf service sagittarius.ActionConfigurationService
21
+ */
22
+ export declare class ActionConfigurationServiceClient implements IActionConfigurationServiceClient, 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: ActionConfigurationUpdateRequest, options?: RpcOptions): UnaryCall<ActionConfigurationUpdateRequest, ActionConfigurationUpdateResponse>;
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.action_configuration.proto" (package "sagittarius", syntax proto3)
3
+ // tslint:disable
4
+ import { ActionConfigurationService } from "./sagittarius.action_configuration_pb";
5
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
6
+ /**
7
+ * @generated from protobuf service sagittarius.ActionConfigurationService
8
+ */
9
+ export class ActionConfigurationServiceClient {
10
+ constructor(_transport) {
11
+ this._transport = _transport;
12
+ this.typeName = ActionConfigurationService.typeName;
13
+ this.methods = ActionConfigurationService.methods;
14
+ this.options = ActionConfigurationService.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,67 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
+ // @generated from protobuf file "sagittarius.action_configuration.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 { ActionConfiguration } from "./shared.action_configuration_pb";
11
+ /**
12
+ * Request for updating a action configuration
13
+ *
14
+ * @generated from protobuf message sagittarius.ActionConfigurationUpdateRequest
15
+ */
16
+ export interface ActionConfigurationUpdateRequest {
17
+ /**
18
+ * Name of the action
19
+ *
20
+ * @generated from protobuf field: string action_identifier = 1
21
+ */
22
+ actionIdentifier: string;
23
+ /**
24
+ * List of action configurations that should be updated
25
+ *
26
+ * @generated from protobuf field: repeated shared.ActionConfiguration action_configurations = 2
27
+ */
28
+ actionConfigurations: ActionConfiguration[];
29
+ }
30
+ /**
31
+ * Response of updating a action configuration
32
+ *
33
+ * @generated from protobuf message sagittarius.ActionConfigurationUpdateResponse
34
+ */
35
+ export interface ActionConfigurationUpdateResponse {
36
+ /**
37
+ * True if was successful, false if not
38
+ *
39
+ * @generated from protobuf field: bool success = 1
40
+ */
41
+ success: boolean;
42
+ }
43
+ declare class ActionConfigurationUpdateRequest$Type extends MessageType<ActionConfigurationUpdateRequest> {
44
+ constructor();
45
+ create(value?: PartialMessage<ActionConfigurationUpdateRequest>): ActionConfigurationUpdateRequest;
46
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionConfigurationUpdateRequest): ActionConfigurationUpdateRequest;
47
+ internalBinaryWrite(message: ActionConfigurationUpdateRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
48
+ }
49
+ /**
50
+ * @generated MessageType for protobuf message sagittarius.ActionConfigurationUpdateRequest
51
+ */
52
+ export declare const ActionConfigurationUpdateRequest: ActionConfigurationUpdateRequest$Type;
53
+ declare class ActionConfigurationUpdateResponse$Type extends MessageType<ActionConfigurationUpdateResponse> {
54
+ constructor();
55
+ create(value?: PartialMessage<ActionConfigurationUpdateResponse>): ActionConfigurationUpdateResponse;
56
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionConfigurationUpdateResponse): ActionConfigurationUpdateResponse;
57
+ internalBinaryWrite(message: ActionConfigurationUpdateResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
58
+ }
59
+ /**
60
+ * @generated MessageType for protobuf message sagittarius.ActionConfigurationUpdateResponse
61
+ */
62
+ export declare const ActionConfigurationUpdateResponse: ActionConfigurationUpdateResponse$Type;
63
+ /**
64
+ * @generated ServiceType for protobuf service sagittarius.ActionConfigurationService
65
+ */
66
+ export declare const ActionConfigurationService: any;
67
+ export {};
@@ -0,0 +1,120 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
+ // @generated from protobuf file "sagittarius.action_configuration.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.action_configuration.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 { ActionConfiguration } from "./shared.action_configuration_pb";
13
+ // @generated message type with reflection information, may provide speed optimized methods
14
+ class ActionConfigurationUpdateRequest$Type extends MessageType {
15
+ constructor() {
16
+ super("sagittarius.ActionConfigurationUpdateRequest", [
17
+ { no: 1, name: "action_identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
18
+ { no: 2, name: "action_configurations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ActionConfiguration }
19
+ ]);
20
+ }
21
+ create(value) {
22
+ const message = globalThis.Object.create((this.messagePrototype));
23
+ message.actionIdentifier = "";
24
+ message.actionConfigurations = [];
25
+ if (value !== undefined)
26
+ reflectionMergePartial(this, message, value);
27
+ return message;
28
+ }
29
+ internalBinaryRead(reader, length, options, target) {
30
+ let message = target ?? this.create(), end = reader.pos + length;
31
+ while (reader.pos < end) {
32
+ let [fieldNo, wireType] = reader.tag();
33
+ switch (fieldNo) {
34
+ case /* string action_identifier */ 1:
35
+ message.actionIdentifier = reader.string();
36
+ break;
37
+ case /* repeated shared.ActionConfiguration action_configurations */ 2:
38
+ message.actionConfigurations.push(ActionConfiguration.internalBinaryRead(reader, reader.uint32(), options));
39
+ break;
40
+ default:
41
+ let u = options.readUnknownField;
42
+ if (u === "throw")
43
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
44
+ let d = reader.skip(wireType);
45
+ if (u !== false)
46
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
47
+ }
48
+ }
49
+ return message;
50
+ }
51
+ internalBinaryWrite(message, writer, options) {
52
+ /* string action_identifier = 1; */
53
+ if (message.actionIdentifier !== "")
54
+ writer.tag(1, WireType.LengthDelimited).string(message.actionIdentifier);
55
+ /* repeated shared.ActionConfiguration action_configurations = 2; */
56
+ for (let i = 0; i < message.actionConfigurations.length; i++)
57
+ ActionConfiguration.internalBinaryWrite(message.actionConfigurations[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
58
+ let u = options.writeUnknownFields;
59
+ if (u !== false)
60
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
61
+ return writer;
62
+ }
63
+ }
64
+ /**
65
+ * @generated MessageType for protobuf message sagittarius.ActionConfigurationUpdateRequest
66
+ */
67
+ export const ActionConfigurationUpdateRequest = new ActionConfigurationUpdateRequest$Type();
68
+ // @generated message type with reflection information, may provide speed optimized methods
69
+ class ActionConfigurationUpdateResponse$Type extends MessageType {
70
+ constructor() {
71
+ super("sagittarius.ActionConfigurationUpdateResponse", [
72
+ { no: 1, name: "success", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
73
+ ]);
74
+ }
75
+ create(value) {
76
+ const message = globalThis.Object.create((this.messagePrototype));
77
+ message.success = false;
78
+ if (value !== undefined)
79
+ reflectionMergePartial(this, message, value);
80
+ return message;
81
+ }
82
+ internalBinaryRead(reader, length, options, target) {
83
+ let message = target ?? this.create(), end = reader.pos + length;
84
+ while (reader.pos < end) {
85
+ let [fieldNo, wireType] = reader.tag();
86
+ switch (fieldNo) {
87
+ case /* bool success */ 1:
88
+ message.success = reader.bool();
89
+ break;
90
+ default:
91
+ let u = options.readUnknownField;
92
+ if (u === "throw")
93
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
94
+ let d = reader.skip(wireType);
95
+ if (u !== false)
96
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
97
+ }
98
+ }
99
+ return message;
100
+ }
101
+ internalBinaryWrite(message, writer, options) {
102
+ /* bool success = 1; */
103
+ if (message.success !== false)
104
+ writer.tag(1, WireType.Varint).bool(message.success);
105
+ let u = options.writeUnknownFields;
106
+ if (u !== false)
107
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
108
+ return writer;
109
+ }
110
+ }
111
+ /**
112
+ * @generated MessageType for protobuf message sagittarius.ActionConfigurationUpdateResponse
113
+ */
114
+ export const ActionConfigurationUpdateResponse = new ActionConfigurationUpdateResponse$Type();
115
+ /**
116
+ * @generated ServiceType for protobuf service sagittarius.ActionConfigurationService
117
+ */
118
+ export const ActionConfigurationService = new ServiceType("sagittarius.ActionConfigurationService", [
119
+ { name: "Update", options: {}, I: ActionConfigurationUpdateRequest, O: ActionConfigurationUpdateResponse }
120
+ ]);
@@ -0,0 +1,44 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
+ // @generated from protobuf file "shared.action_configuration.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
+ import { Value } from "./shared.struct_pb";
11
+ import { DefinitionDataType } from "./shared.data_type_pb";
12
+ import { Translation } from "./shared.translation_pb";
13
+ /**
14
+ * @generated from protobuf message shared.ActionConfiguration
15
+ */
16
+ export interface ActionConfiguration {
17
+ /**
18
+ * @generated from protobuf field: repeated shared.Translation name = 1
19
+ */
20
+ name: Translation[];
21
+ /**
22
+ * @generated from protobuf field: repeated shared.Translation description = 2
23
+ */
24
+ description: Translation[];
25
+ /**
26
+ * @generated from protobuf field: shared.DefinitionDataType type = 3
27
+ */
28
+ type?: DefinitionDataType;
29
+ /**
30
+ * @generated from protobuf field: optional shared.Value default_value = 4
31
+ */
32
+ defaultValue?: Value;
33
+ }
34
+ declare class ActionConfiguration$Type extends MessageType<ActionConfiguration> {
35
+ constructor();
36
+ create(value?: PartialMessage<ActionConfiguration>): ActionConfiguration;
37
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionConfiguration): ActionConfiguration;
38
+ internalBinaryWrite(message: ActionConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
39
+ }
40
+ /**
41
+ * @generated MessageType for protobuf message shared.ActionConfiguration
42
+ */
43
+ export declare const ActionConfiguration: ActionConfiguration$Type;
44
+ export {};
@@ -0,0 +1,79 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
+ // @generated from protobuf file "shared.action_configuration.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
+ import { Value } from "./shared.struct_pb";
9
+ import { DefinitionDataType } from "./shared.data_type_pb";
10
+ import { Translation } from "./shared.translation_pb";
11
+ // @generated message type with reflection information, may provide speed optimized methods
12
+ class ActionConfiguration$Type extends MessageType {
13
+ constructor() {
14
+ super("shared.ActionConfiguration", [
15
+ { no: 1, name: "name", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
16
+ { no: 2, name: "description", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
17
+ { no: 3, name: "type", kind: "message", T: () => DefinitionDataType },
18
+ { no: 4, name: "default_value", kind: "message", T: () => Value }
19
+ ]);
20
+ }
21
+ create(value) {
22
+ const message = globalThis.Object.create((this.messagePrototype));
23
+ message.name = [];
24
+ message.description = [];
25
+ if (value !== undefined)
26
+ reflectionMergePartial(this, message, value);
27
+ return message;
28
+ }
29
+ internalBinaryRead(reader, length, options, target) {
30
+ let message = target ?? this.create(), end = reader.pos + length;
31
+ while (reader.pos < end) {
32
+ let [fieldNo, wireType] = reader.tag();
33
+ switch (fieldNo) {
34
+ case /* repeated shared.Translation name */ 1:
35
+ message.name.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
36
+ break;
37
+ case /* repeated shared.Translation description */ 2:
38
+ message.description.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
39
+ break;
40
+ case /* shared.DefinitionDataType type */ 3:
41
+ message.type = DefinitionDataType.internalBinaryRead(reader, reader.uint32(), options, message.type);
42
+ break;
43
+ case /* optional shared.Value default_value */ 4:
44
+ message.defaultValue = Value.internalBinaryRead(reader, reader.uint32(), options, message.defaultValue);
45
+ break;
46
+ default:
47
+ let u = options.readUnknownField;
48
+ if (u === "throw")
49
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
50
+ let d = reader.skip(wireType);
51
+ if (u !== false)
52
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
53
+ }
54
+ }
55
+ return message;
56
+ }
57
+ internalBinaryWrite(message, writer, options) {
58
+ /* repeated shared.Translation name = 1; */
59
+ for (let i = 0; i < message.name.length; i++)
60
+ Translation.internalBinaryWrite(message.name[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
61
+ /* repeated shared.Translation description = 2; */
62
+ for (let i = 0; i < message.description.length; i++)
63
+ Translation.internalBinaryWrite(message.description[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
64
+ /* shared.DefinitionDataType type = 3; */
65
+ if (message.type)
66
+ DefinitionDataType.internalBinaryWrite(message.type, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
67
+ /* optional shared.Value default_value = 4; */
68
+ if (message.defaultValue)
69
+ Value.internalBinaryWrite(message.defaultValue, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
70
+ let u = options.writeUnknownFields;
71
+ if (u !== false)
72
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
73
+ return writer;
74
+ }
75
+ }
76
+ /**
77
+ * @generated MessageType for protobuf message shared.ActionConfiguration
78
+ */
79
+ export const ActionConfiguration = new ActionConfiguration$Type();