@marcoappio/marco-config 4.0.15 → 4.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/appwrite/appwrite.d.ts.map +1 -1
- package/dist/appwrite/appwrite.js +15 -23
- package/dist/appwrite/appwrite.test.js +31 -11
- package/dist/appwrite/commands.d.ts +20 -20
- package/dist/appwrite/functions.d.ts +10 -10
- package/dist/appwrite/tableContract/identity.d.ts +0 -235
- package/dist/appwrite/tableContract/identity.d.ts.map +1 -1
- package/dist/appwrite/tableContract/identity.js +122 -146
- package/dist/appwrite/tableContract/index.d.ts +0 -92
- package/dist/appwrite/tableContract/index.d.ts.map +1 -1
- package/dist/appwrite/tableContract/index.js +18 -5
- package/dist/appwrite/tableContract/index.test.js +36 -0
- package/dist/appwrite/tableContract/mailbox.d.ts +0 -323
- package/dist/appwrite/tableContract/mailbox.d.ts.map +1 -1
- package/dist/appwrite/tableContract/mailbox.js +159 -180
- package/dist/appwrite/tableContract/operational.d.ts +0 -275
- package/dist/appwrite/tableContract/operational.d.ts.map +1 -1
- package/dist/appwrite/tableContract/operational.js +154 -178
- package/dist/appwrite/tableContract/shared.d.ts +13 -6
- package/dist/appwrite/tableContract/shared.d.ts.map +1 -1
- package/dist/appwrite/tableContract/shared.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.test.js +11 -0
- package/dist/schemas/app.d.ts +1 -1
- package/dist/schemas/app.js +1 -1
- package/dist/schemas/emailAccount.d.ts +4 -4
- package/dist/schemas/emailAccount.d.ts.map +1 -1
- package/dist/schemas/emailAccount.js +5 -5
- package/dist/schemas/index.d.ts +9 -27
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +1 -2
- package/dist/schemas/models/index.d.ts +1 -1
- package/dist/schemas/models/index.d.ts.map +1 -1
- package/dist/schemas/models/index.js +1 -1
- package/dist/schemas/models/thread.d.ts +1 -19
- package/dist/schemas/models/thread.d.ts.map +1 -1
- package/dist/schemas/models/thread.js +0 -1
- package/dist/schemas/models/user.d.ts +1 -1
- package/dist/schemas/models/user.test.js +7 -0
- package/dist/schemas/oauth.d.ts +1 -1
- package/dist/schemas/oauth.js +1 -1
- package/dist/schemas/pushNotifications.d.ts +2 -2
- package/dist/schemas/pushNotifications.d.ts.map +1 -1
- package/dist/schemas/pushNotifications.js +1 -2
- package/dist/schemas/schemaValues.test.d.ts +2 -0
- package/dist/schemas/schemaValues.test.d.ts.map +1 -0
- package/dist/schemas/schemaValues.test.js +21 -0
- package/dist/types/UserSettings.d.ts +16 -15
- package/dist/types/UserSettings.d.ts.map +1 -1
- package/dist/types/UserSettings.js +15 -29
- package/dist/utils/accounts/index.d.ts +1 -3
- package/dist/utils/accounts/index.d.ts.map +1 -1
- package/dist/utils/accounts/index.js +1 -4
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +3 -3
- package/dist/utils/labels/index.d.ts +2 -3
- package/dist/utils/labels/index.d.ts.map +1 -1
- package/dist/utils/labels/index.js +1 -4
- package/dist/utils/threads/index.d.ts +2 -4
- package/dist/utils/threads/index.d.ts.map +1 -1
- package/dist/utils/threads/index.js +2 -6
- package/dist/utils/threads/parseLabelIdList/parseLabelIdList.test.js +1 -1
- package/package.json +1 -1
- package/dist/utils/threads/parseLabelIdList/index.d.ts +0 -2
- package/dist/utils/threads/parseLabelIdList/index.d.ts.map +0 -1
- package/dist/utils/threads/parseLabelIdList/index.js +0 -1
- package/dist/utils/threads/processSearchTerm/index.d.ts +0 -2
- package/dist/utils/threads/processSearchTerm/index.d.ts.map +0 -1
- package/dist/utils/threads/processSearchTerm/index.js +0 -1
|
@@ -1,223 +1,4 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
-
export declare const profilesTable: {
|
|
3
|
-
readonly fields: {
|
|
4
|
-
readonly email: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>>;
|
|
5
|
-
readonly avatarFileId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, undefined>]>, undefined>>;
|
|
6
|
-
readonly deletionRequestedAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
7
|
-
readonly name: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
8
|
-
readonly onboardingState: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
9
|
-
readonly timezone: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
10
|
-
};
|
|
11
|
-
readonly id: "profiles";
|
|
12
|
-
readonly indexes: readonly [{
|
|
13
|
-
readonly attributes: readonly ["email"];
|
|
14
|
-
readonly name: "email_unique";
|
|
15
|
-
readonly type: "unique";
|
|
16
|
-
}];
|
|
17
|
-
readonly key: "profiles";
|
|
18
|
-
readonly name: "Profiles";
|
|
19
|
-
};
|
|
20
|
-
export declare const profileAvatarCleanupsTable: {
|
|
21
|
-
readonly fields: {
|
|
22
|
-
readonly fileId: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
|
|
23
|
-
readonly claimId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
24
|
-
readonly claimedAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
25
|
-
readonly profile: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
26
|
-
readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
27
|
-
}, undefined>, v.TransformAction<{
|
|
28
|
-
$id: string;
|
|
29
|
-
}, string>]>], undefined>>;
|
|
30
|
-
};
|
|
31
|
-
readonly id: "profile_avatar_cleanups";
|
|
32
|
-
readonly indexes: readonly [];
|
|
33
|
-
readonly key: "profileAvatarCleanups";
|
|
34
|
-
readonly name: "Profile avatar cleanups";
|
|
35
|
-
readonly wirePermissions: "empty";
|
|
36
|
-
};
|
|
37
|
-
export declare const savedViewsTable: {
|
|
38
|
-
readonly fields: {
|
|
39
|
-
readonly name: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
|
|
40
|
-
readonly icon: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
41
|
-
readonly aliasIds: import("./shared").AppwriteColumnSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
42
|
-
readonly profile: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
43
|
-
readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
44
|
-
}, undefined>, v.TransformAction<{
|
|
45
|
-
$id: string;
|
|
46
|
-
}, string>]>], undefined>>;
|
|
47
|
-
};
|
|
48
|
-
readonly id: "saved_views";
|
|
49
|
-
readonly indexes: readonly [];
|
|
50
|
-
readonly key: "savedViews";
|
|
51
|
-
readonly name: "Saved views";
|
|
52
|
-
};
|
|
53
|
-
export declare const accountsTable: {
|
|
54
|
-
readonly fields: {
|
|
55
|
-
readonly profileAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
|
|
56
|
-
readonly provider: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["GMAIL", "OUTLOOK", "IMAP"], undefined>>;
|
|
57
|
-
readonly state: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["AWAITING_CONNECTION", "CONNECTED", "ERROR", "DISCONNECTED"], undefined>>;
|
|
58
|
-
readonly primaryEmail: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>>;
|
|
59
|
-
readonly displayName: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
60
|
-
readonly colour: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 64, undefined>]>>;
|
|
61
|
-
readonly pollShardAssignmentId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
62
|
-
readonly pollShardId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
63
|
-
readonly lastSuccessfulSyncAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
64
|
-
readonly lastErrorCode: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
65
|
-
readonly mailProcessedCount: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
66
|
-
readonly mailTotalCount: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
67
|
-
readonly initialSyncCompletedAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
68
|
-
readonly credential: import("./shared").AppwriteRelationshipSchema<v.NullableSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
69
|
-
readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
70
|
-
}, undefined>, v.TransformAction<{
|
|
71
|
-
$id: string;
|
|
72
|
-
}, string>]>], undefined>, undefined>>;
|
|
73
|
-
readonly mailboxSyncState: import("./shared").AppwriteRelationshipSchema<v.NullableSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
74
|
-
readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
75
|
-
}, undefined>, v.TransformAction<{
|
|
76
|
-
$id: string;
|
|
77
|
-
}, string>]>], undefined>, undefined>>;
|
|
78
|
-
readonly primaryAlias: import("./shared").AppwriteRelationshipSchema<v.NullableSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
79
|
-
readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
80
|
-
}, undefined>, v.TransformAction<{
|
|
81
|
-
$id: string;
|
|
82
|
-
}, string>]>], undefined>, undefined>>;
|
|
83
|
-
readonly profile: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
84
|
-
readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
85
|
-
}, undefined>, v.TransformAction<{
|
|
86
|
-
$id: string;
|
|
87
|
-
}, string>]>], undefined>>;
|
|
88
|
-
};
|
|
89
|
-
readonly id: "accounts";
|
|
90
|
-
readonly indexes: readonly [{
|
|
91
|
-
readonly attributes: readonly ["profileAssignmentKey"];
|
|
92
|
-
readonly name: "assignment_profile";
|
|
93
|
-
readonly type: "key";
|
|
94
|
-
}, {
|
|
95
|
-
readonly attributes: readonly ["profileAssignmentKey", "state"];
|
|
96
|
-
readonly name: "assignment_profile_state";
|
|
97
|
-
readonly type: "key";
|
|
98
|
-
}, {
|
|
99
|
-
readonly attributes: readonly ["state"];
|
|
100
|
-
readonly name: "state";
|
|
101
|
-
readonly type: "key";
|
|
102
|
-
}, {
|
|
103
|
-
readonly attributes: readonly ["state", "pollShardAssignmentId"];
|
|
104
|
-
readonly name: "state_poll_shard_assignment";
|
|
105
|
-
readonly type: "key";
|
|
106
|
-
}, {
|
|
107
|
-
readonly attributes: readonly ["pollShardAssignmentId"];
|
|
108
|
-
readonly name: "poll_shard_assignment";
|
|
109
|
-
readonly type: "key";
|
|
110
|
-
}, {
|
|
111
|
-
readonly attributes: readonly ["pollShardId"];
|
|
112
|
-
readonly name: "poll_shard";
|
|
113
|
-
readonly type: "key";
|
|
114
|
-
}];
|
|
115
|
-
readonly key: "accounts";
|
|
116
|
-
readonly name: "Accounts";
|
|
117
|
-
};
|
|
118
|
-
export declare const oauthStatesTable: {
|
|
119
|
-
readonly fields: {
|
|
120
|
-
readonly userId: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
|
|
121
|
-
readonly accountId: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
|
|
122
|
-
readonly email: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>>;
|
|
123
|
-
readonly expiresAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
|
|
124
|
-
readonly nonceHash: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
|
|
125
|
-
readonly operation: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["CONNECT", "REPLACE"], undefined>>;
|
|
126
|
-
readonly provider: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["GMAIL", "OUTLOOK"], undefined>>;
|
|
127
|
-
readonly returnUri: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["https://app.marcoapp.io/onboarding/loading"], undefined>>;
|
|
128
|
-
readonly profile: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
129
|
-
readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
130
|
-
}, undefined>, v.TransformAction<{
|
|
131
|
-
$id: string;
|
|
132
|
-
}, string>]>], undefined>>;
|
|
133
|
-
};
|
|
134
|
-
readonly id: "oauth_states";
|
|
135
|
-
readonly indexes: readonly [];
|
|
136
|
-
readonly key: "oauthStates";
|
|
137
|
-
readonly name: "OAuth states";
|
|
138
|
-
};
|
|
139
|
-
export declare const credentialsTable: {
|
|
140
|
-
readonly fields: {
|
|
141
|
-
readonly userId: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
|
|
142
|
-
readonly accountId: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
|
|
143
|
-
readonly provider: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["GMAIL", "OUTLOOK", "IMAP"], undefined>>;
|
|
144
|
-
readonly encryptedPayload: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
|
|
145
|
-
readonly expiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
146
|
-
readonly refreshLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
147
|
-
readonly refreshLeaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
148
|
-
};
|
|
149
|
-
readonly id: "credentials";
|
|
150
|
-
readonly indexes: readonly [{
|
|
151
|
-
readonly attributes: readonly ["userId"];
|
|
152
|
-
readonly name: "user";
|
|
153
|
-
readonly type: "key";
|
|
154
|
-
}, {
|
|
155
|
-
readonly attributes: readonly ["accountId"];
|
|
156
|
-
readonly name: "account_unique";
|
|
157
|
-
readonly type: "unique";
|
|
158
|
-
}];
|
|
159
|
-
readonly key: "credentials";
|
|
160
|
-
readonly name: "Credentials";
|
|
161
|
-
};
|
|
162
|
-
export declare const aliasesTable: {
|
|
163
|
-
readonly fields: {
|
|
164
|
-
readonly accountAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
|
|
165
|
-
readonly providerId: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
|
|
166
|
-
readonly email: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>>;
|
|
167
|
-
readonly name: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
168
|
-
readonly signature: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
169
|
-
readonly isPrimary: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
|
|
170
|
-
readonly account: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
171
|
-
readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
172
|
-
}, undefined>, v.TransformAction<{
|
|
173
|
-
$id: string;
|
|
174
|
-
}, string>]>], undefined>>;
|
|
175
|
-
};
|
|
176
|
-
readonly id: "aliases";
|
|
177
|
-
readonly indexes: readonly [{
|
|
178
|
-
readonly attributes: readonly ["accountAssignmentKey"];
|
|
179
|
-
readonly name: "assignment_account";
|
|
180
|
-
readonly type: "key";
|
|
181
|
-
}, {
|
|
182
|
-
readonly attributes: readonly ["accountAssignmentKey", "providerId"];
|
|
183
|
-
readonly name: "assignment_account_provider_unique";
|
|
184
|
-
readonly type: "unique";
|
|
185
|
-
}];
|
|
186
|
-
readonly key: "aliases";
|
|
187
|
-
readonly name: "Aliases";
|
|
188
|
-
};
|
|
189
|
-
export declare const labelsTable: {
|
|
190
|
-
readonly fields: {
|
|
191
|
-
readonly accountAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
|
|
192
|
-
readonly providerId: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
|
|
193
|
-
readonly name: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
194
|
-
readonly path: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
|
|
195
|
-
readonly specialUse: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.PicklistSchema<readonly ["ALL", "ARCHIVE", "DRAFTS", "INBOX", "JUNK", "SENT", "STARRED", "TRASH"], undefined>, undefined>>;
|
|
196
|
-
readonly totalCount: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
197
|
-
readonly unreadCount: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
198
|
-
readonly account: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
199
|
-
readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
200
|
-
}, undefined>, v.TransformAction<{
|
|
201
|
-
$id: string;
|
|
202
|
-
}, string>]>], undefined>>;
|
|
203
|
-
};
|
|
204
|
-
readonly id: "labels";
|
|
205
|
-
readonly indexes: readonly [{
|
|
206
|
-
readonly attributes: readonly ["accountAssignmentKey", "specialUse"];
|
|
207
|
-
readonly name: "assignment_account_special_use";
|
|
208
|
-
readonly type: "key";
|
|
209
|
-
}, {
|
|
210
|
-
readonly attributes: readonly ["accountAssignmentKey", "path"];
|
|
211
|
-
readonly name: "assignment_account_path_unique";
|
|
212
|
-
readonly type: "unique";
|
|
213
|
-
}, {
|
|
214
|
-
readonly attributes: readonly ["accountAssignmentKey", "providerId"];
|
|
215
|
-
readonly name: "assignment_account_provider_unique";
|
|
216
|
-
readonly type: "unique";
|
|
217
|
-
}];
|
|
218
|
-
readonly key: "labels";
|
|
219
|
-
readonly name: "Labels";
|
|
220
|
-
};
|
|
221
2
|
export declare const identityTableInputs: {
|
|
222
3
|
readonly accounts: {
|
|
223
4
|
readonly fields: {
|
|
@@ -255,7 +36,6 @@ export declare const identityTableInputs: {
|
|
|
255
36
|
$id: string;
|
|
256
37
|
}, string>]>], undefined>>;
|
|
257
38
|
};
|
|
258
|
-
readonly id: "accounts";
|
|
259
39
|
readonly indexes: readonly [{
|
|
260
40
|
readonly attributes: readonly ["profileAssignmentKey"];
|
|
261
41
|
readonly name: "assignment_profile";
|
|
@@ -281,7 +61,6 @@ export declare const identityTableInputs: {
|
|
|
281
61
|
readonly name: "poll_shard";
|
|
282
62
|
readonly type: "key";
|
|
283
63
|
}];
|
|
284
|
-
readonly key: "accounts";
|
|
285
64
|
readonly name: "Accounts";
|
|
286
65
|
};
|
|
287
66
|
readonly aliases: {
|
|
@@ -298,7 +77,6 @@ export declare const identityTableInputs: {
|
|
|
298
77
|
$id: string;
|
|
299
78
|
}, string>]>], undefined>>;
|
|
300
79
|
};
|
|
301
|
-
readonly id: "aliases";
|
|
302
80
|
readonly indexes: readonly [{
|
|
303
81
|
readonly attributes: readonly ["accountAssignmentKey"];
|
|
304
82
|
readonly name: "assignment_account";
|
|
@@ -308,7 +86,6 @@ export declare const identityTableInputs: {
|
|
|
308
86
|
readonly name: "assignment_account_provider_unique";
|
|
309
87
|
readonly type: "unique";
|
|
310
88
|
}];
|
|
311
|
-
readonly key: "aliases";
|
|
312
89
|
readonly name: "Aliases";
|
|
313
90
|
};
|
|
314
91
|
readonly credentials: {
|
|
@@ -321,7 +98,6 @@ export declare const identityTableInputs: {
|
|
|
321
98
|
readonly refreshLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
322
99
|
readonly refreshLeaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
323
100
|
};
|
|
324
|
-
readonly id: "credentials";
|
|
325
101
|
readonly indexes: readonly [{
|
|
326
102
|
readonly attributes: readonly ["userId"];
|
|
327
103
|
readonly name: "user";
|
|
@@ -331,7 +107,6 @@ export declare const identityTableInputs: {
|
|
|
331
107
|
readonly name: "account_unique";
|
|
332
108
|
readonly type: "unique";
|
|
333
109
|
}];
|
|
334
|
-
readonly key: "credentials";
|
|
335
110
|
readonly name: "Credentials";
|
|
336
111
|
};
|
|
337
112
|
readonly labels: {
|
|
@@ -349,7 +124,6 @@ export declare const identityTableInputs: {
|
|
|
349
124
|
$id: string;
|
|
350
125
|
}, string>]>], undefined>>;
|
|
351
126
|
};
|
|
352
|
-
readonly id: "labels";
|
|
353
127
|
readonly indexes: readonly [{
|
|
354
128
|
readonly attributes: readonly ["accountAssignmentKey", "specialUse"];
|
|
355
129
|
readonly name: "assignment_account_special_use";
|
|
@@ -363,7 +137,6 @@ export declare const identityTableInputs: {
|
|
|
363
137
|
readonly name: "assignment_account_provider_unique";
|
|
364
138
|
readonly type: "unique";
|
|
365
139
|
}];
|
|
366
|
-
readonly key: "labels";
|
|
367
140
|
readonly name: "Labels";
|
|
368
141
|
};
|
|
369
142
|
readonly oauthStates: {
|
|
@@ -382,9 +155,7 @@ export declare const identityTableInputs: {
|
|
|
382
155
|
$id: string;
|
|
383
156
|
}, string>]>], undefined>>;
|
|
384
157
|
};
|
|
385
|
-
readonly id: "oauth_states";
|
|
386
158
|
readonly indexes: readonly [];
|
|
387
|
-
readonly key: "oauthStates";
|
|
388
159
|
readonly name: "OAuth states";
|
|
389
160
|
};
|
|
390
161
|
readonly profileAvatarCleanups: {
|
|
@@ -398,9 +169,7 @@ export declare const identityTableInputs: {
|
|
|
398
169
|
$id: string;
|
|
399
170
|
}, string>]>], undefined>>;
|
|
400
171
|
};
|
|
401
|
-
readonly id: "profile_avatar_cleanups";
|
|
402
172
|
readonly indexes: readonly [];
|
|
403
|
-
readonly key: "profileAvatarCleanups";
|
|
404
173
|
readonly name: "Profile avatar cleanups";
|
|
405
174
|
readonly wirePermissions: "empty";
|
|
406
175
|
};
|
|
@@ -413,13 +182,11 @@ export declare const identityTableInputs: {
|
|
|
413
182
|
readonly onboardingState: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
414
183
|
readonly timezone: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
415
184
|
};
|
|
416
|
-
readonly id: "profiles";
|
|
417
185
|
readonly indexes: readonly [{
|
|
418
186
|
readonly attributes: readonly ["email"];
|
|
419
187
|
readonly name: "email_unique";
|
|
420
188
|
readonly type: "unique";
|
|
421
189
|
}];
|
|
422
|
-
readonly key: "profiles";
|
|
423
190
|
readonly name: "Profiles";
|
|
424
191
|
};
|
|
425
192
|
readonly savedViews: {
|
|
@@ -433,9 +200,7 @@ export declare const identityTableInputs: {
|
|
|
433
200
|
$id: string;
|
|
434
201
|
}, string>]>], undefined>>;
|
|
435
202
|
};
|
|
436
|
-
readonly id: "saved_views";
|
|
437
203
|
readonly indexes: readonly [];
|
|
438
|
-
readonly key: "savedViews";
|
|
439
204
|
readonly name: "Saved views";
|
|
440
205
|
};
|
|
441
206
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../../src/appwrite/tableContract/identity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../../src/appwrite/tableContract/identity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA0B5B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiI9B,CAAA"}
|
|
@@ -1,158 +1,134 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
/* oxlint-disable eslint/sort-keys */
|
|
3
|
-
import { accountProviders, accountStates, appwriteColumnDefinitions,
|
|
3
|
+
import { accountProviders, accountStates, appwriteColumnDefinitions, appwriteRelationship, appwriteRelationshipIdSchema, canonicalTimestampSchema, colourSchema, defineAppwriteTableGroup, webEmailSchema, identifierSchema, labelSpecialUses, oauthOperations, oauthProviders, oauthReturnUriSchema, appwriteRowIdSchema, isoTimestampSchema, nonNegativeIntegerSchema, } from './shared';
|
|
4
4
|
const { boolean, dateTime, enumValue, identifier, integer, longText, string: stringColumn, stringArray, text } = appwriteColumnDefinitions;
|
|
5
|
-
export const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
export const identityTableInputs = defineAppwriteTableGroup({
|
|
6
|
+
accounts: {
|
|
7
|
+
fields: {
|
|
8
|
+
profileAssignmentKey: identifier(identifierSchema),
|
|
9
|
+
provider: enumValue(v.picklist(accountProviders), accountProviders),
|
|
10
|
+
state: enumValue(v.picklist(accountStates), accountStates),
|
|
11
|
+
primaryEmail: stringColumn(webEmailSchema, true, 320),
|
|
12
|
+
displayName: stringColumn(v.nullable(identifierSchema), false),
|
|
13
|
+
colour: stringColumn(colourSchema, true, 64),
|
|
14
|
+
pollShardAssignmentId: identifier(v.nullable(identifierSchema), false),
|
|
15
|
+
pollShardId: identifier(v.nullable(identifierSchema), false),
|
|
16
|
+
lastSuccessfulSyncAt: dateTime(v.nullable(isoTimestampSchema), false),
|
|
17
|
+
lastErrorCode: stringColumn(v.nullable(identifierSchema), false),
|
|
18
|
+
mailProcessedCount: integer(nonNegativeIntegerSchema),
|
|
19
|
+
mailTotalCount: integer(nonNegativeIntegerSchema),
|
|
20
|
+
initialSyncCompletedAt: dateTime(v.nullable(isoTimestampSchema), false),
|
|
21
|
+
credential: appwriteRelationship(v.nullable(appwriteRelationshipIdSchema), 'credentials', 'oneToOne'),
|
|
22
|
+
mailboxSyncState: appwriteRelationship(v.nullable(appwriteRelationshipIdSchema), 'mailboxSyncStates', 'oneToOne'),
|
|
23
|
+
primaryAlias: appwriteRelationship(v.nullable(appwriteRelationshipIdSchema), 'aliases', 'oneToOne', 'setNull'),
|
|
24
|
+
profile: appwriteRelationship(appwriteRelationshipIdSchema, 'profiles'),
|
|
25
|
+
},
|
|
26
|
+
indexes: [
|
|
27
|
+
{ attributes: ['profileAssignmentKey'], name: 'assignment_profile', type: 'key' },
|
|
28
|
+
{ attributes: ['profileAssignmentKey', 'state'], name: 'assignment_profile_state', type: 'key' },
|
|
29
|
+
{ attributes: ['state'], name: 'state', type: 'key' },
|
|
30
|
+
{ attributes: ['state', 'pollShardAssignmentId'], name: 'state_poll_shard_assignment', type: 'key' },
|
|
31
|
+
{ attributes: ['pollShardAssignmentId'], name: 'poll_shard_assignment', type: 'key' },
|
|
32
|
+
{ attributes: ['pollShardId'], name: 'poll_shard', type: 'key' },
|
|
33
|
+
],
|
|
34
|
+
name: 'Accounts',
|
|
13
35
|
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
36
|
+
aliases: {
|
|
37
|
+
fields: {
|
|
38
|
+
accountAssignmentKey: identifier(identifierSchema),
|
|
39
|
+
providerId: stringColumn(identifierSchema),
|
|
40
|
+
email: stringColumn(webEmailSchema, true, 320),
|
|
41
|
+
name: stringColumn(v.nullable(identifierSchema), false),
|
|
42
|
+
signature: text(v.nullable(v.string()), false),
|
|
43
|
+
isPrimary: boolean(v.boolean()),
|
|
44
|
+
account: appwriteRelationship(appwriteRelationshipIdSchema, 'accounts'),
|
|
45
|
+
},
|
|
46
|
+
indexes: [
|
|
47
|
+
{ attributes: ['accountAssignmentKey'], name: 'assignment_account', type: 'key' },
|
|
48
|
+
{ attributes: ['accountAssignmentKey', 'providerId'], name: 'assignment_account_provider_unique', type: 'unique' },
|
|
49
|
+
],
|
|
50
|
+
name: 'Aliases',
|
|
25
51
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
52
|
+
credentials: {
|
|
53
|
+
fields: {
|
|
54
|
+
userId: stringColumn(identifierSchema),
|
|
55
|
+
accountId: stringColumn(identifierSchema),
|
|
56
|
+
provider: enumValue(v.picklist(accountProviders), accountProviders),
|
|
57
|
+
encryptedPayload: longText(v.string()),
|
|
58
|
+
expiresAt: dateTime(v.nullable(isoTimestampSchema), false),
|
|
59
|
+
refreshLeaseExpiresAt: dateTime(v.nullable(canonicalTimestampSchema), false),
|
|
60
|
+
refreshLeaseId: stringColumn(v.nullable(identifierSchema), false, 36),
|
|
61
|
+
},
|
|
62
|
+
indexes: [
|
|
63
|
+
{ attributes: ['userId'], name: 'user', type: 'key' },
|
|
64
|
+
{ attributes: ['accountId'], name: 'account_unique', type: 'unique' },
|
|
65
|
+
],
|
|
66
|
+
name: 'Credentials',
|
|
38
67
|
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
mailProcessedCount: integer(nonNegativeIntegerSchema),
|
|
57
|
-
mailTotalCount: integer(nonNegativeIntegerSchema),
|
|
58
|
-
initialSyncCompletedAt: dateTime(v.nullable(isoTimestampSchema), false),
|
|
59
|
-
credential: appwriteRelationship(v.nullable(appwriteRelationshipIdSchema), 'credentials', 'oneToOne'),
|
|
60
|
-
mailboxSyncState: appwriteRelationship(v.nullable(appwriteRelationshipIdSchema), 'mailboxSyncStates', 'oneToOne'),
|
|
61
|
-
primaryAlias: appwriteRelationship(v.nullable(appwriteRelationshipIdSchema), 'aliases', 'oneToOne', 'setNull'),
|
|
62
|
-
profile: appwriteRelationship(appwriteRelationshipIdSchema, 'profiles'),
|
|
68
|
+
labels: {
|
|
69
|
+
fields: {
|
|
70
|
+
accountAssignmentKey: identifier(identifierSchema),
|
|
71
|
+
providerId: stringColumn(identifierSchema),
|
|
72
|
+
name: stringColumn(v.nullable(identifierSchema), false),
|
|
73
|
+
path: stringColumn(identifierSchema),
|
|
74
|
+
specialUse: enumValue(v.nullable(v.picklist(labelSpecialUses)), labelSpecialUses, false),
|
|
75
|
+
totalCount: integer(nonNegativeIntegerSchema),
|
|
76
|
+
unreadCount: integer(nonNegativeIntegerSchema),
|
|
77
|
+
account: appwriteRelationship(appwriteRelationshipIdSchema, 'accounts'),
|
|
78
|
+
},
|
|
79
|
+
indexes: [
|
|
80
|
+
{ attributes: ['accountAssignmentKey', 'specialUse'], name: 'assignment_account_special_use', type: 'key' },
|
|
81
|
+
{ attributes: ['accountAssignmentKey', 'path'], name: 'assignment_account_path_unique', type: 'unique' },
|
|
82
|
+
{ attributes: ['accountAssignmentKey', 'providerId'], name: 'assignment_account_provider_unique', type: 'unique' },
|
|
83
|
+
],
|
|
84
|
+
name: 'Labels',
|
|
63
85
|
},
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
userId: stringColumn(identifierSchema),
|
|
79
|
-
accountId: stringColumn(identifierSchema),
|
|
80
|
-
email: stringColumn(webEmailSchema, true, 320),
|
|
81
|
-
expiresAt: dateTime(isoTimestampSchema),
|
|
82
|
-
nonceHash: stringColumn(identifierSchema),
|
|
83
|
-
operation: enumValue(v.picklist(oauthOperations), oauthOperations),
|
|
84
|
-
provider: enumValue(v.picklist(oauthProviders), oauthProviders),
|
|
85
|
-
returnUri: stringColumn(oauthReturnUriSchema),
|
|
86
|
-
profile: appwriteRelationship(appwriteRelationshipIdSchema, 'profiles'),
|
|
86
|
+
oauthStates: {
|
|
87
|
+
fields: {
|
|
88
|
+
userId: stringColumn(identifierSchema),
|
|
89
|
+
accountId: stringColumn(identifierSchema),
|
|
90
|
+
email: stringColumn(webEmailSchema, true, 320),
|
|
91
|
+
expiresAt: dateTime(isoTimestampSchema),
|
|
92
|
+
nonceHash: stringColumn(identifierSchema),
|
|
93
|
+
operation: enumValue(v.picklist(oauthOperations), oauthOperations),
|
|
94
|
+
provider: enumValue(v.picklist(oauthProviders), oauthProviders),
|
|
95
|
+
returnUri: stringColumn(oauthReturnUriSchema),
|
|
96
|
+
profile: appwriteRelationship(appwriteRelationshipIdSchema, 'profiles'),
|
|
97
|
+
},
|
|
98
|
+
indexes: [],
|
|
99
|
+
name: 'OAuth states',
|
|
87
100
|
},
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
encryptedPayload: longText(v.string()),
|
|
99
|
-
expiresAt: dateTime(v.nullable(isoTimestampSchema), false),
|
|
100
|
-
refreshLeaseExpiresAt: dateTime(v.nullable(canonicalTimestampSchema), false),
|
|
101
|
-
refreshLeaseId: stringColumn(v.nullable(identifierSchema), false, 36),
|
|
101
|
+
profileAvatarCleanups: {
|
|
102
|
+
fields: {
|
|
103
|
+
fileId: stringColumn(identifierSchema, true, 36),
|
|
104
|
+
claimId: stringColumn(v.nullable(identifierSchema), false),
|
|
105
|
+
claimedAt: dateTime(v.nullable(isoTimestampSchema), false),
|
|
106
|
+
profile: appwriteRelationship(appwriteRelationshipIdSchema, 'profiles'),
|
|
107
|
+
},
|
|
108
|
+
indexes: [],
|
|
109
|
+
name: 'Profile avatar cleanups',
|
|
110
|
+
wirePermissions: 'empty',
|
|
102
111
|
},
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
providerId: stringColumn(identifierSchema),
|
|
115
|
-
email: stringColumn(webEmailSchema, true, 320),
|
|
116
|
-
name: stringColumn(v.nullable(identifierSchema), false),
|
|
117
|
-
signature: text(v.nullable(v.string()), false),
|
|
118
|
-
isPrimary: boolean(v.boolean()),
|
|
119
|
-
account: appwriteRelationship(appwriteRelationshipIdSchema, 'accounts'),
|
|
112
|
+
profiles: {
|
|
113
|
+
fields: {
|
|
114
|
+
email: stringColumn(webEmailSchema, true, 320),
|
|
115
|
+
avatarFileId: stringColumn(v.nullable(appwriteRowIdSchema), false, 36),
|
|
116
|
+
deletionRequestedAt: dateTime(v.nullable(isoTimestampSchema), false),
|
|
117
|
+
name: stringColumn(v.nullable(identifierSchema), false),
|
|
118
|
+
onboardingState: stringColumn(v.nullable(identifierSchema), false),
|
|
119
|
+
timezone: stringColumn(v.nullable(identifierSchema), false),
|
|
120
|
+
},
|
|
121
|
+
indexes: [{ attributes: ['email'], name: 'email_unique', type: 'unique' }],
|
|
122
|
+
name: 'Profiles',
|
|
120
123
|
},
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
fields: {
|
|
131
|
-
accountAssignmentKey: identifier(identifierSchema),
|
|
132
|
-
providerId: stringColumn(identifierSchema),
|
|
133
|
-
name: stringColumn(v.nullable(identifierSchema), false),
|
|
134
|
-
path: stringColumn(identifierSchema),
|
|
135
|
-
specialUse: enumValue(v.nullable(v.picklist(labelSpecialUses)), labelSpecialUses, false),
|
|
136
|
-
totalCount: integer(nonNegativeIntegerSchema),
|
|
137
|
-
unreadCount: integer(nonNegativeIntegerSchema),
|
|
138
|
-
account: appwriteRelationship(appwriteRelationshipIdSchema, 'accounts'),
|
|
124
|
+
savedViews: {
|
|
125
|
+
fields: {
|
|
126
|
+
name: stringColumn(identifierSchema),
|
|
127
|
+
icon: stringColumn(v.nullable(identifierSchema), false),
|
|
128
|
+
aliasIds: stringArray(v.array(identifierSchema)),
|
|
129
|
+
profile: appwriteRelationship(appwriteRelationshipIdSchema, 'profiles'),
|
|
130
|
+
},
|
|
131
|
+
indexes: [],
|
|
132
|
+
name: 'Saved views',
|
|
139
133
|
},
|
|
140
|
-
id: appwriteIds.tables.labels,
|
|
141
|
-
indexes: [
|
|
142
|
-
{ attributes: ['accountAssignmentKey', 'specialUse'], name: 'assignment_account_special_use', type: 'key' },
|
|
143
|
-
{ attributes: ['accountAssignmentKey', 'path'], name: 'assignment_account_path_unique', type: 'unique' },
|
|
144
|
-
{ attributes: ['accountAssignmentKey', 'providerId'], name: 'assignment_account_provider_unique', type: 'unique' },
|
|
145
|
-
],
|
|
146
|
-
key: 'labels',
|
|
147
|
-
name: 'Labels',
|
|
148
134
|
});
|
|
149
|
-
export const identityTableInputs = {
|
|
150
|
-
accounts: accountsTable,
|
|
151
|
-
aliases: aliasesTable,
|
|
152
|
-
credentials: credentialsTable,
|
|
153
|
-
labels: labelsTable,
|
|
154
|
-
oauthStates: oauthStatesTable,
|
|
155
|
-
profileAvatarCleanups: profileAvatarCleanupsTable,
|
|
156
|
-
profiles: profilesTable,
|
|
157
|
-
savedViews: savedViewsTable,
|
|
158
|
-
};
|