@myagentroam/protocol 0.9.154 → 0.9.155

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/index.d.ts CHANGED
@@ -6780,36 +6780,42 @@ export declare const contextReferenceSchema: z.ZodObject<{
6780
6780
  endLine?: number | undefined;
6781
6781
  }>;
6782
6782
  export type ContextReference = z.infer<typeof contextReferenceSchema>;
6783
+ export declare const imageRefSchema: z.ZodString;
6783
6784
  export declare const conversationImageAttachmentSchema: z.ZodEffects<z.ZodObject<{
6784
6785
  name: z.ZodString;
6785
6786
  mime: z.ZodString;
6786
6787
  byteSize: z.ZodOptional<z.ZodNumber>;
6787
6788
  runId: z.ZodOptional<z.ZodString>;
6788
6789
  imageIndex: z.ZodOptional<z.ZodNumber>;
6790
+ imageRef: z.ZodOptional<z.ZodString>;
6789
6791
  }, "strict", z.ZodTypeAny, {
6790
6792
  name: string;
6791
6793
  mime: string;
6792
6794
  runId?: string | undefined;
6793
6795
  byteSize?: number | undefined;
6794
6796
  imageIndex?: number | undefined;
6797
+ imageRef?: string | undefined;
6795
6798
  }, {
6796
6799
  name: string;
6797
6800
  mime: string;
6798
6801
  runId?: string | undefined;
6799
6802
  byteSize?: number | undefined;
6800
6803
  imageIndex?: number | undefined;
6804
+ imageRef?: string | undefined;
6801
6805
  }>, {
6802
6806
  name: string;
6803
6807
  mime: string;
6804
6808
  runId?: string | undefined;
6805
6809
  byteSize?: number | undefined;
6806
6810
  imageIndex?: number | undefined;
6811
+ imageRef?: string | undefined;
6807
6812
  }, {
6808
6813
  name: string;
6809
6814
  mime: string;
6810
6815
  runId?: string | undefined;
6811
6816
  byteSize?: number | undefined;
6812
6817
  imageIndex?: number | undefined;
6818
+ imageRef?: string | undefined;
6813
6819
  }>;
6814
6820
  export type ConversationImageAttachment = z.infer<typeof conversationImageAttachmentSchema>;
6815
6821
  export declare const subagentOperationSchema: z.ZodEnum<["START", "STATUS", "CANCEL", "MESSAGE", "RESUME"]>;
@@ -6949,30 +6955,35 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
6949
6955
  byteSize: z.ZodOptional<z.ZodNumber>;
6950
6956
  runId: z.ZodOptional<z.ZodString>;
6951
6957
  imageIndex: z.ZodOptional<z.ZodNumber>;
6958
+ imageRef: z.ZodOptional<z.ZodString>;
6952
6959
  }, "strict", z.ZodTypeAny, {
6953
6960
  name: string;
6954
6961
  mime: string;
6955
6962
  runId?: string | undefined;
6956
6963
  byteSize?: number | undefined;
6957
6964
  imageIndex?: number | undefined;
6965
+ imageRef?: string | undefined;
6958
6966
  }, {
6959
6967
  name: string;
6960
6968
  mime: string;
6961
6969
  runId?: string | undefined;
6962
6970
  byteSize?: number | undefined;
6963
6971
  imageIndex?: number | undefined;
6972
+ imageRef?: string | undefined;
6964
6973
  }>, {
6965
6974
  name: string;
6966
6975
  mime: string;
6967
6976
  runId?: string | undefined;
6968
6977
  byteSize?: number | undefined;
6969
6978
  imageIndex?: number | undefined;
6979
+ imageRef?: string | undefined;
6970
6980
  }, {
6971
6981
  name: string;
6972
6982
  mime: string;
6973
6983
  runId?: string | undefined;
6974
6984
  byteSize?: number | undefined;
6975
6985
  imageIndex?: number | undefined;
6986
+ imageRef?: string | undefined;
6976
6987
  }>, "many">>;
6977
6988
  source: z.ZodOptional<z.ZodLiteral<"SCHEDULED">>;
6978
6989
  delivery: z.ZodEnum<["PENDING", "ACCEPTED", "STEERED", "QUEUED_NEXT_TURN", "REJECTED"]>;
@@ -6995,6 +7006,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
6995
7006
  runId?: string | undefined;
6996
7007
  byteSize?: number | undefined;
6997
7008
  imageIndex?: number | undefined;
7009
+ imageRef?: string | undefined;
6998
7010
  }[] | undefined;
6999
7011
  }, {
7000
7012
  clientMessageId: string | null;
@@ -7015,6 +7027,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
7015
7027
  runId?: string | undefined;
7016
7028
  byteSize?: number | undefined;
7017
7029
  imageIndex?: number | undefined;
7030
+ imageRef?: string | undefined;
7018
7031
  }[] | undefined;
7019
7032
  }>;
7020
7033
  }, "strip", z.ZodTypeAny, {
@@ -7045,6 +7058,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
7045
7058
  runId?: string | undefined;
7046
7059
  byteSize?: number | undefined;
7047
7060
  imageIndex?: number | undefined;
7061
+ imageRef?: string | undefined;
7048
7062
  }[] | undefined;
7049
7063
  };
7050
7064
  turnId: string;
@@ -7080,6 +7094,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
7080
7094
  runId?: string | undefined;
7081
7095
  byteSize?: number | undefined;
7082
7096
  imageIndex?: number | undefined;
7097
+ imageRef?: string | undefined;
7083
7098
  }[] | undefined;
7084
7099
  };
7085
7100
  turnId: string;
@@ -7395,30 +7410,35 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
7395
7410
  byteSize: z.ZodOptional<z.ZodNumber>;
7396
7411
  runId: z.ZodOptional<z.ZodString>;
7397
7412
  imageIndex: z.ZodOptional<z.ZodNumber>;
7413
+ imageRef: z.ZodOptional<z.ZodString>;
7398
7414
  }, "strict", z.ZodTypeAny, {
7399
7415
  name: string;
7400
7416
  mime: string;
7401
7417
  runId?: string | undefined;
7402
7418
  byteSize?: number | undefined;
7403
7419
  imageIndex?: number | undefined;
7420
+ imageRef?: string | undefined;
7404
7421
  }, {
7405
7422
  name: string;
7406
7423
  mime: string;
7407
7424
  runId?: string | undefined;
7408
7425
  byteSize?: number | undefined;
7409
7426
  imageIndex?: number | undefined;
7427
+ imageRef?: string | undefined;
7410
7428
  }>, {
7411
7429
  name: string;
7412
7430
  mime: string;
7413
7431
  runId?: string | undefined;
7414
7432
  byteSize?: number | undefined;
7415
7433
  imageIndex?: number | undefined;
7434
+ imageRef?: string | undefined;
7416
7435
  }, {
7417
7436
  name: string;
7418
7437
  mime: string;
7419
7438
  runId?: string | undefined;
7420
7439
  byteSize?: number | undefined;
7421
7440
  imageIndex?: number | undefined;
7441
+ imageRef?: string | undefined;
7422
7442
  }>, "many">>;
