@trigger.dev/core 4.4.3 → 4.4.5
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/core.d.ts +3 -1
- package/dist/commonjs/v3/apiClient/core.js +1 -0
- package/dist/commonjs/v3/apiClient/core.js.map +1 -1
- package/dist/commonjs/v3/apiClient/index.d.ts +104 -7
- package/dist/commonjs/v3/apiClient/index.js +64 -3
- package/dist/commonjs/v3/apiClient/index.js.map +1 -1
- package/dist/commonjs/v3/config.d.ts +18 -0
- package/dist/commonjs/v3/errors.d.ts +6 -0
- package/dist/commonjs/v3/errors.js +72 -11
- package/dist/commonjs/v3/errors.js.map +1 -1
- package/dist/commonjs/v3/isomorphic/friendlyId.d.ts +1 -0
- package/dist/commonjs/v3/isomorphic/friendlyId.js +2 -1
- package/dist/commonjs/v3/isomorphic/friendlyId.js.map +1 -1
- package/dist/commonjs/v3/otel/utils.js +30 -5
- package/dist/commonjs/v3/otel/utils.js.map +1 -1
- package/dist/commonjs/v3/resource-catalog/catalog.d.ts +6 -2
- package/dist/commonjs/v3/resource-catalog/index.d.ts +6 -2
- package/dist/commonjs/v3/resource-catalog/index.js +12 -0
- package/dist/commonjs/v3/resource-catalog/index.js.map +1 -1
- package/dist/commonjs/v3/resource-catalog/noopResourceCatalog.d.ts +6 -2
- package/dist/commonjs/v3/resource-catalog/noopResourceCatalog.js +12 -0
- package/dist/commonjs/v3/resource-catalog/noopResourceCatalog.js.map +1 -1
- package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.d.ts +10 -2
- package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.js +51 -0
- package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/consumerPool.js +2 -2
- package/dist/commonjs/v3/runEngineWorker/supervisor/consumerPool.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/consumerPool.test.js +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/consumerPool.test.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/events.d.ts +2 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +17 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/queueConsumer.d.ts +5 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/queueConsumer.js +6 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/queueConsumer.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +107 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/session.js +3 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/session.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +9 -0
- package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +57 -0
- package/dist/commonjs/v3/runtime/sharedRuntimeManager.js +1 -1
- package/dist/commonjs/v3/runtime/sharedRuntimeManager.js.map +1 -1
- package/dist/commonjs/v3/schemas/api.d.ts +1502 -90
- package/dist/commonjs/v3/schemas/api.js +318 -3
- package/dist/commonjs/v3/schemas/api.js.map +1 -1
- package/dist/commonjs/v3/schemas/build.d.ts +196 -32
- package/dist/commonjs/v3/schemas/build.js +1 -0
- package/dist/commonjs/v3/schemas/build.js.map +1 -1
- package/dist/commonjs/v3/schemas/checkpoints.d.ts +50 -0
- package/dist/commonjs/v3/schemas/common.d.ts +26 -0
- package/dist/commonjs/v3/schemas/common.js +2 -0
- package/dist/commonjs/v3/schemas/common.js.map +1 -1
- package/dist/commonjs/v3/schemas/messages.d.ts +252 -0
- package/dist/commonjs/v3/schemas/query.d.ts +296 -2
- package/dist/commonjs/v3/schemas/query.js +56 -1
- package/dist/commonjs/v3/schemas/query.js.map +1 -1
- package/dist/commonjs/v3/schemas/resources.d.ts +93 -0
- package/dist/commonjs/v3/schemas/resources.js +17 -1
- package/dist/commonjs/v3/schemas/resources.js.map +1 -1
- package/dist/commonjs/v3/schemas/runEngine.d.ts +79 -0
- package/dist/commonjs/v3/schemas/runEngine.js +16 -1
- package/dist/commonjs/v3/schemas/runEngine.js.map +1 -1
- package/dist/commonjs/v3/schemas/schemas.d.ts +83 -0
- package/dist/commonjs/v3/schemas/schemas.js +16 -1
- package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
- package/dist/commonjs/v3/schemas/style.d.ts +20 -8
- package/dist/commonjs/v3/schemas/style.js +2 -1
- package/dist/commonjs/v3/schemas/style.js.map +1 -1
- package/dist/commonjs/v3/schemas/webhooks.d.ts +381 -0
- package/dist/commonjs/v3/schemas/webhooks.js +60 -1
- package/dist/commonjs/v3/schemas/webhooks.js.map +1 -1
- 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/taskContext/index.js +1 -0
- package/dist/commonjs/v3/taskContext/index.js.map +1 -1
- package/dist/commonjs/v3/taskContext/otelProcessors.js +5 -0
- package/dist/commonjs/v3/taskContext/otelProcessors.js.map +1 -1
- package/dist/commonjs/v3/tracer.js +1 -4
- package/dist/commonjs/v3/tracer.js.map +1 -1
- package/dist/commonjs/v3/types/tasks.d.ts +29 -1
- package/dist/commonjs/v3/types/tasks.js.map +1 -1
- package/dist/commonjs/v3/utils/ioSerialization.js +4 -1
- package/dist/commonjs/v3/utils/ioSerialization.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/v3/apiClient/core.d.ts +3 -1
- package/dist/esm/v3/apiClient/core.js +1 -0
- package/dist/esm/v3/apiClient/core.js.map +1 -1
- package/dist/esm/v3/apiClient/index.d.ts +104 -7
- package/dist/esm/v3/apiClient/index.js +65 -4
- package/dist/esm/v3/apiClient/index.js.map +1 -1
- package/dist/esm/v3/config.d.ts +18 -0
- package/dist/esm/v3/errors.d.ts +6 -0
- package/dist/esm/v3/errors.js +70 -11
- package/dist/esm/v3/errors.js.map +1 -1
- package/dist/esm/v3/isomorphic/friendlyId.d.ts +1 -0
- package/dist/esm/v3/isomorphic/friendlyId.js +1 -0
- package/dist/esm/v3/isomorphic/friendlyId.js.map +1 -1
- package/dist/esm/v3/otel/utils.js +30 -5
- package/dist/esm/v3/otel/utils.js.map +1 -1
- package/dist/esm/v3/resource-catalog/catalog.d.ts +6 -2
- package/dist/esm/v3/resource-catalog/index.d.ts +6 -2
- package/dist/esm/v3/resource-catalog/index.js +12 -0
- package/dist/esm/v3/resource-catalog/index.js.map +1 -1
- package/dist/esm/v3/resource-catalog/noopResourceCatalog.d.ts +6 -2
- package/dist/esm/v3/resource-catalog/noopResourceCatalog.js +12 -0
- package/dist/esm/v3/resource-catalog/noopResourceCatalog.js.map +1 -1
- package/dist/esm/v3/resource-catalog/standardResourceCatalog.d.ts +10 -2
- package/dist/esm/v3/resource-catalog/standardResourceCatalog.js +51 -0
- package/dist/esm/v3/resource-catalog/standardResourceCatalog.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/consumerPool.js +2 -2
- package/dist/esm/v3/runEngineWorker/supervisor/consumerPool.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/consumerPool.test.js +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/consumerPool.test.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/events.d.ts +2 -0
- package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +17 -0
- package/dist/esm/v3/runEngineWorker/supervisor/queueConsumer.d.ts +5 -1
- package/dist/esm/v3/runEngineWorker/supervisor/queueConsumer.js +6 -1
- package/dist/esm/v3/runEngineWorker/supervisor/queueConsumer.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +107 -0
- package/dist/esm/v3/runEngineWorker/supervisor/session.js +3 -1
- package/dist/esm/v3/runEngineWorker/supervisor/session.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/workload/http.d.ts +9 -0
- package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +57 -0
- package/dist/esm/v3/runtime/sharedRuntimeManager.js +1 -1
- package/dist/esm/v3/runtime/sharedRuntimeManager.js.map +1 -1
- package/dist/esm/v3/schemas/api.d.ts +1502 -90
- package/dist/esm/v3/schemas/api.js +316 -2
- package/dist/esm/v3/schemas/api.js.map +1 -1
- package/dist/esm/v3/schemas/build.d.ts +196 -32
- package/dist/esm/v3/schemas/build.js +2 -1
- package/dist/esm/v3/schemas/build.js.map +1 -1
- package/dist/esm/v3/schemas/checkpoints.d.ts +50 -0
- package/dist/esm/v3/schemas/common.d.ts +26 -0
- package/dist/esm/v3/schemas/common.js +2 -0
- package/dist/esm/v3/schemas/common.js.map +1 -1
- package/dist/esm/v3/schemas/messages.d.ts +252 -0
- package/dist/esm/v3/schemas/query.d.ts +296 -2
- package/dist/esm/v3/schemas/query.js +55 -0
- package/dist/esm/v3/schemas/query.js.map +1 -1
- package/dist/esm/v3/schemas/resources.d.ts +93 -0
- package/dist/esm/v3/schemas/resources.js +16 -0
- package/dist/esm/v3/schemas/resources.js.map +1 -1
- package/dist/esm/v3/schemas/runEngine.d.ts +79 -0
- package/dist/esm/v3/schemas/runEngine.js +15 -0
- package/dist/esm/v3/schemas/runEngine.js.map +1 -1
- package/dist/esm/v3/schemas/schemas.d.ts +83 -0
- package/dist/esm/v3/schemas/schemas.js +15 -0
- package/dist/esm/v3/schemas/schemas.js.map +1 -1
- package/dist/esm/v3/schemas/style.d.ts +20 -8
- package/dist/esm/v3/schemas/style.js +2 -1
- package/dist/esm/v3/schemas/style.js.map +1 -1
- package/dist/esm/v3/schemas/webhooks.d.ts +381 -0
- package/dist/esm/v3/schemas/webhooks.js +59 -0
- package/dist/esm/v3/schemas/webhooks.js.map +1 -1
- 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/taskContext/index.js +1 -0
- package/dist/esm/v3/taskContext/index.js.map +1 -1
- package/dist/esm/v3/taskContext/otelProcessors.js +5 -0
- package/dist/esm/v3/taskContext/otelProcessors.js.map +1 -1
- package/dist/esm/v3/tracer.js +2 -5
- package/dist/esm/v3/tracer.js.map +1 -1
- package/dist/esm/v3/types/tasks.d.ts +29 -1
- package/dist/esm/v3/types/tasks.js.map +1 -1
- package/dist/esm/v3/utils/ioSerialization.js +4 -1
- package/dist/esm/v3/utils/ioSerialization.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +2 -2
|
@@ -413,6 +413,7 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
413
413
|
environments?: ("PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW")[] | undefined;
|
|
414
414
|
}>>;
|
|
415
415
|
maxDuration: z.ZodOptional<z.ZodNumber>;
|
|
416
|
+
ttl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
416
417
|
payloadSchema: z.ZodOptional<z.ZodUnknown>;
|
|
417
418
|
}, "strip", z.ZodTypeAny, {
|
|
418
419
|
id: string;
|
|
@@ -439,6 +440,7 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
439
440
|
} | undefined;
|
|
440
441
|
} | undefined;
|
|
441
442
|
description?: string | undefined;
|
|
443
|
+
ttl?: string | number | undefined;
|
|
442
444
|
triggerSource?: string | undefined;
|
|
443
445
|
schedule?: {
|
|
444
446
|
cron: string;
|
|
@@ -471,6 +473,7 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
471
473
|
} | undefined;
|
|
472
474
|
} | undefined;
|
|
473
475
|
description?: string | undefined;
|
|
476
|
+
ttl?: string | number | undefined;
|
|
474
477
|
triggerSource?: string | undefined;
|
|
475
478
|
schedule?: {
|
|
476
479
|
cron: string;
|
|
@@ -479,6 +482,34 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
479
482
|
} | undefined;
|
|
480
483
|
payloadSchema?: unknown;
|
|
481
484
|
}>, "many">;
|
|
485
|
+
prompts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
486
|
+
id: z.ZodString;
|
|
487
|
+
description: z.ZodOptional<z.ZodString>;
|
|
488
|
+
filePath: z.ZodString;
|
|
489
|
+
exportName: z.ZodOptional<z.ZodString>;
|
|
490
|
+
content: z.ZodOptional<z.ZodString>;
|
|
491
|
+
model: z.ZodOptional<z.ZodString>;
|
|
492
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
493
|
+
variableSchema: z.ZodOptional<z.ZodUnknown>;
|
|
494
|
+
}, "strip", z.ZodTypeAny, {
|
|
495
|
+
id: string;
|
|
496
|
+
filePath: string;
|
|
497
|
+
exportName?: string | undefined;
|
|
498
|
+
description?: string | undefined;
|
|
499
|
+
content?: string | undefined;
|
|
500
|
+
model?: string | undefined;
|
|
501
|
+
config?: Record<string, unknown> | undefined;
|
|
502
|
+
variableSchema?: unknown;
|
|
503
|
+
}, {
|
|
504
|
+
id: string;
|
|
505
|
+
filePath: string;
|
|
506
|
+
exportName?: string | undefined;
|
|
507
|
+
description?: string | undefined;
|
|
508
|
+
content?: string | undefined;
|
|
509
|
+
model?: string | undefined;
|
|
510
|
+
config?: Record<string, unknown> | undefined;
|
|
511
|
+
variableSchema?: unknown;
|
|
512
|
+
}>, "many">>;
|
|
482
513
|
queues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
483
514
|
name: z.ZodString;
|
|
484
515
|
concurrencyLimit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -535,6 +566,7 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
535
566
|
} | undefined;
|
|
536
567
|
} | undefined;
|
|
537
568
|
description?: string | undefined;
|
|
569
|
+
ttl?: string | number | undefined;
|
|
538
570
|
triggerSource?: string | undefined;
|
|
539
571
|
schedule?: {
|
|
540
572
|
cron: string;
|
|
@@ -550,6 +582,16 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
550
582
|
concurrencyLimit?: number | null | undefined;
|
|
551
583
|
}[] | undefined;
|
|
552
584
|
cliPackageVersion?: string | undefined;
|
|
585
|
+
prompts?: {
|
|
586
|
+
id: string;
|
|
587
|
+
filePath: string;
|
|
588
|
+
exportName?: string | undefined;
|
|
589
|
+
description?: string | undefined;
|
|
590
|
+
content?: string | undefined;
|
|
591
|
+
model?: string | undefined;
|
|
592
|
+
config?: Record<string, unknown> | undefined;
|
|
593
|
+
variableSchema?: unknown;
|
|
594
|
+
}[] | undefined;
|
|
553
595
|
sourceFiles?: {
|
|
554
596
|
filePath: string;
|
|
555
597
|
contentHash: string;
|
|
@@ -584,6 +626,7 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
584
626
|
} | undefined;
|
|
585
627
|
} | undefined;
|
|
586
628
|
description?: string | undefined;
|
|
629
|
+
ttl?: string | number | undefined;
|
|
587
630
|
triggerSource?: string | undefined;
|
|
588
631
|
schedule?: {
|
|
589
632
|
cron: string;
|
|
@@ -599,6 +642,16 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
599
642
|
concurrencyLimit?: number | null | undefined;
|
|
600
643
|
}[] | undefined;
|
|
601
644
|
cliPackageVersion?: string | undefined;
|
|
645
|
+
prompts?: {
|
|
646
|
+
id: string;
|
|
647
|
+
filePath: string;
|
|
648
|
+
exportName?: string | undefined;
|
|
649
|
+
description?: string | undefined;
|
|
650
|
+
content?: string | undefined;
|
|
651
|
+
model?: string | undefined;
|
|
652
|
+
config?: Record<string, unknown> | undefined;
|
|
653
|
+
variableSchema?: unknown;
|
|
654
|
+
}[] | undefined;
|
|
602
655
|
sourceFiles?: {
|
|
603
656
|
filePath: string;
|
|
604
657
|
contentHash: string;
|
|
@@ -639,6 +692,7 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
639
692
|
} | undefined;
|
|
640
693
|
} | undefined;
|
|
641
694
|
description?: string | undefined;
|
|
695
|
+
ttl?: string | number | undefined;
|
|
642
696
|
triggerSource?: string | undefined;
|
|
643
697
|
schedule?: {
|
|
644
698
|
cron: string;
|
|
@@ -654,6 +708,16 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
654
708
|
concurrencyLimit?: number | null | undefined;
|
|
655
709
|
}[] | undefined;
|
|
656
710
|
cliPackageVersion?: string | undefined;
|
|
711
|
+
prompts?: {
|
|
712
|
+
id: string;
|
|
713
|
+
filePath: string;
|
|
714
|
+
exportName?: string | undefined;
|
|
715
|
+
description?: string | undefined;
|
|
716
|
+
content?: string | undefined;
|
|
717
|
+
model?: string | undefined;
|
|
718
|
+
config?: Record<string, unknown> | undefined;
|
|
719
|
+
variableSchema?: unknown;
|
|
720
|
+
}[] | undefined;
|
|
657
721
|
sourceFiles?: {
|
|
658
722
|
filePath: string;
|
|
659
723
|
contentHash: string;
|
|
@@ -695,6 +759,7 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
695
759
|
} | undefined;
|
|
696
760
|
} | undefined;
|
|
697
761
|
description?: string | undefined;
|
|
762
|
+
ttl?: string | number | undefined;
|
|
698
763
|
triggerSource?: string | undefined;
|
|
699
764
|
schedule?: {
|
|
700
765
|
cron: string;
|
|
@@ -710,6 +775,16 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
710
775
|
concurrencyLimit?: number | null | undefined;
|
|
711
776
|
}[] | undefined;
|
|
712
777
|
cliPackageVersion?: string | undefined;
|
|
778
|
+
prompts?: {
|
|
779
|
+
id: string;
|
|
780
|
+
filePath: string;
|
|
781
|
+
exportName?: string | undefined;
|
|
782
|
+
description?: string | undefined;
|
|
783
|
+
content?: string | undefined;
|
|
784
|
+
model?: string | undefined;
|
|
785
|
+
config?: Record<string, unknown> | undefined;
|
|
786
|
+
variableSchema?: unknown;
|
|
787
|
+
}[] | undefined;
|
|
713
788
|
sourceFiles?: {
|
|
714
789
|
filePath: string;
|
|
715
790
|
contentHash: string;
|
|
@@ -858,6 +933,7 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
858
933
|
mode?: "leading" | "trailing" | undefined;
|
|
859
934
|
maxDelay?: string | undefined;
|
|
860
935
|
} | undefined;
|
|
936
|
+
test?: boolean | undefined;
|
|
861
937
|
dependentAttempt?: string | undefined;
|
|
862
938
|
parentAttempt?: string | undefined;
|
|
863
939
|
dependentBatch?: string | undefined;
|
|
@@ -870,7 +946,6 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
870
946
|
scope: "run" | "attempt" | "global";
|
|
871
947
|
} | undefined;
|
|
872
948
|
metadataType?: string | undefined;
|
|
873
|
-
test?: boolean | undefined;
|
|
874
949
|
bulkActionId?: string | undefined;
|
|
875
950
|
}, {
|
|
876
951
|
metadata?: any;
|
|
@@ -896,6 +971,7 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
896
971
|
mode?: "leading" | "trailing" | undefined;
|
|
897
972
|
maxDelay?: string | undefined;
|
|
898
973
|
} | undefined;
|
|
974
|
+
test?: boolean | undefined;
|
|
899
975
|
dependentAttempt?: string | undefined;
|
|
900
976
|
parentAttempt?: string | undefined;
|
|
901
977
|
dependentBatch?: string | undefined;
|
|
@@ -908,7 +984,6 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
908
984
|
scope: "run" | "attempt" | "global";
|
|
909
985
|
} | undefined;
|
|
910
986
|
metadataType?: string | undefined;
|
|
911
|
-
test?: boolean | undefined;
|
|
912
987
|
bulkActionId?: string | undefined;
|
|
913
988
|
}>>;
|
|
914
989
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -936,6 +1011,7 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
936
1011
|
mode?: "leading" | "trailing" | undefined;
|
|
937
1012
|
maxDelay?: string | undefined;
|
|
938
1013
|
} | undefined;
|
|
1014
|
+
test?: boolean | undefined;
|
|
939
1015
|
dependentAttempt?: string | undefined;
|
|
940
1016
|
parentAttempt?: string | undefined;
|
|
941
1017
|
dependentBatch?: string | undefined;
|
|
@@ -948,7 +1024,6 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
948
1024
|
scope: "run" | "attempt" | "global";
|
|
949
1025
|
} | undefined;
|
|
950
1026
|
metadataType?: string | undefined;
|
|
951
|
-
test?: boolean | undefined;
|
|
952
1027
|
bulkActionId?: string | undefined;
|
|
953
1028
|
} | undefined;
|
|
954
1029
|
payload?: any;
|
|
@@ -978,6 +1053,7 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
978
1053
|
mode?: "leading" | "trailing" | undefined;
|
|
979
1054
|
maxDelay?: string | undefined;
|
|
980
1055
|
} | undefined;
|
|
1056
|
+
test?: boolean | undefined;
|
|
981
1057
|
dependentAttempt?: string | undefined;
|
|
982
1058
|
parentAttempt?: string | undefined;
|
|
983
1059
|
dependentBatch?: string | undefined;
|
|
@@ -990,7 +1066,6 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
990
1066
|
scope: "run" | "attempt" | "global";
|
|
991
1067
|
} | undefined;
|
|
992
1068
|
metadataType?: string | undefined;
|
|
993
|
-
test?: boolean | undefined;
|
|
994
1069
|
bulkActionId?: string | undefined;
|
|
995
1070
|
} | undefined;
|
|
996
1071
|
payload?: any;
|
|
@@ -1115,6 +1190,7 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1115
1190
|
mode?: "leading" | "trailing" | undefined;
|
|
1116
1191
|
maxDelay?: string | undefined;
|
|
1117
1192
|
} | undefined;
|
|
1193
|
+
test?: boolean | undefined;
|
|
1118
1194
|
dependentAttempt?: string | undefined;
|
|
1119
1195
|
parentAttempt?: string | undefined;
|
|
1120
1196
|
dependentBatch?: string | undefined;
|
|
@@ -1127,7 +1203,6 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1127
1203
|
scope: "run" | "attempt" | "global";
|
|
1128
1204
|
} | undefined;
|
|
1129
1205
|
metadataType?: string | undefined;
|
|
1130
|
-
test?: boolean | undefined;
|
|
1131
1206
|
bulkActionId?: string | undefined;
|
|
1132
1207
|
}, {
|
|
1133
1208
|
metadata?: any;
|
|
@@ -1153,6 +1228,7 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1153
1228
|
mode?: "leading" | "trailing" | undefined;
|
|
1154
1229
|
maxDelay?: string | undefined;
|
|
1155
1230
|
} | undefined;
|
|
1231
|
+
test?: boolean | undefined;
|
|
1156
1232
|
dependentAttempt?: string | undefined;
|
|
1157
1233
|
parentAttempt?: string | undefined;
|
|
1158
1234
|
dependentBatch?: string | undefined;
|
|
@@ -1165,7 +1241,6 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1165
1241
|
scope: "run" | "attempt" | "global";
|
|
1166
1242
|
} | undefined;
|
|
1167
1243
|
metadataType?: string | undefined;
|
|
1168
|
-
test?: boolean | undefined;
|
|
1169
1244
|
bulkActionId?: string | undefined;
|
|
1170
1245
|
}>>;
|
|
1171
1246
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1193,6 +1268,7 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1193
1268
|
mode?: "leading" | "trailing" | undefined;
|
|
1194
1269
|
maxDelay?: string | undefined;
|
|
1195
1270
|
} | undefined;
|
|
1271
|
+
test?: boolean | undefined;
|
|
1196
1272
|
dependentAttempt?: string | undefined;
|
|
1197
1273
|
parentAttempt?: string | undefined;
|
|
1198
1274
|
dependentBatch?: string | undefined;
|
|
@@ -1205,7 +1281,6 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1205
1281
|
scope: "run" | "attempt" | "global";
|
|
1206
1282
|
} | undefined;
|
|
1207
1283
|
metadataType?: string | undefined;
|
|
1208
|
-
test?: boolean | undefined;
|
|
1209
1284
|
bulkActionId?: string | undefined;
|
|
1210
1285
|
} | undefined;
|
|
1211
1286
|
payload?: any;
|
|
@@ -1235,6 +1310,7 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1235
1310
|
mode?: "leading" | "trailing" | undefined;
|
|
1236
1311
|
maxDelay?: string | undefined;
|
|
1237
1312
|
} | undefined;
|
|
1313
|
+
test?: boolean | undefined;
|
|
1238
1314
|
dependentAttempt?: string | undefined;
|
|
1239
1315
|
parentAttempt?: string | undefined;
|
|
1240
1316
|
dependentBatch?: string | undefined;
|
|
@@ -1247,7 +1323,6 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1247
1323
|
scope: "run" | "attempt" | "global";
|
|
1248
1324
|
} | undefined;
|
|
1249
1325
|
metadataType?: string | undefined;
|
|
1250
|
-
test?: boolean | undefined;
|
|
1251
1326
|
bulkActionId?: string | undefined;
|
|
1252
1327
|
} | undefined;
|
|
1253
1328
|
payload?: any;
|
|
@@ -1280,6 +1355,7 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1280
1355
|
mode?: "leading" | "trailing" | undefined;
|
|
1281
1356
|
maxDelay?: string | undefined;
|
|
1282
1357
|
} | undefined;
|
|
1358
|
+
test?: boolean | undefined;
|
|
1283
1359
|
dependentAttempt?: string | undefined;
|
|
1284
1360
|
parentAttempt?: string | undefined;
|
|
1285
1361
|
dependentBatch?: string | undefined;
|
|
@@ -1292,7 +1368,6 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1292
1368
|
scope: "run" | "attempt" | "global";
|
|
1293
1369
|
} | undefined;
|
|
1294
1370
|
metadataType?: string | undefined;
|
|
1295
|
-
test?: boolean | undefined;
|
|
1296
1371
|
bulkActionId?: string | undefined;
|
|
1297
1372
|
} | undefined;
|
|
1298
1373
|
payload?: any;
|
|
@@ -1325,6 +1400,7 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1325
1400
|
mode?: "leading" | "trailing" | undefined;
|
|
1326
1401
|
maxDelay?: string | undefined;
|
|
1327
1402
|
} | undefined;
|
|
1403
|
+
test?: boolean | undefined;
|
|
1328
1404
|
dependentAttempt?: string | undefined;
|
|
1329
1405
|
parentAttempt?: string | undefined;
|
|
1330
1406
|
dependentBatch?: string | undefined;
|
|
@@ -1337,7 +1413,6 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1337
1413
|
scope: "run" | "attempt" | "global";
|
|
1338
1414
|
} | undefined;
|
|
1339
1415
|
metadataType?: string | undefined;
|
|
1340
|
-
test?: boolean | undefined;
|
|
1341
1416
|
bulkActionId?: string | undefined;
|
|
1342
1417
|
} | undefined;
|
|
1343
1418
|
payload?: any;
|
|
@@ -1425,6 +1500,7 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
|
|
|
1425
1500
|
mode?: "leading" | "trailing" | undefined;
|
|
1426
1501
|
maxDelay?: string | undefined;
|
|
1427
1502
|
} | undefined;
|
|
1503
|
+
test?: boolean | undefined;
|
|
1428
1504
|
parentAttempt?: string | undefined;
|
|
1429
1505
|
lockToVersion?: string | undefined;
|
|
1430
1506
|
idempotencyKeyOptions?: {
|
|
@@ -1432,7 +1508,6 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
|
|
|
1432
1508
|
scope: "run" | "attempt" | "global";
|
|
1433
1509
|
} | undefined;
|
|
1434
1510
|
metadataType?: string | undefined;
|
|
1435
|
-
test?: boolean | undefined;
|
|
1436
1511
|
}, {
|
|
1437
1512
|
metadata?: any;
|
|
1438
1513
|
payloadType?: string | undefined;
|
|
@@ -1456,6 +1531,7 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
|
|
|
1456
1531
|
mode?: "leading" | "trailing" | undefined;
|
|
1457
1532
|
maxDelay?: string | undefined;
|
|
1458
1533
|
} | undefined;
|
|
1534
|
+
test?: boolean | undefined;
|
|
1459
1535
|
parentAttempt?: string | undefined;
|
|
1460
1536
|
lockToVersion?: string | undefined;
|
|
1461
1537
|
idempotencyKeyOptions?: {
|
|
@@ -1463,7 +1539,6 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
|
|
|
1463
1539
|
scope: "run" | "attempt" | "global";
|
|
1464
1540
|
} | undefined;
|
|
1465
1541
|
metadataType?: string | undefined;
|
|
1466
|
-
test?: boolean | undefined;
|
|
1467
1542
|
}>>;
|
|
1468
1543
|
}, "strip", z.ZodTypeAny, {
|
|
1469
1544
|
task: string;
|
|
@@ -1490,6 +1565,7 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
|
|
|
1490
1565
|
mode?: "leading" | "trailing" | undefined;
|
|
1491
1566
|
maxDelay?: string | undefined;
|
|
1492
1567
|
} | undefined;
|
|
1568
|
+
test?: boolean | undefined;
|
|
1493
1569
|
parentAttempt?: string | undefined;
|
|
1494
1570
|
lockToVersion?: string | undefined;
|
|
1495
1571
|
idempotencyKeyOptions?: {
|
|
@@ -1497,7 +1573,6 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
|
|
|
1497
1573
|
scope: "run" | "attempt" | "global";
|
|
1498
1574
|
} | undefined;
|
|
1499
1575
|
metadataType?: string | undefined;
|
|
1500
|
-
test?: boolean | undefined;
|
|
1501
1576
|
} | undefined;
|
|
1502
1577
|
payload?: any;
|
|
1503
1578
|
context?: any;
|
|
@@ -1526,6 +1601,7 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
|
|
|
1526
1601
|
mode?: "leading" | "trailing" | undefined;
|
|
1527
1602
|
maxDelay?: string | undefined;
|
|
1528
1603
|
} | undefined;
|
|
1604
|
+
test?: boolean | undefined;
|
|
1529
1605
|
parentAttempt?: string | undefined;
|
|
1530
1606
|
lockToVersion?: string | undefined;
|
|
1531
1607
|
idempotencyKeyOptions?: {
|
|
@@ -1533,7 +1609,6 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
|
|
|
1533
1609
|
scope: "run" | "attempt" | "global";
|
|
1534
1610
|
} | undefined;
|
|
1535
1611
|
metadataType?: string | undefined;
|
|
1536
|
-
test?: boolean | undefined;
|
|
1537
1612
|
} | undefined;
|
|
1538
1613
|
payload?: any;
|
|
1539
1614
|
context?: any;
|
|
@@ -1619,6 +1694,7 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
|
|
|
1619
1694
|
mode?: "leading" | "trailing" | undefined;
|
|
1620
1695
|
maxDelay?: string | undefined;
|
|
1621
1696
|
} | undefined;
|
|
1697
|
+
test?: boolean | undefined;
|
|
1622
1698
|
parentAttempt?: string | undefined;
|
|
1623
1699
|
lockToVersion?: string | undefined;
|
|
1624
1700
|
idempotencyKeyOptions?: {
|
|
@@ -1626,7 +1702,6 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
|
|
|
1626
1702
|
scope: "run" | "attempt" | "global";
|
|
1627
1703
|
} | undefined;
|
|
1628
1704
|
metadataType?: string | undefined;
|
|
1629
|
-
test?: boolean | undefined;
|
|
1630
1705
|
}, {
|
|
1631
1706
|
metadata?: any;
|
|
1632
1707
|
payloadType?: string | undefined;
|
|
@@ -1650,6 +1725,7 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
|
|
|
1650
1725
|
mode?: "leading" | "trailing" | undefined;
|
|
1651
1726
|
maxDelay?: string | undefined;
|
|
1652
1727
|
} | undefined;
|
|
1728
|
+
test?: boolean | undefined;
|
|
1653
1729
|
parentAttempt?: string | undefined;
|
|
1654
1730
|
lockToVersion?: string | undefined;
|
|
1655
1731
|
idempotencyKeyOptions?: {
|
|
@@ -1657,7 +1733,6 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
|
|
|
1657
1733
|
scope: "run" | "attempt" | "global";
|
|
1658
1734
|
} | undefined;
|
|
1659
1735
|
metadataType?: string | undefined;
|
|
1660
|
-
test?: boolean | undefined;
|
|
1661
1736
|
}>>;
|
|
1662
1737
|
}, "strip", z.ZodTypeAny, {
|
|
1663
1738
|
task: string;
|
|
@@ -1684,6 +1759,7 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
|
|
|
1684
1759
|
mode?: "leading" | "trailing" | undefined;
|
|
1685
1760
|
maxDelay?: string | undefined;
|
|
1686
1761
|
} | undefined;
|
|
1762
|
+
test?: boolean | undefined;
|
|
1687
1763
|
parentAttempt?: string | undefined;
|
|
1688
1764
|
lockToVersion?: string | undefined;
|
|
1689
1765
|
idempotencyKeyOptions?: {
|
|
@@ -1691,7 +1767,6 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
|
|
|
1691
1767
|
scope: "run" | "attempt" | "global";
|
|
1692
1768
|
} | undefined;
|
|
1693
1769
|
metadataType?: string | undefined;
|
|
1694
|
-
test?: boolean | undefined;
|
|
1695
1770
|
} | undefined;
|
|
1696
1771
|
payload?: any;
|
|
1697
1772
|
context?: any;
|
|
@@ -1720,6 +1795,7 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
|
|
|
1720
1795
|
mode?: "leading" | "trailing" | undefined;
|
|
1721
1796
|
maxDelay?: string | undefined;
|
|
1722
1797
|
} | undefined;
|
|
1798
|
+
test?: boolean | undefined;
|
|
1723
1799
|
parentAttempt?: string | undefined;
|
|
1724
1800
|
lockToVersion?: string | undefined;
|
|
1725
1801
|
idempotencyKeyOptions?: {
|
|
@@ -1727,7 +1803,6 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
|
|
|
1727
1803
|
scope: "run" | "attempt" | "global";
|
|
1728
1804
|
} | undefined;
|
|
1729
1805
|
metadataType?: string | undefined;
|
|
1730
|
-
test?: boolean | undefined;
|
|
1731
1806
|
} | undefined;
|
|
1732
1807
|
payload?: any;
|
|
1733
1808
|
context?: any;
|
|
@@ -1770,6 +1845,7 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
|
|
|
1770
1845
|
mode?: "leading" | "trailing" | undefined;
|
|
1771
1846
|
maxDelay?: string | undefined;
|
|
1772
1847
|
} | undefined;
|
|
1848
|
+
test?: boolean | undefined;
|
|
1773
1849
|
parentAttempt?: string | undefined;
|
|
1774
1850
|
lockToVersion?: string | undefined;
|
|
1775
1851
|
idempotencyKeyOptions?: {
|
|
@@ -1777,7 +1853,6 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
|
|
|
1777
1853
|
scope: "run" | "attempt" | "global";
|
|
1778
1854
|
} | undefined;
|
|
1779
1855
|
metadataType?: string | undefined;
|
|
1780
|
-
test?: boolean | undefined;
|
|
1781
1856
|
} | undefined;
|
|
1782
1857
|
payload?: any;
|
|
1783
1858
|
context?: any;
|
|
@@ -1811,6 +1886,7 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
|
|
|
1811
1886
|
mode?: "leading" | "trailing" | undefined;
|
|
1812
1887
|
maxDelay?: string | undefined;
|
|
1813
1888
|
} | undefined;
|
|
1889
|
+
test?: boolean | undefined;
|
|
1814
1890
|
parentAttempt?: string | undefined;
|
|
1815
1891
|
lockToVersion?: string | undefined;
|
|
1816
1892
|
idempotencyKeyOptions?: {
|
|
@@ -1818,7 +1894,6 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
|
|
|
1818
1894
|
scope: "run" | "attempt" | "global";
|
|
1819
1895
|
} | undefined;
|
|
1820
1896
|
metadataType?: string | undefined;
|
|
1821
|
-
test?: boolean | undefined;
|
|
1822
1897
|
} | undefined;
|
|
1823
1898
|
payload?: any;
|
|
1824
1899
|
context?: any;
|
|
@@ -1950,6 +2025,7 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
|
|
|
1950
2025
|
mode?: "leading" | "trailing" | undefined;
|
|
1951
2026
|
maxDelay?: string | undefined;
|
|
1952
2027
|
} | undefined;
|
|
2028
|
+
test?: boolean | undefined;
|
|
1953
2029
|
parentAttempt?: string | undefined;
|
|
1954
2030
|
lockToVersion?: string | undefined;
|
|
1955
2031
|
idempotencyKeyOptions?: {
|
|
@@ -1957,7 +2033,6 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
|
|
|
1957
2033
|
scope: "run" | "attempt" | "global";
|
|
1958
2034
|
} | undefined;
|
|
1959
2035
|
metadataType?: string | undefined;
|
|
1960
|
-
test?: boolean | undefined;
|
|
1961
2036
|
}, {
|
|
1962
2037
|
metadata?: any;
|
|
1963
2038
|
payloadType?: string | undefined;
|
|
@@ -1981,6 +2056,7 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
|
|
|
1981
2056
|
mode?: "leading" | "trailing" | undefined;
|
|
1982
2057
|
maxDelay?: string | undefined;
|
|
1983
2058
|
} | undefined;
|
|
2059
|
+
test?: boolean | undefined;
|
|
1984
2060
|
parentAttempt?: string | undefined;
|
|
1985
2061
|
lockToVersion?: string | undefined;
|
|
1986
2062
|
idempotencyKeyOptions?: {
|
|
@@ -1988,7 +2064,6 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
|
|
|
1988
2064
|
scope: "run" | "attempt" | "global";
|
|
1989
2065
|
} | undefined;
|
|
1990
2066
|
metadataType?: string | undefined;
|
|
1991
|
-
test?: boolean | undefined;
|
|
1992
2067
|
}>>;
|
|
1993
2068
|
}, "strip", z.ZodTypeAny, {
|
|
1994
2069
|
task: string;
|
|
@@ -2015,6 +2090,7 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
|
|
|
2015
2090
|
mode?: "leading" | "trailing" | undefined;
|
|
2016
2091
|
maxDelay?: string | undefined;
|
|
2017
2092
|
} | undefined;
|
|
2093
|
+
test?: boolean | undefined;
|
|
2018
2094
|
parentAttempt?: string | undefined;
|
|
2019
2095
|
lockToVersion?: string | undefined;
|
|
2020
2096
|
idempotencyKeyOptions?: {
|
|
@@ -2022,7 +2098,6 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
|
|
|
2022
2098
|
scope: "run" | "attempt" | "global";
|
|
2023
2099
|
} | undefined;
|
|
2024
2100
|
metadataType?: string | undefined;
|
|
2025
|
-
test?: boolean | undefined;
|
|
2026
2101
|
} | undefined;
|
|
2027
2102
|
payload?: any;
|
|
2028
2103
|
context?: any;
|
|
@@ -2051,6 +2126,7 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
|
|
|
2051
2126
|
mode?: "leading" | "trailing" | undefined;
|
|
2052
2127
|
maxDelay?: string | undefined;
|
|
2053
2128
|
} | undefined;
|
|
2129
|
+
test?: boolean | undefined;
|
|
2054
2130
|
parentAttempt?: string | undefined;
|
|
2055
2131
|
lockToVersion?: string | undefined;
|
|
2056
2132
|
idempotencyKeyOptions?: {
|
|
@@ -2058,7 +2134,6 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
|
|
|
2058
2134
|
scope: "run" | "attempt" | "global";
|
|
2059
2135
|
} | undefined;
|
|
2060
2136
|
metadataType?: string | undefined;
|
|
2061
|
-
test?: boolean | undefined;
|
|
2062
2137
|
} | undefined;
|
|
2063
2138
|
payload?: any;
|
|
2064
2139
|
context?: any;
|
|
@@ -2099,6 +2174,7 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
|
|
|
2099
2174
|
mode?: "leading" | "trailing" | undefined;
|
|
2100
2175
|
maxDelay?: string | undefined;
|
|
2101
2176
|
} | undefined;
|
|
2177
|
+
test?: boolean | undefined;
|
|
2102
2178
|
parentAttempt?: string | undefined;
|
|
2103
2179
|
lockToVersion?: string | undefined;
|
|
2104
2180
|
idempotencyKeyOptions?: {
|
|
@@ -2106,7 +2182,6 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
|
|
|
2106
2182
|
scope: "run" | "attempt" | "global";
|
|
2107
2183
|
} | undefined;
|
|
2108
2184
|
metadataType?: string | undefined;
|
|
2109
|
-
test?: boolean | undefined;
|
|
2110
2185
|
} | undefined;
|
|
2111
2186
|
payload?: any;
|
|
2112
2187
|
context?: any;
|
|
@@ -2139,6 +2214,7 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
|
|
|
2139
2214
|
mode?: "leading" | "trailing" | undefined;
|
|
2140
2215
|
maxDelay?: string | undefined;
|
|
2141
2216
|
} | undefined;
|
|
2217
|
+
test?: boolean | undefined;
|
|
2142
2218
|
parentAttempt?: string | undefined;
|
|
2143
2219
|
lockToVersion?: string | undefined;
|
|
2144
2220
|
idempotencyKeyOptions?: {
|
|
@@ -2146,7 +2222,6 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
|
|
|
2146
2222
|
scope: "run" | "attempt" | "global";
|
|
2147
2223
|
} | undefined;
|
|
2148
2224
|
metadataType?: string | undefined;
|
|
2149
|
-
test?: boolean | undefined;
|
|
2150
2225
|
} | undefined;
|
|
2151
2226
|
payload?: any;
|
|
2152
2227
|
context?: any;
|
|
@@ -2853,7 +2928,7 @@ declare const InitializeDeploymentRequestBodyBase: z.ZodObject<{
|
|
|
2853
2928
|
} | undefined;
|
|
2854
2929
|
initialStatus?: "PENDING" | "BUILDING" | undefined;
|
|
2855
2930
|
isLocalBuild?: boolean | undefined;
|
|
2856
|
-
triggeredVia?: (string & {}) | "cli:manual" | "cli:ci_other" | "cli:github_actions" | "cli:gitlab_ci" | "cli:circleci" | "cli:jenkins" | "cli:azure_pipelines" | "cli:bitbucket_pipelines" | "cli:travis_ci" | "cli:buildkite" | "git_integration:github" |
|
|
2931
|
+
triggeredVia?: (string & {}) | "dashboard" | "cli:manual" | "cli:ci_other" | "cli:github_actions" | "cli:gitlab_ci" | "cli:circleci" | "cli:jenkins" | "cli:azure_pipelines" | "cli:bitbucket_pipelines" | "cli:travis_ci" | "cli:buildkite" | "git_integration:github" | undefined;
|
|
2857
2932
|
}, {
|
|
2858
2933
|
contentHash: string;
|
|
2859
2934
|
type?: "V1" | "MANAGED" | "UNMANAGED" | undefined;
|
|
@@ -2878,7 +2953,7 @@ declare const InitializeDeploymentRequestBodyBase: z.ZodObject<{
|
|
|
2878
2953
|
} | undefined;
|
|
2879
2954
|
initialStatus?: "PENDING" | "BUILDING" | undefined;
|
|
2880
2955
|
isLocalBuild?: boolean | undefined;
|
|
2881
|
-
triggeredVia?: (string & {}) | "cli:manual" | "cli:ci_other" | "cli:github_actions" | "cli:gitlab_ci" | "cli:circleci" | "cli:jenkins" | "cli:azure_pipelines" | "cli:bitbucket_pipelines" | "cli:travis_ci" | "cli:buildkite" | "git_integration:github" |
|
|
2956
|
+
triggeredVia?: (string & {}) | "dashboard" | "cli:manual" | "cli:ci_other" | "cli:github_actions" | "cli:gitlab_ci" | "cli:circleci" | "cli:jenkins" | "cli:azure_pipelines" | "cli:bitbucket_pipelines" | "cli:travis_ci" | "cli:buildkite" | "git_integration:github" | undefined;
|
|
2882
2957
|
}>;
|
|
2883
2958
|
type BaseOutput = z.output<typeof InitializeDeploymentRequestBodyBase>;
|
|
2884
2959
|
type NativeBuildOutput = BaseOutput & {
|
|
@@ -2984,7 +3059,7 @@ export declare const InitializeDeploymentRequestBody: z.ZodEffects<z.ZodObject<{
|
|
|
2984
3059
|
} | undefined;
|
|
2985
3060
|
initialStatus?: "PENDING" | "BUILDING" | undefined;
|
|
2986
3061
|
isLocalBuild?: boolean | undefined;
|
|
2987
|
-
triggeredVia?: (string & {}) | "cli:manual" | "cli:ci_other" | "cli:github_actions" | "cli:gitlab_ci" | "cli:circleci" | "cli:jenkins" | "cli:azure_pipelines" | "cli:bitbucket_pipelines" | "cli:travis_ci" | "cli:buildkite" | "git_integration:github" |
|
|
3062
|
+
triggeredVia?: (string & {}) | "dashboard" | "cli:manual" | "cli:ci_other" | "cli:github_actions" | "cli:gitlab_ci" | "cli:circleci" | "cli:jenkins" | "cli:azure_pipelines" | "cli:bitbucket_pipelines" | "cli:travis_ci" | "cli:buildkite" | "git_integration:github" | undefined;
|
|
2988
3063
|
}, {
|
|
2989
3064
|
contentHash: string;
|
|
2990
3065
|
type?: "V1" | "MANAGED" | "UNMANAGED" | undefined;
|
|
@@ -3014,7 +3089,7 @@ export declare const InitializeDeploymentRequestBody: z.ZodEffects<z.ZodObject<{
|
|
|
3014
3089
|
} | undefined;
|
|
3015
3090
|
initialStatus?: "PENDING" | "BUILDING" | undefined;
|
|
3016
3091
|
isLocalBuild?: boolean | undefined;
|
|
3017
|
-
triggeredVia?: (string & {}) | "cli:manual" | "cli:ci_other" | "cli:github_actions" | "cli:gitlab_ci" | "cli:circleci" | "cli:jenkins" | "cli:azure_pipelines" | "cli:bitbucket_pipelines" | "cli:travis_ci" | "cli:buildkite" | "git_integration:github" |
|
|
3092
|
+
triggeredVia?: (string & {}) | "dashboard" | "cli:manual" | "cli:ci_other" | "cli:github_actions" | "cli:gitlab_ci" | "cli:circleci" | "cli:jenkins" | "cli:azure_pipelines" | "cli:bitbucket_pipelines" | "cli:travis_ci" | "cli:buildkite" | "git_integration:github" | undefined;
|
|
3018
3093
|
}>, NativeBuildOutput | NonNativeBuildOutput, {
|
|
3019
3094
|
contentHash: string;
|
|
3020
3095
|
type?: "V1" | "MANAGED" | "UNMANAGED" | undefined;
|
|
@@ -3044,7 +3119,7 @@ export declare const InitializeDeploymentRequestBody: z.ZodEffects<z.ZodObject<{
|
|
|
3044
3119
|
} | undefined;
|
|
3045
3120
|
initialStatus?: "PENDING" | "BUILDING" | undefined;
|
|
3046
3121
|
isLocalBuild?: boolean | undefined;
|
|
3047
|
-
triggeredVia?: (string & {}) | "cli:manual" | "cli:ci_other" | "cli:github_actions" | "cli:gitlab_ci" | "cli:circleci" | "cli:jenkins" | "cli:azure_pipelines" | "cli:bitbucket_pipelines" | "cli:travis_ci" | "cli:buildkite" | "git_integration:github" |
|
|
3122
|
+
triggeredVia?: (string & {}) | "dashboard" | "cli:manual" | "cli:ci_other" | "cli:github_actions" | "cli:gitlab_ci" | "cli:circleci" | "cli:jenkins" | "cli:azure_pipelines" | "cli:bitbucket_pipelines" | "cli:travis_ci" | "cli:buildkite" | "git_integration:github" | undefined;
|
|
3048
3123
|
}>;
|
|
3049
3124
|
export type InitializeDeploymentRequestBody = z.infer<typeof InitializeDeploymentRequestBody>;
|
|
3050
3125
|
export declare const RemoteBuildProviderStatusResponseBody: z.ZodObject<{
|
|
@@ -3622,10 +3697,14 @@ export declare const DeploymentEventFromString: z.ZodPipeline<z.ZodEffects<z.Zod
|
|
|
3622
3697
|
}>]>>;
|
|
3623
3698
|
export declare const CreateUploadPayloadUrlResponseBody: z.ZodObject<{
|
|
3624
3699
|
presignedUrl: z.ZodString;
|
|
3700
|
+
/** Present on `/api/v2/packets` PUT (upload handshake); omitted on v1 GET download presign. */
|
|
3701
|
+
storagePath: z.ZodOptional<z.ZodString>;
|
|
3625
3702
|
}, "strip", z.ZodTypeAny, {
|
|
3626
3703
|
presignedUrl: string;
|
|
3704
|
+
storagePath?: string | undefined;
|
|
3627
3705
|
}, {
|
|
3628
3706
|
presignedUrl: string;
|
|
3707
|
+
storagePath?: string | undefined;
|
|
3629
3708
|
}>;
|
|
3630
3709
|
export declare const WorkersListResponseBody: z.ZodArray<z.ZodObject<{
|
|
3631
3710
|
type: z.ZodString;
|
|
@@ -3919,6 +3998,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
3919
3998
|
id: z.ZodString;
|
|
3920
3999
|
friendlyId: z.ZodString;
|
|
3921
4000
|
isTest: z.ZodBoolean;
|
|
4001
|
+
isReplay: z.ZodDefault<z.ZodBoolean>;
|
|
3922
4002
|
machine: z.ZodObject<{
|
|
3923
4003
|
name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
|
|
3924
4004
|
cpu: z.ZodNumber;
|
|
@@ -3938,9 +4018,26 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
3938
4018
|
attemptNumber: z.ZodNumber;
|
|
3939
4019
|
masterQueue: z.ZodString;
|
|
3940
4020
|
traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4021
|
+
annotations: z.ZodOptional<z.ZodObject<{
|
|
4022
|
+
triggerSource: z.ZodUnion<[z.ZodEnum<["sdk", "api", "dashboard", "cli", "mcp", "schedule"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>;
|
|
4023
|
+
triggerAction: z.ZodUnion<[z.ZodEnum<["trigger", "replay", "test"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>;
|
|
4024
|
+
rootTriggerSource: z.ZodUnion<[z.ZodEnum<["sdk", "api", "dashboard", "cli", "mcp", "schedule"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>;
|
|
4025
|
+
rootScheduleId: z.ZodOptional<z.ZodString>;
|
|
4026
|
+
}, "strip", z.ZodTypeAny, {
|
|
4027
|
+
triggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
|
|
4028
|
+
triggerAction: "trigger" | (string & {}) | "replay" | "test";
|
|
4029
|
+
rootTriggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
|
|
4030
|
+
rootScheduleId?: string | undefined;
|
|
4031
|
+
}, {
|
|
4032
|
+
triggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
|
|
4033
|
+
triggerAction: "trigger" | (string & {}) | "replay" | "test";
|
|
4034
|
+
rootTriggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
|
|
4035
|
+
rootScheduleId?: string | undefined;
|
|
4036
|
+
}>>;
|
|
3941
4037
|
}, "strip", z.ZodTypeAny, {
|
|
3942
4038
|
id: string;
|
|
3943
4039
|
isTest: boolean;
|
|
4040
|
+
isReplay: boolean;
|
|
3944
4041
|
machine: {
|
|
3945
4042
|
cpu: number;
|
|
3946
4043
|
memory: number;
|
|
@@ -3951,6 +4048,12 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
3951
4048
|
friendlyId: string;
|
|
3952
4049
|
attemptNumber: number;
|
|
3953
4050
|
masterQueue: string;
|
|
4051
|
+
annotations?: {
|
|
4052
|
+
triggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
|
|
4053
|
+
triggerAction: "trigger" | (string & {}) | "replay" | "test";
|
|
4054
|
+
rootTriggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
|
|
4055
|
+
rootScheduleId?: string | undefined;
|
|
4056
|
+
} | undefined;
|
|
3954
4057
|
}, {
|
|
3955
4058
|
id: string;
|
|
3956
4059
|
isTest: boolean;
|
|
@@ -3964,6 +4067,13 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
3964
4067
|
friendlyId: string;
|
|
3965
4068
|
attemptNumber: number;
|
|
3966
4069
|
masterQueue: string;
|
|
4070
|
+
isReplay?: boolean | undefined;
|
|
4071
|
+
annotations?: {
|
|
4072
|
+
triggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
|
|
4073
|
+
triggerAction: "trigger" | (string & {}) | "replay" | "test";
|
|
4074
|
+
rootTriggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
|
|
4075
|
+
rootScheduleId?: string | undefined;
|
|
4076
|
+
} | undefined;
|
|
3967
4077
|
}>;
|
|
3968
4078
|
environment: z.ZodObject<{
|
|
3969
4079
|
id: z.ZodString;
|
|
@@ -3977,10 +4087,13 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
3977
4087
|
}>;
|
|
3978
4088
|
organization: z.ZodObject<{
|
|
3979
4089
|
id: z.ZodString;
|
|
4090
|
+
hasPrivateLink: z.ZodOptional<z.ZodBoolean>;
|
|
3980
4091
|
}, "strip", z.ZodTypeAny, {
|
|
3981
4092
|
id: string;
|
|
4093
|
+
hasPrivateLink?: boolean | undefined;
|
|
3982
4094
|
}, {
|
|
3983
4095
|
id: string;
|
|
4096
|
+
hasPrivateLink?: boolean | undefined;
|
|
3984
4097
|
}>;
|
|
3985
4098
|
project: z.ZodObject<{
|
|
3986
4099
|
id: z.ZodString;
|
|
@@ -4003,6 +4116,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
4003
4116
|
run: {
|
|
4004
4117
|
id: string;
|
|
4005
4118
|
isTest: boolean;
|
|
4119
|
+
isReplay: boolean;
|
|
4006
4120
|
machine: {
|
|
4007
4121
|
cpu: number;
|
|
4008
4122
|
memory: number;
|
|
@@ -4013,6 +4127,12 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
4013
4127
|
friendlyId: string;
|
|
4014
4128
|
attemptNumber: number;
|
|
4015
4129
|
masterQueue: string;
|
|
4130
|
+
annotations?: {
|
|
4131
|
+
triggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
|
|
4132
|
+
triggerAction: "trigger" | (string & {}) | "replay" | "test";
|
|
4133
|
+
rootTriggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
|
|
4134
|
+
rootScheduleId?: string | undefined;
|
|
4135
|
+
} | undefined;
|
|
4016
4136
|
};
|
|
4017
4137
|
version: "1";
|
|
4018
4138
|
environment: {
|
|
@@ -4021,6 +4141,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
4021
4141
|
};
|
|
4022
4142
|
organization: {
|
|
4023
4143
|
id: string;
|
|
4144
|
+
hasPrivateLink?: boolean | undefined;
|
|
4024
4145
|
};
|
|
4025
4146
|
project: {
|
|
4026
4147
|
id: string;
|
|
@@ -4094,6 +4215,13 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
4094
4215
|
friendlyId: string;
|
|
4095
4216
|
attemptNumber: number;
|
|
4096
4217
|
masterQueue: string;
|
|
4218
|
+
isReplay?: boolean | undefined;
|
|
4219
|
+
annotations?: {
|
|
4220
|
+
triggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
|
|
4221
|
+
triggerAction: "trigger" | (string & {}) | "replay" | "test";
|
|
4222
|
+
rootTriggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
|
|
4223
|
+
rootScheduleId?: string | undefined;
|
|
4224
|
+
} | undefined;
|
|
4097
4225
|
};
|
|
4098
4226
|
version: "1";
|
|
4099
4227
|
environment: {
|
|
@@ -4102,6 +4230,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
4102
4230
|
};
|
|
4103
4231
|
organization: {
|
|
4104
4232
|
id: string;
|
|
4233
|
+
hasPrivateLink?: boolean | undefined;
|
|
4105
4234
|
};
|
|
4106
4235
|
project: {
|
|
4107
4236
|
id: string;
|
|
@@ -4167,6 +4296,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
4167
4296
|
run: {
|
|
4168
4297
|
id: string;
|
|
4169
4298
|
isTest: boolean;
|
|
4299
|
+
isReplay: boolean;
|
|
4170
4300
|
machine: {
|
|
4171
4301
|
cpu: number;
|
|
4172
4302
|
memory: number;
|
|
@@ -4177,6 +4307,12 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
4177
4307
|
friendlyId: string;
|
|
4178
4308
|
attemptNumber: number;
|
|
4179
4309
|
masterQueue: string;
|
|
4310
|
+
annotations?: {
|
|
4311
|
+
triggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
|
|
4312
|
+
triggerAction: "trigger" | (string & {}) | "replay" | "test";
|
|
4313
|
+
rootTriggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
|
|
4314
|
+
rootScheduleId?: string | undefined;
|
|
4315
|
+
} | undefined;
|
|
4180
4316
|
};
|
|
4181
4317
|
version: "1";
|
|
4182
4318
|
environment: {
|
|
@@ -4185,6 +4321,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
4185
4321
|
};
|
|
4186
4322
|
organization: {
|
|
4187
4323
|
id: string;
|
|
4324
|
+
hasPrivateLink?: boolean | undefined;
|
|
4188
4325
|
};
|
|
4189
4326
|
project: {
|
|
4190
4327
|
id: string;
|
|
@@ -4260,6 +4397,13 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
4260
4397
|
friendlyId: string;
|
|
4261
4398
|
attemptNumber: number;
|
|
4262
4399
|
masterQueue: string;
|
|
4400
|
+
isReplay?: boolean | undefined;
|
|
4401
|
+
annotations?: {
|
|
4402
|
+
triggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
|
|
4403
|
+
triggerAction: "trigger" | (string & {}) | "replay" | "test";
|
|
4404
|
+
rootTriggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
|
|
4405
|
+
rootScheduleId?: string | undefined;
|
|
4406
|
+
} | undefined;
|
|
4263
4407
|
};
|
|
4264
4408
|
version: "1";
|
|
4265
4409
|
environment: {
|
|
@@ -4268,6 +4412,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
4268
4412
|
};
|
|
4269
4413
|
organization: {
|
|
4270
4414
|
id: string;
|
|
4415
|
+
hasPrivateLink?: boolean | undefined;
|
|
4271
4416
|
};
|
|
4272
4417
|
project: {
|
|
4273
4418
|
id: string;
|
|
@@ -6920,6 +7065,54 @@ export declare const CreateInputStreamWaitpointResponseBody: z.ZodObject<{
|
|
|
6920
7065
|
waitpointId: string;
|
|
6921
7066
|
}>;
|
|
6922
7067
|
export type CreateInputStreamWaitpointResponseBody = z.infer<typeof CreateInputStreamWaitpointResponseBody>;
|
|
7068
|
+
/**
|
|
7069
|
+
* Create a run-scoped waitpoint that completes when the next record lands on
|
|
7070
|
+
* a Session channel (`.in` or `.out`). Mirrors `CreateInputStreamWaitpointRequestBody`
|
|
7071
|
+
* but keyed by `{sessionId, io}` instead of `{runId, streamId}`. The run is
|
|
7072
|
+
* still the thing being suspended — Session only supplies the trigger source.
|
|
7073
|
+
*/
|
|
7074
|
+
export declare const CreateSessionStreamWaitpointRequestBody: z.ZodObject<{
|
|
7075
|
+
/** Session friendlyId (`session_*`) or user-supplied externalId. */
|
|
7076
|
+
session: z.ZodString;
|
|
7077
|
+
io: z.ZodEnum<["out", "in"]>;
|
|
7078
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
7079
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
7080
|
+
idempotencyKeyTTL: z.ZodOptional<z.ZodString>;
|
|
7081
|
+
tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
7082
|
+
/**
|
|
7083
|
+
* Last S2 sequence number the client has seen on this session channel.
|
|
7084
|
+
* Used to catch data that arrived before `.wait()` was called.
|
|
7085
|
+
*/
|
|
7086
|
+
lastSeqNum: z.ZodOptional<z.ZodNumber>;
|
|
7087
|
+
}, "strip", z.ZodTypeAny, {
|
|
7088
|
+
session: string;
|
|
7089
|
+
io: "in" | "out";
|
|
7090
|
+
tags?: string | string[] | undefined;
|
|
7091
|
+
idempotencyKey?: string | undefined;
|
|
7092
|
+
idempotencyKeyTTL?: string | undefined;
|
|
7093
|
+
timeout?: string | undefined;
|
|
7094
|
+
lastSeqNum?: number | undefined;
|
|
7095
|
+
}, {
|
|
7096
|
+
session: string;
|
|
7097
|
+
io: "in" | "out";
|
|
7098
|
+
tags?: string | string[] | undefined;
|
|
7099
|
+
idempotencyKey?: string | undefined;
|
|
7100
|
+
idempotencyKeyTTL?: string | undefined;
|
|
7101
|
+
timeout?: string | undefined;
|
|
7102
|
+
lastSeqNum?: number | undefined;
|
|
7103
|
+
}>;
|
|
7104
|
+
export type CreateSessionStreamWaitpointRequestBody = z.infer<typeof CreateSessionStreamWaitpointRequestBody>;
|
|
7105
|
+
export declare const CreateSessionStreamWaitpointResponseBody: z.ZodObject<{
|
|
7106
|
+
waitpointId: z.ZodString;
|
|
7107
|
+
isCached: z.ZodBoolean;
|
|
7108
|
+
}, "strip", z.ZodTypeAny, {
|
|
7109
|
+
isCached: boolean;
|
|
7110
|
+
waitpointId: string;
|
|
7111
|
+
}, {
|
|
7112
|
+
isCached: boolean;
|
|
7113
|
+
waitpointId: string;
|
|
7114
|
+
}>;
|
|
7115
|
+
export type CreateSessionStreamWaitpointResponseBody = z.infer<typeof CreateSessionStreamWaitpointResponseBody>;
|
|
6923
7116
|
export declare const waitpointTokenStatuses: readonly ["WAITING", "COMPLETED", "TIMED_OUT"];
|
|
6924
7117
|
export declare const WaitpointTokenStatus: z.ZodEnum<["WAITING", "COMPLETED", "TIMED_OUT"]>;
|
|
6925
7118
|
export type WaitpointTokenStatus = z.infer<typeof WaitpointTokenStatus>;
|
|
@@ -7047,66 +7240,881 @@ export declare const CompleteWaitpointTokenRequestBody: z.ZodObject<{
|
|
|
7047
7240
|
data?: any;
|
|
7048
7241
|
}>;
|
|
7049
7242
|
export type CompleteWaitpointTokenRequestBody = z.infer<typeof CompleteWaitpointTokenRequestBody>;
|
|
7050
|
-
|
|
7051
|
-
|
|
7243
|
+
/**
|
|
7244
|
+
* Trigger config persisted on a Session. Drives every run the session
|
|
7245
|
+
* schedules — `basePayload` is the customer's wire payload (for
|
|
7246
|
+
* chat.agent: `{ chatId, ...clientData }`), runtime fields like
|
|
7247
|
+
* `trigger: "preload" | "trigger"` are merged on top per-call by the
|
|
7248
|
+
* server's trigger machinery.
|
|
7249
|
+
*/
|
|
7250
|
+
export declare const SessionTriggerConfig: z.ZodObject<{
|
|
7251
|
+
basePayload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7252
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
7253
|
+
queue: z.ZodOptional<z.ZodString>;
|
|
7254
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7255
|
+
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
7256
|
+
/** Convenience field surfaced to chat.agent via the wire payload. */
|
|
7257
|
+
idleTimeoutInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
7052
7258
|
}, "strip", z.ZodTypeAny, {
|
|
7053
|
-
|
|
7259
|
+
basePayload: Record<string, unknown>;
|
|
7260
|
+
tags?: string[] | undefined;
|
|
7261
|
+
maxAttempts?: number | undefined;
|
|
7262
|
+
queue?: string | undefined;
|
|
7263
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7264
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7054
7265
|
}, {
|
|
7055
|
-
|
|
7266
|
+
basePayload: Record<string, unknown>;
|
|
7267
|
+
tags?: string[] | undefined;
|
|
7268
|
+
maxAttempts?: number | undefined;
|
|
7269
|
+
queue?: string | undefined;
|
|
7270
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7271
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7056
7272
|
}>;
|
|
7057
|
-
export type
|
|
7058
|
-
|
|
7059
|
-
|
|
7273
|
+
export type SessionTriggerConfig = z.infer<typeof SessionTriggerConfig>;
|
|
7274
|
+
/**
|
|
7275
|
+
* Request body for `POST /api/v1/sessions`. Creates a Session and
|
|
7276
|
+
* triggers its first run. Sessions are task-bound: `taskIdentifier` and
|
|
7277
|
+
* `triggerConfig` are required, and re-runs scheduled by the server
|
|
7278
|
+
* (after run termination, after `end-and-continue`) reuse the same
|
|
7279
|
+
* config.
|
|
7280
|
+
*/
|
|
7281
|
+
export declare const CreateSessionRequestBody: z.ZodObject<{
|
|
7282
|
+
/** Plain string discriminator — e.g. `"chat.agent"`. Not validated against an enum on the server. */
|
|
7283
|
+
type: z.ZodString;
|
|
7284
|
+
/** User-supplied idempotency key. Unique per environment. Empty strings are rejected. */
|
|
7285
|
+
externalId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
7286
|
+
/** Task this session triggers runs against. Required. */
|
|
7287
|
+
taskIdentifier: z.ZodString;
|
|
7288
|
+
/** Trigger config used for every run scheduled by this session. */
|
|
7289
|
+
triggerConfig: z.ZodObject<{
|
|
7290
|
+
basePayload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7291
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
7292
|
+
queue: z.ZodOptional<z.ZodString>;
|
|
7293
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7294
|
+
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
7295
|
+
/** Convenience field surfaced to chat.agent via the wire payload. */
|
|
7296
|
+
idleTimeoutInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
7297
|
+
}, "strip", z.ZodTypeAny, {
|
|
7298
|
+
basePayload: Record<string, unknown>;
|
|
7299
|
+
tags?: string[] | undefined;
|
|
7300
|
+
maxAttempts?: number | undefined;
|
|
7301
|
+
queue?: string | undefined;
|
|
7302
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7303
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7304
|
+
}, {
|
|
7305
|
+
basePayload: Record<string, unknown>;
|
|
7306
|
+
tags?: string[] | undefined;
|
|
7307
|
+
maxAttempts?: number | undefined;
|
|
7308
|
+
queue?: string | undefined;
|
|
7309
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7310
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7311
|
+
}>;
|
|
7312
|
+
/** Up to 10 tags for dashboard filtering. */
|
|
7313
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7314
|
+
/** Arbitrary JSON metadata. */
|
|
7315
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7316
|
+
/** Absolute expiry timestamp for retention. */
|
|
7317
|
+
expiresAt: z.ZodOptional<z.ZodDate>;
|
|
7060
7318
|
}, "strip", z.ZodTypeAny, {
|
|
7061
|
-
|
|
7319
|
+
type: string;
|
|
7320
|
+
taskIdentifier: string;
|
|
7321
|
+
triggerConfig: {
|
|
7322
|
+
basePayload: Record<string, unknown>;
|
|
7323
|
+
tags?: string[] | undefined;
|
|
7324
|
+
maxAttempts?: number | undefined;
|
|
7325
|
+
queue?: string | undefined;
|
|
7326
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7327
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7328
|
+
};
|
|
7329
|
+
metadata?: Record<string, unknown> | undefined;
|
|
7330
|
+
tags?: string[] | undefined;
|
|
7331
|
+
externalId?: string | undefined;
|
|
7332
|
+
expiresAt?: Date | undefined;
|
|
7062
7333
|
}, {
|
|
7063
|
-
|
|
7334
|
+
type: string;
|
|
7335
|
+
taskIdentifier: string;
|
|
7336
|
+
triggerConfig: {
|
|
7337
|
+
basePayload: Record<string, unknown>;
|
|
7338
|
+
tags?: string[] | undefined;
|
|
7339
|
+
maxAttempts?: number | undefined;
|
|
7340
|
+
queue?: string | undefined;
|
|
7341
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7342
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7343
|
+
};
|
|
7344
|
+
metadata?: Record<string, unknown> | undefined;
|
|
7345
|
+
tags?: string[] | undefined;
|
|
7346
|
+
externalId?: string | undefined;
|
|
7347
|
+
expiresAt?: Date | undefined;
|
|
7064
7348
|
}>;
|
|
7065
|
-
export type
|
|
7066
|
-
export declare const
|
|
7067
|
-
|
|
7068
|
-
|
|
7069
|
-
|
|
7070
|
-
|
|
7071
|
-
* Note: This waitpoint may already be complete, in which case when you wait for it, it will immediately continue.
|
|
7072
|
-
*/
|
|
7073
|
-
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
7349
|
+
export type CreateSessionRequestBody = z.infer<typeof CreateSessionRequestBody>;
|
|
7350
|
+
export declare const SessionItem: z.ZodObject<{
|
|
7351
|
+
id: z.ZodString;
|
|
7352
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
7353
|
+
type: z.ZodString;
|
|
7354
|
+
taskIdentifier: z.ZodString;
|
|
7074
7355
|
/**
|
|
7075
|
-
*
|
|
7076
|
-
*
|
|
7356
|
+
* Optional on the wire because some surfaces (the list endpoint backed
|
|
7357
|
+
* by ClickHouse, list-page rendering) don't carry triggerConfig.
|
|
7358
|
+
* Always populated on `POST /sessions` and `GET /sessions/:id`.
|
|
7077
7359
|
*/
|
|
7078
|
-
|
|
7360
|
+
triggerConfig: z.ZodOptional<z.ZodObject<{
|
|
7361
|
+
basePayload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7362
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
7363
|
+
queue: z.ZodOptional<z.ZodString>;
|
|
7364
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7365
|
+
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
7366
|
+
/** Convenience field surfaced to chat.agent via the wire payload. */
|
|
7367
|
+
idleTimeoutInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
7368
|
+
}, "strip", z.ZodTypeAny, {
|
|
7369
|
+
basePayload: Record<string, unknown>;
|
|
7370
|
+
tags?: string[] | undefined;
|
|
7371
|
+
maxAttempts?: number | undefined;
|
|
7372
|
+
queue?: string | undefined;
|
|
7373
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7374
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7375
|
+
}, {
|
|
7376
|
+
basePayload: Record<string, unknown>;
|
|
7377
|
+
tags?: string[] | undefined;
|
|
7378
|
+
maxAttempts?: number | undefined;
|
|
7379
|
+
queue?: string | undefined;
|
|
7380
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7381
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7382
|
+
}>>;
|
|
7079
7383
|
/**
|
|
7080
|
-
*
|
|
7384
|
+
* Friendly id of the live run for this session, if any. Optional on
|
|
7385
|
+
* the wire — list surfaces may not include it. Routes that emit
|
|
7386
|
+
* `SessionItem` are responsible for resolving the friendly form
|
|
7387
|
+
* from the underlying cuid before returning.
|
|
7081
7388
|
*/
|
|
7082
|
-
|
|
7389
|
+
currentRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7390
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
7391
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7392
|
+
closedAt: z.ZodNullable<z.ZodDate>;
|
|
7393
|
+
closedReason: z.ZodNullable<z.ZodString>;
|
|
7394
|
+
expiresAt: z.ZodNullable<z.ZodDate>;
|
|
7395
|
+
createdAt: z.ZodDate;
|
|
7396
|
+
updatedAt: z.ZodDate;
|
|
7083
7397
|
}, "strip", z.ZodTypeAny, {
|
|
7084
|
-
|
|
7085
|
-
|
|
7086
|
-
|
|
7398
|
+
type: string;
|
|
7399
|
+
metadata: Record<string, unknown> | null;
|
|
7400
|
+
id: string;
|
|
7401
|
+
tags: string[];
|
|
7402
|
+
createdAt: Date;
|
|
7403
|
+
taskIdentifier: string;
|
|
7404
|
+
externalId: string | null;
|
|
7405
|
+
updatedAt: Date;
|
|
7406
|
+
expiresAt: Date | null;
|
|
7407
|
+
closedAt: Date | null;
|
|
7408
|
+
closedReason: string | null;
|
|
7409
|
+
triggerConfig?: {
|
|
7410
|
+
basePayload: Record<string, unknown>;
|
|
7411
|
+
tags?: string[] | undefined;
|
|
7412
|
+
maxAttempts?: number | undefined;
|
|
7413
|
+
queue?: string | undefined;
|
|
7414
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7415
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7416
|
+
} | undefined;
|
|
7417
|
+
currentRunId?: string | null | undefined;
|
|
7087
7418
|
}, {
|
|
7088
|
-
|
|
7089
|
-
|
|
7090
|
-
|
|
7419
|
+
type: string;
|
|
7420
|
+
metadata: Record<string, unknown> | null;
|
|
7421
|
+
id: string;
|
|
7422
|
+
tags: string[];
|
|
7423
|
+
createdAt: Date;
|
|
7424
|
+
taskIdentifier: string;
|
|
7425
|
+
externalId: string | null;
|
|
7426
|
+
updatedAt: Date;
|
|
7427
|
+
expiresAt: Date | null;
|
|
7428
|
+
closedAt: Date | null;
|
|
7429
|
+
closedReason: string | null;
|
|
7430
|
+
triggerConfig?: {
|
|
7431
|
+
basePayload: Record<string, unknown>;
|
|
7432
|
+
tags?: string[] | undefined;
|
|
7433
|
+
maxAttempts?: number | undefined;
|
|
7434
|
+
queue?: string | undefined;
|
|
7435
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7436
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7437
|
+
} | undefined;
|
|
7438
|
+
currentRunId?: string | null | undefined;
|
|
7091
7439
|
}>;
|
|
7092
|
-
export type
|
|
7093
|
-
export declare const
|
|
7440
|
+
export type SessionItem = z.infer<typeof SessionItem>;
|
|
7441
|
+
export declare const CreatedSessionResponseBody: z.ZodObject<{
|
|
7442
|
+
id: z.ZodString;
|
|
7443
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
7444
|
+
type: z.ZodString;
|
|
7445
|
+
taskIdentifier: z.ZodString;
|
|
7094
7446
|
/**
|
|
7095
|
-
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7447
|
+
* Optional on the wire because some surfaces (the list endpoint backed
|
|
7448
|
+
* by ClickHouse, list-page rendering) don't carry triggerConfig.
|
|
7449
|
+
* Always populated on `POST /sessions` and `GET /sessions/:id`.
|
|
7450
|
+
*/
|
|
7451
|
+
triggerConfig: z.ZodOptional<z.ZodObject<{
|
|
7452
|
+
basePayload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7453
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
7454
|
+
queue: z.ZodOptional<z.ZodString>;
|
|
7455
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7456
|
+
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
7457
|
+
/** Convenience field surfaced to chat.agent via the wire payload. */
|
|
7458
|
+
idleTimeoutInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
7101
7459
|
}, "strip", z.ZodTypeAny, {
|
|
7102
|
-
|
|
7460
|
+
basePayload: Record<string, unknown>;
|
|
7461
|
+
tags?: string[] | undefined;
|
|
7462
|
+
maxAttempts?: number | undefined;
|
|
7463
|
+
queue?: string | undefined;
|
|
7464
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7465
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7103
7466
|
}, {
|
|
7104
|
-
|
|
7105
|
-
|
|
7467
|
+
basePayload: Record<string, unknown>;
|
|
7468
|
+
tags?: string[] | undefined;
|
|
7469
|
+
maxAttempts?: number | undefined;
|
|
7470
|
+
queue?: string | undefined;
|
|
7471
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7472
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7473
|
+
}>>;
|
|
7474
|
+
/**
|
|
7475
|
+
* Friendly id of the live run for this session, if any. Optional on
|
|
7476
|
+
* the wire — list surfaces may not include it. Routes that emit
|
|
7477
|
+
* `SessionItem` are responsible for resolving the friendly form
|
|
7478
|
+
* from the underlying cuid before returning.
|
|
7479
|
+
*/
|
|
7480
|
+
currentRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7481
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
7482
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7483
|
+
closedAt: z.ZodNullable<z.ZodDate>;
|
|
7484
|
+
closedReason: z.ZodNullable<z.ZodString>;
|
|
7485
|
+
expiresAt: z.ZodNullable<z.ZodDate>;
|
|
7486
|
+
createdAt: z.ZodDate;
|
|
7487
|
+
updatedAt: z.ZodDate;
|
|
7488
|
+
} & {
|
|
7489
|
+
/** Friendly id of the first run triggered alongside session create. */
|
|
7490
|
+
runId: z.ZodString;
|
|
7491
|
+
/** Session-scoped public access token: `read:sessions:{ext} + write:sessions:{ext}`. */
|
|
7492
|
+
publicAccessToken: z.ZodString;
|
|
7493
|
+
/** True if the session existed already (idempotent upsert), false if newly created. */
|
|
7494
|
+
isCached: z.ZodBoolean;
|
|
7106
7495
|
}, "strip", z.ZodTypeAny, {
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
|
|
7496
|
+
type: string;
|
|
7497
|
+
metadata: Record<string, unknown> | null;
|
|
7498
|
+
id: string;
|
|
7499
|
+
tags: string[];
|
|
7500
|
+
createdAt: Date;
|
|
7501
|
+
taskIdentifier: string;
|
|
7502
|
+
externalId: string | null;
|
|
7503
|
+
updatedAt: Date;
|
|
7504
|
+
runId: string;
|
|
7505
|
+
isCached: boolean;
|
|
7506
|
+
expiresAt: Date | null;
|
|
7507
|
+
closedAt: Date | null;
|
|
7508
|
+
closedReason: string | null;
|
|
7509
|
+
publicAccessToken: string;
|
|
7510
|
+
triggerConfig?: {
|
|
7511
|
+
basePayload: Record<string, unknown>;
|
|
7512
|
+
tags?: string[] | undefined;
|
|
7513
|
+
maxAttempts?: number | undefined;
|
|
7514
|
+
queue?: string | undefined;
|
|
7515
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7516
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7517
|
+
} | undefined;
|
|
7518
|
+
currentRunId?: string | null | undefined;
|
|
7519
|
+
}, {
|
|
7520
|
+
type: string;
|
|
7521
|
+
metadata: Record<string, unknown> | null;
|
|
7522
|
+
id: string;
|
|
7523
|
+
tags: string[];
|
|
7524
|
+
createdAt: Date;
|
|
7525
|
+
taskIdentifier: string;
|
|
7526
|
+
externalId: string | null;
|
|
7527
|
+
updatedAt: Date;
|
|
7528
|
+
runId: string;
|
|
7529
|
+
isCached: boolean;
|
|
7530
|
+
expiresAt: Date | null;
|
|
7531
|
+
closedAt: Date | null;
|
|
7532
|
+
closedReason: string | null;
|
|
7533
|
+
publicAccessToken: string;
|
|
7534
|
+
triggerConfig?: {
|
|
7535
|
+
basePayload: Record<string, unknown>;
|
|
7536
|
+
tags?: string[] | undefined;
|
|
7537
|
+
maxAttempts?: number | undefined;
|
|
7538
|
+
queue?: string | undefined;
|
|
7539
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7540
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7541
|
+
} | undefined;
|
|
7542
|
+
currentRunId?: string | null | undefined;
|
|
7543
|
+
}>;
|
|
7544
|
+
export type CreatedSessionResponseBody = z.infer<typeof CreatedSessionResponseBody>;
|
|
7545
|
+
export declare const RetrieveSessionResponseBody: z.ZodObject<{
|
|
7546
|
+
id: z.ZodString;
|
|
7547
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
7548
|
+
type: z.ZodString;
|
|
7549
|
+
taskIdentifier: z.ZodString;
|
|
7550
|
+
/**
|
|
7551
|
+
* Optional on the wire because some surfaces (the list endpoint backed
|
|
7552
|
+
* by ClickHouse, list-page rendering) don't carry triggerConfig.
|
|
7553
|
+
* Always populated on `POST /sessions` and `GET /sessions/:id`.
|
|
7554
|
+
*/
|
|
7555
|
+
triggerConfig: z.ZodOptional<z.ZodObject<{
|
|
7556
|
+
basePayload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7557
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
7558
|
+
queue: z.ZodOptional<z.ZodString>;
|
|
7559
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7560
|
+
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
7561
|
+
/** Convenience field surfaced to chat.agent via the wire payload. */
|
|
7562
|
+
idleTimeoutInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
7563
|
+
}, "strip", z.ZodTypeAny, {
|
|
7564
|
+
basePayload: Record<string, unknown>;
|
|
7565
|
+
tags?: string[] | undefined;
|
|
7566
|
+
maxAttempts?: number | undefined;
|
|
7567
|
+
queue?: string | undefined;
|
|
7568
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7569
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7570
|
+
}, {
|
|
7571
|
+
basePayload: Record<string, unknown>;
|
|
7572
|
+
tags?: string[] | undefined;
|
|
7573
|
+
maxAttempts?: number | undefined;
|
|
7574
|
+
queue?: string | undefined;
|
|
7575
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7576
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7577
|
+
}>>;
|
|
7578
|
+
/**
|
|
7579
|
+
* Friendly id of the live run for this session, if any. Optional on
|
|
7580
|
+
* the wire — list surfaces may not include it. Routes that emit
|
|
7581
|
+
* `SessionItem` are responsible for resolving the friendly form
|
|
7582
|
+
* from the underlying cuid before returning.
|
|
7583
|
+
*/
|
|
7584
|
+
currentRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7585
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
7586
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7587
|
+
closedAt: z.ZodNullable<z.ZodDate>;
|
|
7588
|
+
closedReason: z.ZodNullable<z.ZodString>;
|
|
7589
|
+
expiresAt: z.ZodNullable<z.ZodDate>;
|
|
7590
|
+
createdAt: z.ZodDate;
|
|
7591
|
+
updatedAt: z.ZodDate;
|
|
7592
|
+
}, "strip", z.ZodTypeAny, {
|
|
7593
|
+
type: string;
|
|
7594
|
+
metadata: Record<string, unknown> | null;
|
|
7595
|
+
id: string;
|
|
7596
|
+
tags: string[];
|
|
7597
|
+
createdAt: Date;
|
|
7598
|
+
taskIdentifier: string;
|
|
7599
|
+
externalId: string | null;
|
|
7600
|
+
updatedAt: Date;
|
|
7601
|
+
expiresAt: Date | null;
|
|
7602
|
+
closedAt: Date | null;
|
|
7603
|
+
closedReason: string | null;
|
|
7604
|
+
triggerConfig?: {
|
|
7605
|
+
basePayload: Record<string, unknown>;
|
|
7606
|
+
tags?: string[] | undefined;
|
|
7607
|
+
maxAttempts?: number | undefined;
|
|
7608
|
+
queue?: string | undefined;
|
|
7609
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7610
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7611
|
+
} | undefined;
|
|
7612
|
+
currentRunId?: string | null | undefined;
|
|
7613
|
+
}, {
|
|
7614
|
+
type: string;
|
|
7615
|
+
metadata: Record<string, unknown> | null;
|
|
7616
|
+
id: string;
|
|
7617
|
+
tags: string[];
|
|
7618
|
+
createdAt: Date;
|
|
7619
|
+
taskIdentifier: string;
|
|
7620
|
+
externalId: string | null;
|
|
7621
|
+
updatedAt: Date;
|
|
7622
|
+
expiresAt: Date | null;
|
|
7623
|
+
closedAt: Date | null;
|
|
7624
|
+
closedReason: string | null;
|
|
7625
|
+
triggerConfig?: {
|
|
7626
|
+
basePayload: Record<string, unknown>;
|
|
7627
|
+
tags?: string[] | undefined;
|
|
7628
|
+
maxAttempts?: number | undefined;
|
|
7629
|
+
queue?: string | undefined;
|
|
7630
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7631
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7632
|
+
} | undefined;
|
|
7633
|
+
currentRunId?: string | null | undefined;
|
|
7634
|
+
}>;
|
|
7635
|
+
export type RetrieveSessionResponseBody = z.infer<typeof RetrieveSessionResponseBody>;
|
|
7636
|
+
/**
|
|
7637
|
+
* Body for `POST /api/v1/sessions/:session/end-and-continue`. Used by the
|
|
7638
|
+
* running agent to request a clean handoff to a fresh run on the latest
|
|
7639
|
+
* deployed version (typical use case: `chat.requestUpgrade`). The
|
|
7640
|
+
* server triggers a new run, atomically swaps `currentRunId`, and the
|
|
7641
|
+
* caller exits.
|
|
7642
|
+
*/
|
|
7643
|
+
export declare const EndAndContinueSessionRequestBody: z.ZodObject<{
|
|
7644
|
+
/** The friendlyId of the run requesting the handoff. */
|
|
7645
|
+
callingRunId: z.ZodString;
|
|
7646
|
+
/** Free-form label for the SessionRun audit row. e.g. `"upgrade"`. */
|
|
7647
|
+
reason: z.ZodString;
|
|
7648
|
+
}, "strip", z.ZodTypeAny, {
|
|
7649
|
+
reason: string;
|
|
7650
|
+
callingRunId: string;
|
|
7651
|
+
}, {
|
|
7652
|
+
reason: string;
|
|
7653
|
+
callingRunId: string;
|
|
7654
|
+
}>;
|
|
7655
|
+
export type EndAndContinueSessionRequestBody = z.infer<typeof EndAndContinueSessionRequestBody>;
|
|
7656
|
+
export declare const EndAndContinueSessionResponseBody: z.ZodObject<{
|
|
7657
|
+
/** friendlyId of the run that has taken over the session. */
|
|
7658
|
+
runId: z.ZodString;
|
|
7659
|
+
/**
|
|
7660
|
+
* False when the swap was preempted (a different run was already
|
|
7661
|
+
* running by the time we tried to claim). The caller should treat
|
|
7662
|
+
* this as "someone else moved on" — exit cleanly without expecting
|
|
7663
|
+
* to drive the next run.
|
|
7664
|
+
*/
|
|
7665
|
+
swapped: z.ZodBoolean;
|
|
7666
|
+
}, "strip", z.ZodTypeAny, {
|
|
7667
|
+
runId: string;
|
|
7668
|
+
swapped: boolean;
|
|
7669
|
+
}, {
|
|
7670
|
+
runId: string;
|
|
7671
|
+
swapped: boolean;
|
|
7672
|
+
}>;
|
|
7673
|
+
export type EndAndContinueSessionResponseBody = z.infer<typeof EndAndContinueSessionResponseBody>;
|
|
7674
|
+
export declare const UpdateSessionRequestBody: z.ZodObject<{
|
|
7675
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7676
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
7677
|
+
externalId: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<null>, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
7678
|
+
}, "strip", z.ZodTypeAny, {
|
|
7679
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
7680
|
+
tags?: string[] | undefined;
|
|
7681
|
+
externalId?: string | null | undefined;
|
|
7682
|
+
}, {
|
|
7683
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
7684
|
+
tags?: string[] | undefined;
|
|
7685
|
+
externalId?: string | null | undefined;
|
|
7686
|
+
}>;
|
|
7687
|
+
export type UpdateSessionRequestBody = z.infer<typeof UpdateSessionRequestBody>;
|
|
7688
|
+
export declare const CloseSessionRequestBody: z.ZodObject<{
|
|
7689
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
7690
|
+
}, "strip", z.ZodTypeAny, {
|
|
7691
|
+
reason?: string | undefined;
|
|
7692
|
+
}, {
|
|
7693
|
+
reason?: string | undefined;
|
|
7694
|
+
}>;
|
|
7695
|
+
export type CloseSessionRequestBody = z.infer<typeof CloseSessionRequestBody>;
|
|
7696
|
+
export declare const SessionStatus: z.ZodEnum<["ACTIVE", "CLOSED", "EXPIRED"]>;
|
|
7697
|
+
export type SessionStatus = z.infer<typeof SessionStatus>;
|
|
7698
|
+
/**
|
|
7699
|
+
* Server-side validation schema for `GET /api/v1/sessions`. Follows the same
|
|
7700
|
+
* cursor-pagination convention as runs/waitpoints (`page[size]`,
|
|
7701
|
+
* `page[after]`, `page[before]`) and uses the `filter[*]` prefix for
|
|
7702
|
+
* narrowing fields — both produced automatically by `zodfetchCursorPage`
|
|
7703
|
+
* and the matching client-side search-query helper.
|
|
7704
|
+
*/
|
|
7705
|
+
export declare const ListSessionsQueryParams: z.ZodEffects<z.ZodObject<{
|
|
7706
|
+
"page[size]": z.ZodDefault<z.ZodNumber>;
|
|
7707
|
+
"page[after]": z.ZodOptional<z.ZodString>;
|
|
7708
|
+
"page[before]": z.ZodOptional<z.ZodString>;
|
|
7709
|
+
"filter[type]": z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
7710
|
+
"filter[tags]": z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
7711
|
+
"filter[taskIdentifier]": z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
7712
|
+
"filter[externalId]": z.ZodOptional<z.ZodString>;
|
|
7713
|
+
"filter[status]": z.ZodOptional<z.ZodUnion<[z.ZodEnum<["ACTIVE", "CLOSED", "EXPIRED"]>, z.ZodArray<z.ZodEnum<["ACTIVE", "CLOSED", "EXPIRED"]>, "many">]>>;
|
|
7714
|
+
"filter[createdAt][period]": z.ZodOptional<z.ZodString>;
|
|
7715
|
+
"filter[createdAt][from]": z.ZodOptional<z.ZodNumber>;
|
|
7716
|
+
"filter[createdAt][to]": z.ZodOptional<z.ZodNumber>;
|
|
7717
|
+
}, "strip", z.ZodTypeAny, {
|
|
7718
|
+
"page[size]": number;
|
|
7719
|
+
"page[after]"?: string | undefined;
|
|
7720
|
+
"page[before]"?: string | undefined;
|
|
7721
|
+
"filter[type]"?: string | string[] | undefined;
|
|
7722
|
+
"filter[tags]"?: string | string[] | undefined;
|
|
7723
|
+
"filter[taskIdentifier]"?: string | string[] | undefined;
|
|
7724
|
+
"filter[externalId]"?: string | undefined;
|
|
7725
|
+
"filter[status]"?: "EXPIRED" | "ACTIVE" | "CLOSED" | ("EXPIRED" | "ACTIVE" | "CLOSED")[] | undefined;
|
|
7726
|
+
"filter[createdAt][period]"?: string | undefined;
|
|
7727
|
+
"filter[createdAt][from]"?: number | undefined;
|
|
7728
|
+
"filter[createdAt][to]"?: number | undefined;
|
|
7729
|
+
}, {
|
|
7730
|
+
"page[size]"?: number | undefined;
|
|
7731
|
+
"page[after]"?: string | undefined;
|
|
7732
|
+
"page[before]"?: string | undefined;
|
|
7733
|
+
"filter[type]"?: string | string[] | undefined;
|
|
7734
|
+
"filter[tags]"?: string | string[] | undefined;
|
|
7735
|
+
"filter[taskIdentifier]"?: string | string[] | undefined;
|
|
7736
|
+
"filter[externalId]"?: string | undefined;
|
|
7737
|
+
"filter[status]"?: "EXPIRED" | "ACTIVE" | "CLOSED" | ("EXPIRED" | "ACTIVE" | "CLOSED")[] | undefined;
|
|
7738
|
+
"filter[createdAt][period]"?: string | undefined;
|
|
7739
|
+
"filter[createdAt][from]"?: number | undefined;
|
|
7740
|
+
"filter[createdAt][to]"?: number | undefined;
|
|
7741
|
+
}>, {
|
|
7742
|
+
"page[size]": number;
|
|
7743
|
+
"page[after]"?: string | undefined;
|
|
7744
|
+
"page[before]"?: string | undefined;
|
|
7745
|
+
"filter[type]"?: string | string[] | undefined;
|
|
7746
|
+
"filter[tags]"?: string | string[] | undefined;
|
|
7747
|
+
"filter[taskIdentifier]"?: string | string[] | undefined;
|
|
7748
|
+
"filter[externalId]"?: string | undefined;
|
|
7749
|
+
"filter[status]"?: "EXPIRED" | "ACTIVE" | "CLOSED" | ("EXPIRED" | "ACTIVE" | "CLOSED")[] | undefined;
|
|
7750
|
+
"filter[createdAt][period]"?: string | undefined;
|
|
7751
|
+
"filter[createdAt][from]"?: number | undefined;
|
|
7752
|
+
"filter[createdAt][to]"?: number | undefined;
|
|
7753
|
+
}, {
|
|
7754
|
+
"page[size]"?: number | undefined;
|
|
7755
|
+
"page[after]"?: string | undefined;
|
|
7756
|
+
"page[before]"?: string | undefined;
|
|
7757
|
+
"filter[type]"?: string | string[] | undefined;
|
|
7758
|
+
"filter[tags]"?: string | string[] | undefined;
|
|
7759
|
+
"filter[taskIdentifier]"?: string | string[] | undefined;
|
|
7760
|
+
"filter[externalId]"?: string | undefined;
|
|
7761
|
+
"filter[status]"?: "EXPIRED" | "ACTIVE" | "CLOSED" | ("EXPIRED" | "ACTIVE" | "CLOSED")[] | undefined;
|
|
7762
|
+
"filter[createdAt][period]"?: string | undefined;
|
|
7763
|
+
"filter[createdAt][from]"?: number | undefined;
|
|
7764
|
+
"filter[createdAt][to]"?: number | undefined;
|
|
7765
|
+
}>;
|
|
7766
|
+
export type ListSessionsQueryParams = z.infer<typeof ListSessionsQueryParams>;
|
|
7767
|
+
/**
|
|
7768
|
+
* Client-facing list options — flattened shape that
|
|
7769
|
+
* {@link ApiClient.listSessions} converts into the `filter[*]` / `page[*]`
|
|
7770
|
+
* query string before sending.
|
|
7771
|
+
*/
|
|
7772
|
+
export declare const ListSessionsOptions: z.ZodObject<{
|
|
7773
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7774
|
+
after: z.ZodOptional<z.ZodString>;
|
|
7775
|
+
before: z.ZodOptional<z.ZodString>;
|
|
7776
|
+
type: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
7777
|
+
tag: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
7778
|
+
taskIdentifier: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
7779
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
7780
|
+
status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["ACTIVE", "CLOSED", "EXPIRED"]>, z.ZodArray<z.ZodEnum<["ACTIVE", "CLOSED", "EXPIRED"]>, "many">]>>;
|
|
7781
|
+
period: z.ZodOptional<z.ZodString>;
|
|
7782
|
+
from: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodDate]>>;
|
|
7783
|
+
to: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodDate]>>;
|
|
7784
|
+
}, "strip", z.ZodTypeAny, {
|
|
7785
|
+
type?: string | string[] | undefined;
|
|
7786
|
+
status?: "EXPIRED" | "ACTIVE" | "CLOSED" | ("EXPIRED" | "ACTIVE" | "CLOSED")[] | undefined;
|
|
7787
|
+
taskIdentifier?: string | string[] | undefined;
|
|
7788
|
+
externalId?: string | undefined;
|
|
7789
|
+
limit?: number | undefined;
|
|
7790
|
+
after?: string | undefined;
|
|
7791
|
+
before?: string | undefined;
|
|
7792
|
+
tag?: string | string[] | undefined;
|
|
7793
|
+
period?: string | undefined;
|
|
7794
|
+
from?: number | Date | undefined;
|
|
7795
|
+
to?: number | Date | undefined;
|
|
7796
|
+
}, {
|
|
7797
|
+
type?: string | string[] | undefined;
|
|
7798
|
+
status?: "EXPIRED" | "ACTIVE" | "CLOSED" | ("EXPIRED" | "ACTIVE" | "CLOSED")[] | undefined;
|
|
7799
|
+
taskIdentifier?: string | string[] | undefined;
|
|
7800
|
+
externalId?: string | undefined;
|
|
7801
|
+
limit?: number | undefined;
|
|
7802
|
+
after?: string | undefined;
|
|
7803
|
+
before?: string | undefined;
|
|
7804
|
+
tag?: string | string[] | undefined;
|
|
7805
|
+
period?: string | undefined;
|
|
7806
|
+
from?: number | Date | undefined;
|
|
7807
|
+
to?: number | Date | undefined;
|
|
7808
|
+
}>;
|
|
7809
|
+
export type ListSessionsOptions = z.infer<typeof ListSessionsOptions>;
|
|
7810
|
+
export declare const ListedSessionItem: z.ZodObject<{
|
|
7811
|
+
id: z.ZodString;
|
|
7812
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
7813
|
+
type: z.ZodString;
|
|
7814
|
+
taskIdentifier: z.ZodString;
|
|
7815
|
+
/**
|
|
7816
|
+
* Optional on the wire because some surfaces (the list endpoint backed
|
|
7817
|
+
* by ClickHouse, list-page rendering) don't carry triggerConfig.
|
|
7818
|
+
* Always populated on `POST /sessions` and `GET /sessions/:id`.
|
|
7819
|
+
*/
|
|
7820
|
+
triggerConfig: z.ZodOptional<z.ZodObject<{
|
|
7821
|
+
basePayload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7822
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
7823
|
+
queue: z.ZodOptional<z.ZodString>;
|
|
7824
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7825
|
+
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
7826
|
+
/** Convenience field surfaced to chat.agent via the wire payload. */
|
|
7827
|
+
idleTimeoutInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
7828
|
+
}, "strip", z.ZodTypeAny, {
|
|
7829
|
+
basePayload: Record<string, unknown>;
|
|
7830
|
+
tags?: string[] | undefined;
|
|
7831
|
+
maxAttempts?: number | undefined;
|
|
7832
|
+
queue?: string | undefined;
|
|
7833
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7834
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7835
|
+
}, {
|
|
7836
|
+
basePayload: Record<string, unknown>;
|
|
7837
|
+
tags?: string[] | undefined;
|
|
7838
|
+
maxAttempts?: number | undefined;
|
|
7839
|
+
queue?: string | undefined;
|
|
7840
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7841
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7842
|
+
}>>;
|
|
7843
|
+
/**
|
|
7844
|
+
* Friendly id of the live run for this session, if any. Optional on
|
|
7845
|
+
* the wire — list surfaces may not include it. Routes that emit
|
|
7846
|
+
* `SessionItem` are responsible for resolving the friendly form
|
|
7847
|
+
* from the underlying cuid before returning.
|
|
7848
|
+
*/
|
|
7849
|
+
currentRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7850
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
7851
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7852
|
+
closedAt: z.ZodNullable<z.ZodDate>;
|
|
7853
|
+
closedReason: z.ZodNullable<z.ZodString>;
|
|
7854
|
+
expiresAt: z.ZodNullable<z.ZodDate>;
|
|
7855
|
+
createdAt: z.ZodDate;
|
|
7856
|
+
updatedAt: z.ZodDate;
|
|
7857
|
+
}, "strip", z.ZodTypeAny, {
|
|
7858
|
+
type: string;
|
|
7859
|
+
metadata: Record<string, unknown> | null;
|
|
7860
|
+
id: string;
|
|
7861
|
+
tags: string[];
|
|
7862
|
+
createdAt: Date;
|
|
7863
|
+
taskIdentifier: string;
|
|
7864
|
+
externalId: string | null;
|
|
7865
|
+
updatedAt: Date;
|
|
7866
|
+
expiresAt: Date | null;
|
|
7867
|
+
closedAt: Date | null;
|
|
7868
|
+
closedReason: string | null;
|
|
7869
|
+
triggerConfig?: {
|
|
7870
|
+
basePayload: Record<string, unknown>;
|
|
7871
|
+
tags?: string[] | undefined;
|
|
7872
|
+
maxAttempts?: number | undefined;
|
|
7873
|
+
queue?: string | undefined;
|
|
7874
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7875
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7876
|
+
} | undefined;
|
|
7877
|
+
currentRunId?: string | null | undefined;
|
|
7878
|
+
}, {
|
|
7879
|
+
type: string;
|
|
7880
|
+
metadata: Record<string, unknown> | null;
|
|
7881
|
+
id: string;
|
|
7882
|
+
tags: string[];
|
|
7883
|
+
createdAt: Date;
|
|
7884
|
+
taskIdentifier: string;
|
|
7885
|
+
externalId: string | null;
|
|
7886
|
+
updatedAt: Date;
|
|
7887
|
+
expiresAt: Date | null;
|
|
7888
|
+
closedAt: Date | null;
|
|
7889
|
+
closedReason: string | null;
|
|
7890
|
+
triggerConfig?: {
|
|
7891
|
+
basePayload: Record<string, unknown>;
|
|
7892
|
+
tags?: string[] | undefined;
|
|
7893
|
+
maxAttempts?: number | undefined;
|
|
7894
|
+
queue?: string | undefined;
|
|
7895
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7896
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7897
|
+
} | undefined;
|
|
7898
|
+
currentRunId?: string | null | undefined;
|
|
7899
|
+
}>;
|
|
7900
|
+
export type ListedSessionItem = z.infer<typeof ListedSessionItem>;
|
|
7901
|
+
export declare const ListSessionsResponseBody: z.ZodObject<{
|
|
7902
|
+
data: z.ZodArray<z.ZodObject<{
|
|
7903
|
+
id: z.ZodString;
|
|
7904
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
7905
|
+
type: z.ZodString;
|
|
7906
|
+
taskIdentifier: z.ZodString;
|
|
7907
|
+
/**
|
|
7908
|
+
* Optional on the wire because some surfaces (the list endpoint backed
|
|
7909
|
+
* by ClickHouse, list-page rendering) don't carry triggerConfig.
|
|
7910
|
+
* Always populated on `POST /sessions` and `GET /sessions/:id`.
|
|
7911
|
+
*/
|
|
7912
|
+
triggerConfig: z.ZodOptional<z.ZodObject<{
|
|
7913
|
+
basePayload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7914
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
7915
|
+
queue: z.ZodOptional<z.ZodString>;
|
|
7916
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7917
|
+
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
7918
|
+
/** Convenience field surfaced to chat.agent via the wire payload. */
|
|
7919
|
+
idleTimeoutInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
7920
|
+
}, "strip", z.ZodTypeAny, {
|
|
7921
|
+
basePayload: Record<string, unknown>;
|
|
7922
|
+
tags?: string[] | undefined;
|
|
7923
|
+
maxAttempts?: number | undefined;
|
|
7924
|
+
queue?: string | undefined;
|
|
7925
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7926
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7927
|
+
}, {
|
|
7928
|
+
basePayload: Record<string, unknown>;
|
|
7929
|
+
tags?: string[] | undefined;
|
|
7930
|
+
maxAttempts?: number | undefined;
|
|
7931
|
+
queue?: string | undefined;
|
|
7932
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7933
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7934
|
+
}>>;
|
|
7935
|
+
/**
|
|
7936
|
+
* Friendly id of the live run for this session, if any. Optional on
|
|
7937
|
+
* the wire — list surfaces may not include it. Routes that emit
|
|
7938
|
+
* `SessionItem` are responsible for resolving the friendly form
|
|
7939
|
+
* from the underlying cuid before returning.
|
|
7940
|
+
*/
|
|
7941
|
+
currentRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7942
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
7943
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7944
|
+
closedAt: z.ZodNullable<z.ZodDate>;
|
|
7945
|
+
closedReason: z.ZodNullable<z.ZodString>;
|
|
7946
|
+
expiresAt: z.ZodNullable<z.ZodDate>;
|
|
7947
|
+
createdAt: z.ZodDate;
|
|
7948
|
+
updatedAt: z.ZodDate;
|
|
7949
|
+
}, "strip", z.ZodTypeAny, {
|
|
7950
|
+
type: string;
|
|
7951
|
+
metadata: Record<string, unknown> | null;
|
|
7952
|
+
id: string;
|
|
7953
|
+
tags: string[];
|
|
7954
|
+
createdAt: Date;
|
|
7955
|
+
taskIdentifier: string;
|
|
7956
|
+
externalId: string | null;
|
|
7957
|
+
updatedAt: Date;
|
|
7958
|
+
expiresAt: Date | null;
|
|
7959
|
+
closedAt: Date | null;
|
|
7960
|
+
closedReason: string | null;
|
|
7961
|
+
triggerConfig?: {
|
|
7962
|
+
basePayload: Record<string, unknown>;
|
|
7963
|
+
tags?: string[] | undefined;
|
|
7964
|
+
maxAttempts?: number | undefined;
|
|
7965
|
+
queue?: string | undefined;
|
|
7966
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7967
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7968
|
+
} | undefined;
|
|
7969
|
+
currentRunId?: string | null | undefined;
|
|
7970
|
+
}, {
|
|
7971
|
+
type: string;
|
|
7972
|
+
metadata: Record<string, unknown> | null;
|
|
7973
|
+
id: string;
|
|
7974
|
+
tags: string[];
|
|
7975
|
+
createdAt: Date;
|
|
7976
|
+
taskIdentifier: string;
|
|
7977
|
+
externalId: string | null;
|
|
7978
|
+
updatedAt: Date;
|
|
7979
|
+
expiresAt: Date | null;
|
|
7980
|
+
closedAt: Date | null;
|
|
7981
|
+
closedReason: string | null;
|
|
7982
|
+
triggerConfig?: {
|
|
7983
|
+
basePayload: Record<string, unknown>;
|
|
7984
|
+
tags?: string[] | undefined;
|
|
7985
|
+
maxAttempts?: number | undefined;
|
|
7986
|
+
queue?: string | undefined;
|
|
7987
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7988
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7989
|
+
} | undefined;
|
|
7990
|
+
currentRunId?: string | null | undefined;
|
|
7991
|
+
}>, "many">;
|
|
7992
|
+
pagination: z.ZodObject<{
|
|
7993
|
+
next: z.ZodOptional<z.ZodString>;
|
|
7994
|
+
previous: z.ZodOptional<z.ZodString>;
|
|
7995
|
+
}, "strip", z.ZodTypeAny, {
|
|
7996
|
+
next?: string | undefined;
|
|
7997
|
+
previous?: string | undefined;
|
|
7998
|
+
}, {
|
|
7999
|
+
next?: string | undefined;
|
|
8000
|
+
previous?: string | undefined;
|
|
8001
|
+
}>;
|
|
8002
|
+
}, "strip", z.ZodTypeAny, {
|
|
8003
|
+
data: {
|
|
8004
|
+
type: string;
|
|
8005
|
+
metadata: Record<string, unknown> | null;
|
|
8006
|
+
id: string;
|
|
8007
|
+
tags: string[];
|
|
8008
|
+
createdAt: Date;
|
|
8009
|
+
taskIdentifier: string;
|
|
8010
|
+
externalId: string | null;
|
|
8011
|
+
updatedAt: Date;
|
|
8012
|
+
expiresAt: Date | null;
|
|
8013
|
+
closedAt: Date | null;
|
|
8014
|
+
closedReason: string | null;
|
|
8015
|
+
triggerConfig?: {
|
|
8016
|
+
basePayload: Record<string, unknown>;
|
|
8017
|
+
tags?: string[] | undefined;
|
|
8018
|
+
maxAttempts?: number | undefined;
|
|
8019
|
+
queue?: string | undefined;
|
|
8020
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
8021
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
8022
|
+
} | undefined;
|
|
8023
|
+
currentRunId?: string | null | undefined;
|
|
8024
|
+
}[];
|
|
8025
|
+
pagination: {
|
|
8026
|
+
next?: string | undefined;
|
|
8027
|
+
previous?: string | undefined;
|
|
8028
|
+
};
|
|
8029
|
+
}, {
|
|
8030
|
+
data: {
|
|
8031
|
+
type: string;
|
|
8032
|
+
metadata: Record<string, unknown> | null;
|
|
8033
|
+
id: string;
|
|
8034
|
+
tags: string[];
|
|
8035
|
+
createdAt: Date;
|
|
8036
|
+
taskIdentifier: string;
|
|
8037
|
+
externalId: string | null;
|
|
8038
|
+
updatedAt: Date;
|
|
8039
|
+
expiresAt: Date | null;
|
|
8040
|
+
closedAt: Date | null;
|
|
8041
|
+
closedReason: string | null;
|
|
8042
|
+
triggerConfig?: {
|
|
8043
|
+
basePayload: Record<string, unknown>;
|
|
8044
|
+
tags?: string[] | undefined;
|
|
8045
|
+
maxAttempts?: number | undefined;
|
|
8046
|
+
queue?: string | undefined;
|
|
8047
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
8048
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
8049
|
+
} | undefined;
|
|
8050
|
+
currentRunId?: string | null | undefined;
|
|
8051
|
+
}[];
|
|
8052
|
+
pagination: {
|
|
8053
|
+
next?: string | undefined;
|
|
8054
|
+
previous?: string | undefined;
|
|
8055
|
+
};
|
|
8056
|
+
}>;
|
|
8057
|
+
export type ListSessionsResponseBody = z.infer<typeof ListSessionsResponseBody>;
|
|
8058
|
+
export declare const CompleteWaitpointTokenResponseBody: z.ZodObject<{
|
|
8059
|
+
success: z.ZodLiteral<true>;
|
|
8060
|
+
}, "strip", z.ZodTypeAny, {
|
|
8061
|
+
success: true;
|
|
8062
|
+
}, {
|
|
8063
|
+
success: true;
|
|
8064
|
+
}>;
|
|
8065
|
+
export type CompleteWaitpointTokenResponseBody = z.infer<typeof CompleteWaitpointTokenResponseBody>;
|
|
8066
|
+
export declare const WaitForWaitpointTokenResponseBody: z.ZodObject<{
|
|
8067
|
+
success: z.ZodBoolean;
|
|
8068
|
+
}, "strip", z.ZodTypeAny, {
|
|
8069
|
+
success: boolean;
|
|
8070
|
+
}, {
|
|
8071
|
+
success: boolean;
|
|
8072
|
+
}>;
|
|
8073
|
+
export type WaitForWaitpointTokenResponseBody = z.infer<typeof WaitForWaitpointTokenResponseBody>;
|
|
8074
|
+
export declare const WaitForDurationRequestBody: z.ZodObject<{
|
|
8075
|
+
/**
|
|
8076
|
+
* An optional idempotency key for the waitpoint.
|
|
8077
|
+
* If you use the same key twice (and the key hasn't expired), you will get the original waitpoint back.
|
|
8078
|
+
*
|
|
8079
|
+
* Note: This waitpoint may already be complete, in which case when you wait for it, it will immediately continue.
|
|
8080
|
+
*/
|
|
8081
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
8082
|
+
/**
|
|
8083
|
+
* When set, this means the passed in idempotency key will expire after this time.
|
|
8084
|
+
* This means after that time if you pass the same idempotency key again, you will get a new waitpoint.
|
|
8085
|
+
*/
|
|
8086
|
+
idempotencyKeyTTL: z.ZodOptional<z.ZodString>;
|
|
8087
|
+
/**
|
|
8088
|
+
* The date that the waitpoint will complete.
|
|
8089
|
+
*/
|
|
8090
|
+
date: z.ZodDate;
|
|
8091
|
+
}, "strip", z.ZodTypeAny, {
|
|
8092
|
+
date: Date;
|
|
8093
|
+
idempotencyKey?: string | undefined;
|
|
8094
|
+
idempotencyKeyTTL?: string | undefined;
|
|
8095
|
+
}, {
|
|
8096
|
+
date: Date;
|
|
8097
|
+
idempotencyKey?: string | undefined;
|
|
8098
|
+
idempotencyKeyTTL?: string | undefined;
|
|
8099
|
+
}>;
|
|
8100
|
+
export type WaitForDurationRequestBody = z.infer<typeof WaitForDurationRequestBody>;
|
|
8101
|
+
export declare const WaitForDurationResponseBody: z.ZodObject<{
|
|
8102
|
+
/**
|
|
8103
|
+
If you pass an idempotencyKey, you may actually not need to wait.
|
|
8104
|
+
Use this date to determine when to continue.
|
|
8105
|
+
*/
|
|
8106
|
+
waitUntil: z.ZodDate;
|
|
8107
|
+
waitpoint: z.ZodObject<{
|
|
8108
|
+
id: z.ZodString;
|
|
8109
|
+
}, "strip", z.ZodTypeAny, {
|
|
8110
|
+
id: string;
|
|
8111
|
+
}, {
|
|
8112
|
+
id: string;
|
|
8113
|
+
}>;
|
|
8114
|
+
}, "strip", z.ZodTypeAny, {
|
|
8115
|
+
waitUntil: Date;
|
|
8116
|
+
waitpoint: {
|
|
8117
|
+
id: string;
|
|
7110
8118
|
};
|
|
7111
8119
|
}, {
|
|
7112
8120
|
waitUntil: Date;
|
|
@@ -7138,17 +8146,17 @@ export declare const ApiDeploymentListOptions: z.ZodObject<{
|
|
|
7138
8146
|
}, "strip", z.ZodTypeAny, {
|
|
7139
8147
|
status?: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | undefined;
|
|
7140
8148
|
limit?: number | undefined;
|
|
7141
|
-
|
|
8149
|
+
period?: string | undefined;
|
|
7142
8150
|
from?: string | undefined;
|
|
7143
8151
|
to?: string | undefined;
|
|
7144
|
-
|
|
8152
|
+
cursor?: string | undefined;
|
|
7145
8153
|
}, {
|
|
7146
8154
|
status?: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | undefined;
|
|
7147
8155
|
limit?: number | undefined;
|
|
7148
|
-
|
|
8156
|
+
period?: string | undefined;
|
|
7149
8157
|
from?: string | undefined;
|
|
7150
8158
|
to?: string | undefined;
|
|
7151
|
-
|
|
8159
|
+
cursor?: string | undefined;
|
|
7152
8160
|
}>;
|
|
7153
8161
|
export type ApiDeploymentListOptions = z.infer<typeof ApiDeploymentListOptions>;
|
|
7154
8162
|
export declare const ApiDeploymentListSearchParams: z.ZodObject<{
|
|
@@ -7160,18 +8168,18 @@ export declare const ApiDeploymentListSearchParams: z.ZodObject<{
|
|
|
7160
8168
|
status: z.ZodOptional<z.ZodEnum<["PENDING", "BUILDING", "DEPLOYING", "DEPLOYED", "FAILED", "CANCELED", "TIMED_OUT"]>>;
|
|
7161
8169
|
}, "strip", z.ZodTypeAny, {
|
|
7162
8170
|
status?: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | undefined;
|
|
8171
|
+
"page[size]"?: number | undefined;
|
|
8172
|
+
"page[after]"?: string | undefined;
|
|
8173
|
+
period?: string | undefined;
|
|
7163
8174
|
from?: string | undefined;
|
|
7164
8175
|
to?: string | undefined;
|
|
7165
|
-
period?: string | undefined;
|
|
7166
|
-
"page[after]"?: string | undefined;
|
|
7167
|
-
"page[size]"?: number | undefined;
|
|
7168
8176
|
}, {
|
|
7169
8177
|
status?: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | undefined;
|
|
8178
|
+
"page[size]"?: number | undefined;
|
|
8179
|
+
"page[after]"?: string | undefined;
|
|
8180
|
+
period?: string | undefined;
|
|
7170
8181
|
from?: string | undefined;
|
|
7171
8182
|
to?: string | undefined;
|
|
7172
|
-
period?: string | undefined;
|
|
7173
|
-
"page[after]"?: string | undefined;
|
|
7174
|
-
"page[size]"?: number | undefined;
|
|
7175
8183
|
}>;
|
|
7176
8184
|
export type ApiDeploymentListSearchParams = z.infer<typeof ApiDeploymentListSearchParams>;
|
|
7177
8185
|
export declare const ApiDeploymentListResponseItem: z.ZodObject<{
|
|
@@ -7179,8 +8187,8 @@ export declare const ApiDeploymentListResponseItem: z.ZodObject<{
|
|
|
7179
8187
|
createdAt: z.ZodDate;
|
|
7180
8188
|
shortCode: z.ZodString;
|
|
7181
8189
|
version: z.ZodString;
|
|
7182
|
-
runtime: z.ZodString
|
|
7183
|
-
runtimeVersion: z.ZodString
|
|
8190
|
+
runtime: z.ZodNullable<z.ZodString>;
|
|
8191
|
+
runtimeVersion: z.ZodNullable<z.ZodString>;
|
|
7184
8192
|
status: z.ZodEnum<["PENDING", "BUILDING", "DEPLOYING", "DEPLOYED", "FAILED", "CANCELED", "TIMED_OUT"]>;
|
|
7185
8193
|
deployedAt: z.ZodOptional<z.ZodDate>;
|
|
7186
8194
|
git: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -7206,8 +8214,8 @@ export declare const ApiDeploymentListResponseItem: z.ZodObject<{
|
|
|
7206
8214
|
createdAt: Date;
|
|
7207
8215
|
version: string;
|
|
7208
8216
|
shortCode: string;
|
|
7209
|
-
runtime: string;
|
|
7210
|
-
runtimeVersion: string;
|
|
8217
|
+
runtime: string | null;
|
|
8218
|
+
runtimeVersion: string | null;
|
|
7211
8219
|
error?: {
|
|
7212
8220
|
message: string;
|
|
7213
8221
|
name: string;
|
|
@@ -7222,8 +8230,8 @@ export declare const ApiDeploymentListResponseItem: z.ZodObject<{
|
|
|
7222
8230
|
createdAt: Date;
|
|
7223
8231
|
version: string;
|
|
7224
8232
|
shortCode: string;
|
|
7225
|
-
runtime: string;
|
|
7226
|
-
runtimeVersion: string;
|
|
8233
|
+
runtime: string | null;
|
|
8234
|
+
runtimeVersion: string | null;
|
|
7227
8235
|
error?: {
|
|
7228
8236
|
message: string;
|
|
7229
8237
|
name: string;
|
|
@@ -7492,6 +8500,166 @@ export declare const RetrieveRunTraceResponseBody: z.ZodObject<{
|
|
|
7492
8500
|
};
|
|
7493
8501
|
}>;
|
|
7494
8502
|
export type RetrieveRunTraceResponseBody = z.infer<typeof RetrieveRunTraceResponseBody>;
|
|
8503
|
+
export declare const RetrieveSpanDetailResponseBody: z.ZodObject<{
|
|
8504
|
+
spanId: z.ZodString;
|
|
8505
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
8506
|
+
runId: z.ZodString;
|
|
8507
|
+
message: z.ZodString;
|
|
8508
|
+
isError: z.ZodBoolean;
|
|
8509
|
+
isPartial: z.ZodBoolean;
|
|
8510
|
+
isCancelled: z.ZodBoolean;
|
|
8511
|
+
level: z.ZodString;
|
|
8512
|
+
startTime: z.ZodDate;
|
|
8513
|
+
durationMs: z.ZodNumber;
|
|
8514
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
8515
|
+
events: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
8516
|
+
entityType: z.ZodOptional<z.ZodString>;
|
|
8517
|
+
ai: z.ZodOptional<z.ZodObject<{
|
|
8518
|
+
model: z.ZodString;
|
|
8519
|
+
provider: z.ZodString;
|
|
8520
|
+
operationName: z.ZodString;
|
|
8521
|
+
inputTokens: z.ZodNumber;
|
|
8522
|
+
outputTokens: z.ZodNumber;
|
|
8523
|
+
totalTokens: z.ZodNumber;
|
|
8524
|
+
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
8525
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
8526
|
+
inputCost: z.ZodOptional<z.ZodNumber>;
|
|
8527
|
+
outputCost: z.ZodOptional<z.ZodNumber>;
|
|
8528
|
+
totalCost: z.ZodOptional<z.ZodNumber>;
|
|
8529
|
+
tokensPerSecond: z.ZodOptional<z.ZodNumber>;
|
|
8530
|
+
msToFirstChunk: z.ZodOptional<z.ZodNumber>;
|
|
8531
|
+
durationMs: z.ZodNumber;
|
|
8532
|
+
finishReason: z.ZodOptional<z.ZodString>;
|
|
8533
|
+
responseText: z.ZodOptional<z.ZodString>;
|
|
8534
|
+
}, "strip", z.ZodTypeAny, {
|
|
8535
|
+
durationMs: number;
|
|
8536
|
+
provider: string;
|
|
8537
|
+
model: string;
|
|
8538
|
+
operationName: string;
|
|
8539
|
+
inputTokens: number;
|
|
8540
|
+
outputTokens: number;
|
|
8541
|
+
totalTokens: number;
|
|
8542
|
+
cachedTokens?: number | undefined;
|
|
8543
|
+
reasoningTokens?: number | undefined;
|
|
8544
|
+
inputCost?: number | undefined;
|
|
8545
|
+
outputCost?: number | undefined;
|
|
8546
|
+
totalCost?: number | undefined;
|
|
8547
|
+
tokensPerSecond?: number | undefined;
|
|
8548
|
+
msToFirstChunk?: number | undefined;
|
|
8549
|
+
finishReason?: string | undefined;
|
|
8550
|
+
responseText?: string | undefined;
|
|
8551
|
+
}, {
|
|
8552
|
+
durationMs: number;
|
|
8553
|
+
provider: string;
|
|
8554
|
+
model: string;
|
|
8555
|
+
operationName: string;
|
|
8556
|
+
inputTokens: number;
|
|
8557
|
+
outputTokens: number;
|
|
8558
|
+
totalTokens: number;
|
|
8559
|
+
cachedTokens?: number | undefined;
|
|
8560
|
+
reasoningTokens?: number | undefined;
|
|
8561
|
+
inputCost?: number | undefined;
|
|
8562
|
+
outputCost?: number | undefined;
|
|
8563
|
+
totalCost?: number | undefined;
|
|
8564
|
+
tokensPerSecond?: number | undefined;
|
|
8565
|
+
msToFirstChunk?: number | undefined;
|
|
8566
|
+
finishReason?: string | undefined;
|
|
8567
|
+
responseText?: string | undefined;
|
|
8568
|
+
}>>;
|
|
8569
|
+
triggeredRuns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8570
|
+
runId: z.ZodString;
|
|
8571
|
+
taskIdentifier: z.ZodString;
|
|
8572
|
+
status: z.ZodString;
|
|
8573
|
+
createdAt: z.ZodDate;
|
|
8574
|
+
}, "strip", z.ZodTypeAny, {
|
|
8575
|
+
status: string;
|
|
8576
|
+
createdAt: Date;
|
|
8577
|
+
taskIdentifier: string;
|
|
8578
|
+
runId: string;
|
|
8579
|
+
}, {
|
|
8580
|
+
status: string;
|
|
8581
|
+
createdAt: Date;
|
|
8582
|
+
taskIdentifier: string;
|
|
8583
|
+
runId: string;
|
|
8584
|
+
}>, "many">>;
|
|
8585
|
+
}, "strip", z.ZodTypeAny, {
|
|
8586
|
+
message: string;
|
|
8587
|
+
durationMs: number;
|
|
8588
|
+
isCancelled: boolean;
|
|
8589
|
+
runId: string;
|
|
8590
|
+
level: string;
|
|
8591
|
+
parentId: string | null;
|
|
8592
|
+
startTime: Date;
|
|
8593
|
+
isError: boolean;
|
|
8594
|
+
isPartial: boolean;
|
|
8595
|
+
spanId: string;
|
|
8596
|
+
properties?: Record<string, any> | undefined;
|
|
8597
|
+
events?: any[] | undefined;
|
|
8598
|
+
entityType?: string | undefined;
|
|
8599
|
+
ai?: {
|
|
8600
|
+
durationMs: number;
|
|
8601
|
+
provider: string;
|
|
8602
|
+
model: string;
|
|
8603
|
+
operationName: string;
|
|
8604
|
+
inputTokens: number;
|
|
8605
|
+
outputTokens: number;
|
|
8606
|
+
totalTokens: number;
|
|
8607
|
+
cachedTokens?: number | undefined;
|
|
8608
|
+
reasoningTokens?: number | undefined;
|
|
8609
|
+
inputCost?: number | undefined;
|
|
8610
|
+
outputCost?: number | undefined;
|
|
8611
|
+
totalCost?: number | undefined;
|
|
8612
|
+
tokensPerSecond?: number | undefined;
|
|
8613
|
+
msToFirstChunk?: number | undefined;
|
|
8614
|
+
finishReason?: string | undefined;
|
|
8615
|
+
responseText?: string | undefined;
|
|
8616
|
+
} | undefined;
|
|
8617
|
+
triggeredRuns?: {
|
|
8618
|
+
status: string;
|
|
8619
|
+
createdAt: Date;
|
|
8620
|
+
taskIdentifier: string;
|
|
8621
|
+
runId: string;
|
|
8622
|
+
}[] | undefined;
|
|
8623
|
+
}, {
|
|
8624
|
+
message: string;
|
|
8625
|
+
durationMs: number;
|
|
8626
|
+
isCancelled: boolean;
|
|
8627
|
+
runId: string;
|
|
8628
|
+
level: string;
|
|
8629
|
+
parentId: string | null;
|
|
8630
|
+
startTime: Date;
|
|
8631
|
+
isError: boolean;
|
|
8632
|
+
isPartial: boolean;
|
|
8633
|
+
spanId: string;
|
|
8634
|
+
properties?: Record<string, any> | undefined;
|
|
8635
|
+
events?: any[] | undefined;
|
|
8636
|
+
entityType?: string | undefined;
|
|
8637
|
+
ai?: {
|
|
8638
|
+
durationMs: number;
|
|
8639
|
+
provider: string;
|
|
8640
|
+
model: string;
|
|
8641
|
+
operationName: string;
|
|
8642
|
+
inputTokens: number;
|
|
8643
|
+
outputTokens: number;
|
|
8644
|
+
totalTokens: number;
|
|
8645
|
+
cachedTokens?: number | undefined;
|
|
8646
|
+
reasoningTokens?: number | undefined;
|
|
8647
|
+
inputCost?: number | undefined;
|
|
8648
|
+
outputCost?: number | undefined;
|
|
8649
|
+
totalCost?: number | undefined;
|
|
8650
|
+
tokensPerSecond?: number | undefined;
|
|
8651
|
+
msToFirstChunk?: number | undefined;
|
|
8652
|
+
finishReason?: string | undefined;
|
|
8653
|
+
responseText?: string | undefined;
|
|
8654
|
+
} | undefined;
|
|
8655
|
+
triggeredRuns?: {
|
|
8656
|
+
status: string;
|
|
8657
|
+
createdAt: Date;
|
|
8658
|
+
taskIdentifier: string;
|
|
8659
|
+
runId: string;
|
|
8660
|
+
}[] | undefined;
|
|
8661
|
+
}>;
|
|
8662
|
+
export type RetrieveSpanDetailResponseBody = z.infer<typeof RetrieveSpanDetailResponseBody>;
|
|
7495
8663
|
export declare const CreateStreamResponseBody: z.ZodObject<{
|
|
7496
8664
|
version: z.ZodString;
|
|
7497
8665
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -7519,4 +8687,248 @@ export declare const SendInputStreamResponseBody: z.ZodObject<{
|
|
|
7519
8687
|
ok: boolean;
|
|
7520
8688
|
}>;
|
|
7521
8689
|
export type SendInputStreamResponseBody = z.infer<typeof SendInputStreamResponseBody>;
|
|
8690
|
+
export declare const ResolvePromptRequestBody: z.ZodObject<{
|
|
8691
|
+
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8692
|
+
label: z.ZodOptional<z.ZodString>;
|
|
8693
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
8694
|
+
}, "strip", z.ZodTypeAny, {
|
|
8695
|
+
variables: Record<string, unknown>;
|
|
8696
|
+
version?: number | undefined;
|
|
8697
|
+
label?: string | undefined;
|
|
8698
|
+
}, {
|
|
8699
|
+
version?: number | undefined;
|
|
8700
|
+
variables?: Record<string, unknown> | undefined;
|
|
8701
|
+
label?: string | undefined;
|
|
8702
|
+
}>;
|
|
8703
|
+
export type ResolvePromptRequestBody = z.infer<typeof ResolvePromptRequestBody>;
|
|
8704
|
+
export declare const ResolvePromptResponseBody: z.ZodObject<{
|
|
8705
|
+
data: z.ZodObject<{
|
|
8706
|
+
promptId: z.ZodString;
|
|
8707
|
+
slug: z.ZodString;
|
|
8708
|
+
version: z.ZodNumber;
|
|
8709
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
8710
|
+
template: z.ZodOptional<z.ZodString>;
|
|
8711
|
+
text: z.ZodOptional<z.ZodString>;
|
|
8712
|
+
model: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8713
|
+
config: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
8714
|
+
}, "strip", z.ZodTypeAny, {
|
|
8715
|
+
version: number;
|
|
8716
|
+
slug: string;
|
|
8717
|
+
promptId: string;
|
|
8718
|
+
labels: string[];
|
|
8719
|
+
model?: string | null | undefined;
|
|
8720
|
+
config?: Record<string, unknown> | null | undefined;
|
|
8721
|
+
template?: string | undefined;
|
|
8722
|
+
text?: string | undefined;
|
|
8723
|
+
}, {
|
|
8724
|
+
version: number;
|
|
8725
|
+
slug: string;
|
|
8726
|
+
promptId: string;
|
|
8727
|
+
labels: string[];
|
|
8728
|
+
model?: string | null | undefined;
|
|
8729
|
+
config?: Record<string, unknown> | null | undefined;
|
|
8730
|
+
template?: string | undefined;
|
|
8731
|
+
text?: string | undefined;
|
|
8732
|
+
}>;
|
|
8733
|
+
}, "strip", z.ZodTypeAny, {
|
|
8734
|
+
data: {
|
|
8735
|
+
version: number;
|
|
8736
|
+
slug: string;
|
|
8737
|
+
promptId: string;
|
|
8738
|
+
labels: string[];
|
|
8739
|
+
model?: string | null | undefined;
|
|
8740
|
+
config?: Record<string, unknown> | null | undefined;
|
|
8741
|
+
template?: string | undefined;
|
|
8742
|
+
text?: string | undefined;
|
|
8743
|
+
};
|
|
8744
|
+
}, {
|
|
8745
|
+
data: {
|
|
8746
|
+
version: number;
|
|
8747
|
+
slug: string;
|
|
8748
|
+
promptId: string;
|
|
8749
|
+
labels: string[];
|
|
8750
|
+
model?: string | null | undefined;
|
|
8751
|
+
config?: Record<string, unknown> | null | undefined;
|
|
8752
|
+
template?: string | undefined;
|
|
8753
|
+
text?: string | undefined;
|
|
8754
|
+
};
|
|
8755
|
+
}>;
|
|
8756
|
+
export type ResolvePromptResponseBody = z.infer<typeof ResolvePromptResponseBody>;
|
|
8757
|
+
export declare const ListPromptsResponseBody: z.ZodObject<{
|
|
8758
|
+
data: z.ZodArray<z.ZodObject<{
|
|
8759
|
+
slug: z.ZodString;
|
|
8760
|
+
friendlyId: z.ZodString;
|
|
8761
|
+
description: z.ZodNullable<z.ZodString>;
|
|
8762
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
8763
|
+
defaultModel: z.ZodNullable<z.ZodString>;
|
|
8764
|
+
currentVersion: z.ZodNullable<z.ZodNumber>;
|
|
8765
|
+
hasOverride: z.ZodBoolean;
|
|
8766
|
+
updatedAt: z.ZodString;
|
|
8767
|
+
}, "strip", z.ZodTypeAny, {
|
|
8768
|
+
tags: string[];
|
|
8769
|
+
slug: string;
|
|
8770
|
+
description: string | null;
|
|
8771
|
+
updatedAt: string;
|
|
8772
|
+
friendlyId: string;
|
|
8773
|
+
defaultModel: string | null;
|
|
8774
|
+
currentVersion: number | null;
|
|
8775
|
+
hasOverride: boolean;
|
|
8776
|
+
}, {
|
|
8777
|
+
tags: string[];
|
|
8778
|
+
slug: string;
|
|
8779
|
+
description: string | null;
|
|
8780
|
+
updatedAt: string;
|
|
8781
|
+
friendlyId: string;
|
|
8782
|
+
defaultModel: string | null;
|
|
8783
|
+
currentVersion: number | null;
|
|
8784
|
+
hasOverride: boolean;
|
|
8785
|
+
}>, "many">;
|
|
8786
|
+
}, "strip", z.ZodTypeAny, {
|
|
8787
|
+
data: {
|
|
8788
|
+
tags: string[];
|
|
8789
|
+
slug: string;
|
|
8790
|
+
description: string | null;
|
|
8791
|
+
updatedAt: string;
|
|
8792
|
+
friendlyId: string;
|
|
8793
|
+
defaultModel: string | null;
|
|
8794
|
+
currentVersion: number | null;
|
|
8795
|
+
hasOverride: boolean;
|
|
8796
|
+
}[];
|
|
8797
|
+
}, {
|
|
8798
|
+
data: {
|
|
8799
|
+
tags: string[];
|
|
8800
|
+
slug: string;
|
|
8801
|
+
description: string | null;
|
|
8802
|
+
updatedAt: string;
|
|
8803
|
+
friendlyId: string;
|
|
8804
|
+
defaultModel: string | null;
|
|
8805
|
+
currentVersion: number | null;
|
|
8806
|
+
hasOverride: boolean;
|
|
8807
|
+
}[];
|
|
8808
|
+
}>;
|
|
8809
|
+
export type ListPromptsResponseBody = z.infer<typeof ListPromptsResponseBody>;
|
|
8810
|
+
export declare const ListPromptVersionsResponseBody: z.ZodObject<{
|
|
8811
|
+
data: z.ZodArray<z.ZodObject<{
|
|
8812
|
+
id: z.ZodString;
|
|
8813
|
+
version: z.ZodNumber;
|
|
8814
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
8815
|
+
source: z.ZodString;
|
|
8816
|
+
model: z.ZodNullable<z.ZodString>;
|
|
8817
|
+
textContent: z.ZodNullable<z.ZodString>;
|
|
8818
|
+
commitMessage: z.ZodNullable<z.ZodString>;
|
|
8819
|
+
contentHash: z.ZodString;
|
|
8820
|
+
createdAt: z.ZodString;
|
|
8821
|
+
}, "strip", z.ZodTypeAny, {
|
|
8822
|
+
source: string;
|
|
8823
|
+
id: string;
|
|
8824
|
+
createdAt: string;
|
|
8825
|
+
version: number;
|
|
8826
|
+
commitMessage: string | null;
|
|
8827
|
+
model: string | null;
|
|
8828
|
+
contentHash: string;
|
|
8829
|
+
labels: string[];
|
|
8830
|
+
textContent: string | null;
|
|
8831
|
+
}, {
|
|
8832
|
+
source: string;
|
|
8833
|
+
id: string;
|
|
8834
|
+
createdAt: string;
|
|
8835
|
+
version: number;
|
|
8836
|
+
commitMessage: string | null;
|
|
8837
|
+
model: string | null;
|
|
8838
|
+
contentHash: string;
|
|
8839
|
+
labels: string[];
|
|
8840
|
+
textContent: string | null;
|
|
8841
|
+
}>, "many">;
|
|
8842
|
+
}, "strip", z.ZodTypeAny, {
|
|
8843
|
+
data: {
|
|
8844
|
+
source: string;
|
|
8845
|
+
id: string;
|
|
8846
|
+
createdAt: string;
|
|
8847
|
+
version: number;
|
|
8848
|
+
commitMessage: string | null;
|
|
8849
|
+
model: string | null;
|
|
8850
|
+
contentHash: string;
|
|
8851
|
+
labels: string[];
|
|
8852
|
+
textContent: string | null;
|
|
8853
|
+
}[];
|
|
8854
|
+
}, {
|
|
8855
|
+
data: {
|
|
8856
|
+
source: string;
|
|
8857
|
+
id: string;
|
|
8858
|
+
createdAt: string;
|
|
8859
|
+
version: number;
|
|
8860
|
+
commitMessage: string | null;
|
|
8861
|
+
model: string | null;
|
|
8862
|
+
contentHash: string;
|
|
8863
|
+
labels: string[];
|
|
8864
|
+
textContent: string | null;
|
|
8865
|
+
}[];
|
|
8866
|
+
}>;
|
|
8867
|
+
export type ListPromptVersionsResponseBody = z.infer<typeof ListPromptVersionsResponseBody>;
|
|
8868
|
+
export declare const PromotePromptVersionRequestBody: z.ZodObject<{
|
|
8869
|
+
version: z.ZodNumber;
|
|
8870
|
+
}, "strip", z.ZodTypeAny, {
|
|
8871
|
+
version: number;
|
|
8872
|
+
}, {
|
|
8873
|
+
version: number;
|
|
8874
|
+
}>;
|
|
8875
|
+
export type PromotePromptVersionRequestBody = z.infer<typeof PromotePromptVersionRequestBody>;
|
|
8876
|
+
export declare const CreatePromptOverrideRequestBody: z.ZodObject<{
|
|
8877
|
+
textContent: z.ZodString;
|
|
8878
|
+
model: z.ZodOptional<z.ZodString>;
|
|
8879
|
+
commitMessage: z.ZodOptional<z.ZodString>;
|
|
8880
|
+
source: z.ZodOptional<z.ZodString>;
|
|
8881
|
+
}, "strip", z.ZodTypeAny, {
|
|
8882
|
+
textContent: string;
|
|
8883
|
+
source?: string | undefined;
|
|
8884
|
+
commitMessage?: string | undefined;
|
|
8885
|
+
model?: string | undefined;
|
|
8886
|
+
}, {
|
|
8887
|
+
textContent: string;
|
|
8888
|
+
source?: string | undefined;
|
|
8889
|
+
commitMessage?: string | undefined;
|
|
8890
|
+
model?: string | undefined;
|
|
8891
|
+
}>;
|
|
8892
|
+
export type CreatePromptOverrideRequestBody = z.infer<typeof CreatePromptOverrideRequestBody>;
|
|
8893
|
+
export declare const UpdatePromptOverrideRequestBody: z.ZodObject<{
|
|
8894
|
+
textContent: z.ZodOptional<z.ZodString>;
|
|
8895
|
+
model: z.ZodOptional<z.ZodString>;
|
|
8896
|
+
commitMessage: z.ZodOptional<z.ZodString>;
|
|
8897
|
+
}, "strip", z.ZodTypeAny, {
|
|
8898
|
+
commitMessage?: string | undefined;
|
|
8899
|
+
model?: string | undefined;
|
|
8900
|
+
textContent?: string | undefined;
|
|
8901
|
+
}, {
|
|
8902
|
+
commitMessage?: string | undefined;
|
|
8903
|
+
model?: string | undefined;
|
|
8904
|
+
textContent?: string | undefined;
|
|
8905
|
+
}>;
|
|
8906
|
+
export type UpdatePromptOverrideRequestBody = z.infer<typeof UpdatePromptOverrideRequestBody>;
|
|
8907
|
+
export declare const ReactivatePromptOverrideRequestBody: z.ZodObject<{
|
|
8908
|
+
version: z.ZodNumber;
|
|
8909
|
+
}, "strip", z.ZodTypeAny, {
|
|
8910
|
+
version: number;
|
|
8911
|
+
}, {
|
|
8912
|
+
version: number;
|
|
8913
|
+
}>;
|
|
8914
|
+
export type ReactivatePromptOverrideRequestBody = z.infer<typeof ReactivatePromptOverrideRequestBody>;
|
|
8915
|
+
export declare const PromptOkResponseBody: z.ZodObject<{
|
|
8916
|
+
ok: z.ZodBoolean;
|
|
8917
|
+
}, "strip", z.ZodTypeAny, {
|
|
8918
|
+
ok: boolean;
|
|
8919
|
+
}, {
|
|
8920
|
+
ok: boolean;
|
|
8921
|
+
}>;
|
|
8922
|
+
export type PromptOkResponseBody = z.infer<typeof PromptOkResponseBody>;
|
|
8923
|
+
export declare const PromptOverrideCreatedResponseBody: z.ZodObject<{
|
|
8924
|
+
ok: z.ZodBoolean;
|
|
8925
|
+
version: z.ZodNumber;
|
|
8926
|
+
}, "strip", z.ZodTypeAny, {
|
|
8927
|
+
ok: boolean;
|
|
8928
|
+
version: number;
|
|
8929
|
+
}, {
|
|
8930
|
+
ok: boolean;
|
|
8931
|
+
version: number;
|
|
8932
|
+
}>;
|
|
8933
|
+
export type PromptOverrideCreatedResponseBody = z.infer<typeof PromptOverrideCreatedResponseBody>;
|
|
7522
8934
|
export {};
|