@marcoappio/marco-config 8.0.1 → 10.0.0

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.
Files changed (36) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/schemas/index.d.ts +139 -1
  4. package/dist/schemas/index.d.ts.map +1 -1
  5. package/dist/schemas/index.js +2 -1
  6. package/dist/schemas/models/index.d.ts +1 -1
  7. package/dist/schemas/models/index.d.ts.map +1 -1
  8. package/dist/schemas/models/index.js +1 -1
  9. package/dist/schemas/models/thread.d.ts +140 -0
  10. package/dist/schemas/models/thread.d.ts.map +1 -1
  11. package/dist/schemas/models/thread.js +50 -0
  12. package/dist/sdk/endpoints/private/models/thread/getThread.d.ts +46 -0
  13. package/dist/sdk/endpoints/private/models/thread/getThread.d.ts.map +1 -1
  14. package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts +46 -0
  15. package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts.map +1 -1
  16. package/dist/sdk/endpoints/private/models/thread/getThreadList.d.ts +46 -0
  17. package/dist/sdk/endpoints/private/models/thread/getThreadList.d.ts.map +1 -1
  18. package/dist/sdk/endpoints/private/mutations/thread/index.d.ts +2 -0
  19. package/dist/sdk/endpoints/private/mutations/thread/index.d.ts.map +1 -1
  20. package/dist/sdk/endpoints/private/mutations/thread/index.js +2 -0
  21. package/dist/sdk/endpoints/private/mutations/thread/retryLabelMove.d.ts +37 -0
  22. package/dist/sdk/endpoints/private/mutations/thread/retryLabelMove.d.ts.map +1 -0
  23. package/dist/sdk/endpoints/private/mutations/thread/retryLabelMove.js +17 -0
  24. package/dist/sdk/endpoints/private/mutations/thread/settleLabelMove.d.ts +44 -0
  25. package/dist/sdk/endpoints/private/mutations/thread/settleLabelMove.d.ts.map +1 -0
  26. package/dist/sdk/endpoints/private/mutations/thread/settleLabelMove.js +19 -0
  27. package/dist/sdk/index.d.ts +12 -0
  28. package/dist/sdk/index.d.ts.map +1 -1
  29. package/dist/sdk/validation/errors.d.ts +24 -0
  30. package/dist/sdk/validation/errors.d.ts.map +1 -1
  31. package/dist/sdk/validation/errors.js +10 -0
  32. package/dist/sdk/validation/index.d.ts +12 -0
  33. package/dist/sdk/validation/index.d.ts.map +1 -1
  34. package/dist/types/SDKError.d.ts +1 -1
  35. package/dist/types/SDKError.d.ts.map +1 -1
  36. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { marcoConstants } from './constants';
2
2
  export { MARCO_ENV, type MarcoEnvironment, marcoPublicConfig } from './marcoPublicConfig';
3
- export { type Account, type AccountAlias, type AccountId, type AccountLabel, type AliasId, type AttachmentId, type Contact, type ContactId, type Draft, type DraftAttachment, type DraftBody, type DraftId, type LabelId, type MessageId, marcoSchemas, type PushNotificationTokenId, type RecipientId, type Thread, type ThreadId, type ThreadMessage, type ThreadMessageAttachment, type ThreadMessageRecipient, type User, type UserId, type UserPushNotificationToken, type UserView, type ViewId, } from './schemas';
3
+ export { type Account, type AccountAlias, type AccountId, type AccountLabel, type AliasId, type AttachmentId, type Contact, type ContactId, type Draft, type DraftAttachment, type DraftBody, type DraftId, type LabelId, type LabelMove, type MessageId, marcoSchemas, type PushNotificationTokenId, type RecipientId, type Thread, type ThreadId, type ThreadMessage, type ThreadMessageAttachment, type ThreadMessageRecipient, type User, type UserId, type UserPushNotificationToken, type UserView, type ViewId, } from './schemas';
4
4
  export { marcoSDK } from './sdk';
5
5
  export * from './types';
6
6
  export { accountUtils, labelUtils, threadsUtils } from './utils';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACzF,OAAO,EACL,KAAK,OAAO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uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,IAAI,EACT,KAAK,MAAM,EACX,KAAK,yBAAyB,EAC9B,KAAK,QAAQ,EACb,KAAK,MAAM,GACZ,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA"}
@@ -1,5 +1,5 @@
1
1
  export type { AccountId, AliasId, AttachmentId, ContactId, DraftId, LabelId, MessageId, PushNotificationTokenId, RecipientId, ThreadId, UserId, ViewId, } from './id';
2
- export type { Account, AccountAlias, AccountLabel, Contact, Draft, DraftAttachment, DraftBody, Thread, ThreadMessage, ThreadMessageAttachment, ThreadMessageRecipient, User, UserPushNotificationToken, UserView, } from './models';
2
+ export type { Account, AccountAlias, AccountLabel, Contact, Draft, DraftAttachment, DraftBody, LabelMove, Thread, ThreadMessage, ThreadMessageAttachment, ThreadMessageRecipient, User, UserPushNotificationToken, UserView, } from './models';
3
3
  export { mutatorSchemas } from './mutators';