7423
7443
  }, "strip", z.ZodTypeAny, {
7424
7444
  errorCode: string | null;
@@ -7435,6 +7455,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
7435
7455
  runId?: string | undefined;
7436
7456
  byteSize?: number | undefined;
7437
7457
  imageIndex?: number | undefined;
7458
+ imageRef?: string | undefined;
7438
7459
  }[] | undefined;
7439
7460
  toolCategory?: "IMAGE_GENERATION" | undefined;
7440
7461
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -7465,6 +7486,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
7465
7486
  runId?: string | undefined;
7466
7487
  byteSize?: number | undefined;
7467
7488
  imageIndex?: number | undefined;
7489
+ imageRef?: string | undefined;
7468
7490
  }[] | undefined;
7469
7491
  toolCategory?: "IMAGE_GENERATION" | undefined;
7470
7492
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -7505,6 +7527,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
7505
7527
  runId?: string | undefined;
7506
7528
  byteSize?: number | undefined;
7507
7529
  imageIndex?: number | undefined;
7530
+ imageRef?: string | undefined;
7508
7531
  }[] | undefined;
7509
7532
  toolCategory?: "IMAGE_GENERATION" | undefined;
7510
7533
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -7550,6 +7573,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
7550
7573
  runId?: string | undefined;
7551
7574
  byteSize?: number | undefined;
7552
7575
  imageIndex?: number | undefined;
7576
+ imageRef?: string | undefined;
7553
7577
  }[] | undefined;
7554
7578
  toolCategory?: "IMAGE_GENERATION" | undefined;
7555
7579
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -8435,30 +8459,35 @@ export declare const conversationTurnSchema: z.ZodObject<{
8435
8459
  byteSize: z.ZodOptional<z.ZodNumber>;
8436
8460
  runId: z.ZodOptional<z.ZodString>;
8437
8461
  imageIndex: z.ZodOptional<z.ZodNumber>;
8462
+ imageRef: z.ZodOptional<z.ZodString>;
8438
8463
  }, "strict", z.ZodTypeAny, {
8439
8464
  name: string;
8440
8465
  mime: string;
8441
8466
  runId?: string | undefined;
8442
8467
  byteSize?: number | undefined;
8443
8468
  imageIndex?: number | undefined;
8469
+ imageRef?: string | undefined;
8444
8470
  }, {
8445
8471
  name: string;
8446
8472
  mime: string;
8447
8473
  runId?: string | undefined;
8448
8474
  byteSize?: number | undefined;
8449
8475
  imageIndex?: number | undefined;
8476
+ imageRef?: string | undefined;
8450
8477
  }>, {
8451
8478
  name: string;
8452
8479
  mime: string;
8453
8480
  runId?: string | undefined;
8454
8481
  byteSize?: number | undefined;
8455
8482
  imageIndex?: number | undefined;
8483
+ imageRef?: string | undefined;
8456
8484
  }, {
8457
8485
  name: string;
8458
8486
  mime: string;
8459
8487
  runId?: string | undefined;
8460
8488
  byteSize?: number | undefined;
8461
8489
  imageIndex?: number | undefined;
8490
+ imageRef?: string | undefined;
8462
8491
  }>, "many">>;
8463
8492
  source: z.ZodOptional<z.ZodLiteral<"SCHEDULED">>;
8464
8493
  delivery: z.ZodEnum<["PENDING", "ACCEPTED", "STEERED", "QUEUED_NEXT_TURN", "REJECTED"]>;
@@ -8481,6 +8510,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
8481
8510
  runId?: string | undefined;
8482
8511
  byteSize?: number | undefined;
8483
8512
  imageIndex?: number | undefined;
8513
+ imageRef?: string | undefined;
8484
8514
  }[] | undefined;
8485
8515
  }, {
8486
8516
  clientMessageId: string | null;
@@ -8501,6 +8531,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
8501
8531
  runId?: string | undefined;
8502
8532
  byteSize?: number | undefined;
8503
8533
  imageIndex?: number | undefined;
8534
+ imageRef?: string | undefined;
8504
8535
  }[] | undefined;
8505
8536
  }>;
8506
8537
  }, "strip", z.ZodTypeAny, {
@@ -8531,6 +8562,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
8531
8562
  runId?: string | undefined;
8532
8563
  byteSize?: number | undefined;
8533
8564
  imageIndex?: number | undefined;
8565
+ imageRef?: string | undefined;
8534
8566
  }[] | undefined;
8535
8567
  };
8536
8568
  turnId: string;
@@ -8566,6 +8598,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
8566
8598
  runId?: string | undefined;
8567
8599
  byteSize?: number | undefined;
8568
8600
  imageIndex?: number | undefined;
8601
+ imageRef?: string | undefined;
8569
8602
  }[] | undefined;
8570
8603
  };
8571
8604
  turnId: string;
@@ -8881,30 +8914,35 @@ export declare const conversationTurnSchema: z.ZodObject<{
8881
8914
  byteSize: z.ZodOptional<z.ZodNumber>;
8882
8915
  runId: z.ZodOptional<z.ZodString>;
8883
8916
  imageIndex: z.ZodOptional<z.ZodNumber>;
8917
+ imageRef: z.ZodOptional<z.ZodString>;
8884
8918
  }, "strict", z.ZodTypeAny, {
8885
8919
  name: string;
8886
8920
  mime: string;
8887
8921
  runId?: string | undefined;
8888
8922
  byteSize?: number | undefined;
8889
8923
  imageIndex?: number | undefined;
8924
+ imageRef?: string | undefined;
8890
8925
  }, {
8891
8926
  name: string;
8892
8927
  mime: string;
8893
8928
  runId?: string | undefined;
8894
8929
  byteSize?: number | undefined;
8895
8930
  imageIndex?: number | undefined;
8931
+ imageRef?: string | undefined;
8896
8932
  }>, {
8897
8933
  name: string;
8898
8934
  mime: string;
8899
8935
  runId?: string | undefined;
8900
8936
  byteSize?: number | undefined;
8901
8937
  imageIndex?: number | undefined;
8938
+ imageRef?: string | undefined;
8902
8939
  }, {
8903
8940
  name: string;
8904
8941
  mime: string;
8905
8942
  runId?: string | undefined;
8906
8943
  byteSize?: number | undefined;
8907
8944
  imageIndex?: number | undefined;
8945
+ imageRef?: string | undefined;
8908
8946
  }>, "many">>;
8909
8947
  }, "strip", z.ZodTypeAny, {
8910
8948
  errorCode: string | null;
@@ -8921,6 +8959,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
8921
8959
  runId?: string | undefined;
8922
8960
  byteSize?: number | undefined;
8923
8961
  imageIndex?: number | undefined;
8962
+ imageRef?: string | undefined;
8924
8963
  }[] | undefined;
8925
8964
  toolCategory?: "IMAGE_GENERATION" | undefined;
8926
8965
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -8951,6 +8990,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
8951
8990
  runId?: string | undefined;
8952
8991
  byteSize?: number | undefined;
8953
8992
  imageIndex?: number | undefined;
8993
+ imageRef?: string | undefined;
8954
8994
  }[] | undefined;
8955
8995
  toolCategory?: "IMAGE_GENERATION" | undefined;
8956
8996
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -8991,6 +9031,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
8991
9031
  runId?: string | undefined;
