@marcoappio/marco-config 2.0.158 → 2.0.160
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/clients/draft.d.ts +107 -0
- package/dist/clients/draft.d.ts.map +1 -0
- package/dist/clients/draft.js +43 -0
- package/dist/clients/index.d.ts +105 -0
- package/dist/clients/index.d.ts.map +1 -1
- package/dist/clients/index.js +2 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/sdk/endpoints/index.d.ts +140 -0
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/index.d.ts +140 -0
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/index.d.ts +140 -0
- package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +40 -0
- package/dist/sdk/endpoints/private/sync/pull/draft.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/draft.js +28 -0
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts +38 -0
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/index.js +2 -1
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts +104 -0
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/push/draft.js +36 -0
- package/dist/sdk/endpoints/private/sync/push/index.d.ts +102 -0
- package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/index.js +2 -1
- package/dist/sdk/index.d.ts +140 -0
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/utils/accounts/generateAccountColor.d.ts +2 -0
- package/dist/utils/accounts/generateAccountColor.d.ts.map +1 -0
- package/dist/utils/accounts/generateAccountColor.js +38 -0
- package/dist/utils/accounts/index.d.ts +4 -0
- package/dist/utils/accounts/index.d.ts.map +1 -0
- package/dist/utils/accounts/index.js +4 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +1 -0
- package/package.json +1 -1
|
@@ -81,6 +81,44 @@ export declare const privateGroup: {
|
|
|
81
81
|
}, undefined>;
|
|
82
82
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
83
83
|
}, undefined>], undefined>>;
|
|
84
|
+
draft: import("../../..").EndpointConfig<"/v1/pv/sync/pull/draft", import("valibot").ObjectSchema<{
|
|
85
|
+
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
86
|
+
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
87
|
+
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
88
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
89
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
90
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
91
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
92
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
93
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
94
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
95
|
+
readonly cookie: import("valibot").NumberSchema<undefined>;
|
|
96
|
+
readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
|
|
97
|
+
readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
98
|
+
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
99
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
100
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
101
|
+
readonly op: import("valibot").LiteralSchema<"del", undefined>;
|
|
102
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
103
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
104
|
+
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
105
|
+
readonly value: import("valibot").ObjectSchema<{
|
|
106
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
107
|
+
readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
108
|
+
readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
109
|
+
readonly content: import("valibot").UnknownSchema;
|
|
110
|
+
readonly replyTo: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
111
|
+
readonly subject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
112
|
+
readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
113
|
+
}, undefined>;
|
|
114
|
+
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
115
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
116
|
+
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
117
|
+
}, undefined>;
|
|
118
|
+
}, undefined>], undefined>, undefined>;
|
|
119
|
+
}, undefined>;
|
|
120
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
121
|
+
}, undefined>], undefined>>;
|
|
84
122
|
thread: import("../../..").EndpointConfig<"/v1/pv/sync/pull/thread", import("valibot").ObjectSchema<{
|
|
85
123
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
86
124
|
readonly cookie: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
@@ -268,6 +306,108 @@ export declare const privateGroup: {
|
|
|
268
306
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
269
307
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
270
308
|
}, undefined>], undefined>>;
|
|
309
|
+
draft: import("../../..").EndpointConfig<"/v1/pv/sync/push/draft", import("valibot").ObjectSchema<{
|
|
310
|
+
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
311
|
+
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
312
|
+
readonly args: import("valibot").ObjectSchema<{
|
|
313
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
314
|
+
}, undefined>;
|
|
315
|
+
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
316
|
+
readonly id: import("valibot").NumberSchema<undefined>;
|
|
317
|
+
readonly name: import("valibot").LiteralSchema<"delete", undefined>;
|
|
318
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
319
|
+
readonly args: import("valibot").ObjectSchema<{
|
|
320
|
+
readonly body: Omit<import("valibot").ObjectSchema<{
|
|
321
|
+
readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
322
|
+
readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
323
|
+
readonly content: import("valibot").UnknownSchema;
|
|
324
|
+
readonly replyTo: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
325
|
+
readonly subject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
326
|
+
readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
327
|
+
}, undefined>, "entries" | "~standard" | "~run" | "~types"> & {
|
|
328
|
+
readonly entries: {
|
|
329
|
+
readonly bcc: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
|
|
330
|
+
readonly cc: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
|
|
331
|
+
readonly content: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
332
|
+
readonly replyTo: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
|
|
333
|
+
readonly subject: import("valibot").OptionalSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
334
|
+
readonly to: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
|
|
335
|
+
};
|
|
336
|
+
readonly '~standard': import("valibot").StandardSchemaProps<{
|
|
337
|
+
bcc?: string[] | undefined;
|
|
338
|
+
cc?: string[] | undefined;
|
|
339
|
+
replyTo?: string[] | undefined;
|
|
340
|
+
to?: string[] | undefined;
|
|
341
|
+
content?: unknown;
|
|
342
|
+
subject?: string | undefined;
|
|
343
|
+
}, {
|
|
344
|
+
bcc?: string[] | undefined;
|
|
345
|
+
cc?: string[] | undefined;
|
|
346
|
+
replyTo?: string[] | undefined;
|
|
347
|
+
to?: string[] | undefined;
|
|
348
|
+
content?: unknown;
|
|
349
|
+
subject?: string | undefined;
|
|
350
|
+
}>;
|
|
351
|
+
readonly '~run': (dataset: import("valibot").UnknownDataset, config: import("valibot").Config<import("valibot").BaseIssue<unknown>>) => import("valibot").OutputDataset<{
|
|
352
|
+
bcc?: string[] | undefined;
|
|
353
|
+
cc?: string[] | undefined;
|
|
354
|
+
replyTo?: string[] | undefined;
|
|
355
|
+
to?: string[] | undefined;
|
|
356
|
+
content?: unknown;
|
|
357
|
+
subject?: string | undefined;
|
|
358
|
+
}, import("valibot").StringIssue | import("valibot").EmailIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").NonEmptyIssue<string> | import("valibot").ObjectIssue | import("valibot").NonOptionalIssue | import("valibot").ArrayIssue>;
|
|
359
|
+
readonly '~types'?: {
|
|
360
|
+
readonly input: {
|
|
361
|
+
bcc?: string[] | undefined;
|
|
362
|
+
cc?: string[] | undefined;
|
|
363
|
+
replyTo?: string[] | undefined;
|
|
364
|
+
to?: string[] | undefined;
|
|
365
|
+
content?: unknown;
|
|
366
|
+
subject?: string | undefined;
|
|
367
|
+
};
|
|
368
|
+
readonly output: {
|
|
369
|
+
bcc?: string[] | undefined;
|
|
370
|
+
cc?: string[] | undefined;
|
|
371
|
+
replyTo?: string[] | undefined;
|
|
372
|
+
to?: string[] | undefined;
|
|
373
|
+
content?: unknown;
|
|
374
|
+
subject?: string | undefined;
|
|
375
|
+
};
|
|
376
|
+
readonly issue: import("valibot").StringIssue | import("valibot").EmailIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").NonEmptyIssue<string> | import("valibot").ObjectIssue | import("valibot").NonOptionalIssue | import("valibot").ArrayIssue;
|
|
377
|
+
} | undefined;
|
|
378
|
+
};
|
|
379
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
380
|
+
}, undefined>;
|
|
381
|
+
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
382
|
+
readonly id: import("valibot").NumberSchema<undefined>;
|
|
383
|
+
readonly name: import("valibot").LiteralSchema<"update", undefined>;
|
|
384
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
385
|
+
readonly args: import("valibot").ObjectSchema<{
|
|
386
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
387
|
+
readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
388
|
+
readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
389
|
+
readonly content: import("valibot").UnknownSchema;
|
|
390
|
+
readonly replyTo: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
391
|
+
readonly subject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
392
|
+
readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
393
|
+
}, undefined>;
|
|
394
|
+
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
395
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
396
|
+
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
397
|
+
}, undefined>;
|
|
398
|
+
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
399
|
+
readonly id: import("valibot").NumberSchema<undefined>;
|
|
400
|
+
readonly name: import("valibot").LiteralSchema<"create", undefined>;
|
|
401
|
+
}, undefined>], undefined>, undefined>;
|
|
402
|
+
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
403
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
404
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
405
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
406
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
407
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
408
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
409
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
410
|
+
}, undefined>], undefined>>;
|
|
271
411
|
thread: import("../../..").EndpointConfig<"/v1/pv/sync/push/thread", import("valibot").ObjectSchema<{
|
|
272
412
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
273
413
|
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGxB,CAAA"}
|
|
@@ -80,6 +80,44 @@ export declare const sync: {
|
|
|
80
80
|
}, undefined>;
|
|
81
81
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
82
82
|
}, undefined>], undefined>>;
|
|
83
|
+
draft: import("../../../..").EndpointConfig<"/v1/pv/sync/pull/draft", import("valibot").ObjectSchema<{
|
|
84
|
+
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
85
|
+
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
86
|
+
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
87
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
88
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
89
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
90
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
91
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
92
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
93
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
94
|
+
readonly cookie: import("valibot").NumberSchema<undefined>;
|
|
95
|
+
readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
|
|
96
|
+
readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
97
|
+
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
98
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
99
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
100
|
+
readonly op: import("valibot").LiteralSchema<"del", undefined>;
|
|
101
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
102
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
103
|
+
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
104
|
+
readonly value: import("valibot").ObjectSchema<{
|
|
105
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
106
|
+
readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
107
|
+
readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
108
|
+
readonly content: import("valibot").UnknownSchema;
|
|
109
|
+
readonly replyTo: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
110
|
+
readonly subject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
111
|
+
readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
112
|
+
}, undefined>;
|
|
113
|
+
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
114
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
115
|
+
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
116
|
+
}, undefined>;
|
|
117
|
+
}, undefined>], undefined>, undefined>;
|
|
118
|
+
}, undefined>;
|
|
119
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
120
|
+
}, undefined>], undefined>>;
|
|
83
121
|
thread: import("../../../..").EndpointConfig<"/v1/pv/sync/pull/thread", import("valibot").ObjectSchema<{
|
|
84
122
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
85
123
|
readonly cookie: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
@@ -267,6 +305,108 @@ export declare const sync: {
|
|
|
267
305
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
268
306
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
269
307
|
}, undefined>], undefined>>;
|
|
308
|
+
draft: import("../../../..").EndpointConfig<"/v1/pv/sync/push/draft", import("valibot").ObjectSchema<{
|
|
309
|
+
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
310
|
+
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
311
|
+
readonly args: import("valibot").ObjectSchema<{
|
|
312
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
313
|
+
}, undefined>;
|
|
314
|
+
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
315
|
+
readonly id: import("valibot").NumberSchema<undefined>;
|
|
316
|
+
readonly name: import("valibot").LiteralSchema<"delete", undefined>;
|
|
317
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
318
|
+
readonly args: import("valibot").ObjectSchema<{
|
|
319
|
+
readonly body: Omit<import("valibot").ObjectSchema<{
|
|
320
|
+
readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
321
|
+
readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
322
|
+
readonly content: import("valibot").UnknownSchema;
|
|
323
|
+
readonly replyTo: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
324
|
+
readonly subject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
325
|
+
readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
326
|
+
}, undefined>, "entries" | "~standard" | "~run" | "~types"> & {
|
|
327
|
+
readonly entries: {
|
|
328
|
+
readonly bcc: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
|
|
329
|
+
readonly cc: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
|
|
330
|
+
readonly content: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
331
|
+
readonly replyTo: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
|
|
332
|
+
readonly subject: import("valibot").OptionalSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
333
|
+
readonly to: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
|
|
334
|
+
};
|
|
335
|
+
readonly '~standard': import("valibot").StandardSchemaProps<{
|
|
336
|
+
bcc?: string[] | undefined;
|
|
337
|
+
cc?: string[] | undefined;
|
|
338
|
+
replyTo?: string[] | undefined;
|
|
339
|
+
to?: string[] | undefined;
|
|
340
|
+
content?: unknown;
|
|
341
|
+
subject?: string | undefined;
|
|
342
|
+
}, {
|
|
343
|
+
bcc?: string[] | undefined;
|
|
344
|
+
cc?: string[] | undefined;
|
|
345
|
+
replyTo?: string[] | undefined;
|
|
346
|
+
to?: string[] | undefined;
|
|
347
|
+
content?: unknown;
|
|
348
|
+
subject?: string | undefined;
|
|
349
|
+
}>;
|
|
350
|
+
readonly '~run': (dataset: import("valibot").UnknownDataset, config: import("valibot").Config<import("valibot").BaseIssue<unknown>>) => import("valibot").OutputDataset<{
|
|
351
|
+
bcc?: string[] | undefined;
|
|
352
|
+
cc?: string[] | undefined;
|
|
353
|
+
replyTo?: string[] | undefined;
|
|
354
|
+
to?: string[] | undefined;
|
|
355
|
+
content?: unknown;
|
|
356
|
+
subject?: string | undefined;
|
|
357
|
+
}, import("valibot").StringIssue | import("valibot").EmailIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").NonEmptyIssue<string> | import("valibot").ObjectIssue | import("valibot").NonOptionalIssue | import("valibot").ArrayIssue>;
|
|
358
|
+
readonly '~types'?: {
|
|
359
|
+
readonly input: {
|
|
360
|
+
bcc?: string[] | undefined;
|
|
361
|
+
cc?: string[] | undefined;
|
|
362
|
+
replyTo?: string[] | undefined;
|
|
363
|
+
to?: string[] | undefined;
|
|
364
|
+
content?: unknown;
|
|
365
|
+
subject?: string | undefined;
|
|
366
|
+
};
|
|
367
|
+
readonly output: {
|
|
368
|
+
bcc?: string[] | undefined;
|
|
369
|
+
cc?: string[] | undefined;
|
|
370
|
+
replyTo?: string[] | undefined;
|
|
371
|
+
to?: string[] | undefined;
|
|
372
|
+
content?: unknown;
|
|
373
|
+
subject?: string | undefined;
|
|
374
|
+
};
|
|
375
|
+
readonly issue: import("valibot").StringIssue | import("valibot").EmailIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").NonEmptyIssue<string> | import("valibot").ObjectIssue | import("valibot").NonOptionalIssue | import("valibot").ArrayIssue;
|
|
376
|
+
} | undefined;
|
|
377
|
+
};
|
|
378
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
379
|
+
}, undefined>;
|
|
380
|
+
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
381
|
+
readonly id: import("valibot").NumberSchema<undefined>;
|
|
382
|
+
readonly name: import("valibot").LiteralSchema<"update", undefined>;
|
|
383
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
384
|
+
readonly args: import("valibot").ObjectSchema<{
|
|
385
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
386
|
+
readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
387
|
+
readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
388
|
+
readonly content: import("valibot").UnknownSchema;
|
|
389
|
+
readonly replyTo: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
390
|
+
readonly subject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
391
|
+
readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
392
|
+
}, undefined>;
|
|
393
|
+
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
394
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
395
|
+
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
396
|
+
}, undefined>;
|
|
397
|
+
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
398
|
+
readonly id: import("valibot").NumberSchema<undefined>;
|
|
399
|
+
readonly name: import("valibot").LiteralSchema<"create", undefined>;
|
|
400
|
+
}, undefined>], undefined>, undefined>;
|
|
401
|
+
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
402
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
403
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
404
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
405
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
406
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
407
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
408
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
409
|
+
}, undefined>], undefined>>;
|
|
270
410
|
thread: import("../../../..").EndpointConfig<"/v1/pv/sync/push/thread", import("valibot").ObjectSchema<{
|
|
271
411
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
272
412
|
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/sync/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/sync/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiB,CAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const syncPullDraft: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/draft", v.ObjectSchema<{
|
|
3
|
+
readonly clientGroupID: v.StringSchema<undefined>;
|
|
4
|
+
readonly cookie: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
5
|
+
}, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
6
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
7
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
8
|
+
}, undefined>, v.ObjectSchema<{
|
|
9
|
+
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
10
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
11
|
+
}, undefined>, v.ObjectSchema<{
|
|
12
|
+
readonly data: v.ObjectSchema<{
|
|
13
|
+
readonly cookie: v.NumberSchema<undefined>;
|
|
14
|
+
readonly lastMutationIDChanges: v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>;
|
|
15
|
+
readonly patch: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
16
|
+
readonly op: v.LiteralSchema<"clear", undefined>;
|
|
17
|
+
}, undefined>, v.ObjectSchema<{
|
|
18
|
+
readonly key: v.StringSchema<undefined>;
|
|
19
|
+
readonly op: v.LiteralSchema<"del", undefined>;
|
|
20
|
+
}, undefined>, v.ObjectSchema<{
|
|
21
|
+
readonly key: v.StringSchema<undefined>;
|
|
22
|
+
readonly op: v.LiteralSchema<"put", undefined>;
|
|
23
|
+
readonly value: v.ObjectSchema<{
|
|
24
|
+
readonly body: v.ObjectSchema<{
|
|
25
|
+
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
26
|
+
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
27
|
+
readonly content: v.UnknownSchema;
|
|
28
|
+
readonly replyTo: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
29
|
+
readonly subject: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
30
|
+
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
31
|
+
}, undefined>;
|
|
32
|
+
readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
33
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
34
|
+
readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
35
|
+
}, undefined>;
|
|
36
|
+
}, undefined>], undefined>, undefined>;
|
|
37
|
+
}, undefined>;
|
|
38
|
+
readonly status: v.LiteralSchema<200, undefined>;
|
|
39
|
+
}, undefined>], undefined>>;
|
|
40
|
+
//# sourceMappingURL=draft.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwBxB,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { draft } from '../../../../../clients/draft';
|
|
3
|
+
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
+
import { errorManifest } from '../../../../../sdk/validation/errors';
|
|
5
|
+
export const syncPullDraft = createEndpoint({
|
|
6
|
+
body: v.object({
|
|
7
|
+
clientGroupID: v.string(),
|
|
8
|
+
cookie: v.nullable(v.number()),
|
|
9
|
+
}),
|
|
10
|
+
method: 'POST',
|
|
11
|
+
path: draft.pullURL,
|
|
12
|
+
response: v.union([
|
|
13
|
+
errorManifest.validationFailedErrorSchema,
|
|
14
|
+
errorManifest.authenticationFailedErrorSchema,
|
|
15
|
+
v.object({
|
|
16
|
+
data: v.object({
|
|
17
|
+
cookie: v.number(),
|
|
18
|
+
lastMutationIDChanges: v.record(v.string(), v.number()),
|
|
19
|
+
patch: v.array(v.union([
|
|
20
|
+
v.object({ op: v.literal('clear') }),
|
|
21
|
+
v.object({ key: v.string(), op: v.literal('del') }),
|
|
22
|
+
v.object({ key: v.string(), op: v.literal('put'), value: draft.model }),
|
|
23
|
+
])),
|
|
24
|
+
}),
|
|
25
|
+
status: v.literal(200),
|
|
26
|
+
}),
|
|
27
|
+
]),
|
|
28
|
+
});
|
|
@@ -79,6 +79,44 @@ export declare const pull: {
|
|
|
79
79
|
}, undefined>;
|
|
80
80
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
81
81
|
}, undefined>], undefined>>;
|
|
82
|
+
draft: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/draft", import("valibot").ObjectSchema<{
|
|
83
|
+
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
84
|
+
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
85
|
+
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
86
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
87
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
88
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
89
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
90
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
91
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
92
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
93
|
+
readonly cookie: import("valibot").NumberSchema<undefined>;
|
|
94
|
+
readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
|
|
95
|
+
readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
96
|
+
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
97
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
98
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
99
|
+
readonly op: import("valibot").LiteralSchema<"del", undefined>;
|
|
100
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
101
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
102
|
+
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
103
|
+
readonly value: import("valibot").ObjectSchema<{
|
|
104
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
105
|
+
readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
106
|
+
readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
107
|
+
readonly content: import("valibot").UnknownSchema;
|
|
108
|
+
readonly replyTo: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
109
|
+
readonly subject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
110
|
+
readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
111
|
+
}, undefined>;
|
|
112
|
+
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
113
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
114
|
+
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
115
|
+
}, undefined>;
|
|
116
|
+
}, undefined>], undefined>, undefined>;
|
|
117
|
+
}, undefined>;
|
|
118
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
119
|
+
}, undefined>], undefined>>;
|
|
82
120
|
thread: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/thread", import("valibot").ObjectSchema<{
|
|
83
121
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
84
122
|
readonly cookie: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4C,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { syncPullAccount as account } from './account';
|
|
2
2
|
import { syncPullContact as contact } from './contact';
|
|
3
|
+
import { syncPullDraft as draft } from './draft';
|
|
3
4
|
import { syncPullThread as thread } from './thread';
|
|
4
5
|
import { syncPullUser as user } from './user';
|
|
5
|
-
export const pull = { account, contact, thread, user };
|
|
6
|
+
export const pull = { account, contact, draft, thread, user };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const syncPushDraft: import("../../../../..").EndpointConfig<"/v1/pv/sync/push/draft", v.ObjectSchema<{
|
|
3
|
+
readonly clientGroupID: v.StringSchema<undefined>;
|
|
4
|
+
readonly mutations: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
5
|
+
readonly args: v.ObjectSchema<{
|
|
6
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
7
|
+
}, undefined>;
|
|
8
|
+
readonly clientID: v.StringSchema<undefined>;
|
|
9
|
+
readonly id: v.NumberSchema<undefined>;
|
|
10
|
+
readonly name: v.LiteralSchema<"delete", undefined>;
|
|
11
|
+
}, undefined>, v.ObjectSchema<{
|
|
12
|
+
readonly args: v.ObjectSchema<{
|
|
13
|
+
readonly body: Omit<v.ObjectSchema<{
|
|
14
|
+
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
15
|
+
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
16
|
+
readonly content: v.UnknownSchema;
|
|
17
|
+
readonly replyTo: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
18
|
+
readonly subject: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
19
|
+
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
20
|
+
}, undefined>, "entries" | "~standard" | "~run" | "~types"> & {
|
|
21
|
+
readonly entries: {
|
|
22
|
+
readonly bcc: v.OptionalSchema<v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
|
|
23
|
+
readonly cc: v.OptionalSchema<v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
|
|
24
|
+
readonly content: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
25
|
+
readonly replyTo: v.OptionalSchema<v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
|
|
26
|
+
readonly subject: v.OptionalSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
27
|
+
readonly to: v.OptionalSchema<v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
|
|
28
|
+
};
|
|
29
|
+
readonly '~standard': v.StandardSchemaProps<{
|
|
30
|
+
bcc?: string[] | undefined;
|
|
31
|
+
cc?: string[] | undefined;
|
|
32
|
+
replyTo?: string[] | undefined;
|
|
33
|
+
to?: string[] | undefined;
|
|
34
|
+
content?: unknown;
|
|
35
|
+
subject?: string | undefined;
|
|
36
|
+
}, {
|
|
37
|
+
bcc?: string[] | undefined;
|
|
38
|
+
cc?: string[] | undefined;
|
|
39
|
+
replyTo?: string[] | undefined;
|
|
40
|
+
to?: string[] | undefined;
|
|
41
|
+
content?: unknown;
|
|
42
|
+
subject?: string | undefined;
|
|
43
|
+
}>;
|
|
44
|
+
readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
45
|
+
bcc?: string[] | undefined;
|
|
46
|
+
cc?: string[] | undefined;
|
|
47
|
+
replyTo?: string[] | undefined;
|
|
48
|
+
to?: string[] | undefined;
|
|
49
|
+
content?: unknown;
|
|
50
|
+
subject?: string | undefined;
|
|
51
|
+
}, v.StringIssue | v.EmailIssue<string> | v.MaxLengthIssue<string, 255> | v.NonEmptyIssue<string> | v.ObjectIssue | v.NonOptionalIssue | v.ArrayIssue>;
|
|
52
|
+
readonly '~types'?: {
|
|
53
|
+
readonly input: {
|
|
54
|
+
bcc?: string[] | undefined;
|
|
55
|
+
cc?: string[] | undefined;
|
|
56
|
+
replyTo?: string[] | undefined;
|
|
57
|
+
to?: string[] | undefined;
|
|
58
|
+
content?: unknown;
|
|
59
|
+
subject?: string | undefined;
|
|
60
|
+
};
|
|
61
|
+
readonly output: {
|
|
62
|
+
bcc?: string[] | undefined;
|
|
63
|
+
cc?: string[] | undefined;
|
|
64
|
+
replyTo?: string[] | undefined;
|
|
65
|
+
to?: string[] | undefined;
|
|
66
|
+
content?: unknown;
|
|
67
|
+
subject?: string | undefined;
|
|
68
|
+
};
|
|
69
|
+
readonly issue: v.StringIssue | v.EmailIssue<string> | v.MaxLengthIssue<string, 255> | v.NonEmptyIssue<string> | v.ObjectIssue | v.NonOptionalIssue | v.ArrayIssue;
|
|
70
|
+
} | undefined;
|
|
71
|
+
};
|
|
72
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
73
|
+
}, undefined>;
|
|
74
|
+
readonly clientID: v.StringSchema<undefined>;
|
|
75
|
+
readonly id: v.NumberSchema<undefined>;
|
|
76
|
+
readonly name: v.LiteralSchema<"update", undefined>;
|
|
77
|
+
}, undefined>, v.ObjectSchema<{
|
|
78
|
+
readonly args: v.ObjectSchema<{
|
|
79
|
+
readonly body: v.ObjectSchema<{
|
|
80
|
+
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
81
|
+
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
82
|
+
readonly content: v.UnknownSchema;
|
|
83
|
+
readonly replyTo: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
84
|
+
readonly subject: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
85
|
+
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
86
|
+
}, undefined>;
|
|
87
|
+
readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
88
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
89
|
+
readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
90
|
+
}, undefined>;
|
|
91
|
+
readonly clientID: v.StringSchema<undefined>;
|
|
92
|
+
readonly id: v.NumberSchema<undefined>;
|
|
93
|
+
readonly name: v.LiteralSchema<"create", undefined>;
|
|
94
|
+
}, undefined>], undefined>, undefined>;
|
|
95
|
+
}, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
96
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
97
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
98
|
+
}, undefined>, v.ObjectSchema<{
|
|
99
|
+
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
100
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
101
|
+
}, undefined>, v.ObjectSchema<{
|
|
102
|
+
readonly status: v.LiteralSchema<200, undefined>;
|
|
103
|
+
}, undefined>], undefined>>;
|
|
104
|
+
//# sourceMappingURL=draft.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA+BxB,CAAA"}
|