@replit/protocol 0.4.27 → 0.4.29

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,337 @@
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 field: optional string org_id = 15
47
+ */
48
+ orgId?: string;
49
+ /**
50
+ * @generated from protobuf oneof: config
51
+ */
52
+ config: {
53
+ oneofKind: "code";
54
+ /**
55
+ * @generated from protobuf field: chateau.resources.v1.CreateAgentRequest.CodeConfig code = 9
56
+ */
57
+ code: CreateAgentRequest_CodeConfig;
58
+ } | {
59
+ oneofKind: "mission";
60
+ /**
61
+ * @generated from protobuf field: chateau.resources.v1.CreateAgentRequest.MissionConfig mission = 10
62
+ */
63
+ mission: CreateAgentRequest_MissionConfig;
64
+ } | {
65
+ oneofKind: "planning";
66
+ /**
67
+ * @generated from protobuf field: chateau.resources.v1.CreateAgentRequest.PlanningConfig planning = 11
68
+ */
69
+ planning: CreateAgentRequest_PlanningConfig;
70
+ } | {
71
+ oneofKind: "design";
72
+ /**
73
+ * @generated from protobuf field: chateau.resources.v1.CreateAgentRequest.DesignConfig design = 12
74
+ */
75
+ design: CreateAgentRequest_DesignConfig;
76
+ } | {
77
+ oneofKind: "task";
78
+ /**
79
+ * @generated from protobuf field: chateau.resources.v1.CreateAgentRequest.TaskConfig task = 13
80
+ */
81
+ task: CreateAgentRequest_TaskConfig;
82
+ } | {
83
+ oneofKind: undefined;
84
+ };
85
+ }
86
+ /**
87
+ * @generated from protobuf message chateau.resources.v1.CreateAgentRequest.CodeConfig
88
+ */
89
+ export interface CreateAgentRequest_CodeConfig {
90
+ }
91
+ /**
92
+ * @generated from protobuf message chateau.resources.v1.CreateAgentRequest.MissionConfig
93
+ */
94
+ export interface CreateAgentRequest_MissionConfig {
95
+ }
96
+ /**
97
+ * @generated from protobuf message chateau.resources.v1.CreateAgentRequest.PlanningConfig
98
+ */
99
+ export interface CreateAgentRequest_PlanningConfig {
100
+ }
101
+ /**
102
+ * @generated from protobuf message chateau.resources.v1.CreateAgentRequest.DesignConfig
103
+ */
104
+ export interface CreateAgentRequest_DesignConfig {
105
+ }
106
+ /**
107
+ * @generated from protobuf message chateau.resources.v1.CreateAgentRequest.TaskConfig
108
+ */
109
+ export interface CreateAgentRequest_TaskConfig {
110
+ /**
111
+ * @generated from protobuf field: string task_ref = 1
112
+ */
113
+ taskRef: string;
114
+ /**
115
+ * @generated from protobuf field: optional string task_kind = 2
116
+ */
117
+ taskKind?: string;
118
+ /**
119
+ * @generated from protobuf field: optional google.protobuf.Struct fork_state = 3
120
+ */
121
+ forkState?: Struct;
122
+ }
123
+ /**
124
+ * @generated from protobuf message chateau.resources.v1.CreateAgentResponse
125
+ */
126
+ export interface CreateAgentResponse {
127
+ /**
128
+ * @generated from protobuf field: chateau.resources.v1.Agent agent = 1
129
+ */
130
+ agent?: Agent;
131
+ }
132
+ /**
133
+ * @generated from protobuf message chateau.resources.v1.GetAgentByIDRequest
134
+ */
135
+ export interface GetAgentByIDRequest {
136
+ /**
137
+ * @generated from protobuf field: string agent_id = 1
138
+ */
139
+ agentId: string;
140
+ }
141
+ /**
142
+ * @generated from protobuf message chateau.resources.v1.GetAgentByIDResponse
143
+ */
144
+ export interface GetAgentByIDResponse {
145
+ /**
146
+ * @generated from protobuf field: optional chateau.resources.v1.Agent agent = 1
147
+ */
148
+ agent?: Agent;
149
+ }
150
+ /**
151
+ * @generated from protobuf message chateau.resources.v1.GetAgentByNameRequest
152
+ */
153
+ export interface GetAgentByNameRequest {
154
+ /**
155
+ * @generated from protobuf field: string repl_id = 1
156
+ */
157
+ replId: string;
158
+ /**
159
+ * @generated from protobuf field: optional string subrepl_id = 2
160
+ */
161
+ subreplId?: string;
162
+ /**
163
+ * @generated from protobuf field: string name = 3
164
+ */
165
+ name: string;
166
+ }
167
+ /**
168
+ * @generated from protobuf message chateau.resources.v1.GetAgentByNameResponse
169
+ */
170
+ export interface GetAgentByNameResponse {
171
+ /**
172
+ * @generated from protobuf field: optional chateau.resources.v1.Agent agent = 1
173
+ */
174
+ agent?: Agent;
175
+ }
176
+ /**
177
+ * @generated from protobuf message chateau.resources.v1.Agent
178
+ */
179
+ export interface Agent {
180
+ /**
181
+ * @generated from protobuf field: string agent_id = 1
182
+ */
183
+ agentId: string;
184
+ /**
185
+ * @generated from protobuf field: string resource_group_id = 2
186
+ */
187
+ resourceGroupId: string;
188
+ /**
189
+ * @generated from protobuf field: string repl_id = 3
190
+ */
191
+ replId: string;
192
+ /**
193
+ * @generated from protobuf field: optional string subrepl_id = 4
194
+ */
195
+ subreplId?: string;
196
+ /**
197
+ * @generated from protobuf field: optional string parent_agent_id = 5
198
+ */
199
+ parentAgentId?: string;
200
+ /**
201
+ * @generated from protobuf field: optional string name = 6
202
+ */
203
+ name?: string;
204
+ /**
205
+ * @generated from protobuf field: optional int32 created_by_user_id = 7
206
+ */
207
+ createdByUserId?: number;
208
+ /**
209
+ * @generated from protobuf field: string customer_id = 8
210
+ */
211
+ customerId: string;
212
+ }
213
+ declare class CreateAgentRequest$Type extends MessageType<CreateAgentRequest> {
214
+ constructor();
215
+ create(value?: PartialMessage<CreateAgentRequest>): CreateAgentRequest;
216
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateAgentRequest): CreateAgentRequest;
217
+ internalBinaryWrite(message: CreateAgentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
218
+ }
219
+ /**
220
+ * @generated MessageType for protobuf message chateau.resources.v1.CreateAgentRequest
221
+ */
222
+ export declare const CreateAgentRequest: CreateAgentRequest$Type;
223
+ declare class CreateAgentRequest_CodeConfig$Type extends MessageType<CreateAgentRequest_CodeConfig> {
224
+ constructor();
225
+ create(value?: PartialMessage<CreateAgentRequest_CodeConfig>): CreateAgentRequest_CodeConfig;
226
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateAgentRequest_CodeConfig): CreateAgentRequest_CodeConfig;
227
+ internalBinaryWrite(message: CreateAgentRequest_CodeConfig, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
228
+ }
229
+ /**
230
+ * @generated MessageType for protobuf message chateau.resources.v1.CreateAgentRequest.CodeConfig
231
+ */
232
+ export declare const CreateAgentRequest_CodeConfig: CreateAgentRequest_CodeConfig$Type;
233
+ declare class CreateAgentRequest_MissionConfig$Type extends MessageType<CreateAgentRequest_MissionConfig> {
234
+ constructor();
235
+ create(value?: PartialMessage<CreateAgentRequest_MissionConfig>): CreateAgentRequest_MissionConfig;
236
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateAgentRequest_MissionConfig): CreateAgentRequest_MissionConfig;
237
+ internalBinaryWrite(message: CreateAgentRequest_MissionConfig, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
238
+ }
239
+ /**
240
+ * @generated MessageType for protobuf message chateau.resources.v1.CreateAgentRequest.MissionConfig
241
+ */
242
+ export declare const CreateAgentRequest_MissionConfig: CreateAgentRequest_MissionConfig$Type;
243
+ declare class CreateAgentRequest_PlanningConfig$Type extends MessageType<CreateAgentRequest_PlanningConfig> {
244
+ constructor();
245
+ create(value?: PartialMessage<CreateAgentRequest_PlanningConfig>): CreateAgentRequest_PlanningConfig;
246
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateAgentRequest_PlanningConfig): CreateAgentRequest_PlanningConfig;
247
+ internalBinaryWrite(message: CreateAgentRequest_PlanningConfig, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
248
+ }
249
+ /**
250
+ * @generated MessageType for protobuf message chateau.resources.v1.CreateAgentRequest.PlanningConfig
251
+ */
252
+ export declare const CreateAgentRequest_PlanningConfig: CreateAgentRequest_PlanningConfig$Type;
253
+ declare class CreateAgentRequest_DesignConfig$Type extends MessageType<CreateAgentRequest_DesignConfig> {
254
+ constructor();
255
+ create(value?: PartialMessage<CreateAgentRequest_DesignConfig>): CreateAgentRequest_DesignConfig;
256
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateAgentRequest_DesignConfig): CreateAgentRequest_DesignConfig;
257
+ internalBinaryWrite(message: CreateAgentRequest_DesignConfig, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
258
+ }
259
+ /**
260
+ * @generated MessageType for protobuf message chateau.resources.v1.CreateAgentRequest.DesignConfig
261
+ */
262
+ export declare const CreateAgentRequest_DesignConfig: CreateAgentRequest_DesignConfig$Type;
263
+ declare class CreateAgentRequest_TaskConfig$Type extends MessageType<CreateAgentRequest_TaskConfig> {
264
+ constructor();
265
+ create(value?: PartialMessage<CreateAgentRequest_TaskConfig>): CreateAgentRequest_TaskConfig;
266
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateAgentRequest_TaskConfig): CreateAgentRequest_TaskConfig;
267
+ internalBinaryWrite(message: CreateAgentRequest_TaskConfig, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
268
+ }
269
+ /**
270
+ * @generated MessageType for protobuf message chateau.resources.v1.CreateAgentRequest.TaskConfig
271
+ */
272
+ export declare const CreateAgentRequest_TaskConfig: CreateAgentRequest_TaskConfig$Type;
273
+ declare class CreateAgentResponse$Type extends MessageType<CreateAgentResponse> {
274
+ constructor();
275
+ create(value?: PartialMessage<CreateAgentResponse>): CreateAgentResponse;
276
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateAgentResponse): CreateAgentResponse;
277
+ internalBinaryWrite(message: CreateAgentResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
278
+ }
279
+ /**
280
+ * @generated MessageType for protobuf message chateau.resources.v1.CreateAgentResponse
281
+ */
282
+ export declare const CreateAgentResponse: CreateAgentResponse$Type;
283
+ declare class GetAgentByIDRequest$Type extends MessageType<GetAgentByIDRequest> {
284
+ constructor();
285
+ create(value?: PartialMessage<GetAgentByIDRequest>): GetAgentByIDRequest;
286
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAgentByIDRequest): GetAgentByIDRequest;
287
+ internalBinaryWrite(message: GetAgentByIDRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
288
+ }
289
+ /**
290
+ * @generated MessageType for protobuf message chateau.resources.v1.GetAgentByIDRequest
291
+ */
292
+ export declare const GetAgentByIDRequest: GetAgentByIDRequest$Type;
293
+ declare class GetAgentByIDResponse$Type extends MessageType<GetAgentByIDResponse> {
294
+ constructor();
295
+ create(value?: PartialMessage<GetAgentByIDResponse>): GetAgentByIDResponse;
296
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAgentByIDResponse): GetAgentByIDResponse;
297
+ internalBinaryWrite(message: GetAgentByIDResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
298
+ }
299
+ /**
300
+ * @generated MessageType for protobuf message chateau.resources.v1.GetAgentByIDResponse
301
+ */
302
+ export declare const GetAgentByIDResponse: GetAgentByIDResponse$Type;
303
+ declare class GetAgentByNameRequest$Type extends MessageType<GetAgentByNameRequest> {
304
+ constructor();
305
+ create(value?: PartialMessage<GetAgentByNameRequest>): GetAgentByNameRequest;
306
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAgentByNameRequest): GetAgentByNameRequest;
307
+ internalBinaryWrite(message: GetAgentByNameRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
308
+ }
309
+ /**
310
+ * @generated MessageType for protobuf message chateau.resources.v1.GetAgentByNameRequest
311
+ */
312
+ export declare const GetAgentByNameRequest: GetAgentByNameRequest$Type;
313
+ declare class GetAgentByNameResponse$Type extends MessageType<GetAgentByNameResponse> {
314
+ constructor();
315
+ create(value?: PartialMessage<GetAgentByNameResponse>): GetAgentByNameResponse;
316
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAgentByNameResponse): GetAgentByNameResponse;
317
+ internalBinaryWrite(message: GetAgentByNameResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
318
+ }
319
+ /**
320
+ * @generated MessageType for protobuf message chateau.resources.v1.GetAgentByNameResponse
321
+ */
322
+ export declare const GetAgentByNameResponse: GetAgentByNameResponse$Type;
323
+ declare class Agent$Type extends MessageType<Agent> {
324
+ constructor();
325
+ create(value?: PartialMessage<Agent>): Agent;
326
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Agent): Agent;
327
+ internalBinaryWrite(message: Agent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
328
+ }
329
+ /**
330
+ * @generated MessageType for protobuf message chateau.resources.v1.Agent
331
+ */
332
+ export declare const Agent: Agent$Type;
333
+ /**
334
+ * @generated ServiceType for protobuf service chateau.resources.v1.ResourcesService
335
+ */
336
+ export declare const ResourcesService: ServiceType;
337
+ export {};