8992
9032
  byteSize?: number | undefined;
8993
9033
  imageIndex?: number | undefined;
9034
+ imageRef?: string | undefined;
8994
9035
  }[] | undefined;
8995
9036
  toolCategory?: "IMAGE_GENERATION" | undefined;
8996
9037
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -9036,6 +9077,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
9036
9077
  runId?: string | undefined;
9037
9078
  byteSize?: number | undefined;
9038
9079
  imageIndex?: number | undefined;
9080
+ imageRef?: string | undefined;
9039
9081
  }[] | undefined;
9040
9082
  toolCategory?: "IMAGE_GENERATION" | undefined;
9041
9083
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -9846,6 +9888,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
9846
9888
  runId?: string | undefined;
9847
9889
  byteSize?: number | undefined;
9848
9890
  imageIndex?: number | undefined;
9891
+ imageRef?: string | undefined;
9849
9892
  }[] | undefined;
9850
9893
  };
9851
9894
  turnId: string;
@@ -9979,6 +10022,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
9979
10022
  runId?: string | undefined;
9980
10023
  byteSize?: number | undefined;
9981
10024
  imageIndex?: number | undefined;
10025
+ imageRef?: string | undefined;
9982
10026
  }[] | undefined;
9983
10027
  toolCategory?: "IMAGE_GENERATION" | undefined;
9984
10028
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -10214,6 +10258,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
10214
10258
  runId?: string | undefined;
10215
10259
  byteSize?: number | undefined;
10216
10260
  imageIndex?: number | undefined;
10261
+ imageRef?: string | undefined;
10217
10262
  }[] | undefined;
10218
10263
  };
10219
10264
  turnId: string;
@@ -10347,6 +10392,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
10347
10392
  runId?: string | undefined;
10348
10393
  byteSize?: number | undefined;
10349
10394
  imageIndex?: number | undefined;
10395
+ imageRef?: string | undefined;
10350
10396
  }[] | undefined;
10351
10397
  toolCategory?: "IMAGE_GENERATION" | undefined;
10352
10398
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -12155,30 +12201,35 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
12155
12201
  byteSize: z.ZodOptional<z.ZodNumber>;
12156
12202
  runId: z.ZodOptional<z.ZodString>;
12157
12203
  imageIndex: z.ZodOptional<z.ZodNumber>;
12204
+ imageRef: z.ZodOptional<z.ZodString>;
12158
12205
  }, "strict", z.ZodTypeAny, {
12159
12206
  name: string;
12160
12207
  mime: string;
12161
12208
  runId?: string | undefined;
12162
12209
  byteSize?: number | undefined;
12163
12210
  imageIndex?: number | undefined;
12211
+ imageRef?: string | undefined;
12164
12212
  }, {
12165
12213
  name: string;
12166
12214
  mime: string;
12167
12215
  runId?: string | undefined;
12168
12216
  byteSize?: number | undefined;
12169
12217
  imageIndex?: number | undefined;
12218
+ imageRef?: string | undefined;
12170
12219
  }>, {
12171
12220
  name: string;
12172
12221
  mime: string;
12173
12222
  runId?: string | undefined;
12174
12223
  byteSize?: number | undefined;
12175
12224
  imageIndex?: number | undefined;
12225
+ imageRef?: string | undefined;
12176
12226
  }, {
12177
12227
  name: string;
12178
12228
  mime: string;
12179
12229
  runId?: string | undefined;
12180
12230
  byteSize?: number | undefined;
12181
12231
  imageIndex?: number | undefined;
12232
+ imageRef?: string | undefined;
12182
12233
  }>, "many">>;
12183
12234
  source: z.ZodOptional<z.ZodLiteral<"SCHEDULED">>;
12184
12235
  delivery: z.ZodEnum<["PENDING", "ACCEPTED", "STEERED", "QUEUED_NEXT_TURN", "REJECTED"]>;
@@ -12201,6 +12252,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
12201
12252
  runId?: string | undefined;
12202
12253
  byteSize?: number | undefined;
12203
12254
  imageIndex?: number | undefined;
12255
+ imageRef?: string | undefined;
12204
12256
  }[] | undefined;
12205
12257
  }, {
12206
12258
  clientMessageId: string | null;
@@ -12221,6 +12273,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
12221
12273
  runId?: string | undefined;
12222
12274
  byteSize?: number | undefined;
12223
12275
  imageIndex?: number | undefined;
12276
+ imageRef?: string | undefined;
12224
12277
  }[] | undefined;
12225
12278
  }>;
12226
12279
  }, "strip", z.ZodTypeAny, {
@@ -12251,6 +12304,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
12251
12304
  runId?: string | undefined;
12252
12305
  byteSize?: number | undefined;
12253
12306
  imageIndex?: number | undefined;
12307
+ imageRef?: string | undefined;
12254
12308
  }[] | undefined;
12255
12309
  };
12256
12310
  turnId: string;
@@ -12286,6 +12340,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
12286
12340
  runId?: string | undefined;
12287
12341
  byteSize?: number | undefined;
12288
12342
  imageIndex?: number | undefined;
12343
+ imageRef?: string | undefined;
12289
12344
  }[] | undefined;
12290
12345
  };
12291
12346
  turnId: string;
@@ -12601,30 +12656,35 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
12601
12656
  byteSize: z.ZodOptional<z.ZodNumber>;
12602
12657
  runId: z.ZodOptional<z.ZodString>;
12603
12658
  imageIndex: z.ZodOptional<z.ZodNumber>;
12659
+ imageRef: z.ZodOptional<z.ZodString>;
12604
12660
  }, "strict", z.ZodTypeAny, {
12605
12661
  name: string;
12606
12662
  mime: string;
12607
12663
  runId?: string | undefined;
12608
12664
  byteSize?: number | undefined;
12609
12665
  imageIndex?: number | undefined;
12666
+ imageRef?: string | undefined;
12610
12667
  }, {
12611
12668
  name: string;
12612
12669
  mime: string;
12613
12670
  runId?: string | undefined;
12614
12671
  byteSize?: number | undefined;
12615
12672
  imageIndex?: number | undefined;
12673
+ imageRef?: string | undefined;
12616
12674
  }>, {
12617
12675
  name: string;
12618
12676
  mime: string;
12619
12677
  runId?: string | undefined;
12620
12678
  byteSize?: number | undefined;
12621
12679
  imageIndex?: number | undefined;
12680
+ imageRef?: string | undefined;
12622
12681
  }, {
12623
12682
  name: string;
12624
12683
  mime: string;
12625
12684
  runId?: string | undefined;
12626
12685
  byteSize?: number | undefined;
12627
12686
  imageIndex?: number | undefined;
12687
+ imageRef?: string | undefined;
12628
12688
  }>, "many">>;
12629
12689
  }, "strip", z.ZodTypeAny, {
12630
12690
  errorCode: string | null;
@@ -12641,6 +12701,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
12641
12701
  runId?: string | undefined;
12642
12702
  byteSize?: number | undefined;
12643
12703
  imageIndex?: number | undefined;
12704
+ imageRef?: string | undefined;
12644
12705
  }[] | undefined;
12645
12706
  toolCategory?: "IMAGE_GENERATION" | undefined;
12646
12707
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -12671,6 +12732,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
12671
12732
  runId?: string | undefined;
