@eigenpal/sdk 0.6.15 → 0.6.16
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/src/generated/index.ts +0 -7
- package/src/generated/sdk.gen.ts +0 -17
- package/src/generated/types.gen.ts +0 -54
- package/src/index.ts +0 -1
- package/src/resources/runs.ts +0 -8
- package/src/telemetry.ts +1 -1
package/package.json
CHANGED
package/src/generated/index.ts
CHANGED
|
@@ -36,7 +36,6 @@ export {
|
|
|
36
36
|
runsGet,
|
|
37
37
|
runsList,
|
|
38
38
|
runsRerun,
|
|
39
|
-
runsResume,
|
|
40
39
|
runsTraceGet,
|
|
41
40
|
sourceLockfilePreview,
|
|
42
41
|
sourceRaw,
|
|
@@ -141,7 +140,6 @@ export type {
|
|
|
141
140
|
RunFilesResponse,
|
|
142
141
|
RunRerunRequest,
|
|
143
142
|
RunRerunResponse,
|
|
144
|
-
RunResumeResponse,
|
|
145
143
|
RunStartResponse,
|
|
146
144
|
RunStartWithTargetData,
|
|
147
145
|
RunStartWithTargetError,
|
|
@@ -244,11 +242,6 @@ export type {
|
|
|
244
242
|
RunsRerunErrors,
|
|
245
243
|
RunsRerunResponse,
|
|
246
244
|
RunsRerunResponses,
|
|
247
|
-
RunsResumeData,
|
|
248
|
-
RunsResumeError,
|
|
249
|
-
RunsResumeErrors,
|
|
250
|
-
RunsResumeResponse,
|
|
251
|
-
RunsResumeResponses,
|
|
252
245
|
RunsTraceGetData,
|
|
253
246
|
RunsTraceGetError,
|
|
254
247
|
RunsTraceGetErrors,
|
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -108,9 +108,6 @@ import type {
|
|
|
108
108
|
RunsRerunData,
|
|
109
109
|
RunsRerunErrors,
|
|
110
110
|
RunsRerunResponses,
|
|
111
|
-
RunsResumeData,
|
|
112
|
-
RunsResumeErrors,
|
|
113
|
-
RunsResumeResponses,
|
|
114
111
|
RunStartWithTargetData,
|
|
115
112
|
RunStartWithTargetErrors,
|
|
116
113
|
RunStartWithTargetResponses,
|
|
@@ -715,20 +712,6 @@ export const runsRerun = <ThrowOnError extends boolean = false>(
|
|
|
715
712
|
},
|
|
716
713
|
});
|
|
717
714
|
|
|
718
|
-
/**
|
|
719
|
-
* Resume workflow run
|
|
720
|
-
*
|
|
721
|
-
* Resume a workflow run that is waiting for approval.
|
|
722
|
-
*/
|
|
723
|
-
export const runsResume = <ThrowOnError extends boolean = false>(
|
|
724
|
-
options: Options<RunsResumeData, ThrowOnError>
|
|
725
|
-
) =>
|
|
726
|
-
(options.client ?? client).post<RunsResumeResponses, RunsResumeErrors, ThrowOnError>({
|
|
727
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
728
|
-
url: '/api/v1/runs/{id}/resume',
|
|
729
|
-
...options,
|
|
730
|
-
});
|
|
731
|
-
|
|
732
715
|
/**
|
|
733
716
|
* Get run
|
|
734
717
|
*
|
|
@@ -248,10 +248,6 @@ export type RunRerunResponse = {
|
|
|
248
248
|
status?: string;
|
|
249
249
|
};
|
|
250
250
|
|
|
251
|
-
export type RunResumeResponse = {
|
|
252
|
-
[key: string]: unknown;
|
|
253
|
-
};
|
|
254
|
-
|
|
255
251
|
export type RunEnvelope = {
|
|
256
252
|
run:
|
|
257
253
|
| RunSummary
|
|
@@ -2168,56 +2164,6 @@ export type RunsRerunResponses = {
|
|
|
2168
2164
|
|
|
2169
2165
|
export type RunsRerunResponse = RunsRerunResponses[keyof RunsRerunResponses];
|
|
2170
2166
|
|
|
2171
|
-
export type RunsResumeData = {
|
|
2172
|
-
body?: never;
|
|
2173
|
-
path: {
|
|
2174
|
-
/**
|
|
2175
|
-
* Run id
|
|
2176
|
-
*/
|
|
2177
|
-
id: string;
|
|
2178
|
-
};
|
|
2179
|
-
query?: never;
|
|
2180
|
-
url: '/api/v1/runs/{id}/resume';
|
|
2181
|
-
};
|
|
2182
|
-
|
|
2183
|
-
export type RunsResumeErrors = {
|
|
2184
|
-
/**
|
|
2185
|
-
* Validation error. Request shape did not match the spec.
|
|
2186
|
-
*/
|
|
2187
|
-
400: ApiErrorEnvelope;
|
|
2188
|
-
/**
|
|
2189
|
-
* Missing or invalid API key
|
|
2190
|
-
*/
|
|
2191
|
-
401: ApiErrorEnvelope;
|
|
2192
|
-
/**
|
|
2193
|
-
* API key lacks required scope
|
|
2194
|
-
*/
|
|
2195
|
-
403: ApiErrorEnvelope;
|
|
2196
|
-
/**
|
|
2197
|
-
* Resource not found
|
|
2198
|
-
*/
|
|
2199
|
-
404: ApiErrorEnvelope;
|
|
2200
|
-
/**
|
|
2201
|
-
* Rate limit exceeded
|
|
2202
|
-
*/
|
|
2203
|
-
429: ApiErrorEnvelope;
|
|
2204
|
-
/**
|
|
2205
|
-
* Internal server error
|
|
2206
|
-
*/
|
|
2207
|
-
500: ApiErrorEnvelope;
|
|
2208
|
-
};
|
|
2209
|
-
|
|
2210
|
-
export type RunsResumeError = RunsResumeErrors[keyof RunsResumeErrors];
|
|
2211
|
-
|
|
2212
|
-
export type RunsResumeResponses = {
|
|
2213
|
-
/**
|
|
2214
|
-
* Run resumed
|
|
2215
|
-
*/
|
|
2216
|
-
200: RunResumeResponse;
|
|
2217
|
-
};
|
|
2218
|
-
|
|
2219
|
-
export type RunsResumeResponse = RunsResumeResponses[keyof RunsResumeResponses];
|
|
2220
|
-
|
|
2221
2167
|
export type RunsGetData = {
|
|
2222
2168
|
body?: never;
|
|
2223
2169
|
path: {
|
package/src/index.ts
CHANGED
package/src/resources/runs.ts
CHANGED
|
@@ -21,7 +21,6 @@ import {
|
|
|
21
21
|
runsGet,
|
|
22
22
|
runsList,
|
|
23
23
|
runsRerun,
|
|
24
|
-
runsResume,
|
|
25
24
|
runsTraceGet,
|
|
26
25
|
} from '../generated/sdk.gen';
|
|
27
26
|
import type {
|
|
@@ -47,7 +46,6 @@ import type {
|
|
|
47
46
|
RunsListData,
|
|
48
47
|
RunsListResponse,
|
|
49
48
|
RunsRerunResponse,
|
|
50
|
-
RunsResumeResponse,
|
|
51
49
|
RunsTraceGetResponse,
|
|
52
50
|
} from '../generated/types.gen';
|
|
53
51
|
|
|
@@ -93,12 +91,6 @@ export class RunsResource {
|
|
|
93
91
|
return response.run;
|
|
94
92
|
}
|
|
95
93
|
|
|
96
|
-
async resume(runId: string, options: SignalOptions = {}): Promise<RunsResumeResponse> {
|
|
97
|
-
return this.dispatch(() =>
|
|
98
|
-
runsResume({ client: this.client, path: { id: runId }, signal: options.signal })
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
94
|
async cancel(runId: string, options: SignalOptions = {}): Promise<RunsCancelResponse> {
|
|
103
95
|
return this.dispatch(() =>
|
|
104
96
|
runsCancel({ client: this.client, path: { id: runId }, signal: options.signal })
|
package/src/telemetry.ts
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
export const SDK_LANGUAGE = 'typescript';
|
|
20
20
|
// Rewritten at publish time by scripts/render-sdk-versions.sh.
|
|
21
21
|
// Keep this string literal exactly stable — sed matches on it.
|
|
22
|
-
export const SDK_VERSION = '0.6.
|
|
22
|
+
export const SDK_VERSION = '0.6.16';
|
|
23
23
|
|
|
24
24
|
function detectRuntime(): string {
|
|
25
25
|
const g = globalThis as unknown as {
|