weave-typescript 0.51.3 → 0.53.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.
Files changed (185) hide show
  1. package/dist/google/protobuf/duration.pb.d.ts +99 -0
  2. package/dist/google/protobuf/duration.pb.js +93 -0
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.js +2 -1
  5. package/dist/weave/authz/v1/index.d.ts +1 -0
  6. package/dist/weave/authz/v1/index.js +38 -0
  7. package/dist/weave/authz/v1/options.pb.d.ts +52 -0
  8. package/dist/weave/authz/v1/options.pb.js +403 -0
  9. package/dist/weave/filter/v1/index.d.ts +1 -0
  10. package/dist/weave/filter/v1/index.js +38 -0
  11. package/dist/{weaveapi/atc/v1/message.pb.d.ts → weave/filter/v1/options.pb.d.ts} +33 -21
  12. package/dist/weave/filter/v1/options.pb.js +417 -0
  13. package/dist/weave/index.d.ts +2 -0
  14. package/dist/weave/index.js +39 -0
  15. package/dist/weaveapi/agent/v1/agent.pb.d.ts +137 -188
  16. package/dist/weaveapi/agent/v1/agent.pb.js +891 -2151
  17. package/dist/weaveapi/agent/v1/index.d.ts +1 -1
  18. package/dist/weaveapi/agent/v1/index.js +2 -2
  19. package/dist/weaveapi/agent/v1/run.pb.d.ts +289 -0
  20. package/dist/weaveapi/agent/v1/run.pb.js +2763 -0
  21. package/dist/weaveapi/auth/v1/auth.pb.d.ts +67 -14
  22. package/dist/weaveapi/auth/v1/auth.pb.js +829 -89
  23. package/dist/weaveapi/auth/v1/index.d.ts +4 -1
  24. package/dist/weaveapi/auth/v1/index.js +5 -2
  25. package/dist/weaveapi/auth/v1/{service.pb.d.ts → organization_admin.pb.d.ts} +39 -530
  26. package/dist/weaveapi/auth/v1/{service.pb.js → organization_admin.pb.js} +2978 -5812
  27. package/dist/weaveapi/auth/v1/personal_access_token.pb.d.ts +114 -0
  28. package/dist/weaveapi/auth/v1/personal_access_token.pb.js +750 -0
  29. package/dist/weaveapi/auth/v1/profile.pb.d.ts +161 -0
  30. package/dist/weaveapi/auth/v1/profile.pb.js +1007 -0
  31. package/dist/weaveapi/auth/v1/session.pb.d.ts +460 -0
  32. package/dist/weaveapi/auth/v1/session.pb.js +3544 -0
  33. package/dist/weaveapi/chat/v1/chat.pb.d.ts +377 -149
  34. package/dist/weaveapi/chat/v1/chat.pb.js +3492 -1614
  35. package/dist/weaveapi/chat/v1/index.d.ts +0 -1
  36. package/dist/weaveapi/chat/v1/index.js +1 -2
  37. package/dist/weaveapi/consolidation/v1/consolidation.pb.d.ts +95 -0
  38. package/dist/weaveapi/consolidation/v1/consolidation.pb.js +770 -1
  39. package/dist/weaveapi/consolidation/v1/index.d.ts +0 -1
  40. package/dist/weaveapi/consolidation/v1/index.js +1 -2
  41. package/dist/weaveapi/content/v1/content.pb.d.ts +63 -0
  42. package/dist/weaveapi/content/v1/content.pb.js +470 -0
  43. package/dist/weaveapi/content/v1/index.d.ts +1 -0
  44. package/dist/weaveapi/content/v1/index.js +38 -0
  45. package/dist/weaveapi/gateway/v1/gateway.pb.d.ts +247 -523
  46. package/dist/weaveapi/gateway/v1/gateway.pb.js +1648 -5783
  47. package/dist/weaveapi/gateway/v1/index.d.ts +0 -1
  48. package/dist/weaveapi/gateway/v1/index.js +1 -2
  49. package/dist/weaveapi/index.d.ts +5 -5
  50. package/dist/weaveapi/index.js +6 -6
  51. package/dist/weaveapi/inference/v1/generate.pb.d.ts +120 -0
  52. package/dist/weaveapi/inference/v1/generate.pb.js +1159 -0
  53. package/dist/weaveapi/inference/v1/index.d.ts +4 -0
  54. package/dist/weaveapi/{provider → inference}/v1/index.js +4 -2
  55. package/dist/weaveapi/{model → inference}/v1/model.pb.d.ts +54 -15
  56. package/dist/weaveapi/{model → inference}/v1/model.pb.js +573 -116
  57. package/dist/weaveapi/{model/v1/service.pb.d.ts → inference/v1/model_route.pb.d.ts} +184 -110
  58. package/dist/weaveapi/{model/v1/service.pb.js → inference/v1/model_route.pb.js} +2240 -1061
  59. package/dist/weaveapi/inference/v1/provider.pb.d.ts +264 -0
  60. package/dist/weaveapi/inference/v1/provider.pb.js +2590 -0
  61. package/dist/weaveapi/ingestion/v1/index.d.ts +0 -2
  62. package/dist/weaveapi/ingestion/v1/index.js +1 -3
  63. package/dist/weaveapi/ingestion/v1/ingestion.pb.d.ts +543 -0
  64. package/dist/weaveapi/ingestion/v1/ingestion.pb.js +5550 -16
  65. package/dist/weaveapi/initialization/v1/index.d.ts +1 -0
  66. package/dist/weaveapi/initialization/v1/index.js +38 -0
  67. package/dist/weaveapi/initialization/v1/initialization.pb.d.ts +99 -0
  68. package/dist/weaveapi/initialization/v1/initialization.pb.js +510 -0
  69. package/dist/weaveapi/organization/v1/index.d.ts +0 -1
  70. package/dist/weaveapi/organization/v1/index.js +1 -2
  71. package/dist/weaveapi/organization/v1/organization.pb.d.ts +241 -0
  72. package/dist/weaveapi/organization/v1/organization.pb.js +1838 -1
  73. package/dist/weaveapi/reporting/index.d.ts +1 -0
  74. package/dist/weaveapi/reporting/index.js +38 -0
  75. package/dist/weaveapi/{task → reporting}/v1/index.d.ts +1 -1
  76. package/dist/weaveapi/{model → reporting}/v1/index.js +2 -2
  77. package/dist/weaveapi/reporting/v1/service.pb.d.ts +38 -0
  78. package/dist/weaveapi/reporting/v1/service.pb.js +167 -0
  79. package/dist/weaveapi/reporting/v1/usage.pb.d.ts +150 -0
  80. package/dist/weaveapi/reporting/v1/usage.pb.js +1837 -0
  81. package/dist/weaveapi/retrieval/v1/index.d.ts +0 -1
  82. package/dist/weaveapi/retrieval/v1/index.js +1 -2
  83. package/dist/weaveapi/retrieval/v1/retrieval.pb.d.ts +96 -2
  84. package/dist/weaveapi/retrieval/v1/retrieval.pb.js +690 -10
  85. package/dist/weaveapi/tool/index.d.ts +1 -0
  86. package/dist/weaveapi/tool/index.js +38 -0
  87. package/dist/weaveapi/tool/v1/index.d.ts +1 -0
  88. package/dist/weaveapi/tool/v1/index.js +38 -0
  89. package/dist/weaveapi/tool/v1/tool.pb.d.ts +370 -0
  90. package/dist/weaveapi/tool/v1/tool.pb.js +2717 -0
  91. package/dist/weaveapi/workflow/v1/index.d.ts +1 -1
  92. package/dist/weaveapi/workflow/v1/index.js +2 -2
  93. package/dist/weaveapi/workflow/v1/run.pb.d.ts +244 -0
  94. package/dist/weaveapi/workflow/v1/run.pb.js +2084 -0
  95. package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +122 -275
  96. package/dist/weaveapi/workflow/v1/workflow.pb.js +790 -3261
  97. package/dist/weavesql/weavedb/agent_sql.d.ts +173 -477
  98. package/dist/weavesql/weavedb/agent_sql.js +281 -758
  99. package/dist/weavesql/weavedb/authorization_outbox_sql.d.ts +261 -0
  100. package/dist/weavesql/weavedb/authorization_outbox_sql.js +445 -0
  101. package/dist/weavesql/weavedb/chat_sql.d.ts +103 -345
  102. package/dist/weavesql/weavedb/chat_sql.js +312 -597
  103. package/dist/weavesql/weavedb/document_consolidation_sql.d.ts +217 -0
  104. package/dist/weavesql/weavedb/document_consolidation_sql.js +486 -0
  105. package/dist/weavesql/weavedb/document_ingestion_sql.d.ts +1433 -0
  106. package/dist/weavesql/weavedb/document_ingestion_sql.js +3488 -0
  107. package/dist/weavesql/weavedb/document_retrieval_sql.d.ts +314 -0
  108. package/dist/weavesql/weavedb/document_retrieval_sql.js +965 -0
  109. package/dist/weavesql/weavedb/document_table_sql.d.ts +6 -6
  110. package/dist/weavesql/weavedb/document_table_sql.js +12 -12
  111. package/dist/weavesql/weavedb/identity_sql.d.ts +1021 -0
  112. package/dist/weavesql/weavedb/identity_sql.js +1818 -0
  113. package/dist/weavesql/weavedb/inference_model_route_sql.d.ts +167 -0
  114. package/dist/weavesql/weavedb/inference_model_route_sql.js +483 -0
  115. package/dist/weavesql/weavedb/inference_provider_sql.d.ts +125 -0
  116. package/dist/weavesql/weavedb/inference_provider_sql.js +228 -0
  117. package/dist/weavesql/weavedb/initialization_sql.d.ts +15 -0
  118. package/dist/weavesql/weavedb/initialization_sql.js +33 -0
  119. package/dist/weavesql/weavedb/model_catalog_sql.d.ts +6 -6
  120. package/dist/weavesql/weavedb/model_catalog_sql.js +6 -6
  121. package/dist/weavesql/weavedb/organization_sql.d.ts +24 -102
  122. package/dist/weavesql/weavedb/organization_sql.js +56 -262
  123. package/dist/weavesql/weavedb/tool_sql.d.ts +209 -0
  124. package/dist/weavesql/weavedb/tool_sql.js +407 -0
  125. package/dist/weavesql/weavedb/usage_sql.d.ts +356 -0
  126. package/dist/weavesql/weavedb/usage_sql.js +568 -0
  127. package/dist/weavesql/weavedb/workflow_sql.d.ts +159 -546
  128. package/dist/weavesql/weavedb/workflow_sql.js +281 -909
  129. package/package.json +1 -1
  130. package/dist/weaveapi/agent/v1/service.pb.d.ts +0 -397
  131. package/dist/weaveapi/agent/v1/service.pb.js +0 -3152
  132. package/dist/weaveapi/atc/v1/event.pb.d.ts +0 -134
  133. package/dist/weaveapi/atc/v1/event.pb.js +0 -1124
  134. package/dist/weaveapi/atc/v1/index.d.ts +0 -5
  135. package/dist/weaveapi/atc/v1/index.js +0 -42
  136. package/dist/weaveapi/atc/v1/message.pb.js +0 -287
  137. package/dist/weaveapi/atc/v1/process.pb.d.ts +0 -91
  138. package/dist/weaveapi/atc/v1/process.pb.js +0 -658
  139. package/dist/weaveapi/atc/v1/run.pb.d.ts +0 -71
  140. package/dist/weaveapi/atc/v1/run.pb.js +0 -525
  141. package/dist/weaveapi/atc/v1/service.pb.d.ts +0 -472
  142. package/dist/weaveapi/atc/v1/service.pb.js +0 -3093
  143. package/dist/weaveapi/chat/v1/service.pb.d.ts +0 -345
  144. package/dist/weaveapi/chat/v1/service.pb.js +0 -2545
  145. package/dist/weaveapi/consolidation/v1/service.pb.d.ts +0 -93
  146. package/dist/weaveapi/consolidation/v1/service.pb.js +0 -427
  147. package/dist/weaveapi/gateway/v1/service.pb.d.ts +0 -235
  148. package/dist/weaveapi/gateway/v1/service.pb.js +0 -651
  149. package/dist/weaveapi/ingestion/v1/service.pb.d.ts +0 -420
  150. package/dist/weaveapi/ingestion/v1/service.pb.js +0 -2311
  151. package/dist/weaveapi/ingestion/v1/table.pb.d.ts +0 -121
  152. package/dist/weaveapi/ingestion/v1/table.pb.js +0 -1478
  153. package/dist/weaveapi/model/v1/index.d.ts +0 -2
  154. package/dist/weaveapi/organization/v1/service.pb.d.ts +0 -261
  155. package/dist/weaveapi/organization/v1/service.pb.js +0 -1561
  156. package/dist/weaveapi/project/v1/index.d.ts +0 -2
  157. package/dist/weaveapi/project/v1/index.js +0 -39
  158. package/dist/weaveapi/project/v1/project.pb.d.ts +0 -105
  159. package/dist/weaveapi/project/v1/project.pb.js +0 -1004
  160. package/dist/weaveapi/project/v1/service.pb.d.ts +0 -247
  161. package/dist/weaveapi/project/v1/service.pb.js +0 -1994
  162. package/dist/weaveapi/provider/v1/index.d.ts +0 -2
  163. package/dist/weaveapi/provider/v1/provider.pb.d.ts +0 -137
  164. package/dist/weaveapi/provider/v1/provider.pb.js +0 -1000
  165. package/dist/weaveapi/provider/v1/service.pb.d.ts +0 -223
  166. package/dist/weaveapi/provider/v1/service.pb.js +0 -1888
  167. package/dist/weaveapi/retrieval/v1/service.pb.d.ts +0 -93
  168. package/dist/weaveapi/retrieval/v1/service.pb.js +0 -385
  169. package/dist/weaveapi/task/v1/index.js +0 -39
  170. package/dist/weaveapi/task/v1/service.pb.d.ts +0 -172
  171. package/dist/weaveapi/task/v1/service.pb.js +0 -1436
  172. package/dist/weaveapi/task/v1/task.pb.d.ts +0 -85
  173. package/dist/weaveapi/task/v1/task.pb.js +0 -802
  174. package/dist/weaveapi/workflow/v1/service.pb.d.ts +0 -392
  175. package/dist/weaveapi/workflow/v1/service.pb.js +0 -3146
  176. /package/dist/{weaveapi/atc → weave/authz}/index.d.ts +0 -0
  177. /package/dist/{weaveapi/atc → weave/authz}/index.js +0 -0
  178. /package/dist/{weaveapi/model → weave/filter}/index.d.ts +0 -0
  179. /package/dist/{weaveapi/model → weave/filter}/index.js +0 -0
  180. /package/dist/weaveapi/{project → content}/index.d.ts +0 -0
  181. /package/dist/weaveapi/{project → content}/index.js +0 -0
  182. /package/dist/weaveapi/{provider → inference}/index.d.ts +0 -0
  183. /package/dist/weaveapi/{provider → inference}/index.js +0 -0
  184. /package/dist/weaveapi/{task → initialization}/index.d.ts +0 -0
  185. /package/dist/weaveapi/{task → initialization}/index.js +0 -0