12672
12733
  byteSize?: number | undefined;
12673
12734
  imageIndex?: number | undefined;
12735
+ imageRef?: string | undefined;
12674
12736
  }[] | undefined;
12675
12737
  toolCategory?: "IMAGE_GENERATION" | undefined;
12676
12738
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -12711,6 +12773,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
12711
12773
  runId?: string | undefined;
12712
12774
  byteSize?: number | undefined;
12713
12775
  imageIndex?: number | undefined;
12776
+ imageRef?: string | undefined;
12714
12777
  }[] | undefined;
12715
12778
  toolCategory?: "IMAGE_GENERATION" | undefined;
12716
12779
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -12756,6 +12819,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
12756
12819
  runId?: string | undefined;
12757
12820
  byteSize?: number | undefined;
12758
12821
  imageIndex?: number | undefined;
12822
+ imageRef?: string | undefined;
12759
12823
  }[] | undefined;
12760
12824
  toolCategory?: "IMAGE_GENERATION" | undefined;
12761
12825
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -13566,6 +13630,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
13566
13630
  runId?: string | undefined;
13567
13631
  byteSize?: number | undefined;
13568
13632
  imageIndex?: number | undefined;
13633
+ imageRef?: string | undefined;
13569
13634
  }[] | undefined;
13570
13635
  };
13571
13636
  turnId: string;
@@ -13699,6 +13764,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
13699
13764
  runId?: string | undefined;
13700
13765
  byteSize?: number | undefined;
13701
13766
  imageIndex?: number | undefined;
13767
+ imageRef?: string | undefined;
13702
13768
  }[] | undefined;
13703
13769
  toolCategory?: "IMAGE_GENERATION" | undefined;
13704
13770
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -13934,6 +14000,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
13934
14000
  runId?: string | undefined;
13935
14001
  byteSize?: number | undefined;
13936
14002
  imageIndex?: number | undefined;
14003
+ imageRef?: string | undefined;
13937
14004
  }[] | undefined;
13938
14005
  };
13939
14006
  turnId: string;
@@ -14067,6 +14134,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
14067
14134
  runId?: string | undefined;
14068
14135
  byteSize?: number | undefined;
14069
14136
  imageIndex?: number | undefined;
14137
+ imageRef?: string | undefined;
14070
14138
  }[] | undefined;
14071
14139
  toolCategory?: "IMAGE_GENERATION" | undefined;
14072
14140
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -14531,6 +14599,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
14531
14599
  runId?: string | undefined;
14532
14600
  byteSize?: number | undefined;
14533
14601
  imageIndex?: number | undefined;
14602
+ imageRef?: string | undefined;
14534
14603
  }[] | undefined;
14535
14604
  };
14536
14605
  turnId: string;
@@ -14664,6 +14733,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
14664
14733
  runId?: string | undefined;
14665
14734
  byteSize?: number | undefined;
14666
14735
  imageIndex?: number | undefined;
14736
+ imageRef?: string | undefined;
14667
14737
  }[] | undefined;
14668
14738
  toolCategory?: "IMAGE_GENERATION" | undefined;
14669
14739
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -14964,6 +15034,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
14964
15034
  runId?: string | undefined;
14965
15035
  byteSize?: number | undefined;
14966
15036
  imageIndex?: number | undefined;
15037
+ imageRef?: string | undefined;
14967
15038
  }[] | undefined;
14968
15039
  };
14969
15040
  turnId: string;
@@ -15097,6 +15168,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
15097
15168
  runId?: string | undefined;
15098
15169
  byteSize?: number | undefined;
15099
15170
  imageIndex?: number | undefined;
15171
+ imageRef?: string | undefined;
15100
15172
  }[] | undefined;
15101
15173
  toolCategory?: "IMAGE_GENERATION" | undefined;
15102
15174
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -15397,6 +15469,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
15397
15469
  runId?: string | undefined;
15398
15470
  byteSize?: number | undefined;
15399
15471
  imageIndex?: number | undefined;
15472
+ imageRef?: string | undefined;
15400
15473
  }[] | undefined;
15401
15474
  };
15402
15475
  turnId: string;
@@ -15530,6 +15603,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
15530
15603
  runId?: string | undefined;
15531
15604
  byteSize?: number | undefined;
15532
15605
  imageIndex?: number | undefined;
15606
+ imageRef?: string | undefined;
15533
15607
  }[] | undefined;
15534
15608
  toolCategory?: "IMAGE_GENERATION" | undefined;
15535
15609
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -15830,6 +15904,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
15830
15904
  runId?: string | undefined;
15831
15905
  byteSize?: number | undefined;
15832
15906
  imageIndex?: number | undefined;
15907
+ imageRef?: string | undefined;
15833
15908
  }[] | undefined;
15834
15909
  };
15835
15910
  turnId: string;
@@ -15963,6 +16038,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
15963
16038
  runId?: string | undefined;
15964
16039
  byteSize?: number | undefined;
15965
16040
  imageIndex?: number | undefined;
16041
+ imageRef?: string | undefined;
15966
16042
  }[] | undefined;
15967
16043
  toolCategory?: "IMAGE_GENERATION" | undefined;
15968
16044
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -16577,30 +16653,35 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
16577
16653
  byteSize: z.ZodOptional<z.ZodNumber>;
16578
16654
  runId: z.ZodOptional<z.ZodString>;
16579
16655
  imageIndex: z.ZodOptional<z.ZodNumber>;
16656
+ imageRef: z.ZodOptional<z.ZodString>;
16580
16657
  }, "strict", z.ZodTypeAny, {
16581
16658
  name: string;
16582
16659
  mime: string;
16583
16660
  runId?: string | undefined;
16584
16661
  byteSize?: number | undefined;
16585
16662
  imageIndex?: number | undefined;
16663
+ imageRef?: string | undefined;
16586
16664
  }, {
16587
16665
  name: string;
16588
16666
  mime: string;
16589
16667
  runId?: string | undefined;
16590
16668
  byteSize?: number | undefined;
16591
16669
  imageIndex?: number | undefined;
16670
+ imageRef?: string | undefined;
16592
16671
  }>, {
16593
16672
  name: string;
16594
16673
  mime: string;
16595
16674
  runId?: string | undefined;
16596
16675
  byteSize?: number | undefined;
16597
16676
  imageIndex?: number | undefined;
16677
+ imageRef?: string | undefined;
16598
16678
  }, {
16599
16679
  name: string;
16600
16680
  mime: string;
16601
16681
  runId?: string | undefined;
16602
16682
  byteSize?: number | undefined;
16603
16683
  imageIndex?: number | undefined;
16684
+ imageRef?: string | undefined;
16604
16685
  }>, "many">>;
16605
16686
  source: z.ZodOptional<z.ZodLiteral<"SCHEDULED">>;
16606
16687
  delivery: z.ZodEnum<["PENDING", "ACCEPTED", "STEERED", "QUEUED_NEXT_TURN", "REJECTED"]>;
@@ -16623,6 +16704,7 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
16623
16704
  runId?: string | undefined;
16624
16705
  byteSize?: number | undefined;
16625
16706
  imageIndex?: number | undefined;
16707
+ imageRef?: string | undefined;
16626
16708
  }[] | undefined;
