@fogo/sessions-sdk 0.1.0 → 0.1.1
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/cjs/connection.d.ts +2 -5
- package/cjs/connection.js +74 -18
- package/cjs/context.d.ts +5 -5
- package/cjs/context.js +1 -1
- package/cjs/index.d.ts +148 -146
- package/cjs/index.js +23 -21
- package/cjs/mints.d.ts +5 -0
- package/cjs/mints.js +9 -0
- package/cjs/network.d.ts +4 -0
- package/cjs/network.js +8 -0
- package/esm/connection.d.ts +2 -5
- package/esm/connection.js +68 -12
- package/esm/context.d.ts +5 -5
- package/esm/context.js +2 -2
- package/esm/index.d.ts +148 -146
- package/esm/index.js +12 -13
- package/esm/mints.d.ts +5 -0
- package/esm/mints.js +6 -0
- package/esm/network.d.ts +4 -0
- package/esm/network.js +5 -0
- package/package.json +1 -1
package/esm/index.d.ts
CHANGED
|
@@ -5,8 +5,10 @@ import BN from "bn.js";
|
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import type { TransactionOrInstructions, TransactionResult } from "./connection.js";
|
|
7
7
|
import type { SendTransactionOptions, SessionContext } from "./context.js";
|
|
8
|
-
export { type Connection, createSessionConnection,
|
|
8
|
+
export { type Connection, createSessionConnection, type TransactionOrInstructions, type TransactionResult, TransactionResultType, } from "./connection.js";
|
|
9
9
|
export { createSessionContext, type SendTransactionOptions, type SessionContext, } from "./context.js";
|
|
10
|
+
export { createSessionUnwrapInstruction, createSessionWrapInstructions, createSystemProgramSessionWrapInstruction, } from "./instructions.js";
|
|
11
|
+
export { Network } from "./network.js";
|
|
10
12
|
type EstablishSessionOptions = {
|
|
11
13
|
context: SessionContext;
|
|
12
14
|
walletPublicKey: PublicKey;
|
|
@@ -134,6 +136,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
134
136
|
}>;
|
|
135
137
|
user: z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>;
|
|
136
138
|
}, "strip", z.ZodTypeAny, {
|
|
139
|
+
extra: {
|
|
140
|
+
0?: unknown;
|
|
141
|
+
};
|
|
137
142
|
user: PublicKey;
|
|
138
143
|
expiration: BN;
|
|
139
144
|
authorized_programs: {
|
|
@@ -151,10 +156,10 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
151
156
|
} | {
|
|
152
157
|
All: {};
|
|
153
158
|
};
|
|
159
|
+
}, {
|
|
154
160
|
extra: {
|
|
155
161
|
0?: unknown;
|
|
156
162
|
};
|
|
157
|
-
}, {
|
|
158
163
|
user: PublicKey;
|
|
159
164
|
expiration: BN;
|
|
160
165
|
authorized_programs: {
|
|
@@ -172,12 +177,12 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
172
177
|
} | {
|
|
173
178
|
All: {};
|
|
174
179
|
};
|
|
175
|
-
extra: {
|
|
176
|
-
0?: unknown;
|
|
177
|
-
};
|
|
178
180
|
}>;
|
|
179
181
|
}, "strip", z.ZodTypeAny, {
|
|
180
182
|
"0": {
|
|
183
|
+
extra: {
|
|
184
|
+
0?: unknown;
|
|
185
|
+
};
|
|
181
186
|
user: PublicKey;
|
|
182
187
|
expiration: BN;
|
|
183
188
|
authorized_programs: {
|
|
@@ -195,12 +200,12 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
195
200
|
} | {
|
|
196
201
|
All: {};
|
|
197
202
|
};
|
|
198
|
-
extra: {
|
|
199
|
-
0?: unknown;
|
|
200
|
-
};
|
|
201
203
|
};
|
|
202
204
|
}, {
|
|
203
205
|
"0": {
|
|
206
|
+
extra: {
|
|
207
|
+
0?: unknown;
|
|
208
|
+
};
|
|
204
209
|
user: PublicKey;
|
|
205
210
|
expiration: BN;
|
|
206
211
|
authorized_programs: {
|
|
@@ -218,14 +223,14 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
218
223
|
} | {
|
|
219
224
|
All: {};
|
|
220
225
|
};
|
|
221
|
-
extra: {
|
|
222
|
-
0?: unknown;
|
|
223
|
-
};
|
|
224
226
|
};
|
|
225
227
|
}>;
|
|
226
228
|
}, "strip", z.ZodTypeAny, {
|
|
227
229
|
V1: {
|
|
228
230
|
"0": {
|
|
231
|
+
extra: {
|
|
232
|
+
0?: unknown;
|
|
233
|
+
};
|
|
229
234
|
user: PublicKey;
|
|
230
235
|
expiration: BN;
|
|
231
236
|
authorized_programs: {
|
|
@@ -243,14 +248,14 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
243
248
|
} | {
|
|
244
249
|
All: {};
|
|
245
250
|
};
|
|
246
|
-
extra: {
|
|
247
|
-
0?: unknown;
|
|
248
|
-
};
|
|
249
251
|
};
|
|
250
252
|
};
|
|
251
253
|
}, {
|
|
252
254
|
V1: {
|
|
253
255
|
"0": {
|
|
256
|
+
extra: {
|
|
257
|
+
0?: unknown;
|
|
258
|
+
};
|
|
254
259
|
user: PublicKey;
|
|
255
260
|
expiration: BN;
|
|
256
261
|
authorized_programs: {
|
|
@@ -268,9 +273,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
268
273
|
} | {
|
|
269
274
|
All: {};
|
|
270
275
|
};
|
|
271
|
-
extra: {
|
|
272
|
-
0?: unknown;
|
|
273
|
-
};
|
|
274
276
|
};
|
|
275
277
|
};
|
|
276
278
|
}>, z.ZodObject<{
|
|
@@ -351,6 +353,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
351
353
|
}>;
|
|
352
354
|
user: z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>;
|
|
353
355
|
}, "strip", z.ZodTypeAny, {
|
|
356
|
+
extra: {
|
|
357
|
+
0?: unknown;
|
|
358
|
+
};
|
|
354
359
|
user: PublicKey;
|
|
355
360
|
expiration: BN;
|
|
356
361
|
authorized_programs: {
|
|
@@ -368,10 +373,10 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
368
373
|
} | {
|
|
369
374
|
All: {};
|
|
370
375
|
};
|
|
376
|
+
}, {
|
|
371
377
|
extra: {
|
|
372
378
|
0?: unknown;
|
|
373
379
|
};
|
|
374
|
-
}, {
|
|
375
380
|
user: PublicKey;
|
|
376
381
|
expiration: BN;
|
|
377
382
|
authorized_programs: {
|
|
@@ -389,12 +394,12 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
389
394
|
} | {
|
|
390
395
|
All: {};
|
|
391
396
|
};
|
|
392
|
-
extra: {
|
|
393
|
-
0?: unknown;
|
|
394
|
-
};
|
|
395
397
|
}>;
|
|
396
398
|
}, "strip", z.ZodTypeAny, {
|
|
397
399
|
"0": {
|
|
400
|
+
extra: {
|
|
401
|
+
0?: unknown;
|
|
402
|
+
};
|
|
398
403
|
user: PublicKey;
|
|
399
404
|
expiration: BN;
|
|
400
405
|
authorized_programs: {
|
|
@@ -412,12 +417,12 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
412
417
|
} | {
|
|
413
418
|
All: {};
|
|
414
419
|
};
|
|
415
|
-
extra: {
|
|
416
|
-
0?: unknown;
|
|
417
|
-
};
|
|
418
420
|
};
|
|
419
421
|
}, {
|
|
420
422
|
"0": {
|
|
423
|
+
extra: {
|
|
424
|
+
0?: unknown;
|
|
425
|
+
};
|
|
421
426
|
user: PublicKey;
|
|
422
427
|
expiration: BN;
|
|
423
428
|
authorized_programs: {
|
|
@@ -435,14 +440,14 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
435
440
|
} | {
|
|
436
441
|
All: {};
|
|
437
442
|
};
|
|
438
|
-
extra: {
|
|
439
|
-
0?: unknown;
|
|
440
|
-
};
|
|
441
443
|
};
|
|
442
444
|
}>;
|
|
443
445
|
}, "strip", z.ZodTypeAny, {
|
|
444
446
|
Active: {
|
|
445
447
|
"0": {
|
|
448
|
+
extra: {
|
|
449
|
+
0?: unknown;
|
|
450
|
+
};
|
|
446
451
|
user: PublicKey;
|
|
447
452
|
expiration: BN;
|
|
448
453
|
authorized_programs: {
|
|
@@ -460,14 +465,14 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
460
465
|
} | {
|
|
461
466
|
All: {};
|
|
462
467
|
};
|
|
463
|
-
extra: {
|
|
464
|
-
0?: unknown;
|
|
465
|
-
};
|
|
466
468
|
};
|
|
467
469
|
};
|
|
468
470
|
}, {
|
|
469
471
|
Active: {
|
|
470
472
|
"0": {
|
|
473
|
+
extra: {
|
|
474
|
+
0?: unknown;
|
|
475
|
+
};
|
|
471
476
|
user: PublicKey;
|
|
472
477
|
expiration: BN;
|
|
473
478
|
authorized_programs: {
|
|
@@ -485,9 +490,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
485
490
|
} | {
|
|
486
491
|
All: {};
|
|
487
492
|
};
|
|
488
|
-
extra: {
|
|
489
|
-
0?: unknown;
|
|
490
|
-
};
|
|
491
493
|
};
|
|
492
494
|
};
|
|
493
495
|
}>]>;
|
|
@@ -497,6 +499,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
497
499
|
} | {
|
|
498
500
|
Active: {
|
|
499
501
|
"0": {
|
|
502
|
+
extra: {
|
|
503
|
+
0?: unknown;
|
|
504
|
+
};
|
|
500
505
|
user: PublicKey;
|
|
501
506
|
expiration: BN;
|
|
502
507
|
authorized_programs: {
|
|
@@ -514,9 +519,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
514
519
|
} | {
|
|
515
520
|
All: {};
|
|
516
521
|
};
|
|
517
|
-
extra: {
|
|
518
|
-
0?: unknown;
|
|
519
|
-
};
|
|
520
522
|
};
|
|
521
523
|
};
|
|
522
524
|
};
|
|
@@ -526,6 +528,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
526
528
|
} | {
|
|
527
529
|
Active: {
|
|
528
530
|
"0": {
|
|
531
|
+
extra: {
|
|
532
|
+
0?: unknown;
|
|
533
|
+
};
|
|
529
534
|
user: PublicKey;
|
|
530
535
|
expiration: BN;
|
|
531
536
|
authorized_programs: {
|
|
@@ -543,9 +548,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
543
548
|
} | {
|
|
544
549
|
All: {};
|
|
545
550
|
};
|
|
546
|
-
extra: {
|
|
547
|
-
0?: unknown;
|
|
548
|
-
};
|
|
549
551
|
};
|
|
550
552
|
};
|
|
551
553
|
};
|
|
@@ -557,6 +559,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
557
559
|
} | {
|
|
558
560
|
Active: {
|
|
559
561
|
"0": {
|
|
562
|
+
extra: {
|
|
563
|
+
0?: unknown;
|
|
564
|
+
};
|
|
560
565
|
user: PublicKey;
|
|
561
566
|
expiration: BN;
|
|
562
567
|
authorized_programs: {
|
|
@@ -574,9 +579,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
574
579
|
} | {
|
|
575
580
|
All: {};
|
|
576
581
|
};
|
|
577
|
-
extra: {
|
|
578
|
-
0?: unknown;
|
|
579
|
-
};
|
|
580
582
|
};
|
|
581
583
|
};
|
|
582
584
|
};
|
|
@@ -588,6 +590,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
588
590
|
} | {
|
|
589
591
|
Active: {
|
|
590
592
|
"0": {
|
|
593
|
+
extra: {
|
|
594
|
+
0?: unknown;
|
|
595
|
+
};
|
|
591
596
|
user: PublicKey;
|
|
592
597
|
expiration: BN;
|
|
593
598
|
authorized_programs: {
|
|
@@ -605,9 +610,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
605
610
|
} | {
|
|
606
611
|
All: {};
|
|
607
612
|
};
|
|
608
|
-
extra: {
|
|
609
|
-
0?: unknown;
|
|
610
|
-
};
|
|
611
613
|
};
|
|
612
614
|
};
|
|
613
615
|
};
|
|
@@ -796,6 +798,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
796
798
|
}>;
|
|
797
799
|
user: z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>;
|
|
798
800
|
}, "strip", z.ZodTypeAny, {
|
|
801
|
+
extra: {
|
|
802
|
+
0?: unknown;
|
|
803
|
+
};
|
|
799
804
|
user: PublicKey;
|
|
800
805
|
expiration: BN;
|
|
801
806
|
authorized_programs: {
|
|
@@ -815,10 +820,10 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
815
820
|
} | {
|
|
816
821
|
All: {};
|
|
817
822
|
};
|
|
823
|
+
}, {
|
|
818
824
|
extra: {
|
|
819
825
|
0?: unknown;
|
|
820
826
|
};
|
|
821
|
-
}, {
|
|
822
827
|
user: PublicKey;
|
|
823
828
|
expiration: BN;
|
|
824
829
|
authorized_programs: {
|
|
@@ -838,12 +843,12 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
838
843
|
} | {
|
|
839
844
|
All: {};
|
|
840
845
|
};
|
|
841
|
-
extra: {
|
|
842
|
-
0?: unknown;
|
|
843
|
-
};
|
|
844
846
|
}>;
|
|
845
847
|
}, "strip", z.ZodTypeAny, {
|
|
846
848
|
"0": {
|
|
849
|
+
extra: {
|
|
850
|
+
0?: unknown;
|
|
851
|
+
};
|
|
847
852
|
user: PublicKey;
|
|
848
853
|
expiration: BN;
|
|
849
854
|
authorized_programs: {
|
|
@@ -863,12 +868,12 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
863
868
|
} | {
|
|
864
869
|
All: {};
|
|
865
870
|
};
|
|
866
|
-
extra: {
|
|
867
|
-
0?: unknown;
|
|
868
|
-
};
|
|
869
871
|
};
|
|
870
872
|
}, {
|
|
871
873
|
"0": {
|
|
874
|
+
extra: {
|
|
875
|
+
0?: unknown;
|
|
876
|
+
};
|
|
872
877
|
user: PublicKey;
|
|
873
878
|
expiration: BN;
|
|
874
879
|
authorized_programs: {
|
|
@@ -888,14 +893,14 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
888
893
|
} | {
|
|
889
894
|
All: {};
|
|
890
895
|
};
|
|
891
|
-
extra: {
|
|
892
|
-
0?: unknown;
|
|
893
|
-
};
|
|
894
896
|
};
|
|
895
897
|
}>;
|
|
896
898
|
}, "strip", z.ZodTypeAny, {
|
|
897
899
|
Active: {
|
|
898
900
|
"0": {
|
|
901
|
+
extra: {
|
|
902
|
+
0?: unknown;
|
|
903
|
+
};
|
|
899
904
|
user: PublicKey;
|
|
900
905
|
expiration: BN;
|
|
901
906
|
authorized_programs: {
|
|
@@ -915,14 +920,14 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
915
920
|
} | {
|
|
916
921
|
All: {};
|
|
917
922
|
};
|
|
918
|
-
extra: {
|
|
919
|
-
0?: unknown;
|
|
920
|
-
};
|
|
921
923
|
};
|
|
922
924
|
};
|
|
923
925
|
}, {
|
|
924
926
|
Active: {
|
|
925
927
|
"0": {
|
|
928
|
+
extra: {
|
|
929
|
+
0?: unknown;
|
|
930
|
+
};
|
|
926
931
|
user: PublicKey;
|
|
927
932
|
expiration: BN;
|
|
928
933
|
authorized_programs: {
|
|
@@ -942,9 +947,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
942
947
|
} | {
|
|
943
948
|
All: {};
|
|
944
949
|
};
|
|
945
|
-
extra: {
|
|
946
|
-
0?: unknown;
|
|
947
|
-
};
|
|
948
950
|
};
|
|
949
951
|
};
|
|
950
952
|
}>]>;
|
|
@@ -966,6 +968,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
966
968
|
} | {
|
|
967
969
|
Active: {
|
|
968
970
|
"0": {
|
|
971
|
+
extra: {
|
|
972
|
+
0?: unknown;
|
|
973
|
+
};
|
|
969
974
|
user: PublicKey;
|
|
970
975
|
expiration: BN;
|
|
971
976
|
authorized_programs: {
|
|
@@ -985,9 +990,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
985
990
|
} | {
|
|
986
991
|
All: {};
|
|
987
992
|
};
|
|
988
|
-
extra: {
|
|
989
|
-
0?: unknown;
|
|
990
|
-
};
|
|
991
993
|
};
|
|
992
994
|
};
|
|
993
995
|
};
|
|
@@ -1009,6 +1011,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1009
1011
|
} | {
|
|
1010
1012
|
Active: {
|
|
1011
1013
|
"0": {
|
|
1014
|
+
extra: {
|
|
1015
|
+
0?: unknown;
|
|
1016
|
+
};
|
|
1012
1017
|
user: PublicKey;
|
|
1013
1018
|
expiration: BN;
|
|
1014
1019
|
authorized_programs: {
|
|
@@ -1028,9 +1033,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1028
1033
|
} | {
|
|
1029
1034
|
All: {};
|
|
1030
1035
|
};
|
|
1031
|
-
extra: {
|
|
1032
|
-
0?: unknown;
|
|
1033
|
-
};
|
|
1034
1036
|
};
|
|
1035
1037
|
};
|
|
1036
1038
|
};
|
|
@@ -1054,6 +1056,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1054
1056
|
} | {
|
|
1055
1057
|
Active: {
|
|
1056
1058
|
"0": {
|
|
1059
|
+
extra: {
|
|
1060
|
+
0?: unknown;
|
|
1061
|
+
};
|
|
1057
1062
|
user: PublicKey;
|
|
1058
1063
|
expiration: BN;
|
|
1059
1064
|
authorized_programs: {
|
|
@@ -1073,9 +1078,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1073
1078
|
} | {
|
|
1074
1079
|
All: {};
|
|
1075
1080
|
};
|
|
1076
|
-
extra: {
|
|
1077
|
-
0?: unknown;
|
|
1078
|
-
};
|
|
1079
1081
|
};
|
|
1080
1082
|
};
|
|
1081
1083
|
};
|
|
@@ -1099,6 +1101,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1099
1101
|
} | {
|
|
1100
1102
|
Active: {
|
|
1101
1103
|
"0": {
|
|
1104
|
+
extra: {
|
|
1105
|
+
0?: unknown;
|
|
1106
|
+
};
|
|
1102
1107
|
user: PublicKey;
|
|
1103
1108
|
expiration: BN;
|
|
1104
1109
|
authorized_programs: {
|
|
@@ -1118,9 +1123,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1118
1123
|
} | {
|
|
1119
1124
|
All: {};
|
|
1120
1125
|
};
|
|
1121
|
-
extra: {
|
|
1122
|
-
0?: unknown;
|
|
1123
|
-
};
|
|
1124
1126
|
};
|
|
1125
1127
|
};
|
|
1126
1128
|
};
|
|
@@ -1311,6 +1313,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1311
1313
|
}>;
|
|
1312
1314
|
user: z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>;
|
|
1313
1315
|
}, "strip", z.ZodTypeAny, {
|
|
1316
|
+
extra: {
|
|
1317
|
+
0?: unknown;
|
|
1318
|
+
};
|
|
1314
1319
|
user: PublicKey;
|
|
1315
1320
|
expiration: BN;
|
|
1316
1321
|
authorized_programs: {
|
|
@@ -1330,10 +1335,10 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1330
1335
|
} | {
|
|
1331
1336
|
All: {};
|
|
1332
1337
|
};
|
|
1338
|
+
}, {
|
|
1333
1339
|
extra: {
|
|
1334
1340
|
0?: unknown;
|
|
1335
1341
|
};
|
|
1336
|
-
}, {
|
|
1337
1342
|
user: PublicKey;
|
|
1338
1343
|
expiration: BN;
|
|
1339
1344
|
authorized_programs: {
|
|
@@ -1353,13 +1358,13 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1353
1358
|
} | {
|
|
1354
1359
|
All: {};
|
|
1355
1360
|
};
|
|
1356
|
-
extra: {
|
|
1357
|
-
0?: unknown;
|
|
1358
|
-
};
|
|
1359
1361
|
}>;
|
|
1360
1362
|
}, "strip", z.ZodTypeAny, {
|
|
1361
1363
|
domain_hash: number[];
|
|
1362
1364
|
active_session_info: {
|
|
1365
|
+
extra: {
|
|
1366
|
+
0?: unknown;
|
|
1367
|
+
};
|
|
1363
1368
|
user: PublicKey;
|
|
1364
1369
|
expiration: BN;
|
|
1365
1370
|
authorized_programs: {
|
|
@@ -1379,13 +1384,13 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1379
1384
|
} | {
|
|
1380
1385
|
All: {};
|
|
1381
1386
|
};
|
|
1382
|
-
extra: {
|
|
1383
|
-
0?: unknown;
|
|
1384
|
-
};
|
|
1385
1387
|
};
|
|
1386
1388
|
}, {
|
|
1387
1389
|
domain_hash: number[];
|
|
1388
1390
|
active_session_info: {
|
|
1391
|
+
extra: {
|
|
1392
|
+
0?: unknown;
|
|
1393
|
+
};
|
|
1389
1394
|
user: PublicKey;
|
|
1390
1395
|
expiration: BN;
|
|
1391
1396
|
authorized_programs: {
|
|
@@ -1405,15 +1410,15 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1405
1410
|
} | {
|
|
1406
1411
|
All: {};
|
|
1407
1412
|
};
|
|
1408
|
-
extra: {
|
|
1409
|
-
0?: unknown;
|
|
1410
|
-
};
|
|
1411
1413
|
};
|
|
1412
1414
|
}>;
|
|
1413
1415
|
}, "strip", z.ZodTypeAny, {
|
|
1414
1416
|
"0": {
|
|
1415
1417
|
domain_hash: number[];
|
|
1416
1418
|
active_session_info: {
|
|
1419
|
+
extra: {
|
|
1420
|
+
0?: unknown;
|
|
1421
|
+
};
|
|
1417
1422
|
user: PublicKey;
|
|
1418
1423
|
expiration: BN;
|
|
1419
1424
|
authorized_programs: {
|
|
@@ -1433,15 +1438,15 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1433
1438
|
} | {
|
|
1434
1439
|
All: {};
|
|
1435
1440
|
};
|
|
1436
|
-
extra: {
|
|
1437
|
-
0?: unknown;
|
|
1438
|
-
};
|
|
1439
1441
|
};
|
|
1440
1442
|
};
|
|
1441
1443
|
}, {
|
|
1442
1444
|
"0": {
|
|
1443
1445
|
domain_hash: number[];
|
|
1444
1446
|
active_session_info: {
|
|
1447
|
+
extra: {
|
|
1448
|
+
0?: unknown;
|
|
1449
|
+
};
|
|
1445
1450
|
user: PublicKey;
|
|
1446
1451
|
expiration: BN;
|
|
1447
1452
|
authorized_programs: {
|
|
@@ -1461,9 +1466,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1461
1466
|
} | {
|
|
1462
1467
|
All: {};
|
|
1463
1468
|
};
|
|
1464
|
-
extra: {
|
|
1465
|
-
0?: unknown;
|
|
1466
|
-
};
|
|
1467
1469
|
};
|
|
1468
1470
|
};
|
|
1469
1471
|
}>;
|
|
@@ -1472,6 +1474,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1472
1474
|
"0": {
|
|
1473
1475
|
domain_hash: number[];
|
|
1474
1476
|
active_session_info: {
|
|
1477
|
+
extra: {
|
|
1478
|
+
0?: unknown;
|
|
1479
|
+
};
|
|
1475
1480
|
user: PublicKey;
|
|
1476
1481
|
expiration: BN;
|
|
1477
1482
|
authorized_programs: {
|
|
@@ -1491,9 +1496,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1491
1496
|
} | {
|
|
1492
1497
|
All: {};
|
|
1493
1498
|
};
|
|
1494
|
-
extra: {
|
|
1495
|
-
0?: unknown;
|
|
1496
|
-
};
|
|
1497
1499
|
};
|
|
1498
1500
|
};
|
|
1499
1501
|
};
|
|
@@ -1502,6 +1504,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1502
1504
|
"0": {
|
|
1503
1505
|
domain_hash: number[];
|
|
1504
1506
|
active_session_info: {
|
|
1507
|
+
extra: {
|
|
1508
|
+
0?: unknown;
|
|
1509
|
+
};
|
|
1505
1510
|
user: PublicKey;
|
|
1506
1511
|
expiration: BN;
|
|
1507
1512
|
authorized_programs: {
|
|
@@ -1521,9 +1526,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1521
1526
|
} | {
|
|
1522
1527
|
All: {};
|
|
1523
1528
|
};
|
|
1524
|
-
extra: {
|
|
1525
|
-
0?: unknown;
|
|
1526
|
-
};
|
|
1527
1529
|
};
|
|
1528
1530
|
};
|
|
1529
1531
|
};
|
|
@@ -1548,6 +1550,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1548
1550
|
"0": {
|
|
1549
1551
|
domain_hash: number[];
|
|
1550
1552
|
active_session_info: {
|
|
1553
|
+
extra: {
|
|
1554
|
+
0?: unknown;
|
|
1555
|
+
};
|
|
1551
1556
|
user: PublicKey;
|
|
1552
1557
|
expiration: BN;
|
|
1553
1558
|
authorized_programs: {
|
|
@@ -1567,9 +1572,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1567
1572
|
} | {
|
|
1568
1573
|
All: {};
|
|
1569
1574
|
};
|
|
1570
|
-
extra: {
|
|
1571
|
-
0?: unknown;
|
|
1572
|
-
};
|
|
1573
1575
|
};
|
|
1574
1576
|
};
|
|
1575
1577
|
};
|
|
@@ -1594,6 +1596,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1594
1596
|
"0": {
|
|
1595
1597
|
domain_hash: number[];
|
|
1596
1598
|
active_session_info: {
|
|
1599
|
+
extra: {
|
|
1600
|
+
0?: unknown;
|
|
1601
|
+
};
|
|
1597
1602
|
user: PublicKey;
|
|
1598
1603
|
expiration: BN;
|
|
1599
1604
|
authorized_programs: {
|
|
@@ -1613,9 +1618,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1613
1618
|
} | {
|
|
1614
1619
|
All: {};
|
|
1615
1620
|
};
|
|
1616
|
-
extra: {
|
|
1617
|
-
0?: unknown;
|
|
1618
|
-
};
|
|
1619
1621
|
};
|
|
1620
1622
|
};
|
|
1621
1623
|
};
|
|
@@ -1642,6 +1644,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1642
1644
|
"0": {
|
|
1643
1645
|
domain_hash: number[];
|
|
1644
1646
|
active_session_info: {
|
|
1647
|
+
extra: {
|
|
1648
|
+
0?: unknown;
|
|
1649
|
+
};
|
|
1645
1650
|
user: PublicKey;
|
|
1646
1651
|
expiration: BN;
|
|
1647
1652
|
authorized_programs: {
|
|
@@ -1661,9 +1666,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1661
1666
|
} | {
|
|
1662
1667
|
All: {};
|
|
1663
1668
|
};
|
|
1664
|
-
extra: {
|
|
1665
|
-
0?: unknown;
|
|
1666
|
-
};
|
|
1667
1669
|
};
|
|
1668
1670
|
};
|
|
1669
1671
|
};
|
|
@@ -1690,6 +1692,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1690
1692
|
"0": {
|
|
1691
1693
|
domain_hash: number[];
|
|
1692
1694
|
active_session_info: {
|
|
1695
|
+
extra: {
|
|
1696
|
+
0?: unknown;
|
|
1697
|
+
};
|
|
1693
1698
|
user: PublicKey;
|
|
1694
1699
|
expiration: BN;
|
|
1695
1700
|
authorized_programs: {
|
|
@@ -1709,9 +1714,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1709
1714
|
} | {
|
|
1710
1715
|
All: {};
|
|
1711
1716
|
};
|
|
1712
|
-
extra: {
|
|
1713
|
-
0?: unknown;
|
|
1714
|
-
};
|
|
1715
1717
|
};
|
|
1716
1718
|
};
|
|
1717
1719
|
};
|
|
@@ -1722,9 +1724,13 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1722
1724
|
sponsor: z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>;
|
|
1723
1725
|
}, "strip", z.ZodTypeAny, {
|
|
1724
1726
|
sponsor: PublicKey;
|
|
1727
|
+
major: number;
|
|
1725
1728
|
session_info: {
|
|
1726
1729
|
V1: {
|
|
1727
1730
|
"0": {
|
|
1731
|
+
extra: {
|
|
1732
|
+
0?: unknown;
|
|
1733
|
+
};
|
|
1728
1734
|
user: PublicKey;
|
|
1729
1735
|
expiration: BN;
|
|
1730
1736
|
authorized_programs: {
|
|
@@ -1742,9 +1748,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1742
1748
|
} | {
|
|
1743
1749
|
All: {};
|
|
1744
1750
|
};
|
|
1745
|
-
extra: {
|
|
1746
|
-
0?: unknown;
|
|
1747
|
-
};
|
|
1748
1751
|
};
|
|
1749
1752
|
};
|
|
1750
1753
|
} | {
|
|
@@ -1754,6 +1757,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1754
1757
|
} | {
|
|
1755
1758
|
Active: {
|
|
1756
1759
|
"0": {
|
|
1760
|
+
extra: {
|
|
1761
|
+
0?: unknown;
|
|
1762
|
+
};
|
|
1757
1763
|
user: PublicKey;
|
|
1758
1764
|
expiration: BN;
|
|
1759
1765
|
authorized_programs: {
|
|
@@ -1771,9 +1777,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1771
1777
|
} | {
|
|
1772
1778
|
All: {};
|
|
1773
1779
|
};
|
|
1774
|
-
extra: {
|
|
1775
|
-
0?: unknown;
|
|
1776
|
-
};
|
|
1777
1780
|
};
|
|
1778
1781
|
};
|
|
1779
1782
|
};
|
|
@@ -1797,6 +1800,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1797
1800
|
} | {
|
|
1798
1801
|
Active: {
|
|
1799
1802
|
"0": {
|
|
1803
|
+
extra: {
|
|
1804
|
+
0?: unknown;
|
|
1805
|
+
};
|
|
1800
1806
|
user: PublicKey;
|
|
1801
1807
|
expiration: BN;
|
|
1802
1808
|
authorized_programs: {
|
|
@@ -1816,9 +1822,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1816
1822
|
} | {
|
|
1817
1823
|
All: {};
|
|
1818
1824
|
};
|
|
1819
|
-
extra: {
|
|
1820
|
-
0?: unknown;
|
|
1821
|
-
};
|
|
1822
1825
|
};
|
|
1823
1826
|
};
|
|
1824
1827
|
};
|
|
@@ -1844,6 +1847,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1844
1847
|
"0": {
|
|
1845
1848
|
domain_hash: number[];
|
|
1846
1849
|
active_session_info: {
|
|
1850
|
+
extra: {
|
|
1851
|
+
0?: unknown;
|
|
1852
|
+
};
|
|
1847
1853
|
user: PublicKey;
|
|
1848
1854
|
expiration: BN;
|
|
1849
1855
|
authorized_programs: {
|
|
@@ -1863,21 +1869,21 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1863
1869
|
} | {
|
|
1864
1870
|
All: {};
|
|
1865
1871
|
};
|
|
1866
|
-
extra: {
|
|
1867
|
-
0?: unknown;
|
|
1868
|
-
};
|
|
1869
1872
|
};
|
|
1870
1873
|
};
|
|
1871
1874
|
};
|
|
1872
1875
|
};
|
|
1873
1876
|
};
|
|
1874
1877
|
};
|
|
1875
|
-
major: number;
|
|
1876
1878
|
}, {
|
|
1877
1879
|
sponsor: PublicKey;
|
|
1880
|
+
major: number;
|
|
1878
1881
|
session_info: {
|
|
1879
1882
|
V1: {
|
|
1880
1883
|
"0": {
|
|
1884
|
+
extra: {
|
|
1885
|
+
0?: unknown;
|
|
1886
|
+
};
|
|
1881
1887
|
user: PublicKey;
|
|
1882
1888
|
expiration: BN;
|
|
1883
1889
|
authorized_programs: {
|
|
@@ -1895,9 +1901,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1895
1901
|
} | {
|
|
1896
1902
|
All: {};
|
|
1897
1903
|
};
|
|
1898
|
-
extra: {
|
|
1899
|
-
0?: unknown;
|
|
1900
|
-
};
|
|
1901
1904
|
};
|
|
1902
1905
|
};
|
|
1903
1906
|
} | {
|
|
@@ -1907,6 +1910,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1907
1910
|
} | {
|
|
1908
1911
|
Active: {
|
|
1909
1912
|
"0": {
|
|
1913
|
+
extra: {
|
|
1914
|
+
0?: unknown;
|
|
1915
|
+
};
|
|
1910
1916
|
user: PublicKey;
|
|
1911
1917
|
expiration: BN;
|
|
1912
1918
|
authorized_programs: {
|
|
@@ -1924,9 +1930,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1924
1930
|
} | {
|
|
1925
1931
|
All: {};
|
|
1926
1932
|
};
|
|
1927
|
-
extra: {
|
|
1928
|
-
0?: unknown;
|
|
1929
|
-
};
|
|
1930
1933
|
};
|
|
1931
1934
|
};
|
|
1932
1935
|
};
|
|
@@ -1950,6 +1953,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1950
1953
|
} | {
|
|
1951
1954
|
Active: {
|
|
1952
1955
|
"0": {
|
|
1956
|
+
extra: {
|
|
1957
|
+
0?: unknown;
|
|
1958
|
+
};
|
|
1953
1959
|
user: PublicKey;
|
|
1954
1960
|
expiration: BN;
|
|
1955
1961
|
authorized_programs: {
|
|
@@ -1969,9 +1975,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1969
1975
|
} | {
|
|
1970
1976
|
All: {};
|
|
1971
1977
|
};
|
|
1972
|
-
extra: {
|
|
1973
|
-
0?: unknown;
|
|
1974
|
-
};
|
|
1975
1978
|
};
|
|
1976
1979
|
};
|
|
1977
1980
|
};
|
|
@@ -1997,6 +2000,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1997
2000
|
"0": {
|
|
1998
2001
|
domain_hash: number[];
|
|
1999
2002
|
active_session_info: {
|
|
2003
|
+
extra: {
|
|
2004
|
+
0?: unknown;
|
|
2005
|
+
};
|
|
2000
2006
|
user: PublicKey;
|
|
2001
2007
|
expiration: BN;
|
|
2002
2008
|
authorized_programs: {
|
|
@@ -2016,16 +2022,12 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2016
2022
|
} | {
|
|
2017
2023
|
All: {};
|
|
2018
2024
|
};
|
|
2019
|
-
extra: {
|
|
2020
|
-
0?: unknown;
|
|
2021
|
-
};
|
|
2022
2025
|
};
|
|
2023
2026
|
};
|
|
2024
2027
|
};
|
|
2025
2028
|
};
|
|
2026
2029
|
};
|
|
2027
2030
|
};
|
|
2028
|
-
major: number;
|
|
2029
2031
|
}>, {
|
|
2030
2032
|
authorizedPrograms: {
|
|
2031
2033
|
type: AuthorizedProgramsType.All;
|
|
@@ -2045,9 +2047,13 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2045
2047
|
sponsor: PublicKey;
|
|
2046
2048
|
} | undefined, {
|
|
2047
2049
|
sponsor: PublicKey;
|
|
2050
|
+
major: number;
|
|
2048
2051
|
session_info: {
|
|
2049
2052
|
V1: {
|
|
2050
2053
|
"0": {
|
|
2054
|
+
extra: {
|
|
2055
|
+
0?: unknown;
|
|
2056
|
+
};
|
|
2051
2057
|
user: PublicKey;
|
|
2052
2058
|
expiration: BN;
|
|
2053
2059
|
authorized_programs: {
|
|
@@ -2065,9 +2071,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2065
2071
|
} | {
|
|
2066
2072
|
All: {};
|
|
2067
2073
|
};
|
|
2068
|
-
extra: {
|
|
2069
|
-
0?: unknown;
|
|
2070
|
-
};
|
|
2071
2074
|
};
|
|
2072
2075
|
};
|
|
2073
2076
|
} | {
|
|
@@ -2077,6 +2080,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2077
2080
|
} | {
|
|
2078
2081
|
Active: {
|
|
2079
2082
|
"0": {
|
|
2083
|
+
extra: {
|
|
2084
|
+
0?: unknown;
|
|
2085
|
+
};
|
|
2080
2086
|
user: PublicKey;
|
|
2081
2087
|
expiration: BN;
|
|
2082
2088
|
authorized_programs: {
|
|
@@ -2094,9 +2100,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2094
2100
|
} | {
|
|
2095
2101
|
All: {};
|
|
2096
2102
|
};
|
|
2097
|
-
extra: {
|
|
2098
|
-
0?: unknown;
|
|
2099
|
-
};
|
|
2100
2103
|
};
|
|
2101
2104
|
};
|
|
2102
2105
|
};
|
|
@@ -2120,6 +2123,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2120
2123
|
} | {
|
|
2121
2124
|
Active: {
|
|
2122
2125
|
"0": {
|
|
2126
|
+
extra: {
|
|
2127
|
+
0?: unknown;
|
|
2128
|
+
};
|
|
2123
2129
|
user: PublicKey;
|
|
2124
2130
|
expiration: BN;
|
|
2125
2131
|
authorized_programs: {
|
|
@@ -2139,9 +2145,6 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2139
2145
|
} | {
|
|
2140
2146
|
All: {};
|
|
2141
2147
|
};
|
|
2142
|
-
extra: {
|
|
2143
|
-
0?: unknown;
|
|
2144
|
-
};
|
|
2145
2148
|
};
|
|
2146
2149
|
};
|
|
2147
2150
|
};
|
|
@@ -2167,6 +2170,9 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2167
2170
|
"0": {
|
|
2168
2171
|
domain_hash: number[];
|
|
2169
2172
|
active_session_info: {
|
|
2173
|
+
extra: {
|
|
2174
|
+
0?: unknown;
|
|
2175
|
+
};
|
|
2170
2176
|
user: PublicKey;
|
|
2171
2177
|
expiration: BN;
|
|
2172
2178
|
authorized_programs: {
|
|
@@ -2186,16 +2192,12 @@ declare const sessionInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2186
2192
|
} | {
|
|
2187
2193
|
All: {};
|
|
2188
2194
|
};
|
|
2189
|
-
extra: {
|
|
2190
|
-
0?: unknown;
|
|
2191
|
-
};
|
|
2192
2195
|
};
|
|
2193
2196
|
};
|
|
2194
2197
|
};
|
|
2195
2198
|
};
|
|
2196
2199
|
};
|
|
2197
2200
|
};
|
|
2198
|
-
major: number;
|
|
2199
2201
|
}>;
|
|
2200
2202
|
export declare enum AuthorizedProgramsType {
|
|
2201
2203
|
All = 0,
|