@fogo/sessions-sdk 0.0.25 → 0.0.29

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/esm/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import type { BaseSignerWalletAdapter, MessageSignerWalletAdapterProps } from "@solana/wallet-adapter-base";
2
- import type { TransactionError } from "@solana/web3.js";
1
+ import type { TransactionError, VersionedTransaction } from "@solana/web3.js";
3
2
  import { Connection, PublicKey } from "@solana/web3.js";
4
3
  import type { Chain } from "@wormhole-foundation/sdk";
5
4
  import BN from "bn.js";
@@ -11,7 +10,10 @@ export { type TransactionResult, type Connection, type TransactionOrInstructions
11
10
  type EstablishSessionOptions = {
12
11
  context: SessionContext;
13
12
  walletPublicKey: PublicKey;
14
- signMessage: (message: Uint8Array) => Promise<Uint8Array>;
13
+ signMessage: (message: Uint8Array) => Promise<{
14
+ signedMessage: Uint8Array;
15
+ signature: Uint8Array;
16
+ }>;
15
17
  expires: Date;
16
18
  extra?: Record<string, string> | undefined;
17
19
  createUnsafeExtractableSessionKey?: boolean | undefined;
@@ -26,7 +28,10 @@ export declare const establishSession: (options: EstablishSessionOptions) => Pro
26
28
  export declare const replaceSession: (options: {
27
29
  context: SessionContext;
28
30
  session: Session;
29
- signMessage: (message: Uint8Array) => Promise<Uint8Array>;
31
+ signMessage: (message: Uint8Array) => Promise<{
32
+ signedMessage: Uint8Array;
33
+ signature: Uint8Array;
34
+ }>;
30
35
  expires: Date;
31
36
  extra?: Record<string, string> | undefined;
32
37
  } & ({
@@ -54,7 +59,7 @@ export declare const getSessionAccount: (connection: Connection, sessionPublicKe
54
59
  expiration: Date;
55
60
  extra: unknown;
56
61
  major: number;
57
- minor: 1 | 2 | 3;
62
+ minor: 1 | 2 | 3 | 4;
58
63
  user: PublicKey;
59
64
  sponsor: PublicKey;
60
65
  } | undefined>;
@@ -129,6 +134,8 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
129
134
  }>;
130
135
  user: z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>;
131
136
  }, "strip", z.ZodTypeAny, {
137
+ user: PublicKey;
138
+ expiration: BN;
132
139
  authorized_programs: {
133
140
  Specific: {
134
141
  0: {
@@ -144,12 +151,12 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
144
151
  } | {
145
152
  All: {};
146
153
  };
147
- expiration: BN;
148
154
  extra: {
149
155
  0?: unknown;
150
156
  };
151
- user: PublicKey;
152
157
  }, {
158
+ user: PublicKey;
159
+ expiration: BN;
153
160
  authorized_programs: {
154
161
  Specific: {
155
162
  0: {
@@ -165,14 +172,14 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
165
172
  } | {
166
173
  All: {};
167
174
  };
168
- expiration: BN;
169
175
  extra: {
170
176
  0?: unknown;
171
177
  };
172
- user: PublicKey;
173
178
  }>;
174
179
  }, "strip", z.ZodTypeAny, {
175
180
  "0": {
181
+ user: PublicKey;
182
+ expiration: BN;
176
183
  authorized_programs: {
177
184
  Specific: {
178
185
  0: {
@@ -188,14 +195,14 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
188
195
  } | {
189
196
  All: {};
190
197
  };
191
- expiration: BN;
192
198
  extra: {
193
199
  0?: unknown;
194
200
  };
195
- user: PublicKey;
196
201
  };
197
202
  }, {
198
203
  "0": {
204
+ user: PublicKey;
205
+ expiration: BN;
199
206
  authorized_programs: {
200
207
  Specific: {
201
208
  0: {
@@ -211,16 +218,16 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
211
218
  } | {
212
219
  All: {};
213
220
  };
214
- expiration: BN;
215
221
  extra: {
216
222
  0?: unknown;
217
223
  };
218
- user: PublicKey;
219
224
  };
220
225
  }>;
221
226
  }, "strip", z.ZodTypeAny, {
222
227
  V1: {
223
228
  "0": {
229
+ user: PublicKey;
230
+ expiration: BN;
224
231
  authorized_programs: {
225
232
  Specific: {
226
233
  0: {
@@ -236,16 +243,16 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
236
243
  } | {
237
244
  All: {};
238
245
  };
239
- expiration: BN;
240
246
  extra: {
241
247
  0?: unknown;
242
248
  };
243
- user: PublicKey;
244
249
  };
245
250
  };
246
251
  }, {
247
252
  V1: {
248
253
  "0": {
254
+ user: PublicKey;
255
+ expiration: BN;
249
256
  authorized_programs: {
250
257
  Specific: {
251
258
  0: {
@@ -261,11 +268,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
261
268
  } | {
262
269
  All: {};
263
270
  };
264
- expiration: BN;
265
271
  extra: {
266
272
  0?: unknown;
267
273
  };
268
- user: PublicKey;
269
274
  };
270
275
  };
271
276
  }>, z.ZodObject<{
@@ -346,6 +351,8 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
346
351
  }>;
347
352
  user: z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>;
348
353
  }, "strip", z.ZodTypeAny, {
354
+ user: PublicKey;
355
+ expiration: BN;
349
356
  authorized_programs: {
350
357
  Specific: {
351
358
  0: {
@@ -361,12 +368,12 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
361
368
  } | {
362
369
  All: {};
363
370
  };
364
- expiration: BN;
365
371
  extra: {
366
372
  0?: unknown;
367
373
  };
368
- user: PublicKey;
369
374
  }, {
375
+ user: PublicKey;
376
+ expiration: BN;
370
377
  authorized_programs: {
371
378
  Specific: {
372
379
  0: {
@@ -382,14 +389,14 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
382
389
  } | {
383
390
  All: {};
384
391
  };
385
- expiration: BN;
386
392
  extra: {
387
393
  0?: unknown;
388
394
  };
389
- user: PublicKey;
390
395
  }>;
391
396
  }, "strip", z.ZodTypeAny, {
392
397
  "0": {
398
+ user: PublicKey;
399
+ expiration: BN;
393
400
  authorized_programs: {
394
401
  Specific: {
395
402
  0: {
@@ -405,14 +412,14 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
405
412
  } | {
406
413
  All: {};
407
414
  };
408
- expiration: BN;
409
415
  extra: {
410
416
  0?: unknown;
411
417
  };
412
- user: PublicKey;
413
418
  };
414
419
  }, {
415
420
  "0": {
421
+ user: PublicKey;
422
+ expiration: BN;
416
423
  authorized_programs: {
417
424
  Specific: {
418
425
  0: {
@@ -428,16 +435,16 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
428
435
  } | {
429
436
  All: {};
430
437
  };
431
- expiration: BN;
432
438
  extra: {
433
439
  0?: unknown;
434
440
  };
435
- user: PublicKey;
436
441
  };
437
442
  }>;
438
443
  }, "strip", z.ZodTypeAny, {
439
444
  Active: {
440
445
  "0": {
446
+ user: PublicKey;
447
+ expiration: BN;
441
448
  authorized_programs: {
442
449
  Specific: {
443
450
  0: {
@@ -453,16 +460,16 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
453
460
  } | {
454
461
  All: {};
455
462
  };
456
- expiration: BN;
457
463
  extra: {
458
464
  0?: unknown;
459
465
  };
460
- user: PublicKey;
461
466
  };
462
467
  };
463
468
  }, {
464
469
  Active: {
465
470
  "0": {
471
+ user: PublicKey;
472
+ expiration: BN;
466
473
  authorized_programs: {
467
474
  Specific: {
468
475
  0: {
@@ -478,11 +485,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
478
485
  } | {
479
486
  All: {};
480
487
  };
481
- expiration: BN;
482
488
  extra: {
483
489
  0?: unknown;
484
490
  };
485
- user: PublicKey;
486
491
  };
487
492
  };
488
493
  }>]>;
@@ -492,6 +497,8 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
492
497
  } | {
493
498
  Active: {
494
499
  "0": {
500
+ user: PublicKey;
501
+ expiration: BN;
495
502
  authorized_programs: {
496
503
  Specific: {
497
504
  0: {
@@ -507,11 +514,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
507
514
  } | {
508
515
  All: {};
509
516
  };
510
- expiration: BN;
511
517
  extra: {
512
518
  0?: unknown;
513
519
  };
514
- user: PublicKey;
515
520
  };
516
521
  };
517
522
  };
@@ -521,6 +526,8 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
521
526
  } | {
522
527
  Active: {
523
528
  "0": {
529
+ user: PublicKey;
530
+ expiration: BN;
524
531
  authorized_programs: {
525
532
  Specific: {
526
533
  0: {
@@ -536,11 +543,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
536
543
  } | {
537
544
  All: {};
538
545
  };
539
- expiration: BN;
540
546
  extra: {
541
547
  0?: unknown;
542
548
  };
543
- user: PublicKey;
544
549
  };
545
550
  };
546
551
  };
@@ -552,6 +557,8 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
552
557
  } | {
553
558
  Active: {
554
559
  "0": {
560
+ user: PublicKey;
561
+ expiration: BN;
555
562
  authorized_programs: {
556
563
  Specific: {
557
564
  0: {
@@ -567,11 +574,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
567
574
  } | {
568
575
  All: {};
569
576
  };
570
- expiration: BN;
571
577
  extra: {
572
578
  0?: unknown;
573
579
  };
574
- user: PublicKey;
575
580
  };
576
581
  };
577
582
  };
@@ -583,6 +588,8 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
583
588
  } | {
584
589
  Active: {
585
590
  "0": {
591
+ user: PublicKey;
592
+ expiration: BN;
586
593
  authorized_programs: {
587
594
  Specific: {
588
595
  0: {
@@ -598,11 +605,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
598
605
  } | {
599
606
  All: {};
600
607
  };
601
- expiration: BN;
602
608
  extra: {
603
609
  0?: unknown;
604
610
  };
605
- user: PublicKey;
606
611
  };
607
612
  };
608
613
  };
@@ -610,11 +615,107 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
610
615
  }>, z.ZodObject<{
611
616
  V3: z.ZodObject<{
612
617
  "0": z.ZodUnion<[z.ZodObject<{
613
- Revoked: z.ZodType<BN, z.ZodTypeDef, BN>;
618
+ Revoked: z.ZodObject<{
619
+ "0": z.ZodObject<{
620
+ user: z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>;
621
+ expiration: z.ZodType<BN, z.ZodTypeDef, BN>;
622
+ authorized_tokens_with_mints: z.ZodUnion<[z.ZodObject<{
623
+ Specific: z.ZodObject<{
624
+ "0": z.ZodArray<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>, "many">;
625
+ }, "strip", z.ZodTypeAny, {
626
+ "0": PublicKey[];
627
+ }, {
628
+ "0": PublicKey[];
629
+ }>;
630
+ }, "strip", z.ZodTypeAny, {
631
+ Specific: {
632
+ "0": PublicKey[];
633
+ };
634
+ }, {
635
+ Specific: {
636
+ "0": PublicKey[];
637
+ };
638
+ }>, z.ZodObject<{
639
+ All: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
640
+ }, "strip", z.ZodTypeAny, {
641
+ All: {};
642
+ }, {
643
+ All: {};
644
+ }>]>;
645
+ }, "strip", z.ZodTypeAny, {
646
+ user: PublicKey;
647
+ expiration: BN;
648
+ authorized_tokens_with_mints: {
649
+ Specific: {
650
+ "0": PublicKey[];
651
+ };
652
+ } | {
653
+ All: {};
654
+ };
655
+ }, {
656
+ user: PublicKey;
657
+ expiration: BN;
658
+ authorized_tokens_with_mints: {
659
+ Specific: {
660
+ "0": PublicKey[];
661
+ };
662
+ } | {
663
+ All: {};
664
+ };
665
+ }>;
666
+ }, "strip", z.ZodTypeAny, {
667
+ "0": {
668
+ user: PublicKey;
669
+ expiration: BN;
670
+ authorized_tokens_with_mints: {
671
+ Specific: {
672
+ "0": PublicKey[];
673
+ };
674
+ } | {
675
+ All: {};
676
+ };
677
+ };
678
+ }, {
679
+ "0": {
680
+ user: PublicKey;
681
+ expiration: BN;
682
+ authorized_tokens_with_mints: {
683
+ Specific: {
684
+ "0": PublicKey[];
685
+ };
686
+ } | {
687
+ All: {};
688
+ };
689
+ };
690
+ }>;
614
691
  }, "strip", z.ZodTypeAny, {
615
- Revoked: BN;
692
+ Revoked: {
693
+ "0": {
694
+ user: PublicKey;
695
+ expiration: BN;
696
+ authorized_tokens_with_mints: {
697
+ Specific: {
698
+ "0": PublicKey[];
699
+ };
700
+ } | {
701
+ All: {};
702
+ };
703
+ };
704
+ };
616
705
  }, {
617
- Revoked: BN;
706
+ Revoked: {
707
+ "0": {
708
+ user: PublicKey;
709
+ expiration: BN;
710
+ authorized_tokens_with_mints: {
711
+ Specific: {
712
+ "0": PublicKey[];
713
+ };
714
+ } | {
715
+ All: {};
716
+ };
717
+ };
718
+ };
618
719
  }>, z.ZodObject<{
619
720
  Active: z.ZodObject<{
620
721
  "0": z.ZodObject<{
@@ -695,6 +796,8 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
695
796
  }>;
696
797
  user: z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>;
697
798
  }, "strip", z.ZodTypeAny, {
799
+ user: PublicKey;
800
+ expiration: BN;
698
801
  authorized_programs: {
699
802
  Specific: {
700
803
  0: {
@@ -712,12 +815,12 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
712
815
  } | {
713
816
  All: {};
714
817
  };
715
- expiration: BN;
716
818
  extra: {
717
819
  0?: unknown;
718
820
  };
719
- user: PublicKey;
720
821
  }, {
822
+ user: PublicKey;
823
+ expiration: BN;
721
824
  authorized_programs: {
722
825
  Specific: {
723
826
  0: {
@@ -735,14 +838,14 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
735
838
  } | {
736
839
  All: {};
737
840
  };
738
- expiration: BN;
739
841
  extra: {
740
842
  0?: unknown;
741
843
  };
742
- user: PublicKey;
743
844
  }>;
744
845
  }, "strip", z.ZodTypeAny, {
745
846
  "0": {
847
+ user: PublicKey;
848
+ expiration: BN;
746
849
  authorized_programs: {
747
850
  Specific: {
748
851
  0: {
@@ -760,14 +863,14 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
760
863
  } | {
761
864
  All: {};
762
865
  };
763
- expiration: BN;
764
866
  extra: {
765
867
  0?: unknown;
766
868
  };
767
- user: PublicKey;
768
869
  };
769
870
  }, {
770
871
  "0": {
872
+ user: PublicKey;
873
+ expiration: BN;
771
874
  authorized_programs: {
772
875
  Specific: {
773
876
  0: {
@@ -785,16 +888,16 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
785
888
  } | {
786
889
  All: {};
787
890
  };
788
- expiration: BN;
789
891
  extra: {
790
892
  0?: unknown;
791
893
  };
792
- user: PublicKey;
793
894
  };
794
895
  }>;
795
896
  }, "strip", z.ZodTypeAny, {
796
897
  Active: {
797
898
  "0": {
899
+ user: PublicKey;
900
+ expiration: BN;
798
901
  authorized_programs: {
799
902
  Specific: {
800
903
  0: {
@@ -812,16 +915,16 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
812
915
  } | {
813
916
  All: {};
814
917
  };
815
- expiration: BN;
816
918
  extra: {
817
919
  0?: unknown;
818
920
  };
819
- user: PublicKey;
820
921
  };
821
922
  };
822
923
  }, {
823
924
  Active: {
824
925
  "0": {
926
+ user: PublicKey;
927
+ expiration: BN;
825
928
  authorized_programs: {
826
929
  Specific: {
827
930
  0: {
@@ -839,20 +942,32 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
839
942
  } | {
840
943
  All: {};
841
944
  };
842
- expiration: BN;
843
945
  extra: {
844
946
  0?: unknown;
845
947
  };
846
- user: PublicKey;
847
948
  };
848
949
  };
849
950
  }>]>;
850
951
  }, "strip", z.ZodTypeAny, {
851
952
  "0": {
852
- Revoked: BN;
953
+ Revoked: {
954
+ "0": {
955
+ user: PublicKey;
956
+ expiration: BN;
957
+ authorized_tokens_with_mints: {
958
+ Specific: {
959
+ "0": PublicKey[];
960
+ };
961
+ } | {
962
+ All: {};
963
+ };
964
+ };
965
+ };
853
966
  } | {
854
967
  Active: {
855
968
  "0": {
969
+ user: PublicKey;
970
+ expiration: BN;
856
971
  authorized_programs: {
857
972
  Specific: {
858
973
  0: {
@@ -870,20 +985,32 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
870
985
  } | {
871
986
  All: {};
872
987
  };
873
- expiration: BN;
874
988
  extra: {
875
989
  0?: unknown;
876
990
  };
877
- user: PublicKey;
878
991
  };
879
992
  };
880
993
  };
881
994
  }, {
882
995
  "0": {
883
- Revoked: BN;
996
+ Revoked: {
997
+ "0": {
998
+ user: PublicKey;
999
+ expiration: BN;
1000
+ authorized_tokens_with_mints: {
1001
+ Specific: {
1002
+ "0": PublicKey[];
1003
+ };
1004
+ } | {
1005
+ All: {};
1006
+ };
1007
+ };
1008
+ };
884
1009
  } | {
885
1010
  Active: {
886
1011
  "0": {
1012
+ user: PublicKey;
1013
+ expiration: BN;
887
1014
  authorized_programs: {
888
1015
  Specific: {
889
1016
  0: {
@@ -901,11 +1028,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
901
1028
  } | {
902
1029
  All: {};
903
1030
  };
904
- expiration: BN;
905
1031
  extra: {
906
1032
  0?: unknown;
907
1033
  };
908
- user: PublicKey;
909
1034
  };
910
1035
  };
911
1036
  };
@@ -913,10 +1038,24 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
913
1038
  }, "strip", z.ZodTypeAny, {
914
1039
  V3: {
915
1040
  "0": {
916
- Revoked: BN;
1041
+ Revoked: {
1042
+ "0": {
1043
+ user: PublicKey;
1044
+ expiration: BN;
1045
+ authorized_tokens_with_mints: {
1046
+ Specific: {
1047
+ "0": PublicKey[];
1048
+ };
1049
+ } | {
1050
+ All: {};
1051
+ };
1052
+ };
1053
+ };
917
1054
  } | {
918
1055
  Active: {
919
1056
  "0": {
1057
+ user: PublicKey;
1058
+ expiration: BN;
920
1059
  authorized_programs: {
921
1060
  Specific: {
922
1061
  0: {
@@ -934,11 +1073,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
934
1073
  } | {
935
1074
  All: {};
936
1075
  };
937
- expiration: BN;
938
1076
  extra: {
939
1077
  0?: unknown;
940
1078
  };
941
- user: PublicKey;
942
1079
  };
943
1080
  };
944
1081
  };
@@ -946,10 +1083,24 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
946
1083
  }, {
947
1084
  V3: {
948
1085
  "0": {
949
- Revoked: BN;
1086
+ Revoked: {
1087
+ "0": {
1088
+ user: PublicKey;
1089
+ expiration: BN;
1090
+ authorized_tokens_with_mints: {
1091
+ Specific: {
1092
+ "0": PublicKey[];
1093
+ };
1094
+ } | {
1095
+ All: {};
1096
+ };
1097
+ };
1098
+ };
950
1099
  } | {
951
1100
  Active: {
952
1101
  "0": {
1102
+ user: PublicKey;
1103
+ expiration: BN;
953
1104
  authorized_programs: {
954
1105
  Specific: {
955
1106
  0: {
@@ -967,27 +1118,619 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
967
1118
  } | {
968
1119
  All: {};
969
1120
  };
970
- expiration: BN;
971
1121
  extra: {
972
1122
  0?: unknown;
973
1123
  };
974
- user: PublicKey;
975
1124
  };
976
1125
  };
977
1126
  };
978
1127
  };
979
- }>]>;
980
- major: z.ZodNumber;
981
- sponsor: z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>;
982
- }, "strip", z.ZodTypeAny, {
983
- sponsor: PublicKey;
984
- session_info: {
985
- V1: {
986
- "0": {
987
- authorized_programs: {
988
- Specific: {
989
- 0: {
990
- program_id: PublicKey;
1128
+ }>, z.ZodObject<{
1129
+ V4: z.ZodObject<{
1130
+ "0": z.ZodUnion<[z.ZodObject<{
1131
+ Revoked: z.ZodObject<{
1132
+ "0": z.ZodObject<{
1133
+ user: z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>;
1134
+ expiration: z.ZodType<BN, z.ZodTypeDef, BN>;
1135
+ authorized_tokens_with_mints: z.ZodUnion<[z.ZodObject<{
1136
+ Specific: z.ZodObject<{
1137
+ "0": z.ZodArray<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>, "many">;
1138
+ }, "strip", z.ZodTypeAny, {
1139
+ "0": PublicKey[];
1140
+ }, {
1141
+ "0": PublicKey[];
1142
+ }>;
1143
+ }, "strip", z.ZodTypeAny, {
1144
+ Specific: {
1145
+ "0": PublicKey[];
1146
+ };
1147
+ }, {
1148
+ Specific: {
1149
+ "0": PublicKey[];
1150
+ };
1151
+ }>, z.ZodObject<{
1152
+ All: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1153
+ }, "strip", z.ZodTypeAny, {
1154
+ All: {};
1155
+ }, {
1156
+ All: {};
1157
+ }>]>;
1158
+ }, "strip", z.ZodTypeAny, {
1159
+ user: PublicKey;
1160
+ expiration: BN;
1161
+ authorized_tokens_with_mints: {
1162
+ Specific: {
1163
+ "0": PublicKey[];
1164
+ };
1165
+ } | {
1166
+ All: {};
1167
+ };
1168
+ }, {
1169
+ user: PublicKey;
1170
+ expiration: BN;
1171
+ authorized_tokens_with_mints: {
1172
+ Specific: {
1173
+ "0": PublicKey[];
1174
+ };
1175
+ } | {
1176
+ All: {};
1177
+ };
1178
+ }>;
1179
+ }, "strip", z.ZodTypeAny, {
1180
+ "0": {
1181
+ user: PublicKey;
1182
+ expiration: BN;
1183
+ authorized_tokens_with_mints: {
1184
+ Specific: {
1185
+ "0": PublicKey[];
1186
+ };
1187
+ } | {
1188
+ All: {};
1189
+ };
1190
+ };
1191
+ }, {
1192
+ "0": {
1193
+ user: PublicKey;
1194
+ expiration: BN;
1195
+ authorized_tokens_with_mints: {
1196
+ Specific: {
1197
+ "0": PublicKey[];
1198
+ };
1199
+ } | {
1200
+ All: {};
1201
+ };
1202
+ };
1203
+ }>;
1204
+ }, "strip", z.ZodTypeAny, {
1205
+ Revoked: {
1206
+ "0": {
1207
+ user: PublicKey;
1208
+ expiration: BN;
1209
+ authorized_tokens_with_mints: {
1210
+ Specific: {
1211
+ "0": PublicKey[];
1212
+ };
1213
+ } | {
1214
+ All: {};
1215
+ };
1216
+ };
1217
+ };
1218
+ }, {
1219
+ Revoked: {
1220
+ "0": {
1221
+ user: PublicKey;
1222
+ expiration: BN;
1223
+ authorized_tokens_with_mints: {
1224
+ Specific: {
1225
+ "0": PublicKey[];
1226
+ };
1227
+ } | {
1228
+ All: {};
1229
+ };
1230
+ };
1231
+ };
1232
+ }>, z.ZodObject<{
1233
+ Active: z.ZodObject<{
1234
+ "0": z.ZodObject<{
1235
+ domain_hash: z.ZodArray<z.ZodNumber, "many">;
1236
+ active_session_info: z.ZodObject<{
1237
+ authorized_programs: z.ZodUnion<[z.ZodObject<{
1238
+ Specific: z.ZodObject<{
1239
+ 0: z.ZodArray<z.ZodObject<{
1240
+ program_id: z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>;
1241
+ signer_pda: z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>;
1242
+ }, "strip", z.ZodTypeAny, {
1243
+ program_id: PublicKey;
1244
+ signer_pda: PublicKey;
1245
+ }, {
1246
+ program_id: PublicKey;
1247
+ signer_pda: PublicKey;
1248
+ }>, "many">;
1249
+ }, "strip", z.ZodTypeAny, {
1250
+ 0: {
1251
+ program_id: PublicKey;
1252
+ signer_pda: PublicKey;
1253
+ }[];
1254
+ }, {
1255
+ 0: {
1256
+ program_id: PublicKey;
1257
+ signer_pda: PublicKey;
1258
+ }[];
1259
+ }>;
1260
+ }, "strip", z.ZodTypeAny, {
1261
+ Specific: {
1262
+ 0: {
1263
+ program_id: PublicKey;
1264
+ signer_pda: PublicKey;
1265
+ }[];
1266
+ };
1267
+ }, {
1268
+ Specific: {
1269
+ 0: {
1270
+ program_id: PublicKey;
1271
+ signer_pda: PublicKey;
1272
+ }[];
1273
+ };
1274
+ }>, z.ZodObject<{
1275
+ All: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1276
+ }, "strip", z.ZodTypeAny, {
1277
+ All: {};
1278
+ }, {
1279
+ All: {};
1280
+ }>]>;
1281
+ authorized_tokens: z.ZodUnion<[z.ZodObject<{
1282
+ Specific: z.ZodObject<{
1283
+ "0": z.ZodArray<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>, "many">;
1284
+ }, "strip", z.ZodTypeAny, {
1285
+ "0": PublicKey[];
1286
+ }, {
1287
+ "0": PublicKey[];
1288
+ }>;
1289
+ }, "strip", z.ZodTypeAny, {
1290
+ Specific: {
1291
+ "0": PublicKey[];
1292
+ };
1293
+ }, {
1294
+ Specific: {
1295
+ "0": PublicKey[];
1296
+ };
1297
+ }>, z.ZodObject<{
1298
+ All: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1299
+ }, "strip", z.ZodTypeAny, {
1300
+ All: {};
1301
+ }, {
1302
+ All: {};
1303
+ }>]>;
1304
+ expiration: z.ZodType<BN, z.ZodTypeDef, BN>;
1305
+ extra: z.ZodObject<{
1306
+ 0: z.ZodUnknown;
1307
+ }, "strip", z.ZodTypeAny, {
1308
+ 0?: unknown;
1309
+ }, {
1310
+ 0?: unknown;
1311
+ }>;
1312
+ user: z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>;
1313
+ }, "strip", z.ZodTypeAny, {
1314
+ user: PublicKey;
1315
+ expiration: BN;
1316
+ authorized_programs: {
1317
+ Specific: {
1318
+ 0: {
1319
+ program_id: PublicKey;
1320
+ signer_pda: PublicKey;
1321
+ }[];
1322
+ };
1323
+ } | {
1324
+ All: {};
1325
+ };
1326
+ authorized_tokens: {
1327
+ Specific: {
1328
+ "0": PublicKey[];
1329
+ };
1330
+ } | {
1331
+ All: {};
1332
+ };
1333
+ extra: {
1334
+ 0?: unknown;
1335
+ };
1336
+ }, {
1337
+ user: PublicKey;
1338
+ expiration: BN;
1339
+ authorized_programs: {
1340
+ Specific: {
1341
+ 0: {
1342
+ program_id: PublicKey;
1343
+ signer_pda: PublicKey;
1344
+ }[];
1345
+ };
1346
+ } | {
1347
+ All: {};
1348
+ };
1349
+ authorized_tokens: {
1350
+ Specific: {
1351
+ "0": PublicKey[];
1352
+ };
1353
+ } | {
1354
+ All: {};
1355
+ };
1356
+ extra: {
1357
+ 0?: unknown;
1358
+ };
1359
+ }>;
1360
+ }, "strip", z.ZodTypeAny, {
1361
+ domain_hash: number[];
1362
+ active_session_info: {
1363
+ user: PublicKey;
1364
+ expiration: BN;
1365
+ authorized_programs: {
1366
+ Specific: {
1367
+ 0: {
1368
+ program_id: PublicKey;
1369
+ signer_pda: PublicKey;
1370
+ }[];
1371
+ };
1372
+ } | {
1373
+ All: {};
1374
+ };
1375
+ authorized_tokens: {
1376
+ Specific: {
1377
+ "0": PublicKey[];
1378
+ };
1379
+ } | {
1380
+ All: {};
1381
+ };
1382
+ extra: {
1383
+ 0?: unknown;
1384
+ };
1385
+ };
1386
+ }, {
1387
+ domain_hash: number[];
1388
+ active_session_info: {
1389
+ user: PublicKey;
1390
+ expiration: BN;
1391
+ authorized_programs: {
1392
+ Specific: {
1393
+ 0: {
1394
+ program_id: PublicKey;
1395
+ signer_pda: PublicKey;
1396
+ }[];
1397
+ };
1398
+ } | {
1399
+ All: {};
1400
+ };
1401
+ authorized_tokens: {
1402
+ Specific: {
1403
+ "0": PublicKey[];
1404
+ };
1405
+ } | {
1406
+ All: {};
1407
+ };
1408
+ extra: {
1409
+ 0?: unknown;
1410
+ };
1411
+ };
1412
+ }>;
1413
+ }, "strip", z.ZodTypeAny, {
1414
+ "0": {
1415
+ domain_hash: number[];
1416
+ active_session_info: {
1417
+ user: PublicKey;
1418
+ expiration: BN;
1419
+ authorized_programs: {
1420
+ Specific: {
1421
+ 0: {
1422
+ program_id: PublicKey;
1423
+ signer_pda: PublicKey;
1424
+ }[];
1425
+ };
1426
+ } | {
1427
+ All: {};
1428
+ };
1429
+ authorized_tokens: {
1430
+ Specific: {
1431
+ "0": PublicKey[];
1432
+ };
1433
+ } | {
1434
+ All: {};
1435
+ };
1436
+ extra: {
1437
+ 0?: unknown;
1438
+ };
1439
+ };
1440
+ };
1441
+ }, {
1442
+ "0": {
1443
+ domain_hash: number[];
1444
+ active_session_info: {
1445
+ user: PublicKey;
1446
+ expiration: BN;
1447
+ authorized_programs: {
1448
+ Specific: {
1449
+ 0: {
1450
+ program_id: PublicKey;
1451
+ signer_pda: PublicKey;
1452
+ }[];
1453
+ };
1454
+ } | {
1455
+ All: {};
1456
+ };
1457
+ authorized_tokens: {
1458
+ Specific: {
1459
+ "0": PublicKey[];
1460
+ };
1461
+ } | {
1462
+ All: {};
1463
+ };
1464
+ extra: {
1465
+ 0?: unknown;
1466
+ };
1467
+ };
1468
+ };
1469
+ }>;
1470
+ }, "strip", z.ZodTypeAny, {
1471
+ Active: {
1472
+ "0": {
1473
+ domain_hash: number[];
1474
+ active_session_info: {
1475
+ user: PublicKey;
1476
+ expiration: BN;
1477
+ authorized_programs: {
1478
+ Specific: {
1479
+ 0: {
1480
+ program_id: PublicKey;
1481
+ signer_pda: PublicKey;
1482
+ }[];
1483
+ };
1484
+ } | {
1485
+ All: {};
1486
+ };
1487
+ authorized_tokens: {
1488
+ Specific: {
1489
+ "0": PublicKey[];
1490
+ };
1491
+ } | {
1492
+ All: {};
1493
+ };
1494
+ extra: {
1495
+ 0?: unknown;
1496
+ };
1497
+ };
1498
+ };
1499
+ };
1500
+ }, {
1501
+ Active: {
1502
+ "0": {
1503
+ domain_hash: number[];
1504
+ active_session_info: {
1505
+ user: PublicKey;
1506
+ expiration: BN;
1507
+ authorized_programs: {
1508
+ Specific: {
1509
+ 0: {
1510
+ program_id: PublicKey;
1511
+ signer_pda: PublicKey;
1512
+ }[];
1513
+ };
1514
+ } | {
1515
+ All: {};
1516
+ };
1517
+ authorized_tokens: {
1518
+ Specific: {
1519
+ "0": PublicKey[];
1520
+ };
1521
+ } | {
1522
+ All: {};
1523
+ };
1524
+ extra: {
1525
+ 0?: unknown;
1526
+ };
1527
+ };
1528
+ };
1529
+ };
1530
+ }>]>;
1531
+ }, "strip", z.ZodTypeAny, {
1532
+ "0": {
1533
+ Revoked: {
1534
+ "0": {
1535
+ user: PublicKey;
1536
+ expiration: BN;
1537
+ authorized_tokens_with_mints: {
1538
+ Specific: {
1539
+ "0": PublicKey[];
1540
+ };
1541
+ } | {
1542
+ All: {};
1543
+ };
1544
+ };
1545
+ };
1546
+ } | {
1547
+ Active: {
1548
+ "0": {
1549
+ domain_hash: number[];
1550
+ active_session_info: {
1551
+ user: PublicKey;
1552
+ expiration: BN;
1553
+ authorized_programs: {
1554
+ Specific: {
1555
+ 0: {
1556
+ program_id: PublicKey;
1557
+ signer_pda: PublicKey;
1558
+ }[];
1559
+ };
1560
+ } | {
1561
+ All: {};
1562
+ };
1563
+ authorized_tokens: {
1564
+ Specific: {
1565
+ "0": PublicKey[];
1566
+ };
1567
+ } | {
1568
+ All: {};
1569
+ };
1570
+ extra: {
1571
+ 0?: unknown;
1572
+ };
1573
+ };
1574
+ };
1575
+ };
1576
+ };
1577
+ }, {
1578
+ "0": {
1579
+ Revoked: {
1580
+ "0": {
1581
+ user: PublicKey;
1582
+ expiration: BN;
1583
+ authorized_tokens_with_mints: {
1584
+ Specific: {
1585
+ "0": PublicKey[];
1586
+ };
1587
+ } | {
1588
+ All: {};
1589
+ };
1590
+ };
1591
+ };
1592
+ } | {
1593
+ Active: {
1594
+ "0": {
1595
+ domain_hash: number[];
1596
+ active_session_info: {
1597
+ user: PublicKey;
1598
+ expiration: BN;
1599
+ authorized_programs: {
1600
+ Specific: {
1601
+ 0: {
1602
+ program_id: PublicKey;
1603
+ signer_pda: PublicKey;
1604
+ }[];
1605
+ };
1606
+ } | {
1607
+ All: {};
1608
+ };
1609
+ authorized_tokens: {
1610
+ Specific: {
1611
+ "0": PublicKey[];
1612
+ };
1613
+ } | {
1614
+ All: {};
1615
+ };
1616
+ extra: {
1617
+ 0?: unknown;
1618
+ };
1619
+ };
1620
+ };
1621
+ };
1622
+ };
1623
+ }>;
1624
+ }, "strip", z.ZodTypeAny, {
1625
+ V4: {
1626
+ "0": {
1627
+ Revoked: {
1628
+ "0": {
1629
+ user: PublicKey;
1630
+ expiration: BN;
1631
+ authorized_tokens_with_mints: {
1632
+ Specific: {
1633
+ "0": PublicKey[];
1634
+ };
1635
+ } | {
1636
+ All: {};
1637
+ };
1638
+ };
1639
+ };
1640
+ } | {
1641
+ Active: {
1642
+ "0": {
1643
+ domain_hash: number[];
1644
+ active_session_info: {
1645
+ user: PublicKey;
1646
+ expiration: BN;
1647
+ authorized_programs: {
1648
+ Specific: {
1649
+ 0: {
1650
+ program_id: PublicKey;
1651
+ signer_pda: PublicKey;
1652
+ }[];
1653
+ };
1654
+ } | {
1655
+ All: {};
1656
+ };
1657
+ authorized_tokens: {
1658
+ Specific: {
1659
+ "0": PublicKey[];
1660
+ };
1661
+ } | {
1662
+ All: {};
1663
+ };
1664
+ extra: {
1665
+ 0?: unknown;
1666
+ };
1667
+ };
1668
+ };
1669
+ };
1670
+ };
1671
+ };
1672
+ }, {
1673
+ V4: {
1674
+ "0": {
1675
+ Revoked: {
1676
+ "0": {
1677
+ user: PublicKey;
1678
+ expiration: BN;
1679
+ authorized_tokens_with_mints: {
1680
+ Specific: {
1681
+ "0": PublicKey[];
1682
+ };
1683
+ } | {
1684
+ All: {};
1685
+ };
1686
+ };
1687
+ };
1688
+ } | {
1689
+ Active: {
1690
+ "0": {
1691
+ domain_hash: number[];
1692
+ active_session_info: {
1693
+ user: PublicKey;
1694
+ expiration: BN;
1695
+ authorized_programs: {
1696
+ Specific: {
1697
+ 0: {
1698
+ program_id: PublicKey;
1699
+ signer_pda: PublicKey;
1700
+ }[];
1701
+ };
1702
+ } | {
1703
+ All: {};
1704
+ };
1705
+ authorized_tokens: {
1706
+ Specific: {
1707
+ "0": PublicKey[];
1708
+ };
1709
+ } | {
1710
+ All: {};
1711
+ };
1712
+ extra: {
1713
+ 0?: unknown;
1714
+ };
1715
+ };
1716
+ };
1717
+ };
1718
+ };
1719
+ };
1720
+ }>]>;
1721
+ major: z.ZodNumber;
1722
+ sponsor: z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>;
1723
+ }, "strip", z.ZodTypeAny, {
1724
+ sponsor: PublicKey;
1725
+ session_info: {
1726
+ V1: {
1727
+ "0": {
1728
+ user: PublicKey;
1729
+ expiration: BN;
1730
+ authorized_programs: {
1731
+ Specific: {
1732
+ 0: {
1733
+ program_id: PublicKey;
991
1734
  signer_pda: PublicKey;
992
1735
  }[];
993
1736
  };
@@ -999,11 +1742,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
999
1742
  } | {
1000
1743
  All: {};
1001
1744
  };
1002
- expiration: BN;
1003
1745
  extra: {
1004
1746
  0?: unknown;
1005
1747
  };
1006
- user: PublicKey;
1007
1748
  };
1008
1749
  };
1009
1750
  } | {
@@ -1013,6 +1754,8 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
1013
1754
  } | {
1014
1755
  Active: {
1015
1756
  "0": {
1757
+ user: PublicKey;
1758
+ expiration: BN;
1016
1759
  authorized_programs: {
1017
1760
  Specific: {
1018
1761
  0: {
@@ -1028,11 +1771,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
1028
1771
  } | {
1029
1772
  All: {};
1030
1773
  };
1031
- expiration: BN;
1032
1774
  extra: {
1033
1775
  0?: unknown;
1034
1776
  };
1035
- user: PublicKey;
1036
1777
  };
1037
1778
  };
1038
1779
  };
@@ -1040,10 +1781,24 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
1040
1781
  } | {
1041
1782
  V3: {
1042
1783
  "0": {
1043
- Revoked: BN;
1784
+ Revoked: {
1785
+ "0": {
1786
+ user: PublicKey;
1787
+ expiration: BN;
1788
+ authorized_tokens_with_mints: {
1789
+ Specific: {
1790
+ "0": PublicKey[];
1791
+ };
1792
+ } | {
1793
+ All: {};
1794
+ };
1795
+ };
1796
+ };
1044
1797
  } | {
1045
1798
  Active: {
1046
1799
  "0": {
1800
+ user: PublicKey;
1801
+ expiration: BN;
1047
1802
  authorized_programs: {
1048
1803
  Specific: {
1049
1804
  0: {
@@ -1061,11 +1816,57 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
1061
1816
  } | {
1062
1817
  All: {};
1063
1818
  };
1064
- expiration: BN;
1065
1819
  extra: {
1066
1820
  0?: unknown;
1067
1821
  };
1822
+ };
1823
+ };
1824
+ };
1825
+ };
1826
+ } | {
1827
+ V4: {
1828
+ "0": {
1829
+ Revoked: {
1830
+ "0": {
1068
1831
  user: PublicKey;
1832
+ expiration: BN;
1833
+ authorized_tokens_with_mints: {
1834
+ Specific: {
1835
+ "0": PublicKey[];
1836
+ };
1837
+ } | {
1838
+ All: {};
1839
+ };
1840
+ };
1841
+ };
1842
+ } | {
1843
+ Active: {
1844
+ "0": {
1845
+ domain_hash: number[];
1846
+ active_session_info: {
1847
+ user: PublicKey;
1848
+ expiration: BN;
1849
+ authorized_programs: {
1850
+ Specific: {
1851
+ 0: {
1852
+ program_id: PublicKey;
1853
+ signer_pda: PublicKey;
1854
+ }[];
1855
+ };
1856
+ } | {
1857
+ All: {};
1858
+ };
1859
+ authorized_tokens: {
1860
+ Specific: {
1861
+ "0": PublicKey[];
1862
+ };
1863
+ } | {
1864
+ All: {};
1865
+ };
1866
+ extra: {
1867
+ 0?: unknown;
1868
+ };
1869
+ };
1069
1870
  };
1070
1871
  };
1071
1872
  };
@@ -1077,6 +1878,8 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
1077
1878
  session_info: {
1078
1879
  V1: {
1079
1880
  "0": {
1881
+ user: PublicKey;
1882
+ expiration: BN;
1080
1883
  authorized_programs: {
1081
1884
  Specific: {
1082
1885
  0: {
@@ -1092,11 +1895,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
1092
1895
  } | {
1093
1896
  All: {};
1094
1897
  };
1095
- expiration: BN;
1096
1898
  extra: {
1097
1899
  0?: unknown;
1098
1900
  };
1099
- user: PublicKey;
1100
1901
  };
1101
1902
  };
1102
1903
  } | {
@@ -1106,6 +1907,8 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
1106
1907
  } | {
1107
1908
  Active: {
1108
1909
  "0": {
1910
+ user: PublicKey;
1911
+ expiration: BN;
1109
1912
  authorized_programs: {
1110
1913
  Specific: {
1111
1914
  0: {
@@ -1121,11 +1924,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
1121
1924
  } | {
1122
1925
  All: {};
1123
1926
  };
1124
- expiration: BN;
1125
1927
  extra: {
1126
1928
  0?: unknown;
1127
1929
  };
1128
- user: PublicKey;
1129
1930
  };
1130
1931
  };
1131
1932
  };
@@ -1133,10 +1934,24 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
1133
1934
  } | {
1134
1935
  V3: {
1135
1936
  "0": {
1136
- Revoked: BN;
1937
+ Revoked: {
1938
+ "0": {
1939
+ user: PublicKey;
1940
+ expiration: BN;
1941
+ authorized_tokens_with_mints: {
1942
+ Specific: {
1943
+ "0": PublicKey[];
1944
+ };
1945
+ } | {
1946
+ All: {};
1947
+ };
1948
+ };
1949
+ };
1137
1950
  } | {
1138
1951
  Active: {
1139
1952
  "0": {
1953
+ user: PublicKey;
1954
+ expiration: BN;
1140
1955
  authorized_programs: {
1141
1956
  Specific: {
1142
1957
  0: {
@@ -1154,11 +1969,57 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
1154
1969
  } | {
1155
1970
  All: {};
1156
1971
  };
1157
- expiration: BN;
1158
1972
  extra: {
1159
1973
  0?: unknown;
1160
1974
  };
1975
+ };
1976
+ };
1977
+ };
1978
+ };
1979
+ } | {
1980
+ V4: {
1981
+ "0": {
1982
+ Revoked: {
1983
+ "0": {
1161
1984
  user: PublicKey;
1985
+ expiration: BN;
1986
+ authorized_tokens_with_mints: {
1987
+ Specific: {
1988
+ "0": PublicKey[];
1989
+ };
1990
+ } | {
1991
+ All: {};
1992
+ };
1993
+ };
1994
+ };
1995
+ } | {
1996
+ Active: {
1997
+ "0": {
1998
+ domain_hash: number[];
1999
+ active_session_info: {
2000
+ user: PublicKey;
2001
+ expiration: BN;
2002
+ authorized_programs: {
2003
+ Specific: {
2004
+ 0: {
2005
+ program_id: PublicKey;
2006
+ signer_pda: PublicKey;
2007
+ }[];
2008
+ };
2009
+ } | {
2010
+ All: {};
2011
+ };
2012
+ authorized_tokens: {
2013
+ Specific: {
2014
+ "0": PublicKey[];
2015
+ };
2016
+ } | {
2017
+ All: {};
2018
+ };
2019
+ extra: {
2020
+ 0?: unknown;
2021
+ };
2022
+ };
1162
2023
  };
1163
2024
  };
1164
2025
  };
@@ -1179,7 +2040,7 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
1179
2040
  expiration: Date;
1180
2041
  extra: unknown;
1181
2042
  major: number;
1182
- minor: 1 | 2 | 3;
2043
+ minor: 1 | 2 | 3 | 4;
1183
2044
  user: PublicKey;
1184
2045
  sponsor: PublicKey;
1185
2046
  } | undefined, {
@@ -1187,6 +2048,8 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
1187
2048
  session_info: {
1188
2049
  V1: {
1189
2050
  "0": {
2051
+ user: PublicKey;
2052
+ expiration: BN;
1190
2053
  authorized_programs: {
1191
2054
  Specific: {
1192
2055
  0: {
@@ -1202,11 +2065,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
1202
2065
  } | {
1203
2066
  All: {};
1204
2067
  };
1205
- expiration: BN;
1206
2068
  extra: {
1207
2069
  0?: unknown;
1208
2070
  };
1209
- user: PublicKey;
1210
2071
  };
1211
2072
  };
1212
2073
  } | {
@@ -1216,6 +2077,8 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
1216
2077
  } | {
1217
2078
  Active: {
1218
2079
  "0": {
2080
+ user: PublicKey;
2081
+ expiration: BN;
1219
2082
  authorized_programs: {
1220
2083
  Specific: {
1221
2084
  0: {
@@ -1231,11 +2094,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
1231
2094
  } | {
1232
2095
  All: {};
1233
2096
  };
1234
- expiration: BN;
1235
2097
  extra: {
1236
2098
  0?: unknown;
1237
2099
  };
1238
- user: PublicKey;
1239
2100
  };
1240
2101
  };
1241
2102
  };
@@ -1243,10 +2104,24 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
1243
2104
  } | {
1244
2105
  V3: {
1245
2106
  "0": {
1246
- Revoked: BN;
2107
+ Revoked: {
2108
+ "0": {
2109
+ user: PublicKey;
2110
+ expiration: BN;
2111
+ authorized_tokens_with_mints: {
2112
+ Specific: {
2113
+ "0": PublicKey[];
2114
+ };
2115
+ } | {
2116
+ All: {};
2117
+ };
2118
+ };
2119
+ };
1247
2120
  } | {
1248
2121
  Active: {
1249
2122
  "0": {
2123
+ user: PublicKey;
2124
+ expiration: BN;
1250
2125
  authorized_programs: {
1251
2126
  Specific: {
1252
2127
  0: {
@@ -1264,11 +2139,57 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
1264
2139
  } | {
1265
2140
  All: {};
1266
2141
  };
1267
- expiration: BN;
1268
2142
  extra: {
1269
2143
  0?: unknown;
1270
2144
  };
2145
+ };
2146
+ };
2147
+ };
2148
+ };
2149
+ } | {
2150
+ V4: {
2151
+ "0": {
2152
+ Revoked: {
2153
+ "0": {
1271
2154
  user: PublicKey;
2155
+ expiration: BN;
2156
+ authorized_tokens_with_mints: {
2157
+ Specific: {
2158
+ "0": PublicKey[];
2159
+ };
2160
+ } | {
2161
+ All: {};
2162
+ };
2163
+ };
2164
+ };
2165
+ } | {
2166
+ Active: {
2167
+ "0": {
2168
+ domain_hash: number[];
2169
+ active_session_info: {
2170
+ user: PublicKey;
2171
+ expiration: BN;
2172
+ authorized_programs: {
2173
+ Specific: {
2174
+ 0: {
2175
+ program_id: PublicKey;
2176
+ signer_pda: PublicKey;
2177
+ }[];
2178
+ };
2179
+ } | {
2180
+ All: {};
2181
+ };
2182
+ authorized_tokens: {
2183
+ Specific: {
2184
+ "0": PublicKey[];
2185
+ };
2186
+ } | {
2187
+ All: {};
2188
+ };
2189
+ extra: {
2190
+ 0?: unknown;
2191
+ };
2192
+ };
1272
2193
  };
1273
2194
  };
1274
2195
  };
@@ -1327,7 +2248,10 @@ export declare const getBridgeOutFee: (context: SessionContext) => Promise<{
1327
2248
  type SendTransferOptions = {
1328
2249
  context: SessionContext;
1329
2250
  walletPublicKey: PublicKey;
1330
- signMessage: (message: Uint8Array) => Promise<Uint8Array>;
2251
+ signMessage: (message: Uint8Array) => Promise<{
2252
+ signedMessage: Uint8Array;
2253
+ signature: Uint8Array;
2254
+ }>;
1331
2255
  mint: PublicKey;
1332
2256
  amount: bigint;
1333
2257
  recipient: PublicKey;
@@ -1339,7 +2263,10 @@ type SendBridgeOutOptions = {
1339
2263
  sessionKey: CryptoKeyPair;
1340
2264
  sessionPublicKey: PublicKey;
1341
2265
  walletPublicKey: PublicKey;
1342
- solanaWallet: MessageSignerWalletAdapterProps;
2266
+ signMessage: (message: Uint8Array) => Promise<{
2267
+ signedMessage: Uint8Array;
2268
+ signature: Uint8Array;
2269
+ }>;
1343
2270
  amount: bigint;
1344
2271
  fromToken: WormholeToken & {
1345
2272
  chain: "Fogo";
@@ -1359,7 +2286,7 @@ export declare const bridgeOut: (options: SendBridgeOutOptions) => Promise<Trans
1359
2286
  type SendBridgeInOptions = {
1360
2287
  context: SessionContext;
1361
2288
  walletPublicKey: PublicKey;
1362
- solanaWallet: BaseSignerWalletAdapter;
2289
+ signTransaction: (transaction: VersionedTransaction) => Promise<VersionedTransaction>;
1363
2290
  amount: bigint;
1364
2291
  fromToken: WormholeToken & {
1365
2292
  chain: "Solana";
@@ -1395,7 +2322,7 @@ export declare const verifyLogInToken: (token: string, connection: Connection) =
1395
2322
  expiration: Date;
1396
2323
  extra: unknown;
1397
2324
  major: number;
1398
- minor: 1 | 2 | 3;
2325
+ minor: 1 | 2 | 3 | 4;
1399
2326
  user: PublicKey;
1400
2327
  sponsor: PublicKey;
1401
2328
  } | undefined>;