16627
16709
  }, {
16628
16710
  clientMessageId: string | null;
@@ -16643,6 +16725,7 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
16643
16725
  runId?: string | undefined;
16644
16726
  byteSize?: number | undefined;
16645
16727
  imageIndex?: number | undefined;
16728
+ imageRef?: string | undefined;
16646
16729
  }[] | undefined;
16647
16730
  }>;
16648
16731
  }, "strip", z.ZodTypeAny, {
@@ -16673,6 +16756,7 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
16673
16756
  runId?: string | undefined;
16674
16757
  byteSize?: number | undefined;
16675
16758
  imageIndex?: number | undefined;
16759
+ imageRef?: string | undefined;
16676
16760
  }[] | undefined;
16677
16761
  };
16678
16762
  turnId: string;
@@ -16708,6 +16792,7 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
16708
16792
  runId?: string | undefined;
16709
16793
  byteSize?: number | undefined;
16710
16794
  imageIndex?: number | undefined;
16795
+ imageRef?: string | undefined;
16711
16796
  }[] | undefined;
16712
16797
  };
16713
16798
  turnId: string;
@@ -17023,30 +17108,35 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
17023
17108
  byteSize: z.ZodOptional<z.ZodNumber>;
17024
17109
  runId: z.ZodOptional<z.ZodString>;
17025
17110
  imageIndex: z.ZodOptional<z.ZodNumber>;
17111
+ imageRef: z.ZodOptional<z.ZodString>;
17026
17112
  }, "strict", z.ZodTypeAny, {
17027
17113
  name: string;
17028
17114
  mime: string;
17029
17115
  runId?: string | undefined;
17030
17116
  byteSize?: number | undefined;
17031
17117
  imageIndex?: number | undefined;
17118
+ imageRef?: string | undefined;
17032
17119
  }, {
17033
17120
  name: string;
17034
17121
  mime: string;
17035
17122
  runId?: string | undefined;
17036
17123
  byteSize?: number | undefined;
17037
17124
  imageIndex?: number | undefined;
17125
+ imageRef?: string | undefined;
17038
17126
  }>, {
17039
17127
  name: string;
17040
17128
  mime: string;
17041
17129
  runId?: string | undefined;
17042
17130
  byteSize?: number | undefined;
17043
17131
  imageIndex?: number | undefined;
17132
+ imageRef?: string | undefined;
17044
17133
  }, {
17045
17134
  name: string;
17046
17135
  mime: string;
17047
17136
  runId?: string | undefined;
17048
17137
  byteSize?: number | undefined;
17049
17138
  imageIndex?: number | undefined;
17139
+ imageRef?: string | undefined;
17050
17140
  }>, "many">>;
17051
17141
  }, "strip", z.ZodTypeAny, {
17052
17142
  errorCode: string | null;
@@ -17063,6 +17153,7 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
17063
17153
  runId?: string | undefined;
17064
17154
  byteSize?: number | undefined;
17065
17155
  imageIndex?: number | undefined;
17156
+ imageRef?: string | undefined;
17066
17157
  }[] | undefined;
17067
17158
  toolCategory?: "IMAGE_GENERATION" | undefined;
17068
17159
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -17093,6 +17184,7 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
17093
17184
  runId?: string | undefined;
17094
17185
  byteSize?: number | undefined;
17095
17186
  imageIndex?: number | undefined;
17187
+ imageRef?: string | undefined;
17096
17188
  }[] | undefined;
17097
17189
  toolCategory?: "IMAGE_GENERATION" | undefined;
17098
17190
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -17133,6 +17225,7 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
17133
17225
  runId?: string | undefined;
17134
17226
  byteSize?: number | undefined;
17135
17227
  imageIndex?: number | undefined;
17228
+ imageRef?: string | undefined;
17136
17229
  }[] | undefined;
17137
17230
  toolCategory?: "IMAGE_GENERATION" | undefined;
17138
17231
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -17178,6 +17271,7 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
17178
17271
  runId?: string | undefined;
17179
17272
  byteSize?: number | undefined;
17180
17273
  imageIndex?: number | undefined;
17274
+ imageRef?: string | undefined;
17181
17275
  }[] | undefined;
17182
17276
  toolCategory?: "IMAGE_GENERATION" | undefined;
17183
17277
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -17988,6 +18082,7 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
17988
18082
  runId?: string | undefined;
17989
18083
  byteSize?: number | undefined;
17990
18084
  imageIndex?: number | undefined;
18085
+ imageRef?: string | undefined;
17991
18086
  }[] | undefined;
17992
18087
  };
17993
18088
  turnId: string;
@@ -18121,6 +18216,7 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
18121
18216
  runId?: string | undefined;
18122
18217
  byteSize?: number | undefined;
18123
18218
  imageIndex?: number | undefined;
18219
+ imageRef?: string | undefined;
18124
18220
  }[] | undefined;
18125
18221
  toolCategory?: "IMAGE_GENERATION" | undefined;
18126
18222
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -18356,6 +18452,7 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
18356
18452
  runId?: string | undefined;
18357
18453
  byteSize?: number | undefined;
18358
18454
  imageIndex?: number | undefined;
18455
+ imageRef?: string | undefined;
18359
18456
  }[] | undefined;
18360
18457
  };
18361
18458
  turnId: string;
@@ -18489,6 +18586,7 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
18489
18586
  runId?: string | undefined;
18490
18587
  byteSize?: number | undefined;
18491
18588
  imageIndex?: number | undefined;
18589
+ imageRef?: string | undefined;
18492
18590
  }[] | undefined;
18493
18591
  toolCategory?: "IMAGE_GENERATION" | undefined;
18494
18592
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -18727,6 +18825,7 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
18727
18825
  runId?: string | undefined;
18728
18826
  byteSize?: number | undefined;
18729
18827
  imageIndex?: number | undefined;
18828
+ imageRef?: string | undefined;
18730
18829
  }[] | undefined;
18731
18830
  };
18732
18831
  turnId: string;
@@ -18860,6 +18959,7 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
18860
18959
  runId?: string | undefined;
18861
18960
  byteSize?: number | undefined;
18862
18961
  imageIndex?: number | undefined;
18962
+ imageRef?: string | undefined;
18863
18963
  }[] | undefined;
18864
18964
  toolCategory?: "IMAGE_GENERATION" | undefined;
18865
18965
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -19098,6 +19198,7 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
19098
19198
  runId?: string | undefined;
19099
19199
  byteSize?: number | undefined;
19100
19200
  imageIndex?: number | undefined;
19201
+ imageRef?: string | undefined;
19101
19202
  }[] | undefined;
19102
19203
  };
19103
19204
  turnId: string;
@@ -19231,6 +19332,7 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
19231
19332
  runId?: string | undefined;
19232
19333
  byteSize?: number | undefined;
19233
19334
  imageIndex?: number | undefined;
19335
+ imageRef?: string | undefined;
19234
19336
  }[] | undefined;
19235
19337
  toolCategory?: "IMAGE_GENERATION" | undefined;
19236
19338
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -19430,19 +19532,39 @@ export declare const hostedConversationRollbackInputSchema: z.ZodObject<{
19430
19532
  boundary: string | null;
19431
19533
  }>;
