@distilled.cloud/trigger-dev 0.0.0 → 1.0.0-rc.10
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/LICENSE +201 -0
- package/lib/credentials.d.ts +31 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +37 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +36 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +26 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +24 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +28 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +8 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +8 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +19 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +43 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +32 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +32 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +3 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/trigger-dev.d.ts +2355 -0
- package/lib/services/trigger-dev.d.ts.map +1 -0
- package/lib/services/trigger-dev.js +2140 -0
- package/lib/services/trigger-dev.js.map +1 -0
- package/lib/traits.d.ts +11 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +11 -0
- package/lib/traits.js.map +1 -0
- package/package.json +77 -6
- package/src/credentials.ts +61 -0
- package/src/errors.ts +50 -0
- package/src/index.ts +36 -0
- package/src/pagination.ts +7 -0
- package/src/protocol.ts +67 -0
- package/src/retry.ts +56 -0
- package/src/services/index.ts +2 -0
- package/src/services/trigger-dev.ts +5629 -0
- package/src/traits.ts +44 -0
|
@@ -0,0 +1,2355 @@
|
|
|
1
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
2
|
+
import * as API from "@distilled.cloud/core/api";
|
|
3
|
+
import { type TriggerDevOpError, type TriggerDevOpContext } from "../protocol.ts";
|
|
4
|
+
export type { TriggerDevOpError, TriggerDevOpContext };
|
|
5
|
+
declare const BadRequest_base: S.Class<BadRequest, S.TaggedStruct<"BadRequest", {
|
|
6
|
+
readonly code: any;
|
|
7
|
+
readonly message: any;
|
|
8
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
9
|
+
"@distilled.cloud/error/categories": {
|
|
10
|
+
BadRequestError: true;
|
|
11
|
+
};
|
|
12
|
+
});
|
|
13
|
+
export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
|
|
14
|
+
}
|
|
15
|
+
declare const Conflict_base: S.Class<Conflict, S.TaggedStruct<"Conflict", {
|
|
16
|
+
readonly code: any;
|
|
17
|
+
readonly message: any;
|
|
18
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
19
|
+
"@distilled.cloud/error/categories": {
|
|
20
|
+
ConflictError: true;
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
export declare class Conflict extends /*@__PURE__*/ Conflict_base {
|
|
24
|
+
}
|
|
25
|
+
declare const NotFound_base: S.Class<NotFound, S.TaggedStruct<"NotFound", {
|
|
26
|
+
readonly code: any;
|
|
27
|
+
readonly message: any;
|
|
28
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
29
|
+
"@distilled.cloud/error/categories": {
|
|
30
|
+
BadRequestError: true;
|
|
31
|
+
};
|
|
32
|
+
});
|
|
33
|
+
export declare class NotFound extends /*@__PURE__*/ NotFound_base {
|
|
34
|
+
}
|
|
35
|
+
declare const UnprocessableEntity_base: S.Class<UnprocessableEntity, S.TaggedStruct<"UnprocessableEntity", {
|
|
36
|
+
readonly code: any;
|
|
37
|
+
readonly message: any;
|
|
38
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
39
|
+
"@distilled.cloud/error/categories": {
|
|
40
|
+
BadRequestError: true;
|
|
41
|
+
};
|
|
42
|
+
});
|
|
43
|
+
export declare class UnprocessableEntity extends /*@__PURE__*/ UnprocessableEntity_base {
|
|
44
|
+
}
|
|
45
|
+
export interface ActivateScheduleV1Request {
|
|
46
|
+
/** The ID of the schedule. */
|
|
47
|
+
schedule_id: string;
|
|
48
|
+
}
|
|
49
|
+
export declare const ActivateScheduleV1Request: S.Schema<ActivateScheduleV1Request>;
|
|
50
|
+
export type ScheduleObjectGeneratorType = "CRON";
|
|
51
|
+
export declare const ScheduleObjectGeneratorType: any;
|
|
52
|
+
export interface ScheduleObjectGenerator {
|
|
53
|
+
type?: ScheduleObjectGeneratorType;
|
|
54
|
+
/** The cron expression used to generate the schedule */
|
|
55
|
+
expression?: string;
|
|
56
|
+
/** The description of the generator in plain english */
|
|
57
|
+
description?: string;
|
|
58
|
+
}
|
|
59
|
+
export declare const ScheduleObjectGenerator: S.Schema<ScheduleObjectGenerator>;
|
|
60
|
+
export interface ScheduleEnvironment {
|
|
61
|
+
id?: string;
|
|
62
|
+
type?: string;
|
|
63
|
+
userName?: string;
|
|
64
|
+
}
|
|
65
|
+
export declare const ScheduleEnvironment: S.Schema<ScheduleEnvironment>;
|
|
66
|
+
export type ScheduleObjectEnvironmentsList = Array<ScheduleEnvironment>;
|
|
67
|
+
export declare const ScheduleObjectEnvironmentsList: S.Schema<ScheduleObjectEnvironmentsList>;
|
|
68
|
+
export interface ScheduleObject {
|
|
69
|
+
/** The unique ID of the schedule, prefixed with 'sched_' */
|
|
70
|
+
id?: string;
|
|
71
|
+
/** The id of the scheduled task that will be triggered by this schedule */
|
|
72
|
+
task?: string;
|
|
73
|
+
/** The type of schedule, `DECLARATIVE` or `IMPERATIVE`. Declarative schedules are declared in your code by setting the `cron` property on a `schedules.task`. Imperative schedules are created in the dashboard or by using the imperative SDK functions like `schedules.create()`. */
|
|
74
|
+
type?: string;
|
|
75
|
+
/** Whether the schedule is active or not */
|
|
76
|
+
active?: boolean;
|
|
77
|
+
/** The deduplication key used to prevent creating duplicate schedules */
|
|
78
|
+
deduplicationKey?: string;
|
|
79
|
+
/** The external ID of the schedule. Can be anything that is useful to you (e.g., user ID, org ID, etc.) */
|
|
80
|
+
externalId?: string;
|
|
81
|
+
generator?: ScheduleObjectGenerator;
|
|
82
|
+
/** Defaults to UTC. In IANA format, if set then it will trigger at the CRON frequency in that timezone and respect daylight savings time. */
|
|
83
|
+
timezone?: string;
|
|
84
|
+
/** The next time the schedule will run */
|
|
85
|
+
nextRun?: string;
|
|
86
|
+
environments?: ScheduleObjectEnvironmentsList;
|
|
87
|
+
}
|
|
88
|
+
export declare const ScheduleObject: S.Schema<ScheduleObject>;
|
|
89
|
+
export type RunTagsCase1List = Array<string>;
|
|
90
|
+
export declare const RunTagsCase1List: S.Schema<RunTagsCase1List>;
|
|
91
|
+
/** One or more tags to attach to a run. Runs can have a maximum of 10 tags. */
|
|
92
|
+
export type RunTags = string | RunTagsCase1List;
|
|
93
|
+
export declare const RunTags: S.Schema<RunTags>;
|
|
94
|
+
export interface AddRunTagsV1Request {
|
|
95
|
+
/** The ID of an run, starts with `run_`. The run ID will be returned when you trigger a run on a task. */
|
|
96
|
+
runId: string;
|
|
97
|
+
tags: RunTags;
|
|
98
|
+
}
|
|
99
|
+
export declare const AddRunTagsV1Request: S.Schema<AddRunTagsV1Request>;
|
|
100
|
+
export interface AddRunTagsV1Response {
|
|
101
|
+
message?: string;
|
|
102
|
+
}
|
|
103
|
+
export declare const AddRunTagsV1Response: S.Schema<AddRunTagsV1Response>;
|
|
104
|
+
export interface BulkAbortActionV1Request {
|
|
105
|
+
/** The ID of a bulk action, starts with `bulk_`. */
|
|
106
|
+
bulkActionId: string;
|
|
107
|
+
}
|
|
108
|
+
export declare const BulkAbortActionV1Request: S.Schema<BulkAbortActionV1Request>;
|
|
109
|
+
export interface AbortBulkActionResponse {
|
|
110
|
+
id: string;
|
|
111
|
+
}
|
|
112
|
+
export declare const AbortBulkActionResponse: S.Schema<AbortBulkActionResponse>;
|
|
113
|
+
export interface CancelRunV1Request {
|
|
114
|
+
/** The ID of an run, starts with `run_`. The run ID will be returned when you trigger a run on a task. */
|
|
115
|
+
runId: string;
|
|
116
|
+
}
|
|
117
|
+
export declare const CancelRunV1Request: S.Schema<CancelRunV1Request>;
|
|
118
|
+
export interface CancelRunV1Response {
|
|
119
|
+
/** The ID of the run that was canceled. */
|
|
120
|
+
id?: string;
|
|
121
|
+
}
|
|
122
|
+
export declare const CancelRunV1Response: S.Schema<CancelRunV1Response>;
|
|
123
|
+
export interface CloseSessionV1Request {
|
|
124
|
+
/** The session's friendly ID (`session_…`) or your `externalId`. The server disambiguates by the `session_` prefix. */
|
|
125
|
+
session: string;
|
|
126
|
+
/** Optional reason recorded on the session row. */
|
|
127
|
+
reason?: string;
|
|
128
|
+
}
|
|
129
|
+
export declare const CloseSessionV1Request: S.Schema<CloseSessionV1Request>;
|
|
130
|
+
/** Base payload passed to every run this session triggers. For `chat.agent` this carries `{ chatId, ...clientData }`. */
|
|
131
|
+
export type SessionTriggerConfigBasePayloadMap = {
|
|
132
|
+
[key: string]: unknown | undefined;
|
|
133
|
+
};
|
|
134
|
+
export declare const SessionTriggerConfigBasePayloadMap: S.Schema<SessionTriggerConfigBasePayloadMap>;
|
|
135
|
+
/** Tags applied to every run this session triggers. */
|
|
136
|
+
export type SessionTriggerConfigTagsList = Array<string>;
|
|
137
|
+
export declare const SessionTriggerConfigTagsList: S.Schema<SessionTriggerConfigTagsList>;
|
|
138
|
+
/** Trigger options applied to every run a session schedules. `basePayload` is the wire payload merged into each run; the remaining fields map onto the standard trigger options. */
|
|
139
|
+
export interface SessionTriggerConfig {
|
|
140
|
+
/** Base payload passed to every run this session triggers. For `chat.agent` this carries `{ chatId, ...clientData }`. */
|
|
141
|
+
basePayload: SessionTriggerConfigBasePayloadMap;
|
|
142
|
+
/** Machine preset for each run, e.g. `small-1x`. */
|
|
143
|
+
machine?: string;
|
|
144
|
+
/** Queue to schedule runs on. */
|
|
145
|
+
queue?: string;
|
|
146
|
+
/** Tags applied to every run this session triggers. */
|
|
147
|
+
tags?: SessionTriggerConfigTagsList;
|
|
148
|
+
/** Maximum retry attempts per run. */
|
|
149
|
+
maxAttempts?: number;
|
|
150
|
+
/** Per-run wall-clock cap in seconds. */
|
|
151
|
+
maxDuration?: number;
|
|
152
|
+
/** Pin every run to a specific worker version. */
|
|
153
|
+
lockToVersion?: string;
|
|
154
|
+
/** Region to schedule runs in. */
|
|
155
|
+
region?: string;
|
|
156
|
+
/** Idle timeout surfaced to `chat.agent` via the wire payload. */
|
|
157
|
+
idleTimeoutInSeconds?: number;
|
|
158
|
+
}
|
|
159
|
+
export declare const SessionTriggerConfig: S.Schema<SessionTriggerConfig>;
|
|
160
|
+
/** Tags on the session row. */
|
|
161
|
+
export type SessionObjectTagsList = Array<string>;
|
|
162
|
+
export declare const SessionObjectTagsList: S.Schema<SessionObjectTagsList>;
|
|
163
|
+
/** Arbitrary JSON metadata, or `null` if unset. */
|
|
164
|
+
export type SessionObjectMetadataMap = {
|
|
165
|
+
[key: string]: unknown | undefined;
|
|
166
|
+
};
|
|
167
|
+
export declare const SessionObjectMetadataMap: S.Schema<SessionObjectMetadataMap>;
|
|
168
|
+
/** A session row. */
|
|
169
|
+
export interface SessionObject {
|
|
170
|
+
/** The session's friendly ID, prefixed with `session_`. */
|
|
171
|
+
id: string;
|
|
172
|
+
/** Your stable identity for the session, if one was set. */
|
|
173
|
+
externalId?: string | null;
|
|
174
|
+
/** The session type discriminator. */
|
|
175
|
+
type: string;
|
|
176
|
+
/** The task this session triggers runs against. */
|
|
177
|
+
taskIdentifier: string;
|
|
178
|
+
triggerConfig?: SessionTriggerConfig;
|
|
179
|
+
/** Friendly ID of the live run for this session, if any. Prefixed with `run_`. Omitted on list rows. */
|
|
180
|
+
currentRunId?: string | null;
|
|
181
|
+
/** Tags on the session row. */
|
|
182
|
+
tags: SessionObjectTagsList;
|
|
183
|
+
/** Arbitrary JSON metadata, or `null` if unset. */
|
|
184
|
+
metadata?: SessionObjectMetadataMap | null;
|
|
185
|
+
/** When the session was closed, or `null` if open. */
|
|
186
|
+
closedAt?: string | null;
|
|
187
|
+
/** The optional reason recorded when the session was closed. */
|
|
188
|
+
closedReason?: string | null;
|
|
189
|
+
/** The session's retention deadline, or `null` if none. */
|
|
190
|
+
expiresAt?: string | null;
|
|
191
|
+
createdAt: string;
|
|
192
|
+
updatedAt: string;
|
|
193
|
+
}
|
|
194
|
+
export declare const SessionObject: S.Schema<SessionObject>;
|
|
195
|
+
export interface CompleteWaitpointTokenCallbackV1Request {
|
|
196
|
+
/** The ID of the waitpoint token. */
|
|
197
|
+
waitpointId: string;
|
|
198
|
+
/** The HMAC hash that authenticates the request. This is embedded in the `url` returned when creating the token — do not construct it manually. */
|
|
199
|
+
callbackHash: string;
|
|
200
|
+
}
|
|
201
|
+
export declare const CompleteWaitpointTokenCallbackV1Request: S.Schema<CompleteWaitpointTokenCallbackV1Request>;
|
|
202
|
+
export interface CompleteWaitpointTokenResponse {
|
|
203
|
+
/** Always `true` when the request succeeds. */
|
|
204
|
+
success: boolean;
|
|
205
|
+
}
|
|
206
|
+
export declare const CompleteWaitpointTokenResponse: S.Schema<CompleteWaitpointTokenResponse>;
|
|
207
|
+
export interface CompleteWaitpointTokenV1Request {
|
|
208
|
+
/** The ID of the waitpoint token to complete. */
|
|
209
|
+
waitpointId: string;
|
|
210
|
+
/** Any JSON-serializable value to pass back to the run waiting on this token. The data will be returned from `wait.forToken()` as the result payload. */
|
|
211
|
+
data?: unknown;
|
|
212
|
+
}
|
|
213
|
+
export declare const CompleteWaitpointTokenV1Request: S.Schema<CompleteWaitpointTokenV1Request>;
|
|
214
|
+
export type CreateBulkActionRequestBodyCase0Action = "cancel";
|
|
215
|
+
export declare const CreateBulkActionRequestBodyCase0Action: any;
|
|
216
|
+
export type BulkActionFilterStatusCase0 = "PENDING_VERSION" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE";
|
|
217
|
+
export declare const BulkActionFilterStatusCase0: any;
|
|
218
|
+
export type BulkActionFilterStatusCase1Item = "PENDING_VERSION" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE";
|
|
219
|
+
export declare const BulkActionFilterStatusCase1Item: any;
|
|
220
|
+
export type BulkActionFilterStatusCase1List = Array<BulkActionFilterStatusCase1Item | (string & {})>;
|
|
221
|
+
export declare const BulkActionFilterStatusCase1List: S.Schema<BulkActionFilterStatusCase1List>;
|
|
222
|
+
export type BulkActionFilterStatus = BulkActionFilterStatusCase0 | BulkActionFilterStatusCase1List;
|
|
223
|
+
export declare const BulkActionFilterStatus: S.Schema<BulkActionFilterStatus>;
|
|
224
|
+
export type BulkActionFilterTaskIdentifierCase1List = Array<string>;
|
|
225
|
+
export declare const BulkActionFilterTaskIdentifierCase1List: S.Schema<BulkActionFilterTaskIdentifierCase1List>;
|
|
226
|
+
/** The identifier of the task that was run. */
|
|
227
|
+
export type BulkActionFilterTaskIdentifier = string | BulkActionFilterTaskIdentifierCase1List;
|
|
228
|
+
export declare const BulkActionFilterTaskIdentifier: S.Schema<BulkActionFilterTaskIdentifier>;
|
|
229
|
+
export type BulkActionFilterVersionCase1List = Array<string>;
|
|
230
|
+
export declare const BulkActionFilterVersionCase1List: S.Schema<BulkActionFilterVersionCase1List>;
|
|
231
|
+
/** The worker version that executed the run. */
|
|
232
|
+
export type BulkActionFilterVersion = string | BulkActionFilterVersionCase1List;
|
|
233
|
+
export declare const BulkActionFilterVersion: S.Schema<BulkActionFilterVersion>;
|
|
234
|
+
/** Start of the time range as an ISO date string or Unix timestamp in milliseconds. */
|
|
235
|
+
export type BulkActionFilterFrom = string | number;
|
|
236
|
+
export declare const BulkActionFilterFrom: S.Schema<BulkActionFilterFrom>;
|
|
237
|
+
/** End of the time range as an ISO date string or Unix timestamp in milliseconds. */
|
|
238
|
+
export type BulkActionFilterTo = string | number;
|
|
239
|
+
export declare const BulkActionFilterTo: S.Schema<BulkActionFilterTo>;
|
|
240
|
+
export type BulkActionFilterTagCase1List = Array<string>;
|
|
241
|
+
export declare const BulkActionFilterTagCase1List: S.Schema<BulkActionFilterTagCase1List>;
|
|
242
|
+
/** Select runs with one or more tags. */
|
|
243
|
+
export type BulkActionFilterTag = string | BulkActionFilterTagCase1List;
|
|
244
|
+
export declare const BulkActionFilterTag: S.Schema<BulkActionFilterTag>;
|
|
245
|
+
export type QueueTypeNameType = "task" | "custom";
|
|
246
|
+
export declare const QueueTypeNameType: any;
|
|
247
|
+
export interface QueueTypeName {
|
|
248
|
+
type: QueueTypeNameType | (string & {});
|
|
249
|
+
name: string;
|
|
250
|
+
}
|
|
251
|
+
export declare const QueueTypeName: S.Schema<QueueTypeName>;
|
|
252
|
+
export type BulkActionFilterQueueCase1List = Array<QueueTypeName>;
|
|
253
|
+
export declare const BulkActionFilterQueueCase1List: S.Schema<BulkActionFilterQueueCase1List>;
|
|
254
|
+
export type BulkActionFilterQueue = QueueTypeName | BulkActionFilterQueueCase1List;
|
|
255
|
+
export declare const BulkActionFilterQueue: S.Schema<BulkActionFilterQueue>;
|
|
256
|
+
export type BulkActionFilterMachineCase1List = Array<string>;
|
|
257
|
+
export declare const BulkActionFilterMachineCase1List: S.Schema<BulkActionFilterMachineCase1List>;
|
|
258
|
+
/** Select runs by machine preset. */
|
|
259
|
+
export type BulkActionFilterMachine = string | BulkActionFilterMachineCase1List;
|
|
260
|
+
export declare const BulkActionFilterMachine: S.Schema<BulkActionFilterMachine>;
|
|
261
|
+
export type BulkActionFilterRegionCase1List = Array<string>;
|
|
262
|
+
export declare const BulkActionFilterRegionCase1List: S.Schema<BulkActionFilterRegionCase1List>;
|
|
263
|
+
/** Select runs by region. */
|
|
264
|
+
export type BulkActionFilterRegion = string | BulkActionFilterRegionCase1List;
|
|
265
|
+
export declare const BulkActionFilterRegion: S.Schema<BulkActionFilterRegion>;
|
|
266
|
+
/** Selects runs using SDK-style run-list filter fields, excluding pagination fields. In HTTP requests these fields are sent as JSON body properties, so time fields are top-level (`from`, `to`, `period`) instead of nested under `createdAt`. Provide at least one property. */
|
|
267
|
+
export interface BulkActionFilter {
|
|
268
|
+
status?: BulkActionFilterStatus;
|
|
269
|
+
/** The identifier of the task that was run. */
|
|
270
|
+
taskIdentifier?: BulkActionFilterTaskIdentifier;
|
|
271
|
+
/** The worker version that executed the run. */
|
|
272
|
+
version?: BulkActionFilterVersion;
|
|
273
|
+
/** Start of the time range as an ISO date string or Unix timestamp in milliseconds. */
|
|
274
|
+
from?: BulkActionFilterFrom;
|
|
275
|
+
/** End of the time range as an ISO date string or Unix timestamp in milliseconds. */
|
|
276
|
+
to?: BulkActionFilterTo;
|
|
277
|
+
/** Relative time period to select, such as `24h` or `30d`. */
|
|
278
|
+
period?: string;
|
|
279
|
+
/** Select runs that were processed by another bulk action. */
|
|
280
|
+
bulkAction?: string;
|
|
281
|
+
/** Select runs with one or more tags. */
|
|
282
|
+
tag?: BulkActionFilterTag;
|
|
283
|
+
/** Select runs created by a schedule. */
|
|
284
|
+
schedule?: string;
|
|
285
|
+
/** Select test or non-test runs. */
|
|
286
|
+
isTest?: boolean;
|
|
287
|
+
/** Select runs in a batch. */
|
|
288
|
+
batch?: string;
|
|
289
|
+
queue?: BulkActionFilterQueue;
|
|
290
|
+
/** Select runs by machine preset. */
|
|
291
|
+
machine?: BulkActionFilterMachine;
|
|
292
|
+
/** Select runs by region. */
|
|
293
|
+
region?: BulkActionFilterRegion;
|
|
294
|
+
}
|
|
295
|
+
export declare const BulkActionFilter: S.Schema<BulkActionFilter>;
|
|
296
|
+
export interface CreateBulkActionRequestBodyCase0 {
|
|
297
|
+
action: CreateBulkActionRequestBodyCase0Action;
|
|
298
|
+
filter: BulkActionFilter;
|
|
299
|
+
name?: string;
|
|
300
|
+
}
|
|
301
|
+
export declare const CreateBulkActionRequestBodyCase0: S.Schema<CreateBulkActionRequestBodyCase0>;
|
|
302
|
+
export type CreateBulkActionRequestBodyCase1Action = "cancel";
|
|
303
|
+
export declare const CreateBulkActionRequestBodyCase1Action: any;
|
|
304
|
+
export type CreateBulkActionRequestBodyCase1RunIdsList = Array<string>;
|
|
305
|
+
export declare const CreateBulkActionRequestBodyCase1RunIdsList: S.Schema<CreateBulkActionRequestBodyCase1RunIdsList>;
|
|
306
|
+
export interface CreateBulkActionRequestBodyCase1 {
|
|
307
|
+
action: CreateBulkActionRequestBodyCase1Action;
|
|
308
|
+
runIds: CreateBulkActionRequestBodyCase1RunIdsList;
|
|
309
|
+
name?: string;
|
|
310
|
+
}
|
|
311
|
+
export declare const CreateBulkActionRequestBodyCase1: S.Schema<CreateBulkActionRequestBodyCase1>;
|
|
312
|
+
export type CreateBulkActionRequestBodyCase2Action = "replay";
|
|
313
|
+
export declare const CreateBulkActionRequestBodyCase2Action: any;
|
|
314
|
+
export interface CreateBulkActionRequestBodyCase2 {
|
|
315
|
+
action: CreateBulkActionRequestBodyCase2Action;
|
|
316
|
+
filter: BulkActionFilter;
|
|
317
|
+
name?: string;
|
|
318
|
+
/** Region identifier to replay runs in. When omitted, each replay keeps the original run's region. */
|
|
319
|
+
targetRegion?: string;
|
|
320
|
+
}
|
|
321
|
+
export declare const CreateBulkActionRequestBodyCase2: S.Schema<CreateBulkActionRequestBodyCase2>;
|
|
322
|
+
export type CreateBulkActionRequestBodyCase3Action = "replay";
|
|
323
|
+
export declare const CreateBulkActionRequestBodyCase3Action: any;
|
|
324
|
+
export type CreateBulkActionRequestBodyCase3RunIdsList = Array<string>;
|
|
325
|
+
export declare const CreateBulkActionRequestBodyCase3RunIdsList: S.Schema<CreateBulkActionRequestBodyCase3RunIdsList>;
|
|
326
|
+
export interface CreateBulkActionRequestBodyCase3 {
|
|
327
|
+
action: CreateBulkActionRequestBodyCase3Action;
|
|
328
|
+
runIds: CreateBulkActionRequestBodyCase3RunIdsList;
|
|
329
|
+
name?: string;
|
|
330
|
+
/** Region identifier to replay runs in. When omitted, each replay keeps the original run's region. */
|
|
331
|
+
targetRegion?: string;
|
|
332
|
+
}
|
|
333
|
+
export declare const CreateBulkActionRequestBodyCase3: S.Schema<CreateBulkActionRequestBodyCase3>;
|
|
334
|
+
export type CreateBulkActionRequestBody = CreateBulkActionRequestBodyCase0 | CreateBulkActionRequestBodyCase1 | CreateBulkActionRequestBodyCase2 | CreateBulkActionRequestBodyCase3;
|
|
335
|
+
export declare const CreateBulkActionRequestBody: S.Schema<CreateBulkActionRequestBody>;
|
|
336
|
+
export interface CreateBulkActionV1Request {
|
|
337
|
+
body: CreateBulkActionRequestBody;
|
|
338
|
+
}
|
|
339
|
+
export declare const CreateBulkActionV1Request: S.Schema<CreateBulkActionV1Request>;
|
|
340
|
+
export interface CreateBulkActionV1Response {
|
|
341
|
+
}
|
|
342
|
+
export declare const CreateBulkActionV1Response: S.Schema<CreateBulkActionV1Response>;
|
|
343
|
+
export type CreateProjectEnvvarV1RequestEnv = "dev" | "staging" | "prod";
|
|
344
|
+
export declare const CreateProjectEnvvarV1RequestEnv: any;
|
|
345
|
+
export interface CreateProjectEnvvarV1Request {
|
|
346
|
+
/** The external ref of the project. You can find this in the project settings. Starts with `proj_`. */
|
|
347
|
+
projectRef: string;
|
|
348
|
+
/** The environment of the project to list variables for. */
|
|
349
|
+
env: CreateProjectEnvvarV1RequestEnv | (string & {});
|
|
350
|
+
name: string;
|
|
351
|
+
value: string;
|
|
352
|
+
}
|
|
353
|
+
export declare const CreateProjectEnvvarV1Request: S.Schema<CreateProjectEnvvarV1Request>;
|
|
354
|
+
export interface SucceedResponse {
|
|
355
|
+
success: boolean;
|
|
356
|
+
}
|
|
357
|
+
export declare const SucceedResponse: S.Schema<SucceedResponse>;
|
|
358
|
+
export interface CreateScheduleV1Request {
|
|
359
|
+
task: string;
|
|
360
|
+
cron: string;
|
|
361
|
+
deduplicationKey: string;
|
|
362
|
+
externalId?: string;
|
|
363
|
+
/** Defaults to "UTC". In IANA format ("America/New_York"). If set then it will trigger at the CRON frequency in that timezone and respect daylight savings time. */
|
|
364
|
+
timezone?: string;
|
|
365
|
+
}
|
|
366
|
+
export declare const CreateScheduleV1Request: S.Schema<CreateScheduleV1Request>;
|
|
367
|
+
/** Up to 10 tags on the session row, for dashboard filtering. */
|
|
368
|
+
export type CreateSessionV1RequestTagsList = Array<string>;
|
|
369
|
+
export declare const CreateSessionV1RequestTagsList: S.Schema<CreateSessionV1RequestTagsList>;
|
|
370
|
+
/** Arbitrary JSON metadata. */
|
|
371
|
+
export type CreateSessionV1RequestMetadataMap = {
|
|
372
|
+
[key: string]: unknown | undefined;
|
|
373
|
+
};
|
|
374
|
+
export declare const CreateSessionV1RequestMetadataMap: S.Schema<CreateSessionV1RequestMetadataMap>;
|
|
375
|
+
export interface CreateSessionV1Request {
|
|
376
|
+
/** Free-form discriminator for the session, e.g. `chat.agent`. Not validated against an enum. */
|
|
377
|
+
type: string;
|
|
378
|
+
/** The task this session triggers runs against. */
|
|
379
|
+
taskIdentifier: string;
|
|
380
|
+
triggerConfig: SessionTriggerConfig;
|
|
381
|
+
/** Your stable identity for the session, unique per environment. Cannot start with the reserved `session_` prefix. Reusing an `externalId` makes create idempotent; reusing one whose session is closed or expired returns `409`. */
|
|
382
|
+
externalId?: string;
|
|
383
|
+
/** Up to 10 tags on the session row, for dashboard filtering. */
|
|
384
|
+
tags?: CreateSessionV1RequestTagsList;
|
|
385
|
+
/** Arbitrary JSON metadata. */
|
|
386
|
+
metadata?: CreateSessionV1RequestMetadataMap;
|
|
387
|
+
/** Absolute expiry timestamp for retention. */
|
|
388
|
+
expiresAt?: string;
|
|
389
|
+
}
|
|
390
|
+
export declare const CreateSessionV1Request: S.Schema<CreateSessionV1Request>;
|
|
391
|
+
/** Tags on the session row. */
|
|
392
|
+
export type CreateSessionV1ResponseTagsList = Array<string>;
|
|
393
|
+
export declare const CreateSessionV1ResponseTagsList: S.Schema<CreateSessionV1ResponseTagsList>;
|
|
394
|
+
/** Arbitrary JSON metadata, or `null` if unset. */
|
|
395
|
+
export type CreateSessionV1ResponseMetadataMap = {
|
|
396
|
+
[key: string]: unknown | undefined;
|
|
397
|
+
};
|
|
398
|
+
export declare const CreateSessionV1ResponseMetadataMap: S.Schema<CreateSessionV1ResponseMetadataMap>;
|
|
399
|
+
export interface CreateSessionV1Response {
|
|
400
|
+
/** The session's friendly ID, prefixed with `session_`. */
|
|
401
|
+
id: string;
|
|
402
|
+
/** Your stable identity for the session, if one was set. */
|
|
403
|
+
externalId?: string | null;
|
|
404
|
+
/** The session type discriminator. */
|
|
405
|
+
type: string;
|
|
406
|
+
/** The task this session triggers runs against. */
|
|
407
|
+
taskIdentifier: string;
|
|
408
|
+
triggerConfig?: SessionTriggerConfig;
|
|
409
|
+
/** Friendly ID of the live run for this session, if any. Prefixed with `run_`. Omitted on list rows. */
|
|
410
|
+
currentRunId?: string | null;
|
|
411
|
+
/** Tags on the session row. */
|
|
412
|
+
tags: CreateSessionV1ResponseTagsList;
|
|
413
|
+
/** Arbitrary JSON metadata, or `null` if unset. */
|
|
414
|
+
metadata?: CreateSessionV1ResponseMetadataMap | null;
|
|
415
|
+
/** When the session was closed, or `null` if open. */
|
|
416
|
+
closedAt?: string | null;
|
|
417
|
+
/** The optional reason recorded when the session was closed. */
|
|
418
|
+
closedReason?: string | null;
|
|
419
|
+
/** The session's retention deadline, or `null` if none. */
|
|
420
|
+
expiresAt?: string | null;
|
|
421
|
+
createdAt: string;
|
|
422
|
+
updatedAt: string;
|
|
423
|
+
/** Friendly ID of the first run triggered alongside the session. */
|
|
424
|
+
runId: string;
|
|
425
|
+
/** Session-scoped public access token carrying `read:sessions:{key}` and `write:sessions:{key}`. Default TTL is 1 hour. Safe to pass to frontend clients. */
|
|
426
|
+
publicAccessToken: string;
|
|
427
|
+
/** `true` if an open session already existed for this `externalId` (idempotent upsert), `false` if newly created. */
|
|
428
|
+
isCached: boolean;
|
|
429
|
+
}
|
|
430
|
+
export declare const CreateSessionV1Response: S.Schema<CreateSessionV1Response>;
|
|
431
|
+
export type CreateWaitpointTokenV1RequestTagsCase1List = Array<string>;
|
|
432
|
+
export declare const CreateWaitpointTokenV1RequestTagsCase1List: S.Schema<CreateWaitpointTokenV1RequestTagsCase1List>;
|
|
433
|
+
/** Tags to attach to the waitpoint. You can set up to 10 tags, each under 128 characters. We recommend namespacing tags with a prefix like `user:1234567` or `org_9876543`. */
|
|
434
|
+
export type CreateWaitpointTokenV1RequestTags = string | CreateWaitpointTokenV1RequestTagsCase1List;
|
|
435
|
+
export declare const CreateWaitpointTokenV1RequestTags: S.Schema<CreateWaitpointTokenV1RequestTags>;
|
|
436
|
+
export interface CreateWaitpointTokenV1Request {
|
|
437
|
+
/** An optional idempotency key. If you pass the same key twice before it expires, you will receive the original token back. The returned token may already be completed, in which case `wait.forToken()` will continue immediately. */
|
|
438
|
+
idempotencyKey?: string;
|
|
439
|
+
/** How long the idempotency key is valid, after which passing the same key creates a new waitpoint. Accepts durations like "30s", "1m", "2h", "3d". */
|
|
440
|
+
idempotencyKeyTTL?: string;
|
|
441
|
+
/** How long to wait before the token times out. When a run is waiting for a timed-out token, `wait.forToken()` returns with `ok: false`. Accepts an ISO 8601 date string or duration shorthand like "30s", "1m", "2h", "3d", "4w". */
|
|
442
|
+
timeout?: string;
|
|
443
|
+
/** Tags to attach to the waitpoint. You can set up to 10 tags, each under 128 characters. We recommend namespacing tags with a prefix like `user:1234567` or `org_9876543`. */
|
|
444
|
+
tags?: CreateWaitpointTokenV1RequestTags;
|
|
445
|
+
}
|
|
446
|
+
export declare const CreateWaitpointTokenV1Request: S.Schema<CreateWaitpointTokenV1Request>;
|
|
447
|
+
export interface CreateWaitpointTokenResponse {
|
|
448
|
+
/** The unique ID of the waitpoint token. */
|
|
449
|
+
id: string;
|
|
450
|
+
/** `true` if an existing token was returned because the same `idempotencyKey` was used within its TTL window. */
|
|
451
|
+
isCached: boolean;
|
|
452
|
+
/** An HTTP callback URL. A POST request to this URL (with an optional JSON body) will complete the waitpoint without needing an API key. */
|
|
453
|
+
url: string;
|
|
454
|
+
}
|
|
455
|
+
export declare const CreateWaitpointTokenResponse: S.Schema<CreateWaitpointTokenResponse>;
|
|
456
|
+
export interface DeactivateScheduleV1Request {
|
|
457
|
+
/** The ID of the schedule. */
|
|
458
|
+
schedule_id: string;
|
|
459
|
+
}
|
|
460
|
+
export declare const DeactivateScheduleV1Request: S.Schema<DeactivateScheduleV1Request>;
|
|
461
|
+
export type DeleteProjectEnvvarV1RequestEnv = "dev" | "staging" | "prod";
|
|
462
|
+
export declare const DeleteProjectEnvvarV1RequestEnv: any;
|
|
463
|
+
export interface DeleteProjectEnvvarV1Request {
|
|
464
|
+
/** The external ref of the project. You can find this in the project settings. Starts with `proj_`. */
|
|
465
|
+
projectRef: string;
|
|
466
|
+
/** The environment of the project to list variables for. */
|
|
467
|
+
env: DeleteProjectEnvvarV1RequestEnv | (string & {});
|
|
468
|
+
/** The name of the environment variable. */
|
|
469
|
+
name: string;
|
|
470
|
+
}
|
|
471
|
+
export declare const DeleteProjectEnvvarV1Request: S.Schema<DeleteProjectEnvvarV1Request>;
|
|
472
|
+
export interface DeleteScheduleV1Request {
|
|
473
|
+
/** The ID of the schedule. */
|
|
474
|
+
schedule_id: string;
|
|
475
|
+
}
|
|
476
|
+
export declare const DeleteScheduleV1Request: S.Schema<DeleteScheduleV1Request>;
|
|
477
|
+
export interface DeleteScheduleV1Response {
|
|
478
|
+
}
|
|
479
|
+
export declare const DeleteScheduleV1Response: S.Schema<DeleteScheduleV1Response>;
|
|
480
|
+
/** The scope of data to query - environment (default), project, or organization */
|
|
481
|
+
export type ExecuteQueryV1RequestScope = "environment" | "project" | "organization";
|
|
482
|
+
export declare const ExecuteQueryV1RequestScope: any;
|
|
483
|
+
/** Response format - "json" returns structured data (default), "csv" returns CSV string */
|
|
484
|
+
export type ExecuteQueryV1RequestFormat = "json" | "csv";
|
|
485
|
+
export declare const ExecuteQueryV1RequestFormat: any;
|
|
486
|
+
export interface ExecuteQueryV1Request {
|
|
487
|
+
/** The TRQL query to execute */
|
|
488
|
+
query: string;
|
|
489
|
+
/** The scope of data to query - environment (default), project, or organization */
|
|
490
|
+
scope?: ExecuteQueryV1RequestScope | (string & {});
|
|
491
|
+
/** Time period shorthand (e.g., "7d", "30d", "1h"). Cannot be used with from/to. */
|
|
492
|
+
period?: string | null;
|
|
493
|
+
/** Start of time range as ISO 8601 timestamp. Must be used with 'to'. */
|
|
494
|
+
from?: string | null;
|
|
495
|
+
/** End of time range as ISO 8601 timestamp. Must be used with 'from'. */
|
|
496
|
+
to?: string | null;
|
|
497
|
+
/** Response format - "json" returns structured data (default), "csv" returns CSV string */
|
|
498
|
+
format?: ExecuteQueryV1RequestFormat | (string & {});
|
|
499
|
+
}
|
|
500
|
+
export declare const ExecuteQueryV1Request: S.Schema<ExecuteQueryV1Request>;
|
|
501
|
+
export type ExecuteQueryResponseCase0Format = "json";
|
|
502
|
+
export declare const ExecuteQueryResponseCase0Format: any;
|
|
503
|
+
/** Array of result rows */
|
|
504
|
+
export type ExecuteQueryResponseCase0ResultsList = Array<unknown>;
|
|
505
|
+
export declare const ExecuteQueryResponseCase0ResultsList: S.Schema<ExecuteQueryResponseCase0ResultsList>;
|
|
506
|
+
/** JSON format response */
|
|
507
|
+
export interface ExecuteQueryResponseCase0 {
|
|
508
|
+
format?: ExecuteQueryResponseCase0Format;
|
|
509
|
+
/** Array of result rows */
|
|
510
|
+
results?: ExecuteQueryResponseCase0ResultsList;
|
|
511
|
+
}
|
|
512
|
+
export declare const ExecuteQueryResponseCase0: S.Schema<ExecuteQueryResponseCase0>;
|
|
513
|
+
export type ExecuteQueryResponseCase1Format = "csv";
|
|
514
|
+
export declare const ExecuteQueryResponseCase1Format: any;
|
|
515
|
+
/** CSV format response */
|
|
516
|
+
export interface ExecuteQueryResponseCase1 {
|
|
517
|
+
format?: ExecuteQueryResponseCase1Format;
|
|
518
|
+
/** CSV-formatted results */
|
|
519
|
+
results?: string;
|
|
520
|
+
}
|
|
521
|
+
export declare const ExecuteQueryResponseCase1: S.Schema<ExecuteQueryResponseCase1>;
|
|
522
|
+
export type ExecuteQueryResponse = ExecuteQueryResponseCase0 | ExecuteQueryResponseCase1;
|
|
523
|
+
export declare const ExecuteQueryResponse: S.Schema<ExecuteQueryResponse>;
|
|
524
|
+
export type ExecuteQueryV1Response = ExecuteQueryResponse;
|
|
525
|
+
export declare const ExecuteQueryV1Response: S.Schema<ExecuteQueryV1Response>;
|
|
526
|
+
export interface GetBatchResultsV1Request {
|
|
527
|
+
/** The ID of the batch, starts with `batch_`. */
|
|
528
|
+
batchId: string;
|
|
529
|
+
}
|
|
530
|
+
export declare const GetBatchResultsV1Request: S.Schema<GetBatchResultsV1Request>;
|
|
531
|
+
export interface GetBatchResultsV1ResponseItemsItemUsage {
|
|
532
|
+
/** Duration of the run in milliseconds. */
|
|
533
|
+
durationMs?: number;
|
|
534
|
+
}
|
|
535
|
+
export declare const GetBatchResultsV1ResponseItemsItemUsage: S.Schema<GetBatchResultsV1ResponseItemsItemUsage>;
|
|
536
|
+
export interface GetBatchResultsV1ResponseItemsItem {
|
|
537
|
+
/** Whether this run completed successfully. */
|
|
538
|
+
ok: boolean;
|
|
539
|
+
/** The run ID. */
|
|
540
|
+
id: string;
|
|
541
|
+
/** The serialized output as a string (present when ok is true). Use outputType to determine how to parse it — for "application/json" use JSON.parse(). */
|
|
542
|
+
output?: string;
|
|
543
|
+
/** The content type of the serialized output, e.g. "application/json". */
|
|
544
|
+
outputType?: string;
|
|
545
|
+
/** Error details (present when ok is false). */
|
|
546
|
+
error?: unknown;
|
|
547
|
+
usage?: GetBatchResultsV1ResponseItemsItemUsage;
|
|
548
|
+
/** The task identifier. */
|
|
549
|
+
taskIdentifier?: string;
|
|
550
|
+
}
|
|
551
|
+
export declare const GetBatchResultsV1ResponseItemsItem: S.Schema<GetBatchResultsV1ResponseItemsItem>;
|
|
552
|
+
/** Execution results for each run in the batch. */
|
|
553
|
+
export type GetBatchResultsV1ResponseItemsList = Array<GetBatchResultsV1ResponseItemsItem>;
|
|
554
|
+
export declare const GetBatchResultsV1ResponseItemsList: S.Schema<GetBatchResultsV1ResponseItemsList>;
|
|
555
|
+
export interface GetBatchResultsV1Response {
|
|
556
|
+
/** The batch ID. */
|
|
557
|
+
id?: string;
|
|
558
|
+
/** Execution results for each run in the batch. */
|
|
559
|
+
items?: GetBatchResultsV1ResponseItemsList;
|
|
560
|
+
}
|
|
561
|
+
export declare const GetBatchResultsV1Response: S.Schema<GetBatchResultsV1Response>;
|
|
562
|
+
export interface GetBatchV1Request {
|
|
563
|
+
/** The ID of the batch, starts with `batch_`. */
|
|
564
|
+
batchId: string;
|
|
565
|
+
}
|
|
566
|
+
export declare const GetBatchV1Request: S.Schema<GetBatchV1Request>;
|
|
567
|
+
/** The current status of the batch. */
|
|
568
|
+
export type GetBatchV1ResponseStatus = "PENDING" | "PROCESSING" | "COMPLETED" | "PARTIAL_FAILED" | "ABORTED";
|
|
569
|
+
export declare const GetBatchV1ResponseStatus: any;
|
|
570
|
+
/** Array of run IDs in the batch. */
|
|
571
|
+
export type GetBatchV1ResponseRunsList = Array<string>;
|
|
572
|
+
export declare const GetBatchV1ResponseRunsList: S.Schema<GetBatchV1ResponseRunsList>;
|
|
573
|
+
export interface GetBatchV1ResponseErrorsItem {
|
|
574
|
+
/** The index of the failed item. */
|
|
575
|
+
index?: number;
|
|
576
|
+
/** The task identifier of the failed item. */
|
|
577
|
+
taskIdentifier?: string;
|
|
578
|
+
/** The error details. */
|
|
579
|
+
error?: unknown;
|
|
580
|
+
/** An optional error code. */
|
|
581
|
+
errorCode?: string | null;
|
|
582
|
+
}
|
|
583
|
+
export declare const GetBatchV1ResponseErrorsItem: S.Schema<GetBatchV1ResponseErrorsItem>;
|
|
584
|
+
/** Error details for failed items (present for PARTIAL_FAILED batches). */
|
|
585
|
+
export type GetBatchV1ResponseErrorsList = Array<GetBatchV1ResponseErrorsItem>;
|
|
586
|
+
export declare const GetBatchV1ResponseErrorsList: S.Schema<GetBatchV1ResponseErrorsList>;
|
|
587
|
+
export interface GetBatchV1Response {
|
|
588
|
+
/** The batch ID. */
|
|
589
|
+
id?: string;
|
|
590
|
+
/** The current status of the batch. */
|
|
591
|
+
status?: GetBatchV1ResponseStatus;
|
|
592
|
+
/** The idempotency key provided when triggering, if any. */
|
|
593
|
+
idempotencyKey?: string | null;
|
|
594
|
+
createdAt?: string;
|
|
595
|
+
updatedAt?: string;
|
|
596
|
+
/** The total number of runs in the batch. */
|
|
597
|
+
runCount?: number;
|
|
598
|
+
/** Array of run IDs in the batch. */
|
|
599
|
+
runs?: GetBatchV1ResponseRunsList;
|
|
600
|
+
/** Number of successful runs (populated after completion). */
|
|
601
|
+
successfulRunCount?: number | null;
|
|
602
|
+
/** Number of failed runs (populated after completion). */
|
|
603
|
+
failedRunCount?: number | null;
|
|
604
|
+
/** Error details for failed items (present for PARTIAL_FAILED batches). */
|
|
605
|
+
errors?: GetBatchV1ResponseErrorsList | null;
|
|
606
|
+
}
|
|
607
|
+
export declare const GetBatchV1Response: S.Schema<GetBatchV1Response>;
|
|
608
|
+
export interface GetBulkActionV1Request {
|
|
609
|
+
/** The ID of a bulk action, starts with `bulk_`. */
|
|
610
|
+
bulkActionId: string;
|
|
611
|
+
}
|
|
612
|
+
export declare const GetBulkActionV1Request: S.Schema<GetBulkActionV1Request>;
|
|
613
|
+
export type BulkActionObjectType = "CANCEL" | "REPLAY";
|
|
614
|
+
export declare const BulkActionObjectType: any;
|
|
615
|
+
export type BulkActionObjectStatus = "PENDING" | "COMPLETED" | "ABORTED";
|
|
616
|
+
export declare const BulkActionObjectStatus: any;
|
|
617
|
+
export interface BulkActionObjectCounts {
|
|
618
|
+
/** The number of runs selected when the bulk action was created. */
|
|
619
|
+
total: number;
|
|
620
|
+
/** The number of runs processed successfully. */
|
|
621
|
+
success: number;
|
|
622
|
+
/** The number of runs that could not be processed. */
|
|
623
|
+
failure: number;
|
|
624
|
+
}
|
|
625
|
+
export declare const BulkActionObjectCounts: S.Schema<BulkActionObjectCounts>;
|
|
626
|
+
export interface BulkActionObject {
|
|
627
|
+
/** The bulk action ID, prefixed with `bulk_`. */
|
|
628
|
+
id: string;
|
|
629
|
+
/** The name provided when the bulk action was created. */
|
|
630
|
+
name?: string;
|
|
631
|
+
type: BulkActionObjectType;
|
|
632
|
+
status: BulkActionObjectStatus;
|
|
633
|
+
counts: BulkActionObjectCounts;
|
|
634
|
+
createdAt: string;
|
|
635
|
+
completedAt?: string;
|
|
636
|
+
}
|
|
637
|
+
export declare const BulkActionObject: S.Schema<BulkActionObject>;
|
|
638
|
+
export interface GetDeploymentV1Request {
|
|
639
|
+
/** The deployment ID. */
|
|
640
|
+
deploymentId: string;
|
|
641
|
+
}
|
|
642
|
+
export declare const GetDeploymentV1Request: S.Schema<GetDeploymentV1Request>;
|
|
643
|
+
/** The current status of the deployment */
|
|
644
|
+
export type GetDeploymentV1ResponseStatus = "PENDING" | "INSTALLING" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | "FAILED" | "CANCELED" | "TIMED_OUT";
|
|
645
|
+
export declare const GetDeploymentV1ResponseStatus: any;
|
|
646
|
+
export interface GetDeploymentV1ResponseWorkerTasksItem {
|
|
647
|
+
id?: string;
|
|
648
|
+
slug?: string;
|
|
649
|
+
filePath?: string;
|
|
650
|
+
exportName?: string;
|
|
651
|
+
}
|
|
652
|
+
export declare const GetDeploymentV1ResponseWorkerTasksItem: S.Schema<GetDeploymentV1ResponseWorkerTasksItem>;
|
|
653
|
+
export type GetDeploymentV1ResponseWorkerTasksList = Array<GetDeploymentV1ResponseWorkerTasksItem>;
|
|
654
|
+
export declare const GetDeploymentV1ResponseWorkerTasksList: S.Schema<GetDeploymentV1ResponseWorkerTasksList>;
|
|
655
|
+
/** Worker information if available */
|
|
656
|
+
export interface GetDeploymentV1ResponseWorker {
|
|
657
|
+
id?: string;
|
|
658
|
+
version?: string;
|
|
659
|
+
tasks?: GetDeploymentV1ResponseWorkerTasksList;
|
|
660
|
+
}
|
|
661
|
+
export declare const GetDeploymentV1ResponseWorker: S.Schema<GetDeploymentV1ResponseWorker>;
|
|
662
|
+
export interface GetDeploymentV1Response {
|
|
663
|
+
/** The deployment ID */
|
|
664
|
+
id?: string;
|
|
665
|
+
/** The current status of the deployment */
|
|
666
|
+
status?: GetDeploymentV1ResponseStatus;
|
|
667
|
+
/** Hash of the deployment content */
|
|
668
|
+
contentHash?: string;
|
|
669
|
+
/** The short code for the deployment */
|
|
670
|
+
shortCode?: string;
|
|
671
|
+
/** The deployment version (e.g., "20250228.1") */
|
|
672
|
+
version?: string;
|
|
673
|
+
/** Reference to the deployment image */
|
|
674
|
+
imageReference?: string | null;
|
|
675
|
+
/** Platform of the deployment image */
|
|
676
|
+
imagePlatform?: string;
|
|
677
|
+
/** External build data if applicable */
|
|
678
|
+
externalBuildData?: unknown | null;
|
|
679
|
+
/** Error data if the deployment failed */
|
|
680
|
+
errorData?: unknown | null;
|
|
681
|
+
/** Worker information if available */
|
|
682
|
+
worker?: GetDeploymentV1ResponseWorker | null;
|
|
683
|
+
}
|
|
684
|
+
export declare const GetDeploymentV1Response: S.Schema<GetDeploymentV1Response>;
|
|
685
|
+
export interface GetErrorV1Request {
|
|
686
|
+
/** The ID of an error group, starts with `error_`. */
|
|
687
|
+
errorId: string;
|
|
688
|
+
}
|
|
689
|
+
export declare const GetErrorV1Request: S.Schema<GetErrorV1Request>;
|
|
690
|
+
/** The most recent worker versions the error has occurred in (up to five) */
|
|
691
|
+
export type ErrorObjectAffectedVersionsList = Array<string>;
|
|
692
|
+
export declare const ErrorObjectAffectedVersionsList: S.Schema<ErrorObjectAffectedVersionsList>;
|
|
693
|
+
export type ErrorObjectStatus = "unresolved" | "resolved" | "ignored";
|
|
694
|
+
export declare const ErrorObjectStatus: any;
|
|
695
|
+
export interface ErrorObject {
|
|
696
|
+
/** The unique ID of the error group, prefixed with `error_` */
|
|
697
|
+
id: string;
|
|
698
|
+
/** The raw fingerprint the error is grouped by */
|
|
699
|
+
fingerprint: string;
|
|
700
|
+
/** The identifier of the task the error belongs to */
|
|
701
|
+
taskIdentifier: string;
|
|
702
|
+
/** The error type or name (e.g. `TypeError`) */
|
|
703
|
+
errorType: string;
|
|
704
|
+
/** The normalized error message */
|
|
705
|
+
errorMessage: string;
|
|
706
|
+
/** The total number of occurrences of this error group */
|
|
707
|
+
count: number;
|
|
708
|
+
firstSeen: string;
|
|
709
|
+
lastSeen: string;
|
|
710
|
+
/** The most recent worker versions the error has occurred in (up to five) */
|
|
711
|
+
affectedVersions: ErrorObjectAffectedVersionsList;
|
|
712
|
+
status: ErrorObjectStatus;
|
|
713
|
+
resolvedAt?: string | null;
|
|
714
|
+
resolvedInVersion?: string | null;
|
|
715
|
+
/** The ID of the user who resolved the error, when attributable */
|
|
716
|
+
resolvedBy?: string | null;
|
|
717
|
+
ignoredAt?: string | null;
|
|
718
|
+
ignoredUntil?: string | null;
|
|
719
|
+
ignoredReason?: string | null;
|
|
720
|
+
ignoredByUserId?: string | null;
|
|
721
|
+
ignoredUntilOccurrenceRate?: number | null;
|
|
722
|
+
ignoredUntilTotalOccurrences?: number | null;
|
|
723
|
+
}
|
|
724
|
+
export declare const ErrorObject: S.Schema<ErrorObject>;
|
|
725
|
+
export interface GetLatestDeploymentV1Request {
|
|
726
|
+
}
|
|
727
|
+
export declare const GetLatestDeploymentV1Request: S.Schema<GetLatestDeploymentV1Request>;
|
|
728
|
+
/** The current status of the deployment */
|
|
729
|
+
export type GetLatestDeploymentV1ResponseStatus = "PENDING" | "INSTALLING" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | "FAILED" | "CANCELED" | "TIMED_OUT";
|
|
730
|
+
export declare const GetLatestDeploymentV1ResponseStatus: any;
|
|
731
|
+
export interface GetLatestDeploymentV1Response {
|
|
732
|
+
/** The deployment ID */
|
|
733
|
+
id?: string;
|
|
734
|
+
/** The current status of the deployment */
|
|
735
|
+
status?: GetLatestDeploymentV1ResponseStatus;
|
|
736
|
+
/** Hash of the deployment content */
|
|
737
|
+
contentHash?: string;
|
|
738
|
+
/** The short code for the deployment */
|
|
739
|
+
shortCode?: string;
|
|
740
|
+
/** The deployment version (e.g., "20250228.1") */
|
|
741
|
+
version?: string;
|
|
742
|
+
/** Reference to the deployment image */
|
|
743
|
+
imageReference?: string | null;
|
|
744
|
+
/** Error data if the deployment failed */
|
|
745
|
+
errorData?: unknown | null;
|
|
746
|
+
}
|
|
747
|
+
export declare const GetLatestDeploymentV1Response: S.Schema<GetLatestDeploymentV1Response>;
|
|
748
|
+
export type GetProjectEnvvarV1RequestEnv = "dev" | "staging" | "prod";
|
|
749
|
+
export declare const GetProjectEnvvarV1RequestEnv: any;
|
|
750
|
+
export interface GetProjectEnvvarV1Request {
|
|
751
|
+
/** The external ref of the project. You can find this in the project settings. Starts with `proj_`. */
|
|
752
|
+
projectRef: string;
|
|
753
|
+
/** The environment of the project to list variables for. */
|
|
754
|
+
env: GetProjectEnvvarV1RequestEnv | (string & {});
|
|
755
|
+
/** The name of the environment variable. */
|
|
756
|
+
name: string;
|
|
757
|
+
}
|
|
758
|
+
export declare const GetProjectEnvvarV1Request: S.Schema<GetProjectEnvvarV1Request>;
|
|
759
|
+
export interface EnvVarValue {
|
|
760
|
+
value: string;
|
|
761
|
+
}
|
|
762
|
+
export declare const EnvVarValue: S.Schema<EnvVarValue>;
|
|
763
|
+
export interface GetQuerySchemaV1Request {
|
|
764
|
+
}
|
|
765
|
+
export declare const GetQuerySchemaV1Request: S.Schema<GetQuerySchemaV1Request>;
|
|
766
|
+
/** Allowed values for enum-like columns */
|
|
767
|
+
export type GetQuerySchemaV1ResponseTablesItemColumnsItemAllowedValuesList = Array<string>;
|
|
768
|
+
export declare const GetQuerySchemaV1ResponseTablesItemColumnsItemAllowedValuesList: S.Schema<GetQuerySchemaV1ResponseTablesItemColumnsItemAllowedValuesList>;
|
|
769
|
+
export interface GetQuerySchemaV1ResponseTablesItemColumnsItem {
|
|
770
|
+
/** Column name */
|
|
771
|
+
name?: string;
|
|
772
|
+
/** ClickHouse data type */
|
|
773
|
+
type?: string;
|
|
774
|
+
/** Column description */
|
|
775
|
+
description?: string;
|
|
776
|
+
/** Example value */
|
|
777
|
+
example?: string;
|
|
778
|
+
/** Allowed values for enum-like columns */
|
|
779
|
+
allowedValues?: GetQuerySchemaV1ResponseTablesItemColumnsItemAllowedValuesList;
|
|
780
|
+
/** Whether this is a core column included in default queries */
|
|
781
|
+
coreColumn?: boolean;
|
|
782
|
+
}
|
|
783
|
+
export declare const GetQuerySchemaV1ResponseTablesItemColumnsItem: S.Schema<GetQuerySchemaV1ResponseTablesItemColumnsItem>;
|
|
784
|
+
export type GetQuerySchemaV1ResponseTablesItemColumnsList = Array<GetQuerySchemaV1ResponseTablesItemColumnsItem>;
|
|
785
|
+
export declare const GetQuerySchemaV1ResponseTablesItemColumnsList: S.Schema<GetQuerySchemaV1ResponseTablesItemColumnsList>;
|
|
786
|
+
export interface GetQuerySchemaV1ResponseTablesItem {
|
|
787
|
+
/** Table name used in TRQL queries */
|
|
788
|
+
name?: string;
|
|
789
|
+
/** Description of the table */
|
|
790
|
+
description?: string;
|
|
791
|
+
/** The primary time column for this table */
|
|
792
|
+
timeColumn?: string;
|
|
793
|
+
columns?: GetQuerySchemaV1ResponseTablesItemColumnsList;
|
|
794
|
+
}
|
|
795
|
+
export declare const GetQuerySchemaV1ResponseTablesItem: S.Schema<GetQuerySchemaV1ResponseTablesItem>;
|
|
796
|
+
export type GetQuerySchemaV1ResponseTablesList = Array<GetQuerySchemaV1ResponseTablesItem>;
|
|
797
|
+
export declare const GetQuerySchemaV1ResponseTablesList: S.Schema<GetQuerySchemaV1ResponseTablesList>;
|
|
798
|
+
export interface GetQuerySchemaV1Response {
|
|
799
|
+
tables?: GetQuerySchemaV1ResponseTablesList;
|
|
800
|
+
}
|
|
801
|
+
export declare const GetQuerySchemaV1Response: S.Schema<GetQuerySchemaV1Response>;
|
|
802
|
+
export type GetQueueV1RequestType = "id" | "task" | "custom";
|
|
803
|
+
export declare const GetQueueV1RequestType: any;
|
|
804
|
+
export interface GetQueueV1Request {
|
|
805
|
+
/** The queue ID (e.g., `queue_1234`), or the name of the queue when using the `type` query parameter. */
|
|
806
|
+
queueParam: string;
|
|
807
|
+
/** How to interpret the `queueParam` path parameter: - `id`: Treat as a queue ID (default) - `task`: Treat as a task ID to get the task's default queue - `custom`: Treat as a custom queue name */
|
|
808
|
+
type?: GetQueueV1RequestType | (string & {});
|
|
809
|
+
}
|
|
810
|
+
export declare const GetQueueV1Request: S.Schema<GetQueueV1Request>;
|
|
811
|
+
/** The type of queue: - `task`: Created automatically for each task - `custom`: Created explicitly in your code using `queue()` */
|
|
812
|
+
export type QueueObjectType = "task" | "custom";
|
|
813
|
+
export declare const QueueObjectType: any;
|
|
814
|
+
/** Detailed concurrency information */
|
|
815
|
+
export interface QueueObjectConcurrency {
|
|
816
|
+
/** The effective/current concurrency limit */
|
|
817
|
+
current?: number | null;
|
|
818
|
+
/** The base concurrency limit defined in code */
|
|
819
|
+
base?: number | null;
|
|
820
|
+
/** The override concurrency limit (if set) */
|
|
821
|
+
override?: number | null;
|
|
822
|
+
/** When the concurrency limit was overridden */
|
|
823
|
+
overriddenAt?: string | null;
|
|
824
|
+
/** Who overrode the concurrency limit (null if via API) */
|
|
825
|
+
overriddenBy?: string | null;
|
|
826
|
+
}
|
|
827
|
+
export declare const QueueObjectConcurrency: S.Schema<QueueObjectConcurrency>;
|
|
828
|
+
export interface QueueObject {
|
|
829
|
+
/** The queue ID, e.g., `queue_1234` */
|
|
830
|
+
id: string;
|
|
831
|
+
/** The queue name. For task queues, this is the task ID. For custom queues, this is the name you specified. */
|
|
832
|
+
name: string;
|
|
833
|
+
/** The type of queue: - `task`: Created automatically for each task - `custom`: Created explicitly in your code using `queue()` */
|
|
834
|
+
type: QueueObjectType;
|
|
835
|
+
/** The number of runs currently executing */
|
|
836
|
+
running: number;
|
|
837
|
+
/** The number of runs currently queued */
|
|
838
|
+
queued: number;
|
|
839
|
+
/** Whether the queue is paused. When paused, no new runs will start. */
|
|
840
|
+
paused: boolean;
|
|
841
|
+
/** The current concurrency limit of the queue */
|
|
842
|
+
concurrencyLimit?: number | null;
|
|
843
|
+
/** Detailed concurrency information */
|
|
844
|
+
concurrency?: QueueObjectConcurrency;
|
|
845
|
+
}
|
|
846
|
+
export declare const QueueObject: S.Schema<QueueObject>;
|
|
847
|
+
export interface GetRunEventsV1Request {
|
|
848
|
+
/** The ID of an run, starts with `run_`. The run ID will be returned when you trigger a run on a task. */
|
|
849
|
+
runId: string;
|
|
850
|
+
}
|
|
851
|
+
export declare const GetRunEventsV1Request: S.Schema<GetRunEventsV1Request>;
|
|
852
|
+
/** The log level of the event. */
|
|
853
|
+
export type GetRunEventsV1ResponseEventsItemLevel = "TRACE" | "DEBUG" | "LOG" | "INFO" | "WARN" | "ERROR";
|
|
854
|
+
export declare const GetRunEventsV1ResponseEventsItemLevel: any;
|
|
855
|
+
/** The kind of span event. */
|
|
856
|
+
export type GetRunEventsV1ResponseEventsItemKind = "UNSPECIFIED" | "INTERNAL" | "SERVER" | "CLIENT" | "PRODUCER" | "CONSUMER" | "UNRECOGNIZED" | "LOG";
|
|
857
|
+
export declare const GetRunEventsV1ResponseEventsItemKind: any;
|
|
858
|
+
export interface GetRunEventsV1ResponseEventsItemEventsItem {
|
|
859
|
+
/** The event name (e.g. "exception", "cancellation", "attempt_failed"). */
|
|
860
|
+
name?: string;
|
|
861
|
+
/** The time the event occurred. */
|
|
862
|
+
time?: string;
|
|
863
|
+
/** Event-specific properties. */
|
|
864
|
+
properties?: unknown;
|
|
865
|
+
}
|
|
866
|
+
export declare const GetRunEventsV1ResponseEventsItemEventsItem: S.Schema<GetRunEventsV1ResponseEventsItemEventsItem>;
|
|
867
|
+
/** Span events (e.g. exceptions, cancellations) that occurred during this event. */
|
|
868
|
+
export type GetRunEventsV1ResponseEventsItemEventsList = Array<GetRunEventsV1ResponseEventsItemEventsItem>;
|
|
869
|
+
export declare const GetRunEventsV1ResponseEventsItemEventsList: S.Schema<GetRunEventsV1ResponseEventsItemEventsList>;
|
|
870
|
+
export type GetRunEventsV1ResponseEventsItemStyleAccessoryStyle = "codepath";
|
|
871
|
+
export declare const GetRunEventsV1ResponseEventsItemStyleAccessoryStyle: any;
|
|
872
|
+
/** Accessory display element. */
|
|
873
|
+
export interface GetRunEventsV1ResponseEventsItemStyleAccessory {
|
|
874
|
+
text?: string;
|
|
875
|
+
style?: GetRunEventsV1ResponseEventsItemStyleAccessoryStyle;
|
|
876
|
+
}
|
|
877
|
+
export declare const GetRunEventsV1ResponseEventsItemStyleAccessory: S.Schema<GetRunEventsV1ResponseEventsItemStyleAccessory>;
|
|
878
|
+
/** Display style metadata for the event. */
|
|
879
|
+
export interface GetRunEventsV1ResponseEventsItemStyle {
|
|
880
|
+
/** Icon identifier for display. */
|
|
881
|
+
icon?: string;
|
|
882
|
+
/** Visual variant (e.g. "success", "failure"). */
|
|
883
|
+
variant?: string;
|
|
884
|
+
/** Accessory display element. */
|
|
885
|
+
accessory?: GetRunEventsV1ResponseEventsItemStyleAccessory;
|
|
886
|
+
}
|
|
887
|
+
export declare const GetRunEventsV1ResponseEventsItemStyle: S.Schema<GetRunEventsV1ResponseEventsItemStyle>;
|
|
888
|
+
export interface GetRunEventsV1ResponseEventsItem {
|
|
889
|
+
/** The span ID of the event. */
|
|
890
|
+
spanId?: string;
|
|
891
|
+
/** The parent span ID, if any. */
|
|
892
|
+
parentId?: string | null;
|
|
893
|
+
/** The run ID associated with this event. */
|
|
894
|
+
runId?: string | null;
|
|
895
|
+
/** The event message. */
|
|
896
|
+
message?: string;
|
|
897
|
+
/** The start time of the event as a bigint string (nanoseconds since epoch). */
|
|
898
|
+
startTime?: string;
|
|
899
|
+
/** The duration of the event in nanoseconds. */
|
|
900
|
+
duration?: number;
|
|
901
|
+
/** Whether this event represents an error. */
|
|
902
|
+
isError?: boolean;
|
|
903
|
+
/** Whether this event is partial (still in progress). */
|
|
904
|
+
isPartial?: boolean;
|
|
905
|
+
/** Whether this event was cancelled. */
|
|
906
|
+
isCancelled?: boolean;
|
|
907
|
+
/** The log level of the event. */
|
|
908
|
+
level?: GetRunEventsV1ResponseEventsItemLevel;
|
|
909
|
+
/** The kind of span event. */
|
|
910
|
+
kind?: GetRunEventsV1ResponseEventsItemKind;
|
|
911
|
+
/** The attempt number this event belongs to. */
|
|
912
|
+
attemptNumber?: number | null;
|
|
913
|
+
/** The task identifier. */
|
|
914
|
+
taskSlug?: string;
|
|
915
|
+
/** Span events (e.g. exceptions, cancellations) that occurred during this event. */
|
|
916
|
+
events?: GetRunEventsV1ResponseEventsItemEventsList;
|
|
917
|
+
/** Display style metadata for the event. */
|
|
918
|
+
style?: GetRunEventsV1ResponseEventsItemStyle;
|
|
919
|
+
}
|
|
920
|
+
export declare const GetRunEventsV1ResponseEventsItem: S.Schema<GetRunEventsV1ResponseEventsItem>;
|
|
921
|
+
export type GetRunEventsV1ResponseEventsList = Array<GetRunEventsV1ResponseEventsItem>;
|
|
922
|
+
export declare const GetRunEventsV1ResponseEventsList: S.Schema<GetRunEventsV1ResponseEventsList>;
|
|
923
|
+
export interface GetRunEventsV1Response {
|
|
924
|
+
events?: GetRunEventsV1ResponseEventsList;
|
|
925
|
+
}
|
|
926
|
+
export declare const GetRunEventsV1Response: S.Schema<GetRunEventsV1Response>;
|
|
927
|
+
export interface GetRunResultV1Request {
|
|
928
|
+
/** The ID of an run, starts with `run_`. The run ID will be returned when you trigger a run on a task. */
|
|
929
|
+
runId: string;
|
|
930
|
+
}
|
|
931
|
+
export declare const GetRunResultV1Request: S.Schema<GetRunResultV1Request>;
|
|
932
|
+
/** Execution usage stats. */
|
|
933
|
+
export type GetRunResultV1ResponseUsage = GetBatchResultsV1ResponseItemsItemUsage;
|
|
934
|
+
export declare const GetRunResultV1ResponseUsage: S.Schema<GetBatchResultsV1ResponseItemsItemUsage>;
|
|
935
|
+
export interface GetRunResultV1Response {
|
|
936
|
+
/** Whether the run completed successfully. */
|
|
937
|
+
ok: boolean;
|
|
938
|
+
/** The run ID. */
|
|
939
|
+
id: string;
|
|
940
|
+
/** The serialized output as a string (present when ok is true). Use outputType to determine how to parse it — for "application/json" use JSON.parse(). */
|
|
941
|
+
output?: string;
|
|
942
|
+
/** The content type of the serialized output, e.g. "application/json". */
|
|
943
|
+
outputType?: string;
|
|
944
|
+
/** Error details (present when ok is false). */
|
|
945
|
+
error?: unknown;
|
|
946
|
+
/** Execution usage stats. */
|
|
947
|
+
usage?: GetBatchResultsV1ResponseItemsItemUsage;
|
|
948
|
+
/** The task identifier. */
|
|
949
|
+
taskIdentifier?: string;
|
|
950
|
+
}
|
|
951
|
+
export declare const GetRunResultV1Response: S.Schema<GetRunResultV1Response>;
|
|
952
|
+
export interface GetRunTraceV1Request {
|
|
953
|
+
/** The ID of an run, starts with `run_`. The run ID will be returned when you trigger a run on a task. */
|
|
954
|
+
runId: string;
|
|
955
|
+
}
|
|
956
|
+
export declare const GetRunTraceV1Request: S.Schema<GetRunTraceV1Request>;
|
|
957
|
+
export type SpanDetailedSummaryDataLevel = "TRACE" | "DEBUG" | "LOG" | "INFO" | "WARN" | "ERROR";
|
|
958
|
+
export declare const SpanDetailedSummaryDataLevel: any;
|
|
959
|
+
export type SpanDetailedSummaryDataEventsItem = GetRunEventsV1ResponseEventsItemEventsItem;
|
|
960
|
+
export declare const SpanDetailedSummaryDataEventsItem: S.Schema<GetRunEventsV1ResponseEventsItemEventsItem>;
|
|
961
|
+
/** Span events (e.g. exceptions, cancellations) that occurred during this span. */
|
|
962
|
+
export type SpanDetailedSummaryDataEventsList = Array<GetRunEventsV1ResponseEventsItemEventsItem>;
|
|
963
|
+
export declare const SpanDetailedSummaryDataEventsList: S.Schema<SpanDetailedSummaryDataEventsList>;
|
|
964
|
+
export interface SpanDetailedSummaryData {
|
|
965
|
+
/** The span message. */
|
|
966
|
+
message?: string;
|
|
967
|
+
/** The task identifier, if applicable. */
|
|
968
|
+
taskSlug?: string;
|
|
969
|
+
/** The start time of the span. */
|
|
970
|
+
startTime?: string;
|
|
971
|
+
/** The duration of the span in nanoseconds. */
|
|
972
|
+
duration?: number;
|
|
973
|
+
isError?: boolean;
|
|
974
|
+
isPartial?: boolean;
|
|
975
|
+
isCancelled?: boolean;
|
|
976
|
+
level?: SpanDetailedSummaryDataLevel;
|
|
977
|
+
attemptNumber?: number | null;
|
|
978
|
+
/** Arbitrary OTel attributes attached to the span. */
|
|
979
|
+
properties?: unknown;
|
|
980
|
+
/** Span events (e.g. exceptions, cancellations) that occurred during this span. */
|
|
981
|
+
events?: SpanDetailedSummaryDataEventsList;
|
|
982
|
+
}
|
|
983
|
+
export declare const SpanDetailedSummaryData: S.Schema<SpanDetailedSummaryData>;
|
|
984
|
+
/** Nested child spans. Each child has the same structure as the parent span. */
|
|
985
|
+
export type SpanDetailedSummaryChildrenList = Array<SpanDetailedSummary>;
|
|
986
|
+
export declare const SpanDetailedSummaryChildrenList: S.Schema<SpanDetailedSummaryChildrenList>;
|
|
987
|
+
export interface SpanDetailedSummary {
|
|
988
|
+
/** The span ID. */
|
|
989
|
+
id?: string;
|
|
990
|
+
/** The parent span ID, if any. */
|
|
991
|
+
parentId?: string | null;
|
|
992
|
+
/** The run ID this span belongs to. */
|
|
993
|
+
runId?: string;
|
|
994
|
+
data?: SpanDetailedSummaryData;
|
|
995
|
+
/** Nested child spans. Each child has the same structure as the parent span. */
|
|
996
|
+
children?: SpanDetailedSummaryChildrenList;
|
|
997
|
+
}
|
|
998
|
+
export declare const SpanDetailedSummary: S.Schema<SpanDetailedSummary>;
|
|
999
|
+
export interface GetRunTraceV1ResponseTrace {
|
|
1000
|
+
/** The OTel trace ID. */
|
|
1001
|
+
traceId?: string;
|
|
1002
|
+
/** The requested run's span, with nested descendant spans as `children`. Not necessarily the trace-wide root span. */
|
|
1003
|
+
rootSpan?: SpanDetailedSummary;
|
|
1004
|
+
}
|
|
1005
|
+
export declare const GetRunTraceV1ResponseTrace: S.Schema<GetRunTraceV1ResponseTrace>;
|
|
1006
|
+
export interface GetRunTraceV1Response {
|
|
1007
|
+
trace?: GetRunTraceV1ResponseTrace;
|
|
1008
|
+
}
|
|
1009
|
+
export declare const GetRunTraceV1Response: S.Schema<GetRunTraceV1Response>;
|
|
1010
|
+
export interface GetRunV1Request {
|
|
1011
|
+
/** The ID of an run, starts with `run_`. The run ID will be returned when you trigger a run on a task. */
|
|
1012
|
+
runId: string;
|
|
1013
|
+
}
|
|
1014
|
+
export declare const GetRunV1Request: S.Schema<GetRunV1Request>;
|
|
1015
|
+
/** The status of the run */
|
|
1016
|
+
export type GetRunV1ResponseStatus = "PENDING_VERSION" | "DELAYED" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE";
|
|
1017
|
+
export declare const GetRunV1ResponseStatus: any;
|
|
1018
|
+
/** Tags can be attached to a run to make it easy to find runs (in the dashboard or using SDK functions like `runs.list`) */
|
|
1019
|
+
export type GetRunV1ResponseTagsList = Array<string>;
|
|
1020
|
+
export declare const GetRunV1ResponseTagsList: S.Schema<GetRunV1ResponseTagsList>;
|
|
1021
|
+
/** The name of the function that triggered the run */
|
|
1022
|
+
export type GetRunV1ResponseTriggerFunction = "trigger" | "triggerAndWait" | "batchTrigger" | "batchTriggerAndWait";
|
|
1023
|
+
export declare const GetRunV1ResponseTriggerFunction: any;
|
|
1024
|
+
/** The status of the run */
|
|
1025
|
+
export type CommonRunObjectStatus = "PENDING_VERSION" | "DELAYED" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE";
|
|
1026
|
+
export declare const CommonRunObjectStatus: any;
|
|
1027
|
+
/** Tags can be attached to a run to make it easy to find runs (in the dashboard or using SDK functions like `runs.list`) */
|
|
1028
|
+
export type CommonRunObjectTagsList = Array<string>;
|
|
1029
|
+
export declare const CommonRunObjectTagsList: S.Schema<CommonRunObjectTagsList>;
|
|
1030
|
+
/** The name of the function that triggered the run */
|
|
1031
|
+
export type CommonRunObjectTriggerFunction = "trigger" | "triggerAndWait" | "batchTrigger" | "batchTriggerAndWait";
|
|
1032
|
+
export declare const CommonRunObjectTriggerFunction: any;
|
|
1033
|
+
export interface CommonRunObject {
|
|
1034
|
+
/** The unique ID of the run, prefixed with `run_` */
|
|
1035
|
+
id: string;
|
|
1036
|
+
/** The status of the run */
|
|
1037
|
+
status: CommonRunObjectStatus;
|
|
1038
|
+
/** The identifier of the task that was run */
|
|
1039
|
+
taskIdentifier: string;
|
|
1040
|
+
/** The version of the worker that executed the run */
|
|
1041
|
+
version?: string;
|
|
1042
|
+
/** The idempotency key used to prevent creating duplicate runs, if provided */
|
|
1043
|
+
idempotencyKey?: string;
|
|
1044
|
+
createdAt: string;
|
|
1045
|
+
updatedAt: string;
|
|
1046
|
+
/** Whether the run is a test run or not */
|
|
1047
|
+
isTest?: boolean;
|
|
1048
|
+
/** The time the run started */
|
|
1049
|
+
startedAt?: string;
|
|
1050
|
+
/** The time the run finished */
|
|
1051
|
+
finishedAt?: string;
|
|
1052
|
+
/** If the run was triggered with a delay, this will be the time the run will be enqueued to execute */
|
|
1053
|
+
delayedUntil?: string;
|
|
1054
|
+
ttl?: unknown;
|
|
1055
|
+
/** If the run had a TTL and that time has passed, when the run "expired". */
|
|
1056
|
+
expiredAt?: string;
|
|
1057
|
+
/** Tags can be attached to a run to make it easy to find runs (in the dashboard or using SDK functions like `runs.list`) */
|
|
1058
|
+
tags?: CommonRunObjectTagsList;
|
|
1059
|
+
/** The metadata of the run. See [Metadata](/runs/metadata) for more information. */
|
|
1060
|
+
metadata?: unknown;
|
|
1061
|
+
/** The compute cost of the run (so far) in cents. This cost does not apply to DEV runs. */
|
|
1062
|
+
costInCents?: number;
|
|
1063
|
+
/** The invocation cost of the run in cents. This cost does not apply to DEV runs. */
|
|
1064
|
+
baseCostInCents?: number;
|
|
1065
|
+
/** The duration of compute (so far) in milliseconds. This does not include waits. */
|
|
1066
|
+
durationMs?: number;
|
|
1067
|
+
/** The depth of the run in the task run hierarchy. The root run has a depth of 0. */
|
|
1068
|
+
depth?: number;
|
|
1069
|
+
/** The ID of the batch that this run belongs to */
|
|
1070
|
+
batchId?: string;
|
|
1071
|
+
/** The name of the function that triggered the run */
|
|
1072
|
+
triggerFunction?: CommonRunObjectTriggerFunction;
|
|
1073
|
+
}
|
|
1074
|
+
export declare const CommonRunObject: S.Schema<CommonRunObject>;
|
|
1075
|
+
/** The immediate children of the run. Will be omitted if the run has no children */
|
|
1076
|
+
export type GetRunV1ResponseRelatedRunsChildrenList = Array<CommonRunObject>;
|
|
1077
|
+
export declare const GetRunV1ResponseRelatedRunsChildrenList: S.Schema<GetRunV1ResponseRelatedRunsChildrenList>;
|
|
1078
|
+
export interface GetRunV1ResponseRelatedRuns {
|
|
1079
|
+
/** The root run of the run hierarchy. Will be omitted if the run is the root run */
|
|
1080
|
+
root?: CommonRunObject;
|
|
1081
|
+
/** The parent run of the run. Will be omitted if the run is the root run */
|
|
1082
|
+
parent?: CommonRunObject;
|
|
1083
|
+
/** The immediate children of the run. Will be omitted if the run has no children */
|
|
1084
|
+
children?: GetRunV1ResponseRelatedRunsChildrenList;
|
|
1085
|
+
}
|
|
1086
|
+
export declare const GetRunV1ResponseRelatedRuns: S.Schema<GetRunV1ResponseRelatedRuns>;
|
|
1087
|
+
export type GetRunV1ResponseScheduleGeneratorType = "CRON";
|
|
1088
|
+
export declare const GetRunV1ResponseScheduleGeneratorType: any;
|
|
1089
|
+
export interface GetRunV1ResponseScheduleGenerator {
|
|
1090
|
+
type?: GetRunV1ResponseScheduleGeneratorType;
|
|
1091
|
+
/** The cron expression used to generate the schedule */
|
|
1092
|
+
expression?: string;
|
|
1093
|
+
/** The description of the generator in plain english */
|
|
1094
|
+
description?: string;
|
|
1095
|
+
}
|
|
1096
|
+
export declare const GetRunV1ResponseScheduleGenerator: S.Schema<GetRunV1ResponseScheduleGenerator>;
|
|
1097
|
+
/** The schedule that triggered the run. Will be omitted if the run was not triggered by a schedule */
|
|
1098
|
+
export interface GetRunV1ResponseSchedule {
|
|
1099
|
+
/** The unique ID of the schedule, prefixed with `sched_` */
|
|
1100
|
+
id: string;
|
|
1101
|
+
/** The external ID of the schedule. Can be anything that is useful to you (e.g., user ID, org ID, etc.) */
|
|
1102
|
+
externalId?: string;
|
|
1103
|
+
/** The deduplication key used to prevent creating duplicate schedules */
|
|
1104
|
+
deduplicationKey?: string;
|
|
1105
|
+
generator: GetRunV1ResponseScheduleGenerator;
|
|
1106
|
+
}
|
|
1107
|
+
export declare const GetRunV1ResponseSchedule: S.Schema<GetRunV1ResponseSchedule>;
|
|
1108
|
+
export type GetRunV1ResponseAttemptsItemStatus = "PENDING" | "EXECUTING" | "PAUSED" | "COMPLETED" | "FAILED" | "CANCELED";
|
|
1109
|
+
export declare const GetRunV1ResponseAttemptsItemStatus: any;
|
|
1110
|
+
export interface SerializedError {
|
|
1111
|
+
message: string;
|
|
1112
|
+
name?: string;
|
|
1113
|
+
stackTrace?: string;
|
|
1114
|
+
}
|
|
1115
|
+
export declare const SerializedError: S.Schema<SerializedError>;
|
|
1116
|
+
export interface GetRunV1ResponseAttemptsItem {
|
|
1117
|
+
/** The unique ID of the attempt, prefixed with `attempt_` */
|
|
1118
|
+
id: string;
|
|
1119
|
+
status: GetRunV1ResponseAttemptsItemStatus;
|
|
1120
|
+
error?: SerializedError;
|
|
1121
|
+
createdAt: string;
|
|
1122
|
+
updatedAt: string;
|
|
1123
|
+
startedAt?: string;
|
|
1124
|
+
completedAt?: string;
|
|
1125
|
+
}
|
|
1126
|
+
export declare const GetRunV1ResponseAttemptsItem: S.Schema<GetRunV1ResponseAttemptsItem>;
|
|
1127
|
+
export type GetRunV1ResponseAttemptsList = Array<GetRunV1ResponseAttemptsItem>;
|
|
1128
|
+
export declare const GetRunV1ResponseAttemptsList: S.Schema<GetRunV1ResponseAttemptsList>;
|
|
1129
|
+
export interface GetRunV1Response {
|
|
1130
|
+
/** The unique ID of the run, prefixed with `run_` */
|
|
1131
|
+
id: string;
|
|
1132
|
+
/** The status of the run */
|
|
1133
|
+
status: GetRunV1ResponseStatus;
|
|
1134
|
+
/** The identifier of the task that was run */
|
|
1135
|
+
taskIdentifier: string;
|
|
1136
|
+
/** The version of the worker that executed the run */
|
|
1137
|
+
version?: string;
|
|
1138
|
+
/** The idempotency key used to prevent creating duplicate runs, if provided */
|
|
1139
|
+
idempotencyKey?: string;
|
|
1140
|
+
createdAt: string;
|
|
1141
|
+
updatedAt: string;
|
|
1142
|
+
/** Whether the run is a test run or not */
|
|
1143
|
+
isTest?: boolean;
|
|
1144
|
+
/** The time the run started */
|
|
1145
|
+
startedAt?: string;
|
|
1146
|
+
/** The time the run finished */
|
|
1147
|
+
finishedAt?: string;
|
|
1148
|
+
/** If the run was triggered with a delay, this will be the time the run will be enqueued to execute */
|
|
1149
|
+
delayedUntil?: string;
|
|
1150
|
+
ttl?: unknown;
|
|
1151
|
+
/** If the run had a TTL and that time has passed, when the run "expired". */
|
|
1152
|
+
expiredAt?: string;
|
|
1153
|
+
/** Tags can be attached to a run to make it easy to find runs (in the dashboard or using SDK functions like `runs.list`) */
|
|
1154
|
+
tags?: GetRunV1ResponseTagsList;
|
|
1155
|
+
/** The metadata of the run. See [Metadata](/runs/metadata) for more information. */
|
|
1156
|
+
metadata?: unknown;
|
|
1157
|
+
/** The compute cost of the run (so far) in cents. This cost does not apply to DEV runs. */
|
|
1158
|
+
costInCents?: number;
|
|
1159
|
+
/** The invocation cost of the run in cents. This cost does not apply to DEV runs. */
|
|
1160
|
+
baseCostInCents?: number;
|
|
1161
|
+
/** The duration of compute (so far) in milliseconds. This does not include waits. */
|
|
1162
|
+
durationMs?: number;
|
|
1163
|
+
/** The depth of the run in the task run hierarchy. The root run has a depth of 0. */
|
|
1164
|
+
depth?: number;
|
|
1165
|
+
/** The ID of the batch that this run belongs to */
|
|
1166
|
+
batchId?: string;
|
|
1167
|
+
/** The name of the function that triggered the run */
|
|
1168
|
+
triggerFunction?: GetRunV1ResponseTriggerFunction;
|
|
1169
|
+
/** The payload that was sent to the task. Will be omitted if the request was made with a Public API key */
|
|
1170
|
+
payload?: unknown;
|
|
1171
|
+
/** The presigned URL to download the payload. Will only be included if the payload is too large to be included in the response. Expires in 5 minutes. */
|
|
1172
|
+
payloadPresignedUrl?: string;
|
|
1173
|
+
/** The output of the run. Will be omitted if the request was made with a Public API key */
|
|
1174
|
+
output?: unknown;
|
|
1175
|
+
/** The presigned URL to download the output. Will only be included if the output is too large to be included in the response. Expires in 5 minutes. */
|
|
1176
|
+
outputPresignedUrl?: string;
|
|
1177
|
+
relatedRuns?: GetRunV1ResponseRelatedRuns;
|
|
1178
|
+
/** The schedule that triggered the run. Will be omitted if the run was not triggered by a schedule */
|
|
1179
|
+
schedule?: GetRunV1ResponseSchedule;
|
|
1180
|
+
attempts: GetRunV1ResponseAttemptsList;
|
|
1181
|
+
}
|
|
1182
|
+
export declare const GetRunV1Response: S.Schema<GetRunV1Response>;
|
|
1183
|
+
export interface GetScheduleV1Request {
|
|
1184
|
+
/** The ID of the schedule. */
|
|
1185
|
+
schedule_id: string;
|
|
1186
|
+
}
|
|
1187
|
+
export declare const GetScheduleV1Request: S.Schema<GetScheduleV1Request>;
|
|
1188
|
+
export interface GetSessionV1Request {
|
|
1189
|
+
/** The session's friendly ID (`session_…`) or your `externalId`. The server disambiguates by the `session_` prefix. */
|
|
1190
|
+
session: string;
|
|
1191
|
+
}
|
|
1192
|
+
export declare const GetSessionV1Request: S.Schema<GetSessionV1Request>;
|
|
1193
|
+
export interface GetTimezonesV1Request {
|
|
1194
|
+
/** Defaults to false. Whether to include UTC in the results or not. */
|
|
1195
|
+
excludeUtc?: boolean;
|
|
1196
|
+
}
|
|
1197
|
+
export declare const GetTimezonesV1Request: S.Schema<GetTimezonesV1Request>;
|
|
1198
|
+
export type GetTimezonesResultTimezonesList = Array<string>;
|
|
1199
|
+
export declare const GetTimezonesResultTimezonesList: S.Schema<GetTimezonesResultTimezonesList>;
|
|
1200
|
+
export interface GetTimezonesResult {
|
|
1201
|
+
timezones?: GetTimezonesResultTimezonesList;
|
|
1202
|
+
}
|
|
1203
|
+
export declare const GetTimezonesResult: S.Schema<GetTimezonesResult>;
|
|
1204
|
+
export interface GetWaitpointTokenV1Request {
|
|
1205
|
+
/** The ID of the waitpoint token. */
|
|
1206
|
+
waitpointId: string;
|
|
1207
|
+
}
|
|
1208
|
+
export declare const GetWaitpointTokenV1Request: S.Schema<GetWaitpointTokenV1Request>;
|
|
1209
|
+
/** The current status of the waitpoint token. */
|
|
1210
|
+
export type WaitpointTokenObjectStatus = "WAITING" | "COMPLETED" | "TIMED_OUT";
|
|
1211
|
+
export declare const WaitpointTokenObjectStatus: any;
|
|
1212
|
+
/** Tags attached to the waitpoint. */
|
|
1213
|
+
export type WaitpointTokenObjectTagsList = Array<string>;
|
|
1214
|
+
export declare const WaitpointTokenObjectTagsList: S.Schema<WaitpointTokenObjectTagsList>;
|
|
1215
|
+
export interface WaitpointTokenObject {
|
|
1216
|
+
/** The unique ID of the waitpoint token. */
|
|
1217
|
+
id: string;
|
|
1218
|
+
/** An HTTP callback URL. A POST request to this URL (with an optional JSON body) will complete the waitpoint without needing an API key. */
|
|
1219
|
+
url: string;
|
|
1220
|
+
/** The current status of the waitpoint token. */
|
|
1221
|
+
status: WaitpointTokenObjectStatus;
|
|
1222
|
+
/** The idempotency key used when creating the token, if any. */
|
|
1223
|
+
idempotencyKey?: string | null;
|
|
1224
|
+
/** When the idempotency key expires. */
|
|
1225
|
+
idempotencyKeyExpiresAt?: string | null;
|
|
1226
|
+
/** When the token will time out, if a timeout was set. */
|
|
1227
|
+
timeoutAt?: string | null;
|
|
1228
|
+
/** When the token was completed, if it has been completed. */
|
|
1229
|
+
completedAt?: string | null;
|
|
1230
|
+
/** The serialized output data passed when completing the token. Only present when `status` is `COMPLETED`. */
|
|
1231
|
+
output?: string | null;
|
|
1232
|
+
/** The content type of the output (e.g. `"application/json"`). */
|
|
1233
|
+
outputType?: string | null;
|
|
1234
|
+
/** Whether the output represents an error (e.g. a timeout). */
|
|
1235
|
+
outputIsError?: boolean | null;
|
|
1236
|
+
/** Tags attached to the waitpoint. */
|
|
1237
|
+
tags: WaitpointTokenObjectTagsList;
|
|
1238
|
+
/** When the waitpoint token was created. */
|
|
1239
|
+
createdAt: string;
|
|
1240
|
+
}
|
|
1241
|
+
export declare const WaitpointTokenObject: S.Schema<WaitpointTokenObject>;
|
|
1242
|
+
export interface IgnoreErrorV1Request {
|
|
1243
|
+
/** The ID of an error group, starts with `error_`. */
|
|
1244
|
+
errorId: string;
|
|
1245
|
+
/** How long to ignore the error for, in milliseconds. */
|
|
1246
|
+
duration?: number;
|
|
1247
|
+
/** Re-surface the error if its occurrence rate exceeds this many occurrences per minute. */
|
|
1248
|
+
occurrenceRate?: number;
|
|
1249
|
+
/** Re-surface the error once it accrues this many new occurrences after being ignored. */
|
|
1250
|
+
totalOccurrences?: number;
|
|
1251
|
+
/** An optional human-readable reason for ignoring the error. */
|
|
1252
|
+
reason?: string;
|
|
1253
|
+
}
|
|
1254
|
+
export declare const IgnoreErrorV1Request: S.Schema<IgnoreErrorV1Request>;
|
|
1255
|
+
export interface ListBulkActionsV1RequestPage {
|
|
1256
|
+
/** Number of bulk actions per page. Maximum is 100. */
|
|
1257
|
+
size?: number;
|
|
1258
|
+
/** The cursor to start the page after. */
|
|
1259
|
+
after?: string;
|
|
1260
|
+
/** The cursor to start the page before. */
|
|
1261
|
+
before?: string;
|
|
1262
|
+
}
|
|
1263
|
+
export declare const ListBulkActionsV1RequestPage: S.Schema<ListBulkActionsV1RequestPage>;
|
|
1264
|
+
export interface ListBulkActionsV1Request {
|
|
1265
|
+
/** Use this parameter to paginate bulk actions. Pass `page[after]` or `page[before]` using the cursor returned in the previous response. */
|
|
1266
|
+
page?: ListBulkActionsV1RequestPage;
|
|
1267
|
+
}
|
|
1268
|
+
export declare const ListBulkActionsV1Request: S.Schema<ListBulkActionsV1Request>;
|
|
1269
|
+
export type ListBulkActionsResultDataList = Array<BulkActionObject>;
|
|
1270
|
+
export declare const ListBulkActionsResultDataList: S.Schema<ListBulkActionsResultDataList>;
|
|
1271
|
+
export interface ListBulkActionsResultPagination {
|
|
1272
|
+
/** Pass this cursor as `page[after]` to retrieve the next page. */
|
|
1273
|
+
next?: string;
|
|
1274
|
+
/** Pass this cursor as `page[before]` to retrieve the previous page. */
|
|
1275
|
+
previous?: string;
|
|
1276
|
+
}
|
|
1277
|
+
export declare const ListBulkActionsResultPagination: S.Schema<ListBulkActionsResultPagination>;
|
|
1278
|
+
export interface ListBulkActionsResult {
|
|
1279
|
+
data: ListBulkActionsResultDataList;
|
|
1280
|
+
pagination: ListBulkActionsResultPagination;
|
|
1281
|
+
}
|
|
1282
|
+
export declare const ListBulkActionsResult: S.Schema<ListBulkActionsResult>;
|
|
1283
|
+
export interface ListDashboardsV1Request {
|
|
1284
|
+
}
|
|
1285
|
+
export declare const ListDashboardsV1Request: S.Schema<ListDashboardsV1Request>;
|
|
1286
|
+
/** Widget display type */
|
|
1287
|
+
export type ListDashboardsV1ResponseDashboardsItemWidgetsItemType = "bignumber" | "chart" | "table";
|
|
1288
|
+
export declare const ListDashboardsV1ResponseDashboardsItemWidgetsItemType: any;
|
|
1289
|
+
export interface ListDashboardsV1ResponseDashboardsItemWidgetsItem {
|
|
1290
|
+
/** Widget identifier */
|
|
1291
|
+
id?: string;
|
|
1292
|
+
/** Widget display title */
|
|
1293
|
+
title?: string;
|
|
1294
|
+
/** The TRQL query this widget executes */
|
|
1295
|
+
query?: string;
|
|
1296
|
+
/** Widget display type */
|
|
1297
|
+
type?: ListDashboardsV1ResponseDashboardsItemWidgetsItemType;
|
|
1298
|
+
}
|
|
1299
|
+
export declare const ListDashboardsV1ResponseDashboardsItemWidgetsItem: S.Schema<ListDashboardsV1ResponseDashboardsItemWidgetsItem>;
|
|
1300
|
+
export type ListDashboardsV1ResponseDashboardsItemWidgetsList = Array<ListDashboardsV1ResponseDashboardsItemWidgetsItem>;
|
|
1301
|
+
export declare const ListDashboardsV1ResponseDashboardsItemWidgetsList: S.Schema<ListDashboardsV1ResponseDashboardsItemWidgetsList>;
|
|
1302
|
+
export interface ListDashboardsV1ResponseDashboardsItem {
|
|
1303
|
+
/** Dashboard identifier (e.g. "overview", "llm") */
|
|
1304
|
+
key?: string;
|
|
1305
|
+
/** Dashboard display title */
|
|
1306
|
+
title?: string;
|
|
1307
|
+
widgets?: ListDashboardsV1ResponseDashboardsItemWidgetsList;
|
|
1308
|
+
}
|
|
1309
|
+
export declare const ListDashboardsV1ResponseDashboardsItem: S.Schema<ListDashboardsV1ResponseDashboardsItem>;
|
|
1310
|
+
export type ListDashboardsV1ResponseDashboardsList = Array<ListDashboardsV1ResponseDashboardsItem>;
|
|
1311
|
+
export declare const ListDashboardsV1ResponseDashboardsList: S.Schema<ListDashboardsV1ResponseDashboardsList>;
|
|
1312
|
+
export interface ListDashboardsV1Response {
|
|
1313
|
+
dashboards?: ListDashboardsV1ResponseDashboardsList;
|
|
1314
|
+
}
|
|
1315
|
+
export declare const ListDashboardsV1Response: S.Schema<ListDashboardsV1Response>;
|
|
1316
|
+
export type ListDeploymentsV1RequestStatus = "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | "FAILED" | "CANCELED" | "TIMED_OUT";
|
|
1317
|
+
export declare const ListDeploymentsV1RequestStatus: any;
|
|
1318
|
+
export interface ListDeploymentsV1Request {
|
|
1319
|
+
/** The deployment ID to start the search from, to get the next page. */
|
|
1320
|
+
page_after_?: string;
|
|
1321
|
+
/** The number of deployments to return (default 20, min 5, max 100). */
|
|
1322
|
+
page_size_?: number;
|
|
1323
|
+
/** Filter deployments by status. */
|
|
1324
|
+
status?: ListDeploymentsV1RequestStatus | (string & {});
|
|
1325
|
+
/** Filter deployments created within this period (e.g. 1d, 7d, 3h). */
|
|
1326
|
+
period?: string;
|
|
1327
|
+
/** Filter deployments created on or after this date (ISO 8601). */
|
|
1328
|
+
from?: string;
|
|
1329
|
+
/** Filter deployments created on or before this date (ISO 8601). Only applied when `from` is also provided. */
|
|
1330
|
+
to?: string;
|
|
1331
|
+
}
|
|
1332
|
+
export declare const ListDeploymentsV1Request: S.Schema<ListDeploymentsV1Request>;
|
|
1333
|
+
/** The current status of the deployment */
|
|
1334
|
+
export type ListDeploymentsV1ResponseDataItemStatus = "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | "FAILED" | "CANCELED" | "TIMED_OUT";
|
|
1335
|
+
export declare const ListDeploymentsV1ResponseDataItemStatus: any;
|
|
1336
|
+
export interface ListDeploymentsV1ResponseDataItem {
|
|
1337
|
+
/** The deployment ID */
|
|
1338
|
+
id?: string;
|
|
1339
|
+
/** When the deployment was created */
|
|
1340
|
+
createdAt?: string;
|
|
1341
|
+
/** The short code for the deployment */
|
|
1342
|
+
shortCode?: string;
|
|
1343
|
+
/** The deployment version (e.g., "20250228.1") */
|
|
1344
|
+
version?: string;
|
|
1345
|
+
/** The runtime used (e.g., "node") */
|
|
1346
|
+
runtime?: string | null;
|
|
1347
|
+
/** The runtime version */
|
|
1348
|
+
runtimeVersion?: string | null;
|
|
1349
|
+
/** The current status of the deployment */
|
|
1350
|
+
status?: ListDeploymentsV1ResponseDataItemStatus;
|
|
1351
|
+
/** When the deployment was promoted to DEPLOYED */
|
|
1352
|
+
deployedAt?: string | null;
|
|
1353
|
+
/** Git metadata associated with the deployment */
|
|
1354
|
+
git?: unknown | null;
|
|
1355
|
+
/** Error data if the deployment failed */
|
|
1356
|
+
error?: unknown | null;
|
|
1357
|
+
}
|
|
1358
|
+
export declare const ListDeploymentsV1ResponseDataItem: S.Schema<ListDeploymentsV1ResponseDataItem>;
|
|
1359
|
+
export type ListDeploymentsV1ResponseDataList = Array<ListDeploymentsV1ResponseDataItem>;
|
|
1360
|
+
export declare const ListDeploymentsV1ResponseDataList: S.Schema<ListDeploymentsV1ResponseDataList>;
|
|
1361
|
+
export interface ListDeploymentsV1ResponsePagination {
|
|
1362
|
+
/** Cursor for the next page. Pass as `page[after]` to get the next page. Omitted if there are no more results. */
|
|
1363
|
+
next?: string;
|
|
1364
|
+
}
|
|
1365
|
+
export declare const ListDeploymentsV1ResponsePagination: S.Schema<ListDeploymentsV1ResponsePagination>;
|
|
1366
|
+
export interface ListDeploymentsV1Response {
|
|
1367
|
+
data?: ListDeploymentsV1ResponseDataList;
|
|
1368
|
+
pagination?: ListDeploymentsV1ResponsePagination;
|
|
1369
|
+
}
|
|
1370
|
+
export declare const ListDeploymentsV1Response: S.Schema<ListDeploymentsV1Response>;
|
|
1371
|
+
export interface ListErrorsV1RequestPage {
|
|
1372
|
+
/** Number of errors per page. Maximum is 100. */
|
|
1373
|
+
size?: number;
|
|
1374
|
+
/** The ID of the error to start the page after. Sets the pagination direction to forward. */
|
|
1375
|
+
after?: string;
|
|
1376
|
+
/** The ID of the error to start the page before. Sets the pagination direction to backward. */
|
|
1377
|
+
before?: string;
|
|
1378
|
+
}
|
|
1379
|
+
export declare const ListErrorsV1RequestPage: S.Schema<ListErrorsV1RequestPage>;
|
|
1380
|
+
/** The identifier of the task the error belongs to */
|
|
1381
|
+
export type ErrorsFilterTaskIdentifierList = Array<string>;
|
|
1382
|
+
export declare const ErrorsFilterTaskIdentifierList: S.Schema<ErrorsFilterTaskIdentifierList>;
|
|
1383
|
+
/** The worker version the error occurred in */
|
|
1384
|
+
export type ErrorsFilterVersionList = Array<string>;
|
|
1385
|
+
export declare const ErrorsFilterVersionList: S.Schema<ErrorsFilterVersionList>;
|
|
1386
|
+
export type ErrorsFilterStatusItem = "unresolved" | "resolved" | "ignored";
|
|
1387
|
+
export declare const ErrorsFilterStatusItem: any;
|
|
1388
|
+
/** The lifecycle status of the error group */
|
|
1389
|
+
export type ErrorsFilterStatusList = Array<ErrorsFilterStatusItem | (string & {})>;
|
|
1390
|
+
export declare const ErrorsFilterStatusList: S.Schema<ErrorsFilterStatusList>;
|
|
1391
|
+
export interface ErrorsFilter {
|
|
1392
|
+
/** The identifier of the task the error belongs to */
|
|
1393
|
+
taskIdentifier?: ErrorsFilterTaskIdentifierList;
|
|
1394
|
+
/** The worker version the error occurred in */
|
|
1395
|
+
version?: ErrorsFilterVersionList;
|
|
1396
|
+
/** The lifecycle status of the error group */
|
|
1397
|
+
status?: ErrorsFilterStatusList;
|
|
1398
|
+
/** Free-text search across the error type and message */
|
|
1399
|
+
search?: string;
|
|
1400
|
+
/** The start of the time range to count occurrences within */
|
|
1401
|
+
from?: string;
|
|
1402
|
+
/** The end of the time range to count occurrences within */
|
|
1403
|
+
to?: string;
|
|
1404
|
+
/** A relative time range to count occurrences within */
|
|
1405
|
+
period?: string;
|
|
1406
|
+
}
|
|
1407
|
+
export declare const ErrorsFilter: S.Schema<ErrorsFilter>;
|
|
1408
|
+
export interface ListErrorsV1Request {
|
|
1409
|
+
/** Paginate the results. Specify the number of errors per page, and the ID of the error to start the page after or before. For object fields like `page`, use the "form" encoding style. For example, to get the next page, use `page[after]=error_1234`. */
|
|
1410
|
+
page?: ListErrorsV1RequestPage;
|
|
1411
|
+
/** Filter the error groups. Filter by task identifier, version, status, search text, and time range. For array fields, provide multiple values as a comma-separated list. For example, to get unresolved and ignored errors, use `filter[status]=unresolved,ignored`. For the time range, use `filter[period]` (e.g. `filter[period]=7d`) or `filter[from]` / `filter[to]` with ISO timestamps. */
|
|
1412
|
+
filter?: ErrorsFilter;
|
|
1413
|
+
}
|
|
1414
|
+
export declare const ListErrorsV1Request: S.Schema<ListErrorsV1Request>;
|
|
1415
|
+
export type ErrorListItemStatus = "unresolved" | "resolved" | "ignored";
|
|
1416
|
+
export declare const ErrorListItemStatus: any;
|
|
1417
|
+
export interface ErrorListItem {
|
|
1418
|
+
/** The unique ID of the error group, prefixed with `error_` */
|
|
1419
|
+
id: string;
|
|
1420
|
+
/** The raw fingerprint the error is grouped by */
|
|
1421
|
+
fingerprint: string;
|
|
1422
|
+
/** The identifier of the task the error belongs to */
|
|
1423
|
+
taskIdentifier: string;
|
|
1424
|
+
/** The error type or name (e.g. `TypeError`) */
|
|
1425
|
+
errorType: string;
|
|
1426
|
+
/** The normalized error message */
|
|
1427
|
+
errorMessage: string;
|
|
1428
|
+
status: ErrorListItemStatus;
|
|
1429
|
+
/** The number of occurrences within the requested time range */
|
|
1430
|
+
count: number;
|
|
1431
|
+
/** When the error group was first seen (global) */
|
|
1432
|
+
firstSeen: string;
|
|
1433
|
+
/** When the error group was last seen (global) */
|
|
1434
|
+
lastSeen: string;
|
|
1435
|
+
resolvedAt?: string | null;
|
|
1436
|
+
ignoredUntil?: string | null;
|
|
1437
|
+
}
|
|
1438
|
+
export declare const ErrorListItem: S.Schema<ErrorListItem>;
|
|
1439
|
+
export type ListErrorsResultDataList = Array<ErrorListItem>;
|
|
1440
|
+
export declare const ListErrorsResultDataList: S.Schema<ListErrorsResultDataList>;
|
|
1441
|
+
export interface ListErrorsResultPagination {
|
|
1442
|
+
/** The error ID to start the next page after. Pass it as `page[after]`. */
|
|
1443
|
+
next?: string;
|
|
1444
|
+
/** The error ID to start the previous page before. Pass it as `page[before]`. */
|
|
1445
|
+
previous?: string;
|
|
1446
|
+
}
|
|
1447
|
+
export declare const ListErrorsResultPagination: S.Schema<ListErrorsResultPagination>;
|
|
1448
|
+
export interface ListErrorsResult {
|
|
1449
|
+
data?: ListErrorsResultDataList;
|
|
1450
|
+
pagination?: ListErrorsResultPagination;
|
|
1451
|
+
}
|
|
1452
|
+
export declare const ListErrorsResult: S.Schema<ListErrorsResult>;
|
|
1453
|
+
export type ListProjectEnvvarsV1RequestEnv = "dev" | "staging" | "prod";
|
|
1454
|
+
export declare const ListProjectEnvvarsV1RequestEnv: any;
|
|
1455
|
+
export interface ListProjectEnvvarsV1Request {
|
|
1456
|
+
/** The external ref of the project. You can find this in the project settings. Starts with `proj_`. */
|
|
1457
|
+
projectRef: string;
|
|
1458
|
+
/** The environment of the project to list variables for. */
|
|
1459
|
+
env: ListProjectEnvvarsV1RequestEnv | (string & {});
|
|
1460
|
+
}
|
|
1461
|
+
export declare const ListProjectEnvvarsV1Request: S.Schema<ListProjectEnvvarsV1Request>;
|
|
1462
|
+
export interface EnvVar {
|
|
1463
|
+
name: string;
|
|
1464
|
+
value: string;
|
|
1465
|
+
}
|
|
1466
|
+
export declare const EnvVar: S.Schema<EnvVar>;
|
|
1467
|
+
export type ListEnvironmentVariablesResponse = Array<EnvVar>;
|
|
1468
|
+
export declare const ListEnvironmentVariablesResponse: S.Schema<ListEnvironmentVariablesResponse>;
|
|
1469
|
+
export type ListProjectEnvvarsV1Response = ListEnvironmentVariablesResponse;
|
|
1470
|
+
export declare const ListProjectEnvvarsV1Response: S.Schema<ListProjectEnvvarsV1Response>;
|
|
1471
|
+
export interface ListProjectRunsV1RequestPage {
|
|
1472
|
+
/** Number of runs per page. Maximum is 100. */
|
|
1473
|
+
size?: number;
|
|
1474
|
+
/** The ID of the run to start the page after. This will set the direction of the pagination to forward. */
|
|
1475
|
+
after?: string;
|
|
1476
|
+
/** The ID of the run to start the page before. This will set the direction of the pagination to backward. */
|
|
1477
|
+
before?: string;
|
|
1478
|
+
}
|
|
1479
|
+
export declare const ListProjectRunsV1RequestPage: S.Schema<ListProjectRunsV1RequestPage>;
|
|
1480
|
+
export interface ListProjectRunsV1RequestFilterCreatedAt {
|
|
1481
|
+
/** The start date to filter the runs by */
|
|
1482
|
+
from?: string;
|
|
1483
|
+
/** The end date to filter the runs by */
|
|
1484
|
+
to?: string;
|
|
1485
|
+
/** The period to filter the runs by */
|
|
1486
|
+
period?: string;
|
|
1487
|
+
}
|
|
1488
|
+
export declare const ListProjectRunsV1RequestFilterCreatedAt: S.Schema<ListProjectRunsV1RequestFilterCreatedAt>;
|
|
1489
|
+
/** The status of the run */
|
|
1490
|
+
export type ListProjectRunsV1RequestFilterStatusItem = "PENDING_VERSION" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE";
|
|
1491
|
+
export declare const ListProjectRunsV1RequestFilterStatusItem: any;
|
|
1492
|
+
export type ListProjectRunsV1RequestFilterStatusList = Array<ListProjectRunsV1RequestFilterStatusItem | (string & {})>;
|
|
1493
|
+
export declare const ListProjectRunsV1RequestFilterStatusList: S.Schema<ListProjectRunsV1RequestFilterStatusList>;
|
|
1494
|
+
/** The identifier of the task that was run */
|
|
1495
|
+
export type ListProjectRunsV1RequestFilterTaskIdentifierList = Array<string>;
|
|
1496
|
+
export declare const ListProjectRunsV1RequestFilterTaskIdentifierList: S.Schema<ListProjectRunsV1RequestFilterTaskIdentifierList>;
|
|
1497
|
+
/** The version of the worker that executed the run */
|
|
1498
|
+
export type ListProjectRunsV1RequestFilterVersionList = Array<string>;
|
|
1499
|
+
export declare const ListProjectRunsV1RequestFilterVersionList: S.Schema<ListProjectRunsV1RequestFilterVersionList>;
|
|
1500
|
+
/** The tags that are attached to the run */
|
|
1501
|
+
export type ListProjectRunsV1RequestFilterTagList = Array<string>;
|
|
1502
|
+
export declare const ListProjectRunsV1RequestFilterTagList: S.Schema<ListProjectRunsV1RequestFilterTagList>;
|
|
1503
|
+
/** The environment of the project */
|
|
1504
|
+
export type ListProjectRunsV1RequestFilterEnvItem = "dev" | "staging" | "prod";
|
|
1505
|
+
export declare const ListProjectRunsV1RequestFilterEnvItem: any;
|
|
1506
|
+
export type ListProjectRunsV1RequestFilterEnvList = Array<ListProjectRunsV1RequestFilterEnvItem | (string & {})>;
|
|
1507
|
+
export declare const ListProjectRunsV1RequestFilterEnvList: S.Schema<ListProjectRunsV1RequestFilterEnvList>;
|
|
1508
|
+
export interface ListProjectRunsV1RequestFilter {
|
|
1509
|
+
createdAt?: ListProjectRunsV1RequestFilterCreatedAt;
|
|
1510
|
+
status?: ListProjectRunsV1RequestFilterStatusList;
|
|
1511
|
+
/** The identifier of the task that was run */
|
|
1512
|
+
taskIdentifier?: ListProjectRunsV1RequestFilterTaskIdentifierList;
|
|
1513
|
+
/** The version of the worker that executed the run */
|
|
1514
|
+
version?: ListProjectRunsV1RequestFilterVersionList;
|
|
1515
|
+
/** The bulk action ID to filter the runs by */
|
|
1516
|
+
bulkAction?: string;
|
|
1517
|
+
/** The schedule ID to filter the runs by */
|
|
1518
|
+
schedule?: string;
|
|
1519
|
+
/** Whether the run is a test run or not */
|
|
1520
|
+
isTest?: boolean;
|
|
1521
|
+
/** The tags that are attached to the run */
|
|
1522
|
+
tag?: ListProjectRunsV1RequestFilterTagList;
|
|
1523
|
+
/** An error group ID (starts with `error_`). Lists the runs behind that error group. */
|
|
1524
|
+
error?: string;
|
|
1525
|
+
env?: ListProjectRunsV1RequestFilterEnvList;
|
|
1526
|
+
}
|
|
1527
|
+
export declare const ListProjectRunsV1RequestFilter: S.Schema<ListProjectRunsV1RequestFilter>;
|
|
1528
|
+
export interface ListProjectRunsV1Request {
|
|
1529
|
+
/** The external ref of the project. You can find this in the project settings. Starts with `proj_`. */
|
|
1530
|
+
projectRef: string;
|
|
1531
|
+
/** Use this parameter to paginate the results. You can specify the number of runs per page, and the ID of the run to start the page after or before. For object fields like `page`, you should use the "form" encoding style. For example, to get the next page of runs, you can use `page[after]=run_1234`. */
|
|
1532
|
+
page?: ListProjectRunsV1RequestPage;
|
|
1533
|
+
/** Use this parameter to filter the runs. You can filter by created at, environment, status, task identifier, and version. For array fields, you can provide multiple values to filter by using a comma-separated list. For example, to get QUEUED and EXECUTING runs, you can use `filter[status]=QUEUED,EXECUTING`. For object fields, you should use the "form" encoding style. For example, to filter by the period, you can use `filter[createdAt][period]=1d`. */
|
|
1534
|
+
filter?: ListProjectRunsV1RequestFilter;
|
|
1535
|
+
}
|
|
1536
|
+
export declare const ListProjectRunsV1Request: S.Schema<ListProjectRunsV1Request>;
|
|
1537
|
+
/** The status of the run */
|
|
1538
|
+
export type ListRunItemStatus = "PENDING_VERSION" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE";
|
|
1539
|
+
export declare const ListRunItemStatus: any;
|
|
1540
|
+
/** The environment of the run */
|
|
1541
|
+
export interface ListRunItemEnv {
|
|
1542
|
+
/** The unique ID of the environment */
|
|
1543
|
+
id: string;
|
|
1544
|
+
/** The name of the environment */
|
|
1545
|
+
name: string;
|
|
1546
|
+
/** If this is a dev environment, the username of the user represented by this environment */
|
|
1547
|
+
user?: string;
|
|
1548
|
+
}
|
|
1549
|
+
export declare const ListRunItemEnv: S.Schema<ListRunItemEnv>;
|
|
1550
|
+
/** Tags can be attached to a run to make it easy to find runs (in the dashboard or using SDK functions like `runs.list`) */
|
|
1551
|
+
export type ListRunItemTagsList = Array<string>;
|
|
1552
|
+
export declare const ListRunItemTagsList: S.Schema<ListRunItemTagsList>;
|
|
1553
|
+
export interface ListRunItem {
|
|
1554
|
+
/** The unique ID of the run, prefixed with `run_` */
|
|
1555
|
+
id: string;
|
|
1556
|
+
/** The status of the run */
|
|
1557
|
+
status: ListRunItemStatus;
|
|
1558
|
+
/** The identifier of the task that was run */
|
|
1559
|
+
taskIdentifier: string;
|
|
1560
|
+
/** The version of the worker that executed the run */
|
|
1561
|
+
version?: string;
|
|
1562
|
+
/** The environment of the run */
|
|
1563
|
+
env: ListRunItemEnv;
|
|
1564
|
+
/** The idempotency key used to prevent creating duplicate runs, if provided */
|
|
1565
|
+
idempotencyKey?: string;
|
|
1566
|
+
/** Whether the run is a test run or not */
|
|
1567
|
+
isTest: boolean;
|
|
1568
|
+
createdAt: string;
|
|
1569
|
+
updatedAt: string;
|
|
1570
|
+
/** The time the run started */
|
|
1571
|
+
startedAt?: string;
|
|
1572
|
+
/** The time the run finished */
|
|
1573
|
+
finishedAt?: string;
|
|
1574
|
+
/** If the run was triggered with a delay, this will be the time the run will be enqueued to execute */
|
|
1575
|
+
delayedUntil?: string;
|
|
1576
|
+
ttl?: unknown;
|
|
1577
|
+
/** If the run had a TTL and that time has passed, when the run "expired". */
|
|
1578
|
+
expiredAt?: string;
|
|
1579
|
+
/** Tags can be attached to a run to make it easy to find runs (in the dashboard or using SDK functions like `runs.list`) */
|
|
1580
|
+
tags?: ListRunItemTagsList;
|
|
1581
|
+
/** The compute cost of the run (so far) in cents. This cost does not apply to DEV runs. */
|
|
1582
|
+
costInCents?: number;
|
|
1583
|
+
/** The invocation cost of the run in cents. This cost does not apply to DEV runs. */
|
|
1584
|
+
baseCostInCents?: number;
|
|
1585
|
+
/** The duration of compute (so far) in milliseconds. This does not include waits. */
|
|
1586
|
+
durationMs?: number;
|
|
1587
|
+
}
|
|
1588
|
+
export declare const ListRunItem: S.Schema<ListRunItem>;
|
|
1589
|
+
export type ListRunsResultDataList = Array<ListRunItem>;
|
|
1590
|
+
export declare const ListRunsResultDataList: S.Schema<ListRunsResultDataList>;
|
|
1591
|
+
export interface ListRunsResultPagination {
|
|
1592
|
+
/** The run ID to start the next page after. This should be used as the `page[after]` parameter in the next request. */
|
|
1593
|
+
next?: string;
|
|
1594
|
+
/** The run ID to start the previous page before. This should be used as the `page[before]` parameter in the next request. */
|
|
1595
|
+
previous?: string;
|
|
1596
|
+
}
|
|
1597
|
+
export declare const ListRunsResultPagination: S.Schema<ListRunsResultPagination>;
|
|
1598
|
+
export interface ListRunsResult {
|
|
1599
|
+
data?: ListRunsResultDataList;
|
|
1600
|
+
pagination?: ListRunsResultPagination;
|
|
1601
|
+
}
|
|
1602
|
+
export declare const ListRunsResult: S.Schema<ListRunsResult>;
|
|
1603
|
+
export interface ListQueuesV1Request {
|
|
1604
|
+
/** Page number of the queue listing (1-based) */
|
|
1605
|
+
page?: number;
|
|
1606
|
+
/** Number of queues per page */
|
|
1607
|
+
perPage?: number;
|
|
1608
|
+
}
|
|
1609
|
+
export declare const ListQueuesV1Request: S.Schema<ListQueuesV1Request>;
|
|
1610
|
+
/** An array of queue objects */
|
|
1611
|
+
export type ListQueuesResultDataList = Array<QueueObject>;
|
|
1612
|
+
export declare const ListQueuesResultDataList: S.Schema<ListQueuesResultDataList>;
|
|
1613
|
+
export interface ListQueuesResultPagination {
|
|
1614
|
+
/** The current page number */
|
|
1615
|
+
currentPage?: number;
|
|
1616
|
+
/** The total number of pages */
|
|
1617
|
+
totalPages?: number;
|
|
1618
|
+
/** The total number of queues */
|
|
1619
|
+
count?: number;
|
|
1620
|
+
}
|
|
1621
|
+
export declare const ListQueuesResultPagination: S.Schema<ListQueuesResultPagination>;
|
|
1622
|
+
export interface ListQueuesResult {
|
|
1623
|
+
/** An array of queue objects */
|
|
1624
|
+
data: ListQueuesResultDataList;
|
|
1625
|
+
pagination: ListQueuesResultPagination;
|
|
1626
|
+
}
|
|
1627
|
+
export declare const ListQueuesResult: S.Schema<ListQueuesResult>;
|
|
1628
|
+
export type ListRunsV1RequestPage = ListProjectRunsV1RequestPage;
|
|
1629
|
+
export declare const ListRunsV1RequestPage: S.Schema<ListProjectRunsV1RequestPage>;
|
|
1630
|
+
export type CommonRunsFilterCreatedAt = ListProjectRunsV1RequestFilterCreatedAt;
|
|
1631
|
+
export declare const CommonRunsFilterCreatedAt: S.Schema<ListProjectRunsV1RequestFilterCreatedAt>;
|
|
1632
|
+
/** The status of the run */
|
|
1633
|
+
export type CommonRunsFilterStatusItem = "PENDING_VERSION" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE";
|
|
1634
|
+
export declare const CommonRunsFilterStatusItem: any;
|
|
1635
|
+
export type CommonRunsFilterStatusList = Array<CommonRunsFilterStatusItem | (string & {})>;
|
|
1636
|
+
export declare const CommonRunsFilterStatusList: S.Schema<CommonRunsFilterStatusList>;
|
|
1637
|
+
/** The identifier of the task that was run */
|
|
1638
|
+
export type CommonRunsFilterTaskIdentifierList = Array<string>;
|
|
1639
|
+
export declare const CommonRunsFilterTaskIdentifierList: S.Schema<CommonRunsFilterTaskIdentifierList>;
|
|
1640
|
+
/** The version of the worker that executed the run */
|
|
1641
|
+
export type CommonRunsFilterVersionList = Array<string>;
|
|
1642
|
+
export declare const CommonRunsFilterVersionList: S.Schema<CommonRunsFilterVersionList>;
|
|
1643
|
+
/** The tags that are attached to the run */
|
|
1644
|
+
export type CommonRunsFilterTagList = Array<string>;
|
|
1645
|
+
export declare const CommonRunsFilterTagList: S.Schema<CommonRunsFilterTagList>;
|
|
1646
|
+
export interface CommonRunsFilter {
|
|
1647
|
+
createdAt?: ListProjectRunsV1RequestFilterCreatedAt;
|
|
1648
|
+
status?: CommonRunsFilterStatusList;
|
|
1649
|
+
/** The identifier of the task that was run */
|
|
1650
|
+
taskIdentifier?: CommonRunsFilterTaskIdentifierList;
|
|
1651
|
+
/** The version of the worker that executed the run */
|
|
1652
|
+
version?: CommonRunsFilterVersionList;
|
|
1653
|
+
/** The bulk action ID to filter the runs by */
|
|
1654
|
+
bulkAction?: string;
|
|
1655
|
+
/** The schedule ID to filter the runs by */
|
|
1656
|
+
schedule?: string;
|
|
1657
|
+
/** Whether the run is a test run or not */
|
|
1658
|
+
isTest?: boolean;
|
|
1659
|
+
/** The tags that are attached to the run */
|
|
1660
|
+
tag?: CommonRunsFilterTagList;
|
|
1661
|
+
/** An error group ID (starts with `error_`). Lists the runs behind that error group. */
|
|
1662
|
+
error?: string;
|
|
1663
|
+
}
|
|
1664
|
+
export declare const CommonRunsFilter: S.Schema<CommonRunsFilter>;
|
|
1665
|
+
export interface ListRunsV1Request {
|
|
1666
|
+
/** Use this parameter to paginate the results. You can specify the number of runs per page, and the ID of the run to start the page after or before. For object fields like `page`, you should use the "form" encoding style. For example, to get the next page of runs, you can use `page[after]=run_1234`. */
|
|
1667
|
+
page?: ListProjectRunsV1RequestPage;
|
|
1668
|
+
/** Use this parameter to filter the runs. You can filter by created at, status, task identifier, and version. For array fields, you can provide multiple values to filter by using a comma-separated list. For example, to get QUEUED and EXECUTING runs, you can use `filter[status]=QUEUED,EXECUTING`. For object fields, you should use the "form" encoding style. For example, to filter by the period, you can use `filter[createdAt][period]=1d`. */
|
|
1669
|
+
filter?: CommonRunsFilter;
|
|
1670
|
+
}
|
|
1671
|
+
export declare const ListRunsV1Request: S.Schema<ListRunsV1Request>;
|
|
1672
|
+
export interface ListSchedulesV1Request {
|
|
1673
|
+
/** Page number of the schedule listing */
|
|
1674
|
+
page?: number;
|
|
1675
|
+
/** Number of schedules per page */
|
|
1676
|
+
perPage?: number;
|
|
1677
|
+
}
|
|
1678
|
+
export declare const ListSchedulesV1Request: S.Schema<ListSchedulesV1Request>;
|
|
1679
|
+
export type ListSchedulesResultDataList = Array<ScheduleObject>;
|
|
1680
|
+
export declare const ListSchedulesResultDataList: S.Schema<ListSchedulesResultDataList>;
|
|
1681
|
+
export interface ListSchedulesResultPagination {
|
|
1682
|
+
currentPage?: number;
|
|
1683
|
+
totalPages?: number;
|
|
1684
|
+
count?: number;
|
|
1685
|
+
}
|
|
1686
|
+
export declare const ListSchedulesResultPagination: S.Schema<ListSchedulesResultPagination>;
|
|
1687
|
+
export interface ListSchedulesResult {
|
|
1688
|
+
data?: ListSchedulesResultDataList;
|
|
1689
|
+
pagination?: ListSchedulesResultPagination;
|
|
1690
|
+
}
|
|
1691
|
+
export declare const ListSchedulesResult: S.Schema<ListSchedulesResult>;
|
|
1692
|
+
export interface ListSessionsV1RequestPage {
|
|
1693
|
+
/** Number of sessions per page. Maximum is 100. */
|
|
1694
|
+
size?: number;
|
|
1695
|
+
/** The ID of the session to start the page after. Sets the pagination direction to forward. */
|
|
1696
|
+
after?: string;
|
|
1697
|
+
/** The ID of the session to start the page before. Sets the pagination direction to backward. */
|
|
1698
|
+
before?: string;
|
|
1699
|
+
}
|
|
1700
|
+
export declare const ListSessionsV1RequestPage: S.Schema<ListSessionsV1RequestPage>;
|
|
1701
|
+
/** The session type(s) to filter by. */
|
|
1702
|
+
export type SessionsFilterTypeList = Array<string>;
|
|
1703
|
+
export declare const SessionsFilterTypeList: S.Schema<SessionsFilterTypeList>;
|
|
1704
|
+
/** The tags to filter by. */
|
|
1705
|
+
export type SessionsFilterTagsList = Array<string>;
|
|
1706
|
+
export declare const SessionsFilterTagsList: S.Schema<SessionsFilterTagsList>;
|
|
1707
|
+
/** The task identifier(s) to filter by. */
|
|
1708
|
+
export type SessionsFilterTaskIdentifierList = Array<string>;
|
|
1709
|
+
export declare const SessionsFilterTaskIdentifierList: S.Schema<SessionsFilterTaskIdentifierList>;
|
|
1710
|
+
export type SessionsFilterStatusItem = "ACTIVE" | "CLOSED" | "EXPIRED";
|
|
1711
|
+
export declare const SessionsFilterStatusItem: any;
|
|
1712
|
+
/** The lifecycle status(es) to filter by. */
|
|
1713
|
+
export type SessionsFilterStatusList = Array<SessionsFilterStatusItem | (string & {})>;
|
|
1714
|
+
export declare const SessionsFilterStatusList: S.Schema<SessionsFilterStatusList>;
|
|
1715
|
+
export interface SessionsFilterCreatedAt {
|
|
1716
|
+
/** The start date to filter the sessions by. */
|
|
1717
|
+
from?: string;
|
|
1718
|
+
/** The end date to filter the sessions by. */
|
|
1719
|
+
to?: string;
|
|
1720
|
+
/** The period to filter the sessions by. */
|
|
1721
|
+
period?: string;
|
|
1722
|
+
}
|
|
1723
|
+
export declare const SessionsFilterCreatedAt: S.Schema<SessionsFilterCreatedAt>;
|
|
1724
|
+
export interface SessionsFilter {
|
|
1725
|
+
/** The session type(s) to filter by. */
|
|
1726
|
+
type?: SessionsFilterTypeList;
|
|
1727
|
+
/** The tags to filter by. */
|
|
1728
|
+
tags?: SessionsFilterTagsList;
|
|
1729
|
+
/** The task identifier(s) to filter by. */
|
|
1730
|
+
taskIdentifier?: SessionsFilterTaskIdentifierList;
|
|
1731
|
+
/** Exact match on your `externalId`. */
|
|
1732
|
+
externalId?: string;
|
|
1733
|
+
/** The lifecycle status(es) to filter by. */
|
|
1734
|
+
status?: SessionsFilterStatusList;
|
|
1735
|
+
createdAt?: SessionsFilterCreatedAt;
|
|
1736
|
+
}
|
|
1737
|
+
export declare const SessionsFilter: S.Schema<SessionsFilter>;
|
|
1738
|
+
export interface ListSessionsV1Request {
|
|
1739
|
+
/** Paginate the results. Specify the number of sessions per page, and the ID of the session to start the page after or before. For object fields like `page`, use the "form" encoding style. For example, to get the next page, use `page[after]=session_1234`. */
|
|
1740
|
+
page?: ListSessionsV1RequestPage;
|
|
1741
|
+
/** Use this parameter to filter the sessions. You can filter by type, tags, task identifier, external id, status, and created at. For array fields, you can provide multiple values to filter by using a comma-separated list. For example, to get ACTIVE and CLOSED sessions, you can use `filter[status]=ACTIVE,CLOSED`. For object fields, you should use the "form" encoding style. For example, to filter by the period, you can use `filter[createdAt][period]=1d`. */
|
|
1742
|
+
filter?: SessionsFilter;
|
|
1743
|
+
}
|
|
1744
|
+
export declare const ListSessionsV1Request: S.Schema<ListSessionsV1Request>;
|
|
1745
|
+
export type ListSessionsResultDataList = Array<SessionObject>;
|
|
1746
|
+
export declare const ListSessionsResultDataList: S.Schema<ListSessionsResultDataList>;
|
|
1747
|
+
export interface ListSessionsResultPagination {
|
|
1748
|
+
/** The session ID to start the next page after. Pass it as the `page[after]` parameter on the next request. */
|
|
1749
|
+
next?: string;
|
|
1750
|
+
/** The session ID to start the previous page before. Pass it as the `page[before]` parameter on the next request. */
|
|
1751
|
+
previous?: string;
|
|
1752
|
+
}
|
|
1753
|
+
export declare const ListSessionsResultPagination: S.Schema<ListSessionsResultPagination>;
|
|
1754
|
+
export interface ListSessionsResult {
|
|
1755
|
+
data?: ListSessionsResultDataList;
|
|
1756
|
+
pagination?: ListSessionsResultPagination;
|
|
1757
|
+
}
|
|
1758
|
+
export declare const ListSessionsResult: S.Schema<ListSessionsResult>;
|
|
1759
|
+
export interface ListWaitpointTokensV1Request {
|
|
1760
|
+
/** Number of tokens to return per page (1–100). */
|
|
1761
|
+
page_size_?: number;
|
|
1762
|
+
/** Return tokens after this cursor (from `pagination.next` in a previous response). */
|
|
1763
|
+
page_after_?: string;
|
|
1764
|
+
/** Return tokens before this cursor (from `pagination.previous` in a previous response). */
|
|
1765
|
+
page_before_?: string;
|
|
1766
|
+
/** Comma-separated list of statuses to filter by. Allowed values: `WAITING`, `COMPLETED`, `TIMED_OUT`. */
|
|
1767
|
+
filter_status_?: string;
|
|
1768
|
+
/** Filter by idempotency key. */
|
|
1769
|
+
filter_idempotencyKey_?: string;
|
|
1770
|
+
/** Comma-separated list of tags to filter by. */
|
|
1771
|
+
filter_tags_?: string;
|
|
1772
|
+
/** Shorthand time period to filter by creation date (e.g. `1h`, `24h`, `7d`). Cannot be combined with `filter[createdAt][from]` or `filter[createdAt][to]`. */
|
|
1773
|
+
filter_createdAt__period_?: string;
|
|
1774
|
+
/** Filter tokens created at or after this ISO 8601 timestamp. */
|
|
1775
|
+
filter_createdAt__from_?: string;
|
|
1776
|
+
/** Filter tokens created at or before this ISO 8601 timestamp. */
|
|
1777
|
+
filter_createdAt__to_?: string;
|
|
1778
|
+
}
|
|
1779
|
+
export declare const ListWaitpointTokensV1Request: S.Schema<ListWaitpointTokensV1Request>;
|
|
1780
|
+
/** An array of waitpoint token objects. */
|
|
1781
|
+
export type ListWaitpointTokensResultDataList = Array<WaitpointTokenObject>;
|
|
1782
|
+
export declare const ListWaitpointTokensResultDataList: S.Schema<ListWaitpointTokensResultDataList>;
|
|
1783
|
+
export interface ListWaitpointTokensResultPagination {
|
|
1784
|
+
/** Cursor for the next page. Pass as `page[after]` in the next request. */
|
|
1785
|
+
next?: string | null;
|
|
1786
|
+
/** Cursor for the previous page. Pass as `page[before]` in the next request. */
|
|
1787
|
+
previous?: string | null;
|
|
1788
|
+
}
|
|
1789
|
+
export declare const ListWaitpointTokensResultPagination: S.Schema<ListWaitpointTokensResultPagination>;
|
|
1790
|
+
export interface ListWaitpointTokensResult {
|
|
1791
|
+
/** An array of waitpoint token objects. */
|
|
1792
|
+
data: ListWaitpointTokensResultDataList;
|
|
1793
|
+
pagination: ListWaitpointTokensResultPagination;
|
|
1794
|
+
}
|
|
1795
|
+
export declare const ListWaitpointTokensResult: S.Schema<ListWaitpointTokensResult>;
|
|
1796
|
+
/** How to interpret the `queueParam` path parameter: - `id`: Treat as a queue ID (default) - `task`: Treat as a task ID to get the task's default queue - `custom`: Treat as a custom queue name */
|
|
1797
|
+
export type OverrideQueueConcurrencyV1RequestType = "id" | "task" | "custom";
|
|
1798
|
+
export declare const OverrideQueueConcurrencyV1RequestType: any;
|
|
1799
|
+
export interface OverrideQueueConcurrencyV1Request {
|
|
1800
|
+
/** The queue ID (e.g., `queue_1234`), or the name of the queue when using the `type` body parameter. */
|
|
1801
|
+
queueParam: string;
|
|
1802
|
+
/** How to interpret the `queueParam` path parameter: - `id`: Treat as a queue ID (default) - `task`: Treat as a task ID to get the task's default queue - `custom`: Treat as a custom queue name */
|
|
1803
|
+
type?: OverrideQueueConcurrencyV1RequestType | (string & {});
|
|
1804
|
+
/** The new concurrency limit to set for the queue. It may not exceed your environment's maximum concurrency limit: a higher value is rejected with a 400, not capped to the maximum. */
|
|
1805
|
+
concurrencyLimit: number;
|
|
1806
|
+
}
|
|
1807
|
+
export declare const OverrideQueueConcurrencyV1Request: S.Schema<OverrideQueueConcurrencyV1Request>;
|
|
1808
|
+
/** How to interpret the `queueParam` path parameter: - `id`: Treat as a queue ID (default) - `task`: Treat as a task ID to get the task's default queue - `custom`: Treat as a custom queue name */
|
|
1809
|
+
export type PauseQueueV1RequestType = "id" | "task" | "custom";
|
|
1810
|
+
export declare const PauseQueueV1RequestType: any;
|
|
1811
|
+
/** Whether to pause or resume the queue */
|
|
1812
|
+
export type PauseQueueV1RequestAction = "pause" | "resume";
|
|
1813
|
+
export declare const PauseQueueV1RequestAction: any;
|
|
1814
|
+
export interface PauseQueueV1Request {
|
|
1815
|
+
/** The queue ID (e.g., `queue_1234`), or the name of the queue when using the `type` body parameter. */
|
|
1816
|
+
queueParam: string;
|
|
1817
|
+
/** How to interpret the `queueParam` path parameter: - `id`: Treat as a queue ID (default) - `task`: Treat as a task ID to get the task's default queue - `custom`: Treat as a custom queue name */
|
|
1818
|
+
type?: PauseQueueV1RequestType | (string & {});
|
|
1819
|
+
/** Whether to pause or resume the queue */
|
|
1820
|
+
action: PauseQueueV1RequestAction | (string & {});
|
|
1821
|
+
}
|
|
1822
|
+
export declare const PauseQueueV1Request: S.Schema<PauseQueueV1Request>;
|
|
1823
|
+
export interface PromoteDeploymentV1Request {
|
|
1824
|
+
/** The deployment version to promote (e.g., "20250228.1"). */
|
|
1825
|
+
version: string;
|
|
1826
|
+
}
|
|
1827
|
+
export declare const PromoteDeploymentV1Request: S.Schema<PromoteDeploymentV1Request>;
|
|
1828
|
+
export interface PromoteDeploymentV1Response {
|
|
1829
|
+
/** The deployment ID */
|
|
1830
|
+
id?: string;
|
|
1831
|
+
/** The deployment version (e.g., "20250228.1") */
|
|
1832
|
+
version?: string;
|
|
1833
|
+
/** The short code for the deployment */
|
|
1834
|
+
shortCode?: string;
|
|
1835
|
+
}
|
|
1836
|
+
export declare const PromoteDeploymentV1Response: S.Schema<PromoteDeploymentV1Response>;
|
|
1837
|
+
/** How to interpret the `queueParam` path parameter: - `id`: Treat as a queue ID (default) - `task`: Treat as a task ID to get the task's default queue - `custom`: Treat as a custom queue name */
|
|
1838
|
+
export type ResetQueueConcurrencyV1RequestType = "id" | "task" | "custom";
|
|
1839
|
+
export declare const ResetQueueConcurrencyV1RequestType: any;
|
|
1840
|
+
export interface ResetQueueConcurrencyV1Request {
|
|
1841
|
+
/** The queue ID (e.g., `queue_1234`), or the name of the queue when using the `type` body parameter. */
|
|
1842
|
+
queueParam: string;
|
|
1843
|
+
/** How to interpret the `queueParam` path parameter: - `id`: Treat as a queue ID (default) - `task`: Treat as a task ID to get the task's default queue - `custom`: Treat as a custom queue name */
|
|
1844
|
+
type?: ResetQueueConcurrencyV1RequestType | (string & {});
|
|
1845
|
+
}
|
|
1846
|
+
export declare const ResetQueueConcurrencyV1Request: S.Schema<ResetQueueConcurrencyV1Request>;
|
|
1847
|
+
export interface ResolveErrorV1Request {
|
|
1848
|
+
/** The ID of an error group, starts with `error_`. */
|
|
1849
|
+
errorId: string;
|
|
1850
|
+
/** The worker version the error was resolved in. */
|
|
1851
|
+
resolvedInVersion?: string;
|
|
1852
|
+
}
|
|
1853
|
+
export declare const ResolveErrorV1Request: S.Schema<ResolveErrorV1Request>;
|
|
1854
|
+
export interface RunReplayV1Request {
|
|
1855
|
+
/** The ID of an run, starts with `run_`. The run ID will be returned when you trigger a run on a task. */
|
|
1856
|
+
runId: string;
|
|
1857
|
+
}
|
|
1858
|
+
export declare const RunReplayV1Request: S.Schema<RunReplayV1Request>;
|
|
1859
|
+
export interface RunReplayV1Response {
|
|
1860
|
+
/** The ID of the new run. */
|
|
1861
|
+
id?: string;
|
|
1862
|
+
}
|
|
1863
|
+
export declare const RunReplayV1Response: S.Schema<RunReplayV1Response>;
|
|
1864
|
+
export interface RunRescheduleV1Request {
|
|
1865
|
+
/** The ID of an run, starts with `run_`. The run ID will be returned when you trigger a run on a task. */
|
|
1866
|
+
runId: string;
|
|
1867
|
+
delay?: string;
|
|
1868
|
+
}
|
|
1869
|
+
export declare const RunRescheduleV1Request: S.Schema<RunRescheduleV1Request>;
|
|
1870
|
+
/** The status of the run */
|
|
1871
|
+
export type RunRescheduleV1ResponseStatus = "PENDING_VERSION" | "DELAYED" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE";
|
|
1872
|
+
export declare const RunRescheduleV1ResponseStatus: any;
|
|
1873
|
+
/** Tags can be attached to a run to make it easy to find runs (in the dashboard or using SDK functions like `runs.list`) */
|
|
1874
|
+
export type RunRescheduleV1ResponseTagsList = Array<string>;
|
|
1875
|
+
export declare const RunRescheduleV1ResponseTagsList: S.Schema<RunRescheduleV1ResponseTagsList>;
|
|
1876
|
+
/** The name of the function that triggered the run */
|
|
1877
|
+
export type RunRescheduleV1ResponseTriggerFunction = "trigger" | "triggerAndWait" | "batchTrigger" | "batchTriggerAndWait";
|
|
1878
|
+
export declare const RunRescheduleV1ResponseTriggerFunction: any;
|
|
1879
|
+
/** The immediate children of the run. Will be omitted if the run has no children */
|
|
1880
|
+
export type RunRescheduleV1ResponseRelatedRunsChildrenList = Array<CommonRunObject>;
|
|
1881
|
+
export declare const RunRescheduleV1ResponseRelatedRunsChildrenList: S.Schema<RunRescheduleV1ResponseRelatedRunsChildrenList>;
|
|
1882
|
+
export interface RunRescheduleV1ResponseRelatedRuns {
|
|
1883
|
+
/** The root run of the run hierarchy. Will be omitted if the run is the root run */
|
|
1884
|
+
root?: CommonRunObject;
|
|
1885
|
+
/** The parent run of the run. Will be omitted if the run is the root run */
|
|
1886
|
+
parent?: CommonRunObject;
|
|
1887
|
+
/** The immediate children of the run. Will be omitted if the run has no children */
|
|
1888
|
+
children?: RunRescheduleV1ResponseRelatedRunsChildrenList;
|
|
1889
|
+
}
|
|
1890
|
+
export declare const RunRescheduleV1ResponseRelatedRuns: S.Schema<RunRescheduleV1ResponseRelatedRuns>;
|
|
1891
|
+
export type RunRescheduleV1ResponseScheduleGeneratorType = "CRON";
|
|
1892
|
+
export declare const RunRescheduleV1ResponseScheduleGeneratorType: any;
|
|
1893
|
+
export interface RunRescheduleV1ResponseScheduleGenerator {
|
|
1894
|
+
type?: RunRescheduleV1ResponseScheduleGeneratorType;
|
|
1895
|
+
/** The cron expression used to generate the schedule */
|
|
1896
|
+
expression?: string;
|
|
1897
|
+
/** The description of the generator in plain english */
|
|
1898
|
+
description?: string;
|
|
1899
|
+
}
|
|
1900
|
+
export declare const RunRescheduleV1ResponseScheduleGenerator: S.Schema<RunRescheduleV1ResponseScheduleGenerator>;
|
|
1901
|
+
/** The schedule that triggered the run. Will be omitted if the run was not triggered by a schedule */
|
|
1902
|
+
export interface RunRescheduleV1ResponseSchedule {
|
|
1903
|
+
/** The unique ID of the schedule, prefixed with `sched_` */
|
|
1904
|
+
id: string;
|
|
1905
|
+
/** The external ID of the schedule. Can be anything that is useful to you (e.g., user ID, org ID, etc.) */
|
|
1906
|
+
externalId?: string;
|
|
1907
|
+
/** The deduplication key used to prevent creating duplicate schedules */
|
|
1908
|
+
deduplicationKey?: string;
|
|
1909
|
+
generator: RunRescheduleV1ResponseScheduleGenerator;
|
|
1910
|
+
}
|
|
1911
|
+
export declare const RunRescheduleV1ResponseSchedule: S.Schema<RunRescheduleV1ResponseSchedule>;
|
|
1912
|
+
export type RunRescheduleV1ResponseAttemptsItemStatus = "PENDING" | "EXECUTING" | "PAUSED" | "COMPLETED" | "FAILED" | "CANCELED";
|
|
1913
|
+
export declare const RunRescheduleV1ResponseAttemptsItemStatus: any;
|
|
1914
|
+
export interface RunRescheduleV1ResponseAttemptsItem {
|
|
1915
|
+
/** The unique ID of the attempt, prefixed with `attempt_` */
|
|
1916
|
+
id: string;
|
|
1917
|
+
status: RunRescheduleV1ResponseAttemptsItemStatus;
|
|
1918
|
+
error?: SerializedError;
|
|
1919
|
+
createdAt: string;
|
|
1920
|
+
updatedAt: string;
|
|
1921
|
+
startedAt?: string;
|
|
1922
|
+
completedAt?: string;
|
|
1923
|
+
}
|
|
1924
|
+
export declare const RunRescheduleV1ResponseAttemptsItem: S.Schema<RunRescheduleV1ResponseAttemptsItem>;
|
|
1925
|
+
export type RunRescheduleV1ResponseAttemptsList = Array<RunRescheduleV1ResponseAttemptsItem>;
|
|
1926
|
+
export declare const RunRescheduleV1ResponseAttemptsList: S.Schema<RunRescheduleV1ResponseAttemptsList>;
|
|
1927
|
+
export interface RunRescheduleV1Response {
|
|
1928
|
+
/** The unique ID of the run, prefixed with `run_` */
|
|
1929
|
+
id: string;
|
|
1930
|
+
/** The status of the run */
|
|
1931
|
+
status: RunRescheduleV1ResponseStatus;
|
|
1932
|
+
/** The identifier of the task that was run */
|
|
1933
|
+
taskIdentifier: string;
|
|
1934
|
+
/** The version of the worker that executed the run */
|
|
1935
|
+
version?: string;
|
|
1936
|
+
/** The idempotency key used to prevent creating duplicate runs, if provided */
|
|
1937
|
+
idempotencyKey?: string;
|
|
1938
|
+
createdAt: string;
|
|
1939
|
+
updatedAt: string;
|
|
1940
|
+
/** Whether the run is a test run or not */
|
|
1941
|
+
isTest?: boolean;
|
|
1942
|
+
/** The time the run started */
|
|
1943
|
+
startedAt?: string;
|
|
1944
|
+
/** The time the run finished */
|
|
1945
|
+
finishedAt?: string;
|
|
1946
|
+
/** If the run was triggered with a delay, this will be the time the run will be enqueued to execute */
|
|
1947
|
+
delayedUntil?: string;
|
|
1948
|
+
ttl?: unknown;
|
|
1949
|
+
/** If the run had a TTL and that time has passed, when the run "expired". */
|
|
1950
|
+
expiredAt?: string;
|
|
1951
|
+
/** Tags can be attached to a run to make it easy to find runs (in the dashboard or using SDK functions like `runs.list`) */
|
|
1952
|
+
tags?: RunRescheduleV1ResponseTagsList;
|
|
1953
|
+
/** The metadata of the run. See [Metadata](/runs/metadata) for more information. */
|
|
1954
|
+
metadata?: unknown;
|
|
1955
|
+
/** The compute cost of the run (so far) in cents. This cost does not apply to DEV runs. */
|
|
1956
|
+
costInCents?: number;
|
|
1957
|
+
/** The invocation cost of the run in cents. This cost does not apply to DEV runs. */
|
|
1958
|
+
baseCostInCents?: number;
|
|
1959
|
+
/** The duration of compute (so far) in milliseconds. This does not include waits. */
|
|
1960
|
+
durationMs?: number;
|
|
1961
|
+
/** The depth of the run in the task run hierarchy. The root run has a depth of 0. */
|
|
1962
|
+
depth?: number;
|
|
1963
|
+
/** The ID of the batch that this run belongs to */
|
|
1964
|
+
batchId?: string;
|
|
1965
|
+
/** The name of the function that triggered the run */
|
|
1966
|
+
triggerFunction?: RunRescheduleV1ResponseTriggerFunction;
|
|
1967
|
+
/** The payload that was sent to the task. Will be omitted if the request was made with a Public API key */
|
|
1968
|
+
payload?: unknown;
|
|
1969
|
+
/** The presigned URL to download the payload. Will only be included if the payload is too large to be included in the response. Expires in 5 minutes. */
|
|
1970
|
+
payloadPresignedUrl?: string;
|
|
1971
|
+
/** The output of the run. Will be omitted if the request was made with a Public API key */
|
|
1972
|
+
output?: unknown;
|
|
1973
|
+
/** The presigned URL to download the output. Will only be included if the output is too large to be included in the response. Expires in 5 minutes. */
|
|
1974
|
+
outputPresignedUrl?: string;
|
|
1975
|
+
relatedRuns?: RunRescheduleV1ResponseRelatedRuns;
|
|
1976
|
+
/** The schedule that triggered the run. Will be omitted if the run was not triggered by a schedule */
|
|
1977
|
+
schedule?: RunRescheduleV1ResponseSchedule;
|
|
1978
|
+
attempts: RunRescheduleV1ResponseAttemptsList;
|
|
1979
|
+
}
|
|
1980
|
+
export declare const RunRescheduleV1Response: S.Schema<RunRescheduleV1Response>;
|
|
1981
|
+
export interface QueueOptions {
|
|
1982
|
+
/** You can define a shared queue and then pass the name in to your task. */
|
|
1983
|
+
name?: string;
|
|
1984
|
+
/** An optional property that specifies the maximum number of concurrent run executions. If this property is omitted, the task can potentially use up the full concurrency of an environment. */
|
|
1985
|
+
concurrencyLimit?: number;
|
|
1986
|
+
}
|
|
1987
|
+
export declare const QueueOptions: S.Schema<QueueOptions>;
|
|
1988
|
+
/** The machine preset to use for this run. This will override the task's machine preset and any defaults. */
|
|
1989
|
+
export type TriggerTaskRequestBodyOptionsMachine = "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1990
|
+
export declare const TriggerTaskRequestBodyOptionsMachine: any;
|
|
1991
|
+
export interface TriggerTaskRequestBodyOptions {
|
|
1992
|
+
queue?: QueueOptions;
|
|
1993
|
+
/** Scope the concurrency limit to a specific key. */
|
|
1994
|
+
concurrencyKey?: string;
|
|
1995
|
+
/** An optional property that specifies the idempotency key used to prevent creating duplicate runs. If you provide an existing idempotency key, we will return the existing run ID. */
|
|
1996
|
+
idempotencyKey?: string;
|
|
1997
|
+
ttl?: unknown;
|
|
1998
|
+
delay?: string;
|
|
1999
|
+
/** Tags to attach to the run. Tags can be used to filter runs in the dashboard and using the SDK. You can set up to 10 tags per run, each must be less than 128 characters. We recommend prefixing tags with a namespace using an underscore or colon, like `user_1234567` or `org:9876543`. Stripe uses underscores. */
|
|
2000
|
+
tags?: RunTags;
|
|
2001
|
+
/** The machine preset to use for this run. This will override the task's machine preset and any defaults. */
|
|
2002
|
+
machine?: TriggerTaskRequestBodyOptionsMachine | (string & {});
|
|
2003
|
+
}
|
|
2004
|
+
export declare const TriggerTaskRequestBodyOptions: S.Schema<TriggerTaskRequestBodyOptions>;
|
|
2005
|
+
export interface TriggerTaskRequestBody {
|
|
2006
|
+
/** The payload can include any valid JSON */
|
|
2007
|
+
payload?: unknown;
|
|
2008
|
+
/** The context can include any valid JSON */
|
|
2009
|
+
context?: unknown;
|
|
2010
|
+
options?: TriggerTaskRequestBodyOptions;
|
|
2011
|
+
}
|
|
2012
|
+
export declare const TriggerTaskRequestBody: S.Schema<TriggerTaskRequestBody>;
|
|
2013
|
+
/** An array of payloads to trigger the task with (max 1,000 items). */
|
|
2014
|
+
export type TriggerBatchTaskByIdV1RequestItemsList = Array<TriggerTaskRequestBody>;
|
|
2015
|
+
export declare const TriggerBatchTaskByIdV1RequestItemsList: S.Schema<TriggerBatchTaskByIdV1RequestItemsList>;
|
|
2016
|
+
export interface TriggerBatchTaskByIdV1Request {
|
|
2017
|
+
/** The id of a task */
|
|
2018
|
+
taskIdentifier: string;
|
|
2019
|
+
/** An array of payloads to trigger the task with (max 1,000 items). */
|
|
2020
|
+
items: TriggerBatchTaskByIdV1RequestItemsList;
|
|
2021
|
+
}
|
|
2022
|
+
export declare const TriggerBatchTaskByIdV1Request: S.Schema<TriggerBatchTaskByIdV1Request>;
|
|
2023
|
+
/** An array of run IDs that were triggered */
|
|
2024
|
+
export type BatchTriggerTaskResponseRunsList = Array<string>;
|
|
2025
|
+
export declare const BatchTriggerTaskResponseRunsList: S.Schema<BatchTriggerTaskResponseRunsList>;
|
|
2026
|
+
export interface BatchTriggerTaskResponse {
|
|
2027
|
+
/** The ID of the batch that was triggered */
|
|
2028
|
+
batchId: string;
|
|
2029
|
+
/** An array of run IDs that were triggered */
|
|
2030
|
+
runs: BatchTriggerTaskResponseRunsList;
|
|
2031
|
+
}
|
|
2032
|
+
export declare const BatchTriggerTaskResponse: S.Schema<BatchTriggerTaskResponse>;
|
|
2033
|
+
/** The machine preset to use for this run. This will override the task's machine preset and any defaults. */
|
|
2034
|
+
export type BatchTriggerTaskRequestBodyItemOptionsMachine = "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
2035
|
+
export declare const BatchTriggerTaskRequestBodyItemOptionsMachine: any;
|
|
2036
|
+
export interface BatchTriggerTaskRequestBodyItemOptions {
|
|
2037
|
+
queue?: QueueOptions;
|
|
2038
|
+
/** Scope the concurrency limit to a specific key. */
|
|
2039
|
+
concurrencyKey?: string;
|
|
2040
|
+
/** An optional property that specifies the idempotency key used to prevent creating duplicate runs. If you provide an existing idempotency key, we will return the existing run ID. */
|
|
2041
|
+
idempotencyKey?: string;
|
|
2042
|
+
ttl?: unknown;
|
|
2043
|
+
delay?: string;
|
|
2044
|
+
/** Tags to attach to the run. Tags can be used to filter runs in the dashboard and using the SDK. You can set up to 10 tags per run, each must be less than 128 characters. We recommend prefixing tags with a namespace using an underscore or colon, like `user_1234567` or `org:9876543`. Stripe uses underscores. */
|
|
2045
|
+
tags?: RunTags;
|
|
2046
|
+
/** The machine preset to use for this run. This will override the task's machine preset and any defaults. */
|
|
2047
|
+
machine?: BatchTriggerTaskRequestBodyItemOptionsMachine | (string & {});
|
|
2048
|
+
}
|
|
2049
|
+
export declare const BatchTriggerTaskRequestBodyItemOptions: S.Schema<BatchTriggerTaskRequestBodyItemOptions>;
|
|
2050
|
+
export interface BatchTriggerTaskRequestBodyItem {
|
|
2051
|
+
/** The payload can include any valid JSON */
|
|
2052
|
+
payload?: unknown;
|
|
2053
|
+
/** The context can include any valid JSON */
|
|
2054
|
+
context?: unknown;
|
|
2055
|
+
options?: BatchTriggerTaskRequestBodyItemOptions;
|
|
2056
|
+
/** The task identifier to trigger. This is the `id` set in your `task()` functions. */
|
|
2057
|
+
task: string;
|
|
2058
|
+
}
|
|
2059
|
+
export declare const BatchTriggerTaskRequestBodyItem: S.Schema<BatchTriggerTaskRequestBodyItem>;
|
|
2060
|
+
/** An array of payloads to trigger the task with */
|
|
2061
|
+
export type TriggerBatchTaskV1RequestItemsList = Array<BatchTriggerTaskRequestBodyItem>;
|
|
2062
|
+
export declare const TriggerBatchTaskV1RequestItemsList: S.Schema<TriggerBatchTaskV1RequestItemsList>;
|
|
2063
|
+
export interface TriggerBatchTaskV1Request {
|
|
2064
|
+
/** An array of payloads to trigger the task with */
|
|
2065
|
+
items: TriggerBatchTaskV1RequestItemsList;
|
|
2066
|
+
}
|
|
2067
|
+
export declare const TriggerBatchTaskV1Request: S.Schema<TriggerBatchTaskV1Request>;
|
|
2068
|
+
/** The machine preset to use for this run. This will override the task's machine preset and any defaults. */
|
|
2069
|
+
export type TriggerTaskV1RequestOptionsMachine = "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
2070
|
+
export declare const TriggerTaskV1RequestOptionsMachine: any;
|
|
2071
|
+
export interface TriggerTaskV1RequestOptions {
|
|
2072
|
+
queue?: QueueOptions;
|
|
2073
|
+
/** Scope the concurrency limit to a specific key. */
|
|
2074
|
+
concurrencyKey?: string;
|
|
2075
|
+
/** An optional property that specifies the idempotency key used to prevent creating duplicate runs. If you provide an existing idempotency key, we will return the existing run ID. */
|
|
2076
|
+
idempotencyKey?: string;
|
|
2077
|
+
ttl?: unknown;
|
|
2078
|
+
delay?: string;
|
|
2079
|
+
/** Tags to attach to the run. Tags can be used to filter runs in the dashboard and using the SDK. You can set up to 10 tags per run, each must be less than 128 characters. We recommend prefixing tags with a namespace using an underscore or colon, like `user_1234567` or `org:9876543`. Stripe uses underscores. */
|
|
2080
|
+
tags?: RunTags;
|
|
2081
|
+
/** The machine preset to use for this run. This will override the task's machine preset and any defaults. */
|
|
2082
|
+
machine?: TriggerTaskV1RequestOptionsMachine | (string & {});
|
|
2083
|
+
}
|
|
2084
|
+
export declare const TriggerTaskV1RequestOptions: S.Schema<TriggerTaskV1RequestOptions>;
|
|
2085
|
+
export interface TriggerTaskV1Request {
|
|
2086
|
+
/** The id of a task */
|
|
2087
|
+
taskIdentifier: string;
|
|
2088
|
+
/** The payload can include any valid JSON */
|
|
2089
|
+
payload?: unknown;
|
|
2090
|
+
/** The context can include any valid JSON */
|
|
2091
|
+
context?: unknown;
|
|
2092
|
+
options?: TriggerTaskV1RequestOptions;
|
|
2093
|
+
}
|
|
2094
|
+
export declare const TriggerTaskV1Request: S.Schema<TriggerTaskV1Request>;
|
|
2095
|
+
export interface TriggerTaskResponse {
|
|
2096
|
+
/** The ID of the run that was triggered. */
|
|
2097
|
+
id?: string;
|
|
2098
|
+
}
|
|
2099
|
+
export declare const TriggerTaskResponse: S.Schema<TriggerTaskResponse>;
|
|
2100
|
+
export interface UnresolveErrorV1Request {
|
|
2101
|
+
/** The ID of an error group, starts with `error_`. */
|
|
2102
|
+
errorId: string;
|
|
2103
|
+
}
|
|
2104
|
+
export declare const UnresolveErrorV1Request: S.Schema<UnresolveErrorV1Request>;
|
|
2105
|
+
export type UpdateProjectEnvvarV1RequestEnv = "dev" | "staging" | "prod";
|
|
2106
|
+
export declare const UpdateProjectEnvvarV1RequestEnv: any;
|
|
2107
|
+
export interface UpdateProjectEnvvarV1Request {
|
|
2108
|
+
/** The external ref of the project. You can find this in the project settings. Starts with `proj_`. */
|
|
2109
|
+
projectRef: string;
|
|
2110
|
+
/** The environment of the project to list variables for. */
|
|
2111
|
+
env: UpdateProjectEnvvarV1RequestEnv | (string & {});
|
|
2112
|
+
/** The name of the environment variable. */
|
|
2113
|
+
name: string;
|
|
2114
|
+
value: string;
|
|
2115
|
+
}
|
|
2116
|
+
export declare const UpdateProjectEnvvarV1Request: S.Schema<UpdateProjectEnvvarV1Request>;
|
|
2117
|
+
export interface UpdateRunMetadataV1Request {
|
|
2118
|
+
/** The ID of an run, starts with `run_`. The run ID will be returned when you trigger a run on a task. */
|
|
2119
|
+
runId: string;
|
|
2120
|
+
/** The new metadata to set on the run. */
|
|
2121
|
+
metadata?: unknown;
|
|
2122
|
+
}
|
|
2123
|
+
export declare const UpdateRunMetadataV1Request: S.Schema<UpdateRunMetadataV1Request>;
|
|
2124
|
+
export interface UpdateRunMetadataV1Response {
|
|
2125
|
+
/** The updated metadata of the run. */
|
|
2126
|
+
metadata?: unknown;
|
|
2127
|
+
}
|
|
2128
|
+
export declare const UpdateRunMetadataV1Response: S.Schema<UpdateRunMetadataV1Response>;
|
|
2129
|
+
export interface UpdateScheduleV1Request {
|
|
2130
|
+
/** The ID of the schedule. */
|
|
2131
|
+
schedule_id: string;
|
|
2132
|
+
task: string;
|
|
2133
|
+
cron: string;
|
|
2134
|
+
externalId?: string;
|
|
2135
|
+
/** Defaults to "UTC". In IANA format ("America/New_York"). If set then it will trigger at the CRON frequency in that timezone and respect daylight savings time. */
|
|
2136
|
+
timezone?: string;
|
|
2137
|
+
}
|
|
2138
|
+
export declare const UpdateScheduleV1Request: S.Schema<UpdateScheduleV1Request>;
|
|
2139
|
+
/** Replaces the tags on the session row. */
|
|
2140
|
+
export type UpdateSessionV1RequestTagsList = Array<string>;
|
|
2141
|
+
export declare const UpdateSessionV1RequestTagsList: S.Schema<UpdateSessionV1RequestTagsList>;
|
|
2142
|
+
/** Replaces the metadata. Pass `null` to clear it. */
|
|
2143
|
+
export type UpdateSessionV1RequestMetadataMap = {
|
|
2144
|
+
[key: string]: unknown | undefined;
|
|
2145
|
+
};
|
|
2146
|
+
export declare const UpdateSessionV1RequestMetadataMap: S.Schema<UpdateSessionV1RequestMetadataMap>;
|
|
2147
|
+
export interface UpdateSessionV1Request {
|
|
2148
|
+
/** The session's friendly ID (`session_…`) or your `externalId`. The server disambiguates by the `session_` prefix. */
|
|
2149
|
+
session: string;
|
|
2150
|
+
/** Replaces the tags on the session row. */
|
|
2151
|
+
tags?: UpdateSessionV1RequestTagsList;
|
|
2152
|
+
/** Replaces the metadata. Pass `null` to clear it. */
|
|
2153
|
+
metadata?: UpdateSessionV1RequestMetadataMap | null;
|
|
2154
|
+
/** Read-only after create: cannot be changed or cleared. Sending a value different from the current one (including `null` when one is set) returns `422`; sending the same value is idempotent. */
|
|
2155
|
+
externalId?: string | null;
|
|
2156
|
+
}
|
|
2157
|
+
export declare const UpdateSessionV1Request: S.Schema<UpdateSessionV1Request>;
|
|
2158
|
+
export type UploadProjectEnvvarsV1RequestEnv = "dev" | "staging" | "prod";
|
|
2159
|
+
export declare const UploadProjectEnvvarsV1RequestEnv: any;
|
|
2160
|
+
export type UploadProjectEnvvarsV1RequestVariablesList = Array<EnvVar>;
|
|
2161
|
+
export declare const UploadProjectEnvvarsV1RequestVariablesList: S.Schema<UploadProjectEnvvarsV1RequestVariablesList>;
|
|
2162
|
+
export interface UploadProjectEnvvarsV1Request {
|
|
2163
|
+
/** The external ref of the project. You can find this in the project settings. Starts with `proj_`. */
|
|
2164
|
+
projectRef: string;
|
|
2165
|
+
/** The environment of the project to list variables for. */
|
|
2166
|
+
env: UploadProjectEnvvarsV1RequestEnv | (string & {});
|
|
2167
|
+
variables: UploadProjectEnvvarsV1RequestVariablesList;
|
|
2168
|
+
/** Whether to override existing variables or not */
|
|
2169
|
+
override?: boolean;
|
|
2170
|
+
}
|
|
2171
|
+
export declare const UploadProjectEnvvarsV1Request: S.Schema<UploadProjectEnvvarsV1Request>;
|
|
2172
|
+
export type ActivateScheduleV1Error = NotFound | TriggerDevOpError;
|
|
2173
|
+
/** Activate Schedule Activate a schedule by its ID. This will only work on `IMPERATIVE` schedules that were created in the dashboard or using the imperative SDK functions like `schedules.create()`. */
|
|
2174
|
+
export declare const activateScheduleV1: API.OperationMethod<ActivateScheduleV1Request, ScheduleObject, ActivateScheduleV1Error, TriggerDevOpContext>;
|
|
2175
|
+
export type AddRunTagsV1Error = BadRequest | UnprocessableEntity | TriggerDevOpError;
|
|
2176
|
+
/** Add tags to a run Adds one or more tags to a run. Runs can have a maximum of 10 tags. Duplicate tags are ignored. */
|
|
2177
|
+
export declare const addRunTagsV1: API.OperationMethod<AddRunTagsV1Request, AddRunTagsV1Response, AddRunTagsV1Error, TriggerDevOpContext>;
|
|
2178
|
+
export type BulkAbortActionV1Error = BadRequest | NotFound | TriggerDevOpError;
|
|
2179
|
+
/** Abort bulk action Abort a pending bulk action so it stops processing additional runs. Runs already processed by the action are not undone. */
|
|
2180
|
+
export declare const bulkAbortActionV1: API.OperationMethod<BulkAbortActionV1Request, AbortBulkActionResponse, BulkAbortActionV1Error, TriggerDevOpContext>;
|
|
2181
|
+
export type CancelRunV1Error = BadRequest | NotFound | TriggerDevOpError;
|
|
2182
|
+
/** Cancel a run Cancels an in-progress run. If the run is already completed, this will have no effect. */
|
|
2183
|
+
export declare const cancelRunV1: API.OperationMethod<CancelRunV1Request, CancelRunV1Response, CancelRunV1Error, TriggerDevOpContext>;
|
|
2184
|
+
export type CloseSessionV1Error = NotFound | TriggerDevOpError;
|
|
2185
|
+
/** Close a session Close a session. Closing is terminal and idempotent — closing an already-closed session returns the existing row unchanged. A closed session cannot be reopened, and reusing its `externalId` on create returns `409`. Requires a secret key — a session public token cannot close a session. */
|
|
2186
|
+
export declare const closeSessionV1: API.OperationMethod<CloseSessionV1Request, SessionObject, CloseSessionV1Error, TriggerDevOpContext>;
|
|
2187
|
+
export type CompleteWaitpointTokenCallbackV1Error = NotFound | TriggerDevOpError;
|
|
2188
|
+
/** Complete a waitpoint token via HTTP callback Completes a waitpoint token using the pre-signed callback URL returned in the `url` field when the token was created. No API key is required — the `callbackHash` in the URL acts as the authentication token. This is designed to be given directly to external services (e.g. as a webhook URL) so they can unblock a waiting run without needing access to your API key. The entire request body is passed as the output data to the waiting run. If the token is already completed, this is a no-op and returns `success: true`. */
|
|
2189
|
+
export declare const completeWaitpointTokenCallbackV1: API.OperationMethod<CompleteWaitpointTokenCallbackV1Request, CompleteWaitpointTokenResponse, CompleteWaitpointTokenCallbackV1Error, TriggerDevOpContext>;
|
|
2190
|
+
export type CompleteWaitpointTokenV1Error = NotFound | TriggerDevOpError;
|
|
2191
|
+
/** Complete a waitpoint token Completes a waitpoint token, unblocking any run that is waiting for it via `wait.forToken()`. An optional `data` payload can be passed and will be returned to the waiting run. If the token is already completed, this is a no-op and returns `success: true`. This endpoint accepts both secret API keys and short-lived JWTs (public access tokens), making it safe to call from frontend clients. */
|
|
2192
|
+
export declare const completeWaitpointTokenV1: API.OperationMethod<CompleteWaitpointTokenV1Request, CompleteWaitpointTokenResponse, CompleteWaitpointTokenV1Error, TriggerDevOpContext>;
|
|
2193
|
+
export type CreateBulkActionV1Error = BadRequest | UnprocessableEntity | TriggerDevOpError;
|
|
2194
|
+
/** Create bulk action Create an asynchronous bulk action to cancel or replay runs selected by run IDs or filters. */
|
|
2195
|
+
export declare const createBulkActionV1: API.OperationMethod<CreateBulkActionV1Request, CreateBulkActionV1Response, CreateBulkActionV1Error, TriggerDevOpContext>;
|
|
2196
|
+
export type CreateProjectEnvvarV1Error = BadRequest | NotFound | TriggerDevOpError;
|
|
2197
|
+
/** Create environment variable Create a new environment variable for a specific project and environment. */
|
|
2198
|
+
export declare const createProjectEnvvarV1: API.OperationMethod<CreateProjectEnvvarV1Request, SucceedResponse, CreateProjectEnvvarV1Error, TriggerDevOpContext>;
|
|
2199
|
+
export type CreateScheduleV1Error = BadRequest | UnprocessableEntity | TriggerDevOpError;
|
|
2200
|
+
/** Create a schedule Create a new `IMPERATIVE` schedule based on the specified options. */
|
|
2201
|
+
export declare const createScheduleV1: API.OperationMethod<CreateScheduleV1Request, ScheduleObject, CreateScheduleV1Error, TriggerDevOpContext>;
|
|
2202
|
+
export type CreateSessionV1Error = Conflict | UnprocessableEntity | TriggerDevOpError;
|
|
2203
|
+
/** Create a session Create a Session and trigger its first run in one atomic call. A Session is the durable identity for a bi-directional stream of records (the `.in` and `.out` channels) that survives across the runs processing it. Idempotent on `externalId` within an environment. Calling create again with an `externalId` that already maps to an open session returns the existing session with `isCached: true` and `201` becomes `200`. Reusing an `externalId` whose session is already closed or expired returns `409`. Authorize with a secret key, or a public token carrying `write:sessions` for the session you are creating. */
|
|
2204
|
+
export declare const createSessionV1: API.OperationMethod<CreateSessionV1Request, CreateSessionV1Response, CreateSessionV1Error, TriggerDevOpContext>;
|
|
2205
|
+
export type CreateWaitpointTokenV1Error = UnprocessableEntity | TriggerDevOpError;
|
|
2206
|
+
/** Create a waitpoint token Creates a new waitpoint token that can be used to pause a run until an external event completes it. The token includes a `url` which can be called via HTTP POST to complete the waitpoint. Use the token ID with `wait.forToken()` inside a task to pause execution until the token is completed. */
|
|
2207
|
+
export declare const createWaitpointTokenV1: API.OperationMethod<CreateWaitpointTokenV1Request, CreateWaitpointTokenResponse, CreateWaitpointTokenV1Error, TriggerDevOpContext>;
|
|
2208
|
+
export type DeactivateScheduleV1Error = NotFound | TriggerDevOpError;
|
|
2209
|
+
/** Deactivate Schedule. Deactivate a schedule by its ID. This will only work on `IMPERATIVE` schedules that were created in the dashboard or using the imperative SDK functions like `schedules.create()`. */
|
|
2210
|
+
export declare const deactivateScheduleV1: API.OperationMethod<DeactivateScheduleV1Request, ScheduleObject, DeactivateScheduleV1Error, TriggerDevOpContext>;
|
|
2211
|
+
export type DeleteProjectEnvvarV1Error = BadRequest | NotFound | TriggerDevOpError;
|
|
2212
|
+
/** Delete environment variable Delete a specific environment variable for a specific project and environment. */
|
|
2213
|
+
export declare const deleteProjectEnvvarV1: API.OperationMethod<DeleteProjectEnvvarV1Request, SucceedResponse, DeleteProjectEnvvarV1Error, TriggerDevOpContext>;
|
|
2214
|
+
export type DeleteScheduleV1Error = NotFound | TriggerDevOpError;
|
|
2215
|
+
/** Delete Schedule Delete a schedule by its ID. This will only work on `IMPERATIVE` schedules that were created in the dashboard or using the imperative SDK functions like `schedules.create()`. */
|
|
2216
|
+
export declare const deleteScheduleV1: API.OperationMethod<DeleteScheduleV1Request, DeleteScheduleV1Response, DeleteScheduleV1Error, TriggerDevOpContext>;
|
|
2217
|
+
export type ExecuteQueryV1Error = BadRequest | TriggerDevOpError;
|
|
2218
|
+
/** Execute a TRQL query Execute a TRQL (Trigger.dev Query Language) query against your run data. TRQL is a SQL-style query language that allows you to analyze runs, calculate metrics, and export data. */
|
|
2219
|
+
export declare const executeQueryV1: API.OperationMethod<ExecuteQueryV1Request, ExecuteQueryV1Response, ExecuteQueryV1Error, TriggerDevOpContext>;
|
|
2220
|
+
export type GetBatchResultsV1Error = NotFound | TriggerDevOpError;
|
|
2221
|
+
/** Retrieve batch results Returns the execution results of all completed runs in a batch. Only finished runs (successful or failed) are included in the items array — runs that are still executing are omitted. Returns 404 if the batch doesn't exist. */
|
|
2222
|
+
export declare const getBatchResultsV1: API.OperationMethod<GetBatchResultsV1Request, GetBatchResultsV1Response, GetBatchResultsV1Error, TriggerDevOpContext>;
|
|
2223
|
+
export type GetBatchV1Error = NotFound | TriggerDevOpError;
|
|
2224
|
+
/** Retrieve a batch Retrieve a batch by its ID, including its status and the IDs of all runs in the batch. */
|
|
2225
|
+
export declare const getBatchV1: API.OperationMethod<GetBatchV1Request, GetBatchV1Response, GetBatchV1Error, TriggerDevOpContext>;
|
|
2226
|
+
export type GetBulkActionV1Error = NotFound | TriggerDevOpError;
|
|
2227
|
+
/** Retrieve bulk action Retrieve the status and aggregate processing counts for a bulk action. */
|
|
2228
|
+
export declare const getBulkActionV1: API.OperationMethod<GetBulkActionV1Request, BulkActionObject, GetBulkActionV1Error, TriggerDevOpContext>;
|
|
2229
|
+
export type GetDeploymentV1Error = NotFound | TriggerDevOpError;
|
|
2230
|
+
/** Get deployment Retrieve information about a specific deployment by its ID. */
|
|
2231
|
+
export declare const getDeploymentV1: API.OperationMethod<GetDeploymentV1Request, GetDeploymentV1Response, GetDeploymentV1Error, TriggerDevOpContext>;
|
|
2232
|
+
export type GetErrorV1Error = NotFound | TriggerDevOpError;
|
|
2233
|
+
/** Retrieve an error Retrieve detailed information about a single error group, including its lifecycle state and the worker versions it has affected. */
|
|
2234
|
+
export declare const getErrorV1: API.OperationMethod<GetErrorV1Request, ErrorObject, GetErrorV1Error, TriggerDevOpContext>;
|
|
2235
|
+
export type GetLatestDeploymentV1Error = NotFound | TriggerDevOpError;
|
|
2236
|
+
/** Get latest deployment Retrieve information about the latest unmanaged deployment for the authenticated project. */
|
|
2237
|
+
export declare const getLatestDeploymentV1: API.OperationMethod<GetLatestDeploymentV1Request, GetLatestDeploymentV1Response, GetLatestDeploymentV1Error, TriggerDevOpContext>;
|
|
2238
|
+
export type GetProjectEnvvarV1Error = BadRequest | NotFound | TriggerDevOpError;
|
|
2239
|
+
/** Retrieve environment variable Retrieve a specific environment variable for a specific project and environment. */
|
|
2240
|
+
export declare const getProjectEnvvarV1: API.OperationMethod<GetProjectEnvvarV1Request, EnvVarValue, GetProjectEnvvarV1Error, TriggerDevOpContext>;
|
|
2241
|
+
export type GetQuerySchemaV1Error = TriggerDevOpError;
|
|
2242
|
+
/** Get query schema Get the schema for TRQL queries, including all available tables, their columns, data types, descriptions, and allowed values. */
|
|
2243
|
+
export declare const getQuerySchemaV1: API.OperationMethod<GetQuerySchemaV1Request, GetQuerySchemaV1Response, GetQuerySchemaV1Error, TriggerDevOpContext>;
|
|
2244
|
+
export type GetQueueV1Error = NotFound | TriggerDevOpError;
|
|
2245
|
+
/** Retrieve a queue Get a queue by its ID, or by type and name. */
|
|
2246
|
+
export declare const getQueueV1: API.OperationMethod<GetQueueV1Request, QueueObject, GetQueueV1Error, TriggerDevOpContext>;
|
|
2247
|
+
export type GetRunEventsV1Error = NotFound | TriggerDevOpError;
|
|
2248
|
+
/** Retrieve run events Returns all OTel span events for a run. Useful for debugging and observability. */
|
|
2249
|
+
export declare const getRunEventsV1: API.OperationMethod<GetRunEventsV1Request, GetRunEventsV1Response, GetRunEventsV1Error, TriggerDevOpContext>;
|
|
2250
|
+
export type GetRunResultV1Error = NotFound | TriggerDevOpError;
|
|
2251
|
+
/** Retrieve run result Returns the execution result of a completed run. Returns 404 if the run doesn't exist or hasn't finished yet. */
|
|
2252
|
+
export declare const getRunResultV1: API.OperationMethod<GetRunResultV1Request, GetRunResultV1Response, GetRunResultV1Error, TriggerDevOpContext>;
|
|
2253
|
+
export type GetRunTraceV1Error = NotFound | TriggerDevOpError;
|
|
2254
|
+
/** Retrieve run trace Returns the OTel trace subtree for the requested run — the run's span as `rootSpan`, its ancestor chain, and its descendant spans. For child or nested runs in a large trace, this is scoped to that run rather than the trace-wide root. */
|
|
2255
|
+
export declare const getRunTraceV1: API.OperationMethod<GetRunTraceV1Request, GetRunTraceV1Response, GetRunTraceV1Error, TriggerDevOpContext>;
|
|
2256
|
+
export type GetRunV1Error = BadRequest | NotFound | TriggerDevOpError;
|
|
2257
|
+
/** Retrieve a run Retrieve information about a run, including its status, payload, output, and attempts. If you authenticate with a Public API key, we will omit the payload and output fields for security reasons. */
|
|
2258
|
+
export declare const getRunV1: API.OperationMethod<GetRunV1Request, GetRunV1Response, GetRunV1Error, TriggerDevOpContext>;
|
|
2259
|
+
export type GetScheduleV1Error = NotFound | TriggerDevOpError;
|
|
2260
|
+
/** Retrieve Schedule Get a schedule by its ID. */
|
|
2261
|
+
export declare const getScheduleV1: API.OperationMethod<GetScheduleV1Request, ScheduleObject, GetScheduleV1Error, TriggerDevOpContext>;
|
|
2262
|
+
export type GetSessionV1Error = NotFound | TriggerDevOpError;
|
|
2263
|
+
/** Retrieve a session Retrieve a single session by its friendly id (`session_…`) or your `externalId`. The response includes `triggerConfig` and the friendly `currentRunId` of the live run, if any. */
|
|
2264
|
+
export declare const getSessionV1: API.OperationMethod<GetSessionV1Request, SessionObject, GetSessionV1Error, TriggerDevOpContext>;
|
|
2265
|
+
export type GetTimezonesV1Error = TriggerDevOpError;
|
|
2266
|
+
/** Get all supported timezones Get all supported timezones that schedule tasks support. */
|
|
2267
|
+
export declare const getTimezonesV1: API.OperationMethod<GetTimezonesV1Request, GetTimezonesResult, GetTimezonesV1Error, TriggerDevOpContext>;
|
|
2268
|
+
export type GetWaitpointTokenV1Error = NotFound | TriggerDevOpError;
|
|
2269
|
+
/** Retrieve a waitpoint token Retrieves a waitpoint token by its ID, including its current status and output if it has been completed. */
|
|
2270
|
+
export declare const getWaitpointTokenV1: API.OperationMethod<GetWaitpointTokenV1Request, WaitpointTokenObject, GetWaitpointTokenV1Error, TriggerDevOpContext>;
|
|
2271
|
+
export type IgnoreErrorV1Error = NotFound | TriggerDevOpError;
|
|
2272
|
+
/** Ignore an error Mark an error group as ignored. Provide a `duration` to ignore it for a fixed window, and/or thresholds that re-surface the error when exceeded. Send a JSON body (use `{}` to ignore indefinitely). */
|
|
2273
|
+
export declare const ignoreErrorV1: API.OperationMethod<IgnoreErrorV1Request, ErrorObject, IgnoreErrorV1Error, TriggerDevOpContext>;
|
|
2274
|
+
export type ListBulkActionsV1Error = BadRequest | TriggerDevOpError;
|
|
2275
|
+
/** List bulk actions List bulk actions in the current environment. Bulk actions are returned newest first and can be paginated with cursor pagination. */
|
|
2276
|
+
export declare const listBulkActionsV1: API.OperationMethod<ListBulkActionsV1Request, ListBulkActionsResult, ListBulkActionsV1Error, TriggerDevOpContext>;
|
|
2277
|
+
export type ListDashboardsV1Error = TriggerDevOpError;
|
|
2278
|
+
/** List built-in dashboards List available built-in dashboards with their widgets. Each dashboard contains pre-built TRQL queries for common metrics like run success rates, costs, and LLM usage. */
|
|
2279
|
+
export declare const listDashboardsV1: API.OperationMethod<ListDashboardsV1Request, ListDashboardsV1Response, ListDashboardsV1Error, TriggerDevOpContext>;
|
|
2280
|
+
export type ListDeploymentsV1Error = TriggerDevOpError;
|
|
2281
|
+
/** List deployments List deployments for the authenticated environment, ordered by most recent first. */
|
|
2282
|
+
export declare const listDeploymentsV1: API.OperationMethod<ListDeploymentsV1Request, ListDeploymentsV1Response, ListDeploymentsV1Error, TriggerDevOpContext>;
|
|
2283
|
+
export type ListErrorsV1Error = BadRequest | TriggerDevOpError;
|
|
2284
|
+
/** List errors List error groups in a specific environment. Runs that fail are grouped by a fingerprint derived from the error type, message, and stack trace. Filter by task identifier, version, status, search text, and time range. */
|
|
2285
|
+
export declare const listErrorsV1: API.OperationMethod<ListErrorsV1Request, ListErrorsResult, ListErrorsV1Error, TriggerDevOpContext>;
|
|
2286
|
+
export type ListProjectEnvvarsV1Error = BadRequest | NotFound | TriggerDevOpError;
|
|
2287
|
+
/** List environment variables List all environment variables for a specific project and environment. */
|
|
2288
|
+
export declare const listProjectEnvvarsV1: API.OperationMethod<ListProjectEnvvarsV1Request, ListProjectEnvvarsV1Response, ListProjectEnvvarsV1Error, TriggerDevOpContext>;
|
|
2289
|
+
export type ListProjectRunsV1Error = BadRequest | TriggerDevOpError;
|
|
2290
|
+
/** List project runs List runs in a project, across multiple environments, using Personal Access Token auth. You can filter the runs by status, created at, task identifier, version, and more. */
|
|
2291
|
+
export declare const listProjectRunsV1: API.OperationMethod<ListProjectRunsV1Request, ListRunsResult, ListProjectRunsV1Error, TriggerDevOpContext>;
|
|
2292
|
+
export type ListQueuesV1Error = TriggerDevOpError;
|
|
2293
|
+
/** List all queues List all queues in your environment with pagination support. */
|
|
2294
|
+
export declare const listQueuesV1: API.OperationMethod<ListQueuesV1Request, ListQueuesResult, ListQueuesV1Error, TriggerDevOpContext>;
|
|
2295
|
+
export type ListRunsV1Error = BadRequest | TriggerDevOpError;
|
|
2296
|
+
/** List runs List runs in a specific environment. You can filter the runs by status, created at, task identifier, version, and more. */
|
|
2297
|
+
export declare const listRunsV1: API.OperationMethod<ListRunsV1Request, ListRunsResult, ListRunsV1Error, TriggerDevOpContext>;
|
|
2298
|
+
export type ListSchedulesV1Error = TriggerDevOpError;
|
|
2299
|
+
/** List all schedules List all schedules. You can also paginate the results. */
|
|
2300
|
+
export declare const listSchedulesV1: API.OperationMethod<ListSchedulesV1Request, ListSchedulesResult, ListSchedulesV1Error, TriggerDevOpContext>;
|
|
2301
|
+
export type ListSessionsV1Error = BadRequest | TriggerDevOpError;
|
|
2302
|
+
/** List sessions List sessions in the current environment, newest first. Filter by type, tags, task identifier, external id, status, and creation window. Use cursor-based pagination with `page[after]` and `page[before]` to navigate pages. List rows omit `triggerConfig`; retrieve a single session to read it. */
|
|
2303
|
+
export declare const listSessionsV1: API.OperationMethod<ListSessionsV1Request, ListSessionsResult, ListSessionsV1Error, TriggerDevOpContext>;
|
|
2304
|
+
export type ListWaitpointTokensV1Error = UnprocessableEntity | TriggerDevOpError;
|
|
2305
|
+
/** List waitpoint tokens Returns a paginated list of waitpoint tokens for the current environment. Results are ordered by creation date, newest first. Use cursor-based pagination with `page[after]` and `page[before]` to navigate pages. */
|
|
2306
|
+
export declare const listWaitpointTokensV1: API.OperationMethod<ListWaitpointTokensV1Request, ListWaitpointTokensResult, ListWaitpointTokensV1Error, TriggerDevOpContext>;
|
|
2307
|
+
export type OverrideQueueConcurrencyV1Error = BadRequest | NotFound | TriggerDevOpError;
|
|
2308
|
+
/** Override queue concurrency limit Override the concurrency limit of a queue. This is useful for temporarily scaling up or down based on demand. */
|
|
2309
|
+
export declare const overrideQueueConcurrencyV1: API.OperationMethod<OverrideQueueConcurrencyV1Request, QueueObject, OverrideQueueConcurrencyV1Error, TriggerDevOpContext>;
|
|
2310
|
+
export type PauseQueueV1Error = BadRequest | NotFound | TriggerDevOpError;
|
|
2311
|
+
/** Pause or resume a queue Pause a queue to prevent new runs from starting, or resume a paused queue. Runs that are currently executing will continue to completion. */
|
|
2312
|
+
export declare const pauseQueueV1: API.OperationMethod<PauseQueueV1Request, QueueObject, PauseQueueV1Error, TriggerDevOpContext>;
|
|
2313
|
+
export type PromoteDeploymentV1Error = BadRequest | NotFound | TriggerDevOpError;
|
|
2314
|
+
/** Promote deployment Promote a previously deployed version to be the current version for the environment. This makes the specified version active for new task runs. */
|
|
2315
|
+
export declare const promoteDeploymentV1: API.OperationMethod<PromoteDeploymentV1Request, PromoteDeploymentV1Response, PromoteDeploymentV1Error, TriggerDevOpContext>;
|
|
2316
|
+
export type ResetQueueConcurrencyV1Error = BadRequest | NotFound | TriggerDevOpError;
|
|
2317
|
+
/** Reset queue concurrency limit Reset the concurrency limit of a queue back to its base value defined in code. */
|
|
2318
|
+
export declare const resetQueueConcurrencyV1: API.OperationMethod<ResetQueueConcurrencyV1Request, QueueObject, ResetQueueConcurrencyV1Error, TriggerDevOpContext>;
|
|
2319
|
+
export type ResolveErrorV1Error = NotFound | TriggerDevOpError;
|
|
2320
|
+
/** Resolve an error Mark an error group as resolved. Optionally record the worker version that resolved it. Send a JSON body (use `{}` when you have no fields to set). */
|
|
2321
|
+
export declare const resolveErrorV1: API.OperationMethod<ResolveErrorV1Request, ErrorObject, ResolveErrorV1Error, TriggerDevOpContext>;
|
|
2322
|
+
export type RunReplayV1Error = BadRequest | NotFound | TriggerDevOpError;
|
|
2323
|
+
/** Replay a run Creates a new run with the same payload and options as the original run. */
|
|
2324
|
+
export declare const runReplayV1: API.OperationMethod<RunReplayV1Request, RunReplayV1Response, RunReplayV1Error, TriggerDevOpContext>;
|
|
2325
|
+
export type RunRescheduleV1Error = BadRequest | NotFound | TriggerDevOpError;
|
|
2326
|
+
/** Rescheduled a delayed run Updates a delayed run with a new delay. Only valid when the run is in the DELAYED state. */
|
|
2327
|
+
export declare const runRescheduleV1: API.OperationMethod<RunRescheduleV1Request, RunRescheduleV1Response, RunRescheduleV1Error, TriggerDevOpContext>;
|
|
2328
|
+
export type TriggerBatchTaskByIdV1Error = BadRequest | NotFound | TriggerDevOpError;
|
|
2329
|
+
/** Batch trigger a specific task Batch trigger a specific task with up to 1,000 payloads. All items in the batch run the same task. */
|
|
2330
|
+
export declare const triggerBatchTaskByIdV1: API.OperationMethod<TriggerBatchTaskByIdV1Request, BatchTriggerTaskResponse, TriggerBatchTaskByIdV1Error, TriggerDevOpContext>;
|
|
2331
|
+
export type TriggerBatchTaskV1Error = BadRequest | NotFound | TriggerDevOpError;
|
|
2332
|
+
/** Batch trigger tasks Batch trigger tasks with up to 1,000 payloads with SDK 4.3.1+ (500 in prior versions). */
|
|
2333
|
+
export declare const triggerBatchTaskV1: API.OperationMethod<TriggerBatchTaskV1Request, BatchTriggerTaskResponse, TriggerBatchTaskV1Error, TriggerDevOpContext>;
|
|
2334
|
+
export type TriggerTaskV1Error = BadRequest | NotFound | TriggerDevOpError;
|
|
2335
|
+
/** Trigger a task Trigger a task by its identifier. */
|
|
2336
|
+
export declare const triggerTaskV1: API.OperationMethod<TriggerTaskV1Request, TriggerTaskResponse, TriggerTaskV1Error, TriggerDevOpContext>;
|
|
2337
|
+
export type UnresolveErrorV1Error = NotFound | TriggerDevOpError;
|
|
2338
|
+
/** Unresolve an error Move a resolved or ignored error group back to unresolved. */
|
|
2339
|
+
export declare const unresolveErrorV1: API.OperationMethod<UnresolveErrorV1Request, ErrorObject, UnresolveErrorV1Error, TriggerDevOpContext>;
|
|
2340
|
+
export type UpdateProjectEnvvarV1Error = BadRequest | NotFound | TriggerDevOpError;
|
|
2341
|
+
/** Update environment variable Update a specific environment variable for a specific project and environment. */
|
|
2342
|
+
export declare const updateProjectEnvvarV1: API.OperationMethod<UpdateProjectEnvvarV1Request, SucceedResponse, UpdateProjectEnvvarV1Error, TriggerDevOpContext>;
|
|
2343
|
+
export type UpdateRunMetadataV1Error = BadRequest | NotFound | TriggerDevOpError;
|
|
2344
|
+
/** Update run metadata Update the metadata of a run. */
|
|
2345
|
+
export declare const updateRunMetadataV1: API.OperationMethod<UpdateRunMetadataV1Request, UpdateRunMetadataV1Response, UpdateRunMetadataV1Error, TriggerDevOpContext>;
|
|
2346
|
+
export type UpdateScheduleV1Error = BadRequest | NotFound | UnprocessableEntity | TriggerDevOpError;
|
|
2347
|
+
/** Update Schedule Update a schedule by its ID. This will only work on `IMPERATIVE` schedules that were created in the dashboard or using the imperative SDK functions like `schedules.create()`. */
|
|
2348
|
+
export declare const updateScheduleV1: API.OperationMethod<UpdateScheduleV1Request, ScheduleObject, UpdateScheduleV1Error, TriggerDevOpContext>;
|
|
2349
|
+
export type UpdateSessionV1Error = NotFound | UnprocessableEntity | TriggerDevOpError;
|
|
2350
|
+
/** Update a session Update a session's `tags` or `metadata`. Pass `metadata: null` to clear it. Requires a secret key — a session public token cannot update a session. `externalId` is read-only after create: it cannot be changed or cleared. Sending a value different from the current one (including `null` when one is set) returns `422`; sending the same value is accepted as a no-op. */
|
|
2351
|
+
export declare const updateSessionV1: API.OperationMethod<UpdateSessionV1Request, SessionObject, UpdateSessionV1Error, TriggerDevOpContext>;
|
|
2352
|
+
export type UploadProjectEnvvarsV1Error = BadRequest | NotFound | TriggerDevOpError;
|
|
2353
|
+
/** Upload environment variables Upload mulitple environment variables for a specific project and environment. */
|
|
2354
|
+
export declare const uploadProjectEnvvarsV1: API.OperationMethod<UploadProjectEnvvarsV1Request, SucceedResponse, UploadProjectEnvvarsV1Error, TriggerDevOpContext>;
|
|
2355
|
+
//# sourceMappingURL=trigger-dev.d.ts.map
|