@outputai/cli 0.2.1-next.7fd86e7.0 → 0.2.1-next.f1502fb.0

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.
@@ -257,9 +257,9 @@ export interface ResetWorkflowResponse {
257
257
  runId?: string;
258
258
  }
259
259
  /**
260
- * Invalid request body or query (validation failed)
260
+ * Invalid request body, query, or pagination token
261
261
  */
262
- export type BadRequestResponse = ValidationErrorResponse;
262
+ export type BadRequestResponse = ValidationErrorResponse | ErrorResponse;
263
263
  /**
264
264
  * Workflow execution, workflow type, or catalog not found
265
265
  */
@@ -344,6 +344,86 @@ export type PostWorkflowIdRunsRidTerminateBody = {
344
344
  export type PostWorkflowIdTerminateBody = {
345
345
  reason?: string;
346
346
  };
347
+ export type GetWorkflowIdHistoryParams = {
348
+ /**
349
+ * Specific run ID. Required when using pageToken.
350
+ */
351
+ runId?: string;
352
+ /**
353
+ * Number of events per page
354
+ * @minimum 1
355
+ * @maximum 50
356
+ */
357
+ pageSize?: number;
358
+ /**
359
+ * Base64 pagination token from previous response
360
+ */
361
+ pageToken?: string;
362
+ /**
363
+ * Include decoded input/output payloads in events
364
+ */
365
+ includePayloads?: boolean;
366
+ };
367
+ /**
368
+ * Workflow metadata (null on subsequent pages)
369
+ * @nullable
370
+ */
371
+ export type GetWorkflowIdHistory200Workflow = {
372
+ [key: string]: unknown;
373
+ } | null;
374
+ export type GetWorkflowIdHistory200EventsItem = {
375
+ [key: string]: unknown;
376
+ };
377
+ export type GetWorkflowIdHistory200 = {
378
+ /**
379
+ * Workflow metadata (null on subsequent pages)
380
+ * @nullable
381
+ */
382
+ workflow?: GetWorkflowIdHistory200Workflow;
383
+ events?: GetWorkflowIdHistory200EventsItem[];
384
+ /** Resolved run ID. Echo this value as the runId query parameter when fetching subsequent pages. */
385
+ runId?: string;
386
+ /** @nullable */
387
+ nextPageToken?: string | null;
388
+ };
389
+ export type GetWorkflowIdRunsRidHistoryParams = {
390
+ /**
391
+ * Number of events per page
392
+ * @minimum 1
393
+ * @maximum 50
394
+ */
395
+ pageSize?: number;
396
+ /**
397
+ * Base64 pagination token from previous response
398
+ */
399
+ pageToken?: string;
400
+ /**
401
+ * Include decoded input/output payloads in events
402
+ */
403
+ includePayloads?: boolean;
404
+ };
405
+ /**
406
+ * Workflow metadata (null on subsequent pages)
407
+ * @nullable
408
+ */
409
+ export type GetWorkflowIdRunsRidHistory200Workflow = {
410
+ [key: string]: unknown;
411
+ } | null;
412
+ export type GetWorkflowIdRunsRidHistory200EventsItem = {
413
+ [key: string]: unknown;
414
+ };
415
+ export type GetWorkflowIdRunsRidHistory200 = {
416
+ /**
417
+ * Workflow metadata (null on subsequent pages)
418
+ * @nullable
419
+ */
420
+ workflow?: GetWorkflowIdRunsRidHistory200Workflow;
421
+ events?: GetWorkflowIdRunsRidHistory200EventsItem[];
422
+ /** The pinned run ID */
423
+ runId?: string;
424
+ /** @nullable */
425
+ nextPageToken?: string | null;
426
+ };
347
427
  export type GetWorkflowCatalogId200 = {
348
428
  /** Each workflow available in this catalog */
349
429
  workflows?: Workflow[];
@@ -854,6 +934,63 @@ export type getWorkflowIdRunsRidTraceLogResponseError = (getWorkflowIdRunsRidTra
854
934
  export type getWorkflowIdRunsRidTraceLogResponse = (getWorkflowIdRunsRidTraceLogResponseSuccess | getWorkflowIdRunsRidTraceLogResponseError);
855
935
  export declare const getGetWorkflowIdRunsRidTraceLogUrl: (id: string, rid: string) => string;
856
936
  export declare const getWorkflowIdRunsRidTraceLog: (id: string, rid: string, options?: ApiRequestOptions) => Promise<getWorkflowIdRunsRidTraceLogResponse>;
937
+ /**
938
+ * Returns decoded Temporal history events with optional payload inclusion. First page includes workflow metadata; subsequent pages return events only.
939
+ * @summary Get paginated workflow execution history
940
+ */
941
+ export type getWorkflowIdHistoryResponse200 = {
942
+ data: GetWorkflowIdHistory200;
943
+ status: 200;
944
+ };
945
+ export type getWorkflowIdHistoryResponse400 = {
946
+ data: BadRequestResponse;
947
+ status: 400;
948
+ };
949
+ export type getWorkflowIdHistoryResponse404 = {
950
+ data: NotFoundResponse;
951
+ status: 404;
952
+ };
953
+ export type getWorkflowIdHistoryResponse500 = {
954
+ data: InternalServerErrorResponse;
955
+ status: 500;
956
+ };
957
+ export type getWorkflowIdHistoryResponseSuccess = (getWorkflowIdHistoryResponse200) & {
958
+ headers: Headers;
959
+ };
960
+ export type getWorkflowIdHistoryResponseError = (getWorkflowIdHistoryResponse400 | getWorkflowIdHistoryResponse404 | getWorkflowIdHistoryResponse500) & {
961
+ headers: Headers;
962
+ };
963
+ export type getWorkflowIdHistoryResponse = (getWorkflowIdHistoryResponseSuccess | getWorkflowIdHistoryResponseError);
964
+ export declare const getGetWorkflowIdHistoryUrl: (id: string, params?: GetWorkflowIdHistoryParams) => string;
965
+ export declare const getWorkflowIdHistory: (id: string, params?: GetWorkflowIdHistoryParams, options?: ApiRequestOptions) => Promise<getWorkflowIdHistoryResponse>;
966
+ /**
967
+ * @summary Get paginated workflow execution history for a specific run
968
+ */
969
+ export type getWorkflowIdRunsRidHistoryResponse200 = {
970
+ data: GetWorkflowIdRunsRidHistory200;
971
+ status: 200;
972
+ };
973
+ export type getWorkflowIdRunsRidHistoryResponse400 = {
974
+ data: BadRequestResponse;
975
+ status: 400;
976
+ };
977
+ export type getWorkflowIdRunsRidHistoryResponse404 = {
978
+ data: NotFoundResponse;
979
+ status: 404;
980
+ };
981
+ export type getWorkflowIdRunsRidHistoryResponse500 = {
982
+ data: InternalServerErrorResponse;
983
+ status: 500;
984
+ };
985
+ export type getWorkflowIdRunsRidHistoryResponseSuccess = (getWorkflowIdRunsRidHistoryResponse200) & {
986
+ headers: Headers;
987
+ };
988
+ export type getWorkflowIdRunsRidHistoryResponseError = (getWorkflowIdRunsRidHistoryResponse400 | getWorkflowIdRunsRidHistoryResponse404 | getWorkflowIdRunsRidHistoryResponse500) & {
989
+ headers: Headers;
990
+ };
991
+ export type getWorkflowIdRunsRidHistoryResponse = (getWorkflowIdRunsRidHistoryResponseSuccess | getWorkflowIdRunsRidHistoryResponseError);
992
+ export declare const getGetWorkflowIdRunsRidHistoryUrl: (id: string, rid: string, params?: GetWorkflowIdRunsRidHistoryParams) => string;
993
+ export declare const getWorkflowIdRunsRidHistory: (id: string, rid: string, params?: GetWorkflowIdRunsRidHistoryParams, options?: ApiRequestOptions) => Promise<getWorkflowIdRunsRidHistoryResponse>;
857
994
  /**
858
995
  * @summary Get a specific workflow catalog by ID
859
996
  */
@@ -194,6 +194,38 @@ export const getWorkflowIdRunsRidTraceLog = async (id, rid, options) => {
194
194
  method: 'GET'
195
195
  });
196
196
  };
197
+ export const getGetWorkflowIdHistoryUrl = (id, params) => {
198
+ const normalizedParams = new URLSearchParams();
199
+ Object.entries(params || {}).forEach(([key, value]) => {
200
+ if (value !== undefined) {
201
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
202
+ }
203
+ });
204
+ const stringifiedParams = normalizedParams.toString();
205
+ return stringifiedParams.length > 0 ? `/workflow/${id}/history?${stringifiedParams}` : `/workflow/${id}/history`;
206
+ };
207
+ export const getWorkflowIdHistory = async (id, params, options) => {
208
+ return customFetchInstance(getGetWorkflowIdHistoryUrl(id, params), {
209
+ ...options,
210
+ method: 'GET'
211
+ });
212
+ };
213
+ export const getGetWorkflowIdRunsRidHistoryUrl = (id, rid, params) => {
214
+ const normalizedParams = new URLSearchParams();
215
+ Object.entries(params || {}).forEach(([key, value]) => {
216
+ if (value !== undefined) {
217
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
218
+ }
219
+ });
220
+ const stringifiedParams = normalizedParams.toString();
221
+ return stringifiedParams.length > 0 ? `/workflow/${id}/runs/${rid}/history?${stringifiedParams}` : `/workflow/${id}/runs/${rid}/history`;
222
+ };
223
+ export const getWorkflowIdRunsRidHistory = async (id, rid, params, options) => {
224
+ return customFetchInstance(getGetWorkflowIdRunsRidHistoryUrl(id, rid, params), {
225
+ ...options,
226
+ method: 'GET'
227
+ });
228
+ };
197
229
  export const getGetWorkflowCatalogIdUrl = (id) => {
198
230
  return `/workflow/catalog/${id}`;
199
231
  };
@@ -81,7 +81,7 @@ services:
81
81
  condition: service_healthy
82
82
  worker:
83
83
  condition: service_healthy
84
- image: outputai/api:${OUTPUT_API_VERSION:-0.2.1-next.7fd86e7.0}
84
+ image: outputai/api:${OUTPUT_API_VERSION:-0.2.1-next.f1502fb.0}
85
85
  init: true
86
86
  networks:
87
87
  - main
@@ -1,3 +1,3 @@
1
1
  {
2
- "framework": "0.2.1-next.7fd86e7.0"
2
+ "framework": "0.2.1-next.f1502fb.0"
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@outputai/cli",
3
- "version": "0.2.1-next.7fd86e7.0",
3
+ "version": "0.2.1-next.f1502fb.0",
4
4
  "description": "CLI for Output.ai workflow generation",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -36,9 +36,9 @@
36
36
  "semver": "7.7.4",
37
37
  "undici": "8.0.2",
38
38
  "yaml": "^2.8.3",
39
- "@outputai/evals": "0.2.1-next.7fd86e7.0",
40
- "@outputai/credentials": "0.2.1-next.7fd86e7.0",
41
- "@outputai/llm": "0.2.1-next.7fd86e7.0"
39
+ "@outputai/credentials": "0.2.1-next.f1502fb.0",
40
+ "@outputai/evals": "0.2.1-next.f1502fb.0",
41
+ "@outputai/llm": "0.2.1-next.f1502fb.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/cli-progress": "3.11.6",