@trigger.dev/core 0.0.0-prerelease-20260309160514 → 0.0.0-prerelease-20260324161542

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.
Files changed (83) hide show
  1. package/dist/commonjs/v3/apiClient/index.d.ts +62 -7
  2. package/dist/commonjs/v3/apiClient/index.js +40 -0
  3. package/dist/commonjs/v3/apiClient/index.js.map +1 -1
  4. package/dist/commonjs/v3/isomorphic/friendlyId.d.ts +1 -0
  5. package/dist/commonjs/v3/isomorphic/friendlyId.js +2 -1
  6. package/dist/commonjs/v3/isomorphic/friendlyId.js.map +1 -1
  7. package/dist/commonjs/v3/realtimeStreams/types.d.ts +22 -0
  8. package/dist/commonjs/v3/resource-catalog/catalog.d.ts +6 -2
  9. package/dist/commonjs/v3/resource-catalog/index.d.ts +6 -2
  10. package/dist/commonjs/v3/resource-catalog/index.js +12 -0
  11. package/dist/commonjs/v3/resource-catalog/index.js.map +1 -1
  12. package/dist/commonjs/v3/resource-catalog/noopResourceCatalog.d.ts +6 -2
  13. package/dist/commonjs/v3/resource-catalog/noopResourceCatalog.js +12 -0
  14. package/dist/commonjs/v3/resource-catalog/noopResourceCatalog.js.map +1 -1
  15. package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.d.ts +10 -2
  16. package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.js +51 -0
  17. package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.js.map +1 -1
  18. package/dist/commonjs/v3/schemas/api.d.ts +337 -6
  19. package/dist/commonjs/v3/schemas/api.js +75 -4
  20. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  21. package/dist/commonjs/v3/schemas/build.d.ts +182 -32
  22. package/dist/commonjs/v3/schemas/build.js +1 -0
  23. package/dist/commonjs/v3/schemas/build.js.map +1 -1
  24. package/dist/commonjs/v3/schemas/messages.d.ts +81 -6
  25. package/dist/commonjs/v3/schemas/query.d.ts +294 -0
  26. package/dist/commonjs/v3/schemas/query.js +56 -1
  27. package/dist/commonjs/v3/schemas/query.js.map +1 -1
  28. package/dist/commonjs/v3/schemas/resources.d.ts +85 -0
  29. package/dist/commonjs/v3/schemas/resources.js +16 -1
  30. package/dist/commonjs/v3/schemas/resources.js.map +1 -1
  31. package/dist/commonjs/v3/schemas/schemas.d.ts +55 -0
  32. package/dist/commonjs/v3/schemas/schemas.js +14 -1
  33. package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
  34. package/dist/commonjs/v3/schemas/style.d.ts +20 -8
  35. package/dist/commonjs/v3/schemas/style.js +2 -1
  36. package/dist/commonjs/v3/schemas/style.js.map +1 -1
  37. package/dist/commonjs/v3/taskContext/otelProcessors.js +5 -0
  38. package/dist/commonjs/v3/taskContext/otelProcessors.js.map +1 -1
  39. package/dist/commonjs/v3/types/tasks.d.ts +7 -1
  40. package/dist/commonjs/v3/types/tasks.js.map +1 -1
  41. package/dist/commonjs/version.js +1 -1
  42. package/dist/esm/v3/apiClient/index.d.ts +62 -7
  43. package/dist/esm/v3/apiClient/index.js +41 -1
  44. package/dist/esm/v3/apiClient/index.js.map +1 -1
  45. package/dist/esm/v3/isomorphic/friendlyId.d.ts +1 -0
  46. package/dist/esm/v3/isomorphic/friendlyId.js +1 -0
  47. package/dist/esm/v3/isomorphic/friendlyId.js.map +1 -1
  48. package/dist/esm/v3/realtimeStreams/types.d.ts +22 -0
  49. package/dist/esm/v3/resource-catalog/catalog.d.ts +6 -2
  50. package/dist/esm/v3/resource-catalog/index.d.ts +6 -2
  51. package/dist/esm/v3/resource-catalog/index.js +12 -0
  52. package/dist/esm/v3/resource-catalog/index.js.map +1 -1
  53. package/dist/esm/v3/resource-catalog/noopResourceCatalog.d.ts +6 -2
  54. package/dist/esm/v3/resource-catalog/noopResourceCatalog.js +12 -0
  55. package/dist/esm/v3/resource-catalog/noopResourceCatalog.js.map +1 -1
  56. package/dist/esm/v3/resource-catalog/standardResourceCatalog.d.ts +10 -2
  57. package/dist/esm/v3/resource-catalog/standardResourceCatalog.js +51 -0
  58. package/dist/esm/v3/resource-catalog/standardResourceCatalog.js.map +1 -1
  59. package/dist/esm/v3/schemas/api.d.ts +337 -6
  60. package/dist/esm/v3/schemas/api.js +73 -2
  61. package/dist/esm/v3/schemas/api.js.map +1 -1
  62. package/dist/esm/v3/schemas/build.d.ts +182 -32
  63. package/dist/esm/v3/schemas/build.js +2 -1
  64. package/dist/esm/v3/schemas/build.js.map +1 -1
  65. package/dist/esm/v3/schemas/messages.d.ts +81 -6
  66. package/dist/esm/v3/schemas/query.d.ts +294 -0
  67. package/dist/esm/v3/schemas/query.js +55 -0
  68. package/dist/esm/v3/schemas/query.js.map +1 -1
  69. package/dist/esm/v3/schemas/resources.d.ts +85 -0
  70. package/dist/esm/v3/schemas/resources.js +15 -0
  71. package/dist/esm/v3/schemas/resources.js.map +1 -1
  72. package/dist/esm/v3/schemas/schemas.d.ts +55 -0
  73. package/dist/esm/v3/schemas/schemas.js +13 -0
  74. package/dist/esm/v3/schemas/schemas.js.map +1 -1
  75. package/dist/esm/v3/schemas/style.d.ts +20 -8
  76. package/dist/esm/v3/schemas/style.js +2 -1
  77. package/dist/esm/v3/schemas/style.js.map +1 -1
  78. package/dist/esm/v3/taskContext/otelProcessors.js +5 -0
  79. package/dist/esm/v3/taskContext/otelProcessors.js.map +1 -1
  80. package/dist/esm/v3/types/tasks.d.ts +7 -1
  81. package/dist/esm/v3/types/tasks.js.map +1 -1
  82. package/dist/esm/version.js +1 -1
  83. package/package.json +1 -1
