@replit/protocol 0.4.27 → 0.4.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,51 @@
1
+ import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
2
+ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
3
+ import type { GetAgentByNameResponse } from "./resources.js";
4
+ import type { GetAgentByNameRequest } from "./resources.js";
5
+ import type { GetAgentByIDResponse } from "./resources.js";
6
+ import type { GetAgentByIDRequest } from "./resources.js";
7
+ import type { CreateAgentResponse } from "./resources.js";
8
+ import type { CreateAgentRequest } from "./resources.js";
9
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
10
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
11
+ /**
12
+ * @generated from protobuf service chateau.resources.v1.ResourcesService
13
+ */
14
+ export interface IResourcesServiceClient {
15
+ /**
16
+ * @generated from protobuf rpc: CreateAgent
17
+ */
18
+ createAgent(input: CreateAgentRequest, options?: RpcOptions): UnaryCall<CreateAgentRequest, CreateAgentResponse>;
19
+ /**
20
+ * @generated from protobuf rpc: GetAgentByID
21
+ */
22
+ getAgentByID(input: GetAgentByIDRequest, options?: RpcOptions): UnaryCall<GetAgentByIDRequest, GetAgentByIDResponse>;
23
+ /**
24
+ * @generated from protobuf rpc: GetAgentByName
25
+ */
26
+ getAgentByName(input: GetAgentByNameRequest, options?: RpcOptions): UnaryCall<GetAgentByNameRequest, GetAgentByNameResponse>;
27
+ }
28
+ /**
29
+ * @generated from protobuf service chateau.resources.v1.ResourcesService
30
+ */
31
+ export declare class ResourcesServiceClient implements IResourcesServiceClient, ServiceInfo {
32
+ private readonly _transport;
33
+ typeName: string;
34
+ methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
35
+ options: {
36
+ [extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
37
+ };
38
+ constructor(_transport: RpcTransport);
39
+ /**
40
+ * @generated from protobuf rpc: CreateAgent
41
+ */
42
+ createAgent(input: CreateAgentRequest, options?: RpcOptions): UnaryCall<CreateAgentRequest, CreateAgentResponse>;
43
+ /**
44
+ * @generated from protobuf rpc: GetAgentByID
45
+ */
46
+ getAgentByID(input: GetAgentByIDRequest, options?: RpcOptions): UnaryCall<GetAgentByIDRequest, GetAgentByIDResponse>;
47
+ /**
48
+ * @generated from protobuf rpc: GetAgentByName
49
+ */
50
+ getAgentByName(input: GetAgentByNameRequest, options?: RpcOptions): UnaryCall<GetAgentByNameRequest, GetAgentByNameResponse>;
51
+ }
@@ -0,0 +1,34 @@
1
+ import { ResourcesService } from "./resources.js";
2
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
3
+ /**
4
+ * @generated from protobuf service chateau.resources.v1.ResourcesService
5
+ */
6
+ export class ResourcesServiceClient {
7
+ constructor(_transport) {
8
+ this._transport = _transport;
9
+ this.typeName = ResourcesService.typeName;
10
+ this.methods = ResourcesService.methods;
11
+ this.options = ResourcesService.options;
12
+ }
13
+ /**
14
+ * @generated from protobuf rpc: CreateAgent
15
+ */
16
+ createAgent(input, options) {
17
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
18
+ return stackIntercept("unary", this._transport, method, opt, input);
19
+ }
20
+ /**
21
+ * @generated from protobuf rpc: GetAgentByID
22
+ */
23
+ getAgentByID(input, options) {
24
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
25
+ return stackIntercept("unary", this._transport, method, opt, input);
26
+ }
27
+ /**
28
+ * @generated from protobuf rpc: GetAgentByName
29
+ */
30
+ getAgentByName(input, options) {
31
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
32
+ return stackIntercept("unary", this._transport, method, opt, input);
33
+ }
34
+ }
@@ -0,0 +1,333 @@
1
+ import { ServiceType } from "@protobuf-ts/runtime-rpc";
2
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
3
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
4
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
5
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
6
+ import type { PartialMessage } from "@protobuf-ts/runtime";
7
+ import { MessageType } from "@protobuf-ts/runtime";
8
+ import { Struct } from "../../google/protobuf/struct.js";
9
+ /**
10
+ * @generated from protobuf message chateau.resources.v1.CreateAgentRequest
11
+ */
12
+ export interface CreateAgentRequest {
13
+ /**
14
+ * @generated from protobuf field: string agent_id = 1
15
+ */
16
+ agentId: string;
17
+ /**
18
+ * @generated from protobuf field: string resource_group_id = 2
19
+ */
20
+ resourceGroupId: string;
21
+ /**
22
+ * @generated from protobuf field: string repl_id = 3
23
+ */
24
+ replId: string;
25
+ /**
26
+ * @generated from protobuf field: optional string subrepl_id = 4
27
+ */
28
+ subreplId?: string;
29
+ /**
30
+ * @generated from protobuf field: optional string name = 5
31
+ */
32
+ name?: string;
33
+ /**
34
+ * @generated from protobuf field: optional int32 created_by_user_id = 6
35
+ */
36
+ createdByUserId?: number;
37
+ /**
38
+ * @generated from protobuf field: string customer_id = 7
39
+ */
40
+ customerId: string;
41
+ /**
42
+ * @generated from protobuf field: string statsig_ctx = 8
43
+ */
44
+ statsigCtx: string;
45
+ /**
46
+ * @generated from protobuf oneof: config
47
+ */
48
+ config: {
49
+ oneofKind: "code";
50
+ /**
51
+ * @generated from protobuf field: chateau.resources.v1.CreateAgentRequest.CodeConfig code = 9
52
+ */
53
+ code: CreateAgentRequest_CodeConfig;
54
+ } | {
55
+ oneofKind: "mission";
56
+ /**
57
+ * @generated from protobuf field: chateau.resources.v1.CreateAgentRequest.MissionConfig mission = 10
58
+ */
59
+ mission: CreateAgentRequest_MissionConfig;
60
+ } | {
61
+ oneofKind: "planning";
62
+ /**
63
+ * @generated from protobuf field: chateau.resources.v1.CreateAgentRequest.PlanningConfig planning = 11
64
+ */
65
+ planning: CreateAgentRequest_PlanningConfig;
66
+ } | {
67
+ oneofKind: "design";
68
+ /**
69
+ * @generated from protobuf field: chateau.resources.v1.CreateAgentRequest.DesignConfig design = 12
70
+ */
71
+ design: CreateAgentRequest_DesignConfig;
72
+ } | {
73
+ oneofKind: "task";
74
+ /**
75
+ * @generated from protobuf field: chateau.resources.v1.CreateAgentRequest.TaskConfig task = 13
76
+ */
77
+ task: CreateAgentRequest_TaskConfig;
78
+ } | {
79
+ oneofKind: undefined;
80
+ };
81
+ }
82
+ /**
83
+ * @generated from protobuf message chateau.resources.v1.CreateAgentRequest.CodeConfig
84
+ */
85
+ export interface CreateAgentRequest_CodeConfig {
86
+ }
87
+ /**
88
+ * @generated from protobuf message chateau.resources.v1.CreateAgentRequest.MissionConfig
89
+ */
90
+ export interface CreateAgentRequest_MissionConfig {
91
+ }
92
+ /**
93
+ * @generated from protobuf message chateau.resources.v1.CreateAgentRequest.PlanningConfig
94
+ */
95
+ export interface CreateAgentRequest_PlanningConfig {
96
+ }
97
+ /**
98
+ * @generated from protobuf message chateau.resources.v1.CreateAgentRequest.DesignConfig
99
+ */
100
+ export interface CreateAgentRequest_DesignConfig {
101
+ }
102
+ /**
103
+ * @generated from protobuf message chateau.resources.v1.CreateAgentRequest.TaskConfig
104
+ */
105
+ export interface CreateAgentRequest_TaskConfig {
106
+ /**
107
+ * @generated from protobuf field: string task_ref = 1
108
+ */
109
+ taskRef: string;
110
+ /**
111
+ * @generated from protobuf field: optional string task_kind = 2
112
+ */
113
+ taskKind?: string;
114
+ /**
115
+ * @generated from protobuf field: optional google.protobuf.Struct fork_state = 3
116
+ */
117
+ forkState?: Struct;
118
+ }
119
+ /**
120
+ * @generated from protobuf message chateau.resources.v1.CreateAgentResponse
121
+ */
122
+ export interface CreateAgentResponse {
123
+ /**
124
+ * @generated from protobuf field: chateau.resources.v1.Agent agent = 1
125
+ */
126
+ agent?: Agent;
127
+ }
128
+ /**
129
+ * @generated from protobuf message chateau.resources.v1.GetAgentByIDRequest
130
+ */
131
+ export interface GetAgentByIDRequest {
132
+ /**
133
+ * @generated from protobuf field: string agent_id = 1
134
+ */
135
+ agentId: string;
136
+ }
137
+ /**
138
+ * @generated from protobuf message chateau.resources.v1.GetAgentByIDResponse
139
+ */
140
+ export interface GetAgentByIDResponse {
141
+ /**
142
+ * @generated from protobuf field: optional chateau.resources.v1.Agent agent = 1
143
+ */
144
+ agent?: Agent;
145
+ }
146
+ /**
147
+ * @generated from protobuf message chateau.resources.v1.GetAgentByNameRequest
148
+ */
149
+ export interface GetAgentByNameRequest {
150
+ /**
151
+ * @generated from protobuf field: string repl_id = 1
152
+ */
153
+ replId: string;
154
+ /**
155
+ * @generated from protobuf field: optional string subrepl_id = 2
156
+ */
157
+ subreplId?: string;
158
+ /**
159
+ * @generated from protobuf field: string name = 3
160
+ */
161
+ name: string;
162
+ }
163
+ /**
164
+ * @generated from protobuf message chateau.resources.v1.GetAgentByNameResponse
165
+ */
166
+ export interface GetAgentByNameResponse {
167
+ /**
168
+ * @generated from protobuf field: optional chateau.resources.v1.Agent agent = 1
169
+ */
170
+ agent?: Agent;
171
+ }
172
+ /**
173
+ * @generated from protobuf message chateau.resources.v1.Agent
174
+ */
175
+ export interface Agent {
176
+ /**
177
+ * @generated from protobuf field: string agent_id = 1
178
+ */
179
+ agentId: string;
180
+ /**
181
+ * @generated from protobuf field: string resource_group_id = 2
182
+ */
183
+ resourceGroupId: string;
184
+ /**
185
+ * @generated from protobuf field: string repl_id = 3
186
+ */
187
+ replId: string;
188
+ /**
189
+ * @generated from protobuf field: optional string subrepl_id = 4
190
+ */
191
+ subreplId?: string;
192
+ /**
193
+ * @generated from protobuf field: optional string parent_agent_id = 5
194
+ */
195
+ parentAgentId?: string;
196
+ /**
197
+ * @generated from protobuf field: optional string name = 6
198
+ */
199
+ name?: string;
200
+ /**
201
+ * @generated from protobuf field: optional int32 created_by_user_id = 7
202
+ */
203
+ createdByUserId?: number;
204
+ /**
205
+ * @generated from protobuf field: string customer_id = 8
206
+ */
207
+ customerId: string;
208
+ }
209
+ declare class CreateAgentRequest$Type extends MessageType<CreateAgentRequest> {
210
+ constructor();
211
+ create(value?: PartialMessage<CreateAgentRequest>): CreateAgentRequest;
212
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateAgentRequest): CreateAgentRequest;
213
+ internalBinaryWrite(message: CreateAgentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
214
+ }
215
+ /**
216
+ * @generated MessageType for protobuf message chateau.resources.v1.CreateAgentRequest
217
+ */
218
+ export declare const CreateAgentRequest: CreateAgentRequest$Type;
219
+ declare class CreateAgentRequest_CodeConfig$Type extends MessageType<CreateAgentRequest_CodeConfig> {
220
+ constructor();
221
+ create(value?: PartialMessage<CreateAgentRequest_CodeConfig>): CreateAgentRequest_CodeConfig;
222
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateAgentRequest_CodeConfig): CreateAgentRequest_CodeConfig;
223
+ internalBinaryWrite(message: CreateAgentRequest_CodeConfig, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
224
+ }
225
+ /**
226
+ * @generated MessageType for protobuf message chateau.resources.v1.CreateAgentRequest.CodeConfig
227
+ */
228
+ export declare const CreateAgentRequest_CodeConfig: CreateAgentRequest_CodeConfig$Type;
229
+ declare class CreateAgentRequest_MissionConfig$Type extends MessageType<CreateAgentRequest_MissionConfig> {
230
+ constructor();
231
+ create(value?: PartialMessage<CreateAgentRequest_MissionConfig>): CreateAgentRequest_MissionConfig;
232
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateAgentRequest_MissionConfig): CreateAgentRequest_MissionConfig;
233
+ internalBinaryWrite(message: CreateAgentRequest_MissionConfig, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
234
+ }
235
+ /**
236
+ * @generated MessageType for protobuf message chateau.resources.v1.CreateAgentRequest.MissionConfig
237
+ */
238
+ export declare const CreateAgentRequest_MissionConfig: CreateAgentRequest_MissionConfig$Type;
239
+ declare class CreateAgentRequest_PlanningConfig$Type extends MessageType<CreateAgentRequest_PlanningConfig> {
240
+ constructor();
241
+ create(value?: PartialMessage<CreateAgentRequest_PlanningConfig>): CreateAgentRequest_PlanningConfig;
242
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateAgentRequest_PlanningConfig): CreateAgentRequest_PlanningConfig;
243
+ internalBinaryWrite(message: CreateAgentRequest_PlanningConfig, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
244
+ }
245
+ /**
246
+ * @generated MessageType for protobuf message chateau.resources.v1.CreateAgentRequest.PlanningConfig
247
+ */
248
+ export declare const CreateAgentRequest_PlanningConfig: CreateAgentRequest_PlanningConfig$Type;
249
+ declare class CreateAgentRequest_DesignConfig$Type extends MessageType<CreateAgentRequest_DesignConfig> {
250
+ constructor();
251
+ create(value?: PartialMessage<CreateAgentRequest_DesignConfig>): CreateAgentRequest_DesignConfig;
252
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateAgentRequest_DesignConfig): CreateAgentRequest_DesignConfig;
253
+ internalBinaryWrite(message: CreateAgentRequest_DesignConfig, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
254
+ }
255
+ /**
256
+ * @generated MessageType for protobuf message chateau.resources.v1.CreateAgentRequest.DesignConfig
257
+ */
258
+ export declare const CreateAgentRequest_DesignConfig: CreateAgentRequest_DesignConfig$Type;
259
+ declare class CreateAgentRequest_TaskConfig$Type extends MessageType<CreateAgentRequest_TaskConfig> {
260
+ constructor();
261
+ create(value?: PartialMessage<CreateAgentRequest_TaskConfig>): CreateAgentRequest_TaskConfig;
262
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateAgentRequest_TaskConfig): CreateAgentRequest_TaskConfig;
263
+ internalBinaryWrite(message: CreateAgentRequest_TaskConfig, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
264
+ }
265
+ /**
266
+ * @generated MessageType for protobuf message chateau.resources.v1.CreateAgentRequest.TaskConfig
267
+ */
268
+ export declare const CreateAgentRequest_TaskConfig: CreateAgentRequest_TaskConfig$Type;
269
+ declare class CreateAgentResponse$Type extends MessageType<CreateAgentResponse> {
270
+ constructor();
271
+ create(value?: PartialMessage<CreateAgentResponse>): CreateAgentResponse;
272
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateAgentResponse): CreateAgentResponse;
273
+ internalBinaryWrite(message: CreateAgentResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
274
+ }
275
+ /**
276
+ * @generated MessageType for protobuf message chateau.resources.v1.CreateAgentResponse
277
+ */
278
+ export declare const CreateAgentResponse: CreateAgentResponse$Type;
279
+ declare class GetAgentByIDRequest$Type extends MessageType<GetAgentByIDRequest> {
280
+ constructor();
281
+ create(value?: PartialMessage<GetAgentByIDRequest>): GetAgentByIDRequest;
282
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAgentByIDRequest): GetAgentByIDRequest;
283
+ internalBinaryWrite(message: GetAgentByIDRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
284
+ }
285
+ /**
286
+ * @generated MessageType for protobuf message chateau.resources.v1.GetAgentByIDRequest
287
+ */
288
+ export declare const GetAgentByIDRequest: GetAgentByIDRequest$Type;
289
+ declare class GetAgentByIDResponse$Type extends MessageType<GetAgentByIDResponse> {
290
+ constructor();
291
+ create(value?: PartialMessage<GetAgentByIDResponse>): GetAgentByIDResponse;
292
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAgentByIDResponse): GetAgentByIDResponse;
293
+ internalBinaryWrite(message: GetAgentByIDResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
294
+ }
295
+ /**
296
+ * @generated MessageType for protobuf message chateau.resources.v1.GetAgentByIDResponse
297
+ */
298
+ export declare const GetAgentByIDResponse: GetAgentByIDResponse$Type;
299
+ declare class GetAgentByNameRequest$Type extends MessageType<GetAgentByNameRequest> {
300
+ constructor();
301
+ create(value?: PartialMessage<GetAgentByNameRequest>): GetAgentByNameRequest;
302
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAgentByNameRequest): GetAgentByNameRequest;
303
+ internalBinaryWrite(message: GetAgentByNameRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
304
+ }
305
+ /**
306
+ * @generated MessageType for protobuf message chateau.resources.v1.GetAgentByNameRequest
307
+ */
308
+ export declare const GetAgentByNameRequest: GetAgentByNameRequest$Type;
309
+ declare class GetAgentByNameResponse$Type extends MessageType<GetAgentByNameResponse> {
310
+ constructor();
311
+ create(value?: PartialMessage<GetAgentByNameResponse>): GetAgentByNameResponse;
312
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAgentByNameResponse): GetAgentByNameResponse;
313
+ internalBinaryWrite(message: GetAgentByNameResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
314
+ }
315
+ /**
316
+ * @generated MessageType for protobuf message chateau.resources.v1.GetAgentByNameResponse
317
+ */
318
+ export declare const GetAgentByNameResponse: GetAgentByNameResponse$Type;
319
+ declare class Agent$Type extends MessageType<Agent> {
320
+ constructor();
321
+ create(value?: PartialMessage<Agent>): Agent;
322
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Agent): Agent;
323
+ internalBinaryWrite(message: Agent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
324
+ }
325
+ /**
326
+ * @generated MessageType for protobuf message chateau.resources.v1.Agent
327
+ */
328
+ export declare const Agent: Agent$Type;
329
+ /**
330
+ * @generated ServiceType for protobuf service chateau.resources.v1.ResourcesService
331
+ */
332
+ export declare const ResourcesService: ServiceType;
333
+ export {};