@1sat/connect 0.0.15 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connectWallet.d.ts +10 -13
- package/dist/connectWallet.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +998 -74510
- package/dist/sigma-oauth.d.ts +41 -41
- package/package.json +1 -1
package/dist/sigma-oauth.d.ts
CHANGED
|
@@ -80,7 +80,7 @@ declare const baseAuthClient: {
|
|
|
80
80
|
additionalData?: Record<string, any> | undefined;
|
|
81
81
|
} & {
|
|
82
82
|
fetchOptions?: FetchOptions | undefined;
|
|
83
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
83
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
84
84
|
redirect: boolean;
|
|
85
85
|
url: string;
|
|
86
86
|
} | (Omit<{
|
|
@@ -115,7 +115,7 @@ declare const baseAuthClient: {
|
|
|
115
115
|
signOut: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
116
116
|
query?: Record<string, any> | undefined;
|
|
117
117
|
fetchOptions?: FetchOptions | undefined;
|
|
118
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
118
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
119
119
|
success: boolean;
|
|
120
120
|
}, {
|
|
121
121
|
code?: string | undefined;
|
|
@@ -137,7 +137,7 @@ declare const baseAuthClient: {
|
|
|
137
137
|
image?: string | undefined;
|
|
138
138
|
callbackURL?: string | undefined;
|
|
139
139
|
fetchOptions?: FetchOptions | undefined;
|
|
140
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
140
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<(Omit<{
|
|
141
141
|
token: null;
|
|
142
142
|
user: {
|
|
143
143
|
id: string;
|
|
@@ -198,7 +198,7 @@ declare const baseAuthClient: {
|
|
|
198
198
|
rememberMe?: boolean | undefined;
|
|
199
199
|
} & {
|
|
200
200
|
fetchOptions?: FetchOptions | undefined;
|
|
201
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
201
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<Omit<{
|
|
202
202
|
redirect: boolean;
|
|
203
203
|
token: string;
|
|
204
204
|
url?: string | undefined;
|
|
@@ -237,7 +237,7 @@ declare const baseAuthClient: {
|
|
|
237
237
|
token?: string | undefined;
|
|
238
238
|
} & {
|
|
239
239
|
fetchOptions?: FetchOptions | undefined;
|
|
240
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
240
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
241
241
|
status: boolean;
|
|
242
242
|
}, {
|
|
243
243
|
code?: string | undefined;
|
|
@@ -253,7 +253,7 @@ declare const baseAuthClient: {
|
|
|
253
253
|
callbackURL?: string | undefined;
|
|
254
254
|
};
|
|
255
255
|
fetchOptions?: FetchOptions | undefined;
|
|
256
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
256
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<void | {
|
|
257
257
|
status: boolean;
|
|
258
258
|
}>, {
|
|
259
259
|
code?: string | undefined;
|
|
@@ -268,7 +268,7 @@ declare const baseAuthClient: {
|
|
|
268
268
|
callbackURL?: string | undefined;
|
|
269
269
|
} & {
|
|
270
270
|
fetchOptions?: FetchOptions | undefined;
|
|
271
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
271
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
272
272
|
status: boolean;
|
|
273
273
|
}, {
|
|
274
274
|
code?: string | undefined;
|
|
@@ -283,7 +283,7 @@ declare const baseAuthClient: {
|
|
|
283
283
|
callbackURL?: string | undefined;
|
|
284
284
|
} & {
|
|
285
285
|
fetchOptions?: FetchOptions | undefined;
|
|
286
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
286
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
287
287
|
status: boolean;
|
|
288
288
|
}, {
|
|
289
289
|
code?: string | undefined;
|
|
@@ -300,7 +300,7 @@ declare const baseAuthClient: {
|
|
|
300
300
|
revokeOtherSessions?: boolean | undefined;
|
|
301
301
|
} & {
|
|
302
302
|
fetchOptions?: FetchOptions | undefined;
|
|
303
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
303
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<Omit<{
|
|
304
304
|
token: string | null;
|
|
305
305
|
user: {
|
|
306
306
|
id: string;
|
|
@@ -336,7 +336,7 @@ declare const baseAuthClient: {
|
|
|
336
336
|
} & {
|
|
337
337
|
updateSession: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<Partial<{}>> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<Partial<{}> & {
|
|
338
338
|
fetchOptions?: FetchOptions | undefined;
|
|
339
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
339
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
340
340
|
session: {
|
|
341
341
|
id: string;
|
|
342
342
|
createdAt: Date;
|
|
@@ -358,7 +358,7 @@ declare const baseAuthClient: {
|
|
|
358
358
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<import("better-auth/client").InferUserUpdateCtx<{
|
|
359
359
|
baseURL: string;
|
|
360
360
|
plugins: import("better-auth").BetterAuthClientPlugin[];
|
|
361
|
-
}, FetchOptions>> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
361
|
+
}, FetchOptions>> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
362
362
|
status: boolean;
|
|
363
363
|
}, {
|
|
364
364
|
code?: string | undefined;
|
|
@@ -375,7 +375,7 @@ declare const baseAuthClient: {
|
|
|
375
375
|
token?: string | undefined;
|
|
376
376
|
} & {
|
|
377
377
|
fetchOptions?: FetchOptions | undefined;
|
|
378
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
378
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
379
379
|
success: boolean;
|
|
380
380
|
message: string;
|
|
381
381
|
}, {
|
|
@@ -391,7 +391,7 @@ declare const baseAuthClient: {
|
|
|
391
391
|
redirectTo?: string | undefined;
|
|
392
392
|
} & {
|
|
393
393
|
fetchOptions?: FetchOptions | undefined;
|
|
394
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
394
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
395
395
|
status: boolean;
|
|
396
396
|
message: string;
|
|
397
397
|
}, {
|
|
@@ -409,7 +409,7 @@ declare const baseAuthClient: {
|
|
|
409
409
|
callbackURL: string;
|
|
410
410
|
};
|
|
411
411
|
fetchOptions?: FetchOptions | undefined;
|
|
412
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
412
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<never, {
|
|
413
413
|
code?: string | undefined;
|
|
414
414
|
message?: string | undefined;
|
|
415
415
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
@@ -418,7 +418,7 @@ declare const baseAuthClient: {
|
|
|
418
418
|
listSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
419
419
|
query?: Record<string, any> | undefined;
|
|
420
420
|
fetchOptions?: FetchOptions | undefined;
|
|
421
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
421
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<import("better-auth").Prettify<{
|
|
422
422
|
id: string;
|
|
423
423
|
createdAt: Date;
|
|
424
424
|
updatedAt: Date;
|
|
@@ -438,7 +438,7 @@ declare const baseAuthClient: {
|
|
|
438
438
|
token: string;
|
|
439
439
|
} & {
|
|
440
440
|
fetchOptions?: FetchOptions | undefined;
|
|
441
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
441
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
442
442
|
status: boolean;
|
|
443
443
|
}, {
|
|
444
444
|
code?: string | undefined;
|
|
@@ -448,7 +448,7 @@ declare const baseAuthClient: {
|
|
|
448
448
|
revokeSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
449
449
|
query?: Record<string, any> | undefined;
|
|
450
450
|
fetchOptions?: FetchOptions | undefined;
|
|
451
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
451
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
452
452
|
status: boolean;
|
|
453
453
|
}, {
|
|
454
454
|
code?: string | undefined;
|
|
@@ -458,7 +458,7 @@ declare const baseAuthClient: {
|
|
|
458
458
|
revokeOtherSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
459
459
|
query?: Record<string, any> | undefined;
|
|
460
460
|
fetchOptions?: FetchOptions | undefined;
|
|
461
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
461
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
462
462
|
status: boolean;
|
|
463
463
|
}, {
|
|
464
464
|
code?: string | undefined;
|
|
@@ -497,7 +497,7 @@ declare const baseAuthClient: {
|
|
|
497
497
|
additionalData?: Record<string, any> | undefined;
|
|
498
498
|
} & {
|
|
499
499
|
fetchOptions?: FetchOptions | undefined;
|
|
500
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
500
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
501
501
|
url: string;
|
|
502
502
|
redirect: boolean;
|
|
503
503
|
}, {
|
|
@@ -508,7 +508,7 @@ declare const baseAuthClient: {
|
|
|
508
508
|
listAccounts: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
509
509
|
query?: Record<string, any> | undefined;
|
|
510
510
|
fetchOptions?: FetchOptions | undefined;
|
|
511
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
511
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
512
512
|
scopes: string[];
|
|
513
513
|
id: string;
|
|
514
514
|
createdAt: Date;
|
|
@@ -531,7 +531,7 @@ declare const baseAuthClient: {
|
|
|
531
531
|
callbackURL?: string | undefined;
|
|
532
532
|
};
|
|
533
533
|
fetchOptions?: FetchOptions | undefined;
|
|
534
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
534
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
535
535
|
success: boolean;
|
|
536
536
|
message: string;
|
|
537
537
|
}, {
|
|
@@ -548,7 +548,7 @@ declare const baseAuthClient: {
|
|
|
548
548
|
accountId?: string | undefined;
|
|
549
549
|
} & {
|
|
550
550
|
fetchOptions?: FetchOptions | undefined;
|
|
551
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
551
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
552
552
|
status: boolean;
|
|
553
553
|
}, {
|
|
554
554
|
code?: string | undefined;
|
|
@@ -565,7 +565,7 @@ declare const baseAuthClient: {
|
|
|
565
565
|
userId?: string | undefined;
|
|
566
566
|
} & {
|
|
567
567
|
fetchOptions?: FetchOptions | undefined;
|
|
568
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
568
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
569
569
|
accessToken: string | undefined;
|
|
570
570
|
refreshToken: string;
|
|
571
571
|
accessTokenExpiresAt: Date | undefined;
|
|
@@ -589,7 +589,7 @@ declare const baseAuthClient: {
|
|
|
589
589
|
userId?: string | undefined;
|
|
590
590
|
} & {
|
|
591
591
|
fetchOptions?: FetchOptions | undefined;
|
|
592
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("
|
|
592
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
593
593
|
accessToken: string;
|
|
594
594
|
accessTokenExpiresAt: Date | undefined;
|
|
595
595
|
scopes: string[];
|
|
@@ -606,7 +606,7 @@ declare const baseAuthClient: {
|
|
|
606
606
|
accountId?: string | undefined;
|
|
607
607
|
} | undefined;
|
|
608
608
|
fetchOptions?: FetchOptions | undefined;
|
|
609
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
609
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
610
610
|
user: import("better-auth").OAuth2UserInfo;
|
|
611
611
|
data: Record<string, any>;
|
|
612
612
|
}, {
|
|
@@ -623,7 +623,7 @@ declare const baseAuthClient: {
|
|
|
623
623
|
disableRefresh?: unknown;
|
|
624
624
|
} | undefined;
|
|
625
625
|
fetchOptions?: FetchOptions | undefined;
|
|
626
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("
|
|
626
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
627
627
|
user: import("better-auth").StripEmptyObjects<{
|
|
628
628
|
id: string;
|
|
629
629
|
createdAt: Date;
|
|
@@ -648,7 +648,7 @@ declare const baseAuthClient: {
|
|
|
648
648
|
message?: string | undefined;
|
|
649
649
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
650
650
|
} & {
|
|
651
|
-
useSession: import("
|
|
651
|
+
useSession: import("better-auth/client").Atom<{
|
|
652
652
|
data: {
|
|
653
653
|
user: import("better-auth").StripEmptyObjects<{
|
|
654
654
|
id: string;
|
|
@@ -670,28 +670,28 @@ declare const baseAuthClient: {
|
|
|
670
670
|
userAgent?: string | null | undefined;
|
|
671
671
|
}>;
|
|
672
672
|
} | null;
|
|
673
|
-
error: import("
|
|
673
|
+
error: import("better-auth/client").BetterFetchError | null;
|
|
674
674
|
isPending: boolean;
|
|
675
675
|
isRefetching: boolean;
|
|
676
676
|
refetch: (queryParams?: {
|
|
677
677
|
query?: import("better-auth").SessionQueryParams;
|
|
678
678
|
} | undefined) => Promise<void>;
|
|
679
679
|
}>;
|
|
680
|
-
$fetch: import("
|
|
681
|
-
plugins: (import("
|
|
680
|
+
$fetch: import("better-auth/client").BetterFetch<{
|
|
681
|
+
plugins: (import("better-auth/client").BetterFetchPlugin<Record<string, any>> | {
|
|
682
682
|
id: string;
|
|
683
683
|
name: string;
|
|
684
684
|
hooks: {
|
|
685
|
-
onSuccess(context: import("
|
|
685
|
+
onSuccess(context: import("better-auth/client").SuccessContext<any>): void;
|
|
686
686
|
};
|
|
687
687
|
} | {
|
|
688
688
|
id: string;
|
|
689
689
|
name: string;
|
|
690
690
|
hooks: {
|
|
691
|
-
onSuccess: ((context: import("
|
|
692
|
-
onError: ((context: import("
|
|
693
|
-
onRequest: (<T extends Record<string, any>>(context: import("
|
|
694
|
-
onResponse: ((context: import("
|
|
691
|
+
onSuccess: ((context: import("better-auth/client").SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
692
|
+
onError: ((context: import("better-auth/client").ErrorContext) => Promise<void> | void) | undefined;
|
|
693
|
+
onRequest: (<T extends Record<string, any>>(context: import("better-auth/client").RequestContext<T>) => Promise<import("better-auth/client").RequestContext | void> | import("better-auth/client").RequestContext | void) | undefined;
|
|
694
|
+
onResponse: ((context: import("better-auth/client").ResponseContext) => Promise<Response | void | import("better-auth/client").ResponseContext> | Response | import("better-auth/client").ResponseContext | void) | undefined;
|
|
695
695
|
};
|
|
696
696
|
})[];
|
|
697
697
|
cache?: RequestCache | undefined;
|
|
@@ -711,12 +711,12 @@ declare const baseAuthClient: {
|
|
|
711
711
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
712
712
|
signal?: (AbortSignal | null) | undefined;
|
|
713
713
|
window?: null | undefined;
|
|
714
|
-
onRetry?: ((response: import("
|
|
714
|
+
onRetry?: ((response: import("better-auth/client").ResponseContext) => Promise<void> | void) | undefined;
|
|
715
715
|
hookOptions?: {
|
|
716
716
|
cloneResponse?: boolean;
|
|
717
717
|
} | undefined;
|
|
718
718
|
timeout?: number | undefined;
|
|
719
|
-
customFetchImpl: import("
|
|
719
|
+
customFetchImpl: import("better-auth/client").FetchEsque;
|
|
720
720
|
baseURL: string;
|
|
721
721
|
throw?: boolean | undefined;
|
|
722
722
|
auth?: ({
|
|
@@ -736,17 +736,17 @@ declare const baseAuthClient: {
|
|
|
736
736
|
params?: any;
|
|
737
737
|
duplex?: "full" | "half" | undefined;
|
|
738
738
|
jsonParser: (text: string) => Promise<any> | any;
|
|
739
|
-
retry?: import("
|
|
739
|
+
retry?: import("better-auth/client").RetryOptions | undefined;
|
|
740
740
|
retryAttempt?: number | undefined;
|
|
741
|
-
output?: (import("
|
|
742
|
-
errorSchema?: import("
|
|
741
|
+
output?: (import("better-auth/client").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
742
|
+
errorSchema?: import("better-auth/client").StandardSchemaV1 | undefined;
|
|
743
743
|
disableValidation?: boolean | undefined;
|
|
744
744
|
disableSignal?: boolean | undefined;
|
|
745
745
|
}, unknown, unknown, {}>;
|
|
746
746
|
$store: {
|
|
747
747
|
notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
|
|
748
748
|
listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
|
|
749
|
-
atoms: Record<string, import("
|
|
749
|
+
atoms: Record<string, import("better-auth/client").WritableAtom<any>>;
|
|
750
750
|
};
|
|
751
751
|
$Infer: {
|
|
752
752
|
Session: {
|