@@ -479,6 +479,34 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
479
479
  } | undefined;
480
480
  payloadSchema?: unknown;
481
481
  }>, "many">;
482
+ prompts: z.ZodOptional<z.ZodArray<z.ZodObject<{
483
+ id: z.ZodString;
484
+ description: z.ZodOptional<z.ZodString>;
485
+ filePath: z.ZodString;
486
+ exportName: z.ZodOptional<z.ZodString>;
487
+ content: z.ZodOptional<z.ZodString>;
488
+ model: z.ZodOptional<z.ZodString>;
489
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
490
+ variableSchema: z.ZodOptional<z.ZodUnknown>;
491
+ }, "strip", z.ZodTypeAny, {
492
+ id: string;
493
+ filePath: string;
494
+ exportName?: string | undefined;
495
+ description?: string | undefined;
496
+ content?: string | undefined;
497
+ model?: string | undefined;
498
+ config?: Record<string, unknown> | undefined;
499
+ variableSchema?: unknown;
500
+ }, {
501
+ id: string;
502
+ filePath: string;
503
+ exportName?: string | undefined;
504
+ description?: string | undefined;
505
+ content?: string | undefined;
506
+ model?: string | undefined;
507
+ config?: Record<string, unknown> | undefined;
508
+ variableSchema?: unknown;
509
+ }>, "many">>;
482
510
  queues: z.ZodOptional<z.ZodArray<z.ZodObject<{
483
511
  name: z.ZodString;
484
512
  concurrencyLimit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -550,6 +578,16 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
550
578
  concurrencyLimit?: number | null | undefined;
551
579
  }[] | undefined;
552
580
  cliPackageVersion?: string | undefined;
