@serve.zone/interfaces 7.11.0 → 7.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +16 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/requests/deployment.d.ts +201 -0
- package/package.json +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/requests/deployment.ts +312 -0
package/changelog.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2026-06-10 - 7.13.0
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- add deployment log streaming request interfaces (deployment)
|
|
8
|
+
- Add start and stop typed request contracts for deployment log streams between clients, Cloudly, and Coreflow.
|
|
9
|
+
- Add typed contracts for reporting, pushing, and ending streamed deployment log lines.
|
|
10
|
+
|
|
11
|
+
## 2026-06-10 - 7.12.0
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
- add interactive deployment shell request interfaces (deployment)
|
|
16
|
+
- Define deployment shell command and process request contracts for Cloudly and Coreflow.
|
|
17
|
+
- Add output and exit reporting/push interfaces for streaming shell process updates.
|
|
18
|
+
|
|
3
19
|
## 2026-06-10 - 7.11.0
|
|
4
20
|
|
|
5
21
|
### Features
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@serve.zone/interfaces',
|
|
6
|
-
version: '7.
|
|
6
|
+
version: '7.13.0',
|
|
7
7
|
description: 'Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHVGQUF1RjtDQUNyRyxDQUFBIn0=
|
|
@@ -331,3 +331,204 @@ export interface IReq_Cloudly_Any_PushServiceReconciliationStatus extends plugin
|
|
|
331
331
|
};
|
|
332
332
|
response: Record<string, never>;
|
|
333
333
|
}
|
|
334
|
+
export interface IDeploymentShellCommand {
|
|
335
|
+
command: string;
|
|
336
|
+
args?: string[];
|
|
337
|
+
label?: string;
|
|
338
|
+
prompt?: string;
|
|
339
|
+
}
|
|
340
|
+
export interface IReq_Any_Cloudly_DeploymentShellGetCommand extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_DeploymentShellGetCommand> {
|
|
341
|
+
method: 'deploymentShellGetCommand';
|
|
342
|
+
request: {
|
|
343
|
+
identity: IIdentity;
|
|
344
|
+
deploymentId: string;
|
|
345
|
+
};
|
|
346
|
+
response: {
|
|
347
|
+
shellCommand: IDeploymentShellCommand;
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
export interface IReq_Any_Cloudly_DeploymentShellStart extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_DeploymentShellStart> {
|
|
351
|
+
method: 'deploymentShellStart';
|
|
352
|
+
request: {
|
|
353
|
+
identity: IIdentity;
|
|
354
|
+
deploymentId: string;
|
|
355
|
+
processId: string;
|
|
356
|
+
command: string;
|
|
357
|
+
args?: string[];
|
|
358
|
+
};
|
|
359
|
+
response: {
|
|
360
|
+
processId: string;
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
export interface IReq_Any_Cloudly_DeploymentShellInput extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_DeploymentShellInput> {
|
|
364
|
+
method: 'deploymentShellInput';
|
|
365
|
+
request: {
|
|
366
|
+
identity: IIdentity;
|
|
367
|
+
processId: string;
|
|
368
|
+
input: string;
|
|
369
|
+
};
|
|
370
|
+
response: Record<string, never>;
|
|
371
|
+
}
|
|
372
|
+
export interface IReq_Any_Cloudly_DeploymentShellKill extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_DeploymentShellKill> {
|
|
373
|
+
method: 'deploymentShellKill';
|
|
374
|
+
request: {
|
|
375
|
+
identity: IIdentity;
|
|
376
|
+
processId: string;
|
|
377
|
+
};
|
|
378
|
+
response: Record<string, never>;
|
|
379
|
+
}
|
|
380
|
+
export interface IReq_Cloudly_Coreflow_DeploymentShellGetCommand extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Cloudly_Coreflow_DeploymentShellGetCommand> {
|
|
381
|
+
method: 'coreflowDeploymentShellGetCommand';
|
|
382
|
+
request: {
|
|
383
|
+
deploymentId: string;
|
|
384
|
+
};
|
|
385
|
+
response: {
|
|
386
|
+
found: boolean;
|
|
387
|
+
shellCommand?: IDeploymentShellCommand;
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
export interface IReq_Cloudly_Coreflow_DeploymentShellStart extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Cloudly_Coreflow_DeploymentShellStart> {
|
|
391
|
+
method: 'coreflowDeploymentShellStart';
|
|
392
|
+
request: {
|
|
393
|
+
deploymentId: string;
|
|
394
|
+
processId: string;
|
|
395
|
+
command: string;
|
|
396
|
+
args?: string[];
|
|
397
|
+
};
|
|
398
|
+
response: {
|
|
399
|
+
found: boolean;
|
|
400
|
+
processId?: string;
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
export interface IReq_Cloudly_Coreflow_DeploymentShellInput extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Cloudly_Coreflow_DeploymentShellInput> {
|
|
404
|
+
method: 'coreflowDeploymentShellInput';
|
|
405
|
+
request: {
|
|
406
|
+
processId: string;
|
|
407
|
+
input: string;
|
|
408
|
+
};
|
|
409
|
+
response: {
|
|
410
|
+
found: boolean;
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
export interface IReq_Cloudly_Coreflow_DeploymentShellKill extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Cloudly_Coreflow_DeploymentShellKill> {
|
|
414
|
+
method: 'coreflowDeploymentShellKill';
|
|
415
|
+
request: {
|
|
416
|
+
processId: string;
|
|
417
|
+
};
|
|
418
|
+
response: {
|
|
419
|
+
found: boolean;
|
|
420
|
+
};
|
|
421
|
+
}
|
|
422
|
+
export interface IReq_Coreflow_Cloudly_ReportDeploymentShellOutput extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Coreflow_Cloudly_ReportDeploymentShellOutput> {
|
|
423
|
+
method: 'reportDeploymentShellOutput';
|
|
424
|
+
request: {
|
|
425
|
+
identity: IIdentity;
|
|
426
|
+
processId: string;
|
|
427
|
+
output: string;
|
|
428
|
+
};
|
|
429
|
+
response: Record<string, never>;
|
|
430
|
+
}
|
|
431
|
+
export interface IReq_Coreflow_Cloudly_ReportDeploymentShellExit extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Coreflow_Cloudly_ReportDeploymentShellExit> {
|
|
432
|
+
method: 'reportDeploymentShellExit';
|
|
433
|
+
request: {
|
|
434
|
+
identity: IIdentity;
|
|
435
|
+
processId: string;
|
|
436
|
+
exitCode: number;
|
|
437
|
+
};
|
|
438
|
+
response: Record<string, never>;
|
|
439
|
+
}
|
|
440
|
+
export interface IReq_Cloudly_Any_PushDeploymentShellOutput extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Cloudly_Any_PushDeploymentShellOutput> {
|
|
441
|
+
method: 'pushDeploymentShellOutput';
|
|
442
|
+
request: {
|
|
443
|
+
processId: string;
|
|
444
|
+
output: string;
|
|
445
|
+
};
|
|
446
|
+
response: Record<string, never>;
|
|
447
|
+
}
|
|
448
|
+
export interface IReq_Cloudly_Any_PushDeploymentShellExit extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Cloudly_Any_PushDeploymentShellExit> {
|
|
449
|
+
method: 'pushDeploymentShellExit';
|
|
450
|
+
request: {
|
|
451
|
+
processId: string;
|
|
452
|
+
exitCode: number;
|
|
453
|
+
};
|
|
454
|
+
response: Record<string, never>;
|
|
455
|
+
}
|
|
456
|
+
export interface IReq_Any_Cloudly_DeploymentLogStreamStart extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_DeploymentLogStreamStart> {
|
|
457
|
+
method: 'deploymentLogStreamStart';
|
|
458
|
+
request: {
|
|
459
|
+
identity: IIdentity;
|
|
460
|
+
deploymentId: string;
|
|
461
|
+
streamId: string;
|
|
462
|
+
/** Number of trailing log lines to seed the stream with (default 200). */
|
|
463
|
+
tail?: number;
|
|
464
|
+
};
|
|
465
|
+
response: {
|
|
466
|
+
streamId: string;
|
|
467
|
+
};
|
|
468
|
+
}
|
|
469
|
+
export interface IReq_Any_Cloudly_DeploymentLogStreamStop extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_DeploymentLogStreamStop> {
|
|
470
|
+
method: 'deploymentLogStreamStop';
|
|
471
|
+
request: {
|
|
472
|
+
identity: IIdentity;
|
|
473
|
+
streamId: string;
|
|
474
|
+
};
|
|
475
|
+
response: Record<string, never>;
|
|
476
|
+
}
|
|
477
|
+
export interface IReq_Cloudly_Coreflow_DeploymentLogStreamStart extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Cloudly_Coreflow_DeploymentLogStreamStart> {
|
|
478
|
+
method: 'coreflowDeploymentLogStreamStart';
|
|
479
|
+
request: {
|
|
480
|
+
deploymentId: string;
|
|
481
|
+
streamId: string;
|
|
482
|
+
tail?: number;
|
|
483
|
+
};
|
|
484
|
+
response: {
|
|
485
|
+
found: boolean;
|
|
486
|
+
streamId?: string;
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
export interface IReq_Cloudly_Coreflow_DeploymentLogStreamStop extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Cloudly_Coreflow_DeploymentLogStreamStop> {
|
|
490
|
+
method: 'coreflowDeploymentLogStreamStop';
|
|
491
|
+
request: {
|
|
492
|
+
streamId: string;
|
|
493
|
+
};
|
|
494
|
+
response: {
|
|
495
|
+
found: boolean;
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
export interface IReq_Coreflow_Cloudly_ReportDeploymentLogLines extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Coreflow_Cloudly_ReportDeploymentLogLines> {
|
|
499
|
+
method: 'reportDeploymentLogLines';
|
|
500
|
+
request: {
|
|
501
|
+
identity: IIdentity;
|
|
502
|
+
streamId: string;
|
|
503
|
+
deploymentId: string;
|
|
504
|
+
lines: string[];
|
|
505
|
+
};
|
|
506
|
+
response: Record<string, never>;
|
|
507
|
+
}
|
|
508
|
+
export interface IReq_Coreflow_Cloudly_ReportDeploymentLogStreamEnd extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Coreflow_Cloudly_ReportDeploymentLogStreamEnd> {
|
|
509
|
+
method: 'reportDeploymentLogStreamEnd';
|
|
510
|
+
request: {
|
|
511
|
+
identity: IIdentity;
|
|
512
|
+
streamId: string;
|
|
513
|
+
/** e.g. 'container-exited' | 'stopped' | 'ttl-expired' | 'error' */
|
|
514
|
+
reason?: string;
|
|
515
|
+
};
|
|
516
|
+
response: Record<string, never>;
|
|
517
|
+
}
|
|
518
|
+
export interface IReq_Cloudly_Any_PushDeploymentLogLines extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Cloudly_Any_PushDeploymentLogLines> {
|
|
519
|
+
method: 'pushDeploymentLogLines';
|
|
520
|
+
request: {
|
|
521
|
+
streamId: string;
|
|
522
|
+
deploymentId: string;
|
|
523
|
+
lines: string[];
|
|
524
|
+
};
|
|
525
|
+
response: Record<string, never>;
|
|
526
|
+
}
|
|
527
|
+
export interface IReq_Cloudly_Any_PushDeploymentLogStreamEnd extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Cloudly_Any_PushDeploymentLogStreamEnd> {
|
|
528
|
+
method: 'pushDeploymentLogStreamEnd';
|
|
529
|
+
request: {
|
|
530
|
+
streamId: string;
|
|
531
|
+
reason?: string;
|
|
532
|
+
};
|
|
533
|
+
response: Record<string, never>;
|
|
534
|
+
}
|
package/package.json
CHANGED
package/ts/00_commitinfo_data.ts
CHANGED
|
@@ -482,3 +482,315 @@ extends plugins.typedrequestInterfaces.implementsTR<
|
|
|
482
482
|
};
|
|
483
483
|
response: Record<string, never>;
|
|
484
484
|
}
|
|
485
|
+
|
|
486
|
+
// ============================================================================
|
|
487
|
+
// Interactive deployment shell (workspace terminal)
|
|
488
|
+
// UI -> Cloudly -> Coreflow, with output/exit streamed back via pushes.
|
|
489
|
+
// ============================================================================
|
|
490
|
+
|
|
491
|
+
export interface IDeploymentShellCommand {
|
|
492
|
+
command: string;
|
|
493
|
+
args?: string[];
|
|
494
|
+
label?: string;
|
|
495
|
+
prompt?: string;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
export interface IReq_Any_Cloudly_DeploymentShellGetCommand
|
|
499
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
500
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
501
|
+
IReq_Any_Cloudly_DeploymentShellGetCommand
|
|
502
|
+
> {
|
|
503
|
+
method: 'deploymentShellGetCommand';
|
|
504
|
+
request: {
|
|
505
|
+
identity: IIdentity;
|
|
506
|
+
deploymentId: string;
|
|
507
|
+
};
|
|
508
|
+
response: {
|
|
509
|
+
shellCommand: IDeploymentShellCommand;
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
export interface IReq_Any_Cloudly_DeploymentShellStart
|
|
514
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
515
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
516
|
+
IReq_Any_Cloudly_DeploymentShellStart
|
|
517
|
+
> {
|
|
518
|
+
method: 'deploymentShellStart';
|
|
519
|
+
request: {
|
|
520
|
+
identity: IIdentity;
|
|
521
|
+
deploymentId: string;
|
|
522
|
+
processId: string;
|
|
523
|
+
command: string;
|
|
524
|
+
args?: string[];
|
|
525
|
+
};
|
|
526
|
+
response: {
|
|
527
|
+
processId: string;
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
export interface IReq_Any_Cloudly_DeploymentShellInput
|
|
532
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
533
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
534
|
+
IReq_Any_Cloudly_DeploymentShellInput
|
|
535
|
+
> {
|
|
536
|
+
method: 'deploymentShellInput';
|
|
537
|
+
request: {
|
|
538
|
+
identity: IIdentity;
|
|
539
|
+
processId: string;
|
|
540
|
+
input: string;
|
|
541
|
+
};
|
|
542
|
+
response: Record<string, never>;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
export interface IReq_Any_Cloudly_DeploymentShellKill
|
|
546
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
547
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
548
|
+
IReq_Any_Cloudly_DeploymentShellKill
|
|
549
|
+
> {
|
|
550
|
+
method: 'deploymentShellKill';
|
|
551
|
+
request: {
|
|
552
|
+
identity: IIdentity;
|
|
553
|
+
processId: string;
|
|
554
|
+
};
|
|
555
|
+
response: Record<string, never>;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
export interface IReq_Cloudly_Coreflow_DeploymentShellGetCommand
|
|
559
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
560
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
561
|
+
IReq_Cloudly_Coreflow_DeploymentShellGetCommand
|
|
562
|
+
> {
|
|
563
|
+
method: 'coreflowDeploymentShellGetCommand';
|
|
564
|
+
request: {
|
|
565
|
+
deploymentId: string;
|
|
566
|
+
};
|
|
567
|
+
response: {
|
|
568
|
+
found: boolean;
|
|
569
|
+
shellCommand?: IDeploymentShellCommand;
|
|
570
|
+
};
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
export interface IReq_Cloudly_Coreflow_DeploymentShellStart
|
|
574
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
575
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
576
|
+
IReq_Cloudly_Coreflow_DeploymentShellStart
|
|
577
|
+
> {
|
|
578
|
+
method: 'coreflowDeploymentShellStart';
|
|
579
|
+
request: {
|
|
580
|
+
deploymentId: string;
|
|
581
|
+
processId: string;
|
|
582
|
+
command: string;
|
|
583
|
+
args?: string[];
|
|
584
|
+
};
|
|
585
|
+
response: {
|
|
586
|
+
found: boolean;
|
|
587
|
+
processId?: string;
|
|
588
|
+
};
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
export interface IReq_Cloudly_Coreflow_DeploymentShellInput
|
|
592
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
593
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
594
|
+
IReq_Cloudly_Coreflow_DeploymentShellInput
|
|
595
|
+
> {
|
|
596
|
+
method: 'coreflowDeploymentShellInput';
|
|
597
|
+
request: {
|
|
598
|
+
processId: string;
|
|
599
|
+
input: string;
|
|
600
|
+
};
|
|
601
|
+
response: {
|
|
602
|
+
found: boolean;
|
|
603
|
+
};
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
export interface IReq_Cloudly_Coreflow_DeploymentShellKill
|
|
607
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
608
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
609
|
+
IReq_Cloudly_Coreflow_DeploymentShellKill
|
|
610
|
+
> {
|
|
611
|
+
method: 'coreflowDeploymentShellKill';
|
|
612
|
+
request: {
|
|
613
|
+
processId: string;
|
|
614
|
+
};
|
|
615
|
+
response: {
|
|
616
|
+
found: boolean;
|
|
617
|
+
};
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
export interface IReq_Coreflow_Cloudly_ReportDeploymentShellOutput
|
|
621
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
622
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
623
|
+
IReq_Coreflow_Cloudly_ReportDeploymentShellOutput
|
|
624
|
+
> {
|
|
625
|
+
method: 'reportDeploymentShellOutput';
|
|
626
|
+
request: {
|
|
627
|
+
identity: IIdentity;
|
|
628
|
+
processId: string;
|
|
629
|
+
output: string;
|
|
630
|
+
};
|
|
631
|
+
response: Record<string, never>;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
export interface IReq_Coreflow_Cloudly_ReportDeploymentShellExit
|
|
635
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
636
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
637
|
+
IReq_Coreflow_Cloudly_ReportDeploymentShellExit
|
|
638
|
+
> {
|
|
639
|
+
method: 'reportDeploymentShellExit';
|
|
640
|
+
request: {
|
|
641
|
+
identity: IIdentity;
|
|
642
|
+
processId: string;
|
|
643
|
+
exitCode: number;
|
|
644
|
+
};
|
|
645
|
+
response: Record<string, never>;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
export interface IReq_Cloudly_Any_PushDeploymentShellOutput
|
|
649
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
650
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
651
|
+
IReq_Cloudly_Any_PushDeploymentShellOutput
|
|
652
|
+
> {
|
|
653
|
+
method: 'pushDeploymentShellOutput';
|
|
654
|
+
request: {
|
|
655
|
+
processId: string;
|
|
656
|
+
output: string;
|
|
657
|
+
};
|
|
658
|
+
response: Record<string, never>;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
export interface IReq_Cloudly_Any_PushDeploymentShellExit
|
|
662
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
663
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
664
|
+
IReq_Cloudly_Any_PushDeploymentShellExit
|
|
665
|
+
> {
|
|
666
|
+
method: 'pushDeploymentShellExit';
|
|
667
|
+
request: {
|
|
668
|
+
processId: string;
|
|
669
|
+
exitCode: number;
|
|
670
|
+
};
|
|
671
|
+
response: Record<string, never>;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
// ============================================================================
|
|
675
|
+
// Live deployment log streaming (deployment detail page)
|
|
676
|
+
// UI -> Cloudly -> Coreflow, with log lines streamed back via pushes.
|
|
677
|
+
// ============================================================================
|
|
678
|
+
|
|
679
|
+
export interface IReq_Any_Cloudly_DeploymentLogStreamStart
|
|
680
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
681
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
682
|
+
IReq_Any_Cloudly_DeploymentLogStreamStart
|
|
683
|
+
> {
|
|
684
|
+
method: 'deploymentLogStreamStart';
|
|
685
|
+
request: {
|
|
686
|
+
identity: IIdentity;
|
|
687
|
+
deploymentId: string;
|
|
688
|
+
streamId: string;
|
|
689
|
+
/** Number of trailing log lines to seed the stream with (default 200). */
|
|
690
|
+
tail?: number;
|
|
691
|
+
};
|
|
692
|
+
response: {
|
|
693
|
+
streamId: string;
|
|
694
|
+
};
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
export interface IReq_Any_Cloudly_DeploymentLogStreamStop
|
|
698
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
699
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
700
|
+
IReq_Any_Cloudly_DeploymentLogStreamStop
|
|
701
|
+
> {
|
|
702
|
+
method: 'deploymentLogStreamStop';
|
|
703
|
+
request: {
|
|
704
|
+
identity: IIdentity;
|
|
705
|
+
streamId: string;
|
|
706
|
+
};
|
|
707
|
+
response: Record<string, never>;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
export interface IReq_Cloudly_Coreflow_DeploymentLogStreamStart
|
|
711
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
712
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
713
|
+
IReq_Cloudly_Coreflow_DeploymentLogStreamStart
|
|
714
|
+
> {
|
|
715
|
+
method: 'coreflowDeploymentLogStreamStart';
|
|
716
|
+
request: {
|
|
717
|
+
deploymentId: string;
|
|
718
|
+
streamId: string;
|
|
719
|
+
tail?: number;
|
|
720
|
+
};
|
|
721
|
+
response: {
|
|
722
|
+
found: boolean;
|
|
723
|
+
streamId?: string;
|
|
724
|
+
};
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
export interface IReq_Cloudly_Coreflow_DeploymentLogStreamStop
|
|
728
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
729
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
730
|
+
IReq_Cloudly_Coreflow_DeploymentLogStreamStop
|
|
731
|
+
> {
|
|
732
|
+
method: 'coreflowDeploymentLogStreamStop';
|
|
733
|
+
request: {
|
|
734
|
+
streamId: string;
|
|
735
|
+
};
|
|
736
|
+
response: {
|
|
737
|
+
found: boolean;
|
|
738
|
+
};
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
export interface IReq_Coreflow_Cloudly_ReportDeploymentLogLines
|
|
742
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
743
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
744
|
+
IReq_Coreflow_Cloudly_ReportDeploymentLogLines
|
|
745
|
+
> {
|
|
746
|
+
method: 'reportDeploymentLogLines';
|
|
747
|
+
request: {
|
|
748
|
+
identity: IIdentity;
|
|
749
|
+
streamId: string;
|
|
750
|
+
deploymentId: string;
|
|
751
|
+
lines: string[];
|
|
752
|
+
};
|
|
753
|
+
response: Record<string, never>;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
export interface IReq_Coreflow_Cloudly_ReportDeploymentLogStreamEnd
|
|
757
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
758
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
759
|
+
IReq_Coreflow_Cloudly_ReportDeploymentLogStreamEnd
|
|
760
|
+
> {
|
|
761
|
+
method: 'reportDeploymentLogStreamEnd';
|
|
762
|
+
request: {
|
|
763
|
+
identity: IIdentity;
|
|
764
|
+
streamId: string;
|
|
765
|
+
/** e.g. 'container-exited' | 'stopped' | 'ttl-expired' | 'error' */
|
|
766
|
+
reason?: string;
|
|
767
|
+
};
|
|
768
|
+
response: Record<string, never>;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
export interface IReq_Cloudly_Any_PushDeploymentLogLines
|
|
772
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
773
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
774
|
+
IReq_Cloudly_Any_PushDeploymentLogLines
|
|
775
|
+
> {
|
|
776
|
+
method: 'pushDeploymentLogLines';
|
|
777
|
+
request: {
|
|
778
|
+
streamId: string;
|
|
779
|
+
deploymentId: string;
|
|
780
|
+
lines: string[];
|
|
781
|
+
};
|
|
782
|
+
response: Record<string, never>;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
export interface IReq_Cloudly_Any_PushDeploymentLogStreamEnd
|
|
786
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
787
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
788
|
+
IReq_Cloudly_Any_PushDeploymentLogStreamEnd
|
|
789
|
+
> {
|
|
790
|
+
method: 'pushDeploymentLogStreamEnd';
|
|
791
|
+
request: {
|
|
792
|
+
streamId: string;
|
|
793
|
+
reason?: string;
|
|
794
|
+
};
|
|
795
|
+
response: Record<string, never>;
|
|
796
|
+
}
|