@debridge-finance/intents-schemas 1.9.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1230,6 +1230,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
1230
1230
  tokenAmount: string;
1231
1231
  }[] | undefined;
1232
1232
  } | null | undefined>;
1233
+ actionId: z.ZodOptional<z.ZodString>;
1233
1234
  }, "strip", z.ZodTypeAny, {
1234
1235
  type: import("../enums").SignatureType;
1235
1236
  actions: import("../enums").SignatureAction[];
@@ -1328,6 +1329,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
1328
1329
  tokenAmount: string;
1329
1330
  }[] | undefined;
1330
1331
  } | undefined;
1332
+ actionId?: string | undefined;
1331
1333
  }, {
1332
1334
  type: import("../enums").SignatureType;
1333
1335
  actions: import("../enums").SignatureAction[];
@@ -1426,6 +1428,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
1426
1428
  tokenAmount: string;
1427
1429
  }[] | undefined;
1428
1430
  } | null | undefined;
1431
+ actionId?: string | undefined;
1429
1432
  }>, "many">;
1430
1433
  intent: z.ZodOptional<z.ZodObject<{
1431
1434
  receiverDetails: z.ZodArray<z.ZodObject<{
@@ -1694,6 +1697,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
1694
1697
  tokenAmount: string;
1695
1698
  }[] | undefined;
1696
1699
  } | undefined;
1700
+ actionId?: string | undefined;
1697
1701
  }[];
1698
1702
  intentId: string;
1699
1703
  intent?: {
@@ -1837,6 +1841,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
1837
1841
  tokenAmount: string;
1838
1842
  }[] | undefined;
1839
1843
  } | null | undefined;
1844
+ actionId?: string | undefined;
1840
1845
  }[];
1841
1846
  intentId: string;
1842
1847
  intent?: {
@@ -2674,6 +2679,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
2674
2679
  tokenAmount: string;
2675
2680
  }[] | undefined;
2676
2681
  } | null | undefined>;
2682
+ actionId: z.ZodOptional<z.ZodString>;
2677
2683
  }, "strip", z.ZodTypeAny, {
2678
2684
  type: import("../enums").SignatureType;
2679
2685
  actions: import("../enums").SignatureAction[];
@@ -2772,6 +2778,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
2772
2778
  tokenAmount: string;
2773
2779
  }[] | undefined;
2774
2780
  } | undefined;
2781
+ actionId?: string | undefined;
2775
2782
  }, {
2776
2783
  type: import("../enums").SignatureType;
2777
2784
  actions: import("../enums").SignatureAction[];
@@ -2870,6 +2877,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
2870
2877
  tokenAmount: string;
2871
2878
  }[] | undefined;
2872
2879
  } | null | undefined;
2880
+ actionId?: string | undefined;
2873
2881
  }>, "many">;
2874
2882
  tokenAddress: z.ZodString;
2875
2883
  from: z.ZodString;
@@ -2978,6 +2986,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
2978
2986
  tokenAmount: string;
2979
2987
  }[] | undefined;
2980
2988
  } | undefined;
2989
+ actionId?: string | undefined;
2981
2990
  }[];
2982
2991
  from: string;
2983
2992
  }, {
@@ -3085,6 +3094,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
3085
3094
  tokenAmount: string;
3086
3095
  }[] | undefined;
3087
3096
  } | null | undefined;
3097
+ actionId?: string | undefined;
3088
3098
  }[];
3089
3099
  from: string;
3090
3100
  }>, "many">>;
@@ -3880,6 +3890,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
3880
3890
  tokenAmount: string;
3881
3891
  }[] | undefined;
3882
3892
  } | null | undefined>;
3893
+ actionId: z.ZodOptional<z.ZodString>;
3883
3894
  }, "strip", z.ZodTypeAny, {
3884
3895
  type: import("../enums").SignatureType;
3885
3896
  actions: import("../enums").SignatureAction[];
@@ -3978,6 +3989,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
3978
3989
  tokenAmount: string;
3979
3990
  }[] | undefined;