19432
19534
  export type HostedConversationRollbackInput = z.infer<typeof hostedConversationRollbackInputSchema>;
19535
+ export declare const runImageReadInputSchema: z.ZodUnion<[z.ZodObject<{
19536
+ runId: z.ZodString;
19537
+ imageIndex: z.ZodNumber;
19538
+ }, "strict", z.ZodTypeAny, {
19539
+ runId: string;
19540
+ imageIndex: number;
19541
+ }, {
19542
+ runId: string;
19543
+ imageIndex: number;
19544
+ }>, z.ZodObject<{
19545
+ runId: z.ZodString;
19546
+ imageRef: z.ZodString;
19547
+ }, "strict", z.ZodTypeAny, {
19548
+ runId: string;
19549
+ imageRef: string;
19550
+ }, {
19551
+ runId: string;
19552
+ imageRef: string;
19553
+ }>]>;
19554
+ export type RunImageReadInput = z.infer<typeof runImageReadInputSchema>;
19433
19555
  export declare const hostedConversationImageReadInputSchema: z.ZodObject<{
19434
19556
  conversationId: z.ZodString;
19435
19557
  } & {
19436
19558
  runId: z.ZodString;
19437
- imageIndex: z.ZodNumber;
19559
+ imageRef: z.ZodString;
19438
19560
  }, "strict", z.ZodTypeAny, {
19439
19561
  runId: string;
19440
19562
  conversationId: string;
19441
- imageIndex: number;
19563
+ imageRef: string;
19442
19564
  }, {
19443
19565
  runId: string;
19444
19566
  conversationId: string;
19445
- imageIndex: number;
19567
+ imageRef: string;
19446
19568
  }>;
19447
19569
  export type HostedConversationImageReadInput = z.infer<typeof hostedConversationImageReadInputSchema>;
19448
19570
  export declare const hostedConversationDeleteResultSchema: z.ZodObject<{
@@ -20266,30 +20388,35 @@ export declare const conversationSegmentSchema: z.ZodObject<{
20266
20388
  byteSize: z.ZodOptional<z.ZodNumber>;
20267
20389
  runId: z.ZodOptional<z.ZodString>;
20268
20390
  imageIndex: z.ZodOptional<z.ZodNumber>;
20391
+ imageRef: z.ZodOptional<z.ZodString>;
20269
20392
  }, "strict", z.ZodTypeAny, {
20270
20393
  name: string;
20271
20394
  mime: string;
20272
20395
  runId?: string | undefined;
20273
20396
  byteSize?: number | undefined;
20274
20397
  imageIndex?: number | undefined;
20398
+ imageRef?: string | undefined;
20275
20399
  }, {
20276
20400
  name: string;
20277
20401
  mime: string;
20278
20402
  runId?: string | undefined;
20279
20403
  byteSize?: number | undefined;
20280
20404
  imageIndex?: number | undefined;
20405
+ imageRef?: string | undefined;
20281
20406
  }>, {
20282
20407
  name: string;
20283
20408
  mime: string;
20284
20409
  runId?: string | undefined;
20285
20410
  byteSize?: number | undefined;
20286
20411
  imageIndex?: number | undefined;
20412
+ imageRef?: string | undefined;
20287
20413
  }, {
20288
20414
  name: string;
20289
20415
  mime: string;
20290
20416
  runId?: string | undefined;
20291
20417
  byteSize?: number | undefined;
20292
20418
  imageIndex?: number | undefined;
20419
+ imageRef?: string | undefined;
20293
20420
  }>, "many">>;
20294
20421
  source: z.ZodOptional<z.ZodLiteral<"SCHEDULED">>;
20295
20422
  delivery: z.ZodEnum<["PENDING", "ACCEPTED", "STEERED", "QUEUED_NEXT_TURN", "REJECTED"]>;
@@ -20312,6 +20439,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
20312
20439
  runId?: string | undefined;
20313
20440
  byteSize?: number | undefined;
20314
20441
  imageIndex?: number | undefined;
20442
+ imageRef?: string | undefined;
20315
20443
  }[] | undefined;
20316
20444
  }, {
20317
20445
  clientMessageId: string | null;
@@ -20332,6 +20460,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
20332
20460
  runId?: string | undefined;
20333
20461
  byteSize?: number | undefined;
20334
20462
  imageIndex?: number | undefined;
20463
+ imageRef?: string | undefined;
20335
20464
  }[] | undefined;
20336
20465
  }>;
20337
20466
  }, "strip", z.ZodTypeAny, {
@@ -20362,6 +20491,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
20362
20491
  runId?: string | undefined;
20363
20492
  byteSize?: number | undefined;
20364
20493
  imageIndex?: number | undefined;
20494
+ imageRef?: string | undefined;
20365
20495
  }[] | undefined;
20366
20496
  };
20367
20497
  turnId: string;
@@ -20397,6 +20527,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
20397
20527
  runId?: string | undefined;
20398
20528
  byteSize?: number | undefined;
20399
20529
  imageIndex?: number | undefined;
20530
+ imageRef?: string | undefined;
20400
20531
  }[] | undefined;
20401
20532
  };
20402
20533
  turnId: string;
@@ -20712,30 +20843,35 @@ export declare const conversationSegmentSchema: z.ZodObject<{
20712
20843
  byteSize: z.ZodOptional<z.ZodNumber>;
20713
20844
  runId: z.ZodOptional<z.ZodString>;
20714
20845
  imageIndex: z.ZodOptional<z.ZodNumber>;
20846
+ imageRef: z.ZodOptional<z.ZodString>;
20715
20847
  }, "strict", z.ZodTypeAny, {
20716
20848
  name: string;
20717
20849
  mime: string;
20718
20850
  runId?: string | undefined;
20719
20851
  byteSize?: number | undefined;
20720
20852
  imageIndex?: number | undefined;
20853
+ imageRef?: string | undefined;
20721
20854
  }, {
20722
20855
  name: string;
20723
20856
  mime: string;
20724
20857
  runId?: string | undefined;
20725
20858
  byteSize?: number | undefined;
20726
20859
  imageIndex?: number | undefined;
20860
+ imageRef?: string | undefined;
20727
20861
  }>, {
20728
20862
  name: string;
20729
20863
  mime: string;
20730
20864
  runId?: string | undefined;
20731
20865
  byteSize?: number | undefined;
20732
20866
  imageIndex?: number | undefined;
20867
+ imageRef?: string | undefined;
20733
20868
  }, {
20734
20869
  name: string;
20735
20870
  mime: string;
20736
20871
  runId?: string | undefined;
20737
20872
  byteSize?: number | undefined;
20738
20873
  imageIndex?: number | undefined;
20874
+ imageRef?: string | undefined;
20739
20875
  }>, "many">>;
20740
20876
  }, "strip", z.ZodTypeAny, {
20741
20877
  errorCode: string | null;
@@ -20752,6 +20888,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
20752
20888
  runId?: string | undefined;
20753
20889
  byteSize?: number | undefined;
20754
20890
  imageIndex?: number | undefined;
20891
+ imageRef?: string | undefined;
20755
20892
  }[] | undefined;
20756
20893
  toolCategory?: "IMAGE_GENERATION" | undefined;