581
+ prompts?: {
582
+ id: string;
583
+ filePath: string;
584
+ exportName?: string | undefined;
585
+ description?: string | undefined;
586
+ content?: string | undefined;
587
+ model?: string | undefined;
588
+ config?: Record<string, unknown> | undefined;
589
+ variableSchema?: unknown;
590
+ }[] | undefined;
553
591
  sourceFiles?: {
554
592
  filePath: string;
555
593
  contentHash: string;
@@ -599,6 +637,16 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
599
637
  concurrencyLimit?: number | null | undefined;
600
638
  }[] | undefined;
601
639
  cliPackageVersion?: string | undefined;
640
+ prompts?: {
641
+ id: string;
642
+ filePath: string;
643
+ exportName?: string | undefined;
644
+ description?: string | undefined;
645
+ content?: string | undefined;
646
+ model?: string | undefined;
647
+ config?: Record<string, unknown> | undefined;
648
+ variableSchema?: unknown;
649
+ }[] | undefined;
602
650
  sourceFiles?: {
603
651
  filePath: string;
604
652
  contentHash: string;
@@ -654,6 +702,16 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
654
702
  concurrencyLimit?: number | null | undefined;
655
703
  }[] | undefined;
656
704
  cliPackageVersion?: string | undefined;
705
+ prompts?: {
706
+ id: string;
707
+ filePath: string;
708
+ exportName?: string | undefined;
709
+ description?: string | undefined;
710
+ content?: string | undefined;
711
+ model?: string | undefined;
712
+ config?: Record<string, unknown> | undefined;
713
+ variableSchema?: unknown;
714
+ }[] | undefined;
657
715
  sourceFiles?: {
658
716
  filePath: string;
659
717
  contentHash: string;
@@ -710,6 +768,16 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
710
768
  concurrencyLimit?: number | null | undefined;
711
769
  }[] | undefined;
712
770
  cliPackageVersion?: string | undefined;
771
+ prompts?: {
772
+ id: string;
773
+ filePath: string;
774
+ exportName?: string | undefined;
775
+ description?: string | undefined;
776
+ content?: string | undefined;
777
+ model?: string | undefined;
778
+ config?: Record<string, unknown> | undefined;
779
+ variableSchema?: unknown;
780
+ }[] | undefined;
713
781
  sourceFiles?: {
714
782
  filePath: string;
715
783
  contentHash: string;
@@ -4330,6 +4398,25 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
4330
4398
  }[];
4331
4399
  }>;
4332
4400
  export type DevDequeueResponseBody = z.infer<typeof DevDequeueResponseBody>;
4401
+ export declare const DevDisconnectRequestBody: z.ZodObject<{
4402
+ runFriendlyIds: z.ZodArray<z.ZodString, "many">;
4403
+ }, "strip", z.ZodTypeAny, {
4404
+ runFriendlyIds: string[];
4405
+ }, {
4406
+ runFriendlyIds: string[];
4407
+ }>;
4408
+ export type DevDisconnectRequestBody = z.infer<typeof DevDisconnectRequestBody>;
4409
+ export declare const DevDisconnectResponseBody: z.ZodObject<{
4410
+ cancelled: z.ZodNumber;
4411
+ bulkActionId: z.ZodOptional<z.ZodString>;
4412
+ }, "strip", z.ZodTypeAny, {
4413
+ cancelled: number;
4414
+ bulkActionId?: string | undefined;
4415
+ }, {
4416
+ cancelled: number;
4417
+ bulkActionId?: string | undefined;
4418
+ }>;
4419
+ export type DevDisconnectResponseBody = z.infer<typeof DevDisconnectResponseBody>;
4333
4420
  export type CreateUploadPayloadUrlResponseBody = z.infer<typeof CreateUploadPayloadUrlResponseBody>;