@@ -1,2545 +0,0 @@
1
- "use strict";
2
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
- // versions:
4
- // protoc-gen-ts_proto v2.11.8
5
- // protoc unknown
6
- // source: weaveapi/chat/v1/service.proto
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.ChatServiceDefinition = exports.ChatServiceClientImpl = exports.ChatServiceServiceName = exports.GetArtifactVersionResponse = exports.GetArtifactVersionRequest = exports.GetArtifactResponse = exports.GetArtifactRequest = exports.ListArtifactsResponse = exports.ListArtifactsRequest = exports.RejectToolCallResponse = exports.RejectToolCallRequest = exports.ApproveToolCallResponse = exports.ApproveToolCallRequest = exports.AttachStreamResponse = exports.AttachStreamRequest = exports.PostMessageResponse = exports.PostMessageRequest = exports.DeleteSessionResponse = exports.DeleteSessionRequest = exports.UpdateSessionResponse = exports.UpdateSessionRequest = exports.ListSessionsResponse = exports.ListSessionsRequest = exports.GetSessionResponse = exports.GetSessionRequest = exports.CreateSessionResponse = exports.CreateSessionRequest = exports.protobufPackage = void 0;
9
- /* eslint-disable */
10
- const wire_1 = require("@bufbuild/protobuf/wire");
11
- const operators_1 = require("rxjs/operators");
12
- const chat_pb_1 = require("./chat.pb");
13
- exports.protobufPackage = "weaveapi.chat.v1";
14
- function createBaseCreateSessionRequest() {
15
- return { organizationId: "", modelId: "", providerConfigurationId: "", attachedProjectIds: [] };
16
- }
17
- exports.CreateSessionRequest = {
18
- encode(message, writer = new wire_1.BinaryWriter()) {
19
- if (message.organizationId !== "") {
20
- writer.uint32(10).string(message.organizationId);
21
- }
22
- if (message.modelId !== "") {
23
- writer.uint32(18).string(message.modelId);
24
- }
25
- if (message.providerConfigurationId !== "") {
26
- writer.uint32(26).string(message.providerConfigurationId);
27
- }
28
- for (const v of message.attachedProjectIds) {
29
- writer.uint32(34).string(v);
30
- }
31
- return writer;
32
- },
33
- decode(input, length) {
34
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
35
- const end = length === undefined ? reader.len : reader.pos + length;
36
- const message = createBaseCreateSessionRequest();
37
- while (reader.pos < end) {
38
- const tag = reader.uint32();
39
- switch (tag >>> 3) {
40
- case 1: {
41
- if (tag !== 10) {
42
- break;
43
- }
44
- message.organizationId = reader.string();
45
- continue;
46
- }
47
- case 2: {
48
- if (tag !== 18) {
49
- break;
50
- }
51
- message.modelId = reader.string();
52
- continue;
53
- }
54
- case 3: {
55
- if (tag !== 26) {
56
- break;
57
- }
58
- message.providerConfigurationId = reader.string();
59
- continue;
60
- }
61
- case 4: {
62
- if (tag !== 34) {
63
- break;
64
- }
65
- message.attachedProjectIds.push(reader.string());
66
- continue;
67
- }
68
- }
69
- if ((tag & 7) === 4 || tag === 0) {
70
- break;
71
- }
72
- reader.skip(tag & 7);
73
- }
74
- return message;
75
- },
76
- fromJSON(object) {
77
- return {
78
- organizationId: isSet(object.organizationId)
79
- ? globalThis.String(object.organizationId)
80
- : isSet(object.organization_id)
81
- ? globalThis.String(object.organization_id)
82
- : "",
83
- modelId: isSet(object.modelId)
84
- ? globalThis.String(object.modelId)
85
- : isSet(object.model_id)
86
- ? globalThis.String(object.model_id)
87
- : "",
88
- providerConfigurationId: isSet(object.providerConfigurationId)
89
- ? globalThis.String(object.providerConfigurationId)
90
- : isSet(object.provider_configuration_id)
91
- ? globalThis.String(object.provider_configuration_id)
92
- : "",
93
- attachedProjectIds: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.attachedProjectIds)
94
- ? object.attachedProjectIds.map((e) => globalThis.String(e))
95
- : globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.attached_project_ids)
96
- ? object.attached_project_ids.map((e) => globalThis.String(e))
97
- : [],
98
- };
99
- },
100
- toJSON(message) {
101
- var _a;
102
- const obj = {};
103
- if (message.organizationId !== "") {
104
- obj.organizationId = message.organizationId;
105
- }
106
- if (message.modelId !== "") {
107
- obj.modelId = message.modelId;
108
- }
109
- if (message.providerConfigurationId !== "") {
110
- obj.providerConfigurationId = message.providerConfigurationId;
111
- }
112
- if ((_a = message.attachedProjectIds) === null || _a === void 0 ? void 0 : _a.length) {
113
- obj.attachedProjectIds = message.attachedProjectIds;
114
- }
115
- return obj;
116
- },
117
- create(base) {
118
- return exports.CreateSessionRequest.fromPartial(base !== null && base !== void 0 ? base : {});
119
- },
120
- fromPartial(object) {
121
- var _a;
122
- var _b, _c, _d;
123
- const message = createBaseCreateSessionRequest();
124
- message.organizationId = (_b = object.organizationId) !== null && _b !== void 0 ? _b : "";
125
- message.modelId = (_c = object.modelId) !== null && _c !== void 0 ? _c : "";
126
- message.providerConfigurationId = (_d = object.providerConfigurationId) !== null && _d !== void 0 ? _d : "";
127
- message.attachedProjectIds = ((_a = object.attachedProjectIds) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
128
- return message;
129
- },
130
- };
131
- function createBaseCreateSessionResponse() {
132
- return { session: undefined };
133
- }
134
- exports.CreateSessionResponse = {
135
- encode(message, writer = new wire_1.BinaryWriter()) {
136
- if (message.session !== undefined) {
137
- chat_pb_1.ChatSession.encode(message.session, writer.uint32(10).fork()).join();
138
- }
139
- return writer;
140
- },
141
- decode(input, length) {
142
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
143
- const end = length === undefined ? reader.len : reader.pos + length;
144
- const message = createBaseCreateSessionResponse();
145
- while (reader.pos < end) {
146
- const tag = reader.uint32();
147
- switch (tag >>> 3) {
148
- case 1: {
149
- if (tag !== 10) {
150
- break;
151
- }
152
- message.session = chat_pb_1.ChatSession.decode(reader, reader.uint32());
153
- continue;
154
- }
155
- }
156
- if ((tag & 7) === 4 || tag === 0) {
157
- break;
158
- }
159
- reader.skip(tag & 7);
160
- }
161
- return message;
162
- },
163
- fromJSON(object) {
164
- return { session: isSet(object.session) ? chat_pb_1.ChatSession.fromJSON(object.session) : undefined };
165
- },
166
- toJSON(message) {
167
- const obj = {};
168
- if (message.session !== undefined) {
169
- obj.session = chat_pb_1.ChatSession.toJSON(message.session);
170
- }
171
- return obj;
172
- },
173
- create(base) {
174
- return exports.CreateSessionResponse.fromPartial(base !== null && base !== void 0 ? base : {});
175
- },
176
- fromPartial(object) {
177
- const message = createBaseCreateSessionResponse();
178
- message.session = (object.session !== undefined && object.session !== null)
179
- ? chat_pb_1.ChatSession.fromPartial(object.session)
180
- : undefined;
181
- return message;
182
- },
183
- };
184
- function createBaseGetSessionRequest() {
185
- return { sessionId: "" };
186
- }
187
- exports.GetSessionRequest = {
188
- encode(message, writer = new wire_1.BinaryWriter()) {
189
- if (message.sessionId !== "") {
190
- writer.uint32(10).string(message.sessionId);
191
- }
192
- return writer;
193
- },
194
- decode(input, length) {
195
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
196
- const end = length === undefined ? reader.len : reader.pos + length;
197
- const message = createBaseGetSessionRequest();
198
- while (reader.pos < end) {
199
- const tag = reader.uint32();
200
- switch (tag >>> 3) {
201
- case 1: {
202
- if (tag !== 10) {
203
- break;
204
- }
205
- message.sessionId = reader.string();
206
- continue;
207
- }
208
- }
209
- if ((tag & 7) === 4 || tag === 0) {
210
- break;
211
- }
212
- reader.skip(tag & 7);
213
- }
214
- return message;
215
- },
216
- fromJSON(object) {
217
- return {
218
- sessionId: isSet(object.sessionId)
219
- ? globalThis.String(object.sessionId)
220
- : isSet(object.session_id)
221
- ? globalThis.String(object.session_id)
222
- : "",
223
- };
224
- },
225
- toJSON(message) {
226
- const obj = {};
227
- if (message.sessionId !== "") {
228
- obj.sessionId = message.sessionId;
229
- }
230
- return obj;
231
- },
232
- create(base) {
233
- return exports.GetSessionRequest.fromPartial(base !== null && base !== void 0 ? base : {});
234
- },
235
- fromPartial(object) {
236
- var _a;
237
- const message = createBaseGetSessionRequest();
238
- message.sessionId = (_a = object.sessionId) !== null && _a !== void 0 ? _a : "";
239
- return message;
240
- },
241
- };
242
- function createBaseGetSessionResponse() {
243
- return { session: undefined, messages: [] };
244
- }
245
- exports.GetSessionResponse = {
246
- encode(message, writer = new wire_1.BinaryWriter()) {
247
- if (message.session !== undefined) {
248
- chat_pb_1.ChatSession.encode(message.session, writer.uint32(10).fork()).join();
249
- }
250
- for (const v of message.messages) {
251
- chat_pb_1.ChatMessage.encode(v, writer.uint32(18).fork()).join();
252
- }
253
- return writer;
254
- },
255
- decode(input, length) {
256
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
257
- const end = length === undefined ? reader.len : reader.pos + length;
258
- const message = createBaseGetSessionResponse();
259
- while (reader.pos < end) {
260
- const tag = reader.uint32();
261
- switch (tag >>> 3) {
262
- case 1: {
263
- if (tag !== 10) {
264
- break;
265
- }
266
- message.session = chat_pb_1.ChatSession.decode(reader, reader.uint32());
267
- continue;
268
- }
269
- case 2: {
270
- if (tag !== 18) {
271
- break;
272
- }
273
- message.messages.push(chat_pb_1.ChatMessage.decode(reader, reader.uint32()));
274
- continue;
275
- }
276
- }
277
- if ((tag & 7) === 4 || tag === 0) {
278
- break;
279
- }
280
- reader.skip(tag & 7);
281
- }
282
- return message;
283
- },
284
- fromJSON(object) {
285
- return {
286
- session: isSet(object.session) ? chat_pb_1.ChatSession.fromJSON(object.session) : undefined,
287
- messages: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.messages)
288
- ? object.messages.map((e) => chat_pb_1.ChatMessage.fromJSON(e))
289
- : [],
290
- };
291
- },
292
- toJSON(message) {
293
- var _a;
294
- const obj = {};
295
- if (message.session !== undefined) {
296
- obj.session = chat_pb_1.ChatSession.toJSON(message.session);
297
- }
298
- if ((_a = message.messages) === null || _a === void 0 ? void 0 : _a.length) {
299
- obj.messages = message.messages.map((e) => chat_pb_1.ChatMessage.toJSON(e));
300
- }
301
- return obj;
302
- },
303
- create(base) {
304
- return exports.GetSessionResponse.fromPartial(base !== null && base !== void 0 ? base : {});
305
- },
306
- fromPartial(object) {
307
- var _a;
308
- const message = createBaseGetSessionResponse();
309
- message.session = (object.session !== undefined && object.session !== null)
310
- ? chat_pb_1.ChatSession.fromPartial(object.session)
311
- : undefined;
312
- message.messages = ((_a = object.messages) === null || _a === void 0 ? void 0 : _a.map((e) => chat_pb_1.ChatMessage.fromPartial(e))) || [];
313
- return message;
314
- },
315
- };
316
- function createBaseListSessionsRequest() {
317
- return { organizationId: "", projectId: "", pageSize: 0, pageToken: "" };
318
- }
319
- exports.ListSessionsRequest = {
320
- encode(message, writer = new wire_1.BinaryWriter()) {
321
- if (message.organizationId !== "") {
322
- writer.uint32(10).string(message.organizationId);
323
- }
324
- if (message.projectId !== "") {
325
- writer.uint32(18).string(message.projectId);
326
- }
327
- if (message.pageSize !== 0) {
328
- writer.uint32(24).int32(message.pageSize);
329
- }
330
- if (message.pageToken !== "") {
331
- writer.uint32(34).string(message.pageToken);
332
- }
333
- return writer;
334
- },
335
- decode(input, length) {
336
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
337
- const end = length === undefined ? reader.len : reader.pos + length;
338
- const message = createBaseListSessionsRequest();
339
- while (reader.pos < end) {
340
- const tag = reader.uint32();
341
- switch (tag >>> 3) {
342
- case 1: {
343
- if (tag !== 10) {
344
- break;
345
- }
346
- message.organizationId = reader.string();
347
- continue;
348
- }
349
- case 2: {
350
- if (tag !== 18) {
351
- break;
352
- }
353
- message.projectId = reader.string();
354
- continue;
355
- }
356
- case 3: {
357
- if (tag !== 24) {
358
- break;
359
- }
360
- message.pageSize = reader.int32();
361
- continue;
362
- }
363
- case 4: {
364
- if (tag !== 34) {
365
- break;
366
- }
367
- message.pageToken = reader.string();
368
- continue;
369
- }
370
- }
371
- if ((tag & 7) === 4 || tag === 0) {
372
- break;
373
- }
374
- reader.skip(tag & 7);
375
- }
376
- return message;
377
- },
378
- fromJSON(object) {
379
- return {
380
- organizationId: isSet(object.organizationId)
381
- ? globalThis.String(object.organizationId)
382
- : isSet(object.organization_id)
383
- ? globalThis.String(object.organization_id)
384
- : "",
385
- projectId: isSet(object.projectId)
386
- ? globalThis.String(object.projectId)
387
- : isSet(object.project_id)
388
- ? globalThis.String(object.project_id)
389
- : "",
390
- pageSize: isSet(object.pageSize)
391
- ? globalThis.Number(object.pageSize)
392
- : isSet(object.page_size)
393
- ? globalThis.Number(object.page_size)
394
- : 0,
395
- pageToken: isSet(object.pageToken)
396
- ? globalThis.String(object.pageToken)
397
- : isSet(object.page_token)
398
- ? globalThis.String(object.page_token)
399
- : "",
400
- };
401
- },
402
- toJSON(message) {
403
- const obj = {};
404
- if (message.organizationId !== "") {
405
- obj.organizationId = message.organizationId;
406
- }
407
- if (message.projectId !== "") {
408
- obj.projectId = message.projectId;
409
- }
410
- if (message.pageSize !== 0) {
411
- obj.pageSize = Math.round(message.pageSize);
412
- }
413
- if (message.pageToken !== "") {
414
- obj.pageToken = message.pageToken;
415
- }
416
- return obj;
417
- },
418
- create(base) {
419
- return exports.ListSessionsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
420
- },
421
- fromPartial(object) {
422
- var _a, _b, _c, _d;
423
- const message = createBaseListSessionsRequest();
424
- message.organizationId = (_a = object.organizationId) !== null && _a !== void 0 ? _a : "";
425
- message.projectId = (_b = object.projectId) !== null && _b !== void 0 ? _b : "";
426
- message.pageSize = (_c = object.pageSize) !== null && _c !== void 0 ? _c : 0;
427
- message.pageToken = (_d = object.pageToken) !== null && _d !== void 0 ? _d : "";
428
- return message;
429
- },
430
- };
431
- function createBaseListSessionsResponse() {
432
- return { sessions: [], nextPageToken: "" };
433
- }
434
- exports.ListSessionsResponse = {
435
- encode(message, writer = new wire_1.BinaryWriter()) {
436
- for (const v of message.sessions) {
437
- chat_pb_1.ChatSession.encode(v, writer.uint32(10).fork()).join();
438
- }
439
- if (message.nextPageToken !== "") {
440
- writer.uint32(18).string(message.nextPageToken);
441
- }
442
- return writer;
443
- },
444
- decode(input, length) {
445
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
446
- const end = length === undefined ? reader.len : reader.pos + length;
447
- const message = createBaseListSessionsResponse();
448
- while (reader.pos < end) {
449
- const tag = reader.uint32();
450
- switch (tag >>> 3) {
451
- case 1: {
452
- if (tag !== 10) {
453
- break;
454
- }
455
- message.sessions.push(chat_pb_1.ChatSession.decode(reader, reader.uint32()));
456
- continue;
457
- }
458
- case 2: {
459
- if (tag !== 18) {
460
- break;
461
- }
462
- message.nextPageToken = reader.string();
463
- continue;
464
- }
465
- }
466
- if ((tag & 7) === 4 || tag === 0) {
467
- break;
468
- }
469
- reader.skip(tag & 7);
470
- }
471
- return message;
472
- },
473
- fromJSON(object) {
474
- return {
475
- sessions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.sessions)
476
- ? object.sessions.map((e) => chat_pb_1.ChatSession.fromJSON(e))
477
- : [],
478
- nextPageToken: isSet(object.nextPageToken)
479
- ? globalThis.String(object.nextPageToken)
480
- : isSet(object.next_page_token)
481
- ? globalThis.String(object.next_page_token)
482
- : "",
483
- };
484
- },
485
- toJSON(message) {
486
- var _a;
487
- const obj = {};
488
- if ((_a = message.sessions) === null || _a === void 0 ? void 0 : _a.length) {
489
- obj.sessions = message.sessions.map((e) => chat_pb_1.ChatSession.toJSON(e));
490
- }
491
- if (message.nextPageToken !== "") {
492
- obj.nextPageToken = message.nextPageToken;
493
- }
494
- return obj;
495
- },
496
- create(base) {
497
- return exports.ListSessionsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
498
- },
499
- fromPartial(object) {
500
- var _a;
501
- var _b;
502
- const message = createBaseListSessionsResponse();
503
- message.sessions = ((_a = object.sessions) === null || _a === void 0 ? void 0 : _a.map((e) => chat_pb_1.ChatSession.fromPartial(e))) || [];
504
- message.nextPageToken = (_b = object.nextPageToken) !== null && _b !== void 0 ? _b : "";
505
- return message;
506
- },
507
- };
508
- function createBaseUpdateSessionRequest() {
509
- return {
510
- sessionId: "",
511
- modelId: "",
512
- providerConfigurationId: "",
513
- title: "",
514
- attachedProjectIds: [],
515
- updateModel: false,
516
- updateTitle: false,
517
- updateAttachedProjects: false,
518
- };
519
- }
520
- exports.UpdateSessionRequest = {
521
- encode(message, writer = new wire_1.BinaryWriter()) {
522
- if (message.sessionId !== "") {
523
- writer.uint32(10).string(message.sessionId);
524
- }
525
- if (message.modelId !== "") {
526
- writer.uint32(18).string(message.modelId);
527
- }
528
- if (message.providerConfigurationId !== "") {
529
- writer.uint32(26).string(message.providerConfigurationId);
530
- }
531
- if (message.title !== "") {
532
- writer.uint32(34).string(message.title);
533
- }
534
- for (const v of message.attachedProjectIds) {
535
- writer.uint32(42).string(v);
536
- }
537
- if (message.updateModel !== false) {
538
- writer.uint32(48).bool(message.updateModel);
539
- }
540
- if (message.updateTitle !== false) {
541
- writer.uint32(56).bool(message.updateTitle);
542
- }
543
- if (message.updateAttachedProjects !== false) {
544
- writer.uint32(64).bool(message.updateAttachedProjects);
545
- }
546
- return writer;
547
- },
548
- decode(input, length) {
549
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
550
- const end = length === undefined ? reader.len : reader.pos + length;
551
- const message = createBaseUpdateSessionRequest();
552
- while (reader.pos < end) {
553
- const tag = reader.uint32();
554
- switch (tag >>> 3) {
555
- case 1: {
556
- if (tag !== 10) {
557
- break;
558
- }
559
- message.sessionId = reader.string();
560
- continue;
561
- }
562
- case 2: {
563
- if (tag !== 18) {
564
- break;
565
- }
566
- message.modelId = reader.string();
567
- continue;
568
- }
569
- case 3: {
570
- if (tag !== 26) {
571
- break;
572
- }
573
- message.providerConfigurationId = reader.string();
574
- continue;
575
- }
576
- case 4: {
577
- if (tag !== 34) {
578
- break;
579
- }
580
- message.title = reader.string();
581
- continue;
582
- }
583
- case 5: {
584
- if (tag !== 42) {
585
- break;
586
- }
587
- message.attachedProjectIds.push(reader.string());
588
- continue;
589
- }
590
- case 6: {
591
- if (tag !== 48) {
592
- break;
593
- }
594
- message.updateModel = reader.bool();
595
- continue;
596
- }
597
- case 7: {
598
- if (tag !== 56) {
599
- break;
600
- }
601
- message.updateTitle = reader.bool();
602
- continue;
603
- }
604
- case 8: {
605
- if (tag !== 64) {
606
- break;
607
- }
608
- message.updateAttachedProjects = reader.bool();
609
- continue;
610
- }
611
- }
612
- if ((tag & 7) === 4 || tag === 0) {
613
- break;
614
- }
615
- reader.skip(tag & 7);
616
- }
617
- return message;
618
- },
619
- fromJSON(object) {
620
- return {
621
- sessionId: isSet(object.sessionId)
622
- ? globalThis.String(object.sessionId)
623
- : isSet(object.session_id)
624
- ? globalThis.String(object.session_id)
625
- : "",
626
- modelId: isSet(object.modelId)
627
- ? globalThis.String(object.modelId)
628
- : isSet(object.model_id)
629
- ? globalThis.String(object.model_id)
630
- : "",
631
- providerConfigurationId: isSet(object.providerConfigurationId)
632
- ? globalThis.String(object.providerConfigurationId)
633
- : isSet(object.provider_configuration_id)
634
- ? globalThis.String(object.provider_configuration_id)
635
- : "",
636
- title: isSet(object.title) ? globalThis.String(object.title) : "",
637
- attachedProjectIds: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.attachedProjectIds)
638
- ? object.attachedProjectIds.map((e) => globalThis.String(e))
639
- : globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.attached_project_ids)
640
- ? object.attached_project_ids.map((e) => globalThis.String(e))
641
- : [],
642
- updateModel: isSet(object.updateModel)
643
- ? globalThis.Boolean(object.updateModel)
644
- : isSet(object.update_model)
645
- ? globalThis.Boolean(object.update_model)
646
- : false,
647
- updateTitle: isSet(object.updateTitle)
648
- ? globalThis.Boolean(object.updateTitle)
649
- : isSet(object.update_title)
650
- ? globalThis.Boolean(object.update_title)
651
- : false,
652
- updateAttachedProjects: isSet(object.updateAttachedProjects)
653
- ? globalThis.Boolean(object.updateAttachedProjects)
654
- : isSet(object.update_attached_projects)
655
- ? globalThis.Boolean(object.update_attached_projects)
656
- : false,
657
- };
658
- },
659
- toJSON(message) {
660
- var _a;
661
- const obj = {};
662
- if (message.sessionId !== "") {
663
- obj.sessionId = message.sessionId;
664
- }
665
- if (message.modelId !== "") {
666
- obj.modelId = message.modelId;
667
- }
668
- if (message.providerConfigurationId !== "") {
669
- obj.providerConfigurationId = message.providerConfigurationId;
670
- }
671
- if (message.title !== "") {
672
- obj.title = message.title;
673
- }
674
- if ((_a = message.attachedProjectIds) === null || _a === void 0 ? void 0 : _a.length) {
675
- obj.attachedProjectIds = message.attachedProjectIds;
676
- }
677
- if (message.updateModel !== false) {
678
- obj.updateModel = message.updateModel;
679
- }
680
- if (message.updateTitle !== false) {
681
- obj.updateTitle = message.updateTitle;
682
- }
683
- if (message.updateAttachedProjects !== false) {
684
- obj.updateAttachedProjects = message.updateAttachedProjects;
685
- }
686
- return obj;
687
- },
688
- create(base) {
689
- return exports.UpdateSessionRequest.fromPartial(base !== null && base !== void 0 ? base : {});
690
- },
691
- fromPartial(object) {
692
- var _a;
693
- var _b, _c, _d, _e, _f, _g, _h;
694
- const message = createBaseUpdateSessionRequest();
695
- message.sessionId = (_b = object.sessionId) !== null && _b !== void 0 ? _b : "";
696
- message.modelId = (_c = object.modelId) !== null && _c !== void 0 ? _c : "";
697
- message.providerConfigurationId = (_d = object.providerConfigurationId) !== null && _d !== void 0 ? _d : "";
698
- message.title = (_e = object.title) !== null && _e !== void 0 ? _e : "";
699
- message.attachedProjectIds = ((_a = object.attachedProjectIds) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
700
- message.updateModel = (_f = object.updateModel) !== null && _f !== void 0 ? _f : false;
701
- message.updateTitle = (_g = object.updateTitle) !== null && _g !== void 0 ? _g : false;
702
- message.updateAttachedProjects = (_h = object.updateAttachedProjects) !== null && _h !== void 0 ? _h : false;
703
- return message;
704
- },
705
- };
706
- function createBaseUpdateSessionResponse() {
707
- return { session: undefined };
708
- }
709
- exports.UpdateSessionResponse = {
710
- encode(message, writer = new wire_1.BinaryWriter()) {
711
- if (message.session !== undefined) {
712
- chat_pb_1.ChatSession.encode(message.session, writer.uint32(10).fork()).join();
713
- }
714
- return writer;
715
- },
716
- decode(input, length) {
717
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
718
- const end = length === undefined ? reader.len : reader.pos + length;
719
- const message = createBaseUpdateSessionResponse();
720
- while (reader.pos < end) {
721
- const tag = reader.uint32();
722
- switch (tag >>> 3) {
723
- case 1: {
724
- if (tag !== 10) {
725
- break;
726
- }
727
- message.session = chat_pb_1.ChatSession.decode(reader, reader.uint32());
728
- continue;
729
- }
730
- }
731
- if ((tag & 7) === 4 || tag === 0) {
732
- break;
733
- }
734
- reader.skip(tag & 7);
735
- }
736
- return message;
737
- },
738
- fromJSON(object) {
739
- return { session: isSet(object.session) ? chat_pb_1.ChatSession.fromJSON(object.session) : undefined };
740
- },
741
- toJSON(message) {
742
- const obj = {};
743
- if (message.session !== undefined) {
744
- obj.session = chat_pb_1.ChatSession.toJSON(message.session);
745
- }
746
- return obj;
747
- },
748
- create(base) {
749
- return exports.UpdateSessionResponse.fromPartial(base !== null && base !== void 0 ? base : {});
750
- },
751
- fromPartial(object) {
752
- const message = createBaseUpdateSessionResponse();
753
- message.session = (object.session !== undefined && object.session !== null)
754
- ? chat_pb_1.ChatSession.fromPartial(object.session)
755
- : undefined;
756
- return message;
757
- },
758
- };
759
- function createBaseDeleteSessionRequest() {
760
- return { sessionId: "" };
761
- }
762
- exports.DeleteSessionRequest = {
763
- encode(message, writer = new wire_1.BinaryWriter()) {
764
- if (message.sessionId !== "") {
765
- writer.uint32(10).string(message.sessionId);
766
- }
767
- return writer;
768
- },
769
- decode(input, length) {
770
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
771
- const end = length === undefined ? reader.len : reader.pos + length;
772
- const message = createBaseDeleteSessionRequest();
773
- while (reader.pos < end) {
774
- const tag = reader.uint32();
775
- switch (tag >>> 3) {
776
- case 1: {
777
- if (tag !== 10) {
778
- break;
779
- }
780
- message.sessionId = reader.string();
781
- continue;
782
- }
783
- }
784
- if ((tag & 7) === 4 || tag === 0) {
785
- break;
786
- }
787
- reader.skip(tag & 7);
788
- }
789
- return message;
790
- },
791
- fromJSON(object) {
792
- return {
793
- sessionId: isSet(object.sessionId)
794
- ? globalThis.String(object.sessionId)
795
- : isSet(object.session_id)
796
- ? globalThis.String(object.session_id)
797
- : "",
798
- };
799
- },
800
- toJSON(message) {
801
- const obj = {};
802
- if (message.sessionId !== "") {
803
- obj.sessionId = message.sessionId;
804
- }
805
- return obj;
806
- },
807
- create(base) {
808
- return exports.DeleteSessionRequest.fromPartial(base !== null && base !== void 0 ? base : {});
809
- },
810
- fromPartial(object) {
811
- var _a;
812
- const message = createBaseDeleteSessionRequest();
813
- message.sessionId = (_a = object.sessionId) !== null && _a !== void 0 ? _a : "";
814
- return message;
815
- },
816
- };
817
- function createBaseDeleteSessionResponse() {
818
- return {};
819
- }
820
- exports.DeleteSessionResponse = {
821
- encode(_, writer = new wire_1.BinaryWriter()) {
822
- return writer;
823
- },
824
- decode(input, length) {
825
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
826
- const end = length === undefined ? reader.len : reader.pos + length;
827
- const message = createBaseDeleteSessionResponse();
828
- while (reader.pos < end) {
829
- const tag = reader.uint32();
830
- switch (tag >>> 3) {
831
- }
832
- if ((tag & 7) === 4 || tag === 0) {
833
- break;
834
- }
835
- reader.skip(tag & 7);
836
- }
837
- return message;
838
- },
839
- fromJSON(_) {
840
- return {};
841
- },
842
- toJSON(_) {
843
- const obj = {};
844
- return obj;
845
- },
846
- create(base) {
847
- return exports.DeleteSessionResponse.fromPartial(base !== null && base !== void 0 ? base : {});
848
- },
849
- fromPartial(_) {
850
- const message = createBaseDeleteSessionResponse();
851
- return message;
852
- },
853
- };
854
- function createBasePostMessageRequest() {
855
- return { sessionId: "", content: "", modelId: "", providerConfigurationId: "", attachments: [] };
856
- }
857
- exports.PostMessageRequest = {
858
- encode(message, writer = new wire_1.BinaryWriter()) {
859
- if (message.sessionId !== "") {
860
- writer.uint32(10).string(message.sessionId);
861
- }
862
- if (message.content !== "") {
863
- writer.uint32(18).string(message.content);
864
- }
865
- if (message.modelId !== "") {
866
- writer.uint32(26).string(message.modelId);
867
- }
868
- if (message.providerConfigurationId !== "") {
869
- writer.uint32(34).string(message.providerConfigurationId);
870
- }
871
- for (const v of message.attachments) {
872
- chat_pb_1.ChatEphemeralAttachment.encode(v, writer.uint32(42).fork()).join();
873
- }
874
- return writer;
875
- },
876
- decode(input, length) {
877
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
878
- const end = length === undefined ? reader.len : reader.pos + length;
879
- const message = createBasePostMessageRequest();
880
- while (reader.pos < end) {
881
- const tag = reader.uint32();
882
- switch (tag >>> 3) {
883
- case 1: {
884
- if (tag !== 10) {
885
- break;
886
- }
887
- message.sessionId = reader.string();
888
- continue;
889
- }
890
- case 2: {
891
- if (tag !== 18) {
892
- break;
893
- }
894
- message.content = reader.string();
895
- continue;
896
- }
897
- case 3: {
898
- if (tag !== 26) {
899
- break;
900
- }
901
- message.modelId = reader.string();
902
- continue;
903
- }
904
- case 4: {
905
- if (tag !== 34) {
906
- break;
907
- }
908
- message.providerConfigurationId = reader.string();
909
- continue;
910
- }
911
- case 5: {
912
- if (tag !== 42) {
913
- break;
914
- }
915
- message.attachments.push(chat_pb_1.ChatEphemeralAttachment.decode(reader, reader.uint32()));
916
- continue;
917
- }
918
- }
919
- if ((tag & 7) === 4 || tag === 0) {
920
- break;
921
- }
922
- reader.skip(tag & 7);
923
- }
924
- return message;
925
- },
926
- fromJSON(object) {
927
- return {
928
- sessionId: isSet(object.sessionId)
929
- ? globalThis.String(object.sessionId)
930
- : isSet(object.session_id)
931
- ? globalThis.String(object.session_id)
932
- : "",
933
- content: isSet(object.content) ? globalThis.String(object.content) : "",
934
- modelId: isSet(object.modelId)
935
- ? globalThis.String(object.modelId)
936
- : isSet(object.model_id)
937
- ? globalThis.String(object.model_id)
938
- : "",
939
- providerConfigurationId: isSet(object.providerConfigurationId)
940
- ? globalThis.String(object.providerConfigurationId)
941
- : isSet(object.provider_configuration_id)
942
- ? globalThis.String(object.provider_configuration_id)
943
- : "",
944
- attachments: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.attachments)
945
- ? object.attachments.map((e) => chat_pb_1.ChatEphemeralAttachment.fromJSON(e))
946
- : [],
947
- };
948
- },
949
- toJSON(message) {
950
- var _a;
951
- const obj = {};
952
- if (message.sessionId !== "") {
953
- obj.sessionId = message.sessionId;
954
- }
955
- if (message.content !== "") {
956
- obj.content = message.content;
957
- }
958
- if (message.modelId !== "") {
959
- obj.modelId = message.modelId;
960
- }
961
- if (message.providerConfigurationId !== "") {
962
- obj.providerConfigurationId = message.providerConfigurationId;
963
- }
964
- if ((_a = message.attachments) === null || _a === void 0 ? void 0 : _a.length) {
965
- obj.attachments = message.attachments.map((e) => chat_pb_1.ChatEphemeralAttachment.toJSON(e));
966
- }
967
- return obj;
968
- },
969
- create(base) {
970
- return exports.PostMessageRequest.fromPartial(base !== null && base !== void 0 ? base : {});
971
- },
972
- fromPartial(object) {
973
- var _a;
974
- var _b, _c, _d, _e;
975
- const message = createBasePostMessageRequest();
976
- message.sessionId = (_b = object.sessionId) !== null && _b !== void 0 ? _b : "";
977
- message.content = (_c = object.content) !== null && _c !== void 0 ? _c : "";
978
- message.modelId = (_d = object.modelId) !== null && _d !== void 0 ? _d : "";
979
- message.providerConfigurationId = (_e = object.providerConfigurationId) !== null && _e !== void 0 ? _e : "";
980
- message.attachments = ((_a = object.attachments) === null || _a === void 0 ? void 0 : _a.map((e) => chat_pb_1.ChatEphemeralAttachment.fromPartial(e))) || [];
981
- return message;
982
- },
983
- };
984
- function createBasePostMessageResponse() {
985
- return { frame: undefined };
986
- }
987
- exports.PostMessageResponse = {
988
- encode(message, writer = new wire_1.BinaryWriter()) {
989
- if (message.frame !== undefined) {
990
- chat_pb_1.ChatStreamFrame.encode(message.frame, writer.uint32(10).fork()).join();
991
- }
992
- return writer;
993
- },
994
- decode(input, length) {
995
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
996
- const end = length === undefined ? reader.len : reader.pos + length;
997
- const message = createBasePostMessageResponse();
998
- while (reader.pos < end) {
999
- const tag = reader.uint32();
1000
- switch (tag >>> 3) {
1001
- case 1: {
1002
- if (tag !== 10) {
1003
- break;
1004
- }
1005
- message.frame = chat_pb_1.ChatStreamFrame.decode(reader, reader.uint32());
1006
- continue;
1007
- }
1008
- }
1009
- if ((tag & 7) === 4 || tag === 0) {
1010
- break;
1011
- }
1012
- reader.skip(tag & 7);
1013
- }
1014
- return message;
1015
- },
1016
- fromJSON(object) {
1017
- return { frame: isSet(object.frame) ? chat_pb_1.ChatStreamFrame.fromJSON(object.frame) : undefined };
1018
- },
1019
- toJSON(message) {
1020
- const obj = {};
1021
- if (message.frame !== undefined) {
1022
- obj.frame = chat_pb_1.ChatStreamFrame.toJSON(message.frame);
1023
- }
1024
- return obj;
1025
- },
1026
- create(base) {
1027
- return exports.PostMessageResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1028
- },
1029
- fromPartial(object) {
1030
- const message = createBasePostMessageResponse();
1031
- message.frame = (object.frame !== undefined && object.frame !== null)
1032
- ? chat_pb_1.ChatStreamFrame.fromPartial(object.frame)
1033
- : undefined;
1034
- return message;
1035
- },
1036
- };
1037
- function createBaseAttachStreamRequest() {
1038
- return { sessionId: "", lastSeenEventId: "" };
1039
- }
1040
- exports.AttachStreamRequest = {
1041
- encode(message, writer = new wire_1.BinaryWriter()) {
1042
- if (message.sessionId !== "") {
1043
- writer.uint32(10).string(message.sessionId);
1044
- }
1045
- if (message.lastSeenEventId !== "") {
1046
- writer.uint32(18).string(message.lastSeenEventId);
1047
- }
1048
- return writer;
1049
- },
1050
- decode(input, length) {
1051
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1052
- const end = length === undefined ? reader.len : reader.pos + length;
1053
- const message = createBaseAttachStreamRequest();
1054
- while (reader.pos < end) {
1055
- const tag = reader.uint32();
1056
- switch (tag >>> 3) {
1057
- case 1: {
1058
- if (tag !== 10) {
1059
- break;
1060
- }
1061
- message.sessionId = reader.string();
1062
- continue;
1063
- }
1064
- case 2: {
1065
- if (tag !== 18) {
1066
- break;
1067
- }
1068
- message.lastSeenEventId = reader.string();
1069
- continue;
1070
- }
1071
- }
1072
- if ((tag & 7) === 4 || tag === 0) {
1073
- break;
1074
- }
1075
- reader.skip(tag & 7);
1076
- }
1077
- return message;
1078
- },
1079
- fromJSON(object) {
1080
- return {
1081
- sessionId: isSet(object.sessionId)
1082
- ? globalThis.String(object.sessionId)
1083
- : isSet(object.session_id)
1084
- ? globalThis.String(object.session_id)
1085
- : "",
1086
- lastSeenEventId: isSet(object.lastSeenEventId)
1087
- ? globalThis.String(object.lastSeenEventId)
1088
- : isSet(object.last_seen_event_id)
1089
- ? globalThis.String(object.last_seen_event_id)
1090
- : "",
1091
- };
1092
- },
1093
- toJSON(message) {
1094
- const obj = {};
1095
- if (message.sessionId !== "") {
1096
- obj.sessionId = message.sessionId;
1097
- }
1098
- if (message.lastSeenEventId !== "") {
1099
- obj.lastSeenEventId = message.lastSeenEventId;
1100
- }
1101
- return obj;
1102
- },
1103
- create(base) {
1104
- return exports.AttachStreamRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1105
- },
1106
- fromPartial(object) {
1107
- var _a, _b;
1108
- const message = createBaseAttachStreamRequest();
1109
- message.sessionId = (_a = object.sessionId) !== null && _a !== void 0 ? _a : "";
1110
- message.lastSeenEventId = (_b = object.lastSeenEventId) !== null && _b !== void 0 ? _b : "";
1111
- return message;
1112
- },
1113
- };
1114
- function createBaseAttachStreamResponse() {
1115
- return { frame: undefined };
1116
- }
1117
- exports.AttachStreamResponse = {
1118
- encode(message, writer = new wire_1.BinaryWriter()) {
1119
- if (message.frame !== undefined) {
1120
- chat_pb_1.ChatStreamFrame.encode(message.frame, writer.uint32(10).fork()).join();
1121
- }
1122
- return writer;
1123
- },
1124
- decode(input, length) {
1125
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1126
- const end = length === undefined ? reader.len : reader.pos + length;
1127
- const message = createBaseAttachStreamResponse();
1128
- while (reader.pos < end) {
1129
- const tag = reader.uint32();
1130
- switch (tag >>> 3) {
1131
- case 1: {
1132
- if (tag !== 10) {
1133
- break;
1134
- }
1135
- message.frame = chat_pb_1.ChatStreamFrame.decode(reader, reader.uint32());
1136
- continue;
1137
- }
1138
- }
1139
- if ((tag & 7) === 4 || tag === 0) {
1140
- break;
1141
- }
1142
- reader.skip(tag & 7);
1143
- }
1144
- return message;
1145
- },
1146
- fromJSON(object) {
1147
- return { frame: isSet(object.frame) ? chat_pb_1.ChatStreamFrame.fromJSON(object.frame) : undefined };
1148
- },
1149
- toJSON(message) {
1150
- const obj = {};
1151
- if (message.frame !== undefined) {
1152
- obj.frame = chat_pb_1.ChatStreamFrame.toJSON(message.frame);
1153
- }
1154
- return obj;
1155
- },
1156
- create(base) {
1157
- return exports.AttachStreamResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1158
- },
1159
- fromPartial(object) {
1160
- const message = createBaseAttachStreamResponse();
1161
- message.frame = (object.frame !== undefined && object.frame !== null)
1162
- ? chat_pb_1.ChatStreamFrame.fromPartial(object.frame)
1163
- : undefined;
1164
- return message;
1165
- },
1166
- };
1167
- function createBaseApproveToolCallRequest() {
1168
- return { sessionId: "", toolCallId: "" };
1169
- }
1170
- exports.ApproveToolCallRequest = {
1171
- encode(message, writer = new wire_1.BinaryWriter()) {
1172
- if (message.sessionId !== "") {
1173
- writer.uint32(10).string(message.sessionId);
1174
- }
1175
- if (message.toolCallId !== "") {
1176
- writer.uint32(18).string(message.toolCallId);
1177
- }
1178
- return writer;
1179
- },
1180
- decode(input, length) {
1181
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1182
- const end = length === undefined ? reader.len : reader.pos + length;
1183
- const message = createBaseApproveToolCallRequest();
1184
- while (reader.pos < end) {
1185
- const tag = reader.uint32();
1186
- switch (tag >>> 3) {
1187
- case 1: {
1188
- if (tag !== 10) {
1189
- break;
1190
- }
1191
- message.sessionId = reader.string();
1192
- continue;
1193
- }
1194
- case 2: {
1195
- if (tag !== 18) {
1196
- break;
1197
- }
1198
- message.toolCallId = reader.string();
1199
- continue;
1200
- }
1201
- }
1202
- if ((tag & 7) === 4 || tag === 0) {
1203
- break;
1204
- }
1205
- reader.skip(tag & 7);
1206
- }
1207
- return message;
1208
- },
1209
- fromJSON(object) {
1210
- return {
1211
- sessionId: isSet(object.sessionId)
1212
- ? globalThis.String(object.sessionId)
1213
- : isSet(object.session_id)
1214
- ? globalThis.String(object.session_id)
1215
- : "",
1216
- toolCallId: isSet(object.toolCallId)
1217
- ? globalThis.String(object.toolCallId)
1218
- : isSet(object.tool_call_id)
1219
- ? globalThis.String(object.tool_call_id)
1220
- : "",
1221
- };
1222
- },
1223
- toJSON(message) {
1224
- const obj = {};
1225
- if (message.sessionId !== "") {
1226
- obj.sessionId = message.sessionId;
1227
- }
1228
- if (message.toolCallId !== "") {
1229
- obj.toolCallId = message.toolCallId;
1230
- }
1231
- return obj;
1232
- },
1233
- create(base) {
1234
- return exports.ApproveToolCallRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1235
- },
1236
- fromPartial(object) {
1237
- var _a, _b;
1238
- const message = createBaseApproveToolCallRequest();
1239
- message.sessionId = (_a = object.sessionId) !== null && _a !== void 0 ? _a : "";
1240
- message.toolCallId = (_b = object.toolCallId) !== null && _b !== void 0 ? _b : "";
1241
- return message;
1242
- },
1243
- };
1244
- function createBaseApproveToolCallResponse() {
1245
- return {};
1246
- }
1247
- exports.ApproveToolCallResponse = {
1248
- encode(_, writer = new wire_1.BinaryWriter()) {
1249
- return writer;
1250
- },
1251
- decode(input, length) {
1252
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1253
- const end = length === undefined ? reader.len : reader.pos + length;
1254
- const message = createBaseApproveToolCallResponse();
1255
- while (reader.pos < end) {
1256
- const tag = reader.uint32();
1257
- switch (tag >>> 3) {
1258
- }
1259
- if ((tag & 7) === 4 || tag === 0) {
1260
- break;
1261
- }
1262
- reader.skip(tag & 7);
1263
- }
1264
- return message;
1265
- },
1266
- fromJSON(_) {
1267
- return {};
1268
- },
1269
- toJSON(_) {
1270
- const obj = {};
1271
- return obj;
1272
- },
1273
- create(base) {
1274
- return exports.ApproveToolCallResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1275
- },
1276
- fromPartial(_) {
1277
- const message = createBaseApproveToolCallResponse();
1278
- return message;
1279
- },
1280
- };
1281
- function createBaseRejectToolCallRequest() {
1282
- return { sessionId: "", toolCallId: "", reason: "" };
1283
- }
1284
- exports.RejectToolCallRequest = {
1285
- encode(message, writer = new wire_1.BinaryWriter()) {
1286
- if (message.sessionId !== "") {
1287
- writer.uint32(10).string(message.sessionId);
1288
- }
1289
- if (message.toolCallId !== "") {
1290
- writer.uint32(18).string(message.toolCallId);
1291
- }
1292
- if (message.reason !== "") {
1293
- writer.uint32(26).string(message.reason);
1294
- }
1295
- return writer;
1296
- },
1297
- decode(input, length) {
1298
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1299
- const end = length === undefined ? reader.len : reader.pos + length;
1300
- const message = createBaseRejectToolCallRequest();
1301
- while (reader.pos < end) {
1302
- const tag = reader.uint32();
1303
- switch (tag >>> 3) {
1304
- case 1: {
1305
- if (tag !== 10) {
1306
- break;
1307
- }
1308
- message.sessionId = reader.string();
1309
- continue;
1310
- }
1311
- case 2: {
1312
- if (tag !== 18) {
1313
- break;
1314
- }
1315
- message.toolCallId = reader.string();
1316
- continue;
1317
- }
1318
- case 3: {
1319
- if (tag !== 26) {
1320
- break;
1321
- }
1322
- message.reason = reader.string();
1323
- continue;
1324
- }
1325
- }
1326
- if ((tag & 7) === 4 || tag === 0) {
1327
- break;
1328
- }
1329
- reader.skip(tag & 7);
1330
- }
1331
- return message;
1332
- },
1333
- fromJSON(object) {
1334
- return {
1335
- sessionId: isSet(object.sessionId)
1336
- ? globalThis.String(object.sessionId)
1337
- : isSet(object.session_id)
1338
- ? globalThis.String(object.session_id)
1339
- : "",
1340
- toolCallId: isSet(object.toolCallId)
1341
- ? globalThis.String(object.toolCallId)
1342
- : isSet(object.tool_call_id)
1343
- ? globalThis.String(object.tool_call_id)
1344
- : "",
1345
- reason: isSet(object.reason) ? globalThis.String(object.reason) : "",
1346
- };
1347
- },
1348
- toJSON(message) {
1349
- const obj = {};
1350
- if (message.sessionId !== "") {
1351
- obj.sessionId = message.sessionId;
1352
- }
1353
- if (message.toolCallId !== "") {
1354
- obj.toolCallId = message.toolCallId;
1355
- }
1356
- if (message.reason !== "") {
1357
- obj.reason = message.reason;
1358
- }
1359
- return obj;
1360
- },
1361
- create(base) {
1362
- return exports.RejectToolCallRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1363
- },
1364
- fromPartial(object) {
1365
- var _a, _b, _c;
1366
- const message = createBaseRejectToolCallRequest();
1367
- message.sessionId = (_a = object.sessionId) !== null && _a !== void 0 ? _a : "";
1368
- message.toolCallId = (_b = object.toolCallId) !== null && _b !== void 0 ? _b : "";
1369
- message.reason = (_c = object.reason) !== null && _c !== void 0 ? _c : "";
1370
- return message;
1371
- },
1372
- };
1373
- function createBaseRejectToolCallResponse() {
1374
- return {};
1375
- }
1376
- exports.RejectToolCallResponse = {
1377
- encode(_, writer = new wire_1.BinaryWriter()) {
1378
- return writer;
1379
- },
1380
- decode(input, length) {
1381
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1382
- const end = length === undefined ? reader.len : reader.pos + length;
1383
- const message = createBaseRejectToolCallResponse();
1384
- while (reader.pos < end) {
1385
- const tag = reader.uint32();
1386
- switch (tag >>> 3) {
1387
- }
1388
- if ((tag & 7) === 4 || tag === 0) {
1389
- break;
1390
- }
1391
- reader.skip(tag & 7);
1392
- }
1393
- return message;
1394
- },
1395
- fromJSON(_) {
1396
- return {};
1397
- },
1398
- toJSON(_) {
1399
- const obj = {};
1400
- return obj;
1401
- },
1402
- create(base) {
1403
- return exports.RejectToolCallResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1404
- },
1405
- fromPartial(_) {
1406
- const message = createBaseRejectToolCallResponse();
1407
- return message;
1408
- },
1409
- };
1410
- function createBaseListArtifactsRequest() {
1411
- return { sessionId: "" };
1412
- }
1413
- exports.ListArtifactsRequest = {
1414
- encode(message, writer = new wire_1.BinaryWriter()) {
1415
- if (message.sessionId !== "") {
1416
- writer.uint32(10).string(message.sessionId);
1417
- }
1418
- return writer;
1419
- },
1420
- decode(input, length) {
1421
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1422
- const end = length === undefined ? reader.len : reader.pos + length;
1423
- const message = createBaseListArtifactsRequest();
1424
- while (reader.pos < end) {
1425
- const tag = reader.uint32();
1426
- switch (tag >>> 3) {
1427
- case 1: {
1428
- if (tag !== 10) {
1429
- break;
1430
- }
1431
- message.sessionId = reader.string();
1432
- continue;
1433
- }
1434
- }
1435
- if ((tag & 7) === 4 || tag === 0) {
1436
- break;
1437
- }
1438
- reader.skip(tag & 7);
1439
- }
1440
- return message;
1441
- },
1442
- fromJSON(object) {
1443
- return {
1444
- sessionId: isSet(object.sessionId)
1445
- ? globalThis.String(object.sessionId)
1446
- : isSet(object.session_id)
1447
- ? globalThis.String(object.session_id)
1448
- : "",
1449
- };
1450
- },
1451
- toJSON(message) {
1452
- const obj = {};
1453
- if (message.sessionId !== "") {
1454
- obj.sessionId = message.sessionId;
1455
- }
1456
- return obj;
1457
- },
1458
- create(base) {
1459
- return exports.ListArtifactsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1460
- },
1461
- fromPartial(object) {
1462
- var _a;
1463
- const message = createBaseListArtifactsRequest();
1464
- message.sessionId = (_a = object.sessionId) !== null && _a !== void 0 ? _a : "";
1465
- return message;
1466
- },
1467
- };
1468
- function createBaseListArtifactsResponse() {
1469
- return { artifacts: [] };
1470
- }
1471
- exports.ListArtifactsResponse = {
1472
- encode(message, writer = new wire_1.BinaryWriter()) {
1473
- for (const v of message.artifacts) {
1474
- chat_pb_1.ChatArtifact.encode(v, writer.uint32(10).fork()).join();
1475
- }
1476
- return writer;
1477
- },
1478
- decode(input, length) {
1479
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1480
- const end = length === undefined ? reader.len : reader.pos + length;
1481
- const message = createBaseListArtifactsResponse();
1482
- while (reader.pos < end) {
1483
- const tag = reader.uint32();
1484
- switch (tag >>> 3) {
1485
- case 1: {
1486
- if (tag !== 10) {
1487
- break;
1488
- }
1489
- message.artifacts.push(chat_pb_1.ChatArtifact.decode(reader, reader.uint32()));
1490
- continue;
1491
- }
1492
- }
1493
- if ((tag & 7) === 4 || tag === 0) {
1494
- break;
1495
- }
1496
- reader.skip(tag & 7);
1497
- }
1498
- return message;
1499
- },
1500
- fromJSON(object) {
1501
- return {
1502
- artifacts: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.artifacts)
1503
- ? object.artifacts.map((e) => chat_pb_1.ChatArtifact.fromJSON(e))
1504
- : [],
1505
- };
1506
- },
1507
- toJSON(message) {
1508
- var _a;
1509
- const obj = {};
1510
- if ((_a = message.artifacts) === null || _a === void 0 ? void 0 : _a.length) {
1511
- obj.artifacts = message.artifacts.map((e) => chat_pb_1.ChatArtifact.toJSON(e));
1512
- }
1513
- return obj;
1514
- },
1515
- create(base) {
1516
- return exports.ListArtifactsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1517
- },
1518
- fromPartial(object) {
1519
- var _a;
1520
- const message = createBaseListArtifactsResponse();
1521
- message.artifacts = ((_a = object.artifacts) === null || _a === void 0 ? void 0 : _a.map((e) => chat_pb_1.ChatArtifact.fromPartial(e))) || [];
1522
- return message;
1523
- },
1524
- };
1525
- function createBaseGetArtifactRequest() {
1526
- return { sessionId: "", artifactId: "" };
1527
- }
1528
- exports.GetArtifactRequest = {
1529
- encode(message, writer = new wire_1.BinaryWriter()) {
1530
- if (message.sessionId !== "") {
1531
- writer.uint32(10).string(message.sessionId);
1532
- }
1533
- if (message.artifactId !== "") {
1534
- writer.uint32(18).string(message.artifactId);
1535
- }
1536
- return writer;
1537
- },
1538
- decode(input, length) {
1539
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1540
- const end = length === undefined ? reader.len : reader.pos + length;
1541
- const message = createBaseGetArtifactRequest();
1542
- while (reader.pos < end) {
1543
- const tag = reader.uint32();
1544
- switch (tag >>> 3) {
1545
- case 1: {
1546
- if (tag !== 10) {
1547
- break;
1548
- }
1549
- message.sessionId = reader.string();
1550
- continue;
1551
- }
1552
- case 2: {
1553
- if (tag !== 18) {
1554
- break;
1555
- }
1556
- message.artifactId = reader.string();
1557
- continue;
1558
- }
1559
- }
1560
- if ((tag & 7) === 4 || tag === 0) {
1561
- break;
1562
- }
1563
- reader.skip(tag & 7);
1564
- }
1565
- return message;
1566
- },
1567
- fromJSON(object) {
1568
- return {
1569
- sessionId: isSet(object.sessionId)
1570
- ? globalThis.String(object.sessionId)
1571
- : isSet(object.session_id)
1572
- ? globalThis.String(object.session_id)
1573
- : "",
1574
- artifactId: isSet(object.artifactId)
1575
- ? globalThis.String(object.artifactId)
1576
- : isSet(object.artifact_id)
1577
- ? globalThis.String(object.artifact_id)
1578
- : "",
1579
- };
1580
- },
1581
- toJSON(message) {
1582
- const obj = {};
1583
- if (message.sessionId !== "") {
1584
- obj.sessionId = message.sessionId;
1585
- }
1586
- if (message.artifactId !== "") {
1587
- obj.artifactId = message.artifactId;
1588
- }
1589
- return obj;
1590
- },
1591
- create(base) {
1592
- return exports.GetArtifactRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1593
- },
1594
- fromPartial(object) {
1595
- var _a, _b;
1596
- const message = createBaseGetArtifactRequest();
1597
- message.sessionId = (_a = object.sessionId) !== null && _a !== void 0 ? _a : "";
1598
- message.artifactId = (_b = object.artifactId) !== null && _b !== void 0 ? _b : "";
1599
- return message;
1600
- },
1601
- };
1602
- function createBaseGetArtifactResponse() {
1603
- return { artifact: undefined, currentVersion: undefined };
1604
- }
1605
- exports.GetArtifactResponse = {
1606
- encode(message, writer = new wire_1.BinaryWriter()) {
1607
- if (message.artifact !== undefined) {
1608
- chat_pb_1.ChatArtifact.encode(message.artifact, writer.uint32(10).fork()).join();
1609
- }
1610
- if (message.currentVersion !== undefined) {
1611
- chat_pb_1.ChatArtifactVersion.encode(message.currentVersion, writer.uint32(18).fork()).join();
1612
- }
1613
- return writer;
1614
- },
1615
- decode(input, length) {
1616
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1617
- const end = length === undefined ? reader.len : reader.pos + length;
1618
- const message = createBaseGetArtifactResponse();
1619
- while (reader.pos < end) {
1620
- const tag = reader.uint32();
1621
- switch (tag >>> 3) {
1622
- case 1: {
1623
- if (tag !== 10) {
1624
- break;
1625
- }
1626
- message.artifact = chat_pb_1.ChatArtifact.decode(reader, reader.uint32());
1627
- continue;
1628
- }
1629
- case 2: {
1630
- if (tag !== 18) {
1631
- break;
1632
- }
1633
- message.currentVersion = chat_pb_1.ChatArtifactVersion.decode(reader, reader.uint32());
1634
- continue;
1635
- }
1636
- }
1637
- if ((tag & 7) === 4 || tag === 0) {
1638
- break;
1639
- }
1640
- reader.skip(tag & 7);
1641
- }
1642
- return message;
1643
- },
1644
- fromJSON(object) {
1645
- return {
1646
- artifact: isSet(object.artifact) ? chat_pb_1.ChatArtifact.fromJSON(object.artifact) : undefined,
1647
- currentVersion: isSet(object.currentVersion)
1648
- ? chat_pb_1.ChatArtifactVersion.fromJSON(object.currentVersion)
1649
- : isSet(object.current_version)
1650
- ? chat_pb_1.ChatArtifactVersion.fromJSON(object.current_version)
1651
- : undefined,
1652
- };
1653
- },
1654
- toJSON(message) {
1655
- const obj = {};
1656
- if (message.artifact !== undefined) {
1657
- obj.artifact = chat_pb_1.ChatArtifact.toJSON(message.artifact);
1658
- }
1659
- if (message.currentVersion !== undefined) {
1660
- obj.currentVersion = chat_pb_1.ChatArtifactVersion.toJSON(message.currentVersion);
1661
- }
1662
- return obj;
1663
- },
1664
- create(base) {
1665
- return exports.GetArtifactResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1666
- },
1667
- fromPartial(object) {
1668
- const message = createBaseGetArtifactResponse();
1669
- message.artifact = (object.artifact !== undefined && object.artifact !== null)
1670
- ? chat_pb_1.ChatArtifact.fromPartial(object.artifact)
1671
- : undefined;
1672
- message.currentVersion = (object.currentVersion !== undefined && object.currentVersion !== null)
1673
- ? chat_pb_1.ChatArtifactVersion.fromPartial(object.currentVersion)
1674
- : undefined;
1675
- return message;
1676
- },
1677
- };
1678
- function createBaseGetArtifactVersionRequest() {
1679
- return { sessionId: "", artifactId: "", version: 0 };
1680
- }
1681
- exports.GetArtifactVersionRequest = {
1682
- encode(message, writer = new wire_1.BinaryWriter()) {
1683
- if (message.sessionId !== "") {
1684
- writer.uint32(10).string(message.sessionId);
1685
- }
1686
- if (message.artifactId !== "") {
1687
- writer.uint32(18).string(message.artifactId);
1688
- }
1689
- if (message.version !== 0) {
1690
- writer.uint32(24).int32(message.version);
1691
- }
1692
- return writer;
1693
- },
1694
- decode(input, length) {
1695
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1696
- const end = length === undefined ? reader.len : reader.pos + length;
1697
- const message = createBaseGetArtifactVersionRequest();
1698
- while (reader.pos < end) {
1699
- const tag = reader.uint32();
1700
- switch (tag >>> 3) {
1701
- case 1: {
1702
- if (tag !== 10) {
1703
- break;
1704
- }
1705
- message.sessionId = reader.string();
1706
- continue;
1707
- }
1708
- case 2: {
1709
- if (tag !== 18) {
1710
- break;
1711
- }
1712
- message.artifactId = reader.string();
1713
- continue;
1714
- }
1715
- case 3: {
1716
- if (tag !== 24) {
1717
- break;
1718
- }
1719
- message.version = reader.int32();
1720
- continue;
1721
- }
1722
- }
1723
- if ((tag & 7) === 4 || tag === 0) {
1724
- break;
1725
- }
1726
- reader.skip(tag & 7);
1727
- }
1728
- return message;
1729
- },
1730
- fromJSON(object) {
1731
- return {
1732
- sessionId: isSet(object.sessionId)
1733
- ? globalThis.String(object.sessionId)
1734
- : isSet(object.session_id)
1735
- ? globalThis.String(object.session_id)
1736
- : "",
1737
- artifactId: isSet(object.artifactId)
1738
- ? globalThis.String(object.artifactId)
1739
- : isSet(object.artifact_id)
1740
- ? globalThis.String(object.artifact_id)
1741
- : "",
1742
- version: isSet(object.version) ? globalThis.Number(object.version) : 0,
1743
- };
1744
- },
1745
- toJSON(message) {
1746
- const obj = {};
1747
- if (message.sessionId !== "") {
1748
- obj.sessionId = message.sessionId;
1749
- }
1750
- if (message.artifactId !== "") {
1751
- obj.artifactId = message.artifactId;
1752
- }
1753
- if (message.version !== 0) {
1754
- obj.version = Math.round(message.version);
1755
- }
1756
- return obj;
1757
- },
1758
- create(base) {
1759
- return exports.GetArtifactVersionRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1760
- },
1761
- fromPartial(object) {
1762
- var _a, _b, _c;
1763
- const message = createBaseGetArtifactVersionRequest();
1764
- message.sessionId = (_a = object.sessionId) !== null && _a !== void 0 ? _a : "";
1765
- message.artifactId = (_b = object.artifactId) !== null && _b !== void 0 ? _b : "";
1766
- message.version = (_c = object.version) !== null && _c !== void 0 ? _c : 0;
1767
- return message;
1768
- },
1769
- };
1770
- function createBaseGetArtifactVersionResponse() {
1771
- return { version: undefined };
1772
- }
1773
- exports.GetArtifactVersionResponse = {
1774
- encode(message, writer = new wire_1.BinaryWriter()) {
1775
- if (message.version !== undefined) {
1776
- chat_pb_1.ChatArtifactVersion.encode(message.version, writer.uint32(10).fork()).join();
1777
- }
1778
- return writer;
1779
- },
1780
- decode(input, length) {
1781
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1782
- const end = length === undefined ? reader.len : reader.pos + length;
1783
- const message = createBaseGetArtifactVersionResponse();
1784
- while (reader.pos < end) {
1785
- const tag = reader.uint32();
1786
- switch (tag >>> 3) {
1787
- case 1: {
1788
- if (tag !== 10) {
1789
- break;
1790
- }
1791
- message.version = chat_pb_1.ChatArtifactVersion.decode(reader, reader.uint32());
1792
- continue;
1793
- }
1794
- }
1795
- if ((tag & 7) === 4 || tag === 0) {
1796
- break;
1797
- }
1798
- reader.skip(tag & 7);
1799
- }
1800
- return message;
1801
- },
1802
- fromJSON(object) {
1803
- return { version: isSet(object.version) ? chat_pb_1.ChatArtifactVersion.fromJSON(object.version) : undefined };
1804
- },
1805
- toJSON(message) {
1806
- const obj = {};
1807
- if (message.version !== undefined) {
1808
- obj.version = chat_pb_1.ChatArtifactVersion.toJSON(message.version);
1809
- }
1810
- return obj;
1811
- },
1812
- create(base) {
1813
- return exports.GetArtifactVersionResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1814
- },
1815
- fromPartial(object) {
1816
- const message = createBaseGetArtifactVersionResponse();
1817
- message.version = (object.version !== undefined && object.version !== null)
1818
- ? chat_pb_1.ChatArtifactVersion.fromPartial(object.version)
1819
- : undefined;
1820
- return message;
1821
- },
1822
- };
1823
- exports.ChatServiceServiceName = "weaveapi.chat.v1.ChatService";
1824
- class ChatServiceClientImpl {
1825
- constructor(rpc, opts) {
1826
- this.service = (opts === null || opts === void 0 ? void 0 : opts.service) || exports.ChatServiceServiceName;
1827
- this.rpc = rpc;
1828
- this.CreateSession = this.CreateSession.bind(this);
1829
- this.GetSession = this.GetSession.bind(this);
1830
- this.ListSessions = this.ListSessions.bind(this);
1831
- this.UpdateSession = this.UpdateSession.bind(this);
1832
- this.DeleteSession = this.DeleteSession.bind(this);
1833
- this.PostMessage = this.PostMessage.bind(this);
1834
- this.AttachStream = this.AttachStream.bind(this);
1835
- this.ApproveToolCall = this.ApproveToolCall.bind(this);
1836
- this.RejectToolCall = this.RejectToolCall.bind(this);
1837
- this.ListArtifacts = this.ListArtifacts.bind(this);
1838
- this.GetArtifact = this.GetArtifact.bind(this);
1839
- this.GetArtifactVersion = this.GetArtifactVersion.bind(this);
1840
- }
1841
- CreateSession(request) {
1842
- const data = exports.CreateSessionRequest.encode(request).finish();
1843
- const promise = this.rpc.request(this.service, "CreateSession", data);
1844
- return promise.then((data) => exports.CreateSessionResponse.decode(new wire_1.BinaryReader(data)));
1845
- }
1846
- GetSession(request) {
1847
- const data = exports.GetSessionRequest.encode(request).finish();
1848
- const promise = this.rpc.request(this.service, "GetSession", data);
1849
- return promise.then((data) => exports.GetSessionResponse.decode(new wire_1.BinaryReader(data)));
1850
- }
1851
- ListSessions(request) {
1852
- const data = exports.ListSessionsRequest.encode(request).finish();
1853
- const promise = this.rpc.request(this.service, "ListSessions", data);
1854
- return promise.then((data) => exports.ListSessionsResponse.decode(new wire_1.BinaryReader(data)));
1855
- }
1856
- UpdateSession(request) {
1857
- const data = exports.UpdateSessionRequest.encode(request).finish();
1858
- const promise = this.rpc.request(this.service, "UpdateSession", data);
1859
- return promise.then((data) => exports.UpdateSessionResponse.decode(new wire_1.BinaryReader(data)));
1860
- }
1861
- DeleteSession(request) {
1862
- const data = exports.DeleteSessionRequest.encode(request).finish();
1863
- const promise = this.rpc.request(this.service, "DeleteSession", data);
1864
- return promise.then((data) => exports.DeleteSessionResponse.decode(new wire_1.BinaryReader(data)));
1865
- }
1866
- PostMessage(request) {
1867
- const data = exports.PostMessageRequest.encode(request).finish();
1868
- const result = this.rpc.serverStreamingRequest(this.service, "PostMessage", data);
1869
- return result.pipe((0, operators_1.map)((data) => exports.PostMessageResponse.decode(new wire_1.BinaryReader(data))));
1870
- }
1871
- AttachStream(request) {
1872
- const data = exports.AttachStreamRequest.encode(request).finish();
1873
- const result = this.rpc.serverStreamingRequest(this.service, "AttachStream", data);
1874
- return result.pipe((0, operators_1.map)((data) => exports.AttachStreamResponse.decode(new wire_1.BinaryReader(data))));
1875
- }
1876
- ApproveToolCall(request) {
1877
- const data = exports.ApproveToolCallRequest.encode(request).finish();
1878
- const promise = this.rpc.request(this.service, "ApproveToolCall", data);
1879
- return promise.then((data) => exports.ApproveToolCallResponse.decode(new wire_1.BinaryReader(data)));
1880
- }
1881
- RejectToolCall(request) {
1882
- const data = exports.RejectToolCallRequest.encode(request).finish();
1883
- const promise = this.rpc.request(this.service, "RejectToolCall", data);
1884
- return promise.then((data) => exports.RejectToolCallResponse.decode(new wire_1.BinaryReader(data)));
1885
- }
1886
- ListArtifacts(request) {
1887
- const data = exports.ListArtifactsRequest.encode(request).finish();
1888
- const promise = this.rpc.request(this.service, "ListArtifacts", data);
1889
- return promise.then((data) => exports.ListArtifactsResponse.decode(new wire_1.BinaryReader(data)));
1890
- }
1891
- GetArtifact(request) {
1892
- const data = exports.GetArtifactRequest.encode(request).finish();
1893
- const promise = this.rpc.request(this.service, "GetArtifact", data);
1894
- return promise.then((data) => exports.GetArtifactResponse.decode(new wire_1.BinaryReader(data)));
1895
- }
1896
- GetArtifactVersion(request) {
1897
- const data = exports.GetArtifactVersionRequest.encode(request).finish();
1898
- const promise = this.rpc.request(this.service, "GetArtifactVersion", data);
1899
- return promise.then((data) => exports.GetArtifactVersionResponse.decode(new wire_1.BinaryReader(data)));
1900
- }
1901
- }
1902
- exports.ChatServiceClientImpl = ChatServiceClientImpl;
1903
- exports.ChatServiceDefinition = {
1904
- name: "ChatService",
1905
- fullName: "weaveapi.chat.v1.ChatService",
1906
- methods: {
1907
- createSession: {
1908
- name: "CreateSession",
1909
- requestType: exports.CreateSessionRequest,
1910
- requestStream: false,
1911
- responseType: exports.CreateSessionResponse,
1912
- responseStream: false,
1913
- options: {
1914
- _unknownFields: {
1915
- 578365826: [
1916
- new Uint8Array([
1917
- 22,
1918
- 58,
1919
- 1,
1920
- 42,
1921
- 34,
1922
- 17,
1923
- 47,
1924
- 118,
1925
- 49,
1926
- 47,
1927
- 99,
1928
- 104,
1929
- 97,
1930
- 116,
1931
- 47,
1932
- 115,
1933
- 101,
1934
- 115,
1935
- 115,
1936
- 105,
1937
- 111,
1938
- 110,
1939
- 115,
1940
- ]),
1941
- ],
1942
- },
1943
- },
1944
- },
1945
- getSession: {
1946
- name: "GetSession",
1947
- requestType: exports.GetSessionRequest,
1948
- requestStream: false,
1949
- responseType: exports.GetSessionResponse,
1950
- responseStream: false,
1951
- options: {
1952
- _unknownFields: {
1953
- 578365826: [
1954
- new Uint8Array([
1955
- 32,
1956
- 18,
1957
- 30,
1958
- 47,
1959
- 118,
1960
- 49,
1961
- 47,
1962
- 99,
1963
- 104,
1964
- 97,
1965
- 116,
1966
- 47,
1967
- 115,
1968
- 101,
1969
- 115,
1970
- 115,
1971
- 105,
1972
- 111,
1973
- 110,
1974
- 115,
1975
- 47,
1976
- 123,
1977
- 115,
1978
- 101,
1979
- 115,
1980
- 115,
1981
- 105,
1982
- 111,
1983
- 110,
1984
- 95,
1985
- 105,
1986
- 100,
1987
- 125,
1988
- ]),
1989
- ],
1990
- },
1991
- },
1992
- },
1993
- listSessions: {
1994
- name: "ListSessions",
1995
- requestType: exports.ListSessionsRequest,
1996
- requestStream: false,
1997
- responseType: exports.ListSessionsResponse,
1998
- responseStream: false,
1999
- options: {
2000
- _unknownFields: {
2001
- 578365826: [
2002
- new Uint8Array([
2003
- 19,
2004
- 18,
2005
- 17,
2006
- 47,
2007
- 118,
2008
- 49,
2009
- 47,
2010
- 99,
2011
- 104,
2012
- 97,
2013
- 116,
2014
- 47,
2015
- 115,
2016
- 101,
2017
- 115,
2018
- 115,
2019
- 105,
2020
- 111,
2021
- 110,
2022
- 115,
2023
- ]),
2024
- ],
2025
- },
2026
- },
2027
- },
2028
- updateSession: {
2029
- name: "UpdateSession",
2030
- requestType: exports.UpdateSessionRequest,
2031
- requestStream: false,
2032
- responseType: exports.UpdateSessionResponse,
2033
- responseStream: false,
2034
- options: {
2035
- _unknownFields: {
2036
- 578365826: [
2037
- new Uint8Array([
2038
- 35,
2039
- 58,
2040
- 1,
2041
- 42,
2042
- 50,
2043
- 30,
2044
- 47,
2045
- 118,
2046
- 49,
2047
- 47,
2048
- 99,
2049
- 104,
2050
- 97,
2051
- 116,
2052
- 47,
2053
- 115,
2054
- 101,
2055
- 115,
2056
- 115,
2057
- 105,
2058
- 111,
2059
- 110,
2060
- 115,
2061
- 47,
2062
- 123,
2063
- 115,
2064
- 101,
2065
- 115,
2066
- 115,
2067
- 105,
2068
- 111,
2069
- 110,
2070
- 95,
2071
- 105,
2072
- 100,
2073
- 125,
2074
- ]),
2075
- ],
2076
- },
2077
- },
2078
- },
2079
- deleteSession: {
2080
- name: "DeleteSession",
2081
- requestType: exports.DeleteSessionRequest,
2082
- requestStream: false,
2083
- responseType: exports.DeleteSessionResponse,
2084
- responseStream: false,
2085
- options: {
2086
- _unknownFields: {
2087
- 578365826: [
2088
- new Uint8Array([
2089
- 32,
2090
- 42,
2091
- 30,
2092
- 47,
2093
- 118,
2094
- 49,
2095
- 47,
2096
- 99,
2097
- 104,
2098
- 97,
2099
- 116,
2100
- 47,
2101
- 115,
2102
- 101,
2103
- 115,
2104
- 115,
2105
- 105,
2106
- 111,
2107
- 110,
2108
- 115,
2109
- 47,
2110
- 123,
2111
- 115,
2112
- 101,
2113
- 115,
2114
- 115,
2115
- 105,
2116
- 111,
2117
- 110,
2118
- 95,
2119
- 105,
2120
- 100,
2121
- 125,
2122
- ]),
2123
- ],
2124
- },
2125
- },
2126
- },
2127
- /**
2128
- * Server-streaming: accepts a user message and streams ChatStreamFrame frames
2129
- * until the assistant turn is complete or rejected.
2130
- */
2131
- postMessage: {
2132
- name: "PostMessage",
2133
- requestType: exports.PostMessageRequest,
2134
- requestStream: false,
2135
- responseType: exports.PostMessageResponse,
2136
- responseStream: true,
2137
- options: {},
2138
- },
2139
- /**
2140
- * Server-streaming: attaches to an in-flight session's stream.
2141
- * Uses last_seen_event_id for replay on reconnect.
2142
- */
2143
- attachStream: {
2144
- name: "AttachStream",
2145
- requestType: exports.AttachStreamRequest,
2146
- requestStream: false,
2147
- responseType: exports.AttachStreamResponse,
2148
- responseStream: true,
2149
- options: {},
2150
- },
2151
- approveToolCall: {
2152
- name: "ApproveToolCall",
2153
- requestType: exports.ApproveToolCallRequest,
2154
- requestStream: false,
2155
- responseType: exports.ApproveToolCallResponse,
2156
- responseStream: false,
2157
- options: {
2158
- _unknownFields: {
2159
- 578365826: [
2160
- new Uint8Array([
2161
- 69,
2162
- 58,
2163
- 1,
2164
- 42,
2165
- 34,
2166
- 64,
2167
- 47,
2168
- 118,
2169
- 49,
2170
- 47,
2171
- 99,
2172
- 104,
2173
- 97,
2174
- 116,
2175
- 47,
2176
- 115,
2177
- 101,
2178
- 115,
2179
- 115,
2180
- 105,
2181
- 111,
2182
- 110,
2183
- 115,
2184
- 47,
2185
- 123,
2186
- 115,
2187
- 101,
2188
- 115,
2189
- 115,
2190
- 105,
2191
- 111,
2192
- 110,
2193
- 95,
2194
- 105,
2195
- 100,
2196
- 125,
2197
- 47,
2198
- 116,
2199
- 111,
2200
- 111,
2201
- 108,
2202
- 45,
2203
- 99,
2204
- 97,
2205
- 108,
2206
- 108,
2207
- 115,
2208
- 47,
2209
- 123,
2210
- 116,
2211
- 111,
2212
- 111,
2213
- 108,
2214
- 95,
2215
- 99,
2216
- 97,
2217
- 108,
2218
- 108,
2219
- 95,
2220
- 105,
2221
- 100,
2222
- 125,
2223
- 58,
2224
- 97,
2225
- 112,
2226
- 112,
2227
- 114,
2228
- 111,
2229
- 118,
2230
- 101,
2231
- ]),
2232
- ],
2233
- },
2234
- },
2235
- },
2236
- rejectToolCall: {
2237
- name: "RejectToolCall",
2238
- requestType: exports.RejectToolCallRequest,
2239
- requestStream: false,
2240
- responseType: exports.RejectToolCallResponse,
2241
- responseStream: false,
2242
- options: {
2243
- _unknownFields: {
2244
- 578365826: [
2245
- new Uint8Array([
2246
- 68,
2247
- 58,
2248
- 1,
2249
- 42,
2250
- 34,
2251
- 63,
2252
- 47,
2253
- 118,
2254
- 49,
2255
- 47,
2256
- 99,
2257
- 104,
2258
- 97,
2259
- 116,
2260
- 47,
2261
- 115,
2262
- 101,
2263
- 115,
2264
- 115,
2265
- 105,
2266
- 111,
2267
- 110,
2268
- 115,
2269
- 47,
2270
- 123,
2271
- 115,
2272
- 101,
2273
- 115,
2274
- 115,
2275
- 105,
2276
- 111,
2277
- 110,
2278
- 95,
2279
- 105,
2280
- 100,
2281
- 125,
2282
- 47,
2283
- 116,
2284
- 111,
2285
- 111,
2286
- 108,
2287
- 45,
2288
- 99,
2289
- 97,
2290
- 108,
2291
- 108,
2292
- 115,
2293
- 47,
2294
- 123,
2295
- 116,
2296
- 111,
2297
- 111,
2298
- 108,
2299
- 95,
2300
- 99,
2301
- 97,
2302
- 108,
2303
- 108,
2304
- 95,
2305
- 105,
2306
- 100,
2307
- 125,
2308
- 58,
2309
- 114,
2310
- 101,
2311
- 106,
2312
- 101,
2313
- 99,
2314
- 116,
2315
- ]),
2316
- ],
2317
- },
2318
- },
2319
- },
2320
- listArtifacts: {
2321
- name: "ListArtifacts",
2322
- requestType: exports.ListArtifactsRequest,
2323
- requestStream: false,
2324
- responseType: exports.ListArtifactsResponse,
2325
- responseStream: false,
2326
- options: {
2327
- _unknownFields: {
2328
- 578365826: [
2329
- new Uint8Array([
2330
- 42,
2331
- 18,
2332
- 40,
2333
- 47,
2334
- 118,
2335
- 49,
2336
- 47,
2337
- 99,
2338
- 104,
2339
- 97,
2340
- 116,
2341
- 47,
2342
- 115,
2343
- 101,
2344
- 115,
2345
- 115,
2346
- 105,
2347
- 111,
2348
- 110,
2349
- 115,
2350
- 47,
2351
- 123,
2352
- 115,
2353
- 101,
2354
- 115,
2355
- 115,
2356
- 105,
2357
- 111,
2358
- 110,
2359
- 95,
2360
- 105,
2361
- 100,
2362
- 125,
2363
- 47,
2364
- 97,
2365
- 114,
2366
- 116,
2367
- 105,
2368
- 102,
2369
- 97,
2370
- 99,
2371
- 116,
2372
- 115,
2373
- ]),
2374
- ],
2375
- },
2376
- },
2377
- },
2378
- getArtifact: {
2379
- name: "GetArtifact",
2380
- requestType: exports.GetArtifactRequest,
2381
- requestStream: false,
2382
- responseType: exports.GetArtifactResponse,
2383
- responseStream: false,
2384
- options: {
2385
- _unknownFields: {
2386
- 578365826: [
2387
- new Uint8Array([
2388
- 56,
2389
- 18,
2390
- 54,
2391
- 47,
2392
- 118,
2393
- 49,
2394
- 47,
2395
- 99,
2396
- 104,
2397
- 97,
2398
- 116,
2399
- 47,
2400
- 115,
2401
- 101,
2402
- 115,
2403
- 115,
2404
- 105,
2405
- 111,
2406
- 110,
2407
- 115,
2408
- 47,
2409
- 123,
2410
- 115,
2411
- 101,
2412
- 115,
2413
- 115,
2414
- 105,
2415
- 111,
2416
- 110,
2417
- 95,
2418
- 105,
2419
- 100,
2420
- 125,
2421
- 47,
2422
- 97,
2423
- 114,
2424
- 116,
2425
- 105,
2426
- 102,
2427
- 97,
2428
- 99,
2429
- 116,
2430
- 115,
2431
- 47,
2432
- 123,
2433
- 97,
2434
- 114,
2435
- 116,
2436
- 105,
2437
- 102,
2438
- 97,
2439
- 99,
2440
- 116,
2441
- 95,
2442
- 105,
2443
- 100,
2444
- 125,
2445
- ]),
2446
- ],
2447
- },
2448
- },
2449
- },
2450
- getArtifactVersion: {
2451
- name: "GetArtifactVersion",
2452
- requestType: exports.GetArtifactVersionRequest,
2453
- requestStream: false,
2454
- responseType: exports.GetArtifactVersionResponse,
2455
- responseStream: false,
2456
- options: {
2457
- _unknownFields: {
2458
- 578365826: [
2459
- new Uint8Array([
2460
- 75,
2461
- 18,
2462
- 73,
2463
- 47,
2464
- 118,
2465
- 49,
2466
- 47,
2467
- 99,
2468
- 104,
2469
- 97,
2470
- 116,
2471
- 47,
2472
- 115,
2473
- 101,
2474
- 115,
2475
- 115,
2476
- 105,
2477
- 111,
2478
- 110,
2479
- 115,
2480
- 47,
2481
- 123,
2482
- 115,
2483
- 101,
2484
- 115,
2485
- 115,
2486
- 105,
2487
- 111,
2488
- 110,
2489
- 95,
2490
- 105,
2491
- 100,
2492
- 125,
2493
- 47,
2494
- 97,
2495
- 114,
2496
- 116,
2497
- 105,
2498
- 102,
2499
- 97,
2500
- 99,
2501
- 116,
2502
- 115,
2503
- 47,
2504
- 123,
2505
- 97,
2506
- 114,
2507
- 116,
2508
- 105,
2509
- 102,
2510
- 97,
2511
- 99,
2512
- 116,
2513
- 95,
2514
- 105,
2515
- 100,
2516
- 125,
2517
- 47,
2518
- 118,
2519
- 101,
2520
- 114,
2521
- 115,
2522
- 105,
2523
- 111,
2524
- 110,
2525
- 115,
2526
- 47,
2527
- 123,
2528
- 118,
2529
- 101,
2530
- 114,
2531
- 115,
2532
- 105,
2533
- 111,
2534
- 110,
2535
- 125,
2536
- ]),
2537
- ],
2538
- },
2539
- },
2540
- },
2541
- },
2542
- };
2543
- function isSet(value) {
2544
- return value !== null && value !== undefined;
2545
- }