20757
20894
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -20782,6 +20919,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
20782
20919
  runId?: string | undefined;
20783
20920
  byteSize?: number | undefined;
20784
20921
  imageIndex?: number | undefined;
20922
+ imageRef?: string | undefined;
20785
20923
  }[] | undefined;
20786
20924
  toolCategory?: "IMAGE_GENERATION" | undefined;
20787
20925
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -20822,6 +20960,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
20822
20960
  runId?: string | undefined;
20823
20961
  byteSize?: number | undefined;
20824
20962
  imageIndex?: number | undefined;
20963
+ imageRef?: string | undefined;
20825
20964
  }[] | undefined;
20826
20965
  toolCategory?: "IMAGE_GENERATION" | undefined;
20827
20966
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -20867,6 +21006,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
20867
21006
  runId?: string | undefined;
20868
21007
  byteSize?: number | undefined;
20869
21008
  imageIndex?: number | undefined;
21009
+ imageRef?: string | undefined;
20870
21010
  }[] | undefined;
20871
21011
  toolCategory?: "IMAGE_GENERATION" | undefined;
20872
21012
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -21675,6 +21815,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
21675
21815
  runId?: string | undefined;
21676
21816
  byteSize?: number | undefined;
21677
21817
  imageIndex?: number | undefined;
21818
+ imageRef?: string | undefined;
21678
21819
  }[] | undefined;
21679
21820
  };
21680
21821
  turnId: string;
@@ -21808,6 +21949,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
21808
21949
  runId?: string | undefined;
21809
21950
  byteSize?: number | undefined;
21810
21951
  imageIndex?: number | undefined;
21952
+ imageRef?: string | undefined;
21811
21953
  }[] | undefined;
21812
21954
  toolCategory?: "IMAGE_GENERATION" | undefined;
21813
21955
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -22041,6 +22183,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
22041
22183
  runId?: string | undefined;
22042
22184
  byteSize?: number | undefined;
22043
22185
  imageIndex?: number | undefined;
22186
+ imageRef?: string | undefined;
22044
22187
  }[] | undefined;
22045
22188
  };
22046
22189
  turnId: string;
@@ -22174,6 +22317,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
22174
22317
  runId?: string | undefined;
22175
22318
  byteSize?: number | undefined;
22176
22319
  imageIndex?: number | undefined;
22320
+ imageRef?: string | undefined;
22177
22321
  }[] | undefined;
22178
22322
  toolCategory?: "IMAGE_GENERATION" | undefined;
22179
22323
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -22487,30 +22631,35 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
22487
22631
  byteSize: z.ZodOptional<z.ZodNumber>;
22488
22632
  runId: z.ZodOptional<z.ZodString>;
22489
22633
  imageIndex: z.ZodOptional<z.ZodNumber>;
22634
+ imageRef: z.ZodOptional<z.ZodString>;
22490
22635
  }, "strict", z.ZodTypeAny, {
22491
22636
  name: string;
22492
22637
  mime: string;
22493
22638
  runId?: string | undefined;
22494
22639
  byteSize?: number | undefined;
22495
22640
  imageIndex?: number | undefined;
22641
+ imageRef?: string | undefined;
22496
22642
  }, {
22497
22643
  name: string;
22498
22644
  mime: string;
22499
22645
  runId?: string | undefined;
22500
22646
  byteSize?: number | undefined;
22501
22647
  imageIndex?: number | undefined;
22648
+ imageRef?: string | undefined;
22502
22649
  }>, {
22503
22650
  name: string;
22504
22651
  mime: string;
22505
22652
  runId?: string | undefined;
22506
22653
  byteSize?: number | undefined;
22507
22654
  imageIndex?: number | undefined;
22655
+ imageRef?: string | undefined;
22508
22656
  }, {
22509
22657
  name: string;
22510
22658
  mime: string;
22511
22659
  runId?: string | undefined;
22512
22660
  byteSize?: number | undefined;
22513
22661
  imageIndex?: number | undefined;
22662
+ imageRef?: string | undefined;
22514
22663
  }>, "many">>;
22515
22664
  source: z.ZodOptional<z.ZodLiteral<"SCHEDULED">>;
22516
22665
  delivery: z.ZodEnum<["PENDING", "ACCEPTED", "STEERED", "QUEUED_NEXT_TURN", "REJECTED"]>;
@@ -22533,6 +22682,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
22533
22682
  runId?: string | undefined;
22534
22683
  byteSize?: number | undefined;
22535
22684
  imageIndex?: number | undefined;
22685
+ imageRef?: string | undefined;
22536
22686
  }[] | undefined;
22537
22687
  }, {
22538
22688
  clientMessageId: string | null;
@@ -22553,6 +22703,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
22553
22703
  runId?: string | undefined;
22554
22704
  byteSize?: number | undefined;
22555
22705
  imageIndex?: number | undefined;
22706
+ imageRef?: string | undefined;
22556
22707
  }[] | undefined;
22557
22708
  }>;
22558
22709
  }, "strip", z.ZodTypeAny, {
@@ -22583,6 +22734,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
22583
22734
  runId?: string | undefined;
22584
22735
  byteSize?: number | undefined;
22585
22736
  imageIndex?: number | undefined;
22737
+ imageRef?: string | undefined;
22586
22738
  }[] | undefined;
22587
22739
  };
22588
22740
  turnId: string;
@@ -22618,6 +22770,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
22618
22770
  runId?: string | undefined;
22619
22771
  byteSize?: number | undefined;
22620
22772
  imageIndex?: number | undefined;
22773
+ imageRef?: string | undefined;
22621
22774
  }[] | undefined;
22622
22775
  };
22623
22776
  turnId: string;
@@ -22933,30 +23086,35 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
22933
23086
  byteSize: z.ZodOptional<z.ZodNumber>;
22934
23087
  runId: z.ZodOptional<z.ZodString>;
22935
23088
  imageIndex: z.ZodOptional<z.ZodNumber>;
23089
+ imageRef: z.ZodOptional<z.ZodString>;
22936
23090
  }, "strict", z.ZodTypeAny, {
22937
23091
  name: string;
22938
23092
  mime: string;
22939
23093
  runId?: string | undefined;
22940
23094
  byteSize?: number | undefined;
22941
23095
  imageIndex?: number | undefined;
23096
+ imageRef?: string | undefined;
22942
23097
  }, {
22943
23098
  name: string;
22944
23099
  mime: string;
22945
23100
  runId?: string | undefined;
22946
23101
  byteSize?: number | undefined;
22947
23102
  imageIndex?: number | undefined;
23103
+ imageRef?: string | undefined;
22948
23104
  }>, {
22949
23105
  name: string;
22950
23106
  mime: string;
22951
23107
  runId?: string | undefined;
22952
23108
  byteSize?: number | undefined;
22953
23109
  imageIndex?: number | undefined;
23110
+ imageRef?: string | undefined;
22954
23111
  }, {
22955
23112
  name: string;
22956
23113
  mime: string;
22957
23114
  runId?: string | undefined;
22958
23115
  byteSize?: number | undefined;
22959
23116
  imageIndex?: number | undefined;
23117
+ imageRef?: string | undefined;
22960
23118
  }>, "many">>;
