@getpaseo/protocol 0.1.94 → 0.1.96

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.
@@ -25421,6 +25421,7 @@ export declare const OpenProjectResponseMessageSchema: z.ZodObject<{
25421
25421
  } | undefined;
25422
25422
  }>>;
25423
25423
  error: z.ZodNullable<z.ZodString>;
25424
+ errorCode: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<["directory_not_found"]>>>>;
25424
25425
  }, "strip", z.ZodTypeAny, {
25425
25426
  error: string | null;
25426
25427
  requestId: string;
@@ -25527,6 +25528,7 @@ export declare const OpenProjectResponseMessageSchema: z.ZodObject<{
25527
25528
  projectName: string;
25528
25529
  } | undefined;
25529
25530
  } | null;
25531
+ errorCode?: "directory_not_found" | null | undefined;
25530
25532
  }, {
25531
25533
  error: string | null;
25532
25534
  requestId: string;
@@ -25633,6 +25635,7 @@ export declare const OpenProjectResponseMessageSchema: z.ZodObject<{
25633
25635
  projectName: string;
25634
25636
  } | undefined;
25635
25637
  } | null;
25638
+ errorCode?: unknown;
25636
25639
  }>;
25637
25640
  }, "strip", z.ZodTypeAny, {
25638
25641
  type: "open_project_response";
@@ -25742,6 +25745,7 @@ export declare const OpenProjectResponseMessageSchema: z.ZodObject<{
25742
25745
  projectName: string;
25743
25746
  } | undefined;
25744
25747
  } | null;
25748
+ errorCode?: "directory_not_found" | null | undefined;
25745
25749
  };
25746
25750
  }, {
25747
25751
  type: "open_project_response";
@@ -25851,6 +25855,7 @@ export declare const OpenProjectResponseMessageSchema: z.ZodObject<{
25851
25855
  projectName: string;
25852
25856
  } | undefined;
25853
25857
  } | null;
25858
+ errorCode?: unknown;
25854
25859
  };
25855
25860
  }>;
25856
25861
  export declare const StartWorkspaceScriptResponseMessageSchema: z.ZodObject<{
@@ -48856,6 +48861,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
48856
48861
  } | undefined;
48857
48862
  }>>;
48858
48863
  error: z.ZodNullable<z.ZodString>;
48864
+ errorCode: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<["directory_not_found"]>>>>;
48859
48865
  }, "strip", z.ZodTypeAny, {
48860
48866
  error: string | null;
48861
48867
  requestId: string;
@@ -48962,6 +48968,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
48962
48968
  projectName: string;
48963
48969
  } | undefined;
48964
48970
  } | null;
48971
+ errorCode?: "directory_not_found" | null | undefined;
48965
48972
  }, {
48966
48973
  error: string | null;
48967
48974
  requestId: string;
@@ -49068,6 +49075,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
49068
49075
  projectName: string;
49069
49076
  } | undefined;
49070
49077
  } | null;
49078
+ errorCode?: unknown;
49071
49079
  }>;
49072
49080
  }, "strip", z.ZodTypeAny, {
49073
49081
  type: "open_project_response";
@@ -49177,6 +49185,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
49177
49185
  projectName: string;
49178
49186
  } | undefined;
49179
49187
  } | null;
49188
+ errorCode?: "directory_not_found" | null | undefined;
49180
49189
  };
49181
49190
  }, {
49182
49191
  type: "open_project_response";
@@ -49286,6 +49295,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
49286
49295
  projectName: string;
49287
49296
  } | undefined;
49288
49297
  } | null;
49298
+ errorCode?: unknown;
49289
49299
  };
49290
49300
  }>, z.ZodObject<{
49291
49301
  type: z.ZodLiteral<"start_workspace_script_response">;
@@ -70550,6 +70560,7 @@ export type DictationStreamFinishMessage = z.infer<typeof DictationStreamFinishM
70550
70560
  export type DictationStreamCancelMessage = z.infer<typeof DictationStreamCancelMessageSchema>;
70551
70561
  export type CreateAgentRequestMessage = z.infer<typeof CreateAgentRequestMessageSchema>;
70552
70562
  export type AgentAttachment = z.infer<typeof AgentAttachmentSchema>;
70563
+ export type UploadedFileAttachment = z.infer<typeof UploadedFileAttachmentSchema>;
70553
70564
  export type FirstAgentContext = z.infer<typeof FirstAgentContextSchema>;
70554
70565
  export type ReviewAttachment = z.infer<typeof ReviewAttachmentSchema>;
70555
70566
  export type ListProviderModelsRequestMessage = z.infer<typeof ListProviderModelsRequestMessageSchema>;
@@ -85355,6 +85366,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
85355
85366
  } | undefined;
85356
85367
  }>>;
85357
85368
  error: z.ZodNullable<z.ZodString>;
