@marcoappio/marco-config 2.0.326 → 2.0.328
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 +4 -11
- package/dist/clients/draft.d.ts.map +1 -1
- package/dist/clients/draft.js +1 -9
- package/dist/clients/index.d.ts +28 -37
- package/dist/clients/index.d.ts.map +1 -1
- package/dist/clients/user.d.ts +24 -26
- package/dist/clients/user.d.ts.map +1 -1
- package/dist/clients/user.js +16 -3
- package/dist/schemas/index.d.ts +3 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +7 -0
- package/dist/sdk/endpoints/index.d.ts +32 -41
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/index.d.ts +32 -41
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/index.d.ts +32 -41
- package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +1 -1
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts +15 -1
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/user.d.ts +14 -0
- package/dist/sdk/endpoints/private/sync/pull/user.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts +3 -12
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/draft.js +0 -6
- package/dist/sdk/endpoints/private/sync/push/index.d.ts +17 -40
- package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/user.d.ts +14 -28
- package/dist/sdk/endpoints/private/sync/push/user.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/user.js +9 -3
- package/dist/sdk/index.d.ts +32 -41
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/package.json +1 -1
package/dist/clients/draft.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare const draft: {
|
|
|
13
13
|
readonly body: v.ObjectSchema<{
|
|
14
14
|
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
15
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.
|
|
16
|
+
readonly content: v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
|
|
17
17
|
readonly subject: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
18
18
|
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
19
19
|
}, undefined>;
|
|
@@ -64,7 +64,7 @@ export declare const draft: {
|
|
|
64
64
|
readonly body: v.ObjectSchema<{
|
|
65
65
|
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
66
66
|
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
67
|
-
readonly content: v.
|
|
67
|
+
readonly content: v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
|
|
68
68
|
readonly subject: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
69
69
|
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
70
70
|
}, undefined>;
|
|
@@ -109,26 +109,19 @@ export declare const draft: {
|
|
|
109
109
|
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
110
110
|
}, undefined>;
|
|
111
111
|
};
|
|
112
|
-
setEmailAccountId: {
|
|
113
|
-
delta: v.ObjectSchema<{
|
|
114
|
-
readonly emailAccountId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
|
|
115
|
-
readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
|
|
116
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
117
|
-
}, undefined>;
|
|
118
|
-
};
|
|
119
112
|
setEnvelope: {
|
|
120
113
|
delta: v.ObjectSchema<{
|
|
121
114
|
readonly envelope: Omit<v.ObjectSchema<{
|
|
122
115
|
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
123
116
|
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
124
|
-
readonly content: v.
|
|
117
|
+
readonly content: v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
|
|
125
118
|
readonly subject: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
126
119
|
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
127
120
|
}, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
|
|
128
121
|
readonly entries: Omit<{
|
|
129
122
|
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
130
123
|
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
131
|
-
readonly content: v.
|
|
124
|
+
readonly content: v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
|
|
132
125
|
readonly subject: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
133
126
|
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
134
127
|
}, "content">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../src/clients/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAqD5B,eAAO,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../src/clients/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAqD5B,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiFK,CAAA"}
|
package/dist/clients/draft.js
CHANGED
|
@@ -14,7 +14,7 @@ const draftTypeSchema = v.union([
|
|
|
14
14
|
const bodySchema = v.object({
|
|
15
15
|
bcc: v.array(marcoSchemas.string.email()),
|
|
16
16
|
cc: v.array(marcoSchemas.string.email()),
|
|
17
|
-
content:
|
|
17
|
+
content: v.pipe(v.string(), v.maxLength(384000)),
|
|
18
18
|
subject: marcoSchemas.string.nullable(),
|
|
19
19
|
to: v.array(marcoSchemas.string.email()),
|
|
20
20
|
});
|
|
@@ -86,14 +86,6 @@ export const draft = {
|
|
|
86
86
|
updatedAt: marcoSchemas.number.positiveInteger(),
|
|
87
87
|
}),
|
|
88
88
|
},
|
|
89
|
-
// Deprecated
|
|
90
|
-
setEmailAccountId: {
|
|
91
|
-
delta: v.object({
|
|
92
|
-
emailAccountId: marcoSchemas.string.shortUUID(),
|
|
93
|
-
id: marcoSchemas.string.shortUUID(),
|
|
94
|
-
updatedAt: marcoSchemas.number.positiveInteger(),
|
|
95
|
-
}),
|
|
96
|
-
},
|
|
97
89
|
setEnvelope: {
|
|
98
90
|
delta: v.object({
|
|
99
91
|
envelope: v.omit(bodySchema, ['content']),
|
package/dist/clients/index.d.ts
CHANGED
|
@@ -165,7 +165,7 @@ export declare const marcoClients: {
|
|
|
165
165
|
readonly body: import("valibot").ObjectSchema<{
|
|
166
166
|
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>;
|
|
167
167
|
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>;
|
|
168
|
-
readonly content: import("valibot").
|
|
168
|
+
readonly content: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 384000, undefined>]>;
|
|
169
169
|
readonly subject: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
170
170
|
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>;
|
|
171
171
|
}, undefined>;
|
|
@@ -216,7 +216,7 @@ export declare const marcoClients: {
|
|
|
216
216
|
readonly body: import("valibot").ObjectSchema<{
|
|
217
217
|
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>;
|
|
218
218
|
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>;
|
|
219
|
-
readonly content: import("valibot").
|
|
219
|
+
readonly content: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 384000, undefined>]>;
|
|
220
220
|
readonly subject: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
221
221
|
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>;
|
|
222
222
|
}, undefined>;
|
|
@@ -261,26 +261,19 @@ export declare const marcoClients: {
|
|
|
261
261
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
262
262
|
}, undefined>;
|
|
263
263
|
};
|
|
264
|
-
setEmailAccountId: {
|
|
265
|
-
delta: import("valibot").ObjectSchema<{
|
|
266
|
-
readonly emailAccountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
|
|
267
|
-
readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
|
|
268
|
-
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
269
|
-
}, undefined>;
|
|
270
|
-
};
|
|
271
264
|
setEnvelope: {
|
|
272
265
|
delta: import("valibot").ObjectSchema<{
|
|
273
266
|
readonly envelope: Omit<import("valibot").ObjectSchema<{
|
|
274
267
|
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>;
|
|
275
268
|
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>;
|
|
276
|
-
readonly content: import("valibot").
|
|
269
|
+
readonly content: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 384000, undefined>]>;
|
|
277
270
|
readonly subject: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
278
271
|
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>;
|
|
279
272
|
}, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
|
|
280
273
|
readonly entries: Omit<{
|
|
281
274
|
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>;
|
|
282
275
|
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>;
|
|
283
|
-
readonly content: import("valibot").
|
|
276
|
+
readonly content: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 384000, undefined>]>;
|
|
284
277
|
readonly subject: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
285
278
|
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>;
|
|
286
279
|
}, "content">;
|
|
@@ -447,38 +440,36 @@ export declare const marcoClients: {
|
|
|
447
440
|
user: {
|
|
448
441
|
model: import("valibot").ObjectSchema<{
|
|
449
442
|
readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
|
|
443
|
+
readonly pushNotificationTokens: import("valibot").RecordSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>, import("valibot").ObjectSchema<{
|
|
444
|
+
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
445
|
+
readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
446
|
+
readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
|
|
447
|
+
readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
448
|
+
}, undefined>, undefined>;
|
|
450
449
|
readonly settings: import("valibot").ObjectSchema<{
|
|
451
450
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
451
|
+
readonly notifications: import("valibot").ObjectSchema<{
|
|
452
|
+
readonly pushNotificationTokens: import("valibot").RecordSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>, import("valibot").ObjectSchema<{
|
|
453
|
+
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
454
|
+
readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
455
|
+
readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
|
|
456
|
+
readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
457
|
+
}, undefined>, undefined>;
|
|
458
|
+
}, undefined>;
|
|
452
459
|
}, undefined>;
|
|
453
460
|
}, undefined>;
|
|
454
461
|
mutators: {
|
|
455
|
-
|
|
462
|
+
setSettingsName: {
|
|
456
463
|
delta: import("valibot").ObjectSchema<{
|
|
457
|
-
readonly
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
}, {
|
|
467
|
-
name?: string | null | undefined;
|
|
468
|
-
}>;
|
|
469
|
-
readonly '~run': (dataset: import("valibot").UnknownDataset, config: import("valibot").Config<import("valibot").BaseIssue<unknown>>) => import("valibot").OutputDataset<{
|
|
470
|
-
name?: string | null | undefined;
|
|
471
|
-
}, import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").ObjectIssue>;
|
|
472
|
-
readonly '~types'?: {
|
|
473
|
-
readonly input: {
|
|
474
|
-
name?: string | null | undefined;
|
|
475
|
-
};
|
|
476
|
-
readonly output: {
|
|
477
|
-
name?: string | null | undefined;
|
|
478
|
-
};
|
|
479
|
-
readonly issue: import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").ObjectIssue;
|
|
480
|
-
} | undefined;
|
|
481
|
-
};
|
|
464
|
+
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
465
|
+
}, undefined>;
|
|
466
|
+
};
|
|
467
|
+
setSettingsPushNotifactionToken: {
|
|
468
|
+
delta: import("valibot").ObjectSchema<{
|
|
469
|
+
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
470
|
+
readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
471
|
+
readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
|
|
472
|
+
readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
482
473
|
}, undefined>;
|
|
483
474
|
};
|
|
484
475
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMc,CAAA"}
|
package/dist/clients/user.d.ts
CHANGED
|
@@ -2,38 +2,36 @@ import * as v from 'valibot';
|
|
|
2
2
|
export declare const user: {
|
|
3
3
|
model: v.ObjectSchema<{
|
|
4
4
|
readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
|
|
5
|
+
readonly pushNotificationTokens: v.RecordSchema<v.UnionSchema<[v.LiteralSchema<"ios", undefined>, v.LiteralSchema<"osx", undefined>, v.LiteralSchema<"web", undefined>], undefined>, v.ObjectSchema<{
|
|
6
|
+
readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
7
|
+
readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
8
|
+
readonly platform: v.UnionSchema<[v.LiteralSchema<"ios", undefined>, v.LiteralSchema<"osx", undefined>, v.LiteralSchema<"web", undefined>], undefined>;
|
|
9
|
+
readonly token: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
10
|
+
}, undefined>, undefined>;
|
|
5
11
|
readonly settings: v.ObjectSchema<{
|
|
6
12
|
readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
13
|
+
readonly notifications: v.ObjectSchema<{
|
|
14
|
+
readonly pushNotificationTokens: v.RecordSchema<v.UnionSchema<[v.LiteralSchema<"ios", undefined>, v.LiteralSchema<"osx", undefined>, v.LiteralSchema<"web", undefined>], undefined>, v.ObjectSchema<{
|
|
15
|
+
readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
16
|
+
readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
17
|
+
readonly platform: v.UnionSchema<[v.LiteralSchema<"ios", undefined>, v.LiteralSchema<"osx", undefined>, v.LiteralSchema<"web", undefined>], undefined>;
|
|
18
|
+
readonly token: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
19
|
+
}, undefined>, undefined>;
|
|
20
|
+
}, undefined>;
|
|
7
21
|
}, undefined>;
|
|
8
22
|
}, undefined>;
|
|
9
23
|
mutators: {
|
|
10
|
-
|
|
24
|
+
setSettingsName: {
|
|
25
|
+
delta: v.ObjectSchema<{
|
|
26
|
+
readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
27
|
+
}, undefined>;
|
|
28
|
+
};
|
|
29
|
+
setSettingsPushNotifactionToken: {
|
|
11
30
|
delta: v.ObjectSchema<{
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
readonly entries: {
|
|
17
|
-
readonly name: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
18
|
-
};
|
|
19
|
-
readonly '~standard': v.StandardSchemaProps<{
|
|
20
|
-
name?: string | null | undefined;
|
|
21
|
-
}, {
|
|
22
|
-
name?: string | null | undefined;
|
|
23
|
-
}>;
|
|
24
|
-
readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
25
|
-
name?: string | null | undefined;
|
|
26
|
-
}, v.StringIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.ObjectIssue>;
|
|
27
|
-
readonly '~types'?: {
|
|
28
|
-
readonly input: {
|
|
29
|
-
name?: string | null | undefined;
|
|
30
|
-
};
|
|
31
|
-
readonly output: {
|
|
32
|
-
name?: string | null | undefined;
|
|
33
|
-
};
|
|
34
|
-
readonly issue: v.StringIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.ObjectIssue;
|
|
35
|
-
} | undefined;
|
|
36
|
-
};
|
|
31
|
+
readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
32
|
+
readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
33
|
+
readonly platform: v.UnionSchema<[v.LiteralSchema<"ios", undefined>, v.LiteralSchema<"osx", undefined>, v.LiteralSchema<"web", undefined>], undefined>;
|
|
34
|
+
readonly token: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
37
35
|
}, undefined>;
|
|
38
36
|
};
|
|
39
37
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/clients/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/clients/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAwB5B,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBM,CAAA"}
|
package/dist/clients/user.js
CHANGED
|
@@ -1,20 +1,33 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import { marcoSchemas } from '../schemas';
|
|
3
|
+
const pushNotificationToken = v.object({
|
|
4
|
+
createdAt: marcoSchemas.number.positiveInteger(),
|
|
5
|
+
deviceId: marcoSchemas.string.required(),
|
|
6
|
+
platform: marcoSchemas.app.platform(),
|
|
7
|
+
token: marcoSchemas.string.required(),
|
|
8
|
+
});
|
|
9
|
+
const pushNotificationTokens = v.record(marcoSchemas.app.platform(), pushNotificationToken);
|
|
3
10
|
const userSettings = v.object({
|
|
4
11
|
name: marcoSchemas.string.nullable(),
|
|
12
|
+
notifications: v.object({
|
|
13
|
+
pushNotificationTokens,
|
|
14
|
+
}),
|
|
5
15
|
});
|
|
6
16
|
export const user = {
|
|
7
17
|
model: v.object({
|
|
8
18
|
id: marcoSchemas.string.shortUUID(),
|
|
19
|
+
pushNotificationTokens,
|
|
9
20
|
settings: userSettings,
|
|
10
21
|
}),
|
|
11
22
|
mutators: {
|
|
12
|
-
|
|
23
|
+
setSettingsName: {
|
|
13
24
|
delta: v.object({
|
|
14
|
-
|
|
15
|
-
settings: v.partial(userSettings),
|
|
25
|
+
name: marcoSchemas.string.nullable(),
|
|
16
26
|
}),
|
|
17
27
|
},
|
|
28
|
+
setSettingsPushNotifactionToken: {
|
|
29
|
+
delta: pushNotificationToken,
|
|
30
|
+
},
|
|
18
31
|
},
|
|
19
32
|
name: 'user',
|
|
20
33
|
pullUrl: '/v1/pv/sync/pull/user',
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
export declare const marcoSchemas: {
|
|
3
|
+
app: {
|
|
4
|
+
platform: () => v.UnionSchema<[v.LiteralSchema<"ios", undefined>, v.LiteralSchema<"osx", undefined>, v.LiteralSchema<"web", undefined>], undefined>;
|
|
5
|
+
};
|
|
3
6
|
drafts: {
|
|
4
7
|
contentPatch: {
|
|
5
8
|
instruction: () => v.ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA6CP,MAAM,OAAO,MAAM;;;;;;;;;;;;;;;;CAYpC,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,eAAe,CAAC,CAAC,CAAA"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -9,6 +9,13 @@ const patchInstructionSchema = v.object({
|
|
|
9
9
|
value: v.string(),
|
|
10
10
|
});
|
|
11
11
|
export const marcoSchemas = {
|
|
12
|
+
app: {
|
|
13
|
+
platform: () => v.union([
|
|
14
|
+
v.literal('ios'),
|
|
15
|
+
v.literal('osx'),
|
|
16
|
+
v.literal('web'),
|
|
17
|
+
]),
|
|
18
|
+
},
|
|
12
19
|
drafts: {
|
|
13
20
|
contentPatch: {
|
|
14
21
|
instruction: () => patchInstructionSchema,
|
|
@@ -183,7 +183,7 @@ export declare const endpoints: {
|
|
|
183
183
|
readonly body: import("valibot").ObjectSchema<{
|
|
184
184
|
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>;
|
|
185
185
|
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>;
|
|
186
|
-
readonly content: import("valibot").
|
|
186
|
+
readonly content: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 384000, undefined>]>;
|
|
187
187
|
readonly subject: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
188
188
|
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>;
|
|
189
189
|
}, undefined>;
|
|
@@ -324,8 +324,22 @@ export declare const endpoints: {
|
|
|
324
324
|
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
325
325
|
readonly value: import("valibot").ObjectSchema<{
|
|
326
326
|
readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
|
|
327
|
+
readonly pushNotificationTokens: import("valibot").RecordSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>, import("valibot").ObjectSchema<{
|
|
328
|
+
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
329
|
+
readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
330
|
+
readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
|
|
331
|
+
readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
332
|
+
}, undefined>, undefined>;
|
|
327
333
|
readonly settings: import("valibot").ObjectSchema<{
|
|
328
334
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
335
|
+
readonly notifications: import("valibot").ObjectSchema<{
|
|
336
|
+
readonly pushNotificationTokens: import("valibot").RecordSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>, import("valibot").ObjectSchema<{
|
|
337
|
+
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
338
|
+
readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
339
|
+
readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
|
|
340
|
+
readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
341
|
+
}, undefined>, undefined>;
|
|
342
|
+
}, undefined>;
|
|
329
343
|
}, undefined>;
|
|
330
344
|
}, undefined>;
|
|
331
345
|
}, undefined>], undefined>, undefined>;
|
|
@@ -514,7 +528,7 @@ export declare const endpoints: {
|
|
|
514
528
|
readonly body: import("valibot").ObjectSchema<{
|
|
515
529
|
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>;
|
|
516
530
|
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>;
|
|
517
|
-
readonly content: import("valibot").
|
|
531
|
+
readonly content: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 384000, undefined>]>;
|
|
518
532
|
readonly subject: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
519
533
|
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>;
|
|
520
534
|
}, undefined>;
|
|
@@ -569,28 +583,19 @@ export declare const endpoints: {
|
|
|
569
583
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
570
584
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
571
585
|
readonly name: import("valibot").LiteralSchema<"setContent", undefined>;
|
|
572
|
-
}, undefined> | import("valibot").ObjectSchema<{
|
|
573
|
-
readonly args: import("valibot").ObjectSchema<{
|
|
574
|
-
readonly emailAccountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
|
|
575
|
-
readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
|
|
576
|
-
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
577
|
-
}, undefined>;
|
|
578
|
-
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
579
|
-
readonly id: import("valibot").NumberSchema<undefined>;
|
|
580
|
-
readonly name: import("valibot").LiteralSchema<"setEmailAccountId", undefined>;
|
|
581
586
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
582
587
|
readonly args: import("valibot").ObjectSchema<{
|
|
583
588
|
readonly envelope: Omit<import("valibot").ObjectSchema<{
|
|
584
589
|
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>;
|
|
585
590
|
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>;
|
|
586
|
-
readonly content: import("valibot").
|
|
591
|
+
readonly content: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 384000, undefined>]>;
|
|
587
592
|
readonly subject: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
588
593
|
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>;
|
|
589
594
|
}, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
|
|
590
595
|
readonly entries: Omit<{
|
|
591
596
|
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>;
|
|
592
597
|
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>;
|
|
593
|
-
readonly content: import("valibot").
|
|
598
|
+
readonly content: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 384000, undefined>]>;
|
|
594
599
|
readonly subject: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
595
600
|
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>;
|
|
596
601
|
}, "content">;
|
|
@@ -765,38 +770,24 @@ export declare const endpoints: {
|
|
|
765
770
|
}, undefined>], undefined>>;
|
|
766
771
|
user: EndpointConfig<"/v1/pv/sync/push/user", import("valibot").ObjectSchema<{
|
|
767
772
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
768
|
-
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<import("valibot").ObjectSchema<{
|
|
773
|
+
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<(import("valibot").ObjectSchema<{
|
|
769
774
|
readonly args: import("valibot").ObjectSchema<{
|
|
770
|
-
readonly
|
|
771
|
-
readonly settings: Omit<import("valibot").ObjectSchema<{
|
|
772
|
-
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
773
|
-
}, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
|
|
774
|
-
readonly entries: {
|
|
775
|
-
readonly name: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
776
|
-
};
|
|
777
|
-
readonly '~standard': import("valibot").StandardSchemaProps<{
|
|
778
|
-
name?: string | null | undefined;
|
|
779
|
-
}, {
|
|
780
|
-
name?: string | null | undefined;
|
|
781
|
-
}>;
|
|
782
|
-
readonly '~run': (dataset: import("valibot").UnknownDataset, config: import("valibot").Config<import("valibot").BaseIssue<unknown>>) => import("valibot").OutputDataset<{
|
|
783
|
-
name?: string | null | undefined;
|
|
784
|
-
}, import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").ObjectIssue>;
|
|
785
|
-
readonly '~types'?: {
|
|
786
|
-
readonly input: {
|
|
787
|
-
name?: string | null | undefined;
|
|
788
|
-
};
|
|
789
|
-
readonly output: {
|
|
790
|
-
name?: string | null | undefined;
|
|
791
|
-
};
|
|
792
|
-
readonly issue: import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").ObjectIssue;
|
|
793
|
-
} | undefined;
|
|
794
|
-
};
|
|
775
|
+
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
795
776
|
}, undefined>;
|
|
796
777
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
797
778
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
798
|
-
readonly name: import("valibot").LiteralSchema<"
|
|
799
|
-
}, undefined>
|
|
779
|
+
readonly name: import("valibot").LiteralSchema<"setSettingsName", undefined>;
|
|
780
|
+
}, undefined> | import("valibot").ObjectSchema<{
|
|
781
|
+
readonly args: import("valibot").ObjectSchema<{
|
|
782
|
+
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
783
|
+
readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
784
|
+
readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
|
|
785
|
+
readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
786
|
+
}, undefined>;
|
|
787
|
+
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
788
|
+
readonly id: import("valibot").NumberSchema<undefined>;
|
|
789
|
+
readonly name: import("valibot").LiteralSchema<"setSettingsPushNotifactionToken", undefined>;
|
|
790
|
+
}, undefined>)[], undefined>, undefined>;
|
|
800
791
|
}, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
801
792
|
readonly data: import("valibot").ObjectSchema<{
|
|
802
793
|
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,OAAO,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAcjE,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,OAAO,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAcjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
|