modal 0.7.3-dev.1 → 0.7.3
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/index.cjs +831 -7
- package/dist/index.d.cts +79 -0
- package/dist/index.d.ts +79 -0
- package/dist/index.js +831 -7
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -414,6 +414,31 @@ interface AppClientDisconnectRequest {
|
|
|
414
414
|
exception: string;
|
|
415
415
|
}
|
|
416
416
|
declare const AppClientDisconnectRequest: MessageFns$1<AppClientDisconnectRequest>;
|
|
417
|
+
interface AppCountLogsRequest {
|
|
418
|
+
appId: string;
|
|
419
|
+
taskId: string;
|
|
420
|
+
functionId: string;
|
|
421
|
+
functionCallId: string;
|
|
422
|
+
sandboxId: string;
|
|
423
|
+
searchText: string;
|
|
424
|
+
since: Date | undefined;
|
|
425
|
+
until: Date | undefined;
|
|
426
|
+
bucketSecs: number;
|
|
427
|
+
source: FileDescriptor;
|
|
428
|
+
}
|
|
429
|
+
declare const AppCountLogsRequest: MessageFns$1<AppCountLogsRequest>;
|
|
430
|
+
interface AppCountLogsResponse {
|
|
431
|
+
appId: string;
|
|
432
|
+
buckets: AppCountLogsResponse_LogBucket[];
|
|
433
|
+
}
|
|
434
|
+
declare const AppCountLogsResponse: MessageFns$1<AppCountLogsResponse>;
|
|
435
|
+
interface AppCountLogsResponse_LogBucket {
|
|
436
|
+
bucketStartAt: Date | undefined;
|
|
437
|
+
stdoutLogs: number;
|
|
438
|
+
stderrLogs: number;
|
|
439
|
+
systemLogs: number;
|
|
440
|
+
}
|
|
441
|
+
declare const AppCountLogsResponse_LogBucket: MessageFns$1<AppCountLogsResponse_LogBucket>;
|
|
417
442
|
interface AppCreateRequest {
|
|
418
443
|
clientId: string;
|
|
419
444
|
/** Human readable label for the app */
|
|
@@ -465,6 +490,23 @@ interface AppDeploymentHistoryResponse {
|
|
|
465
490
|
appDeploymentHistories: AppDeploymentHistory[];
|
|
466
491
|
}
|
|
467
492
|
declare const AppDeploymentHistoryResponse: MessageFns$1<AppDeploymentHistoryResponse>;
|
|
493
|
+
interface AppFetchLogsRequest {
|
|
494
|
+
appId: string;
|
|
495
|
+
since: Date | undefined;
|
|
496
|
+
until: Date | undefined;
|
|
497
|
+
limit: number;
|
|
498
|
+
source: FileDescriptor;
|
|
499
|
+
functionId: string;
|
|
500
|
+
functionCallId: string;
|
|
501
|
+
taskId: string;
|
|
502
|
+
sandboxId: string;
|
|
503
|
+
searchText: string;
|
|
504
|
+
}
|
|
505
|
+
declare const AppFetchLogsRequest: MessageFns$1<AppFetchLogsRequest>;
|
|
506
|
+
interface AppFetchLogsResponse {
|
|
507
|
+
batches: TaskLogsBatch[];
|
|
508
|
+
}
|
|
509
|
+
declare const AppFetchLogsResponse: MessageFns$1<AppFetchLogsResponse>;
|
|
468
510
|
interface AppGetByDeploymentNameRequest {
|
|
469
511
|
name: string;
|
|
470
512
|
environmentName: string;
|
|
@@ -608,6 +650,7 @@ declare const AppPublishRequest: MessageFns$1<AppPublishRequest>;
|
|
|
608
650
|
interface AppPublishResponse {
|
|
609
651
|
url: string;
|
|
610
652
|
serverWarnings: Warning[];
|
|
653
|
+
deployedAt: number;
|
|
611
654
|
}
|
|
612
655
|
declare const AppPublishResponse: MessageFns$1<AppPublishResponse>;
|
|
613
656
|
interface AppRollbackRequest {
|
|
@@ -2761,6 +2804,16 @@ interface SandboxCreateResponse {
|
|
|
2761
2804
|
sandboxId: string;
|
|
2762
2805
|
}
|
|
2763
2806
|
declare const SandboxCreateResponse: MessageFns$1<SandboxCreateResponse>;
|
|
2807
|
+
interface SandboxCreateV2Request {
|
|
2808
|
+
appId: string;
|
|
2809
|
+
definition: Sandbox$1 | undefined;
|
|
2810
|
+
}
|
|
2811
|
+
declare const SandboxCreateV2Request: MessageFns$1<SandboxCreateV2Request>;
|
|
2812
|
+
interface SandboxCreateV2Response {
|
|
2813
|
+
sandboxId: string;
|
|
2814
|
+
tunnels: TunnelData[];
|
|
2815
|
+
}
|
|
2816
|
+
declare const SandboxCreateV2Response: MessageFns$1<SandboxCreateV2Response>;
|
|
2764
2817
|
interface SandboxGetFromNameRequest {
|
|
2765
2818
|
sandboxName: string;
|
|
2766
2819
|
environmentName: string;
|
|
@@ -3181,6 +3234,7 @@ interface TaskInfo {
|
|
|
3181
3234
|
declare const TaskInfo: MessageFns$1<TaskInfo>;
|
|
3182
3235
|
interface TaskListRequest {
|
|
3183
3236
|
environmentName: string;
|
|
3237
|
+
appId: string;
|
|
3184
3238
|
}
|
|
3185
3239
|
declare const TaskListRequest: MessageFns$1<TaskListRequest>;
|
|
3186
3240
|
interface TaskListResponse {
|
|
@@ -3230,6 +3284,7 @@ interface TaskStats {
|
|
|
3230
3284
|
appId: string;
|
|
3231
3285
|
appDescription: string;
|
|
3232
3286
|
startedAt: number;
|
|
3287
|
+
enqueuedAt: number;
|
|
3233
3288
|
}
|
|
3234
3289
|
declare const TaskStats: MessageFns$1<TaskStats>;
|
|
3235
3290
|
interface TaskTemplate {
|
|
@@ -3658,6 +3713,14 @@ declare const ModalClientDefinition: {
|
|
|
3658
3713
|
readonly responseStream: false;
|
|
3659
3714
|
readonly options: {};
|
|
3660
3715
|
};
|
|
3716
|
+
readonly appCountLogs: {
|
|
3717
|
+
readonly name: "AppCountLogs";
|
|
3718
|
+
readonly requestType: MessageFns$1<AppCountLogsRequest>;
|
|
3719
|
+
readonly requestStream: false;
|
|
3720
|
+
readonly responseType: MessageFns$1<AppCountLogsResponse>;
|
|
3721
|
+
readonly responseStream: false;
|
|
3722
|
+
readonly options: {};
|
|
3723
|
+
};
|
|
3661
3724
|
readonly appCreate: {
|
|
3662
3725
|
readonly name: "AppCreate";
|
|
3663
3726
|
readonly requestType: MessageFns$1<AppCreateRequest>;
|
|
@@ -3682,6 +3745,14 @@ declare const ModalClientDefinition: {
|
|
|
3682
3745
|
readonly responseStream: false;
|
|
3683
3746
|
readonly options: {};
|
|
3684
3747
|
};
|
|
3748
|
+
readonly appFetchLogs: {
|
|
3749
|
+
readonly name: "AppFetchLogs";
|
|
3750
|
+
readonly requestType: MessageFns$1<AppFetchLogsRequest>;
|
|
3751
|
+
readonly requestStream: false;
|
|
3752
|
+
readonly responseType: MessageFns$1<AppFetchLogsResponse>;
|
|
3753
|
+
readonly responseStream: false;
|
|
3754
|
+
readonly options: {};
|
|
3755
|
+
};
|
|
3685
3756
|
readonly appGetByDeploymentName: {
|
|
3686
3757
|
readonly name: "AppGetByDeploymentName";
|
|
3687
3758
|
readonly requestType: MessageFns$1<AppGetByDeploymentNameRequest>;
|
|
@@ -4617,6 +4688,14 @@ declare const ModalClientDefinition: {
|
|
|
4617
4688
|
readonly responseStream: false;
|
|
4618
4689
|
readonly options: {};
|
|
4619
4690
|
};
|
|
4691
|
+
readonly sandboxCreateV2: {
|
|
4692
|
+
readonly name: "SandboxCreateV2";
|
|
4693
|
+
readonly requestType: MessageFns$1<SandboxCreateV2Request>;
|
|
4694
|
+
readonly requestStream: false;
|
|
4695
|
+
readonly responseType: MessageFns$1<SandboxCreateV2Response>;
|
|
4696
|
+
readonly responseStream: false;
|
|
4697
|
+
readonly options: {};
|
|
4698
|
+
};
|
|
4620
4699
|
readonly sandboxGetFromName: {
|
|
4621
4700
|
readonly name: "SandboxGetFromName";
|
|
4622
4701
|
readonly requestType: MessageFns$1<SandboxGetFromNameRequest>;
|
package/dist/index.d.ts
CHANGED
|
@@ -414,6 +414,31 @@ interface AppClientDisconnectRequest {
|
|
|
414
414
|
exception: string;
|
|
415
415
|
}
|
|
416
416
|
declare const AppClientDisconnectRequest: MessageFns$1<AppClientDisconnectRequest>;
|
|
417
|
+
interface AppCountLogsRequest {
|
|
418
|
+
appId: string;
|
|
419
|
+
taskId: string;
|
|
420
|
+
functionId: string;
|
|
421
|
+
functionCallId: string;
|
|
422
|
+
sandboxId: string;
|
|
423
|
+
searchText: string;
|
|
424
|
+
since: Date | undefined;
|
|
425
|
+
until: Date | undefined;
|
|
426
|
+
bucketSecs: number;
|
|
427
|
+
source: FileDescriptor;
|
|
428
|
+
}
|
|
429
|
+
declare const AppCountLogsRequest: MessageFns$1<AppCountLogsRequest>;
|
|
430
|
+
interface AppCountLogsResponse {
|
|
431
|
+
appId: string;
|
|
432
|
+
buckets: AppCountLogsResponse_LogBucket[];
|
|
433
|
+
}
|
|
434
|
+
declare const AppCountLogsResponse: MessageFns$1<AppCountLogsResponse>;
|
|
435
|
+
interface AppCountLogsResponse_LogBucket {
|
|
436
|
+
bucketStartAt: Date | undefined;
|
|
437
|
+
stdoutLogs: number;
|
|
438
|
+
stderrLogs: number;
|
|
439
|
+
systemLogs: number;
|
|
440
|
+
}
|
|
441
|
+
declare const AppCountLogsResponse_LogBucket: MessageFns$1<AppCountLogsResponse_LogBucket>;
|
|
417
442
|
interface AppCreateRequest {
|
|
418
443
|
clientId: string;
|
|
419
444
|
/** Human readable label for the app */
|
|
@@ -465,6 +490,23 @@ interface AppDeploymentHistoryResponse {
|
|
|
465
490
|
appDeploymentHistories: AppDeploymentHistory[];
|
|
466
491
|
}
|
|
467
492
|
declare const AppDeploymentHistoryResponse: MessageFns$1<AppDeploymentHistoryResponse>;
|
|
493
|
+
interface AppFetchLogsRequest {
|
|
494
|
+
appId: string;
|
|
495
|
+
since: Date | undefined;
|
|
496
|
+
until: Date | undefined;
|
|
497
|
+
limit: number;
|
|
498
|
+
source: FileDescriptor;
|
|
499
|
+
functionId: string;
|
|
500
|
+
functionCallId: string;
|
|
501
|
+
taskId: string;
|
|
502
|
+
sandboxId: string;
|
|
503
|
+
searchText: string;
|
|
504
|
+
}
|
|
505
|
+
declare const AppFetchLogsRequest: MessageFns$1<AppFetchLogsRequest>;
|
|
506
|
+
interface AppFetchLogsResponse {
|
|
507
|
+
batches: TaskLogsBatch[];
|
|
508
|
+
}
|
|
509
|
+
declare const AppFetchLogsResponse: MessageFns$1<AppFetchLogsResponse>;
|
|
468
510
|
interface AppGetByDeploymentNameRequest {
|
|
469
511
|
name: string;
|
|
470
512
|
environmentName: string;
|
|
@@ -608,6 +650,7 @@ declare const AppPublishRequest: MessageFns$1<AppPublishRequest>;
|
|
|
608
650
|
interface AppPublishResponse {
|
|
609
651
|
url: string;
|
|
610
652
|
serverWarnings: Warning[];
|
|
653
|
+
deployedAt: number;
|
|
611
654
|
}
|
|
612
655
|
declare const AppPublishResponse: MessageFns$1<AppPublishResponse>;
|
|
613
656
|
interface AppRollbackRequest {
|
|
@@ -2761,6 +2804,16 @@ interface SandboxCreateResponse {
|
|
|
2761
2804
|
sandboxId: string;
|
|
2762
2805
|
}
|
|
2763
2806
|
declare const SandboxCreateResponse: MessageFns$1<SandboxCreateResponse>;
|
|
2807
|
+
interface SandboxCreateV2Request {
|
|
2808
|
+
appId: string;
|
|
2809
|
+
definition: Sandbox$1 | undefined;
|
|
2810
|
+
}
|
|
2811
|
+
declare const SandboxCreateV2Request: MessageFns$1<SandboxCreateV2Request>;
|
|
2812
|
+
interface SandboxCreateV2Response {
|
|
2813
|
+
sandboxId: string;
|
|
2814
|
+
tunnels: TunnelData[];
|
|
2815
|
+
}
|
|
2816
|
+
declare const SandboxCreateV2Response: MessageFns$1<SandboxCreateV2Response>;
|
|
2764
2817
|
interface SandboxGetFromNameRequest {
|
|
2765
2818
|
sandboxName: string;
|
|
2766
2819
|
environmentName: string;
|
|
@@ -3181,6 +3234,7 @@ interface TaskInfo {
|
|
|
3181
3234
|
declare const TaskInfo: MessageFns$1<TaskInfo>;
|
|
3182
3235
|
interface TaskListRequest {
|
|
3183
3236
|
environmentName: string;
|
|
3237
|
+
appId: string;
|
|
3184
3238
|
}
|
|
3185
3239
|
declare const TaskListRequest: MessageFns$1<TaskListRequest>;
|
|
3186
3240
|
interface TaskListResponse {
|
|
@@ -3230,6 +3284,7 @@ interface TaskStats {
|
|
|
3230
3284
|
appId: string;
|
|
3231
3285
|
appDescription: string;
|
|
3232
3286
|
startedAt: number;
|
|
3287
|
+
enqueuedAt: number;
|
|
3233
3288
|
}
|
|
3234
3289
|
declare const TaskStats: MessageFns$1<TaskStats>;
|
|
3235
3290
|
interface TaskTemplate {
|
|
@@ -3658,6 +3713,14 @@ declare const ModalClientDefinition: {
|
|
|
3658
3713
|
readonly responseStream: false;
|
|
3659
3714
|
readonly options: {};
|
|
3660
3715
|
};
|
|
3716
|
+
readonly appCountLogs: {
|
|
3717
|
+
readonly name: "AppCountLogs";
|
|
3718
|
+
readonly requestType: MessageFns$1<AppCountLogsRequest>;
|
|
3719
|
+
readonly requestStream: false;
|
|
3720
|
+
readonly responseType: MessageFns$1<AppCountLogsResponse>;
|
|
3721
|
+
readonly responseStream: false;
|
|
3722
|
+
readonly options: {};
|
|
3723
|
+
};
|
|
3661
3724
|
readonly appCreate: {
|
|
3662
3725
|
readonly name: "AppCreate";
|
|
3663
3726
|
readonly requestType: MessageFns$1<AppCreateRequest>;
|
|
@@ -3682,6 +3745,14 @@ declare const ModalClientDefinition: {
|
|
|
3682
3745
|
readonly responseStream: false;
|
|
3683
3746
|
readonly options: {};
|
|
3684
3747
|
};
|
|
3748
|
+
readonly appFetchLogs: {
|
|
3749
|
+
readonly name: "AppFetchLogs";
|
|
3750
|
+
readonly requestType: MessageFns$1<AppFetchLogsRequest>;
|
|
3751
|
+
readonly requestStream: false;
|
|
3752
|
+
readonly responseType: MessageFns$1<AppFetchLogsResponse>;
|
|
3753
|
+
readonly responseStream: false;
|
|
3754
|
+
readonly options: {};
|
|
3755
|
+
};
|
|
3685
3756
|
readonly appGetByDeploymentName: {
|
|
3686
3757
|
readonly name: "AppGetByDeploymentName";
|
|
3687
3758
|
readonly requestType: MessageFns$1<AppGetByDeploymentNameRequest>;
|
|
@@ -4617,6 +4688,14 @@ declare const ModalClientDefinition: {
|
|
|
4617
4688
|
readonly responseStream: false;
|
|
4618
4689
|
readonly options: {};
|
|
4619
4690
|
};
|
|
4691
|
+
readonly sandboxCreateV2: {
|
|
4692
|
+
readonly name: "SandboxCreateV2";
|
|
4693
|
+
readonly requestType: MessageFns$1<SandboxCreateV2Request>;
|
|
4694
|
+
readonly requestStream: false;
|
|
4695
|
+
readonly responseType: MessageFns$1<SandboxCreateV2Response>;
|
|
4696
|
+
readonly responseStream: false;
|
|
4697
|
+
readonly options: {};
|
|
4698
|
+
};
|
|
4620
4699
|
readonly sandboxGetFromName: {
|
|
4621
4700
|
readonly name: "SandboxGetFromName";
|
|
4622
4701
|
readonly requestType: MessageFns$1<SandboxGetFromNameRequest>;
|