@myagentroam/protocol 0.9.69 → 0.9.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/direct-transfer.d.ts +839 -169
- package/dist/direct-transfer.js +65 -43
- package/dist/enterprise.d.ts +4 -4
- package/dist/index.d.ts +444 -432
- package/package.json +1 -1
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const workspaceDirectTransferCapabilitySchema: z.ZodObject<{
|
|
3
|
-
apiVersion: z.ZodLiteral<
|
|
4
|
-
|
|
3
|
+
apiVersion: z.ZodUnion<[z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
4
|
+
transport: z.ZodBoolean;
|
|
5
5
|
upload: z.ZodBoolean;
|
|
6
6
|
download: z.ZodBoolean;
|
|
7
|
+
range: z.ZodBoolean;
|
|
7
8
|
gitCommitBlob: z.ZodBoolean;
|
|
8
9
|
maxChunkBytes: z.ZodNumber;
|
|
9
10
|
}, "strict", z.ZodTypeAny, {
|
|
10
|
-
apiVersion:
|
|
11
|
-
|
|
11
|
+
apiVersion: 2 | 3;
|
|
12
|
+
transport: boolean;
|
|
12
13
|
upload: boolean;
|
|
13
14
|
download: boolean;
|
|
15
|
+
range: boolean;
|
|
14
16
|
gitCommitBlob: boolean;
|
|
15
17
|
maxChunkBytes: number;
|
|
16
18
|
}, {
|
|
17
|
-
apiVersion:
|
|
18
|
-
|
|
19
|
+
apiVersion: 2 | 3;
|
|
20
|
+
transport: boolean;
|
|
19
21
|
upload: boolean;
|
|
20
22
|
download: boolean;
|
|
23
|
+
range: boolean;
|
|
21
24
|
gitCommitBlob: boolean;
|
|
22
25
|
maxChunkBytes: number;
|
|
23
26
|
}>;
|
|
24
27
|
export type WorkspaceDirectTransferCapability = z.infer<typeof workspaceDirectTransferCapabilitySchema>;
|
|
25
|
-
export declare const directTransferPurposeSchema: z.ZodEnum<["
|
|
28
|
+
export declare const directTransferPurposeSchema: z.ZodEnum<["TRANSPORT", "TRANSFER"]>;
|
|
26
29
|
export declare const directTransferDirectionSchema: z.ZodEnum<["UPLOAD", "DOWNLOAD"]>;
|
|
27
|
-
export declare const directTransferProbeResultSchema: z.ZodEnum<["DIRECT_AVAILABLE", "RELAY_ONLY", "STALE"]>;
|
|
28
|
-
export type DirectTransferProbeResult = z.infer<typeof directTransferProbeResultSchema>;
|
|
29
30
|
export declare const directTransferResourceSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
30
31
|
kind: z.ZodLiteral<"WORKSPACE_FILE">;
|
|
31
32
|
workspaceId: z.ZodString;
|
|
@@ -64,8 +65,7 @@ export declare const directTransferResourceSchema: z.ZodDiscriminatedUnion<"kind
|
|
|
64
65
|
repositoryPath?: string | undefined;
|
|
65
66
|
}>]>;
|
|
66
67
|
export type DirectTransferResource = z.infer<typeof directTransferResourceSchema>;
|
|
67
|
-
export declare const directTransferDescriptorSchema: z.ZodEffects<z.ZodObject<{
|
|
68
|
-
direction: z.ZodEnum<["UPLOAD", "DOWNLOAD"]>;
|
|
68
|
+
export declare const directTransferDescriptorSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
69
69
|
resource: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
70
70
|
kind: z.ZodLiteral<"WORKSPACE_FILE">;
|
|
71
71
|
workspaceId: z.ZodString;
|
|
@@ -105,7 +105,8 @@ export declare const directTransferDescriptorSchema: z.ZodEffects<z.ZodObject<{
|
|
|
105
105
|
}>]>;
|
|
106
106
|
fileName: z.ZodString;
|
|
107
107
|
size: z.ZodNumber;
|
|
108
|
-
|
|
108
|
+
} & {
|
|
109
|
+
direction: z.ZodLiteral<"UPLOAD">;
|
|
109
110
|
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
110
111
|
resumeOffset: z.ZodOptional<z.ZodNumber>;
|
|
111
112
|
composerAttachment: z.ZodOptional<z.ZodObject<{
|
|
@@ -119,7 +120,6 @@ export declare const directTransferDescriptorSchema: z.ZodEffects<z.ZodObject<{
|
|
|
119
120
|
mime: string;
|
|
120
121
|
}>>;
|
|
121
122
|
}, "strict", z.ZodTypeAny, {
|
|
122
|
-
direction: "UPLOAD" | "DOWNLOAD";
|
|
123
123
|
resource: {
|
|
124
124
|
path: string;
|
|
125
125
|
kind: "WORKSPACE_FILE";
|
|
@@ -135,7 +135,7 @@ export declare const directTransferDescriptorSchema: z.ZodEffects<z.ZodObject<{
|
|
|
135
135
|
};
|
|
136
136
|
fileName: string;
|
|
137
137
|
size: number;
|
|
138
|
-
|
|
138
|
+
direction: "UPLOAD";
|
|
139
139
|
overwrite?: boolean | undefined;
|
|
140
140
|
resumeOffset?: number | undefined;
|
|
141
141
|
composerAttachment?: {
|
|
@@ -143,7 +143,6 @@ export declare const directTransferDescriptorSchema: z.ZodEffects<z.ZodObject<{
|
|
|
143
143
|
mime: string;
|
|
144
144
|
} | undefined;
|
|
145
145
|
}, {
|
|
146
|
-
direction: "UPLOAD" | "DOWNLOAD";
|
|
147
146
|
resource: {
|
|
148
147
|
path: string;
|
|
149
148
|
kind: "WORKSPACE_FILE";
|
|
@@ -159,7 +158,7 @@ export declare const directTransferDescriptorSchema: z.ZodEffects<z.ZodObject<{
|
|
|
159
158
|
};
|
|
160
159
|
fileName: string;
|
|
161
160
|
size: number;
|
|
162
|
-
|
|
161
|
+
direction: "UPLOAD";
|
|
163
162
|
overwrite?: boolean | undefined;
|
|
164
163
|
resumeOffset?: number | undefined;
|
|
165
164
|
composerAttachment?: {
|
|
@@ -167,7 +166,6 @@ export declare const directTransferDescriptorSchema: z.ZodEffects<z.ZodObject<{
|
|
|
167
166
|
mime: string;
|
|
168
167
|
} | undefined;
|
|
169
168
|
}>, {
|
|
170
|
-
direction: "UPLOAD" | "DOWNLOAD";
|
|
171
169
|
resource: {
|
|
172
170
|
path: string;
|
|
173
171
|
kind: "WORKSPACE_FILE";
|
|
@@ -183,7 +181,7 @@ export declare const directTransferDescriptorSchema: z.ZodEffects<z.ZodObject<{
|
|
|
183
181
|
};
|
|
184
182
|
fileName: string;
|
|
185
183
|
size: number;
|
|
186
|
-
|
|
184
|
+
direction: "UPLOAD";
|
|
187
185
|
overwrite?: boolean | undefined;
|
|
188
186
|
resumeOffset?: number | undefined;
|
|
189
187
|
composerAttachment?: {
|
|
@@ -191,7 +189,6 @@ export declare const directTransferDescriptorSchema: z.ZodEffects<z.ZodObject<{
|
|
|
191
189
|
mime: string;
|
|
192
190
|
} | undefined;
|
|
193
191
|
}, {
|
|
194
|
-
direction: "UPLOAD" | "DOWNLOAD";
|
|
195
192
|
resource: {
|
|
196
193
|
path: string;
|
|
197
194
|
kind: "WORKSPACE_FILE";
|
|
@@ -207,14 +204,155 @@ export declare const directTransferDescriptorSchema: z.ZodEffects<z.ZodObject<{
|
|
|
207
204
|
};
|
|
208
205
|
fileName: string;
|
|
209
206
|
size: number;
|
|
210
|
-
|
|
207
|
+
direction: "UPLOAD";
|
|
211
208
|
overwrite?: boolean | undefined;
|
|
212
209
|
resumeOffset?: number | undefined;
|
|
213
210
|
composerAttachment?: {
|
|
214
211
|
id: string;
|
|
215
212
|
mime: string;
|
|
216
213
|
} | undefined;
|
|
217
|
-
}
|
|
214
|
+
}>, z.ZodEffects<z.ZodObject<{
|
|
215
|
+
resource: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
216
|
+
kind: z.ZodLiteral<"WORKSPACE_FILE">;
|
|
217
|
+
workspaceId: z.ZodString;
|
|
218
|
+
path: z.ZodString;
|
|
219
|
+
worktreePath: z.ZodOptional<z.ZodString>;
|
|
220
|
+
}, "strict", z.ZodTypeAny, {
|
|
221
|
+
path: string;
|
|
222
|
+
kind: "WORKSPACE_FILE";
|
|
223
|
+
workspaceId: string;
|
|
224
|
+
worktreePath?: string | undefined;
|
|
225
|
+
}, {
|
|
226
|
+
path: string;
|
|
227
|
+
kind: "WORKSPACE_FILE";
|
|
228
|
+
workspaceId: string;
|
|
229
|
+
worktreePath?: string | undefined;
|
|
230
|
+
}>, z.ZodObject<{
|
|
231
|
+
kind: z.ZodLiteral<"GIT_COMMIT_BLOB">;
|
|
232
|
+
workspaceId: z.ZodString;
|
|
233
|
+
commit: z.ZodString;
|
|
234
|
+
path: z.ZodString;
|
|
235
|
+
repositoryPath: z.ZodOptional<z.ZodString>;
|
|
236
|
+
worktreePath: z.ZodOptional<z.ZodString>;
|
|
237
|
+
}, "strict", z.ZodTypeAny, {
|
|
238
|
+
path: string;
|
|
239
|
+
kind: "GIT_COMMIT_BLOB";
|
|
240
|
+
workspaceId: string;
|
|
241
|
+
commit: string;
|
|
242
|
+
worktreePath?: string | undefined;
|
|
243
|
+
repositoryPath?: string | undefined;
|
|
244
|
+
}, {
|
|
245
|
+
path: string;
|
|
246
|
+
kind: "GIT_COMMIT_BLOB";
|
|
247
|
+
workspaceId: string;
|
|
248
|
+
commit: string;
|
|
249
|
+
worktreePath?: string | undefined;
|
|
250
|
+
repositoryPath?: string | undefined;
|
|
251
|
+
}>]>;
|
|
252
|
+
fileName: z.ZodString;
|
|
253
|
+
size: z.ZodNumber;
|
|
254
|
+
} & {
|
|
255
|
+
direction: z.ZodLiteral<"DOWNLOAD">;
|
|
256
|
+
revision: z.ZodString;
|
|
257
|
+
range: z.ZodOptional<z.ZodObject<{
|
|
258
|
+
offset: z.ZodNumber;
|
|
259
|
+
length: z.ZodNumber;
|
|
260
|
+
}, "strict", z.ZodTypeAny, {
|
|
261
|
+
length: number;
|
|
262
|
+
offset: number;
|
|
263
|
+
}, {
|
|
264
|
+
length: number;
|
|
265
|
+
offset: number;
|
|
266
|
+
}>>;
|
|
267
|
+
}, "strict", z.ZodTypeAny, {
|
|
268
|
+
resource: {
|
|
269
|
+
path: string;
|
|
270
|
+
kind: "WORKSPACE_FILE";
|
|
271
|
+
workspaceId: string;
|
|
272
|
+
worktreePath?: string | undefined;
|
|
273
|
+
} | {
|
|
274
|
+
path: string;
|
|
275
|
+
kind: "GIT_COMMIT_BLOB";
|
|
276
|
+
workspaceId: string;
|
|
277
|
+
commit: string;
|
|
278
|
+
worktreePath?: string | undefined;
|
|
279
|
+
repositoryPath?: string | undefined;
|
|
280
|
+
};
|
|
281
|
+
fileName: string;
|
|
282
|
+
size: number;
|
|
283
|
+
direction: "DOWNLOAD";
|
|
284
|
+
revision: string;
|
|
285
|
+
range?: {
|
|
286
|
+
length: number;
|
|
287
|
+
offset: number;
|
|
288
|
+
} | undefined;
|
|
289
|
+
}, {
|
|
290
|
+
resource: {
|
|
291
|
+
path: string;
|
|
292
|
+
kind: "WORKSPACE_FILE";
|
|
293
|
+
workspaceId: string;
|
|
294
|
+
worktreePath?: string | undefined;
|
|
295
|
+
} | {
|
|
296
|
+
path: string;
|
|
297
|
+
kind: "GIT_COMMIT_BLOB";
|
|
298
|
+
workspaceId: string;
|
|
299
|
+
commit: string;
|
|
300
|
+
worktreePath?: string | undefined;
|
|
301
|
+
repositoryPath?: string | undefined;
|
|
302
|
+
};
|
|
303
|
+
fileName: string;
|
|
304
|
+
size: number;
|
|
305
|
+
direction: "DOWNLOAD";
|
|
306
|
+
revision: string;
|
|
307
|
+
range?: {
|
|
308
|
+
length: number;
|
|
309
|
+
offset: number;
|
|
310
|
+
} | undefined;
|
|
311
|
+
}>, {
|
|
312
|
+
resource: {
|
|
313
|
+
path: string;
|
|
314
|
+
kind: "WORKSPACE_FILE";
|
|
315
|
+
workspaceId: string;
|
|
316
|
+
worktreePath?: string | undefined;
|
|
317
|
+
} | {
|
|
318
|
+
path: string;
|
|
319
|
+
kind: "GIT_COMMIT_BLOB";
|
|
320
|
+
workspaceId: string;
|
|
321
|
+
commit: string;
|
|
322
|
+
worktreePath?: string | undefined;
|
|
323
|
+
repositoryPath?: string | undefined;
|
|
324
|
+
};
|
|
325
|
+
fileName: string;
|
|
326
|
+
size: number;
|
|
327
|
+
direction: "DOWNLOAD";
|
|
328
|
+
revision: string;
|
|
329
|
+
range?: {
|
|
330
|
+
length: number;
|
|
331
|
+
offset: number;
|
|
332
|
+
} | undefined;
|
|
333
|
+
}, {
|
|
334
|
+
resource: {
|
|
335
|
+
path: string;
|
|
336
|
+
kind: "WORKSPACE_FILE";
|
|
337
|
+
workspaceId: string;
|
|
338
|
+
worktreePath?: string | undefined;
|
|
339
|
+
} | {
|
|
340
|
+
path: string;
|
|
341
|
+
kind: "GIT_COMMIT_BLOB";
|
|
342
|
+
workspaceId: string;
|
|
343
|
+
commit: string;
|
|
344
|
+
worktreePath?: string | undefined;
|
|
345
|
+
repositoryPath?: string | undefined;
|
|
346
|
+
};
|
|
347
|
+
fileName: string;
|
|
348
|
+
size: number;
|
|
349
|
+
direction: "DOWNLOAD";
|
|
350
|
+
revision: string;
|
|
351
|
+
range?: {
|
|
352
|
+
length: number;
|
|
353
|
+
offset: number;
|
|
354
|
+
} | undefined;
|
|
355
|
+
}>]>;
|
|
218
356
|
export type DirectTransferDescriptor = z.infer<typeof directTransferDescriptorSchema>;
|
|
219
357
|
export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpose", [z.ZodObject<{
|
|
220
358
|
type: z.ZodLiteral<"direct.prepare">;
|
|
@@ -222,19 +360,19 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
|
|
|
222
360
|
nodeId: z.ZodString;
|
|
223
361
|
nodeGeneration: z.ZodString;
|
|
224
362
|
} & {
|
|
225
|
-
purpose: z.ZodLiteral<"
|
|
363
|
+
purpose: z.ZodLiteral<"TRANSPORT">;
|
|
226
364
|
}, "strict", z.ZodTypeAny, {
|
|
227
365
|
type: "direct.prepare";
|
|
228
366
|
requestId: string;
|
|
229
367
|
nodeId: string;
|
|
230
368
|
nodeGeneration: string;
|
|
231
|
-
purpose: "
|
|
369
|
+
purpose: "TRANSPORT";
|
|
232
370
|
}, {
|
|
233
371
|
type: "direct.prepare";
|
|
234
372
|
requestId: string;
|
|
235
373
|
nodeId: string;
|
|
236
374
|
nodeGeneration: string;
|
|
237
|
-
purpose: "
|
|
375
|
+
purpose: "TRANSPORT";
|
|
238
376
|
}>, z.ZodObject<{
|
|
239
377
|
type: z.ZodLiteral<"direct.prepare">;
|
|
240
378
|
requestId: z.ZodString;
|
|
@@ -242,8 +380,8 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
|
|
|
242
380
|
nodeGeneration: z.ZodString;
|
|
243
381
|
} & {
|
|
244
382
|
purpose: z.ZodLiteral<"TRANSFER">;
|
|
245
|
-
|
|
246
|
-
|
|
383
|
+
transportSessionId: z.ZodString;
|
|
384
|
+
transfer: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
247
385
|
resource: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
248
386
|
kind: z.ZodLiteral<"WORKSPACE_FILE">;
|
|
249
387
|
workspaceId: z.ZodString;
|
|
@@ -283,7 +421,8 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
|
|
|
283
421
|
}>]>;
|
|
284
422
|
fileName: z.ZodString;
|
|
285
423
|
size: z.ZodNumber;
|
|
286
|
-
|
|
424
|
+
} & {
|
|
425
|
+
direction: z.ZodLiteral<"UPLOAD">;
|
|
287
426
|
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
288
427
|
resumeOffset: z.ZodOptional<z.ZodNumber>;
|
|
289
428
|
composerAttachment: z.ZodOptional<z.ZodObject<{
|
|
@@ -297,7 +436,6 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
|
|
|
297
436
|
mime: string;
|
|
298
437
|
}>>;
|
|
299
438
|
}, "strict", z.ZodTypeAny, {
|
|
300
|
-
direction: "UPLOAD" | "DOWNLOAD";
|
|
301
439
|
resource: {
|
|
302
440
|
path: string;
|
|
303
441
|
kind: "WORKSPACE_FILE";
|
|
@@ -313,7 +451,7 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
|
|
|
313
451
|
};
|
|
314
452
|
fileName: string;
|
|
315
453
|
size: number;
|
|
316
|
-
|
|
454
|
+
direction: "UPLOAD";
|
|
317
455
|
overwrite?: boolean | undefined;
|
|
318
456
|
resumeOffset?: number | undefined;
|
|
319
457
|
composerAttachment?: {
|
|
@@ -321,7 +459,6 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
|
|
|
321
459
|
mime: string;
|
|
322
460
|
} | undefined;
|
|
323
461
|
}, {
|
|
324
|
-
direction: "UPLOAD" | "DOWNLOAD";
|
|
325
462
|
resource: {
|
|
326
463
|
path: string;
|
|
327
464
|
kind: "WORKSPACE_FILE";
|
|
@@ -337,7 +474,7 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
|
|
|
337
474
|
};
|
|
338
475
|
fileName: string;
|
|
339
476
|
size: number;
|
|
340
|
-
|
|
477
|
+
direction: "UPLOAD";
|
|
341
478
|
overwrite?: boolean | undefined;
|
|
342
479
|
resumeOffset?: number | undefined;
|
|
343
480
|
composerAttachment?: {
|
|
@@ -345,7 +482,6 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
|
|
|
345
482
|
mime: string;
|
|
346
483
|
} | undefined;
|
|
347
484
|
}>, {
|
|
348
|
-
direction: "UPLOAD" | "DOWNLOAD";
|
|
349
485
|
resource: {
|
|
350
486
|
path: string;
|
|
351
487
|
kind: "WORKSPACE_FILE";
|
|
@@ -361,7 +497,7 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
|
|
|
361
497
|
};
|
|
362
498
|
fileName: string;
|
|
363
499
|
size: number;
|
|
364
|
-
|
|
500
|
+
direction: "UPLOAD";
|
|
365
501
|
overwrite?: boolean | undefined;
|
|
366
502
|
resumeOffset?: number | undefined;
|
|
367
503
|
composerAttachment?: {
|
|
@@ -369,7 +505,6 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
|
|
|
369
505
|
mime: string;
|
|
370
506
|
} | undefined;
|
|
371
507
|
}, {
|
|
372
|
-
direction: "UPLOAD" | "DOWNLOAD";
|
|
373
508
|
resource: {
|
|
374
509
|
path: string;
|
|
375
510
|
kind: "WORKSPACE_FILE";
|
|
@@ -385,22 +520,163 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
|
|
|
385
520
|
};
|
|
386
521
|
fileName: string;
|
|
387
522
|
size: number;
|
|
388
|
-
|
|
523
|
+
direction: "UPLOAD";
|
|
389
524
|
overwrite?: boolean | undefined;
|
|
390
525
|
resumeOffset?: number | undefined;
|
|
391
526
|
composerAttachment?: {
|
|
392
527
|
id: string;
|
|
393
528
|
mime: string;
|
|
394
529
|
} | undefined;
|
|
395
|
-
}
|
|
530
|
+
}>, z.ZodEffects<z.ZodObject<{
|
|
531
|
+
resource: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
532
|
+
kind: z.ZodLiteral<"WORKSPACE_FILE">;
|
|
533
|
+
workspaceId: z.ZodString;
|
|
534
|
+
path: z.ZodString;
|
|
535
|
+
worktreePath: z.ZodOptional<z.ZodString>;
|
|
536
|
+
}, "strict", z.ZodTypeAny, {
|
|
537
|
+
path: string;
|
|
538
|
+
kind: "WORKSPACE_FILE";
|
|
539
|
+
workspaceId: string;
|
|
540
|
+
worktreePath?: string | undefined;
|
|
541
|
+
}, {
|
|
542
|
+
path: string;
|
|
543
|
+
kind: "WORKSPACE_FILE";
|
|
544
|
+
workspaceId: string;
|
|
545
|
+
worktreePath?: string | undefined;
|
|
546
|
+
}>, z.ZodObject<{
|
|
547
|
+
kind: z.ZodLiteral<"GIT_COMMIT_BLOB">;
|
|
548
|
+
workspaceId: z.ZodString;
|
|
549
|
+
commit: z.ZodString;
|
|
550
|
+
path: z.ZodString;
|
|
551
|
+
repositoryPath: z.ZodOptional<z.ZodString>;
|
|
552
|
+
worktreePath: z.ZodOptional<z.ZodString>;
|
|
553
|
+
}, "strict", z.ZodTypeAny, {
|
|
554
|
+
path: string;
|
|
555
|
+
kind: "GIT_COMMIT_BLOB";
|
|
556
|
+
workspaceId: string;
|
|
557
|
+
commit: string;
|
|
558
|
+
worktreePath?: string | undefined;
|
|
559
|
+
repositoryPath?: string | undefined;
|
|
560
|
+
}, {
|
|
561
|
+
path: string;
|
|
562
|
+
kind: "GIT_COMMIT_BLOB";
|
|
563
|
+
workspaceId: string;
|
|
564
|
+
commit: string;
|
|
565
|
+
worktreePath?: string | undefined;
|
|
566
|
+
repositoryPath?: string | undefined;
|
|
567
|
+
}>]>;
|
|
568
|
+
fileName: z.ZodString;
|
|
569
|
+
size: z.ZodNumber;
|
|
570
|
+
} & {
|
|
571
|
+
direction: z.ZodLiteral<"DOWNLOAD">;
|
|
572
|
+
revision: z.ZodString;
|
|
573
|
+
range: z.ZodOptional<z.ZodObject<{
|
|
574
|
+
offset: z.ZodNumber;
|
|
575
|
+
length: z.ZodNumber;
|
|
576
|
+
}, "strict", z.ZodTypeAny, {
|
|
577
|
+
length: number;
|
|
578
|
+
offset: number;
|
|
579
|
+
}, {
|
|
580
|
+
length: number;
|
|
581
|
+
offset: number;
|
|
582
|
+
}>>;
|
|
583
|
+
}, "strict", z.ZodTypeAny, {
|
|
584
|
+
resource: {
|
|
585
|
+
path: string;
|
|
586
|
+
kind: "WORKSPACE_FILE";
|
|
587
|
+
workspaceId: string;
|
|
588
|
+
worktreePath?: string | undefined;
|
|
589
|
+
} | {
|
|
590
|
+
path: string;
|
|
591
|
+
kind: "GIT_COMMIT_BLOB";
|
|
592
|
+
workspaceId: string;
|
|
593
|
+
commit: string;
|
|
594
|
+
worktreePath?: string | undefined;
|
|
595
|
+
repositoryPath?: string | undefined;
|
|
596
|
+
};
|
|
597
|
+
fileName: string;
|
|
598
|
+
size: number;
|
|
599
|
+
direction: "DOWNLOAD";
|
|
600
|
+
revision: string;
|
|
601
|
+
range?: {
|
|
602
|
+
length: number;
|
|
603
|
+
offset: number;
|
|
604
|
+
} | undefined;
|
|
605
|
+
}, {
|
|
606
|
+
resource: {
|
|
607
|
+
path: string;
|
|
608
|
+
kind: "WORKSPACE_FILE";
|
|
609
|
+
workspaceId: string;
|
|
610
|
+
worktreePath?: string | undefined;
|
|
611
|
+
} | {
|
|
612
|
+
path: string;
|
|
613
|
+
kind: "GIT_COMMIT_BLOB";
|
|
614
|
+
workspaceId: string;
|
|
615
|
+
commit: string;
|
|
616
|
+
worktreePath?: string | undefined;
|
|
617
|
+
repositoryPath?: string | undefined;
|
|
618
|
+
};
|
|
619
|
+
fileName: string;
|
|
620
|
+
size: number;
|
|
621
|
+
direction: "DOWNLOAD";
|
|
622
|
+
revision: string;
|
|
623
|
+
range?: {
|
|
624
|
+
length: number;
|
|
625
|
+
offset: number;
|
|
626
|
+
} | undefined;
|
|
627
|
+
}>, {
|
|
628
|
+
resource: {
|
|
629
|
+
path: string;
|
|
630
|
+
kind: "WORKSPACE_FILE";
|
|
631
|
+
workspaceId: string;
|
|
632
|
+
worktreePath?: string | undefined;
|
|
633
|
+
} | {
|
|
634
|
+
path: string;
|
|
635
|
+
kind: "GIT_COMMIT_BLOB";
|
|
636
|
+
workspaceId: string;
|
|
637
|
+
commit: string;
|
|
638
|
+
worktreePath?: string | undefined;
|
|
639
|
+
repositoryPath?: string | undefined;
|
|
640
|
+
};
|
|
641
|
+
fileName: string;
|
|
642
|
+
size: number;
|
|
643
|
+
direction: "DOWNLOAD";
|
|
644
|
+
revision: string;
|
|
645
|
+
range?: {
|
|
646
|
+
length: number;
|
|
647
|
+
offset: number;
|
|
648
|
+
} | undefined;
|
|
649
|
+
}, {
|
|
650
|
+
resource: {
|
|
651
|
+
path: string;
|
|
652
|
+
kind: "WORKSPACE_FILE";
|
|
653
|
+
workspaceId: string;
|
|
654
|
+
worktreePath?: string | undefined;
|
|
655
|
+
} | {
|
|
656
|
+
path: string;
|
|
657
|
+
kind: "GIT_COMMIT_BLOB";
|
|
658
|
+
workspaceId: string;
|
|
659
|
+
commit: string;
|
|
660
|
+
worktreePath?: string | undefined;
|
|
661
|
+
repositoryPath?: string | undefined;
|
|
662
|
+
};
|
|
663
|
+
fileName: string;
|
|
664
|
+
size: number;
|
|
665
|
+
direction: "DOWNLOAD";
|
|
666
|
+
revision: string;
|
|
667
|
+
range?: {
|
|
668
|
+
length: number;
|
|
669
|
+
offset: number;
|
|
670
|
+
} | undefined;
|
|
671
|
+
}>]>;
|
|
396
672
|
}, "strict", z.ZodTypeAny, {
|
|
397
673
|
type: "direct.prepare";
|
|
398
674
|
requestId: string;
|
|
399
675
|
nodeId: string;
|
|
400
676
|
nodeGeneration: string;
|
|
401
677
|
purpose: "TRANSFER";
|
|
678
|
+
transportSessionId: string;
|
|
402
679
|
transfer: {
|
|
403
|
-
direction: "UPLOAD" | "DOWNLOAD";
|
|
404
680
|
resource: {
|
|
405
681
|
path: string;
|
|
406
682
|
kind: "WORKSPACE_FILE";
|
|
@@ -416,13 +692,35 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
|
|
|
416
692
|
};
|
|
417
693
|
fileName: string;
|
|
418
694
|
size: number;
|
|
419
|
-
|
|
695
|
+
direction: "UPLOAD";
|
|
420
696
|
overwrite?: boolean | undefined;
|
|
421
697
|
resumeOffset?: number | undefined;
|
|
422
698
|
composerAttachment?: {
|
|
423
699
|
id: string;
|
|
424
700
|
mime: string;
|
|
425
701
|
} | undefined;
|
|
702
|
+
} | {
|
|
703
|
+
resource: {
|
|
704
|
+
path: string;
|
|
705
|
+
kind: "WORKSPACE_FILE";
|
|
706
|
+
workspaceId: string;
|
|
707
|
+
worktreePath?: string | undefined;
|
|
708
|
+
} | {
|
|
709
|
+
path: string;
|
|
710
|
+
kind: "GIT_COMMIT_BLOB";
|
|
711
|
+
workspaceId: string;
|
|
712
|
+
commit: string;
|
|
713
|
+
worktreePath?: string | undefined;
|
|
714
|
+
repositoryPath?: string | undefined;
|
|
715
|
+
};
|
|
716
|
+
fileName: string;
|
|
717
|
+
size: number;
|
|
718
|
+
direction: "DOWNLOAD";
|
|
719
|
+
revision: string;
|
|
720
|
+
range?: {
|
|
721
|
+
length: number;
|
|
722
|
+
offset: number;
|
|
723
|
+
} | undefined;
|
|
426
724
|
};
|
|
427
725
|
}, {
|
|
428
726
|
type: "direct.prepare";
|
|
@@ -430,8 +728,8 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
|
|
|
430
728
|
nodeId: string;
|
|
431
729
|
nodeGeneration: string;
|
|
432
730
|
purpose: "TRANSFER";
|
|
731
|
+
transportSessionId: string;
|
|
433
732
|
transfer: {
|
|
434
|
-
direction: "UPLOAD" | "DOWNLOAD";
|
|
435
733
|
resource: {
|
|
436
734
|
path: string;
|
|
437
735
|
kind: "WORKSPACE_FILE";
|
|
@@ -447,13 +745,35 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
|
|
|
447
745
|
};
|
|
448
746
|
fileName: string;
|
|
449
747
|
size: number;
|
|
450
|
-
|
|
748
|
+
direction: "UPLOAD";
|
|
451
749
|
overwrite?: boolean | undefined;
|
|
452
750
|
resumeOffset?: number | undefined;
|
|
453
751
|
composerAttachment?: {
|
|
454
752
|
id: string;
|
|
455
753
|
mime: string;
|
|
456
754
|
} | undefined;
|
|
755
|
+
} | {
|
|
756
|
+
resource: {
|
|
757
|
+
path: string;
|
|
758
|
+
kind: "WORKSPACE_FILE";
|
|
759
|
+
workspaceId: string;
|
|
760
|
+
worktreePath?: string | undefined;
|
|
761
|
+
} | {
|
|
762
|
+
path: string;
|
|
763
|
+
kind: "GIT_COMMIT_BLOB";
|
|
764
|
+
workspaceId: string;
|
|
765
|
+
commit: string;
|
|
766
|
+
worktreePath?: string | undefined;
|
|
767
|
+
repositoryPath?: string | undefined;
|
|
768
|
+
};
|
|
769
|
+
fileName: string;
|
|
770
|
+
size: number;
|
|
771
|
+
direction: "DOWNLOAD";
|
|
772
|
+
revision: string;
|
|
773
|
+
range?: {
|
|
774
|
+
length: number;
|
|
775
|
+
offset: number;
|
|
776
|
+
} | undefined;
|
|
457
777
|
};
|
|
458
778
|
}>]>;
|
|
459
779
|
export type DirectPrepareRequest = z.infer<typeof directPrepareRequestSchema>;
|
|
@@ -538,19 +858,19 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
|
|
|
538
858
|
nodeId: z.ZodString;
|
|
539
859
|
nodeGeneration: z.ZodString;
|
|
540
860
|
} & {
|
|
541
|
-
purpose: z.ZodLiteral<"
|
|
861
|
+
purpose: z.ZodLiteral<"TRANSPORT">;
|
|
542
862
|
}, "strict", z.ZodTypeAny, {
|
|
543
863
|
type: "direct.prepare";
|
|
544
864
|
requestId: string;
|
|
545
865
|
nodeId: string;
|
|
546
866
|
nodeGeneration: string;
|
|
547
|
-
purpose: "
|
|
867
|
+
purpose: "TRANSPORT";
|
|
548
868
|
}, {
|
|
549
869
|
type: "direct.prepare";
|
|
550
870
|
requestId: string;
|
|
551
871
|
nodeId: string;
|
|
552
872
|
nodeGeneration: string;
|
|
553
|
-
purpose: "
|
|
873
|
+
purpose: "TRANSPORT";
|
|
554
874
|
}>, z.ZodObject<{
|
|
555
875
|
type: z.ZodLiteral<"direct.prepare">;
|
|
556
876
|
requestId: z.ZodString;
|
|
@@ -558,8 +878,8 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
|
|
|
558
878
|
nodeGeneration: z.ZodString;
|
|
559
879
|
} & {
|
|
560
880
|
purpose: z.ZodLiteral<"TRANSFER">;
|
|
561
|
-
|
|
562
|
-
|
|
881
|
+
transportSessionId: z.ZodString;
|
|
882
|
+
transfer: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
563
883
|
resource: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
564
884
|
kind: z.ZodLiteral<"WORKSPACE_FILE">;
|
|
565
885
|
workspaceId: z.ZodString;
|
|
@@ -599,7 +919,8 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
|
|
|
599
919
|
}>]>;
|
|
600
920
|
fileName: z.ZodString;
|
|
601
921
|
size: z.ZodNumber;
|
|
602
|
-
|
|
922
|
+
} & {
|
|
923
|
+
direction: z.ZodLiteral<"UPLOAD">;
|
|
603
924
|
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
604
925
|
resumeOffset: z.ZodOptional<z.ZodNumber>;
|
|
605
926
|
composerAttachment: z.ZodOptional<z.ZodObject<{
|
|
@@ -613,7 +934,6 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
|
|
|
613
934
|
mime: string;
|
|
614
935
|
}>>;
|
|
615
936
|
}, "strict", z.ZodTypeAny, {
|
|
616
|
-
direction: "UPLOAD" | "DOWNLOAD";
|
|
617
937
|
resource: {
|
|
618
938
|
path: string;
|
|
619
939
|
kind: "WORKSPACE_FILE";
|
|
@@ -629,7 +949,7 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
|
|
|
629
949
|
};
|
|
630
950
|
fileName: string;
|
|
631
951
|
size: number;
|
|
632
|
-
|
|
952
|
+
direction: "UPLOAD";
|
|
633
953
|
overwrite?: boolean | undefined;
|
|
634
954
|
resumeOffset?: number | undefined;
|
|
635
955
|
composerAttachment?: {
|
|
@@ -637,7 +957,6 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
|
|
|
637
957
|
mime: string;
|
|
638
958
|
} | undefined;
|
|
639
959
|
}, {
|
|
640
|
-
direction: "UPLOAD" | "DOWNLOAD";
|
|
641
960
|
resource: {
|
|
642
961
|
path: string;
|
|
643
962
|
kind: "WORKSPACE_FILE";
|
|
@@ -653,15 +972,209 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
|
|
|
653
972
|
};
|
|
654
973
|
fileName: string;
|
|
655
974
|
size: number;
|
|
656
|
-
|
|
657
|
-
overwrite?: boolean | undefined;
|
|
658
|
-
resumeOffset?: number | undefined;
|
|
659
|
-
composerAttachment?: {
|
|
660
|
-
id: string;
|
|
661
|
-
mime: string;
|
|
975
|
+
direction: "UPLOAD";
|
|
976
|
+
overwrite?: boolean | undefined;
|
|
977
|
+
resumeOffset?: number | undefined;
|
|
978
|
+
composerAttachment?: {
|
|
979
|
+
id: string;
|
|
980
|
+
mime: string;
|
|
981
|
+
} | undefined;
|
|
982
|
+
}>, {
|
|
983
|
+
resource: {
|
|
984
|
+
path: string;
|
|
985
|
+
kind: "WORKSPACE_FILE";
|
|
986
|
+
workspaceId: string;
|
|
987
|
+
worktreePath?: string | undefined;
|
|
988
|
+
} | {
|
|
989
|
+
path: string;
|
|
990
|
+
kind: "GIT_COMMIT_BLOB";
|
|
991
|
+
workspaceId: string;
|
|
992
|
+
commit: string;
|
|
993
|
+
worktreePath?: string | undefined;
|
|
994
|
+
repositoryPath?: string | undefined;
|
|
995
|
+
};
|
|
996
|
+
fileName: string;
|
|
997
|
+
size: number;
|
|
998
|
+
direction: "UPLOAD";
|
|
999
|
+
overwrite?: boolean | undefined;
|
|
1000
|
+
resumeOffset?: number | undefined;
|
|
1001
|
+
composerAttachment?: {
|
|
1002
|
+
id: string;
|
|
1003
|
+
mime: string;
|
|
1004
|
+
} | undefined;
|
|
1005
|
+
}, {
|
|
1006
|
+
resource: {
|
|
1007
|
+
path: string;
|
|
1008
|
+
kind: "WORKSPACE_FILE";
|
|
1009
|
+
workspaceId: string;
|
|
1010
|
+
worktreePath?: string | undefined;
|
|
1011
|
+
} | {
|
|
1012
|
+
path: string;
|
|
1013
|
+
kind: "GIT_COMMIT_BLOB";
|
|
1014
|
+
workspaceId: string;
|
|
1015
|
+
commit: string;
|
|
1016
|
+
worktreePath?: string | undefined;
|
|
1017
|
+
repositoryPath?: string | undefined;
|
|
1018
|
+
};
|
|
1019
|
+
fileName: string;
|
|
1020
|
+
size: number;
|
|
1021
|
+
direction: "UPLOAD";
|
|
1022
|
+
overwrite?: boolean | undefined;
|
|
1023
|
+
resumeOffset?: number | undefined;
|
|
1024
|
+
composerAttachment?: {
|
|
1025
|
+
id: string;
|
|
1026
|
+
mime: string;
|
|
1027
|
+
} | undefined;
|
|
1028
|
+
}>, z.ZodEffects<z.ZodObject<{
|
|
1029
|
+
resource: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1030
|
+
kind: z.ZodLiteral<"WORKSPACE_FILE">;
|
|
1031
|
+
workspaceId: z.ZodString;
|
|
1032
|
+
path: z.ZodString;
|
|
1033
|
+
worktreePath: z.ZodOptional<z.ZodString>;
|
|
1034
|
+
}, "strict", z.ZodTypeAny, {
|
|
1035
|
+
path: string;
|
|
1036
|
+
kind: "WORKSPACE_FILE";
|
|
1037
|
+
workspaceId: string;
|
|
1038
|
+
worktreePath?: string | undefined;
|
|
1039
|
+
}, {
|
|
1040
|
+
path: string;
|
|
1041
|
+
kind: "WORKSPACE_FILE";
|
|
1042
|
+
workspaceId: string;
|
|
1043
|
+
worktreePath?: string | undefined;
|
|
1044
|
+
}>, z.ZodObject<{
|
|
1045
|
+
kind: z.ZodLiteral<"GIT_COMMIT_BLOB">;
|
|
1046
|
+
workspaceId: z.ZodString;
|
|
1047
|
+
commit: z.ZodString;
|
|
1048
|
+
path: z.ZodString;
|
|
1049
|
+
repositoryPath: z.ZodOptional<z.ZodString>;
|
|
1050
|
+
worktreePath: z.ZodOptional<z.ZodString>;
|
|
1051
|
+
}, "strict", z.ZodTypeAny, {
|
|
1052
|
+
path: string;
|
|
1053
|
+
kind: "GIT_COMMIT_BLOB";
|
|
1054
|
+
workspaceId: string;
|
|
1055
|
+
commit: string;
|
|
1056
|
+
worktreePath?: string | undefined;
|
|
1057
|
+
repositoryPath?: string | undefined;
|
|
1058
|
+
}, {
|
|
1059
|
+
path: string;
|
|
1060
|
+
kind: "GIT_COMMIT_BLOB";
|
|
1061
|
+
workspaceId: string;
|
|
1062
|
+
commit: string;
|
|
1063
|
+
worktreePath?: string | undefined;
|
|
1064
|
+
repositoryPath?: string | undefined;
|
|
1065
|
+
}>]>;
|
|
1066
|
+
fileName: z.ZodString;
|
|
1067
|
+
size: z.ZodNumber;
|
|
1068
|
+
} & {
|
|
1069
|
+
direction: z.ZodLiteral<"DOWNLOAD">;
|
|
1070
|
+
revision: z.ZodString;
|
|
1071
|
+
range: z.ZodOptional<z.ZodObject<{
|
|
1072
|
+
offset: z.ZodNumber;
|
|
1073
|
+
length: z.ZodNumber;
|
|
1074
|
+
}, "strict", z.ZodTypeAny, {
|
|
1075
|
+
length: number;
|
|
1076
|
+
offset: number;
|
|
1077
|
+
}, {
|
|
1078
|
+
length: number;
|
|
1079
|
+
offset: number;
|
|
1080
|
+
}>>;
|
|
1081
|
+
}, "strict", z.ZodTypeAny, {
|
|
1082
|
+
resource: {
|
|
1083
|
+
path: string;
|
|
1084
|
+
kind: "WORKSPACE_FILE";
|
|
1085
|
+
workspaceId: string;
|
|
1086
|
+
worktreePath?: string | undefined;
|
|
1087
|
+
} | {
|
|
1088
|
+
path: string;
|
|
1089
|
+
kind: "GIT_COMMIT_BLOB";
|
|
1090
|
+
workspaceId: string;
|
|
1091
|
+
commit: string;
|
|
1092
|
+
worktreePath?: string | undefined;
|
|
1093
|
+
repositoryPath?: string | undefined;
|
|
1094
|
+
};
|
|
1095
|
+
fileName: string;
|
|
1096
|
+
size: number;
|
|
1097
|
+
direction: "DOWNLOAD";
|
|
1098
|
+
revision: string;
|
|
1099
|
+
range?: {
|
|
1100
|
+
length: number;
|
|
1101
|
+
offset: number;
|
|
1102
|
+
} | undefined;
|
|
1103
|
+
}, {
|
|
1104
|
+
resource: {
|
|
1105
|
+
path: string;
|
|
1106
|
+
kind: "WORKSPACE_FILE";
|
|
1107
|
+
workspaceId: string;
|
|
1108
|
+
worktreePath?: string | undefined;
|
|
1109
|
+
} | {
|
|
1110
|
+
path: string;
|
|
1111
|
+
kind: "GIT_COMMIT_BLOB";
|
|
1112
|
+
workspaceId: string;
|
|
1113
|
+
commit: string;
|
|
1114
|
+
worktreePath?: string | undefined;
|
|
1115
|
+
repositoryPath?: string | undefined;
|
|
1116
|
+
};
|
|
1117
|
+
fileName: string;
|
|
1118
|
+
size: number;
|
|
1119
|
+
direction: "DOWNLOAD";
|
|
1120
|
+
revision: string;
|
|
1121
|
+
range?: {
|
|
1122
|
+
length: number;
|
|
1123
|
+
offset: number;
|
|
1124
|
+
} | undefined;
|
|
1125
|
+
}>, {
|
|
1126
|
+
resource: {
|
|
1127
|
+
path: string;
|
|
1128
|
+
kind: "WORKSPACE_FILE";
|
|
1129
|
+
workspaceId: string;
|
|
1130
|
+
worktreePath?: string | undefined;
|
|
1131
|
+
} | {
|
|
1132
|
+
path: string;
|
|
1133
|
+
kind: "GIT_COMMIT_BLOB";
|
|
1134
|
+
workspaceId: string;
|
|
1135
|
+
commit: string;
|
|
1136
|
+
worktreePath?: string | undefined;
|
|
1137
|
+
repositoryPath?: string | undefined;
|
|
1138
|
+
};
|
|
1139
|
+
fileName: string;
|
|
1140
|
+
size: number;
|
|
1141
|
+
direction: "DOWNLOAD";
|
|
1142
|
+
revision: string;
|
|
1143
|
+
range?: {
|
|
1144
|
+
length: number;
|
|
1145
|
+
offset: number;
|
|
1146
|
+
} | undefined;
|
|
1147
|
+
}, {
|
|
1148
|
+
resource: {
|
|
1149
|
+
path: string;
|
|
1150
|
+
kind: "WORKSPACE_FILE";
|
|
1151
|
+
workspaceId: string;
|
|
1152
|
+
worktreePath?: string | undefined;
|
|
1153
|
+
} | {
|
|
1154
|
+
path: string;
|
|
1155
|
+
kind: "GIT_COMMIT_BLOB";
|
|
1156
|
+
workspaceId: string;
|
|
1157
|
+
commit: string;
|
|
1158
|
+
worktreePath?: string | undefined;
|
|
1159
|
+
repositoryPath?: string | undefined;
|
|
1160
|
+
};
|
|
1161
|
+
fileName: string;
|
|
1162
|
+
size: number;
|
|
1163
|
+
direction: "DOWNLOAD";
|
|
1164
|
+
revision: string;
|
|
1165
|
+
range?: {
|
|
1166
|
+
length: number;
|
|
1167
|
+
offset: number;
|
|
662
1168
|
} | undefined;
|
|
663
|
-
}
|
|
664
|
-
|
|
1169
|
+
}>]>;
|
|
1170
|
+
}, "strict", z.ZodTypeAny, {
|
|
1171
|
+
type: "direct.prepare";
|
|
1172
|
+
requestId: string;
|
|
1173
|
+
nodeId: string;
|
|
1174
|
+
nodeGeneration: string;
|
|
1175
|
+
purpose: "TRANSFER";
|
|
1176
|
+
transportSessionId: string;
|
|
1177
|
+
transfer: {
|
|
665
1178
|
resource: {
|
|
666
1179
|
path: string;
|
|
667
1180
|
kind: "WORKSPACE_FILE";
|
|
@@ -677,15 +1190,14 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
|
|
|
677
1190
|
};
|
|
678
1191
|
fileName: string;
|
|
679
1192
|
size: number;
|
|
680
|
-
|
|
1193
|
+
direction: "UPLOAD";
|
|
681
1194
|
overwrite?: boolean | undefined;
|
|
682
1195
|
resumeOffset?: number | undefined;
|
|
683
1196
|
composerAttachment?: {
|
|
684
1197
|
id: string;
|
|
685
1198
|
mime: string;
|
|
686
1199
|
} | undefined;
|
|
687
|
-
}
|
|
688
|
-
direction: "UPLOAD" | "DOWNLOAD";
|
|
1200
|
+
} | {
|
|
689
1201
|
resource: {
|
|
690
1202
|
path: string;
|
|
691
1203
|
kind: "WORKSPACE_FILE";
|
|
@@ -701,22 +1213,21 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
|
|
|
701
1213
|
};
|
|
702
1214
|
fileName: string;
|
|
703
1215
|
size: number;
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
mime: string;
|
|
1216
|
+
direction: "DOWNLOAD";
|
|
1217
|
+
revision: string;
|
|
1218
|
+
range?: {
|
|
1219
|
+
length: number;
|
|
1220
|
+
offset: number;
|
|
710
1221
|
} | undefined;
|
|
711
|
-
}
|
|
712
|
-
},
|
|
1222
|
+
};
|
|
1223
|
+
}, {
|
|
713
1224
|
type: "direct.prepare";
|
|
714
1225
|
requestId: string;
|
|
715
1226
|
nodeId: string;
|
|
716
1227
|
nodeGeneration: string;
|
|
717
1228
|
purpose: "TRANSFER";
|
|
1229
|
+
transportSessionId: string;
|
|
718
1230
|
transfer: {
|
|
719
|
-
direction: "UPLOAD" | "DOWNLOAD";
|
|
720
1231
|
resource: {
|
|
721
1232
|
path: string;
|
|
722
1233
|
kind: "WORKSPACE_FILE";
|
|
@@ -732,22 +1243,14 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
|
|
|
732
1243
|
};
|
|
733
1244
|
fileName: string;
|
|
734
1245
|
size: number;
|
|
735
|
-
|
|
1246
|
+
direction: "UPLOAD";
|
|
736
1247
|
overwrite?: boolean | undefined;
|
|
737
1248
|
resumeOffset?: number | undefined;
|
|
738
1249
|
composerAttachment?: {
|
|
739
1250
|
id: string;
|
|
740
1251
|
mime: string;
|
|
741
1252
|
} | undefined;
|
|
742
|
-
}
|
|
743
|
-
}, {
|
|
744
|
-
type: "direct.prepare";
|
|
745
|
-
requestId: string;
|
|
746
|
-
nodeId: string;
|
|
747
|
-
nodeGeneration: string;
|
|
748
|
-
purpose: "TRANSFER";
|
|
749
|
-
transfer: {
|
|
750
|
-
direction: "UPLOAD" | "DOWNLOAD";
|
|
1253
|
+
} | {
|
|
751
1254
|
resource: {
|
|
752
1255
|
path: string;
|
|
753
1256
|
kind: "WORKSPACE_FILE";
|
|
@@ -763,12 +1266,11 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
|
|
|
763
1266
|
};
|
|
764
1267
|
fileName: string;
|
|
765
1268
|
size: number;
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
mime: string;
|
|
1269
|
+
direction: "DOWNLOAD";
|
|
1270
|
+
revision: string;
|
|
1271
|
+
range?: {
|
|
1272
|
+
length: number;
|
|
1273
|
+
offset: number;
|
|
772
1274
|
} | undefined;
|
|
773
1275
|
};
|
|
774
1276
|
}>]>, z.ZodObject<{
|
|
@@ -902,16 +1404,13 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
|
|
|
902
1404
|
} & {
|
|
903
1405
|
type: z.ZodLiteral<"direct.complete">;
|
|
904
1406
|
size: z.ZodNumber;
|
|
905
|
-
sha256: z.ZodString;
|
|
906
1407
|
}, "strict", z.ZodTypeAny, {
|
|
907
1408
|
type: "direct.complete";
|
|
908
1409
|
size: number;
|
|
909
|
-
sha256: string;
|
|
910
1410
|
directSessionId: string;
|
|
911
1411
|
}, {
|
|
912
1412
|
type: "direct.complete";
|
|
913
1413
|
size: number;
|
|
914
|
-
sha256: string;
|
|
915
1414
|
directSessionId: string;
|
|
916
1415
|
}>, z.ZodObject<{
|
|
917
1416
|
directSessionId: z.ZodString;
|
|
@@ -934,27 +1433,30 @@ export declare const directServerMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
934
1433
|
directSessionId: z.ZodString;
|
|
935
1434
|
nodeId: z.ZodString;
|
|
936
1435
|
nodeGeneration: z.ZodString;
|
|
937
|
-
purpose: z.ZodEnum<["
|
|
1436
|
+
purpose: z.ZodEnum<["TRANSPORT", "TRANSFER"]>;
|
|
938
1437
|
expiresAt: z.ZodNumber;
|
|
1438
|
+
transportSessionId: z.ZodOptional<z.ZodString>;
|
|
939
1439
|
resumeOffset: z.ZodOptional<z.ZodNumber>;
|
|
940
1440
|
}, "strict", z.ZodTypeAny, {
|
|
941
1441
|
type: "direct.prepared";
|
|
942
1442
|
requestId: string;
|
|
943
1443
|
nodeId: string;
|
|
944
1444
|
nodeGeneration: string;
|
|
945
|
-
purpose: "
|
|
1445
|
+
purpose: "TRANSPORT" | "TRANSFER";
|
|
946
1446
|
directSessionId: string;
|
|
947
1447
|
expiresAt: number;
|
|
948
1448
|
resumeOffset?: number | undefined;
|
|
1449
|
+
transportSessionId?: string | undefined;
|
|
949
1450
|
}, {
|
|
950
1451
|
type: "direct.prepared";
|
|
951
1452
|
requestId: string;
|
|
952
1453
|
nodeId: string;
|
|
953
1454
|
nodeGeneration: string;
|
|
954
|
-
purpose: "
|
|
1455
|
+
purpose: "TRANSPORT" | "TRANSFER";
|
|
955
1456
|
directSessionId: string;
|
|
956
1457
|
expiresAt: number;
|
|
957
1458
|
resumeOffset?: number | undefined;
|
|
1459
|
+
transportSessionId?: string | undefined;
|
|
958
1460
|
}>, z.ZodObject<{
|
|
959
1461
|
directSessionId: z.ZodString;
|
|
960
1462
|
} & {
|
|
@@ -1082,22 +1584,6 @@ export declare const directServerMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
1082
1584
|
openExpiresAt: number;
|
|
1083
1585
|
}>, z.ZodObject<{
|
|
1084
1586
|
directSessionId: z.ZodString;
|
|
1085
|
-
} & {
|
|
1086
|
-
type: z.ZodLiteral<"direct.probe-result">;
|
|
1087
|
-
result: z.ZodEnum<["DIRECT_AVAILABLE", "RELAY_ONLY"]>;
|
|
1088
|
-
routingHint: z.ZodOptional<z.ZodString>;
|
|
1089
|
-
}, "strict", z.ZodTypeAny, {
|
|
1090
|
-
type: "direct.probe-result";
|
|
1091
|
-
directSessionId: string;
|
|
1092
|
-
result: "DIRECT_AVAILABLE" | "RELAY_ONLY";
|
|
1093
|
-
routingHint?: string | undefined;
|
|
1094
|
-
}, {
|
|
1095
|
-
type: "direct.probe-result";
|
|
1096
|
-
directSessionId: string;
|
|
1097
|
-
result: "DIRECT_AVAILABLE" | "RELAY_ONLY";
|
|
1098
|
-
routingHint?: string | undefined;
|
|
1099
|
-
}>, z.ZodObject<{
|
|
1100
|
-
directSessionId: z.ZodString;
|
|
1101
1587
|
} & {
|
|
1102
1588
|
type: z.ZodLiteral<"direct.heartbeat">;
|
|
1103
1589
|
alive: z.ZodLiteral<true>;
|
|
@@ -1119,27 +1605,24 @@ export declare const directServerMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
1119
1605
|
offset: z.ZodNumber;
|
|
1120
1606
|
}, "strict", z.ZodTypeAny, {
|
|
1121
1607
|
type: "direct.opened";
|
|
1122
|
-
directSessionId: string;
|
|
1123
1608
|
offset: number;
|
|
1609
|
+
directSessionId: string;
|
|
1124
1610
|
}, {
|
|
1125
1611
|
type: "direct.opened";
|
|
1126
|
-
directSessionId: string;
|
|
1127
1612
|
offset: number;
|
|
1613
|
+
directSessionId: string;
|
|
1128
1614
|
}>, z.ZodObject<{
|
|
1129
1615
|
directSessionId: z.ZodString;
|
|
1130
1616
|
} & {
|
|
1131
1617
|
type: z.ZodLiteral<"direct.complete">;
|
|
1132
1618
|
size: z.ZodNumber;
|
|
1133
|
-
sha256: z.ZodString;
|
|
1134
1619
|
}, "strict", z.ZodTypeAny, {
|
|
1135
1620
|
type: "direct.complete";
|
|
1136
1621
|
size: number;
|
|
1137
|
-
sha256: string;
|
|
1138
1622
|
directSessionId: string;
|
|
1139
1623
|
}, {
|
|
1140
1624
|
type: "direct.complete";
|
|
1141
1625
|
size: number;
|
|
1142
|
-
sha256: string;
|
|
1143
1626
|
directSessionId: string;
|
|
1144
1627
|
}>, z.ZodObject<{
|
|
1145
1628
|
directSessionId: z.ZodString;
|
|
@@ -1174,15 +1657,39 @@ export declare const directServerMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
1174
1657
|
directSessionId?: string | undefined;
|
|
1175
1658
|
}>]>;
|
|
1176
1659
|
export type DirectServerMessage = z.infer<typeof directServerMessageSchema>;
|
|
1177
|
-
export declare const directNodeCommandSchema: z.
|
|
1660
|
+
export declare const directNodeCommandSchema: z.ZodUnion<[z.ZodObject<{
|
|
1661
|
+
type: z.ZodLiteral<"direct.prepare">;
|
|
1662
|
+
directSessionId: z.ZodString;
|
|
1663
|
+
workbenchConnectionId: z.ZodString;
|
|
1664
|
+
nodeGeneration: z.ZodString;
|
|
1665
|
+
purpose: z.ZodLiteral<"TRANSPORT">;
|
|
1666
|
+
expiresAt: z.ZodNumber;
|
|
1667
|
+
userAuthorization: z.ZodUnknown;
|
|
1668
|
+
}, "strict", z.ZodTypeAny, {
|
|
1669
|
+
type: "direct.prepare";
|
|
1670
|
+
nodeGeneration: string;
|
|
1671
|
+
purpose: "TRANSPORT";
|
|
1672
|
+
directSessionId: string;
|
|
1673
|
+
expiresAt: number;
|
|
1674
|
+
workbenchConnectionId: string;
|
|
1675
|
+
userAuthorization?: unknown;
|
|
1676
|
+
}, {
|
|
1677
|
+
type: "direct.prepare";
|
|
1678
|
+
nodeGeneration: string;
|
|
1679
|
+
purpose: "TRANSPORT";
|
|
1680
|
+
directSessionId: string;
|
|
1681
|
+
expiresAt: number;
|
|
1682
|
+
workbenchConnectionId: string;
|
|
1683
|
+
userAuthorization?: unknown;
|
|
1684
|
+
}>, z.ZodObject<{
|
|
1178
1685
|
type: z.ZodLiteral<"direct.prepare">;
|
|
1179
1686
|
directSessionId: z.ZodString;
|
|
1687
|
+
transportSessionId: z.ZodString;
|
|
1180
1688
|
workbenchConnectionId: z.ZodString;
|
|
1181
1689
|
nodeGeneration: z.ZodString;
|
|
1182
|
-
purpose: z.
|
|
1690
|
+
purpose: z.ZodLiteral<"TRANSFER">;
|
|
1183
1691
|
expiresAt: z.ZodNumber;
|
|
1184
|
-
transfer: z.
|
|
1185
|
-
direction: z.ZodEnum<["UPLOAD", "DOWNLOAD"]>;
|
|
1692
|
+
transfer: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
1186
1693
|
resource: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1187
1694
|
kind: z.ZodLiteral<"WORKSPACE_FILE">;
|
|
1188
1695
|
workspaceId: z.ZodString;
|
|
@@ -1222,7 +1729,8 @@ export declare const directNodeCommandSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1222
1729
|
}>]>;
|
|
1223
1730
|
fileName: z.ZodString;
|
|
1224
1731
|
size: z.ZodNumber;
|
|
1225
|
-
|
|
1732
|
+
} & {
|
|
1733
|
+
direction: z.ZodLiteral<"UPLOAD">;
|
|
1226
1734
|
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
1227
1735
|
resumeOffset: z.ZodOptional<z.ZodNumber>;
|
|
1228
1736
|
composerAttachment: z.ZodOptional<z.ZodObject<{
|
|
@@ -1236,7 +1744,6 @@ export declare const directNodeCommandSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1236
1744
|
mime: string;
|
|
1237
1745
|
}>>;
|
|
1238
1746
|
}, "strict", z.ZodTypeAny, {
|
|
1239
|
-
direction: "UPLOAD" | "DOWNLOAD";
|
|
1240
1747
|
resource: {
|
|
1241
1748
|
path: string;
|
|
1242
1749
|
kind: "WORKSPACE_FILE";
|
|
@@ -1252,7 +1759,7 @@ export declare const directNodeCommandSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1252
1759
|
};
|
|
1253
1760
|
fileName: string;
|
|
1254
1761
|
size: number;
|
|
1255
|
-
|
|
1762
|
+
direction: "UPLOAD";
|
|
1256
1763
|
overwrite?: boolean | undefined;
|
|
1257
1764
|
resumeOffset?: number | undefined;
|
|
1258
1765
|
composerAttachment?: {
|
|
@@ -1260,7 +1767,6 @@ export declare const directNodeCommandSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1260
1767
|
mime: string;
|
|
1261
1768
|
} | undefined;
|
|
1262
1769
|
}, {
|
|
1263
|
-
direction: "UPLOAD" | "DOWNLOAD";
|
|
1264
1770
|
resource: {
|
|
1265
1771
|
path: string;
|
|
1266
1772
|
kind: "WORKSPACE_FILE";
|
|
@@ -1276,7 +1782,7 @@ export declare const directNodeCommandSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1276
1782
|
};
|
|
1277
1783
|
fileName: string;
|
|
1278
1784
|
size: number;
|
|
1279
|
-
|
|
1785
|
+
direction: "UPLOAD";
|
|
1280
1786
|
overwrite?: boolean | undefined;
|
|
1281
1787
|
resumeOffset?: number | undefined;
|
|
1282
1788
|
composerAttachment?: {
|
|
@@ -1284,7 +1790,6 @@ export declare const directNodeCommandSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1284
1790
|
mime: string;
|
|
1285
1791
|
} | undefined;
|
|
1286
1792
|
}>, {
|
|
1287
|
-
direction: "UPLOAD" | "DOWNLOAD";
|
|
1288
1793
|
resource: {
|
|
1289
1794
|
path: string;
|
|
1290
1795
|
kind: "WORKSPACE_FILE";
|
|
@@ -1300,7 +1805,7 @@ export declare const directNodeCommandSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1300
1805
|
};
|
|
1301
1806
|
fileName: string;
|
|
1302
1807
|
size: number;
|
|
1303
|
-
|
|
1808
|
+
direction: "UPLOAD";
|
|
1304
1809
|
overwrite?: boolean | undefined;
|
|
1305
1810
|
resumeOffset?: number | undefined;
|
|
1306
1811
|
composerAttachment?: {
|
|
@@ -1308,7 +1813,6 @@ export declare const directNodeCommandSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1308
1813
|
mime: string;
|
|
1309
1814
|
} | undefined;
|
|
1310
1815
|
}, {
|
|
1311
|
-
direction: "UPLOAD" | "DOWNLOAD";
|
|
1312
1816
|
resource: {
|
|
1313
1817
|
path: string;
|
|
1314
1818
|
kind: "WORKSPACE_FILE";
|
|
@@ -1324,24 +1828,162 @@ export declare const directNodeCommandSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1324
1828
|
};
|
|
1325
1829
|
fileName: string;
|
|
1326
1830
|
size: number;
|
|
1327
|
-
|
|
1831
|
+
direction: "UPLOAD";
|
|
1328
1832
|
overwrite?: boolean | undefined;
|
|
1329
1833
|
resumeOffset?: number | undefined;
|
|
1330
1834
|
composerAttachment?: {
|
|
1331
1835
|
id: string;
|
|
1332
1836
|
mime: string;
|
|
1333
1837
|
} | undefined;
|
|
1334
|
-
}
|
|
1838
|
+
}>, z.ZodEffects<z.ZodObject<{
|
|
1839
|
+
resource: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1840
|
+
kind: z.ZodLiteral<"WORKSPACE_FILE">;
|
|
1841
|
+
workspaceId: z.ZodString;
|
|
1842
|
+
path: z.ZodString;
|
|
1843
|
+
worktreePath: z.ZodOptional<z.ZodString>;
|
|
1844
|
+
}, "strict", z.ZodTypeAny, {
|
|
1845
|
+
path: string;
|
|
1846
|
+
kind: "WORKSPACE_FILE";
|
|
1847
|
+
workspaceId: string;
|
|
1848
|
+
worktreePath?: string | undefined;
|
|
1849
|
+
}, {
|
|
1850
|
+
path: string;
|
|
1851
|
+
kind: "WORKSPACE_FILE";
|
|
1852
|
+
workspaceId: string;
|
|
1853
|
+
worktreePath?: string | undefined;
|
|
1854
|
+
}>, z.ZodObject<{
|
|
1855
|
+
kind: z.ZodLiteral<"GIT_COMMIT_BLOB">;
|
|
1856
|
+
workspaceId: z.ZodString;
|
|
1857
|
+
commit: z.ZodString;
|
|
1858
|
+
path: z.ZodString;
|
|
1859
|
+
repositoryPath: z.ZodOptional<z.ZodString>;
|
|
1860
|
+
worktreePath: z.ZodOptional<z.ZodString>;
|
|
1861
|
+
}, "strict", z.ZodTypeAny, {
|
|
1862
|
+
path: string;
|
|
1863
|
+
kind: "GIT_COMMIT_BLOB";
|
|
1864
|
+
workspaceId: string;
|
|
1865
|
+
commit: string;
|
|
1866
|
+
worktreePath?: string | undefined;
|
|
1867
|
+
repositoryPath?: string | undefined;
|
|
1868
|
+
}, {
|
|
1869
|
+
path: string;
|
|
1870
|
+
kind: "GIT_COMMIT_BLOB";
|
|
1871
|
+
workspaceId: string;
|
|
1872
|
+
commit: string;
|
|
1873
|
+
worktreePath?: string | undefined;
|
|
1874
|
+
repositoryPath?: string | undefined;
|
|
1875
|
+
}>]>;
|
|
1876
|
+
fileName: z.ZodString;
|
|
1877
|
+
size: z.ZodNumber;
|
|
1878
|
+
} & {
|
|
1879
|
+
direction: z.ZodLiteral<"DOWNLOAD">;
|
|
1880
|
+
revision: z.ZodString;
|
|
1881
|
+
range: z.ZodOptional<z.ZodObject<{
|
|
1882
|
+
offset: z.ZodNumber;
|
|
1883
|
+
length: z.ZodNumber;
|
|
1884
|
+
}, "strict", z.ZodTypeAny, {
|
|
1885
|
+
length: number;
|
|
1886
|
+
offset: number;
|
|
1887
|
+
}, {
|
|
1888
|
+
length: number;
|
|
1889
|
+
offset: number;
|
|
1890
|
+
}>>;
|
|
1891
|
+
}, "strict", z.ZodTypeAny, {
|
|
1892
|
+
resource: {
|
|
1893
|
+
path: string;
|
|
1894
|
+
kind: "WORKSPACE_FILE";
|
|
1895
|
+
workspaceId: string;
|
|
1896
|
+
worktreePath?: string | undefined;
|
|
1897
|
+
} | {
|
|
1898
|
+
path: string;
|
|
1899
|
+
kind: "GIT_COMMIT_BLOB";
|
|
1900
|
+
workspaceId: string;
|
|
1901
|
+
commit: string;
|
|
1902
|
+
worktreePath?: string | undefined;
|
|
1903
|
+
repositoryPath?: string | undefined;
|
|
1904
|
+
};
|
|
1905
|
+
fileName: string;
|
|
1906
|
+
size: number;
|
|
1907
|
+
direction: "DOWNLOAD";
|
|
1908
|
+
revision: string;
|
|
1909
|
+
range?: {
|
|
1910
|
+
length: number;
|
|
1911
|
+
offset: number;
|
|
1912
|
+
} | undefined;
|
|
1913
|
+
}, {
|
|
1914
|
+
resource: {
|
|
1915
|
+
path: string;
|
|
1916
|
+
kind: "WORKSPACE_FILE";
|
|
1917
|
+
workspaceId: string;
|
|
1918
|
+
worktreePath?: string | undefined;
|
|
1919
|
+
} | {
|
|
1920
|
+
path: string;
|
|
1921
|
+
kind: "GIT_COMMIT_BLOB";
|
|
1922
|
+
workspaceId: string;
|
|
1923
|
+
commit: string;
|
|
1924
|
+
worktreePath?: string | undefined;
|
|
1925
|
+
repositoryPath?: string | undefined;
|
|
1926
|
+
};
|
|
1927
|
+
fileName: string;
|
|
1928
|
+
size: number;
|
|
1929
|
+
direction: "DOWNLOAD";
|
|
1930
|
+
revision: string;
|
|
1931
|
+
range?: {
|
|
1932
|
+
length: number;
|
|
1933
|
+
offset: number;
|
|
1934
|
+
} | undefined;
|
|
1935
|
+
}>, {
|
|
1936
|
+
resource: {
|
|
1937
|
+
path: string;
|
|
1938
|
+
kind: "WORKSPACE_FILE";
|
|
1939
|
+
workspaceId: string;
|
|
1940
|
+
worktreePath?: string | undefined;
|
|
1941
|
+
} | {
|
|
1942
|
+
path: string;
|
|
1943
|
+
kind: "GIT_COMMIT_BLOB";
|
|
1944
|
+
workspaceId: string;
|
|
1945
|
+
commit: string;
|
|
1946
|
+
worktreePath?: string | undefined;
|
|
1947
|
+
repositoryPath?: string | undefined;
|
|
1948
|
+
};
|
|
1949
|
+
fileName: string;
|
|
1950
|
+
size: number;
|
|
1951
|
+
direction: "DOWNLOAD";
|
|
1952
|
+
revision: string;
|
|
1953
|
+
range?: {
|
|
1954
|
+
length: number;
|
|
1955
|
+
offset: number;
|
|
1956
|
+
} | undefined;
|
|
1957
|
+
}, {
|
|
1958
|
+
resource: {
|
|
1959
|
+
path: string;
|
|
1960
|
+
kind: "WORKSPACE_FILE";
|
|
1961
|
+
workspaceId: string;
|
|
1962
|
+
worktreePath?: string | undefined;
|
|
1963
|
+
} | {
|
|
1964
|
+
path: string;
|
|
1965
|
+
kind: "GIT_COMMIT_BLOB";
|
|
1966
|
+
workspaceId: string;
|
|
1967
|
+
commit: string;
|
|
1968
|
+
worktreePath?: string | undefined;
|
|
1969
|
+
repositoryPath?: string | undefined;
|
|
1970
|
+
};
|
|
1971
|
+
fileName: string;
|
|
1972
|
+
size: number;
|
|
1973
|
+
direction: "DOWNLOAD";
|
|
1974
|
+
revision: string;
|
|
1975
|
+
range?: {
|
|
1976
|
+
length: number;
|
|
1977
|
+
offset: number;
|
|
1978
|
+
} | undefined;
|
|
1979
|
+
}>]>;
|
|
1335
1980
|
userAuthorization: z.ZodUnknown;
|
|
1336
1981
|
}, "strict", z.ZodTypeAny, {
|
|
1337
1982
|
type: "direct.prepare";
|
|
1338
1983
|
nodeGeneration: string;
|
|
1339
|
-
purpose: "
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
workbenchConnectionId: string;
|
|
1343
|
-
transfer?: {
|
|
1344
|
-
direction: "UPLOAD" | "DOWNLOAD";
|
|
1984
|
+
purpose: "TRANSFER";
|
|
1985
|
+
transportSessionId: string;
|
|
1986
|
+
transfer: {
|
|
1345
1987
|
resource: {
|
|
1346
1988
|
path: string;
|
|
1347
1989
|
kind: "WORKSPACE_FILE";
|
|
@@ -1357,24 +1999,46 @@ export declare const directNodeCommandSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1357
1999
|
};
|
|
1358
2000
|
fileName: string;
|
|
1359
2001
|
size: number;
|
|
1360
|
-
|
|
2002
|
+
direction: "UPLOAD";
|
|
1361
2003
|
overwrite?: boolean | undefined;
|
|
1362
2004
|
resumeOffset?: number | undefined;
|
|
1363
2005
|
composerAttachment?: {
|
|
1364
2006
|
id: string;
|
|
1365
2007
|
mime: string;
|
|
1366
2008
|
} | undefined;
|
|
1367
|
-
} |
|
|
2009
|
+
} | {
|
|
2010
|
+
resource: {
|
|
2011
|
+
path: string;
|
|
2012
|
+
kind: "WORKSPACE_FILE";
|
|
2013
|
+
workspaceId: string;
|
|
2014
|
+
worktreePath?: string | undefined;
|
|
2015
|
+
} | {
|
|
2016
|
+
path: string;
|
|
2017
|
+
kind: "GIT_COMMIT_BLOB";
|
|
2018
|
+
workspaceId: string;
|
|
2019
|
+
commit: string;
|
|
2020
|
+
worktreePath?: string | undefined;
|
|
2021
|
+
repositoryPath?: string | undefined;
|
|
2022
|
+
};
|
|
2023
|
+
fileName: string;
|
|
2024
|
+
size: number;
|
|
2025
|
+
direction: "DOWNLOAD";
|
|
2026
|
+
revision: string;
|
|
2027
|
+
range?: {
|
|
2028
|
+
length: number;
|
|
2029
|
+
offset: number;
|
|
2030
|
+
} | undefined;
|
|
2031
|
+
};
|
|
2032
|
+
directSessionId: string;
|
|
2033
|
+
expiresAt: number;
|
|
2034
|
+
workbenchConnectionId: string;
|
|
1368
2035
|
userAuthorization?: unknown;
|
|
1369
2036
|
}, {
|
|
1370
2037
|
type: "direct.prepare";
|
|
1371
2038
|
nodeGeneration: string;
|
|
1372
|
-
purpose: "
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
workbenchConnectionId: string;
|
|
1376
|
-
transfer?: {
|
|
1377
|
-
direction: "UPLOAD" | "DOWNLOAD";
|
|
2039
|
+
purpose: "TRANSFER";
|
|
2040
|
+
transportSessionId: string;
|
|
2041
|
+
transfer: {
|
|
1378
2042
|
resource: {
|
|
1379
2043
|
path: string;
|
|
1380
2044
|
kind: "WORKSPACE_FILE";
|
|
@@ -1390,14 +2054,39 @@ export declare const directNodeCommandSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1390
2054
|
};
|
|
1391
2055
|
fileName: string;
|
|
1392
2056
|
size: number;
|
|
1393
|
-
|
|
2057
|
+
direction: "UPLOAD";
|
|
1394
2058
|
overwrite?: boolean | undefined;
|
|
1395
2059
|
resumeOffset?: number | undefined;
|
|
1396
2060
|
composerAttachment?: {
|
|
1397
2061
|
id: string;
|
|
1398
2062
|
mime: string;
|
|
1399
2063
|
} | undefined;
|
|
1400
|
-
} |
|
|
2064
|
+
} | {
|
|
2065
|
+
resource: {
|
|
2066
|
+
path: string;
|
|
2067
|
+
kind: "WORKSPACE_FILE";
|
|
2068
|
+
workspaceId: string;
|
|
2069
|
+
worktreePath?: string | undefined;
|
|
2070
|
+
} | {
|
|
2071
|
+
path: string;
|
|
2072
|
+
kind: "GIT_COMMIT_BLOB";
|
|
2073
|
+
workspaceId: string;
|
|
2074
|
+
commit: string;
|
|
2075
|
+
worktreePath?: string | undefined;
|
|
2076
|
+
repositoryPath?: string | undefined;
|
|
2077
|
+
};
|
|
2078
|
+
fileName: string;
|
|
2079
|
+
size: number;
|
|
2080
|
+
direction: "DOWNLOAD";
|
|
2081
|
+
revision: string;
|
|
2082
|
+
range?: {
|
|
2083
|
+
length: number;
|
|
2084
|
+
offset: number;
|
|
2085
|
+
} | undefined;
|
|
2086
|
+
};
|
|
2087
|
+
directSessionId: string;
|
|
2088
|
+
expiresAt: number;
|
|
2089
|
+
workbenchConnectionId: string;
|
|
1401
2090
|
userAuthorization?: unknown;
|
|
1402
2091
|
}>, z.ZodObject<{
|
|
1403
2092
|
directSessionId: z.ZodString;
|
|
@@ -1509,6 +2198,7 @@ export declare const directNodeCommandSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1509
2198
|
directSessionId: z.ZodString;
|
|
1510
2199
|
} & {
|
|
1511
2200
|
type: z.ZodLiteral<"direct.grant">;
|
|
2201
|
+
transportSessionId: z.ZodString;
|
|
1512
2202
|
grant: z.ZodString;
|
|
1513
2203
|
browserFingerprint: z.ZodString;
|
|
1514
2204
|
nodeFingerprint: z.ZodString;
|
|
@@ -1516,6 +2206,7 @@ export declare const directNodeCommandSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1516
2206
|
expiresAt: z.ZodNumber;
|
|
1517
2207
|
}, "strict", z.ZodTypeAny, {
|
|
1518
2208
|
type: "direct.grant";
|
|
2209
|
+
transportSessionId: string;
|
|
1519
2210
|
directSessionId: string;
|
|
1520
2211
|
expiresAt: number;
|
|
1521
2212
|
grant: string;
|
|
@@ -1524,6 +2215,7 @@ export declare const directNodeCommandSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1524
2215
|
nodeFingerprint: string;
|
|
1525
2216
|
}, {
|
|
1526
2217
|
type: "direct.grant";
|
|
2218
|
+
transportSessionId: string;
|
|
1527
2219
|
directSessionId: string;
|
|
1528
2220
|
expiresAt: number;
|
|
1529
2221
|
grant: string;
|
|
@@ -1534,12 +2226,15 @@ export declare const directNodeCommandSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1534
2226
|
directSessionId: z.ZodString;
|
|
1535
2227
|
} & {
|
|
1536
2228
|
type: z.ZodLiteral<"direct.heartbeat">;
|
|
2229
|
+
expiresAt: z.ZodNumber;
|
|
1537
2230
|
}, "strict", z.ZodTypeAny, {
|
|
1538
2231
|
type: "direct.heartbeat";
|
|
1539
2232
|
directSessionId: string;
|
|
2233
|
+
expiresAt: number;
|
|
1540
2234
|
}, {
|
|
1541
2235
|
type: "direct.heartbeat";
|
|
1542
2236
|
directSessionId: string;
|
|
2237
|
+
expiresAt: number;
|
|
1543
2238
|
}>, z.ZodObject<{
|
|
1544
2239
|
directSessionId: z.ZodString;
|
|
1545
2240
|
} & {
|
|
@@ -1673,48 +2368,29 @@ export declare const directNodeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
1673
2368
|
directSessionId: string;
|
|
1674
2369
|
}>, z.ZodObject<{
|
|
1675
2370
|
directSessionId: z.ZodString;
|
|
1676
|
-
} & {
|
|
1677
|
-
type: z.ZodLiteral<"direct.probe-result">;
|
|
1678
|
-
result: z.ZodEnum<["DIRECT_AVAILABLE", "RELAY_ONLY"]>;
|
|
1679
|
-
routingHint: z.ZodOptional<z.ZodString>;
|
|
1680
|
-
}, "strict", z.ZodTypeAny, {
|
|
1681
|
-
type: "direct.probe-result";
|
|
1682
|
-
directSessionId: string;
|
|
1683
|
-
result: "DIRECT_AVAILABLE" | "RELAY_ONLY";
|
|
1684
|
-
routingHint?: string | undefined;
|
|
1685
|
-
}, {
|
|
1686
|
-
type: "direct.probe-result";
|
|
1687
|
-
directSessionId: string;
|
|
1688
|
-
result: "DIRECT_AVAILABLE" | "RELAY_ONLY";
|
|
1689
|
-
routingHint?: string | undefined;
|
|
1690
|
-
}>, z.ZodObject<{
|
|
1691
|
-
directSessionId: z.ZodString;
|
|
1692
2371
|
} & {
|
|
1693
2372
|
type: z.ZodLiteral<"direct.opened">;
|
|
1694
2373
|
offset: z.ZodNumber;
|
|
1695
2374
|
}, "strict", z.ZodTypeAny, {
|
|
1696
2375
|
type: "direct.opened";
|
|
1697
|
-
directSessionId: string;
|
|
1698
2376
|
offset: number;
|
|
2377
|
+
directSessionId: string;
|
|
1699
2378
|
}, {
|
|
1700
2379
|
type: "direct.opened";
|
|
1701
|
-
directSessionId: string;
|
|
1702
2380
|
offset: number;
|
|
2381
|
+
directSessionId: string;
|
|
1703
2382
|
}>, z.ZodObject<{
|
|
1704
2383
|
directSessionId: z.ZodString;
|
|
1705
2384
|
} & {
|
|
1706
2385
|
type: z.ZodLiteral<"direct.complete">;
|
|
1707
2386
|
size: z.ZodNumber;
|
|
1708
|
-
sha256: z.ZodString;
|
|
1709
2387
|
}, "strict", z.ZodTypeAny, {
|
|
1710
2388
|
type: "direct.complete";
|
|
1711
2389
|
size: number;
|
|
1712
|
-
sha256: string;
|
|
1713
2390
|
directSessionId: string;
|
|
1714
2391
|
}, {
|
|
1715
2392
|
type: "direct.complete";
|
|
1716
2393
|
size: number;
|
|
1717
|
-
sha256: string;
|
|
1718
2394
|
directSessionId: string;
|
|
1719
2395
|
}>, z.ZodObject<{
|
|
1720
2396
|
directSessionId: z.ZodString;
|
|
@@ -1760,15 +2436,12 @@ export declare const directDataAckFrameSchema: z.ZodObject<{
|
|
|
1760
2436
|
export declare const directDataCompleteFrameSchema: z.ZodObject<{
|
|
1761
2437
|
type: z.ZodLiteral<"COMPLETE">;
|
|
1762
2438
|
size: z.ZodNumber;
|
|
1763
|
-
sha256: z.ZodString;
|
|
1764
2439
|
}, "strict", z.ZodTypeAny, {
|
|
1765
2440
|
type: "COMPLETE";
|
|
1766
2441
|
size: number;
|
|
1767
|
-
sha256: string;
|
|
1768
2442
|
}, {
|
|
1769
2443
|
type: "COMPLETE";
|
|
1770
2444
|
size: number;
|
|
1771
|
-
sha256: string;
|
|
1772
2445
|
}>;
|
|
1773
2446
|
export declare const directDataErrorFrameSchema: z.ZodObject<{
|
|
1774
2447
|
type: z.ZodLiteral<"ERROR">;
|
|
@@ -1804,15 +2477,12 @@ export declare const directDataControlFrameSchema: z.ZodDiscriminatedUnion<"type
|
|
|
1804
2477
|
}>, z.ZodObject<{
|
|
1805
2478
|
type: z.ZodLiteral<"COMPLETE">;
|
|
1806
2479
|
size: z.ZodNumber;
|
|
1807
|
-
sha256: z.ZodString;
|
|
1808
2480
|
}, "strict", z.ZodTypeAny, {
|
|
1809
2481
|
type: "COMPLETE";
|
|
1810
2482
|
size: number;
|
|
1811
|
-
sha256: string;
|
|
1812
2483
|
}, {
|
|
1813
2484
|
type: "COMPLETE";
|
|
1814
2485
|
size: number;
|
|
1815
|
-
sha256: string;
|
|
1816
2486
|
}>, z.ZodObject<{
|
|
1817
2487
|
type: z.ZodLiteral<"ERROR">;
|
|
1818
2488
|
code: z.ZodString;
|