plato-sandbox-sdk 1.1.13 → 1.1.14
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/package.json +1 -1
- package/dist/examples/flow-executor-example.d.ts +0 -11
- package/dist/examples/flow-executor-example.js +0 -193
- package/dist/src/apis/EnvApi.d.ts +0 -304
- package/dist/src/apis/EnvApi.js +0 -693
- package/dist/src/apis/GiteaApi.d.ts +0 -109
- package/dist/src/apis/GiteaApi.js +0 -225
- package/dist/src/apis/PublicBuildApi.d.ts +0 -125
- package/dist/src/apis/PublicBuildApi.js +0 -331
- package/dist/src/apis/SimulatorApi.d.ts +0 -62
- package/dist/src/apis/SimulatorApi.js +0 -162
- package/dist/src/apis/TestcasesApi.d.ts +0 -42
- package/dist/src/apis/TestcasesApi.js +0 -111
- package/dist/src/apis/UserApi.d.ts +0 -30
- package/dist/src/apis/UserApi.js +0 -71
- package/dist/src/apis/index.d.ts +0 -6
- package/dist/src/apis/index.js +0 -24
- package/dist/src/client.d.ts +0 -90
- package/dist/src/client.js +0 -256
- package/dist/src/flow/executor.d.ts +0 -108
- package/dist/src/flow/executor.js +0 -621
- package/dist/src/flow/index.d.ts +0 -6
- package/dist/src/flow/index.js +0 -22
- package/dist/src/flow/types.d.ts +0 -138
- package/dist/src/flow/types.js +0 -25
- package/dist/src/index.d.ts +0 -4
- package/dist/src/index.js +0 -22
- package/dist/src/models/Authentication.d.ts +0 -38
- package/dist/src/models/Authentication.js +0 -54
- package/dist/src/models/BaseScoringConfig.d.ts +0 -53
- package/dist/src/models/BaseScoringConfig.js +0 -71
- package/dist/src/models/BaseStructuredRunLog.d.ts +0 -67
- package/dist/src/models/BaseStructuredRunLog.js +0 -74
- package/dist/src/models/BatchLogRequest.d.ts +0 -63
- package/dist/src/models/BatchLogRequest.js +0 -71
- package/dist/src/models/ChromeCookie.d.ts +0 -68
- package/dist/src/models/ChromeCookie.js +0 -74
- package/dist/src/models/CreateSimulatorRequest.d.ts +0 -93
- package/dist/src/models/CreateSimulatorRequest.js +0 -75
- package/dist/src/models/CreateSnapshotRequest.d.ts +0 -74
- package/dist/src/models/CreateSnapshotRequest.js +0 -62
- package/dist/src/models/CreateSnapshotResponse.d.ts +0 -56
- package/dist/src/models/CreateSnapshotResponse.js +0 -66
- package/dist/src/models/CreateVMRequest.d.ts +0 -69
- package/dist/src/models/CreateVMRequest.js +0 -65
- package/dist/src/models/CreateVMResponse.d.ts +0 -62
- package/dist/src/models/CreateVMResponse.js +0 -68
- package/dist/src/models/DbConfigResponse.d.ts +0 -56
- package/dist/src/models/DbConfigResponse.js +0 -66
- package/dist/src/models/EvaluateRequest.d.ts +0 -34
- package/dist/src/models/EvaluateRequest.js +0 -48
- package/dist/src/models/GetOperationEventsApiPublicBuildEventsCorrelationIdGet200Response.d.ts +0 -60
- package/dist/src/models/GetOperationEventsApiPublicBuildEventsCorrelationIdGet200Response.js +0 -66
- package/dist/src/models/HTTPValidationError.d.ts +0 -33
- package/dist/src/models/HTTPValidationError.js +0 -49
- package/dist/src/models/JobStatusResponse.d.ts +0 -50
- package/dist/src/models/JobStatusResponse.js +0 -62
- package/dist/src/models/LocationInner.d.ts +0 -26
- package/dist/src/models/LocationInner.js +0 -38
- package/dist/src/models/Log.d.ts +0 -63
- package/dist/src/models/Log.js +0 -71
- package/dist/src/models/MakeEnvRequest2.d.ts +0 -145
- package/dist/src/models/MakeEnvRequest2.js +0 -99
- package/dist/src/models/MakeEnvResponse.d.ts +0 -38
- package/dist/src/models/MakeEnvResponse.js +0 -52
- package/dist/src/models/ResetEnvRequest.d.ts +0 -87
- package/dist/src/models/ResetEnvRequest.js +0 -67
- package/dist/src/models/ResetEnvTask.d.ts +0 -57
- package/dist/src/models/ResetEnvTask.js +0 -61
- package/dist/src/models/ScoreRequest.d.ts +0 -52
- package/dist/src/models/ScoreRequest.js +0 -56
- package/dist/src/models/SetupRootPasswordRequest.d.ts +0 -38
- package/dist/src/models/SetupRootPasswordRequest.js +0 -52
- package/dist/src/models/SetupSandboxRequest.d.ts +0 -63
- package/dist/src/models/SetupSandboxRequest.js +0 -63
- package/dist/src/models/SetupSandboxResponse.d.ts +0 -50
- package/dist/src/models/SetupSandboxResponse.js +0 -60
- package/dist/src/models/SimConfigCompute.d.ts +0 -56
- package/dist/src/models/SimConfigCompute.js +0 -56
- package/dist/src/models/SimConfigDataset.d.ts +0 -58
- package/dist/src/models/SimConfigDataset.js +0 -67
- package/dist/src/models/SimConfigListener.d.ts +0 -41
- package/dist/src/models/SimConfigListener.js +0 -59
- package/dist/src/models/SimConfigMetadata.d.ts +0 -76
- package/dist/src/models/SimConfigMetadata.js +0 -62
- package/dist/src/models/SimConfigService.d.ts +0 -40
- package/dist/src/models/SimConfigService.js +0 -58
- package/dist/src/models/SimStatusHistory.d.ts +0 -50
- package/dist/src/models/SimStatusHistory.js +0 -60
- package/dist/src/models/SimulatorConfig.d.ts +0 -130
- package/dist/src/models/SimulatorConfig.js +0 -103
- package/dist/src/models/SimulatorVersionDetails.d.ts +0 -68
- package/dist/src/models/SimulatorVersionDetails.js +0 -74
- package/dist/src/models/SimulatorVersionsResponse.d.ts +0 -45
- package/dist/src/models/SimulatorVersionsResponse.js +0 -59
- package/dist/src/models/VMManagementRequest.d.ts +0 -51
- package/dist/src/models/VMManagementRequest.js +0 -59
- package/dist/src/models/VMManagementResponse.d.ts +0 -44
- package/dist/src/models/VMManagementResponse.js +0 -56
- package/dist/src/models/ValidationError.d.ts +0 -45
- package/dist/src/models/ValidationError.js +0 -59
- package/dist/src/models/WorkerReadyResponse.d.ts +0 -76
- package/dist/src/models/WorkerReadyResponse.js +0 -64
- package/dist/src/models/index.d.ts +0 -38
- package/dist/src/models/index.js +0 -56
- package/dist/src/runtime.d.ts +0 -184
- package/dist/src/runtime.js +0 -350
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Example of using the Flow Executor for browser automation
|
|
3
|
-
*
|
|
4
|
-
* Run this example:
|
|
5
|
-
* 1. Install dependencies: npm install playwright
|
|
6
|
-
* 2. Build the SDK: npm run build
|
|
7
|
-
* 3. Run: npx ts-node examples/flow-executor-example.ts
|
|
8
|
-
*/
|
|
9
|
-
declare function exampleLoginFlow(): Promise<boolean>;
|
|
10
|
-
declare function exampleLoginScenario(): Promise<boolean>;
|
|
11
|
-
export { exampleLoginFlow, exampleLoginScenario };
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Example of using the Flow Executor for browser automation
|
|
4
|
-
*
|
|
5
|
-
* Run this example:
|
|
6
|
-
* 1. Install dependencies: npm install playwright
|
|
7
|
-
* 2. Build the SDK: npm run build
|
|
8
|
-
* 3. Run: npx ts-node examples/flow-executor-example.ts
|
|
9
|
-
*/
|
|
10
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
11
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
12
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
13
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
14
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
15
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
16
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
17
|
-
});
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.exampleLoginFlow = exampleLoginFlow;
|
|
21
|
-
exports.exampleLoginScenario = exampleLoginScenario;
|
|
22
|
-
const playwright_1 = require("playwright");
|
|
23
|
-
const flow_1 = require("../src/flow");
|
|
24
|
-
function exampleLoginFlow() {
|
|
25
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
console.log('🚀 Starting Flow Executor Example\n');
|
|
27
|
-
const browser = yield playwright_1.chromium.launch({ headless: false });
|
|
28
|
-
const page = yield browser.newPage();
|
|
29
|
-
// Define a complete flow
|
|
30
|
-
const flow = {
|
|
31
|
-
name: 'example-navigation',
|
|
32
|
-
description: 'Example flow demonstrating various step types',
|
|
33
|
-
steps: [
|
|
34
|
-
{
|
|
35
|
-
type: 'navigate',
|
|
36
|
-
url: 'https://example.com',
|
|
37
|
-
description: 'Navigate to Example.com'
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
type: 'wait',
|
|
41
|
-
duration: 1000,
|
|
42
|
-
description: 'Wait for page to settle'
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
type: 'verify',
|
|
46
|
-
verifyType: 'page_title',
|
|
47
|
-
title: 'Example Domain',
|
|
48
|
-
contains: false,
|
|
49
|
-
description: 'Verify exact page title'
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
type: 'verify',
|
|
53
|
-
verifyType: 'element_exists',
|
|
54
|
-
selector: 'h1',
|
|
55
|
-
description: 'Verify h1 element exists'
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
type: 'verify',
|
|
59
|
-
verifyType: 'element_text',
|
|
60
|
-
selector: 'h1',
|
|
61
|
-
text: 'Example Domain',
|
|
62
|
-
contains: false,
|
|
63
|
-
description: 'Verify h1 text content'
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
type: 'screenshot',
|
|
67
|
-
filename: 'example-page.png',
|
|
68
|
-
fullPage: true,
|
|
69
|
-
description: 'Take full page screenshot'
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
type: 'verify_no_errors',
|
|
73
|
-
description: 'Ensure no error indicators on page'
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
type: 'verify_url',
|
|
77
|
-
url: 'example.com',
|
|
78
|
-
contains: true,
|
|
79
|
-
description: 'Verify URL contains example.com'
|
|
80
|
-
}
|
|
81
|
-
]
|
|
82
|
-
};
|
|
83
|
-
const executor = new flow_1.FlowExecutor({
|
|
84
|
-
page,
|
|
85
|
-
flow,
|
|
86
|
-
screenshotsDir: './flow-screenshots'
|
|
87
|
-
});
|
|
88
|
-
const success = yield executor.executeFlow();
|
|
89
|
-
console.log('\n' + '='.repeat(60));
|
|
90
|
-
if (success) {
|
|
91
|
-
console.log('✅ Flow completed successfully!');
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
console.log('❌ Flow failed!');
|
|
95
|
-
}
|
|
96
|
-
console.log('='.repeat(60) + '\n');
|
|
97
|
-
// Keep browser open for a moment to see the result
|
|
98
|
-
yield page.waitForTimeout(2000);
|
|
99
|
-
yield browser.close();
|
|
100
|
-
return success;
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
// More complex example with a simulated login
|
|
104
|
-
function exampleLoginScenario() {
|
|
105
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
106
|
-
console.log('🚀 Starting Login Scenario Example\n');
|
|
107
|
-
const browser = yield playwright_1.chromium.launch({ headless: false });
|
|
108
|
-
const page = yield browser.newPage();
|
|
109
|
-
const loginFlow = {
|
|
110
|
-
name: 'github-login-page-visit',
|
|
111
|
-
description: 'Navigate to GitHub login and verify elements',
|
|
112
|
-
steps: [
|
|
113
|
-
{
|
|
114
|
-
type: 'navigate',
|
|
115
|
-
url: 'https://github.com/login',
|
|
116
|
-
description: 'Navigate to GitHub login page'
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
type: 'wait_for_selector',
|
|
120
|
-
selector: '#login_field',
|
|
121
|
-
timeout: 5000,
|
|
122
|
-
description: 'Wait for username field'
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
type: 'verify',
|
|
126
|
-
verifyType: 'element_visible',
|
|
127
|
-
selector: '#login_field',
|
|
128
|
-
description: 'Verify username field is visible'
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
type: 'verify',
|
|
132
|
-
verifyType: 'element_visible',
|
|
133
|
-
selector: '#password',
|
|
134
|
-
description: 'Verify password field is visible'
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
type: 'check_element',
|
|
138
|
-
selector: 'input[type="submit"]',
|
|
139
|
-
shouldExist: true,
|
|
140
|
-
description: 'Check that submit button exists'
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
type: 'screenshot',
|
|
144
|
-
filename: 'github-login.png',
|
|
145
|
-
fullPage: false,
|
|
146
|
-
description: 'Capture login page'
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
type: 'verify_no_errors',
|
|
150
|
-
description: 'Verify no errors on login page'
|
|
151
|
-
}
|
|
152
|
-
]
|
|
153
|
-
};
|
|
154
|
-
const executor = new flow_1.FlowExecutor({
|
|
155
|
-
page,
|
|
156
|
-
flow: loginFlow,
|
|
157
|
-
screenshotsDir: './flow-screenshots'
|
|
158
|
-
});
|
|
159
|
-
const success = yield executor.executeFlow();
|
|
160
|
-
console.log('\n' + '='.repeat(60));
|
|
161
|
-
if (success) {
|
|
162
|
-
console.log('✅ Login page verification completed successfully!');
|
|
163
|
-
}
|
|
164
|
-
else {
|
|
165
|
-
console.log('❌ Login page verification failed!');
|
|
166
|
-
}
|
|
167
|
-
console.log('='.repeat(60) + '\n');
|
|
168
|
-
yield page.waitForTimeout(2000);
|
|
169
|
-
yield browser.close();
|
|
170
|
-
return success;
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
// Run examples
|
|
174
|
-
function main() {
|
|
175
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
176
|
-
try {
|
|
177
|
-
// Run first example
|
|
178
|
-
yield exampleLoginFlow();
|
|
179
|
-
// Small delay between examples
|
|
180
|
-
yield new Promise(resolve => setTimeout(resolve, 1000));
|
|
181
|
-
// Run second example
|
|
182
|
-
yield exampleLoginScenario();
|
|
183
|
-
}
|
|
184
|
-
catch (error) {
|
|
185
|
-
console.error('Error running examples:', error);
|
|
186
|
-
process.exit(1);
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
// Only run if this is the main module
|
|
191
|
-
if (require.main === module) {
|
|
192
|
-
main();
|
|
193
|
-
}
|
|
@@ -1,304 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Plato API
|
|
3
|
-
* API for Plato platform - SDK routes only
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateSimulatorRequest, EvaluateRequest, JobStatusResponse, Log, MakeEnvRequest2, MakeEnvResponse, ResetEnvRequest, ScoreRequest, WorkerReadyResponse } from '../models/index';
|
|
14
|
-
export interface BackupEnvApiEnvJobGroupIdBackupPostRequest {
|
|
15
|
-
jobGroupId: string;
|
|
16
|
-
authorization?: string;
|
|
17
|
-
xInternalService?: string;
|
|
18
|
-
}
|
|
19
|
-
export interface CloseEnvApiEnvJobGroupIdClosePostRequest {
|
|
20
|
-
jobGroupId: string;
|
|
21
|
-
authorization?: string;
|
|
22
|
-
xInternalService?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface CreateSimulatorApiEnvSimulatorsPostRequest {
|
|
25
|
-
createSimulatorRequest: CreateSimulatorRequest;
|
|
26
|
-
authorization?: string;
|
|
27
|
-
xInternalService?: string;
|
|
28
|
-
}
|
|
29
|
-
export interface EvaluateSessionApiEnvSessionSessionIdEvaluatePostRequest {
|
|
30
|
-
sessionId: string;
|
|
31
|
-
authorization?: string;
|
|
32
|
-
xInternalService?: string;
|
|
33
|
-
evaluateRequest?: EvaluateRequest;
|
|
34
|
-
}
|
|
35
|
-
export interface GetActiveSessionApiEnvJobGroupIdActiveSessionGetRequest {
|
|
36
|
-
jobGroupId: string;
|
|
37
|
-
authorization?: string;
|
|
38
|
-
xInternalService?: string;
|
|
39
|
-
}
|
|
40
|
-
export interface GetCdpUrlApiEnvJobGroupIdCdpUrlGetRequest {
|
|
41
|
-
jobGroupId: string;
|
|
42
|
-
authorization?: string;
|
|
43
|
-
xInternalService?: string;
|
|
44
|
-
}
|
|
45
|
-
export interface GetEnvStateApiEnvJobGroupIdStateGetRequest {
|
|
46
|
-
jobGroupId: string;
|
|
47
|
-
authorization?: string;
|
|
48
|
-
xInternalService?: string;
|
|
49
|
-
}
|
|
50
|
-
export interface GetJobStatusApiEnvJobGroupIdStatusGetRequest {
|
|
51
|
-
jobGroupId: string;
|
|
52
|
-
authorization?: string;
|
|
53
|
-
xInternalService?: string;
|
|
54
|
-
}
|
|
55
|
-
export interface GetProxyUrlApiEnvJobGroupIdProxyUrlGetRequest {
|
|
56
|
-
jobGroupId: string;
|
|
57
|
-
authorization?: string;
|
|
58
|
-
xInternalService?: string;
|
|
59
|
-
}
|
|
60
|
-
export interface GetSimulatorsApiEnvSimulatorsGetRequest {
|
|
61
|
-
authorization?: string;
|
|
62
|
-
xInternalService?: string;
|
|
63
|
-
}
|
|
64
|
-
export interface GetWorkerReadyApiEnvJobIdWorkerReadyGetRequest {
|
|
65
|
-
jobId: string;
|
|
66
|
-
timeout?: number;
|
|
67
|
-
authorization?: string;
|
|
68
|
-
xInternalService?: string;
|
|
69
|
-
}
|
|
70
|
-
export interface LogStateMutationApiEnvSessionIdLogPostRequest {
|
|
71
|
-
sessionId: string;
|
|
72
|
-
log: Log;
|
|
73
|
-
}
|
|
74
|
-
export interface MakeEnvApiEnvMake2PostRequest {
|
|
75
|
-
makeEnvRequest2: MakeEnvRequest2;
|
|
76
|
-
authorization?: string;
|
|
77
|
-
xInternalService?: string;
|
|
78
|
-
}
|
|
79
|
-
export interface ResetEnvApiEnvJobGroupIdResetPostRequest {
|
|
80
|
-
jobGroupId: string;
|
|
81
|
-
resetEnvRequest: ResetEnvRequest;
|
|
82
|
-
authorization?: string;
|
|
83
|
-
xInternalService?: string;
|
|
84
|
-
}
|
|
85
|
-
export interface ScoreEnvApiEnvSessionSessionIdScorePostRequest {
|
|
86
|
-
sessionId: string;
|
|
87
|
-
scoreRequest: ScoreRequest;
|
|
88
|
-
authorization?: string;
|
|
89
|
-
xInternalService?: string;
|
|
90
|
-
}
|
|
91
|
-
export interface SendHeartbeatApiEnvJobIdHeartbeatPostRequest {
|
|
92
|
-
jobId: string;
|
|
93
|
-
authorization?: string;
|
|
94
|
-
xInternalService?: string;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
*/
|
|
99
|
-
export declare class EnvApi extends runtime.BaseAPI {
|
|
100
|
-
/**
|
|
101
|
-
* Create a backup of the environment.
|
|
102
|
-
* Backup Env
|
|
103
|
-
*/
|
|
104
|
-
backupEnvApiEnvJobGroupIdBackupPostRaw(requestParameters: BackupEnvApiEnvJobGroupIdBackupPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
105
|
-
[key: string]: any;
|
|
106
|
-
}>>;
|
|
107
|
-
/**
|
|
108
|
-
* Create a backup of the environment.
|
|
109
|
-
* Backup Env
|
|
110
|
-
*/
|
|
111
|
-
backupEnvApiEnvJobGroupIdBackupPost(requestParameters: BackupEnvApiEnvJobGroupIdBackupPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
112
|
-
[key: string]: any;
|
|
113
|
-
}>;
|
|
114
|
-
/**
|
|
115
|
-
* Close Env
|
|
116
|
-
*/
|
|
117
|
-
closeEnvApiEnvJobGroupIdClosePostRaw(requestParameters: CloseEnvApiEnvJobGroupIdClosePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
118
|
-
[key: string]: any;
|
|
119
|
-
}>>;
|
|
120
|
-
/**
|
|
121
|
-
* Close Env
|
|
122
|
-
*/
|
|
123
|
-
closeEnvApiEnvJobGroupIdClosePost(requestParameters: CloseEnvApiEnvJobGroupIdClosePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
124
|
-
[key: string]: any;
|
|
125
|
-
}>;
|
|
126
|
-
/**
|
|
127
|
-
* Create a new simulator.
|
|
128
|
-
* Create Simulator
|
|
129
|
-
*/
|
|
130
|
-
createSimulatorApiEnvSimulatorsPostRaw(requestParameters: CreateSimulatorApiEnvSimulatorsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
131
|
-
[key: string]: any;
|
|
132
|
-
}>>;
|
|
133
|
-
/**
|
|
134
|
-
* Create a new simulator.
|
|
135
|
-
* Create Simulator
|
|
136
|
-
*/
|
|
137
|
-
createSimulatorApiEnvSimulatorsPost(requestParameters: CreateSimulatorApiEnvSimulatorsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
138
|
-
[key: string]: any;
|
|
139
|
-
}>;
|
|
140
|
-
/**
|
|
141
|
-
* Evaluate the session.
|
|
142
|
-
* Evaluate Session
|
|
143
|
-
*/
|
|
144
|
-
evaluateSessionApiEnvSessionSessionIdEvaluatePostRaw(requestParameters: EvaluateSessionApiEnvSessionSessionIdEvaluatePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
145
|
-
[key: string]: any;
|
|
146
|
-
}>>;
|
|
147
|
-
/**
|
|
148
|
-
* Evaluate the session.
|
|
149
|
-
* Evaluate Session
|
|
150
|
-
*/
|
|
151
|
-
evaluateSessionApiEnvSessionSessionIdEvaluatePost(requestParameters: EvaluateSessionApiEnvSessionSessionIdEvaluatePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
152
|
-
[key: string]: any;
|
|
153
|
-
}>;
|
|
154
|
-
/**
|
|
155
|
-
* Get the active session for a job group.
|
|
156
|
-
* Get Active Session
|
|
157
|
-
*/
|
|
158
|
-
getActiveSessionApiEnvJobGroupIdActiveSessionGetRaw(requestParameters: GetActiveSessionApiEnvJobGroupIdActiveSessionGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
159
|
-
[key: string]: any;
|
|
160
|
-
}>>;
|
|
161
|
-
/**
|
|
162
|
-
* Get the active session for a job group.
|
|
163
|
-
* Get Active Session
|
|
164
|
-
*/
|
|
165
|
-
getActiveSessionApiEnvJobGroupIdActiveSessionGet(requestParameters: GetActiveSessionApiEnvJobGroupIdActiveSessionGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
166
|
-
[key: string]: any;
|
|
167
|
-
}>;
|
|
168
|
-
/**
|
|
169
|
-
* Get the CDP URL for the environment.
|
|
170
|
-
* Get Cdp Url
|
|
171
|
-
*/
|
|
172
|
-
getCdpUrlApiEnvJobGroupIdCdpUrlGetRaw(requestParameters: GetCdpUrlApiEnvJobGroupIdCdpUrlGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
173
|
-
[key: string]: any;
|
|
174
|
-
}>>;
|
|
175
|
-
/**
|
|
176
|
-
* Get the CDP URL for the environment.
|
|
177
|
-
* Get Cdp Url
|
|
178
|
-
*/
|
|
179
|
-
getCdpUrlApiEnvJobGroupIdCdpUrlGet(requestParameters: GetCdpUrlApiEnvJobGroupIdCdpUrlGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
180
|
-
[key: string]: any;
|
|
181
|
-
}>;
|
|
182
|
-
/**
|
|
183
|
-
* Get Env State
|
|
184
|
-
*/
|
|
185
|
-
getEnvStateApiEnvJobGroupIdStateGetRaw(requestParameters: GetEnvStateApiEnvJobGroupIdStateGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
186
|
-
[key: string]: any;
|
|
187
|
-
}>>;
|
|
188
|
-
/**
|
|
189
|
-
* Get Env State
|
|
190
|
-
*/
|
|
191
|
-
getEnvStateApiEnvJobGroupIdStateGet(requestParameters: GetEnvStateApiEnvJobGroupIdStateGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
192
|
-
[key: string]: any;
|
|
193
|
-
}>;
|
|
194
|
-
/**
|
|
195
|
-
* Get Job Status
|
|
196
|
-
*/
|
|
197
|
-
getJobStatusApiEnvJobGroupIdStatusGetRaw(requestParameters: GetJobStatusApiEnvJobGroupIdStatusGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobStatusResponse>>;
|
|
198
|
-
/**
|
|
199
|
-
* Get Job Status
|
|
200
|
-
*/
|
|
201
|
-
getJobStatusApiEnvJobGroupIdStatusGet(requestParameters: GetJobStatusApiEnvJobGroupIdStatusGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobStatusResponse>;
|
|
202
|
-
/**
|
|
203
|
-
* Get the public URL for the environment.
|
|
204
|
-
* Get Proxy Url
|
|
205
|
-
*/
|
|
206
|
-
getProxyUrlApiEnvJobGroupIdProxyUrlGetRaw(requestParameters: GetProxyUrlApiEnvJobGroupIdProxyUrlGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
207
|
-
[key: string]: any;
|
|
208
|
-
}>>;
|
|
209
|
-
/**
|
|
210
|
-
* Get the public URL for the environment.
|
|
211
|
-
* Get Proxy Url
|
|
212
|
-
*/
|
|
213
|
-
getProxyUrlApiEnvJobGroupIdProxyUrlGet(requestParameters: GetProxyUrlApiEnvJobGroupIdProxyUrlGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
214
|
-
[key: string]: any;
|
|
215
|
-
}>;
|
|
216
|
-
/**
|
|
217
|
-
* Get all simulators with optimized queries.
|
|
218
|
-
* Get Simulators
|
|
219
|
-
*/
|
|
220
|
-
getSimulatorsApiEnvSimulatorsGetRaw(requestParameters: GetSimulatorsApiEnvSimulatorsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<{
|
|
221
|
-
[key: string]: any;
|
|
222
|
-
}>>>;
|
|
223
|
-
/**
|
|
224
|
-
* Get all simulators with optimized queries.
|
|
225
|
-
* Get Simulators
|
|
226
|
-
*/
|
|
227
|
-
getSimulatorsApiEnvSimulatorsGet(requestParameters?: GetSimulatorsApiEnvSimulatorsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<{
|
|
228
|
-
[key: string]: any;
|
|
229
|
-
}>>;
|
|
230
|
-
/**
|
|
231
|
-
* Check if the workers for this job group are ready and healthy. Uses the persistent job ready notification service to wait for job readiness. Falls back to checking Redis if notification not received (in case we missed it). Raises 500 if job not ready after all checks.
|
|
232
|
-
* Get Worker Ready
|
|
233
|
-
*/
|
|
234
|
-
getWorkerReadyApiEnvJobIdWorkerReadyGetRaw(requestParameters: GetWorkerReadyApiEnvJobIdWorkerReadyGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkerReadyResponse>>;
|
|
235
|
-
/**
|
|
236
|
-
* Check if the workers for this job group are ready and healthy. Uses the persistent job ready notification service to wait for job readiness. Falls back to checking Redis if notification not received (in case we missed it). Raises 500 if job not ready after all checks.
|
|
237
|
-
* Get Worker Ready
|
|
238
|
-
*/
|
|
239
|
-
getWorkerReadyApiEnvJobIdWorkerReadyGet(requestParameters: GetWorkerReadyApiEnvJobIdWorkerReadyGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkerReadyResponse>;
|
|
240
|
-
/**
|
|
241
|
-
* Log a state mutation or batch of mutations.
|
|
242
|
-
* Log State Mutation
|
|
243
|
-
*/
|
|
244
|
-
logStateMutationApiEnvSessionIdLogPostRaw(requestParameters: LogStateMutationApiEnvSessionIdLogPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
245
|
-
[key: string]: any;
|
|
246
|
-
}>>;
|
|
247
|
-
/**
|
|
248
|
-
* Log a state mutation or batch of mutations.
|
|
249
|
-
* Log State Mutation
|
|
250
|
-
*/
|
|
251
|
-
logStateMutationApiEnvSessionIdLogPost(requestParameters: LogStateMutationApiEnvSessionIdLogPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
252
|
-
[key: string]: any;
|
|
253
|
-
}>;
|
|
254
|
-
/**
|
|
255
|
-
* Make Env
|
|
256
|
-
*/
|
|
257
|
-
makeEnvApiEnvMake2PostRaw(requestParameters: MakeEnvApiEnvMake2PostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MakeEnvResponse>>;
|
|
258
|
-
/**
|
|
259
|
-
* Make Env
|
|
260
|
-
*/
|
|
261
|
-
makeEnvApiEnvMake2Post(requestParameters: MakeEnvApiEnvMake2PostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MakeEnvResponse>;
|
|
262
|
-
/**
|
|
263
|
-
* Reset the environment with an optional task.
|
|
264
|
-
* Reset Env
|
|
265
|
-
*/
|
|
266
|
-
resetEnvApiEnvJobGroupIdResetPostRaw(requestParameters: ResetEnvApiEnvJobGroupIdResetPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
267
|
-
[key: string]: any;
|
|
268
|
-
}>>;
|
|
269
|
-
/**
|
|
270
|
-
* Reset the environment with an optional task.
|
|
271
|
-
* Reset Env
|
|
272
|
-
*/
|
|
273
|
-
resetEnvApiEnvJobGroupIdResetPost(requestParameters: ResetEnvApiEnvJobGroupIdResetPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
274
|
-
[key: string]: any;
|
|
275
|
-
}>;
|
|
276
|
-
/**
|
|
277
|
-
* Score the environment.
|
|
278
|
-
* Score Env
|
|
279
|
-
*/
|
|
280
|
-
scoreEnvApiEnvSessionSessionIdScorePostRaw(requestParameters: ScoreEnvApiEnvSessionSessionIdScorePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
281
|
-
[key: string]: any;
|
|
282
|
-
}>>;
|
|
283
|
-
/**
|
|
284
|
-
* Score the environment.
|
|
285
|
-
* Score Env
|
|
286
|
-
*/
|
|
287
|
-
scoreEnvApiEnvSessionSessionIdScorePost(requestParameters: ScoreEnvApiEnvSessionSessionIdScorePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
288
|
-
[key: string]: any;
|
|
289
|
-
}>;
|
|
290
|
-
/**
|
|
291
|
-
* Send a heartbeat to keep the environment session alive.
|
|
292
|
-
* Send Heartbeat
|
|
293
|
-
*/
|
|
294
|
-
sendHeartbeatApiEnvJobIdHeartbeatPostRaw(requestParameters: SendHeartbeatApiEnvJobIdHeartbeatPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
295
|
-
[key: string]: any;
|
|
296
|
-
}>>;
|
|
297
|
-
/**
|
|
298
|
-
* Send a heartbeat to keep the environment session alive.
|
|
299
|
-
* Send Heartbeat
|
|
300
|
-
*/
|
|
301
|
-
sendHeartbeatApiEnvJobIdHeartbeatPost(requestParameters: SendHeartbeatApiEnvJobIdHeartbeatPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
302
|
-
[key: string]: any;
|
|
303
|
-
}>;
|
|
304
|
-
}
|