22961
23119
  }, "strip", z.ZodTypeAny, {
22962
23120
  errorCode: string | null;
@@ -22973,6 +23131,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
22973
23131
  runId?: string | undefined;
22974
23132
  byteSize?: number | undefined;
22975
23133
  imageIndex?: number | undefined;
23134
+ imageRef?: string | undefined;
22976
23135
  }[] | undefined;
22977
23136
  toolCategory?: "IMAGE_GENERATION" | undefined;
22978
23137
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -23003,6 +23162,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
23003
23162
  runId?: string | undefined;
23004
23163
  byteSize?: number | undefined;
23005
23164
  imageIndex?: number | undefined;
23165
+ imageRef?: string | undefined;
23006
23166
  }[] | undefined;
23007
23167
  toolCategory?: "IMAGE_GENERATION" | undefined;
23008
23168
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -23043,6 +23203,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
23043
23203
  runId?: string | undefined;
23044
23204
  byteSize?: number | undefined;
23045
23205
  imageIndex?: number | undefined;
23206
+ imageRef?: string | undefined;
23046
23207
  }[] | undefined;
23047
23208
  toolCategory?: "IMAGE_GENERATION" | undefined;
23048
23209
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -23088,6 +23249,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
23088
23249
  runId?: string | undefined;
23089
23250
  byteSize?: number | undefined;
23090
23251
  imageIndex?: number | undefined;
23252
+ imageRef?: string | undefined;
23091
23253
  }[] | undefined;
23092
23254
  toolCategory?: "IMAGE_GENERATION" | undefined;
23093
23255
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -23896,6 +24058,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
23896
24058
  runId?: string | undefined;
23897
24059
  byteSize?: number | undefined;
23898
24060
  imageIndex?: number | undefined;
24061
+ imageRef?: string | undefined;
23899
24062
  }[] | undefined;
23900
24063
  };
23901
24064
  turnId: string;
@@ -24029,6 +24192,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
24029
24192
  runId?: string | undefined;
24030
24193
  byteSize?: number | undefined;
24031
24194
  imageIndex?: number | undefined;
24195
+ imageRef?: string | undefined;
24032
24196
  }[] | undefined;
24033
24197
  toolCategory?: "IMAGE_GENERATION" | undefined;
24034
24198
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -24262,6 +24426,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
24262
24426
  runId?: string | undefined;
24263
24427
  byteSize?: number | undefined;
24264
24428
  imageIndex?: number | undefined;
24429
+ imageRef?: string | undefined;
24265
24430
  }[] | undefined;
24266
24431
  };
24267
24432
  turnId: string;
@@ -24395,6 +24560,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
24395
24560
  runId?: string | undefined;
24396
24561
  byteSize?: number | undefined;
24397
24562
  imageIndex?: number | undefined;
24563
+ imageRef?: string | undefined;
24398
24564
  }[] | undefined;
24399
24565
  toolCategory?: "IMAGE_GENERATION" | undefined;
24400
24566
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -24640,6 +24806,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
24640
24806
  runId?: string | undefined;
24641
24807
  byteSize?: number | undefined;
24642
24808
  imageIndex?: number | undefined;
24809
+ imageRef?: string | undefined;
24643
24810
  }[] | undefined;
24644
24811
  };
24645
24812
  turnId: string;
@@ -24773,6 +24940,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
24773
24940
  runId?: string | undefined;
24774
24941
  byteSize?: number | undefined;
24775
24942
  imageIndex?: number | undefined;
24943
+ imageRef?: string | undefined;
24776
24944
  }[] | undefined;
24777
24945
  toolCategory?: "IMAGE_GENERATION" | undefined;
24778
24946
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
@@ -25015,6 +25183,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
25015
25183
  runId?: string | undefined;
25016
25184
  byteSize?: number | undefined;
25017
25185
  imageIndex?: number | undefined;
25186
+ imageRef?: string | undefined;
25018
25187
  }[] | undefined;
25019
25188
  };
25020
25189
  turnId: string;
@@ -25148,6 +25317,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
25148
25317
  runId?: string | undefined;
25149
25318
  byteSize?: number | undefined;
25150
25319
  imageIndex?: number | undefined;
25320
+ imageRef?: string | undefined;
25151
25321
  }[] | undefined;
25152
25322
  toolCategory?: "IMAGE_GENERATION" | undefined;
25153
25323
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
package/dist/index.js CHANGED
@@ -1513,20 +1513,27 @@ export const contextReferenceSchema = z.object({
1513
1513
  startLine: z.number().int().positive().optional(),
1514
1514
  endLine: z.number().int().positive().optional()
1515
1515
  });
1516
+ export const imageRefSchema = z
1517
+ .string()
1518
+ .min(1)
1519
+ .max(2048)
1520
+ .regex(/^(?:file|reader):[^\s]+$/u);
1516
1521
  export const conversationImageAttachmentSchema = z
1517
1522
  .object({
1518
1523
  name: z.string().trim().min(1).max(512),
1519
1524
  mime: z.string().regex(/^image\/[A-Za-z0-9][A-Za-z0-9.+-]{0,127}$/u),
1520
1525
  byteSize: z.number().int().nonnegative().optional(),
1521
1526
  runId: z.string().min(1).max(128).optional(),
1522
- imageIndex: z.number().int().nonnegative().optional()
1527
+ imageIndex: z.number().int().nonnegative().optional(),
1528
+ imageRef: imageRefSchema.optional()
1523
1529
  })
1524
1530
  .strict()
1525
1531
  .superRefine((attachment, context) => {
1526
- if ((attachment.runId === undefined) !== (attachment.imageIndex === undefined))
1532
+ const selectors = Number(attachment.imageIndex !== undefined) + Number(attachment.imageRef !== undefined);
1533
+ if (selectors > 1 || (attachment.runId === undefined ? selectors !== 0 : selectors !== 1))
1527
1534
  context.addIssue({
1528
1535
  code: 'custom',
1529
- message: 'runId and imageIndex must be provided together'
1536
+ message: 'runId must be paired with exactly one image selector'
1530
1537
  });
1531
1538
  });
1532
1539
  const assistantMessageItemSchema = conversationItemBaseSchema.extend({
@@ -2163,10 +2170,14 @@ export const hostedConversationRollbackInputSchema = hostedConversationIdInputSc
2163
2170
  boundary: z.string().min(1).max(256).nullable()
2164
2171
  })
2165
2172
  .strict();
2173
+ export const runImageReadInputSchema = z.union([
2174
+ z.object({ runId: protocolIdSchema, imageIndex: z.number().int().nonnegative() }).strict(),
2175
+ z.object({ runId: protocolIdSchema, imageRef: imageRefSchema }).strict()
2176
+ ]);
2166
2177
  export const hostedConversationImageReadInputSchema = hostedConversationIdInputSchema
2167
2178
  .extend({
2168
2179
  runId: protocolIdSchema,
2169
- imageIndex: z.number().int().nonnegative()
2180
+ imageRef: imageRefSchema
2170
2181
  })
2171
2182
  .strict();
2172
2183
  export const hostedConversationDeleteResultSchema = z
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/protocol",
3
- "version": "0.9.154",
3
+ "version": "0.9.155",
4
4
  "description": "Shared runtime protocol schemas for MyAgentRoam.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",