4
4
  export declare const marcoSchemas: {
5
5
  app: {
@@ -191,12 +191,104 @@ export declare const marcoSchemas: {
191
191
  readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
192
192
  readonly userId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "UserId">]>, undefined>;
193
193
  }, undefined>;
194
+ labelMoveSchema: import("valibot").VariantSchema<"status", [import("valibot").StrictObjectSchema<{
195
+ readonly canRetry: import("valibot").LiteralSchema<false, undefined>;
196
+ readonly canSettle: import("valibot").LiteralSchema<false, undefined>;
197
+ readonly failureCode: import("valibot").NullSchema<undefined>;
198
+ readonly settledAt: import("valibot").NullSchema<undefined>;
199
+ readonly status: import("valibot").LiteralSchema<"pending", undefined>;
200
+ readonly affectedThreadCount: import("valibot").SchemaWithPipe<readonly [import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>;
201
+ readonly mutationToken: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
202
+ readonly target: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
203
+ }, undefined>, import("valibot").StrictObjectSchema<{
204
+ readonly canRetry: import("valibot").BooleanSchema<undefined>;
205
+ readonly canSettle: import("valibot").BooleanSchema<undefined>;
206
+ readonly failureCode: import("valibot").PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
207
+ readonly settledAt: import("valibot").NullSchema<undefined>;
208
+ readonly status: import("valibot").LiteralSchema<"failed", undefined>;
209
+ readonly affectedThreadCount: import("valibot").SchemaWithPipe<readonly [import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>;
210
+ readonly mutationToken: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
211
+ readonly target: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
212
+ }, undefined>, import("valibot").StrictObjectSchema<{
213
+ readonly canRetry: import("valibot").LiteralSchema<false, undefined>;
214
+ readonly canSettle: import("valibot").LiteralSchema<false, undefined>;
215
+ readonly failureCode: import("valibot").PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
216
+ readonly settledAt: import("valibot").NullSchema<undefined>;
217
+ readonly status: import("valibot").LiteralSchema<"settling", undefined>;
218
+ readonly affectedThreadCount: import("valibot").SchemaWithPipe<readonly [import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>;
219
+ readonly mutationToken: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
220
+ readonly target: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
221
+ }, undefined>, import("valibot").StrictObjectSchema<{
222
+ readonly canRetry: import("valibot").LiteralSchema<false, undefined>;
223
+ readonly canSettle: import("valibot").LiteralSchema<true, undefined>;
224
+ readonly failureCode: import("valibot").PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
225
+ readonly settledAt: import("valibot").NullSchema<undefined>;
226
+ readonly status: import("valibot").LiteralSchema<"settlement_failed", undefined>;
227
+ readonly affectedThreadCount: import("valibot").SchemaWithPipe<readonly [import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>;
228
+ readonly mutationToken: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
229
+ readonly target: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
230
+ }, undefined>, import("valibot").StrictObjectSchema<{
231
+ readonly canRetry: import("valibot").LiteralSchema<false, undefined>;
232
+ readonly canSettle: import("valibot").LiteralSchema<false, undefined>;
233
+ readonly failureCode: import("valibot").PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
234
+ readonly settledAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
235
+ readonly status: import("valibot").LiteralSchema<"settled", undefined>;
236
+ readonly affectedThreadCount: import("valibot").SchemaWithPipe<readonly [import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>;
237
+ readonly mutationToken: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
238
+ readonly target: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
239
+ }, undefined>], undefined>;
194
240
  threadListSchema: import("valibot").StrictObjectSchema<{
195
241
  accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>;
196
242
  flagged: import("valibot").BooleanSchema<undefined>;
197
243
  hasAttachments: import("valibot").BooleanSchema<undefined>;
198
244
  id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "ThreadId">]>, undefined>;
199
245
  labelIdList: import("valibot").StringSchema<undefined>;
246
+ labelMove: import("valibot").NullableSchema<import("valibot").VariantSchema<"status", [import("valibot").StrictObjectSchema<{
247
+ readonly canRetry: import("valibot").LiteralSchema<false, undefined>;
248
+ readonly canSettle: import("valibot").LiteralSchema<false, undefined>;
249
+ readonly failureCode: import("valibot").NullSchema<undefined>;
250
+ readonly settledAt: import("valibot").NullSchema<undefined>;
251
+ readonly status: import("valibot").LiteralSchema<"pending", undefined>;
252
+ readonly affectedThreadCount: import("valibot").SchemaWithPipe<readonly [import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>;
253
+ readonly mutationToken: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
254
+ readonly target: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
255
+ }, undefined>, import("valibot").StrictObjectSchema<{
256
+ readonly canRetry: import("valibot").BooleanSchema<undefined>;
257
+ readonly canSettle: import("valibot").BooleanSchema<undefined>;
258
+ readonly failureCode: import("valibot").PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
259
+ readonly settledAt: import("valibot").NullSchema<undefined>;
260
+ readonly status: import("valibot").LiteralSchema<"failed", undefined>;
261
+ readonly affectedThreadCount: import("valibot").SchemaWithPipe<readonly [import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>;
262
+ readonly mutationToken: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
263
+ readonly target: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
264
+ }, undefined>, import("valibot").StrictObjectSchema<{
265
+ readonly canRetry: import("valibot").LiteralSchema<false, undefined>;
266
+ readonly canSettle: import("valibot").LiteralSchema<false, undefined>;
267
+ readonly failureCode: import("valibot").PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
268
+ readonly settledAt: import("valibot").NullSchema<undefined>;
269
+ readonly status: import("valibot").LiteralSchema<"settling", undefined>;
270
+ readonly affectedThreadCount: import("valibot").SchemaWithPipe<readonly [import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>;
271
+ readonly mutationToken: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
272
+ readonly target: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
273
+ }, undefined>, import("valibot").StrictObjectSchema<{
274
+ readonly canRetry: import("valibot").LiteralSchema<false, undefined>;
275
+ readonly canSettle: import("valibot").LiteralSchema<true, undefined>;
276
+ readonly failureCode: import("valibot").PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
277
+ readonly settledAt: import("valibot").NullSchema<undefined>;
278
+ readonly status: import("valibot").LiteralSchema<"settlement_failed", undefined>;
279
+ readonly affectedThreadCount: import("valibot").SchemaWithPipe<readonly [import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>;
280
+ readonly mutationToken: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
281
+ readonly target: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
282
+ }, undefined>, import("valibot").StrictObjectSchema<{
283
+ readonly canRetry: import("valibot").LiteralSchema<false, undefined>;
284
+ readonly canSettle: import("valibot").LiteralSchema<false, undefined>;
285
+ readonly failureCode: import("valibot").PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
286
+ readonly settledAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
287
+ readonly status: import("valibot").LiteralSchema<"settled", undefined>;
288
+ readonly affectedThreadCount: import("valibot").SchemaWithPipe<readonly [import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>;
289
+ readonly mutationToken: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
290
+ readonly target: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
291
+ }, undefined>], undefined>, undefined>;
200
292
  latestMessageDate: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
201
293
  latestMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "MessageId">]>, undefined>;
202
294
  messageCount: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
@@ -240,6 +332,52 @@ export declare const marcoSchemas: {
240
332
  hasAttachments: import("valibot").BooleanSchema<undefined>;
241
333
  id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "ThreadId">]>, undefined>;
242
334
  labelIdList: import("valibot").StringSchema<undefined>;
335
+ labelMove: import("valibot").NullableSchema<import("valibot").VariantSchema<"status", [import("valibot").StrictObjectSchema<{
336
+ readonly canRetry: import("valibot").LiteralSchema<false, undefined>;
337
+ readonly canSettle: import("valibot").LiteralSchema<false, undefined>;
338
+ readonly failureCode: import("valibot").NullSchema<undefined>;
339
+ readonly settledAt: import("valibot").NullSchema<undefined>;
340
+ readonly status: import("valibot").LiteralSchema<"pending", undefined>;
341
+ readonly affectedThreadCount: import("valibot").SchemaWithPipe<readonly [import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>;
342
+ readonly mutationToken: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
343
+ readonly target: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
344
+ }, undefined>, import("valibot").StrictObjectSchema<{
345
+ readonly canRetry: import("valibot").BooleanSchema<undefined>;
346
+ readonly canSettle: import("valibot").BooleanSchema<undefined>;
347
+ readonly failureCode: import("valibot").PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
348
+ readonly settledAt: import("valibot").NullSchema<undefined>;
349
+ readonly status: import("valibot").LiteralSchema<"failed", undefined>;
350
+ readonly affectedThreadCount: import("valibot").SchemaWithPipe<readonly [import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>;
351
+ readonly mutationToken: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
352
+ readonly target: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
353
+ }, undefined>, import("valibot").StrictObjectSchema<{
354
+ readonly canRetry: import("valibot").LiteralSchema<false, undefined>;
355
+ readonly canSettle: import("valibot").LiteralSchema<false, undefined>;
356
+ readonly failureCode: import("valibot").PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
357
+ readonly settledAt: import("valibot").NullSchema<undefined>;
358
+ readonly status: import("valibot").LiteralSchema<"settling", undefined>;
359
+ readonly affectedThreadCount: import("valibot").SchemaWithPipe<readonly [import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>;
360
+ readonly mutationToken: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
361
+ readonly target: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
362
+ }, undefined>, import("valibot").StrictObjectSchema<{
363
+ readonly canRetry: import("valibot").LiteralSchema<false, undefined>;
364
+ readonly canSettle: import("valibot").LiteralSchema<true, undefined>;
365
+ readonly failureCode: import("valibot").PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
366
+ readonly settledAt: import("valibot").NullSchema<undefined>;
367
+ readonly status: import("valibot").LiteralSchema<"settlement_failed", undefined>;
368
+ readonly affectedThreadCount: import("valibot").SchemaWithPipe<readonly [import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>;
369
+ readonly mutationToken: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
370
+ readonly target: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
371
+ }, undefined>, import("valibot").StrictObjectSchema<{
372
+ readonly canRetry: import("valibot").LiteralSchema<false, undefined>;
373
+ readonly canSettle: import("valibot").LiteralSchema<false, undefined>;
374
+ readonly failureCode: import("valibot").PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
375
+ readonly settledAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
376
+ readonly status: import("valibot").LiteralSchema<"settled", undefined>;
377
+ readonly affectedThreadCount: import("valibot").SchemaWithPipe<readonly [import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>;
378
+ readonly mutationToken: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
379
+ readonly target: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
380
+ }, undefined>], undefined>, undefined>;
243
381
  latestMessageDate: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
244
382
  latestMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "MessageId">]>, undefined>;
245
383
  messageCount: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AA8BA,YAAY,EACV,SAAS,EACT,OAAO,EACP,YAAY,EACZ,SAAS,EACT,OAAO,EACP,OAAO,EACP,SAAS,EACT,uBAAuB,EACvB,WAAW,EACX,QAAQ,EACR,MAAM,EACN,MAAM,GACP,MAAM,MAAM,CAAA;AACb,YAAY,EACV,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,KAAK,EACL,eAAe,EACf,SAAS,EACT,MAAM,EACN,aAAa,EACb,uBAAuB,EACvB,sBAAsB,EACtB,IAAI,EACJ,yBAAyB,EACzB,QAAQ,GACT,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BxB,CAAA"}
@@ -4,7 +4,7 @@ import { boolean } from './boolean';
4
4
  import { emailAccount } from './emailAccount';
5
5
  import { id } from './id';
6
6
  import { labels } from './labels';
7
- import { accountAliasSchema, accountLabelSchema, accountSchema, contactSchema, draftAttachmentSchema, draftBodySchema, draftSchema, threadListSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, userPushNotificationTokenSchema, userSchema, userViewSchema, } from './models';
7
+ import { accountAliasSchema, accountLabelSchema, accountSchema, contactSchema, draftAttachmentSchema, draftBodySchema, draftSchema, labelMoveSchema, threadListSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, userPushNotificationTokenSchema, userSchema, userViewSchema, } from './models';
8
8
  import { mutatorSchemas } from './mutators';
9
9
  import { number } from './number';
10
10
  import { oauth } from './oauth';
@@ -27,6 +27,7 @@ export const marcoSchemas = {
27
27
  draftAttachmentSchema,
28
28
  draftBodySchema,
29
29
  draftSchema,
30
+ labelMoveSchema,
30
31
  threadListSchema,
31
32
  threadMessageAttachmentSchema,
32
33
  threadMessageRecipientSchema,
@@ -1,6 +1,6 @@
1
1
  export { type Account, type AccountAlias, type AccountLabel, accountAliasSchema, accountLabelSchema, accountSchema, } from './account';
2
2
  export { type Contact, contactSchema } from './contact';
3
3
  export { type Draft, type DraftAttachment, type DraftBody, draftAttachmentSchema, draftBodySchema, draftSchema, } from './draft';
4
- export { type Thread, type ThreadMessage, type ThreadMessageAttachment, type ThreadMessageRecipient, threadListSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, } from './thread';
4
+ export { type LabelMove, labelMoveSchema, type Thread, type ThreadMessage, type ThreadMessageAttachment, type ThreadMessageRecipient, threadListSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, } from './thread';
5
5
  export { type User, type UserPushNotificationToken, type UserView, userPushNotificationTokenSchema, userSchema, userViewSchema, } from './user';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,GACd,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,KAAK,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EACL,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,qBAAqB,EACrB,eAAe,EACf,WAAW,GACZ,MAAM,SAAS,CAAA;AAChB,OAAO,EACL,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,gBAAgB,EAChB,6BAA6B,EAC7B,4BAA4B,EAC5B,mBAAmB,EACnB,YAAY,GACb,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,KAAK,IAAI,EACT,KAAK,yBAAyB,EAC9B,KAAK,QAAQ,EACb,+BAA+B,EAC/B,UAAU,EACV,cAAc,GACf,MAAM,QAAQ,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,GACd,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,KAAK,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EACL,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,qBAAqB,EACrB,eAAe,EACf,WAAW,GACZ,MAAM,SAAS,CAAA;AAChB,OAAO,EACL,KAAK,SAAS,EACd,eAAe,EACf,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,gBAAgB,EAChB,6BAA6B,EAC7B,4BAA4B,EAC5B,mBAAmB,EACnB,YAAY,GACb,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,KAAK,IAAI,EACT,KAAK,yBAAyB,EAC9B,KAAK,QAAQ,EACb,+BAA+B,EAC/B,UAAU,EACV,cAAc,GACf,MAAM,QAAQ,CAAA"}
@@ -1,5 +1,5 @@
1
1
  export { accountAliasSchema, accountLabelSchema, accountSchema, } from './account';
2
2
  export { contactSchema } from './contact';
3
3
  export { draftAttachmentSchema, draftBodySchema, draftSchema, } from './draft';
4
- export { threadListSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, } from './thread';
4
+ export { labelMoveSchema, threadListSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, } from './thread';
5
5
  export { userPushNotificationTokenSchema, userSchema, userViewSchema, } from './user';
@@ -24,12 +24,106 @@ export declare const threadMessageSchema: v.ObjectSchema<{
24
24
  readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
25
25
  readonly unsubscribeUrl: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
26
26
  }, undefined>;
27
+ export declare const labelMoveMutationTokenSchema: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
28
+ export declare const labelMoveSchema: v.VariantSchema<"status", [v.StrictObjectSchema<{
29
+ readonly canRetry: v.LiteralSchema<false, undefined>;
30
+ readonly canSettle: v.LiteralSchema<false, undefined>;
31
+ readonly failureCode: v.NullSchema<undefined>;
32
+ readonly settledAt: v.NullSchema<undefined>;
33
+ readonly status: v.LiteralSchema<"pending", undefined>;
34
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
35
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
36
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
37
+ }, undefined>, v.StrictObjectSchema<{
38
+ readonly canRetry: v.BooleanSchema<undefined>;
39
+ readonly canSettle: v.BooleanSchema<undefined>;
40
+ readonly failureCode: v.PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
41
+ readonly settledAt: v.NullSchema<undefined>;
42
+ readonly status: v.LiteralSchema<"failed", undefined>;
43
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
44
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
45
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
46
+ }, undefined>, v.StrictObjectSchema<{
47
+ readonly canRetry: v.LiteralSchema<false, undefined>;
48
+ readonly canSettle: v.LiteralSchema<false, undefined>;
49
+ readonly failureCode: v.PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
50
+ readonly settledAt: v.NullSchema<undefined>;
51
+ readonly status: v.LiteralSchema<"settling", undefined>;
52
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
53
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
54
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
55
+ }, undefined>, v.StrictObjectSchema<{
56
+ readonly canRetry: v.LiteralSchema<false, undefined>;
57
+ readonly canSettle: v.LiteralSchema<true, undefined>;
58
+ readonly failureCode: v.PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
59
+ readonly settledAt: v.NullSchema<undefined>;
60
+ readonly status: v.LiteralSchema<"settlement_failed", undefined>;
61
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
62
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
63
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
64
+ }, undefined>, v.StrictObjectSchema<{
65
+ readonly canRetry: v.LiteralSchema<false, undefined>;
66
+ readonly canSettle: v.LiteralSchema<false, undefined>;
67
+ readonly failureCode: v.PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
68
+ readonly settledAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
69
+ readonly status: v.LiteralSchema<"settled", undefined>;
70
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
71
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
72
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
73
+ }, undefined>], undefined>;
74
+ export type LabelMove = v.InferOutput<typeof labelMoveSchema>;
27
75
  export declare const threadSchema: v.StrictObjectSchema<{
28
76
  accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
29
77
  flagged: v.BooleanSchema<undefined>;
30
78
  hasAttachments: v.BooleanSchema<undefined>;
31
79
  id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
32
80
  labelIdList: v.StringSchema<undefined>;
81
+ labelMove: v.NullableSchema<v.VariantSchema<"status", [v.StrictObjectSchema<{
82
+ readonly canRetry: v.LiteralSchema<false, undefined>;
83
+ readonly canSettle: v.LiteralSchema<false, undefined>;
84
+ readonly failureCode: v.NullSchema<undefined>;
85
+ readonly settledAt: v.NullSchema<undefined>;
86
+ readonly status: v.LiteralSchema<"pending", undefined>;
87
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
88
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
89
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
90
+ }, undefined>, v.StrictObjectSchema<{
91
+ readonly canRetry: v.BooleanSchema<undefined>;
92
+ readonly canSettle: v.BooleanSchema<undefined>;
93
+ readonly failureCode: v.PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
94
+ readonly settledAt: v.NullSchema<undefined>;
95
+ readonly status: v.LiteralSchema<"failed", undefined>;
96
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
97
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
98
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
99
+ }, undefined>, v.StrictObjectSchema<{
100
+ readonly canRetry: v.LiteralSchema<false, undefined>;
101
+ readonly canSettle: v.LiteralSchema<false, undefined>;
102
+ readonly failureCode: v.PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
103
+ readonly settledAt: v.NullSchema<undefined>;
104
+ readonly status: v.LiteralSchema<"settling", undefined>;
105
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
106
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
107
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
108
+ }, undefined>, v.StrictObjectSchema<{
109
+ readonly canRetry: v.LiteralSchema<false, undefined>;
110
+ readonly canSettle: v.LiteralSchema<true, undefined>;
111
+ readonly failureCode: v.PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
112
+ readonly settledAt: v.NullSchema<undefined>;
113
+ readonly status: v.LiteralSchema<"settlement_failed", undefined>;
114
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
115
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
116
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
117
+ }, undefined>, v.StrictObjectSchema<{
118
+ readonly canRetry: v.LiteralSchema<false, undefined>;
119
+ readonly canSettle: v.LiteralSchema<false, undefined>;
120
+ readonly failureCode: v.PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
121
+ readonly settledAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
122
+ readonly status: v.LiteralSchema<"settled", undefined>;
123
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
124
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
125
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
126
+ }, undefined>], undefined>, undefined>;
33
127
  latestMessageDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
34
128
  latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
35
129
  messageCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
@@ -48,6 +142,52 @@ export declare const threadListSchema: v.StrictObjectSchema<{
48
142
  hasAttachments: v.BooleanSchema<undefined>;
49
143
  id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
50
144
  labelIdList: v.StringSchema<undefined>;
145
+ labelMove: v.NullableSchema<v.VariantSchema<"status", [v.StrictObjectSchema<{
146
+ readonly canRetry: v.LiteralSchema<false, undefined>;
147
+ readonly canSettle: v.LiteralSchema<false, undefined>;
148
+ readonly failureCode: v.NullSchema<undefined>;
149
+ readonly settledAt: v.NullSchema<undefined>;
150
+ readonly status: v.LiteralSchema<"pending", undefined>;
151
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
152
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
153
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
154
+ }, undefined>, v.StrictObjectSchema<{
155
+ readonly canRetry: v.BooleanSchema<undefined>;
156
+ readonly canSettle: v.BooleanSchema<undefined>;
157
+ readonly failureCode: v.PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
158
+ readonly settledAt: v.NullSchema<undefined>;
159
+ readonly status: v.LiteralSchema<"failed", undefined>;
160
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
161
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
162
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
163
+ }, undefined>, v.StrictObjectSchema<{
164
+ readonly canRetry: v.LiteralSchema<false, undefined>;
165
+ readonly canSettle: v.LiteralSchema<false, undefined>;
166
+ readonly failureCode: v.PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
167
+ readonly settledAt: v.NullSchema<undefined>;
168
+ readonly status: v.LiteralSchema<"settling", undefined>;
169
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
170
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
171
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
172
+ }, undefined>, v.StrictObjectSchema<{
173
+ readonly canRetry: v.LiteralSchema<false, undefined>;
174
+ readonly canSettle: v.LiteralSchema<true, undefined>;
175
+ readonly failureCode: v.PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
176
+ readonly settledAt: v.NullSchema<undefined>;
177
+ readonly status: v.LiteralSchema<"settlement_failed", undefined>;
178
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
179
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
180
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
181
+ }, undefined>, v.StrictObjectSchema<{
182
+ readonly canRetry: v.LiteralSchema<false, undefined>;
183
+ readonly canSettle: v.LiteralSchema<false, undefined>;
184
+ readonly failureCode: v.PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
185
+ readonly settledAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
186
+ readonly status: v.LiteralSchema<"settled", undefined>;
187
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
188
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
189
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
190
+ }, undefined>], undefined>, undefined>;
51
191
  latestMessageDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
52
192
  latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
53
193
  messageCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/thread.ts"],"names":[],"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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAAoC,CAAA;AAE7D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAAe,CAAA;AAE5C,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,YAAY,CAAC,CAAA;AACvD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAA;AACnE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAA;AACrE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,6BAA6B,CAAC,CAAA;AACzF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,4BAA4B,CAAC,CAAA"}
@@ -29,12 +29,62 @@ export const threadMessageSchema = v.object({
29
29
  threadId: id.threadId.required(),
30
30
  unsubscribeUrl: string.nullable(),
31
31
  });
32
+ export const labelMoveMutationTokenSchema = v.pipe(v.string(), v.uuid());
33
+ const labelMoveFailureCodeSchema = v.picklist(['MOVE_RECONCILIATION_FAILED', 'MOVE_RECOVERY_UNAVAILABLE']);
34
+ const labelMoveEntries = {
35
+ affectedThreadCount: v.pipe(number.positiveInteger(), v.minValue(1)),
36
+ mutationToken: labelMoveMutationTokenSchema,
37
+ target: string.required(),
38
+ };
39
+ export const labelMoveSchema = v.variant('status', [
40
+ v.strictObject({
41
+ ...labelMoveEntries,
42
+ canRetry: v.literal(false),
43
+ canSettle: v.literal(false),
44
+ failureCode: v.null(),
45
+ settledAt: v.null(),
46
+ status: v.literal('pending'),
47
+ }),
48
+ v.strictObject({
49
+ ...labelMoveEntries,
50
+ canRetry: v.boolean(),
51
+ canSettle: v.boolean(),
52
+ failureCode: labelMoveFailureCodeSchema,
53
+ settledAt: v.null(),
54
+ status: v.literal('failed'),
55
+ }),
56
+ v.strictObject({
57
+ ...labelMoveEntries,
58
+ canRetry: v.literal(false),
59
+ canSettle: v.literal(false),
60
+ failureCode: labelMoveFailureCodeSchema,
61
+ settledAt: v.null(),
62
+ status: v.literal('settling'),
63
+ }),
64
+ v.strictObject({
65
+ ...labelMoveEntries,
66
+ canRetry: v.literal(false),
67
+ canSettle: v.literal(true),
68
+ failureCode: labelMoveFailureCodeSchema,
69
+ settledAt: v.null(),
70
+ status: v.literal('settlement_failed'),
71
+ }),
72
+ v.strictObject({
73
+ ...labelMoveEntries,
74
+ canRetry: v.literal(false),
75
+ canSettle: v.literal(false),
76
+ failureCode: labelMoveFailureCodeSchema,
77
+ settledAt: number.positiveInteger(),
78
+ status: v.literal('settled'),
79
+ }),
80
+ ]);
32
81
  const threadBaseEntries = {
33
82
  accountId: id.accountId.required(),
34
83
  flagged: v.boolean(),
35
84
  hasAttachments: v.boolean(),
36
85
  id: id.threadId.required(),
37
86
  labelIdList: v.string(),
87
+ labelMove: v.nullable(labelMoveSchema),
38
88
  latestMessageDate: number.positiveInteger(),
39
89
  latestMessageId: id.messageId.required(),
40
90
  messageCount: number.positiveInteger(),
@@ -21,6 +21,52 @@ export declare const getThread: import("../../../../..").EndpointConfig<"/v1/pv/
21
21
  hasAttachments: v.BooleanSchema<undefined>;
22
22
  id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
23
23
  labelIdList: v.StringSchema<undefined>;
24
+ labelMove: v.NullableSchema<v.VariantSchema<"status", [v.StrictObjectSchema<{
25
+ readonly canRetry: v.LiteralSchema<false, undefined>;
26
+ readonly canSettle: v.LiteralSchema<false, undefined>;
27
+ readonly failureCode: v.NullSchema<undefined>;
28
+ readonly settledAt: v.NullSchema<undefined>;
29
+ readonly status: v.LiteralSchema<"pending", undefined>;
30
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
31
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
32
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
33
+ }, undefined>, v.StrictObjectSchema<{
34
+ readonly canRetry: v.BooleanSchema<undefined>;
35
+ readonly canSettle: v.BooleanSchema<undefined>;
36
+ readonly failureCode: v.PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
37
+ readonly settledAt: v.NullSchema<undefined>;
38
+ readonly status: v.LiteralSchema<"failed", undefined>;
39
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
40
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
41
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
42
+ }, undefined>, v.StrictObjectSchema<{
43
+ readonly canRetry: v.LiteralSchema<false, undefined>;
44
+ readonly canSettle: v.LiteralSchema<false, undefined>;
45
+ readonly failureCode: v.PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
46
+ readonly settledAt: v.NullSchema<undefined>;
47
+ readonly status: v.LiteralSchema<"settling", undefined>;
48
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
49
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
50
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
51
+ }, undefined>, v.StrictObjectSchema<{
52
+ readonly canRetry: v.LiteralSchema<false, undefined>;
53
+ readonly canSettle: v.LiteralSchema<true, undefined>;
54
+ readonly failureCode: v.PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
55
+ readonly settledAt: v.NullSchema<undefined>;
56
+ readonly status: v.LiteralSchema<"settlement_failed", undefined>;
57
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
58
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
59
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
60
+ }, undefined>, v.StrictObjectSchema<{
61
+ readonly canRetry: v.LiteralSchema<false, undefined>;
62
+ readonly canSettle: v.LiteralSchema<false, undefined>;
63
+ readonly failureCode: v.PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
64
+ readonly settledAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
65
+ readonly status: v.LiteralSchema<"settled", undefined>;
66
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
67
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
68
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
69
+ }, undefined>], undefined>, undefined>;
24
70
  latestMessageDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
25
71
  latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
26
72
  messageCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"getThread.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/thread/getThread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAU5B,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAYpB,CAAA"}
1
+ {"version":3,"file":"getThread.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/thread/getThread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAU5B,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAYpB,CAAA"}
@@ -21,6 +21,52 @@ export declare const getThreadByMessageId: import("../../../../..").EndpointConf
21
21
  hasAttachments: v.BooleanSchema<undefined>;
22
22
  id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
23
23
  labelIdList: v.StringSchema<undefined>;
24
+ labelMove: v.NullableSchema<v.VariantSchema<"status", [v.StrictObjectSchema<{
25
+ readonly canRetry: v.LiteralSchema<false, undefined>;
26
+ readonly canSettle: v.LiteralSchema<false, undefined>;
27
+ readonly failureCode: v.NullSchema<undefined>;
28
+ readonly settledAt: v.NullSchema<undefined>;
29
+ readonly status: v.LiteralSchema<"pending", undefined>;
30
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
31
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
32
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
33
+ }, undefined>, v.StrictObjectSchema<{
34
+ readonly canRetry: v.BooleanSchema<undefined>;
35
+ readonly canSettle: v.BooleanSchema<undefined>;
36
+ readonly failureCode: v.PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
37
+ readonly settledAt: v.NullSchema<undefined>;
38
+ readonly status: v.LiteralSchema<"failed", undefined>;
39
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
40
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
41
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
42
+ }, undefined>, v.StrictObjectSchema<{
43
+ readonly canRetry: v.LiteralSchema<false, undefined>;
44
+ readonly canSettle: v.LiteralSchema<false, undefined>;
45
+ readonly failureCode: v.PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
46
+ readonly settledAt: v.NullSchema<undefined>;
47
+ readonly status: v.LiteralSchema<"settling", undefined>;
48
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
49
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
50
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
51
+ }, undefined>, v.StrictObjectSchema<{
52
+ readonly canRetry: v.LiteralSchema<false, undefined>;
53
+ readonly canSettle: v.LiteralSchema<true, undefined>;
54
+ readonly failureCode: v.PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
55
+ readonly settledAt: v.NullSchema<undefined>;
56
+ readonly status: v.LiteralSchema<"settlement_failed", undefined>;
57
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
58
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
59
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
60
+ }, undefined>, v.StrictObjectSchema<{
61
+ readonly canRetry: v.LiteralSchema<false, undefined>;
62
+ readonly canSettle: v.LiteralSchema<false, undefined>;
63
+ readonly failureCode: v.PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
64
+ readonly settledAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
65
+ readonly status: v.LiteralSchema<"settled", undefined>;
66
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
67
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
68
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
69
+ }, undefined>], undefined>, undefined>;
24
70
  latestMessageDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
25
71
  latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
26
72
  messageCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"getThreadByMessageId.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/thread/getThreadByMessageId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAU5B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAY/B,CAAA"}
1
+ {"version":3,"file":"getThreadByMessageId.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/thread/getThreadByMessageId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAU5B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAY/B,CAAA"}
@@ -60,6 +60,52 @@ export declare const getThreadList: import("../../../../..").EndpointConfig<"/v1
60
60
  hasAttachments: v.BooleanSchema<undefined>;
61
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
+ labelMove: v.NullableSchema<v.VariantSchema<"status", [v.StrictObjectSchema<{
64
+ readonly canRetry: v.LiteralSchema<false, undefined>;
65
+ readonly canSettle: v.LiteralSchema<false, undefined>;
66
+ readonly failureCode: v.NullSchema<undefined>;
67
+ readonly settledAt: v.NullSchema<undefined>;
68
+ readonly status: v.LiteralSchema<"pending", undefined>;
69
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
70
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
71
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
72
+ }, undefined>, v.StrictObjectSchema<{
73
+ readonly canRetry: v.BooleanSchema<undefined>;
74
+ readonly canSettle: v.BooleanSchema<undefined>;
75
+ readonly failureCode: v.PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
76
+ readonly settledAt: v.NullSchema<undefined>;
77
+ readonly status: v.LiteralSchema<"failed", undefined>;
78
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
79
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
80
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
81
+ }, undefined>, v.StrictObjectSchema<{
82
+ readonly canRetry: v.LiteralSchema<false, undefined>;
83
+ readonly canSettle: v.LiteralSchema<false, undefined>;
84
+ readonly failureCode: v.PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
85
+ readonly settledAt: v.NullSchema<undefined>;
86
+ readonly status: v.LiteralSchema<"settling", undefined>;
87
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
88
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
89
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
90
+ }, undefined>, v.StrictObjectSchema<{
91
+ readonly canRetry: v.LiteralSchema<false, undefined>;
92
+ readonly canSettle: v.LiteralSchema<true, undefined>;
93
+ readonly failureCode: v.PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
94
+ readonly settledAt: v.NullSchema<undefined>;
95
+ readonly status: v.LiteralSchema<"settlement_failed", undefined>;
96
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
97
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
98
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
99
+ }, undefined>, v.StrictObjectSchema<{
100
+ readonly canRetry: v.LiteralSchema<false, undefined>;
101
+ readonly canSettle: v.LiteralSchema<false, undefined>;
102
+ readonly failureCode: v.PicklistSchema<["MOVE_RECONCILIATION_FAILED", "MOVE_RECOVERY_UNAVAILABLE"], undefined>;
103
+ readonly settledAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
104
+ readonly status: v.LiteralSchema<"settled", undefined>;
105
+ readonly affectedThreadCount: v.SchemaWithPipe<readonly [v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.MinValueAction<number, 1, undefined>]>;
106
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
107
+ readonly target: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
108
+ }, undefined>], undefined>, undefined>;
63
109
  latestMessageDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
64
110
  latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
65
111
  messageCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"getThreadList.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/thread/getThreadList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA4C5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAaxB,CAAA"}
1
+ {"version":3,"file":"getThreadList.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/thread/getThreadList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA4C5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAaxB,CAAA"}
@@ -1,6 +1,7 @@
1
1
  export { addLabel } from './addLabel';
2
2
  export { deleteThreads } from './deleteThreads';
3
3
  export { removeLabel } from './removeLabel';
4
+ export { retryLabelMove } from './retryLabelMove';
4
5
  export { setArchive } from './setArchive';
5
6
  export { setFlagged } from './setFlagged';
6
7
  export { setInbox } from './setInbox';
@@ -8,4 +9,5 @@ export { setSeen } from './setSeen';
8
9
  export { setSnooze } from './setSnooze';
9
10
  export { setSpam } from './setSpam';
10
11
  export { setTrash } from './setTrash';
12
+ export { settleLabelMove } from './settleLabelMove';
11
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/thread/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/thread/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA"}
@@ -1,6 +1,7 @@
1
1
  export { addLabel } from './addLabel';
2
2
  export { deleteThreads } from './deleteThreads';
3
3
  export { removeLabel } from './removeLabel';
4
+ export { retryLabelMove } from './retryLabelMove';
4
5
  export { setArchive } from './setArchive';
5
6
  export { setFlagged } from './setFlagged';
6
7
  export { setInbox } from './setInbox';
@@ -8,3 +9,4 @@ export { setSeen } from './setSeen';
8
9
  export { setSnooze } from './setSnooze';
9
10
  export { setSpam } from './setSpam';
10
11
  export { setTrash } from './setTrash';
12
+ export { settleLabelMove } from './settleLabelMove';
@@ -0,0 +1,37 @@
1
+ import * as v from 'valibot';
2
+ export declare const retryLabelMove: import("../../../../..").EndpointConfig<"/v1/pv/models/thread/:threadId/retry-label-move", v.StrictObjectSchema<{
3
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
4
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
5
+ readonly data: v.ObjectSchema<{
6
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
7
+ }, undefined>;
8
+ readonly status: v.LiteralSchema<401, undefined>;
9
+ }, undefined>, v.ObjectSchema<{
10
+ readonly data: v.ObjectSchema<{
11
+ readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
12
+ }, undefined>;
13
+ readonly status: v.LiteralSchema<404, undefined>;
14
+ }, undefined>, v.ObjectSchema<{
15
+ readonly data: v.ObjectSchema<{
16
+ readonly code: v.LiteralSchema<"THREAD_NOT_FOUND", undefined>;
17
+ }, undefined>;
18
+ readonly status: v.LiteralSchema<404, undefined>;
19
+ }, undefined>, v.ObjectSchema<{
20
+ readonly data: v.ObjectSchema<{
21
+ readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
22
+ }, undefined>;
23
+ readonly status: v.LiteralSchema<409, undefined>;
24
+ }, undefined>, v.ObjectSchema<{
25
+ readonly data: v.ObjectSchema<{
26
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
27
+ readonly issues: v.ObjectSchema<{
28
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
29
+ readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
30
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
31
+ }, undefined>;
32
+ }, undefined>;
33
+ readonly status: v.LiteralSchema<400, undefined>;
34
+ }, undefined>, v.ObjectSchema<{
35
+ readonly status: v.LiteralSchema<200, undefined>;
36
+ }, undefined>], undefined>>;
37
+ //# sourceMappingURL=retryLabelMove.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retryLabelMove.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/thread/retryLabelMove.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAYzB,CAAA"}
@@ -0,0 +1,17 @@
1
+ import * as v from 'valibot';
2
+ import { labelMoveMutationTokenSchema } from '../../../../../schemas/models/thread';
3
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
+ import { errors } from '../../../../../sdk/validation/errors';
5
+ export const retryLabelMove = createEndpoint({
6
+ body: v.strictObject({ mutationToken: labelMoveMutationTokenSchema }),
7
+ method: 'POST',
8
+ path: '/v1/pv/models/thread/:threadId/retry-label-move',
9
+ response: v.union([
10
+ errors.authFailedErrorSchema,
11
+ errors.userNotFoundErrorSchema,
12
+ errors.threadNotFoundErrorSchema,
13
+ errors.mutationRejectedErrorSchema,
14
+ errors.validationFailedErrorSchema,
15
+ v.object({ status: v.literal(200) }),
16
+ ]),
17
+ });
@@ -0,0 +1,44 @@
1
+ import * as v from 'valibot';
2
+ export declare const settleLabelMove: import("../../../../..").EndpointConfig<"/v1/pv/models/thread/:threadId/settle-label-move", v.StrictObjectSchema<{
3
+ readonly mutationToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
4
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
5
+ readonly data: v.ObjectSchema<{
6
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
7
+ }, undefined>;
8
+ readonly status: v.LiteralSchema<401, undefined>;
9
+ }, undefined>, v.ObjectSchema<{
10
+ readonly data: v.ObjectSchema<{
11
+ readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
12
+ }, undefined>;
13
+ readonly status: v.LiteralSchema<404, undefined>;
14
+ }, undefined>, v.ObjectSchema<{
15
+ readonly data: v.ObjectSchema<{
16
+ readonly code: v.LiteralSchema<"THREAD_NOT_FOUND", undefined>;
17
+ }, undefined>;
18
+ readonly status: v.LiteralSchema<404, undefined>;
19
+ }, undefined>, v.ObjectSchema<{
20
+ readonly data: v.ObjectSchema<{
21
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
22
+ readonly issues: v.ObjectSchema<{
23
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
24
+ readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
25
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
26
+ }, undefined>;
27
+ }, undefined>;
28
+ readonly status: v.LiteralSchema<400, undefined>;
29
+ }, undefined>, v.ObjectSchema<{
30
+ readonly data: v.ObjectSchema<{
31
+ readonly code: v.PicklistSchema<["MOVE_INTENT_STALE", "MOVE_STILL_ACTIVE"], undefined>;
32
+ }, undefined>;
33
+ readonly status: v.LiteralSchema<409, undefined>;
34
+ }, undefined>, v.ObjectSchema<{
35
+ readonly data: v.ObjectSchema<{
36
+ readonly code: v.LiteralSchema<"MOVE_EVIDENCE_UNAVAILABLE", undefined>;
37
+ }, undefined>;
38
+ readonly status: v.LiteralSchema<503, undefined>;
39
+ }, undefined>, v.ObjectSchema<{
40
+ readonly status: v.LiteralSchema<200, undefined>;
41
+ }, undefined>, v.ObjectSchema<{
42
+ readonly status: v.LiteralSchema<202, undefined>;
43
+ }, undefined>], undefined>>;
44
+ //# sourceMappingURL=settleLabelMove.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settleLabelMove.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/thread/settleLabelMove.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAc1B,CAAA"}
@@ -0,0 +1,19 @@
1
+ import * as v from 'valibot';
2
+ import { labelMoveMutationTokenSchema } from '../../../../../schemas/models/thread';
3
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
+ import { errors } from '../../../../../sdk/validation/errors';
5
+ export const settleLabelMove = createEndpoint({
6
+ body: v.strictObject({ mutationToken: labelMoveMutationTokenSchema }),
7
+ method: 'POST',
8
+ path: '/v1/pv/models/thread/:threadId/settle-label-move',
9
+ response: v.union([
10
+ errors.authFailedErrorSchema,
11
+ errors.userNotFoundErrorSchema,
12
+ errors.threadNotFoundErrorSchema,
13
+ errors.validationFailedErrorSchema,
14
+ errors.labelMoveConflictErrorSchema,
15
+ errors.labelMoveEvidenceUnavailableErrorSchema,
16
+ v.object({ status: v.literal(200) }),
17
+ v.object({ status: v.literal(202) }),
18
+ ]),
19
+ });
@@ -505,6 +505,18 @@ export declare const marcoSDK: {
505
505
  }, undefined>;
506
506
  readonly status: import("valibot").LiteralSchema<409, undefined>;
507
507
  }, undefined>;
508
+ readonly labelMoveConflictErrorSchema: import("valibot").ObjectSchema<{
509
+ readonly data: import("valibot").ObjectSchema<{
510
+ readonly code: import("valibot").PicklistSchema<["MOVE_INTENT_STALE", "MOVE_STILL_ACTIVE"], undefined>;
511
+ }, undefined>;
512
+ readonly status: import("valibot").LiteralSchema<409, undefined>;
513
+ }, undefined>;
514
+ readonly labelMoveEvidenceUnavailableErrorSchema: import("valibot").ObjectSchema<{
515
+ readonly data: import("valibot").ObjectSchema<{
516
+ readonly code: import("valibot").LiteralSchema<"MOVE_EVIDENCE_UNAVAILABLE", undefined>;
517
+ }, undefined>;
518
+ readonly status: import("valibot").LiteralSchema<503, undefined>;
519
+ }, undefined>;
508
520
  readonly labelNotFoundErrorSchema: import("valibot").ObjectSchema<{
509
521
  readonly data: import("valibot").ObjectSchema<{
510
522
  readonly code: import("valibot").LiteralSchema<"LABEL_NOT_FOUND", undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAA"}
@@ -101,6 +101,18 @@ export declare const mutationRejectedErrorSchema: v.ObjectSchema<{
101
101
  }, undefined>;
102
102
  readonly status: v.LiteralSchema<409, undefined>;
103
103
  }, undefined>;
104
+ export declare const labelMoveConflictErrorSchema: v.ObjectSchema<{
105
+ readonly data: v.ObjectSchema<{
106
+ readonly code: v.PicklistSchema<["MOVE_INTENT_STALE", "MOVE_STILL_ACTIVE"], undefined>;
107
+ }, undefined>;
108
+ readonly status: v.LiteralSchema<409, undefined>;
109
+ }, undefined>;
110
+ export declare const labelMoveEvidenceUnavailableErrorSchema: v.ObjectSchema<{
111
+ readonly data: v.ObjectSchema<{
112
+ readonly code: v.LiteralSchema<"MOVE_EVIDENCE_UNAVAILABLE", undefined>;
113
+ }, undefined>;
114
+ readonly status: v.LiteralSchema<503, undefined>;
115
+ }, undefined>;
104
116
  export declare const threadNotFoundErrorSchema: v.ObjectSchema<{
105
117
  readonly data: v.ObjectSchema<{
106
118
  readonly code: v.LiteralSchema<"THREAD_NOT_FOUND", undefined>;
@@ -293,6 +305,18 @@ export declare const errors: {
293
305
  }, undefined>;
294
306
  readonly status: v.LiteralSchema<409, undefined>;
295
307
  }, undefined>;
308
+ readonly labelMoveConflictErrorSchema: v.ObjectSchema<{
309
+ readonly data: v.ObjectSchema<{
310
+ readonly code: v.PicklistSchema<["MOVE_INTENT_STALE", "MOVE_STILL_ACTIVE"], undefined>;
311
+ }, undefined>;
312
+ readonly status: v.LiteralSchema<409, undefined>;
313
+ }, undefined>;
314
+ readonly labelMoveEvidenceUnavailableErrorSchema: v.ObjectSchema<{
315
+ readonly data: v.ObjectSchema<{
316
+ readonly code: v.LiteralSchema<"MOVE_EVIDENCE_UNAVAILABLE", undefined>;
317
+ }, undefined>;
318
+ readonly status: v.LiteralSchema<503, undefined>;
319
+ }, undefined>;
296
320
  readonly labelNotFoundErrorSchema: v.ObjectSchema<{
297
321
  readonly data: v.ObjectSchema<{
298
322
  readonly code: v.LiteralSchema<"LABEL_NOT_FOUND", undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,yBAAyB;;;;;aAGpC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;;;aAGzC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;aAGlD,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;aAGhC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;aAG3C,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;aAGxC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;aAGtC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;aAGpC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;aAGnC,CAAA;AAEF,e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status: v.literal(409),
69
69
  });
70
+ export const labelMoveConflictErrorSchema = v.object({
71
+ data: v.object({ code: v.picklist(['MOVE_INTENT_STALE', 'MOVE_STILL_ACTIVE']) }),
72
+ status: v.literal(409),
73
+ });
74
+ export const labelMoveEvidenceUnavailableErrorSchema = v.object({
75
+ data: v.object({ code: v.literal('MOVE_EVIDENCE_UNAVAILABLE') }),
76
+ status: v.literal(503),
77
+ });
70
78
  export const threadNotFoundErrorSchema = v.object({
71
79
  data: v.object({ code: v.literal('THREAD_NOT_FOUND') }),
72
80
  status: v.literal(404),
@@ -139,6 +147,8 @@ export const errors = {
139
147
  invalidImageDimensionsErrorSchema,
140
148
  inviteNotFoundErrorSchema,
141
149
  labelAlreadyExistsErrorSchema,
150
+ labelMoveConflictErrorSchema,
151
+ labelMoveEvidenceUnavailableErrorSchema,
142
152
  labelNotFoundErrorSchema,
143
153
  messageNotFoundErrorSchema,
144
154
  mutationRejectedErrorSchema,
@@ -120,6 +120,18 @@ export declare const validation: {
120
120
  }, undefined>;
121
121
  readonly status: import("valibot").LiteralSchema<409, undefined>;
122
122
  }, undefined>;
123
+ readonly labelMoveConflictErrorSchema: import("valibot").ObjectSchema<{
124
+ readonly data: import("valibot").ObjectSchema<{
125
+ readonly code: import("valibot").PicklistSchema<["MOVE_INTENT_STALE", "MOVE_STILL_ACTIVE"], undefined>;
126
+ }, undefined>;
127
+ readonly status: import("valibot").LiteralSchema<409, undefined>;
128
+ }, undefined>;
129
+ readonly labelMoveEvidenceUnavailableErrorSchema: import("valibot").ObjectSchema<{
130
+ readonly data: import("valibot").ObjectSchema<{
131
+ readonly code: import("valibot").LiteralSchema<"MOVE_EVIDENCE_UNAVAILABLE", undefined>;
132
+ }, undefined>;
133
+ readonly status: import("valibot").LiteralSchema<503, undefined>;
134
+ }, undefined>;
123
135
  readonly labelNotFoundErrorSchema: import("valibot").ObjectSchema<{
124
136
  readonly data: import("valibot").ObjectSchema<{
125
137
  readonly code: import("valibot").LiteralSchema<"LABEL_NOT_FOUND", undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoB,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import type * as v from 'valibot';
2
2
  import type { errors } from '../sdk/validation/errors';
3
- export type SDKError = v.InferOutput<typeof errors.accountNotFoundErrorSchema> | v.InferOutput<typeof errors.aliasNotFoundErrorSchema> | v.InferOutput<typeof errors.attachmentNotFoundErrorSchema> | v.InferOutput<typeof errors.attachmentSizeMismatchErrorSchema> | v.InferOutput<typeof errors.attachmentStateInvalidErrorSchema> | v.InferOutput<typeof errors.attachmentUploadFailedErrorSchema> | v.InferOutput<typeof errors.authCodeExpiredErrorSchema> | v.InferOutput<typeof errors.authCodeInvalidErrorSchema> | v.InferOutput<typeof errors.authCodePreviouslyUsedErrorSchema> | v.InferOutput<typeof errors.authFailedErrorSchema> | v.InferOutput<typeof errors.authRefreshTokenInvalid> | v.InferOutput<typeof errors.authServerResponseUnexpectedErrorSchema> | v.InferOutput<typeof errors.authTooManyAttemptsErrorSchema> | v.InferOutput<typeof errors.contactNotFoundErrorSchema> | v.InferOutput<typeof errors.draftNotFoundErrorSchema> | v.InferOutput<typeof errors.fileTooLargeErrorSchema> | v.InferOutput<typeof errors.invalidFileTypeErrorSchema> | v.InferOutput<typeof errors.invalidImageDimensionsErrorSchema> | v.InferOutput<typeof errors.inviteNotFoundErrorSchema> | v.InferOutput<typeof errors.labelAlreadyExistsErrorSchema> | v.InferOutput<typeof errors.labelNotFoundErrorSchema> | v.InferOutput<typeof errors.messageNotFoundErrorSchema> | v.InferOutput<typeof errors.mutationRejectedErrorSchema> | v.InferOutput<typeof errors.threadNotFoundErrorSchema> | v.InferOutput<typeof errors.userMarkedForDeletionErrorSchema> | v.InferOutput<typeof errors.userNotFoundErrorSchema> | v.InferOutput<typeof errors.validationFailedErrorSchema> | v.InferOutput<typeof errors.viewNotFoundErrorSchema>;
3
+ export type SDKError = v.InferOutput<typeof errors.accountNotFoundErrorSchema> | v.InferOutput<typeof errors.aliasNotFoundErrorSchema> | v.InferOutput<typeof errors.attachmentNotFoundErrorSchema> | v.InferOutput<typeof errors.attachmentSizeMismatchErrorSchema> | v.InferOutput<typeof errors.attachmentStateInvalidErrorSchema> | v.InferOutput<typeof errors.attachmentUploadFailedErrorSchema> | v.InferOutput<typeof errors.authCodeExpiredErrorSchema> | v.InferOutput<typeof errors.authCodeInvalidErrorSchema> | v.InferOutput<typeof errors.authCodePreviouslyUsedErrorSchema> | v.InferOutput<typeof errors.authFailedErrorSchema> | v.InferOutput<typeof errors.authRefreshTokenInvalid> | v.InferOutput<typeof errors.authServerResponseUnexpectedErrorSchema> | v.InferOutput<typeof errors.authTooManyAttemptsErrorSchema> | v.InferOutput<typeof errors.contactNotFoundErrorSchema> | v.InferOutput<typeof errors.draftNotFoundErrorSchema> | v.InferOutput<typeof errors.fileTooLargeErrorSchema> | v.InferOutput<typeof errors.invalidFileTypeErrorSchema> | v.InferOutput<typeof errors.invalidImageDimensionsErrorSchema> | v.InferOutput<typeof errors.inviteNotFoundErrorSchema> | v.InferOutput<typeof errors.labelAlreadyExistsErrorSchema> | v.InferOutput<typeof errors.labelMoveConflictErrorSchema> | v.InferOutput<typeof errors.labelMoveEvidenceUnavailableErrorSchema> | v.InferOutput<typeof errors.labelNotFoundErrorSchema> | v.InferOutput<typeof errors.messageNotFoundErrorSchema> | v.InferOutput<typeof errors.mutationRejectedErrorSchema> | v.InferOutput<typeof errors.threadNotFoundErrorSchema> | v.InferOutput<typeof errors.userMarkedForDeletionErrorSchema> | v.InferOutput<typeof errors.userNotFoundErrorSchema> | v.InferOutput<typeof errors.validationFailedErrorSchema> | v.InferOutput<typeof errors.viewNotFoundErrorSchema>;
4
4
  //# sourceMappingURL=SDKError.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SDKError.d.ts","sourceRoot":"","sources":["../../src/types/SDKError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAA;AAEjC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAA;AAEjE,MAAM,MAAM,QAAQ,GAChB,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,wBAAwB,CAAC,GACrD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,6BAA6B,CAAC,GAC1D,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,iCAAiC,CAAC,GAC9D,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,iCAAiC,CAAC,GAC9D,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,iCAAiC,CAAC,GAC9D,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,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CAAC,GACpD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,iCAAiC,CAAC,GAC9D,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,yBAAyB,CAAC,GACtD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,6BAA6B,CAAC,GAC1D,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,4BAA4B,CAAC,GACzD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,uCAAuC,CAAC,GACpE,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,wBAAwB,CAAC,GACrD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,2BAA2B,CAAC,GACxD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,yBAAyB,CAAC,GACtD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,gCAAgC,CAAC,GAC7D,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,uBAAuB,CAAC,GACpD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,2BAA2B,CAAC,GACxD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,uBAAuB,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "8.0.1",
3
+ "version": "10.0.0",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",