4334
4421
  export declare const ReplayRunResponse: z.ZodObject<{
4335
4422
  id: z.ZodString;
@@ -7160,8 +7247,8 @@ export declare const ApiDeploymentListResponseItem: z.ZodObject<{
7160
7247
  createdAt: z.ZodDate;
7161
7248
  shortCode: z.ZodString;
7162
7249
  version: z.ZodString;
7163
- runtime: z.ZodString;
7164
- runtimeVersion: z.ZodString;
7250
+ runtime: z.ZodNullable<z.ZodString>;
7251
+ runtimeVersion: z.ZodNullable<z.ZodString>;
7165
7252
  status: z.ZodEnum<["PENDING", "BUILDING", "DEPLOYING", "DEPLOYED", "FAILED", "CANCELED", "TIMED_OUT"]>;
7166
7253
  deployedAt: z.ZodOptional<z.ZodDate>;
7167
7254
  git: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -7187,8 +7274,8 @@ export declare const ApiDeploymentListResponseItem: z.ZodObject<{
7187
7274
  createdAt: Date;
7188
7275
  version: string;
7189
7276
  shortCode: string;
7190
- runtime: string;
7191
- runtimeVersion: string;
7277
+ runtime: string | null;
7278
+ runtimeVersion: string | null;
7192
7279
  error?: {
7193
7280
  message: string;
7194
7281
  name: string;
@@ -7203,8 +7290,8 @@ export declare const ApiDeploymentListResponseItem: z.ZodObject<{
7203
7290
  createdAt: Date;
7204
7291
  version: string;
7205
7292
  shortCode: string;
7206
- runtime: string;
7207
- runtimeVersion: string;
7293
+ runtime: string | null;
7294
+ runtimeVersion: string | null;
7208
7295
  error?: {
7209
7296
  message: string;
7210
7297
  name: string;
@@ -7500,4 +7587,248 @@ export declare const SendInputStreamResponseBody: z.ZodObject<{
7500
7587
  ok: boolean;
7501
7588
  }>;
7502
7589
  export type SendInputStreamResponseBody = z.infer<typeof SendInputStreamResponseBody>;
7590
+ export declare const ResolvePromptRequestBody: z.ZodObject<{
7591
+ variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7592
+ label: z.ZodOptional<z.ZodString>;
7593
+ version: z.ZodOptional<z.ZodNumber>;
7594
+ }, "strip", z.ZodTypeAny, {
7595
+ variables: Record<string, unknown>;
7596
+ version?: number | undefined;
7597
+ label?: string | undefined;
7598
+ }, {
7599
+ version?: number | undefined;
7600
+ variables?: Record<string, unknown> | undefined;
7601
+ label?: string | undefined;
7602
+ }>;
7603
+ export type ResolvePromptRequestBody = z.infer<typeof ResolvePromptRequestBody>;
7604
+ export declare const ResolvePromptResponseBody: z.ZodObject<{
7605
+ data: z.ZodObject<{
7606
+ promptId: z.ZodString;
7607
+ slug: z.ZodString;
7608
+ version: z.ZodNumber;
7609
+ labels: z.ZodArray<z.ZodString, "many">;
7610
+ template: z.ZodOptional<z.ZodString>;
7611
+ text: z.ZodOptional<z.ZodString>;
7612
+ model: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7613
+ config: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
7614
+ }, "strip", z.ZodTypeAny, {
7615
+ version: number;
7616
+ slug: string;
7617
+ promptId: string;
7618
+ labels: string[];
7619
+ model?: string | null | undefined;
7620
+ config?: Record<string, unknown> | null | undefined;
7621
+ template?: string | undefined;
7622
+ text?: string | undefined;
7623
+ }, {
7624
+ version: number;
7625
+ slug: string;
7626
+ promptId: string;
7627
+ labels: string[];
7628
+ model?: string | null | undefined;
7629
+ config?: Record<string, unknown> | null | undefined;
7630
+ template?: string | undefined;
7631
+ text?: string | undefined;
7632
+ }>;
7633
+ }, "strip", z.ZodTypeAny, {
7634
+ data: {
7635
+ version: number;
7636
+ slug: string;
7637
+ promptId: string;
7638
+ labels: string[];
7639
+ model?: string | null | undefined;
7640
+ config?: Record<string, unknown> | null | undefined;
7641
+ template?: string | undefined;
7642
+ text?: string | undefined;
7643
+ };
7644
+ }, {
7645
+ data: {
7646
+ version: number;
7647
+ slug: string;
7648
+ promptId: string;
7649
+ labels: string[];
7650
+ model?: string | null | undefined;
7651
+ config?: Record<string, unknown> | null | undefined;
7652
+ template?: string | undefined;
7653
+ text?: string | undefined;
7654
+ };
7655
+ }>;
7656
+ export type ResolvePromptResponseBody = z.infer<typeof ResolvePromptResponseBody>;
7657
+ export declare const ListPromptsResponseBody: z.ZodObject<{
7658
+ data: z.ZodArray<z.ZodObject<{
7659
+ slug: z.ZodString;
7660
+ friendlyId: z.ZodString;
7661
+ description: z.ZodNullable<z.ZodString>;
7662
+ tags: z.ZodArray<z.ZodString, "many">;
7663
+ defaultModel: z.ZodNullable<z.ZodString>;
7664
+ currentVersion: z.ZodNullable<z.ZodNumber>;
7665
+ hasOverride: z.ZodBoolean;
7666
+ updatedAt: z.ZodString;
7667
+ }, "strip", z.ZodTypeAny, {
7668
+ tags: string[];
7669
+ slug: string;
7670
+ description: string | null;
7671
+ updatedAt: string;
7672
+ friendlyId: string;
7673
+ defaultModel: string | null;
7674
+ currentVersion: number | null;
7675
+ hasOverride: boolean;
7676
+ }, {
7677
+ tags: string[];
7678
+ slug: string;
7679
+ description: string | null;
7680
+ updatedAt: string;
7681
+ friendlyId: string;
7682
+ defaultModel: string | null;
7683
+ currentVersion: number | null;
7684
+ hasOverride: boolean;
7685
+ }>, "many">;
7686
+ }, "strip", z.ZodTypeAny, {
7687
+ data: {
7688
+ tags: string[];
7689
+ slug: string;
7690
+ description: string | null;
7691
+ updatedAt: string;
7692
+ friendlyId: string;
7693
+ defaultModel: string | null;
7694
+ currentVersion: number | null;
7695
+ hasOverride: boolean;
7696
+ }[];
7697
+ }, {
7698
+ data: {
7699
+ tags: string[];
7700
+ slug: string;
7701
+ description: string | null;
7702
+ updatedAt: string;
7703
+ friendlyId: string;
7704
+ defaultModel: string | null;
7705
+ currentVersion: number | null;
7706
+ hasOverride: boolean;
7707
+ }[];
7708
+ }>;
7709
+ export type ListPromptsResponseBody = z.infer<typeof ListPromptsResponseBody>;
7710
+ export declare const ListPromptVersionsResponseBody: z.ZodObject<{
7711
+ data: z.ZodArray<z.ZodObject<{
7712
+ id: z.ZodString;
7713
+ version: z.ZodNumber;
7714
+ labels: z.ZodArray<z.ZodString, "many">;
7715
+ source: z.ZodString;
7716
+ model: z.ZodNullable<z.ZodString>;
7717
+ textContent: z.ZodNullable<z.ZodString>;
7718
+ commitMessage: z.ZodNullable<z.ZodString>;
7719
+ contentHash: z.ZodString;
7720
+ createdAt: z.ZodString;
7721
+ }, "strip", z.ZodTypeAny, {
7722
+ source: string;
7723
+ id: string;
7724
+ createdAt: string;
7725
+ version: number;
7726
+ commitMessage: string | null;
7727
+ model: string | null;
7728
+ contentHash: string;
7729
+ labels: string[];
7730
+ textContent: string | null;
7731
+ }, {
7732
+ source: string;
7733
+ id: string;
7734
+ createdAt: string;
7735
+ version: number;
7736
+ commitMessage: string | null;
7737
+ model: string | null;
7738
+ contentHash: string;
7739
+ labels: string[];
7740
+ textContent: string | null;
7741
+ }>, "many">;
7742
+ }, "strip", z.ZodTypeAny, {
7743
+ data: {
7744
+ source: string;
7745
+ id: string;
7746
+ createdAt: string;
7747
+ version: number;
7748
+ commitMessage: string | null;
7749
+ model: string | null;
7750
+ contentHash: string;
7751
+ labels: string[];
7752
+ textContent: string | null;
7753
+ }[];
7754
+ }, {
7755
+ data: {
7756
+ source: string;
7757
+ id: string;
7758
+ createdAt: string;
7759
+ version: number;
7760
+ commitMessage: string | null;
7761
+ model: string | null;
7762
+ contentHash: string;
7763
+ labels: string[];
7764
+ textContent: string | null;
7765
+ }[];
7766
+ }>;
7767
+ export type ListPromptVersionsResponseBody = z.infer<typeof ListPromptVersionsResponseBody>;
7768
+ export declare const PromotePromptVersionRequestBody: z.ZodObject<{
7769
+ version: z.ZodNumber;
7770
+ }, "strip", z.ZodTypeAny, {
7771
+ version: number;
7772
+ }, {
7773
+ version: number;
7774
+ }>;
7775
+ export type PromotePromptVersionRequestBody = z.infer<typeof PromotePromptVersionRequestBody>;
7776
+ export declare const CreatePromptOverrideRequestBody: z.ZodObject<{
7777
+ textContent: z.ZodString;
7778
+ model: z.ZodOptional<z.ZodString>;
7779
+ commitMessage: z.ZodOptional<z.ZodString>;
7780
+ source: z.ZodOptional<z.ZodString>;
7781
+ }, "strip", z.ZodTypeAny, {
7782
+ textContent: string;
7783
+ source?: string | undefined;
7784
+ commitMessage?: string | undefined;
7785
+ model?: string | undefined;
7786
+ }, {
7787
+ textContent: string;
7788
+ source?: string | undefined;
7789
+ commitMessage?: string | undefined;
7790
+ model?: string | undefined;
7791
+ }>;
7792
+ export type CreatePromptOverrideRequestBody = z.infer<typeof CreatePromptOverrideRequestBody>;
7793
+ export declare const UpdatePromptOverrideRequestBody: z.ZodObject<{
7794
+ textContent: z.ZodOptional<z.ZodString>;
7795
+ model: z.ZodOptional<z.ZodString>;
7796
+ commitMessage: z.ZodOptional<z.ZodString>;
7797
+ }, "strip", z.ZodTypeAny, {
7798
+ commitMessage?: string | undefined;
7799
+ model?: string | undefined;
7800
+ textContent?: string | undefined;
7801
+ }, {
7802
+ commitMessage?: string | undefined;
7803
+ model?: string | undefined;
7804
+ textContent?: string | undefined;
7805
+ }>;
7806
+ export type UpdatePromptOverrideRequestBody = z.infer<typeof UpdatePromptOverrideRequestBody>;
7807
+ export declare const ReactivatePromptOverrideRequestBody: z.ZodObject<{
7808
+ version: z.ZodNumber;
7809
+ }, "strip", z.ZodTypeAny, {
7810
+ version: number;
7811
+ }, {
7812
+ version: number;
7813
+ }>;
7814
+ export type ReactivatePromptOverrideRequestBody = z.infer<typeof ReactivatePromptOverrideRequestBody>;
7815
+ export declare const PromptOkResponseBody: z.ZodObject<{
7816
+ ok: z.ZodBoolean;
7817
+ }, "strip", z.ZodTypeAny, {
7818
+ ok: boolean;
7819
+ }, {
7820
+ ok: boolean;
7821
+ }>;
7822
+ export type PromptOkResponseBody = z.infer<typeof PromptOkResponseBody>;
7823
+ export declare const PromptOverrideCreatedResponseBody: z.ZodObject<{
7824
+ ok: z.ZodBoolean;
7825
+ version: z.ZodNumber;
7826
+ }, "strip", z.ZodTypeAny, {
7827
+ ok: boolean;
7828
+ version: number;
7829
+ }, {
7830
+ ok: boolean;
7831
+ version: number;
7832
+ }>;
7833
+ export type PromptOverrideCreatedResponseBody = z.infer<typeof PromptOverrideCreatedResponseBody>;
7503
7834
  export {};
@@ -610,6 +610,13 @@ export const DevDequeueRequestBody = z.object({
610
610
  export const DevDequeueResponseBody = z.object({
611
611
  dequeuedMessages: DequeuedMessage.array(),
612
612
  });
613
+ export const DevDisconnectRequestBody = z.object({
614
+ runFriendlyIds: z.string().array(),
615
+ });
616
+ export const DevDisconnectResponseBody = z.object({
617
+ cancelled: z.number(),
618
+ bulkActionId: z.string().optional(),
619
+ });
613
620
  export const ReplayRunResponse = z.object({
614
621
  id: z.string(),
615
622
  });
@@ -1143,8 +1150,8 @@ export const ApiDeploymentListResponseItem = z.object({
1143
1150
  createdAt: z.coerce.date(),
1144
1151
  shortCode: z.string(),
1145
1152
  version: z.string(),
1146
- runtime: z.string(),
1147
- runtimeVersion: z.string(),
1153
+ runtime: z.string().nullable(),
1154
+ runtimeVersion: z.string().nullable(),
1148
1155
  status: z.enum([
1149
1156
  "PENDING",
1150
1157
  "BUILDING",
@@ -1209,4 +1216,68 @@ export const AppendToStreamResponseBody = z.object({
1209
1216
  export const SendInputStreamResponseBody = z.object({
1210
1217
  ok: z.boolean(),
1211
1218
  });
1219
+ export const ResolvePromptRequestBody = z.object({
1220
+ variables: z.record(z.unknown()).default({}),
1221
+ label: z.string().optional(),
1222
+ version: z.number().optional(),
1223
+ });
1224
+ export const ResolvePromptResponseBody = z.object({
1225
+ data: z.object({
1226
+ promptId: z.string(),
1227
+ slug: z.string(),
1228
+ version: z.number(),
1229
+ labels: z.array(z.string()),
1230
+ template: z.string().optional(),
1231
+ text: z.string().optional(),
1232
+ model: z.string().optional().nullable(),
1233
+ config: z.record(z.unknown()).optional().nullable(),
1234
+ }),
1235
+ });
1236
+ export const ListPromptsResponseBody = z.object({
1237
+ data: z.array(z.object({
1238
+ slug: z.string(),
1239
+ friendlyId: z.string(),
1240
+ description: z.string().nullable(),
1241
+ tags: z.array(z.string()),
1242
+ defaultModel: z.string().nullable(),
1243
+ currentVersion: z.number().nullable(),
1244
+ hasOverride: z.boolean(),
1245
+ updatedAt: z.string(),
1246
+ })),
1247
+ });
1248
+ export const ListPromptVersionsResponseBody = z.object({
1249
+ data: z.array(z.object({
1250
+ id: z.string(),
1251
+ version: z.number(),
1252
+ labels: z.array(z.string()),
1253
+ source: z.string(),
1254
+ model: z.string().nullable(),
1255
+ textContent: z.string().nullable(),
1256
+ commitMessage: z.string().nullable(),
1257
+ contentHash: z.string(),
1258
+ createdAt: z.string(),
1259
+ })),
1260
+ });
1261
+ export const PromotePromptVersionRequestBody = z.object({
1262
+ version: z.number().int().positive(),
1263
+ });
1264
+ export const CreatePromptOverrideRequestBody = z.object({
1265
+ textContent: z.string(),
1266
+ model: z.string().optional(),
1267
+ commitMessage: z.string().optional(),
1268
+ source: z.string().optional(),
1269
+ });
1270
+ export const UpdatePromptOverrideRequestBody = z.object({
1271
+ textContent: z.string().optional(),
1272
+ model: z.string().optional(),
1273
+ commitMessage: z.string().optional(),
1274
+ });
1275
+ export const ReactivatePromptOverrideRequestBody = z.object({
1276
+ version: z.number().int().positive(),
1277
+ });
1278
+ export const PromptOkResponseBody = z.object({ ok: z.boolean() });
1279
+ export const PromptOverrideCreatedResponseBody = z.object({
1280
+ ok: z.boolean(),
1281
+ version: z.number(),
1282
+ });
1212
1283
  //# sourceMappingURL=api.js.map