@account-kit/react-native-signer 4.34.1 → 4.35.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/lib/typescript/commonjs/src/client.d.ts +10 -22
- package/lib/typescript/commonjs/src/client.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/signer.d.ts +25 -104
- package/lib/typescript/commonjs/src/signer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/base64UrlEncode.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/parseUrlParams.d.ts.map +1 -1
- package/lib/typescript/module/src/client.d.ts +10 -22
- package/lib/typescript/module/src/client.d.ts.map +1 -1
- package/lib/typescript/module/src/signer.d.ts +25 -104
- package/lib/typescript/module/src/signer.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/base64UrlEncode.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/parseUrlParams.d.ts.map +1 -1
- package/package.json +6 -17
- package/src/NativeTEKStamper.ts +1 -1
- package/src/client.ts +7 -7
- package/src/errors.ts +1 -1
- package/src/utils/base64UrlEncode.ts +1 -1
|
@@ -47,27 +47,21 @@ export declare const RNSignerClientParamsSchema: z.ZodObject<{
|
|
|
47
47
|
apiKey: string;
|
|
48
48
|
rpcUrl?: undefined;
|
|
49
49
|
jwt?: undefined;
|
|
50
|
-
}
|
|
51
|
-
chainAgnosticUrl?: string | undefined;
|
|
52
|
-
}) | ({
|
|
50
|
+
} | {
|
|
53
51
|
jwt: string;
|
|
54
52
|
rpcUrl?: undefined;
|
|
55
53
|
apiKey?: undefined;
|
|
56
|
-
}
|
|
57
|
-
chainAgnosticUrl?: string | undefined;
|
|
58
|
-
}) | ({
|
|
54
|
+
} | {
|
|
59
55
|
rpcUrl: string;
|
|
60
56
|
apiKey?: undefined;
|
|
61
57
|
jwt?: undefined;
|
|
62
|
-
}
|
|
63
|
-
chainAgnosticUrl?: string | undefined;
|
|
64
|
-
}) | ({
|
|
58
|
+
} | {
|
|
65
59
|
rpcUrl: string;
|
|
66
60
|
jwt: string;
|
|
67
61
|
apiKey?: undefined;
|
|
68
|
-
} & {
|
|
62
|
+
}) & {
|
|
69
63
|
chainAgnosticUrl?: string | undefined;
|
|
70
|
-
}
|
|
64
|
+
};
|
|
71
65
|
oauthCallbackUrl: string;
|
|
72
66
|
rootOrgId?: string | undefined;
|
|
73
67
|
}, {
|
|
@@ -75,27 +69,21 @@ export declare const RNSignerClientParamsSchema: z.ZodObject<{
|
|
|
75
69
|
apiKey: string;
|
|
76
70
|
rpcUrl?: undefined;
|
|
77
71
|
jwt?: undefined;
|
|
78
|
-
}
|
|
79
|
-
chainAgnosticUrl?: string | undefined;
|
|
80
|
-
}) | ({
|
|
72
|
+
} | {
|
|
81
73
|
jwt: string;
|
|
82
74
|
rpcUrl?: undefined;
|
|
83
75
|
apiKey?: undefined;
|
|
84
|
-
}
|
|
85
|
-
chainAgnosticUrl?: string | undefined;
|
|
86
|
-
}) | ({
|
|
76
|
+
} | {
|
|
87
77
|
rpcUrl: string;
|
|
88
78
|
apiKey?: undefined;
|
|
89
79
|
jwt?: undefined;
|
|
90
|
-
}
|
|
91
|
-
chainAgnosticUrl?: string | undefined;
|
|
92
|
-
}) | ({
|
|
80
|
+
} | {
|
|
93
81
|
rpcUrl: string;
|
|
94
82
|
jwt: string;
|
|
95
83
|
apiKey?: undefined;
|
|
96
|
-
} & {
|
|
84
|
+
}) & {
|
|
97
85
|
chainAgnosticUrl?: string | undefined;
|
|
98
|
-
}
|
|
86
|
+
};
|
|
99
87
|
rootOrgId?: string | undefined;
|
|
100
88
|
oauthCallbackUrl?: string | undefined;
|
|
101
89
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAC;AACpC,OAAO,uCAAuC,CAAC;AAI/C,OAAO,EACL,gBAAgB,EAGhB,KAAK,yBAAyB,EAC9B,K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AO,CAAC,WAAW,CAAC,CAKhE;CACH"}
|
|
@@ -47,27 +47,21 @@ declare const RNAlchemySignerParamsSchema: z.ZodObject<{
|
|
|
47
47
|
apiKey: string;
|
|
48
48
|
rpcUrl?: undefined;
|
|
49
49
|
jwt?: undefined;
|
|
50
|
-
}
|
|
51
|
-
chainAgnosticUrl?: string | undefined;
|
|
52
|
-
}) | ({
|
|
50
|
+
} | {
|
|
53
51
|
jwt: string;
|
|
54
52
|
rpcUrl?: undefined;
|
|
55
53
|
apiKey?: undefined;
|
|
56
|
-
}
|
|
57
|
-
chainAgnosticUrl?: string | undefined;
|
|
58
|
-
}) | ({
|
|
54
|
+
} | {
|
|
59
55
|
rpcUrl: string;
|
|
60
56
|
apiKey?: undefined;
|
|
61
57
|
jwt?: undefined;
|
|
62
|
-
}
|
|
63
|
-
chainAgnosticUrl?: string | undefined;
|
|
64
|
-
}) | ({
|
|
58
|
+
} | {
|
|
65
59
|
rpcUrl: string;
|
|
66
60
|
jwt: string;
|
|
67
61
|
apiKey?: undefined;
|
|
68
|
-
} & {
|
|
62
|
+
}) & {
|
|
69
63
|
chainAgnosticUrl?: string | undefined;
|
|
70
|
-
}
|
|
64
|
+
};
|
|
71
65
|
oauthCallbackUrl: string;
|
|
72
66
|
rootOrgId?: string | undefined;
|
|
73
67
|
}, {
|
|
@@ -75,30 +69,25 @@ declare const RNAlchemySignerParamsSchema: z.ZodObject<{
|
|
|
75
69
|
apiKey: string;
|
|
76
70
|
rpcUrl?: undefined;
|
|
77
71
|
jwt?: undefined;
|
|
78
|
-
}
|
|
79
|
-
chainAgnosticUrl?: string | undefined;
|
|
80
|
-
}) | ({
|
|
72
|
+
} | {
|
|
81
73
|
jwt: string;
|
|
82
74
|
rpcUrl?: undefined;
|
|
83
75
|
apiKey?: undefined;
|
|
84
|
-
}
|
|
85
|
-
chainAgnosticUrl?: string | undefined;
|
|
86
|
-
}) | ({
|
|
76
|
+
} | {
|
|
87
77
|
rpcUrl: string;
|
|
88
78
|
apiKey?: undefined;
|
|
89
79
|
jwt?: undefined;
|
|
90
|
-
}
|
|
91
|
-
chainAgnosticUrl?: string | undefined;
|
|
92
|
-
}) | ({
|
|
80
|
+
} | {
|
|
93
81
|
rpcUrl: string;
|
|
94
82
|
jwt: string;
|
|
95
83
|
apiKey?: undefined;
|
|
96
|
-
} & {
|
|
84
|
+
}) & {
|
|
97
85
|
chainAgnosticUrl?: string | undefined;
|
|
98
|
-
}
|
|
86
|
+
};
|
|
99
87
|
rootOrgId?: string | undefined;
|
|
100
88
|
oauthCallbackUrl?: string | undefined;
|
|
101
89
|
}>]>;
|
|
90
|
+
} & {
|
|
102
91
|
sessionConfig: z.ZodOptional<z.ZodObject<Omit<{
|
|
103
92
|
sessionKey: z.ZodDefault<z.ZodString>;
|
|
104
93
|
storage: z.ZodUnion<[z.ZodDefault<z.ZodEnum<["localStorage", "sessionStorage"]>>, z.ZodType<Storage, z.ZodTypeDef, Storage>]>;
|
|
@@ -112,125 +101,57 @@ declare const RNAlchemySignerParamsSchema: z.ZodObject<{
|
|
|
112
101
|
expirationTimeMs?: number | undefined;
|
|
113
102
|
}>>;
|
|
114
103
|
}, "strip", z.ZodTypeAny, {
|
|
115
|
-
client:
|
|
116
|
-
connection: ({
|
|
117
|
-
apiKey: string;
|
|
118
|
-
rpcUrl?: undefined;
|
|
119
|
-
jwt?: undefined;
|
|
120
|
-
} & {
|
|
121
|
-
chainAgnosticUrl?: string | undefined;
|
|
122
|
-
}) | ({
|
|
123
|
-
jwt: string;
|
|
124
|
-
rpcUrl?: undefined;
|
|
125
|
-
apiKey?: undefined;
|
|
126
|
-
} & {
|
|
127
|
-
chainAgnosticUrl?: string | undefined;
|
|
128
|
-
}) | ({
|
|
129
|
-
rpcUrl: string;
|
|
130
|
-
apiKey?: undefined;
|
|
131
|
-
jwt?: undefined;
|
|
132
|
-
} & {
|
|
133
|
-
chainAgnosticUrl?: string | undefined;
|
|
134
|
-
}) | ({
|
|
135
|
-
rpcUrl: string;
|
|
136
|
-
jwt: string;
|
|
137
|
-
apiKey?: undefined;
|
|
138
|
-
} & {
|
|
139
|
-
chainAgnosticUrl?: string | undefined;
|
|
140
|
-
});
|
|
141
|
-
oauthCallbackUrl: string;
|
|
142
|
-
rootOrgId?: string | undefined;
|
|
143
|
-
} | RNSignerClient) & ({
|
|
104
|
+
client: {
|
|
144
105
|
connection: ({
|
|
145
106
|
apiKey: string;
|
|
146
107
|
rpcUrl?: undefined;
|
|
147
108
|
jwt?: undefined;
|
|
148
|
-
}
|
|
149
|
-
chainAgnosticUrl?: string | undefined;
|
|
150
|
-
}) | ({
|
|
109
|
+
} | {
|
|
151
110
|
jwt: string;
|
|
152
111
|
rpcUrl?: undefined;
|
|
153
112
|
apiKey?: undefined;
|
|
154
|
-
}
|
|
155
|
-
chainAgnosticUrl?: string | undefined;
|
|
156
|
-
}) | ({
|
|
113
|
+
} | {
|
|
157
114
|
rpcUrl: string;
|
|
158
115
|
apiKey?: undefined;
|
|
159
116
|
jwt?: undefined;
|
|
160
|
-
}
|
|
161
|
-
chainAgnosticUrl?: string | undefined;
|
|
162
|
-
}) | ({
|
|
117
|
+
} | {
|
|
163
118
|
rpcUrl: string;
|
|
164
119
|
jwt: string;
|
|
165
120
|
apiKey?: undefined;
|
|
166
|
-
} & {
|
|
121
|
+
}) & {
|
|
167
122
|
chainAgnosticUrl?: string | undefined;
|
|
168
|
-
}
|
|
123
|
+
};
|
|
169
124
|
oauthCallbackUrl: string;
|
|
170
125
|
rootOrgId?: string | undefined;
|
|
171
|
-
} | RNSignerClient
|
|
126
|
+
} | RNSignerClient;
|
|
172
127
|
sessionConfig?: {
|
|
173
128
|
sessionKey: string;
|
|
174
129
|
expirationTimeMs: number;
|
|
175
130
|
} | undefined;
|
|
176
131
|
}, {
|
|
177
|
-
client:
|
|
132
|
+
client: {
|
|
178
133
|
connection: ({
|
|
179
134
|
apiKey: string;
|
|
180
135
|
rpcUrl?: undefined;
|
|
181
136
|
jwt?: undefined;
|
|
182
|
-
}
|
|
183
|
-
chainAgnosticUrl?: string | undefined;
|
|
184
|
-
}) | ({
|
|
185
|
-
jwt: string;
|
|
186
|
-
rpcUrl?: undefined;
|
|
187
|
-
apiKey?: undefined;
|
|
188
|
-
} & {
|
|
189
|
-
chainAgnosticUrl?: string | undefined;
|
|
190
|
-
}) | ({
|
|
191
|
-
rpcUrl: string;
|
|
192
|
-
apiKey?: undefined;
|
|
193
|
-
jwt?: undefined;
|
|
194
|
-
} & {
|
|
195
|
-
chainAgnosticUrl?: string | undefined;
|
|
196
|
-
}) | ({
|
|
197
|
-
rpcUrl: string;
|
|
198
|
-
jwt: string;
|
|
199
|
-
apiKey?: undefined;
|
|
200
|
-
} & {
|
|
201
|
-
chainAgnosticUrl?: string | undefined;
|
|
202
|
-
});
|
|
203
|
-
rootOrgId?: string | undefined;
|
|
204
|
-
oauthCallbackUrl?: string | undefined;
|
|
205
|
-
} | RNSignerClient) & ({
|
|
206
|
-
connection: ({
|
|
207
|
-
apiKey: string;
|
|
208
|
-
rpcUrl?: undefined;
|
|
209
|
-
jwt?: undefined;
|
|
210
|
-
} & {
|
|
211
|
-
chainAgnosticUrl?: string | undefined;
|
|
212
|
-
}) | ({
|
|
137
|
+
} | {
|
|
213
138
|
jwt: string;
|
|
214
139
|
rpcUrl?: undefined;
|
|
215
140
|
apiKey?: undefined;
|
|
216
|
-
}
|
|
217
|
-
chainAgnosticUrl?: string | undefined;
|
|
218
|
-
}) | ({
|
|
141
|
+
} | {
|
|
219
142
|
rpcUrl: string;
|
|
220
143
|
apiKey?: undefined;
|
|
221
144
|
jwt?: undefined;
|
|
222
|
-
}
|
|
223
|
-
chainAgnosticUrl?: string | undefined;
|
|
224
|
-
}) | ({
|
|
145
|
+
} | {
|
|
225
146
|
rpcUrl: string;
|
|
226
147
|
jwt: string;
|
|
227
148
|
apiKey?: undefined;
|
|
228
|
-
} & {
|
|
149
|
+
}) & {
|
|
229
150
|
chainAgnosticUrl?: string | undefined;
|
|
230
|
-
}
|
|
151
|
+
};
|
|
231
152
|
rootOrgId?: string | undefined;
|
|
232
153
|
oauthCallbackUrl?: string | undefined;
|
|
233
|
-
} | RNSignerClient
|
|
154
|
+
} | RNSignerClient;
|
|
234
155
|
sessionConfig?: {
|
|
235
156
|
sessionKey?: string | undefined;
|
|
236
157
|
expirationTimeMs?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signer.d.ts","sourceRoot":"","sources":["../../../../src/signer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAElB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAA8B,MAAM,aAAa,CAAC;AAEzE,QAAA,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"signer.d.ts","sourceRoot":"","sources":["../../../../src/signer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAElB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAA8B,MAAM,aAAa,CAAC;AAEzE,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS7B,CAAC;AAEL,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,qBAAa,wBAAyB,SAAQ,iBAAiB,CAAC,cAAc,CAAC;IAC7E,OAAO,CAAC,MAAM,CAAC,QAAQ,CAA2B;IAElD,OAAO;WAwBO,WAAW,CAAC,MAAM,EAAE,qBAAqB;CAMxD;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,qBAAqB,4BAI5D;AAED,MAAM,MAAM,mBAAmB,GAAG,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base64UrlEncode.d.ts","sourceRoot":"","sources":["../../../../../src/utils/base64UrlEncode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"base64UrlEncode.d.ts","sourceRoot":"","sources":["../../../../../src/utils/base64UrlEncode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,GAC1B,WAAW,WAAW,GAAG,eAAe,KACvC,MAMF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseUrlParams.d.ts","sourceRoot":"","sources":["../../../../../src/utils/parseUrlParams.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"parseUrlParams.d.ts","sourceRoot":"","sources":["../../../../../src/utils/parseUrlParams.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,GAAI,KAAK,MAAM,2BAa5C,CAAC"}
|
|
@@ -47,27 +47,21 @@ export declare const RNSignerClientParamsSchema: z.ZodObject<{
|
|
|
47
47
|
apiKey: string;
|
|
48
48
|
rpcUrl?: undefined;
|
|
49
49
|
jwt?: undefined;
|
|
50
|
-
}
|
|
51
|
-
chainAgnosticUrl?: string | undefined;
|
|
52
|
-
}) | ({
|
|
50
|
+
} | {
|
|
53
51
|
jwt: string;
|
|
54
52
|
rpcUrl?: undefined;
|
|
55
53
|
apiKey?: undefined;
|
|
56
|
-
}
|
|
57
|
-
chainAgnosticUrl?: string | undefined;
|
|
58
|
-
}) | ({
|
|
54
|
+
} | {
|
|
59
55
|
rpcUrl: string;
|
|
60
56
|
apiKey?: undefined;
|
|
61
57
|
jwt?: undefined;
|
|
62
|
-
}
|
|
63
|
-
chainAgnosticUrl?: string | undefined;
|
|
64
|
-
}) | ({
|
|
58
|
+
} | {
|
|
65
59
|
rpcUrl: string;
|
|
66
60
|
jwt: string;
|
|
67
61
|
apiKey?: undefined;
|
|
68
|
-
} & {
|
|
62
|
+
}) & {
|
|
69
63
|
chainAgnosticUrl?: string | undefined;
|
|
70
|
-
}
|
|
64
|
+
};
|
|
71
65
|
oauthCallbackUrl: string;
|
|
72
66
|
rootOrgId?: string | undefined;
|
|
73
67
|
}, {
|
|
@@ -75,27 +69,21 @@ export declare const RNSignerClientParamsSchema: z.ZodObject<{
|
|
|
75
69
|
apiKey: string;
|
|
76
70
|
rpcUrl?: undefined;
|
|
77
71
|
jwt?: undefined;
|
|
78
|
-
}
|
|
79
|
-
chainAgnosticUrl?: string | undefined;
|
|
80
|
-
}) | ({
|
|
72
|
+
} | {
|
|
81
73
|
jwt: string;
|
|
82
74
|
rpcUrl?: undefined;
|
|
83
75
|
apiKey?: undefined;
|
|
84
|
-
}
|
|
85
|
-
chainAgnosticUrl?: string | undefined;
|
|
86
|
-
}) | ({
|
|
76
|
+
} | {
|
|
87
77
|
rpcUrl: string;
|
|
88
78
|
apiKey?: undefined;
|
|
89
79
|
jwt?: undefined;
|
|
90
|
-
}
|
|
91
|
-
chainAgnosticUrl?: string | undefined;
|
|
92
|
-
}) | ({
|
|
80
|
+
} | {
|
|
93
81
|
rpcUrl: string;
|
|
94
82
|
jwt: string;
|
|
95
83
|
apiKey?: undefined;
|
|
96
|
-
} & {
|
|
84
|
+
}) & {
|
|
97
85
|
chainAgnosticUrl?: string | undefined;
|
|
98
|
-
}
|
|
86
|
+
};
|
|
99
87
|
rootOrgId?: string | undefined;
|
|
100
88
|
oauthCallbackUrl?: string | undefined;
|
|
101
89
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAC;AACpC,OAAO,uCAAuC,CAAC;AAI/C,OAAO,EACL,gBAAgB,EAGhB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C,UAAmB,cAAc,QAAa,OAAO,CAAC,WAAW,CAAC,CAKhE;CACH"}
|
|
@@ -47,27 +47,21 @@ declare const RNAlchemySignerParamsSchema: z.ZodObject<{
|
|
|
47
47
|
apiKey: string;
|
|
48
48
|
rpcUrl?: undefined;
|
|
49
49
|
jwt?: undefined;
|
|
50
|
-
}
|
|
51
|
-
chainAgnosticUrl?: string | undefined;
|
|
52
|
-
}) | ({
|
|
50
|
+
} | {
|
|
53
51
|
jwt: string;
|
|
54
52
|
rpcUrl?: undefined;
|
|
55
53
|
apiKey?: undefined;
|
|
56
|
-
}
|
|
57
|
-
chainAgnosticUrl?: string | undefined;
|
|
58
|
-
}) | ({
|
|
54
|
+
} | {
|
|
59
55
|
rpcUrl: string;
|
|
60
56
|
apiKey?: undefined;
|
|
61
57
|
jwt?: undefined;
|
|
62
|
-
}
|
|
63
|
-
chainAgnosticUrl?: string | undefined;
|
|
64
|
-
}) | ({
|
|
58
|
+
} | {
|
|
65
59
|
rpcUrl: string;
|
|
66
60
|
jwt: string;
|
|
67
61
|
apiKey?: undefined;
|
|
68
|
-
} & {
|
|
62
|
+
}) & {
|
|
69
63
|
chainAgnosticUrl?: string | undefined;
|
|
70
|
-
}
|
|
64
|
+
};
|
|
71
65
|
oauthCallbackUrl: string;
|
|
72
66
|
rootOrgId?: string | undefined;
|
|
73
67
|
}, {
|
|
@@ -75,30 +69,25 @@ declare const RNAlchemySignerParamsSchema: z.ZodObject<{
|
|
|
75
69
|
apiKey: string;
|
|
76
70
|
rpcUrl?: undefined;
|
|
77
71
|
jwt?: undefined;
|
|
78
|
-
}
|
|
79
|
-
chainAgnosticUrl?: string | undefined;
|
|
80
|
-
}) | ({
|
|
72
|
+
} | {
|
|
81
73
|
jwt: string;
|
|
82
74
|
rpcUrl?: undefined;
|
|
83
75
|
apiKey?: undefined;
|
|
84
|
-
}
|
|
85
|
-
chainAgnosticUrl?: string | undefined;
|
|
86
|
-
}) | ({
|
|
76
|
+
} | {
|
|
87
77
|
rpcUrl: string;
|
|
88
78
|
apiKey?: undefined;
|
|
89
79
|
jwt?: undefined;
|
|
90
|
-
}
|
|
91
|
-
chainAgnosticUrl?: string | undefined;
|
|
92
|
-
}) | ({
|
|
80
|
+
} | {
|
|
93
81
|
rpcUrl: string;
|
|
94
82
|
jwt: string;
|
|
95
83
|
apiKey?: undefined;
|
|
96
|
-
} & {
|
|
84
|
+
}) & {
|
|
97
85
|
chainAgnosticUrl?: string | undefined;
|
|
98
|
-
}
|
|
86
|
+
};
|
|
99
87
|
rootOrgId?: string | undefined;
|
|
100
88
|
oauthCallbackUrl?: string | undefined;
|
|
101
89
|
}>]>;
|
|
90
|
+
} & {
|
|
102
91
|
sessionConfig: z.ZodOptional<z.ZodObject<Omit<{
|
|
103
92
|
sessionKey: z.ZodDefault<z.ZodString>;
|
|
104
93
|
storage: z.ZodUnion<[z.ZodDefault<z.ZodEnum<["localStorage", "sessionStorage"]>>, z.ZodType<Storage, z.ZodTypeDef, Storage>]>;
|
|
@@ -112,125 +101,57 @@ declare const RNAlchemySignerParamsSchema: z.ZodObject<{
|
|
|
112
101
|
expirationTimeMs?: number | undefined;
|
|
113
102
|
}>>;
|
|
114
103
|
}, "strip", z.ZodTypeAny, {
|
|
115
|
-
client:
|
|
116
|
-
connection: ({
|
|
117
|
-
apiKey: string;
|
|
118
|
-
rpcUrl?: undefined;
|
|
119
|
-
jwt?: undefined;
|
|
120
|
-
} & {
|
|
121
|
-
chainAgnosticUrl?: string | undefined;
|
|
122
|
-
}) | ({
|
|
123
|
-
jwt: string;
|
|
124
|
-
rpcUrl?: undefined;
|
|
125
|
-
apiKey?: undefined;
|
|
126
|
-
} & {
|
|
127
|
-
chainAgnosticUrl?: string | undefined;
|
|
128
|
-
}) | ({
|
|
129
|
-
rpcUrl: string;
|
|
130
|
-
apiKey?: undefined;
|
|
131
|
-
jwt?: undefined;
|
|
132
|
-
} & {
|
|
133
|
-
chainAgnosticUrl?: string | undefined;
|
|
134
|
-
}) | ({
|
|
135
|
-
rpcUrl: string;
|
|
136
|
-
jwt: string;
|
|
137
|
-
apiKey?: undefined;
|
|
138
|
-
} & {
|
|
139
|
-
chainAgnosticUrl?: string | undefined;
|
|
140
|
-
});
|
|
141
|
-
oauthCallbackUrl: string;
|
|
142
|
-
rootOrgId?: string | undefined;
|
|
143
|
-
} | RNSignerClient) & ({
|
|
104
|
+
client: {
|
|
144
105
|
connection: ({
|
|
145
106
|
apiKey: string;
|
|
146
107
|
rpcUrl?: undefined;
|
|
147
108
|
jwt?: undefined;
|
|
148
|
-
}
|
|
149
|
-
chainAgnosticUrl?: string | undefined;
|
|
150
|
-
}) | ({
|
|
109
|
+
} | {
|
|
151
110
|
jwt: string;
|
|
152
111
|
rpcUrl?: undefined;
|
|
153
112
|
apiKey?: undefined;
|
|
154
|
-
}
|
|
155
|
-
chainAgnosticUrl?: string | undefined;
|
|
156
|
-
}) | ({
|
|
113
|
+
} | {
|
|
157
114
|
rpcUrl: string;
|
|
158
115
|
apiKey?: undefined;
|
|
159
116
|
jwt?: undefined;
|
|
160
|
-
}
|
|
161
|
-
chainAgnosticUrl?: string | undefined;
|
|
162
|
-
}) | ({
|
|
117
|
+
} | {
|
|
163
118
|
rpcUrl: string;
|
|
164
119
|
jwt: string;
|
|
165
120
|
apiKey?: undefined;
|
|
166
|
-
} & {
|
|
121
|
+
}) & {
|
|
167
122
|
chainAgnosticUrl?: string | undefined;
|
|
168
|
-
}
|
|
123
|
+
};
|
|
169
124
|
oauthCallbackUrl: string;
|
|
170
125
|
rootOrgId?: string | undefined;
|
|
171
|
-
} | RNSignerClient
|
|
126
|
+
} | RNSignerClient;
|
|
172
127
|
sessionConfig?: {
|
|
173
128
|
sessionKey: string;
|
|
174
129
|
expirationTimeMs: number;
|
|
175
130
|
} | undefined;
|
|
176
131
|
}, {
|
|
177
|
-
client:
|
|
132
|
+
client: {
|
|
178
133
|
connection: ({
|
|
179
134
|
apiKey: string;
|
|
180
135
|
rpcUrl?: undefined;
|
|
181
136
|
jwt?: undefined;
|
|
182
|
-
}
|
|
183
|
-
chainAgnosticUrl?: string | undefined;
|
|
184
|
-
}) | ({
|
|
185
|
-
jwt: string;
|
|
186
|
-
rpcUrl?: undefined;
|
|
187
|
-
apiKey?: undefined;
|
|
188
|
-
} & {
|
|
189
|
-
chainAgnosticUrl?: string | undefined;
|
|
190
|
-
}) | ({
|
|
191
|
-
rpcUrl: string;
|
|
192
|
-
apiKey?: undefined;
|
|
193
|
-
jwt?: undefined;
|
|
194
|
-
} & {
|
|
195
|
-
chainAgnosticUrl?: string | undefined;
|
|
196
|
-
}) | ({
|
|
197
|
-
rpcUrl: string;
|
|
198
|
-
jwt: string;
|
|
199
|
-
apiKey?: undefined;
|
|
200
|
-
} & {
|
|
201
|
-
chainAgnosticUrl?: string | undefined;
|
|
202
|
-
});
|
|
203
|
-
rootOrgId?: string | undefined;
|
|
204
|
-
oauthCallbackUrl?: string | undefined;
|
|
205
|
-
} | RNSignerClient) & ({
|
|
206
|
-
connection: ({
|
|
207
|
-
apiKey: string;
|
|
208
|
-
rpcUrl?: undefined;
|
|
209
|
-
jwt?: undefined;
|
|
210
|
-
} & {
|
|
211
|
-
chainAgnosticUrl?: string | undefined;
|
|
212
|
-
}) | ({
|
|
137
|
+
} | {
|
|
213
138
|
jwt: string;
|
|
214
139
|
rpcUrl?: undefined;
|
|
215
140
|
apiKey?: undefined;
|
|
216
|
-
}
|
|
217
|
-
chainAgnosticUrl?: string | undefined;
|
|
218
|
-
}) | ({
|
|
141
|
+
} | {
|
|
219
142
|
rpcUrl: string;
|
|
220
143
|
apiKey?: undefined;
|
|
221
144
|
jwt?: undefined;
|
|
222
|
-
}
|
|
223
|
-
chainAgnosticUrl?: string | undefined;
|
|
224
|
-
}) | ({
|
|
145
|
+
} | {
|
|
225
146
|
rpcUrl: string;
|
|
226
147
|
jwt: string;
|
|
227
148
|
apiKey?: undefined;
|
|
228
|
-
} & {
|
|
149
|
+
}) & {
|
|
229
150
|
chainAgnosticUrl?: string | undefined;
|
|
230
|
-
}
|
|
151
|
+
};
|
|
231
152
|
rootOrgId?: string | undefined;
|
|
232
153
|
oauthCallbackUrl?: string | undefined;
|
|
233
|
-
} | RNSignerClient
|
|
154
|
+
} | RNSignerClient;
|
|
234
155
|
sessionConfig?: {
|
|
235
156
|
sessionKey?: string | undefined;
|
|
236
157
|
expirationTimeMs?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signer.d.ts","sourceRoot":"","sources":["../../../../src/signer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAElB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAA8B,MAAM,aAAa,CAAC;AAEzE,QAAA,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"signer.d.ts","sourceRoot":"","sources":["../../../../src/signer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAElB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAA8B,MAAM,aAAa,CAAC;AAEzE,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS7B,CAAC;AAEL,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,qBAAa,wBAAyB,SAAQ,iBAAiB,CAAC,cAAc,CAAC;IAC7E,OAAO,CAAC,MAAM,CAAC,QAAQ,CAA2B;IAElD,OAAO;WAwBO,WAAW,CAAC,MAAM,EAAE,qBAAqB;CAMxD;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,qBAAqB,4BAI5D;AAED,MAAM,MAAM,mBAAmB,GAAG,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base64UrlEncode.d.ts","sourceRoot":"","sources":["../../../../../src/utils/base64UrlEncode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"base64UrlEncode.d.ts","sourceRoot":"","sources":["../../../../../src/utils/base64UrlEncode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,GAC1B,WAAW,WAAW,GAAG,eAAe,KACvC,MAMF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseUrlParams.d.ts","sourceRoot":"","sources":["../../../../../src/utils/parseUrlParams.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"parseUrlParams.d.ts","sourceRoot":"","sources":["../../../../../src/utils/parseUrlParams.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,GAAI,KAAK,MAAM,2BAa5C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@account-kit/react-native-signer",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.35.1",
|
|
4
4
|
"author": "Alchemy",
|
|
5
5
|
"description": "React Native compatible Account Kit signer",
|
|
6
6
|
"source": "./src/index.tsx",
|
|
@@ -63,29 +63,18 @@
|
|
|
63
63
|
"registry": "https://registry.npmjs.org/"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@commitlint/config-conventional": "^17.0.2",
|
|
67
|
-
"@evilmartians/lefthook": "^1.5.0",
|
|
68
66
|
"@react-native-community/cli": "15.0.1",
|
|
69
|
-
"@react-native/eslint-config": "
|
|
70
|
-
"@release-it/conventional-changelog": "^5.0.0",
|
|
67
|
+
"@react-native/eslint-config": "0.76.5",
|
|
71
68
|
"@types/express": "^5.0.0",
|
|
72
69
|
"@types/jest": "^29.5.5",
|
|
73
70
|
"@types/react": "^18.2.44",
|
|
74
|
-
"commitlint": "^17.0.2",
|
|
75
71
|
"del-cli": "^5.1.0",
|
|
76
|
-
"eslint": "^8.51.0",
|
|
77
|
-
"eslint-config-prettier": "^9.0.0",
|
|
78
|
-
"eslint-plugin-prettier": "^5.0.1",
|
|
79
72
|
"jest": "^29.7.0",
|
|
80
|
-
"prettier": "^3.0.3",
|
|
81
73
|
"react": "18.3.1",
|
|
82
74
|
"react-native": "0.76.5",
|
|
83
75
|
"react-native-builder-bob": "^0.30.3",
|
|
84
76
|
"react-native-inappbrowser-reborn": "^3.7.0",
|
|
85
77
|
"react-native-mmkv": "^3.1.0",
|
|
86
|
-
"release-it": "^15.0.0",
|
|
87
|
-
"turbo": "^1.10.7",
|
|
88
|
-
"typescript": "^5.2.2",
|
|
89
78
|
"typescript-template": "*"
|
|
90
79
|
},
|
|
91
80
|
"resolutions": {
|
|
@@ -149,9 +138,9 @@
|
|
|
149
138
|
"version": "0.42.2"
|
|
150
139
|
},
|
|
151
140
|
"dependencies": {
|
|
152
|
-
"@aa-sdk/core": "^4.
|
|
153
|
-
"@account-kit/signer": "^4.
|
|
154
|
-
"viem": "
|
|
141
|
+
"@aa-sdk/core": "^4.35.1",
|
|
142
|
+
"@account-kit/signer": "^4.35.1",
|
|
143
|
+
"viem": "2.29.2"
|
|
155
144
|
},
|
|
156
|
-
"gitHead": "
|
|
145
|
+
"gitHead": "31e2138c2dd08c5b32cc2d67b3f0d7b2a7d21f4f"
|
|
157
146
|
}
|
package/src/NativeTEKStamper.ts
CHANGED
package/src/client.ts
CHANGED
|
@@ -62,7 +62,7 @@ export class RNSignerClient extends BaseSignerClient<undefined> {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
override async submitOtpCode(
|
|
65
|
-
args: Omit<OtpParams, "targetPublicKey"
|
|
65
|
+
args: Omit<OtpParams, "targetPublicKey">,
|
|
66
66
|
): Promise<SubmitOtpCodeResponse> {
|
|
67
67
|
this.eventEmitter.emit("authenticating", { type: "otpVerify" });
|
|
68
68
|
const publicKey = await this.stamper.init();
|
|
@@ -94,12 +94,12 @@ export class RNSignerClient extends BaseSignerClient<undefined> {
|
|
|
94
94
|
|
|
95
95
|
// Otherwise, it's truly an error:
|
|
96
96
|
throw new Error(
|
|
97
|
-
"Failed to submit OTP code. Server did not return required fields."
|
|
97
|
+
"Failed to submit OTP code. Server did not return required fields.",
|
|
98
98
|
);
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
override async createAccount(
|
|
102
|
-
params: CreateAccountParams
|
|
102
|
+
params: CreateAccountParams,
|
|
103
103
|
): Promise<SignupResponse> {
|
|
104
104
|
if (params.type !== "email") {
|
|
105
105
|
throw new Error("Only email account creation is supported");
|
|
@@ -121,7 +121,7 @@ export class RNSignerClient extends BaseSignerClient<undefined> {
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
override async initEmailAuth(
|
|
124
|
-
params: Omit<EmailAuthParams, "targetPublicKey"
|
|
124
|
+
params: Omit<EmailAuthParams, "targetPublicKey">,
|
|
125
125
|
): Promise<{ orgId: string; otpId?: string; multiFactors?: MfaFactor[] }> {
|
|
126
126
|
this.eventEmitter.emit("authenticating", { type: "email" });
|
|
127
127
|
const targetPublicKey = await this.stamper.init();
|
|
@@ -174,7 +174,7 @@ export class RNSignerClient extends BaseSignerClient<undefined> {
|
|
|
174
174
|
return user;
|
|
175
175
|
}
|
|
176
176
|
override oauthWithRedirect = async (
|
|
177
|
-
args: Extract<OauthParams, { mode: "redirect" }
|
|
177
|
+
args: Extract<OauthParams, { mode: "redirect" }>,
|
|
178
178
|
): Promise<User> => {
|
|
179
179
|
// Ensure the In-App Browser required for authentication is available
|
|
180
180
|
if (!(await InAppBrowser.isAvailable())) {
|
|
@@ -233,7 +233,7 @@ export class RNSignerClient extends BaseSignerClient<undefined> {
|
|
|
233
233
|
};
|
|
234
234
|
|
|
235
235
|
override oauthWithPopup(
|
|
236
|
-
_args: Extract<OauthParams, { mode: "popup" }
|
|
236
|
+
_args: Extract<OauthParams, { mode: "popup" }>,
|
|
237
237
|
): Promise<User> {
|
|
238
238
|
throw new Error("Method not implemented");
|
|
239
239
|
}
|
|
@@ -256,7 +256,7 @@ export class RNSignerClient extends BaseSignerClient<undefined> {
|
|
|
256
256
|
|
|
257
257
|
protected override getWebAuthnAttestation(
|
|
258
258
|
_options: CredentialCreationOptions,
|
|
259
|
-
_userDetails?: { username: string }
|
|
259
|
+
_userDetails?: { username: string },
|
|
260
260
|
): Promise<GetWebAuthnAttestationResult> {
|
|
261
261
|
throw new Error("Method not implemented.");
|
|
262
262
|
}
|
package/src/errors.ts
CHANGED
|
@@ -4,7 +4,7 @@ export class InAppBrowserUnavailableError extends BaseError {
|
|
|
4
4
|
override name = "InAppBrowserUnavailableError";
|
|
5
5
|
constructor() {
|
|
6
6
|
super(
|
|
7
|
-
"In-App Browser is not available. Please authenticate with a different method."
|
|
7
|
+
"In-App Browser is not available. Please authenticate with a different method.",
|
|
8
8
|
);
|
|
9
9
|
}
|
|
10
10
|
}
|