3980
3991
  } | undefined;
3992
+ actionId?: string | undefined;
3981
3993
  }, {
3982
3994
  type: import("../enums").SignatureType;
3983
3995
  actions: import("../enums").SignatureAction[];
@@ -4076,6 +4088,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
4076
4088
  tokenAmount: string;
4077
4089
  }[] | undefined;
4078
4090
  } | null | undefined;
4091
+ actionId?: string | undefined;
4079
4092
  }>, "many">;
4080
4093
  tokenAddress: z.ZodString;
4081
4094
  from: z.ZodString;
@@ -4184,6 +4197,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
4184
4197
  tokenAmount: string;
4185
4198
  }[] | undefined;
4186
4199
  } | undefined;
4200
+ actionId?: string | undefined;
4187
4201
  }[];
4188
4202
  from: string;
4189
4203
  }, {
@@ -4291,6 +4305,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
4291
4305
  tokenAmount: string;
4292
4306
  }[] | undefined;
4293
4307
  } | null | undefined;
4308
+ actionId?: string | undefined;
4294
4309
  }[];
4295
4310
  from: string;
4296
4311
  }>, "many">>;
@@ -4428,6 +4443,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
4428
4443
  tokenAmount: string;
4429
4444
  }[] | undefined;
4430
4445
  } | undefined;
4446
+ actionId?: string | undefined;
4431
4447
  }[];
4432
4448
  intentId: string;
4433
4449
  intent?: {
@@ -4578,6 +4594,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
4578
4594
  tokenAmount: string;
4579
4595
  }[] | undefined;
4580
4596
  } | undefined;
4597
+ actionId?: string | undefined;
4581
4598
  }[];
4582
4599
  from: string;
4583
4600
  }[];
@@ -4686,6 +4703,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
4686
4703
  tokenAmount: string;
4687
4704
  }[] | undefined;
4688
4705
  } | undefined;
4706
+ actionId?: string | undefined;
4689
4707
  }[];
4690
4708
  from: string;
4691
4709
  }[];
@@ -4823,6 +4841,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
4823
4841
  tokenAmount: string;
4824
4842
  }[] | undefined;
4825
4843
  } | null | undefined;
4844
+ actionId?: string | undefined;
4826
4845
  }[];
4827
4846
  intentId: string;
4828
4847
  intent?: {
@@ -4973,6 +4992,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
4973
4992
  tokenAmount: string;
4974
4993
  }[] | undefined;
4975
4994
  } | null | undefined;
4995
+ actionId?: string | undefined;
4976
4996
  }[];
4977
4997
  from: string;
4978
4998
  }[] | undefined;
@@ -5081,6 +5101,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
5081
5101
  tokenAmount: string;
5082
5102
  }[] | undefined;
5083
5103
  } | null | undefined;
5104
+ actionId?: string | undefined;
5084
5105
  }[];
5085
5106
  from: string;
5086
5107
  }[] | undefined;
