@marcoappio/marco-config 4.0.10 → 4.0.11
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/commands.d.ts +167 -124
- package/dist/appwrite/commands.d.ts.map +1 -1
- package/dist/appwrite/commands.js +70 -68
- package/dist/appwrite/commands.test.js +30 -17
- package/dist/appwrite/functions.d.ts +122 -122
- package/dist/appwrite/index.d.ts +1 -1
- package/dist/appwrite/index.d.ts.map +1 -1
- package/dist/appwrite/index.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/package.json +1 -1
|
@@ -2,6 +2,49 @@ import * as v from 'valibot';
|
|
|
2
2
|
export declare const appwriteAvatar: {
|
|
3
3
|
createFileId: (commandId: string) => string;
|
|
4
4
|
};
|
|
5
|
+
declare const commandKinds: {
|
|
6
|
+
readonly accountDelete: "account.delete";
|
|
7
|
+
readonly accountSettingsSet: "account.settings.set";
|
|
8
|
+
readonly aliasCreate: "alias.create";
|
|
9
|
+
readonly aliasDelete: "alias.delete";
|
|
10
|
+
readonly aliasNameSet: "alias.name.set";
|
|
11
|
+
readonly aliasPrimarySet: "alias.primary.set";
|
|
12
|
+
readonly aliasSignatureSet: "alias.signature.set";
|
|
13
|
+
readonly draftAttachmentDelete: "draft.attachment.delete";
|
|
14
|
+
readonly draftAttachmentLink: "draft.attachment.link";
|
|
15
|
+
readonly draftContentSet: "draft.content.set";
|
|
16
|
+
readonly draftCreate: "draft.create";
|
|
17
|
+
readonly draftDelete: "draft.delete";
|
|
18
|
+
readonly draftEnvelopeSet: "draft.envelope.set";
|
|
19
|
+
readonly draftFromSet: "draft.from.set";
|
|
20
|
+
readonly draftSend: "draft.send";
|
|
21
|
+
readonly draftSendCancel: "draft.send.cancel";
|
|
22
|
+
readonly draftSendSchedule: "draft.send.schedule";
|
|
23
|
+
readonly labelCreate: "label.create";
|
|
24
|
+
readonly labelDelete: "label.delete";
|
|
25
|
+
readonly labelRename: "label.rename";
|
|
26
|
+
readonly profileAvatarSet: "profile.avatar.set";
|
|
27
|
+
readonly profileSettingsSet: "profile.settings.set";
|
|
28
|
+
readonly threadArchiveSet: "thread.archive.set";
|
|
29
|
+
readonly threadDelete: "thread.delete";
|
|
30
|
+
readonly threadFlaggedSet: "thread.flagged.set";
|
|
31
|
+
readonly threadLabelAdd: "thread.label.add";
|
|
32
|
+
readonly threadLabelRemove: "thread.label.remove";
|
|
33
|
+
readonly threadSeenSet: "thread.seen.set";
|
|
34
|
+
readonly threadSnoozeSet: "thread.snooze.set";
|
|
35
|
+
readonly threadSpamSet: "thread.spam.set";
|
|
36
|
+
readonly threadTrashSet: "thread.trash.set";
|
|
37
|
+
};
|
|
38
|
+
export type AppwriteCommandKind = (typeof commandKinds)[keyof typeof commandKinds];
|
|
39
|
+
export declare const appwriteCommandGroups: {
|
|
40
|
+
readonly account: readonly ["account.delete", "account.settings.set", "alias.create", "alias.delete", "alias.name.set", "alias.primary.set", "alias.signature.set"];
|
|
41
|
+
readonly draft: readonly ["draft.attachment.delete", "draft.attachment.link", "draft.content.set", "draft.create", "draft.delete", "draft.envelope.set", "draft.from.set"];
|
|
42
|
+
readonly draftSend: readonly ["draft.send", "draft.send.cancel", "draft.send.schedule"];
|
|
43
|
+
readonly label: readonly ["label.create", "label.delete", "label.rename"];
|
|
44
|
+
readonly profileAvatar: readonly ["profile.avatar.set"];
|
|
45
|
+
readonly profileSettings: readonly ["profile.settings.set"];
|
|
46
|
+
readonly thread: readonly ["thread.archive.set", "thread.delete", "thread.flagged.set", "thread.label.add", "thread.label.remove", "thread.seen.set", "thread.snooze.set", "thread.spam.set", "thread.trash.set"];
|
|
47
|
+
};
|
|
5
48
|
export declare const appwriteCommands: {
|
|
6
49
|
readonly errorCodes: readonly ["AUTHENTICATION_FAILED", "AUTHORIZATION_FAILED", "COMMAND_CONFLICT", "COMMAND_NOT_FOUND", "INVALID_COMMAND", "PROVIDER_REJECTED", "TRANSIENT_FAILURE", "INTERNAL_ERROR"];
|
|
7
50
|
readonly errorSchema: v.StrictObjectSchema<{
|
|
@@ -9,27 +52,15 @@ export declare const appwriteCommands: {
|
|
|
9
52
|
readonly retryable: v.BooleanSchema<undefined>;
|
|
10
53
|
}, undefined>;
|
|
11
54
|
readonly idSchema: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
12
|
-
readonly kinds:
|
|
13
|
-
readonly requestSchema: v.VariantSchema<"kind",
|
|
14
|
-
readonly accountId: v.
|
|
15
|
-
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
16
|
-
readonly kind: v.LiteralSchema<"profile.settings.set", undefined>;
|
|
17
|
-
readonly payload: v.StrictObjectSchema<{
|
|
18
|
-
readonly name: v.OptionalSchema<v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>, undefined>;
|
|
19
|
-
readonly timezone: v.OptionalSchema<v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>, undefined>;
|
|
20
|
-
}, undefined>;
|
|
21
|
-
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
22
|
-
readonly version: v.LiteralSchema<1, undefined>;
|
|
23
|
-
}, undefined>, v.StrictObjectSchema<{
|
|
24
|
-
readonly accountId: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>, undefined>;
|
|
55
|
+
readonly kinds: ("account.delete" | "account.settings.set" | "alias.create" | "alias.delete" | "alias.name.set" | "alias.primary.set" | "alias.signature.set" | "draft.attachment.delete" | "draft.attachment.link" | "draft.content.set" | "draft.create" | "draft.delete" | "draft.envelope.set" | "draft.from.set" | "draft.send" | "draft.send.cancel" | "draft.send.schedule" | "label.create" | "label.delete" | "label.rename" | "profile.avatar.set" | "profile.settings.set" | "thread.archive.set" | "thread.delete" | "thread.flagged.set" | "thread.label.add" | "thread.label.remove" | "thread.seen.set" | "thread.snooze.set" | "thread.spam.set" | "thread.trash.set")[];
|
|
56
|
+
readonly requestSchema: v.VariantSchema<"kind", (v.StrictObjectSchema<{
|
|
57
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
25
58
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
26
|
-
readonly kind: v.LiteralSchema<"
|
|
27
|
-
readonly payload: v.StrictObjectSchema<{
|
|
28
|
-
readonly sha256: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
29
|
-
}, undefined>;
|
|
59
|
+
readonly kind: v.LiteralSchema<"account.delete", undefined>;
|
|
60
|
+
readonly payload: v.StrictObjectSchema<{}, undefined>;
|
|
30
61
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
31
62
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
32
|
-
}, undefined
|
|
63
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
33
64
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
34
65
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
35
66
|
readonly kind: v.LiteralSchema<"account.settings.set", undefined>;
|
|
@@ -39,14 +70,7 @@ export declare const appwriteCommands: {
|
|
|
39
70
|
}, undefined>;
|
|
40
71
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
41
72
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
42
|
-
}, undefined
|
|
43
|
-
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
44
|
-
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
45
|
-
readonly kind: v.LiteralSchema<"account.delete", undefined>;
|
|
46
|
-
readonly payload: v.StrictObjectSchema<{}, undefined>;
|
|
47
|
-
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
48
|
-
readonly version: v.LiteralSchema<1, undefined>;
|
|
49
|
-
}, undefined>, v.StrictObjectSchema<{
|
|
73
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
50
74
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
51
75
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
52
76
|
readonly kind: v.LiteralSchema<"alias.create", undefined>;
|
|
@@ -58,7 +82,7 @@ export declare const appwriteCommands: {
|
|
|
58
82
|
}, undefined>;
|
|
59
83
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
60
84
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
61
|
-
}, undefined
|
|
85
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
62
86
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
63
87
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
64
88
|
readonly kind: v.LiteralSchema<"alias.delete", undefined>;
|
|
@@ -67,7 +91,7 @@ export declare const appwriteCommands: {
|
|
|
67
91
|
}, undefined>;
|
|
68
92
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
69
93
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
70
|
-
}, undefined
|
|
94
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
71
95
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
72
96
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
73
97
|
readonly kind: v.LiteralSchema<"alias.name.set", undefined>;
|
|
@@ -77,7 +101,7 @@ export declare const appwriteCommands: {
|
|
|
77
101
|
}, undefined>;
|
|
78
102
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
79
103
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
80
|
-
}, undefined
|
|
104
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
81
105
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
82
106
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
83
107
|
readonly kind: v.LiteralSchema<"alias.primary.set", undefined>;
|
|
@@ -86,7 +110,7 @@ export declare const appwriteCommands: {
|
|
|
86
110
|
}, undefined>;
|
|
87
111
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
88
112
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
89
|
-
}, undefined
|
|
113
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
90
114
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
91
115
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
92
116
|
readonly kind: v.LiteralSchema<"alias.signature.set", undefined>;
|
|
@@ -96,231 +120,250 @@ export declare const appwriteCommands: {
|
|
|
96
120
|
}, undefined>;
|
|
97
121
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
98
122
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
99
|
-
}, undefined
|
|
123
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
100
124
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
101
125
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
102
|
-
readonly kind: v.LiteralSchema<"
|
|
126
|
+
readonly kind: v.LiteralSchema<"draft.attachment.delete", undefined>;
|
|
103
127
|
readonly payload: v.StrictObjectSchema<{
|
|
104
|
-
readonly
|
|
105
|
-
readonly
|
|
128
|
+
readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
129
|
+
readonly fileId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
106
130
|
}, undefined>;
|
|
107
131
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
108
132
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
109
|
-
}, undefined
|
|
133
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
110
134
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
111
135
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
112
|
-
readonly kind: v.LiteralSchema<"
|
|
136
|
+
readonly kind: v.LiteralSchema<"draft.attachment.link", undefined>;
|
|
113
137
|
readonly payload: v.StrictObjectSchema<{
|
|
114
|
-
readonly
|
|
138
|
+
readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
139
|
+
readonly fileId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
140
|
+
readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
141
|
+
readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
142
|
+
readonly size: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
115
143
|
}, undefined>;
|
|
116
144
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
117
145
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
118
|
-
}, undefined
|
|
146
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
119
147
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
120
148
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
121
|
-
readonly kind: v.LiteralSchema<"
|
|
149
|
+
readonly kind: v.LiteralSchema<"draft.content.set", undefined>;
|
|
122
150
|
readonly payload: v.StrictObjectSchema<{
|
|
123
|
-
readonly
|
|
124
|
-
readonly
|
|
151
|
+
readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
152
|
+
readonly html: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
|
|
125
153
|
}, undefined>;
|
|
126
154
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
127
155
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
128
|
-
}, undefined
|
|
156
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
129
157
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
130
158
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
131
|
-
readonly kind: v.LiteralSchema<"
|
|
159
|
+
readonly kind: v.LiteralSchema<"draft.create", undefined>;
|
|
132
160
|
readonly payload: v.StrictObjectSchema<{
|
|
133
|
-
readonly
|
|
134
|
-
readonly
|
|
161
|
+
readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
162
|
+
readonly fromAliasId: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>, undefined>;
|
|
163
|
+
readonly referencedMessageId: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>, undefined>;
|
|
164
|
+
readonly type: v.PicklistSchema<readonly ["NEW", "REPLY", "FORWARD"], undefined>;
|
|
135
165
|
}, undefined>;
|
|
136
166
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
137
167
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
138
|
-
}, undefined
|
|
168
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
139
169
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
140
170
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
141
|
-
readonly kind: v.LiteralSchema<"
|
|
171
|
+
readonly kind: v.LiteralSchema<"draft.delete", undefined>;
|
|
142
172
|
readonly payload: v.StrictObjectSchema<{
|
|
143
|
-
readonly
|
|
144
|
-
readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
|
|
173
|
+
readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
145
174
|
}, undefined>;
|
|
146
175
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
147
176
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
148
|
-
}, undefined
|
|
177
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
149
178
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
150
179
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
151
|
-
readonly kind: v.LiteralSchema<"
|
|
180
|
+
readonly kind: v.LiteralSchema<"draft.envelope.set", undefined>;
|
|
152
181
|
readonly payload: v.StrictObjectSchema<{
|
|
153
|
-
readonly
|
|
154
|
-
readonly
|
|
182
|
+
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
|
|
183
|
+
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
|
|
184
|
+
readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
185
|
+
readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 998, undefined>]>, undefined>;
|
|
186
|
+
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
|
|
155
187
|
}, undefined>;
|
|
156
188
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
157
189
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
158
|
-
}, undefined
|
|
190
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
159
191
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
160
192
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
161
|
-
readonly kind: v.LiteralSchema<"
|
|
193
|
+
readonly kind: v.LiteralSchema<"draft.from.set", undefined>;
|
|
162
194
|
readonly payload: v.StrictObjectSchema<{
|
|
163
|
-
readonly
|
|
164
|
-
readonly
|
|
195
|
+
readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
196
|
+
readonly fromAliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
|
|
197
|
+
readonly targetAccountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
165
198
|
}, undefined>;
|
|
166
199
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
167
200
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
168
|
-
}, undefined
|
|
201
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
169
202
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
170
203
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
171
|
-
readonly kind: v.LiteralSchema<"
|
|
204
|
+
readonly kind: v.LiteralSchema<"draft.send", undefined>;
|
|
172
205
|
readonly payload: v.StrictObjectSchema<{
|
|
173
|
-
readonly
|
|
174
|
-
readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
|
|
206
|
+
readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
175
207
|
}, undefined>;
|
|
176
208
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
177
209
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
178
|
-
}, undefined
|
|
210
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
179
211
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
180
212
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
181
|
-
readonly kind: v.LiteralSchema<"
|
|
213
|
+
readonly kind: v.LiteralSchema<"draft.send.cancel", undefined>;
|
|
182
214
|
readonly payload: v.StrictObjectSchema<{
|
|
183
|
-
readonly
|
|
184
|
-
readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
|
|
215
|
+
readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
185
216
|
}, undefined>;
|
|
186
217
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
187
218
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
188
|
-
}, undefined
|
|
219
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
189
220
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
190
221
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
191
|
-
readonly kind: v.LiteralSchema<"
|
|
222
|
+
readonly kind: v.LiteralSchema<"draft.send.schedule", undefined>;
|
|
192
223
|
readonly payload: v.StrictObjectSchema<{
|
|
193
|
-
readonly
|
|
194
|
-
readonly
|
|
224
|
+
readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
225
|
+
readonly scheduledAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
195
226
|
}, undefined>;
|
|
196
227
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
197
228
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
198
|
-
}, undefined
|
|
229
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
199
230
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
200
231
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
201
|
-
readonly kind: v.LiteralSchema<"
|
|
232
|
+
readonly kind: v.LiteralSchema<"label.create", undefined>;
|
|
202
233
|
readonly payload: v.StrictObjectSchema<{
|
|
203
|
-
readonly
|
|
204
|
-
readonly
|
|
234
|
+
readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
|
|
235
|
+
readonly path: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
205
236
|
}, undefined>;
|
|
206
237
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
207
238
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
208
|
-
}, undefined
|
|
239
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
209
240
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
210
241
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
211
|
-
readonly kind: v.LiteralSchema<"
|
|
242
|
+
readonly kind: v.LiteralSchema<"label.delete", undefined>;
|
|
212
243
|
readonly payload: v.StrictObjectSchema<{
|
|
213
|
-
readonly
|
|
244
|
+
readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
|
|
214
245
|
}, undefined>;
|
|
215
246
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
216
247
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
217
|
-
}, undefined
|
|
248
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
218
249
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
219
250
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
220
|
-
readonly kind: v.LiteralSchema<"
|
|
251
|
+
readonly kind: v.LiteralSchema<"label.rename", undefined>;
|
|
221
252
|
readonly payload: v.StrictObjectSchema<{
|
|
222
|
-
readonly
|
|
223
|
-
readonly
|
|
224
|
-
readonly referencedMessageId: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>, undefined>;
|
|
225
|
-
readonly type: v.PicklistSchema<readonly ["NEW", "REPLY", "FORWARD"], undefined>;
|
|
253
|
+
readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
|
|
254
|
+
readonly path: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
226
255
|
}, undefined>;
|
|
227
256
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
228
257
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
229
|
-
}, undefined
|
|
258
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
259
|
+
readonly accountId: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>, undefined>;
|
|
260
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
261
|
+
readonly kind: v.LiteralSchema<"profile.avatar.set", undefined>;
|
|
262
|
+
readonly payload: v.StrictObjectSchema<{
|
|
263
|
+
readonly sha256: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
264
|
+
}, undefined>;
|
|
265
|
+
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
266
|
+
readonly version: v.LiteralSchema<1, undefined>;
|
|
267
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
268
|
+
readonly accountId: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>, undefined>;
|
|
269
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
270
|
+
readonly kind: v.LiteralSchema<"profile.settings.set", undefined>;
|
|
271
|
+
readonly payload: v.StrictObjectSchema<{
|
|
272
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>, undefined>;
|
|
273
|
+
readonly timezone: v.OptionalSchema<v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>, undefined>;
|
|
274
|
+
}, undefined>;
|
|
275
|
+
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
276
|
+
readonly version: v.LiteralSchema<1, undefined>;
|
|
277
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
230
278
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
231
279
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
232
|
-
readonly kind: v.LiteralSchema<"
|
|
280
|
+
readonly kind: v.LiteralSchema<"thread.archive.set", undefined>;
|
|
233
281
|
readonly payload: v.StrictObjectSchema<{
|
|
234
|
-
readonly
|
|
235
|
-
readonly
|
|
282
|
+
readonly archived: v.BooleanSchema<undefined>;
|
|
283
|
+
readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
|
|
236
284
|
}, undefined>;
|
|
237
285
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
238
286
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
239
|
-
}, undefined
|
|
287
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
240
288
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
241
289
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
242
|
-
readonly kind: v.LiteralSchema<"
|
|
290
|
+
readonly kind: v.LiteralSchema<"thread.delete", undefined>;
|
|
243
291
|
readonly payload: v.StrictObjectSchema<{
|
|
244
|
-
readonly
|
|
245
|
-
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
|
|
246
|
-
readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
247
|
-
readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 998, undefined>]>, undefined>;
|
|
248
|
-
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
|
|
292
|
+
readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
|
|
249
293
|
}, undefined>;
|
|
250
294
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
251
295
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
252
|
-
}, undefined
|
|
296
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
253
297
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
254
298
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
255
|
-
readonly kind: v.LiteralSchema<"
|
|
299
|
+
readonly kind: v.LiteralSchema<"thread.flagged.set", undefined>;
|
|
256
300
|
readonly payload: v.StrictObjectSchema<{
|
|
257
|
-
readonly
|
|
258
|
-
readonly
|
|
259
|
-
readonly targetAccountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
301
|
+
readonly flagged: v.BooleanSchema<undefined>;
|
|
302
|
+
readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
|
|
260
303
|
}, undefined>;
|
|
261
304
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
262
305
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
263
|
-
}, undefined
|
|
306
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
264
307
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
265
308
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
266
|
-
readonly kind: v.LiteralSchema<"
|
|
309
|
+
readonly kind: v.LiteralSchema<"thread.label.add", undefined>;
|
|
267
310
|
readonly payload: v.StrictObjectSchema<{
|
|
268
|
-
readonly
|
|
311
|
+
readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
|
|
312
|
+
readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
|
|
269
313
|
}, undefined>;
|
|
270
314
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
271
315
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
272
|
-
}, undefined
|
|
316
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
273
317
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
274
318
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
275
|
-
readonly kind: v.LiteralSchema<"
|
|
319
|
+
readonly kind: v.LiteralSchema<"thread.label.remove", undefined>;
|
|
276
320
|
readonly payload: v.StrictObjectSchema<{
|
|
277
|
-
readonly
|
|
278
|
-
readonly
|
|
279
|
-
readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
280
|
-
readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
281
|
-
readonly size: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
321
|
+
readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
|
|
322
|
+
readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
|
|
282
323
|
}, undefined>;
|
|
283
324
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
284
325
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
285
|
-
}, undefined
|
|
326
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
286
327
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
287
328
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
288
|
-
readonly kind: v.LiteralSchema<"
|
|
329
|
+
readonly kind: v.LiteralSchema<"thread.seen.set", undefined>;
|
|
289
330
|
readonly payload: v.StrictObjectSchema<{
|
|
290
|
-
readonly
|
|
291
|
-
readonly
|
|
331
|
+
readonly seen: v.BooleanSchema<undefined>;
|
|
332
|
+
readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
|
|
292
333
|
}, undefined>;
|
|
293
334
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
294
335
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
295
|
-
}, undefined
|
|
336
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
296
337
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
297
338
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
298
|
-
readonly kind: v.LiteralSchema<"
|
|
339
|
+
readonly kind: v.LiteralSchema<"thread.snooze.set", undefined>;
|
|
299
340
|
readonly payload: v.StrictObjectSchema<{
|
|
300
|
-
readonly
|
|
341
|
+
readonly snoozedUntil: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;
|
|
342
|
+
readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
|
|
301
343
|
}, undefined>;
|
|
302
344
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
303
345
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
304
|
-
}, undefined
|
|
346
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
305
347
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
306
348
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
307
|
-
readonly kind: v.LiteralSchema<"
|
|
349
|
+
readonly kind: v.LiteralSchema<"thread.spam.set", undefined>;
|
|
308
350
|
readonly payload: v.StrictObjectSchema<{
|
|
309
|
-
readonly
|
|
351
|
+
readonly spam: v.BooleanSchema<undefined>;
|
|
352
|
+
readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
|
|
310
353
|
}, undefined>;
|
|
311
354
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
312
355
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
313
|
-
}, undefined
|
|
356
|
+
}, undefined> | v.StrictObjectSchema<{
|
|
314
357
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
315
358
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
316
|
-
readonly kind: v.LiteralSchema<"
|
|
359
|
+
readonly kind: v.LiteralSchema<"thread.trash.set", undefined>;
|
|
317
360
|
readonly payload: v.StrictObjectSchema<{
|
|
318
|
-
readonly
|
|
319
|
-
readonly
|
|
361
|
+
readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
|
|
362
|
+
readonly trashed: v.BooleanSchema<undefined>;
|
|
320
363
|
}, undefined>;
|
|
321
364
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
322
365
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
323
|
-
}, undefined>], undefined>;
|
|
366
|
+
}, undefined>)[], undefined>;
|
|
324
367
|
readonly responseSchema: v.VariantSchema<"state", readonly [v.StrictObjectSchema<{
|
|
325
368
|
readonly canonicalRevision: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
326
369
|
readonly error: v.NullSchema<undefined>;
|
|
@@ -351,10 +394,10 @@ export declare const appwriteCommands: {
|
|
|
351
394
|
};
|
|
352
395
|
export type AppwriteCommandError = v.InferOutput<typeof appwriteCommands.errorSchema>;
|
|
353
396
|
export type AppwriteCommandRequest = v.InferOutput<typeof appwriteCommands.requestSchema>;
|
|
354
|
-
export type AppwriteCommandKind = AppwriteCommandRequest['kind'];
|
|
355
397
|
export type AppwriteCommandPayload<TKind extends AppwriteCommandKind> = Extract<AppwriteCommandRequest, {
|
|
356
398
|
kind: TKind;
|
|
357
399
|
}>['payload'];
|
|
358
400
|
export type AppwriteCommandResponse = v.InferOutput<typeof appwriteCommands.responseSchema>;
|
|
359
401
|
export type AppwriteCommandState = AppwriteCommandResponse['state'];
|
|
402
|
+
export {};
|
|
360
403
|
//# sourceMappingURL=commands.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/appwrite/commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,cAAc;8BACC,MAAM,KAAG,MAAM;CAC1C,CAAA;
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/appwrite/commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,cAAc;8BACC,MAAM,KAAG,MAAM;CAC1C,CAAA;AAED,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCR,CAAA;AAEV,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAA;AAIlF,eAAO,MAAM,qBAAqB;;;;;;;;CAkC6D,CAAA;AAkL/F,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUnB,CAAA;AAEV,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,WAAW,CAAC,CAAA;AACrF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,aAAa,CAAC,CAAA;AACzF,MAAM,MAAM,sBAAsB,CAAC,KAAK,SAAS,mBAAmB,IAAI,OAAO,CAAC,sBAAsB,EAAE;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,CAAC,CAAC,SAAS,CAAC,CAAA;AACnI,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,cAAc,CAAC,CAAA;AAC3F,MAAM,MAAM,oBAAoB,GAAG,uBAAuB,CAAC,OAAO,CAAC,CAAA"}
|