@atproto/pds 0.4.72 → 0.4.74
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +22 -0
- package/dist/account-manager/helpers/account.d.ts +1 -1
- package/dist/account-manager/helpers/device-account.d.ts +6 -6
- package/dist/account-manager/helpers/token.d.ts +49 -49
- package/dist/api/com/atproto/server/createAccount.d.ts.map +1 -1
- package/dist/api/com/atproto/server/createAccount.js +3 -5
- package/dist/api/com/atproto/server/createAccount.js.map +1 -1
- package/dist/api/com/atproto/server/updateEmail.d.ts.map +1 -1
- package/dist/api/com/atproto/server/updateEmail.js +3 -2
- package/dist/api/com/atproto/server/updateEmail.js.map +1 -1
- package/dist/auth-routes.d.ts.map +1 -1
- package/dist/auth-routes.js +4 -0
- package/dist/auth-routes.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +9822 -22228
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +7 -1
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/sequencer/events.d.ts +3 -3
- package/package.json +7 -7
- package/src/api/com/atproto/server/createAccount.ts +4 -2
- package/src/api/com/atproto/server/updateEmail.ts +3 -2
- package/src/auth-routes.ts +7 -0
- package/src/lexicon/lexicons.ts +9 -4
- package/src/lexicon/types/app/bsky/actor/defs.ts +7 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# @atproto/pds
|
2
2
|
|
3
|
+
## 0.4.74
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#3092](https://github.com/bluesky-social/atproto/pull/3092) [`1e367cba2`](https://github.com/bluesky-social/atproto/commit/1e367cba2bd1ff5560c2ec5c2a5d348cd9342b65) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Improve email validation logic
|
8
|
+
|
9
|
+
- [#3066](https://github.com/bluesky-social/atproto/pull/3066) [`5ddd51235`](https://github.com/bluesky-social/atproto/commit/5ddd51235c7e064bddcad2dd218df05d144d18d3) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Prevent use of non https: resource uri in production environments
|
10
|
+
|
11
|
+
- [#3092](https://github.com/bluesky-social/atproto/pull/3092) [`1e367cba2`](https://github.com/bluesky-social/atproto/commit/1e367cba2bd1ff5560c2ec5c2a5d348cd9342b65) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Update list of forbidden domain names in email addresses
|
12
|
+
|
13
|
+
- Updated dependencies []:
|
14
|
+
- @atproto/oauth-provider@0.2.8
|
15
|
+
|
16
|
+
## 0.4.73
|
17
|
+
|
18
|
+
### Patch Changes
|
19
|
+
|
20
|
+
- [#3082](https://github.com/bluesky-social/atproto/pull/3082) [`a3ce23c4c`](https://github.com/bluesky-social/atproto/commit/a3ce23c4ccf4f40998b9d1f5731e5c905390aedc) Thanks [@gaearon](https://github.com/gaearon)! - Add hotness as a thread sorting option
|
21
|
+
|
22
|
+
- Updated dependencies [[`a3ce23c4c`](https://github.com/bluesky-social/atproto/commit/a3ce23c4ccf4f40998b9d1f5731e5c905390aedc)]:
|
23
|
+
- @atproto/api@0.13.18
|
24
|
+
|
3
25
|
## 0.4.72
|
4
26
|
|
5
27
|
### Patch Changes
|
@@ -19,8 +19,8 @@ export declare enum AccountStatus {
|
|
19
19
|
Deactivated = "deactivated"
|
20
20
|
}
|
21
21
|
export declare const selectAccountQB: (db: AccountDb, flags?: AvailabilityFlags) => import("kysely/dist/cjs/parser/select-parser").QueryBuilderWithSelection<{
|
22
|
-
token: import("../db").Token;
|
23
22
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
23
|
+
token: import("../db").Token;
|
24
24
|
actor: import("../db").Actor;
|
25
25
|
device: import("../db").Device;
|
26
26
|
device_account: import("../db").DeviceAccount;
|
@@ -19,8 +19,8 @@ export declare const updateQB: (db: AccountDb, deviceId: DeviceId, did: string,
|
|
19
19
|
}) => import("kysely").UpdateQueryBuilder<import("kysely/dist/cjs/parser/table-parser").From<import("../db").DatabaseSchema, "device_account">, "device_account", "device_account", import("kysely").UpdateResult>;
|
20
20
|
export declare const createOrUpdateQB: (db: AccountDb, deviceId: DeviceId, did: string, remember: boolean) => import("kysely").InsertQueryBuilder<import("../db").DatabaseSchema, "device_account", import("kysely").InsertResult>;
|
21
21
|
export declare const getAccountInfoQB: (db: AccountDb, deviceId: DeviceId, did: string) => import("kysely").SelectQueryBuilder<{
|
22
|
-
token: import("../db").Token;
|
23
22
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
23
|
+
token: import("../db").Token;
|
24
24
|
actor: import("../db").Actor;
|
25
25
|
device: import("../db").Device;
|
26
26
|
device_account: DeviceAccount;
|
@@ -33,8 +33,8 @@ export declare const getAccountInfoQB: (db: AccountDb, deviceId: DeviceId, did:
|
|
33
33
|
invite_code_use: import("../db").InviteCodeUse;
|
34
34
|
email_token: import("../db").EmailToken;
|
35
35
|
}, "account" | "actor" | "device" | "device_account", Partial<Omit<{}, never>> & Partial<Omit<Partial<Omit<{}, never>>, never>> & import("kysely").Selection<{
|
36
|
-
token: import("../db").Token;
|
37
36
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
37
|
+
token: import("../db").Token;
|
38
38
|
actor: import("../db").Actor;
|
39
39
|
device: import("../db").Device;
|
40
40
|
device_account: DeviceAccount;
|
@@ -47,8 +47,8 @@ export declare const getAccountInfoQB: (db: AccountDb, deviceId: DeviceId, did:
|
|
47
47
|
invite_code_use: import("../db").InviteCodeUse;
|
48
48
|
email_token: import("../db").EmailToken;
|
49
49
|
}, "account" | "actor", "actor.did" | "account.email" | "account.invitesDisabled" | "account.emailConfirmedAt" | "actor.handle" | "actor.createdAt" | "actor.takedownRef" | "actor.deactivatedAt" | "actor.deleteAfter"> & import("kysely").Selection<{
|
50
|
-
token: import("../db").Token;
|
51
50
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
51
|
+
token: import("../db").Token;
|
52
52
|
actor: import("../db").Actor;
|
53
53
|
device: import("../db").Device;
|
54
54
|
device_account: DeviceAccount;
|
@@ -62,8 +62,8 @@ export declare const getAccountInfoQB: (db: AccountDb, deviceId: DeviceId, did:
|
|
62
62
|
email_token: import("../db").EmailToken;
|
63
63
|
}, "account" | "actor" | "device" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients">>;
|
64
64
|
export declare const listRememberedQB: (db: AccountDb, deviceId: DeviceId) => import("kysely").SelectQueryBuilder<{
|
65
|
-
token: import("../db").Token;
|
66
65
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
66
|
+
token: import("../db").Token;
|
67
67
|
actor: import("../db").Actor;
|
68
68
|
device: import("../db").Device;
|
69
69
|
device_account: DeviceAccount;
|
@@ -76,8 +76,8 @@ export declare const listRememberedQB: (db: AccountDb, deviceId: DeviceId) => im
|
|
76
76
|
invite_code_use: import("../db").InviteCodeUse;
|
77
77
|
email_token: import("../db").EmailToken;
|
78
78
|
}, "account" | "actor" | "device" | "device_account", Partial<Omit<{}, never>> & Partial<Omit<Partial<Omit<{}, never>>, never>> & import("kysely").Selection<{
|
79
|
-
token: import("../db").Token;
|
80
79
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
80
|
+
token: import("../db").Token;
|
81
81
|
actor: import("../db").Actor;
|
82
82
|
device: import("../db").Device;
|
83
83
|
device_account: DeviceAccount;
|
@@ -90,8 +90,8 @@ export declare const listRememberedQB: (db: AccountDb, deviceId: DeviceId) => im
|
|
90
90
|
invite_code_use: import("../db").InviteCodeUse;
|
91
91
|
email_token: import("../db").EmailToken;
|
92
92
|
}, "account" | "actor", "actor.did" | "account.email" | "account.invitesDisabled" | "account.emailConfirmedAt" | "actor.handle" | "actor.createdAt" | "actor.takedownRef" | "actor.deactivatedAt" | "actor.deleteAfter"> & import("kysely").Selection<{
|
93
|
-
token: import("../db").Token;
|
94
93
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
94
|
+
token: import("../db").Token;
|
95
95
|
actor: import("../db").Actor;
|
96
96
|
device: import("../db").Device;
|
97
97
|
device_account: DeviceAccount;
|
@@ -16,8 +16,8 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
16
16
|
tokenId?: TokenId;
|
17
17
|
currentRefreshToken?: RefreshToken;
|
18
18
|
}) => import("kysely").SelectQueryBuilder<{
|
19
|
-
token: Token;
|
20
19
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
20
|
+
token: Token;
|
21
21
|
actor: import("../db").Actor;
|
22
22
|
device: import("../db").Device;
|
23
23
|
device_account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").DeviceAccount>;
|
@@ -30,8 +30,8 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
30
30
|
invite_code_use: import("../db").InviteCodeUse;
|
31
31
|
email_token: import("../db").EmailToken;
|
32
32
|
}, "token" | "account" | "actor" | "device_account", import("kysely/dist/cjs/util/type-utils").MergePartial<import("kysely/dist/cjs/util/type-utils").MergePartial<import("kysely/dist/cjs/util/type-utils").MergePartial<import("kysely/dist/cjs/util/type-utils").MergePartial<Partial<Omit<{}, never>> & Partial<Omit<Partial<Omit<{}, never>>, never>> & import("kysely").Selection<{
|
33
|
-
token: Token;
|
34
33
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
34
|
+
token: Token;
|
35
35
|
actor: import("../db").Actor;
|
36
36
|
device: import("../db").Device;
|
37
37
|
device_account: import("../db").DeviceAccount;
|
@@ -44,8 +44,8 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
44
44
|
invite_code_use: import("../db").InviteCodeUse;
|
45
45
|
email_token: import("../db").EmailToken;
|
46
46
|
}, "account" | "actor", "actor.did" | "account.email" | "account.invitesDisabled" | "account.emailConfirmedAt" | "actor.handle" | "actor.createdAt" | "actor.takedownRef" | "actor.deactivatedAt" | "actor.deleteAfter"> & import("kysely").Selection<{
|
47
|
-
token: Token;
|
48
47
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
48
|
+
token: Token;
|
49
49
|
actor: import("../db").Actor;
|
50
50
|
device: import("../db").Device;
|
51
51
|
device_account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").DeviceAccount>;
|
@@ -57,9 +57,9 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
57
57
|
invite_code: import("../db").InviteCode;
|
58
58
|
invite_code_use: import("../db").InviteCodeUse;
|
59
59
|
email_token: import("../db").EmailToken;
|
60
|
-
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.
|
61
|
-
token: Token;
|
60
|
+
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.updatedAt" | "token.details" | "token.deviceId" | "token.clientId" | "token.clientAuth" | "token.parameters" | "token.expiresAt" | "token.currentRefreshToken">, Partial<Omit<{}, never>> & Partial<Omit<Partial<Omit<{}, never>>, never>> & import("kysely").Selection<{
|
62
61
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
62
|
+
token: Token;
|
63
63
|
actor: import("../db").Actor;
|
64
64
|
device: import("../db").Device;
|
65
65
|
device_account: import("../db").DeviceAccount;
|
@@ -72,8 +72,8 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
72
72
|
invite_code_use: import("../db").InviteCodeUse;
|
73
73
|
email_token: import("../db").EmailToken;
|
74
74
|
}, "account" | "actor", "actor.did" | "account.email" | "account.invitesDisabled" | "account.emailConfirmedAt" | "actor.handle" | "actor.createdAt" | "actor.takedownRef" | "actor.deactivatedAt" | "actor.deleteAfter"> & import("kysely").Selection<{
|
75
|
-
token: Token;
|
76
75
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
76
|
+
token: Token;
|
77
77
|
actor: import("../db").Actor;
|
78
78
|
device: import("../db").Device;
|
79
79
|
device_account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").DeviceAccount>;
|
@@ -85,9 +85,9 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
85
85
|
invite_code: import("../db").InviteCode;
|
86
86
|
invite_code_use: import("../db").InviteCodeUse;
|
87
87
|
email_token: import("../db").EmailToken;
|
88
|
-
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.
|
89
|
-
token: Token;
|
88
|
+
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.updatedAt" | "token.details" | "token.deviceId" | "token.clientId" | "token.clientAuth" | "token.parameters" | "token.expiresAt" | "token.currentRefreshToken">>, import("kysely/dist/cjs/util/type-utils").MergePartial<Partial<Omit<{}, never>> & Partial<Omit<Partial<Omit<{}, never>>, never>> & import("kysely").Selection<{
|
90
89
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
90
|
+
token: Token;
|
91
91
|
actor: import("../db").Actor;
|
92
92
|
device: import("../db").Device;
|
93
93
|
device_account: import("../db").DeviceAccount;
|
@@ -100,8 +100,8 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
100
100
|
invite_code_use: import("../db").InviteCodeUse;
|
101
101
|
email_token: import("../db").EmailToken;
|
102
102
|
}, "account" | "actor", "actor.did" | "account.email" | "account.invitesDisabled" | "account.emailConfirmedAt" | "actor.handle" | "actor.createdAt" | "actor.takedownRef" | "actor.deactivatedAt" | "actor.deleteAfter"> & import("kysely").Selection<{
|
103
|
-
token: Token;
|
104
103
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
104
|
+
token: Token;
|
105
105
|
actor: import("../db").Actor;
|
106
106
|
device: import("../db").Device;
|
107
107
|
device_account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").DeviceAccount>;
|
@@ -113,9 +113,9 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
113
113
|
invite_code: import("../db").InviteCode;
|
114
114
|
invite_code_use: import("../db").InviteCodeUse;
|
115
115
|
email_token: import("../db").EmailToken;
|
116
|
-
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.
|
117
|
-
token: Token;
|
116
|
+
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.updatedAt" | "token.details" | "token.deviceId" | "token.clientId" | "token.clientAuth" | "token.parameters" | "token.expiresAt" | "token.currentRefreshToken">, Partial<Omit<{}, never>> & Partial<Omit<Partial<Omit<{}, never>>, never>> & import("kysely").Selection<{
|
118
117
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
118
|
+
token: Token;
|
119
119
|
actor: import("../db").Actor;
|
120
120
|
device: import("../db").Device;
|
121
121
|
device_account: import("../db").DeviceAccount;
|
@@ -128,8 +128,8 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
128
128
|
invite_code_use: import("../db").InviteCodeUse;
|
129
129
|
email_token: import("../db").EmailToken;
|
130
130
|
}, "account" | "actor", "actor.did" | "account.email" | "account.invitesDisabled" | "account.emailConfirmedAt" | "actor.handle" | "actor.createdAt" | "actor.takedownRef" | "actor.deactivatedAt" | "actor.deleteAfter"> & import("kysely").Selection<{
|
131
|
-
token: Token;
|
132
131
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
132
|
+
token: Token;
|
133
133
|
actor: import("../db").Actor;
|
134
134
|
device: import("../db").Device;
|
135
135
|
device_account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").DeviceAccount>;
|
@@ -141,9 +141,9 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
141
141
|
invite_code: import("../db").InviteCode;
|
142
142
|
invite_code_use: import("../db").InviteCodeUse;
|
143
143
|
email_token: import("../db").EmailToken;
|
144
|
-
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.
|
145
|
-
token: Token;
|
144
|
+
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.updatedAt" | "token.details" | "token.deviceId" | "token.clientId" | "token.clientAuth" | "token.parameters" | "token.expiresAt" | "token.currentRefreshToken">>>, import("kysely/dist/cjs/util/type-utils").MergePartial<import("kysely/dist/cjs/util/type-utils").MergePartial<Partial<Omit<{}, never>> & Partial<Omit<Partial<Omit<{}, never>>, never>> & import("kysely").Selection<{
|
146
145
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
146
|
+
token: Token;
|
147
147
|
actor: import("../db").Actor;
|
148
148
|
device: import("../db").Device;
|
149
149
|
device_account: import("../db").DeviceAccount;
|
@@ -156,8 +156,8 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
156
156
|
invite_code_use: import("../db").InviteCodeUse;
|
157
157
|
email_token: import("../db").EmailToken;
|
158
158
|
}, "account" | "actor", "actor.did" | "account.email" | "account.invitesDisabled" | "account.emailConfirmedAt" | "actor.handle" | "actor.createdAt" | "actor.takedownRef" | "actor.deactivatedAt" | "actor.deleteAfter"> & import("kysely").Selection<{
|
159
|
-
token: Token;
|
160
159
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
160
|
+
token: Token;
|
161
161
|
actor: import("../db").Actor;
|
162
162
|
device: import("../db").Device;
|
163
163
|
device_account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").DeviceAccount>;
|
@@ -169,9 +169,9 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
169
169
|
invite_code: import("../db").InviteCode;
|
170
170
|
invite_code_use: import("../db").InviteCodeUse;
|
171
171
|
email_token: import("../db").EmailToken;
|
172
|
-
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.
|
173
|
-
token: Token;
|
172
|
+
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.updatedAt" | "token.details" | "token.deviceId" | "token.clientId" | "token.clientAuth" | "token.parameters" | "token.expiresAt" | "token.currentRefreshToken">, Partial<Omit<{}, never>> & Partial<Omit<Partial<Omit<{}, never>>, never>> & import("kysely").Selection<{
|
174
173
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
174
|
+
token: Token;
|
175
175
|
actor: import("../db").Actor;
|
176
176
|
device: import("../db").Device;
|
177
177
|
device_account: import("../db").DeviceAccount;
|
@@ -184,8 +184,8 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
184
184
|
invite_code_use: import("../db").InviteCodeUse;
|
185
185
|
email_token: import("../db").EmailToken;
|
186
186
|
}, "account" | "actor", "actor.did" | "account.email" | "account.invitesDisabled" | "account.emailConfirmedAt" | "actor.handle" | "actor.createdAt" | "actor.takedownRef" | "actor.deactivatedAt" | "actor.deleteAfter"> & import("kysely").Selection<{
|
187
|
-
token: Token;
|
188
187
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
188
|
+
token: Token;
|
189
189
|
actor: import("../db").Actor;
|
190
190
|
device: import("../db").Device;
|
191
191
|
device_account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").DeviceAccount>;
|
@@ -197,9 +197,9 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
197
197
|
invite_code: import("../db").InviteCode;
|
198
198
|
invite_code_use: import("../db").InviteCodeUse;
|
199
199
|
email_token: import("../db").EmailToken;
|
200
|
-
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.
|
201
|
-
token: Token;
|
200
|
+
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.updatedAt" | "token.details" | "token.deviceId" | "token.clientId" | "token.clientAuth" | "token.parameters" | "token.expiresAt" | "token.currentRefreshToken">>, import("kysely/dist/cjs/util/type-utils").MergePartial<Partial<Omit<{}, never>> & Partial<Omit<Partial<Omit<{}, never>>, never>> & import("kysely").Selection<{
|
202
201
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
202
|
+
token: Token;
|
203
203
|
actor: import("../db").Actor;
|
204
204
|
device: import("../db").Device;
|
205
205
|
device_account: import("../db").DeviceAccount;
|
@@ -212,8 +212,8 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
212
212
|
invite_code_use: import("../db").InviteCodeUse;
|
213
213
|
email_token: import("../db").EmailToken;
|
214
214
|
}, "account" | "actor", "actor.did" | "account.email" | "account.invitesDisabled" | "account.emailConfirmedAt" | "actor.handle" | "actor.createdAt" | "actor.takedownRef" | "actor.deactivatedAt" | "actor.deleteAfter"> & import("kysely").Selection<{
|
215
|
-
token: Token;
|
216
215
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
216
|
+
token: Token;
|
217
217
|
actor: import("../db").Actor;
|
218
218
|
device: import("../db").Device;
|
219
219
|
device_account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").DeviceAccount>;
|
@@ -225,9 +225,9 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
225
225
|
invite_code: import("../db").InviteCode;
|
226
226
|
invite_code_use: import("../db").InviteCodeUse;
|
227
227
|
email_token: import("../db").EmailToken;
|
228
|
-
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.
|
229
|
-
token: Token;
|
228
|
+
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.updatedAt" | "token.details" | "token.deviceId" | "token.clientId" | "token.clientAuth" | "token.parameters" | "token.expiresAt" | "token.currentRefreshToken">, Partial<Omit<{}, never>> & Partial<Omit<Partial<Omit<{}, never>>, never>> & import("kysely").Selection<{
|
230
229
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
230
|
+
token: Token;
|
231
231
|
actor: import("../db").Actor;
|
232
232
|
device: import("../db").Device;
|
233
233
|
device_account: import("../db").DeviceAccount;
|
@@ -240,8 +240,8 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
240
240
|
invite_code_use: import("../db").InviteCodeUse;
|
241
241
|
email_token: import("../db").EmailToken;
|
242
242
|
}, "account" | "actor", "actor.did" | "account.email" | "account.invitesDisabled" | "account.emailConfirmedAt" | "actor.handle" | "actor.createdAt" | "actor.takedownRef" | "actor.deactivatedAt" | "actor.deleteAfter"> & import("kysely").Selection<{
|
243
|
-
token: Token;
|
244
243
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
244
|
+
token: Token;
|
245
245
|
actor: import("../db").Actor;
|
246
246
|
device: import("../db").Device;
|
247
247
|
device_account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").DeviceAccount>;
|
@@ -253,9 +253,9 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
253
253
|
invite_code: import("../db").InviteCode;
|
254
254
|
invite_code_use: import("../db").InviteCodeUse;
|
255
255
|
email_token: import("../db").EmailToken;
|
256
|
-
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.
|
257
|
-
token: Token;
|
256
|
+
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.updatedAt" | "token.details" | "token.deviceId" | "token.clientId" | "token.clientAuth" | "token.parameters" | "token.expiresAt" | "token.currentRefreshToken">>>>, import("kysely/dist/cjs/util/type-utils").MergePartial<import("kysely/dist/cjs/util/type-utils").MergePartial<import("kysely/dist/cjs/util/type-utils").MergePartial<Partial<Omit<{}, never>> & Partial<Omit<Partial<Omit<{}, never>>, never>> & import("kysely").Selection<{
|
258
257
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
258
|
+
token: Token;
|
259
259
|
actor: import("../db").Actor;
|
260
260
|
device: import("../db").Device;
|
261
261
|
device_account: import("../db").DeviceAccount;
|
@@ -268,8 +268,8 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
268
268
|
invite_code_use: import("../db").InviteCodeUse;
|
269
269
|
email_token: import("../db").EmailToken;
|
270
270
|
}, "account" | "actor", "actor.did" | "account.email" | "account.invitesDisabled" | "account.emailConfirmedAt" | "actor.handle" | "actor.createdAt" | "actor.takedownRef" | "actor.deactivatedAt" | "actor.deleteAfter"> & import("kysely").Selection<{
|
271
|
-
token: Token;
|
272
271
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
272
|
+
token: Token;
|
273
273
|
actor: import("../db").Actor;
|
274
274
|
device: import("../db").Device;
|
275
275
|
device_account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").DeviceAccount>;
|
@@ -281,9 +281,9 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
281
281
|
invite_code: import("../db").InviteCode;
|
282
282
|
invite_code_use: import("../db").InviteCodeUse;
|
283
283
|
email_token: import("../db").EmailToken;
|
284
|
-
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.
|
285
|
-
token: Token;
|
284
|
+
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.updatedAt" | "token.details" | "token.deviceId" | "token.clientId" | "token.clientAuth" | "token.parameters" | "token.expiresAt" | "token.currentRefreshToken">, Partial<Omit<{}, never>> & Partial<Omit<Partial<Omit<{}, never>>, never>> & import("kysely").Selection<{
|
286
285
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
286
|
+
token: Token;
|
287
287
|
actor: import("../db").Actor;
|
288
288
|
device: import("../db").Device;
|
289
289
|
device_account: import("../db").DeviceAccount;
|
@@ -296,8 +296,8 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
296
296
|
invite_code_use: import("../db").InviteCodeUse;
|
297
297
|
email_token: import("../db").EmailToken;
|
298
298
|
}, "account" | "actor", "actor.did" | "account.email" | "account.invitesDisabled" | "account.emailConfirmedAt" | "actor.handle" | "actor.createdAt" | "actor.takedownRef" | "actor.deactivatedAt" | "actor.deleteAfter"> & import("kysely").Selection<{
|
299
|
-
token: Token;
|
300
299
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
300
|
+
token: Token;
|
301
301
|
actor: import("../db").Actor;
|
302
302
|
device: import("../db").Device;
|
303
303
|
device_account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").DeviceAccount>;
|
@@ -309,9 +309,9 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
309
309
|
invite_code: import("../db").InviteCode;
|
310
310
|
invite_code_use: import("../db").InviteCodeUse;
|
311
311
|
email_token: import("../db").EmailToken;
|
312
|
-
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.
|
313
|
-
token: Token;
|
312
|
+
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.updatedAt" | "token.details" | "token.deviceId" | "token.clientId" | "token.clientAuth" | "token.parameters" | "token.expiresAt" | "token.currentRefreshToken">>, import("kysely/dist/cjs/util/type-utils").MergePartial<Partial<Omit<{}, never>> & Partial<Omit<Partial<Omit<{}, never>>, never>> & import("kysely").Selection<{
|
314
313
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
314
|
+
token: Token;
|
315
315
|
actor: import("../db").Actor;
|
316
316
|
device: import("../db").Device;
|
317
317
|
device_account: import("../db").DeviceAccount;
|
@@ -324,8 +324,8 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
324
324
|
invite_code_use: import("../db").InviteCodeUse;
|
325
325
|
email_token: import("../db").EmailToken;
|
326
326
|
}, "account" | "actor", "actor.did" | "account.email" | "account.invitesDisabled" | "account.emailConfirmedAt" | "actor.handle" | "actor.createdAt" | "actor.takedownRef" | "actor.deactivatedAt" | "actor.deleteAfter"> & import("kysely").Selection<{
|
327
|
-
token: Token;
|
328
327
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
328
|
+
token: Token;
|
329
329
|
actor: import("../db").Actor;
|
330
330
|
device: import("../db").Device;
|
331
331
|
device_account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").DeviceAccount>;
|
@@ -337,9 +337,9 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
337
337
|
invite_code: import("../db").InviteCode;
|
338
338
|
invite_code_use: import("../db").InviteCodeUse;
|
339
339
|
email_token: import("../db").EmailToken;
|
340
|
-
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.
|
341
|
-
token: Token;
|
340
|
+
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.updatedAt" | "token.details" | "token.deviceId" | "token.clientId" | "token.clientAuth" | "token.parameters" | "token.expiresAt" | "token.currentRefreshToken">, Partial<Omit<{}, never>> & Partial<Omit<Partial<Omit<{}, never>>, never>> & import("kysely").Selection<{
|
342
341
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
342
|
+
token: Token;
|
343
343
|
actor: import("../db").Actor;
|
344
344
|
device: import("../db").Device;
|
345
345
|
device_account: import("../db").DeviceAccount;
|
@@ -352,8 +352,8 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
352
352
|
invite_code_use: import("../db").InviteCodeUse;
|
353
353
|
email_token: import("../db").EmailToken;
|
354
354
|
}, "account" | "actor", "actor.did" | "account.email" | "account.invitesDisabled" | "account.emailConfirmedAt" | "actor.handle" | "actor.createdAt" | "actor.takedownRef" | "actor.deactivatedAt" | "actor.deleteAfter"> & import("kysely").Selection<{
|
355
|
-
token: Token;
|
356
355
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
356
|
+
token: Token;
|
357
357
|
actor: import("../db").Actor;
|
358
358
|
device: import("../db").Device;
|
359
359
|
device_account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").DeviceAccount>;
|
@@ -365,9 +365,9 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
365
365
|
invite_code: import("../db").InviteCode;
|
366
366
|
invite_code_use: import("../db").InviteCodeUse;
|
367
367
|
email_token: import("../db").EmailToken;
|
368
|
-
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.
|
369
|
-
token: Token;
|
368
|
+
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.updatedAt" | "token.details" | "token.deviceId" | "token.clientId" | "token.clientAuth" | "token.parameters" | "token.expiresAt" | "token.currentRefreshToken">>>, import("kysely/dist/cjs/util/type-utils").MergePartial<import("kysely/dist/cjs/util/type-utils").MergePartial<Partial<Omit<{}, never>> & Partial<Omit<Partial<Omit<{}, never>>, never>> & import("kysely").Selection<{
|
370
369
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
370
|
+
token: Token;
|
371
371
|
actor: import("../db").Actor;
|
372
372
|
device: import("../db").Device;
|
373
373
|
device_account: import("../db").DeviceAccount;
|
@@ -380,8 +380,8 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
380
380
|
invite_code_use: import("../db").InviteCodeUse;
|
381
381
|
email_token: import("../db").EmailToken;
|
382
382
|
}, "account" | "actor", "actor.did" | "account.email" | "account.invitesDisabled" | "account.emailConfirmedAt" | "actor.handle" | "actor.createdAt" | "actor.takedownRef" | "actor.deactivatedAt" | "actor.deleteAfter"> & import("kysely").Selection<{
|
383
|
-
token: Token;
|
384
383
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
384
|
+
token: Token;
|
385
385
|
actor: import("../db").Actor;
|
386
386
|
device: import("../db").Device;
|
387
387
|
device_account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").DeviceAccount>;
|
@@ -393,9 +393,9 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
393
393
|
invite_code: import("../db").InviteCode;
|
394
394
|
invite_code_use: import("../db").InviteCodeUse;
|
395
395
|
email_token: import("../db").EmailToken;
|
396
|
-
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.
|
397
|
-
token: Token;
|
396
|
+
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.updatedAt" | "token.details" | "token.deviceId" | "token.clientId" | "token.clientAuth" | "token.parameters" | "token.expiresAt" | "token.currentRefreshToken">, Partial<Omit<{}, never>> & Partial<Omit<Partial<Omit<{}, never>>, never>> & import("kysely").Selection<{
|
398
397
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
398
|
+
token: Token;
|
399
399
|
actor: import("../db").Actor;
|
400
400
|
device: import("../db").Device;
|
401
401
|
device_account: import("../db").DeviceAccount;
|
@@ -408,8 +408,8 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
408
408
|
invite_code_use: import("../db").InviteCodeUse;
|
409
409
|
email_token: import("../db").EmailToken;
|
410
410
|
}, "account" | "actor", "actor.did" | "account.email" | "account.invitesDisabled" | "account.emailConfirmedAt" | "actor.handle" | "actor.createdAt" | "actor.takedownRef" | "actor.deactivatedAt" | "actor.deleteAfter"> & import("kysely").Selection<{
|
411
|
-
token: Token;
|
412
411
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
412
|
+
token: Token;
|
413
413
|
actor: import("../db").Actor;
|
414
414
|
device: import("../db").Device;
|
415
415
|
device_account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").DeviceAccount>;
|
@@ -421,9 +421,9 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
421
421
|
invite_code: import("../db").InviteCode;
|
422
422
|
invite_code_use: import("../db").InviteCodeUse;
|
423
423
|
email_token: import("../db").EmailToken;
|
424
|
-
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.
|
425
|
-
token: Token;
|
424
|
+
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.updatedAt" | "token.details" | "token.deviceId" | "token.clientId" | "token.clientAuth" | "token.parameters" | "token.expiresAt" | "token.currentRefreshToken">>, import("kysely/dist/cjs/util/type-utils").MergePartial<Partial<Omit<{}, never>> & Partial<Omit<Partial<Omit<{}, never>>, never>> & import("kysely").Selection<{
|
426
425
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
426
|
+
token: Token;
|
427
427
|
actor: import("../db").Actor;
|
428
428
|
device: import("../db").Device;
|
429
429
|
device_account: import("../db").DeviceAccount;
|
@@ -436,8 +436,8 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
436
436
|
invite_code_use: import("../db").InviteCodeUse;
|
437
437
|
email_token: import("../db").EmailToken;
|
438
438
|
}, "account" | "actor", "actor.did" | "account.email" | "account.invitesDisabled" | "account.emailConfirmedAt" | "actor.handle" | "actor.createdAt" | "actor.takedownRef" | "actor.deactivatedAt" | "actor.deleteAfter"> & import("kysely").Selection<{
|
439
|
-
token: Token;
|
440
439
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
440
|
+
token: Token;
|
441
441
|
actor: import("../db").Actor;
|
442
442
|
device: import("../db").Device;
|
443
443
|
device_account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").DeviceAccount>;
|
@@ -449,9 +449,9 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
449
449
|
invite_code: import("../db").InviteCode;
|
450
450
|
invite_code_use: import("../db").InviteCodeUse;
|
451
451
|
email_token: import("../db").EmailToken;
|
452
|
-
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.
|
453
|
-
token: Token;
|
452
|
+
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.updatedAt" | "token.details" | "token.deviceId" | "token.clientId" | "token.clientAuth" | "token.parameters" | "token.expiresAt" | "token.currentRefreshToken">, Partial<Omit<{}, never>> & Partial<Omit<Partial<Omit<{}, never>>, never>> & import("kysely").Selection<{
|
454
453
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
454
|
+
token: Token;
|
455
455
|
actor: import("../db").Actor;
|
456
456
|
device: import("../db").Device;
|
457
457
|
device_account: import("../db").DeviceAccount;
|
@@ -464,8 +464,8 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
464
464
|
invite_code_use: import("../db").InviteCodeUse;
|
465
465
|
email_token: import("../db").EmailToken;
|
466
466
|
}, "account" | "actor", "actor.did" | "account.email" | "account.invitesDisabled" | "account.emailConfirmedAt" | "actor.handle" | "actor.createdAt" | "actor.takedownRef" | "actor.deactivatedAt" | "actor.deleteAfter"> & import("kysely").Selection<{
|
467
|
-
token: Token;
|
468
467
|
account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").Account>;
|
468
|
+
token: Token;
|
469
469
|
actor: import("../db").Actor;
|
470
470
|
device: import("../db").Device;
|
471
471
|
device_account: import("kysely/dist/cjs/util/type-utils").Nullable<import("../db").DeviceAccount>;
|
@@ -477,7 +477,7 @@ export declare const findByQB: (db: AccountDb, search: {
|
|
477
477
|
invite_code: import("../db").InviteCode;
|
478
478
|
invite_code_use: import("../db").InviteCodeUse;
|
479
479
|
email_token: import("../db").EmailToken;
|
480
|
-
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.
|
480
|
+
}, "token" | "account" | "actor" | "device_account", "device_account.authenticatedAt" | "device_account.remember" | "device_account.authorizedClients" | "token.did" | "token.code" | "token.tokenId" | "token.createdAt" | "token.updatedAt" | "token.details" | "token.deviceId" | "token.clientId" | "token.clientAuth" | "token.parameters" | "token.expiresAt" | "token.currentRefreshToken">>>>>>;
|
481
481
|
export declare const removeByDidQB: (db: AccountDb, did: string) => import("kysely").DeleteQueryBuilder<import("kysely/dist/cjs/parser/table-parser").From<import("../db").DatabaseSchema, "token">, "token", import("kysely").DeleteResult>;
|
482
482
|
export declare const rotateQB: (db: AccountDb, id: number, newTokenId: TokenId, newRefreshToken: RefreshToken, newData: NewTokenData) => import("kysely").UpdateQueryBuilder<import("kysely/dist/cjs/parser/table-parser").From<import("../db").DatabaseSchema, "token">, "token", "token", import("kysely").UpdateResult>;
|
483
483
|
export declare const removeQB: (db: AccountDb, tokenId: TokenId) => import("kysely").DeleteQueryBuilder<import("kysely/dist/cjs/parser/table-parser").From<import("../db").DatabaseSchema, "token">, "token", import("kysely").DeleteResult>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createAccount.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/createAccount.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"createAccount.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/createAccount.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAE5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAI5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAiFvD"}
|
@@ -22,9 +22,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
22
|
__setModuleDefault(result, mod);
|
23
23
|
return result;
|
24
24
|
};
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
27
|
-
};
|
28
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
26
|
exports.default = default_1;
|
30
27
|
const common_1 = require("@atproto/common");
|
@@ -32,7 +29,8 @@ const identity_1 = require("@atproto/identity");
|
|
32
29
|
const xrpc_server_1 = require("@atproto/xrpc-server");
|
33
30
|
const crypto_1 = require("@atproto/crypto");
|
34
31
|
const plc = __importStar(require("@did-plc/lib"));
|
35
|
-
const
|
32
|
+
const address_1 = require("@hapi/address");
|
33
|
+
const disposable_email_domains_js_1 = require("disposable-email-domains-js");
|
36
34
|
const handle_1 = require("../../../../handle");
|
37
35
|
const util_1 = require("./util");
|
38
36
|
const account_manager_1 = require("../../../../account-manager");
|
@@ -159,7 +157,7 @@ const validateInputsForLocalPds = async (ctx, input, requester) => {
|
|
159
157
|
if (!email) {
|
160
158
|
throw new xrpc_server_1.InvalidRequestError('Email is required');
|
161
159
|
}
|
162
|
-
else if (!
|
160
|
+
else if (!(0, address_1.isEmailValid)(email) || (0, disposable_email_domains_js_1.isDisposableEmail)(email)) {
|
163
161
|
throw new xrpc_server_1.InvalidRequestError('This email address is not supported, please use a different email.');
|
164
162
|
}
|
165
163
|
// normalize & ensure valid handle
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createAccount.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/createAccount.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"createAccount.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/createAccount.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,4BAiFC;AAnGD,4CAA4D;AAC5D,gDAAkE;AAClE,sDAA6E;AAC7E,4CAA8E;AAC9E,kDAAmC;AACnC,2CAA4C;AAC5C,6EAA+D;AAE/D,+CAG2B;AAI3B,iCAA0C;AAC1C,iEAA2D;AAE3D,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC;QACtC,SAAS,EAAE;YACT,UAAU,EAAE,CAAC,GAAG,eAAM;YACtB,MAAM,EAAE,GAAG;SACZ;QACD,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,uBAAuB;QAC9C,OAAO,EAAE,KAAK,EAAE,E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G;QAClB,KAAK,EAAE,SAAS,CAAC,EAAE;KACpB,CAAA;AACH,CAAC,CAAA;AACD,MAAM,mBAAmB,GAAG,CAC1B,IAAiB,EACjB,QAIC,EACD,EAAE;IACF,yCAAyC;IACzC,qEAAqE;IACrE,mEAAmE;IACnE,IAAI,IAAI,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM,EAAE,CAAC;QACpC,MAAM,IAAI,iCAAmB,CAC3B,oDAAoD,EACpD,oBAAoB,CACrB,CAAA;IACH,CAAC;SAAM,IAAI,IAAI,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,EAAE,CAAC;QACrC,MAAM,IAAI,iCAAmB,CAC3B,2DAA2D,EAC3D,oBAAoB,CACrB,CAAA;IACH,CAAC;SAAM,IAAI,IAAI,CAAC,UAAU,KAAK,QAAQ,CAAC,UAAU,EAAE,CAAC;QACnD,MAAM,IAAI,iCAAmB,CAC3B,6DAA6D,EAC7D,oBAAoB,CACrB,CAAA;IACH,CAAC;AACH,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"updateEmail.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/updateEmail.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"updateEmail.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/updateEmail.ts"],"names":[],"mappings":"AAOA,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAG5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QA2DvD"}
|
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.default = default_1;
|
7
7
|
const node_assert_1 = __importDefault(require("node:assert"));
|
8
8
|
const xrpc_server_1 = require("@atproto/xrpc-server");
|
9
|
-
const
|
9
|
+
const address_1 = require("@hapi/address");
|
10
|
+
const disposable_email_domains_js_1 = require("disposable-email-domains-js");
|
10
11
|
const account_1 = require("../../../../account-manager/helpers/account");
|
11
12
|
const lexicons_1 = require("../../../../lexicon/lexicons");
|
12
13
|
function default_1(server, ctx) {
|
@@ -15,7 +16,7 @@ function default_1(server, ctx) {
|
|
15
16
|
handler: async ({ auth, input }) => {
|
16
17
|
const did = auth.credentials.did;
|
17
18
|
const { token, email } = input.body;
|
18
|
-
if (!
|
19
|
+
if (!(0, address_1.isEmailValid)(email) || (0, disposable_email_domains_js_1.isDisposableEmail)(email)) {
|
19
20
|
throw new xrpc_server_1.InvalidRequestError('This email address is not supported, please use a different email.');
|
20
21
|
}
|
21
22
|
const account = await ctx.accountManager.getAccount(did, {
|