@@ -5143,6 +5164,7 @@ export declare const KafkaBundleInfoSchema: z.ZodObject<{
5143
5164
  trades: z.ZodArray<z.ZodObject<{
5144
5165
  id: z.ZodString;
5145
5166
  intentId: z.ZodString;
5167
+ status: z.ZodNativeEnum<typeof BundleTradeStatus>;
5146
5168
  src: z.ZodObject<{
5147
5169
  token: z.ZodObject<{
5148
5170
  chainId: z.ZodNumber;
@@ -5263,6 +5285,7 @@ export declare const KafkaBundleInfoSchema: z.ZodObject<{
5263
5285
  kind: "Executed" | "Estimated";
5264
5286
  }>>;
5265
5287
  }, "strip", z.ZodTypeAny, {
5288
+ status: BundleTradeStatus;
5266
5289
  intentId: string;
5267
5290
  id: string;
5268
5291
  src: {
@@ -5297,6 +5320,7 @@ export declare const KafkaBundleInfoSchema: z.ZodObject<{
5297
5320
  kind: "Executed" | "Estimated";
5298
5321
  } | undefined;
5299
5322
  }, {
5323
+ status: BundleTradeStatus;
5300
5324
  intentId: string;
5301
5325
  id: string;
5302
5326
  src: {
@@ -5363,25 +5387,6 @@ export declare const KafkaBundleInfoSchema: z.ZodObject<{
5363
5387
  txHash?: string | undefined;
5364
5388
  }>, "many">;
5365
5389
  status: z.ZodNativeEnum<typeof BundleStatus>;
5366
- intents: z.ZodArray<z.ZodObject<{
5367
- chainId: z.ZodNumber;
5368
- intentId: z.ZodString;
5369
- intentOwner: z.ZodOptional<z.ZodString>;
5370
- intentAuthority: z.ZodOptional<z.ZodString>;
5371
- cancelAuthority: z.ZodOptional<z.ZodString>;
5372
- }, "strip", z.ZodTypeAny, {
5373
- chainId: number;
5374
- intentId: string;
5375
- intentOwner?: string | undefined;
5376
- intentAuthority?: string | undefined;
5377
- cancelAuthority?: string | undefined;
5378
- }, {
5379
- chainId: number;
5380
- intentId: string;
5381
- intentOwner?: string | undefined;
5382
- intentAuthority?: string | undefined;
5383
- cancelAuthority?: string | undefined;
5384
- }>, "many">;
5385
5390
  summary: z.ZodObject<{
5386
5391
  opsCompleted: z.ZodNumber;
5387
5392
  opsTotal: z.ZodNumber;
@@ -5399,6 +5404,7 @@ export declare const KafkaBundleInfoSchema: z.ZodObject<{
5399
5404
  status: BundleStatus;
5400
5405
  id: string;
5401
5406
  trades: {
5407
+ status: BundleTradeStatus;
5402
5408
  intentId: string;
5403
5409
  id: string;
5404
5410
  src: {
@@ -5433,13 +5439,6 @@ export declare const KafkaBundleInfoSchema: z.ZodObject<{
5433
5439
  kind: "Executed" | "Estimated";
5434
5440
  } | undefined;
5435
5441
  }[];
5436
- intents: {
5437
- chainId: number;
5438
- intentId: string;
5439
- intentOwner?: string | undefined;
5440
- intentAuthority?: string | undefined;
5441
- cancelAuthority?: string | undefined;
5442
- }[];
5443
5442
  summary: {
5444
5443
  opsCompleted: number;
5445
5444
  opsTotal: number;
@@ -5460,6 +5459,7 @@ export declare const KafkaBundleInfoSchema: z.ZodObject<{
5460
5459
  status: BundleStatus;
5461
5460
  id: string;
5462
5461
  trades: {
5462
+ status: BundleTradeStatus;
5463
5463
  intentId: string;
5464
5464
  id: string;
5465
5465
  src: {
@@ -5494,13 +5494,6 @@ export declare const KafkaBundleInfoSchema: z.ZodObject<{
5494
5494
  kind: "Executed" | "Estimated";
5495
5495
  } | undefined;
5496
5496
  }[];
5497
- intents: {
5498
- chainId: number;
5499
- intentId: string;
5500
- intentOwner?: string | undefined;
5501
- intentAuthority?: string | undefined;
5502
- cancelAuthority?: string | undefined;
5503
- }[];
5504
5497
  summary: {
5505
5498
  opsCompleted: number;
5506
5499
  opsTotal: number;
@@ -5518,11 +5511,31 @@ export declare const KafkaBundleInfoSchema: z.ZodObject<{
5518
5511
  txHash?: string | undefined;
5519
5512
  }[];
5520
5513
  }>;
5514
+ intents: z.ZodArray<z.ZodObject<{
5515
+ chainId: z.ZodNumber;
5516
+ intentId: z.ZodString;
5517
+ intentOwner: z.ZodOptional<z.ZodString>;
5518
+ intentAuthority: z.ZodOptional<z.ZodString>;
5519
+ cancelAuthority: z.ZodOptional<z.ZodString>;
5520
+ }, "strip", z.ZodTypeAny, {
5521
+ chainId: number;
5522
+ intentId: string;
5523
+ intentOwner?: string | undefined;
5524
+ intentAuthority?: string | undefined;
5525
+ cancelAuthority?: string | undefined;
5526
+ }, {
5527
+ chainId: number;
5528
+ intentId: string;
5529
+ intentOwner?: string | undefined;
5530
+ intentAuthority?: string | undefined;
5531
+ cancelAuthority?: string | undefined;
5532
+ }>, "many">;
5521
5533
  execBatches: z.ZodArray<z.ZodObject<{
5522
5534
  id: z.ZodString;
5523
5535
  trades: z.ZodArray<z.ZodObject<{
5524
5536
  id: z.ZodString;
5525
5537
  bundleTradeId: z.ZodString;
5538
+ intentId: z.ZodString;
5526
5539
  status: z.ZodNativeEnum<typeof TradeBatchTradeStatus>;
5527
5540
  orderId: z.ZodOptional<z.ZodString>;
5528
5541
  transactionHash: z.ZodOptional<z.ZodString>;
@@ -5653,6 +5666,7 @@ export declare const KafkaBundleInfoSchema: z.ZodObject<{
5653
5666
  }>>;
5654
5667
  }, "strip", z.ZodTypeAny, {
5655
5668
  status: TradeBatchTradeStatus;
5669
+ intentId: string;
5656
5670
  id: string;
5657
5671
  bundleTradeId: string;
5658
5672
  src: {
@@ -5694,6 +5708,7 @@ export declare const KafkaBundleInfoSchema: z.ZodObject<{
5694
5708
  transactionHash?: string | undefined;
5695
5709
  }, {
5696
5710
  status: TradeBatchTradeStatus;
5711
+ intentId: string;
5697
5712
  id: string;
5698
5713
  bundleTradeId: string;
5699
5714
  src: {
@@ -5800,6 +5815,7 @@ export declare const KafkaBundleInfoSchema: z.ZodObject<{
5800
5815
  id: string;
5801
5816
  trades: {
5802
5817
  status: TradeBatchTradeStatus;
5818
+ intentId: string;
5803
5819
  id: string;
5804
5820
  bundleTradeId: string;
5805
5821
  src: {
@@ -5869,6 +5885,7 @@ export declare const KafkaBundleInfoSchema: z.ZodObject<{
5869
5885
  id: string;
5870
5886
  trades: {
5871
5887
  status: TradeBatchTradeStatus;
5888
+ intentId: string;
5872
5889
  id: string;
5873
5890
  bundleTradeId: string;
5874
5891
  src: {
@@ -5953,6 +5970,13 @@ export declare const KafkaBundleInfoSchema: z.ZodObject<{
5953
5970
  }, "strip", z.ZodTypeAny, {
5954
5971
  status: BundleStatus;
5955
5972
  id: string;
5973
+ intents: {
5974
+ chainId: number;
5975
+ intentId: string;
5976
+ intentOwner?: string | undefined;
5977
+ intentAuthority?: string | undefined;
5978
+ cancelAuthority?: string | undefined;
5979
+ }[];
5956
5980
  createdAt: string;
5957
5981
  summary: {
5958
5982
  tradesCount: number;
@@ -5967,6 +5991,7 @@ export declare const KafkaBundleInfoSchema: z.ZodObject<{
5967
5991
  status: BundleStatus;
5968
5992
  id: string;
5969
5993
  trades: {
5994
+ status: BundleTradeStatus;
5970
5995
  intentId: string;
5971
5996
  id: string;
5972
5997
  src: {
@@ -6001,13 +6026,6 @@ export declare const KafkaBundleInfoSchema: z.ZodObject<{
6001
6026
  kind: "Executed" | "Estimated";
6002
6027
  } | undefined;
6003
6028
  }[];
6004
- intents: {
6005
- chainId: number;
6006
- intentId: string;
6007
- intentOwner?: string | undefined;
6008
- intentAuthority?: string | undefined;
6009
- cancelAuthority?: string | undefined;
6010
- }[];
6011
6029
  summary: {
6012
6030
  opsCompleted: number;
6013
6031
  opsTotal: number;
@@ -6030,6 +6048,7 @@ export declare const KafkaBundleInfoSchema: z.ZodObject<{
6030
6048
  id: string;
6031
6049
  trades: {
6032
6050
  status: TradeBatchTradeStatus;
6051
+ intentId: string;
6033
6052
  id: string;
6034
6053
  bundleTradeId: string;
6035
6054
  src: {
@@ -6116,6 +6135,13 @@ export declare const KafkaBundleInfoSchema: z.ZodObject<{
6116
6135
  }, {
6117
6136
  status: BundleStatus;
6118
6137
  id: string;
6138
+ intents: {
6139
+ chainId: number;
6140
+ intentId: string;
6141
+ intentOwner?: string | undefined;
6142
+ intentAuthority?: string | undefined;
6143
+ cancelAuthority?: string | undefined;
6144
+ }[];
6119
6145
  createdAt: string;
6120
6146
  summary: {
6121
6147
  tradesCount: number;
@@ -6130,6 +6156,7 @@ export declare const KafkaBundleInfoSchema: z.ZodObject<{
6130
6156
  status: BundleStatus;
6131
6157
  id: string;
6132
6158
  trades: {
6159
+ status: BundleTradeStatus;
6133
6160
  intentId: string;
6134
6161
  id: string;
6135
6162
  src: {
@@ -6164,13 +6191,6 @@ export declare const KafkaBundleInfoSchema: z.ZodObject<{
6164
6191
  kind: "Executed" | "Estimated";
6165
6192
  } | undefined;
6166
6193
  }[];
6167
- intents: {
6168
- chainId: number;
6169
- intentId: string;
6170
- intentOwner?: string | undefined;
6171
- intentAuthority?: string | undefined;
6172
- cancelAuthority?: string | undefined;
6173
- }[];
6174
6194
  summary: {
6175
6195
  opsCompleted: number;
6176
6196
  opsTotal: number;
@@ -6193,6 +6213,7 @@ export declare const KafkaBundleInfoSchema: z.ZodObject<{
6193
6213
  id: string;
6194
6214
  trades: {
6195
6215
  status: TradeBatchTradeStatus;
6216
+ intentId: string;
6196
6217
  id: string;
6197
6218
  bundleTradeId: string;
6198
6219
  src: {
@@ -6277,135 +6298,189 @@ export declare const KafkaBundleInfoSchema: z.ZodObject<{
6277
6298
  debridgeApp?: number | undefined;
6278
6299
  additionalTakerRewardBps?: number | undefined;
6279
6300
  }>;
6280
- export declare const KafkaBundleUpdateSchema: z.ZodDiscriminatedUnion<"updateType", [z.ZodObject<{
6281
- updateType: z.ZodLiteral<"intent_execution">;
6282
- bundleId: z.ZodString;
6283
- tradeBatchId: z.ZodString;
6284
- tradeId: z.ZodString;
6285
- bundleTradeId: z.ZodString;
6286
- intentId: z.ZodString;
6287
- orderId: z.ZodOptional<z.ZodString>;
6288
- transactionHash: z.ZodString;
6289
- chainId: z.ZodNumber;
6290
- executedAt: z.ZodOptional<z.ZodString>;
6291
- }, "strip", z.ZodTypeAny, {
6292
- chainId: number;
6293
- intentId: string;
6294
- bundleTradeId: string;
6295
- bundleId: string;
6296
- transactionHash: string;
6297
- updateType: "intent_execution";
6298
- tradeBatchId: string;
6299
- tradeId: string;
6300
- orderId?: string | undefined;
6301
- executedAt?: string | undefined;
6302
- }, {
6303
- chainId: number;
6304
- intentId: string;
6305
- bundleTradeId: string;
6306
- bundleId: string;
6307
- transactionHash: string;
6308
- updateType: "intent_execution";
6309
- tradeBatchId: string;
6310
- tradeId: string;
6311
- orderId?: string | undefined;
6312
- executedAt?: string | undefined;
6313
- }>, z.ZodObject<{
6301
+ export declare const KafkaBundleUpdateEventSchema: z.ZodDiscriminatedUnion<"updateType", [z.ZodObject<{
6314
6302
  updateType: z.ZodLiteral<"bundle_status">;
6315
6303
  bundleId: z.ZodString;
6316
6304
  status: z.ZodNativeEnum<typeof BundleStatus>;
6317
- previousStatus: z.ZodOptional<z.ZodNativeEnum<typeof BundleStatus>>;
6318
- updatedAt: z.ZodString;
6305
+ timestamp: z.ZodString;
6319
6306
  }, "strip", z.ZodTypeAny, {
6320
6307
  status: BundleStatus;
6321
6308
  bundleId: string;
6322
- updatedAt: string;
6323
6309
  updateType: "bundle_status";
6324
- previousStatus?: BundleStatus | undefined;
6310
+ timestamp: string;
6325
6311
  }, {
6326
6312
  status: BundleStatus;
6327
6313
  bundleId: string;
6328
- updatedAt: string;
6329
6314
  updateType: "bundle_status";
6330
- previousStatus?: BundleStatus | undefined;
6315
+ timestamp: string;
6331
6316
  }>, z.ZodObject<{
6332
6317
  updateType: z.ZodLiteral<"bundle_trade_status">;
6333
6318
  bundleId: z.ZodString;
6334
- bundleTradeId: z.ZodString;
6335
- tradeId: z.ZodString;
6319
+ bundleTradeIds: z.ZodArray<z.ZodString, "many">;
6336
6320
  status: z.ZodNativeEnum<typeof BundleTradeStatus>;
6337
- previousStatus: z.ZodOptional<z.ZodNativeEnum<typeof BundleTradeStatus>>;
6338
- updatedAt: z.ZodString;
6321
+ timestamp: z.ZodString;
6339
6322
  }, "strip", z.ZodTypeAny, {
6340
6323
  status: BundleTradeStatus;
6341
- bundleTradeId: string;
6342
6324
  bundleId: string;
6343
- updatedAt: string;
6344
6325
  updateType: "bundle_trade_status";
6345
- tradeId: string;
6346
- previousStatus?: BundleTradeStatus | undefined;
6326
+ timestamp: string;
6327
+ bundleTradeIds: string[];
6347
6328
  }, {
6348
6329
  status: BundleTradeStatus;
6349
- bundleTradeId: string;
6350
6330
  bundleId: string;
6351
- updatedAt: string;
6352
6331
  updateType: "bundle_trade_status";
6353
- tradeId: string;
6354
- previousStatus?: BundleTradeStatus | undefined;
6355
- }>, z.ZodObject<{
6356
- updateType: z.ZodLiteral<"trade_batch_status">;
6357
- bundleId: z.ZodString;
6358
- tradeBatchId: z.ZodString;
6359
- status: z.ZodNativeEnum<typeof TradeBatchStatus>;
6360
- previousStatus: z.ZodOptional<z.ZodNativeEnum<typeof TradeBatchStatus>>;
6361
- updatedAt: z.ZodString;
6362
- }, "strip", z.ZodTypeAny, {
6363
- status: TradeBatchStatus;
6364
- bundleId: string;
6365
- updatedAt: string;
6366
- updateType: "trade_batch_status";
6367
- tradeBatchId: string;
6368
- previousStatus?: TradeBatchStatus | undefined;
6369
- }, {
6370
- status: TradeBatchStatus;
6371
- bundleId: string;
6372
- updatedAt: string;
6373
- updateType: "trade_batch_status";
6374
- tradeBatchId: string;
6375
- previousStatus?: TradeBatchStatus | undefined;
6332
+ timestamp: string;
6333
+ bundleTradeIds: string[];
6376
6334
  }>, z.ZodObject<{
6377
6335
  updateType: z.ZodLiteral<"expiration">;
6378
6336
  bundleId: z.ZodString;
6379
6337
  tradeBatchIds: z.ZodArray<z.ZodString, "many">;
6380
6338
  bundleTradeIds: z.ZodArray<z.ZodString, "many">;
6381
- intentIds: z.ZodArray<z.ZodString, "many">;
6382
6339
  expiredAt: z.ZodString;
6340
+ timestamp: z.ZodString;
6383
6341
  }, "strip", z.ZodTypeAny, {
6384
6342
  bundleId: string;
6385
6343
  updateType: "expiration";
6386
- tradeBatchIds: string[];
6344
+ timestamp: string;
6387
6345
  bundleTradeIds: string[];
6388
- intentIds: string[];
6346
+ tradeBatchIds: string[];
6389
6347
  expiredAt: string;
6390
6348
  }, {
6391
6349
  bundleId: string;
6392
6350
  updateType: "expiration";
6393
- tradeBatchIds: string[];
6351
+ timestamp: string;
6394
6352
  bundleTradeIds: string[];
6395
- intentIds: string[];
6353
+ tradeBatchIds: string[];
6396
6354
  expiredAt: string;
6397
6355
  }>, z.ZodObject<{
6398
6356
  updateType: z.ZodLiteral<"cancellation">;
6399
6357
  bundleId: z.ZodString;
6400
6358
  cancelledAt: z.ZodString;
6359
+ timestamp: z.ZodString;
6401
6360
  }, "strip", z.ZodTypeAny, {
6402
6361
  bundleId: string;
6403
6362
  updateType: "cancellation";
6363
+ timestamp: string;
6404
6364
  cancelledAt: string;
6405
6365
  }, {
6406
6366
  bundleId: string;
6407
6367
  updateType: "cancellation";
6368
+ timestamp: string;
6408
6369
  cancelledAt: string;
6370
+ }>, z.ZodObject<{
6371
+ updateType: z.ZodLiteral<"trade_batch_status">;
6372
+ tradeBatchIds: z.ZodArray<z.ZodString, "many">;
6373
+ bundleId: z.ZodString;
6374
+ status: z.ZodNativeEnum<typeof TradeBatchStatus>;
6375
+ timestamp: z.ZodString;
6376
+ }, "strip", z.ZodTypeAny, {
6377
+ status: TradeBatchStatus;
6378
+ bundleId: string;
6379
+ updateType: "trade_batch_status";
6380
+ timestamp: string;
6381
+ tradeBatchIds: string[];
6382
+ }, {
6383
+ status: TradeBatchStatus;
6384
+ bundleId: string;
6385
+ updateType: "trade_batch_status";
6386
+ timestamp: string;
6387
+ tradeBatchIds: string[];
6388
+ }>, z.ZodObject<{
6389
+ updateType: z.ZodLiteral<"trade_order_id">;
6390
+ bundleId: z.ZodString;
6391
+ bundleTradeId: z.ZodString;
6392
+ orderId: z.ZodString;
6393
+ timestamp: z.ZodString;
6394
+ }, "strip", z.ZodTypeAny, {
6395
+ bundleTradeId: string;
6396
+ orderId: string;
6397
+ bundleId: string;
6398
+ updateType: "trade_order_id";
6399
+ timestamp: string;
6400
+ }, {
6401
+ bundleTradeId: string;
6402
+ orderId: string;
6403
+ bundleId: string;
6404
+ updateType: "trade_order_id";
6405
+ timestamp: string;
6406
+ }>, z.ZodObject<{
6407
+ updateType: z.ZodLiteral<"trade_tx_hash">;
6408
+ bundleId: z.ZodString;
6409
+ bundleTradeId: z.ZodString;
6410
+ transactionHash: z.ZodString;
6411
+ timestamp: z.ZodString;
6412
+ }, "strip", z.ZodTypeAny, {
6413
+ bundleTradeId: string;
6414
+ bundleId: string;
6415
+ transactionHash: string;
6416
+ updateType: "trade_tx_hash";
6417
+ timestamp: string;
6418
+ }, {
6419
+ bundleTradeId: string;
6420
+ bundleId: string;
6421
+ transactionHash: string;
6422
+ updateType: "trade_tx_hash";
6423
+ timestamp: string;
6424
+ }>, z.ZodObject<{
6425
+ updateType: z.ZodLiteral<"intent_execution">;
6426
+ tradeBatchId: z.ZodString;
6427
+ tradeId: z.ZodString;
6428
+ bundleId: z.ZodString;
6429
+ bundleTradeId: z.ZodString;
6430
+ intentId: z.ZodString;
6431
+ orderId: z.ZodOptional<z.ZodString>;
6432
+ transactionHash: z.ZodString;
6433
+ chainId: z.ZodNumber;
6434
+ executedAt: z.ZodOptional<z.ZodString>;
6435
+ timestamp: z.ZodString;
6436
+ }, "strip", z.ZodTypeAny, {
6437
+ chainId: number;
6438
+ intentId: string;
6439
+ bundleTradeId: string;
6440
+ bundleId: string;
6441
+ transactionHash: string;
6442
+ updateType: "intent_execution";
6443
+ timestamp: string;
6444
+ tradeBatchId: string;
6445
+ tradeId: string;
6446
+ orderId?: string | undefined;
6447
+ executedAt?: string | undefined;
6448
+ }, {
6449
+ chainId: number;
6450
+ intentId: string;
6451
+ bundleTradeId: string;
6452
+ bundleId: string;
6453
+ transactionHash: string;
6454
+ updateType: "intent_execution";
6455
+ timestamp: string;
6456
+ tradeBatchId: string;
6457
+ tradeId: string;
6458
+ orderId?: string | undefined;
6459
+ executedAt?: string | undefined;
6409
6460
  }>]>;
6410
- export type ValidatedKafkaBundleUpdate = z.infer<typeof KafkaBundleUpdateSchema>;
6461
+ export type ValidatedKafkaBundleUpdateEvent = z.infer<typeof KafkaBundleUpdateEventSchema>;
6462
+ export type ValidatedKafkaBundleStatusUpdateEvent = Extract<ValidatedKafkaBundleUpdateEvent, {
6463
+ updateType: 'bundle_status';
6464
+ }>;
6465
+ export type ValidatedKafkaBundleTradeUpdateEvent = Extract<ValidatedKafkaBundleUpdateEvent, {
6466
+ updateType: 'bundle_trade_status';
6467
+ }>;
6468
+ export type ValidatedKafkaTradeBatchUpdate = Extract<ValidatedKafkaBundleUpdateEvent, {
6469
+ updateType: 'trade_batch_status';
6470
+ }>;
6471
+ export type ValidatedKafkaIntentUpdate = Extract<ValidatedKafkaBundleUpdateEvent, {
6472
+ updateType: 'intent_execution';
6473
+ }>;
6474
+ export type ValidatedKafkaBundleExpirationUpdate = Extract<ValidatedKafkaBundleUpdateEvent, {
6475
+ updateType: 'expiration';
6476
+ }>;
6477
+ export type ValidatedKafkaBundleCancellationUpdate = Extract<ValidatedKafkaBundleUpdateEvent, {
6478
+ updateType: 'cancellation';
6479
+ }>;
6480
+ export type ValidatedKafkaTradeTxHashUpdate = Extract<ValidatedKafkaBundleUpdateEvent, {
6481
+ updateType: 'trade_tx_hash';
6482
+ }>;
6483
+ export type ValidatedKafkaTradeOrderIdUpdate = Extract<ValidatedKafkaBundleUpdateEvent, {
6484
+ updateType: 'trade_order_id';
6485
+ }>;
6411
6486
  //# sourceMappingURL=kafka.d.ts.map