@marcoappio/marco-config 2.0.565 → 2.0.566
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/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/schemas/id.d.ts +64 -0
- package/dist/schemas/id.d.ts.map +1 -0
- package/dist/schemas/id.js +19 -0
- package/dist/schemas/index.d.ts +175 -124
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +2 -0
- package/dist/schemas/models/account.d.ts +13 -13
- package/dist/schemas/models/account.d.ts.map +1 -1
- package/dist/schemas/models/account.js +8 -7
- package/dist/schemas/models/contact.d.ts +2 -2
- package/dist/schemas/models/contact.d.ts.map +1 -1
- package/dist/schemas/models/contact.js +3 -2
- package/dist/schemas/models/draft.d.ts +9 -9
- package/dist/schemas/models/draft.d.ts.map +1 -1
- package/dist/schemas/models/draft.js +8 -7
- package/dist/schemas/models/thread.d.ts +30 -30
- package/dist/schemas/models/thread.d.ts.map +1 -1
- package/dist/schemas/models/thread.js +12 -11
- package/dist/schemas/models/user.d.ts +7 -7
- package/dist/schemas/models/user.d.ts.map +1 -1
- package/dist/schemas/models/user.js +5 -4
- package/dist/schemas/mutators/mutatorSchemas.d.ts +61 -61
- package/dist/schemas/mutators/mutatorSchemas.d.ts.map +1 -1
- package/dist/schemas/mutators/mutatorSchemas.js +49 -48
- package/dist/schemas/pushNotifications.d.ts +2 -2
- package/dist/schemas/pushNotifications.js +3 -3
- package/dist/sdk/endpoints/private/models/account/getAccounts.d.ts +9 -9
- package/dist/sdk/endpoints/private/models/contact/getContacts.d.ts +2 -2
- package/dist/sdk/endpoints/private/models/draft/getDrafts.d.ts +7 -7
- package/dist/sdk/endpoints/private/models/thread/getThread.d.ts +11 -11
- package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts +11 -11
- package/dist/sdk/endpoints/private/models/thread/getThreadList.d.ts +4 -4
- package/dist/sdk/endpoints/private/models/thread/getThreads.d.ts +11 -11
- package/dist/sdk/endpoints/private/models/user/getUser.d.ts +4 -4
- package/dist/sdk/endpoints/private/mutations/account/createAccount.d.ts +2 -2
- package/dist/sdk/endpoints/private/mutations/account/createAlias.d.ts +2 -2
- package/dist/sdk/endpoints/private/mutations/account/createLabel.d.ts +2 -2
- package/dist/sdk/endpoints/private/mutations/account/deleteAccount.d.ts +1 -1
- package/dist/sdk/endpoints/private/mutations/account/deleteAlias.d.ts +2 -2
- package/dist/sdk/endpoints/private/mutations/account/deleteLabel.d.ts +2 -2
- package/dist/sdk/endpoints/private/mutations/account/renameLabel.d.ts +2 -2
- package/dist/sdk/endpoints/private/mutations/account/setAliasName.d.ts +2 -2
- package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.d.ts +2 -2
- package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.d.ts +2 -2
- package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.d.ts +1 -1
- package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.d.ts +1 -1
- package/dist/sdk/endpoints/private/mutations/account/setSettings.d.ts +1 -1
- package/dist/sdk/endpoints/private/mutations/draft/cancelSend.d.ts +1 -1
- package/dist/sdk/endpoints/private/mutations/draft/createAttachment.d.ts +2 -2
- package/dist/sdk/endpoints/private/mutations/draft/createDraft.d.ts +4 -4
- package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.d.ts +2 -2
- package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.d.ts +1 -1
- package/dist/sdk/endpoints/private/mutations/draft/replaceContent.d.ts +1 -1
- package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.d.ts +2 -2
- package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.d.ts +3 -3
- package/dist/sdk/endpoints/private/mutations/draft/setFrom.d.ts +3 -3
- package/dist/sdk/endpoints/private/mutations/thread/addLabel.d.ts +1 -1
- package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.d.ts +1 -1
- package/dist/sdk/endpoints/private/mutations/thread/removeLabel.d.ts +1 -1
- package/dist/sdk/endpoints/private/mutations/thread/setArchive.d.ts +1 -1
- package/dist/sdk/endpoints/private/mutations/thread/setFlagged.d.ts +1 -1
- package/dist/sdk/endpoints/private/mutations/thread/setInbox.d.ts +1 -1
- package/dist/sdk/endpoints/private/mutations/thread/setSeen.d.ts +1 -1
- package/dist/sdk/endpoints/private/mutations/thread/setSnooze.d.ts +1 -1
- package/dist/sdk/endpoints/private/mutations/thread/setSpam.d.ts +1 -1
- package/dist/sdk/endpoints/private/mutations/thread/setTrash.d.ts +1 -1
- package/dist/sdk/endpoints/private/mutations/user/createView.d.ts +2 -2
- package/dist/sdk/endpoints/private/mutations/user/deletePushToken.d.ts +1 -1
- package/dist/sdk/endpoints/private/mutations/user/deleteView.d.ts +2 -2
- package/dist/sdk/endpoints/private/mutations/user/setPushToken.d.ts +2 -2
- package/dist/sdk/endpoints/private/mutations/user/setSettingsName.d.ts +1 -1
- package/dist/sdk/endpoints/private/mutations/user/updateView.d.ts +2 -2
- package/dist/types/IMAPSourceLocation.d.ts +3 -2
- package/dist/types/IMAPSourceLocation.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2,16 +2,17 @@ import * as v from 'valibot';
|
|
|
2
2
|
import { marcoConstants } from '../../constants';
|
|
3
3
|
import { DRAFT_ATTACHMENT_UPLOAD_STATUSES, DRAFT_STATUSES, DRAFT_TYPES, USER_SETTINGS_CUSTOM_VIEW_ICONS, } from '../../types';
|
|
4
4
|
import { socketTypeSchema } from '../emailAccount';
|
|
5
|
+
import { id } from '../id';
|
|
5
6
|
import { number } from '../number';
|
|
6
7
|
import { oauth } from '../oauth';
|
|
7
8
|
import { string } from '../string';
|
|
8
9
|
const accountAliasSchema = v.object({
|
|
9
10
|
emailAddress: string.email(),
|
|
10
|
-
id:
|
|
11
|
+
id: id.aliasId.required(),
|
|
11
12
|
name: string.nullable(),
|
|
12
13
|
});
|
|
13
14
|
const accountsSchema = v.record(string.required(), v.object({
|
|
14
|
-
threadIds: v.array(
|
|
15
|
+
threadIds: v.array(id.threadId.required()),
|
|
15
16
|
}));
|
|
16
17
|
const baseThreadSchema = v.object({
|
|
17
18
|
accounts: accountsSchema,
|
|
@@ -29,14 +30,14 @@ const draftBodySchema = v.object({
|
|
|
29
30
|
});
|
|
30
31
|
const draftAttachmentSchema = v.object({
|
|
31
32
|
fileName: string.required(),
|
|
32
|
-
id:
|
|
33
|
+
id: id.attachmentId.required(),
|
|
33
34
|
mimeType: string.required(),
|
|
34
35
|
status: v.picklist(DRAFT_ATTACHMENT_UPLOAD_STATUSES),
|
|
35
36
|
totalSize: number.positiveInteger(),
|
|
36
37
|
});
|
|
37
38
|
const userPushNotificationTokenSchema = v.object({
|
|
38
39
|
createdAt: number.positiveInteger(),
|
|
39
|
-
id:
|
|
40
|
+
id: id.pushNotificationTokenId.required(),
|
|
40
41
|
token: string.required(),
|
|
41
42
|
});
|
|
42
43
|
const connectionConfigOauthSchema = v.object({
|
|
@@ -59,116 +60,116 @@ const connectionConfigImapRawSchema = v.object({
|
|
|
59
60
|
const userViewSchema = v.object({
|
|
60
61
|
aliasEmails: v.pipe(v.array(string.email()), v.minLength(2), v.maxLength(marcoConstants.user.views.maxAliasEmailsPerView)),
|
|
61
62
|
icon: v.picklist(USER_SETTINGS_CUSTOM_VIEW_ICONS),
|
|
62
|
-
id:
|
|
63
|
+
id: id.viewId.required(),
|
|
63
64
|
name: string.required(),
|
|
64
65
|
});
|
|
65
66
|
export const mutatorSchemas = {
|
|
66
67
|
account: {
|
|
67
68
|
createAccount: v.object({
|
|
68
|
-
aliasId:
|
|
69
|
+
aliasId: id.aliasId.required(),
|
|
69
70
|
color: string.required(),
|
|
70
71
|
emailAddress: string.email(),
|
|
71
|
-
id:
|
|
72
|
+
id: id.accountId.required(),
|
|
72
73
|
}),
|
|
73
74
|
createAlias: v.object({
|
|
74
|
-
accountId:
|
|
75
|
+
accountId: id.accountId.required(),
|
|
75
76
|
alias: accountAliasSchema,
|
|
76
77
|
}),
|
|
77
78
|
createLabel: v.object({
|
|
78
|
-
accountId:
|
|
79
|
-
labelId:
|
|
79
|
+
accountId: id.accountId.required(),
|
|
80
|
+
labelId: id.labelId.required(),
|
|
80
81
|
name: v.pipe(v.string(), v.nonEmpty(), v.maxLength(255)),
|
|
81
82
|
}),
|
|
82
83
|
deleteAccount: v.object({
|
|
83
|
-
id:
|
|
84
|
+
id: id.accountId.required(),
|
|
84
85
|
}),
|
|
85
86
|
deleteAlias: v.object({
|
|
86
|
-
accountId:
|
|
87
|
-
aliasId:
|
|
87
|
+
accountId: id.accountId.required(),
|
|
88
|
+
aliasId: id.aliasId.required(),
|
|
88
89
|
}),
|
|
89
90
|
deleteLabel: v.object({
|
|
90
|
-
accountId:
|
|
91
|
-
labelId:
|
|
91
|
+
accountId: id.accountId.required(),
|
|
92
|
+
labelId: id.labelId.required(),
|
|
92
93
|
}),
|
|
93
94
|
renameLabel: v.object({
|
|
94
|
-
accountId:
|
|
95
|
-
labelId:
|
|
95
|
+
accountId: id.accountId.required(),
|
|
96
|
+
labelId: id.labelId.required(),
|
|
96
97
|
name: v.pipe(v.string(), v.nonEmpty(), v.maxLength(255)),
|
|
97
98
|
}),
|
|
98
99
|
setAliasName: v.object({
|
|
99
|
-
accountId:
|
|
100
|
-
aliasId:
|
|
100
|
+
accountId: id.accountId.required(),
|
|
101
|
+
aliasId: id.aliasId.required(),
|
|
101
102
|
displayName: string.nullable(),
|
|
102
103
|
}),
|
|
103
104
|
setAliasPrimary: v.object({
|
|
104
|
-
accountId:
|
|
105
|
-
aliasId:
|
|
105
|
+
accountId: id.accountId.required(),
|
|
106
|
+
aliasId: id.aliasId.required(),
|
|
106
107
|
}),
|
|
107
108
|
setAliasSignature: v.object({
|
|
108
|
-
accountId:
|
|
109
|
-
aliasId:
|
|
109
|
+
accountId: id.accountId.required(),
|
|
110
|
+
aliasId: id.aliasId.required(),
|
|
110
111
|
signature: v.nullable(v.pipe(v.string(), v.maxLength(50000))),
|
|
111
112
|
}),
|
|
112
113
|
setConnectionConfigImapRaw: v.object({
|
|
113
114
|
connectionConfig: connectionConfigImapRawSchema,
|
|
114
|
-
id:
|
|
115
|
+
id: id.accountId.required(),
|
|
115
116
|
}),
|
|
116
117
|
setConnectionConfigOauth: v.object({
|
|
117
118
|
connectionConfig: connectionConfigOauthSchema,
|
|
118
|
-
id:
|
|
119
|
+
id: id.accountId.required(),
|
|
119
120
|
}),
|
|
120
121
|
setSettings: v.object({
|
|
121
122
|
color: v.optional(string.nullable()),
|
|
122
123
|
displayName: v.optional(string.nullable()),
|
|
123
|
-
id:
|
|
124
|
+
id: id.accountId.required(),
|
|
124
125
|
}),
|
|
125
126
|
},
|
|
126
127
|
draft: {
|
|
127
128
|
cancelSend: v.object({
|
|
128
|
-
id:
|
|
129
|
+
id: id.draftId.required(),
|
|
129
130
|
updatedAt: number.positiveInteger(),
|
|
130
131
|
}),
|
|
131
132
|
createAttachment: v.object({
|
|
132
133
|
attachment: draftAttachmentSchema,
|
|
133
|
-
id:
|
|
134
|
+
id: id.draftId.required(),
|
|
134
135
|
updatedAt: number.positiveInteger(),
|
|
135
136
|
}),
|
|
136
137
|
createDraft: v.object({
|
|
137
|
-
accountId:
|
|
138
|
+
accountId: id.accountId.required(),
|
|
138
139
|
attachments: v.array(draftAttachmentSchema),
|
|
139
140
|
body: draftBodySchema,
|
|
140
141
|
error: string.nullable(),
|
|
141
142
|
from: string.email(),
|
|
142
143
|
fromName: string.nullable(),
|
|
143
|
-
id:
|
|
144
|
-
referencedMessageId:
|
|
144
|
+
id: id.draftId.required(),
|
|
145
|
+
referencedMessageId: id.messageId.nullable(),
|
|
145
146
|
scheduledFor: v.nullable(number.positiveInteger()),
|
|
146
147
|
status: v.picklist(DRAFT_STATUSES),
|
|
147
148
|
type: v.picklist(DRAFT_TYPES),
|
|
148
149
|
updatedAt: number.positiveInteger(),
|
|
149
150
|
}),
|
|
150
151
|
deleteAttachment: v.object({
|
|
151
|
-
attachmentId:
|
|
152
|
-
id:
|
|
152
|
+
attachmentId: id.attachmentId.required(),
|
|
153
|
+
id: id.draftId.required(),
|
|
153
154
|
updatedAt: number.positiveInteger(),
|
|
154
155
|
}),
|
|
155
156
|
deleteDraft: v.object({
|
|
156
|
-
id:
|
|
157
|
+
id: id.draftId.required(),
|
|
157
158
|
}),
|
|
158
159
|
replaceContent: v.object({
|
|
159
160
|
content: v.pipe(v.string(), v.maxLength(384000)),
|
|
160
|
-
id:
|
|
161
|
+
id: id.draftId.required(),
|
|
161
162
|
updatedAt: number.positiveInteger(),
|
|
162
163
|
}),
|
|
163
164
|
scheduleSend: v.union([
|
|
164
165
|
v.object({
|
|
165
|
-
id:
|
|
166
|
+
id: id.draftId.required(),
|
|
166
167
|
kind: v.literal('IMMEDIATE'),
|
|
167
168
|
undoMs: number.positiveInteger(),
|
|
168
169
|
updatedAt: number.positiveInteger(),
|
|
169
170
|
}),
|
|
170
171
|
v.object({
|
|
171
|
-
id:
|
|
172
|
+
id: id.draftId.required(),
|
|
172
173
|
kind: v.literal('SCHEDULED'),
|
|
173
174
|
scheduledFor: number.positiveInteger(),
|
|
174
175
|
updatedAt: number.positiveInteger(),
|
|
@@ -176,15 +177,15 @@ export const mutatorSchemas = {
|
|
|
176
177
|
]),
|
|
177
178
|
setEnvelope: v.object({
|
|
178
179
|
envelope: v.omit(draftBodySchema, ['content']),
|
|
179
|
-
id:
|
|
180
|
+
id: id.draftId.required(),
|
|
180
181
|
updatedAt: number.positiveInteger(),
|
|
181
182
|
}),
|
|
182
183
|
setFrom: v.object({
|
|
183
|
-
accountId:
|
|
184
|
-
aliasId:
|
|
184
|
+
accountId: id.accountId.required(),
|
|
185
|
+
aliasId: id.aliasId.required(),
|
|
185
186
|
from: string.email(),
|
|
186
187
|
fromName: string.nullable(),
|
|
187
|
-
id:
|
|
188
|
+
id: id.draftId.required(),
|
|
188
189
|
updatedAt: number.positiveInteger(),
|
|
189
190
|
}),
|
|
190
191
|
},
|
|
@@ -211,27 +212,27 @@ export const mutatorSchemas = {
|
|
|
211
212
|
},
|
|
212
213
|
user: {
|
|
213
214
|
createView: v.object({
|
|
214
|
-
id:
|
|
215
|
+
id: id.userId.required(),
|
|
215
216
|
view: userViewSchema,
|
|
216
217
|
}),
|
|
217
218
|
deleteSettingsPushNotificationToken: v.object({
|
|
218
|
-
id:
|
|
219
|
+
id: id.userId.required(),
|
|
219
220
|
token: string.required(),
|
|
220
221
|
}),
|
|
221
222
|
deleteView: v.object({
|
|
222
|
-
id:
|
|
223
|
-
viewId:
|
|
223
|
+
id: id.userId.required(),
|
|
224
|
+
viewId: id.viewId.required(),
|
|
224
225
|
}),
|
|
225
226
|
setSettingsName: v.object({
|
|
226
|
-
id:
|
|
227
|
+
id: id.userId.required(),
|
|
227
228
|
name: string.nullable(),
|
|
228
229
|
}),
|
|
229
230
|
setSettingsPushNotificationToken: v.object({
|
|
230
|
-
id:
|
|
231
|
+
id: id.userId.required(),
|
|
231
232
|
pushNotificationToken: userPushNotificationTokenSchema,
|
|
232
233
|
}),
|
|
233
234
|
updateView: v.object({
|
|
234
|
-
id:
|
|
235
|
+
id: id.userId.required(),
|
|
235
236
|
view: userViewSchema,
|
|
236
237
|
}),
|
|
237
238
|
},
|
|
@@ -2,8 +2,8 @@ import * as v from 'valibot';
|
|
|
2
2
|
export declare const pushNotifications: {
|
|
3
3
|
payload: v.UnionSchema<[v.ObjectSchema<{
|
|
4
4
|
readonly data: v.ObjectSchema<{
|
|
5
|
-
readonly messageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
6
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
5
|
+
readonly messageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
6
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
7
7
|
}, undefined>;
|
|
8
8
|
readonly event: v.LiteralSchema<"EMAIL_RECEIVED", undefined>;
|
|
9
9
|
}, undefined>], undefined>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
-
import {
|
|
2
|
+
import { id } from './id';
|
|
3
3
|
const pushNotificationEmailReceivedPayload = v.object({
|
|
4
4
|
data: v.object({
|
|
5
|
-
messageId:
|
|
6
|
-
threadId:
|
|
5
|
+
messageId: id.messageId.required(),
|
|
6
|
+
threadId: id.threadId.required(),
|
|
7
7
|
}),
|
|
8
8
|
event: v.literal('EMAIL_RECEIVED'),
|
|
9
9
|
});
|
|
@@ -30,20 +30,20 @@ export declare const getAccounts: import("../../../../..").EndpointConfig<"/v1/p
|
|
|
30
30
|
readonly data: v.ObjectSchema<{
|
|
31
31
|
readonly items: v.ArraySchema<v.ObjectSchema<{
|
|
32
32
|
readonly aliases: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
33
|
-
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
33
|
+
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
34
|
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
35
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
35
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
|
|
36
36
|
readonly isPrimary: v.BooleanSchema<undefined>;
|
|
37
37
|
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
38
38
|
readonly signature: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 50000, undefined>]>, undefined>;
|
|
39
39
|
}, undefined>, undefined>, undefined>;
|
|
40
40
|
readonly color: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
41
41
|
readonly displayName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
42
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
42
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
43
43
|
readonly imapConnectionStatus: v.PicklistSchema<readonly ["AWAITING_CONNECTION", "CONNECTED", "CONNECTION_FAILED_AUTHENTICATION_ERROR", "CONNECTION_FAILED_CONNECTION_ERROR", "CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", "CONNECTION_FAILED_QUOTA_ERROR", "CONNECTION_FAILED_UNKNOWN_ERROR"], undefined>;
|
|
44
44
|
readonly labels: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
45
|
-
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
46
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
45
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
46
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
|
|
47
47
|
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
48
48
|
readonly path: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
49
49
|
readonly specialUse: v.NullableSchema<v.PicklistSchema<readonly ["ARCHIVE", "INBOX", "SENT", "SPAM", "TRASH"], undefined>, undefined>;
|
|
@@ -53,15 +53,15 @@ export declare const getAccounts: import("../../../../..").EndpointConfig<"/v1/p
|
|
|
53
53
|
readonly mailProcessedCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
54
54
|
readonly mailTotalCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
55
55
|
readonly primaryAlias: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
56
|
-
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
56
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
57
57
|
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
58
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
58
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
|
|
59
59
|
readonly isPrimary: v.BooleanSchema<undefined>;
|
|
60
60
|
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
61
61
|
readonly signature: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 50000, undefined>]>, undefined>;
|
|
62
62
|
}, undefined>, undefined>, undefined>;
|
|
63
|
-
readonly primaryAliasId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
64
|
-
readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
63
|
+
readonly primaryAliasId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
|
|
64
|
+
readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
|
|
65
65
|
}, undefined>, undefined>;
|
|
66
66
|
readonly nextCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
67
67
|
}, undefined>;
|
|
@@ -30,9 +30,9 @@ export declare const getContacts: import("../../../../..").EndpointConfig<"/v1/p
|
|
|
30
30
|
readonly data: v.ObjectSchema<{
|
|
31
31
|
readonly items: v.ArraySchema<v.ObjectSchema<{
|
|
32
32
|
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
33
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
33
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ContactId">]>, undefined>;
|
|
34
34
|
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
35
|
-
readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
35
|
+
readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
|
|
36
36
|
}, undefined>, undefined>;
|
|
37
37
|
readonly nextCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
38
38
|
}, undefined>;
|
|
@@ -27,11 +27,11 @@ export declare const getDrafts: import("../../../../../types").EndpointConfig<"/
|
|
|
27
27
|
}, undefined>, v.ObjectSchema<{
|
|
28
28
|
readonly data: v.ObjectSchema<{
|
|
29
29
|
readonly items: v.ArraySchema<v.ObjectSchema<{
|
|
30
|
-
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
30
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
31
31
|
readonly attachments: v.ArraySchema<v.ObjectSchema<{
|
|
32
|
-
readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
32
|
+
readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
33
33
|
readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
34
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
34
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AttachmentId">]>, undefined>;
|
|
35
35
|
readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
36
36
|
readonly status: v.PicklistSchema<readonly ["PENDING", "COMPLETE", "FAILED"], undefined>;
|
|
37
37
|
readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
@@ -43,17 +43,17 @@ export declare const getDrafts: import("../../../../../types").EndpointConfig<"/
|
|
|
43
43
|
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
44
44
|
}, undefined>;
|
|
45
45
|
readonly error: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
46
|
-
readonly fromAliasId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
46
|
+
readonly fromAliasId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
|
|
47
47
|
readonly fromEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
48
48
|
readonly fromName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
49
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
50
|
-
readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
49
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
50
|
+
readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
51
51
|
readonly scheduledFor: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
52
52
|
readonly status: v.PicklistSchema<readonly ["DRAFT", "SEND_REQUESTED", "SEND_IN_PROGRESS", "SEND_CONFIRMED", "SEND_FAILED"], undefined>;
|
|
53
53
|
readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
54
54
|
readonly type: v.PicklistSchema<readonly ["NEW", "REPLY", "FORWARD"], undefined>;
|
|
55
55
|
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
56
|
-
readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
56
|
+
readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
|
|
57
57
|
}, undefined>, undefined>;
|
|
58
58
|
readonly nextCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
59
59
|
}, undefined>;
|
|
@@ -17,37 +17,37 @@ export declare const getThread: import("../../../../..").EndpointConfig<"/v1/pv/
|
|
|
17
17
|
}, undefined>, v.ObjectSchema<{
|
|
18
18
|
readonly data: v.ObjectSchema<{
|
|
19
19
|
readonly messages: v.ArraySchema<v.ObjectSchema<{
|
|
20
|
-
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
20
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
21
21
|
readonly attachments: v.ArraySchema<v.ObjectSchema<{
|
|
22
22
|
readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
23
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
23
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AttachmentId">]>, undefined>;
|
|
24
24
|
readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
25
25
|
readonly size: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
26
|
-
readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
26
|
+
readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
27
27
|
}, undefined>, undefined>;
|
|
28
28
|
readonly envelopeDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
29
29
|
readonly envelopeSubject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
30
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
30
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
31
31
|
readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
32
32
|
readonly recipients: v.ArraySchema<v.ObjectSchema<{
|
|
33
33
|
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
34
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
34
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "RecipientId">]>, undefined>;
|
|
35
35
|
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
36
|
-
readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
36
|
+
readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
37
37
|
readonly type: v.PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
|
|
38
38
|
}, undefined>, undefined>;
|
|
39
39
|
readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
40
40
|
readonly senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
41
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
41
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
42
42
|
readonly unsubscribeUrl: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
43
43
|
}, undefined>, undefined>;
|
|
44
|
-
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
44
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
45
45
|
readonly flagged: v.BooleanSchema<undefined>;
|
|
46
46
|
readonly hasAttachments: v.BooleanSchema<undefined>;
|
|
47
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
47
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
48
48
|
readonly labelIdList: v.StringSchema<undefined>;
|
|
49
49
|
readonly latestMessageDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
50
|
-
readonly latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
50
|
+
readonly latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
51
51
|
readonly messageCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
52
52
|
readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
53
53
|
readonly seen: v.BooleanSchema<undefined>;
|
|
@@ -55,7 +55,7 @@ export declare const getThread: import("../../../../..").EndpointConfig<"/v1/pv/
|
|
|
55
55
|
readonly senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
56
56
|
readonly snoozedUntil: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
57
57
|
readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
58
|
-
readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
58
|
+
readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
|
|
59
59
|
readonly words: v.StringSchema<undefined>;
|
|
60
60
|
}, undefined>;
|
|
61
61
|
readonly status: v.LiteralSchema<200, undefined>;
|
|
@@ -17,37 +17,37 @@ export declare const getThreadByMessageId: import("../../../../..").EndpointConf
|
|
|
17
17
|
}, undefined>, v.ObjectSchema<{
|
|
18
18
|
readonly data: v.ObjectSchema<{
|
|
19
19
|
readonly messages: v.ArraySchema<v.ObjectSchema<{
|
|
20
|
-
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
20
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
21
21
|
readonly attachments: v.ArraySchema<v.ObjectSchema<{
|
|
22
22
|
readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
23
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
23
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AttachmentId">]>, undefined>;
|
|
24
24
|
readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
25
25
|
readonly size: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
26
|
-
readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
26
|
+
readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
27
27
|
}, undefined>, undefined>;
|
|
28
28
|
readonly envelopeDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
29
29
|
readonly envelopeSubject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
30
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
30
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
31
31
|
readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
32
32
|
readonly recipients: v.ArraySchema<v.ObjectSchema<{
|
|
33
33
|
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
34
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
34
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "RecipientId">]>, undefined>;
|
|
35
35
|
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
36
|
-
readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
36
|
+
readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
37
37
|
readonly type: v.PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
|
|
38
38
|
}, undefined>, undefined>;
|
|
39
39
|
readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
40
40
|
readonly senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
41
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
41
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
42
42
|
readonly unsubscribeUrl: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
43
43
|
}, undefined>, undefined>;
|
|
44
|
-
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
44
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
45
45
|
readonly flagged: v.BooleanSchema<undefined>;
|
|
46
46
|
readonly hasAttachments: v.BooleanSchema<undefined>;
|
|
47
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
47
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
48
48
|
readonly labelIdList: v.StringSchema<undefined>;
|
|
49
49
|
readonly latestMessageDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
50
|
-
readonly latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
50
|
+
readonly latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
51
51
|
readonly messageCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
52
52
|
readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
53
53
|
readonly seen: v.BooleanSchema<undefined>;
|
|
@@ -55,7 +55,7 @@ export declare const getThreadByMessageId: import("../../../../..").EndpointConf
|
|
|
55
55
|
readonly senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
56
56
|
readonly snoozedUntil: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
57
57
|
readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
58
|
-
readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
58
|
+
readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
|
|
59
59
|
readonly words: v.StringSchema<undefined>;
|
|
60
60
|
}, undefined>;
|
|
61
61
|
readonly status: v.LiteralSchema<200, undefined>;
|
|
@@ -55,13 +55,13 @@ export declare const getThreadList: import("../../../../..").EndpointConfig<"/v1
|
|
|
55
55
|
}, undefined>, v.ObjectSchema<{
|
|
56
56
|
readonly data: v.ObjectSchema<{
|
|
57
57
|
readonly items: v.ArraySchema<v.ObjectSchema<{
|
|
58
|
-
accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
58
|
+
accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
59
59
|
flagged: v.BooleanSchema<undefined>;
|
|
60
60
|
hasAttachments: v.BooleanSchema<undefined>;
|
|
61
|
-
id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
61
|
+
id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
62
62
|
labelIdList: v.StringSchema<undefined>;
|
|
63
63
|
latestMessageDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
64
|
-
latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
64
|
+
latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
65
65
|
messageCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
66
66
|
previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
67
67
|
seen: v.BooleanSchema<undefined>;
|
|
@@ -69,7 +69,7 @@ export declare const getThreadList: import("../../../../..").EndpointConfig<"/v1
|
|
|
69
69
|
senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
70
70
|
snoozedUntil: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
71
71
|
subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
72
|
-
userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
72
|
+
userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
|
|
73
73
|
words: v.StringSchema<undefined>;
|
|
74
74
|
}, undefined>, undefined>;
|
|
75
75
|
readonly nextCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|