@@ -12,14 +12,11 @@ import {
1212 CreateEnvironmentVariableRequestBody ,
1313 CreateScheduleOptions ,
1414 CreateUploadPayloadUrlResponseBody ,
15- CreateWaitpointHttpCallbackResponseBody ,
1615 CreateWaitpointTokenRequestBody ,
1716 CreateWaitpointTokenResponseBody ,
1817 DeletedScheduleObject ,
1918 EnvironmentVariableResponseBody ,
20- EnvironmentVariableValue ,
2119 EnvironmentVariableWithSecret ,
22- EnvironmentVariables ,
2320 ListQueueOptions ,
2421 ListRunResponseItem ,
2522 ListScheduleOptions ,
@@ -43,8 +40,10 @@ import {
4340 WaitpointRetrieveTokenResponse ,
4441 WaitpointTokenItem ,
4542} from "../schemas/index.js" ;
43+ import { AsyncIterableStream } from "../streams/asyncIterableStream.js" ;
4644import { taskContext } from "../task-context-api.js" ;
4745import { AnyRunTypes , TriggerJwtOptions } from "../types/tasks.js" ;
46+ import { Prettify } from "../types/utils.js" ;
4847import {
4948 AnyZodFetchOptions ,
5049 ApiPromise ,
@@ -64,9 +63,9 @@ import {
6463 RunShape ,
6564 RunStreamCallback ,
6665 RunSubscription ,
66+ SSEStreamSubscriptionFactory ,
6767 TaskRunShape ,
6868 runShapeStream ,
69- SSEStreamSubscriptionFactory ,
7069} from "./runStream.js" ;
7170import {
7271 CreateEnvironmentVariableParams ,
@@ -77,8 +76,6 @@ import {
7776 SubscribeToRunsQueryParams ,
7877 UpdateEnvironmentVariableParams ,
7978} from "./types.js" ;
80- import { AsyncIterableStream } from "../streams/asyncIterableStream.js" ;
81- import { Prettify } from "../types/utils.js" ;
8279
8380export type CreateWaitpointTokenResponse = Prettify <
8481 CreateWaitpointTokenResponseBody & {
@@ -791,24 +788,6 @@ export class ApiClient {
791788 ) ;
792789 }
793790
794- createWaitpointHttpCallback (
795- options : CreateWaitpointTokenRequestBody ,
796- requestOptions ?: ZodFetchOptions
797- ) {
798- return zodfetch (
799- CreateWaitpointHttpCallbackResponseBody ,
800- `${ this . baseUrl } /engine/v1/waitpoints/http-callback` ,
801- {
802- method : "POST" ,
803- headers : this . #getHeaders( false ) ,
804- body : JSON . stringify ( options ) ,
805- } ,
806- {
807- ...mergeRequestOptions ( this . defaultRequestOptions , requestOptions ) ,
808- }
809- ) as ApiPromise < CreateWaitpointHttpCallbackResponseBody > ;
810- }
811-
812791 async waitForDuration (
813792 runId : string ,
814793 body : WaitForDurationRequestBody ,
0 commit comments