85369
+ errorCode: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<["directory_not_found"]>>>>;
85358
85370
  }, "strip", z.ZodTypeAny, {
85359
85371
  error: string | null;
85360
85372
  requestId: string;
@@ -85461,6 +85473,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
85461
85473
  projectName: string;
85462
85474
  } | undefined;
85463
85475
  } | null;
85476
+ errorCode?: "directory_not_found" | null | undefined;
85464
85477
  }, {
85465
85478
  error: string | null;
85466
85479
  requestId: string;
@@ -85567,6 +85580,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
85567
85580
  projectName: string;
85568
85581
  } | undefined;
85569
85582
  } | null;
85583
+ errorCode?: unknown;
85570
85584
  }>;
85571
85585
  }, "strip", z.ZodTypeAny, {
85572
85586
  type: "open_project_response";
@@ -85676,6 +85690,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
85676
85690
  projectName: string;
85677
85691
  } | undefined;
85678
85692
  } | null;
85693
+ errorCode?: "directory_not_found" | null | undefined;
85679
85694
  };
85680
85695
  }, {
85681
85696
  type: "open_project_response";
@@ -85785,6 +85800,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
85785
85800
  projectName: string;
85786
85801
  } | undefined;
85787
85802
  } | null;
85803
+ errorCode?: unknown;
85788
85804
  };
85789
85805
  }>, z.ZodObject<{
85790
85806
  type: z.ZodLiteral<"start_workspace_script_response">;
@@ -108763,6 +108779,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
108763
108779
  projectName: string;
108764
108780
  } | undefined;
108765
108781
  } | null;
108782
+ errorCode?: "directory_not_found" | null | undefined;
108766
108783
  };
108767
108784
  } | {
108768
108785
  type: "start_workspace_script_response";
@@ -112391,6 +112408,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
112391
112408
  projectName: string;
112392
112409
  } | undefined;
112393
112410
  } | null;
112411
+ errorCode?: unknown;
112394
112412
  };
112395
112413
  } | {
112396
112414
  type: "start_workspace_script_response";
@@ -128806,6 +128824,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
128806
128824
  } | undefined;
128807
128825
  }>>;
128808
128826
  error: z.ZodNullable<z.ZodString>;
128827
+ errorCode: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<["directory_not_found"]>>>>;
128809
128828
  }, "strip", z.ZodTypeAny, {
128810
128829
  error: string | null;
128811
128830
  requestId: string;
@@ -128912,6 +128931,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
128912
128931
  projectName: string;
128913
128932
  } | undefined;
128914
128933
  } | null;
128934
+ errorCode?: "directory_not_found" | null | undefined;
128915
128935
  }, {
128916
128936
  error: string | null;
128917
128937
  requestId: string;
@@ -129018,6 +129038,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
129018
129038
  projectName: string;
129019
129039
  } | undefined;
129020
129040
  } | null;
129041
+ errorCode?: unknown;
129021
129042
  }>;
129022
129043
  }, "strip", z.ZodTypeAny, {
129023
129044
  type: "open_project_response";
@@ -129127,6 +129148,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
129127
129148
  projectName: string;
129128
129149
  } | undefined;
129129
129150
  } | null;
129151
+ errorCode?: "directory_not_found" | null | undefined;
129130
129152
  };
129131
129153
  }, {
129132
129154
  type: "open_project_response";
@@ -129236,6 +129258,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
129236
129258
  projectName: string;
129237
129259
  } | undefined;
129238
129260
  } | null;
129261
+ errorCode?: unknown;
129239
129262
  };
129240
129263
  }>, z.ZodObject<{
129241
129264
  type: z.ZodLiteral<"start_workspace_script_response">;
@@ -152214,6 +152237,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
152214
152237
  projectName: string;
152215
152238
  } | undefined;
152216
152239
  } | null;
152240
+ errorCode?: "directory_not_found" | null | undefined;
152217
152241
  };
152218
152242
  } | {
152219
152243
  type: "start_workspace_script_response";
@@ -155842,6 +155866,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
155842
155866
  projectName: string;
155843
155867
  } | undefined;
155844
155868
  } | null;
155869
+ errorCode?: unknown;
155845
155870
  };
155846
155871
  } | {
155847
155872
  type: "start_workspace_script_response";
package/dist/messages.js CHANGED
@@ -2239,6 +2239,8 @@ export const OpenProjectResponseMessageSchema = z.object({
2239
2239
  requestId: z.string(),
2240
2240
  workspace: WorkspaceDescriptorPayloadSchema.nullable(),
2241
2241
  error: z.string().nullable(),
2242
+ // Unknown codes from newer daemons degrade to null; clients fall back to `error`.
2243
+ errorCode: z.enum(["directory_not_found"]).nullish().catch(null),
2242
2244
  }),
2243
2245
  });
2244
2246
  export const StartWorkspaceScriptResponseMessageSchema = z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpaseo/protocol",
3
- "version": "0.1.94",
3
+ "version": "0.1.96",
4
4
  "description": "Paseo shared protocol schemas and wire types",
5
5
  "files": [
6
6
  "dist",