@trigger.dev/core 0.0.0-prerelease-20251113180638 → 0.0.0-prerelease-20251121193208
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/v3/apiClient/index.d.ts +27 -8
- package/dist/commonjs/v3/apiClient/index.js +48 -4
- package/dist/commonjs/v3/apiClient/index.js.map +1 -1
- package/dist/commonjs/v3/apiClient/runStream.d.ts +28 -14
- package/dist/commonjs/v3/apiClient/runStream.js +175 -58
- package/dist/commonjs/v3/apiClient/runStream.js.map +1 -1
- package/dist/commonjs/v3/apiClientManager/index.d.ts +1 -1
- package/dist/commonjs/v3/apiClientManager/index.js +11 -4
- package/dist/commonjs/v3/apiClientManager/index.js.map +1 -1
- package/dist/commonjs/v3/apiClientManager/types.d.ts +2 -1
- package/dist/commonjs/v3/index.d.ts +1 -0
- package/dist/commonjs/v3/index.js +1 -0
- package/dist/commonjs/v3/index.js.map +1 -1
- package/dist/commonjs/v3/lifecycle-hooks-api.d.ts +1 -1
- package/dist/commonjs/v3/lifecycleHooks/index.d.ts +5 -1
- package/dist/commonjs/v3/lifecycleHooks/index.js +12 -0
- package/dist/commonjs/v3/lifecycleHooks/index.js.map +1 -1
- package/dist/commonjs/v3/lifecycleHooks/manager.d.ts +11 -1
- package/dist/commonjs/v3/lifecycleHooks/manager.js +36 -0
- package/dist/commonjs/v3/lifecycleHooks/manager.js.map +1 -1
- package/dist/commonjs/v3/lifecycleHooks/types.d.ts +12 -0
- package/dist/commonjs/v3/realtime-streams-api.d.ts +3 -0
- package/dist/commonjs/v3/realtime-streams-api.js +23 -0
- package/dist/commonjs/v3/realtime-streams-api.js.map +1 -0
- package/dist/commonjs/v3/realtimeStreams/index.d.ts +10 -0
- package/dist/commonjs/v3/realtimeStreams/index.js +31 -0
- package/dist/commonjs/v3/realtimeStreams/index.js.map +1 -0
- package/dist/commonjs/v3/realtimeStreams/manager.d.ts +14 -0
- package/dist/commonjs/v3/realtimeStreams/manager.js +128 -0
- package/dist/commonjs/v3/realtimeStreams/manager.js.map +1 -0
- package/dist/commonjs/v3/realtimeStreams/noopManager.d.ts +5 -0
- package/dist/commonjs/v3/realtimeStreams/noopManager.js +17 -0
- package/dist/commonjs/v3/realtimeStreams/noopManager.js.map +1 -0
- package/dist/commonjs/v3/realtimeStreams/streamInstance.d.ts +23 -0
- package/dist/commonjs/v3/realtimeStreams/streamInstance.js +106 -0
- package/dist/commonjs/v3/realtimeStreams/streamInstance.js.map +1 -0
- package/dist/commonjs/v3/realtimeStreams/streamsWriterV1.d.ts +49 -0
- package/dist/commonjs/v3/realtimeStreams/streamsWriterV1.js +382 -0
- package/dist/commonjs/v3/realtimeStreams/streamsWriterV1.js.map +1 -0
- package/dist/commonjs/v3/realtimeStreams/streamsWriterV2.d.ts +60 -0
- package/dist/commonjs/v3/realtimeStreams/streamsWriterV2.js +179 -0
- package/dist/commonjs/v3/realtimeStreams/streamsWriterV2.js.map +1 -0
- package/dist/commonjs/v3/realtimeStreams/types.d.ts +119 -0
- package/dist/commonjs/v3/realtimeStreams/types.js +3 -0
- package/dist/commonjs/v3/realtimeStreams/types.js.map +1 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +1 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +7 -0
- package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +1 -0
- package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +7 -0
- package/dist/commonjs/v3/runMetadata/manager.d.ts +3 -8
- package/dist/commonjs/v3/runMetadata/manager.js +14 -79
- package/dist/commonjs/v3/runMetadata/manager.js.map +1 -1
- package/dist/commonjs/v3/schemas/api.d.ts +252 -37
- package/dist/commonjs/v3/schemas/api.js +72 -8
- package/dist/commonjs/v3/schemas/api.js.map +1 -1
- package/dist/commonjs/v3/schemas/common.d.ts +5 -0
- package/dist/commonjs/v3/schemas/common.js +1 -0
- package/dist/commonjs/v3/schemas/common.js.map +1 -1
- package/dist/commonjs/v3/schemas/messages.d.ts +35 -0
- package/dist/commonjs/v3/schemas/runEngine.d.ts +7 -0
- package/dist/commonjs/v3/schemas/schemas.d.ts +7 -0
- package/dist/commonjs/v3/semanticInternalAttributes.d.ts +1 -0
- package/dist/commonjs/v3/semanticInternalAttributes.js +1 -0
- package/dist/commonjs/v3/semanticInternalAttributes.js.map +1 -1
- package/dist/commonjs/v3/streams/asyncIterableStream.d.ts +2 -0
- package/dist/commonjs/v3/streams/asyncIterableStream.js +47 -0
- package/dist/commonjs/v3/streams/asyncIterableStream.js.map +1 -1
- package/dist/commonjs/v3/types/tasks.d.ts +17 -2
- package/dist/commonjs/v3/types/tasks.js.map +1 -1
- package/dist/commonjs/v3/utils/globals.d.ts +2 -0
- package/dist/commonjs/v3/utils/globals.js.map +1 -1
- package/dist/commonjs/v3/waitUntil/index.d.ts +1 -1
- package/dist/commonjs/v3/waitUntil/index.js +3 -3
- package/dist/commonjs/v3/waitUntil/index.js.map +1 -1
- package/dist/commonjs/v3/waitUntil/manager.d.ts +3 -1
- package/dist/commonjs/v3/waitUntil/manager.js +7 -3
- package/dist/commonjs/v3/waitUntil/manager.js.map +1 -1
- package/dist/commonjs/v3/waitUntil/types.d.ts +2 -2
- package/dist/commonjs/v3/workers/index.d.ts +1 -0
- package/dist/commonjs/v3/workers/index.js +3 -1
- package/dist/commonjs/v3/workers/index.js.map +1 -1
- package/dist/commonjs/v3/workers/taskExecutor.js +50 -25
- package/dist/commonjs/v3/workers/taskExecutor.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/v3/apiClient/index.d.ts +27 -8
- package/dist/esm/v3/apiClient/index.js +49 -6
- package/dist/esm/v3/apiClient/index.js.map +1 -1
- package/dist/esm/v3/apiClient/runStream.d.ts +28 -14
- package/dist/esm/v3/apiClient/runStream.js +176 -58
- package/dist/esm/v3/apiClient/runStream.js.map +1 -1
- package/dist/esm/v3/apiClientManager/index.d.ts +1 -1
- package/dist/esm/v3/apiClientManager/index.js +11 -4
- package/dist/esm/v3/apiClientManager/index.js.map +1 -1
- package/dist/esm/v3/apiClientManager/types.d.ts +2 -1
- package/dist/esm/v3/index.d.ts +1 -0
- package/dist/esm/v3/index.js +1 -0
- package/dist/esm/v3/index.js.map +1 -1
- package/dist/esm/v3/lifecycle-hooks-api.d.ts +1 -1
- package/dist/esm/v3/lifecycleHooks/index.d.ts +5 -1
- package/dist/esm/v3/lifecycleHooks/index.js +12 -0
- package/dist/esm/v3/lifecycleHooks/index.js.map +1 -1
- package/dist/esm/v3/lifecycleHooks/manager.d.ts +11 -1
- package/dist/esm/v3/lifecycleHooks/manager.js +36 -0
- package/dist/esm/v3/lifecycleHooks/manager.js.map +1 -1
- package/dist/esm/v3/lifecycleHooks/types.d.ts +12 -0
- package/dist/esm/v3/realtime-streams-api.d.ts +3 -0
- package/dist/esm/v3/realtime-streams-api.js +6 -0
- package/dist/esm/v3/realtime-streams-api.js.map +1 -0
- package/dist/esm/v3/realtimeStreams/index.d.ts +10 -0
- package/dist/esm/v3/realtimeStreams/index.js +27 -0
- package/dist/esm/v3/realtimeStreams/index.js.map +1 -0
- package/dist/esm/v3/realtimeStreams/manager.d.ts +14 -0
- package/dist/esm/v3/realtimeStreams/manager.js +124 -0
- package/dist/esm/v3/realtimeStreams/manager.js.map +1 -0
- package/dist/esm/v3/realtimeStreams/noopManager.d.ts +5 -0
- package/dist/esm/v3/realtimeStreams/noopManager.js +13 -0
- package/dist/esm/v3/realtimeStreams/noopManager.js.map +1 -0
- package/dist/esm/v3/realtimeStreams/streamInstance.d.ts +23 -0
- package/dist/esm/v3/realtimeStreams/streamInstance.js +102 -0
- package/dist/esm/v3/realtimeStreams/streamInstance.js.map +1 -0
- package/dist/esm/v3/realtimeStreams/streamsWriterV1.d.ts +49 -0
- package/dist/esm/v3/realtimeStreams/streamsWriterV1.js +378 -0
- package/dist/esm/v3/realtimeStreams/streamsWriterV1.js.map +1 -0
- package/dist/esm/v3/realtimeStreams/streamsWriterV2.d.ts +60 -0
- package/dist/esm/v3/realtimeStreams/streamsWriterV2.js +175 -0
- package/dist/esm/v3/realtimeStreams/streamsWriterV2.js.map +1 -0
- package/dist/esm/v3/realtimeStreams/types.d.ts +119 -0
- package/dist/esm/v3/realtimeStreams/types.js +2 -0
- package/dist/esm/v3/realtimeStreams/types.js.map +1 -0
- package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +1 -0
- package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +7 -0
- package/dist/esm/v3/runEngineWorker/workload/http.d.ts +1 -0
- package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +7 -0
- package/dist/esm/v3/runMetadata/manager.d.ts +3 -8
- package/dist/esm/v3/runMetadata/manager.js +14 -79
- package/dist/esm/v3/runMetadata/manager.js.map +1 -1
- package/dist/esm/v3/schemas/api.d.ts +252 -37
- package/dist/esm/v3/schemas/api.js +69 -5
- package/dist/esm/v3/schemas/api.js.map +1 -1
- package/dist/esm/v3/schemas/common.d.ts +5 -0
- package/dist/esm/v3/schemas/common.js +1 -0
- package/dist/esm/v3/schemas/common.js.map +1 -1
- package/dist/esm/v3/schemas/messages.d.ts +35 -0
- package/dist/esm/v3/schemas/runEngine.d.ts +7 -0
- package/dist/esm/v3/schemas/schemas.d.ts +7 -0
- package/dist/esm/v3/semanticInternalAttributes.d.ts +1 -0
- package/dist/esm/v3/semanticInternalAttributes.js +1 -0
- package/dist/esm/v3/semanticInternalAttributes.js.map +1 -1
- package/dist/esm/v3/streams/asyncIterableStream.d.ts +2 -0
- package/dist/esm/v3/streams/asyncIterableStream.js +45 -0
- package/dist/esm/v3/streams/asyncIterableStream.js.map +1 -1
- package/dist/esm/v3/types/tasks.d.ts +17 -2
- package/dist/esm/v3/types/tasks.js.map +1 -1
- package/dist/esm/v3/utils/globals.d.ts +2 -0
- package/dist/esm/v3/utils/globals.js.map +1 -1
- package/dist/esm/v3/waitUntil/index.d.ts +1 -1
- package/dist/esm/v3/waitUntil/index.js +3 -3
- package/dist/esm/v3/waitUntil/index.js.map +1 -1
- package/dist/esm/v3/waitUntil/manager.d.ts +3 -1
- package/dist/esm/v3/waitUntil/manager.js +7 -3
- package/dist/esm/v3/waitUntil/manager.js.map +1 -1
- package/dist/esm/v3/waitUntil/types.d.ts +2 -2
- package/dist/esm/v3/workers/index.d.ts +1 -0
- package/dist/esm/v3/workers/index.js +1 -0
- package/dist/esm/v3/workers/index.js.map +1 -1
- package/dist/esm/v3/workers/taskExecutor.js +50 -25
- package/dist/esm/v3/workers/taskExecutor.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +2 -1
- package/dist/commonjs/v3/runMetadata/metadataStream.d.ts +0 -28
- package/dist/commonjs/v3/runMetadata/metadataStream.js +0 -155
- package/dist/commonjs/v3/runMetadata/metadataStream.js.map +0 -1
- package/dist/esm/v3/runMetadata/metadataStream.d.ts +0 -28
- package/dist/esm/v3/runMetadata/metadataStream.js +0 -151
- package/dist/esm/v3/runMetadata/metadataStream.js.map +0 -1
|
@@ -2059,6 +2059,37 @@ export declare const UpsertBranchResponseBody: z.ZodObject<{
|
|
|
2059
2059
|
id: string;
|
|
2060
2060
|
}>;
|
|
2061
2061
|
export type UpsertBranchResponseBody = z.infer<typeof UpsertBranchResponseBody>;
|
|
2062
|
+
export declare const CreateArtifactRequestBody: z.ZodObject<{
|
|
2063
|
+
type: z.ZodDefault<z.ZodEnum<["deployment_context"]>>;
|
|
2064
|
+
contentType: z.ZodDefault<z.ZodString>;
|
|
2065
|
+
contentLength: z.ZodOptional<z.ZodNumber>;
|
|
2066
|
+
}, "strip", z.ZodTypeAny, {
|
|
2067
|
+
type: "deployment_context";
|
|
2068
|
+
contentType: string;
|
|
2069
|
+
contentLength?: number | undefined;
|
|
2070
|
+
}, {
|
|
2071
|
+
type?: "deployment_context" | undefined;
|
|
2072
|
+
contentType?: string | undefined;
|
|
2073
|
+
contentLength?: number | undefined;
|
|
2074
|
+
}>;
|
|
2075
|
+
export type CreateArtifactRequestBody = z.infer<typeof CreateArtifactRequestBody>;
|
|
2076
|
+
export declare const CreateArtifactResponseBody: z.ZodObject<{
|
|
2077
|
+
artifactKey: z.ZodString;
|
|
2078
|
+
uploadUrl: z.ZodString;
|
|
2079
|
+
uploadFields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2080
|
+
expiresAt: z.ZodString;
|
|
2081
|
+
}, "strip", z.ZodTypeAny, {
|
|
2082
|
+
artifactKey: string;
|
|
2083
|
+
uploadUrl: string;
|
|
2084
|
+
uploadFields: Record<string, string>;
|
|
2085
|
+
expiresAt: string;
|
|
2086
|
+
}, {
|
|
2087
|
+
artifactKey: string;
|
|
2088
|
+
uploadUrl: string;
|
|
2089
|
+
uploadFields: Record<string, string>;
|
|
2090
|
+
expiresAt: string;
|
|
2091
|
+
}>;
|
|
2092
|
+
export type CreateArtifactResponseBody = z.infer<typeof CreateArtifactResponseBody>;
|
|
2062
2093
|
export declare const InitializeDeploymentResponseBody: z.ZodObject<{
|
|
2063
2094
|
id: z.ZodString;
|
|
2064
2095
|
contentHash: z.ZodString;
|
|
@@ -2079,6 +2110,33 @@ export declare const InitializeDeploymentResponseBody: z.ZodObject<{
|
|
|
2079
2110
|
buildId: string;
|
|
2080
2111
|
buildToken: string;
|
|
2081
2112
|
}>>>;
|
|
2113
|
+
eventStream: z.ZodOptional<z.ZodObject<{
|
|
2114
|
+
s2: z.ZodObject<{
|
|
2115
|
+
basin: z.ZodString;
|
|
2116
|
+
stream: z.ZodString;
|
|
2117
|
+
accessToken: z.ZodString;
|
|
2118
|
+
}, "strip", z.ZodTypeAny, {
|
|
2119
|
+
basin: string;
|
|
2120
|
+
stream: string;
|
|
2121
|
+
accessToken: string;
|
|
2122
|
+
}, {
|
|
2123
|
+
basin: string;
|
|
2124
|
+
stream: string;
|
|
2125
|
+
accessToken: string;
|
|
2126
|
+
}>;
|
|
2127
|
+
}, "strip", z.ZodTypeAny, {
|
|
2128
|
+
s2: {
|
|
2129
|
+
basin: string;
|
|
2130
|
+
stream: string;
|
|
2131
|
+
accessToken: string;
|
|
2132
|
+
};
|
|
2133
|
+
}, {
|
|
2134
|
+
s2: {
|
|
2135
|
+
basin: string;
|
|
2136
|
+
stream: string;
|
|
2137
|
+
accessToken: string;
|
|
2138
|
+
};
|
|
2139
|
+
}>>;
|
|
2082
2140
|
}, "strip", z.ZodTypeAny, {
|
|
2083
2141
|
id: string;
|
|
2084
2142
|
version: string;
|
|
@@ -2091,6 +2149,13 @@ export declare const InitializeDeploymentResponseBody: z.ZodObject<{
|
|
|
2091
2149
|
buildId: string;
|
|
2092
2150
|
buildToken: string;
|
|
2093
2151
|
} | null | undefined;
|
|
2152
|
+
eventStream?: {
|
|
2153
|
+
s2: {
|
|
2154
|
+
basin: string;
|
|
2155
|
+
stream: string;
|
|
2156
|
+
accessToken: string;
|
|
2157
|
+
};
|
|
2158
|
+
} | undefined;
|
|
2094
2159
|
}, {
|
|
2095
2160
|
id: string;
|
|
2096
2161
|
version: string;
|
|
@@ -2103,9 +2168,16 @@ export declare const InitializeDeploymentResponseBody: z.ZodObject<{
|
|
|
2103
2168
|
buildId: string;
|
|
2104
2169
|
buildToken: string;
|
|
2105
2170
|
} | null | undefined;
|
|
2171
|
+
eventStream?: {
|
|
2172
|
+
s2: {
|
|
2173
|
+
basin: string;
|
|
2174
|
+
stream: string;
|
|
2175
|
+
accessToken: string;
|
|
2176
|
+
};
|
|
2177
|
+
} | undefined;
|
|
2106
2178
|
}>;
|
|
2107
2179
|
export type InitializeDeploymentResponseBody = z.infer<typeof InitializeDeploymentResponseBody>;
|
|
2108
|
-
export declare const InitializeDeploymentRequestBody: z.ZodObject<{
|
|
2180
|
+
export declare const InitializeDeploymentRequestBody: z.ZodIntersection<z.ZodObject<{
|
|
2109
2181
|
contentHash: z.ZodString;
|
|
2110
2182
|
userId: z.ZodOptional<z.ZodString>;
|
|
2111
2183
|
/** @deprecated This is now determined by the webapp. This is only used to warn users with old CLI versions. */
|
|
@@ -2200,7 +2272,35 @@ export declare const InitializeDeploymentRequestBody: z.ZodObject<{
|
|
|
2200
2272
|
pullRequestState?: "open" | "closed" | "merged" | undefined;
|
|
2201
2273
|
} | undefined;
|
|
2202
2274
|
initialStatus?: "PENDING" | "BUILDING" | undefined;
|
|
2203
|
-
}
|
|
2275
|
+
}>, z.ZodEffects<z.ZodDiscriminatedUnion<"isNativeBuild", [z.ZodObject<{
|
|
2276
|
+
isNativeBuild: z.ZodLiteral<true>;
|
|
2277
|
+
skipPromotion: z.ZodBoolean;
|
|
2278
|
+
artifactKey: z.ZodString;
|
|
2279
|
+
configFilePath: z.ZodOptional<z.ZodString>;
|
|
2280
|
+
}, "strip", z.ZodTypeAny, {
|
|
2281
|
+
skipPromotion: boolean;
|
|
2282
|
+
artifactKey: string;
|
|
2283
|
+
isNativeBuild: true;
|
|
2284
|
+
configFilePath?: string | undefined;
|
|
2285
|
+
}, {
|
|
2286
|
+
skipPromotion: boolean;
|
|
2287
|
+
artifactKey: string;
|
|
2288
|
+
isNativeBuild: true;
|
|
2289
|
+
configFilePath?: string | undefined;
|
|
2290
|
+
}>, z.ZodObject<{
|
|
2291
|
+
isNativeBuild: z.ZodLiteral<false>;
|
|
2292
|
+
}, "strip", z.ZodTypeAny, {
|
|
2293
|
+
isNativeBuild: false;
|
|
2294
|
+
}, {
|
|
2295
|
+
isNativeBuild: false;
|
|
2296
|
+
}>]>, {
|
|
2297
|
+
skipPromotion: boolean;
|
|
2298
|
+
artifactKey: string;
|
|
2299
|
+
isNativeBuild: true;
|
|
2300
|
+
configFilePath?: string | undefined;
|
|
2301
|
+
} | {
|
|
2302
|
+
isNativeBuild: false;
|
|
2303
|
+
}, unknown>>;
|
|
2204
2304
|
export type InitializeDeploymentRequestBody = z.infer<typeof InitializeDeploymentRequestBody>;
|
|
2205
2305
|
export declare const RemoteBuildProviderStatusResponseBody: z.ZodObject<{
|
|
2206
2306
|
status: z.ZodEnum<["operational", "degraded", "unknown"]>;
|
|
@@ -2219,14 +2319,14 @@ export declare const GenerateRegistryCredentialsResponseBody: z.ZodObject<{
|
|
|
2219
2319
|
expiresAt: z.ZodString;
|
|
2220
2320
|
repositoryUri: z.ZodString;
|
|
2221
2321
|
}, "strip", z.ZodTypeAny, {
|
|
2322
|
+
expiresAt: string;
|
|
2222
2323
|
username: string;
|
|
2223
2324
|
password: string;
|
|
2224
|
-
expiresAt: string;
|
|
2225
2325
|
repositoryUri: string;
|
|
2226
2326
|
}, {
|
|
2327
|
+
expiresAt: string;
|
|
2227
2328
|
username: string;
|
|
2228
2329
|
password: string;
|
|
2229
|
-
expiresAt: string;
|
|
2230
2330
|
repositoryUri: string;
|
|
2231
2331
|
}>;
|
|
2232
2332
|
export type GenerateRegistryCredentialsResponseBody = z.infer<typeof GenerateRegistryCredentialsResponseBody>;
|
|
@@ -2552,6 +2652,108 @@ export declare const GetLatestDeploymentResponseBody: z.ZodObject<Omit<{
|
|
|
2552
2652
|
} | null | undefined;
|
|
2553
2653
|
}>;
|
|
2554
2654
|
export type GetLatestDeploymentResponseBody = z.infer<typeof GetLatestDeploymentResponseBody>;
|
|
2655
|
+
export declare const DeploymentLogEvent: z.ZodObject<{
|
|
2656
|
+
type: z.ZodLiteral<"log">;
|
|
2657
|
+
data: z.ZodObject<{
|
|
2658
|
+
level: z.ZodDefault<z.ZodOptional<z.ZodEnum<["debug", "info", "warn", "error"]>>>;
|
|
2659
|
+
message: z.ZodString;
|
|
2660
|
+
}, "strip", z.ZodTypeAny, {
|
|
2661
|
+
message: string;
|
|
2662
|
+
level: "error" | "warn" | "info" | "debug";
|
|
2663
|
+
}, {
|
|
2664
|
+
message: string;
|
|
2665
|
+
level?: "error" | "warn" | "info" | "debug" | undefined;
|
|
2666
|
+
}>;
|
|
2667
|
+
}, "strip", z.ZodTypeAny, {
|
|
2668
|
+
type: "log";
|
|
2669
|
+
data: {
|
|
2670
|
+
message: string;
|
|
2671
|
+
level: "error" | "warn" | "info" | "debug";
|
|
2672
|
+
};
|
|
2673
|
+
}, {
|
|
2674
|
+
type: "log";
|
|
2675
|
+
data: {
|
|
2676
|
+
message: string;
|
|
2677
|
+
level?: "error" | "warn" | "info" | "debug" | undefined;
|
|
2678
|
+
};
|
|
2679
|
+
}>;
|
|
2680
|
+
export declare const DeploymentFinalizedEvent: z.ZodObject<{
|
|
2681
|
+
type: z.ZodLiteral<"finalized">;
|
|
2682
|
+
data: z.ZodObject<{
|
|
2683
|
+
result: z.ZodUnion<[z.ZodEnum<["succeeded", "failed", "timed_out", "canceled"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>;
|
|
2684
|
+
message: z.ZodOptional<z.ZodString>;
|
|
2685
|
+
}, "strip", z.ZodTypeAny, {
|
|
2686
|
+
result: (string & {}) | "succeeded" | "failed" | "timed_out" | "canceled";
|
|
2687
|
+
message?: string | undefined;
|
|
2688
|
+
}, {
|
|
2689
|
+
result: (string & {}) | "succeeded" | "failed" | "timed_out" | "canceled";
|
|
2690
|
+
message?: string | undefined;
|
|
2691
|
+
}>;
|
|
2692
|
+
}, "strip", z.ZodTypeAny, {
|
|
2693
|
+
type: "finalized";
|
|
2694
|
+
data: {
|
|
2695
|
+
result: (string & {}) | "succeeded" | "failed" | "timed_out" | "canceled";
|
|
2696
|
+
message?: string | undefined;
|
|
2697
|
+
};
|
|
2698
|
+
}, {
|
|
2699
|
+
type: "finalized";
|
|
2700
|
+
data: {
|
|
2701
|
+
result: (string & {}) | "succeeded" | "failed" | "timed_out" | "canceled";
|
|
2702
|
+
message?: string | undefined;
|
|
2703
|
+
};
|
|
2704
|
+
}>;
|
|
2705
|
+
export declare const DeploymentEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2706
|
+
type: z.ZodLiteral<"log">;
|
|
2707
|
+
data: z.ZodObject<{
|
|
2708
|
+
level: z.ZodDefault<z.ZodOptional<z.ZodEnum<["debug", "info", "warn", "error"]>>>;
|
|
2709
|
+
message: z.ZodString;
|
|
2710
|
+
}, "strip", z.ZodTypeAny, {
|
|
2711
|
+
message: string;
|
|
2712
|
+
level: "error" | "warn" | "info" | "debug";
|
|
2713
|
+
}, {
|
|
2714
|
+
message: string;
|
|
2715
|
+
level?: "error" | "warn" | "info" | "debug" | undefined;
|
|
2716
|
+
}>;
|
|
2717
|
+
}, "strip", z.ZodTypeAny, {
|
|
2718
|
+
type: "log";
|
|
2719
|
+
data: {
|
|
2720
|
+
message: string;
|
|
2721
|
+
level: "error" | "warn" | "info" | "debug";
|
|
2722
|
+
};
|
|
2723
|
+
}, {
|
|
2724
|
+
type: "log";
|
|
2725
|
+
data: {
|
|
2726
|
+
message: string;
|
|
2727
|
+
level?: "error" | "warn" | "info" | "debug" | undefined;
|
|
2728
|
+
};
|
|
2729
|
+
}>, z.ZodObject<{
|
|
2730
|
+
type: z.ZodLiteral<"finalized">;
|
|
2731
|
+
data: z.ZodObject<{
|
|
2732
|
+
result: z.ZodUnion<[z.ZodEnum<["succeeded", "failed", "timed_out", "canceled"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>;
|
|
2733
|
+
message: z.ZodOptional<z.ZodString>;
|
|
2734
|
+
}, "strip", z.ZodTypeAny, {
|
|
2735
|
+
result: (string & {}) | "succeeded" | "failed" | "timed_out" | "canceled";
|
|
2736
|
+
message?: string | undefined;
|
|
2737
|
+
}, {
|
|
2738
|
+
result: (string & {}) | "succeeded" | "failed" | "timed_out" | "canceled";
|
|
2739
|
+
message?: string | undefined;
|
|
2740
|
+
}>;
|
|
2741
|
+
}, "strip", z.ZodTypeAny, {
|
|
2742
|
+
type: "finalized";
|
|
2743
|
+
data: {
|
|
2744
|
+
result: (string & {}) | "succeeded" | "failed" | "timed_out" | "canceled";
|
|
2745
|
+
message?: string | undefined;
|
|
2746
|
+
};
|
|
2747
|
+
}, {
|
|
2748
|
+
type: "finalized";
|
|
2749
|
+
data: {
|
|
2750
|
+
result: (string & {}) | "succeeded" | "failed" | "timed_out" | "canceled";
|
|
2751
|
+
message?: string | undefined;
|
|
2752
|
+
};
|
|
2753
|
+
}>]>;
|
|
2754
|
+
export type DeploymentEvent = z.infer<typeof DeploymentEvent>;
|
|
2755
|
+
export type DeploymentLogEvent = z.infer<typeof DeploymentLogEvent>;
|
|
2756
|
+
export type DeploymentFinalizedEvent = z.infer<typeof DeploymentFinalizedEvent>;
|
|
2555
2757
|
export declare const CreateUploadPayloadUrlResponseBody: z.ZodObject<{
|
|
2556
2758
|
presignedUrl: z.ZodString;
|
|
2557
2759
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5471,6 +5673,7 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
|
|
|
5471
5673
|
message?: string | undefined;
|
|
5472
5674
|
stackTrace?: string | undefined;
|
|
5473
5675
|
}>]>>>;
|
|
5676
|
+
realtimeStreams: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>>;
|
|
5474
5677
|
}, "strip", z.ZodTypeAny, {
|
|
5475
5678
|
number: number;
|
|
5476
5679
|
status: string;
|
|
@@ -5484,6 +5687,7 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
|
|
|
5484
5687
|
friendlyId: string;
|
|
5485
5688
|
usageDurationMs: number;
|
|
5486
5689
|
runTags: string[] | null;
|
|
5690
|
+
realtimeStreams: string[] | null;
|
|
5487
5691
|
payload?: string | null | undefined;
|
|
5488
5692
|
error?: {
|
|
5489
5693
|
message: string;
|
|
@@ -5557,6 +5761,7 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
|
|
|
5557
5761
|
queuedAt?: string | null | undefined;
|
|
5558
5762
|
usageDurationMs?: number | undefined;
|
|
5559
5763
|
runTags?: string[] | null | undefined;
|
|
5764
|
+
realtimeStreams?: string[] | null | undefined;
|
|
5560
5765
|
}>;
|
|
5561
5766
|
export type SubscribeRunRawShape = z.infer<typeof SubscribeRunRawShape>;
|
|
5562
5767
|
export declare const BatchStatus: z.ZodEnum<["PENDING", "COMPLETED"]>;
|
|
@@ -6057,9 +6262,9 @@ export type ApiBranchListResponseBody = z.infer<typeof ApiBranchListResponseBody
|
|
|
6057
6262
|
export declare const RetrieveRunTraceSpanSchema: z.ZodObject<{
|
|
6058
6263
|
id: z.ZodString;
|
|
6059
6264
|
parentId: z.ZodOptional<z.ZodString>;
|
|
6060
|
-
|
|
6265
|
+
runId: z.ZodString;
|
|
6061
6266
|
data: z.ZodObject<{
|
|
6062
|
-
|
|
6267
|
+
message: z.ZodString;
|
|
6063
6268
|
taskSlug: z.ZodOptional<z.ZodString>;
|
|
6064
6269
|
taskPath: z.ZodOptional<z.ZodString>;
|
|
6065
6270
|
events: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
@@ -6069,21 +6274,19 @@ export declare const RetrieveRunTraceSpanSchema: z.ZodObject<{
|
|
|
6069
6274
|
isPartial: z.ZodBoolean;
|
|
6070
6275
|
isCancelled: z.ZodBoolean;
|
|
6071
6276
|
level: z.ZodString;
|
|
6072
|
-
environmentType: z.ZodString;
|
|
6073
6277
|
workerVersion: z.ZodOptional<z.ZodString>;
|
|
6074
6278
|
queueName: z.ZodOptional<z.ZodString>;
|
|
6075
6279
|
machinePreset: z.ZodOptional<z.ZodString>;
|
|
6076
6280
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
6077
6281
|
output: z.ZodOptional<z.ZodUnknown>;
|
|
6078
6282
|
}, "strip", z.ZodTypeAny, {
|
|
6283
|
+
message: string;
|
|
6079
6284
|
duration: number;
|
|
6080
6285
|
isCancelled: boolean;
|
|
6081
|
-
|
|
6286
|
+
level: string;
|
|
6082
6287
|
startTime: Date;
|
|
6083
6288
|
isError: boolean;
|
|
6084
6289
|
isPartial: boolean;
|
|
6085
|
-
level: string;
|
|
6086
|
-
environmentType: string;
|
|
6087
6290
|
output?: unknown;
|
|
6088
6291
|
properties?: Record<string, any> | undefined;
|
|
6089
6292
|
taskSlug?: string | undefined;
|
|
@@ -6093,14 +6296,13 @@ export declare const RetrieveRunTraceSpanSchema: z.ZodObject<{
|
|
|
6093
6296
|
queueName?: string | undefined;
|
|
6094
6297
|
machinePreset?: string | undefined;
|
|
6095
6298
|
}, {
|
|
6299
|
+
message: string;
|
|
6096
6300
|
duration: number;
|
|
6097
6301
|
isCancelled: boolean;
|
|
6098
|
-
|
|
6302
|
+
level: string;
|
|
6099
6303
|
startTime: Date;
|
|
6100
6304
|
isError: boolean;
|
|
6101
6305
|
isPartial: boolean;
|
|
6102
|
-
level: string;
|
|
6103
|
-
environmentType: string;
|
|
6104
6306
|
output?: unknown;
|
|
6105
6307
|
properties?: Record<string, any> | undefined;
|
|
6106
6308
|
taskSlug?: string | undefined;
|
|
@@ -6111,17 +6313,15 @@ export declare const RetrieveRunTraceSpanSchema: z.ZodObject<{
|
|
|
6111
6313
|
machinePreset?: string | undefined;
|
|
6112
6314
|
}>;
|
|
6113
6315
|
}, "strip", z.ZodTypeAny, {
|
|
6114
|
-
message: string;
|
|
6115
6316
|
id: string;
|
|
6116
6317
|
data: {
|
|
6318
|
+
message: string;
|
|
6117
6319
|
duration: number;
|
|
6118
6320
|
isCancelled: boolean;
|
|
6119
|
-
|
|
6321
|
+
level: string;
|
|
6120
6322
|
startTime: Date;
|
|
6121
6323
|
isError: boolean;
|
|
6122
6324
|
isPartial: boolean;
|
|
6123
|
-
level: string;
|
|
6124
|
-
environmentType: string;
|
|
6125
6325
|
output?: unknown;
|
|
6126
6326
|
properties?: Record<string, any> | undefined;
|
|
6127
6327
|
taskSlug?: string | undefined;
|
|
@@ -6131,19 +6331,18 @@ export declare const RetrieveRunTraceSpanSchema: z.ZodObject<{
|
|
|
6131
6331
|
queueName?: string | undefined;
|
|
6132
6332
|
machinePreset?: string | undefined;
|
|
6133
6333
|
};
|
|
6334
|
+
runId: string;
|
|
6134
6335
|
parentId?: string | undefined;
|
|
6135
6336
|
}, {
|
|
6136
|
-
message: string;
|
|
6137
6337
|
id: string;
|
|
6138
6338
|
data: {
|
|
6339
|
+
message: string;
|
|
6139
6340
|
duration: number;
|
|
6140
6341
|
isCancelled: boolean;
|
|
6141
|
-
|
|
6342
|
+
level: string;
|
|
6142
6343
|
startTime: Date;
|
|
6143
6344
|
isError: boolean;
|
|
6144
6345
|
isPartial: boolean;
|
|
6145
|
-
level: string;
|
|
6146
|
-
environmentType: string;
|
|
6147
6346
|
output?: unknown;
|
|
6148
6347
|
properties?: Record<string, any> | undefined;
|
|
6149
6348
|
taskSlug?: string | undefined;
|
|
@@ -6153,6 +6352,7 @@ export declare const RetrieveRunTraceSpanSchema: z.ZodObject<{
|
|
|
6153
6352
|
queueName?: string | undefined;
|
|
6154
6353
|
machinePreset?: string | undefined;
|
|
6155
6354
|
};
|
|
6355
|
+
runId: string;
|
|
6156
6356
|
parentId?: string | undefined;
|
|
6157
6357
|
}>;
|
|
6158
6358
|
export type RetrieveRunTraceSpan = z.infer<typeof RetrieveRunTraceSpanSchema> & {
|
|
@@ -6166,17 +6366,15 @@ export declare const RetrieveRunTraceResponseBody: z.ZodObject<{
|
|
|
6166
6366
|
}, "strip", z.ZodTypeAny, {
|
|
6167
6367
|
traceId: string;
|
|
6168
6368
|
rootSpan: {
|
|
6169
|
-
message: string;
|
|
6170
6369
|
id: string;
|
|
6171
6370
|
data: {
|
|
6371
|
+
message: string;
|
|
6172
6372
|
duration: number;
|
|
6173
6373
|
isCancelled: boolean;
|
|
6174
|
-
|
|
6374
|
+
level: string;
|
|
6175
6375
|
startTime: Date;
|
|
6176
6376
|
isError: boolean;
|
|
6177
6377
|
isPartial: boolean;
|
|
6178
|
-
level: string;
|
|
6179
|
-
environmentType: string;
|
|
6180
6378
|
output?: unknown;
|
|
6181
6379
|
properties?: Record<string, any> | undefined;
|
|
6182
6380
|
taskSlug?: string | undefined;
|
|
@@ -6186,6 +6384,7 @@ export declare const RetrieveRunTraceResponseBody: z.ZodObject<{
|
|
|
6186
6384
|
queueName?: string | undefined;
|
|
6187
6385
|
machinePreset?: string | undefined;
|
|
6188
6386
|
};
|
|
6387
|
+
runId: string;
|
|
6189
6388
|
parentId?: string | undefined;
|
|
6190
6389
|
} & {
|
|
6191
6390
|
children: Array<RetrieveRunTraceSpan>;
|
|
@@ -6193,17 +6392,15 @@ export declare const RetrieveRunTraceResponseBody: z.ZodObject<{
|
|
|
6193
6392
|
}, {
|
|
6194
6393
|
traceId: string;
|
|
6195
6394
|
rootSpan: {
|
|
6196
|
-
message: string;
|
|
6197
6395
|
id: string;
|
|
6198
6396
|
data: {
|
|
6397
|
+
message: string;
|
|
6199
6398
|
duration: number;
|
|
6200
6399
|
isCancelled: boolean;
|
|
6201
|
-
|
|
6400
|
+
level: string;
|
|
6202
6401
|
startTime: Date;
|
|
6203
6402
|
isError: boolean;
|
|
6204
6403
|
isPartial: boolean;
|
|
6205
|
-
level: string;
|
|
6206
|
-
environmentType: string;
|
|
6207
6404
|
output?: unknown;
|
|
6208
6405
|
properties?: Record<string, any> | undefined;
|
|
6209
6406
|
taskSlug?: string | undefined;
|
|
@@ -6213,6 +6410,7 @@ export declare const RetrieveRunTraceResponseBody: z.ZodObject<{
|
|
|
6213
6410
|
queueName?: string | undefined;
|
|
6214
6411
|
machinePreset?: string | undefined;
|
|
6215
6412
|
};
|
|
6413
|
+
runId: string;
|
|
6216
6414
|
parentId?: string | undefined;
|
|
6217
6415
|
} & {
|
|
6218
6416
|
children: Array<RetrieveRunTraceSpan>;
|
|
@@ -6222,17 +6420,15 @@ export declare const RetrieveRunTraceResponseBody: z.ZodObject<{
|
|
|
6222
6420
|
trace: {
|
|
6223
6421
|
traceId: string;
|
|
6224
6422
|
rootSpan: {
|
|
6225
|
-
message: string;
|
|
6226
6423
|
id: string;
|
|
6227
6424
|
data: {
|
|
6425
|
+
message: string;
|
|
6228
6426
|
duration: number;
|
|
6229
6427
|
isCancelled: boolean;
|
|
6230
|
-
|
|
6428
|
+
level: string;
|
|
6231
6429
|
startTime: Date;
|
|
6232
6430
|
isError: boolean;
|
|
6233
6431
|
isPartial: boolean;
|
|
6234
|
-
level: string;
|
|
6235
|
-
environmentType: string;
|
|
6236
6432
|
output?: unknown;
|
|
6237
6433
|
properties?: Record<string, any> | undefined;
|
|
6238
6434
|
taskSlug?: string | undefined;
|
|
@@ -6242,6 +6438,7 @@ export declare const RetrieveRunTraceResponseBody: z.ZodObject<{
|
|
|
6242
6438
|
queueName?: string | undefined;
|
|
6243
6439
|
machinePreset?: string | undefined;
|
|
6244
6440
|
};
|
|
6441
|
+
runId: string;
|
|
6245
6442
|
parentId?: string | undefined;
|
|
6246
6443
|
} & {
|
|
6247
6444
|
children: Array<RetrieveRunTraceSpan>;
|
|
@@ -6251,17 +6448,15 @@ export declare const RetrieveRunTraceResponseBody: z.ZodObject<{
|
|
|
6251
6448
|
trace: {
|
|
6252
6449
|
traceId: string;
|
|
6253
6450
|
rootSpan: {
|
|
6254
|
-
message: string;
|
|
6255
6451
|
id: string;
|
|
6256
6452
|
data: {
|
|
6453
|
+
message: string;
|
|
6257
6454
|
duration: number;
|
|
6258
6455
|
isCancelled: boolean;
|
|
6259
|
-
|
|
6456
|
+
level: string;
|
|
6260
6457
|
startTime: Date;
|
|
6261
6458
|
isError: boolean;
|
|
6262
6459
|
isPartial: boolean;
|
|
6263
|
-
level: string;
|
|
6264
|
-
environmentType: string;
|
|
6265
6460
|
output?: unknown;
|
|
6266
6461
|
properties?: Record<string, any> | undefined;
|
|
6267
6462
|
taskSlug?: string | undefined;
|
|
@@ -6271,6 +6466,7 @@ export declare const RetrieveRunTraceResponseBody: z.ZodObject<{
|
|
|
6271
6466
|
queueName?: string | undefined;
|
|
6272
6467
|
machinePreset?: string | undefined;
|
|
6273
6468
|
};
|
|
6469
|
+
runId: string;
|
|
6274
6470
|
parentId?: string | undefined;
|
|
6275
6471
|
} & {
|
|
6276
6472
|
children: Array<RetrieveRunTraceSpan>;
|
|
@@ -6278,3 +6474,22 @@ export declare const RetrieveRunTraceResponseBody: z.ZodObject<{
|
|
|
6278
6474
|
};
|
|
6279
6475
|
}>;
|
|
6280
6476
|
export type RetrieveRunTraceResponseBody = z.infer<typeof RetrieveRunTraceResponseBody>;
|
|
6477
|
+
export declare const CreateStreamResponseBody: z.ZodObject<{
|
|
6478
|
+
version: z.ZodString;
|
|
6479
|
+
}, "strip", z.ZodTypeAny, {
|
|
6480
|
+
version: string;
|
|
6481
|
+
}, {
|
|
6482
|
+
version: string;
|
|
6483
|
+
}>;
|
|
6484
|
+
export type CreateStreamResponseBody = z.infer<typeof CreateStreamResponseBody>;
|
|
6485
|
+
export declare const AppendToStreamResponseBody: z.ZodObject<{
|
|
6486
|
+
ok: z.ZodBoolean;
|
|
6487
|
+
message: z.ZodOptional<z.ZodString>;
|
|
6488
|
+
}, "strip", z.ZodTypeAny, {
|
|
6489
|
+
ok: boolean;
|
|
6490
|
+
message?: string | undefined;
|
|
6491
|
+
}, {
|
|
6492
|
+
ok: boolean;
|
|
6493
|
+
message?: string | undefined;
|
|
6494
|
+
}>;
|
|
6495
|
+
export type AppendToStreamResponseBody = z.infer<typeof AppendToStreamResponseBody>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.RetrieveRunTraceResponseBody = exports.RetrieveRunTraceSpan = exports.RetrieveRunTraceSpanSchema = exports.ApiBranchListResponseBody = exports.ApiDeploymentListResponseItem = exports.ApiDeploymentListSearchParams = exports.ApiDeploymentListOptions = exports.ApiDeploymentListParams = exports.WaitForDurationResponseBody = void 0;
|
|
3
|
+
exports.DeploymentEvent = exports.DeploymentFinalizedEvent = exports.DeploymentLogEvent = exports.GetLatestDeploymentResponseBody = exports.GetDeploymentResponseBody = exports.PromoteDeploymentResponseBody = exports.FailDeploymentResponseBody = exports.FailDeploymentRequestBody = exports.DeploymentErrorData = exports.GenerateRegistryCredentialsResponseBody = exports.RemoteBuildProviderStatusResponseBody = exports.InitializeDeploymentRequestBody = exports.InitializeDeploymentResponseBody = exports.CreateArtifactResponseBody = exports.CreateArtifactRequestBody = exports.UpsertBranchResponseBody = exports.UpsertBranchRequestBody = exports.ExternalBuildData = exports.CancelDeploymentRequestBody = exports.ProgressDeploymentRequestBody = exports.FinalizeDeploymentRequestBody = exports.StartDeploymentIndexingResponseBody = exports.StartDeploymentIndexingRequestBody = exports.GetEnvironmentVariablesResponseBody = exports.RescheduleRunRequestBody = exports.AddTagsRequestBody = exports.GetBatchResponseBody = exports.BatchTriggerTaskResponse = exports.BatchTriggerTaskV3Response = exports.BatchTriggerTaskV3RequestBody = exports.BatchTriggerTaskV2Response = exports.BatchTriggerTaskV2RequestBody = exports.BatchTriggerTaskItem = exports.BatchTriggerTaskRequestBody = exports.TriggerTaskResponse = exports.TriggerTaskRequestBody = exports.RunTags = exports.CreateBackgroundWorkerResponse = exports.CreateBackgroundWorkerRequestBody = exports.GetJWTResponse = exports.GetJWTRequestBody = exports.GetWorkerByTagResponse = exports.GetWorkerTaskResponse = exports.GetProjectEnvResponse = exports.CreateProjectRequestBody = exports.GetOrgsResponseBody = exports.GetProjectsResponseBody = exports.GetProjectResponseBody = exports.WhoAmIResponseSchema = exports.RunEngineVersion = void 0;
|
|
4
|
+
exports.WaitpointListTokenItem = exports.WaitpointTokenItem = exports.WaitpointTokenStatus = exports.waitpointTokenStatuses = exports.CreateWaitpointTokenResponseBody = exports.CreateWaitpointTokenRequestBody = exports.TimePeriod = exports.SubscribeRealtimeStreamChunkRawShape = exports.RetrieveBatchV2Response = exports.RetrieveBatchResponse = exports.BatchStatus = exports.SubscribeRunRawShape = exports.UpdateMetadataResponseBody = exports.UpdateMetadataRequestBody = exports.EnvironmentVariableWithSecret = exports.EnvironmentVariables = exports.EnvironmentVariable = exports.EnvironmentVariableValue = exports.EnvironmentVariableResponseBody = exports.ImportEnvironmentVariablesRequestBody = exports.UpdateEnvironmentVariableRequestBody = exports.CreateEnvironmentVariableRequestBody = exports.ListRunResponse = exports.ListRunResponseItem = exports.RetrieveRunResponse = exports.RelatedRunDetails = exports.TriggerFunction = exports.RunScheduleDetails = exports.RunEnvironmentDetails = exports.AttemptStatus = exports.RunStatus = exports.TimezonesResult = exports.ListScheduleOptions = exports.ListSchedulesResult = exports.DeletedScheduleObject = exports.ScheduleObject = exports.ScheduleGenerator = exports.UpdateScheduleOptions = exports.CreateScheduleOptions = exports.ScheduledTaskPayload = exports.ScheduleType = exports.CanceledRunResponse = exports.ReplayRunResponse = exports.DevDequeueResponseBody = exports.DevDequeueRequestBody = exports.DevConfigResponseBody = exports.WorkersCreateResponseBody = exports.WorkersCreateRequestBody = exports.WorkersListResponseBody = exports.CreateUploadPayloadUrlResponseBody = void 0;
|
|
5
|
+
exports.AppendToStreamResponseBody = exports.CreateStreamResponseBody = exports.RetrieveRunTraceResponseBody = exports.RetrieveRunTraceSpan = exports.RetrieveRunTraceSpanSchema = exports.ApiBranchListResponseBody = exports.ApiDeploymentListResponseItem = exports.ApiDeploymentListSearchParams = exports.ApiDeploymentListOptions = exports.ApiDeploymentListParams = exports.WaitForDurationResponseBody = exports.WaitForDurationRequestBody = exports.WaitForWaitpointTokenResponseBody = exports.CompleteWaitpointTokenResponseBody = exports.CompleteWaitpointTokenRequestBody = exports.WaitpointRetrieveTokenResponse = void 0;
|
|
6
6
|
exports.isWaitpointOutputTimeout = isWaitpointOutputTimeout;
|
|
7
7
|
exports.timeoutError = timeoutError;
|
|
8
8
|
const zod_1 = require("zod");
|
|
@@ -300,6 +300,17 @@ exports.UpsertBranchRequestBody = zod_1.z.object({
|
|
|
300
300
|
exports.UpsertBranchResponseBody = zod_1.z.object({
|
|
301
301
|
id: zod_1.z.string(),
|
|
302
302
|
});
|
|
303
|
+
exports.CreateArtifactRequestBody = zod_1.z.object({
|
|
304
|
+
type: zod_1.z.enum(["deployment_context"]).default("deployment_context"),
|
|
305
|
+
contentType: zod_1.z.string().default("application/gzip"),
|
|
306
|
+
contentLength: zod_1.z.number().optional(),
|
|
307
|
+
});
|
|
308
|
+
exports.CreateArtifactResponseBody = zod_1.z.object({
|
|
309
|
+
artifactKey: zod_1.z.string(),
|
|
310
|
+
uploadUrl: zod_1.z.string(),
|
|
311
|
+
uploadFields: zod_1.z.record(zod_1.z.string()),
|
|
312
|
+
expiresAt: zod_1.z.string().datetime(),
|
|
313
|
+
});
|
|
303
314
|
exports.InitializeDeploymentResponseBody = zod_1.z.object({
|
|
304
315
|
id: zod_1.z.string(),
|
|
305
316
|
contentHash: zod_1.z.string(),
|
|
@@ -308,8 +319,18 @@ exports.InitializeDeploymentResponseBody = zod_1.z.object({
|
|
|
308
319
|
imageTag: zod_1.z.string(),
|
|
309
320
|
imagePlatform: zod_1.z.string(),
|
|
310
321
|
externalBuildData: exports.ExternalBuildData.optional().nullable(),
|
|
322
|
+
eventStream: zod_1.z
|
|
323
|
+
.object({
|
|
324
|
+
s2: zod_1.z.object({
|
|
325
|
+
basin: zod_1.z.string(),
|
|
326
|
+
stream: zod_1.z.string(),
|
|
327
|
+
accessToken: zod_1.z.string(),
|
|
328
|
+
}),
|
|
329
|
+
})
|
|
330
|
+
.optional(),
|
|
311
331
|
});
|
|
312
|
-
exports.InitializeDeploymentRequestBody = zod_1.z
|
|
332
|
+
exports.InitializeDeploymentRequestBody = zod_1.z
|
|
333
|
+
.object({
|
|
313
334
|
contentHash: zod_1.z.string(),
|
|
314
335
|
userId: zod_1.z.string().optional(),
|
|
315
336
|
/** @deprecated This is now determined by the webapp. This is only used to warn users with old CLI versions. */
|
|
@@ -318,7 +339,24 @@ exports.InitializeDeploymentRequestBody = zod_1.z.object({
|
|
|
318
339
|
type: zod_1.z.enum(["MANAGED", "UNMANAGED", "V1"]).optional(),
|
|
319
340
|
runtime: zod_1.z.string().optional(),
|
|
320
341
|
initialStatus: zod_1.z.enum(["PENDING", "BUILDING"]).optional(),
|
|
321
|
-
})
|
|
342
|
+
})
|
|
343
|
+
.and(zod_1.z.preprocess((val) => {
|
|
344
|
+
const obj = val;
|
|
345
|
+
if (!obj || !obj.isNativeBuild) {
|
|
346
|
+
return { ...obj, isNativeBuild: false };
|
|
347
|
+
}
|
|
348
|
+
return obj;
|
|
349
|
+
}, zod_1.z.discriminatedUnion("isNativeBuild", [
|
|
350
|
+
zod_1.z.object({
|
|
351
|
+
isNativeBuild: zod_1.z.literal(true),
|
|
352
|
+
skipPromotion: zod_1.z.boolean(),
|
|
353
|
+
artifactKey: zod_1.z.string(),
|
|
354
|
+
configFilePath: zod_1.z.string().optional(),
|
|
355
|
+
}),
|
|
356
|
+
zod_1.z.object({
|
|
357
|
+
isNativeBuild: zod_1.z.literal(false),
|
|
358
|
+
}),
|
|
359
|
+
])));
|
|
322
360
|
exports.RemoteBuildProviderStatusResponseBody = zod_1.z.object({
|
|
323
361
|
status: zod_1.z.enum(["operational", "degraded", "unknown"]),
|
|
324
362
|
message: zod_1.z.string(),
|
|
@@ -381,6 +419,25 @@ exports.GetDeploymentResponseBody = zod_1.z.object({
|
|
|
381
419
|
exports.GetLatestDeploymentResponseBody = exports.GetDeploymentResponseBody.omit({
|
|
382
420
|
worker: true,
|
|
383
421
|
});
|
|
422
|
+
exports.DeploymentLogEvent = zod_1.z.object({
|
|
423
|
+
type: zod_1.z.literal("log"),
|
|
424
|
+
data: zod_1.z.object({
|
|
425
|
+
level: zod_1.z.enum(["debug", "info", "warn", "error"]).optional().default("info"),
|
|
426
|
+
message: zod_1.z.string(),
|
|
427
|
+
}),
|
|
428
|
+
});
|
|
429
|
+
const anyString = zod_1.z.custom((v) => typeof v === "string");
|
|
430
|
+
exports.DeploymentFinalizedEvent = zod_1.z.object({
|
|
431
|
+
type: zod_1.z.literal("finalized"),
|
|
432
|
+
data: zod_1.z.object({
|
|
433
|
+
result: zod_1.z.enum(["succeeded", "failed", "timed_out", "canceled"]).or(anyString),
|
|
434
|
+
message: zod_1.z.string().optional(),
|
|
435
|
+
}),
|
|
436
|
+
});
|
|
437
|
+
exports.DeploymentEvent = zod_1.z.discriminatedUnion("type", [
|
|
438
|
+
exports.DeploymentLogEvent,
|
|
439
|
+
exports.DeploymentFinalizedEvent,
|
|
440
|
+
]);
|
|
384
441
|
exports.CreateUploadPayloadUrlResponseBody = zod_1.z.object({
|
|
385
442
|
presignedUrl: zod_1.z.string(),
|
|
386
443
|
});
|
|
@@ -735,6 +792,7 @@ exports.SubscribeRunRawShape = zod_1.z.object({
|
|
|
735
792
|
outputType: zod_1.z.string().nullish(),
|
|
736
793
|
runTags: zod_1.z.array(zod_1.z.string()).nullish().default([]),
|
|
737
794
|
error: common_js_1.TaskRunError.nullish(),
|
|
795
|
+
realtimeStreams: zod_1.z.array(zod_1.z.string()).nullish().default([]),
|
|
738
796
|
});
|
|
739
797
|
exports.BatchStatus = zod_1.z.enum(["PENDING", "COMPLETED"]);
|
|
740
798
|
exports.RetrieveBatchResponse = zod_1.z.object({
|
|
@@ -942,9 +1000,9 @@ exports.ApiBranchListResponseBody = zod_1.z.object({
|
|
|
942
1000
|
exports.RetrieveRunTraceSpanSchema = zod_1.z.object({
|
|
943
1001
|
id: zod_1.z.string(),
|
|
944
1002
|
parentId: zod_1.z.string().optional(),
|
|
945
|
-
|
|
1003
|
+
runId: zod_1.z.string(),
|
|
946
1004
|
data: zod_1.z.object({
|
|
947
|
-
|
|
1005
|
+
message: zod_1.z.string(),
|
|
948
1006
|
taskSlug: zod_1.z.string().optional(),
|
|
949
1007
|
taskPath: zod_1.z.string().optional(),
|
|
950
1008
|
events: zod_1.z.array(zod_1.z.any()).optional(),
|
|
@@ -954,7 +1012,6 @@ exports.RetrieveRunTraceSpanSchema = zod_1.z.object({
|
|
|
954
1012
|
isPartial: zod_1.z.boolean(),
|
|
955
1013
|
isCancelled: zod_1.z.boolean(),
|
|
956
1014
|
level: zod_1.z.string(),
|
|
957
|
-
environmentType: zod_1.z.string(),
|
|
958
1015
|
workerVersion: zod_1.z.string().optional(),
|
|
959
1016
|
queueName: zod_1.z.string().optional(),
|
|
960
1017
|
machinePreset: zod_1.z.string().optional(),
|
|
@@ -971,4 +1028,11 @@ exports.RetrieveRunTraceResponseBody = zod_1.z.object({
|
|
|
971
1028
|
rootSpan: exports.RetrieveRunTraceSpan,
|
|
972
1029
|
}),
|
|
973
1030
|
});
|
|
1031
|
+
exports.CreateStreamResponseBody = zod_1.z.object({
|
|
1032
|
+
version: zod_1.z.string(),
|
|
1033
|
+
});
|
|
1034
|
+
exports.AppendToStreamResponseBody = zod_1.z.object({
|
|
1035
|
+
ok: zod_1.z.boolean(),
|
|
1036
|
+
message: zod_1.z.string().optional(),
|
|
1037
|
+
});
|
|
974
1038
|
//# sourceMappingURL=api.js.map
|