weave-typescript 0.8.0 → 0.10.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.
- package/dist/weaveapi/llmx/v1/architecture.pb.d.ts +298 -10
- package/dist/weaveapi/llmx/v1/capabilities.pb.d.ts +407 -18
- package/dist/weaveapi/llmx/v1/capabilities.pb.js +449 -162
- package/dist/weaveapi/llmx/v1/model.pb.d.ts +237 -63
- package/dist/weaveapi/llmx/v1/model.pb.js +7 -135
- package/dist/weaveapi/llmx/v1/pricing.pb.d.ts +340 -0
- package/dist/weaveapi/llmx/v1/pricing.pb.js +951 -0
- package/dist/weaveapi/llmx/v1/provider.pb.d.ts +39 -0
- package/dist/weaveapi/llmx/v1/service.pb.d.ts +158 -11
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc unknown
|
|
6
6
|
// source: weaveapi/llmx/v1/capabilities.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.FineTuning = exports.Embeddings = exports.Video = exports.Audio = exports.Reasoning = exports.Caching = exports.SystemPrompt = exports.ToolUse = exports.Vision = exports.FunctionCalling = exports.Streaming = exports.StructuredResponse = exports.Capability = exports.Hyperparameter = exports.DistanceMetric = exports.ReasoningStrategy = exports.CacheStrategy = exports.ToolType = exports.VideoFormat = exports.AudioFormat = exports.ImageFormat = exports.JsonSchemaType = exports.DataFormat = exports.CapabilityType = exports.protobufPackage = void 0;
|
|
8
|
+
exports.FineTuning = exports.Embeddings = exports.Video = exports.Audio = exports.Reasoning = exports.Caching = exports.SystemPrompt = exports.ToolUse = exports.Vision = exports.FunctionCalling = exports.Streaming = exports.StructuredResponse = exports.Text = exports.Capability = exports.ModalityDirection = exports.Hyperparameter = exports.DistanceMetric = exports.ReasoningStrategy = exports.CacheStrategy = exports.ToolType = exports.VideoFormat = exports.AudioFormat = exports.ImageFormat = exports.JsonSchemaType = exports.DataFormat = exports.CapabilityType = exports.protobufPackage = void 0;
|
|
9
9
|
exports.capabilityTypeFromJSON = capabilityTypeFromJSON;
|
|
10
10
|
exports.capabilityTypeToJSON = capabilityTypeToJSON;
|
|
11
11
|
exports.dataFormatFromJSON = dataFormatFromJSON;
|
|
@@ -28,6 +28,8 @@ exports.distanceMetricFromJSON = distanceMetricFromJSON;
|
|
|
28
28
|
exports.distanceMetricToJSON = distanceMetricToJSON;
|
|
29
29
|
exports.hyperparameterFromJSON = hyperparameterFromJSON;
|
|
30
30
|
exports.hyperparameterToJSON = hyperparameterToJSON;
|
|
31
|
+
exports.modalityDirectionFromJSON = modalityDirectionFromJSON;
|
|
32
|
+
exports.modalityDirectionToJSON = modalityDirectionToJSON;
|
|
31
33
|
/* eslint-disable */
|
|
32
34
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
33
35
|
exports.protobufPackage = "weaveapi.llmx.v1";
|
|
@@ -35,18 +37,32 @@ exports.protobufPackage = "weaveapi.llmx.v1";
|
|
|
35
37
|
var CapabilityType;
|
|
36
38
|
(function (CapabilityType) {
|
|
37
39
|
CapabilityType[CapabilityType["CAPABILITY_TYPE_UNSPECIFIED"] = 0] = "CAPABILITY_TYPE_UNSPECIFIED";
|
|
38
|
-
|
|
39
|
-
CapabilityType[CapabilityType["
|
|
40
|
-
|
|
41
|
-
CapabilityType[CapabilityType["
|
|
42
|
-
|
|
43
|
-
CapabilityType[CapabilityType["
|
|
44
|
-
|
|
45
|
-
CapabilityType[CapabilityType["
|
|
46
|
-
|
|
47
|
-
CapabilityType[CapabilityType["
|
|
48
|
-
|
|
49
|
-
CapabilityType[CapabilityType["
|
|
40
|
+
/** CAPABILITY_TYPE_TEXT - Basic text input/output capability */
|
|
41
|
+
CapabilityType[CapabilityType["CAPABILITY_TYPE_TEXT"] = 1] = "CAPABILITY_TYPE_TEXT";
|
|
42
|
+
/** CAPABILITY_TYPE_STRUCTURED_RESPONSE - Structured output (JSON, XML, etc.) */
|
|
43
|
+
CapabilityType[CapabilityType["CAPABILITY_TYPE_STRUCTURED_RESPONSE"] = 2] = "CAPABILITY_TYPE_STRUCTURED_RESPONSE";
|
|
44
|
+
/** CAPABILITY_TYPE_STREAMING - Server-sent or websocket streaming of partial outputs */
|
|
45
|
+
CapabilityType[CapabilityType["CAPABILITY_TYPE_STREAMING"] = 3] = "CAPABILITY_TYPE_STREAMING";
|
|
46
|
+
/** CAPABILITY_TYPE_FUNCTION_CALLING - Tool/function calling with schemaed arguments */
|
|
47
|
+
CapabilityType[CapabilityType["CAPABILITY_TYPE_FUNCTION_CALLING"] = 4] = "CAPABILITY_TYPE_FUNCTION_CALLING";
|
|
48
|
+
/** CAPABILITY_TYPE_VISION - Image understanding and/or generation */
|
|
49
|
+
CapabilityType[CapabilityType["CAPABILITY_TYPE_VISION"] = 5] = "CAPABILITY_TYPE_VISION";
|
|
50
|
+
/** CAPABILITY_TYPE_TOOL_USE - General tool use beyond plain function calls */
|
|
51
|
+
CapabilityType[CapabilityType["CAPABILITY_TYPE_TOOL_USE"] = 6] = "CAPABILITY_TYPE_TOOL_USE";
|
|
52
|
+
/** CAPABILITY_TYPE_SYSTEM_PROMPT - System messages/prompt steering support */
|
|
53
|
+
CapabilityType[CapabilityType["CAPABILITY_TYPE_SYSTEM_PROMPT"] = 7] = "CAPABILITY_TYPE_SYSTEM_PROMPT";
|
|
54
|
+
/** CAPABILITY_TYPE_CACHING - Prompt/context caching capabilities */
|
|
55
|
+
CapabilityType[CapabilityType["CAPABILITY_TYPE_CACHING"] = 8] = "CAPABILITY_TYPE_CACHING";
|
|
56
|
+
/** CAPABILITY_TYPE_REASONING - Advanced reasoning controls/strategies */
|
|
57
|
+
CapabilityType[CapabilityType["CAPABILITY_TYPE_REASONING"] = 9] = "CAPABILITY_TYPE_REASONING";
|
|
58
|
+
/** CAPABILITY_TYPE_AUDIO - Audio STT/TTS support */
|
|
59
|
+
CapabilityType[CapabilityType["CAPABILITY_TYPE_AUDIO"] = 10] = "CAPABILITY_TYPE_AUDIO";
|
|
60
|
+
/** CAPABILITY_TYPE_VIDEO - Video analysis/generation support */
|
|
61
|
+
CapabilityType[CapabilityType["CAPABILITY_TYPE_VIDEO"] = 11] = "CAPABILITY_TYPE_VIDEO";
|
|
62
|
+
/** CAPABILITY_TYPE_EMBEDDINGS - Vector embedding generation */
|
|
63
|
+
CapabilityType[CapabilityType["CAPABILITY_TYPE_EMBEDDINGS"] = 12] = "CAPABILITY_TYPE_EMBEDDINGS";
|
|
64
|
+
/** CAPABILITY_TYPE_FINE_TUNING - Custom model training/fine-tuning */
|
|
65
|
+
CapabilityType[CapabilityType["CAPABILITY_TYPE_FINE_TUNING"] = 13] = "CAPABILITY_TYPE_FINE_TUNING";
|
|
50
66
|
CapabilityType[CapabilityType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
51
67
|
})(CapabilityType || (exports.CapabilityType = CapabilityType = {}));
|
|
52
68
|
function capabilityTypeFromJSON(object) {
|
|
@@ -55,39 +71,42 @@ function capabilityTypeFromJSON(object) {
|
|
|
55
71
|
case "CAPABILITY_TYPE_UNSPECIFIED":
|
|
56
72
|
return CapabilityType.CAPABILITY_TYPE_UNSPECIFIED;
|
|
57
73
|
case 1:
|
|
74
|
+
case "CAPABILITY_TYPE_TEXT":
|
|
75
|
+
return CapabilityType.CAPABILITY_TYPE_TEXT;
|
|
76
|
+
case 2:
|
|
58
77
|
case "CAPABILITY_TYPE_STRUCTURED_RESPONSE":
|
|
59
78
|
return CapabilityType.CAPABILITY_TYPE_STRUCTURED_RESPONSE;
|
|
60
|
-
case
|
|
79
|
+
case 3:
|
|
61
80
|
case "CAPABILITY_TYPE_STREAMING":
|
|
62
81
|
return CapabilityType.CAPABILITY_TYPE_STREAMING;
|
|
63
|
-
case
|
|
82
|
+
case 4:
|
|
64
83
|
case "CAPABILITY_TYPE_FUNCTION_CALLING":
|
|
65
84
|
return CapabilityType.CAPABILITY_TYPE_FUNCTION_CALLING;
|
|
66
|
-
case
|
|
85
|
+
case 5:
|
|
67
86
|
case "CAPABILITY_TYPE_VISION":
|
|
68
87
|
return CapabilityType.CAPABILITY_TYPE_VISION;
|
|
69
|
-
case
|
|
88
|
+
case 6:
|
|
70
89
|
case "CAPABILITY_TYPE_TOOL_USE":
|
|
71
90
|
return CapabilityType.CAPABILITY_TYPE_TOOL_USE;
|
|
72
|
-
case
|
|
91
|
+
case 7:
|
|
73
92
|
case "CAPABILITY_TYPE_SYSTEM_PROMPT":
|
|
74
93
|
return CapabilityType.CAPABILITY_TYPE_SYSTEM_PROMPT;
|
|
75
|
-
case
|
|
94
|
+
case 8:
|
|
76
95
|
case "CAPABILITY_TYPE_CACHING":
|
|
77
96
|
return CapabilityType.CAPABILITY_TYPE_CACHING;
|
|
78
|
-
case
|
|
97
|
+
case 9:
|
|
79
98
|
case "CAPABILITY_TYPE_REASONING":
|
|
80
99
|
return CapabilityType.CAPABILITY_TYPE_REASONING;
|
|
81
|
-
case
|
|
100
|
+
case 10:
|
|
82
101
|
case "CAPABILITY_TYPE_AUDIO":
|
|
83
102
|
return CapabilityType.CAPABILITY_TYPE_AUDIO;
|
|
84
|
-
case
|
|
103
|
+
case 11:
|
|
85
104
|
case "CAPABILITY_TYPE_VIDEO":
|
|
86
105
|
return CapabilityType.CAPABILITY_TYPE_VIDEO;
|
|
87
|
-
case
|
|
106
|
+
case 12:
|
|
88
107
|
case "CAPABILITY_TYPE_EMBEDDINGS":
|
|
89
108
|
return CapabilityType.CAPABILITY_TYPE_EMBEDDINGS;
|
|
90
|
-
case
|
|
109
|
+
case 13:
|
|
91
110
|
case "CAPABILITY_TYPE_FINE_TUNING":
|
|
92
111
|
return CapabilityType.CAPABILITY_TYPE_FINE_TUNING;
|
|
93
112
|
case -1:
|
|
@@ -100,6 +119,8 @@ function capabilityTypeToJSON(object) {
|
|
|
100
119
|
switch (object) {
|
|
101
120
|
case CapabilityType.CAPABILITY_TYPE_UNSPECIFIED:
|
|
102
121
|
return "CAPABILITY_TYPE_UNSPECIFIED";
|
|
122
|
+
case CapabilityType.CAPABILITY_TYPE_TEXT:
|
|
123
|
+
return "CAPABILITY_TYPE_TEXT";
|
|
103
124
|
case CapabilityType.CAPABILITY_TYPE_STRUCTURED_RESPONSE:
|
|
104
125
|
return "CAPABILITY_TYPE_STRUCTURED_RESPONSE";
|
|
105
126
|
case CapabilityType.CAPABILITY_TYPE_STREAMING:
|
|
@@ -815,10 +836,58 @@ function hyperparameterToJSON(object) {
|
|
|
815
836
|
return "UNRECOGNIZED";
|
|
816
837
|
}
|
|
817
838
|
}
|
|
839
|
+
/** Modality direction - whether a modality supports input, output, or both */
|
|
840
|
+
var ModalityDirection;
|
|
841
|
+
(function (ModalityDirection) {
|
|
842
|
+
ModalityDirection[ModalityDirection["MODALITY_DIRECTION_UNSPECIFIED"] = 0] = "MODALITY_DIRECTION_UNSPECIFIED";
|
|
843
|
+
/** MODALITY_DIRECTION_INPUT_ONLY - Can only process/analyze (e.g., image analysis) */
|
|
844
|
+
ModalityDirection[ModalityDirection["MODALITY_DIRECTION_INPUT_ONLY"] = 1] = "MODALITY_DIRECTION_INPUT_ONLY";
|
|
845
|
+
/** MODALITY_DIRECTION_OUTPUT_ONLY - Can only generate (e.g., TTS without STT) */
|
|
846
|
+
ModalityDirection[ModalityDirection["MODALITY_DIRECTION_OUTPUT_ONLY"] = 2] = "MODALITY_DIRECTION_OUTPUT_ONLY";
|
|
847
|
+
/** MODALITY_DIRECTION_INPUT_OUTPUT - Can both process and generate */
|
|
848
|
+
ModalityDirection[ModalityDirection["MODALITY_DIRECTION_INPUT_OUTPUT"] = 3] = "MODALITY_DIRECTION_INPUT_OUTPUT";
|
|
849
|
+
ModalityDirection[ModalityDirection["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
850
|
+
})(ModalityDirection || (exports.ModalityDirection = ModalityDirection = {}));
|
|
851
|
+
function modalityDirectionFromJSON(object) {
|
|
852
|
+
switch (object) {
|
|
853
|
+
case 0:
|
|
854
|
+
case "MODALITY_DIRECTION_UNSPECIFIED":
|
|
855
|
+
return ModalityDirection.MODALITY_DIRECTION_UNSPECIFIED;
|
|
856
|
+
case 1:
|
|
857
|
+
case "MODALITY_DIRECTION_INPUT_ONLY":
|
|
858
|
+
return ModalityDirection.MODALITY_DIRECTION_INPUT_ONLY;
|
|
859
|
+
case 2:
|
|
860
|
+
case "MODALITY_DIRECTION_OUTPUT_ONLY":
|
|
861
|
+
return ModalityDirection.MODALITY_DIRECTION_OUTPUT_ONLY;
|
|
862
|
+
case 3:
|
|
863
|
+
case "MODALITY_DIRECTION_INPUT_OUTPUT":
|
|
864
|
+
return ModalityDirection.MODALITY_DIRECTION_INPUT_OUTPUT;
|
|
865
|
+
case -1:
|
|
866
|
+
case "UNRECOGNIZED":
|
|
867
|
+
default:
|
|
868
|
+
return ModalityDirection.UNRECOGNIZED;
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
function modalityDirectionToJSON(object) {
|
|
872
|
+
switch (object) {
|
|
873
|
+
case ModalityDirection.MODALITY_DIRECTION_UNSPECIFIED:
|
|
874
|
+
return "MODALITY_DIRECTION_UNSPECIFIED";
|
|
875
|
+
case ModalityDirection.MODALITY_DIRECTION_INPUT_ONLY:
|
|
876
|
+
return "MODALITY_DIRECTION_INPUT_ONLY";
|
|
877
|
+
case ModalityDirection.MODALITY_DIRECTION_OUTPUT_ONLY:
|
|
878
|
+
return "MODALITY_DIRECTION_OUTPUT_ONLY";
|
|
879
|
+
case ModalityDirection.MODALITY_DIRECTION_INPUT_OUTPUT:
|
|
880
|
+
return "MODALITY_DIRECTION_INPUT_OUTPUT";
|
|
881
|
+
case ModalityDirection.UNRECOGNIZED:
|
|
882
|
+
default:
|
|
883
|
+
return "UNRECOGNIZED";
|
|
884
|
+
}
|
|
885
|
+
}
|
|
818
886
|
function createBaseCapability() {
|
|
819
887
|
return {
|
|
820
888
|
type: 0,
|
|
821
889
|
enabled: false,
|
|
890
|
+
text: undefined,
|
|
822
891
|
structuredResponse: undefined,
|
|
823
892
|
streaming: undefined,
|
|
824
893
|
functionCalling: undefined,
|
|
@@ -831,6 +900,7 @@ function createBaseCapability() {
|
|
|
831
900
|
video: undefined,
|
|
832
901
|
embeddings: undefined,
|
|
833
902
|
fineTuning: undefined,
|
|
903
|
+
additionalInfo: "",
|
|
834
904
|
};
|
|
835
905
|
}
|
|
836
906
|
exports.Capability = {
|
|
@@ -841,41 +911,47 @@ exports.Capability = {
|
|
|
841
911
|
if (message.enabled !== false) {
|
|
842
912
|
writer.uint32(16).bool(message.enabled);
|
|
843
913
|
}
|
|
914
|
+
if (message.text !== undefined) {
|
|
915
|
+
exports.Text.encode(message.text, writer.uint32(26).fork()).join();
|
|
916
|
+
}
|
|
844
917
|
if (message.structuredResponse !== undefined) {
|
|
845
|
-
exports.StructuredResponse.encode(message.structuredResponse, writer.uint32(
|
|
918
|
+
exports.StructuredResponse.encode(message.structuredResponse, writer.uint32(34).fork()).join();
|
|
846
919
|
}
|
|
847
920
|
if (message.streaming !== undefined) {
|
|
848
|
-
exports.Streaming.encode(message.streaming, writer.uint32(
|
|
921
|
+
exports.Streaming.encode(message.streaming, writer.uint32(42).fork()).join();
|
|
849
922
|
}
|
|
850
923
|
if (message.functionCalling !== undefined) {
|
|
851
|
-
exports.FunctionCalling.encode(message.functionCalling, writer.uint32(
|
|
924
|
+
exports.FunctionCalling.encode(message.functionCalling, writer.uint32(50).fork()).join();
|
|
852
925
|
}
|
|
853
926
|
if (message.vision !== undefined) {
|
|
854
|
-
exports.Vision.encode(message.vision, writer.uint32(
|
|
927
|
+
exports.Vision.encode(message.vision, writer.uint32(58).fork()).join();
|
|
855
928
|
}
|
|
856
929
|
if (message.toolUse !== undefined) {
|
|
857
|
-
exports.ToolUse.encode(message.toolUse, writer.uint32(
|
|
930
|
+
exports.ToolUse.encode(message.toolUse, writer.uint32(66).fork()).join();
|
|
858
931
|
}
|
|
859
932
|
if (message.systemPrompt !== undefined) {
|
|
860
|
-
exports.SystemPrompt.encode(message.systemPrompt, writer.uint32(
|
|
933
|
+
exports.SystemPrompt.encode(message.systemPrompt, writer.uint32(74).fork()).join();
|
|
861
934
|
}
|
|
862
935
|
if (message.caching !== undefined) {
|
|
863
|
-
exports.Caching.encode(message.caching, writer.uint32(
|
|
936
|
+
exports.Caching.encode(message.caching, writer.uint32(82).fork()).join();
|
|
864
937
|
}
|
|
865
938
|
if (message.reasoning !== undefined) {
|
|
866
|
-
exports.Reasoning.encode(message.reasoning, writer.uint32(
|
|
939
|
+
exports.Reasoning.encode(message.reasoning, writer.uint32(90).fork()).join();
|
|
867
940
|
}
|
|
868
941
|
if (message.audio !== undefined) {
|
|
869
|
-
exports.Audio.encode(message.audio, writer.uint32(
|
|
942
|
+
exports.Audio.encode(message.audio, writer.uint32(98).fork()).join();
|
|
870
943
|
}
|
|
871
944
|
if (message.video !== undefined) {
|
|
872
|
-
exports.Video.encode(message.video, writer.uint32(
|
|
945
|
+
exports.Video.encode(message.video, writer.uint32(106).fork()).join();
|
|
873
946
|
}
|
|
874
947
|
if (message.embeddings !== undefined) {
|
|
875
|
-
exports.Embeddings.encode(message.embeddings, writer.uint32(
|
|
948
|
+
exports.Embeddings.encode(message.embeddings, writer.uint32(114).fork()).join();
|
|
876
949
|
}
|
|
877
950
|
if (message.fineTuning !== undefined) {
|
|
878
|
-
exports.FineTuning.encode(message.fineTuning, writer.uint32(
|
|
951
|
+
exports.FineTuning.encode(message.fineTuning, writer.uint32(122).fork()).join();
|
|
952
|
+
}
|
|
953
|
+
if (message.additionalInfo !== "") {
|
|
954
|
+
writer.uint32(130).string(message.additionalInfo);
|
|
879
955
|
}
|
|
880
956
|
return writer;
|
|
881
957
|
},
|
|
@@ -904,86 +980,100 @@ exports.Capability = {
|
|
|
904
980
|
if (tag !== 26) {
|
|
905
981
|
break;
|
|
906
982
|
}
|
|
907
|
-
message.
|
|
983
|
+
message.text = exports.Text.decode(reader, reader.uint32());
|
|
908
984
|
continue;
|
|
909
985
|
}
|
|
910
986
|
case 4: {
|
|
911
987
|
if (tag !== 34) {
|
|
912
988
|
break;
|
|
913
989
|
}
|
|
914
|
-
message.
|
|
990
|
+
message.structuredResponse = exports.StructuredResponse.decode(reader, reader.uint32());
|
|
915
991
|
continue;
|
|
916
992
|
}
|
|
917
993
|
case 5: {
|
|
918
994
|
if (tag !== 42) {
|
|
919
995
|
break;
|
|
920
996
|
}
|
|
921
|
-
message.
|
|
997
|
+
message.streaming = exports.Streaming.decode(reader, reader.uint32());
|
|
922
998
|
continue;
|
|
923
999
|
}
|
|
924
1000
|
case 6: {
|
|
925
1001
|
if (tag !== 50) {
|
|
926
1002
|
break;
|
|
927
1003
|
}
|
|
928
|
-
message.
|
|
1004
|
+
message.functionCalling = exports.FunctionCalling.decode(reader, reader.uint32());
|
|
929
1005
|
continue;
|
|
930
1006
|
}
|
|
931
1007
|
case 7: {
|
|
932
1008
|
if (tag !== 58) {
|
|
933
1009
|
break;
|
|
934
1010
|
}
|
|
935
|
-
message.
|
|
1011
|
+
message.vision = exports.Vision.decode(reader, reader.uint32());
|
|
936
1012
|
continue;
|
|
937
1013
|
}
|
|
938
1014
|
case 8: {
|
|
939
1015
|
if (tag !== 66) {
|
|
940
1016
|
break;
|
|
941
1017
|
}
|
|
942
|
-
message.
|
|
1018
|
+
message.toolUse = exports.ToolUse.decode(reader, reader.uint32());
|
|
943
1019
|
continue;
|
|
944
1020
|
}
|
|
945
1021
|
case 9: {
|
|
946
1022
|
if (tag !== 74) {
|
|
947
1023
|
break;
|
|
948
1024
|
}
|
|
949
|
-
message.
|
|
1025
|
+
message.systemPrompt = exports.SystemPrompt.decode(reader, reader.uint32());
|
|
950
1026
|
continue;
|
|
951
1027
|
}
|
|
952
1028
|
case 10: {
|
|
953
1029
|
if (tag !== 82) {
|
|
954
1030
|
break;
|
|
955
1031
|
}
|
|
956
|
-
message.
|
|
1032
|
+
message.caching = exports.Caching.decode(reader, reader.uint32());
|
|
957
1033
|
continue;
|
|
958
1034
|
}
|
|
959
1035
|
case 11: {
|
|
960
1036
|
if (tag !== 90) {
|
|
961
1037
|
break;
|
|
962
1038
|
}
|
|
963
|
-
message.
|
|
1039
|
+
message.reasoning = exports.Reasoning.decode(reader, reader.uint32());
|
|
964
1040
|
continue;
|
|
965
1041
|
}
|
|
966
1042
|
case 12: {
|
|
967
1043
|
if (tag !== 98) {
|
|
968
1044
|
break;
|
|
969
1045
|
}
|
|
970
|
-
message.
|
|
1046
|
+
message.audio = exports.Audio.decode(reader, reader.uint32());
|
|
971
1047
|
continue;
|
|
972
1048
|
}
|
|
973
1049
|
case 13: {
|
|
974
1050
|
if (tag !== 106) {
|
|
975
1051
|
break;
|
|
976
1052
|
}
|
|
977
|
-
message.
|
|
1053
|
+
message.video = exports.Video.decode(reader, reader.uint32());
|
|
978
1054
|
continue;
|
|
979
1055
|
}
|
|
980
1056
|
case 14: {
|
|
981
1057
|
if (tag !== 114) {
|
|
982
1058
|
break;
|
|
983
1059
|
}
|
|
1060
|
+
message.embeddings = exports.Embeddings.decode(reader, reader.uint32());
|
|
1061
|
+
continue;
|
|
1062
|
+
}
|
|
1063
|
+
case 15: {
|
|
1064
|
+
if (tag !== 122) {
|
|
1065
|
+
break;
|
|
1066
|
+
}
|
|
984
1067
|
message.fineTuning = exports.FineTuning.decode(reader, reader.uint32());
|
|
985
1068
|
continue;
|
|
986
1069
|
}
|
|
1070
|
+
case 16: {
|
|
1071
|
+
if (tag !== 130) {
|
|
1072
|
+
break;
|
|
1073
|
+
}
|
|
1074
|
+
message.additionalInfo = reader.string();
|
|
1075
|
+
continue;
|
|
1076
|
+
}
|
|
987
1077
|
}
|
|
988
1078
|
if ((tag & 7) === 4 || tag === 0) {
|
|
989
1079
|
break;
|
|
@@ -996,6 +1086,7 @@ exports.Capability = {
|
|
|
996
1086
|
return {
|
|
997
1087
|
type: isSet(object.type) ? capabilityTypeFromJSON(object.type) : 0,
|
|
998
1088
|
enabled: isSet(object.enabled) ? globalThis.Boolean(object.enabled) : false,
|
|
1089
|
+
text: isSet(object.text) ? exports.Text.fromJSON(object.text) : undefined,
|
|
999
1090
|
structuredResponse: isSet(object.structuredResponse)
|
|
1000
1091
|
? exports.StructuredResponse.fromJSON(object.structuredResponse)
|
|
1001
1092
|
: undefined,
|
|
@@ -1010,6 +1101,7 @@ exports.Capability = {
|
|
|
1010
1101
|
video: isSet(object.video) ? exports.Video.fromJSON(object.video) : undefined,
|
|
1011
1102
|
embeddings: isSet(object.embeddings) ? exports.Embeddings.fromJSON(object.embeddings) : undefined,
|
|
1012
1103
|
fineTuning: isSet(object.fineTuning) ? exports.FineTuning.fromJSON(object.fineTuning) : undefined,
|
|
1104
|
+
additionalInfo: isSet(object.additionalInfo) ? globalThis.String(object.additionalInfo) : "",
|
|
1013
1105
|
};
|
|
1014
1106
|
},
|
|
1015
1107
|
toJSON(message) {
|
|
@@ -1020,6 +1112,9 @@ exports.Capability = {
|
|
|
1020
1112
|
if (message.enabled !== false) {
|
|
1021
1113
|
obj.enabled = message.enabled;
|
|
1022
1114
|
}
|
|
1115
|
+
if (message.text !== undefined) {
|
|
1116
|
+
obj.text = exports.Text.toJSON(message.text);
|
|
1117
|
+
}
|
|
1023
1118
|
if (message.structuredResponse !== undefined) {
|
|
1024
1119
|
obj.structuredResponse = exports.StructuredResponse.toJSON(message.structuredResponse);
|
|
1025
1120
|
}
|
|
@@ -1056,16 +1151,20 @@ exports.Capability = {
|
|
|
1056
1151
|
if (message.fineTuning !== undefined) {
|
|
1057
1152
|
obj.fineTuning = exports.FineTuning.toJSON(message.fineTuning);
|
|
1058
1153
|
}
|
|
1154
|
+
if (message.additionalInfo !== "") {
|
|
1155
|
+
obj.additionalInfo = message.additionalInfo;
|
|
1156
|
+
}
|
|
1059
1157
|
return obj;
|
|
1060
1158
|
},
|
|
1061
1159
|
create(base) {
|
|
1062
1160
|
return exports.Capability.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1063
1161
|
},
|
|
1064
1162
|
fromPartial(object) {
|
|
1065
|
-
var _a, _b;
|
|
1163
|
+
var _a, _b, _c;
|
|
1066
1164
|
const message = createBaseCapability();
|
|
1067
1165
|
message.type = (_a = object.type) !== null && _a !== void 0 ? _a : 0;
|
|
1068
1166
|
message.enabled = (_b = object.enabled) !== null && _b !== void 0 ? _b : false;
|
|
1167
|
+
message.text = (object.text !== undefined && object.text !== null) ? exports.Text.fromPartial(object.text) : undefined;
|
|
1069
1168
|
message.structuredResponse = (object.structuredResponse !== undefined && object.structuredResponse !== null)
|
|
1070
1169
|
? exports.StructuredResponse.fromPartial(object.structuredResponse)
|
|
1071
1170
|
: undefined;
|
|
@@ -1098,6 +1197,148 @@ exports.Capability = {
|
|
|
1098
1197
|
message.fineTuning = (object.fineTuning !== undefined && object.fineTuning !== null)
|
|
1099
1198
|
? exports.FineTuning.fromPartial(object.fineTuning)
|
|
1100
1199
|
: undefined;
|
|
1200
|
+
message.additionalInfo = (_c = object.additionalInfo) !== null && _c !== void 0 ? _c : "";
|
|
1201
|
+
return message;
|
|
1202
|
+
},
|
|
1203
|
+
};
|
|
1204
|
+
function createBaseText() {
|
|
1205
|
+
return {
|
|
1206
|
+
direction: 0,
|
|
1207
|
+
maxInputLength: 0,
|
|
1208
|
+
maxOutputLength: 0,
|
|
1209
|
+
supportedLanguages: [],
|
|
1210
|
+
supportsConversation: false,
|
|
1211
|
+
supportsContext: false,
|
|
1212
|
+
};
|
|
1213
|
+
}
|
|
1214
|
+
exports.Text = {
|
|
1215
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1216
|
+
if (message.direction !== 0) {
|
|
1217
|
+
writer.uint32(8).int32(message.direction);
|
|
1218
|
+
}
|
|
1219
|
+
if (message.maxInputLength !== 0) {
|
|
1220
|
+
writer.uint32(16).int32(message.maxInputLength);
|
|
1221
|
+
}
|
|
1222
|
+
if (message.maxOutputLength !== 0) {
|
|
1223
|
+
writer.uint32(24).int32(message.maxOutputLength);
|
|
1224
|
+
}
|
|
1225
|
+
for (const v of message.supportedLanguages) {
|
|
1226
|
+
writer.uint32(34).string(v);
|
|
1227
|
+
}
|
|
1228
|
+
if (message.supportsConversation !== false) {
|
|
1229
|
+
writer.uint32(40).bool(message.supportsConversation);
|
|
1230
|
+
}
|
|
1231
|
+
if (message.supportsContext !== false) {
|
|
1232
|
+
writer.uint32(48).bool(message.supportsContext);
|
|
1233
|
+
}
|
|
1234
|
+
return writer;
|
|
1235
|
+
},
|
|
1236
|
+
decode(input, length) {
|
|
1237
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1238
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1239
|
+
const message = createBaseText();
|
|
1240
|
+
while (reader.pos < end) {
|
|
1241
|
+
const tag = reader.uint32();
|
|
1242
|
+
switch (tag >>> 3) {
|
|
1243
|
+
case 1: {
|
|
1244
|
+
if (tag !== 8) {
|
|
1245
|
+
break;
|
|
1246
|
+
}
|
|
1247
|
+
message.direction = reader.int32();
|
|
1248
|
+
continue;
|
|
1249
|
+
}
|
|
1250
|
+
case 2: {
|
|
1251
|
+
if (tag !== 16) {
|
|
1252
|
+
break;
|
|
1253
|
+
}
|
|
1254
|
+
message.maxInputLength = reader.int32();
|
|
1255
|
+
continue;
|
|
1256
|
+
}
|
|
1257
|
+
case 3: {
|
|
1258
|
+
if (tag !== 24) {
|
|
1259
|
+
break;
|
|
1260
|
+
}
|
|
1261
|
+
message.maxOutputLength = reader.int32();
|
|
1262
|
+
continue;
|
|
1263
|
+
}
|
|
1264
|
+
case 4: {
|
|
1265
|
+
if (tag !== 34) {
|
|
1266
|
+
break;
|
|
1267
|
+
}
|
|
1268
|
+
message.supportedLanguages.push(reader.string());
|
|
1269
|
+
continue;
|
|
1270
|
+
}
|
|
1271
|
+
case 5: {
|
|
1272
|
+
if (tag !== 40) {
|
|
1273
|
+
break;
|
|
1274
|
+
}
|
|
1275
|
+
message.supportsConversation = reader.bool();
|
|
1276
|
+
continue;
|
|
1277
|
+
}
|
|
1278
|
+
case 6: {
|
|
1279
|
+
if (tag !== 48) {
|
|
1280
|
+
break;
|
|
1281
|
+
}
|
|
1282
|
+
message.supportsContext = reader.bool();
|
|
1283
|
+
continue;
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1287
|
+
break;
|
|
1288
|
+
}
|
|
1289
|
+
reader.skip(tag & 7);
|
|
1290
|
+
}
|
|
1291
|
+
return message;
|
|
1292
|
+
},
|
|
1293
|
+
fromJSON(object) {
|
|
1294
|
+
return {
|
|
1295
|
+
direction: isSet(object.direction) ? modalityDirectionFromJSON(object.direction) : 0,
|
|
1296
|
+
maxInputLength: isSet(object.maxInputLength) ? globalThis.Number(object.maxInputLength) : 0,
|
|
1297
|
+
maxOutputLength: isSet(object.maxOutputLength) ? globalThis.Number(object.maxOutputLength) : 0,
|
|
1298
|
+
supportedLanguages: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.supportedLanguages)
|
|
1299
|
+
? object.supportedLanguages.map((e) => globalThis.String(e))
|
|
1300
|
+
: [],
|
|
1301
|
+
supportsConversation: isSet(object.supportsConversation)
|
|
1302
|
+
? globalThis.Boolean(object.supportsConversation)
|
|
1303
|
+
: false,
|
|
1304
|
+
supportsContext: isSet(object.supportsContext) ? globalThis.Boolean(object.supportsContext) : false,
|
|
1305
|
+
};
|
|
1306
|
+
},
|
|
1307
|
+
toJSON(message) {
|
|
1308
|
+
var _a;
|
|
1309
|
+
const obj = {};
|
|
1310
|
+
if (message.direction !== 0) {
|
|
1311
|
+
obj.direction = modalityDirectionToJSON(message.direction);
|
|
1312
|
+
}
|
|
1313
|
+
if (message.maxInputLength !== 0) {
|
|
1314
|
+
obj.maxInputLength = Math.round(message.maxInputLength);
|
|
1315
|
+
}
|
|
1316
|
+
if (message.maxOutputLength !== 0) {
|
|
1317
|
+
obj.maxOutputLength = Math.round(message.maxOutputLength);
|
|
1318
|
+
}
|
|
1319
|
+
if ((_a = message.supportedLanguages) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1320
|
+
obj.supportedLanguages = message.supportedLanguages;
|
|
1321
|
+
}
|
|
1322
|
+
if (message.supportsConversation !== false) {
|
|
1323
|
+
obj.supportsConversation = message.supportsConversation;
|
|
1324
|
+
}
|
|
1325
|
+
if (message.supportsContext !== false) {
|
|
1326
|
+
obj.supportsContext = message.supportsContext;
|
|
1327
|
+
}
|
|
1328
|
+
return obj;
|
|
1329
|
+
},
|
|
1330
|
+
create(base) {
|
|
1331
|
+
return exports.Text.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1332
|
+
},
|
|
1333
|
+
fromPartial(object) {
|
|
1334
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1335
|
+
const message = createBaseText();
|
|
1336
|
+
message.direction = (_a = object.direction) !== null && _a !== void 0 ? _a : 0;
|
|
1337
|
+
message.maxInputLength = (_b = object.maxInputLength) !== null && _b !== void 0 ? _b : 0;
|
|
1338
|
+
message.maxOutputLength = (_c = object.maxOutputLength) !== null && _c !== void 0 ? _c : 0;
|
|
1339
|
+
message.supportedLanguages = ((_d = object.supportedLanguages) === null || _d === void 0 ? void 0 : _d.map((e) => e)) || [];
|
|
1340
|
+
message.supportsConversation = (_e = object.supportsConversation) !== null && _e !== void 0 ? _e : false;
|
|
1341
|
+
message.supportsContext = (_f = object.supportsContext) !== null && _f !== void 0 ? _f : false;
|
|
1101
1342
|
return message;
|
|
1102
1343
|
},
|
|
1103
1344
|
};
|
|
@@ -1594,47 +1835,47 @@ exports.FunctionCalling = {
|
|
|
1594
1835
|
};
|
|
1595
1836
|
function createBaseVision() {
|
|
1596
1837
|
return {
|
|
1838
|
+
direction: 0,
|
|
1597
1839
|
supportedFormats: [],
|
|
1598
1840
|
maxImageSizeBytes: 0,
|
|
1599
1841
|
maxImagesPerRequest: 0,
|
|
1600
|
-
supportsImageGeneration: false,
|
|
1601
|
-
supportsVideoFrames: false,
|
|
1602
1842
|
maxResolutionWidth: 0,
|
|
1603
1843
|
maxResolutionHeight: 0,
|
|
1604
1844
|
supportsOcr: false,
|
|
1605
1845
|
supportsObjectDetection: false,
|
|
1846
|
+
supportsVideoFrames: false,
|
|
1606
1847
|
};
|
|
1607
1848
|
}
|
|
1608
1849
|
exports.Vision = {
|
|
1609
1850
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1610
|
-
|
|
1851
|
+
if (message.direction !== 0) {
|
|
1852
|
+
writer.uint32(8).int32(message.direction);
|
|
1853
|
+
}
|
|
1854
|
+
writer.uint32(18).fork();
|
|
1611
1855
|
for (const v of message.supportedFormats) {
|
|
1612
1856
|
writer.int32(v);
|
|
1613
1857
|
}
|
|
1614
1858
|
writer.join();
|
|
1615
1859
|
if (message.maxImageSizeBytes !== 0) {
|
|
1616
|
-
writer.uint32(
|
|
1860
|
+
writer.uint32(24).int64(message.maxImageSizeBytes);
|
|
1617
1861
|
}
|
|
1618
1862
|
if (message.maxImagesPerRequest !== 0) {
|
|
1619
|
-
writer.uint32(
|
|
1620
|
-
}
|
|
1621
|
-
if (message.supportsImageGeneration !== false) {
|
|
1622
|
-
writer.uint32(32).bool(message.supportsImageGeneration);
|
|
1623
|
-
}
|
|
1624
|
-
if (message.supportsVideoFrames !== false) {
|
|
1625
|
-
writer.uint32(40).bool(message.supportsVideoFrames);
|
|
1863
|
+
writer.uint32(32).int32(message.maxImagesPerRequest);
|
|
1626
1864
|
}
|
|
1627
1865
|
if (message.maxResolutionWidth !== 0) {
|
|
1628
|
-
writer.uint32(
|
|
1866
|
+
writer.uint32(40).int32(message.maxResolutionWidth);
|
|
1629
1867
|
}
|
|
1630
1868
|
if (message.maxResolutionHeight !== 0) {
|
|
1631
|
-
writer.uint32(
|
|
1869
|
+
writer.uint32(48).int32(message.maxResolutionHeight);
|
|
1632
1870
|
}
|
|
1633
1871
|
if (message.supportsOcr !== false) {
|
|
1634
|
-
writer.uint32(
|
|
1872
|
+
writer.uint32(56).bool(message.supportsOcr);
|
|
1635
1873
|
}
|
|
1636
1874
|
if (message.supportsObjectDetection !== false) {
|
|
1637
|
-
writer.uint32(
|
|
1875
|
+
writer.uint32(64).bool(message.supportsObjectDetection);
|
|
1876
|
+
}
|
|
1877
|
+
if (message.supportsVideoFrames !== false) {
|
|
1878
|
+
writer.uint32(72).bool(message.supportsVideoFrames);
|
|
1638
1879
|
}
|
|
1639
1880
|
return writer;
|
|
1640
1881
|
},
|
|
@@ -1646,11 +1887,18 @@ exports.Vision = {
|
|
|
1646
1887
|
const tag = reader.uint32();
|
|
1647
1888
|
switch (tag >>> 3) {
|
|
1648
1889
|
case 1: {
|
|
1649
|
-
if (tag
|
|
1890
|
+
if (tag !== 8) {
|
|
1891
|
+
break;
|
|
1892
|
+
}
|
|
1893
|
+
message.direction = reader.int32();
|
|
1894
|
+
continue;
|
|
1895
|
+
}
|
|
1896
|
+
case 2: {
|
|
1897
|
+
if (tag === 16) {
|
|
1650
1898
|
message.supportedFormats.push(reader.int32());
|
|
1651
1899
|
continue;
|
|
1652
1900
|
}
|
|
1653
|
-
if (tag ===
|
|
1901
|
+
if (tag === 18) {
|
|
1654
1902
|
const end2 = reader.uint32() + reader.pos;
|
|
1655
1903
|
while (reader.pos < end2) {
|
|
1656
1904
|
message.supportedFormats.push(reader.int32());
|
|
@@ -1659,60 +1907,53 @@ exports.Vision = {
|
|
|
1659
1907
|
}
|
|
1660
1908
|
break;
|
|
1661
1909
|
}
|
|
1662
|
-
case 2: {
|
|
1663
|
-
if (tag !== 16) {
|
|
1664
|
-
break;
|
|
1665
|
-
}
|
|
1666
|
-
message.maxImageSizeBytes = longToNumber(reader.int64());
|
|
1667
|
-
continue;
|
|
1668
|
-
}
|
|
1669
1910
|
case 3: {
|
|
1670
1911
|
if (tag !== 24) {
|
|
1671
1912
|
break;
|
|
1672
1913
|
}
|
|
1673
|
-
message.
|
|
1914
|
+
message.maxImageSizeBytes = longToNumber(reader.int64());
|
|
1674
1915
|
continue;
|
|
1675
1916
|
}
|
|
1676
1917
|
case 4: {
|
|
1677
1918
|
if (tag !== 32) {
|
|
1678
1919
|
break;
|
|
1679
1920
|
}
|
|
1680
|
-
message.
|
|
1921
|
+
message.maxImagesPerRequest = reader.int32();
|
|
1681
1922
|
continue;
|
|
1682
1923
|
}
|
|
1683
1924
|
case 5: {
|
|
1684
1925
|
if (tag !== 40) {
|
|
1685
1926
|
break;
|
|
1686
1927
|
}
|
|
1687
|
-
message.
|
|
1928
|
+
message.maxResolutionWidth = reader.int32();
|
|
1688
1929
|
continue;
|
|
1689
1930
|
}
|
|
1690
1931
|
case 6: {
|
|
1691
1932
|
if (tag !== 48) {
|
|
1692
1933
|
break;
|
|
1693
1934
|
}
|
|
1694
|
-
message.
|
|
1935
|
+
message.maxResolutionHeight = reader.int32();
|
|
1695
1936
|
continue;
|
|
1696
1937
|
}
|
|
1697
1938
|
case 7: {
|
|
1698
1939
|
if (tag !== 56) {
|
|
1699
1940
|
break;
|
|
1700
1941
|
}
|
|
1701
|
-
message.
|
|
1942
|
+
message.supportsOcr = reader.bool();
|
|
1702
1943
|
continue;
|
|
1703
1944
|
}
|
|
1704
1945
|
case 8: {
|
|
1705
1946
|
if (tag !== 64) {
|
|
1706
1947
|
break;
|
|
1707
1948
|
}
|
|
1708
|
-
message.
|
|
1949
|
+
message.supportsObjectDetection = reader.bool();
|
|
1709
1950
|
continue;
|
|
1710
1951
|
}
|
|
1711
1952
|
case 9: {
|
|
1712
1953
|
if (tag !== 72) {
|
|
1713
1954
|
break;
|
|
1714
1955
|
}
|
|
1715
|
-
message.
|
|
1956
|
+
message.supportsVideoFrames = reader.bool();
|
|
1716
1957
|
continue;
|
|
1717
1958
|
}
|
|
1718
1959
|
}
|
|
@@ -1725,26 +1966,27 @@ exports.Vision = {
|
|
|
1725
1966
|
},
|
|
1726
1967
|
fromJSON(object) {
|
|
1727
1968
|
return {
|
|
1969
|
+
direction: isSet(object.direction) ? modalityDirectionFromJSON(object.direction) : 0,
|
|
1728
1970
|
supportedFormats: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.supportedFormats)
|
|
1729
1971
|
? object.supportedFormats.map((e) => imageFormatFromJSON(e))
|
|
1730
1972
|
: [],
|
|
1731
1973
|
maxImageSizeBytes: isSet(object.maxImageSizeBytes) ? globalThis.Number(object.maxImageSizeBytes) : 0,
|
|
1732
1974
|
maxImagesPerRequest: isSet(object.maxImagesPerRequest) ? globalThis.Number(object.maxImagesPerRequest) : 0,
|
|
1733
|
-
supportsImageGeneration: isSet(object.supportsImageGeneration)
|
|
1734
|
-
? globalThis.Boolean(object.supportsImageGeneration)
|
|
1735
|
-
: false,
|
|
1736
|
-
supportsVideoFrames: isSet(object.supportsVideoFrames) ? globalThis.Boolean(object.supportsVideoFrames) : false,
|
|
1737
1975
|
maxResolutionWidth: isSet(object.maxResolutionWidth) ? globalThis.Number(object.maxResolutionWidth) : 0,
|
|
1738
1976
|
maxResolutionHeight: isSet(object.maxResolutionHeight) ? globalThis.Number(object.maxResolutionHeight) : 0,
|
|
1739
1977
|
supportsOcr: isSet(object.supportsOcr) ? globalThis.Boolean(object.supportsOcr) : false,
|
|
1740
1978
|
supportsObjectDetection: isSet(object.supportsObjectDetection)
|
|
1741
1979
|
? globalThis.Boolean(object.supportsObjectDetection)
|
|
1742
1980
|
: false,
|
|
1981
|
+
supportsVideoFrames: isSet(object.supportsVideoFrames) ? globalThis.Boolean(object.supportsVideoFrames) : false,
|
|
1743
1982
|
};
|
|
1744
1983
|
},
|
|
1745
1984
|
toJSON(message) {
|
|
1746
1985
|
var _a;
|
|
1747
1986
|
const obj = {};
|
|
1987
|
+
if (message.direction !== 0) {
|
|
1988
|
+
obj.direction = modalityDirectionToJSON(message.direction);
|
|
1989
|
+
}
|
|
1748
1990
|
if ((_a = message.supportedFormats) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1749
1991
|
obj.supportedFormats = message.supportedFormats.map((e) => imageFormatToJSON(e));
|
|
1750
1992
|
}
|
|
@@ -1754,12 +1996,6 @@ exports.Vision = {
|
|
|
1754
1996
|
if (message.maxImagesPerRequest !== 0) {
|
|
1755
1997
|
obj.maxImagesPerRequest = Math.round(message.maxImagesPerRequest);
|
|
1756
1998
|
}
|
|
1757
|
-
if (message.supportsImageGeneration !== false) {
|
|
1758
|
-
obj.supportsImageGeneration = message.supportsImageGeneration;
|
|
1759
|
-
}
|
|
1760
|
-
if (message.supportsVideoFrames !== false) {
|
|
1761
|
-
obj.supportsVideoFrames = message.supportsVideoFrames;
|
|
1762
|
-
}
|
|
1763
1999
|
if (message.maxResolutionWidth !== 0) {
|
|
1764
2000
|
obj.maxResolutionWidth = Math.round(message.maxResolutionWidth);
|
|
1765
2001
|
}
|
|
@@ -1772,6 +2008,9 @@ exports.Vision = {
|
|
|
1772
2008
|
if (message.supportsObjectDetection !== false) {
|
|
1773
2009
|
obj.supportsObjectDetection = message.supportsObjectDetection;
|
|
1774
2010
|
}
|
|
2011
|
+
if (message.supportsVideoFrames !== false) {
|
|
2012
|
+
obj.supportsVideoFrames = message.supportsVideoFrames;
|
|
2013
|
+
}
|
|
1775
2014
|
return obj;
|
|
1776
2015
|
},
|
|
1777
2016
|
create(base) {
|
|
@@ -1780,15 +2019,15 @@ exports.Vision = {
|
|
|
1780
2019
|
fromPartial(object) {
|
|
1781
2020
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1782
2021
|
const message = createBaseVision();
|
|
1783
|
-
message.
|
|
1784
|
-
message.
|
|
1785
|
-
message.
|
|
1786
|
-
message.
|
|
1787
|
-
message.
|
|
1788
|
-
message.
|
|
1789
|
-
message.
|
|
1790
|
-
message.
|
|
1791
|
-
message.
|
|
2022
|
+
message.direction = (_a = object.direction) !== null && _a !== void 0 ? _a : 0;
|
|
2023
|
+
message.supportedFormats = ((_b = object.supportedFormats) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
2024
|
+
message.maxImageSizeBytes = (_c = object.maxImageSizeBytes) !== null && _c !== void 0 ? _c : 0;
|
|
2025
|
+
message.maxImagesPerRequest = (_d = object.maxImagesPerRequest) !== null && _d !== void 0 ? _d : 0;
|
|
2026
|
+
message.maxResolutionWidth = (_e = object.maxResolutionWidth) !== null && _e !== void 0 ? _e : 0;
|
|
2027
|
+
message.maxResolutionHeight = (_f = object.maxResolutionHeight) !== null && _f !== void 0 ? _f : 0;
|
|
2028
|
+
message.supportsOcr = (_g = object.supportsOcr) !== null && _g !== void 0 ? _g : false;
|
|
2029
|
+
message.supportsObjectDetection = (_h = object.supportsObjectDetection) !== null && _h !== void 0 ? _h : false;
|
|
2030
|
+
message.supportsVideoFrames = (_j = object.supportsVideoFrames) !== null && _j !== void 0 ? _j : false;
|
|
1792
2031
|
return message;
|
|
1793
2032
|
},
|
|
1794
2033
|
};
|
|
@@ -2297,35 +2536,39 @@ exports.Reasoning = {
|
|
|
2297
2536
|
};
|
|
2298
2537
|
function createBaseAudio() {
|
|
2299
2538
|
return {
|
|
2539
|
+
direction: 0,
|
|
2300
2540
|
supportedFormats: [],
|
|
2301
2541
|
maxDurationSeconds: 0,
|
|
2302
2542
|
maxFileSizeBytes: 0,
|
|
2303
|
-
supportsTranscription: false,
|
|
2304
|
-
supportsGeneration: false,
|
|
2305
2543
|
supportedLanguages: [],
|
|
2544
|
+
supportsStreaming: false,
|
|
2545
|
+
supportsVoiceSelection: false,
|
|
2306
2546
|
};
|
|
2307
2547
|
}
|
|
2308
2548
|
exports.Audio = {
|
|
2309
2549
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2310
|
-
|
|
2550
|
+
if (message.direction !== 0) {
|
|
2551
|
+
writer.uint32(8).int32(message.direction);
|
|
2552
|
+
}
|
|
2553
|
+
writer.uint32(18).fork();
|
|
2311
2554
|
for (const v of message.supportedFormats) {
|
|
2312
2555
|
writer.int32(v);
|
|
2313
2556
|
}
|
|
2314
2557
|
writer.join();
|
|
2315
2558
|
if (message.maxDurationSeconds !== 0) {
|
|
2316
|
-
writer.uint32(
|
|
2559
|
+
writer.uint32(24).int32(message.maxDurationSeconds);
|
|
2317
2560
|
}
|
|
2318
2561
|
if (message.maxFileSizeBytes !== 0) {
|
|
2319
|
-
writer.uint32(
|
|
2562
|
+
writer.uint32(32).int64(message.maxFileSizeBytes);
|
|
2320
2563
|
}
|
|
2321
|
-
|
|
2322
|
-
writer.uint32(
|
|
2564
|
+
for (const v of message.supportedLanguages) {
|
|
2565
|
+
writer.uint32(42).string(v);
|
|
2323
2566
|
}
|
|
2324
|
-
if (message.
|
|
2325
|
-
writer.uint32(
|
|
2567
|
+
if (message.supportsStreaming !== false) {
|
|
2568
|
+
writer.uint32(48).bool(message.supportsStreaming);
|
|
2326
2569
|
}
|
|
2327
|
-
|
|
2328
|
-
writer.uint32(
|
|
2570
|
+
if (message.supportsVoiceSelection !== false) {
|
|
2571
|
+
writer.uint32(56).bool(message.supportsVoiceSelection);
|
|
2329
2572
|
}
|
|
2330
2573
|
return writer;
|
|
2331
2574
|
},
|
|
@@ -2337,11 +2580,18 @@ exports.Audio = {
|
|
|
2337
2580
|
const tag = reader.uint32();
|
|
2338
2581
|
switch (tag >>> 3) {
|
|
2339
2582
|
case 1: {
|
|
2340
|
-
if (tag
|
|
2583
|
+
if (tag !== 8) {
|
|
2584
|
+
break;
|
|
2585
|
+
}
|
|
2586
|
+
message.direction = reader.int32();
|
|
2587
|
+
continue;
|
|
2588
|
+
}
|
|
2589
|
+
case 2: {
|
|
2590
|
+
if (tag === 16) {
|
|
2341
2591
|
message.supportedFormats.push(reader.int32());
|
|
2342
2592
|
continue;
|
|
2343
2593
|
}
|
|
2344
|
-
if (tag ===
|
|
2594
|
+
if (tag === 18) {
|
|
2345
2595
|
const end2 = reader.uint32() + reader.pos;
|
|
2346
2596
|
while (reader.pos < end2) {
|
|
2347
2597
|
message.supportedFormats.push(reader.int32());
|
|
@@ -2350,39 +2600,39 @@ exports.Audio = {
|
|
|
2350
2600
|
}
|
|
2351
2601
|
break;
|
|
2352
2602
|
}
|
|
2353
|
-
case 2: {
|
|
2354
|
-
if (tag !== 16) {
|
|
2355
|
-
break;
|
|
2356
|
-
}
|
|
2357
|
-
message.maxDurationSeconds = reader.int32();
|
|
2358
|
-
continue;
|
|
2359
|
-
}
|
|
2360
2603
|
case 3: {
|
|
2361
2604
|
if (tag !== 24) {
|
|
2362
2605
|
break;
|
|
2363
2606
|
}
|
|
2364
|
-
message.
|
|
2607
|
+
message.maxDurationSeconds = reader.int32();
|
|
2365
2608
|
continue;
|
|
2366
2609
|
}
|
|
2367
2610
|
case 4: {
|
|
2368
2611
|
if (tag !== 32) {
|
|
2369
2612
|
break;
|
|
2370
2613
|
}
|
|
2371
|
-
message.
|
|
2614
|
+
message.maxFileSizeBytes = longToNumber(reader.int64());
|
|
2372
2615
|
continue;
|
|
2373
2616
|
}
|
|
2374
2617
|
case 5: {
|
|
2375
|
-
if (tag !==
|
|
2618
|
+
if (tag !== 42) {
|
|
2376
2619
|
break;
|
|
2377
2620
|
}
|
|
2378
|
-
message.
|
|
2621
|
+
message.supportedLanguages.push(reader.string());
|
|
2379
2622
|
continue;
|
|
2380
2623
|
}
|
|
2381
2624
|
case 6: {
|
|
2382
|
-
if (tag !==
|
|
2625
|
+
if (tag !== 48) {
|
|
2383
2626
|
break;
|
|
2384
2627
|
}
|
|
2385
|
-
message.
|
|
2628
|
+
message.supportsStreaming = reader.bool();
|
|
2629
|
+
continue;
|
|
2630
|
+
}
|
|
2631
|
+
case 7: {
|
|
2632
|
+
if (tag !== 56) {
|
|
2633
|
+
break;
|
|
2634
|
+
}
|
|
2635
|
+
message.supportsVoiceSelection = reader.bool();
|
|
2386
2636
|
continue;
|
|
2387
2637
|
}
|
|
2388
2638
|
}
|
|
@@ -2395,23 +2645,27 @@ exports.Audio = {
|
|
|
2395
2645
|
},
|
|
2396
2646
|
fromJSON(object) {
|
|
2397
2647
|
return {
|
|
2648
|
+
direction: isSet(object.direction) ? modalityDirectionFromJSON(object.direction) : 0,
|
|
2398
2649
|
supportedFormats: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.supportedFormats)
|
|
2399
2650
|
? object.supportedFormats.map((e) => audioFormatFromJSON(e))
|
|
2400
2651
|
: [],
|
|
2401
2652
|
maxDurationSeconds: isSet(object.maxDurationSeconds) ? globalThis.Number(object.maxDurationSeconds) : 0,
|
|
2402
2653
|
maxFileSizeBytes: isSet(object.maxFileSizeBytes) ? globalThis.Number(object.maxFileSizeBytes) : 0,
|
|
2403
|
-
supportsTranscription: isSet(object.supportsTranscription)
|
|
2404
|
-
? globalThis.Boolean(object.supportsTranscription)
|
|
2405
|
-
: false,
|
|
2406
|
-
supportsGeneration: isSet(object.supportsGeneration) ? globalThis.Boolean(object.supportsGeneration) : false,
|
|
2407
2654
|
supportedLanguages: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.supportedLanguages)
|
|
2408
2655
|
? object.supportedLanguages.map((e) => globalThis.String(e))
|
|
2409
2656
|
: [],
|
|
2657
|
+
supportsStreaming: isSet(object.supportsStreaming) ? globalThis.Boolean(object.supportsStreaming) : false,
|
|
2658
|
+
supportsVoiceSelection: isSet(object.supportsVoiceSelection)
|
|
2659
|
+
? globalThis.Boolean(object.supportsVoiceSelection)
|
|
2660
|
+
: false,
|
|
2410
2661
|
};
|
|
2411
2662
|
},
|
|
2412
2663
|
toJSON(message) {
|
|
2413
2664
|
var _a, _b;
|
|
2414
2665
|
const obj = {};
|
|
2666
|
+
if (message.direction !== 0) {
|
|
2667
|
+
obj.direction = modalityDirectionToJSON(message.direction);
|
|
2668
|
+
}
|
|
2415
2669
|
if ((_a = message.supportedFormats) === null || _a === void 0 ? void 0 : _a.length) {
|
|
2416
2670
|
obj.supportedFormats = message.supportedFormats.map((e) => audioFormatToJSON(e));
|
|
2417
2671
|
}
|
|
@@ -2421,59 +2675,68 @@ exports.Audio = {
|
|
|
2421
2675
|
if (message.maxFileSizeBytes !== 0) {
|
|
2422
2676
|
obj.maxFileSizeBytes = Math.round(message.maxFileSizeBytes);
|
|
2423
2677
|
}
|
|
2424
|
-
if (message.supportsTranscription !== false) {
|
|
2425
|
-
obj.supportsTranscription = message.supportsTranscription;
|
|
2426
|
-
}
|
|
2427
|
-
if (message.supportsGeneration !== false) {
|
|
2428
|
-
obj.supportsGeneration = message.supportsGeneration;
|
|
2429
|
-
}
|
|
2430
2678
|
if ((_b = message.supportedLanguages) === null || _b === void 0 ? void 0 : _b.length) {
|
|
2431
2679
|
obj.supportedLanguages = message.supportedLanguages;
|
|
2432
2680
|
}
|
|
2681
|
+
if (message.supportsStreaming !== false) {
|
|
2682
|
+
obj.supportsStreaming = message.supportsStreaming;
|
|
2683
|
+
}
|
|
2684
|
+
if (message.supportsVoiceSelection !== false) {
|
|
2685
|
+
obj.supportsVoiceSelection = message.supportsVoiceSelection;
|
|
2686
|
+
}
|
|
2433
2687
|
return obj;
|
|
2434
2688
|
},
|
|
2435
2689
|
create(base) {
|
|
2436
2690
|
return exports.Audio.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2437
2691
|
},
|
|
2438
2692
|
fromPartial(object) {
|
|
2439
|
-
var _a, _b, _c, _d, _e, _f;
|
|
2693
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
2440
2694
|
const message = createBaseAudio();
|
|
2441
|
-
message.
|
|
2442
|
-
message.
|
|
2443
|
-
message.
|
|
2444
|
-
message.
|
|
2445
|
-
message.
|
|
2446
|
-
message.
|
|
2695
|
+
message.direction = (_a = object.direction) !== null && _a !== void 0 ? _a : 0;
|
|
2696
|
+
message.supportedFormats = ((_b = object.supportedFormats) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
2697
|
+
message.maxDurationSeconds = (_c = object.maxDurationSeconds) !== null && _c !== void 0 ? _c : 0;
|
|
2698
|
+
message.maxFileSizeBytes = (_d = object.maxFileSizeBytes) !== null && _d !== void 0 ? _d : 0;
|
|
2699
|
+
message.supportedLanguages = ((_e = object.supportedLanguages) === null || _e === void 0 ? void 0 : _e.map((e) => e)) || [];
|
|
2700
|
+
message.supportsStreaming = (_f = object.supportsStreaming) !== null && _f !== void 0 ? _f : false;
|
|
2701
|
+
message.supportsVoiceSelection = (_g = object.supportsVoiceSelection) !== null && _g !== void 0 ? _g : false;
|
|
2447
2702
|
return message;
|
|
2448
2703
|
},
|
|
2449
2704
|
};
|
|
2450
2705
|
function createBaseVideo() {
|
|
2451
2706
|
return {
|
|
2707
|
+
direction: 0,
|
|
2452
2708
|
supportedFormats: [],
|
|
2453
2709
|
maxDurationSeconds: 0,
|
|
2454
2710
|
maxFileSizeBytes: 0,
|
|
2455
2711
|
maxFps: 0,
|
|
2456
2712
|
supportsFrameExtraction: false,
|
|
2713
|
+
maxFrames: 0,
|
|
2457
2714
|
};
|
|
2458
2715
|
}
|
|
2459
2716
|
exports.Video = {
|
|
2460
2717
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2461
|
-
|
|
2718
|
+
if (message.direction !== 0) {
|
|
2719
|
+
writer.uint32(8).int32(message.direction);
|
|
2720
|
+
}
|
|
2721
|
+
writer.uint32(18).fork();
|
|
2462
2722
|
for (const v of message.supportedFormats) {
|
|
2463
2723
|
writer.int32(v);
|
|
2464
2724
|
}
|
|
2465
2725
|
writer.join();
|
|
2466
2726
|
if (message.maxDurationSeconds !== 0) {
|
|
2467
|
-
writer.uint32(
|
|
2727
|
+
writer.uint32(24).int32(message.maxDurationSeconds);
|
|
2468
2728
|
}
|
|
2469
2729
|
if (message.maxFileSizeBytes !== 0) {
|
|
2470
|
-
writer.uint32(
|
|
2730
|
+
writer.uint32(32).int64(message.maxFileSizeBytes);
|
|
2471
2731
|
}
|
|
2472
2732
|
if (message.maxFps !== 0) {
|
|
2473
|
-
writer.uint32(
|
|
2733
|
+
writer.uint32(40).int32(message.maxFps);
|
|
2474
2734
|
}
|
|
2475
2735
|
if (message.supportsFrameExtraction !== false) {
|
|
2476
|
-
writer.uint32(
|
|
2736
|
+
writer.uint32(48).bool(message.supportsFrameExtraction);
|
|
2737
|
+
}
|
|
2738
|
+
if (message.maxFrames !== 0) {
|
|
2739
|
+
writer.uint32(56).int32(message.maxFrames);
|
|
2477
2740
|
}
|
|
2478
2741
|
return writer;
|
|
2479
2742
|
},
|
|
@@ -2485,11 +2748,18 @@ exports.Video = {
|
|
|
2485
2748
|
const tag = reader.uint32();
|
|
2486
2749
|
switch (tag >>> 3) {
|
|
2487
2750
|
case 1: {
|
|
2488
|
-
if (tag
|
|
2751
|
+
if (tag !== 8) {
|
|
2752
|
+
break;
|
|
2753
|
+
}
|
|
2754
|
+
message.direction = reader.int32();
|
|
2755
|
+
continue;
|
|
2756
|
+
}
|
|
2757
|
+
case 2: {
|
|
2758
|
+
if (tag === 16) {
|
|
2489
2759
|
message.supportedFormats.push(reader.int32());
|
|
2490
2760
|
continue;
|
|
2491
2761
|
}
|
|
2492
|
-
if (tag ===
|
|
2762
|
+
if (tag === 18) {
|
|
2493
2763
|
const end2 = reader.uint32() + reader.pos;
|
|
2494
2764
|
while (reader.pos < end2) {
|
|
2495
2765
|
message.supportedFormats.push(reader.int32());
|
|
@@ -2498,34 +2768,41 @@ exports.Video = {
|
|
|
2498
2768
|
}
|
|
2499
2769
|
break;
|
|
2500
2770
|
}
|
|
2501
|
-
case
|
|
2502
|
-
if (tag !==
|
|
2771
|
+
case 3: {
|
|
2772
|
+
if (tag !== 24) {
|
|
2503
2773
|
break;
|
|
2504
2774
|
}
|
|
2505
2775
|
message.maxDurationSeconds = reader.int32();
|
|
2506
2776
|
continue;
|
|
2507
2777
|
}
|
|
2508
|
-
case
|
|
2509
|
-
if (tag !==
|
|
2778
|
+
case 4: {
|
|
2779
|
+
if (tag !== 32) {
|
|
2510
2780
|
break;
|
|
2511
2781
|
}
|
|
2512
2782
|
message.maxFileSizeBytes = longToNumber(reader.int64());
|
|
2513
2783
|
continue;
|
|
2514
2784
|
}
|
|
2515
|
-
case
|
|
2516
|
-
if (tag !==
|
|
2785
|
+
case 5: {
|
|
2786
|
+
if (tag !== 40) {
|
|
2517
2787
|
break;
|
|
2518
2788
|
}
|
|
2519
2789
|
message.maxFps = reader.int32();
|
|
2520
2790
|
continue;
|
|
2521
2791
|
}
|
|
2522
|
-
case
|
|
2523
|
-
if (tag !==
|
|
2792
|
+
case 6: {
|
|
2793
|
+
if (tag !== 48) {
|
|
2524
2794
|
break;
|
|
2525
2795
|
}
|
|
2526
2796
|
message.supportsFrameExtraction = reader.bool();
|
|
2527
2797
|
continue;
|
|
2528
2798
|
}
|
|
2799
|
+
case 7: {
|
|
2800
|
+
if (tag !== 56) {
|
|
2801
|
+
break;
|
|
2802
|
+
}
|
|
2803
|
+
message.maxFrames = reader.int32();
|
|
2804
|
+
continue;
|
|
2805
|
+
}
|
|
2529
2806
|
}
|
|
2530
2807
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2531
2808
|
break;
|
|
@@ -2536,6 +2813,7 @@ exports.Video = {
|
|
|
2536
2813
|
},
|
|
2537
2814
|
fromJSON(object) {
|
|
2538
2815
|
return {
|
|
2816
|
+
direction: isSet(object.direction) ? modalityDirectionFromJSON(object.direction) : 0,
|
|
2539
2817
|
supportedFormats: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.supportedFormats)
|
|
2540
2818
|
? object.supportedFormats.map((e) => videoFormatFromJSON(e))
|
|
2541
2819
|
: [],
|
|
@@ -2545,11 +2823,15 @@ exports.Video = {
|
|
|
2545
2823
|
supportsFrameExtraction: isSet(object.supportsFrameExtraction)
|
|
2546
2824
|
? globalThis.Boolean(object.supportsFrameExtraction)
|
|
2547
2825
|
: false,
|
|
2826
|
+
maxFrames: isSet(object.maxFrames) ? globalThis.Number(object.maxFrames) : 0,
|
|
2548
2827
|
};
|
|
2549
2828
|
},
|
|
2550
2829
|
toJSON(message) {
|
|
2551
2830
|
var _a;
|
|
2552
2831
|
const obj = {};
|
|
2832
|
+
if (message.direction !== 0) {
|
|
2833
|
+
obj.direction = modalityDirectionToJSON(message.direction);
|
|
2834
|
+
}
|
|
2553
2835
|
if ((_a = message.supportedFormats) === null || _a === void 0 ? void 0 : _a.length) {
|
|
2554
2836
|
obj.supportedFormats = message.supportedFormats.map((e) => videoFormatToJSON(e));
|
|
2555
2837
|
}
|
|
@@ -2565,19 +2847,24 @@ exports.Video = {
|
|
|
2565
2847
|
if (message.supportsFrameExtraction !== false) {
|
|
2566
2848
|
obj.supportsFrameExtraction = message.supportsFrameExtraction;
|
|
2567
2849
|
}
|
|
2850
|
+
if (message.maxFrames !== 0) {
|
|
2851
|
+
obj.maxFrames = Math.round(message.maxFrames);
|
|
2852
|
+
}
|
|
2568
2853
|
return obj;
|
|
2569
2854
|
},
|
|
2570
2855
|
create(base) {
|
|
2571
2856
|
return exports.Video.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2572
2857
|
},
|
|
2573
2858
|
fromPartial(object) {
|
|
2574
|
-
var _a, _b, _c, _d, _e;
|
|
2859
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
2575
2860
|
const message = createBaseVideo();
|
|
2576
|
-
message.
|
|
2577
|
-
message.
|
|
2578
|
-
message.
|
|
2579
|
-
message.
|
|
2580
|
-
message.
|
|
2861
|
+
message.direction = (_a = object.direction) !== null && _a !== void 0 ? _a : 0;
|
|
2862
|
+
message.supportedFormats = ((_b = object.supportedFormats) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
2863
|
+
message.maxDurationSeconds = (_c = object.maxDurationSeconds) !== null && _c !== void 0 ? _c : 0;
|
|
2864
|
+
message.maxFileSizeBytes = (_d = object.maxFileSizeBytes) !== null && _d !== void 0 ? _d : 0;
|
|
2865
|
+
message.maxFps = (_e = object.maxFps) !== null && _e !== void 0 ? _e : 0;
|
|
2866
|
+
message.supportsFrameExtraction = (_f = object.supportsFrameExtraction) !== null && _f !== void 0 ? _f : false;
|
|
2867
|
+
message.maxFrames = (_g = object.maxFrames) !== null && _g !== void 0 ? _g : 0;
|
|
2581
2868
|
return message;
|
|
2582
2869
|
},
|
|
2583
2870
|
};
|